@jetcrab/pi-desk 1.1.1 → 1.1.5-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.
- package/docs/pi-desk/README.md +47 -0
- package/docs/pi-desk/commands.md +76 -0
- package/docs/pi-desk/examples/local-application/browser/application.js +106 -0
- package/docs/pi-desk/examples/local-application/browser/entry.js +9 -0
- package/docs/pi-desk/examples/local-application/package.json +9 -0
- package/docs/pi-desk/examples/local-application/pi-desk.ts +11 -0
- package/docs/pi-desk/plugins.md +119 -0
- package/package.json +3 -2
- package/src/client/l2_biz/pi-settings/hooks/l2-use-pi-settings.ts +37 -21
- package/src/client/l2_biz/pi-settings/l2-pi-settings.tsx +37 -43
- package/src/client/l2_biz/pi-settings/views/l2-mcp-settings-editor.tsx +3 -1
- package/src/client/l2_biz/pi-settings/views/l2-mcp-settings-list.tsx +1 -1
- package/src/client/l2_biz/plugin-host/hooks/l2-use-plugin-catalog.ts +3 -1
- package/src/client/l2_biz/plugin-host/hooks/l2-use-plugin-download-source.ts +5 -1
- package/src/client/l2_biz/plugin-host/l2-plugin-capability-details.tsx +57 -41
- package/src/client/l2_biz/plugin-host/l2-plugin-management-controls.tsx +89 -116
- package/src/client/l2_biz/plugin-host/l2-plugin-management.tsx +492 -338
- package/src/client/l2_biz/plugin-host/l2-use-plugin-management.ts +72 -22
- package/src/client/l2_biz/plugin-host/views/l2-plugin-catalog-detail.tsx +104 -76
- package/src/client/l2_biz/plugin-host/views/l2-plugin-catalog-search.tsx +101 -56
- package/src/client/l2_biz/plugin-host/views/l2-plugin-direct-install.tsx +91 -59
- package/src/client/l2_biz/plugin-host/views/l2-plugin-download-source.tsx +36 -27
- package/src/client/l2_biz/plugin-host/views/l2-plugin-installed-list.tsx +218 -208
- package/src/client/l2_biz/plugin-host/views/l2-plugin-management-channel.tsx +12 -5
- package/src/client/l2_biz/plugin-host/views/l2-plugin-management-dialog.tsx +84 -106
- package/src/client/l2_biz/plugin-host/views/l2-plugin-readme.tsx +29 -15
- package/src/client/l2_biz/settings/hooks/l2-use-project-model-default-settings.ts +22 -11
- package/src/client/l2_biz/settings/l2-settings.tsx +6 -11
- package/src/client/l2_biz/settings/views/l2-project-model-default-settings.tsx +20 -14
- package/src/client/l2_biz/terminal/l2-terminal-workspace.tsx +35 -1
- package/src/client/l2_biz/workbench/file-workspace/l2-work-session-file-preview.tsx +6 -2
- package/src/client/l2_biz/workbench/hooks/l2-workbench-chat-viewport.ts +14 -1
- package/src/client/l2_biz/workbench/l2-workbench-branch-picker.tsx +33 -5
- package/src/client/l2_biz/workbench/l2-workbench-sidebar-layout.tsx +3 -1
- package/src/client/l2_biz/workbench/l2-workbench.tsx +20 -3
- package/src/client/l3_modules/conversation/l3-conversation-call-summary.tsx +0 -3
- package/src/client/l3_modules/project-files/l3-file-context-menu-content.tsx +1 -0
- package/src/client/l4_foundation/ui/l4-app-dialog.tsx +3 -1
- package/src/client/l4_foundation/ui/l4-image-viewer.tsx +21 -0
- package/src/client/l4_foundation/ui/shadcn/checkbox.tsx +27 -0
- package/src/client/l4_foundation/ui/shadcn/context-menu.tsx +8 -1
- package/src/client/l4_foundation/ui/shadcn/dropdown-menu.tsx +5 -0
- package/src/client/l4_foundation/ui/shadcn/popover.tsx +2 -0
- package/src/client/l4_foundation/ui/shadcn/select.tsx +2 -0
- package/src/client/l4_foundation/ui/shadcn/switch.tsx +31 -0
- package/src/client/l4_foundation/ui/shadcn/tabs.tsx +74 -0
- package/src/common/l2_biz/plugin/l2-plugin-management-messages.ts +52 -22
- package/src/common/l3_modules/conversation/l3-conversation-locale-messages.ts +2 -2
- package/src/common/l3_modules/conversation/l3-conversation-pidesk.ts +1 -1
- package/src/common/l4_foundation/plugin/l4-plugin-package.ts +1 -0
- package/src/server/l2_biz/plugin-management/l2-plugin-catalog.ts +16 -5
- package/src/server/l2_biz/plugin-management/l2-plugin-commands.ts +21 -1
- package/src/server/l2_biz/plugin-management/l2-plugin-management.ts +21 -2
- package/src/server/l2_biz/plugin-management/l2-plugin-updates.ts +17 -3
- package/src/server/l4_foundation/pi/l4-pi-basic-session-services.ts +3 -3
- package/src/server/l4_foundation/pi/l4-pi-package-maintenance-runner.mts +4 -11
- package/src/server/l4_foundation/pi/l4-pi-plugin-registry-config.ts +52 -34
- package/src/server/l4_foundation/pi/l4-pi-plugin-registry-network.ts +5 -3
- package/src/server/l4_foundation/pi/l4-pi-plugin-registry.ts +23 -8
- package/src/server/l4_foundation/pi/l4-pi-session-initialization.ts +2 -5
- package/src/server/l4_foundation/pidesk/l4-pidesk-command.ts +8 -1
- package/src/server/l4_foundation/pidesk/l4-pidesk-runtime.ts +24 -38
- package/src/server/l4_foundation/pidesk/l4-pidesk-system-prompt.ts +11 -0
- package/temp/build/pi-desk/release/.next/BUILD_ID +1 -1
- package/temp/build/pi-desk/release/.next/build-manifest.json +3 -3
- package/temp/build/pi-desk/release/.next/prerender-manifest.json +3 -3
- package/temp/build/pi-desk/release/.next/react-loadable-manifest.json +1 -1
- package/temp/build/pi-desk/release/.next/required-server-files.js +3 -3
- package/temp/build/pi-desk/release/.next/required-server-files.json +3 -3
- package/temp/build/pi-desk/release/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.html +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.rsc +3 -3
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_full.segment.rsc +3 -3
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +3 -3
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/health/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/login/page.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/page.js +79 -79
- package/temp/build/pi-desk/release/.next/server/app/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/25406.js +8 -77
- package/temp/build/pi-desk/release/.next/server/chunks/{81107.js → 35348.js} +2 -2
- package/temp/build/pi-desk/release/.next/server/chunks/35985.js +4 -4
- package/temp/build/pi-desk/release/.next/server/chunks/36361.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/47757.js +6 -75
- package/temp/build/pi-desk/release/.next/server/chunks/50520.js +4 -4
- package/temp/build/pi-desk/release/.next/server/chunks/58330.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/84231.js +2 -2
- package/temp/build/pi-desk/release/.next/server/chunks/89236.js +2 -2
- package/temp/build/pi-desk/release/.next/server/chunks/92386.js +5 -5
- package/temp/build/pi-desk/release/.next/server/chunks/94518.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/9874.js +1 -1
- package/temp/build/pi-desk/release/.next/server/middleware-build-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/pages/500.html +1 -1
- package/temp/build/pi-desk/release/.next/server/server-reference-manifest.json +1 -1
- package/temp/build/pi-desk/release/.next/static/chunks/14197-3d3ddd426ac06c9c.js +3 -0
- package/temp/build/pi-desk/release/.next/static/chunks/34903-e4205c0becabea76.js +318 -0
- package/temp/build/pi-desk/release/.next/static/chunks/{54206.7c0792096df8a5cf.js → 54206.82a63ab971911eda.js} +3 -3
- package/temp/build/pi-desk/release/.next/static/chunks/74132-876f256c7a6101af.js +13 -0
- package/temp/build/pi-desk/release/.next/static/chunks/78923-17a9c337b29dcecd.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/96995-8f8313ea2ac3abd7.js +62 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/{layout-7c5409cced9c2501.js → layout-4faf3a52d219296d.js} +2 -2
- package/temp/build/pi-desk/release/.next/static/chunks/app/login/{page-8c87fb9e6c918848.js → page-bf893718bb151f3c.js} +1 -1
- package/temp/build/pi-desk/release/.next/static/chunks/app/page-28e1d77d6b884657.js +158 -0
- package/temp/build/pi-desk/release/.next/static/chunks/{webpack-45424d28099bbefa.js → webpack-7bfbf627379fb4c1.js} +1 -1
- package/temp/build/pi-desk/release/.next/static/css/3213ee28336bddc2.css +1 -0
- package/temp/build/pi-desk/release/.next/trace-build +1 -1
- package/src/server/l4_foundation/pidesk/l4-pidesk-skill-template.ts +0 -87
- package/temp/build/pi-desk/release/.next/static/chunks/27491-8b2d3e345b9142ea.js +0 -318
- package/temp/build/pi-desk/release/.next/static/chunks/7089-600a8f5593b7846c.js +0 -3
- package/temp/build/pi-desk/release/.next/static/chunks/74132-0884df6a6f11861a.js +0 -13
- package/temp/build/pi-desk/release/.next/static/chunks/78923-539a8b5f7af3c54a.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/96995-ae32167974365050.js +0 -62
- package/temp/build/pi-desk/release/.next/static/chunks/app/page-39b146293b6eb488.js +0 -158
- package/temp/build/pi-desk/release/.next/static/css/56486914a8ba0a1b.css +0 -1
- /package/temp/build/pi-desk/release/.next/static/{STVrBHA3z9KPtvBE4WcE2 → IgHJ40fniC07-ioYUKobL}/_buildManifest.js +0 -0
- /package/temp/build/pi-desk/release/.next/static/{STVrBHA3z9KPtvBE4WcE2 → IgHJ40fniC07-ioYUKobL}/_ssgManifest.js +0 -0
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[27491],{1052:(e,t,n)=>{"use strict";n.d(t,{BM:()=>o,CW:()=>r,Ee:()=>h,HP:()=>u,JQ:()=>s,Ny:()=>f,On:()=>d,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 s(e){return null!==e&&(e<32||127===e)}let o=m(/\d/),l=m(/[\dA-Fa-f]/),c=m(/[!-/:-@[-`{-~]/);function u(e){return null!==e&&e<-2}function h(e){return null!==e&&(e<0||32===e)}function d(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))}}},1503:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]])},2171:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47552),i=n(12318),a=n(47057),s=n(93525);let o=(e,t,n=0,o=1)=>{if("number"!=typeof e)return(0,s.A)(e,{a:t});let l=i.A.set({r:r.A.channel.clamp.r(e),g:r.A.channel.clamp.g(t),b:r.A.channel.clamp.b(n),a:r.A.channel.clamp.a(o)});return a.A.stringify(l)}},3058:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},3158:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\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,h=1;function d(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function p(){var e={line:u,column:h};return function(t){return t.position=new f(e),g(r),t}}function f(e){this.start=e,this.end={line:u,column:h},this.source=l.source}function m(t){var n=Error(l.source+":"+u+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=u,n.column=h,n.source=e,l.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){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 h+=2,d(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}f.prototype.content=e,g(r);var k,x=[];for(y(x);k=function(){var e=p(),n=g(i);if(n){if(b(),!g(a))return m("property missing ':'");var r=g(s),l=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return g(o),l}}();)!1!==k&&(x.push(k),y(x));return x}},3635:(e,t,n)=>{"use strict";n.d(t,{default:()=>i.a});var r=n(58048),i=n.n(r)},4196:(e,t,n)=>{"use strict";n.d(t,{pe:()=>A,PX:()=>J,ru:()=>Q,Un:()=>Z,$t:()=>ea,Sm:()=>el,C4:()=>eo,$C:()=>z,rY:()=>ec,sM:()=>j,KL:()=>eu,Ib:()=>L,dq:()=>en,I5:()=>ei,yT:()=>K,vU:()=>M,_K:()=>es,bH:()=>Y});var r,i=n(89316),a=n(47508),s=n(39410),o=n(68083),l=n(86594);function c(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(c.Cache||Map),n}function u(){}c.Cache=Map;var h=n(59275),d=n(35329);function p(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var f=n(26232);function m(e){if("object"!=typeof e||null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){let t=e[Symbol.toStringTag];return null!=t&&!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var g=n(60008),y=n(67799);function b(e,t,n,r=new Map,i){let a=i?.(e,t,n,r);if(void 0!==a)return a;if((0,h.s)(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=b(e[a],a,n,r,i);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;for(let[a,s]of(r.set(e,t),e))t.set(a,b(s,a,n,r,i));return t}if(e instanceof Set){let t=new Set;for(let a of(r.set(e,t),e))t.add(b(a,void 0,n,r,i));return t}if((0,f.P)(e))return e.subarray();if((0,d.i)(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=b(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),k(t,e,n,r,i),t}if("u">typeof File&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),k(t,e,n,r,i),t}if("u">typeof Blob&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),k(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,k(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),k(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),k(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),k(t,e,n,r,i),t}if("object"==typeof e&&function(e){switch((0,g.b)(e)){case y.R_:case y.Uw:case y.cT:case y.iq:case y.$V:case y.vC:case y.ri:case y.ML:case y.XZ:case y.i1:case y._u:case y.pj:case y.kj:case y.GX:case y.Av:case y.NA:case y.OG:case y.VP:case y.Qb:case y.q:case y.x6:case y.ZR:return!0;default:return!1}}(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),k(t,e,n,r,i),t}return e}function k(e,t,n=e,r,i){let a=[...Object.keys(t),...p(t)];for(let s=0;s<a.length;s++){let o=a[s],l=Object.getOwnPropertyDescriptor(e,o);(null==l||l.writable)&&(e[o]=b(t[o],o,n,r,i))}}function x(e){var t;return t=(t,n,r,i)=>{let a;if(void 0!==a)return a;if("object"==typeof e){if("[object Object]"===(0,g.b)(e)&&"function"!=typeof e.constructor){let t={};return i.set(e,t),k(t,e,r,i),t}switch(Object.prototype.toString.call(e)){case y.kj:case y.OG:case y.$V:{let t=new e.constructor(e?.valueOf());return k(t,e),t}case y.R_:{let t={};return k(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}},b(e,void 0,e,new Map,t)}var E=n(33349);function v(e){return"object"==typeof e&&null!==e}var _=n(74598),T=n(24722),A="",w={curveBasis:l.qrM,curveBasisClosed:l.Yu4,curveBasisOpen:l.IA3,curveBumpX:l.Wi0,curveBumpY:l.PGM,curveBundle:l.OEq,curveCardinalClosed:l.olC,curveCardinalOpen:l.IrU,curveCardinal:l.y8u,curveCatmullRomClosed:l.Q7f,curveCatmullRomOpen:l.cVp,curveCatmullRom:l.oDi,curveLinear:l.lUB,curveLinearClosed:l.Lx9,curveMonotoneX:l.nVG,curveMonotoneY:l.uxU,curveNatural:l.Xf2,curveStep:l.GZz,curveStepAfter:l.UPb,curveStepBefore:l.dyv},S=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,C=(0,s.K)(function(e,t){let n=N(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);(0,i.$i)(e),r=(0,i.hH)(r,[...e])}else r=n.args;if(!r)return;let a=(0,i.Ch)(e,t),s="config";return void 0!==r[s]&&("flowchart-v2"===a&&(a="flowchart"),r[a]=r[s],delete r[s]),r},"detectInit"),N=(0,s.K)(function(e,t=null){try{let n,r=RegExp(`[%]{2}(?![{]${S.source})(?=[}][%]{2}).*
|
|
2
|
-
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),a.R.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);let s=[];for(;null!==(n=i.DB.exec(e));)if(n.index===i.DB.lastIndex&&i.DB.lastIndex++,n&&!t||t&&n[1]?.match(t)||t&&n[2]?.match(t)){let e=n[1]?n[1]:n[2],t=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;s.push({type:e,args:t})}if(0===s.length)return{type:e,args:null};return 1===s.length?s[0]:s}catch(n){return a.R.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),M=(0,s.K)(function(e){return e.replace(i.DB,"")},"removeDirectives"),I=(0,s.K)(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return -1},"isSubstringInArray");function L(e,t){return e?w[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function R(e,t){let n=e.trim();if(n)return"loose"!==t.securityLevel?(0,o.J)(n):n}(0,s.K)(L,"interpolateToCurve"),(0,s.K)(R,"formatUrl");var D=(0,s.K)((e,...t)=>{let n=e.split("."),r=n.length-1,i=n[r],s=window;for(let t=0;t<r;t++)if(!(s=s[n[t]]))return void a.R.error(`Function name: ${e} not found in window`);s[i](...t)},"runFunc");function O(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function P(e){let t,n=0;return e.forEach(e=>{n+=O(e,t),t=e}),U(e,n/2)}function F(e){return 1===e.length?e[0]:P(e)}(0,s.K)(O,"distance"),(0,s.K)(P,"traverseEdge"),(0,s.K)(F,"calcLabelPosition");var B=(0,s.K)((e,t=2)=>{let n=Math.pow(10,t);return Math.round(e*n)/n},"roundNumber"),U=(0,s.K)((e,t)=>{let n,r=t;for(let t of e){if(n){let e=O(t,n);if(0===e)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:B((1-i)*n.x+i*t.x,5),y:B((1-i)*n.y+i*t.y,5)}}}n=t}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),H=(0,s.K)((e,t,n)=>{a.R.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=U(t,25),i=e?10:5,s=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(s)*i+(t[0].x+r.x)/2,o.y=-Math.cos(s)*i+(t[0].y+r.y)/2,o},"calcCardinalityPosition");function $(e,t,n){let r=structuredClone(n);a.R.info("our points",r),"start_left"!==t&&"start_right"!==t&&r.reverse();let i=U(r,25+e),s=10+.5*e,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),l={x:0,y:0};return"start_left"===t?(l.x=Math.sin(o+Math.PI)*s+(r[0].x+i.x)/2,l.y=-Math.cos(o+Math.PI)*s+(r[0].y+i.y)/2):"end_right"===t?(l.x=Math.sin(o-Math.PI)*s+(r[0].x+i.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(r[0].y+i.y)/2-5):"end_left"===t?(l.x=Math.sin(o)*s+(r[0].x+i.x)/2-5,l.y=-Math.cos(o)*s+(r[0].y+i.y)/2-5):(l.x=Math.sin(o)*s+(r[0].x+i.x)/2,l.y=-Math.cos(o)*s+(r[0].y+i.y)/2),l}function j(e){let t="",n="";for(let r of e)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}(0,s.K)($,"calcTerminalLabelPosition"),(0,s.K)(j,"getStylesFromArray");var G=0,z=(0,s.K)(()=>(G++,"id-"+Math.random().toString(36).substr(2,12)+"-"+G),"generateId");function V(e){let t="",n="0123456789abcdef",r=n.length;for(let i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*r));return t}(0,s.K)(V,"makeRandomHex");var K=(0,s.K)(e=>V(e.length),"random"),W=(0,s.K)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),q=(0,s.K)(function(e,t){let n=t.text.replace(i.Y2.lineBreakRegex," "),[,r]=ei(t.fontSize),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.style("text-anchor",t.anchor),a.style("font-family",t.fontFamily),a.style("font-size",r),a.style("font-weight",t.fontWeight),a.attr("fill",t.fill),void 0!==t.class&&a.attr("class",t.class);let s=a.append("tspan");return s.attr("x",t.x+2*t.textMargin),s.attr("fill",t.fill),s.text(n),a},"drawSimpleText"),Y=c((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),i.Y2.lineBreakRegex.test(e)))return e;let r=e.split(" ").filter(Boolean),a=[],s="";return r.forEach((e,i)=>{let o=Z(`${e} `,n),l=Z(s,n);if(o>t){let{hyphenatedStrings:r,remainingWord:i}=X(e,t,"-",n);a.push(s,...r),s=i}else l+o>=t?(a.push(s),s=e):s=[s,e].filter(Boolean).join(" ");i+1===r.length&&a.push(s)}),a.filter(e=>""!==e).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),X=c((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);let i=[...e],a=[],s="";return i.forEach((e,o)=>{let l=`${s}${e}`;if(Z(l,r)>=t){let e=i.length===o+1,t=`${l}${n}`;a.push(e?l:t),s=""}else s=l}),{hyphenatedStrings:a,remainingWord:s}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Q(e,t){return J(e,t).height}function Z(e,t){return J(e,t).width}(0,s.K)(Q,"calculateTextHeight"),(0,s.K)(Z,"calculateTextWidth");var J=c((e,t)=>{let{fontSize:n=12,fontFamily:r="Arial",fontWeight:a=400}=t;if(!e)return{width:0,height:0};let[,s]=ei(n),o=e.split(i.Y2.lineBreakRegex),c=[],u=(0,l.Ltv)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let h=u.append("svg");for(let e of["sans-serif",r]){let t=0,n={width:0,height:0,lineHeight:0};for(let r of o){let i=W();i.text=r||A;let o=q(h,i).style("font-size",s).style("font-weight",a).style("font-family",e),l=(o._groups||o)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}c.push(n)}h.remove();let d=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[d]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),ee=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{(0,s.K)(this,"InitIDGenerator")}},et=(0,s.K)(function(e){return r=r||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),r.innerHTML=e,unescape(r.textContent)},"entityDecode");function en(e){return"str"in e}(0,s.K)(en,"isDetailedError");var er=(0,s.K)((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append("text").text(r).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-n).attr("class",t)},"insertTitle"),ei=(0,s.K)(e=>{if("number"==typeof e)return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function ea(e,t){return function(e,...t){return function(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++)i=function e(t,n,r,i){if((0,h.s)(t)&&(t=Object(t)),null==n||"object"!=typeof n)return t;if(i.has(n))return function(e){if((0,h.s)(e))return e;if(Array.isArray(e)||(0,d.i)(e)||e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return(t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause})).stack=e.stack,Object.assign(t,e),t}return"u">typeof File&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}(i.get(n));if(i.set(n,t),Array.isArray(n)){n=n.slice();for(let e=0;e<n.length;e++)n[e]=n[e]??void 0}let a=[...Object.keys(n),...p(n)];for(let o=0;o<a.length;o++){let l=a[o];if("__proto__"===l)continue;let c=n[l],u=t[l];if((0,E.N)(c)&&(c={...c}),(0,E.N)(u)&&(u={...u}),(0,f.P)(c)&&(c=x(c)),Array.isArray(c))if(Array.isArray(u)){let e=[],t=Reflect.ownKeys(u);for(let n=0;n<t.length;n++){let r=t[n];e[r]=u[r]}u=e}else{var s;if(v(s=u)&&(0,_.X)(s)){let e=[];for(let t=0;t<u.length;t++)e[t]=u[t];u=e}else u=[]}let h=r(u,c,l,t,n,i);void 0!==h?t[l]=h:Array.isArray(c)||v(u)&&v(c)&&(m(u)||m(c)||(0,T.i)(u)||(0,T.i)(c))?t[l]=e(u,c,r,i):null==u&&m(c)?t[l]=e({},c,r,i):null==u&&(0,T.i)(c)?t[l]=x(c):(void 0===u||void 0!==c)&&(t[l]=c)}return t}(i,n[e],r,new Map);return i}(e,...t,u)}({},e,t)}(0,s.K)(ea,"cleanAndMerge");var es={assignWithDepth:i.hH,wrapLabel:Y,calculateTextHeight:Q,calculateTextWidth:Z,calculateTextDimensions:J,cleanAndMerge:ea,detectInit:C,detectDirective:N,isSubstringInArray:I,interpolateToCurve:L,calcLabelPosition:F,calcCardinalityPosition:H,calcTerminalLabelPosition:$,formatUrl:R,getStylesFromArray:j,generateId:z,random:K,runFunc:D,entityDecode:et,insertTitle:er,isLabelCoordinateInPath:eh,parseFontSize:ei,InitIDGenerator:ee},eo=(0,s.K)(function(e){let t=e;return(t=(t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl\xb0\xb0"+t+"\xb6\xdf":"fl\xb0"+t+"\xb6\xdf"})},"encodeEntities"),el=(0,s.K)(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),ec=(0,s.K)((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:""}${e}_${t}_${n}${i?`_${i}`:""}`,"getEdgeId");function eu(e){return e??null}function eh(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}(0,s.K)(eu,"handleUndefinedAttr"),(0,s.K)(eh,"isLabelCoordinateInPath")},4795:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("file-plus-corner",[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 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 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]])},5733:(e,t,n)=>{"use strict";n.d(t,{WB:()=>l,_8:()=>u,hI:()=>c});var r=n(10813);function i(e,t,n,r){return{left:e,top:t,right:n,bottom:r,x:e,y:t,width:n-e,height:r-t}}function a(e){let t,n=[],r=1/0,a=1/0,s=-1/0,o=-1/0;for(let i of Array.from(e).sort((e,t)=>e.top-t.top)){if(r=Math.min(r,i.left),a=Math.min(a,i.top),s=Math.max(s,i.right),o=Math.max(o,i.bottom),!t||i.top-t.top>t.height/2)n.push({left:i.left,top:i.top,right:i.right,bottom:i.bottom,width:i.width,height:i.height});else{let e=n[n.length-1];e.left=Math.min(e.left,i.left),e.right=Math.max(e.right,i.right),e.bottom=Math.max(e.bottom,i.bottom),e.width=e.right-e.left,e.height=e.bottom-e.top}t=i}return{lines:n,fallback:i(r,a,s,o)}}function s(e,t,n){return e.findIndex(e=>t>e.left-2&&t<e.right+2&&n>e.top-2&&n<e.bottom+2)}function o(e){return i(e.left,e.top,e.right,e.bottom)}function l(e,t){function n(n){t||c(e,n.currentTarget,n.clientX,n.clientY)}return{onFocus(){e.current=void 0},onMouseEnter:n,onMouseMove:n}}function c(e,t,n,r){let i=function(e,t,n){let{lines:r}=a(e.getClientRects());if(r.length<2)return;let i=s(r,t,n);return{x:t,y:n,lineIndex:-1===i?void 0:i,element:e}}(t,n,r);return e.current=i,i}function u(e){return{name:"inline",async fn(t){let n=t.elements.reference;if("function"!=typeof n?.getClientRects)return{};let l="contextElement"in n&&n.contextElement?n.contextElement:(0,r.vq)(n)?n:void 0,c=e.current,u=c?.element===n||c?.element===l?c:void 0,h=function(e,t,n){let{lines:r,fallback:l}=a(e.getClientRects());if(r.length<2)return null;let c=n?.x,u=n?.y,h=t[0];if(n?.lineIndex!=null&&r[n.lineIndex])return o(r[n.lineIndex]);if(null!=c&&null!=u){let e=s(r,c,u);if(-1!==e)return o(r[e])}if(2===r.length&&r[0].left>r[1].right&&null!=c&&null!=u)return l;if("t"===h||"b"===h){let e=r[0],t=r[r.length-1],n="t"===h?e:t;return i(n.left,e.top,n.right,t.bottom)}let d="l"===h,p=r[0].left,f=r[0].right,m=d?1/0:-1/0,g=r[0],y=r[0];for(let e of r){p=Math.min(p,e.left),f=Math.max(f,e.right);let t=d?e.left:e.right;d&&t<m||!d&&t>m?(m=t,g=e,y=e):t===m&&(y=e)}return i(p,g.top,f,y.bottom)}(n,t.placement,u);if(!h||"function"!=typeof t.platform.getElementRects)return{};let d=await t.platform.getElementRects({reference:{contextElement:l,getBoundingClientRect:()=>h},floating:t.elements.floating,strategy:t.strategy});return t.rects.reference.x===d.reference.x&&t.rects.reference.y===d.reference.y&&t.rects.reference.width===d.reference.width&&t.rects.reference.height===d.reference.height?{}:{reset:{rects:d}}}}}},6609:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},7010:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},7632:(e,t,n)=>{"use strict";n.d(t,{Nq:()=>s,RI:()=>c,Wg:()=>i,hq:()=>a});var r=n(39410),i=(0,r.K)((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";let n=e.x??0,r=e.y??0;return"translate("+-(n+e.width/2)+", "+-(r+e.height/2)+")"},"computeLabelTransform"),a={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},s={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function o(e,t){if(void 0===e||void 0===t)return{angle:0,deltaX:0,deltaY:0};e=l(e),t=l(t);let[n,r]=[e.x,e.y],[i,a]=[t.x,t.y],s=i-n,o=a-r;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}(0,r.K)(o,"calculateDeltaAndAngle");var l=(0,r.K)(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),c=(0,r.K)(e=>({x:(0,r.K)(function(t,n,r){let i=0,s=l(r[0]).x<l(r[r.length-1]).x?"left":"right";if(0===n&&Object.hasOwn(a,e.arrowTypeStart)){let{angle:t,deltaX:n}=o(r[0],r[1]);i=a[e.arrowTypeStart]*Math.cos(t)*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(a,e.arrowTypeEnd)){let{angle:t,deltaX:n}=o(r[r.length-1],r[r.length-2]);i=a[e.arrowTypeEnd]*Math.cos(t)*(n>=0?1:-1)}let c=Math.abs(l(t).x-l(r[r.length-1]).x),u=Math.abs(l(t).y-l(r[r.length-1]).y),h=Math.abs(l(t).x-l(r[0]).x),d=Math.abs(l(t).y-l(r[0]).y),p=a[e.arrowTypeStart],f=a[e.arrowTypeEnd];if(c<f&&c>0&&u<f){let e=f+1-c;e*="right"===s?-1:1,i-=e}if(h<p&&h>0&&d<p){let e=p+1-h;e*="right"===s?-1:1,i+=e}return l(t).x+i},"x"),y:(0,r.K)(function(t,n,r){let i=0,s=l(r[0]).y<l(r[r.length-1]).y?"down":"up";if(0===n&&Object.hasOwn(a,e.arrowTypeStart)){let{angle:t,deltaY:n}=o(r[0],r[1]);i=a[e.arrowTypeStart]*Math.abs(Math.sin(t))*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(a,e.arrowTypeEnd)){let{angle:t,deltaY:n}=o(r[r.length-1],r[r.length-2]);i=a[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(n>=0?1:-1)}let c=Math.abs(l(t).y-l(r[r.length-1]).y),u=Math.abs(l(t).x-l(r[r.length-1]).x),h=Math.abs(l(t).y-l(r[0]).y),d=Math.abs(l(t).x-l(r[0]).x),p=a[e.arrowTypeStart],f=a[e.arrowTypeEnd];if(c<f&&c>0&&u<f){let e=f+1-c;e*="up"===s?-1:1,i-=e}if(h<p&&h>0&&d<p){let e=p+1-h;e*="up"===s?-1:1,i+=e}return l(t).y+i},"y")}),"getLineFunctionsWithOffset")},8356:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("clock-3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]])},8581:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});var r=n(54967);function i(e){return{checked:t=>e.indeterminate?{}:t?{"data-checked":""}:{"data-unchecked":""},...r.dc}}},8675:(e,t,n)=>{"use strict";n.d(t,{V:()=>i,r:()=>r});let r=600,i=300},8934:(e,t,n)=>{"use strict";n.d(t,{r:()=>s,w:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(49));return e}},9922:(e,t,n)=>{"use strict";let r,i,a;n.d(t,{PY1:()=>aO});let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set([...s,"pathRotation"]),l=(e,t,n)=>n>t?t:n<e?e:n,c={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},u={...c,transform:e=>l(0,1,e)},h={...c,default:1},d=e=>Math.round(1e5*e)/1e5,p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,f=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m=(e,t)=>n=>!!("string"==typeof n&&f.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),g=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,a,s,o]=r.match(p);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==o?parseFloat(o):1}},y={...c,transform:e=>Math.round(l(0,255,e))},b={test:m("rgb","red"),parse:g("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+y.transform(e)+", "+y.transform(t)+", "+y.transform(n)+", "+d(u.transform(r))+")"},k={test:m("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:b.transform},x=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),E=x("deg"),v=x("%"),_=x("px"),T=x("vh"),A=x("vw"),w={...v,parse:e=>v.parse(e)/100,transform:e=>v.transform(100*e)},S={test:m("hsl","hue"),parse:g("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+v.transform(d(t))+", "+v.transform(d(n))+", "+d(u.transform(r))+")"},C={test:e=>b.test(e)||k.test(e)||S.test(e),parse:e=>b.test(e)?b.parse(e):S.test(e)?S.parse(e):k.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?b.transform(e):S.transform(e),getAnimatableNone:e=>{let t=C.parse(e);return t.alpha=0,C.transform(t)}},N=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,M="number",I="color",L=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function R(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0,s=t.replace(L,e=>(C.test(e)?(r.color.push(a),i.push(I),n.push(C.parse(e))):e.startsWith("var(")?(r.var.push(a),i.push("var"),n.push(e)):(r.number.push(a),i.push(M),n.push(parseFloat(e))),++a,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function D({split:e,types:t}){let n=e.length;return r=>{let i="";for(let a=0;a<n;a++)if(i+=e[a],void 0!==r[a]){let e=t[a];e===M?i+=d(r[a]):e===I?i+=C.transform(r[a]):i+=r[a]}return i}}let O={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(p)?.length||0)+(e.match(N)?.length||0)>0},parse:function(e){return R(e).values},createTransformer:function(e){return D(R(e))},getAnimatableNone:function(e){let t=R(e);return D(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:C.test(e)?C.getAnimatableNone(e):e)(e,t.split[n])))}},P=new Set(["brightness","contrast","saturate","opacity"]);function F(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(p)||[];if(!r)return e;let i=n.replace(r,""),a=+!!P.has(t);return r!==n&&(a*=100),t+"("+a+i+")"}let B=/\b([a-z-]*)\(.*?\)/gu,U={...O,getAnimatableNone:e=>{let t=e.match(B);return t?t.map(F).join(" "):e}},H={...O,getAnimatableNone:e=>{let t=O.parse(e);return O.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},$={...c,transform:Math.round},j={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,inset:_,insetBlock:_,insetBlockStart:_,insetBlockEnd:_,insetInline:_,insetInlineStart:_,insetInlineEnd:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,paddingBlock:_,paddingBlockStart:_,paddingBlockEnd:_,paddingInline:_,paddingInlineStart:_,paddingInlineEnd:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,marginBlock:_,marginBlockStart:_,marginBlockEnd:_,marginInline:_,marginInlineStart:_,marginInlineEnd:_,fontSize:_,backgroundPositionX:_,backgroundPositionY:_,rotate:E,pathRotation:E,rotateX:E,rotateY:E,rotateZ:E,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:E,skewX:E,skewY:E,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:u,originX:w,originY:w,originZ:_,zIndex:$,fillOpacity:u,strokeOpacity:u,numOctaves:$},G={...j,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:U,WebkitFilter:U,mask:H,WebkitMask:H},z=e=>G[e],V=()=>({translate:0,scale:1,origin:0,originPoint:0}),K=()=>({x:V(),y:V()}),W=()=>({min:0,max:0}),q=()=>({x:W(),y:W()}),Y=e=>!!(e&&e.getVelocity),X=new Set(["width","height","top","left","right","bottom",...s]),Q=e=>t=>t.test(e),Z=[c,_,v,E,A,T,{test:e=>"auto"===e,parse:e=>e}],J=e=>Z.find(Q(e));n(21966);let ee=()=>{},et=()=>{},en=e=>t=>"string"==typeof t&&t.startsWith(e),er=en("--"),ei=en("var(--"),ea=e=>!!ei(e)&&es.test(e.split("/*")[0].trim()),es=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eo(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let el=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ec=e=>180*e/Math.PI,eu=e=>ed(ec(Math.atan2(e[1],e[0]))),eh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eu,rotateZ:eu,skewX:e=>ec(Math.atan(e[1])),skewY:e=>ec(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ed=e=>((e%=360)<0&&(e+=360),e),ep=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ef=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),em={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ep,scaleY:ef,scale:e=>(ep(e)+ef(e))/2,rotateX:e=>ed(ec(Math.atan2(e[6],e[5]))),rotateY:e=>ed(ec(Math.atan2(-e[2],e[0]))),rotateZ:eu,rotate:eu,skewX:e=>ec(Math.atan(e[4])),skewY:e=>ec(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eg(e){return+!!e.includes("scale")}function ey(e,t){let n,r;if(!e||"none"===e)return eg(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=em,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=eh,r=t}if(!r)return eg(t);let a=n[t],s=r[1].split(",").map(eb);return"function"==typeof a?a(s):s[a]}function eb(e){return parseFloat(e.trim())}let ek=e=>e===c||e===_,ex=new Set(["x","y","z"]),eE=s.filter(e=>!ex.has(e)),ev={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ey(t,"x"),y:(e,{transform:t})=>ey(t,"y")};ev.translateX=ev.x,ev.translateY=ev.y;let e_=e=>e,eT={},eA=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ew(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=eA.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function o(t){a.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,i=!1,s=!1)=>{let o=s&&r?t:n;return i&&a.add(e),o.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(o),t.clear(),r=!1,i&&(i=!1,l.process(e))}};return l}(a),e),{}),{setup:o,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:d,render:p,postRender:f}=s,m=()=>{let a=eT.useManualTiming,s=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,o.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),p.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:eA.reduce((t,a)=>{let o=s[a];return t[a]=(t,a=!1,s=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(m)),o.schedule(t,a,s)),t},{}),cancel:e=>{for(let t=0;t<eA.length;t++)s[eA[t]].cancel(e)},state:i,steps:s}}let{schedule:eS,cancel:eC,state:eN,steps:eM}=ew("u">typeof requestAnimationFrame?requestAnimationFrame:e_,!0),eI=new Set,eL=!1,eR=!1,eD=!1;function eO(){if(eR){let e=Array.from(eI).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],eE.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eR=!1,eL=!1,eI.forEach(e=>e.complete(eD)),eI.clear()}function eP(){eI.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eR=!0)})}class eF{constructor(e,t,n,r,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(eI.add(this),eL||(eL=!0,eS.read(eP),eS.resolveKeyframes(eO))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,a);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=a),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eI.delete(this)}cancel(){"scheduled"===this.state&&(eI.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eB=new Set([U,H]);function eU(e,t){let n=z(e);return eB.has(n)||(n=O),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let eH=new Set(["auto","none","0"]);class e$ extends eF{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&ea(r=r.trim())){let i=function e(t,n,r=1){et(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,a]=function(e){let t=el.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return ea(a)?e(a,n,r+1):a}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!X.has(n)||2!==e.length)return;let[r,i]=e,a=J(r),s=J(i);if(eo(r)!==eo(i)&&ev[n]){this.needsMeasurement=!0;return}if(a!==s)if(ek(a)&&ek(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else ev[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!eH.has(t)&&R(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=eU(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ev[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=ev[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let ej=e=>1e3*e;function eG(e,t){-1===e.indexOf(t)&&e.push(t)}function ez(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class eV{constructor(){this.subscriptions=[]}add(e){return eG(this.subscriptions,e),()=>ez(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eK(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function eW(e){let t;return()=>(void 0===t&&(t=e()),t)}let eq={};function eY(e,t){let n=eW(e);return()=>eq[t]??n()}let eX=eY(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),eQ=e=>null!==e;function eZ(e,{repeat:t,repeatType:n="loop"},r,i=1){let a=e.filter(eQ),s=i<0||t&&"loop"!==n&&t%2==1?0:a.length-1;return s&&void 0!==r?r:a[s]}class eJ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e0=e=>Array.isArray(e)&&"number"==typeof e[0],e1=eY(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),e2=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},e5=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,e3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e5([0,.65,.55,1]),circOut:e5([.55,0,1,.45]),backIn:e5([.31,.01,.66,-.59]),backOut:e5([.33,1.53,.69,.99])};function e6(e){return"function"==typeof e&&"applyToOptions"in e}class e9 extends eJ{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:s,onComplete:o}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,et(e.type);const l=function({type:e,...t}){return e6(e)&&e1()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:l}={},c){let u={[t]:n};l&&(u.offset=l);let h=function e(t,n){if(t)return"function"==typeof t?e1()?e2(t,n):"ease-out":e0(t)?e5(t):Array.isArray(t)?t.map(t=>e(t,n)||e3.easeOut):e3[t]}(o,i);Array.isArray(h)&&(u.easing=h);let d={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"};return c&&(d.pseudoElement=c),e.animate(u,d)}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=eZ(r,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(e),eK(t,n,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ej(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&eX())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),e_):r(this)}}let e4=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:e8}=ew(queueMicrotask,!1);function e7(){r=void 0}let te={now:()=>(void 0===r&&te.set(eN.isProcessing||eT.useManualTiming?eN.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(e7)}},tt=(e,t)=>t?1e3/t*e:0,tn;class tr{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=te.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=te.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eV);let n=this.events[e].add(t);return"change"===e?()=>{n(),eS.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return tn&&tn.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=te.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ti(e,t){return new tr(e,t)}let ta=[...Z,C,O],ts=new WeakMap;function to(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tl(e){return"string"==typeof e||Array.isArray(e)}let tc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tu=["initial",...tc];function th(e){return to(e.animate)||tu.some(t=>tl(e[t]))}function td(e){return!!(th(e)||e.variants)}var tp=n(85784);function tf(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tm(e,t,n,r){if("function"==typeof t){let[i,a]=tf(r);t=t(void 0!==n?n:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,a]=tf(r);t=t(void 0!==n?n:e.custom,i,a)}return t}var tg=n(37847);let ty=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tb={};class tk{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eF,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=te.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eS.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=th(t),this.isVariantNode=td(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in h){const t=h[e];void 0!==l[e]&&Y(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ts.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tg.r.current||(0,tp.Uu)(),this.shouldReduceMotion=tg.O.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eC(this.notifyUpdate),eC(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&e4.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:s}=t.accelerate,o=new e9({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:ej(s)}),l=n(o);this.valueSubscriptions.set(e,()=>{l(),o.cancel()});return}let r=o.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eS.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tb){let t=tb[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ty.length;t++){let n=ty[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Y(i))e.addValue(r,i);else if(Y(a))e.addValue(r,ti(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ti(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ti(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,i;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let r;r=n,!ta.find(Q(r))&&O.test(t)&&(n=eU(e,t))}this.setBaseTarget(e,Y(n)?n.get():n)}return Y(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=tm(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||Y(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new eV),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){e8.render(this.render)}}class tx extends tk{constructor(){super(...arguments),this.KeyframeResolver=e$}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Y(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tE(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tv=(e,t)=>t&&"number"==typeof e?t.transform(e):e,t_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tT=s.length;function tA(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,l=!1,c=!1;for(let e in t){let n=t[e];if(o.has(e)){l=!0;continue}if(er(e)){i[e]=n;continue}{let t=tv(n,j[e]);e.startsWith("origin")?(c=!0,a[e]=t):r[e]=t}}if(!t.transform&&(l||n?r.transform=function(e,t,n){let r="",i=!0;for(let a=0;a<tT;a++){let o=s[a],l=e[o];if(void 0===l)continue;let c=!0;if("number"==typeof l)c=l===+!!o.startsWith("scale");else{let e=parseFloat(l);c=o.startsWith("scale")?1===e:0===e}if(!c||n){let e=tv(l,j[o]);if(!c){i=!1;let t=t_[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${tv(a,j.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}let tw={offset:"stroke-dashoffset",array:"stroke-dasharray"},tS={offset:"strokeDashoffset",array:"strokeDasharray"},tC=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tN(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},l,c,u){if(tA(e,o,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:d}=e;for(let e of tC)void 0!==h[e]&&(d[e]=h[e],delete h[e]);(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete h.transformBox),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?tw:tS;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}(h,i,a,s,!1)}let tM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tI=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tL(e,{style:t,vars:n},r,i){let a,s=e.style;for(a in t)s[a]=t[a];for(a in i?.applyProjectionStyles(s,r),n)s.setProperty(a,n[a])}let tR=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function tD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tO={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!_.test(e))return e;else e=parseFloat(e);let n=tD(e,t.target.x),r=tD(e,t.target.y);return`${n}% ${r}%`}},tP=(e,t,n)=>e+(t-e)*n,tF={borderRadius:{...tO,applyTo:[...tR]},borderTopLeftRadius:tO,borderTopRightRadius:tO,borderBottomLeftRadius:tO,borderBottomRightRadius:tO,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=O.parse(e);if(r.length>5)return e;let i=O.createTransformer(e),a=+("number"!=typeof r[0]),s=n.x.scale*t.x,o=n.y.scale*t.y;r[0+a]/=s,r[1+a]/=o;let l=tP(s,o,.5);return"number"==typeof r[2+a]&&(r[2+a]/=l),"number"==typeof r[3+a]&&(r[3+a]/=l),i(r)}}};function tB(e,{layout:t,layoutId:n}){return o.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tF[e]||"opacity"===e)}function tU(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Y(r[t])||i&&Y(i[t])||tB(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function tH(e,t,n){let r=tU(e,t,n);for(let n in e)(Y(e[n])||Y(t[n]))&&(r[-1!==s.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class t$ extends tx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(o.has(t)){let e=z(t);return e&&e.default||0}if(tC.includes(t)){let n=getComputedStyle(e)[t];if("string"==typeof n&&n)return n.trim()}return t=tM.has(t)?t:tE(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tH(e,t,n)}build(e,t,n){tN(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in tL(e,t,void 0,r),t.attrs)e.setAttribute(tM.has(n)?n:tE(n),t.attrs[n])}mount(e){this.isSVGTag=tI(e.tagName),super.mount(e)}}function tj({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tG(e){return void 0===e||1===e}function tz({scale:e,scaleX:t,scaleY:n}){return!tG(e)||!tG(t)||!tG(n)}function tV(e){return tz(e)||tK(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tK(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function tW(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function tq(e,t=0,n=1,r,i){e.min=tW(e.min,t,n,r,i),e.max=tW(e.max,t,n,r,i)}function tY(e,{x:t,y:n}){tq(e.x,t.translate,t.scale,t.originPoint),tq(e.y,n.translate,n.scale,n.originPoint)}function tX(e,t){e.min+=t,e.max+=t}function tQ(e,t,n,r,i=.5){let a=tP(e.min,e.max,i);tq(e,t,n,a,r)}function tZ(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function tJ(e,t,n){let r=n??e;tQ(e.x,tZ(t.x,r.x),t.scaleX,t.scale,t.originX),tQ(e.y,tZ(t.y,r.y),t.scaleY,t.scale,t.originY)}function t0(e,t){return tj(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class t1 extends tx{constructor(){super(...arguments),this.type="html",this.renderInstance=tL}mount(e){et(e.style),super.mount(e)}readValueFromInstance(e,t){if(o.has(t))return this.projection?.isProjecting?eg(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return ey(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(er(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t0(e,t)}build(e,t,n){tA(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tU(e,t,n)}}var t2=n(69266);let t5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function t3(e){if("string"!=typeof e||e.includes("-"));else if(t5.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var t6=n(7962),t9=n(82544);let t4=(0,t2.createContext)({strict:!1});var t8=n(55263);let t7=(0,t2.createContext)({});function ne(e){return Array.isArray(e)?e.join(" "):e}let nt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nn(e,t,n){for(let r in t)Y(t[r])||tB(r,n)||(e[r]=t[r])}let nr=()=>({...nt(),attrs:{}}),ni=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function na(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ni.has(e)}function ns(e){return Y(e)?e.get():e}var no=n(35182),nl=n(83864);let nc=e=>(t,n)=>{let r=(0,t2.useContext)(t7),i=(0,t2.useContext)(no.t),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=ns(a[e]);let{initial:s,animate:o}=e,l=th(e),c=td(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===o&&(o=t.animate));let u=!!n&&!1===n.initial,h=(u=u||!1===s)?o:s;if(h&&"boolean"!=typeof h&&!to(h)){let t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){let r=tm(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?a():(0,nl.M)(a)},nu=nc({scrapeMotionValuesFromProps:tU,createRenderState:nt}),nh=nc({scrapeMotionValuesFromProps:tH,createRenderState:nr}),nd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},np=!1;function nf(){return!function(){if(np)return;let e={};for(let t in nd)e[t]={isEnabled:e=>nd[t].some(t=>!!e[t])};tb=e,np=!0}(),tb}let nm=Symbol.for("motionComponentSymbol"),ng="data-"+tE("framerAppearId"),ny=(0,t2.createContext)({});function nb(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var nk=n(59863);function nx(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&function(e){let t=nf();for(let n in e)t[n]={...t[n],...e[n]};tb=t}(r);let a=n?"svg"===n:t3(e),s=a?nh:nu;function o(n,r){var o;let l,c,u,h={...(0,t2.useContext)(t8.Q),...n,layoutId:function({layoutId:e}){let t=(0,t2.useContext)(t9.L).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:d,isValidProp:p}=h,f=function(e){let{initial:t,animate:n}=function(e,t){if(th(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tl(t)?t:void 0,animate:tl(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t2.useContext)(t7));return(0,t2.useMemo)(()=>({initial:t,animate:n}),[ne(t),ne(n)])}(n),m=s(n,d);if(!d&&"u">typeof window){(0,t2.useContext)(t4).strict;let t=function(e){let{drag:t,layout:n}=nf();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(h);l=t.MeasureLayout,f.visualElement=function(e,t,n,r,i,a){let{visualElement:s}=(0,t2.useContext)(t7),o=(0,t2.useContext)(t4),l=(0,t2.useContext)(no.t),c=(0,t2.useContext)(t8.Q),u=c.reducedMotion,h=c.skipAnimations,d=(0,t2.useRef)(null),p=(0,t2.useRef)(!1);r=r||o.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:h,isSVG:a}),p.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let f=d.current,m=(0,t2.useContext)(ny);f&&!f.projection&&i&&("html"===f.type||"svg"===f.type)&&function(e,t,n,r){let{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&nb(o),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}(d.current,n,i,m);let g=(0,t2.useRef)(!1);(0,t2.useInsertionEffect)(()=>{f&&g.current&&f.update(n,l)});let y=n[ng],b=(0,t2.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return(0,nk.E)(()=>{p.current=!0,f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),b.current&&f.animationState&&f.animationState.animateChanges())}),(0,t2.useEffect)(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),b.current=!1),f.enteringChildren=void 0)}),f}(e,m,h,i,t.ProjectionNode,a)}return(0,t6.jsxs)(t7.Provider,{value:f,children:[l&&f.visualElement?(0,t6.jsx)(l,{visualElement:f.visualElement,...h}):null,function(e,t,n,{latestValues:r},i,a=!1,s,o){let l=(s??t3(e)?function(e,t,n,r){let i=(0,t2.useMemo)(()=>{let n=nr();return tN(n,t,tI(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};nn(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},a=(n=e.style||{},nn(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,t2.useMemo)(()=>{let n=nt();return tA(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=a,i})(t,r,i,e),c=function(e,t,n,r){let i={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&!Y(e[a])&&((a.startsWith("on")?!na(a):r?.(a)??!na(a))||!0===n&&na(a)||!t&&!na(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}(t,"string"==typeof e,a,o),u=e!==t2.Fragment?{...c,...l,ref:n}:{},{children:h}=t,d=(0,t2.useMemo)(()=>Y(h)?h.get():h,[h]);return(0,t2.createElement)(e,{...u,children:d})}(e,n,(o=f.visualElement,c=(0,t2.useRef)(r),(0,t2.useInsertionEffect)(()=>{c.current=r}),u=(0,t2.useRef)(null),(0,t2.useCallback)(e=>{e&&m.onMount?.(e),o&&(e?o.mount(e):o.unmount());let t=c.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(u.current=n)}else u.current?(u.current(),u.current=null):t(e);else t&&(t.current=e)},[o])),m,d,t,a,p)]})}o.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,t2.forwardRef)(o);return l[nm]=e,l}class nE{constructor(e){this.isMounted=!1,this.node=e}update(){}}function nv(e,t,n){let r=e.getProps();return tm(r,t,void 0!==n?n:r.custom,e)}function n_(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function nT(e,t){let n=e?.[t]??e?.default??e;return n!==e?n_(n,e):n}let nA=e=>Array.isArray(e);function nw(e,t){let n=e.getValue("willChange");if(Y(n)&&n.add)return n.add(t);if(!n&&eT.WillChange){let n=new eT.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let nS=(...e)=>e.reduce((e,t)=>n=>t(e(n)));function nC(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nN(e,t){return n=>n>0?t:e}let nM=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nI=[k,b,S];function nL(e){let t=nI.find(t=>t.test(e));if(ee(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===S&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,a=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,o=2*n-r;i=nC(o,r,e+1/3),a=nC(o,r,e),s=nC(o,r,e-1/3)}else i=a=s=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*s),alpha:r}}(n)),n}let nR=(e,t)=>{let n=nL(e),r=nL(t);if(!n||!r)return nN(e,t);let i={...n};return e=>(i.red=nM(n.red,r.red,e),i.green=nM(n.green,r.green,e),i.blue=nM(n.blue,r.blue,e),i.alpha=tP(n.alpha,r.alpha,e),b.transform(i))},nD=new Set(["none","hidden"]);function nO(e,t){return n=>tP(e,t,n)}function nP(e){return"number"==typeof e?nO:"string"==typeof e?ea(e)?nN:C.test(e)?nR:nU:Array.isArray(e)?nF:"object"==typeof e?C.test(e)?nR:nB:nN}function nF(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nP(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function nB(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=nP(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let nU=(e,t)=>{let n=O.createTransformer(t),r=R(e),i=R(t);if(!(r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length))return ee(`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),nN(e,t);if(nD.has(e)&&!i.values.length||nD.has(t)&&!r.values.length)return nD.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return nS(nF(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],s=e.indexes[a][r[a]],o=e.values[s]??0;n[i]=o,r[a]++}return n}(r,i),i.values),n)};function nH(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tP(e,t,n):nP(e)(e,t)}let n$=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eS.update(t,e),stop:()=>eC(t),now:()=>eN.isProcessing?eN.timestamp:te.now()}};function nj(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let nG=.01,nz=2,nV=.005,nK=.5;function nW(e,t){return e*Math.sqrt(1-t*t)}let nq=["duration","bounce"],nY=["stiffness","damping","mass"];function nX(e,t){return t.some(t=>void 0!==e[t])}function nQ(e=.3,t=.3){let n,r,i,a,s,o,c="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:h}=c,d=c.keyframes[0],p=c.keyframes[c.keyframes.length-1],f={done:!1,value:d},{stiffness:m,damping:g,mass:y,duration:b,velocity:k,isResolvedFromDuration:x}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!nX(e,nY)&&nX(e,nq))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*l(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,a;ee(ej(10));let s=1-t;s=l(.05,1,s),e=l(.01,10,e/1e3),s<1?(i=t=>{let r=t*s,i=r*e;return .001-(r-n)/nW(t,s)*Math.exp(-i)},a=t=>{let r=t*s*e,a=Math.pow(s,2)*Math.pow(t,2)*e,o=Math.exp(-r),l=nW(Math.pow(t,2),s);return(r*n+n-a)*o*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let o=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,a,5/e);if(e=ej(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...c,velocity:-((c.velocity||0)/1e3)}),E=k||0,v=g/(2*Math.sqrt(m*y)),_=p-d,T=Math.sqrt(m/y)/1e3,A=5>Math.abs(_);if(u||(u=A?nG:nz),h||(h=A?nV:nK),v<1)i=nW(T,v),a=(E+v*T*_)/i,n=e=>p-Math.exp(-v*T*e)*(a*Math.sin(i*e)+_*Math.cos(i*e)),s=v*T*a+_*i,o=v*T*_-a*i,r=e=>Math.exp(-v*T*e)*(s*Math.sin(i*e)+o*Math.cos(i*e));else if(1===v){n=e=>p-Math.exp(-T*e)*(_+(E+T*_)*e);let e=E+T*_;r=t=>Math.exp(-T*t)*(T*e*t-E)}else{let e=T*Math.sqrt(v*v-1);n=t=>{let n=Math.exp(-v*T*t),r=Math.min(e*t,300);return p-n*((E+v*T*_)*Math.sinh(r)+e*_*Math.cosh(r))/e};let t=(E+v*T*_)/e,i=v*T*t-_*e,a=v*T*_-t*e;r=t=>{let n=Math.exp(-v*T*t),r=Math.min(e*t,300);return n*(i*Math.sinh(r)+a*Math.cosh(r))}}let w={calculatedDuration:x&&b||null,velocity:e=>ej(r(e)),next:e=>{if(!x&&v<1){let t=Math.exp(-v*T*e),n=Math.sin(i*e),r=Math.cos(i*e),l=p-t*(a*n+_*r);return f.done=Math.abs(ej(t*(s*n+o*r)))<=u&&Math.abs(p-l)<=h,f.value=f.done?p:l,f}let t=n(e);return x?f.done=e>=b:f.done=Math.abs(ej(r(e)))<=u&&Math.abs(p-t)<=h,f.value=f.done?p:t,f},toString:()=>{let e=Math.min(nj(w),2e4),t=e2(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function nZ(e,t,n){let r=Math.max(t-5,0);return tt(n-e(r),t-r)}function nJ({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:c=.5,restSpeed:u}){let h,d,p=e[0],f={done:!1,value:p},m=n*t,g=p+m,y=void 0===s?g:s(g);y!==g&&(m=y-p);let b=e=>-m*Math.exp(-e/r),k=e=>y+b(e),x=e=>{let t=b(e),n=k(e);f.done=Math.abs(t)<=c,f.value=f.done?y:n},E=e=>{let t;if(t=f.value,void 0!==o&&t<o||void 0!==l&&t>l){var n;h=e,d=nQ({keyframes:[f.value,(n=f.value,void 0===o?l:void 0===l||Math.abs(o-n)<Math.abs(l-n)?o:l)],velocity:nZ(k,e,f.value),damping:i,stiffness:a,restDelta:c,restSpeed:u})}};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==h||(t=!0,x(e),E(e)),void 0!==h&&e>=h)?d.next(e-h):(t||x(e),f)}}}nQ.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(nj(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,nQ);return e.ease=t.ease,e.duration=ej(t.duration),e.type="keyframes",e};let n0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function n1(e,t,n,r){return e===t&&n===r?e_:i=>0===i||1===i?i:n0(function(e,t,n,r,i){let a,s,o=0;do(a=n0(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++o<12);return s}(i,0,1,e,n),t,r)}let n2=n1(.42,0,1,1),n5=n1(0,0,.58,1),n3=n1(.42,0,.58,1),n6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,n9=e=>t=>1-e(1-t),n4=n1(.33,1.53,.69,.99),n8=n9(n4),n7=n6(n8),re=e=>e>=1?1:(e*=2)<1?.5*n8(e):.5*(2-Math.pow(2,-10*(e-1))),rt=e=>1-Math.sin(Math.acos(e)),rn=n9(rt),rr=n6(rt),ri={linear:e_,easeIn:n2,easeInOut:n3,easeOut:n5,circIn:rt,circInOut:rr,circOut:rn,backIn:n8,backInOut:n7,backOut:n4,anticipate:re},ra=e=>{if(e0(e)){et(e.length);let[t,n,r,i]=e;return n1(t,n,r,i)}return"string"==typeof e?(et(ri[e],`Invalid easing type '${e}'`),ri[e]):e},rs=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1};function ro({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let a,s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(ra):ra(r),o={done:!1,value:t[0]},c=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(et(t.length),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,n){let r=[],i=n||eT.mix||nH,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=nS(Array.isArray(t)?t[n]||e_:t,a)),r.push(a)}return r}(t,r,i),c=o.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=rs(e[r],e[r+1],n);return o[r](i)};return n?t=>u(l(e[0],e[a-1],t)):u}((i=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=rs(0,t,r);e.push(tP(n,1,i))}}(a=[0],t.length-1),a),i.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||n3).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=c(t),o.done=t>=e,o)}}let rl={decay:nJ,inertia:nJ,tween:ro,keyframes:ro,spring:nQ};function rc(e){"string"==typeof e.type&&(e.type=rl[e.type])}let ru=e=>e/100;class rh extends eJ{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==te.now()&&this.tick(te.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rc(e);let{type:t=ro,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:s}=e,o=t||ro;o!==ro&&"number"!=typeof s[0]&&(this.mixKeyframes=nS(ru,nH(s[0],s[1])),s=[0,100]);let l=o({...e,keyframes:s});"mirror"===i&&(this.mirroredGenerator=o({...e,keyframes:[...s].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=nj(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:c}=this;if(null===this.startTime)return r.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:p,repeatDelay:f,type:m,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let b=this.currentTime-u*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let x=this.currentTime,E=r;if(d){let e=Math.min(this.currentTime,i)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===p?(n=1-n,f&&(n-=f/o)):"mirror"===p&&(E=s)),x=l(0,1,n)*o}k?(this.delayState.value=h[0],n=this.delayState):n=E.next(x),a&&!k&&(n.value=a(n.value));let{done:v}=n;k||null===c||(v=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&v);return _&&m!==nJ&&(n.value=eZ(h,this.options,y,this.speed)),g&&g(n.value),_&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=ej(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return nZ(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(te.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=n$,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(te.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let rd={anticipate:re,backInOut:n7,circInOut:rr};class rp extends e9{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rd&&(e.ease=rd[e.ease])}(e),rc(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new rh({...a,autoplay:!1}),o=Math.max(10,te.now()-this.startTime),c=l(0,10,o-10),u=s.sample(o).value,{name:h}=this.options;i&&h&&eK(i,h,u),t.setWithVelocity(s.sample(Math.max(0,o-c)).value,u,c),s.stop()}}let rf=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(O.test(e)||"0"===e)&&!e.startsWith("url("));function rm(e){e.duration=0,e.type="keyframes"}let rg=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,ry=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rb=eW(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rk extends eJ{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",keyframes:s,name:o,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=te.now();const h={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:o,motionValue:l,element:c,...u},d=c?.KeyframeResolver||eF;this.keyframeResolver=new d(s,(e,t,n)=>this.onKeyframesResolved(e,t,h,!n),o,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let i;this.keyframeResolver=void 0;let{name:a,type:s,velocity:o,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=te.now();let h=!0;!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],s=rf(i,t),o=rf(a,t);return ee(`You are trying to animate ${t} from "${i}" to "${a}". "${s?a:i}" is not an animatable value.`),!!s&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||e6(n))&&r)}(e,a,s,o)&&(h=!1,(eT.instantAnimations||!l)&&u?.(eZ(e,n,t)),e[0]=e[e.length-1],rm(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=h&&!c&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s,keyframes:o}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:c,transformTemplate:u}=t.owner.getProps();return rb()&&n&&(e4.has(n)||ry.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&rg.test(e[t]))return!0;return!1}(o))&&("transform"!==n||!u)&&!c&&!r&&"mirror"!==i&&0!==a&&"inertia"!==s}(d),f=d.motionValue?.owner?.current;if(p)try{i=new rp({...d,element:f})}catch{i=new rh(d)}else i=new rh(d);i.finished.then(()=>{this.notifyFinished()}).catch(e_),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eD=!0,eP(),eO(),eD=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rx={type:"spring",stiffness:500,damping:25,restSpeed:10},rE={type:"keyframes",duration:.8},rv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},r_=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),rT=(e,t,n,r={},i,a)=>s=>{let l=nT(r,e)||{},c=l.delay||r.delay||0,{elapsed:u=0}=r;u-=ej(c);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:i};!function(e){for(let t in e)if(!r_.has(t))return!0;return!1}(l)&&Object.assign(h,((e,{keyframes:t})=>t.length>2?rE:o.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rx:rv)(e,h)),h.duration&&(h.duration=ej(h.duration)),h.repeatDelay&&(h.repeatDelay=ej(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(rm(h),0===h.delay&&(d=!0)),(eT.instantAnimations||eT.skipAnimations||i?.shouldSkipAnimations||l.skipAnimations)&&(d=!0,rm(h),h.delay=0),h.allowFlatten=!l.type&&!l.ease,d&&!a&&void 0!==t.get()){let e=eZ(h.keyframes,l);if(void 0!==e)return void eS.update(()=>{h.onUpdate(e),h.onComplete()})}return l.isSync?new rh(h):new rk(h)};function rA(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:s,...o}=t,l=e.getDefaultTransition();a=a?n_(a,l):l;let c=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let h=[],d=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;for(let t in p&&p.animateVisualElement(e,o,a,n,h),o){let r=e.getValue(t,e.latestValues[t]??null),i=o[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let s={delay:n,...nT(a||{},t)};u&&(s.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!s.velocity){eS.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=e.props[ng];if(n){let e=window.MotionHandoffAnimation(n,t,eS);null!==e&&(s.startTime=e,p=!0)}}nw(e,t);let f=c??e.shouldReduceMotion;r.start(rT(t,r,i,f&&X.has(t)?{type:!1}:s,e,p));let m=r.animation;m&&h.push(m)}if(s){let t=()=>eS.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=nv(e,t)||{};for(let t in i={...i,...n}){var a;let n=nA(a=i[t])?a[a.length-1]||0:a;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ti(n))}}(e,s)});h.length?Promise.all(h).then(t):t()}return h}function rw(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,o=(s-1)*r;return"function"==typeof n?n(a,s):1===i?a*r:o-a*r}function rS(e,t,n={}){let r=nv(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(rA(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:s,staggerDirection:o}=i;return function(e,t,n=0,r=0,i=0,a=1,s){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(rS(l,t,{...s,delay:n+("function"==typeof r?0:r)+rw(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,r,a,s,o,n)}:()=>Promise.resolve(),{when:o}=i;if(!o)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===o?[a,s]:[s,a];return e().then(()=>t())}}let rC=tu.length;function rN(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let rM=[...tc].reverse(),rI=tc.length;function rL(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rR(){return{animate:rL(!0),whileInView:rL(),whileHover:rL(),whileTap:rL(),whileDrag:rL(),whileFocus:rL(),exit:rL()}}class rD extends nE{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rS(e,t,n)));else if("string"==typeof t)r=rS(e,t,n);else{let i="function"==typeof t?nv(e,t,n.custom):t;r=Promise.all(rA(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=rR(),r=!0,i=!1,a=t=>(n,r)=>{let i=nv(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function s(s){let{props:o}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<rC;e++){let r=tu[e],i=t.props[r];(tl(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},c=[],u=new Set,h={},d=1/0;for(let t=0;t<rI;t++){var p,f;let m=rM[t],g=n[m],y=void 0!==o[m]?o[m]:l[m],b=tl(y),k=m===s?g.isActive:null;!1===k&&(d=t);let x=y===l[m]&&y!==o[m]&&b;if(x&&(r||i)&&e.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...h},!g.isActive&&null===k||!y&&!g.prevProp||to(y)||"boolean"==typeof y)continue;if("exit"===m&&g.isActive&&!0!==k){g.prevResolvedValues&&(h={...h,...g.prevResolvedValues});continue}let E=(p=g.prevProp,"string"==typeof(f=y)?f!==p:!!Array.isArray(f)&&!rN(f,p)),v=E||m===s&&g.isActive&&!x&&b||t>d&&b,_=!1,T=Array.isArray(y)?y:[y],A=T.reduce(a(m),{});!1===k&&(A={});let{prevResolvedValues:w={}}=g,S={...w,...A},C=t=>{v=!0,u.has(t)&&(_=!0,u.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in S){let t=A[e],n=w[e];if(!h.hasOwnProperty(e))(nA(t)&&nA(n)?!rN(t,n)||E:t!==n)?null!=t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):g.protectedKeys[e]=!0}g.prevProp=y,g.prevResolvedValues=A,g.isActive&&(h={...h,...A}),(r||i)&&e.blockInitialAnimation&&(v=!1);let N=x&&E,M=!N||_;v&&M&&c.push(...T.map(t=>{let n={type:m};if("string"==typeof t&&(r||i)&&!N&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=nv(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=rw(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if("boolean"!=typeof o.initial){let n=nv(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let m=!!c.length;return r&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,i=!1,m?t(c):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rR(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();to(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rO=0;class rP extends nE{constructor(){super(...arguments),this.id=rO++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=nv(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let rF={x:!1,y:!1};function rB(e){return[e("x"),e("y")]}function rU(e){return e.max-e.min}function rH(e,t,n,r=.5){e.origin=r,e.originPoint=tP(t.min,t.max,e.origin),e.scale=rU(n)/rU(t),e.translate=tP(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function r$(e,t,n,r){rH(e.x,t.x,n.x,r?r.originX:void 0),rH(e.y,t.y,n.y,r?r.originY:void 0)}function rj(e,t,n,r=0){e.min=(r?tP(n.min,n.max,r):n.min)+t.min,e.max=e.min+rU(t)}function rG(e,t,n,r=0){let i=r?tP(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+rU(t)}function rz(e,t,n,r){rG(e.x,t.x,n.x,r?.x),rG(e.y,t.y,n.y,r?.y)}let rV=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rK=new Set(["INPUT","SELECT","TEXTAREA"]);function rW(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var rq=n(43079);function rY(e){return(0,rq.G)(e)&&"ownerSVGElement"in e}function rX(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let rQ=new WeakMap,rZ=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:rY(r)&&"getBBox"in r?r.getBBox()[t]:r[n],rJ=rZ("inline","width","offsetWidth"),r0=rZ("block","height","offsetHeight");function r1({target:e,borderBoxSize:t}){rQ.get(e)?.forEach(n=>{n(e,{get width(){return rJ(e,t)},get height(){return r0(e,t)}})})}function r2(e){e.forEach(r1)}let r5=new Set;function r3(e,t){let n;return"function"==typeof e?(r5.add(e),a||(a=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};r5.forEach(t=>t(e))},window.addEventListener("resize",a)),()=>{r5.delete(e),r5.size||"function"!=typeof a||(window.removeEventListener("resize",a),a=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(r2)),(n=rX(e)).forEach(e=>{let n=rQ.get(e);n||(n=new Set,rQ.set(e,n)),n.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let n=rQ.get(e);n?.delete(t),n?.size||i?.unobserve(e)})})}let r6=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function r9(e){return{point:{x:e.pageX,y:e.pageY}}}function r4(e,t,n,r){return rW(e,t,e=>r6(e)&&n(e,r9(e)),r)}let r8=({current:e})=>e?e.ownerDocument.defaultView:null,r7=(e,t)=>Math.abs(e-t),ie=new Set(["auto","scroll"]);class it{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ir(this.lastRawMoveEventInfo,this.transformPagePoint));let n=ia(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(r7(e.x,t.x)**2+r7(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:a}=n,{timestamp:s}=eN;this.history.push({...a,timestamp:s});let{onStart:o,onMove:l}=this.handlers;r||(o&&o(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ir(t,this.transformPagePoint),eS.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=ia("pointercancel"===e.type?this.lastMoveEventInfo:ir(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!r6(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;const o=ir(r9(e),this.transformPagePoint),{point:l}=o,{timestamp:c}=eN;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=t;u&&u(e,ia(o,this.history));const h={passive:!0,capture:!0};this.removeListeners=nS(r4(this.contextWindow,"pointermove",this.handlePointerMove,h),r4(this.contextWindow,"pointerup",this.handlePointerUp,h),r4(this.contextWindow,"pointercancel",this.handlePointerUp,h)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ie.has(e.overflowX)||ie.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),eS.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eC(this.updatePoint)}}function ir(e,t){return t?{point:t(e.point)}:e}function ii(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ia({point:e},t){return{point:e,delta:ii(e,is(t)),offset:ii(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=is(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>ej(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*ej(.1)&&(n=e[1]);let i=(r.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};let a={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t)}}function is(e){return e[e.length-1]}function io(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function il(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ic(e,t,n){return{min:iu(e,t),max:iu(e,n)}}function iu(e,t){return"number"==typeof e?e:e[t]||0}let ih=new WeakMap;class id{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{t&&this.snapToCursor(r9(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(rF[e])return null;else return rF[e]=!0,()=>{rF[e]=!1};return rF.x||rF.y?null:(rF.x=rF.y=!0,()=>{rF.x=rF.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rB(e=>{let t=this.getAxisMotionValue(e).get()||0;if(v.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=rU(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&eS.update(()=>i(e,t),!1,!0),nw(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),a&&eS.update(()=>a(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new it(e,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:r8(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:s}=this.getProps();s&&eS.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!im(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tP(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tP(n,e,r.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nb(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:io(e.x,n,i),y:io(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:ic(e,"left","right"),y:ic(e,"top","bottom")}}(t),r!==this.constraints&&!nb(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&rB(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nb(t))return!1;let r=t.current;et();let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let a=function(e,t,n){let r=t0(e,n),{scroll:i}=t;return i&&(tX(r.x,i.offset.x),tX(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s=(e=i.layout.layoutBox,{x:il(e.x,a.x),y:il(e.y,a.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=tj(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),o=this.constraints||{};return Promise.all(rB(s=>{if(!im(s,t,this.currentDirection))return;let l=o&&o[s]||{};(!0===a||a===s)&&(l={min:0,max:0});let c={type:"inertia",velocity:n?e[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,c)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nw(this.visualElement,e),n.start(rT(e,n,0,t,this.visualElement,!1))}stopAnimation(){rB(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){rB(t=>{let{drag:n}=this.getProps();if(!im(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],s=i.get()||0;i.set(e[t]-tP(n,a,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nb(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rB(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let a,s,o,c=t.get();r[e]=(n={min:c,max:c},i=this.constraints[e],a=.5,s=rU(n),(o=rU(i))>s?a=rs(i.min,i.max-s,n.min):s>o&&(a=rs(n.min,n.max-o,i.min)),l(0,1,a))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),rB(t=>{if(!im(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(tP(i,a,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;ih.set(this.visualElement,this);let t=this.visualElement.current,n=r4(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,a=i!==t&&(rK.has(i.tagName)||!0===i.isContentEditable);n&&r&&!a&&this.start(e)}),r=()=>{var n,r,i;let a,s,{dragConstraints:o}=this.getProps();nb(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,r=o.current,a=r3(n,ip(i=()=>this.scalePositionWithinConstraints())),s=r3(r,ip(i)),e=()=>{a(),s()}))},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),eS.read(r);let s=rW(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rB(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ip(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function im(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class ig extends nE{constructor(e){super(e),this.removeGroupControls=e_,this.removeListeners=e_,this.controls=new id(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||e_}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let iy=e=>(t,n)=>{e&&eS.update(()=>e(t,n),!1,!0)};class ib extends nE{constructor(){super(...arguments),this.removePointerDownListener=e_}onPointerDown(e){this.session=new it(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:r8(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:iy(e),onStart:iy(t),onMove:iy(n),onEnd:(e,t)=>{delete this.session,r&&eS.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=r4(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ik={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ix=n(77065);let iE=!1;class iv extends t2.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),iE&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ik.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),iE=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||eS.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),e8.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;iE=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function i_(e){let[t,n]=(0,ix.xQ)(),r=(0,t2.useContext)(t9.L);return(0,t6.jsx)(iv,{...e,layoutGroup:r,switchLayoutGroup:(0,t2.useContext)(ny),isPresent:t,safeToRemove:n})}let iT=tR.length,iA=e=>"string"==typeof e?parseFloat(e):e,iw=e=>"number"==typeof e||_.test(e);function iS(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let iC=iM(0,.5,rn),iN=iM(.5,.95,e_);function iM(e,t,n){return r=>r<e?0:r>t?1:n(rs(e,t,r))}function iI(e,t){e.min=t.min,e.max=t.max}function iL(e,t){iI(e.x,t.x),iI(e.y,t.y)}function iR(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iD(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function iO(e,t,[n,r,i],a,s){!function(e,t=0,n=1,r=.5,i,a=e,s=e){if(v.test(t)&&(t=parseFloat(t),t=tP(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let o=tP(a.min,a.max,r);e===a&&(o-=t),e.min=iD(e.min,t,n,o,i),e.max=iD(e.max,t,n,o,i)}(e,t[n],t[r],t[i],t.scale,a,s)}let iP=["x","scaleX","originX"],iF=["y","scaleY","originY"];function iB(e,t,n,r){iO(e.x,t,iP,n?n.x:void 0,r?r.x:void 0),iO(e.y,t,iF,n?n.y:void 0,r?r.y:void 0)}function iU(e){return 0===e.translate&&1===e.scale}function iH(e){return iU(e.x)&&iU(e.y)}function i$(e,t){return e.min===t.min&&e.max===t.max}function ij(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iG(e,t){return ij(e.x,t.x)&&ij(e.y,t.y)}function iz(e){return rU(e.x)/rU(e.y)}function iV(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iK{constructor(){this.members=[]}add(e){eG(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||(ez(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(ez(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(void 0===r||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let iW=(e,t)=>e.depth-t.depth;class iq{constructor(){this.children=[],this.isDirty=!1}add(e){eG(this.children,e),this.isDirty=!0}remove(e){ez(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(iW),this.isDirty=!1,this.children.forEach(e)}}let iY=["","X","Y","Z"],iX=0;function iQ(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iZ({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=iX++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(i1),this.nodes.forEach(ae),this.nodes.forEach(at),this.nodes.forEach(i2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new iq)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eV),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=rY(t)&&!(rY(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;eS.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,a;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=te.now(),a=({timestamp:e})=>{let n=e-t;n>=250&&(eC(a),i())},eS.setup(a,!0),n=()=>eC(a),ik.hasAnimatedSinceResize&&(ik.hasAnimatedSinceResize=!1,this.nodes.forEach(i7))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||ao,{onLayoutAnimationStart:s,onLayoutAnimationComplete:o}=i.getProps(),l=!this.targetLayout||!iG(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...nT(a,"layout"),onPlay:s,onComplete:o};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c,t.path)}else t||i7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eC(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(an),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[ng];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",eS,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(i6),this.nodes.forEach(i3);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(i9);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(i4),this.nodes.forEach(i8),this.nodes.forEach(iJ),this.nodes.forEach(i0)):this.nodes.forEach(i9),this.clearAllSnapshots();let e=te.now();eN.delta=l(0,1e3/60,e-eN.timestamp),eN.timestamp=e,eN.isProcessing=!0,eM.update.process(eN),eM.preRender.process(eN),eM.render.process(eN),eN.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e8.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i5),this.sharedNodes.forEach(ar)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eS.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eS.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rU(this.snapshot.measuredBox.x)||rU(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=q()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iH(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||tV(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),au((t=r).x),au(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return q();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ad))){let{scroll:e}=this.root;e&&(tX(t.x,e.offset.x),tX(t.y,e.offset.y))}return t}removeElementScroll(e){let t=q();if(iL(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&iL(t,e),tX(t.x,i.offset.x),tX(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||q();iL(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(tX(r.x,-n.scroll.offset.x),tX(r.y,-n.scroll.offset.y)),tV(n.latestValues)&&tJ(r,n.latestValues,n.layout?.layoutBox)}return tV(this.latestValues)&&tJ(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=q();iL(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];tV(r.latestValues)&&(r.instance&&(tz(r.latestValues)&&r.updateSnapshot(),iL(n=q(),r.measurePageBox())),iB(t,r.latestValues,r.snapshot?.layoutBox,n))}return tV(this.latestValues)&&iB(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eN.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=eN.timestamp;let a=this.getClosestProjectingParent();if(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,o,l,c;this.forceRelativeParentToResolveTarget(),s=this.target,o=this.relativeTarget,l=this.relativeParent.target,c=this.options.layoutAnchor||void 0,rj(s.x,o.x,l.x,c?.x),rj(s.y,o.y,l.y,c?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):iL(this.target,this.layout.layoutBox),tY(this.target,this.targetDelta)):iL(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tz(this.parent.latestValues)||tK(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),rz(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),iL(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===eN.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;iL(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,a,s=n.length;if(s){t.x=t.y=1;for(let o=0;o<s;o++){a=(i=n[o]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(tX(e.x,-i.scroll.offset.x),tX(e.y,-i.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,tY(e,a)),r&&tV(i.latestValues)&&tJ(e,i.latestValues,i.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=q());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iR(this.prevProjectionDelta.x,this.projectionDelta.x),iR(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),r$(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&iV(this.projectionDelta.x,this.prevProjectionDelta.x)&&iV(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=K(),this.projectionDelta=K(),this.projectionDeltaWithTransform=K()}setAnimationOrigin(e,t=!1,n){let r,i=this.snapshot,a=i?i.latestValues:{},s={...this.latestValues},o=K();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=q(),c=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(c&&!h&&!0===this.options.crossfade&&!this.path.some(as));this.animationProgress=0;let p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,i=p?.(n);if(i?(o.x.translate=i.x,o.x.scale=tP(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=i.y,o.y.scale=tP(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(ai(o.x,e.x,n),ai(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,m,g,y,b;rz(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,g=this.relativeTargetOrigin,y=l,b=n,aa(m.x,g.x,y.x,b),aa(m.y,g.y,y.y,b),r&&(u=this.relativeTarget,f=r,i$(u.x,f.x)&&i$(u.y,f.y))&&(this.isProjectionDirty=!1),r||(r=q()),iL(r,this.relativeTarget)}c&&(this.animationValues=s,function(e,t,n,r,i,a){i?(e.opacity=tP(0,n.opacity??1,iC(r)),e.opacityExit=tP(t.opacity??1,0,iN(r))):a&&(e.opacity=tP(t.opacity??1,n.opacity??1,r));for(let i=0;i<iT;i++){let a=tR[i],s=iS(t,a),o=iS(n,a);(void 0!==s||void 0!==o)&&(s||(s=0),o||(o=0),0===s||0===o||iw(s)===iw(o)?(e[a]=Math.max(tP(iA(s),iA(o),r),0),(v.test(o)||v.test(s))&&(e[a]+="%")):e[a]=o)}(t.rotate||n.rotate)&&(e.rotate=tP(t.rotate||0,n.rotate||0,r))}(s,a,this.latestValues,n,d,h)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=s),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eC(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eS.update(()=>{var t,n,r;let i;ik.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ti(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=Y(t)?t:ti(t)).start(rT("",i,n,r)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&ah(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||q();let t=rU(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=rU(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}iL(t,n),tJ(t,i),r$(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iK),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&iQ("z",e,r,this.animationValues);for(let t=0;t<iY.length;t++)iQ(`rotate${iY[t]}`,e,r,this.animationValues),iQ(`skew${iY[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=ns(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ns(t?.pointerEvents)||""),this.hasProjected&&!tV(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=function(e,t,n){let r="",i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:s,skewX:o,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),l&&(r+=`skewY(${l}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:s,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*o.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tF){if(void 0===i[t])continue;let{correct:n,applyTo:s,isCSSVariable:o}=tF[t],l="none"===a?i[t]:n(i[t],r);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?ns(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(i3),this.root.sharedNodes.clear()}}}function iJ(e){e.updateLayout()}function i0(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if("size"===i)rB(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=rU(r);r.min=n[e].min,r.max=r.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";iI(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else ah(i,t.layoutBox,n)&&rB(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],s=rU(n[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});let s=K();r$(s,n,t.layoutBox);let o=K();a?r$(o,e.applyTransform(r,!0),t.measuredBox):r$(o,n,t.layoutBox);let l=!iH(s),c=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let s=e.options.layoutAnchor||void 0,o=q();rz(o,t.layoutBox,i.layoutBox,s);let l=q();rz(l,n,a.layoutBox,s),iG(o,l)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function i1(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function i2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i5(e){e.clearSnapshot()}function i3(e){e.clearMeasurements()}function i6(e){e.isLayoutDirty=!0,e.updateLayout()}function i9(e){e.isLayoutDirty=!1}function i4(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function i8(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function i7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ae(e){e.resolveTargetDelta()}function at(e){e.calcProjection()}function an(e){e.resetSkewAndRotation()}function ar(e){e.removeLeadSnapshot()}function ai(e,t,n){e.translate=tP(t.translate,0,n),e.scale=tP(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function aa(e,t,n,r){e.min=tP(t.min,n.min,r),e.max=tP(t.max,n.max,r)}function as(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ao={duration:.45,ease:[.4,0,.1,1]},al=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ac=al("applewebkit/")&&!al("chrome/")?Math.round:e_;function au(e){e.min=ac(e.min),e.max=ac(e.max)}function ah(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(iz(t)-iz(n)))}function ad(e){return e!==e.root&&e.scroll?.wasRoot}let ap=iZ({attachResizeListener:(e,t)=>rW(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),af={current:void 0},am=iZ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!af.current){let e=new ap({});e.mount(window),e.setOptions({layoutScroll:!0}),af.current=e}return af.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ag(e,t){let n=rX(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ay(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&eS.postRender(()=>i(t,r9(t)))}class ab extends nE{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,a]=ag(e,n);return r.forEach(e=>{let n,r=!1,a=!1,s=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},o=e=>{r=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),a&&(a=!1,s(e))},l=e=>{if("touch"!==e.pointerType){if(r){a=!0;return}s(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||rF.x||rF.y)return;a=!1;let s=t(e,r);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",o,i),window.addEventListener("pointercancel",o,i)},i)}),a}(e,(e,t)=>(ay(this.node,t,"Start"),e=>ay(this.node,e,"End"))))}unmount(){}}class ak extends nE{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nS(rW(this.node.current,"focus",()=>this.onFocus()),rW(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var ax=n(41426);let aE=(e,t)=>!!t&&(e===t||aE(e,t.parentElement)),av=new WeakSet;function a_(e){return t=>{"Enter"===t.key&&e(t)}}function aT(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function aA(e){return r6(e)&&!(rF.x||rF.y)}let aw=new WeakSet;function aS(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&eS.postRender(()=>i(t,r9(t)))}class aC extends nE{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,i,a]=ag(e,n),s=e=>{let r=e.currentTarget;if(!aA(e)||aw.has(e))return;av.add(r),n.stopPropagation&&aw.add(e);let a=t(r,e),s={...i,capture:!0},o=(e,t)=>{window.removeEventListener("pointerup",l,s),window.removeEventListener("pointercancel",c,s),av.has(r)&&av.delete(r),aA(e)&&"function"==typeof a&&a(e,{success:t})},l=e=>{o(e,r===window||r===document||n.useGlobalTarget||aE(r,e.target))},c=e=>{o(e,!1)};window.addEventListener("pointerup",l,s),window.addEventListener("pointercancel",c,s)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),(0,ax.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=a_(()=>{if(av.has(n))return;aT(n,"down");let e=a_(()=>{aT(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>aT(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),rV.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),a}(e,(e,t)=>(aS(this.node,t,"Start"),(e,{success:t})=>aS(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}let aN=new WeakMap,aM=new WeakMap,aI=e=>{let t=aN.get(e.target);t&&t(e)},aL=e=>{e.forEach(aI)},aR={some:0,all:1};class aD extends nE{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:a="some",once:s}=n,o={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof a?a:aR[a]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,s&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;aM.has(n)||aM.set(n,{});let r=aM.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(aL,{root:e,...t})),r[i]}(o),aN.set(e,l),t.observe(e),()=>{aN.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let aO=function(e,t){if("u"<typeof Proxy)return nx;let n=new Map,r=(n,r)=>nx(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>"create"===a?r:(n.has(a)||n.set(a,nx(a,void 0,e,t)),n.get(a))})}({animation:{Feature:rD},exit:{Feature:rP},inView:{Feature:aD},tap:{Feature:aC},focus:{Feature:ak},hover:{Feature:ab},pan:{Feature:ib},drag:{Feature:ig,ProjectionNode:am,MeasureLayout:i_},layout:{ProjectionNode:am,MeasureLayout:i_}},(e,t)=>t.isSVG??t3(e)?new t$(t):new t1(t,{allowProjection:e!==t2.Fragment}))},10263:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},10508:(e,t,n)=>{"use strict";n.d(t,{jH:()=>r.C});var r=n(62513)},11039:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("fingerprint-pattern",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]])},11953:(e,t,n)=>{"use strict";n.d(t,{p:()=>d});var r=n(69266),i=n(12566),a=n(8934),s=n(85933),o=n(43745),l=n(69611),c=n(82909),u=n(20660),h=n(63962);let d=r.forwardRef(function(e,t){let{className:n,render:r,style:d,...p}=e,f=(0,i.r)(),{side:m,align:g}=(0,a.r)(),y=f.useState("open"),b=f.useState("instantType"),k=f.useState("transitionStatus"),x=f.useState("popupProps"),E=f.useState("floatingRootContext"),v=f.useState("closeDelay");return(0,o.v)({open:y,ref:f.context.popupRef,onComplete(){y&&f.context.onOpenChangeComplete?.(!0)}}),(0,u.a)(E,{closeDelay:v}),(0,l.o)("div",e,{state:{open:y,side:m,align:g,instant:b,transitionStatus:k},ref:[t,f.context.popupRef,f.useStateSetter("popupElement")],props:[h.Ls,x,(0,c.d)(k),p],stateAttributesMapping:s.LM})})},12019:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]])},12318:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(47552),i=n(62623);class a{constructor(){this.type=i.Z.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=i.Z.ALL}is(e){return this.type===e}}class s{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new a}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=i.Z.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:i}=e;void 0===t&&(e.h=r.A.channel.rgb2hsl(e,"h")),void 0===n&&(e.s=r.A.channel.rgb2hsl(e,"s")),void 0===i&&(e.l=r.A.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r:t,g:n,b:i}=e;void 0===t&&(e.r=r.A.channel.hsl2rgb(e,"r")),void 0===n&&(e.g=r.A.channel.hsl2rgb(e,"g")),void 0===i&&(e.b=r.A.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,t=e.r;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"r")):t}get g(){let e=this.data,t=e.g;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"g")):t}get b(){let e=this.data,t=e.b;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"b")):t}get h(){let e=this.data,t=e.h;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"h")):t}get s(){let e=this.data,t=e.s;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"s")):t}get l(){let e=this.data,t=e.l;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}let o=new s({r:0,g:0,b:0,a:0},"transparent")},12437:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="week",a="month",s="quarter",o="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},p="en",f={};f[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}};var m="$isDayjsObject",g=function(e){return e instanceof x||!(!e||!e[m])},y=function e(t,n,r){var i;if(!t)return p;if("string"==typeof t){var a=t.toLowerCase();f[a]&&(i=a),n&&(f[a]=n,i=a);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var o=t.name;f[o]=t,i=o}return!r&&i&&(p=i),i||!r&&p},b=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},k={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(n/60),2,"0")+":"+d(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,a),s=n-i<0,o=t.clone().add(r+(s?-1:1),a);return+(-(r+(n-i)/(s?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:a,y:o,w:i,d:"day",D:l,h:r,m:n,s:t,ms:e,Q:s})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};k.l=y,k.i=g,k.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function d(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var p=d.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(u);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return k},p.isValid=function(){return this.$d.toString()!==c},p.isSame=function(e,t){var n=b(e);return this.startOf(t)<=n&&n<=this.endOf(t)},p.isAfter=function(e,t){return b(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<b(e)},p.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,s){var c=this,u=!!k.u(s)||s,h=k.p(e),d=function(e,t){var n=k.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?n:n.endOf("day")},p=function(e,t){return k.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},f=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case o:return u?d(1,0):d(31,11);case a:return u?d(1,m):d(0,m+1);case i:var b=this.$locale().weekStart||0,x=(f<b?f+7:f)-b;return d(u?g-x:g+(6-x),m);case"day":case l:return p(y+"Hours",0);case r:return p(y+"Minutes",1);case n:return p(y+"Seconds",2);case t:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(i,s){var c,u=k.p(i),h="set"+(this.$u?"UTC":""),d=((c={}).day=h+"Date",c[l]=h+"Date",c[a]=h+"Month",c[o]=h+"FullYear",c[r]=h+"Hours",c[n]=h+"Minutes",c[t]=h+"Seconds",c[e]=h+"Milliseconds",c)[u],p="day"===u?this.$D+(s-this.$W):s;if(u===a||u===o){var f=this.clone().set(l,1);f.$d[d](p),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[k.p(e)]()},p.add=function(e,s){var l,c=this;e=Number(e);var u=k.p(s),h=function(t){var n=b(c);return k.w(n.date(n.date()+Math.round(t*e)),c)};if(u===a)return this.set(a,this.$M+e);if(u===o)return this.set(o,this.$y+e);if("day"===u)return h(1);if(u===i)return h(7);var d=((l={})[n]=6e4,l[r]=36e5,l[t]=1e3,l)[u]||1,p=this.$d.getTime()+e*d;return k.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),a=this.$H,s=this.$m,o=this.$M,l=n.weekdays,u=n.months,d=n.meridiem,p=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return k.s(a%12||12,e,"0")},m=d||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return o+1;case"MM":return k.s(o+1,2,"0");case"MMM":return p(n.monthsShort,o,u,3);case"MMMM":return p(u,o);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,l,2);case"ddd":return p(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return k.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(a,s,!0);case"A":return m(a,s,!1);case"m":return String(s);case"mm":return k.s(s,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,l,c){var u,h=this,d=k.p(l),p=b(e),f=(p.utcOffset()-this.utcOffset())*6e4,m=this-p,g=function(){return k.m(h,p)};switch(d){case o:u=g()/12;break;case a:u=g();break;case s:u=g()/3;break;case i:u=(m-f)/6048e5;break;case"day":u=(m-f)/864e5;break;case r:u=m/36e5;break;case n:u=m/6e4;break;case t:u=m/1e3;break;default:u=m}return c?u:k.a(u)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return f[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=y(e,t,!0);return r&&(n.$L=r),n},p.clone=function(){return k.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},d}(),E=x.prototype;return b.prototype=E,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",a],["$y",o],["$D",l]].forEach(function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,x,b),e.$i=!0),b},b.locale=y,b.isDayjs=g,b.unix=function(e){return b(1e3*e)},b.en=f[p],b.Ls=f,b.p={},b}()},12566:(e,t,n)=>{"use strict";n.d(t,{O:()=>a,r:()=>s});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(e){let t=i.useContext(a);if(void 0===t&&!e)throw Error((0,r.A)(50));return t}},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,s=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);s<r.length;)(i=r.slice(s,s+1e4)).unshift(t,0),e.splice(...i),s+=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})},13050:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(17854);let i=(e,t)=>(0,r.A)(e,"l",-t)},13332:(e,t,n)=>{"use strict";function r(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,s=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}n.d(t,{D:()=>r})},13344:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]])},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})},14203:(e,t,n)=>{"use strict";n.d(t,{D:()=>l});var r=n(69266),i=n(12566),a=n(25330),s=n(81490),o=n(7962);let l=r.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return(0,i.r)().useState("mounted")||n?(0,o.jsx)(a.U.Provider,{value:n,children:(0,o.jsx)(s.F,{ref:t,...r})}):null})},14510:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]])},15104:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]])},15351:(e,t,n)=>{"use strict";n.d(t,{a:()=>u});var r=n(69266),i=n(74388),a=n(66538),s=n(96910),o=n(25905),l=n(69611),c=n(7962);let u=r.memo(r.forwardRef(function(e,t){let{render:n,className:u,value:h,defaultValue:d,onValueChange:p,disabled:f=!1,style:m,"aria-labelledby":g,...y}=e,[b,k]=r.useState(void 0),[x,E]=(0,i.q)({controlled:h,default:d,name:"MenuRadioGroup"}),v=(0,a.K)((e,t)=>{p?.(e,t),t.isCanceled||E(e)}),_=(0,l.o)("div",e,{state:{disabled:f},ref:t,props:{role:"group","aria-labelledby":g??b,"aria-disabled":f||void 0,...y}}),T=r.useMemo(()=>({value:x,setValue:v,disabled:f}),[x,v,f]);return(0,c.jsx)(o.c.Provider,{value:k,children:(0,c.jsx)(s.h.Provider,{value:T,children:_})})}))},15450:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("copy-plus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["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"}]])},15948:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},17005:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(96411).createAsyncLocalStorage)()},17247:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},17339:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]])},17854:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(47552),i=n(47057);let a=(e,t,n)=>{let a=i.A.parse(e),s=a[t],o=r.A.channel.clamp[t](s+n);return s!==o&&(a[t]=o),i.A.stringify(a)}},17864:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("repeat-2",[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]])},18903:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("message-circle-question-mark",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},23380:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(17854);let i=(e,t)=>(0,r.A)(e,"l",t)},23457:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},24022:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("panel-top",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]])},24722:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(35329);function i(e){return(0,r.i)(e)}},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/"}},25033:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=n(17005)},25330:(e,t,n)=>{"use strict";n.d(t,{U:()=>a,l:()=>s});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(48));return e}},25488:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(12696),i=n(58789);let a=Object.keys(i);class s extends r.R{constructor(e,t,n,r){let s=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++s<a.length;){const e=a[s];!function(e,t,n){n&&(e[t]=n)}(this,a[s],(n&i[e])===i[e])}}}s.prototype.defined=!0},25905:(e,t,n)=>{"use strict";n.d(t,{T:()=>s,c:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(31));return e}},26232:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});let r="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}();function i(e){return void 0!==r.Buffer&&r.Buffer.isBuffer(e)}},26575:(e,t,n)=>{"use strict";n.d(t,{p:()=>f});var r=n(69266),i=n(66758),a=n(12566),s=n(8934),o=n(52333),l=n(95522),c=n(25330),u=n(73146),h=n(60601),d=n(5733),p=n(7962);let f=r.forwardRef(function(e,t){let{render:n,className:r,anchor:f,positionMethod:m="absolute",side:g="bottom",align:y="center",sideOffset:b=0,alignOffset:k=0,collisionBoundary:x="clipping-ancestors",collisionPadding:E=5,arrowPadding:v=5,sticky:_=!1,disableAnchorTracking:T=!1,collisionAvoidance:A=u.Pe,style:w,...S}=e,C=(0,a.r)(),N=(0,c.l)(),M=(0,o.fI)(),I=C.useState("open"),L=C.useState("mounted"),R=C.useState("floatingRootContext"),D=C.useState("instantType"),O=C.useState("transitionStatus"),P=C.useState("adaptiveOrigin"),F=C.context.inlineRectCoordsRef,B=(0,l.s)({anchor:f,floatingRootContext:R,positionMethod:m,mounted:L,side:g,sideOffset:b,align:y,alignOffset:k,arrowPadding:v,collisionBoundary:x,collisionPadding:E,sticky:_,disableAnchorTracking:T,keepMounted:N,nodeId:M,collisionAvoidance:A,adaptiveOrigin:P,inline:(0,d._8)(F)}),U=B.update;(0,i.g)(()=>{I&&L&&U()},[I,L,U]);let H={open:I,side:B.side,align:B.align,anchorHidden:B.anchorHidden,instant:D},$=(0,h.i)(e,H,{styles:B.positionerStyles,transitionStatus:O,props:S,refs:[t,C.useStateSetter("positionerElement")],hidden:!L,inert:!I});return(0,p.jsx)(s.w.Provider,{value:B,children:(0,p.jsx)(o.$c,{id:M,children:$})})})},26690:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("corner-down-left",[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]])},29198:(e,t,n)=>{"use strict";function r(e){return e.toLowerCase()}n.d(t,{S:()=>r})},30973:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(80417),i=n(69266),a=n(53949),s=n(12566),o=n(85933),l=n(69611),c=n(9542),u=n(1424),h=n(63962),d=n(5733),p=n(8675),f=n(65905),m=n(17499),g=n(79718);let y=(0,a.nk)(function(e,t){let{render:n,className:a,delay:y,closeDelay:b,id:k,payload:x,handle:E,style:v,..._}=e,T=(0,s.r)(!0),A=(0,u.f)(E)??T;if(!A)throw Error((0,r.A)(89));let w=(0,c.e)(k),S=A.useState("isTriggerActive",w),C=A.useState("isOpenedByTrigger",w),N=A.useState("floatingRootContext"),M=A.context.inlineRectCoordsRef,I=i.useRef(null),L=y??p.r,R=b??p.V,{registerTrigger:D,isMountedByThisTrigger:O}=(0,h.L_)(w,I,A,{payload:x,closeDelay:R}),P=(0,f.j)(N,{mouseOnly:!0,move:!1,handleClose:(0,m.i)(),delay:()=>({open:L,close:R}),triggerElementRef:I,isActiveTrigger:S,isClosing:()=>"ending"===A.select("transitionStatus")}),F=(0,g.i)(N,{delay:L}),B=A.useState("triggerProps",O),U=(0,d.WB)(M,C);return(0,l.o)("a",e,{state:{open:C},ref:[t,D,I],props:[P,F.reference,B,U,{id:w},_],stateAttributesMapping:o.qV})})},31052:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},31175:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("files",[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]])},31210:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]])},31217:(e,t,n)=>{"use strict";n.d(t,{$$:()=>m,Es:()=>p,KG:()=>y,Ks:()=>S,Ll:()=>o,Re:()=>T,Sw:()=>a,TW:()=>d,WQ:()=>_,YG:()=>E,YN:()=>g,ZC:()=>k,_q:()=>f,ag:()=>N,e_:()=>w,jn:()=>i,kx:()=>A,l6:()=>s,lk:()=>b,sb:()=>u,wz:()=>c,xZ:()=>h,zk:()=>l});var r=n(69266);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let a="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function s(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function o(e){return"nodeType"in e}function l(e){var t,n;return e?s(e)?e:o(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){let{Document:t}=l(e);return e instanceof t}function u(e){return!s(e)&&e instanceof l(e).HTMLElement}function h(e){return e instanceof l(e).SVGElement}function d(e){return e?s(e)?e.document:o(e)?c(e)?e:u(e)||h(e)?e.ownerDocument:document:document:document}let p=a?r.useLayoutEffect:r.useEffect;function f(e){let t=(0,r.useRef)(e);return p(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function m(){let e=(0,r.useRef)(null);return[(0,r.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function g(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return p(()=>{n.current!==e&&(n.current=e)},t),n}function y(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function b(e){let t=f(e),n=(0,r.useRef)(null),i=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,i]}function k(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let x={};function E(e,t){return(0,r.useMemo)(()=>{if(t)return t;let n=null==x[e]?0:x[e]+1;return x[e]=n,e+"-"+n},[e,t])}function v(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let _=v(1),T=v(-1);function A(e){if(!e)return!1;let{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function w(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=l(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let S=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[S.Translate.toString(e),S.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),C="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function N(e){return e.matches(C)?e:e.querySelector(C)}},31848:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("image-down",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},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)},s=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)},o=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,h=arguments[0],d=1,p=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d<p;++d)if(t=arguments[d],null!=t)for(n in t)r=l(h,n),h!==(i=l(t,n))&&(f&&i&&(s(i)||(c=a(i)))?(c?(c=!1,u=r&&a(r)?r:[]):u=r&&s(r)?r:{},o(h,{name:n,newValue:e(f,u,i)})):void 0!==i&&o(h,{name:n,newValue:i}));return h}},33349:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(60008);function i(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===(0,r.b)(e)}},33353:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("file-pen-line",[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",key:"ukzhwg"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2",key:"1klhew"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",key:"rxaxab"}],["path",{d:"M8 18h1",key:"13wk12"}]])},33705:(e,t,n)=>{"use strict";n.d(t,{W:()=>s,p:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(14));return e}},34506:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]])},35182:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r=(0,n(69266).createContext)(null)},35329:(e,t,n)=>{"use strict";function r(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}n.d(t,{i:()=>r})},35592:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},36919:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(37847),i=n(85784),a=n(69266);function s(){r.r.current||(0,i.Uu)();let[e]=(0,a.useState)(r.O.current);return e}},37847:(e,t,n)=>{"use strict";n.d(t,{O:()=>r,r:()=>i});let r={current:null},i={current:!1}},37918:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("panel-bottom",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}]])},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})},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})},39341:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var r,i=n(97591);let a=((r={}).checked="data-checked",r.unchecked="data-unchecked",r.disabled="data-disabled",r.highlighted="data-highlighted",r),s={checked:e=>e?{[a.checked]:""}:{[a.unchecked]:""},...i.G}},39410:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,V:()=>a});var r=Object.defineProperty,i=(e,t)=>r(e,"name",{value:t,configurable:!0}),a=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})}},39569:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},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,s=i.handlers;if(t&&r.call(t,e)){let n=String(t[e]);a=r.call(s,n)?s[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}},40942:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("arrow-up-to-line",[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]])},41144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(7962),i=n(69266),a=n(85279);function s(e){return{default:e&&"default"in e?e.default:e}}n(71762);let o={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},l=function(e){let t={...o,...e},n=(0,i.lazy)(()=>t.loader().then(s)),l=t.loading;function c(e){let s=l?(0,r.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,c=o?i.Suspense:i.Fragment,u=t.ssr?(0,r.jsxs)(r.Fragment,{children:[null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(c,{...o?{fallback:s}:{},children:u})}return c.displayName="LoadableComponent",c}},41426:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(43079);function i(e){return(0,r.G)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},41513:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},41934:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]])},43079:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});let r=e=>"object"==typeof e&&null!==e},43209:(e,t,n)=>{"use strict";n.d(t,{Mp:()=>eK,vL:()=>m,uN:()=>ef,cA:()=>eE,AN:()=>ek,IG:()=>e_,fp:()=>j,y$:()=>G,Sj:()=>q,Vy:()=>H,sl:()=>X,fF:()=>eX,PM:()=>eY,zM:()=>eZ,MS:()=>R,FR:()=>D});var r,i,a,s,o,l,c,u,h,d,p,f,m,g,y,b,k,x,E,v=n(69266),_=n(44911),T=n(31217);let A={display:"none"};function w(e){let{id:t,value:n}=e;return v.createElement("div",{id:t,style:A},n)}function S(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return v.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let C=(0,v.createContext)(null),N={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},M={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function I(e){var t;let n,{announcements:r=M,container:i,hiddenTextDescribedById:a,screenReaderInstructions:s=N}=e,{announce:o,announcement:l}=function(){let[e,t]=(0,v.useState)("");return{announce:(0,v.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),c=(0,T.YG)("DndLiveRegion"),[u,h]=(0,v.useState)(!1);if((0,v.useEffect)(()=>{h(!0)},[]),t=(0,v.useMemo)(()=>({onDragStart(e){let{active:t}=e;o(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&o(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;o(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;o(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;o(r.onDragCancel({active:t,over:n}))}}),[o,r]),n=(0,v.useContext)(C),(0,v.useEffect)(()=>{if(!n)throw Error("useDndMonitor must be used within a children of <DndContext>");return n(t)},[t,n]),!u)return null;let d=v.createElement(v.Fragment,null,v.createElement(w,{id:a,value:s.draggable}),v.createElement(S,{id:c,announcement:l}));return i?(0,_.createPortal)(d,i):d}function L(){}function R(e,t){return(0,v.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function D(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,v.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}(r=d||(d={})).DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable";let O=Object.freeze({x:0,y:0});function P(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function F(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function B(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function U(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function H(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}function $(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}let j=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=$(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=P($(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(F)},G=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=U(t),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=U(r),s=Number((i.reduce((e,t,r)=>e+P(n[r],t),0)/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:s}})}}return a.sort(F)},z=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height);if(r<i&&n<a){let s=t.width*t.height,o=e.width*e.height,l=(i-r)*(a-n);return Number((l/(s+o-l)).toFixed(4))}return 0}(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(B)};function V(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:O}let K=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 n.reduce((e,t)=>({...e,top:e.top+ +t.y,bottom:e.bottom+ +t.y,left:e.left+ +t.x,right:e.right+ +t.x}),{...e})},W={ignoreTransform:!1};function q(e,t){void 0===t&&(t=W);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,T.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=function(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;let{scaleX:i,scaleY:a,x:s,y:o}=r,l=e.left-s-(1-i)*parseFloat(n),c=e.top-o-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,h=a?e.height/a:e.height;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l}}(n,t,r))}let{top:r,left:i,width:a,height:s,bottom:o,right:l}=n;return{top:r,left:i,width:a,height:s,bottom:o,right:l}}function Y(e){return q(e,{ignoreTransform:!0})}function X(e,t){let n=[];return e?function r(i){var a,s;let o;if(null!=t&&n.length>=t||!i)return n;if((0,T.wz)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,T.sb)(i)||(0,T.xZ)(i)||n.includes(i))return n;let l=(0,T.zk)(e).getComputedStyle(i);return(i!==e&&(void 0===(a=l)&&(a=(0,T.zk)(i).getComputedStyle(i)),o=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(e=>{let t=a[e];return"string"==typeof t&&o.test(t)}))&&n.push(i),void 0===(s=l)&&(s=(0,T.zk)(i).getComputedStyle(i)),"fixed"===s.position)?n:r(i.parentNode)}(e):n}function Q(e){let[t]=X(e,1);return null!=t?t:null}function Z(e){return T.Sw&&e?(0,T.l6)(e)?e:(0,T.Ll)(e)?(0,T.wz)(e)||e===(0,T.TW)(e).scrollingElement?window:(0,T.sb)(e)?e:null:null:null}function J(e){return(0,T.l6)(e)?e.scrollX:e.scrollLeft}function ee(e){return(0,T.l6)(e)?e.scrollY:e.scrollTop}function et(e){return{x:J(e),y:ee(e)}}function en(e){return!!T.Sw&&!!e&&e===document.scrollingElement}function er(e){let t={x:0,y:0},n=en(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x;return{isTop:i,isLeft:a,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(i=p||(p={}))[i.Forward=1]="Forward",i[i.Backward=-1]="Backward";let ei={x:.2,y:.2};function ea(e){return e.reduce((e,t)=>(0,T.WQ)(e,et(t)),O)}let es=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+J(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+ee(t),0)}]];class eo{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=X(t),r=ea(n);for(const[t,i,a]of(this.rect={...e},this.width=e.width,this.height=e.height,es))for(const e of i)Object.defineProperty(this,e,{get:()=>{let i=a(n),s=r[t]-i;return this.rect[e]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class el{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ec(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function eu(e){e.preventDefault()}function eh(e){e.stopPropagation()}(a=f||(f={})).Click="click",a.DragStart="dragstart",a.Keydown="keydown",a.ContextMenu="contextmenu",a.Resize="resize",a.SelectionChange="selectionchange",a.VisibilityChange="visibilitychange",(s=m||(m={})).Space="Space",s.Down="ArrowDown",s.Right="ArrowRight",s.Left="ArrowLeft",s.Up="ArrowUp",s.Esc="Escape",s.Enter="Enter",s.Tab="Tab";let ed={start:[m.Space,m.Enter],cancel:[m.Esc],end:[m.Space,m.Enter,m.Tab]},ep=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case m.Right:return{...n,x:n.x+25};case m.Left:return{...n,x:n.x-25};case m.Down:return{...n,y:n.y+25};case m.Up:return{...n,y:n.y-25}}};class ef{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new el((0,T.TW)(t)),this.windowListeners=new el((0,T.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(f.Resize,this.handleCancel),this.windowListeners.add(f.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(f.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=q),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);Q(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(O)}handleKeyDown(e){if((0,T.kx)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=ed,coordinateGetter:a=ep,scrollBehavior:s="smooth"}=r,{code:o}=e;if(i.end.includes(o))return void this.handleEnd(e);if(i.cancel.includes(o))return void this.handleCancel(e);let{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:O;this.referenceCoordinates||(this.referenceCoordinates=c);let u=a(e,{active:t,context:n.current,currentCoordinates:c});if(u){let t=(0,T.Re)(u,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:o,isLeft:l,isBottom:c,maxScroll:h,minScroll:d}=er(n),p=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),f={x:Math.min(i===m.Right?p.right-p.width/2:p.right,Math.max(i===m.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===m.Down?p.bottom-p.height/2:p.bottom,Math.max(i===m.Down?p.top:p.top+p.height/2,u.y))},g=i===m.Right&&!o||i===m.Left&&!l,y=i===m.Down&&!c||i===m.Up&&!a;if(g&&f.x!==u.x){let e=n.scrollLeft+t.x,a=i===m.Right&&e<=h.x||i===m.Left&&e>=d.x;if(a&&!t.y)return void n.scrollTo({left:e,behavior:s});a?r.x=n.scrollLeft-e:r.x=i===m.Right?n.scrollLeft-h.x:n.scrollLeft-d.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(y&&f.y!==u.y){let e=n.scrollTop+t.y,a=i===m.Down&&e<=h.y||i===m.Up&&e>=d.y;if(a&&!t.x)return void n.scrollTo({top:e,behavior:s});a?r.y=n.scrollTop-e:r.y=i===m.Down?n.scrollTop-h.y:n.scrollTop-d.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,T.WQ)((0,T.Re)(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function em(e){return!!(e&&"distance"in e)}function eg(e){return!!(e&&"delay"in e)}ef.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ed,onActivation:i}=t,{active:a}=n,{code:s}=e.nativeEvent;if(r.start.includes(s)){let t=a.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class ey{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,T.zk)(e);return e instanceof t?e:(0,T.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=(0,T.TW)(a),this.documentListeners=new el(this.document),this.listeners=new el(n),this.windowListeners=new el((0,T.zk)(a)),this.initialCoordinates=null!=(r=(0,T.e_)(i))?r:O,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(f.Resize,this.handleCancel),this.windowListeners.add(f.DragStart,eu),this.windowListeners.add(f.VisibilityChange,this.handleCancel),this.windowListeners.add(f.ContextMenu,eu),this.documentListeners.add(f.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(eg(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(em(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(f.Click,eh,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(f.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:s}}=i;if(!r)return;let o=null!=(t=(0,T.e_)(e))?t:O,l=(0,T.Re)(r,o);if(!n&&s){if(em(s)){if(null!=s.tolerance&&ec(l,s.tolerance))return this.handleCancel();if(ec(l,s.distance))return this.handleStart()}return eg(s)&&ec(l,s.tolerance)?this.handleCancel():void this.handlePending(s,l)}e.cancelable&&e.preventDefault(),a(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===m.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eb={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ek extends ey{constructor(e){const{event:t}=e;super(e,eb,(0,T.TW)(t.target))}}ek.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let ex={move:{name:"mousemove"},end:{name:"mouseup"}};(o=g||(g={}))[o.RightClick=2]="RightClick";class eE extends ey{constructor(e){super(e,ex,(0,T.TW)(e.event.target))}}eE.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==g.RightClick&&(null==r||r({event:n}),!0)}}];let ev={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class e_ extends ey{constructor(e){super(e,ev)}static setup(){return window.addEventListener(ev.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ev.move.name,e)};function e(){}}}e_.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],(l=y||(y={}))[l.Pointer=0]="Pointer",l[l.DraggableRect=1]="DraggableRect",(c=b||(b={}))[c.TreeOrder=0]="TreeOrder",c[c.ReversedTreeOrder=1]="ReversedTreeOrder";let eT={x:{[p.Backward]:!1,[p.Forward]:!1},y:{[p.Backward]:!1,[p.Forward]:!1}};(u=k||(k={}))[u.Always=0]="Always",u[u.BeforeDragging=1]="BeforeDragging",u[u.WhileDragging=2]="WhileDragging",(x||(x={})).Optimized="optimized";let eA=new Map;function ew(e,t){return(0,T.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function eS(e){let{callback:t,disabled:n}=e,r=(0,T._q)(t),i=(0,v.useMemo)(()=>{if(n||"u"<typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,v.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function eC(e){return new eo(q(e),e)}function eN(e,t,n){void 0===t&&(t=eC);let[r,i]=(0,v.useState)(null);function a(){i(r=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let a=t(e);return JSON.stringify(r)===JSON.stringify(a)?r:a})}let s=function(e){let{callback:t,disabled:n}=e,r=(0,T._q)(t),i=(0,v.useMemo)(()=>{if(n||"u"<typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,v.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),o=eS({callback:a});return(0,T.Es)(()=>{a(),e?(null==o||o.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==s||s.disconnect())},[e]),r}let eM=[];function eI(e,t){void 0===t&&(t=[]);let n=(0,v.useRef)(null);return(0,v.useEffect)(()=>{n.current=null},t),(0,v.useEffect)(()=>{let t=e!==O;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,T.Re)(e,n.current):O}function eL(e){return(0,v.useMemo)(()=>{let t,n;return e?(t=e.innerWidth,{top:0,left:0,right:t,bottom:n=e.innerHeight,width:t,height:n}):null},[e])}let eR=[],eD=[{sensor:ek,options:{}},{sensor:ef,options:{}}],eO={current:{}},eP={draggable:{measure:Y},droppable:{measure:Y,strategy:k.WhileDragging,frequency:x.Optimized},dragOverlay:{measure:q}};class eF extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let eB={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eF,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:L},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eP,measureDroppableContainers:L,windowRect:null,measuringScheduled:!1},eU={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:L,draggableNodes:new Map,over:null,measureDroppableContainers:L},eH=(0,v.createContext)(eU),e$=(0,v.createContext)(eB);function ej(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eF}}}function eG(e,t){switch(t.type){case d.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case d.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case d.DragEnd:case d.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case d.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new eF(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case d.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let s=new eF(e.droppable.containers);return s.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case d.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new eF(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function ez(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,v.useContext)(eH),a=(0,T.ZC)(r),s=(0,T.ZC)(null==n?void 0:n.id);return(0,v.useEffect)(()=>{if(!t&&!r&&a&&null!=s){if(!(0,T.kx)(a)||document.activeElement===a.target)return;let e=i.get(s);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,T.ag)(e);if(t){t.focus();break}}})}},[r,t,i,s,a]),null}let eV=(0,v.createContext)({...O,scaleX:1,scaleY:1});(h=E||(E={}))[h.Uninitialized=0]="Uninitialized",h[h.Initializing=1]="Initializing",h[h.Initialized=2]="Initialized";let eK=(0,v.memo)(function(e){var t,n,r,i,a,s,o,l;let c,u,h,f,m,g,x,A,{id:w,accessibility:S,autoScroll:N=!0,children:M,sensors:L=eD,collisionDetection:R=z,measuring:D,modifiers:P,...F}=e,[B,U]=(0,v.useReducer)(eG,void 0,ej),[$,j]=function(){let[e]=(0,v.useState)(()=>new Set),t=(0,v.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,v.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[G,W]=(0,v.useState)(E.Uninitialized),Y=G===E.Initialized,{draggable:{active:J,nodes:ee,translate:es},droppable:{containers:el}}=B,ec=null!=J?ee.get(J):null,eu=(0,v.useRef)({initial:null,translated:null}),eh=(0,v.useMemo)(()=>{var e;return null!=J?{id:J,data:null!=(e=null==ec?void 0:ec.data)?e:eO,rect:eu}:null},[J,ec]),ed=(0,v.useRef)(null),[ep,ef]=(0,v.useState)(null),[em,eg]=(0,v.useState)(null),ey=(0,T.YN)(F,Object.values(F)),eb=(0,T.YG)("DndDescribedBy",w),ek=(0,v.useMemo)(()=>el.getEnabled(),[el]),ex=(0,v.useMemo)(()=>({draggable:{...eP.draggable,...null==D?void 0:D.draggable},droppable:{...eP.droppable,...null==D?void 0:D.droppable},dragOverlay:{...eP.dragOverlay,...null==D?void 0:D.dragOverlay}}),[null==D?void 0:D.draggable,null==D?void 0:D.droppable,null==D?void 0:D.dragOverlay]),{droppableRects:eE,measureDroppableContainers:ev,measuringScheduled:e_}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,s]=(0,v.useState)(null),{frequency:o,measure:l,strategy:c}=i,u=(0,v.useRef)(e),h=function(){switch(c){case k.Always:return!1;case k.BeforeDragging:return n;default:return!n}}(),d=(0,T.YN)(h),p=(0,v.useCallback)(function(e){void 0===e&&(e=[]),d.current||s(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[d]),f=(0,v.useRef)(null),m=(0,T.KG)(t=>{if(h&&!n)return eA;if(!t||t===eA||u.current!==e||null!=a){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new eo(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,h,l]);return(0,v.useEffect)(()=>{u.current=e},[e]),(0,v.useEffect)(()=>{h||p()},[n,h]),(0,v.useEffect)(()=>{a&&a.length>0&&s(null)},[JSON.stringify(a)]),(0,v.useEffect)(()=>{h||"number"!=typeof o||null!==f.current||(f.current=setTimeout(()=>{p(),f.current=null},o))},[o,h,p,...r]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:null!=a}}(ek,{dragging:Y,dependencies:[es.x,es.y],config:ex.droppable}),eC=(m=(f=null!=J?ee.get(J):void 0)?f.node.current:null,(0,T.KG)(e=>{var t;return null==J?null:null!=(t=null!=m?m:e)?t:null},[m,J])),eF=(0,v.useMemo)(()=>em?(0,T.e_)(em):null,[em]),eB=(c=(null==ep?void 0:ep.autoScrollEnabled)===!1,u="object"==typeof N?!1===N.enabled:!1===N,h=Y&&!c&&!u,"object"==typeof N?{...N,enabled:h}:{enabled:h}),eU=ew(eC,ex.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,v.useRef)(!1),{x:s,y:o}="boolean"==typeof i?{x:i,y:i}:i;(0,T.Es)(()=>{if(!s&&!o||!t){a.current=!1;return}if(a.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=V(n(e),r);if(s||(i.x=0),o||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=Q(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,s,o,r,n])}({activeNode:null!=J?ee.get(J):null,config:eB.layoutShiftCompensation,initialRect:eU,measure:ex.draggable.measure});let eK=eN(eC,ex.draggable.measure,eU),eW=eN(eC?eC.parentElement:null),eq=(0,v.useRef)({activatorEvent:null,active:null,activeNode:eC,collisionRect:null,collisions:null,droppableRects:eE,draggableNodes:ee,draggingNode:null,draggingNodeRect:null,droppableContainers:el,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eY=el.getNodeFor(null==(t=eq.current.over)?void 0:t.id),eX=function(e){let{measure:t}=e,[n,r]=(0,v.useState)(null),i=eS({callback:(0,v.useCallback)(e=>{for(let{target:n}of e)if((0,T.sb)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),a=(0,v.useCallback)(e=>{let n=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,T.sb)(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[s,o]=(0,T.lk)(a);return(0,v.useMemo)(()=>({nodeRef:s,rect:n,setRef:o}),[n,s,o])}({measure:ex.dragOverlay.measure}),eQ=null!=(n=eX.nodeRef.current)?n:eC,eZ=Y?null!=(r=eX.rect)?r:eK:null,eJ=!!(eX.nodeRef.current&&eX.rect),e0=(g=ew(a=eJ?null:eK),V(a,g)),e1=eL(eQ?(0,T.zk)(eQ):null),e2=(s=Y?null!=eY?eY:eC:null,x=(0,v.useRef)(s),A=(0,T.KG)(e=>s?e&&e!==eM&&s&&x.current&&s.parentNode===x.current.parentNode?e:X(s):eM,[s]),(0,v.useEffect)(()=>{x.current=s},[s]),A),e5=function(e,t){void 0===t&&(t=q);let[n]=e,r=eL(n?(0,T.zk)(n):null),[i,a]=(0,v.useState)(eR);function s(){a(()=>e.length?e.map(e=>en(e)?r:new eo(t(e),e)):eR)}let o=eS({callback:s});return(0,T.Es)(()=>{null==o||o.disconnect(),s(),e.forEach(e=>null==o?void 0:o.observe(e))},[e]),i}(e2),e3=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(P,{transform:{x:es.x-e0.x,y:es.y-e0.y,scaleX:1,scaleY:1},activatorEvent:em,active:eh,activeNodeRect:eK,containerNodeRect:eW,draggingNodeRect:eZ,over:eq.current.over,overlayNodeRect:eX.rect,scrollableAncestors:e2,scrollableAncestorRects:e5,windowRect:e1}),e6=eF?(0,T.WQ)(eF,es):null,e9=function(e){let[t,n]=(0,v.useState)(null),r=(0,v.useRef)(e),i=(0,v.useCallback)(e=>{let t=Z(e.target);t&&n(e=>e?(e.set(t,et(t)),new Map(e)):null)},[]);return(0,v.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let s=e.map(e=>{let t=Z(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,et(t)]):null}).filter(e=>null!=e);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{let t=Z(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,v.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,T.WQ)(e,t),O):ea(e):O,[e,t])}(e2),e4=eI(e9),e8=eI(e9,[eK]),e7=(0,T.WQ)(e3,e4),te=eZ?K(eZ,e3):null,tt=eh&&te?R({active:eh,collisionRect:te,droppableRects:eE,droppableContainers:ek,pointerCoordinates:e6}):null,tn=H(tt,"id"),[tr,ti]=(0,v.useState)(null),ta=(o=eJ?e3:(0,T.WQ)(e3,e8),l=null!=(i=null==tr?void 0:tr.rect)?i:null,{...o,scaleX:l&&eK?l.width/eK.width:1,scaleY:l&&eK?l.height/eK.height:1}),ts=(0,v.useRef)(null),to=(0,v.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==ed.current)return;let i=ee.get(ed.current);if(!i)return;let a=e.nativeEvent,s=new n({active:ed.current,activeNode:i,event:a,options:r,context:eq,onAbort(e){if(!ee.get(e))return;let{onDragAbort:t}=ey.current,n={id:e};null==t||t(n),$({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!ee.get(e))return;let{onDragPending:i}=ey.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(a),$({type:"onDragPending",event:a})},onStart(e){let t=ed.current;if(null==t)return;let n=ee.get(t);if(!n)return;let{onDragStart:r}=ey.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:eu}};(0,_.unstable_batchedUpdates)(()=>{null==r||r(i),W(E.Initializing),U({type:d.DragStart,initialCoordinates:e,active:t}),$({type:"onDragStart",event:i}),ef(ts.current),eg(a)})},onMove(e){U({type:d.DragMove,coordinates:e})},onEnd:o(d.DragEnd),onCancel:o(d.DragCancel)});function o(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=eq.current,s=null;if(t&&i){let{cancelDrop:o}=ey.current;s={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===d.DragEnd&&"function"==typeof o&&await Promise.resolve(o(s))&&(e=d.DragCancel)}ed.current=null,(0,_.unstable_batchedUpdates)(()=>{U({type:e}),W(E.Uninitialized),ti(null),ef(null),eg(null),ts.current=null;let t=e===d.DragEnd?"onDragEnd":"onDragCancel";if(s){let e=ey.current[t];null==e||e(s),$({type:t,event:s})}})}}ts.current=s},[ee]),tl=(0,v.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=ee.get(r);null!==ed.current||!a||i.dndKit||i.defaultPrevented||!0===e(n,t.options,{active:a})&&(i.dndKit={capturedBy:t.sensor},ed.current=r,to(n,t))},[ee,to]),tc=(0,v.useMemo)(()=>L.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:tl(e.handler,t)}))]},[]),[L,tl]);(0,v.useEffect)(()=>{if(!T.Sw)return;let e=L.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},L.map(e=>{let{sensor:t}=e;return t})),(0,T.Es)(()=>{eK&&G===E.Initializing&&W(E.Initialized)},[eK,G]),(0,v.useEffect)(()=>{let{onDragMove:e}=ey.current,{active:t,activatorEvent:n,collisions:r,over:i}=eq.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:e7.x,y:e7.y},over:i};(0,_.unstable_batchedUpdates)(()=>{null==e||e(a),$({type:"onDragMove",event:a})})},[e7.x,e7.y]),(0,v.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=eq.current;if(!e||null==ed.current||!t||!i)return;let{onDragOver:a}=ey.current,s=r.get(tn),o=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:o};(0,_.unstable_batchedUpdates)(()=>{ti(o),null==a||a(l),$({type:"onDragOver",event:l})})},[tn]),(0,T.Es)(()=>{eq.current={activatorEvent:em,active:eh,activeNode:eC,collisionRect:te,collisions:tt,droppableRects:eE,draggableNodes:ee,draggingNode:eQ,draggingNodeRect:eZ,droppableContainers:el,over:tr,scrollableAncestors:e2,scrollAdjustedTranslate:e7},eu.current={initial:eZ,translated:te}},[eh,eC,tt,te,ee,eQ,eZ,eE,el,tr,e2,e7]),function(e){let{acceleration:t,activator:n=y.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:s=5,order:o=b.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:h,threshold:d}=e,f=function(e){let{delta:t,disabled:n}=e,r=(0,T.ZC)(t);return(0,T.KG)(e=>{if(n||!r||!e)return eT;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[p.Backward]:e.x[p.Backward]||-1===i.x,[p.Forward]:e.x[p.Forward]||1===i.x},y:{[p.Backward]:e.y[p.Backward]||-1===i.y,[p.Forward]:e.y[p.Forward]||1===i.y}}},[n,t,r])}({delta:h,disabled:!a}),[m,g]=(0,T.$$)(),k=(0,v.useRef)({x:0,y:0}),x=(0,v.useRef)({x:0,y:0}),E=(0,v.useMemo)(()=>{switch(n){case y.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case y.DraggableRect:return i}},[n,i,l]),_=(0,v.useRef)(null),A=(0,v.useCallback)(()=>{let e=_.current;if(!e)return;let t=k.current.x*x.current.x,n=k.current.y*x.current.y;e.scrollBy(t,n)},[]),w=(0,v.useMemo)(()=>o===b.TreeOrder?[...c].reverse():c,[o,c]);(0,v.useEffect)(()=>{if(!a||!c.length||!E)return void g();for(let e of w){if((null==r?void 0:r(e))===!1)continue;let n=u[c.indexOf(e)];if(!n)continue;let{direction:i,speed:a}=function(e,t,n,r,i){let{top:a,left:s,right:o,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=ei);let{isTop:c,isBottom:u,isLeft:h,isRight:d}=er(e),f={x:0,y:0},m={x:0,y:0},g={height:t.height*i.y,width:t.width*i.x};return!c&&a<=t.top+g.height?(f.y=p.Backward,m.y=r*Math.abs((t.top+g.height-a)/g.height)):!u&&l>=t.bottom-g.height&&(f.y=p.Forward,m.y=r*Math.abs((t.bottom-g.height-l)/g.height)),!d&&o>=t.right-g.width?(f.x=p.Forward,m.x=r*Math.abs((t.right-g.width-o)/g.width)):!h&&s<=t.left+g.width&&(f.x=p.Backward,m.x=r*Math.abs((t.left+g.width-s)/g.width)),{direction:f,speed:m}}(e,n,E,t,d);for(let e of["x","y"])f[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0){g(),_.current=e,m(A,s),k.current=a,x.current=i;return}}k.current={x:0,y:0},x.current={x:0,y:0},g()},[t,A,r,g,a,s,JSON.stringify(E),JSON.stringify(f),m,c,w,u,JSON.stringify(d)])}({...eB,delta:es,draggingRect:te,pointerCoordinates:e6,scrollableAncestors:e2,scrollableAncestorRects:e5});let tu=(0,v.useMemo)(()=>({active:eh,activeNode:eC,activeNodeRect:eK,activatorEvent:em,collisions:tt,containerNodeRect:eW,dragOverlay:eX,draggableNodes:ee,droppableContainers:el,droppableRects:eE,over:tr,measureDroppableContainers:ev,scrollableAncestors:e2,scrollableAncestorRects:e5,measuringConfiguration:ex,measuringScheduled:e_,windowRect:e1}),[eh,eC,eK,em,tt,eW,eX,ee,el,eE,tr,ev,e2,e5,ex,e_,e1]),th=(0,v.useMemo)(()=>({activatorEvent:em,activators:tc,active:eh,activeNodeRect:eK,ariaDescribedById:{draggable:eb},dispatch:U,draggableNodes:ee,over:tr,measureDroppableContainers:ev}),[em,tc,eh,eK,U,eb,ee,tr,ev]);return v.createElement(C.Provider,{value:j},v.createElement(eH.Provider,{value:th},v.createElement(e$.Provider,{value:tu},v.createElement(eV.Provider,{value:ta},M)),v.createElement(ez,{disabled:(null==S?void 0:S.restoreFocus)===!1})),v.createElement(I,{...S,hiddenTextDescribedById:eb}))}),eW=(0,v.createContext)(null),eq="button";function eY(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=(0,T.YG)("Draggable"),{activators:s,activatorEvent:o,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:h,over:d}=(0,v.useContext)(eH),{role:p=eq,roleDescription:f="draggable",tabIndex:m=0}=null!=i?i:{},g=(null==l?void 0:l.id)===t,y=(0,v.useContext)(g?eV:eW),[b,k]=(0,T.lk)(),[x,E]=(0,T.lk)(),_=(0,v.useMemo)(()=>s.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[s,t]),A=(0,T.YN)(n);return(0,T.Es)(()=>(h.set(t,{id:t,key:a,node:b,activatorNode:x,data:A}),()=>{let e=h.get(t);e&&e.key===a&&h.delete(t)}),[h,t]),{active:l,activatorEvent:o,activeNodeRect:c,attributes:(0,v.useMemo)(()=>({role:p,tabIndex:m,"aria-disabled":r,"aria-pressed":!!g&&p===eq||void 0,"aria-roledescription":f,"aria-describedby":u.draggable}),[r,p,m,g,f,u.draggable]),isDragging:g,listeners:r?void 0:_,node:b,over:d,setNodeRef:k,setActivatorNodeRef:E,transform:y}}function eX(){return(0,v.useContext)(e$)}let eQ={timeout:25};function eZ(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=(0,T.YG)("Droppable"),{active:s,dispatch:o,over:l,measureDroppableContainers:c}=(0,v.useContext)(eH),u=(0,v.useRef)({disabled:n}),h=(0,v.useRef)(!1),p=(0,v.useRef)(null),f=(0,v.useRef)(null),{disabled:m,updateMeasurementsFor:g,timeout:y}={...eQ,...i},b=(0,T.YN)(null!=g?g:r),k=eS({callback:(0,v.useCallback)(()=>{if(!h.current){h.current=!0;return}null!=f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),f.current=null},y)},[y]),disabled:m||!s}),x=(0,v.useCallback)((e,t)=>{k&&(t&&(k.unobserve(t),h.current=!1),e&&k.observe(e))},[k]),[E,_]=(0,T.lk)(x),A=(0,T.YN)(t);return(0,v.useEffect)(()=>{k&&E.current&&(k.disconnect(),h.current=!1,k.observe(E.current))},[E,k]),(0,v.useEffect)(()=>(o({type:d.RegisterDroppable,element:{id:r,key:a,disabled:n,node:E,rect:p,data:A}}),()=>o({type:d.UnregisterDroppable,key:a,id:r})),[r]),(0,v.useEffect)(()=>{n!==u.current.disabled&&(o({type:d.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,o]),{active:s,rect:p,isOver:(null==l?void 0:l.id)===r,node:E,over:l,setNodeRef:_}}},43326:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},43428:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(47552),i=n(47057);let a=e=>!((e=>{let{r:t,g:n,b:a}=i.A.parse(e),s=.2126*r.A.channel.toLinear(t)+.7152*r.A.channel.toLinear(n)+.0722*r.A.channel.toLinear(a);return r.A.lang.round(s)})(e)>=.5)},44382:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(72034);function i(e,t,n,i){let a,s,o;"function"==typeof t&&"function"!=typeof n?(s=void 0,o=t,a=n):(s=t,o=n,a=i),(0,r.VG)(e,s,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},a)}},44549:(e,t,n)=>{"use strict";n.d(t,{WY:()=>A,dn:()=>T,pC:()=>v,Gc:()=>k});var r=n(89316),i=n(47508),a=n(39410);let s=(e,t)=>!!e&&!!((t&&""===e.prefix||e.prefix)&&e.name),o=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...o,...l}),u=Object.freeze({...c,body:"",hidden:!1});function h(e,t){let n,r,i=(n={},!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0),(r=((e.rotate||0)+(t.rotate||0))%4)&&(n.rotate=r),n);for(let n in u)n in l?n in e&&!(n in i)&&(i[n]=l[n]):n in t?i[n]=t[n]:n in e&&(i[n]=e[n]);return i}function d(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function s(e){a=h(r[e]||i[e],a)}return s(t),n.forEach(s),h(e,a)}let p=Object.freeze({...Object.freeze({width:null,height:null}),...l}),f=/(-?[0-9.]*[0-9]+[0-9.]*)/g,m=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function g(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;let r=e.split(f);if(null===r||!r.length)return e;let i=[],a=r.shift(),s=m.test(a);for(;;){if(s){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(void 0===(a=r.shift()))return i.join("");s=!s}}let y=/\sid="(\S+)"/g,b=new Map;var k={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},x=new Map,E=new Map,v=(0,a.K)(e=>{for(let t of e){if(!t.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.R.debug("Registering icon pack:",t.name),"loader"in t)E.set(t.name,t.loader);else if("icons"in t)x.set(t.name,t.icons);else throw i.R.error("Invalid icon loader:",t),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),_=(0,a.K)(async(e,t)=>{let n=((e,t,n,r="")=>{let i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!s(a)?null:a}let a=i[0],o=a.split("-");if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!s(e)?null:e}if(n&&""===r){let e={provider:r,prefix:"",name:a};return t&&!s(e,n)?null:e}return null})(e,!0,void 0!==t);if(!n)throw Error(`Invalid icon name: ${e}`);let r=n.prefix||t;if(!r)throw Error(`Icon name must contain a prefix: ${e}`);let a=x.get(r);if(!a){let e=E.get(r);if(!e)throw Error(`Icon set not found: ${n.prefix}`);try{a={...await e(),prefix:r},x.set(r,a)}catch(e){throw i.R.error(e),Error(`Failed to load icon set: ${n.prefix}`)}}let o=function(e,t){var n;let r,i,a;if(e.icons[t])return d(e,t,[]);let s=(n=[t],r=e.icons,i=e.aliases||Object.create(null),a=Object.create(null),(n||Object.keys(r).concat(Object.keys(i))).forEach(function e(t){if(r[t])return a[t]=[];if(!(t in a)){a[t]=null;let n=i[t]&&i[t].parent,r=n&&e(n);r&&(a[t]=[n].concat(r))}return a[t]}),a)[t];return s?d(e,t,s):null}(a,n.name);if(!o)throw Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),T=(0,a.K)(async e=>{try{return await _(e),!0}catch{return!1}},"isIconAvailable"),A=(0,a.K)(async(e,t,n)=>{var a;let s,o,l,u,h,d,f,m,x,E,v,T,A,w;try{s=await _(e,t?.fallbackPrefix)}catch(e){i.R.error(e),s=k}let S=(a=s,u={...c,...a},h={...p,...t},d={left:u.left,top:u.top,width:u.width,height:u.height},f=u.body,[u,h].forEach(e=>{var t,n,r,i;let a,s,o=[],l=e.hFlip,c=e.vFlip,u=e.rotate;switch(l?c?u+=2:(o.push("translate("+(d.width+d.left).toString()+" "+(0-d.top).toString()+")"),o.push("scale(-1 1)"),d.top=d.left=0):c&&(o.push("translate("+(0-d.left).toString()+" "+(d.height+d.top).toString()+")"),o.push("scale(1 -1)"),d.top=d.left=0),u<0&&(u-=4*Math.floor(u/4)),u%=4){case 1:o.unshift("rotate(90 "+(a=d.height/2+d.top).toString()+" "+a.toString()+")");break;case 2:o.unshift("rotate(180 "+(d.width/2+d.left).toString()+" "+(d.height/2+d.top).toString()+")");break;case 3:o.unshift("rotate(-90 "+(a=d.width/2+d.left).toString()+" "+a.toString()+")")}u%2==1&&(d.left!==d.top&&(a=d.left,d.left=d.top,d.top=a),d.width!==d.height&&(a=d.width,d.width=d.height,d.height=a)),o.length&&(t=f,n='<g transform="'+o.join(" ")+'">',r=(s=function(e,t="defs"){let n="",r=e.indexOf("<"+t);for(;r>=0;){let i=e.indexOf(">",r),a=e.indexOf("</"+t);if(-1===i||-1===a)break;let s=e.indexOf(">",a);if(-1===s)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(s+1)}return{defs:n,content:e}}(t)).defs,i=n+s.content+"</g>",f=r?"<defs>"+r+"</defs>"+i:i)}),m=h.width,x=h.height,E=d.width,v=d.height,null===m?o=g(l=null===x?"1em":"auto"===x?v:x,E/v):(o="auto"===m?E:m,l=null===x?g(o,v/E):"auto"===x?v:x),T={},(A=(e,t)=>{"unset"!==t&&"undefined"!==t&&"none"!==t&&(T[e]=t.toString())})("width",o),A("height",l),T.viewBox=(w=[d.left,d.top,E,v]).join(" "),{attributes:T,viewBox:w,body:f}),C=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(function(e){let t,n=[];for(;t=y.exec(e);)n.push(t[1]);if(!n.length)return e;let r="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return n.forEach(t=>{var n;let i,a=(n=(n=t).replace(/[0-9]+$/,"")||"a",i=b.get(n)||0,b.set(n,i+1),i?`${n}${i}`:n),s=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),e=e.replace(RegExp(r,"g"),"")}(S.body),{...S.attributes,...n});return(0,r.jZ)(C,(0,r.zj)())},"getIconSVG")},45087:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(69266);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function a(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],s=t[n];return"function"==typeof r?`${r}`==`${s}`:i(r)&&i(s)?a(r,s):r===s})}function s(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function o(e){return"number"==typeof e}function l(e){return"string"==typeof e}function c(e){return"boolean"==typeof e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function h(e){return Math.abs(e)}function d(e){return Math.sign(e)}function p(e){return y(e).map(Number)}function f(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function g(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function y(e){return Object.keys(e)}function b(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function k(){let e=[],t={add:function(n,r,i,a={passive:!0}){let s;return"addEventListener"in n?(n.addEventListener(r,i,a),s=()=>n.removeEventListener(r,i,a)):(n.addListener(i),s=()=>n.removeListener(i)),e.push(s),t},clear:function(){e=e.filter(e=>e())}};return t}function x(e=0,t=0){let n=h(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function E(e){let t=e;function n(e){return o(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function v(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,i=null,a=!1;return{clear:function(){!a&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(a)return;let s=Math.round(100*e.direction(t))/100;s!==i&&(r.transform=n(s),i=s)},toggleActive:function(e){a=!e}}}let _={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function T(e,t,n){let r,i,a,s,A,w,S,C,N=e.ownerDocument,M=N.defaultView,I=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(y(n).forEach(r=>{let i=t[r],a=n[r],s=u(i)&&u(a);t[r]=s?e(i,a):a}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=y(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>y(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(M),L=(C=[],{init:function(e,t){return(C=t.filter(({options:e})=>!1!==I.optionsAtMedia(e).active)).forEach(t=>t.init(e,I)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){C=C.filter(e=>e.destroy())}}),R=k(),D=(i={},a={init:function(e){r=e},emit:function(e){return(i[e]||[]).forEach(t=>t(r,e)),a},off:function(e,t){return i[e]=(i[e]||[]).filter(e=>e!==t),a},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),a},clear:function(){i={}}}),{mergeOptions:O,optionsAtMedia:P,optionsMediaQueries:F}=I,{on:B,off:U,emit:H}=D,$=!1,j=O(_,T.globalOptions),G=O(j),z=[];function V(t,n){$||(G=P(j=O(j,t)),z=n||z,function(){let{container:t,slides:n}=G;w=(l(t)?e.querySelector(t):t)||e.children[0];let r=l(n)?w.querySelectorAll(n):n;S=[].slice.call(r||w.children)}(),s=function t(n){let r=function(e,t,n,r,i,a,s){var u,_;let T,A,w,S,C,N,M,I,L,R,D,O,P,F,{align:B,axis:U,direction:H,startIndex:$,loop:j,duration:G,dragFree:z,dragThreshold:V,inViewThreshold:K,slidesToScroll:W,skipSnaps:q,containScroll:Y,watchResize:X,watchSlides:Q,watchDrag:Z,watchFocus:J}=a,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},et=ee.measure(t),en=n.map(ee.measure),er=(A="rtl"===H,S=(w="y"===U)||!A?1:-1,C=w?"top":A?"right":"left",N=w?"bottom":A?"left":"right",{scroll:w?"y":"x",cross:w?"x":"y",startEdge:C,endEdge:N,measureSize:function(e){let{height:t,width:n}=e;return w?t:n},direction:function(e){return e*S}}),ei=er.measureSize(et),ea={measure:function(e){return e/100*ei}},es=(u=B,_=ei,T={start:function(){return 0},center:function(e){return(_-e)/2},end:function(e){return _-e}},{measure:function(e,t){return l(u)?T[u](e):u(_,e,t)}}),eo=!j&&!!Y,{slideSizes:el,slideSizesWithGaps:ec,startGap:eu,endGap:eh}=function(e,t,n,r,i,a){let{measureSize:s,startEdge:o,endEdge:l}=e,c=n[0]&&i,u=function(){if(!c)return 0;let e=n[0];return h(t[o]-e[o])}(),d=c?parseFloat(a.getComputedStyle(f(r)).getPropertyValue(`margin-${l}`)):0,p=n.map(s),g=n.map((e,t,n)=>{let r=t===m(n);return t?r?p[t]+d:n[t+1][o]-e[o]:p[t]+u}).map(h);return{slideSizes:p,slideSizesWithGaps:g,startGap:u,endGap:d}}(er,et,en,n,j||!!Y,i),ed=function(e,t,n,r,i,a,s,l){let{startEdge:c,endEdge:u,direction:d}=e,g=o(n);return{groupSlides:function(e){return g?p(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?p(e).reduce((n,o,p)=>{let g=f(n)||0,y=o===m(e),b=i[c]-a[g][c],k=i[c]-a[o][u],x=r||0!==g?0:d(s),E=h(k-(!r&&y?d(l):0)-(b+x));return p&&E>t+2&&n.push(o),y&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(er,ei,W,j,et,en,eu,eh),{snaps:ep,snapsAligned:ef}=function(e,t,n,r,i){let{startEdge:a,endEdge:s}=e,{groupSlides:o}=i,l=o(r).map(e=>f(e)[s]-e[0][a]).map(h).map(t.measure),c=r.map(e=>n[a]-e[a]).map(e=>-h(e)),u=o(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:u}}(er,es,et,en,ed),em=-f(ep)+f(ec),{snapsContained:eg,scrollContainLimit:ey}=function(e,t,n,r){let i,a,s=x(-t+e,0),o=n.map((e,t)=>{let{min:r,max:i}=s,a=s.constrain(e),o=t===m(n);return t?o||function(e,t){return 1>=h(e-t)}(r,a)?r:function(e,t){return 1>=h(e-t)}(i,a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),l=(i=o[0],a=f(o),x(o.lastIndexOf(i),o.indexOf(a)+1));return{snapsContained:function(){if(t<=e+2)return[s.max];if("keepSnaps"===r)return o;let{min:n,max:i}=l;return o.slice(n,i)}(),scrollContainLimit:l}}(ei,em,ef,Y),eb=eo?eg:ef,{limit:ek}=(M=eb[0],{limit:x(j?M-em:f(eb),M)}),ex=function e(t,n,r){let{constrain:i}=x(0,t),a=t+1,s=o(n);function o(e){return r?h((a+e)%a):i(e)}function l(){return e(t,s,r)}let c={get:function(){return s},set:function(e){return s=o(e),c},add:function(e){return l().set(s+e)},clone:l};return c}(m(eb),$,j),eE=ex.clone(),ev=p(n),e_=function(e,t,n,r){let i=k(),a=1e3/60,s=null,o=0,l=0;function c(e){if(!l)return;s||(s=e,n(),n());let i=e-s;for(s=e,o+=i;o>=a;)n(),o-=a;r(o/a),l&&(l=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(l),s=null,o=0,l=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(s=null,o=0)})},destroy:function(){u(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:u,update:n,render:r}}(r,i,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(eF),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:s,dragHandler:o,animation:l,eventHandler:c,scrollBounds:u,options:{loop:h}},d)=>{let p=e.settled(),f=!u.shouldConstrain(),m=h?p:p&&f,g=m&&!o.pointerDown();g&&l.stop();let y=n.get()*d+i.get()*(1-d);r.set(y),h&&(a.loop(e.direction()),s.loop()),t.to(r.get()),g&&c.emit("settle"),m||c.emit("scroll")})(eF,e)),eT=eb[ex.get()],eA=E(eT),ew=E(eT),eS=E(eT),eC=E(eT),eN=function(e,t,n,r,i){let a=0,s=0,o=i,l=.68,c=e.get(),u=0;function p(e){return o=e,m}function f(e){return l=e,m}let m={direction:function(){return s},duration:function(){return o},velocity:function(){return a},seek:function(){let t=r.get()-e.get(),i=0;return o?(n.set(e),a+=t/o,a*=l,c+=a,e.add(a),i=c-u):(a=0,n.set(r),e.set(r),i=t),s=d(i),u=c,m},settled:function(){return .001>h(r.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return p(i)},useFriction:f,useDuration:p};return m}(eA,eS,ew,eC,G),eM=function(e,t,n,r,i){let{reachedAny:a,removeOffset:s,constrain:o}=r;function l(e){return e.concat().sort((e,t)=>h(e)-h(t))[0]}function c(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return l(i);let a=i.filter(e=>d(e)===r);return a.length?l(a):f(i)-n}return{byDistance:function(n,r){let l=i.get()+n,{index:u,distance:d}=function(n){let r=e?s(n):o(n),{index:i}=t.map((e,t)=>({diff:c(e-r,0),index:t})).sort((e,t)=>h(e.diff)-h(t.diff))[0];return{index:i,distance:r}}(l),p=!e&&a(l);if(!r||p)return{index:u,distance:n};let f=n+c(t[u]-d,0);return{index:u,distance:f}},byIndex:function(e,n){let r=c(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:c}}(j,eb,em,ek,eC),eI=function(e,t,n,r,i,a,s){function o(i){let o=i.distance,l=i.index!==t.get();a.add(o),o&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(i.index),s.emit("select"))}return{distance:function(e,t){o(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);o(i.byIndex(r.get(),n))}}}(e_,ex,eE,eN,eM,eC,s),eL=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ek),eR=k(),eD=(L={},R=null,D=null,O=!1,{init:function(){I=new IntersectionObserver(e=>{O||(e.forEach(e=>{L[n.indexOf(e.target)]=e}),R=null,D=null,s.emit("slidesInView"))},{root:t.parentElement,threshold:K}),n.forEach(e=>I.observe(e))},destroy:function(){I&&I.disconnect(),O=!0},get:function(e=!0){if(e&&R)return R;if(!e&&D)return D;let t=y(L).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=L[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(R=t),e||(D=t),t}}),{slideRegistry:eO}=function(e,t,n,r,i,a){let s,{groupSlides:o}=i,{min:l,max:c}=r;return{slideRegistry:(s=o(a),1===n.length?[a]:e&&"keepSnaps"!==t?s.slice(l,c).map((e,t,n)=>{let r=t===m(n);return t?r?g(m(a)-f(n)[0]+1,f(n)[0]):e:g(f(n[0])+1)}):s)}}(eo,Y,eb,ey,ed,ev),eP=function(e,t,n,r,i,a,s,l){let u={passive:!0,capture:!0},h=0;function d(e){"Tab"===e.code&&(h=new Date().getTime())}return{init:function(p){l&&(a.add(document,"keydown",d,!1),t.forEach((t,d)=>{a.add(t,"focus",t=>{(c(l)||l(p,t))&&function(t){if(new Date().getTime()-h>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));o(a)&&(i.useDuration(0),r.index(a,0),s.emit("slideFocus"))}(d)},u)}))}}}(e,n,eO,eI,eN,eR,s,J),eF={ownerDocument:r,ownerWindow:i,eventHandler:s,containerRect:et,slideRects:en,animation:e_,axis:er,dragHandler:function(e,t,n,r,i,a,s,o,l,u,p,f,m,g,y,E,v,_){let{cross:T,direction:A}=e,w=["INPUT","SELECT","TEXTAREA"],S={passive:!1},C=k(),N=k(),M=x(50,225).constrain(g.measure(20)),I={mouse:300,touch:400},L={mouse:500,touch:600},R=y?43:25,D=!1,O=0,P=0,F=!1,B=!1,U=!1,H=!1;function $(e){if(!b(e,r)&&e.touches.length>=2)return j(e);let t=a.readPoint(e),n=a.readPoint(e,T),s=h(t-O),l=h(n-P);if(!B&&!H&&(!e.cancelable||!(B=s>l)))return j(e);let c=a.pointerMove(e);s>E&&(U=!0),u.useFriction(.3).useDuration(.75),o.start(),i.add(A(c)),e.preventDefault()}function j(e){var t;let n,r,i=p.byDistance(0,!1).index!==f.get(),s=a.pointerUp(e)*(y?L:I)[H?"mouse":"touch"],o=(t=A(s),n=f.add(-1*d(t)),r=p.byDistance(t,!y).distance,y||h(t)<M?r:v&&i?.5*r:p.byIndex(n.get(),0).distance),c=function(e,t){var n,r;if(0===e||0===t||h(e)<=h(t))return 0;let i=(n=h(e),r=h(t),h(n-r));return h(i/e)}(s,o);B=!1,F=!1,N.clear(),u.useDuration(R-10*c).useFriction(.68+c/50),l.distance(o,!y),H=!1,m.emit("pointerUp")}function G(e){U&&(e.stopPropagation(),e.preventDefault(),U=!1)}return{init:function(e){_&&C.add(t,"dragstart",e=>e.preventDefault(),S).add(t,"touchmove",()=>void 0,S).add(t,"touchend",()=>void 0).add(t,"touchstart",o).add(t,"mousedown",o).add(t,"touchcancel",j).add(t,"contextmenu",j).add(t,"click",G,!0);function o(o){(c(_)||_(e,o))&&function(e){let o,l=b(e,r);if((H=l,U=y&&l&&!e.buttons&&D,D=h(i.get()-s.get())>=2,!l||0===e.button)&&(o=e.target.nodeName||"",!w.includes(o))){let r;F=!0,a.pointerDown(e),u.useFriction(0).useDuration(0),i.set(s),r=H?n:t,N.add(r,"touchmove",$,S).add(r,"touchend",j).add(r,"mousemove",$,S).add(r,"mouseup",j),O=a.readPoint(e),P=a.readPoint(e,T),m.emit("pointerDown")}}(o)}},destroy:function(){C.clear(),N.clear()},pointerDown:function(){return F}}}(er,e,r,i,eC,function(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=r||e.scroll,a=`client${"x"===i?"X":"Y"}`;return(b(n,t)?n:n.touches[0])[a]}return{pointerDown:function(e){return n=e,r=e,a(e)},pointerMove:function(e){let t=a(e)-a(r),s=i(e)-i(n)>170;return r=e,s&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=a(r)-a(n),s=i(e)-i(n),o=i(e)-i(r)>170,l=t/s;return s&&!o&&h(l)>.1?l:0},readPoint:a}}(er,i),eA,e_,eI,eN,eM,ex,s,ea,z,V,q,Z),eventStore:eR,percentOfView:ea,index:ex,indexPrevious:eE,limit:ek,location:eA,offsetLocation:eS,previousLocation:ew,options:a,resizeHandler:function(e,t,n,r,i,a,s){let o,l,u=[e].concat(r),d=[],p=!1;function f(e){return i.measureSize(s.measure(e))}return{init:function(i){a&&(l=f(e),d=r.map(f),o=new ResizeObserver(n=>{(c(a)||a(i,n))&&function(n){for(let a of n){if(p)return;let n=a.target===e,s=r.indexOf(a.target),o=n?l:d[s];if(h(f(n?e:r[s])-o)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{u.forEach(e=>o.observe(e))}))},destroy:function(){p=!0,o&&o.disconnect()}}}(t,s,i,n,er,X,ee),scrollBody:eN,scrollBounds:function(e,t,n,r,i){let a=i.measure(10),s=i.measure(50),o=x(.1,.99),l=!1;function c(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:c,constrain:function(i){if(!c())return;let l=e.reachedMin(t.get())?"min":"max",u=h(e[l]-t.get()),d=n.get()-t.get(),p=o.constrain(u/s);n.subtract(d*p),!i&&h(d)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(ek,eS,eC,eN,ea),scrollLooper:function(e,t,n,r){let{reachedMin:i,reachedMax:a}=x(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?a(n.get()):-1===t&&i(n.get())))return;let s=-1*t*e;r.forEach(e=>e.add(s))}}}(em,ek,eS,[eA,eS,ew,eC]),scrollProgress:eL,scrollSnapList:eb.map(eL.get),scrollSnaps:eb,scrollTarget:eM,scrollTo:eI,slideLooper:function(e,t,n,r,i,a,s,o,l){let c=p(i),u=p(i).reverse(),h=m(f(u,s[0]),n,!1).concat(m(f(c,t-s[0]-1),-n,!0));function d(e,t){return e.reduce((e,t)=>e-i[t],t)}function f(e,t){return e.reduce((e,n)=>d(e,t)>0?e.concat([n]):e,[])}function m(i,s,c){let u=a.map((e,n)=>({start:e-r[n]+.5+s,end:e+t-.5+s}));return i.map(t=>{let r=c?0:-n,i=c?n:0,a=u[t][c?"end":"start"];return{index:t,loopPoint:a,slideLocation:E(-1),translate:v(e,l[t]),target:()=>o.get()>a?r:i}})}return{canLoop:function(){return h.every(({index:e})=>.1>=d(c.filter(t=>t!==e),t))},clear:function(){h.forEach(e=>e.translate.clear())},loop:function(){h.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:h}}(er,ei,em,el,ec,ep,eb,eS,n),slideFocus:eP,slidesHandler:(F=!1,{init:function(e){Q&&(P=new MutationObserver(t=>{!F&&(c(Q)||Q(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),s.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){P&&P.disconnect(),F=!0}}),slidesInView:eD,slideIndexes:ev,slideRegistry:eO,slidesToScroll:ed,target:eC,translate:v(er,t)};return eF}(e,w,S,N,M,n,D);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(G),F([j,...z.map(({options:e})=>e)]).forEach(e=>R.add(e,"change",K)),G.active&&(s.translate.to(s.location.get()),s.animation.init(),s.slidesInView.init(),s.slideFocus.init(X),s.eventHandler.init(X),s.resizeHandler.init(X),s.slidesHandler.init(X),s.options.loop&&s.slideLooper.loop(),w.offsetParent&&S.length&&s.dragHandler.init(X),A=L.init(X,z)))}function K(e,t){let n=Y();W(),V(O({startIndex:n},e),t),D.emit("reInit")}function W(){s.dragHandler.destroy(),s.eventStore.clear(),s.translate.clear(),s.slideLooper.clear(),s.resizeHandler.destroy(),s.slidesHandler.destroy(),s.slidesInView.destroy(),s.animation.destroy(),L.destroy(),R.clear()}function q(e,t,n){G.active&&!$&&(s.scrollBody.useBaseFriction().useDuration(!0===t?0:G.duration),s.scrollTo.index(e,n||0))}function Y(){return s.index.get()}let X={canScrollNext:function(){return s.index.add(1).get()!==Y()},canScrollPrev:function(){return s.index.add(-1).get()!==Y()},containerNode:function(){return w},internalEngine:function(){return s},destroy:function(){$||($=!0,R.clear(),W(),D.emit("destroy"),D.clear())},off:U,on:B,emit:H,plugins:function(){return A},previousScrollSnap:function(){return s.indexPrevious.get()},reInit:K,rootNode:function(){return e},scrollNext:function(e){q(s.index.add(1).get(),e,-1)},scrollPrev:function(e){q(s.index.add(-1).get(),e,1)},scrollProgress:function(){return s.scrollProgress.get(s.offsetLocation.get())},scrollSnapList:function(){return s.scrollSnapList},scrollTo:q,selectedScrollSnap:Y,slideNodes:function(){return S},slidesInView:function(){return s.slidesInView.get()},slidesNotInView:function(){return s.slidesInView.get(!1)}};return V(t,n),setTimeout(()=>D.emit("init"),0),X}function A(e={},t=[]){let n=(0,r.useRef)(e),i=(0,r.useRef)(t),[o,l]=(0,r.useState)(),[c,u]=(0,r.useState)(),h=(0,r.useCallback)(()=>{o&&o.reInit(n.current,i.current)},[o]);return(0,r.useEffect)(()=>{a(n.current,e)||(n.current=e,h())},[e,h]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=s(e),r=s(t);return n.every((e,t)=>a(e,r[t]))}(i.current,t)&&(i.current=t,h())},[t,h]),(0,r.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&c){T.globalOptions=A.globalOptions;let e=T(c,n.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[c,l]),[u,o]}T.globalOptions=void 0,A.globalOptions=void 0},45811:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},47057:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(12318),i=n(62623);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;let t=e.match(a.re);if(!t)return;let n=t[1],i=parseInt(n,16),s=n.length,o=s%4==0,l=s>4,c=l?1:17,u=l?8:4,h=o?0:-1,d=l?255:15;return r.A.set({r:(i>>u*(h+3)&d)*c,g:(i>>u*(h+2)&d)*c,b:(i>>u*(h+1)&d)*c,a:o?(i&d)*c/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a}=e;return a<1?`#${i.Y[Math.round(t)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}${i.Y[Math.round(255*a)]}`:`#${i.Y[Math.round(t)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}`}};var s=n(47552);let o={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{let t=e.match(o.hueRe);if(t){let[,e,n]=t;switch(n){case"grad":return s.A.channel.clamp.h(.9*parseFloat(e));case"rad":return s.A.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return s.A.channel.clamp.h(360*parseFloat(e))}}return s.A.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(104!==t&&72!==t)return;let n=e.match(o.re);if(!n)return;let[,i,a,l,c,u]=n;return r.A.set({h:o._hue2deg(i),s:s.A.channel.clamp.s(parseFloat(a)),l:s.A.channel.clamp.l(parseFloat(l)),a:c?s.A.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${s.A.lang.round(t)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%, ${i})`:`hsl(${s.A.lang.round(t)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();let t=l.colors[e];if(t)return a.parse(t)},stringify:e=>{let t=a.stringify(e);for(let e in l.colors)if(l.colors[e]===t)return e}},c={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{let t=e.charCodeAt(0);if(114!==t&&82!==t)return;let n=e.match(c.re);if(!n)return;let[,i,a,o,l,u,h,d,p]=n;return r.A.set({r:s.A.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:s.A.channel.clamp.g(l?2.55*parseFloat(o):parseFloat(o)),b:s.A.channel.clamp.b(h?2.55*parseFloat(u):parseFloat(u)),a:d?s.A.channel.clamp.a(p?parseFloat(d)/100:parseFloat(d)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${s.A.lang.round(t)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)})`:`rgb(${s.A.lang.round(t)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)})`}},u={format:{keyword:l,hex:a,rgb:c,rgba:c,hsl:o,hsla:o},parse:e=>{if("string"!=typeof e)return e;let t=a.parse(e)||c.parse(e)||o.parse(e)||l.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(i.Z.HSL)||void 0===e.data.r?o.stringify(e):!(e.a<1)&&Number.isInteger(e.r)&&Number.isInteger(e.g)&&Number.isInteger(e.b)?a.stringify(e):c.stringify(e)}},47150:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var r=n(69266),i=n(69611),a=n(25905),s=n(7962);let o=r.forwardRef(function(e,t){let{render:n,className:o,style:l,...c}=e,[u,h]=r.useState(void 0),d=(0,i.o)("div",e,{ref:t,props:{role:"group","aria-labelledby":u,...c}});return(0,s.jsx)(a.c.Provider,{value:h,children:d})})},47252:(e,t,n)=>{"use strict";n.d(t,{p:()=>c});var r=n(69266),i=n(56906),a=n(69611),s=n(39341),o=n(47623),l=n(43745);let c=r.forwardRef(function(e,t){let{render:n,className:c,style:u,keepMounted:h=!1,...d}=e,p=(0,i.w)(),f=r.useRef(null),{transitionStatus:m,mounted:g,setMounted:y}=(0,o.$)(p.checked);(0,l.v)({open:p.checked,ref:f,onComplete(){p.checked||y(!1)}});let b={checked:p.checked,disabled:p.disabled,highlighted:p.highlighted,transitionStatus:m};return(0,a.o)("span",e,{state:b,stateAttributesMapping:s.a,ref:[t,f],props:{"aria-hidden":!0,...d},enabled:h||g})})},47508:(e,t,n)=>{"use strict";n.d(t,{H:()=>o,R:()=>s});var r=n(39410),i=n(12437),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},s={trace:(0,r.K)((...e)=>{},"trace"),debug:(0,r.K)((...e)=>{},"debug"),info:(0,r.K)((...e)=>{},"info"),warn:(0,r.K)((...e)=>{},"warn"),error:(0,r.K)((...e)=>{},"error"),fatal:(0,r.K)((...e)=>{},"fatal")},o=(0,r.K)(function(e="fatal"){let t=a.fatal;"string"==typeof e?e.toLowerCase()in a&&(t=a[e]):"number"==typeof e&&(t=e),s.trace=()=>{},s.debug=()=>{},s.info=()=>{},s.warn=()=>{},s.error=()=>{},s.fatal=()=>{},t<=a.fatal&&(s.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),t<=a.error&&(s.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),t<=a.warn&&(s.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",l("WARN"))),t<=a.info&&(s.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),t<=a.debug&&(s.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),t<=a.trace&&(s.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,r.K)(e=>{let t=i().format("ss.SSS");return`%c${t} : ${e} : `},"format")},47552:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e,hsl2rgb:({h:e,s:t,l:n},i)=>{if(!t)return 2.55*n;e/=360,t/=100;let a=(n/=100)<.5?n*(1+t):n+t-n*t,s=2*n-a;switch(i){case"r":return 255*r.hue2rgb(s,a,e+1/3);case"g":return 255*r.hue2rgb(s,a,e);case"b":return 255*r.hue2rgb(s,a,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{let i=Math.max(e/=255,t/=255,n/=255),a=Math.min(e,t,n),s=(i+a)/2;if("l"===r)return 100*s;if(i===a)return 0;let o=i-a;if("s"===r)return 100*(s>.5?o/(2-i-a):o/(i+a));switch(i){case e:return((t-n)/o+6*(t<n))*60;case t:return((n-e)/o+2)*60;case n:return((e-t)/o+4)*60;default:return -1}}},i={channel:r,lang:{clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}}},47744:(e,t,n)=>{"use strict";n.d(t,{j:()=>v});var r=n(69266),i=n(53949),a=n(66758),s=n(36158),o=n(52333),l=n(12566),c=n(53402),u=n(27944),h=n(44596),d=n(15494),p=n(14738),f=n(63962),m=n(5733),g=n(8675);let y={...d.ol,instantType:e=>e.instantType,adaptiveOrigin:e=>e.adaptiveOrigin,closeDelay:e=>e.closeDelay};class b extends h.H{constructor(e,t,n){const i=new p.Z;super(function(e,t,n,r=!1){let i={...(0,d.rJ)(),instantType:void 0,adaptiveOrigin:void 0,closeDelay:g.V,...e};return 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,triggerElements:e,inlineRectCoordsRef:{current:void 0}}}(i),y)}setOpen=(e,t)=>{let{inlineRectCoordsRef:n}=this.context;(0,f.DU)(this,e,t,{onBeforeDispatch(){let r=t.event;e&&t.reason===u.N7&&t.trigger&&"clientX"in r&&"clientY"in r&&n.current?.element!==t.trigger&&(0,m.hI)(n,t.trigger,r.clientX,r.clientY)}})}}var k=n(7962);function x(e){let{open:t,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:s,actionsRef:o,handle:h,triggerId:d,defaultTriggerId:p=null,children:m}=e,g=(0,f.xp)((e,r)=>new b({open:n,openProp:t,activeTriggerId:p,triggerIdProp:d},e,r));g.useControlledProp("openProp",t),g.useControlledProp("triggerIdProp",d),g.useContextCallback("onOpenChange",i),g.useContextCallback("onOpenChangeComplete",s);let y=g.useState("open"),x=g.useState("activeTriggerId"),v=g.useState("mounted"),_=g.useState("payload");(0,f.tr)(g,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:T}=(0,f.l$)(y,g,()=>{g.context.inlineRectCoordsRef.current=void 0});(0,a.g)(()=>{y&&null==x&&g.set("payload",void 0)},[g,x,y]),r.useImperativeHandle(o,()=>({unmount:T,close:()=>g.setOpen(!1,(0,c.d)(u.zJ))}),[T,g]);let A=y||v;return(0,k.jsxs)(l.O.Provider,{value:g,children:[h&&(0,k.jsx)(f.Ae,{handle:h,store:g}),A&&(0,k.jsx)(E,{store:g}),"function"==typeof m?m({payload:_}):m]})}function E({store:e}){let t=e.useState("floatingRootContext"),n=(0,s.s)(t);return(0,f.i6)(e,{activeTriggerProps:n.reference,inactiveTriggerProps:n.trigger,popupProps:n.floating}),null}let v=(0,i.G1)(function(e){return(0,l.r)(!0)?(0,k.jsx)(x,{...e}):(0,k.jsx)(o.P6,{children:(0,k.jsx)(x,{...e})})})},48318:(e,t,n)=>{"use strict";n.d(t,{D:()=>B});var r=n(56227),i=n(24987);function a(e,t){let n=function(e,t){switch(e.nodeType){case 1:return function(e,t){let n=e.namespaceURI,a=n===i.t.svg?r.s:r.h,o=n===i.t.html?e.tagName.toLowerCase():e.tagName,l=n===i.t.html&&"template"===o?e.content:e,c=e.getAttributeNames(),u={},h=-1;for(;++h<c.length;)u[c[h]]=e.getAttribute(c[h])||"";return a(o,u,s(l,t))}(e,t);case 3:return{type:"text",value:e.nodeValue||""};case 8:return{type:"comment",value:e.nodeValue||""};case 9:case 11:return function(e,t){return{type:"root",children:s(e,t)}}(e,t);case 10:return{type:"doctype"};default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function s(e,t){let n=e.childNodes,r=[],i=-1;for(;++i<n.length;){let e=a(n[i],t);void 0!==e&&r.push(e)}return r}let o=new DOMParser;var l=n(64587);let c=function(e,t,n){let r=(0,l.C)(n);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===1/0)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},u=function(e){if(null==e)return d;if("string"==typeof e){var t;return t=e,h(function(e){return e.tagName===t})}if("object"==typeof e){var n=e;let t=[],r=-1;for(;++r<n.length;)t[r]=u(n[r]);return h(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}if("function"==typeof e)return h(e);throw Error("Expected function, string, or array as `test`")};function h(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&"tagName"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function d(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let p=/\n/g,f=/[\t ]+/g,m=u("br"),g=u(function(e){return"td"===e.tagName||"th"===e.tagName}),y=u("p"),b=u("tr"),k=u(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),x=u(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function E(e,t){let n,r=String(e.value),i=[],a=[],s=0;for(;s<=r.length;){p.lastIndex=s;let e=p.exec(r),n=e&&"index"in e?e.index:r.length;i.push(function(e,t,n){let r,i=[],a=0;for(;a<e.length;){f.lastIndex=a;let n=f.exec(e);r=n?n.index:e.length,a||r||!n||t||i.push(""),a!==r&&i.push(e.slice(a,r)),a=n?r+n[0].length:r}return a===r||n||i.push(""),i.join(" ")}(r.slice(s,n).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==s||t.breakBefore,n!==r.length||t.breakAfter)),s=n+1}let o=-1;for(;++o<i.length;)8203===i[o].charCodeAt(i[o].length-1)||o<i.length-1&&8203===i[o+1].charCodeAt(0)?(a.push(i[o]),n=void 0):i[o]?("number"==typeof n&&a.push(n),a.push(i[o]),n=0):(0===o||o===i.length-1)&&a.push(0);return a}function v(e,t){if("element"===e.type){let n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}var _=n(17971),T=n(72034);let A={},w=[];function S(e){let t=e||A;return function(e,n){(0,T.VG)(e,"element",function(e,r){var i,s,l;let u,h,d=Array.isArray(e.properties.className)?e.properties.className:w,p=d.includes("language-math"),f=d.includes("math-display"),A=d.includes("math-inline"),S=f;if(!p&&!f&&!A)return;let C=r[r.length-1],N=e;if("code"===e.tagName&&p&&C&&"element"===C.type&&"pre"===C.tagName&&(N=C,C=r[r.length-2],S=!0),!C)return;let M=function(e,t){let n,r="children"in e?e.children:[],i=x(e),a=v(e,{whitespace:(t||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),s=[];("text"===e.type||"comment"===e.type)&&s.push(...E(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)s.push(...function e(t,n,r){return"element"===t.type?function(t,n,r){let i,a,s=v(t,r),o=t.children||[],l=-1,u=[];if(k(t))return u;for(m(t)||b(t)&&c(n,t,b)?a="\n":y(t)?(i=2,a=2):x(t)&&(i=1,a=1);++l<o.length;)u=u.concat(e(o[l],t,{whitespace:s,breakBefore:l?void 0:i,breakAfter:l<o.length-1?m(o[l+1]):a}));return g(t)&&c(n,t,g)&&u.push(" "),i&&u.unshift(i),a&&u.push(a),u}(t,n,r):"text"===t.type?"normal"===r.whitespace?E(t,r):[String(t.value)]:[]}(r[o],e,{whitespace:a,breakBefore:o?void 0:i,breakAfter:o<r.length-1?m(r[o+1]):i}));let l=[];for(o=-1;++o<s.length;){let e=s[o];"number"==typeof e?void 0!==n&&e>n&&(n=e):e&&(void 0!==n&&n>-1&&l.push("\n".repeat(n)||" "),n=-1,l.push(e))}return l.join("")}(N,{whitespace:"pre"});try{h=_.default.renderToString(M,{...t,displayMode:S,throwOnError:!0})}catch(a){let i=a.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...r,e],cause:a,place:e.position,ruleId:i,source:"rehype-katex"});try{h=_.default.renderToString(M,{...t,displayMode:S,strict:"ignore",throwOnError:!1})}catch{h=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(a)},children:[{type:"text",value:M}]}]}}"string"==typeof h&&(h=(i=h,s={fragment:!0},a(s?.fragment?(l=i,(u=document.createElement("template")).innerHTML=l,u.content):o.parseFromString(i,"text/html"),{})||{type:"root",children:[]}).children);let I=C.children.indexOf(N);return C.children.splice(I,1,...h),T._Z})}}var C=n(94703),N=n(13332),M=n(66623),I=n(1052);let L={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,s=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(e.consume(r),s++,t):s<2?n(r):(e.exit("mathFlowFenceSequence"),(0,M.N)(e,o,"whitespace")(r))}(t)};function o(t){return null===t||(0,I.HP)(t)?l(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||(0,I.HP)(r)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),l(r)):36===r?n(r):(e.consume(r),t)}(t))}function l(n){return(e.exit("mathFlowFence"),r.interrupt)?t(n):e.attempt(R,c,d)(n)}function c(t){return e.attempt({tokenize:p,partial:!0},d,u)(t)}function u(t){return(a?(0,M.N)(e,h,"linePrefix",a+1):h)(t)}function h(t){return null===t?d(t):(0,I.HP)(t)?e.attempt(R,c,d)(t):(e.enter("mathFlowValue"),function t(n){return null===n||(0,I.HP)(n)?(e.exit("mathFlowValue"),h(n)):(e.consume(n),t)}(t))}function d(n){return e.exit("mathFlow"),t(n)}function p(e,t,n){let i=0;return(0,M.N)(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(i++,e.consume(r),t):i<s?n(r):(e.exit("mathFlowFenceSequence"),(0,M.N)(e,a,"whitespace")(r))}(t)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(r){return null===r||(0,I.HP)(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}},concrete:!0,name:"mathFlow"},R={tokenize:function(e,t,n){let r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};function D(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("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",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="mathTextData",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}function O(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}let P={};function F(e){let t,n=e||P,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push({flow:{36:L},text:{36:(null==(t=(n||{}).singleDollarTextMath)&&(t=!0),{tokenize:function(e,n,r){let i,a,s=0;return function(n){return e.enter("mathText"),e.enter("mathTextSequence"),function n(i){return 36===i?(e.consume(i),s++,n):s<2&&!t?r(i):(e.exit("mathTextSequence"),o(i))}(n)};function o(t){return null===t?r(t):36===t?(a=e.enter("mathTextSequence"),i=0,function t(r){return 36===r?(e.consume(r),i++,t):i===s?(e.exit("mathTextSequence"),e.exit("mathText"),n(r)):(a.type="mathTextData",l(r))}(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),o):(0,I.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(e.enter("mathTextData"),l(t))}function l(t){return null===t||32===t||36===t||(0,I.HP)(t)?(e.exit("mathTextData"),o(t)):(e.consume(t),l)}},resolve:D,previous:O,name:"mathText"})}}),a.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];(0,C.ok)("math"===n.type),this.exit(e),n.value=t;let r=n.data.hChildren[0];(0,C.ok)("element"===r.type),(0,C.ok)("code"===r.tagName),r.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];(0,C.ok)("math"===t.type),t.meta=e},mathFlowValue:e,mathText:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,C.ok)("inlineMath"===n.type),this.exit(e),n.value=t,n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),s.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){let i=e.value||"",a=n.createTracker(r),s="$".repeat(Math.max((0,N.D)(i,"$")+1,2)),o=n.enter("mathFlow"),l=a.move(s);if(e.meta){let t=n.enter("mathFlowMeta");l+=a.move(n.safe(e.meta,{after:"\n",before:l,encode:["$"],...a.current()})),t()}return l+=a.move("\n"),i&&(l+=a.move(i+"\n")),l+=a.move(s),o(),l},inlineMath:n}};function n(e,n,r){let i=e.value||"",a=1;for(!t&&a++;RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(i);)a++;let s="$".repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let o=-1;for(;++o<r.unsafe.length;){let e,t=r.unsafe[o];if(!t.atBreak)continue;let n=r.compilePattern(t);for(;e=n.exec(i);){let t=e.index;10===i.codePointAt(t)&&13===i.codePointAt(t-1)&&t--,i=i.slice(0,t)+" "+i.slice(e.index+1)}}return s+i+s}}(n))}var B=function(e={}){var t,n;return{name:"katex",type:"math",remarkPlugin:[F,{singleDollarTextMath:null!=(t=e.singleDollarTextMath)&&t}],rehypePlugin:[S,{errorColor:null!=(n=e.errorColor)?n:"var(--color-muted-foreground)"}],getStyles:()=>"katex/dist/katex.min.css"}}()},48495:(e,t,n)=>{"use strict";n.d(t,{Fr:()=>u,GX:()=>c,KX:()=>l,WW:()=>s,ue:()=>a});var r=n(89316),i=n(39410),a=(0,i.K)(e=>{let{handDrawnSeed:t}=(0,r.D7)();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),s=(0,i.K)(e=>{let t=o([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),o=(0,i.K)(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(":");t.set(n.trim(),r?.trim())}),t},"styles2Map"),l=(0,i.K)(e=>"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e,"isLabelStyle"),c=(0,i.K)(e=>{let{stylesArray:t}=s(e),n=[],r=[],i=[],a=[];return t.forEach(e=>{let t=e[0];l(t)?n.push(e.join(":")+" !important"):(r.push(e.join(":")+" !important"),t.includes("stroke")&&i.push(e.join(":")+" !important"),"fill"===t&&a.push(e.join(":")+" !important"))}),{labelStyles:n.join(";"),nodeStyles:r.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:a}},"styles2String"),u=(0,i.K)((e,t)=>{let{themeVariables:n,handDrawnSeed:i}=(0,r.D7)(),{nodeBorder:a,mainBkg:o}=n,{stylesMap:l}=s(e);return Object.assign({roughness:.7,fill:l.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:h(l.get("stroke-dasharray"))},t)},"userNodeOverrides"),h=(0,i.K)(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(1===t.length){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},"getStrokeDashArray")},48742:(e,t,n)=>{"use strict";n.d(t,{P:()=>u});var r=n(69266),i=n(33705),a=n(69611),s=n(8581),o=n(43745),l=n(47623),c=n(97591);let u=r.forwardRef(function(e,t){let{render:n,className:u,style:h,keepMounted:d=!1,...p}=e,f=(0,i.W)(),m=f.checked||f.indeterminate,{mounted:g,transitionStatus:y,setMounted:b}=(0,l.$)(m),k=r.useRef(null),x={...f,transitionStatus:y};(0,o.v)({open:m,ref:k,onComplete(){m||b(!1)}});let E={...(0,s.G)(f),...c.G},v=(0,a.o)("span",e,{ref:[t,k],state:x,stateAttributesMapping:E,props:p});return d||g?v:null})},49343:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=n(89316),i=n(39410),a=n(86594),s=(0,i.K)(e=>{let{securityLevel:t}=(0,r.D7)(),n=(0,a.Ltv)("body");if("sandbox"===t){let t=(0,a.Ltv)(`#i${e}`),r=t.node()?.contentDocument??document;n=(0,a.Ltv)(r.body)}return n.select(`#${e}`)},"selectSvgElement")},50163:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("circle-minus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},52871:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])},54346:(e,t,n)=>{"use strict";n.d(t,{JR:()=>_,_G:()=>u,be:()=>s,gB:()=>p,gl:()=>x});var r=n(69266),i=n(43209),a=n(31217);function s(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function o(e){return null!==e&&e>=0}let l=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,a=s(t,r,n),o=t[i],l=a[i];return l&&o?{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}:null},c={scaleX:1,scaleY:1},u=e=>{var t,n,r,i;let a,s,o,{activeIndex:l,activeNodeRect:u,index:h,rects:d,overIndex:p}=e,f=null!=(t=d[l])?t:u;if(!f)return null;if(h===l){let e=d[p];return e?{x:0,y:l<p?e.top+e.height-(f.top+f.height):e.top-f.top,...c}:null}let m=(n=d,r=h,i=l,a=n[r],s=n[r-1],o=n[r+1],a?i<r?s?a.top-(s.top+s.height):o?o.top-(a.top+a.height):0:o?o.top-(a.top+a.height):s?a.top-(s.top+s.height):0:0);return h>l&&h<=p?{x:0,y:-f.height-m,...c}:h<l&&h>=p?{x:0,y:f.height+m,...c}:{x:0,y:0,...c}},h="Sortable",d=r.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:l,disabled:{draggable:!1,droppable:!1}});function p(e){let{children:t,id:n,items:s,strategy:o=l,disabled:c=!1}=e,{active:u,dragOverlay:p,droppableRects:f,over:m,measureDroppableContainers:g}=(0,i.fF)(),y=(0,a.YG)(h,n),b=null!==p.rect,k=(0,r.useMemo)(()=>s.map(e=>"object"==typeof e&&"id"in e?e.id:e),[s]),x=null!=u,E=u?k.indexOf(u.id):-1,v=m?k.indexOf(m.id):-1,_=(0,r.useRef)(k),T=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(k,_.current),A=-1!==v&&-1===E||T,w="boolean"==typeof c?{draggable:c,droppable:c}:c;(0,a.Es)(()=>{T&&x&&g(k)},[T,k,x,g]),(0,r.useEffect)(()=>{_.current=k},[k]);let S=(0,r.useMemo)(()=>({activeIndex:E,containerId:y,disabled:w,disableTransforms:A,items:k,overIndex:v,useDragOverlay:b,sortedRects:k.reduce((e,t,n)=>{let r=f.get(t);return r&&(e[n]=r),e},Array(k.length)),strategy:o}),[E,y,w.draggable,w.droppable,A,k,v,f,b,o]);return r.createElement(d.Provider,{value:S},t)}let f=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return s(n,r,i).indexOf(t)},m=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:s,previousItems:o,previousContainerId:l,transition:c}=e;return!!c&&!!r&&(o===a||i!==s)&&(!!n||s!==i&&t===l)},g={duration:200,easing:"ease"},y="transform",b=a.Ks.Transition.toString({property:y,duration:0,easing:"linear"}),k={roleDescription:"sortable"};function x(e){var t,n,s,l;let{animateLayoutChanges:c=m,attributes:u,disabled:h,data:p,getNewIndex:x=f,id:E,strategy:v,resizeObserverConfig:_,transition:T=g}=e,{items:A,containerId:w,activeIndex:S,disabled:C,disableTransforms:N,sortedRects:M,overIndex:I,useDragOverlay:L,strategy:R}=(0,r.useContext)(d),D=(t=h,n=C,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(s=null==t?void 0:t.draggable)?s:n.draggable,droppable:null!=(l=null==t?void 0:t.droppable)?l:n.droppable}),O=A.indexOf(E),P=(0,r.useMemo)(()=>({sortable:{containerId:w,index:O,items:A},...p}),[w,p,O,A]),F=(0,r.useMemo)(()=>A.slice(A.indexOf(E)),[A,E]),{rect:B,node:U,isOver:H,setNodeRef:$}=(0,i.zM)({id:E,data:P,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:F,..._}}),{active:j,activatorEvent:G,activeNodeRect:z,attributes:V,setNodeRef:K,listeners:W,isDragging:q,over:Y,setActivatorNodeRef:X,transform:Q}=(0,i.PM)({id:E,data:P,attributes:{...k,...u},disabled:D.draggable}),Z=(0,a.jn)($,K),J=!!j,ee=J&&!N&&o(S)&&o(I),et=!L&&q,en=et&&ee?Q:null,er=ee?null!=en?en:(null!=v?v:R)({rects:M,activeNodeRect:z,activeIndex:S,overIndex:I,index:O}):null,ei=o(S)&&o(I)?x({id:E,items:A,activeIndex:S,overIndex:I}):O,ea=null==j?void 0:j.id,es=(0,r.useRef)({activeId:ea,items:A,newIndex:ei,containerId:w}),eo=A!==es.current.items,el=c({active:j,containerId:w,isDragging:q,isSorting:J,id:E,index:O,items:A,newIndex:es.current.newIndex,previousItems:es.current.items,previousContainerId:es.current.containerId,transition:T,wasDragging:null!=es.current.activeId}),ec=function(e){let{disabled:t,index:n,node:s,rect:o}=e,[l,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,a.Es)(()=>{if(!t&&n!==u.current&&s.current){let e=o.current;if(e){let t=(0,i.Sj)(s.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)},[t,n,s,o]),(0,r.useEffect)(()=>{l&&c(null)},[l]),l}({disabled:!el,index:O,node:U,rect:B});return(0,r.useEffect)(()=>{J&&es.current.newIndex!==ei&&(es.current.newIndex=ei),w!==es.current.containerId&&(es.current.containerId=w),A!==es.current.items&&(es.current.items=A)},[J,ei,w,A]),(0,r.useEffect)(()=>{if(ea===es.current.activeId)return;if(null!=ea&&null==es.current.activeId){es.current.activeId=ea;return}let e=setTimeout(()=>{es.current.activeId=ea},50);return()=>clearTimeout(e)},[ea]),{active:j,activeIndex:S,attributes:V,data:P,rect:B,index:O,newIndex:ei,items:A,isOver:H,isSorting:J,isDragging:q,listeners:W,node:U,overIndex:I,over:Y,setNodeRef:Z,setActivatorNodeRef:X,setDroppableNodeRef:$,setDraggableNodeRef:K,transform:null!=ec?ec:er,transition:ec||eo&&es.current.newIndex===O?b:(!et||(0,a.kx)(G))&&T&&(J||el)?a.Ks.Transition.toString({...T,property:y}):void 0}}function E(e){if(!e)return!1;let t=e.data.current;return!!t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable}let v=[i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left],_=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:s,droppableContainers:o,over:l,scrollableAncestors:c}}=t;if(v.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];o.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let a=s.get(n.id);if(a)switch(e.code){case i.vL.Down:r.top<a.top&&t.push(n);break;case i.vL.Up:r.top>a.top&&t.push(n);break;case i.vL.Left:r.left>a.left&&t.push(n);break;case i.vL.Right:r.left<a.left&&t.push(n)}});let d=(0,i.y$)({active:n,collisionRect:r,droppableRects:s,droppableContainers:t,pointerCoordinates:null}),p=(0,i.Vy)(d,"id");if(p===(null==l?void 0:l.id)&&d.length>1&&(p=d[1].id),null!=p){let e=o.get(n.id),t=o.get(p),l=t?s.get(t.id):null,d=null==t?void 0:t.node.current;if(d&&l&&e&&t){var u,h;let n=(0,i.sl)(d).some((e,t)=>c[t]!==e),s=T(e,t),o=(u=e,h=t,!!E(u)&&!!E(h)&&!!T(u,h)&&u.data.current.sortable.index<h.data.current.sortable.index),p=n||!s?{x:0,y:0}:{x:o?r.width-l.width:0,y:o?r.height-l.height:0},f={x:l.left,y:l.top};return p.x&&p.y?f:(0,a.Re)(f,p)}}}};function T(e,t){return!!E(e)&&!!E(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},54359:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},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,"")}},55263:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let r=(0,n(69266).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},55289:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},55531:(e,t,n)=>{"use strict";n.d(t,{XX:()=>d,q7:()=>p,sO:()=>h});var r=n(71627),i=n(50789),a=n(4196),s=n(89316),o=n(47508),l=n(39410),c={common:s.Y2,getConfig:s.zj,insertCluster:i.U,insertEdge:r.Jo,insertEdgeLabel:r.jP,insertMarkers:r.g0,insertNode:i.on,interpolateToCurve:a.Ib,labelHelper:i.Zk,log:o.R,positionEdgeLabel:r.T_},u={},h=(0,l.K)(e=>{for(let t of e)u[t.name]=t},"registerLayoutLoaders");(0,l.K)(()=>{h([{name:"dagre",loader:(0,l.K)(async()=>await Promise.all([n.e(17817),n.e(41487),n.e(3376),n.e(4837)]).then(n.bind(n,4837)),"loader")},{name:"swimlane",loader:(0,l.K)(async()=>await Promise.all([n.e(76705),n.e(17817),n.e(41487),n.e(86093)]).then(n.bind(n,38178)),"loader")},{name:"cose-bilkent",loader:(0,l.K)(async()=>await Promise.all([n.e(57634),n.e(24725)]).then(n.bind(n,24725)),"loader")}])},"registerDefaultLayoutLoaders")();var d=(0,l.K)(async(e,t,n)=>{if(!(e.layoutAlgorithm in u))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let r=u[e.layoutAlgorithm],i=await r.loader(),{theme:a,themeVariables:s}=e.config,{useGradient:o,gradientStart:l,gradientStop:h}=s,d=t.attr("id");if(t.append("defs").append("filter").attr("id",`${d}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${d}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),o){let e=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),e.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}return i.render(e,t,c,{algorithm:r.algorithm},n)},"render"),p=(0,l.K)((e="",{fallback:t="dagre"}={})=>{if(e in u)return e;if(t in u)return o.R.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm")},55947:(e,t,n)=>{"use strict";n.d(t,{qy:()=>y,JW:()=>b});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),s=n(25488);function o(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new s.E(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[(0,a.S)(r)]=r,n[(0,a.S)(o.attribute)]=r}return new r(t,n,e.space)}var l=n(58789);let c=o({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 h(e,t){return u(e,t.toLowerCase())}let d=o({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:h}),p=o({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about: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=o({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=o({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:h}),g=o({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),y=i([c,d,f,m,g],"html"),b=i([c,p,f,m,g],"svg")},56227:(e,t,n)=>{"use strict";n.d(t,{h:()=>h,s:()=>d});var r=n(55947),i=n(38105);let a=/[#.]/g;var s=n(64752),o=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,o,...c){let h;if(null==n)h={type:"root",children:[]},c.unshift(o);else{let d=(h=function(e,t){let n,r,i=e||"",s={},o=0;for(;o<i.length;){a.lastIndex=o;let e=a.exec(i),t=i.slice(o,e?e.index:i.length);t&&(n?"#"===n?s.id=t:Array.isArray(s.className)?s.className.push(t):s.className=[t]:r=t,o+=t.length),e&&(n=e[0],o++)}return{type:"element",tagName:r||t||"div",properties:s,children:[]}}(n,t)).tagName.toLowerCase(),p=r?r.get(d):void 0;if(h.tagName=p||d,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))}(o))c.unshift(o);else for(let[t,n]of Object.entries(o))!function(e,t,n,r){let a,o=(0,s.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?o.spaceSeparated?(0,l.q)(r):o.commaSeparated?(0,i.q)(r):o.commaOrSpaceSeparated?(0,l.q)((0,i.q)(r).join(" ")):u(o,o.property,r):Array.isArray(r)?[...r]:"style"===o.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(o,o.property,t));a=e}"className"===o.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}(e,h.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+"`")}(h.children,e);return"element"===h.type&&"template"===h.tagName&&(h.content={type:"root",children:h.children},h.children=[]),h}}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,o.S)(n)===(0,o.S)(t)))return!0}return n}let h=c(r.qy,"div"),d=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"])},56906:(e,t,n)=>{"use strict";n.d(t,{l:()=>a,w:()=>s});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(35));return e}},57445:(e,t,n)=>{"use strict";let r,i,a,s;n.d(t,{h:()=>ew});let o="emphasisSequence",l="strongSequence";var c,u=n(94703);function h(e){return!!(e&&e>=55296&&e<=56319)}function d(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}}),s=a.charCodeAt(a.length-1);if(Number.isNaN(s))return null;if(a.length<2||s<56320||57343<s)return s;let o=a.codePointAt(0);return o&&o>=65536?o:s}(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],y=[12288,12288,65281,65376,65504,65510],b=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],k=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],x=[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],E=(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},[v,_]=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]}(x),T=w(/\p{P}|\p{S}/u),A=w(/\s/);function w(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCodePoint(t))}}function S(e){return!!(1&e)}function C(e){return(e&r.cjkPunctuation)==2}function N(e){return!!(e&r.cjk)}function M(e){return!!(e&r.cjkOrIvs)}function I(e){return e===r.nonEmojiGeneralUseVS}function L(e){return!!(e&r.spaceOrPunctuation)}var R=n(1052);function D(e){if(null===e||(0,R.Ee)(e)||A(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)&&E(g,e)?"ambiguous":!(e<12288)&&!(e>65510)&&E(y,e)?"fullwidth":!(e<8361)&&!(e>65518)&&E(b,e)?"halfwidth":!(e<32)&&!(e>10630)&&E(k,e)?"narrow":e>=v&&e<=_||!(e<4352)&&!(e>262141)&&E(x,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 T(e)&&(t|=2),t}function O(e,t,n){if(!I(e))return e;let i=t(),a=D(i);return!i||S(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 P=n(12835),F=n(37947);let B={name:"attention",resolveAll:function(e,t){let n,r,i,a,s,c,h,d,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};U(f,-c),U(m,c),a={type:c>1?l:o,start:f,end:{...e[n][1].end}},s={type:c>1?l:o,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:{...s.end}},e[n][1].end={...a.start},e[p][1].start={...s.end},h=[],e[n][1].end.offset-e[n][1].start.offset&&(h=(0,P.V)(h,[["enter",e[n][1],t],["exit",e[n][1],t]])),h=(0,P.V)(h,[["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"),h=(0,P.V)(h,(0,F.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,p),t)),h=(0,P.V)(h,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[p][1].end.offset-e[p][1].start.offset?(d=2,h=(0,P.V)(h,[["enter",e[p][1],t],["exit",e[p][1],t]])):d=0,(0,P.m)(e,n-1,p-n+3,h),p=n+h.length-d-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:s}=this,o=d(s)?p(s,i(),a):s,l=D(o),c=new f(o,i(),a),g=O(l,c.value.bind(c),o);return function(s){return(0,u.ok)(42===s||95===s,"expected asterisk or underscore"),n=s,e.enter("attentionSequence"),function s(l){if(l===n)return e.consume(l),s;let c=e.exit("attentionSequence"),d=D(h(l)?m(l,i(),a):l);(0,u.ok)(r,"expected `attentionMarkers` to be populated");let p=C(g),f=p||S(g),y=C(d),b=y||S(d),k=M(g),x=!b||y&&(f||k)||r.includes(l),E=!f||p&&(b||N(d))||r.includes(o);return c._open=!!(42===n?x:x&&(L(g)||!E)),c._close=!!(42===n?E:E&&(L(d)||!x)),t(l)}(s)}}};function U(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function H(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push({text:{42:B,95:B},insideSpan:{null:[B]}})}function $(e,t,n,r){return V(e,t,n,r,G(e,t,n),1)}function j(e,t,n,r){return V(e,t,n,r,z(e,t,n),2)}function G(e,t,n){return n.options.emphasis||"*"}function z(e,t,n){return n.options.strong||"*"}function V(e,t,n,r,i,a){let s,o,l=i.repeat(a),c=n.enter(1===a?"emphasis":"strong"),u=n.createTracker(r),h=u.move(l),d=u.move(n.containerPhrasing(e,{after:i,before:h,...u.current()})),p=function(e,t,n,r){var i,a,s;let o=en(r),l=ee(r);if(null!==(i=o)&&56320<=i&&i<=57343||(a=o,s=l,I(D(a))&&(null===s||null===s))){let r=Z(e,t,n,-1);r&&(o=en(r),l=ee(r))}return{current:o,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 s=Z(e,t,n,1);return s?et(s):a}(e,t,n,r.after),m=W(p,et(d),i,"open");m.inside&&d&&(d=function(e){let[t=""]=[...e];return J(t.codePointAt(0)??null)+e.slice(t.length)}(d));let g=W({current:en(d),previous:ee(d)},f,i,"close");g.inside&&d&&(o=(s=[...d]).pop(),d=`${s.join("")}${J(o?.codePointAt(0)??null)}`);let y=u.move(l);c();let b=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&&!b,before:m.outside},n.cjkFriendlyEncodeAfterSupplementaryText=b,h+d+y}function K(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 W(e,t,n,r){let i=Q(e),a=D(t);if(!M(i)&&!M(a))return"open"===r?q(i,a,n):q(a,i,n);let s={inside:!0,outside:!0};for(let i of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},s]){let a="open"===r?i.outside?er:e:i.inside?er:e,s="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}=Y(r,D(n));return"_"===e?a&&(L(r)||!i):a}(n,a,s):function(e,t,n){let r=D(n),{close:i,open:a}=Y(Q(t),r);return"_"===e?i&&(L(r)||!a):i}(n,a,s))return i}return s}function q(e,t,n){return X(e)?X(t)?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:S(e)?X(t)?{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Y(e,t){let n=C(e),r=n||S(e),i=C(t),a=i||S(t);return{open:!a||i&&(r||M(e)),close:!r||n&&(a||N(t))}}function X(e){return!S(e)&&!C(e)}function Q(e){let t=D(e.current);return null!==e.current&&I(t)?O(t,()=>e.previous,e.current):t}function Z(e,t,n,r){if(!t)return;let i=n.indexStack.at(-1),a=t.children,s="number"==typeof i?i:a.indexOf(e);if(!(s<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[s+r])||void 0}$.peek=G,j.peek=z;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:$,strong:j,text:K}})}function es(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:s,previous:o}=this,l=d(o)?p(o,a(),s):o,c=D(l),g=new f(l,a(),s),y=O(c,g.value.bind(g),l),b=this.events,k=0;return function(o){return((0,u.ok)(126===o,"expected `~`"),126===l&&"characterEscape"!==b[b.length-1][1].type)?i(o):(e.enter("strikethroughSequenceTemporary"),function o(c){let u=D(l);if(126===c)return k>1?i(c):(e.consume(c),k++,o);if(k<2&&!t)return i(c);let d=e.exit("strikethroughSequenceTemporary"),p=D(h(c)?m(c,a(),s):c),f=C(y)||S(y),g=C(p)||S(p),b=N(y)||u===r.ivs;return d._open=!g||2===p&&(f||b),d._close=!f||2===u&&(g||N(p)),n(c)}(o))}},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)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],o=t.parser.constructs.insideSpan.null;o&&(0,P.m)(s,s.length,0,(0,F.W)(o,e.slice(r+1,n),t)),(0,P.m)(s,s.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,P.m)(e,r-1,n-r+3,s),n=r+s.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 eo=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function el(e,t,n,r){let i,a,s=n.enter("strikethrough"),o=n.createTracker(r),l=o.move("~~"),c=o.move(n.containerPhrasing(e,{after:"~",before:l,...o.current()})),u=function(e,t,n,r){var i,a,s;let o=ek(r),l=ey(r);if(null!==(i=o)&&56320<=i&&i<=57343||(a=o,s=l,I(D(a))&&(null===s||null===s))){let r=em(e,t,n,-1);r&&(o=ek(r),l=ey(r))}return{current:o,previous:l}}(e,t,n,r.before),h=function(e,t,n,r){var i;let a=eb(r);if(!(null!==(i=a)&&55296<=i&&i<=56319))return a;let s=em(e,t,n,1);return s?eb(s):a}(e,t,n,r.after),d=eu(u,eb(c),"open");d.inside&&c&&(c=function(e){let[t=""]=[...e];return eg(t.codePointAt(0)??null)+e.slice(t.length)}(c));let p=eu({current:ek(c),previous:ey(c)},h,"close");p.inside&&c&&(a=(i=[...c]).pop(),c=`${i.join("")}${eg(a?.codePointAt(0)??null)}`);let f=o.move("~~");s();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"&&(eb(r.value)??0)>65535}(t,n);return n.attentionEncodeSurroundingInfo={after:p.outside&&!m,before:d.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=D(t);if(!M(r)&&!M(i))return"open"===n?eh(r,i):eh(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?ex:e:r.inside?ex:e,a="open"===n?r.inside?eE:t:r.outside?eE:t;if("open"===n?function(e,t){let{open:n}=ed(ef(e),D(t));return n}(i,a):function(e,t){let n=D(t),{close:r}=ed(ef(e),n);return r}(i,a))return r}return a}function eh(e,t){return ep(e)?ep(t)?{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:S(e)?ep(t)?{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:S(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function ed(e,t){let n=C(e),r=n||S(e),i=C(t),a=i||S(t);return{open:!a||i&&(r||M(e)),close:!r||n&&(a||N(t))}}function ep(e){return!S(e)&&!C(e)}function ef(e){let t=D(e.current);return null!==e.current&&I(t)?O(t,()=>e.previous,e.current):t}function em(e,t,n,r){if(!t)return;let i=n.indexStack.at(-1),a=t.children,s="number"==typeof i?i:a.indexOf(e);if(!(s<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[s+r])||void 0}el.peek=function(){return"~"};function eg(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function ey(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??null}function eb(e){return e.codePointAt(0)??null}function ek(e){return[...e].at(-1)?.codePointAt(0)??null}let ex={current:59,previous:null},eE=38;function ev(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:eo}],handlers:{delete:el,text:ec}})}var e_=n(44382),eT=new Set(["。",".",",","、","?","!",":",";","(",")","【","】","「","」","『","』","〈","〉","《","》"]),eA=/^(https?:\/\/|mailto:|www\.)/i,ew=(s=[...i=[function(){H.call(this),ea.call(this)}],...a=[()=>e=>{(0,e_.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)||!eA.test(e.url))return;let r=(e=>{let t=0;for(let n of e){if(eT.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),s={...e,url:i,children:[{type:"text",value:i}]};return n.children.splice(t,1,s,{type:"text",value:a}),t+1})},function(e){es.call(this,e),ev.call(this)}]],{name:"cjk",type:"cjk",remarkPluginsBefore:i,remarkPluginsAfter:a,remarkPlugins:s})},58048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(54276)._(n(41144));function i(e,t){let n={};"function"==typeof e&&(n.loader=e);let i={...n,...t};return(0,r.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},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},58619:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]])},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:()=>o,overloadedBoolean:()=>s,spaceSeparated:()=>l});let r=0,i=h(),a=h(),s=h(),o=h(),l=h(),c=h(),u=h();function h(){return 2**++r}},59252:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},59275:(e,t,n)=>{"use strict";function r(e){return null==e||"object"!=typeof e&&"function"!=typeof e}n.d(t,{s:()=>r})},59863:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(69266);let i="u">typeof window?r.useLayoutEffect:r.useEffect},60008:(e,t,n)=>{"use strict";function r(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}n.d(t,{b:()=>r})},60567:(e,t,n)=>{"use strict";n.d(t,{y:()=>C});var r=n(69266),i=n(48356),a=n(74388),s=n(66758),o=n(82956),l=n(75645),c=n(81137),u=n(10813),h=n(8581),d=n(84146),p=n(69611),f=n(9542),m=n(52686),g=n(79621),y=n(12590),b=n(52343);let k=r.createContext({disabled:!1});var x=n(49535),E=n(29585);let v=r.createContext(void 0);var _=n(33705),T=n(53402),A=n(27944),w=n(65369),S=n(7962);let C=r.forwardRef(function(e,t){let{checked:n,className:C,defaultChecked:N=!1,"aria-labelledby":M,disabled:I=!1,form:L,id:R,indeterminate:D=!1,inputRef:O,name:P,onCheckedChange:F,parent:B=!1,readOnly:U=!1,render:H,required:$=!1,uncheckedValue:j,value:G,nativeButton:z=!1,style:V,...K}=e,{clearErrors:W}=(0,x.x)(),{disabled:q,name:Y,setDirty:X,setFilled:Q,setFocused:Z,setTouched:J,state:ee,validationMode:et,validityData:en,validation:er}=(0,y.V$)(),ei=r.useContext(k),{labelId:ea,controlId:es,registerControlId:eo,getDescriptionProps:el}=(0,E.H)(),ec=r.useContext(v),eu=ec?.allValues===void 0?void 0:ec.parent,eh=void 0!==eu,ed=q||ei.disabled||ec?.disabled||I,ep=Y??P,ef=G??ep,em=(0,f.e)(),eg=(0,f.e)(),ey=R||es;eh&&(B?ey=eg:void 0!==ef?ey=`${eu.id}-${ef}`:ey||=eg);let eb={};eh&&(B?eb=eu.getParentProps():void 0!==ef&&(eb=eu.getChildProps(ef)));let{checked:ek=n,indeterminate:ex=D,onCheckedChange:eE,...ev}=eb,e_=ec?.value,eT=r.useRef(null),eA=(0,l.j)(()=>Symbol()),ew=r.useRef(!1),{getButtonProps:eS,buttonRef:eC}=(0,g.s)({disabled:ed,native:z}),eN=ec?.validation??er,[eM,eI]=(0,a.q)({controlled:void 0===ef||void 0===e_||B?ek:e_.includes(ef),default:N,name:"Checkbox",state:"checked"}),eL=eh?!!ek:eM,eR=eh&&ex||D;(0,s.g)(()=>{eo!==i.tE&&(ew.current=!0,eo(eA.current,ey))},[ey,eo,eA]),r.useEffect(()=>{let e=eA.current;return()=>{ew.current&&eo!==i.tE&&(ew.current=!1,eo(e,void 0))}},[eo,eA]),(0,b.I)(eT,em,eM,void 0,!ec&&!ed,P);let eD=r.useRef(null),eO=eN.registerInput,eP=ec?ef:void 0,eF=r.useCallback(e=>eO(e,{controlRef:eT,value:eP}),[eO,eP]),eB=(0,o.a)(O,eD,B?void 0:eF),eU=function(e,t,n,i=!0,a){let[o,l]=r.useState(),c=(0,f.e)(a?`${a}-label`:void 0),u=e??t??o;return(0,s.g)(()=>{let r=e||t||!i?void 0:function(e,t){let n=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}(n.current,c);o!==r&&l(r)}),u}(M,ea,eD,!z,ey??void 0);(0,s.g)(()=>{eD.current&&(eD.current.indeterminate=eR,eM&&Q(!0))},[eM,eR,Q]),(0,w.x)(eM,()=>{ec||(W(ep),Q(eM),X(eM!==en.initialValue),eN.change(eM))});let eH=(0,m.v6)({checked:eM,disabled:ed,form:L,name:B?void 0:ep,id:z?void 0:ey??void 0,required:$,ref:eB,style:ep?c.a:c.Q,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(U)return void e.preventDefault();let t=e.currentTarget.checked,n=(0,T.d)(A.dv,e.nativeEvent);if((F?.(t,n),!n.isCanceled)&&(eE?.(t,n),!n.isCanceled&&(eI(t),void 0!==ef&&void 0!==ec&&!B&&!eh))){let e=t?[...ec.value,ef]:ec.value.filter(e=>e!==ef);ec.setValue(e,n)}},onClick(e){e.stopPropagation()},onFocus(){eT.current?.focus()}},void 0!==G?{value:(ec?eM&&G:G)||""}:i.t0,el,e=>eN.getValidationProps(ed,e));r.useEffect(()=>{if(!eu||void 0===ef)return;let e=eu.disabledStatesRef.current;return e.set(ef,ed),()=>{e.delete(ef)}},[eu,ed,ef]);let e$=r.useMemo(()=>({...ee,checked:eL,disabled:ed,readOnly:U,required:$,indeterminate:eR}),[ee,eL,ed,U,$,eR]),ej=(0,h.G)(e$),eG=(0,p.o)("span",e,{state:e$,ref:[eC,eT,t],props:[{id:z?ey??void 0:em,role:"checkbox","aria-checked":eR?"mixed":eL,"aria-readonly":U||void 0,"aria-required":$||void 0,"aria-labelledby":eU,"data-parent":B?"":void 0,onFocus(){ed||Z(!0)},onBlur(){let e=eD.current;e&&(J(!0),Z(!1),"onBlur"===et&&eN.commit(ec?e_:e.checked))},onKeyDown(e){if("Enter"!==e.key||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=eD.current?.form??null,n=e.currentTarget,r=e.nativeEvent,i=e.preventDefault,a=r.preventDefault,s=!1;e.preventDefault=()=>{s=!0,i.call(e)},r.preventDefault=()=>{s=!0,a.call(r)},a.call(r),(0,u.zk)(n).queueMicrotask(()=>{e.preventDefault=i,r.preventDefault=a,s||(function(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(("BUTTON"===e||"INPUT"===e)&&"submit"===t.type)return t}return null})(t)?.click()})},onClick(e){if(U||ed)return;e.preventDefault();let t=eD.current;t&&(0,d.B)(t,e)}},K,ev,eS,el,e=>eN.getValidationProps(ed,e)],stateAttributesMapping:ej});return(0,S.jsxs)(_.p.Provider,{value:e$,children:[eG,!eM&&!ec&&ep&&!B&&void 0!==j&&(0,S.jsx)("input",{type:"hidden",form:L,name:ep,value:j,disabled:ed}),(0,S.jsx)("input",{...eH,suppressHydrationWarning:!0})]})})},60794:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("file-code",[["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 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]])},61108:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},61600:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(69266),i=n(35182);function a(){let e=(0,r.useContext)(i.t);return e?e.custom:void 0}},61989:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},62079:(e,t,n)=>{"use strict";function r(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,s=Math.cos(a),o=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*s-(n-i)*o+r,t[1]=(e-r)*o+(n-i)*s+i}}}function i(e,t){var n;let i=t.hachureAngle+90,a=t.hachureGap;a<0&&(a=4*t.strokeWidth),a=Math.round(Math.max(a,.1));let s=1;return t.roughness>=1&&((null==(n=t.randomizer)?void 0:n.next())||Math.random())>.7&&(s=a),function(e,t,n,i=1){let a=Math.max(t,.1),s=e[0]&&e[0][0]&&"number"==typeof e[0][0]?[e]:e,o=[0,0];if(n)for(let e of s)r(e,o,n);let l=function(e,t,n){let r=[];for(let t of e){var i,a;let e=[...t];i=e[0],a=e[e.length-1],i[0]===a[0]&&i[1]===a[1]||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let s=[];t=Math.max(t,.1);let o=[];for(let e of r)for(let t=0;t<e.length-1;t++){let n=e[t],r=e[t+1];if(n[1]!==r[1]){let e=Math.min(n[1],r[1]);o.push({ymin:e,ymax:Math.max(n[1],r[1]),x:e===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(o.sort((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),!o.length)return s;let l=[],c=o[0].ymin,u=0;for(;l.length||o.length;){if(o.length){let e=-1;for(let t=0;t<o.length&&!(o[t].ymin>c);t++)e=t;o.splice(0,e+1).forEach(e=>{l.push({s:c,edge:e})})}if((l=l.filter(e=>!(e.edge.ymax<=c))).sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),(1!==n||u%t==0)&&l.length>1)for(let e=0;e<l.length;e+=2){let t=e+1;if(t>=l.length)break;let n=l[e].edge,r=l[t].edge;s.push([[Math.round(n.x),c],[Math.round(r.x),c]])}c+=n,l.forEach(e=>{e.edge.x=e.edge.x+n*e.edge.islope}),u++}return s}(s,a,i);if(n){let e;for(let e of s)r(e,o,-n);e=[],l.forEach(t=>e.push(...t)),r(e,o,-n)}return l}(e,a,i,s||1)}n.d(t,{A:()=>Y});class a{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=i(e,t);return{type:"fillSketch",ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}}function s(e){let t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}class o extends a{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth);let r=i(e,Object.assign({},t,{hachureGap:n=Math.max(n,.1)})),a=Math.PI/180*t.hachureAngle,o=[],l=.5*n*Math.cos(a),c=.5*n*Math.sin(a);for(let[e,t]of r)s([e,t])&&o.push([[e[0]-l,e[1]+c],[...t]],[[e[0]+l,e[1]-c],[...t]]);return{type:"fillSketch",ops:this.renderLines(o,t)}}}class l extends a{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}}class c{constructor(e){this.helper=e}fillPolygons(e,t){let n=i(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=s(o),l=Math.ceil(e/r)-1,c=e-l*r,u=(o[0][0]+o[1][0])/2-r/4,h=Math.min(o[0][1],o[1][1]);for(let e=0;e<l;e++){let s=u-a+2*Math.random()*a,o=h+c+e*r-a+2*Math.random()*a,l=this.helper.ellipse(s,o,i,i,t);n.push(...l.ops)}}return{type:"fillSketch",ops:n}}}class u{constructor(e){this.helper=e}fillPolygons(e,t){let n=i(e,t);return{type:"fillSketch",ops:this.dashedLine(n,t)}}dashedLine(e,t){let n=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];return e.forEach(e=>{let a=s(e),o=Math.floor(a/(n+r)),l=(a+r-o*(n+r))/2,c=e[0],u=e[1];c[0]>u[0]&&(c=e[1],u=e[0]);let h=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let e=0;e<o;e++){let a=e*(n+r),s=a+n,o=[c[0]+a*Math.cos(h)+l*Math.cos(h),c[1]+a*Math.sin(h)+l*Math.sin(h)],u=[c[0]+s*Math.cos(h)+l*Math.cos(h),c[1]+s*Math.sin(h)+l*Math.sin(h)];i.push(...this.helper.doubleLineOps(o[0],o[1],u[0],u[1],t))}}),i}}class h{constructor(e){this.helper=e}fillPolygons(e,t){let n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?n:t.zigzagOffset,a=i(e,t=Object.assign({},t,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(a,r,t)}}zigzagLines(e,t,n){let r=[];return e.forEach(e=>{let i=Math.round(s(e)/(2*t)),a=e[0],o=e[1];a[0]>o[0]&&(a=e[1],o=e[0]);let l=Math.atan((o[1]-a[1])/(o[0]-a[0]));for(let e=0;e<i;e++){let i=2*e*t,s=2*(e+1)*t,o=Math.sqrt(2*Math.pow(t,2)),c=[a[0]+i*Math.cos(l),a[1]+i*Math.sin(l)],u=[a[0]+s*Math.cos(l),a[1]+s*Math.sin(l)],h=[c[0]+o*Math.cos(l+Math.PI/4),c[1]+o*Math.sin(l+Math.PI/4)];r.push(...this.helper.doubleLineOps(c[0],c[1],h[0],h[1],n),...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],n))}}),r}}let d={};class p{constructor(e){this.seed=e}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let f={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function m(e){let t=[],n=function(e){let t=[];for(;""!==e;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:""},t}(e),r="BOD",i=0,a=n[0];for(;2!==a.type;){let s=0,o=[];if("BOD"===r){if("M"!==a.text&&"m"!==a.text)return m("M0,0"+e);i++,s=f[a.text],r=a.text}else 1===a.type?s=f[r]:(i++,s=f[a.text],r=a.text);if(!(i+s<n.length))throw Error("Path data ended short");for(let e=i;e<i+s;e++){let t=n[e];if(1!==t.type)throw Error("Param not a number: "+r+","+t.text);o[o.length]=+t.text}if("number"!=typeof f[r])throw Error("Bad segment: "+r);{let e={key:r,data:o};t.push(e),i+=s,a=n[i],"M"===r&&(r="L"),"m"===r&&(r="l")}}return t}function g(e){let t=0,n=0,r=0,i=0,a=[];for(let{key:s,data:o}of e)switch(s){case"M":a.push({key:"M",data:[...o]}),[t,n]=o,[r,i]=o;break;case"m":t+=o[0],n+=o[1],a.push({key:"M",data:[t,n]}),r=t,i=n;break;case"L":a.push({key:"L",data:[...o]}),[t,n]=o;break;case"l":t+=o[0],n+=o[1],a.push({key:"L",data:[t,n]});break;case"C":a.push({key:"C",data:[...o]}),t=o[4],n=o[5];break;case"c":{let e=o.map((e,r)=>r%2?e+n:e+t);a.push({key:"C",data:e}),t=e[4],n=e[5];break}case"Q":a.push({key:"Q",data:[...o]}),t=o[2],n=o[3];break;case"q":{let e=o.map((e,r)=>r%2?e+n:e+t);a.push({key:"Q",data:e}),t=e[2],n=e[3];break}case"A":a.push({key:"A",data:[...o]}),t=o[5],n=o[6];break;case"a":t+=o[5],n+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],t,n]});break;case"H":a.push({key:"H",data:[...o]}),t=o[0];break;case"h":t+=o[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...o]}),n=o[0];break;case"v":n+=o[0],a.push({key:"V",data:[n]});break;case"S":a.push({key:"S",data:[...o]}),t=o[2],n=o[3];break;case"s":{let e=o.map((e,r)=>r%2?e+n:e+t);a.push({key:"S",data:e}),t=e[2],n=e[3];break}case"T":a.push({key:"T",data:[...o]}),t=o[0],n=o[1];break;case"t":t+=o[0],n+=o[1],a.push({key:"T",data:[t,n]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=r,n=i}return a}function y(e){let t=[],n="",r=0,i=0,a=0,s=0,o=0,l=0;for(let{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[r,i]=u,[a,s]=u;break;case"C":t.push({key:"C",data:[...u]}),r=u[4],i=u[5],o=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[r,i]=u;break;case"H":r=u[0],t.push({key:"L",data:[r,i]});break;case"V":i=u[0],t.push({key:"L",data:[r,i]});break;case"S":{let e=0,a=0;"C"===n||"S"===n?(e=r+(r-o),a=i+(i-l)):(e=r,a=i),t.push({key:"C",data:[e,a,...u]}),o=u[0],l=u[1],r=u[2],i=u[3];break}case"T":{let[e,a]=u,s=0,c=0;"Q"===n||"T"===n?(s=r+(r-o),c=i+(i-l)):(s=r,c=i);let h=r+2*(s-r)/3,d=i+2*(c-i)/3,p=e+2*(s-e)/3,f=a+2*(c-a)/3;t.push({key:"C",data:[h,d,p,f,e,a]}),o=s,l=c,r=e,i=a;break}case"Q":{let[e,n,a,s]=u,c=r+2*(e-r)/3,h=i+2*(n-i)/3,d=a+2*(e-a)/3,p=s+2*(n-s)/3;t.push({key:"C",data:[c,h,d,p,a,s]}),o=e,l=n,r=a,i=s;break}case"A":{let e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],s=u[3],o=u[4],l=u[5],c=u[6];0===e||0===n?(t.push({key:"C",data:[r,i,l,c,l,c]}),r=l,i=c):(r!==l||i!==c)&&((function e(t,n,r,i,a,s,o,l,c,u){let h=Math.PI*o/180,d=[],p=0,f=0,m=0,g=0;if(u)[p,f,m,g]=u;else{[t,n]=b(t,n,-h),[r,i]=b(r,i,-h);let e=(t-r)/2,o=(n-i)/2,u=e*e/(a*a)+o*o/(s*s);u>1&&(a*=u=Math.sqrt(u),s*=u);let d=a*a,y=s*s,k=(l===c?-1:1)*Math.sqrt(Math.abs((d*y-d*o*o-y*e*e)/(d*o*o+y*e*e)));m=k*a*o/s+(t+r)/2,g=-(k*s)*e/a+(n+i)/2,p=Math.asin(parseFloat(((n-g)/s).toFixed(9))),f=Math.asin(parseFloat(((i-g)/s).toFixed(9))),t<m&&(p=Math.PI-p),r<m&&(f=Math.PI-f),p<0&&(p=2*Math.PI+p),f<0&&(f=2*Math.PI+f),c&&p>f&&(p-=2*Math.PI),!c&&f>p&&(f-=2*Math.PI)}let y=f-p;if(Math.abs(y)>120*Math.PI/180){let t=f,n=r,l=i;d=e(r=m+a*Math.cos(f=c&&f>p?p+120*Math.PI/180*1:p+-(120*Math.PI/180*1)),i=g+s*Math.sin(f),n,l,a,s,o,0,c,[f,t,m,g])}y=f-p;let k=Math.cos(p),x=Math.cos(f),E=Math.tan(y/4),v=4/3*a*E,_=4/3*s*E,T=[t,n],A=[t+v*Math.sin(p),n-_*k],w=[r+v*Math.sin(f),i-_*x],S=[r,i];if(A[0]=2*T[0]-A[0],A[1]=2*T[1]-A[1],u)return[A,w,S].concat(d);{d=[A,w,S].concat(d);let e=[];for(let t=0;t<d.length;t+=3){let n=b(d[t][0],d[t][1],h),r=b(d[t+1][0],d[t+1][1],h),i=b(d[t+2][0],d[t+2][1],h);e.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return e}})(r,i,l,c,e,n,a,s,o).forEach(function(e){t.push({key:"C",data:e})}),r=l,i=c);break}case"Z":t.push({key:"Z",data:[]}),r=a,i=s}n=c}return t}function b(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}let k={randOffset:function(e,t){return L(e,t)},randOffsetWithRange:function(e,t,n){return I(e,t,n)},ellipse:function(e,t,n,r,i){let a=_(n,r,i);return T(e,t,i,a).opset},doubleLineOps:function(e,t,n,r,i){return R(e,t,n,r,i,!0)}};function x(e,t,n,r,i){return{type:"path",ops:R(e,t,n,r,i)}}function E(e,t,n){let r=(e||[]).length;if(r>2){let i=[];for(let t=0;t<r-1;t++)i.push(...R(e[t][0],e[t][1],e[t+1][0],e[t+1][1],n));return t&&i.push(...R(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:i}}return 2===r?x(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function v(e,t){if(e.length){let n="number"==typeof e[0][0]?[e]:e,r=O(n[0],+(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:O(n[0],1.5*(1+.22*t.roughness),N(t));for(let e=1;e<n.length;e++){let a=n[e];if(a.length){let e=O(a,+(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:O(a,1.5*(1+.22*t.roughness),N(t));for(let t of e)"move"!==t.op&&r.push(t);for(let e of n)"move"!==e.op&&i.push(e)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function _(e,t,n){let r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),i=2*Math.PI/Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),a=Math.abs(e/2),s=Math.abs(t/2),o=1-n.curveFitting;return a+=L(a*o,n),s+=L(s*o,n),{increment:i,rx:a,ry:s}}function T(e,t,n,r){let[i,a]=F(r.increment,e,t,r.rx,r.ry,1,r.increment*I(.1,I(.4,1,n),n),n),s=P(i,null,n);if(!n.disableMultiStroke&&0!==n.roughness){let[i]=F(r.increment,e,t,r.rx,r.ry,1.5,0,n),a=P(i,null,n);s=s.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function A(e,t,n,r,i,a,s,o,l){let c=Math.abs(n/2),u=Math.abs(r/2);c+=L(.01*c,l),u+=L(.01*u,l);let h=i,d=a;for(;h<0;)h+=2*Math.PI,d+=2*Math.PI;d-h>2*Math.PI&&(h=0,d=2*Math.PI);let p=Math.min(2*Math.PI/l.curveStepCount/2,(d-h)/2),f=B(p,e,t,c,u,h,d,1,l);if(!l.disableMultiStroke){let n=B(p,e,t,c,u,h,d,1.5,l);f.push(...n)}return s&&(o?f.push(...R(e,t,e+c*Math.cos(h),t+u*Math.sin(h),l),...R(e,t,e+c*Math.cos(d),t+u*Math.sin(d),l)):f.push({op:"lineTo",data:[e,t]},{op:"lineTo",data:[e+c*Math.cos(h),t+u*Math.sin(h)]})),{type:"path",ops:f}}function w(e,t){let n=y(g(m(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:s}of n)switch(e){case"M":a=[s[0],s[1]],i=[s[0],s[1]];break;case"L":r.push(...R(a[0],a[1],s[0],s[1],t)),a=[s[0],s[1]];break;case"C":{let[e,n,i,o,l,c]=s;r.push(...function(e,t,n,r,i,a,s,o){let l=[],c=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3],u=[0,0],h=o.disableMultiStroke?1:2,d=o.preserveVertices;for(let p=0;p<h;p++)0===p?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(d?0:L(c[0],o)),s[1]+(d?0:L(c[0],o))]}),u=d?[i,a]:[i+L(c[p],o),a+L(c[p],o)],l.push({op:"bcurveTo",data:[e+L(c[p],o),t+L(c[p],o),n+L(c[p],o),r+L(c[p],o),u[0],u[1]]});return l}(e,n,i,o,l,c,a,t)),a=[l,c];break}case"Z":r.push(...R(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:"path",ops:r}}function S(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+L(e,t),r[0][1]+L(e,t)]});for(let a=1;a<i;a++)n.push({op:"lineTo",data:[r[a][0]+L(e,t),r[a][1]+L(e,t)]})}}return{type:"fillPath",ops:n}}function C(e,t){return(function(e,t){let n=e.fillStyle||"hachure";if(!d[n])switch(n){case"zigzag":d[n]||(d[n]=new o(t));break;case"cross-hatch":d[n]||(d[n]=new l(t));break;case"dots":d[n]||(d[n]=new c(t));break;case"dashed":d[n]||(d[n]=new u(t));break;case"zigzag-line":d[n]||(d[n]=new h(t));break;default:d[n="hachure"]||(d[n]=new a(t))}return d[n]})(t,k).fillPolygons(e,t)}function N(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function M(e){return e.randomizer||(e.randomizer=new p(e.seed||0)),e.randomizer.next()}function I(e,t,n,r=1){return n.roughness*r*(M(n)*(t-e)+e)}function L(e,t,n=1){return I(-e,e,t,n)}function R(e,t,n,r,i,a=!1){let s=a?i.disableMultiStrokeFill:i.disableMultiStroke,o=D(e,t,n,r,i,!0,!1);if(s)return o;let l=D(e,t,n,r,i,!0,!0);return o.concat(l)}function D(e,t,n,r,i,a,s){let o=Math.pow(e-n,2)+Math.pow(t-r,2),l=Math.sqrt(o),c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>o&&(u=l/10);let h=u/2,d=.2+.2*M(i),p=i.bowing*i.maxRandomnessOffset*(r-t)/200,f=i.bowing*i.maxRandomnessOffset*(e-n)/200;p=L(p,i,c),f=L(f,i,c);let m=[],g=i.preserveVertices;return a&&(s?m.push({op:"move",data:[e+(g?0:L(h,i,c)),t+(g?0:L(h,i,c))]}):m.push({op:"move",data:[e+(g?0:L(u,i,c)),t+(g?0:L(u,i,c))]})),s?m.push({op:"bcurveTo",data:[p+e+(n-e)*d+L(h,i,c),f+t+(r-t)*d+L(h,i,c),p+e+2*(n-e)*d+L(h,i,c),f+t+2*(r-t)*d+L(h,i,c),n+(g?0:L(h,i,c)),r+(g?0:L(h,i,c))]}):m.push({op:"bcurveTo",data:[p+e+(n-e)*d+L(u,i,c),f+t+(r-t)*d+L(u,i,c),p+e+2*(n-e)*d+L(u,i,c),f+t+2*(r-t)*d+L(u,i,c),n+(g?0:L(u,i,c)),r+(g?0:L(u,i,c))]}),m}function O(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+L(t,n),e[0][1]+L(t,n)]),r.push([e[0][0]+L(t,n),e[0][1]+L(t,n)]);for(let i=1;i<e.length;i++)r.push([e[i][0]+L(t,n),e[i][1]+L(t,n)]),i===e.length-1&&r.push([e[i][0]+L(t,n),e[i][1]+L(t,n)]);return P(r,null,n)}function P(e,t,n){let r=e.length,i=[];if(r>3){let a=[],s=1-n.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){let n=e[t];a[0]=[n[0],n[1]],a[1]=[n[0]+(s*e[t+1][0]-s*e[t-1][0])/6,n[1]+(s*e[t+1][1]-s*e[t-1][1])/6],a[2]=[e[t+1][0]+(s*e[t][0]-s*e[t+2][0])/6,e[t+1][1]+(s*e[t][1]-s*e[t+2][1])/6],a[3]=[e[t+1][0],e[t+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&2===t.length){let e=n.maxRandomnessOffset;i.push({op:"lineTo",data:[t[0]+L(e,n),t[1]+L(e,n)]})}}else 3===r?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===r&&i.push(...D(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return i}function F(e,t,n,r,i,a,s,o){let l=[],c=[];if(0===o.roughness){e/=4,c.push([t+r*Math.cos(-e),n+i*Math.sin(-e)]);for(let a=0;a<=2*Math.PI;a+=e){let e=[t+r*Math.cos(a),n+i*Math.sin(a)];l.push(e),c.push(e)}c.push([t+ +r,n+0*i]),c.push([t+r*Math.cos(e),n+i*Math.sin(e)])}else{let u=L(.5,o)-Math.PI/2;c.push([L(a,o)+t+.9*r*Math.cos(u-e),L(a,o)+n+.9*i*Math.sin(u-e)]);let h=2*Math.PI+u-.01;for(let s=u;s<h;s+=e){let e=[L(a,o)+t+r*Math.cos(s),L(a,o)+n+i*Math.sin(s)];l.push(e),c.push(e)}c.push([L(a,o)+t+r*Math.cos(u+2*Math.PI+.5*s),L(a,o)+n+i*Math.sin(u+2*Math.PI+.5*s)]),c.push([L(a,o)+t+.98*r*Math.cos(u+s),L(a,o)+n+.98*i*Math.sin(u+s)]),c.push([L(a,o)+t+.9*r*Math.cos(u+.5*s),L(a,o)+n+.9*i*Math.sin(u+.5*s)])}return[c,l]}function B(e,t,n,r,i,a,s,o,l){let c=a+L(.1,l),u=[];u.push([L(o,l)+t+.9*r*Math.cos(c-e),L(o,l)+n+.9*i*Math.sin(c-e)]);for(let a=c;a<=s;a+=e)u.push([L(o,l)+t+r*Math.cos(a),L(o,l)+n+i*Math.sin(a)]);return u.push([t+r*Math.cos(s),n+i*Math.sin(s)]),u.push([t+r*Math.cos(s),n+i*Math.sin(s)]),P(u,null,l)}function U(e,t=0){let n=e.length;if(n<3)throw Error("A curve must have at least three points.");let r=[];if(3===n)r.push([...e[0]],[...e[1]],[...e[2]],[...e[2]]);else{let n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);let i=[],a=1-t;r.push([...n[0]]);for(let e=1;e+2<n.length;e++){let t=n[e];i[0]=[t[0],t[1]],i[1]=[t[0]+(a*n[e+1][0]-a*n[e-1][0])/6,t[1]+(a*n[e+1][1]-a*n[e-1][1])/6],i[2]=[n[e+1][0]+(a*n[e][0]-a*n[e+2][0])/6,n[e+1][1]+(a*n[e][1]-a*n[e+2][1])/6],i[3]=[n[e+1][0],n[e+1][1]],r.push(i[1],i[2],i[3])}}return r}function H(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function $(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function j(e,t,n,r,i){let a=i||[],s=e[t],o=e[n-1],l=0,c=1;for(let r=t+1;r<n-1;++r){let t=function(e,t,n){let r=H(t,n);if(0===r)return H(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return H(e,$(t,n,i=Math.max(0,Math.min(1,i))))}(e[r],s,o);t>l&&(l=t,c=r)}return Math.sqrt(l)>r?(j(e,t,c+1,r,a),j(e,c,n,r,a)):(a.length||a.push(s),a.push(o)),a}function G(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n<i;n++)!function e(t,n,r,i){let a,s,o,l,c,u,h,d,p=i||[];if(a=t[n+0],s=t[n+1],o=t[n+2],l=t[n+3],c=3*s[0]-2*a[0]-l[0],c*=c,u=3*s[1]-2*a[1]-l[1],u*=u,h=3*o[0]-2*l[0]-a[0],h*=h,d=3*o[1]-2*l[1]-a[1],d*=d,c<h&&(c=h),u<d&&(u=d),c+u<r){let e=t[n+0];p.length?Math.sqrt(H(p[p.length-1],e))>1&&p.push(e):p.push(e),p.push(t[n+3])}else{let i=t[n+0],a=t[n+1],s=t[n+2],o=t[n+3],l=$(i,a,.5),c=$(a,s,.5),u=$(s,o,.5),h=$(l,c,.5),d=$(c,u,.5),f=$(h,d,.5);e([i,l,h,f],0,r,p),e([f,d,u,o],0,r,p)}return p}(e,3*n,t,r);return n&&n>0?j(r,0,r.length,n):r}let z="none";class V{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d("line",[x(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){var a,s,o,l;let c=this._o(i),u=[],h=E([[a=e,s=t],[a+(o=n),s],[a+o,s+(l=r)],[a,s+l]],!0,c);if(c.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];"solid"===c.fillStyle?u.push(S([i],c)):u.push(C([i],c))}return c.stroke!==z&&u.push(h),this._d("rectangle",u,c)}ellipse(e,t,n,r,i){let a=this._o(i),s=[],o=_(n,r,a),l=T(e,t,a,o);if(a.fill)if("solid"===a.fillStyle){let n=T(e,t,a,o).opset;n.type="fillPath",s.push(n)}else s.push(C([l.estimatedPoints],a));return a.stroke!==z&&s.push(l.opset),this._d("ellipse",s,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape="circle",i}linearPath(e,t){let n=this._o(t);return this._d("linearPath",[E(e,!1,n)],n)}arc(e,t,n,r,i,a,s=!1,o){let l=this._o(o),c=[],u=A(e,t,n,r,i,a,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){let s=Object.assign({},l);s.disableMultiStroke=!0;let o=A(e,t,n,r,i,a,!0,!1,s);o.type="fillPath",c.push(o)}else c.push(function(e,t,n,r,i,a,s){let o=Math.abs(n/2),l=Math.abs(r/2);o+=L(.01*o,s),l+=L(.01*l,s);let c=i,u=a;for(;c<0;)c+=2*Math.PI,u+=2*Math.PI;u-c>2*Math.PI&&(c=0,u=2*Math.PI);let h=(u-c)/s.curveStepCount,d=[];for(let n=c;n<=u;n+=h)d.push([e+o*Math.cos(n),t+l*Math.sin(n)]);return d.push([e+o*Math.cos(u),t+l*Math.sin(u)]),d.push([e,t]),C([d],s)}(e,t,n,r,i,a,l));return l.stroke!==z&&c.push(u),this._d("arc",c,l)}curve(e,t){let n=this._o(t),r=[],i=v(e,n);if(n.fill&&n.fill!==z)if("solid"===n.fillStyle){let t=v(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else{let t=[];if(e.length)for(let r of"number"==typeof e[0][0]?[e]:e)r.length<3?t.push(...r):3===r.length?t.push(...G(U([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...G(U(r),10,(1+n.roughness)/2));t.length&&r.push(C([t],n))}return n.stroke!==z&&r.push(i),this._d("curve",r,n)}polygon(e,t){let n=this._o(t),r=[],i=E(e,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(S([e],n)):r.push(C([e],n))),n.stroke!==z&&r.push(i),this._d("polygon",r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let i=n.fill&&"transparent"!==n.fill&&n.fill!==z,a=n.stroke!==z,s=!!(n.simplification&&n.simplification<1),o=function(e,t){let n=y(g(m(e))),r=[],i=[],a=[0,0],s=[],o=()=>{s.length>=4&&i.push(...G(s,1)),s=[]},l=()=>{o(),i.length&&(r.push(i),i=[])};for(let{key:e,data:t}of n)switch(e){case"M":l(),a=[t[0],t[1]],i.push(a);break;case"L":o(),i.push([t[0],t[1]]);break;case"C":if(!s.length){let e=i.length?i[i.length-1]:a;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case"Z":o(),i.push([a[0],a[1]])}if(l(),!t)return r;let c=[];for(let e of r){let n=j(e,0,e.length,t);n.length&&c.push(n)}return c}(e,s?4-4*(n.simplification||1):(1+n.roughness)/2),l=w(e,n);if(i)if("solid"===n.fillStyle)if(1===o.length){let t=w(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else r.push(S(o,n));else r.push(C(o,n));return a&&(s?o.forEach(e=>{r.push(E(e,!1,n))}):r.push(l)),this._d("path",r,n)}opsToPath(e,t){let n="";for(let r of e.ops){let e="number"==typeof t&&t>=0?r.data.map(e=>+e.toFixed(t)):r.data;switch(r.op){case"move":n+=`M${e[0]} ${e[1]} `;break;case"bcurveTo":n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case"lineTo":n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case"path":t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:z};break;case"fillPath":t={d:this.opsToPath(e),stroke:z,strokeWidth:0,fill:n.fill||z};break;case"fillSketch":t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||z,strokeWidth:n,fill:z}}_mergedShape(e){return e.filter((e,t)=>0===t||"move"!==e.op)}}class K{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new V(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case"fillPath":{r.save(),r.fillStyle=n.fill||"";let t="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(r,a,i,t),r.restore();break}case"fillSketch":this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r="nonzero"){for(let r of(e.beginPath(),t.ops)){let t="number"==typeof n&&n>=0?r.data.map(e=>+e.toFixed(n)):r.data;switch(r.op){case"move":e.moveTo(t[0],t[1]);break;case"bcurveTo":e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case"lineTo":e.lineTo(t[0],t[1])}}"fillPath"===t.type?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,s=!1,o){let l=this.gen.arc(e,t,n,r,i,a,s,o);return this.draw(l),l}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}}let W="http://www.w3.org/2000/svg";class q{constructor(e,t){this.svg=e,this.gen=new V(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(W,"g"),a=e.options.fixedDecimalPlaceDigits;for(let s of t){let t=null;switch(s.type){case"path":(t=r.createElementNS(W,"path")).setAttribute("d",this.opsToPath(s,a)),t.setAttribute("stroke",n.stroke),t.setAttribute("stroke-width",n.strokeWidth+""),t.setAttribute("fill","none"),n.strokeLineDash&&t.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":(t=r.createElementNS(W,"path")).setAttribute("d",this.opsToPath(s,a)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",n.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(r,s,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS(W,"path");return i.setAttribute("d",this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",r+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,s=!1,o){let l=this.gen.arc(e,t,n,r,i,a,s,o);return this.draw(l)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}}var Y={canvas:(e,t)=>new K(e,t),svg:(e,t)=>new q(e,t),generator:e=>new V(e),newSeed:()=>V.newSeed()}},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:()=>cK,C:()=>cq,c:()=>oS,f:()=>oZ,l:()=>cX});var r={};n.r(r),n.d(r,{attentionMarkers:()=>aT,contentInitial:()=>ab,disable:()=>aA,document:()=>ay,flow:()=>ax,flowInitial:()=>ak,insideSpan:()=>a_,string:()=>aE,text:()=>av});var i=n(69266),a=n(44382),s=n(72034);let o="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 h=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),d=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 s=u(e,n);if(!s||d.has(s.protocol)||!(h.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if("mailto:"===s.protocol||!s.protocol.match(/^https?:$/))return s.href;let o="string"==typeof e&&(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"));return s&&t.some(e=>{let t=u(e,n);return!!t&&t.origin===s.origin&&s.href.startsWith(t.href)})?o?s.pathname+s.search+s.hash:s.href:t.includes("*")?"https:"!==s.protocol&&"http:"!==s.protocol?null:o?s.pathname+s.search+s.hash:s.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)},y=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,s]=e[i];switch(a){case 0:case -1:return n(s,i);case 1:{let e=n([],i);for(let t of s)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of s)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of s)e.add(r(t));return e}case 7:{let{name:e,message:t}=s;return n("function"==typeof m[e]?g(e,t):Error(t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{let{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(g(a,s),i)})(0)},{toString:b}={},{keys:k}=Object,x=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=b.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]},E=([e,t])=>0===e&&("function"===t||"symbol"===t),v=(e,{json:t,lossy:n}={})=>{var r,i,a;let s,o,l=[];return(r=!(t||n),i=!!t,a=new Map,s=(e,t)=>{let n=l.push(e)-1;return a.set(t,n),n},o=e=>{if(a.has(e))return a.get(e);let[t,n]=x(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 s([-1],e)}return s([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),s([n,[...t]],e)}let r=[],i=s([t,r],e);for(let t of e)r.push(o(t));return i}case 2:{if(n)switch(n){case"BigInt":return s([n,e.toString()],e);case"Boolean":case"Number":case"String":return s([n,e.valueOf()],e)}if(i&&"toJSON"in e)return o(e.toJSON());let a=[],l=s([t,a],e);for(let t of k(e))(r||!E(x(e[t])))&&a.push([o(t),o(e[t])]);return l}case 3:return s([t,isNaN(e.getTime())?"":e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return s([t,{source:n,flags:r}],e)}case 5:{let n=[],i=s([t,n],e);for(let[t,i]of e)(r||!(E(x(t))||E(x(i))))&&n.push([o(t),o(i)]);return i}case 6:{let n=[],i=s([t,n],e);for(let t of e)(r||!E(x(t)))&&n.push(o(t));return i}}let{message:l}=e;return s([t,{name:n,message:l}],e)})(e),l},_="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?y(v(e,t)):structuredClone(e):(e,t)=>y(v(e,t));var T=n(94703),A=n(56227),w=n(55947),S=n(64752);function C(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 M={}.hasOwnProperty,I=Object.prototype;function L(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},D(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:R(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=C(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=C(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++}}}}),s=a.toPoint(0),o=a.toPoint(i.length);(0,T.ok)(s,"expected `start`"),(0,T.ok)(o,"expected `end`"),n.position={start:s,end:o}}return n}case"#documentType":return D(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},D(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===N.t.svg?w.JW:w.qy;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;M.call(I,n)||(i[n]=e.value)}let a=("svg"===e.schema.space?A.s:A.h)(t.tagName,i,R(e,t.childNodes));if(D(e,t,a),"template"===a.tagName){let n=t.sourceCodeLocation,r=n&&n.startTag&&O(n.startTag),i=n&&n.endTag&&O(n.endTag),s=L(e,t.content);r&&i&&e.file&&(s.position={start:r.end,end:i.start}),a.content=s}return e.schema=n,a}(e,t)}}function R(e,t){let n=-1,r=[];for(;++n<t.length;){let i=L(e,t[n]);r.push(i)}return r}function D(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let r=function(e,t,n){let r=O(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)M.call(n.attrs,r)&&(i[(0,S.I)(e.schema,r).property]=O(n.attrs[r]));(0,T.ok)(n.startTag,"a start tag should exist");let a=O(n.startTag),s=n.endTag?O(n.endTag):void 0,o={opening:a};s&&(o.closing=s),o.properties=i,t.data={position:o}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function O(e){let t=P({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=P({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function P(e){return e.line&&e.column?e:void 0}var F=n(38105),B=n(13766),U=n(40156);let H={}.hasOwnProperty,$=(0,U.A)("type",{handlers:{root:function(e,t){let n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=j(e.children,n,t),G(e,n),n},element:function(e,t){var n,r;let i,a,s=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(s=w.JW);let o=[];if(e.properties){for(i in e.properties)if("children"!==i&&H.call(e.properties,i)){let t=function(e,t,n){let r=(0,S.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}(s,i,e.properties[i]);t&&o.push(t)}}let l=s.space;(0,T.ok)(l);let c={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:N.t[l],childNodes:[],parentNode:null};return c.childNodes=j(e.children,c,s),G(e,c),"template"===e.tagName&&e.content&&(n=e.content,r=s,(a={nodeName:"#document-fragment",childNodes:[]}).childNodes=j(n.children,a,r),G(n,a),c.content=a),c},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:null};return G(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return G(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return G(e,t),t}}});function j(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=$(e[r],n);a.parentNode=t,i.push(a)}return i}function G(e,t){let n=e.position;n&&n.start&&n.end&&((0,T.ok)("number"==typeof n.start.offset),(0,T.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 z=n(58771);let V=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]);(lH=l1||(l1={}))[lH.EOF=-1]="EOF",lH[lH.NULL=0]="NULL",lH[lH.TABULATION=9]="TABULATION",lH[lH.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",lH[lH.LINE_FEED=10]="LINE_FEED",lH[lH.FORM_FEED=12]="FORM_FEED",lH[lH.SPACE=32]="SPACE",lH[lH.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",lH[lH.QUOTATION_MARK=34]="QUOTATION_MARK",lH[lH.AMPERSAND=38]="AMPERSAND",lH[lH.APOSTROPHE=39]="APOSTROPHE",lH[lH.HYPHEN_MINUS=45]="HYPHEN_MINUS",lH[lH.SOLIDUS=47]="SOLIDUS",lH[lH.DIGIT_0=48]="DIGIT_0",lH[lH.DIGIT_9=57]="DIGIT_9",lH[lH.SEMICOLON=59]="SEMICOLON",lH[lH.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",lH[lH.EQUALS_SIGN=61]="EQUALS_SIGN",lH[lH.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",lH[lH.QUESTION_MARK=63]="QUESTION_MARK",lH[lH.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",lH[lH.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",lH[lH.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",lH[lH.GRAVE_ACCENT=96]="GRAVE_ACCENT",lH[lH.LATIN_SMALL_A=97]="LATIN_SMALL_A",lH[lH.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";let K="[CDATA[",W="doctype",q="script";function Y(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||V.has(e)}(l$=l2||(l2={})).controlCharacterInInputStream="control-character-in-input-stream",l$.noncharacterInInputStream="noncharacter-in-input-stream",l$.surrogateInInputStream="surrogate-in-input-stream",l$.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",l$.endTagWithAttributes="end-tag-with-attributes",l$.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",l$.unexpectedSolidusInTag="unexpected-solidus-in-tag",l$.unexpectedNullCharacter="unexpected-null-character",l$.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",l$.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",l$.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",l$.missingEndTagName="missing-end-tag-name",l$.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",l$.unknownNamedCharacterReference="unknown-named-character-reference",l$.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",l$.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",l$.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",l$.eofBeforeTagName="eof-before-tag-name",l$.eofInTag="eof-in-tag",l$.missingAttributeValue="missing-attribute-value",l$.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",l$.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",l$.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",l$.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",l$.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",l$.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",l$.missingDoctypePublicIdentifier="missing-doctype-public-identifier",l$.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",l$.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",l$.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",l$.cdataInHtmlContent="cdata-in-html-content",l$.incorrectlyOpenedComment="incorrectly-opened-comment",l$.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",l$.eofInDoctype="eof-in-doctype",l$.nestedComment="nested-comment",l$.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",l$.eofInComment="eof-in-comment",l$.incorrectlyClosedComment="incorrectly-closed-comment",l$.eofInCdata="eof-in-cdata",l$.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",l$.nullCharacterReference="null-character-reference",l$.surrogateCharacterReference="surrogate-character-reference",l$.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",l$.controlCharacterReference="control-character-reference",l$.noncharacterCharacterReference="noncharacter-character-reference",l$.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",l$.missingDoctypeName="missing-doctype-name",l$.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",l$.duplicateAttribute="duplicate-attribute",l$.nonConformingDoctype="non-conforming-doctype",l$.missingDoctype="missing-doctype",l$.misplacedDoctype="misplaced-doctype",l$.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",l$.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",l$.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",l$.openElementsLeftAfterEof="open-elements-left-after-eof",l$.abandonedHeadElementChild="abandoned-head-element-child",l$.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",l$.nestedNoscriptInHead="nested-noscript-in-head",l$.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,s=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:s,endOffset:s}}_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,Y(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}(lj=l5||(l5={}))[lj.CHARACTER=0]="CHARACTER",lj[lj.NULL_CHARACTER=1]="NULL_CHARACTER",lj[lj.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",lj[lj.START_TAG=3]="START_TAG",lj[lj.END_TAG=4]="END_TAG",lj[lj.COMMENT=5]="COMMENT",lj[lj.DOCTYPE=6]="DOCTYPE",lj[lj.EOF=7]="EOF",lj[lj.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\xf2JTabcdfgorstרׯؒؖ؛؝أ٬ٲ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૦\xeberyThi\xeetedĀGLଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCACBEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾ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\xbbpArrow;憑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ǣጓ\0y;䐎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\xe8a;䎖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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fgcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t\xbbpƀ;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\0aĀ;t䀬;䁀ƀ;fl戁\xeeᅠeĀmxent\xbbe\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\xf2ar;楥Ȁ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ↄⅪ←ٖ↛ǰ↉\0pro\xf8r;楸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\uDCC0ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀ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\xf3quigarro\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\xf8urĀ;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;椨\xedistĀ;sடr;쀀\uD835\uDD2BȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lan\xf4i\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\xecl;쀀⫽⃥;쀀∂̸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;䅓Ācrir;榿;쀀\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\0m;櫳;櫽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⾴\xefrel;抰Ā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\xf3arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2a\xf2Ց;怏oustĀ;a㈞掱che\xbbmid;櫮Ȁ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\xf8im\xbbኬs\xf0ኞĀas㚺㚮\xf0rn耻\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\xf4headĀ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\xf0tr\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>=l3.ZERO&&e<=l3.NINE}(lG=l3||(l3={}))[lG.NUM=35]="NUM",lG[lG.SEMI=59]="SEMI",lG[lG.EQUALS=61]="EQUALS",lG[lG.ZERO=48]="ZERO",lG[lG.NINE=57]="NINE",lG[lG.LOWER_A=97]="LOWER_A",lG[lG.LOWER_F=102]="LOWER_F",lG[lG.LOWER_X=120]="LOWER_X",lG[lG.LOWER_Z=122]="LOWER_Z",lG[lG.UPPER_A=65]="UPPER_A",lG[lG.UPPER_F=70]="UPPER_F",lG[lG.UPPER_Z=90]="UPPER_Z",(lz=l6||(l6={}))[lz.VALUE_LENGTH=49152]="VALUE_LENGTH",lz[lz.BRANCH_LENGTH=16256]="BRANCH_LENGTH",lz[lz.JUMP_TABLE=127]="JUMP_TABLE",(lV=l9||(l9={}))[lV.EntityStart=0]="EntityStart",lV[lV.NumericStart=1]="NumericStart",lV[lV.NumericDecimal=2]="NumericDecimal",lV[lV.NumericHex=3]="NumericHex",lV[lV.NamedEntity=4]="NamedEntity",(lK=l4||(l4={}))[lK.Legacy=0]="Legacy",lK[lK.Strict=1]="Strict",lK[lK.Attribute=2]="Attribute";class er{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=l9.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l4.Strict}startEntity(e){this.decodeMode=e,this.state=l9.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case l9.EntityStart:if(e.charCodeAt(t)===l3.NUM)return this.state=l9.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=l9.NamedEntity,this.stateNamedEntity(e,t);case l9.NumericStart:return this.stateNumericStart(e,t);case l9.NumericDecimal:return this.stateNumericDecimal(e,t);case l9.NumericHex:return this.stateNumericHex(e,t);case l9.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===l3.LOWER_X?(this.state=l9.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=l9.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)>=l3.UPPER_A)||!(r<=l3.UPPER_F))&&(!(r>=l3.LOWER_A)||!(r<=l3.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===l3.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!==l3.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&l6.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&l6.BRANCH_LENGTH)>>7,a=t&l6.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 s=n,o=s+i-1;for(;s<=o;){let t=s+o>>>1,n=e[t];if(n<r)s=t+1;else{if(!(n>r))return e[t+i];o=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===l3.EQUALS||(t=e)>=l3.UPPER_A&&t<=l3.UPPER_Z||t>=l3.LOWER_A&&t<=l3.LOWER_Z||en(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((r=n[this.treeIndex])&l6.VALUE_LENGTH)>>14)){if(a===l3.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]&l6.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]&~l6.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case l9.NamedEntity:return 0!==this.result&&(this.decodeMode!==l4.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case l9.NumericDecimal:return this.emitNumericEntity(0,2);case l9.NumericHex:return this.emitNumericEntity(0,3);case l9.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case l9.EntityStart:return 0}}}(lW=l8||(l8={})).HTML="http://www.w3.org/1999/xhtml",lW.MATHML="http://www.w3.org/1998/Math/MathML",lW.SVG="http://www.w3.org/2000/svg",lW.XLINK="http://www.w3.org/1999/xlink",lW.XML="http://www.w3.org/XML/1998/namespace",lW.XMLNS="http://www.w3.org/2000/xmlns/",(lq=l7||(l7={})).TYPE="type",lq.ACTION="action",lq.ENCODING="encoding",lq.PROMPT="prompt",lq.NAME="name",lq.COLOR="color",lq.FACE="face",lq.SIZE="size",(lY=ce||(ce={})).NO_QUIRKS="no-quirks",lY.QUIRKS="quirks",lY.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 es=cn,eo={[l8.HTML]:new Set([es.ADDRESS,es.APPLET,es.AREA,es.ARTICLE,es.ASIDE,es.BASE,es.BASEFONT,es.BGSOUND,es.BLOCKQUOTE,es.BODY,es.BR,es.BUTTON,es.CAPTION,es.CENTER,es.COL,es.COLGROUP,es.DD,es.DETAILS,es.DIR,es.DIV,es.DL,es.DT,es.EMBED,es.FIELDSET,es.FIGCAPTION,es.FIGURE,es.FOOTER,es.FORM,es.FRAME,es.FRAMESET,es.H1,es.H2,es.H3,es.H4,es.H5,es.H6,es.HEAD,es.HEADER,es.HGROUP,es.HR,es.HTML,es.IFRAME,es.IMG,es.INPUT,es.LI,es.LINK,es.LISTING,es.MAIN,es.MARQUEE,es.MENU,es.META,es.NAV,es.NOEMBED,es.NOFRAMES,es.NOSCRIPT,es.OBJECT,es.OL,es.P,es.PARAM,es.PLAINTEXT,es.PRE,es.SCRIPT,es.SECTION,es.SELECT,es.SOURCE,es.STYLE,es.SUMMARY,es.TABLE,es.TBODY,es.TD,es.TEMPLATE,es.TEXTAREA,es.TFOOT,es.TH,es.THEAD,es.TITLE,es.TR,es.TRACK,es.UL,es.WBR,es.XMP]),[l8.MATHML]:new Set([es.MI,es.MO,es.MN,es.MS,es.MTEXT,es.ANNOTATION_XML]),[l8.SVG]:new Set([es.TITLE,es.FOREIGN_OBJECT,es.DESC]),[l8.XLINK]:new Set,[l8.XML]:new Set,[l8.XMLNS]:new Set},el=new Set([es.H1,es.H2,es.H3,es.H4,es.H5,es.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 eh(e){return e>=l1.LATIN_SMALL_A&&e<=l1.LATIN_SMALL_Z||eu(e)}function ed(e){return eh(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(Y(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(eh(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(eh(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){eh(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){eh(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){eh(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:eh(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){eh(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(q,!1)&&ef(this.preprocessor.peek(q.length))){this._emitCodePoint(e);for(let e=0;e<q.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(q,!1)&&ef(this.preprocessor.peek(q.length))){this._emitCodePoint(e);for(let e=0;e<q.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(W,!1)?(this.currentLocation=this.getCurrentLocation(W.length+1),this.state=cr.DOCTYPE):this._consumeSequenceIfMatch(K,!0)?this.inForeignNode?this.state=cr.CDATA_SECTION:(this._err(l2.cdataInHtmlContent),this._createCommentToken(K.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()&&ed(this.preprocessor.peek(1))?cr.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){ed(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]),ey=new Set([...eg,cn.CAPTION,cn.COLGROUP,cn.TBODY,cn.TD,cn.TFOOT,cn.TH,cn.THEAD,cn.TR]),eb=new Set([cn.APPLET,cn.CAPTION,cn.HTML,cn.MARQUEE,cn.OBJECT,cn.TABLE,cn.TD,cn.TEMPLATE,cn.TH]),ek=new Set([...eb,cn.OL,cn.UL]),ex=new Set([...eb,cn.BUTTON]),eE=new Set([cn.ANNOTATION_XML,cn.MI,cn.MN,cn.MO,cn.MS,cn.MTEXT]),ev=new Set([cn.DESC,cn.FOREIGN_OBJECT,cn.TITLE]),e_=new Set([cn.TR,cn.TEMPLATE,cn.HTML]),eT=new Set([cn.TBODY,cn.TFOOT,cn.THEAD,cn.TEMPLATE,cn.HTML]),eA=new Set([cn.TABLE,cn.TEMPLATE,cn.HTML]),ew=new Set([cn.TD,cn.TH]);class eS{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)===l8.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])!==l8.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,l8.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ew,l8.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(eA,l8.HTML)}clearBackToTableBodyContext(){this.clearBackTo(eT,l8.HTML)}clearBackToTableRowContext(){this.clearBackTo(e_,l8.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 l8.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case l8.SVG:if(ev.has(r))return!1;break;case l8.MATHML:if(eE.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,eb)}hasInListItemScope(e){return this.hasInDynamicScope(e,ek)}hasInButtonScope(e){return this.hasInDynamicScope(e,ex)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case l8.HTML:if(el.has(t))return!0;if(eb.has(t))return!1;break;case l8.SVG:if(ev.has(t))return!1;break;case l8.MATHML:if(eE.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===l8.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])===l8.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])===l8.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&&ey.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&ey.has(this.currentTagId);)this.pop()}}(lJ=ci||(ci={}))[lJ.Marker=0]="Marker",lJ[lJ.Element=1]="Element";let eC={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:s}=t;if(this.treeAdapter.getTagName(s)===i&&this.treeAdapter.getNamespaceURI(s)===a){let t=this.treeAdapter.getAttrList(s);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(eC)}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(eC);-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 eM={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):eM.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(eM.isTextNode(n)){n.value+=t;return}}eM.appendChild(e,eM.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&eM.isTextNode(r)?r.value+=t:eM.insertBefore(e,eM.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}}},eI="html",eL=["+//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//"],eR=[...eL,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],eD=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),eO=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],eP=[...eO,"-//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])),eU=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:l8.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:l8.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:l8.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:l8.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:l8.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:l8.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:l8.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:l8.XML}],["xml:space",{prefix:"xml",name:"space",namespace:l8.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:l8.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:l8.XMLNS}]]),eH=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])),e$=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 ej(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function eG(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 ez(e){for(let t=0;t<e.attrs.length;t++){let n=eU.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 eV={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},eK=new Set([cn.TABLE,cn.TBODY,cn.TFOOT,cn.THEAD,cn.TR]),eW={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:eM,onParseError:null};class eq{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={...eW,...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 eS(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={...eW,...t};null!=e||(e=n.treeAdapter.createElement(ct.TEMPLATE,l8.HTML,[]));let r=n.treeAdapter.createElement("documentmock",l8.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:eV,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)===l8.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,l8.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)===l8.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,l8.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,l8.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,l8.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)!==l8.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===cn.MGLYPH||e.tagID===cn.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,l8.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===l8.HTML)&&function(e,t,n){if(t===l8.MATHML&&e===cn.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===l7.ENCODING){let t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}}return t===l8.SVG&&(e===cn.FOREIGN_OBJECT||e===cn.DESC||e===cn.TITLE)}(e,r,i)||(!n||n===l8.MATHML)&&r===l8.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 eK.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)===l8.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 eo[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:e3(this,e);break;case ca.AFTER_HEAD:e6(this,e);break;case ca.IN_BODY:case ca.IN_CAPTION:case ca.IN_CELL:case ca.IN_TEMPLATE:e8(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:to(this,e);break;case ca.IN_TABLE_TEXT:td(this,e);break;case ca.IN_COLUMN_GROUP:tg(this,e);break;case ca.AFTER_BODY:tA(this,e);break;case ca.AFTER_AFTER_BODY:tw(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:e3(this,e);break;case ca.AFTER_HEAD:e6(this,e);break;case ca.TEXT:this._insertCharacters(e);break;case ca.IN_TABLE:case ca.IN_TABLE_BODY:case ca.IN_ROW:to(this,e);break;case ca.IN_COLUMN_GROUP:tg(this,e);break;case ca.AFTER_BODY:tA(this,e);break;case ca.AFTER_AFTER_BODY:tw(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!==eI)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(),eD.has(n))return ce.QUIRKS;let e=null===t?eR:eL;if(eF(n,e))return ce.QUIRKS;if(eF(n,e=null===t?eO:eP))return ce.LIMITED_QUIRKS}return ce.NO_QUIRKS}(t);(t.name!==eI||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===l7.COLOR||e===l7.SIZE||e===l7.FACE)||e$.has(n))tS(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);if(r===l8.MATHML)ej(t);else if(r===l8.SVG){let e;null!=(e=eH.get(t.tagName))&&(t.tagName=e,t.tagID=ea(t.tagName)),eG(t)}ez(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,l8.HTML),t.insertionMode=ca.BEFORE_HEAD):eJ(t,n);break;case ca.BEFORE_HEAD:var t,n,r,i,a,s,o,l,c,u,h,d,p=this,f=e;switch(f.tagID){case cn.HTML:tr(p,f);break;case cn.HEAD:p._insertElement(f,l8.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:e3(m,g)}break;case ca.AFTER_HEAD:var y=this,b=e;switch(b.tagID){case cn.HTML:tr(y,b);break;case cn.BODY:y._insertElement(b,l8.HTML),y.framesetOk=!1,y.insertionMode=ca.IN_BODY;break;case cn.FRAMESET:y._insertElement(b,l8.HTML),y.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:y._err(b,l2.abandonedHeadElementChild),y.openElements.push(y.headElement,cn.HEAD),e1(y,b),y.openElements.remove(y.headElement);break;case cn.HEAD:y._err(b,l2.misplacedStartTagForHeadElement);break;default:e6(y,b)}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 k;r=this,k=(i=e).tagID,tf.has(k)?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:ty(this,e);break;case ca.IN_ROW:tk(this,e);break;case ca.IN_CELL:let x;a=this,x=(s=e).tagID,tf.has(x)?(a.openElements.hasInTableScope(cn.TD)||a.openElements.hasInTableScope(cn.TH))&&(a._closeTableCell(),tk(a,s)):tr(a,s);break;case ca.IN_SELECT:tE(this,e);break;case ca.IN_SELECT_IN_TABLE:let E;o=this,(E=(l=e).tagID)===cn.CAPTION||E===cn.TABLE||E===cn.TBODY||E===cn.TFOOT||E===cn.THEAD||E===cn.TR||E===cn.TD||E===cn.TH?(o.openElements.popUntilTagNamePopped(cn.SELECT),o._resetInsertionMode(),o._processStartTag(l)):tE(o,l);break;case ca.IN_TEMPLATE:var v=this,_=e;switch(_.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(v,_);break;case cn.CAPTION:case cn.COLGROUP:case cn.TBODY:case cn.TFOOT:case cn.THEAD:v.tmplInsertionModeStack[0]=ca.IN_TABLE,v.insertionMode=ca.IN_TABLE,tl(v,_);break;case cn.COL:v.tmplInsertionModeStack[0]=ca.IN_COLUMN_GROUP,v.insertionMode=ca.IN_COLUMN_GROUP,tm(v,_);break;case cn.TR:v.tmplInsertionModeStack[0]=ca.IN_TABLE_BODY,v.insertionMode=ca.IN_TABLE_BODY,ty(v,_);break;case cn.TD:case cn.TH:v.tmplInsertionModeStack[0]=ca.IN_ROW,v.insertionMode=ca.IN_ROW,tk(v,_);break;default:v.tmplInsertionModeStack[0]=ca.IN_BODY,v.insertionMode=ca.IN_BODY,tr(v,_)}break;case ca.AFTER_BODY:c=this,(u=e).tagID===cn.HTML?tr(c,u):tA(c,u);break;case ca.IN_FRAMESET:var T=this,A=e;switch(A.tagID){case cn.HTML:tr(T,A);break;case cn.FRAMESET:T._insertElement(A,l8.HTML);break;case cn.FRAME:T._appendElement(A,l8.HTML),A.ackSelfClosing=!0;break;case cn.NOFRAMES:e1(T,A)}break;case ca.AFTER_FRAMESET:var w=this,S=e;switch(S.tagID){case cn.HTML:tr(w,S);break;case cn.NOFRAMES:e1(w,S)}break;case ca.AFTER_AFTER_BODY:h=this,(d=e).tagID===cn.HTML?tr(h,d):tw(h,d);break;case ca.AFTER_AFTER_FRAMESET:var C=this,N=e;switch(N.tagID){case cn.HTML:tr(C,N);break;case cn.NOFRAMES:e1(C,N)}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===cn.P||t.tagID===cn.BR){tS(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)===l8.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=(s=e).tagID)===cn.HEAD||n===cn.BODY||n===cn.HTML||n===cn.BR?e0(a,s):a._err(s,l2.endTagWithoutMatchingOpenElement);break;case ca.IN_HEAD:var r,i,a,s,o,l,c,u,h,d,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 y=this,b=e;switch(b.tagID){case cn.NOSCRIPT:y.openElements.pop(),y.insertionMode=ca.IN_HEAD;break;case cn.BR:e3(y,b);break;default:y._err(b,l2.endTagWithoutMatchingOpenElement)}break;case ca.AFTER_HEAD:var k=this,x=e;switch(x.tagID){case cn.BODY:case cn.HTML:case cn.BR:e6(k,x);break;case cn.TEMPLATE:e2(k,x);break;default:k._err(x,l2.endTagWithoutMatchingOpenElement)}break;case ca.IN_BODY:ta(this,e);break;case ca.TEXT:o=this,e.tagID===cn.SCRIPT&&(null==(l=o.scriptHandler)||l.call(o,o.openElements.current)),o.openElements.pop(),o.insertionMode=o.originalInsertionMode;break;case ca.IN_TABLE:tc(this,e);break;case ca.IN_TABLE_TEXT:tp(this,e);break;case ca.IN_CAPTION:var E=this,v=e;let _=v.tagID;switch(_){case cn.CAPTION:case cn.TABLE:E.openElements.hasInTableScope(cn.CAPTION)&&(E.openElements.generateImpliedEndTags(),E.openElements.popUntilTagNamePopped(cn.CAPTION),E.activeFormattingElements.clearToLastMarker(),E.insertionMode=ca.IN_TABLE,_===cn.TABLE&&tc(E,v));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(E,v)}break;case ca.IN_COLUMN_GROUP:var T=this,A=e;switch(A.tagID){case cn.COLGROUP:T.openElements.currentTagId===cn.COLGROUP&&(T.openElements.pop(),T.insertionMode=ca.IN_TABLE);break;case cn.TEMPLATE:e2(T,A);break;case cn.COL:break;default:tg(T,A)}break;case ca.IN_TABLE_BODY:tb(this,e);break;case ca.IN_ROW:tx(this,e);break;case ca.IN_CELL:var w=this,S=e;let C=S.tagID;switch(C){case cn.TD:case cn.TH:w.openElements.hasInTableScope(C)&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilTagNamePopped(C),w.activeFormattingElements.clearToLastMarker(),w.insertionMode=ca.IN_ROW);break;case cn.TABLE:case cn.TBODY:case cn.TFOOT:case cn.THEAD:case cn.TR:w.openElements.hasInTableScope(C)&&(w._closeTableCell(),tx(w,S));break;case cn.BODY:case cn.CAPTION:case cn.COL:case cn.COLGROUP:case cn.HTML:break;default:ta(w,S)}break;case ca.IN_SELECT:tv(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)):tv(c,u);break;case ca.IN_TEMPLATE:h=this,(d=e).tagID===cn.TEMPLATE&&e2(h,d);break;case ca.AFTER_BODY:tT(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:tw(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:e3(this,e);break;case ca.AFTER_HEAD:e6(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:ts(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:t_(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:to(this,e);break;case ca.IN_TABLE_TEXT:th(this,e)}}}function eY(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,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);let n=e.activeFormattingElements.getElementEntry(s),o=n&&a>=3;!n||o?(o&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=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(s,r),r=s)}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===l8.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,l8.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,l8.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 e3(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 e6(e,t){e._insertFakeElement(ct.BODY,cn.BODY),e.insertionMode=ca.IN_BODY,e9(e,t)}function e9(e,t){switch(t.type){case l5.CHARACTER:e8(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:ts(e,t)}}function e4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function e8(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function e7(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,l8.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function te(e){let t=J(e,l7.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,l8.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,l8.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case cn.A:let n;(n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ct.A))&&(eY(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,l8.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,l8.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,l8.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,l8.HTML);break;case cn.BR:case cn.IMG:case cn.WBR:case cn.AREA:case cn.EMBED:case cn.KEYGEN:e7(e,t);break;case cn.HR:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._appendElement(t,l8.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,l8.HTML);break;case cn.RT:case cn.RP:e.openElements.hasInScope(cn.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(cn.RTC),e._insertElement(t,l8.HTML);break;case cn.PRE:case cn.LISTING:e.openElements.hasInButtonScope(cn.P)&&e._closePElement(),e._insertElement(t,l8.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(),eG(t),ez(t),t.selfClosing?e._appendElement(t,l8.SVG):e._insertElement(t,l8.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,l8.HTML),a||(e.formElement=e.openElements.current));break;case cn.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(cn.NOBR)&&(eY(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,l8.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case cn.MATH:e._reconstructActiveFormattingElements(),ej(t),ez(t),t.selfClosing?e._appendElement(t,l8.MATHML):e._insertElement(t,l8.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,l8.HTML),e.framesetOk=!1,e.insertionMode=ca.IN_TABLE;break;case cn.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,l8.HTML),te(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case cn.PARAM:case cn.TRACK:case cn.SOURCE:e._appendElement(t,l8.HTML),t.ackSelfClosing=!0;break;case cn.IMAGE:t.tagName=ct.IMG,t.tagID=cn.IMG,e7(e,t);break;case cn.BUTTON:e.openElements.hasInScope(cn.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(cn.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,l8.HTML),e.framesetOk=!1;break;case cn.APPLET:case cn.OBJECT:case cn.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,l8.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,l8.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,l8.HTML);break;case cn.NOEMBED:case cn.NOFRAMES:tt(e,t);break;case cn.FRAMESET:let s;s=e.openElements.tryPeekProperlyNestedBodyElement(),e.framesetOk&&s&&(e.treeAdapter.detachNode(s),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,l8.HTML),e.insertionMode=ca.IN_FRAMESET);break;case cn.TEXTAREA:e._insertElement(t,l8.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,l8.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:eY(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,tT(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 ts(e,t){e.tmplInsertionModeStack.length>0?t_(e,t):eQ(e,t)}function to(e,t){if(void 0!==e.openElements.currentTagId&&eK.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:td(e,t);break;case l5.WHITESPACE_CHARACTER:th(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,ty(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,l8.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,l8.HTML),e.insertionMode=ca.IN_TABLE_BODY;break;case cn.INPUT:te(t)?e._appendElement(t,l8.HTML):tu(e,t),t.ackSelfClosing=!0;break;case cn.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,l8.HTML),e.insertionMode=ca.IN_CAPTION;break;case cn.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,l8.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,e9(e,t),e.fosterParentingEnabled=n}function th(e,t){e.pendingCharacterTokens.push(t)}function td(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,l8.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 ty(e,t){switch(t.tagID){case cn.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,l8.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,tk(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 tb(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 tk(e,t){switch(t.tagID){case cn.TH:case cn.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,l8.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,ty(e,t));break;default:tl(e,t)}}function tx(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,tb(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,tb(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 tE(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,l8.HTML);break;case cn.OPTGROUP:e.openElements.currentTagId===cn.OPTION&&e.openElements.pop(),e.openElements.currentTagId===cn.OPTGROUP&&e.openElements.pop(),e._insertElement(t,l8.HTML);break;case cn.HR:e.openElements.currentTagId===cn.OPTION&&e.openElements.pop(),e.openElements.currentTagId===cn.OPTGROUP&&e.openElements.pop(),e._appendElement(t,l8.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 tv(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 t_(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 tT(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 tA(e,t)}function tA(e,t){e.insertionMode=ca.IN_BODY,e9(e,t)}function tw(e,t){e.insertionMode=ca.IN_BODY,e9(e,t)}function tS(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==l8.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 tC=tM("end"),tN=tM("start");function tM(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 tI(e){let t=tN(e),n=tC(e);if(t&&n)return{start:t,end:n}}let tL=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,tR=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),tD={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tO(e,t){var n,r;let i,s,o=!!((i="root"===(r=e).type?r.children[0]:r)&&("doctype"===i.type||"element"===i.type&&"html"===i.tagName.toLowerCase())),l=(0,U.A)("type",{handlers:{root:tF,element:tB,text:tU,comment:t$,doctype:tH,raw:tj},unknown:tG}),c={parser:o?new eq(tD):eq.getFragmentParser(void 0,tD),handle(e){l(e,c)},stitches:!1,options:t||{}};l(e,c),tz(c,tN());let u=(n=o?c.parser.document:c.parser.getFragment(),L({file:(s={file:c.options.file}).file||void 0,location:!1,schema:"svg"===s.space?w.JW:w.qy,verbose:s.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 tP(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function tF(e,t){tP(e.children,t)}function tB(e,t){(function(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ec.PLAINTEXT)return;tz(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=$({...e,children:[]},"svg"===({space:i===N.t.svg?"svg":"html"}).space?w.JW:w.qy),s={type:l5.START_TAG,tagName:n,tagID:ea(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:tK(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n})(e,t),tP(e.children,t),function(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&z.b.includes(n)||t.parser.tokenizer.state===ec.PLAINTEXT)return;tz(t,tC(e));let r={type:l5.END_TAG,tagName:n,tagID:ea(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:tK(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 tU(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:l5.CHARACTER,chars:e.value,location:tK(e)};tz(t,tN(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tH(e,t){let n={type:l5.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tK(e)};tz(t,tN(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function t$(e,t){let n=e.value,r={type:l5.COMMENT,data:n,location:tK(e)};tz(t,tN(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tj(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,tV(t,tN(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(tL,"<$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 tG(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type)){var n;let r;t.stitches=!0,r="children"in(n=e)?_({...n,children:[]}):_(n),"children"in e&&"children"in r&&(r.children=tO({type:"root",children:e.children},t.options).children),t$({type:"comment",value:{stitch:r}},t)}else{let t="";throw tR.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 tz(e,t){tV(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 tV(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 tK(e){let t=tN(e)||{line:void 0,column:void 0,offset:void 0},n=tC(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 tW(e){return function(t,n){return tO(t,{...e,file:n})}}let tq=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],tY={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...tq,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...tq],h2:[["className","sr-only"]],img:[...tq,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...tq,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...tq],table:[...tq],ul:[...tq,["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 s=e,o=t;if(s.schema.allowDoctypes){let e={type:"doctype"};return t1(e,o),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,s=i&&tX.call(i,r)?i[r]:void 0,o=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(s,n),n,t);null==r&&(r=tJ(e,t2(o,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 s={type:"element",tagName:n,properties:i,children:r};return t1(s,t),s}(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 s=t0(e,t,n,r[i]);("number"==typeof s||"string"==typeof s)&&a.push(s)}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(":"),s=i.indexOf("?"),o=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||s>-1&&a>s||o>-1&&a>o)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=tI(t);t.data&&(e.data=_(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?{...tY,...e}:tY,stack:[]},t))&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r),n}}var t3=n(62275),t6=n(1052),t9=n(64587);let t4="phrasing",t8=["autolink","link","image","label"];function t7(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,T.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,t9.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,s.VG)(e,"text",o);function o(e,t){let n,s=-1;for(;++s<t.length;){let e=t[s],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],s=i[a][1],o=0,l=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let h=r.exec(e.value);for(;h;){let n=h.index,i={index:h.index,input:h.input,stack:[...t,e]},a=s(...h,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(o!==n&&u.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),o=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}return c?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ns],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,no]],{ignore:["link","linkReference"]})}function ns(e,t,n,r,i){let a,s="";if(!nl(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",s="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 o=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,t3.D)(e,"("),a=(0,t3.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(!o[0])return!1;let l={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function no(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,t6.Ny)(n)||(0,t6.es)(n))&&(!t||47!==n)}function nc(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function nu(){this.buffer()}function nh(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function nd(){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,T.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,T.ok)("footnoteDefinition"===n.type),n.identifier=nc(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ny(e){this.exit(e)}function nb(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]")}function nk(e,t,n){return 0===t?e:nx(e,t,n)}function nx(e,t,n){return(n?"":" ")+e}nb.peek=function(){return"["};let nE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function nv(e){this.enter({type:"delete",children:[]},e)}function n_(e){this.exit(e)}function nT(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function nA(e){return e.length}function nw(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)}nT.peek=function(){return"~"};n(13332);function nS(e){return null===e||(0,t6.Ee)(e)||(0,t6.Ny)(e)?1:(0,t6.es)(e)?2:void 0}let nC={};function nN(e,t){let n=t||nC;return nM(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function nM(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 nI(e.children,t,n)}return Array.isArray(e)?nI(e,t,n):""}function nI(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=nM(e[i],t,n);return r.join("")}function nL(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}nL.peek=function(){return"`"};(0,t9.C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let nR=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 s=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?a:a+" ".repeat(s-a.length))+e});return l(),c};function nD(e){let t=e._align;(0,T.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 nO(e){this.exit(e),this.data.inTable=void 0}function nP(e){this.enter({type:"tableRow",children:[]},e)}function nF(e){this.exit(e)}function nB(e){this.enter({type:"tableCell",children:[]},e)}function nU(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nH));let n=this.stack[this.stack.length-1];(0,T.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function nH(e,t){return"|"===t?t:e}function n$(e){let t=this.stack[this.stack.length-2];(0,T.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function nj(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,T.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 nG(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let l=nR(e,t,n,{...r,...o.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s})),l}var nz=n(12835);let nV={}.hasOwnProperty;function nK(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(nV.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];if(a)for(r in a){nV.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,nz.m)(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let nW={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},nq={tokenize:function(e,t,n){let r,i,a;return s;function s(t){return 46===t||95===t?e.check(nX,l,o)(t):null===t||(0,t6.Ee)(t)||(0,t6.Ny)(t)||45!==t&&(0,t6.es)(t)?l(t):(a=!0,e.consume(t),s)}function o(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function l(e){return i||r||!a?n(e):t(e)}},partial:!0},nY={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?a(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(nX,t,a)(s):null===s||(0,t6.Ee)(s)||(0,t6.Ny)(s)?t(s):(e.consume(s),i)}function a(t){return 41===t&&r++,e.consume(t),i}},partial:!0},nX={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),a):93===s?(e.consume(s),i):60===s||null===s||(0,t6.Ee)(s)||(0,t6.Ny)(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||(0,t6.Ee)(e)||(0,t6.Ny)(e)?t(e):r(e)}function a(t){return(0,t6.CW)(t)?function t(i){return 59===i?(e.consume(i),r):(0,t6.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,t6.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(nW,e.attempt(nq,e.attempt(nY,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)&&n3.call(r,r.previous)&&!n4(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s):n(t)};function s(t){if((0,t6.CW)(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),o}return n(t)}function o(t){return 47===t?(e.consume(t),a)?l:(a=!0,o):n(t)}function l(t){return null===t||(0,t6.JQ)(t)||(0,t6.Ee)(t)||(0,t6.Ny)(t)||(0,t6.es)(t)?n(t):e.attempt(nq,e.attempt(nY,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:n3},n0={name:"emailAutolink",tokenize:function(e,t,n){let r,i,a=this;return function(t){return!n9(t)||!n6.call(a,a.previous)||n4(a.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return n9(r)?(e.consume(r),t):64===r?(e.consume(r),s):n(r)}(t))};function s(t){return 46===t?e.check(nQ,l,o)(t):45===t||95===t||(0,t6.lV)(t)?(i=!0,e.consume(t),s):l(t)}function o(t){return e.consume(t),r=!0,s}function l(s){return i&&r&&(0,t6.CW)(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:n6},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,t6.Ee)(e)}function n3(e){return!(0,t6.CW)(e)}function n6(e){return!(47===e||n9(e))}function n9(e){return 43===e||45===e||46===e||95===e||(0,t6.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 n8=n(66623);let n7={partial:!0,tokenize:function(e,t,n){return function(t){return(0,t6.On)(t)?(0,n8.N)(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||(0,t6.HP)(e)?t(e):n(e)}}},re={tokenize:function(e,t,n){let r=this;return(0,n8.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,s=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 o=nc(i.sliceSerialize({start:r.end,end:i.now()}));return 94===o.codePointAt(0)&&s.includes(o.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)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[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",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function rr(e,t,n){let r,i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(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(o){if(s>999||93===o&&!r||null===o||91===o||(0,t6.Ee)(o))return n(o);if(93===o){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return a.includes(nc(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return(0,t6.Ee)(o)||(r=!0),s++,e.consume(o),92===o?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function ri(e,t,n){let r,i,a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),o=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(o>999||93===t&&!i||null===t||91===t||(0,t6.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"),h}return(0,t6.Ee)(t)||(i=!0),o++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),(0,n8.N)(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function ra(e,t,n){return e.check(n7,t,e.attempt(re,t,n))}function rs(e){e.exit("gfmFootnoteDefinition")}var ro=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,s=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?b:o;return a===b&&i.parser.lazy[i.now().line]?n(e):a(e)};function o(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,s+=1),l(n)}function l(t){return null===t?n(t):(0,t6.HP)(t)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):(0,t6.On)(t)?(0,n8.N)(e,l,"whitespace")(t):(s+=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,t6.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 h(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,t6.On)(t))?(0,n8.N)(e,d,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t)}function d(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,t6.On)(t)?(0,n8.N)(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||(0,t6.HP)(t)?y(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,t6.On)(t)?(0,n8.N)(e,y,"whitespace")(t):y(t)}function y(i){if(124===i)return d(i);if(null===i||(0,t6.HP)(i))return r&&a===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function b(t){return e.enter("tableRow"),k(t)}function k(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),k):null===n||(0,t6.HP)(n)?(e.exit("tableRow"),t(n)):(0,t6.On)(n)?(0,n8.N)(e,k,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||(0,t6.Ee)(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?E:x)}function E(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function ru(e,t){let n,r,i,a=-1,s=!0,o=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0,d=new rl;for(;++a<e.length;){let p=e[a],f=p[1];"enter"===p[0]?"tableHead"===f.type?(u=!1,0!==h&&(rd(d,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(a,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(s=!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)},d.add(a,0,[["enter",r,t]])),o="tableDelimiterRow"===f.type?2:r?3:1):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(s=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=rh(d,t,l,o,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableCellDivider"===f.type&&(s?s=!1:(0!==l[1]&&(c[0]=c[1],i=rh(d,t,l,o,void 0,i)),c=[(l=c)[1],a,0,0])):"tableHead"===f.type?(u=!0,h=a):"tableRow"===f.type||"tableDelimiterRow"===f.type?(h=a,0!==l[1]?(c[0]=c[1],i=rh(d,t,l,o,a,i)):0!==c[1]&&(i=rh(d,t,c,o,a,i)),o=0):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(c[3]=a)}for(0!==h&&rd(d,t,h,n,r),d.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 rh(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 s=rp(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=rp(t.events,n[2]),a=rp(t.events,n[3]),s={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",s,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",s,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 rd(e,t,n,r,i){let a=[],s=rp(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),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,t6.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"),s):n(t)}function s(r){return(0,t6.HP)(r)?t(r):(0,t6.On)(r)?e.check({tokenize:rm},t,n)(r):n(r)}}};function rm(e,t,n){return(0,n8.N)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let rg={};var ry=Object.defineProperty,rb=Object.defineProperties,rk=Object.getOwnPropertyDescriptors,rx=Object.getOwnPropertySymbols,rE=Object.prototype.hasOwnProperty,rv=Object.prototype.propertyIsEnumerable,r_=(e,t,n)=>t in e?ry(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rT=(e,t)=>{for(var n in t||(t={}))rE.call(t,n)&&r_(e,n,t[n]);if(rx)for(var n of rx(t))rv.call(t,n)&&r_(e,n,t[n]);return e},rA=(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},rw=(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},rS=(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},rC=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,rN=/(\*\*)([^*]*\*?)$/,rM=/(__)([^_]*?)$/,rI=/(\*\*\*)([^*]*?)$/,rL=/(\*)([^*]*?)$/,rR=/(_)([^_]*?)$/,rD=/(`)([^`]*?)$/,rO=/(~~)([^~]*?)$/,rP=/^[\s_~*`]*$/,rF=/^[\s]*[-*+][\s]+$/,rB=/[\p{L}\p{N}_]/u,rU=/^```[^`\n]*```?$/,rH=/^\*{4,}$/,r$=/(__)([^_]+)_$/,rj=/(~~)([^~]+)~$/,rG=/~~/g,rz=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)},rV=(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},rK=(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},rW=(e,t)=>{for(let n=t;n<e.length;n+=1){if(")"===e[n])return!0;if(e[n]===`
|
|
3
|
-
`)break}return!1},rq=(e,t)=>{for(let n=t-1;n>=0&&")"!==e[n];n-=1){if("("===e[n])return n>0&&"]"===e[n-1]&&rW(e,t);if(e[n]===`
|
|
4
|
-
`)break}return!1},rY=(e,t,n)=>{let r=0;for(let n=t-1;n>=0;n-=1)if(e[n]===`
|
|
5
|
-
`){r=n+1;break}let i=e.length;for(let n=t;n<e.length;n+=1)if(e[n]===`
|
|
6
|
-
`){i=n;break}let a=e.substring(r,i),s=0,o=!1;for(let e of a)if(e===n)s+=1;else if(" "!==e&&" "!==e){o=!0;break}return s>=3&&!o},rX=(e,t,n,r)=>!!("\\"===n||e.includes("$")&&rK(e,t))||("*"!==n&&"*"===r?(t<e.length-2?e[t+2]:"")!=="*":!!("*"===n||n&&r&&rz(n)&&rz(r)||(!n||" "===n||" "===n||n===`
|
|
7
|
-
`)&&(!r||" "===r||" "===r||r===`
|
|
8
|
-
`))),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]:"",s=i<r-1?e[i+1]:"";rX(e,i,a,s)||(t+=1)}return t},rZ=(e,t,n,r)=>!!("\\"===n||e.includes("$")&&rK(e,t)||rq(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]===`
|
|
9
|
-
`)break}return!1})(e,t)||"_"===n||"_"===r||n&&r&&rz(n)&&rz(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]&&!rK(e,n)&&!rq(e,n)){let t=n>0?e[n-1]:"",r=n<e.length-1?e[n+1]:"";if(t&&r&&rz(t)&&rz(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),r3=(e,t,n)=>{let r=t>0&&"!"===e[t-1],i=r?t-1:t;if(!e.substring(t+1).includes("]")||-1===rV(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]&&!rA(e,n)){if(n>0&&"!"===e[n-1])continue;let t=rV(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},r6=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(-1!==n&&!rA(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||rA(e,r))return null;let i=r>0&&"!"===e[r-1],a=e.substring(0,i?r-1:r);if(i)return a;let s=e.substring(r+1,t);return"text-only"===n?`${a}${s}`:`${a}[${s}](streamdown:incomplete-link)`})(e,n,t);if(null!==r)return r}for(let n=e.length-1;n>=0;n-=1)if("["===e[n]&&!rA(e,n)){let r=r3(e,n,t);if(null!==r)return r}return e},r9=/^-{1,2}$/,r4=/^[\s]*-{1,2}[\s]+$/,r8=/^={1,2}$/,r7=/^[\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)=>rA(e,n)?t:"\\~"):e,priority:0},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:e=>e&&"string"==typeof e&&e.includes(">")?e.replace(rC,(t,n,r,i)=>rA(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||rA(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(`
|
|
10
|
-
`);if(-1===t)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(r9.test(i)&&!n.match(r4)){let t=r.split(`
|
|
11
|
-
`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}if(r8.test(i)&&!n.match(r7)){let t=r.split(`
|
|
12
|
-
`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}return e},priority:15},optionKey:"setextHeadings"},{handler:{name:"links",handle:r6,priority:20},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:e=>{let t,n;if(rH.test(e))return e;let r=e.match(rI);if(!r)return e;let i=r[2],a=e.lastIndexOf(r[1]);return!i||rP.test(i)||rA(e,a)||rS(e,a)||rY(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 rA(e,r)||rS(e,r)||((e,t,n)=>{if(!t||rP.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
|
|
13
|
-
`),i=e.substring(-1===r?0:r+1,n);return!!(rF.test(i)&&t.includes(`
|
|
14
|
-
`))||rY(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(rM);if(!t){let t=e.match(r$);if(t){let n=e.lastIndexOf(t[1]);if(!(rA(e,n)||rS(e,n))&&r0(e)%2==1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return rA(e,r)||rS(e,r)||((e,t,n)=>{if(!t||rP.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
|
|
15
|
-
`),i=e.substring(-1===r?0:r+1,n);return!!(rF.test(i)&&t.includes(`
|
|
16
|
-
`))||rY(e,n,"_")})(e,n,r)?e:r0(e)%2==1?`${e}__`:e},priority:40},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:e=>{if(!e.match(rL))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]&&!rK(e,n)){let t=n>0?e[n-1]:"",r=n<e.length-1?e[n+1]:"";if((!t||" "===t||" "===t||t===`
|
|
17
|
-
`)&&(!r||" "===r||" "===r||r===`
|
|
18
|
-
`)||t&&r&&rz(t)&&rz(r))continue;return n}}return -1})(e);if(-1===t||rA(e,t)||rS(e,t))return e;let n=e.substring(t+1);return!n||rP.test(n)?e:rQ(e)%2==1?`${e}*`:e},priority:41},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:e=>{if(!e.match(rR))return e;let t=r1(e);if(-1===t)return e;let n=e.substring(t+1);if(!n||rP.test(n)||rA(e,t)||rS(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]:"",s=i<r-1?e[i+1]:"";rZ(e,i,a,s)||(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]===`
|
|
19
|
-
`;)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(rU)||e.includes(`
|
|
20
|
-
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e;if(null!==t)return t;let n=e.match(rD);if(n&&(e.match(/```/g)||[]).length%2!=1){let t=n[2];if(!t||rP.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]||rw(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(rO);if(r){let n=r[2];if(!n||rP.test(n))return e;let i=e.lastIndexOf(r[1]);if(rA(e,i)||rS(e,i))return e;if((null==(t=e.match(rG))?void 0:t.length)%2==1)return`${e}~~`}else{let t=e.match(rj);if(t){let r=e.lastIndexOf(t[0].slice(0,2));if(rA(e,r)||rS(e,r))return e;if((null==(n=e.match(rG))?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(`
|
|
21
|
-
`,t)||e.endsWith(`
|
|
22
|
-
`)?`${e}$$`:`${e}
|
|
23
|
-
$$`})(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),is=n(44911);let io=/^[$_\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:io).test(e)}var ih=n(54667);let id={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?iy(e.position):"start"in e||"end"in e?iy(e):"line"in e||"column"in e?ig(e):"":""}function ig(e){return ib(e&&e.line)+":"+ib(e&&e.column)}function iy(e){return ig(e&&e.start)+"-"+ig(e&&e.end)}function ib(e){return e&&"number"==typeof e?e:1}class ik 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 s=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=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=s?s.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}}ik.prototype.file="",ik.prototype.name="",ik.prototype.reason="",ik.prototype.message="",ik.prototype.stack="",ik.prototype.column=void 0,ik.prototype.line=void 0,ik.prototype.ancestors=void 0,ik.prototype.cause=void 0,ik.prototype.fatal=void 0,ik.prototype.place=void 0,ik.prototype.ruleId=void 0,ik.prototype.source=void 0;let ix={}.hasOwnProperty,iE=new Map,iv=/[A-Z]/g,i_=new Set(["table","tbody","thead","tfoot","tr"]),iT=new Set(["td","th"]),iA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function iw(e,t,n){var r,i,a,s,o,l,c,u,h;let d,p,f,m,g,y,b,k,x,E,v;return"element"===t.type?(r=e,i=t,a=n,p=d=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===d.space&&(r.schema=w.JW),r.ancestors.push(i),f=iM(r,i.tagName,!1),m=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&ix.call(t.properties,r)){let a=function(e,t,n){let r=(0,S.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 ik("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=iA+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)ix.call(e,t)&&(n[function(e){let t=e.replace(iv,iL);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?id[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(a){let[r,s]=a;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof s&&iT.has(t.tagName)?n=s:i[r]=s}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),g=iN(r,i),i_.has(i.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!(0,ih.m)(e)})),iS(r,m,f,i),iC(m,g),r.ancestors.pop(),r.schema=d,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,T.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}iI(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(s=e,o=t,l=n,b=y=s.schema,"svg"===o.name&&"html"===y.space&&(s.schema=w.JW),s.ancestors.push(o),k=null===o.name?s.Fragment:iM(s,o.name,!0),x=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,T.ok)("ExpressionStatement"===t.type);let i=t.expression;(0,T.ok)("ObjectExpression"===i.type);let a=i.properties[0];(0,T.ok)("SpreadElement"===a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else iI(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,T.ok)("ExpressionStatement"===t.type),i=e.evaluater.evaluateExpression(t.expression)}else iI(e,t.position);else i=null===r.value||r.value;n[a]=i}return n}(s,o),E=iN(s,o),iS(s,x,k,o),iC(x,E),s.ancestors.pop(),s.schema=y,s.create(o,k,x,l)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);iI(e,t.position)}(e,t):"root"===t.type?(c=e,u=t,h=n,iC(v={},iN(c,u)),c.create(u,c.Fragment,v,h)):"text"===t.type?t.value:void 0}function iS(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function iC(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:iE;for(;++r<t.children.length;){let a,s=t.children[r];if(e.passKeys){let e="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(e){let t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}let o=iw(e,s,a);void 0!==o&&n.push(o)}return n}function iM(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,T.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 ix.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);iI(e)}function iI(e,t){let n=new ik("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=iA+"#cannot-handle-mdx-estrees-without-createevaluater",n}function iL(e){return"-"+e.toLowerCase()}let iR={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 iD{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&&iO(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),iO(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),iO(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);iO(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);iO(this.left,t.reverse())}}}function iO(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 iP(e){let t,n,r,i,a,s,o,l={},c=-1,u=new iD(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)<(s=t[1]._tokenizer.events).length&&"lineEndingBlank"===s[r][1].type&&(r+=2),r<s.length&&"content"===s[r][1].type))for(;++r<s.length&&"content"!==s[r][1].type;)"chunkText"===s[r][1].type&&(s[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],s=t-1,o=[],l=i._tokenizer;!l&&(l=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let c=l.events,u=[],h={},d=-1,p=i,f=0,m=0,g=[0];for(;p;){for(;e.get(++s)[1]!==p;);o.push(s),!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;++d<c.length;)"exit"===c[d][0]&&"enter"===c[d-1][0]&&c[d][1].type===c[d-1][1].type&&c[d][1].start.line!==c[d][1].end.line&&(m=d+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(),d=g.length;d--;){let t=c.slice(g[d],g[d+1]),n=o.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),d=-1;++d<u.length;)h[f+u[d][0]]=f+u[d][1],f+=u[d][1]-u[d][0]-1;return h}(u,c)),c=l[c],o=!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,nz.m)(e,0,1/0,u.slice(0)),!o}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,n8.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,t6.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=[],s=0;return o;function o(t){if(s<a.length){let n=a[s];return i.containerState=n[1],e.attempt(n[0].continuation,l,c)(t)}return c(t)}function l(e){if(s++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();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(s);let o=r;for(;o<i.events.length;)i.events[o][1].end={...n},o++;return(0,nz.m)(i.events,a+1,0,i.events.slice(r)),i.events.length=o,c(e)}return o(e)}function c(n){if(s===a.length){if(!t)return d(n);if(t.currentConstruct&&t.currentConstruct.concrete)return f(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(iU,u,h)(n)}function u(e){return t&&y(),g(s),d(e)}function h(e){return i.parser.lazy[i.now().line]=s!==a.length,r=i.now().offset,f(e)}function d(t){return i.containerState={},e.attempt(iU,p,f)(t)}function p(e){return s++,a.push([i.currentConstruct,i.containerState]),d(e)}function f(r){if(null===r){t&&y(),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,t6.HP)(n)?(e.consume(n),m(e.exit("chunkFlow")),s=0,i.interrupt=void 0,o):(e.consume(n),t)}(r)}function m(e,a){let o=i.sliceStream(e);if(a&&o.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(o),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 o=i.events.length,l=o;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(s),a=o;a<i.events.length;)i.events[a][1].end={...n},a++;(0,nz.m)(i.events,l+1,0,i.events.slice(o)),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 y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},iU={tokenize:function(e,t,n){return(0,n8.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},iH={resolve:function(e){return iP(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,t6.HP)(t)?e.check(i$,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}}},i$={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,n8.N)(e,i,"linePrefix")};function i(i){if(null===i||(0,t6.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)}}},ij={tokenize:function(e){let t=this,n=e.attempt(n7,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,n8.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(iH,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)}}},iG={resolveAll:iW()},iz=iK("string"),iV=iK("text");function iK(e){return{resolveAll:iW("text"===e?iq:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,s);return a;function a(e){return l(e)?i(e):s(e)}function s(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),o)}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 iW(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 iq(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),s=a.length,o=-1,l=0;for(;s--;){let e=a[s];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)l++,o--;if(o)break;o=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:i.start._bufferIndex+o,_index:i.start._index+s,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 iY={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){var s;return e.enter("thematicBreak"),r=s=a,function a(s){return s===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,t6.On)(n)?(0,n8.N)(e,a,"whitespace")(n):a(n))}(s)):i>=3&&(null===s||(0,t6.HP)(s))?(e.exit("thematicBreak"),t(s)):n(s)}(s)}}},iX={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(n7,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,n8.N)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,t6.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,n8.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,s=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,t6.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(iY,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,t6.BM)(i)&&++s<10?(e.consume(i),t):(!r.interrupt||s<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),o(i)):n(i)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(n7,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,t6.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,n8.N)(e,function(e){let i=r.events[r.events.length-1];return!(0,t6.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,n8.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,t6.On)(t)?(0,n8.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,t6.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,s,o,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),h):null===t||32===t||41===t||(0,t6.JQ)(t)?n(t):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),f(t))};function h(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(o),h(t)):null===t||60===t||(0,t6.HP)(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function f(i){return!u&&(null===i||41===i||(0,t6.Ee)(i))?(e.exit("chunkString"),e.exit(o),e.exit(s),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,t6.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 s,o=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(h){return l>999||null===h||91===h||93===h&&!s||94===h&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):93===h?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(0,t6.HP)(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||(0,t6.HP)(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!(0,t6.On)(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function i2(e,t,n,r,i,a){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,o):n(t)};function o(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===s?(e.exit(a),o(s)):null===t?n(t):(0,t6.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n8.N)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||(0,t6.HP)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function i5(e,t){let n;return function r(i){return(0,t6.HP)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,t6.On)(i)?(0,n8.N)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}let i3={partial:!0,tokenize:function(e,t,n){return function(t){return(0,t6.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,t6.On)(t)?(0,n8.N)(e,a,"whitespace")(t):a(t)}function a(e){return null===e||(0,t6.HP)(e)?t(e):n(e)}}},i6={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,n8.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,t6.HP)(n)?e.attempt(i9,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,t6.HP)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},i9={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,t6.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,n8.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,t6.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 s={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",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var s;let o,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){o="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,s=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,t6.On)(n)?(0,n8.N)(e,a,"lineSuffix")(n):a(n))}(s)):n(t)};function a(r){return null===r||(0,t6.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},i8=["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"],i7=["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(n7,t,n)}}},at={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return(0,t6.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"),s};function s(t){return e.enter("codeFencedFence"),(0,t6.On)(t)?(0,n8.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>=o?(e.exit("codeFencedFenceSequence"),(0,t6.On)(i)?(0,n8.N)(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||(0,t6.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},s=0,o=0;return function(t){var a;let c;return a=t,s=(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?(o++,e.consume(i),t):o<3?n(i):(e.exit("codeFencedFenceSequence"),(0,t6.On)(i)?(0,n8.N)(e,l,"whitespace")(i):l(i))}(a)};function l(a){return null===a||(0,t6.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,t6.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):(0,t6.On)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,n8.N)(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function c(t){return null===t||(0,t6.HP)(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,t6.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,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return s>0&&(0,t6.On)(t)?(0,n8.N)(e,p,"linePrefix",s+1)(t):p(t)}function p(t){return null===t||(0,t6.HP)(t)?e.check(an,u,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,t6.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 as={name:"characterReference",tokenize:function(e,t,n){let r,i,a=this,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=t6.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=t6.ok,c):(e.enter("characterReferenceValue"),r=7,i=t6.BM,c(t))}function c(o){if(59===o&&s){let r=e.exit("characterReferenceValue");return i!==t6.lV||aa(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return i(o)&&s++<r?(e.consume(o),c):n(o)}}},ao={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,t6.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,n8.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,nz.m)(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,s=e.length,o=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(i=s);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+o+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=(0,nz.V)(a,e.slice(r+1,r+o+3)),a=(0,nz.V)(a,[["enter",u,t]]),a=(0,nz.V)(a,(0,ro.W)(t.parser.constructs.insideSpan.null,e.slice(r+o+4,i-3),t)),a=(0,nz.V)(a,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),a=(0,nz.V)(a,e.slice(i+1)),a=(0,nz.V)(a,[["exit",l,t]]),(0,nz.m)(e,r,e.length,a),e},tokenize:function(e,t,n){let r,i,a=this,s=a.events.length;for(;s--;)if(("labelImage"===a.events[s][1].type||"labelLink"===a.events[s][1].type)&&!a.events[s][1]._balanced){r=a.events[s][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"),o):n(t)};function o(t){return 40===t?e.attempt(au,c,i?c:u)(t):91===t?e.attempt(ah,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(ad,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,t6.Ee)(t)?i5(e,i)(t):i(t)}function i(t){return 41===t?c(t):i0(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return(0,t6.Ee)(t)?i5(e,o)(t):c(t)}function s(e){return n(e)}function o(t){return 34===t||39===t||40===t?i2(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return(0,t6.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)}}},ah={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)}}},ad={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,s,o,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;o=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 h={...e[n][1].end},d={...e[u][1].start};am(h,-o),am(d,o),a={type:o>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:d},i={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:o>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[n][1].end={...a.start},e[u][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,nz.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,nz.V)(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=(0,nz.V)(l,(0,ro.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=(0,nz.V)(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=(0,nz.V)(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,(0,nz.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=nS(i);return function(s){return n=s,e.enter("attentionSequence"),function s(o){if(o===n)return e.consume(o),s;let l=e.exit("attentionSequence"),c=nS(o),u=!c||2===c&&a||r.includes(o),h=!a||2===a&&c||r.includes(i);return l._open=!!(42===n?u:u&&(a||!h)),l._close=!!(42===n?h:h&&(c||!u)),t(o)}(s)}}};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)}}},ay={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},ab={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"),s):n(t)}function s(t){return(0,t6.Ee)(t)?i5(e,o)(t):o(t)}function o(t){return i0(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(i3,c,c)(t)}function c(t){return(0,t6.On)(t)?(0,n8.N)(e,u,"whitespace")(t):u(t)}function u(a){return null===a||(0,t6.HP)(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},ak={[-2]:i6,[-1]:i6,32:i6},ax={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,nz.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,t6.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,t6.HP)(r)?(e.exit("atxHeading"),t(r)):(0,t6.On)(r)?(0,n8.N)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,t6.Ee)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(a)}}},42:iY,45:[i4,iY],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,s,o,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,p):63===s?(e.consume(s),r=3,l.interrupt?t:L):(0,t6.CW)(s)?(e.consume(s),a=String.fromCharCode(s),f):n(s)}function u(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,s=0,d):(0,t6.CW)(i)?(e.consume(i),r=4,l.interrupt?t:L):n(i)}function h(r){return 45===r?(e.consume(r),l.interrupt?t:L):n(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(s++)?(e.consume(r),s===i.length)?l.interrupt?t:T:d:n(r)}function p(t){return(0,t6.CW)(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||(0,t6.Ee)(s)){let o=47===s,c=a.toLowerCase();return!o&&!i&&i7.includes(c)?(r=1,l.interrupt?t(s):T(s)):i8.includes(a.toLowerCase())?(r=6,o)?(e.consume(s),m):l.interrupt?t(s):T(s):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(s):i?function t(n){return(0,t6.On)(n)?(e.consume(n),t):v(n)}(s):g(s))}return 45===s||(0,t6.lV)(s)?(e.consume(s),a+=String.fromCharCode(s),f):n(s)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:T):n(r)}function g(t){return 47===t?(e.consume(t),v):58===t||95===t||(0,t6.CW)(t)?(e.consume(t),y):(0,t6.On)(t)?(e.consume(t),g):v(t)}function y(t){return 45===t||46===t||58===t||95===t||(0,t6.lV)(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),k):(0,t6.On)(t)?(e.consume(t),b):g(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,x):(0,t6.On)(t)?(e.consume(t),k):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,t6.Ee)(n)?b(n):(e.consume(n),t)}(t)}function x(t){return t===o?(e.consume(t),o=null,E):null===t||(0,t6.HP)(t)?n(t):(e.consume(t),x)}function E(e){return 47===e||62===e||(0,t6.On)(e)?g(e):n(e)}function v(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||(0,t6.HP)(t)?T(t):(0,t6.On)(t)?(e.consume(t),_):n(t)}function T(t){return 45===t&&2===r?(e.consume(t),C):60===t&&1===r?(e.consume(t),N):62===t&&4===r?(e.consume(t),R):63===t&&3===r?(e.consume(t),L):93===t&&5===r?(e.consume(t),I):(0,t6.HP)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(ae,D,A)(t)):null===t||(0,t6.HP)(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),T)}function A(t){return e.check(at,w,D)(t)}function w(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),S}function S(t){return null===t||(0,t6.HP)(t)?A(t):(e.enter("htmlFlowData"),T(t))}function C(t){return 45===t?(e.consume(t),L):T(t)}function N(t){return 47===t?(e.consume(t),a="",M):T(t)}function M(t){if(62===t){let n=a.toLowerCase();return i7.includes(n)?(e.consume(t),R):T(t)}return(0,t6.CW)(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),M):T(t)}function I(t){return 93===t?(e.consume(t),L):T(t)}function L(t){return 62===t?(e.consume(t),R):45===t&&2===r?(e.consume(t),L):T(t)}function R(t){return null===t||(0,t6.HP)(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),R)}function D(n){return e.exit("htmlFlow"),t(n)}}},61:i4,95:iY,96:ar,126:ar},aE={38:as,92:ao},av={[-5]:al,[-4]:al,[-3]:al,33:ap,38:as,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,t6.CW)(t)?(e.consume(t),a):64===t?n(t):o(t)}function a(t){return 43===t||45===t||46===t||(0,t6.lV)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,s):(43===n||45===n||46===n||(0,t6.lV)(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function s(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,t6.JQ)(r)?n(r):(e.consume(r),s)}function o(t){return 64===t?(e.consume(t),l):(0,t6.cx)(t)?(e.consume(t),o):n(t)}function l(i){return(0,t6.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,t6.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,s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),b):(0,t6.CW)(t)?(e.consume(t),v):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):(0,t6.CW)(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),d):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):(0,t6.HP)(t)?(a=u,M(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),d):u(t)}function d(e){return 62===e?N(e):45===e?h(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,t6.HP)(t)?(a=f,M(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 y(t){return null===t||62===t?N(t):(0,t6.HP)(t)?(a=y,M(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),k):(0,t6.HP)(t)?(a=b,M(t)):(e.consume(t),b)}function k(e){return 62===e?N(e):b(e)}function x(t){return(0,t6.CW)(t)?(e.consume(t),E):n(t)}function E(t){return 45===t||(0,t6.lV)(t)?(e.consume(t),E):function t(n){return(0,t6.HP)(n)?(a=t,M(n)):(0,t6.On)(n)?(e.consume(n),t):N(n)}(t)}function v(t){return 45===t||(0,t6.lV)(t)?(e.consume(t),v):47===t||62===t||(0,t6.Ee)(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),N):58===t||95===t||(0,t6.CW)(t)?(e.consume(t),T):(0,t6.HP)(t)?(a=_,M(t)):(0,t6.On)(t)?(e.consume(t),_):N(t)}function T(t){return 45===t||46===t||58===t||95===t||(0,t6.lV)(t)?(e.consume(t),T):function t(n){return 61===n?(e.consume(n),A):(0,t6.HP)(n)?(a=t,M(n)):(0,t6.On)(n)?(e.consume(n),t):_(n)}(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,w):(0,t6.HP)(t)?(a=A,M(t)):(0,t6.On)(t)?(e.consume(t),A):(e.consume(t),S)}function w(t){return t===r?(e.consume(t),r=void 0,C):null===t?n(t):(0,t6.HP)(t)?(a=w,M(t)):(e.consume(t),w)}function S(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,t6.Ee)(t)?_(t):(e.consume(t),S)}function C(e){return 47===e||62===e||(0,t6.Ee)(e)?_(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return(0,t6.On)(t)?(0,n8.N)(e,L,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(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,t6.HP)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},ao],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"),s(n))}(t)};function s(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),s):96===l?(i=e.enter("codeTextSequence"),r=0,function n(s){return 96===s?(e.consume(s),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(s)):(i.type="codeTextData",o(s))}(l)):(0,t6.HP)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s):(e.enter("codeTextData"),o(l))}function o(t){return null===t||32===t||96===t||(0,t6.HP)(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),o)}}}},a_={null:[af,iG]},aT={null:[42,95]},aA={null:[]},aw=/[\0\t\n\r]/g;function aS(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 aC=/\\([!-/:-@[-`{-~])|&(#(?:\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 aS(n.slice(t?2:1),t?16:10)}return aa(n)||e}let aM={}.hasOwnProperty;function aI(e){return{line:e.line,column:e.column,offset:e.offset}}function aL(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 aR(e){let t=this;t.parser=function(n){var i,a;let s,o,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(y),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(y),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(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(b),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:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:s(),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:s(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=aS(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=aI(e.end)},codeFenced:s(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:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:s(),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:s(),hardBreakEscape:s(h),hardBreakTrailing:s(h),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:s(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(aC,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=aI(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:s(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:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),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:s(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:s(),thematicBreak:s()}};!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(aM.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:[]},s={stack:[r],tokenStack:[],config:t,enter:a,exit:o,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,s,o=t-1,l=-1,c=!1;for(;++o<=n;){let t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||l||a||(a=o),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=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 s=o;for(i=void 0;s--;){let t=e[s];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=s}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||o,0,["exit",r,t[2]]),o++,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(o,0,["enter",i,t[2]]),o++,n++,a=void 0,s=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];aM.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},s),e[u][1])}if(s.tokenStack.length>0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||aL).call(s,void 0,e[0])}for(r.position={start:aI(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:aI(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:aI(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),o.call(this,t)}}function o(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]||aL).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=aI(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:aI(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=aI(e.end)}function h(){this.data.atHardBreak=!0}function d(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 y(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(a)(function(e){for(;!iP(e););return e}((function(e){let t={constructs:nK([r,...(e||{}).extensions||[]]),content:n(iF),defined:[],document:n(iB),flow:n(ij),lazy:{},string:n(iz),text:n(iV)};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=[],s=[],o=[],l={attempt:f(function(e,t){m(e,t.from)}),check:f(p),consume:function(e){(0,t6.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===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=d(),c.events.push(["enter",n,c]),o.push(n),n},exit:function(e){let t=o.pop();return t.end=d(),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:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let a,s=e[r];if("string"==typeof s)a=s;else switch(s){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(s)}n=-2===s,i.push(a)}return i.join("")}(h(e),t)},sliceStream:h,write:function(e){return(s=(0,nz.V)(s,e),function(){let e;for(;r._index<s.length;){let n=s[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!==s[s.length-1])?[]:(m(t,0),c.events=(0,ro.W)(a,c.events,c),c.events)}},u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function h(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,s)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}s>0&&n.push(e[a].slice(0,s))}return n}(s,e)}function d(){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 s;let u,h,p,f;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(s=n,function(e){let t=null!==e&&s[e],n=null!==e&&s.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(u=e,h=0,0===e.length)?a:y(e[h])}function y(e){return function(n){let i,a,s,u,h;return(i=d(),a=c.previous,s=c.currentConstruct,u=c.events.length,h=Array.from(o),f={from:u,restore:function(){r=i,c.previous=a,c.currentConstruct=s,c.events.length=u,o=h,g()}},p=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?k(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,b,k)(n)}}function b(t){return e(p,f),i}function k(e){return(f.restore(),++h<u.length)?y(u[h]):a}}}function m(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&(0,nz.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((o=1,l="",c=!0,function(e,t,n){let r,i,a,u,h,d=[];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(aw.lastIndex=a,u=(r=aw.exec(e))&&void 0!==r.index?r.index:e.length,h=e.charCodeAt(u),!r){l=e.slice(a);break}if(10===h&&a===u&&s)d.push(-3),s=void 0;else switch(s&&(d.push(-5),s=void 0),a<u&&(d.push(e.slice(a,u)),o+=u-a),h){case 0:d.push(65533),o++;break;case 9:for(i=4*Math.ceil(o/4),d.push(-2);o++<i;)d.push(-1);break;case 10:d.push(-4),o=1;break;default:s=!0,o=1}a=u+1}return n&&(s&&d.push(-5),l&&d.push(l),d.push(null)),d})(n,i,!0))))}}function aD(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),s="";if(37===a&&(0,t6.lV)(e.charCodeAt(n+1))&&(0,t6.lV)(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(s=String.fromCharCode(a,t),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function aO(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 aP(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 s=i[i.length-1];return s&&"text"===s.type?s.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 aU(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 aH={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=aD(i.toLowerCase()),s=e.footnoteOrder.indexOf(i),o=e.footnoteCounts.get(i);void 0===o?(o=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=s+1,o+=1,e.footnoteCounts.set(i,o);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(o>1?"-"+o:""),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:aD(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:aD(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:aD(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:aD(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={},s=[];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 o=-1;for(;++o<r.length;){let e=r[o];(i||0!==o||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?s.push(e):s.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:a,children:s};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]),s=tC(t.children[t.children.length-1]);a&&s&&(r.position={start:a,end:s}),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,s=a?a.length:t.children.length,o=-1,l=[];for(;++o<s;){let n=t.children[o],r={},s=a?a[o]:void 0;s&&(r.align=s);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(aU(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(aU(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:a$,yaml:a$,definition:a$,footnoteDefinition:a$};function a$(){}let aj={}.hasOwnProperty,aG={};function az(e,t){e.position&&(t.position=tI(e))}function aV(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,_(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function aK(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 aW(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function aq(e,t){let n,r,i,s,o=(n=t||aG,r=new Map,i=new Map,s={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=s.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=aW(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=aW(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:aV,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...aH,...n.handlers},one:function(e,t){let n=e.type,r=s.handlers[n];if(aj.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=_(n);return r.children=s.all(e),r}return _(e)}return(s.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(aj.call(n,"hProperties")||aj.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)})(s,e,t)},options:n,patch:az,wrap:aK},(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)}}),s),l=o.one(e,void 0),c=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||aO,r=e.options.footnoteBackLabel||aP,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=e.all(i),s=String(i.identifier).toUpperCase(),c=aD(s.toLowerCase()),u=0,h=[],d=e.footnoteCounts.get(s);for(;void 0!==d&&++u<=d;){h.length>0&&h.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),h.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(...h)}else a.push(...h);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,f),o.push(f)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{..._(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(o),u=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return c&&((0,T.ok)("children"in u),u.children.push({type:"text",value:"\n"},c)),u}function aY(e,t){return e&&"run"in e?async function(n,r){let i=aq(n,{file:r,...t});await e.run(i,r)}:function(n,r){return aq(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 s=-1,o=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(i=a):(o=-1,i=s));return r===i?i=s: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,s=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?a<0?a=n:1!==s&&(s=1):a>-1&&(s=-1)}return a<0||r<0||0===s||1===s&&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,s=-1,o=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(s===l-1||1===o);else if(s!==l-1&&2===o){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("/"),s=l,o=0;continue}}else if(i.length>0){i="",a=0,s=l,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),a=l-s-1;s=l,o=0}else 46===n&&o>-1?o++:o=-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 a3(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let a6=["history","path","basename","stem","extname","dirname"];class a9{constructor(e){let t,n;t=e?a3(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<a6.length;){const e=a6[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)a6.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?aJ(this.path):void 0}set basename(e){a8(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){a7(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"),a7(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){a3(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!a3(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)),a8(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){a8(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 ik(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 a8(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function a7(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let se=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},st={}.hasOwnProperty;class sn extends se{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,...s){let o=e[++n],l=-1;if(a)return void r(a);for(;++l<t.length;)(null===s[l]||void 0===s[l])&&(s[l]=t[l]);t=s,o?(function(e,t){let n;return function(...t){let a,s=e.length>t.length;s&&t.push(r);try{a=e.apply(this,t)}catch(e){if(s&&n)throw e;return r(e)}s||(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)}})(o,i)(...s):r(null,...s)}(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 sn,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?(ss("data",this.frozen),this.namespace[e]=t,this):st.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ss("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=sc(e),n=this.parser||this.Parser;return si("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),si("process",this.parser||this.Parser),sa("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=sc(e),s=n.parse(a);function o(e,n){e||!n?i(e):r?r(n):((0,T.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(s,a,function(e,t,r){var i,a;if(e||!t||!r)return o(e);let s=n.stringify(t,r);"string"==typeof(i=s)||(a=i)&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a?r.value=s:r.result=s,o(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),si("processSync",this.parser||this.Parser),sa("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,aX(e),t=r}),sl("processSync","process",n),(0,T.ok)(t,"we either bailed on an error or have a tree"),t}run(e,t,n){so(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,T.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let s=sc(t);r.run(e,s,function(t,r,s){let o=r||e;t?a(t):i?i(o):((0,T.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,o,s))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){aX(e),n=t,r=!0}),sl("runSync","run",r),(0,T.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=sc(t),r=this.compiler||this.Compiler;return sa("stringify",r),so(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(ss("use",this.frozen),null==e);else if("function"==typeof e)s(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)s(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;s(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 s(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,s=n[i][1];aZ(s)&&aZ(r)&&(r=aQ(!0,s,r)),n[i]=[e,r,...a]}}}}let sr=new sn().freeze();function si(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function sa(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function ss(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 so(e){if(!aZ(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function sl(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function sc(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new a9(e)}function su(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sh=su(),sd={exec:()=>null};function sp(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(sm.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var sf=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),sm={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)}}>`)},sg=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,sy=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,sb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,sk=sp(sb).replace(/bull/g,sy).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(),sx=sp(sb).replace(/bull/g,sy).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(),sE=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,sv=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,s_=sp(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",sv).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sT=sp(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,sy).getRegex(),sA="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",sw=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,sS=sp("^ {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",sw).replace("tag",sA).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),sC=sp(sE).replace("hr",sg).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",sA).getRegex(),sN={blockquote:sp(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",sC).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:s_,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:sg,html:sS,lheading:sk,list:sT,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:sC,table:sd,text:/^[^\n]+/},sM=sp("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",sg).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",sA).getRegex(),sI={...sN,lheading:sx,table:sM,paragraph:sp(sE).replace("hr",sg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",sM).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",sA).getRegex()},sL={...sN,html:sp("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",sw).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:sd,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:sp(sE).replace("hr",sg).replace("heading",` *#{1,6} *[^
|
|
24
|
-
]`).replace("lheading",sk).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sR=/^( {2,}|\\)\n(?!\s*$)/,sD=/[\p{P}\p{S}]/u,sO=/[\s\p{P}\p{S}]/u,sP=/[^\s\p{P}\p{S}]/u,sF=sp(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,sO).getRegex(),sB=/(?!~)[\p{P}\p{S}]/u,sU=sp(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",sf?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),sH=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,s$=sp(sH,"u").replace(/punct/g,sD).getRegex(),sj=sp(sH,"u").replace(/punct/g,sB).getRegex(),sG="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",sz=sp(sG,"gu").replace(/notPunctSpace/g,sP).replace(/punctSpace/g,sO).replace(/punct/g,sD).getRegex(),sV=sp(sG,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,sB).getRegex(),sK=sp("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,sP).replace(/punctSpace/g,sO).replace(/punct/g,sD).getRegex(),sW=sp(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,sD).getRegex(),sq=sp("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,sP).replace(/punctSpace/g,sO).replace(/punct/g,sD).getRegex(),sY=sp(/\\(punct)/,"gu").replace(/punct/g,sD).getRegex(),sX=sp(/^<(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(),sQ=sp(sw).replace("(?:--\x3e|$)","--\x3e").getRegex(),sZ=sp("^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",sQ).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),sJ=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,s0=sp(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",sJ).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),s1=sp(/^!?\[(label)\]\[(ref)\]/).replace("label",sJ).replace("ref",sv).getRegex(),s2=sp(/^!?\[(ref)\](?:\[\])?/).replace("ref",sv).getRegex(),s5=sp("reflink|nolink(?!\\()","g").replace("reflink",s1).replace("nolink",s2).getRegex(),s3=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,s6={_backpedal:sd,anyPunctuation:sY,autolink:sX,blockSkip:sU,br:sR,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:sd,delLDelim:sd,delRDelim:sd,emStrongLDelim:s$,emStrongRDelimAst:sz,emStrongRDelimUnd:sK,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:s0,nolink:s2,punctuation:sF,reflink:s1,reflinkSearch:s5,tag:sZ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:sd},s9={...s6,link:sp(/^!?\[(label)\]\((.*?)\)/).replace("label",sJ).getRegex(),reflink:sp(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",sJ).getRegex()},s4={...s6,emStrongRDelimAst:sV,emStrongLDelim:sj,delLDelim:sW,delRDelim:sq,url:sp(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",s3).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:sp(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",s3).getRegex()},s8={...s4,br:sp(sR).replace("{2,}","*").getRegex(),text:sp(s4.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},s7={normal:sN,gfm:sI,pedantic:sL},oe={normal:s6,gfm:s4,breaks:s8,pedantic:s9},ot={"&":"&","<":"<",">":">",'"':""","'":"'"},on=e=>ot[e];function or(e,t){if(t){if(sm.escapeTest.test(e))return e.replace(sm.escapeReplace,on)}else if(sm.escapeTestNoEncode.test(e))return e.replace(sm.escapeReplaceNoEncode,on);return e}function oi(e){try{e=encodeURI(e).replace(sm.percentDecode,"%")}catch{return null}return e}function oa(e,t){let n=e.replace(sm.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(sm.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(sm.slashPipe,"|");return n}function os(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 oo(e,t,n,r,i){let a=t.href,s=t.title||null,o=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:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}var ol=class{options;rules;lexer;constructor(e){this.options=e||sh}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:os(e,`
|
|
25
|
-
`)}}}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(`
|
|
26
|
-
`).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(`
|
|
27
|
-
`)}(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=os(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:os(t[0],`
|
|
28
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=os(t[0],`
|
|
29
|
-
`).split(`
|
|
30
|
-
`),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))a.push(e[s]),t=!0;else if(t)break;else a.push(e[s]);e=e.slice(s);let o=a.join(`
|
|
31
|
-
`),l=o.replace(this.rules.other.blockquoteSetextReplace,`
|
|
32
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
33
|
-
${o}`:o,r=r?`${r}
|
|
34
|
-
${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+`
|
|
35
|
-
`+e.join(`
|
|
36
|
-
`),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+`
|
|
37
|
-
`+e.join(`
|
|
38
|
-
`),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(`
|
|
39
|
-
`);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),s=!1;for(;e;){let n=!1,r="",o="";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(`
|
|
40
|
-
`,1)[0],t[1].length),c=e.split(`
|
|
41
|
-
`,1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,o=l.trimStart()):u?h=t[1].length+1:(h=(h=l.search(this.rules.other.nonSpaceChar))>4?1:h,o=l.slice(h),h+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+`
|
|
42
|
-
`,e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),a=this.rules.other.headingBeginRegex(h),s=this.rules.other.htmlBeginRegex(h),d=this.rules.other.blockquoteBeginRegex(h);for(;e;){let p=e.split(`
|
|
43
|
-
`,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)||s.test(c)||d.test(c)||t.test(c)||n.test(c))break;if(f.search(this.rules.other.nonSpaceChar)>=h||!c.trim())o+=`
|
|
44
|
-
`+f.slice(h);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;o+=`
|
|
45
|
-
`+c}u=!c.trim(),r+=p+`
|
|
46
|
-
`,e=e.substring(p.length+1),l=f.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0)),i.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(o),loose:!1,text:o,tokens:[]}),i.raw+=r}let o=i.items.at(-1);if(!o)return;for(let e of(o.raw=o.raw.trimEnd(),o.text=o.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=oa(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
47
|
-
`):[],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(oa(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)===`
|
|
48
|
-
`?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=os(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)),oo(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 oo(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,s=n,o=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]){s+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){o+=a;continue}if((s-=a)>0)continue;a=Math.min(a,a+s+o);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,s=n,o=this.rules.inline.delRDelim;for(o.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=o.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]){s+=a;continue}if((s-=a)>0)continue;a=Math.min(a,a+s);let t=[...r[0]][0].length,o=e.slice(0,n+r.index+t+a),l=o.slice(n,-n);return{type:"del",raw:o,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}}}},oc=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||sh,this.options.tokenizer=this.options.tokenizer||new ol,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:sm,block:s7.normal,inline:oe.normal};this.options.pedantic?(t.block=s7.pedantic,t.inline=oe.pedantic):this.options.gfm&&(t.block=s7.gfm,this.options.breaks?t.inline=oe.breaks:t.inline=oe.gfm),this.tokenizer.rules=t}static get rules(){return{block:s7,inline:oe}}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(sm.carriageReturn,`
|
|
49
|
-
`),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(sm.tabCharGlobal," ").replace(sm.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+=`
|
|
50
|
-
`: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(`
|
|
51
|
-
`)?"":`
|
|
52
|
-
`)+r.raw,n.text+=`
|
|
53
|
-
`+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(`
|
|
54
|
-
`)?"":`
|
|
55
|
-
`)+r.raw,n.text+=`
|
|
56
|
-
`+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(`
|
|
57
|
-
`)?"":`
|
|
58
|
-
`)+r.raw,a.text+=`
|
|
59
|
-
`+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(`
|
|
60
|
-
`)?"":`
|
|
61
|
-
`)+r.raw,n.text+=`
|
|
62
|
-
`+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,s="";for(;e;){let n;if(a||(s=""),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,s))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e,r,s))||(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)&&(s=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}},ou=class{options;parser;constructor(e){this.options=e||sh}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(sm.notSpaceStart)?.[0],i=e.replace(sm.endingNewline,"")+`
|
|
63
|
-
`;return r?'<pre><code class="language-'+or(r)+'">'+(n?i:or(i,!0))+`</code></pre>
|
|
64
|
-
`:"<pre><code>"+(n?i:or(i,!0))+`</code></pre>
|
|
65
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
66
|
-
${this.parser.parse(e)}</blockquote>
|
|
67
|
-
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
68
|
-
`}hr(e){return`<hr>
|
|
69
|
-
`}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+'"':"")+`>
|
|
70
|
-
`+r+"</"+i+`>
|
|
71
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
72
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
73
|
-
`}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>
|
|
74
|
-
<thead>
|
|
75
|
-
`+t+`</thead>
|
|
76
|
-
`+r+`</table>
|
|
77
|
-
`}tablerow({text:e}){return`<tr>
|
|
78
|
-
${e}</tr>
|
|
79
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
80
|
-
`}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>${or(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=oi(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+or(t)+'"'),a+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=oi(e);if(null===i)return or(n);e=i;let a=`<img src="${e}" alt="${or(n)}"`;return t&&(a+=` title="${or(t)}"`),a+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:or(e.text)}},oh=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}},od=class e{options;renderer;textRenderer;constructor(e){this.options=e||sh,this.options.renderer=this.options.renderer||new ou,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new oh}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}},op=class{options;block;constructor(e){this.options=e||sh}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?oc.lex:oc.lexInline}provideParser(e=this.block){return e?od.parse:od.parseInline}},of=new class{defaults=su();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=od;Renderer=ou;TextRenderer=oh;Lexer=oc;Tokenizer=ol;Hooks=op;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 ou(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 ol(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 op;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];op.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&op.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 oc.lex(e,t??this.defaults)}parser(e,t){return od.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?oc.lex:oc.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let s=await (i.hooks?await i.hooks.provideParser(e):e?od.parse:od.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?oc.lex:oc.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?od.parse:od.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+=`
|
|
81
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+or(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function om(e,t){return of.parse(e,t)}om.options=om.setOptions=function(e){return of.setOptions(e),om.defaults=of.defaults,sh=om.defaults,om},om.getDefaults=su,om.defaults=sh,om.use=function(...e){return of.use(...e),om.defaults=of.defaults,sh=om.defaults,om},om.walkTokens=function(e,t){return of.walkTokens(e,t)},om.parseInline=of.parseInline,om.Parser=od,om.parser=od.parse,om.Renderer=ou,om.TextRenderer=oh,om.Lexer=oc,om.lexer=oc.lex,om.Tokenizer=ol,om.Hooks=op,om.parse=om,om.options,om.setOptions,om.use,om.walkTokens,om.parseInline,od.parse,oc.lex;var og=/\s/,oy=/^\s+$/,ob=new Set(["code","pre","svg","math","annotation"]),ok=0;function ox(e){var t,n,r,i,a;let o={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=ok++,u=()=>e=>{let t={count:0,newIndex:0};(0,s.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&&ob.has(e.tagName)))return s._Z;let o=a.children.indexOf(e);if(-1===o)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)og.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=og.test(i);e!==r&&n&&(t.push(n),n=""),n+=i,r=e}return n&&t.push(n),t})(l),u=r.prevContentLength,h=c.map(e=>{var t,r,a;let s,o=i.count;if(i.count+=e.length,oy.test(e))return{type:"text",value:e};let l=u>0&&o<u,c=l?0:i.newIndex++*n.stagger;return t=n.animation,r=n.duration,a=n.easing,s=`--sd-animation:sd-${t};--sd-duration:${l?0:r}ms;--sd-easing:${a}`,c&&(s+=`;--sd-delay:${c}ms`),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:s},children:[{type:"text",value:e}]}});return a.children.splice(o,1,...h),o+h.length})(e,n,o,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}}}ox();var oE=(0,i.createContext)(!1),ov=(...e)=>(0,ii.QP)((0,ir.$)(e)),o_=(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),s=document.createElement("a");s.href=a,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)},oT=(0,i.createContext)(ov),oA=()=>(0,i.useContext)(oT),ow=ov("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"),oS=(0,i.memo)(({children:e,result:t,language:n,className:r,startLine:a,lineNumbers:s=!0,...o})=>{let l=oA(),c=(0,i.useMemo)(()=>l(ow),[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",...o,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:s?l("[counter-increment:line_0] [counter-reset:line]"):void 0,style:s&&a&&a>1?{counterReset:`line ${a-1}`}:void 0,children:t.tokens.map((e,t)=>(0,ia.jsx)("span",{className:s?c:void 0,children:0===e.length||1===e.length&&""===e[0].content?`
|
|
82
|
-
`: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),oC=({className:e,language:t,style:n,isIncomplete:r,...i})=>{let a=oA();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})},oN=(0,i.createContext)({code:""}),oM=()=>(0,i.useContext)(oN),oI=({language:e})=>{let t=oA();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})})},oL=(0,i.lazy)(()=>n.e(27740).then(n.bind(n,27740)).then(e=>({default:e.HighlightedCodeBlockBody}))),oR=({code:e,language:t,className:n,children:r,isIncomplete:a=!1,startLine:s,lineNumbers:o,...l})=>{let c=oA(),u=(0,i.useMemo)(()=>(e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
83
|
-
`;)t--;return e.slice(0,t)})(e),[e]),h=(0,i.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:u.split(`
|
|
84
|
-
`).map(e=>[{content:e,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[u]);return(0,ia.jsx)(oN.Provider,{value:{code:e},children:(0,ia.jsxs)(oC,{isIncomplete:a,language:t,children:[(0,ia.jsx)(oI,{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)(oS,{className:n,language:t,lineNumbers:o,result:h,startLine:s,...l}),children:(0,ia.jsx)(oL,{className:n,code:u,language:t,lineNumbers:o,raw:h,startLine:s,...l})})]})})},oD={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"})})},oO=(0,i.createContext)(oD),oP=({icons:e,children:t})=>{let n=(0,i.useRef)(e),r=(0,i.useRef)(e?{...oD,...e}:oD);((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?{...oD,...e}:oD);let a=r.current;return(0,ia.jsx)(oO.Provider,{value:a,children:t})},oF=()=>(0,i.useContext)(oO),oB={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"},oU=(0,i.createContext)(oB),oH=()=>(0,i.useContext)(oU),o$=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:a,code:s,...o})=>{let l=oA(),[c,u]=(0,i.useState)(!1),h=(0,i.useRef)(0),{code:d}=oM(),{isAnimating:p}=(0,i.useContext)(cK),f=oH(),m=null!=s?s:d,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(),h.current=window.setTimeout(()=>u(!1),n))}catch(e){null==t||t(e)}};(0,i.useEffect)(()=>()=>{window.clearTimeout(h.current)},[]);let y=oF(),b=c?y.CheckIcon:y.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",...o,children:null!=r?r:(0,ia.jsx)(b,{size:14})})},oj={"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"},oG=({onDownload:e,onError:t,language:n,children:r,className:a,code:s,...o})=>{let l=oA(),{code:c}=oM(),{isAnimating:u}=(0,i.useContext)(cK),h=oH(),d=oF(),p=null!=s?s:c,f=`file.${n&&n in oj?oj[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{o_(f,p,"text/plain"),null==e||e()}catch(e){null==t||t(e)}},title:h.downloadFile,type:"button",...o,children:null!=r?r:(0,ia.jsx)(d.DownloadIcon,{size:14})})},oz=()=>{let{Loader2Icon:e}=oF(),t=oA();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")})})]})},oV=/\.[^/.]+$/,oK=0,oW=()=>{1===(oK+=1)&&(document.body.style.overflow="hidden")},oq=()=>{0===(oK=Math.max(0,oK-1))&&(document.body.style.overflow="")},oY=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let{CheckIcon:a,CopyIcon:s,ExternalLinkIcon:o,XIcon:l}=oF(),c=oA(),[u,h]=(0,i.useState)(!1),d=oH(),p=(0,i.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),h(!0),setTimeout(()=>h(!1),2e3)}catch(e){}},[e]),f=(0,i.useCallback)(()=>{r(),n()},[r,n]);return(0,i.useEffect)(()=>{if(t){oW();let e=e=>{"Escape"===e.key&&n()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),oq()}}},[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:d.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)(o,{size:20}),(0,ia.jsx)("span",{children:d.openExternalLink})]}),(0,ia.jsx)("p",{className:c("text-muted-foreground text-sm"),children:d.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:d.copied})]}):(0,ia.jsxs)(ia.Fragment,{children:[(0,ia.jsx)(s,{size:14}),(0,ia.jsx)("span",{children:d.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)(o,{size:14}),(0,ia.jsx)("span",{children:d.openLink})]})]})]})}):null},oX=(0,i.createContext)(null),oQ=()=>(0,i.useContext)(oX),oZ=()=>{var e;let t=oQ();return null!=(e=null==t?void 0:t.code)?e:null},oJ=()=>{var e;let t=oQ();return null!=(e=null==t?void 0:t.mermaid)?e:null},o0=({chart:e,children:t,className:n,onDownload:r,config:a,onError:s})=>{let o=oA(),[l,c]=(0,i.useState)(!1),u=(0,i.useRef)(null),{isAnimating:h}=(0,i.useContext)(cK),d=oF(),p=oJ(),f=oH(),m=async t=>{try{if("mmd"===t){o_("diagram.mmd",e,"text/plain"),c(!1),null==r||r(t);return}if(!p){null==s||s(Error("Mermaid plugin not available"));return}let i=p.getMermaid(a),o=e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),l=`mermaid-${Math.abs(o)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:u}=await i.render(l,e);if(!u){null==s||s(Error("SVG not found. Please wait for the diagram to render."));return}if("svg"===t){o_("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 s=n.getContext("2d");s?(s.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}));o_("diagram.png",e,"image/png"),null==r||r(t),c(!1);return}}catch(e){null==s||s(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:o("relative"),ref:u,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",n),disabled:h,onClick:()=>c(!l),title:f.downloadDiagram,type:"button",children:null!=t?t:(0,ia.jsx)(d.DownloadIcon,{size:14})}),l?(0,ia.jsxs)("div",{className:o("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:o("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:o("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:o("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]})},o1=({chart:e,config:t,onFullscreen:n,onExit:r,className:a,...s})=>{let{Maximize2Icon:o,XIcon:l}=oF(),c=oA(),[u,h]=(0,i.useState)(!1),{isAnimating:d,controls:p}=(0,i.useContext)(cK),f=oH(),m=(()=>{if("boolean"==typeof p)return p;let e=p.mermaid;return!1!==e&&(!0===e||void 0===e||!1!==e.panZoom)})(),g=()=>{h(!u)};return(0,i.useEffect)(()=>{if(u){oW();let e=e=>{"Escape"===e.key&&h(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),oq()}}},[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:d,onClick:g,title:f.viewFullscreen,type:"button",...s,children:(0,ia.jsx)(o,{size:14})}),u?(0,is.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]})},o2=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}},o5=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===`
|
|
85
|
-
`)&&(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(`
|
|
86
|
-
`)},o3=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1;for(let n of e)if(" "===n||n===`
|
|
87
|
-
`||"\r"===n){t=!0;break}if(!t)return e;let n=[];for(let t of e)" "===t?n.push("\\t"):t===`
|
|
88
|
-
`?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(`
|
|
89
|
-
`)},o6=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("")},o9=e=>{let{headers:t,rows:n}=e;if(0===t.length)return"";let r=Array(n.length+2),i=0,a=t.map(e=>o6(e));r[i]=`| ${a.join(" | ")} |`,i+=1;let s=Array(t.length);for(let e=0;e<t.length;e+=1)s[e]="---";for(let e of(r[i]=`| ${s.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?o6(e[r]):"";r[i]=`| ${n.join(" | ")} |`,i+=1}else{let t=e.map(e=>o6(e));r[i]=`| ${t.join(" | ")} |`,i+=1}return r.join(`
|
|
90
|
-
`)},o4=({children:e,className:t,onCopy:n,onError:r,timeout:a=2e3})=>{let s=oA(),[o,l]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),h=(0,i.useRef)(null),d=(0,i.useRef)(0),{isAnimating:p}=(0,i.useContext)(cK),f=oH(),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=h.current)?void 0:i.closest('[data-streamdown="table-wrapper"]'),s=null==t?void 0:t.querySelector("table");if(!s){null==r||r(Error("Table not found"));return}let o=o2(s),c=(({csv:o5,tsv:o3,md:o9})[e]||o9)(o),p=new ClipboardItem({"text/plain":new Blob([c],{type:"text/plain"}),"text/html":new Blob([s.outerHTML],{type:"text/html"})});await navigator.clipboard.write([p]),u(!0),l(!1),null==n||n(e),d.current=window.setTimeout(()=>u(!1),a)}catch(e){null==r||r(e)}};(0,i.useEffect)(()=>{let e=e=>{let t=e.composedPath();h.current&&!t.includes(h.current)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),window.clearTimeout(d.current)}},[]);let g=oF(),y=c?g.CheckIcon:g.CopyIcon;return(0,ia.jsxs)("div",{className:s("relative"),ref:h,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:p,onClick:()=>l(!o),title:f.copyTable,type:"button",children:null!=e?e:(0,ia.jsx)(y,{height:14,width:14})}),o?(0,ia.jsxs)("div",{className:s("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:s("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:s("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:s("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]})},o8=({children:e,className:t,onDownload:n,onError:r})=>{let a=oA(),[s,o]=(0,i.useState)(!1),l=(0,i.useRef)(null),{isAnimating:c}=(0,i.useContext)(cK),u=oH(),h=oF(),d=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 s=o2(a),c="csv"===e?o5(s):o9(s);o_(`table.${"csv"===e?"csv":"md"}`,c,"csv"===e?"text/csv":"text/markdown"),o(!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)&&o(!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:()=>o(!s),title:u.downloadTable,type:"button",children:null!=e?e:(0,ia.jsx)(h.DownloadIcon,{size:14})}),s?(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:()=>d("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:()=>d("markdown"),title:u.downloadTableAsMarkdown,type:"button",children:u.tableFormatMarkdown})]}):null]})},o7=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:a,XIcon:s}=oF(),o=oA(),[l,c]=(0,i.useState)(!1),{isAnimating:u}=(0,i.useContext)(cK),h=oH(),d=()=>{c(!1)};return(0,i.useEffect)(()=>{if(l){oW();let e=e=>{"Escape"===e.key&&c(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),oq()}}},[l]),(0,ia.jsxs)(ia.Fragment,{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:u,onClick:()=>{c(!0)},title:h.viewFullscreen,type:"button",children:(0,ia.jsx)(a,{size:14})}),l?(0,is.createPortal)((0,ia.jsx)("div",{"aria-label":h.viewFullscreen,"aria-modal":"true",className:o("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:d,onKeyDown:e=>{"Escape"===e.key&&d()},role:"dialog",children:(0,ia.jsxs)("div",{className:o("flex h-full flex-col"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,ia.jsxs)("div",{className:o("flex items-center justify-end gap-1 p-4"),children:[n?(0,ia.jsx)(o4,{}):null,r?(0,ia.jsx)(o8,{}):null,(0,ia.jsx)("button",{className:o("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:d,title:h.exitFullscreen,type:"button",children:(0,ia.jsx)(s,{size:20})})]}),(0,ia.jsx)("div",{className:o("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:(0,ia.jsx)("table",{className:o("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,...s})=>{let o=oA(),l=n&&r,c=n&&i,u=n&&a,h=l||c||u;return(0,ia.jsxs)("div",{className:o("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[h?(0,ia.jsxs)("div",{className:o("flex items-center justify-end gap-1"),children:[l?(0,ia.jsx)(o4,{}):null,c?(0,ia.jsx)(o8,{}):null,u?(0,ia.jsx)(o7,{showCopy:l,showDownload:c,children:e}):null]}):null,(0,ia.jsx)("div",{className:o("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),children:(0,ia.jsx)("table",{className:o("w-full divide-y divide-border",t),"data-streamdown":"table",...s,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 ls(e,t){return e.className===t.className&&la(e.node,t.node)}var lo=(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])},lh=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();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)=>ls(e,t));lh.displayName="MarkdownOl";var ld=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();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));ld.displayName="MarkdownLi";var lp=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();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)=>ls(e,t));lp.displayName="MarkdownUl";var lf=(0,i.memo)(({className:e,node:t,...n})=>{let r=oA();return(0,ia.jsx)("hr",{className:r("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>ls(e,t));lf.displayName="MarkdownHr";var lm=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();return(0,ia.jsx)("span",{className:i("font-semibold",t),"data-streamdown":"strong",...r,children:e})},(e,t)=>ls(e,t));lm.displayName="MarkdownStrong";var lg=(0,i.memo)(({children:e,className:t,href:n,node:r,...a})=>{let s=oA(),{linkSafety:o}=(0,i.useContext)(cK),[l,c]=(0,i.useState)(!1),u="streamdown:incomplete-link"===n,h=(0,i.useCallback)(async e=>{if(!(!(null!=o&&o.enabled&&n)||u)){if(e.preventDefault(),o.onLinkCheck&&await o.onLinkCheck(n))return void window.open(n,"_blank","noreferrer");c(!0)}},[o,n,u]),d=(0,i.useCallback)(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),p={url:null!=n?n:"",isOpen:l,onClose:(0,i.useCallback)(()=>{c(!1)},[]),onConfirm:d};return null!=o&&o.enabled&&n?(0,ia.jsxs)(ia.Fragment,{children:[(0,ia.jsx)("button",{className:s("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",onClick:h,type:"button",children:e}),o.renderModal?o.renderModal(p):(0,ia.jsx)(oY,{...p})]}):(0,ia.jsx)("a",{className:s("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)=>ls(e,t)&&e.href===t.href);lg.displayName="MarkdownA";var ly=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();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)=>ls(e,t));ly.displayName="MarkdownH1";var lb=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();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)=>ls(e,t));lb.displayName="MarkdownH2";var lk=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();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)=>ls(e,t));lk.displayName="MarkdownH3";var lx=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();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)=>ls(e,t));lx.displayName="MarkdownH4";var lE=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();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)=>ls(e,t));lE.displayName="MarkdownH5";var lv=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();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)=>ls(e,t));lv.displayName="MarkdownH6";var l_=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let{controls:a}=(0,i.useContext)(cK),s=lo(a,"table"),o=ll(a,"copy"),l=ll(a,"download"),c=ll(a,"fullscreen");return(0,ia.jsx)(le,{className:t,showControls:s,showCopy:o,showDownload:l,showFullscreen:c,...r,children:e})},(e,t)=>ls(e,t));l_.displayName="MarkdownTable";var lT=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();return(0,ia.jsx)("thead",{className:i("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e})},(e,t)=>ls(e,t));lT.displayName="MarkdownThead";var lA=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();return(0,ia.jsx)("tbody",{className:i("divide-y divide-border",t),"data-streamdown":"table-body",...r,children:e})},(e,t)=>ls(e,t));lA.displayName="MarkdownTbody";var lw=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();return(0,ia.jsx)("tr",{className:i("border-border",t),"data-streamdown":"table-row",...r,children:e})},(e,t)=>ls(e,t));lw.displayName="MarkdownTr";var lS=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();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)=>ls(e,t));lS.displayName="MarkdownTh";var lC=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();return(0,ia.jsx)("td",{className:i("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e})},(e,t)=>ls(e,t));lC.displayName="MarkdownTd";var lN=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();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)=>ls(e,t));lN.displayName="MarkdownBlockquote";var lM=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();return(0,ia.jsx)("sup",{className:i("text-sm",t),"data-streamdown":"superscript",...r,children:e})},(e,t)=>ls(e,t));lM.displayName="MarkdownSup";var lI=(0,i.memo)(({children:e,className:t,node:n,...r})=>{let i=oA();return(0,ia.jsx)("sub",{className:i("text-sm",t),"data-streamdown":"subscript",...r,children:e})},(e,t)=>ls(e,t));lI.displayName="MarkdownSub";var lL=(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===lh){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,s=!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)s=!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 s&&!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)=>ls(e,t));lL.displayName="MarkdownSection";var lR=(0,i.memo)(({node:e,className:t,children:n,...r})=>{var a,s,o;let l,c=oA(),u=!("data-block"in r),{mermaid:h,controls:d,lineNumbers:p}=(0,i.useContext)(cK),f=oJ(),m=(0,i.useContext)(oE),g=null==t?void 0:t.match(li),y=null!=(a=null==g?void 0:g.at(1))?a:"",b=null!=(l=oQ())&&l.renderers&&y&&null!=(o=l.renderers.find(e=>Array.isArray(e.language)?e.language.includes(y):e.language===y))?o: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 k=null==(s=null==e?void 0:e.properties)?void 0:s.metastring,x=null==k?void 0:k.match(lt),E=x?Number.parseInt(x[1],10):void 0,v=!(k&&ln.test(k))&&!1!==p,_="";if((0,i.isValidElement)(n)&&n.props&&"object"==typeof n.props&&"children"in n.props&&"string"==typeof n.props.children?_=n.props.children:"string"==typeof n&&(_=n),b){let e=b.component;return(0,ia.jsx)(i.Suspense,{fallback:(0,ia.jsx)(oz,{}),children:(0,ia.jsx)(e,{code:_,isIncomplete:m,language:y,meta:k})})}if("mermaid"===y&&f){let e=lo(d,"mermaid"),n=lu(d,"download"),r=lu(d,"copy"),a=lu(d,"fullscreen"),s=lu(d,"panZoom");return(0,ia.jsx)(i.Suspense,{fallback:(0,ia.jsx)(oz,{}),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)(o0,{chart:_,config:null==h?void 0:h.config}):null,r?(0,ia.jsx)(o$,{code:_}):null,a?(0,ia.jsx)(o1,{chart:_,config:null==h?void 0:h.config}):null]})}):null,(0,ia.jsx)("div",{className:c("rounded-md border border-border bg-background"),children:(0,ia.jsx)(lr,{chart:_,config:null==h?void 0:h.config,showControls:s})})]})})}let T=lo(d,"code"),A=lc(d,"download"),w=lc(d,"copy");return(0,ia.jsx)(oR,{className:t,code:_,isIncomplete:m,language:y,lineNumbers:v,startLine:void 0!==E&&E>=1?E:void 0,children:T?(0,ia.jsxs)(ia.Fragment,{children:[A?(0,ia.jsx)(oG,{code:_,language:y}):null,w?(0,ia.jsx)(o$,{}):null]}):null})},(e,t)=>e.className===t.className&&la(e.node,t.node));lR.displayName="MarkdownCode";var lD=(0,i.memo)(({node:e,className:t,src:n,alt:r,onLoad:a,onError:s,...o})=>{let{DownloadIcon:l}=oF(),c=oA(),u=(0,i.useRef)(null),[h,d]=(0,i.useState)(!1),[p,f]=(0,i.useState)(!1),m=oH(),g=null!=o.width||null!=o.height,y=(h||g)&&!p,b=p&&!g;(0,i.useEffect)(()=>{let e=u.current;if(null!=e&&e.complete){let t=e.naturalWidth>0;d(t),f(!t)}},[]);let k=(0,i.useCallback)(e=>{d(!0),f(!1),null==a||a(e)},[a]),x=(0,i.useCallback)(e=>{d(!1),f(!0),null==s||s(e)},[s]),E=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,s="";if(a)s=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"),s=`${(r||t||"image").replace(oV,"")}.${i}`}o_(s,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",b&&"hidden",t),"data-streamdown":"image",onError:x,onLoad:k,ref:u,src:n,...o}),b&&(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")}),y&&(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:E,title:m.downloadImage,type:"button",children:(0,ia.jsx)(l,{size:14})})]}):null},(e,t)=>e.className===t.className&&la(e.node,t.node));lD.displayName="MarkdownImg";var lO=(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)=>ls(e,t));lO.displayName="MarkdownParagraph";var lP={ol:lh,li:ld,ul:lp,hr:lf,strong:lm,a:lg,h1:ly,h2:lb,h3:lk,h4:lx,h5:lE,h6:lv,table:l_,thead:lT,tbody:lA,tr:lw,th:lS,td:lC,blockquote:lN,code:lR,img:lD,pre:({children:e})=>(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{"data-block":"true"}):e,sup:lM,sub:lI,p:lO,section:lL},lF=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,lB=/\p{L}/u;function lU(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 lH,l$,lj,lG,lz,lV,lK,lW,lq,lY,lX,lQ,lZ,lJ,l0,l1,l2,l5,l3,l6,l9,l4,l8,l7,ce,ct,cn,cr,ci,ca,cs,co,cl,cc,cu=/^[ \t]{0,3}(`{3,}|~{3,})/,ch=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,cd=e=>{let t=e.split(`
|
|
91
|
-
`),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,cy=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},s=a(n),o=a(r),l=i?JSON.stringify(i):"",c=`${o}::${s}::${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()}},cb=e=>{let t=ck(e),n=e.children||"";return cv(t.runSync(t.parse(n),n),e)},ck=e=>{let t=cy.get(e);if(t)return t;let n=cx(e);return cy.set(e,n),n},cx=e=>{let t=e.rehypePlugins||cf,n=e.remarkPlugins||cf,r=t.some(e=>Array.isArray(e)?e[0]===tW:e===tW)?n:[...n,cp],i=e.remarkRehypeOptions?{...cm,...e.remarkRehypeOptions}:cm;return sr().use(aR).use(r).use(aY,i).use(t)},cE=e=>e,cv=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:i,skipHtml:s,unwrapDisallowed:o,urlTransform:l}=t;if(n||r||i||s||l){let t=l||cE;(0,a.YR)(e,(e,a,l)=>{var c;let u;return"raw"===e.type&&l&&"number"==typeof a?(c=e.value,s?l.children.splice(a,1):l.children[a]={type:"text",value:c},a):"element"===e.type&&(((e,t)=>{var n;for(let r in iR)if(Object.hasOwn(iR,r)&&Object.hasOwn(e.properties,r)){let i=e.properties[r],a=iR[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)?(o&&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 s;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=o,r=t.jsxDEV,s=function(e,t,i,a){let s=Array.isArray(i.children),o=tN(e);return r(t,i,a,s,{columnNumber:o?o.column-1:void 0,fileName:n,lineNumber:o?o.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,s=function(e,t,n,r){let s=Array.isArray(n.children)?a:i;return r?s(t,n,r):s(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?w.JW:w.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=iw(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})},c_=/\[\^[\w-]{1,200}\](?!:)/,cT=/\[\^[\w-]{1,200}\]:/,cA=/<(\w+)[\s>]/,cw=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),cS=new Map,cC=new Map,cN=(e,t)=>{if(cw.has(t.toLowerCase()))return 0;let n=e.match((e=>{let t=e.toLowerCase(),n=cS.get(t);if(n)return n;let r=RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return cS.set(t,r),r})(t));if(!n)return 0;let r=0;for(let e of n)e.trimEnd().endsWith("/>")||(r+=1);return r},cM=(e,t)=>{let n=e.match((e=>{let t=e.toLowerCase(),n=cC.get(t);if(n)return n;let r=RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return cC.set(t,r),r})(t));return n?n.length:0},cI=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},cL=e=>{let t=c_.test(e),n=cT.test(e);if(t||n)return[e];let r=oc.lex(e,{gfm:!0}),i=[],a=[],s=!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),s=cM(t,e);for(let t=0;t<r;t+=1)a.push(e);for(let t=0;t<s;t+=1)a.length>0&&a.at(-1)===e&&a.pop();continue}if("html"===e.type&&e.block){let e=t.match(cA);if(e){let n=e[1];cN(t,n)>cM(t,n)&&a.push(n)}}if(n>0&&!s){let e=i[n-1];if(cI(e)%2==1){i[n-1]=e+t;continue}}i.push(t),"space"!==e.type&&(s="code"===e.type)}return i},cR=/([\\`*_~[\]|])/g,cD=e=>e.replace(cR,"\\$1"),cO=e=>"text"===e.type?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(cO).join(""):"",cP=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=cO(e);e.children=t?[{type:"text",value:t}]:[]}})},cF=/^[ \t]*<[\w!/?-]/,cB=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,cU={...tY,protocols:{...tY.protocols,href:[...null!=(co=null==(cs=tY.protocols)?void 0:cs.href)?co:[],"tel"]},attributes:{...tY.attributes,code:[...null!=(cc=null==(cl=tY.attributes)?void 0:cl.code)?cc:[],"metastring"]}},cH={raw:tW,sanitize:[t5,cU],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:h="text-gray-500",linkBlockPolicy:d=o,imageBlockPolicy:m=o}){let g=t.length&&!t.every(e=>"*"===e),y=n.length&&!n.every(e=>"*"===e);if(!e&&(g||y))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return o=>{var g,y,b,k,x,E,v,_,T;let A,w=(g=e,y=t,b=n,k=r,x=i,E=u,v=h,_=d,T=m,A=(e,t,n)=>{if("element"!==e.type||e[f])return s.IN;if("a"===e.tagName){let r=p(e.properties.href,y,g,!1,!1,x);if(null!==r)return e.properties.href=r,e.properties.target="_blank",e.properties.rel="noopener noreferrer",s.IN;if(e[f]=!0,(0,a.YR)(e,A),n&&"number"==typeof t){let r=_===c?{type:"remove"}:_===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:v},children:[...e.children,{type:"text",value:" [blocked]"}]}};if("remove"===r.type)return n.children.splice(t,1),[s._Z,t];n.children[t]=r.element}return s._Z}if("img"===e.tagName){let r=p(e.properties.src,b,g,k,!0,x);if(null===r){if(e[f]=!0,(0,a.YR)(e,A),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,T,E);if("remove"===r.type)return n.children.splice(t,1),[s._Z,t];n.children[t]=r.element}return s._Z}e.properties.src=r}return s.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)})(o),(0,a.YR)(o,w)}},{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},c$=Object.values(cH),cj=Object.values({gfm:[function(e){let t,n,r,i=e||rg,a=this.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),l=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(nK([{text:n1},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ri,continuation:{tokenize:ra},exit:rs}},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,s=0;return function(o){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function a(o){let l=nS(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);let c=e.exit("strikethroughSequenceTemporary"),u=nS(o);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(o)}(o))}},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)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],o=t.parser.constructs.insideSpan.null;o&&(0,nz.m)(s,s.length,0,(0,ro.W)(o,e.slice(r+1,n),t)),(0,nz.m)(s,s.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,nz.m)(e,r-1,n-r+3,s),n=r+s.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}}])),o.push([{transforms:[na],enter:{literalAutolink:t7,literalAutolinkEmail:ne,literalAutolinkHttp:ne,literalAutolinkWww:ne},exit:{literalAutolink:ni,literalAutolinkEmail:nr,literalAutolinkHttp:nt,literalAutolinkWww:nn}},{enter:{gfmFootnoteCallString:nu,gfmFootnoteCall:nh,gfmFootnoteDefinitionLabelString:nd,gfmFootnoteDefinition:np},exit:{gfmFootnoteCallString:nf,gfmFootnoteCall:nm,gfmFootnoteDefinitionLabelString:ng,gfmFootnoteDefinition:ny}},{canContainEols:["delete"],enter:{strikethrough:nv},exit:{strikethrough:n_}},{enter:{table:nD,tableData:nB,tableHeader:nB,tableRow:nP},exit:{codeText:nU,table:nO,tableData:nF,tableHeader:nF,tableRow:nF}},{exit:{taskListCheckValueChecked:n$,taskListCheckValueUnchecked:n$,paragraph:nj}}]),l.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:t4,notInConstruct:t8},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:t4,notInConstruct:t8},{character:":",before:"[ps]",after:"\\/",inConstruct:t4,notInConstruct:t8}]},(r=!1,i&&i.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,i){let a=n.createTracker(i),s=a.move("[^"),o=n.enter("footnoteDefinition"),l=n.enter("label");return s+=a.move(n.safe(n.associationId(e),{before:s,after:"]"})),l(),s+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),s+=a.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,a.current()),r?nx:nk))),o(),s},footnoteReference:nb},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:nE}],handlers:{delete:nT}},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=nL(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return o(function(e,t,n){let r=e.children,i=-1,a=[],s=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return s(),a}(e,n,r),e.align)},tableCell:s,tableRow:function(e,t,n,r){let i=o([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function s(e,t,n,r){let i=n.enter("tableCell"),s=n.enter("phrasing"),o=n.containerPhrasing(e,{...r,before:a,after:a});return s(),i(),o}function o(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||nA,a=[],s=[],o=[],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 h;let s=null==(h=e[u][a])?"":String(h);if(!1!==n.alignDelimiters){let e=i(s);r[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(s)}s[u]=t,o[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)a[d]=nw(r[d]);else{let e=nw(r);for(;++d<c;)a[d]=e}d=-1;let p=[],f=[];for(;++d<c;){let e=a[d],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length),s=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[d]&&(l[d]=i),f[d]=i),p[d]=s}s.splice(1,0,p),o.splice(1,0,f),u=-1;let m=[];for(;++u<s.length;){let e=s[u],t=o[u];d=-1;let r=[];for(;++d<c;){let i=e[d]||"",s="",o="";if(!1!==n.alignDelimiters){let e=l[d]-(t[d]||0),n=a[d];114===n?s=" ".repeat(e):99===n?e%2?(s=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):o=s=" ".repeat(e/2):o=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||d)&&r.push(" "),!1!==n.alignDelimiters&&r.push(s),r.push(i),!1!==n.alignDelimiters&&r.push(o),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||d!==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=[],o=t.enter("tableRow");for(;++i<r.length;)a[i]=s(r[i],e,t,n);return o(),a}}(i),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:nG}}]})},{}],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})})}}),cG={block:" ▋",circle:" ●"},cz=["github-light","github-dark"],cV={enabled:!0},cK=(0,i.createContext)({shikiTheme:cz,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:cV}),cW=(0,i.memo)(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,dir:a,animatePlugin:s,...o})=>{if(s){let e=s.getLastRenderCharCount();s.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)(cb,{...o,children:l});return(0,ia.jsx)(oE.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});cW.displayName="Block";var cq=(0,i.memo)(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:r=!0,normalizeHtmlIndentation:a=!1,components:s,rehypePlugins:o=c$,remarkPlugins:l=cj,className:c,shikiTheme:u=cz,mermaid:h,controls:d=!0,isAnimating:p=!1,animated:f,BlockComponent:m=cW,parseMarkdownIntoBlocksFn:g=cL,caret:y,plugins:b,remend:k,linkSafety:x=cV,lineNumbers:E=!0,allowedTags:v,literalTagContent:_,translations:T,icons:A,prefix:w,onAnimationStart:S,onAnimationEnd:C,...N})=>{let M=(0,i.useId)(),[I,L]=(0,i.useTransition)(),R=(0,i.useMemo)(()=>w?(...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(" ")})(w,(0,ii.QP)((0,ir.$)(e))):ov,[w]),D=(0,i.useRef)(null),O=(0,i.useRef)(S),P=(0,i.useRef)(C);O.current=S,P.current=C,(0,i.useEffect)(()=>{var e,n,r;if("static"===t)return;let i=D.current;if(D.current=p,null===i){p&&(null==(e=O.current)||e.call(O));return}p&&!i?null==(n=O.current)||n.call(O):!p&&i&&(null==(r=P.current)||r.call(P))},[p,t]);let F=(0,i.useMemo)(()=>v?Object.keys(v):[],[v]),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:s}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:rb(rT({},e),rk({handle:e=>r6(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:rb(rT({},e),rk({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!=s&&s(a))break;return a})(e,k):e;return _&&_.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+cD(n).replace(/\n\n/g," ")+r)}return n})(n,_)),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(`
|
|
92
|
-
|
|
93
|
-
`))return t+n+r;let i=n.replace(/\n\n/g,`
|
|
94
|
-
<!---->
|
|
95
|
-
`),a=(i.startsWith(`
|
|
96
|
-
`)?"":`
|
|
97
|
-
`)+i+(i.endsWith(`
|
|
98
|
-
`)?"":`
|
|
99
|
-
`);return`${t}${a}${r}
|
|
100
|
-
|
|
101
|
-
`})}return n})(n,F)),n},[e,t,r,k,F,_]),U=(0,i.useMemo)(()=>g(B),[B,g]),[H,$]=(0,i.useState)(U);(0,i.useEffect)(()=>{"streaming"!==t||K?$(U):L(()=>{$(U)})},[U,t]);let j="streaming"===t?H:U,G=(0,i.useMemo)(()=>"auto"===n?j.map(lU):void 0,[j,n]),z=(0,i.useMemo)(()=>j.map((e,t)=>`${M}-${t}`),[j.length,M]),V=(0,i.useMemo)(()=>!0===f?"true":f?JSON.stringify(f):"",[f]),K=(0,i.useMemo)(()=>V?"true"===V?ox():ox(f):null,[V]),W=(0,i.useMemo)(()=>{var e,n;return{shikiTheme:null!=(n=null==(e=null==b?void 0:b.code)?void 0:e.getThemes())?n:u,controls:d,isAnimating:p,lineNumbers:E,mode:t,mermaid:h,linkSafety:x}},[u,d,p,E,t,h,x,null==b?void 0:b.code]),q=(0,i.useMemo)(()=>T?JSON.stringify(T):"",[T]),Y=(0,i.useMemo)(()=>({...oB,...T}),[q]),X=(0,i.useMemo)(()=>{let{inlineCode:e,...t}=null!=s?s:{},n={...lP,...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},[s]),Q=(0,i.useMemo)(()=>{let e=[];return null!=b&&b.cjk&&(e=[...e,...b.cjk.remarkPluginsBefore]),e=[...e,...l],null!=b&&b.cjk&&(e=[...e,...b.cjk.remarkPluginsAfter]),null!=b&&b.math&&(e=[...e,b.math.remarkPlugin]),e},[l,null==b?void 0:b.math,null==b?void 0:b.cjk]),Z=(0,i.useMemo)(()=>{var e;let t=o;if(v&&Object.keys(v).length>0&&o===c$){let n={...cU,tagNames:[...null!=(e=cU.tagNames)?e:[],...Object.keys(v)],attributes:{...cU.attributes,...v}};t=[cH.raw,[t5,n],cH.harden]}return _&&_.length>0&&(t=[...t,[cP,_]]),null!=b&&b.math&&(t=[...t,b.math.rehypePlugin]),K&&p&&(t=[...t,K.rehypePlugin]),t},[o,null==b?void 0:b.math,K,p,v,_]),J=(0,i.useMemo)(()=>{if(!p||0===j.length)return!1;let e=j.at(-1);return cd(e)||(e=>{for(let t of e.split(`
|
|
102
|
-
`)){let e=t.trim();if(e.length>0&&e.includes("|")&&ch.test(e))return!0}return!1})(e)},[p,j]),ee=(0,i.useMemo)(()=>y&&p&&!J?{"--streamdown-caret":`"${cG[y]}"`}:void 0,[y,p,J]);return"static"===t?(0,ia.jsx)(oU.Provider,{value:Y,children:(0,ia.jsx)(oX.Provider,{value:null!=b?b:null,children:(0,ia.jsx)(cK.Provider,{value:W,children:(0,ia.jsx)(oP,{icons:A,children:(0,ia.jsx)(oT.Provider,{value:R,children:(0,ia.jsx)("div",{className:R("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",c),dir:"auto"===n?lU(B):n,children:(0,ia.jsx)(cb,{components:X,rehypePlugins:Z,remarkPlugins:Q,...N,children:B})})})})})})}):(0,ia.jsx)(oU.Provider,{value:Y,children:(0,ia.jsx)(oX.Provider,{value:null!=b?b:null,children:(0,ia.jsx)(cK.Provider,{value:W,children:(0,ia.jsx)(oP,{icons:A,children:(0,ia.jsx)(oT.Provider,{value:R,children:(0,ia.jsxs)("div",{className:R("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",y&&!J?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,c),style:ee,children:[0===j.length&&y&&p&&(0,ia.jsx)("span",{}),j.map((e,t)=>{var i;let s=t===j.length-1,o=p&&s&&cd(e);return(0,ia.jsx)(m,{animatePlugin:K,components:X,content:e,dir:null!=(i=null==G?void 0:G[t])?i:"auto"!==n?n:void 0,index:t,isIncomplete:o,rehypePlugins:Z,remarkPlugins:Q,shouldNormalizeHtmlIndentation:a,shouldParseIncompleteMarkdown:r,...N},z[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);cq.displayName="Streamdown";var cY=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:a=.1,showControls:s=!0,initialZoom:o=1,fullscreen:l=!1})=>{let{RotateCcwIcon:c,ZoomInIcon:u,ZoomOutIcon:h}=oF(),d=oA(),p=(0,i.useRef)(null),f=(0,i.useRef)(null),[m,g]=(0,i.useState)(o),[y,b]=(0,i.useState)({x:0,y:0}),[k,x]=(0,i.useState)(!1),[E,v]=(0,i.useState)({x:0,y:0}),[_,T]=(0,i.useState)({x:0,y:0}),A=(0,i.useCallback)(e=>{g(t=>Math.max(n,Math.min(r,t+e)))},[n,r]),w=(0,i.useCallback)(()=>{A(a)},[A,a]),S=(0,i.useCallback)(()=>{A(-a)},[A,a]),C=(0,i.useCallback)(()=>{g(o),b({x:0,y:0})},[o]),N=(0,i.useCallback)(e=>{e.preventDefault(),A(e.deltaY>0?-a:a)},[A,a]),M=(0,i.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;x(!0),v({x:e.clientX,y:e.clientY}),T(y);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[y]),I=(0,i.useCallback)(e=>{if(!k)return;e.preventDefault();let t=e.clientX-E.x,n=e.clientY-E.y;b({x:_.x+t,y:_.y+n})},[k,E,_]),L=(0,i.useCallback)(e=>{x(!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&&k)return document.body.style.userSelect="none",e.addEventListener("pointermove",I,{passive:!1}),e.addEventListener("pointerup",L),e.addEventListener("pointercancel",L),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",I),e.removeEventListener("pointerup",L),e.removeEventListener("pointercancel",L)}},[k,I,L]),(0,ia.jsxs)("div",{className:d("relative flex flex-col",l?"h-full w-full":"min-h-28 w-full",t),ref:p,style:{cursor:k?"grabbing":"grab"},children:[s?(0,ia.jsxs)("div",{className:d("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:d("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:w,title:"Zoom in",type:"button",children:(0,ia.jsx)(u,{size:16})}),(0,ia.jsx)("button",{className:d("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:S,title:"Zoom out",type:"button",children:(0,ia.jsx)(h,{size:16})}),(0,ia.jsx)("button",{className:d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:C,title:"Reset zoom and pan",type:"button",children:(0,ia.jsx)(c,{size:16})})]}):null,(0,ia.jsx)("div",{className:d("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:M,ref:f,role:"application",style:{transform:`translate(${y.x}px, ${y.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 s=oA(),[o,l]=(0,i.useState)(null),[c,u]=(0,i.useState)(!1),[h,d]=(0,i.useState)(""),[p,f]=(0,i.useState)(""),[m,g]=(0,i.useState)(0),{mermaid:y}=(0,i.useContext)(cK),b=oJ(),k=null==y?void 0:y.errorComponent,{shouldRender:x,containerRef:E}=function(e={}){let{immediate:t=!1,debounceDelay:n=300,rootMargin:r="300px",idleTimeout:a=500}=e,[s,o]=(0,i.useState)(!1),l=(0,i.useRef)(null),c=(0,i.useRef)(null),u=(0,i.useRef)(null),h=(0,i.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),d=(0,i.useMemo)(()=>"u">typeof window&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):h,[h]),p=(0,i.useMemo)(()=>"u">typeof window&&window.cancelIdleCallback?e=>window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,i.useEffect)(()=>{if(t)return void o(!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)},s=(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=d(e=>{e.timeRemaining()>0||e.didTimeout?(o(!0),t.disconnect()):u.current=d(()=>{o(!0),t.disconnect()},{timeout:a/2})},{timeout:a}))},n)):i()},h=new IntersectionObserver(e=>{for(let t of e)s(t,h)},{rootMargin:r,threshold:0});return h.observe(e),()=>{c.current&&clearTimeout(c.current),u.current&&p(u.current),h.disconnect()}},[t,n,r,a,p,d]),{shouldRender:s,containerRef:l}}({immediate:r});return((0,i.useEffect)(()=>{if(x){if(!b)return void l("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");(async()=>{try{l(null),u(!0);let t=b.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);d(a),f(a)}catch(e){p||h||l(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{u(!1)}})()}},[e,n,m,x,b]),x||h||p)?!c||h||p?!o||h||p?(0,ia.jsx)("div",{className:s("size-full",t),"data-streamdown":"mermaid",ref:E,children:(0,ia.jsx)(cY,{className:s(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:s("flex justify-center",r?"size-full items-center":null),dangerouslySetInnerHTML:{__html:h||p},role:"img"})})}):k?(0,ia.jsx)("div",{ref:E,children:(0,ia.jsx)(k,{chart:e,error:o,retry:()=>g(e=>e+1)})}):(0,ia.jsxs)("div",{className:s("rounded-md bg-red-50 p-4",t),ref:E,children:[(0,ia.jsxs)("p",{className:s("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",o]}),(0,ia.jsxs)("details",{className:s("mt-2"),children:[(0,ia.jsx)("summary",{className:s("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),(0,ia.jsx)("pre",{className:s("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]}):(0,ia.jsx)("div",{className:s("my-4 flex justify-center p-4",t),ref:E,children:(0,ia.jsxs)("div",{className:s("flex items-center space-x-2 text-muted-foreground"),children:[(0,ia.jsx)("div",{className:s("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),(0,ia.jsx)("span",{className:s("text-sm"),children:"Loading diagram..."})]})}):(0,ia.jsx)("div",{className:s("my-4 min-h-[200px]",t),ref:E})}},62623:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i,Z:()=>a});var r=n(47552);let i={};for(let e=0;e<=255;e++)i[e]=r.A.unit.dec2hex(e);let a={ALL:0,RGB:1,HSL:2}},63273:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},63434:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},64572:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(69266);let i={damping:.7,stiffness:.05,mass:1.25},a=1e3/60,s=!1;globalThis.document?.addEventListener("mousedown",()=>{s=!0}),globalThis.document?.addEventListener("mouseup",()=>{s=!1}),globalThis.document?.addEventListener("click",()=>{s=!1});let o=(e={})=>{let[t,n]=(0,r.useState)(!1),[i,o]=(0,r.useState)(!1!==e.initial),[c,h]=(0,r.useState)(!1),d=(0,r.useRef)(null);d.current=e;let p=(0,r.useCallback)(()=>{if(!s)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(E.current)||E.current?.contains(t.commonAncestorContainer)},[]),f=(0,r.useCallback)(e=>{g.isAtBottom=e,o(e)},[]),m=(0,r.useCallback)(e=>{g.escapedFromLock=e,n(e)},[]),g=(0,r.useMemo)(()=>{let n;return{escapedFromLock:t,isAtBottom:i,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return E.current?.scrollTop??0},set scrollTop(scrollTop){if(E.current){let{scrollBehavior:e}=getComputedStyle(E.current);"auto"!==e&&(E.current.style.scrollBehavior="auto"),E.current.scrollTop=scrollTop,g.ignoreScrollToTop=E.current.scrollTop,"auto"!==e&&(E.current.style.scrollBehavior=e)}},get targetScrollTop(){if(!E.current||!v.current)return 0;return E.current.scrollHeight-1-E.current.clientHeight},get calculatedTargetScrollTop(){if(!E.current||!v.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if(n?.targetScrollTop===t)return n.calculatedScrollTop;let r=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:E.current,contentElement:v.current}),t),0);return n={targetScrollTop:t,calculatedScrollTop:r},requestAnimationFrame(()=>{n=void 0}),r},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),y=(0,r.useCallback)((e={})=>{let t;"string"==typeof e&&(e={animation:e}),e.preserveScrollPosition||f(!0);let n=Date.now()+(Number(e.wait)||0),r=u(d.current,e.animation),{ignoreEscapes:i=!1}=e,s=g.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{t=Date.now()}):t=n+(e.duration??0);let o=async()=>{let e=new Promise(requestAnimationFrame).then(()=>{if(!g.isAtBottom)return g.animation=void 0,!1;let{scrollTop:l}=g,c=performance.now(),h=(c-(g.lastTick??c))/a;if(g.animation||(g.animation={behavior:r,promise:e,ignoreEscapes:i}),g.animation.behavior===r&&(g.lastTick=c),p()||n>Date.now())return o();if(l<Math.min(s,g.calculatedTargetScrollTop)){if(g.animation?.behavior===r){if("instant"===r)return g.scrollTop=g.calculatedTargetScrollTop,o();g.velocity=(r.damping*g.velocity+r.stiffness*g.scrollDifference)/r.mass,g.accumulated+=g.velocity*h,g.scrollTop+=g.accumulated,g.scrollTop!==l&&(g.accumulated=0)}return o()}return t>Date.now()?(s=g.calculatedTargetScrollTop,o()):(g.animation=void 0,g.scrollTop<g.calculatedTargetScrollTop)?y({animation:u(d.current,d.current.resize),ignoreEscapes:i,duration:Math.max(0,t-Date.now())||void 0}):g.isAtBottom});return e.then(e=>(requestAnimationFrame(()=>{g.animation||(g.lastTick=void 0,g.velocity=0)}),e))};return(!0!==e.wait&&(g.animation=void 0),g.animation?.behavior===r)?g.animation.promise:o()},[f,p,g]),b=(0,r.useCallback)(()=>{m(!0),f(!1)},[m,f]),k=(0,r.useCallback)(({target:e})=>{if(e!==E.current)return;let{scrollTop:t,ignoreScrollToTop:n}=g,{lastScrollTop:r=t}=g;g.lastScrollTop=t,g.ignoreScrollToTop=void 0,n&&n>t&&(r=n),h(g.isNearBottom),setTimeout(()=>{if(g.resizeDifference||t===n)return;if(p()){m(!0),f(!1);return}let e=t>r,i=t<r;if(g.animation?.ignoreEscapes){g.scrollTop=r;return}i&&(m(!0),f(!1)),e&&m(!1),!g.escapedFromLock&&g.isNearBottom&&f(!0)},1)},[m,f,p,g]),x=(0,r.useCallback)(({target:e,deltaY:t})=>{let n=e;for(;!["scroll","auto"].includes(getComputedStyle(n).overflow);){if(!n.parentElement)return;n=n.parentElement}n===E.current&&t<0&&E.current.scrollHeight>E.current.clientHeight&&!g.animation?.ignoreEscapes&&(m(!0),f(!1))},[m,f,g]),E=l(e=>{E.current?.removeEventListener("scroll",k),E.current?.removeEventListener("wheel",x),e?.addEventListener("scroll",k,{passive:!0}),e?.addEventListener("wheel",x,{passive:!0})},[]),v=l(e=>{let t;g.resizeObserver?.disconnect(),g.resizeObserver=void 0,e&&(g.resizeObserver=new ResizeObserver(([e])=>{let{height:n}=e.contentRect,r=n-(t??n);if(g.resizeDifference=r,g.scrollTop>g.targetScrollTop&&(g.scrollTop=g.targetScrollTop),h(g.isNearBottom),r>=0){let e=u(d.current,t?d.current.resize:d.current.initial);y({animation:e,wait:!0,preserveScrollPosition:!0,duration:"instant"===e?void 0:350})}else g.isNearBottom&&(m(!1),f(!0));t=n,requestAnimationFrame(()=>{setTimeout(()=>{g.resizeDifference===r&&(g.resizeDifference=0)},1)})}),g.resizeObserver?.observe(e))},[]);return{contentRef:v,scrollRef:E,scrollToBottom:y,stopScroll:b,isAtBottom:i||c,isNearBottom:c,escapedFromLock:t,state:g}};function l(e,t){let n=(0,r.useCallback)(t=>(n.current=t,e(t)),t);return n}let c=new Map;function u(...e){let t={...i},n=!1;for(let r of e){if("instant"===r){n=!0;continue}"object"==typeof r&&(n=!1,t.damping=r.damping??t.damping,t.stiffness=r.stiffness??t.stiffness,t.mass=r.mass??t.mass)}let r=JSON.stringify(t);return c.has(r)||c.set(r,Object.freeze(t)),n?"instant":c.get(r)}},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}},64696:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("eraser",[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]])},64752:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(25488),i=n(12696),a=n(29198);let s=/[A-Z]/g,o=/-[a-z]/g,l=/^data[-\w.:]+$/i;function c(e,t){let n=(0,a.S)(t),c=t,d=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(o,h);c="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!o.test(e)){let n=e.replace(s,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}d=r.E}return new d(c,t)}function u(e){return"-"+e.toLowerCase()}function h(e){return e.charAt(1).toUpperCase()}},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,s=0;return function(i){return(0,r.On)(i)?(e.enter(n),function i(o){return(0,r.On)(o)&&s++<a?(e.consume(o),i):(e.exit(n),t(o))}(i)):t(i)}}},66722:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])},67011:(e,t,n)=>{"use strict";n.d(t,{B:()=>l,z:()=>o});var r=n(69266),i=n(64572);let a=(0,r.createContext)(null),s="u">typeof window?r.useLayoutEffect:r.useEffect;function o({instance:e,children:t,resize:n,initial:l,mass:c,damping:u,stiffness:h,targetScrollTop:d,contextRef:p,...f}){let m=(0,r.useRef)(null),g=r.useCallback((e,t)=>{let n=A?.targetScrollTop??d;return n?.(e,t)??e},[d]),y=(0,i.q)({mass:c,damping:u,stiffness:h,resize:n,initial:l,targetScrollTop:g}),{scrollRef:b,contentRef:k,scrollToBottom:x,stopScroll:E,isAtBottom:v,escapedFromLock:_,state:T}=e??y,A=(0,r.useMemo)(()=>({scrollToBottom:x,stopScroll:E,scrollRef:b,isAtBottom:v,escapedFromLock:_,contentRef:k,state:T,get targetScrollTop(){return m.current},set targetScrollTop(targetScrollTop){m.current=targetScrollTop}}),[x,v,k,b,E,_,T]);return(0,r.useImperativeHandle)(p,()=>A,[A]),s(()=>{b.current&&"visible"===getComputedStyle(b.current).overflow&&(b.current.style.overflow="auto")},[]),r.createElement(a.Provider,{value:A},r.createElement("div",{...f},"function"==typeof t?t(A):t))}function l(){let e=(0,r.useContext)(a);if(!e)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}(o||(o={})).Content=function({children:e,scrollClassName:t,...n}){let i=l();return r.createElement("div",{ref:i.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:t},r.createElement("div",{...n,ref:i.contentRef},"function"==typeof e?e(i):e))}},67799:(e,t,n)=>{"use strict";n.d(t,{$V:()=>s,Av:()=>r,GX:()=>f,ML:()=>T,NA:()=>h,OG:()=>i,Qb:()=>g,R_:()=>o,Uw:()=>d,VP:()=>l,XZ:()=>x,ZR:()=>k,_u:()=>v,cT:()=>p,i1:()=>E,iq:()=>m,kj:()=>a,pj:()=>u,q:()=>y,ri:()=>_,vC:()=>c,x6:()=>b});let r="[object RegExp]",i="[object String]",a="[object Number]",s="[object Boolean]",o="[object Arguments]",l="[object Symbol]",c="[object Date]",u="[object Map]",h="[object Set]",d="[object Array]",p="[object ArrayBuffer]",f="[object Object]",m="[object DataView]",g="[object Uint8Array]",y="[object Uint8ClampedArray]",b="[object Uint16Array]",k="[object Uint32Array]",x="[object Int8Array]",E="[object Int16Array]",v="[object Int32Array]",_="[object Float32Array]",T="[object Float64Array]"},68083:(e,t,n)=>{"use strict";t.J=function(e){if(!e)return r.BLANK_URL;var t,n=i(e.trim());do t=(n=i(n=n.replace(r.ctrlCharactersRegex,"").replace(r.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)}).replace(r.htmlCtrlEntityRegex,"").replace(r.ctrlCharactersRegex,"").replace(r.whitespaceEscapeCharsRegex,"").trim())).match(r.ctrlCharactersRegex)||n.match(r.htmlEntitiesRegex)||n.match(r.htmlCtrlEntityRegex)||n.match(r.whitespaceEscapeCharsRegex);while(t&&t.length>0);var a=n;if(!a)return r.BLANK_URL;if(r.relativeFirstCharacters.indexOf(a[0])>-1)return a;var s=a.trimStart(),o=s.match(r.urlSchemeRegex);if(!o)return a;var l=o[0].toLowerCase().trim();if(r.invalidProtocolRegex.test(l))return r.BLANK_URL;var c=s.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return c;if("http:"===l||"https:"===l){if(!URL.canParse(c))return r.BLANK_URL;var u=new URL(c);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return c};var r=n(89618);function i(e){try{return decodeURIComponent(e)}catch(t){return e}}},69202:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(47057),i=n(93525);let a=(e,t)=>{let n=r.A.parse(e),a={};for(let e in t)t[e]&&(a[e]=n[e]+t[e]);return(0,i.A)(e,a)}},70943:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},71216:(e,t,n)=>{"use strict";n.d(t,{O:()=>s,X:()=>o});var r=n(4196),i=n(89316),a=n(39410),s=(0,a.K)(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},"getSubGraphTitleMargins");async function o(e,t){let n=e.getElementsByTagName("img");if(!n||0===n.length)return;let s=""===t.replace(/<img[^>]*>/g,"").trim();await Promise.all([...n].map(e=>new Promise(t=>{function n(){if(e.style.display="flex",e.style.flexDirection="column",s){let t=(0,i.D7)().fontSize?(0,i.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[n=i.UI.fontSize]=(0,r.I5)(t),a=5*n+"px";e.style.minWidth=a,e.style.maxWidth=a}else e.style.width="100%";t(e)}(0,a.K)(n,"setupImage"),setTimeout(()=>{e.complete&&n()}),e.addEventListener("error",n),e.addEventListener("load",n)})))}(0,a.K)(o,"configureLabelImages")},71627:(e,t,n)=>{"use strict";n.d(t,{IU:()=>E,Jo:()=>D,T_:()=>A,UQ:()=>x,g0:()=>es,jP:()=>_,lP:()=>k});var r=n(50789),i=n(48495),a=n(7632),s=n(71216),o=n(94725),l=n(4196),c=n(89316),u=n(47508),h=n(39410),d=n(86594),p=n(62079),f=(0,h.K)((e,t,n,r,i,a=!1,s)=>{t.arrowTypeStart&&y(e,"start",t.arrowTypeStart,n,r,i,a,s),t.arrowTypeEnd&&y(e,"end",t.arrowTypeEnd,n,r,i,a,s)},"addEdgeMarkers"),m={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},g=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],y=(0,h.K)((e,t,n,r,i,a,s=!1,o)=>{let l=m[n],c=l&&g.includes(l.type);if(!l)return void u.R.warn(`Unknown arrow type: ${n}`);let h=l.type,d=`${i}_${a}-${h}${"start"===t?"Start":"End"}${s&&c?"-margin":""}`;if(o&&""!==o.trim()){let n=o.replace(/[^\dA-Za-z]/g,"_"),i=`${d}_${n}`;if(!document.getElementById(i)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=i,t.querySelectorAll("path, circle, line").forEach(e=>{e.setAttribute("stroke",o),l.fill&&e.setAttribute("fill",o)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${i})`)}else e.attr(`marker-${t}`,`url(${r}#${d})`)},"addEdgeMarker"),b=(0,h.K)(e=>"string"==typeof e?e:(0,c.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),k=new Map,x=new Map,E=(0,h.K)(()=>{k.clear(),x.clear()},"clear"),v=(0,h.K)(e=>e?"string"==typeof e?e:e.reduce((e,t)=>e+";"+t,""):"","getLabelStyles"),_=(0,h.K)(async(e,t)=>{let n,s=(0,c.D7)(),l=(0,c.E)(s),{labelStyles:h}=(0,i.GX)(t);t.labelStyle=h;let p=e.insert("g").attr("class","edgeLabel"),f=p.insert("g").attr("class","label").attr("data-id",t.id),m="markdown"===t.labelType,g=await (0,o.G)(e,t.label,{style:v(t.labelStyle),useHtmlLabels:l,addSvgBackground:!0,isNode:!1,markdown:m,width:void 0},s);f.node().appendChild(g),u.R.info("abc82",t,t.labelType);let y=g.getBBox(),b=y;if(l){let e=g.children[0],t=(0,d.Ltv)(g);b=y=e.getBoundingClientRect(),t.attr("width",y.width),t.attr("height",y.height)}else{let e=(0,d.Ltv)(g).select("text").node();e&&"function"==typeof e.getBBox&&(b=e.getBBox())}if(f.attr("transform",(0,a.Wg)(b,l)),k.set(t.id,p),t.width=y.width,t.height=y.height,t.startLabelLeft){let i=e.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner"),o=await (0,r.DA)(s,t.startLabelLeft,v(t.labelStyle)||"",!1,!1);n=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,d.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,a.Wg)(c,l)),x.get(t.id)||x.set(t.id,{}),x.get(t.id).startLeft=i,T(n,t.startLabelLeft)}if(t.startLabelRight){let i=e.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner"),o=await (0,r.DA)(s,t.startLabelRight,v(t.labelStyle)||"",!1,!1);n=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,d.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,a.Wg)(c,l)),x.get(t.id)||x.set(t.id,{}),x.get(t.id).startRight=i,T(n,t.startLabelRight)}if(t.endLabelLeft){let i=e.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner"),o=await (0,r.DA)(i,t.endLabelLeft,v(t.labelStyle)||"",!1,!1);n=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,d.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,a.Wg)(c,l)),x.get(t.id)||x.set(t.id,{}),x.get(t.id).endLeft=i,T(n,t.endLabelLeft)}if(t.endLabelRight){let i=e.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner"),o=await (0,r.DA)(i,t.endLabelRight,v(t.labelStyle)||"",!1,!1);n=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,d.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,a.Wg)(c,l)),x.get(t.id)||x.set(t.id,{}),x.get(t.id).endRight=i,T(n,t.endLabelRight)}return g},"insertEdgeLabel");function T(e,t){(0,c.E)((0,c.D7)())&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}(0,h.K)(T,"setTerminalWidth");var A=(0,h.K)((e,t)=>{u.R.debug("Moving label abc88 ",e.id,e.label,k.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath,r=(0,c.D7)(),{subGraphTitleTotalMargin:i}=(0,s.O)(r);if(e.label){let r=k.get(e.id),a=e.x,s=e.y;if(n){let r=l._K.calcLabelPosition(n);u.R.debug("Moving label "+e.label+" from (",a,",",s,") to (",r.x,",",r.y,") abc88"),t.updatedPath&&(a=r.x,s=r.y)}r.attr("transform",`translate(${a}, ${s+i/2})`)}if(e.startLabelLeft){let t=x.get(e.id).startLeft,r=e.x,i=e.y;if(n){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.startLabelRight){let t=x.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=x.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelRight){let t=x.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}},"positionEdgeLabel"),w=(0,h.K)((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith("-to-label")||!Array.isArray(t)||2!==t.length)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},"orthogonalizeToLabelClippedPoints"),S=(0,h.K)((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),s=e.width/2,o=e.height/2;return i>=s||a>=o},"outsideNode"),C=(0,h.K)((e,t,n)=>{u.R.debug(`intersection calc abc89:
|
|
103
|
-
outsidePoint: ${JSON.stringify(t)}
|
|
104
|
-
insidePoint : ${JSON.stringify(n)}
|
|
105
|
-
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let r=e.x,i=e.y,a=Math.abs(r-n.x),s=e.width/2,o=n.x<t.x?s-a:s+a,l=e.height/2,c=Math.abs(t.y-n.y),h=Math.abs(t.x-n.x);if(Math.abs(i-t.y)*s>Math.abs(r-t.x)*l){let e=n.y<t.y?t.y-l-i:i-l-t.y;o=h*e/c;let r={x:n.x<t.x?n.x+o:n.x-h+o,y:n.y<t.y?n.y+c-e:n.y-c+e};return 0===o&&(r.x=t.x,r.y=t.y),0===h&&(r.x=t.x),0===c&&(r.y=t.y),u.R.debug(`abc89 top/bottom calc, Q ${c}, q ${e}, R ${h}, r ${o}`,r),r}{let e=c*(o=n.x<t.x?t.x-s-r:r-s-t.x)/h,i=n.x<t.x?n.x+h-o:n.x-h+o,a=n.y<t.y?n.y+e:n.y-e;return u.R.debug(`sides calc abc89, Q ${c}, q ${e}, R ${h}, r ${o}`,{_x:i,_y:a}),0===o&&(i=t.x,a=t.y),0===h&&(i=t.x),0===c&&(a=t.y),{x:i,y:a}}},"intersection"),N=(0,h.K)((e,t)=>{u.R.warn("abc88 cutPathAtIntersect",e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(u.R.info("abc88 checking point",e,t),S(t,e)||i)u.R.warn("abc88 outside",e,r),r=e,i||n.push(e);else{let a=C(t,r,e);u.R.debug("abc88 inside",e,r,a),u.R.debug("abc88 intersection",a,t);let s=!1;n.forEach(e=>{s=s||e.x===a.x&&e.y===a.y}),n.some(e=>e.x===a.x&&e.y===a.y)?u.R.warn("abc88 no intersect",a,n):n.push(a),i=!0}}),u.R.debug("returning points",n),n},"cutPathAtIntersect");function M(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],s=e[r+1];i.x===a.x&&a.y===s.y&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-i.y)>5?(t.push(a),n.push(r)):i.y===a.y&&a.x===s.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-s.y)>5&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}(0,h.K)(M,"extractCornerPoints");var I=(0,h.K)(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},"findAdjacentPoint"),L=(0,h.K)(function(e){let{cornerPointPositions:t}=M(e),n=[];for(let r=0;r<e.length;r++)if(t.includes(r)){let t=e[r-1],i=e[r+1],a=e[r],s=I(t,a,5),o=I(i,a,5),l=o.x-s.x,c=o.y-s.y;n.push(s);let h=2*Math.sqrt(2),d={x:a.x,y:a.y};Math.abs(i.x-t.x)>10&&Math.abs(i.y-t.y)>=10?(u.R.debug("Corner point fixing",Math.abs(i.x-t.x),Math.abs(i.y-t.y)),d=a.x===s.x?{x:l<0?s.x-5+h:s.x+5-h,y:c<0?s.y-h:s.y+h}:{x:l<0?s.x-h:s.x+h,y:c<0?s.y-5+h:s.y+5-h}):u.R.debug("Corner point skipping fixing",Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(d,o)}else n.push(e[r]);return n},"fixCorners"),R=(0,h.K)((e,t,n)=>{let r=Array(Math.floor((e-t-n)/4)).fill("2 2").join(" ");return`0 ${t} ${r} ${n}`},"generateDashArray"),D=(0,h.K)(function(e,t,n,r,s,o,h,m=!1){let g,y;if(!h)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:k,layout:x}=(0,c.D7)(),E=t.points,v=!1,_=[];for(let e in t.cssCompiledStyles)(0,i.KX)(e)||_.push(t.cssCompiledStyles[e]);if("swimlane"===x){if(o.intersect&&s.intersect&&Array.isArray(E)&&E.length>=2)if(2===E.length)E=[s.intersect(E[0]),o.intersect(E[1])];else{let e=E.slice(1,-1),t=e[0],n=e[e.length-1],r=.5>Math.abs(E[E.length-1].x-n.x)&&.5>Math.abs(E[E.length-1].y-n.y),i=s.intersect(t),a=r?n:o.intersect(n),l=.5>Math.abs(a.x-n.x)&&.5>Math.abs(a.y-n.y);E=[....5>Math.abs(i.x-t.x)&&.5>Math.abs(i.y-t.y)?[]:[i],...e,...l?[]:[a]]}E=w(t,E)}else o.intersect&&s.intersect&&!m&&((E=E.slice(1,t.points.length-1)).unshift(s.intersect(E[0])),E.push(o.intersect(E[E.length-1])));let T=btoa(JSON.stringify(E));t.toCluster&&(u.R.info("to cluster abc88",n.get(t.toCluster)),E=N(t.points,n.get(t.toCluster).node),v=!0),t.fromCluster&&(u.R.debug("from cluster abc88",n.get(t.fromCluster),JSON.stringify(E,null,2)),E=N(E.reverse(),n.get(t.fromCluster).node).reverse(),v=!0);let A=E.filter(e=>!Number.isNaN(e.y)),S=b(t.curve);"rounded"!==S&&(A=L(A));let C=d.lUB;switch(S){case"linear":case"rounded":C=d.lUB;break;case"basis":default:C=d.qrM;break;case"cardinal":C=d.y8u;break;case"bumpX":C=d.Wi0;break;case"bumpY":C=d.PGM;break;case"catmullRom":C=d.oDi;break;case"monotoneX":C=d.nVG;break;case"monotoneY":C=d.uxU;break;case"natural":C=d.Xf2;break;case"step":C=d.GZz;break;case"stepAfter":C=d.UPb;break;case"stepBefore":C=d.dyv}let{x:M,y:I}=(0,a.RI)(t),D=(0,d.n8j)().x(M).y(I).curve(C);switch(t.thickness){case"normal":default:g="edge-thickness-normal";break;case"thick":g="edge-thickness-thick";break;case"invisible":g="edge-thickness-invisible"}switch(t.pattern){case"solid":default:g+=" edge-pattern-solid";break;case"dotted":g+=" edge-pattern-dotted";break;case"dashed":g+=" edge-pattern-dashed"}let P="rounded"===S?O(F(A,t),5):D(A),B=Array.isArray(t.style)?t.style:[t.style],U=B.find(e=>e?.startsWith("stroke:")),H="";t.animate&&(H="edge-animation-fast"),t.animation&&(H="edge-animation-"+t.animation);let $=!1;if("handDrawn"===t.look){let n=p.A.svg(e);Object.assign([],A);let r=n.path(P,{roughness:.3,seed:k});g+=" transition";let i=(y=(0,d.Ltv)(r).select("path").attr("id",`${h}-${t.id}`).attr("class"," "+g+(t.classes?" "+t.classes:"")+(H?" "+H:"")).attr("style",B?B.reduce((e,t)=>e+";"+t,""):"")).attr("d");y.attr("d",i),e.node().appendChild(y.node())}else{let n=_.join(";"),r=B?B.reduce((e,t)=>e+t+";",""):"",i=(n?n+";"+r+";":r)+";"+(B?B.reduce((e,t)=>e+";"+t,""):"");y=e.append("path").attr("d",P).attr("id",`${h}-${t.id}`).attr("class"," "+g+(t.classes?" "+t.classes:"")+(H?" "+H:"")).attr("style",i),U=i.match(/stroke:([^;]+)/)?.[1],$=!0===t.animate||!!t.animation||n.includes("animation");let s=y.node(),o="function"==typeof s.getTotalLength?s.getTotalLength():0,l=a.Nq[t.arrowTypeStart]||0,c=a.Nq[t.arrowTypeEnd]||0;if("neo"===t.look&&!$){let e="dotted"===t.pattern||"dashed"===t.pattern?R(o,l,c):`0 ${l} ${o-l-c} ${c}`,n=`stroke-dasharray: ${e}; stroke-dashoffset: 0;`;y.attr("style",n+y.attr("style"))}}y.attr("data-edge",!0),y.attr("data-et","edge"),y.attr("data-id",t.id),y.attr("data-points",T),y.attr("data-look",(0,l.KL)(t.look)),t.showPoints&&A.forEach(t=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",t.x).attr("cy",t.y)});let j="";((0,c.D7)().flowchart.arrowMarkerAbsolute||(0,c.D7)().state.arrowMarkerAbsolute)&&(j=(j=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),u.R.info("arrowTypeStart",t.arrowTypeStart),u.R.info("arrowTypeEnd",t.arrowTypeEnd);let G=!$&&t?.look==="neo";f(y,t,j,h,r,G,U);let z=Math.floor(E.length/2),V=E[z];l._K.isLabelCoordinateInPath(V,y.attr("d"))||(v=!0);let K={};return v&&(K.updatedPath=E),K.originalPath=t.points,K},"insertEdge");function O(e,t){if(e.length<2)return"";let n="",r=e.length;for(let i=0;i<r;i++){let a=e[i],s=e[i-1],o=e[i+1];if(0===i)n+=`M${a.x},${a.y}`;else if(i===r-1)n+=`L${a.x},${a.y}`;else{let e=a.x-s.x,r=a.y-s.y,i=o.x-a.x,l=o.y-a.y,c=Math.hypot(e,r),u=Math.hypot(i,l);if(c<1e-5||u<1e-5){n+=`L${a.x},${a.y}`;continue}let h=e/c,d=r/c,p=i/u,f=l/u,m=Math.acos(Math.max(-1,Math.min(1,h*p+d*f)));if(m<1e-5||1e-5>Math.abs(Math.PI-m)){n+=`L${a.x},${a.y}`;continue}let g=Math.min(t/Math.sin(m/2),c/2,u/2),y=a.x-h*g,b=a.y-d*g,k=a.x+p*g,x=a.y+f*g;n+=`L${y},${b}Q${a.x},${a.y} ${k},${x}`}}return n}function P(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}function F(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&a.hq[t.arrowTypeStart]){let r=a.hq[t.arrowTypeStart],i=e[0],{angle:s}=P(i,e[1]),o=r*Math.cos(s),l=r*Math.sin(s);n[0].x=i.x+o,n[0].y=i.y+l}let r=e.length;if(r>=2&&a.hq[t.arrowTypeEnd]){let i=a.hq[t.arrowTypeEnd],s=e[r-1],{angle:o}=P(e[r-2],s),l=i*Math.cos(o),c=i*Math.sin(o);n[r-1].x=s.x-l,n[r-1].y=s.y-c}return n}(0,h.K)(O,"generateRoundedPath"),(0,h.K)(P,"calculateDeltaAndAngle"),(0,h.K)(F,"applyMarkerOffsetsToPoints");var B=(0,h.K)((e,t,n,r)=>{t.forEach(t=>{ea[t](e,n,r)})},"insertMarkers"),U=(0,h.K)((e,t,n)=>{u.R.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",n+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),H=(0,h.K)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),$=(0,h.K)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),j=(0,h.K)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),G=(0,h.K)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),z=(0,h.K)((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),V=(0,h.K)((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),K=(0,h.K)((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",n+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),W=(0,h.K)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),q=(0,h.K)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{transitionColor:i}=r;e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${i}`)},"barbNeo"),Y=(0,h.K)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),X=(0,h.K)((e,t,n)=>{let r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("d","M9,0 L9,18");let i=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),Q=(0,h.K)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),Z=(0,h.K)((e,t,n)=>{let r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let i=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),J=(0,h.K)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{strokeWidth:i}=r;e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${i}`),e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${i}`)},"only_one_neo"),ee=(0,h.K)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{strokeWidth:i,mainBkg:a}=r,s=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");s.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${i}`).attr("r",6),s.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${i}`);let o=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${i}`).attr("r",6),o.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${i}`)},"zero_or_one_neo"),et=(0,h.K)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{strokeWidth:i}=r;e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${i}`),e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${i}`)},"one_or_more_neo"),en=(0,h.K)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{strokeWidth:i,mainBkg:a}=r,s=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${i}`),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${i}`);let o=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${i}`),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${i}`)},"zero_or_more_neo"),er=(0,h.K)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
106
|
-
L20,10
|
|
107
|
-
M20,10
|
|
108
|
-
L0,20`)},"requirement_arrow"),ei=(0,h.K)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{strokeWidth:i}=r;e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${i}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
109
|
-
L20,10
|
|
110
|
-
M20,10
|
|
111
|
-
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),ea={extension:U,composition:H,aggregation:$,dependency:j,lollipop:G,point:z,circle:V,cross:K,barb:W,barbNeo:q,only_one:Y,zero_or_one:X,one_or_more:Q,zero_or_more:Z,only_one_neo:J,zero_or_one_neo:ee,one_or_more_neo:et,zero_or_more_neo:en,requirement_arrow:er,requirement_contains:(0,h.K)((e,t,n)=>{let r=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");r.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),r.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),r.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:ei,requirement_contains_neo:(0,h.K)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{strokeWidth:i}=r,a=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${i}`)},"requirement_contains_neo")},es=B},71762:(e,t,n)=>{"use strict";function r({moduleIds:e}){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return r}}),n(7962),n(44911),n(25033),n(52400),n(90924)},72034:(e,t,n)=>{"use strict";n.d(t,{IN:()=>a,dc:()=>s,_Z:()=>o,VG:()=>l});var r=n(64587);let i=[],a=!0,s=!1,o="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),h=l?-1:1;(function e(r,c,d){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,y=i;if((!t||u(r,c,d[d.length-1]||void 0))&&(y=Array.isArray(p=n(r,d))?p:"number"==typeof p?[a,p]:null==p?i:[p])[0]===s)return y;if("children"in r&&r.children&&r.children&&y[0]!==o)for(m=(l?r.children.length:-1)+h,g=d.concat(r);m>-1&&m<r.children.length;){if((f=e(r.children[m],m,g)())[0]===s)return f;m="number"==typeof f[1]?f[1]:m+h}return y}})(e,void 0,[])()}},72114:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},72910:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]])},73028:(e,t,n)=>{"use strict";let r,i,a,s,o;n.d(t,{a:()=>r3});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])||[])),h={...c,...u};class d extends Error{constructor(e){super(e),this.name="ShikiError"}}var p,f,m,g=n(21966);function y(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var b=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,k=class{static hasCaptures(e){return null!==e&&(b.lastIndex=0,b.test(e))}static replaceCaptures(e,t,n){return e.replace(b,(e,r,i,a)=>{let s=n[parseInt(r||i,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function x(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 E(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 v(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var _=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}},T=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 s=-1;if("string"==typeof a.settings.fontStyle){s=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let o=null;"string"==typeof a.settings.foreground&&E(a.settings.foreground)&&(o=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&E(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 S(c,u,e,s,o,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=x(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),s=new w(n,a.getId(r),a.getId(i)),o=new L(new I(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new T(a,s,o)}(e,t)}_cachedMatchRoot=new _(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],s=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],s=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new w(n.fontStyle,n.foreground,n.background):null}},A=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}},w=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},S=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}},C=((p=C||{})[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)}},M=Object.freeze([]),I=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||M,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)}},L=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,s){let o,l,c;if(""===n)return void this._doInsertHere(t,r,i,a,s);let u=n.indexOf(".");-1===u?(o=n,l=""):(o=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),I.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,r,i,a,s)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let s=this._rulesWithParentScopes[a];if(0===x(s.parentScopes,t))return void s.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 I(e,t,n,r,i))}},R=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,s,o){let l=e.getLanguageId(t),c=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),d=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==i&&(u=+!!i),-1!==a&&(h=a),0!==s&&(d=s),0!==o&&(p=o),(l|c<<8|u<<10|h<<11|d<<15|p<<24)>>>0}};function D(e,t){var n;let r,i,a=[],s=(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}}),o=s.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=s.next()}let t=c();if(a.push({matcher:t,priority:e}),","!==o)break;o=s.next()}return a;function l(){if("-"===o){o=s.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=s.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o);t=c()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if(O(o)){let e=[];do e.push(o),o=s.next();while(O(o));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 O(e){return!!e&&!!e.match(/[\w\.:]+/)}var P=((f=P||{})[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}},U=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},H=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))}},$=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 H;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?G({baseGrammar:a,selfGrammar:i},r):j(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let s=n.injections(e.scopeName);if(s)for(let e of s)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 j(e,t,n){t.repository&&t.repository[e]&&z([t.repository[e]],t,n)}function G(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&z(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&z(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function z(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?y({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&z(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=X(i);switch(a.kind){case 0:G({...t,selfGrammar:t.baseGrammar},n);break;case 1:G(t,n);break;case 2:j(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let r={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===a.kind?j(a.ruleName,r,n):G(r,n)}else 4===a.kind?n.add(new U(a.scopeName,a.ruleName)):n.add(new B(a.scopeName))}}}var V=class{kind=0},K=class{kind=1},W=class{constructor(e){this.ruleName=e}kind=2},q=class{constructor(e){this.scopeName=e}kind=3},Y=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function X(e){if("$base"===e)return new V;if("$self"===e)return new K;let t=e.indexOf("#");return -1===t?new q(e):0===t?new W(e.substring(1)):new Y(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=k.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=k.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?k.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?k.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 es(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 eo,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 eo,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,s,o,l,c){super(e,t,n,r),this._begin=new es(i,this.id),this.beginCaptures=a,this._end=new es(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,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 eo,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,s,o,l){super(e,t,n,r),this._begin=new es(i,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=new es(s,-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 eo,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 eo,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=y({},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 s=parseInt(a,10),o=0;t[a].patterns&&(o=e.getCompiledRuleId(t[a],n,r)),i[s]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,s=t.length;a<s;a++){let s=t[a],o=-1;if(s.include){let t=X(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(r[s.include],n,r);break;case 2:let i=r[t.ruleName];i&&(o=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&&(o=e.getCompiledRuleId(t,n,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else o=e.getCompiledRuleId(s,n,r);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof en||e instanceof er||e instanceof ei)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},es=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)=>v(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=[],s=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,s[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="",a[e+1]="",s[e+1]="A",o[e+1]="A"):"G"===r?(i[e+1]="",a[e+1]="G",s[e+1]="",o[e+1]="G"):(i[e+1]=r,a[e+1]=r,s[e+1]=r,o[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:s.join(""),A1_G1:o.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}},eo=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 eh(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 _(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/},eh=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])=>v(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 ed=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ep(e,t,n,r,i,a,s,o){let l=t.content.length,c=!1,u=-1;if(s){let s=function(e,t,n,r,i,a){let s=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof ei&&o.push({rule:n,stack:t})}for(let p=o.pop();p;p=o.pop()){var l,c,u,h,d;let{ruleScanner:o,findOptions:f}=(l=p.rule,c=e,u=p.stack.endRule,h=n,d=r===s,{ruleScanner:l.compileWhileAG(c,u,h,d),findOptions:0}),m=o.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),s=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:s,isFirstLine:n}}(e,t,n,r,i,a);i=s.stack,r=s.linePos,n=s.isFirstLine,u=s.anchorPosition}let h=Date.now();for(;!c;){if(0!==o&&Date.now()-h>o)return new ed(i,!0);!function(){let s=function(e,t,n,r,i,a){let s=function(e,t,n,r,i,a){let{ruleScanner:s,findOptions:o}=ef(i.getRule(e),e,i.endRule,n,r===a),l=s.findNextMatchSync(t,r,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,n,r,i,a,s){let o,l=Number.MAX_VALUE,c=null,u=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,d=e.length;a<d;a++){let d=e[a];if(!d.matcher(h))continue;let{ruleScanner:p,findOptions:f}=ef(t.getRule(d.ruleId),t,null,r,i===s),m=p.findNextMatchSync(n,i,f);if(!m)continue;let g=m.captureIndices[0].start;if(!(g>=l)&&(l=g,c=m.captureIndices,o=m.ruleId,u=d.priority,l===i))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:o}:null}(o,e,t,n,r,i,a);if(!l)return s;if(!s)return l;let c=s.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:s}(e,t,n,r,i,u);if(!s){a.produce(i,l),c=!0;return}let o=s.captureIndices,h=s.matchedRuleId,d=!!o&&o.length>0&&o[0].end>r;if(-1===h){let s=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),em(e,t,n,i,a,s.endCaptures,o),a.produce(i,o[0].end);let h=i;if(i=i.parent,u=h.getAnchorPos(),!d&&h.getEnterPos()===r){i=h,a.produce(i,l),c=!0;return}}else{let s=e.getRule(h);a.produce(i,o[0].start);let p=i,f=s.getName(t.content,o),m=i.contentNameScopesList.pushAttributed(f,e);if(i=i.push(h,r,u,o[0].end===l,null,m,m),s instanceof er){em(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let r=s.getContentName(t.content,o),h=m.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),s.endHasBackReferences&&(i=i.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!d&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(s instanceof ei){em(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let r=s.getContentName(t.content,o),h=m.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),s.whileHasBackReferences&&(i=i.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!d&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(em(e,t,n,i,a,s.captures,o),a.produce(i,o[0].end),i=i.pop(),!d){i=i.safePop(),a.produce(i,l),c=!0;return}}o[0].end>r&&(r=o[0].end,n=!1)}()}return new ed(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,s){if(0===a.length)return;let o=t.content,l=Math.min(a.length,s.length),c=[],u=s[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let h=s[t];if(0===h.length)continue;if(h.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=h.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,h.start):i.produce(r,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),a=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,s),u=a.pushAttributed(c,e),d=r.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,u),p=e.createOnigString(o.substring(0,h.end));ep(e,p,n&&0===h.start,h.start,d,i,!1,0),F(p);continue}let d=l.getName(o,s);if(null!==d){let t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(d,e);c.push(new eg(t,h.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 ey(e,t,n,r,i){let a=D(t,eb),s=ea.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:s,grammar:i,priority:n.priority})}function eb(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 ek=class{constructor(e,t,n,r,i,a,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new eu(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=ex(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const e of Object.keys(i))for(const t of D(e,eb))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)ey(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&&ey(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]=ex(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!==ev.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=R.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?eE.createRootAndLookUpScopeName(s,a,this):eE.createRoot("unknown",a),t=new ev(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),s=a.content.length,o=new eT(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ep(this,a,i,0,t,o,!0,r);return F(a),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function ex(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 eE=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=A.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new A(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new A(null,t),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(n,i,s);return new e(null,a,o)}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),R.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),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(t.tokenAttributes,i,s);return new e(t,a,o)}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}},ev=class e{constructor(e,t,n,r,i,a,s,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=o,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)&&eE.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,s,o){return new e(this,t,n,r,i,a,s,o)}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=eE.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,eE.fromExtension(r,n.contentNameScopesList))}},e_=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):D(e,eb).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>D(e,eb).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}},eT=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=R.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=R.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}},eA=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 ek(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},ew=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eA(T.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(T.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 e_(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new $(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)}},eS=ev.NULL,eC=n(58771),eN=n(55947),eM=n(40156);let eI=/["&'<>`]/g,eL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eR=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eD=/[|\\{}()[\]^$+*?.]/g,eO=new WeakMap,eP=/[\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"],eU={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:"€"},eH=["cent","copy","divide","gt","lt","not","para","times"],e$={}.hasOwnProperty,ej={};for(r in eU)e$.call(eU,r)&&(ej[eU[r]]=r);let eG=/[^\dA-Za-z]/;function ez(e,t,n){var r,i;let a,s,o=(r=n.omitOptionalSemicolons,a="&#x"+e.toString(16).toUpperCase(),r&&t&&!eP.test(String.fromCharCode(t))?a:a+";");if((n.useNamedReferences||n.useShortestReferences)&&(s=function(e,t,n,r){let i=String.fromCharCode(e);if(e$.call(ej,i)){let e=ej[i],a="&"+e;return n&&eB.includes(e)&&!eH.includes(e)&&(!r||t&&61!==t&&eG.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){let r,a=(i=n.omitOptionalSemicolons,r="&#"+String(e),i&&t&&!eF.test(String.fromCharCode(t))?r:r+";");a.length<o.length&&(o=a)}return s&&(!n.useShortestReferences||s.length<o.length)?s:o}function eV(e,t){let n;var r,i=e,a=Object.assign({format:ez},t);if(i=i.replace(a.subset?(r=a.subset,(n=eO.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(eD,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),eO.set(r,n)),n):eI,s),a.subset||a.escapeOnly)return i;return i.replace(eL,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(eR,s);function s(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let eK=/^>|^->|<!--|-->|--!>|<!-$/g,eW=[">"],eq=["<",">"];var eY=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,s=i[a];if(!r)for(;s&&(0,eJ.m)(s);)a+=e,s=i[a];return s}}let e3={}.hasOwnProperty;function e6(e){return function(t,n,r){return e3.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let e9=e6({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:e8,rt:e8,tbody:function(e,t,n){let r=e0(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:e7,tfoot:function(e,t,n){return!e0(n,t)},th:e7,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 e8(e,t,n){let r=e0(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function e7(e,t,n){let r=e0(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let te=e6({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&&e9(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)&&e9(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:eV(e.value,Object.assign({},r.settings.characterReferences,{subset:tn}))}let ti=(0,eM.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?"<?"+eV(e.value,Object.assign({},r.settings.characterReferences,{subset:eW}))+">":"\x3c!--"+e.value.replace(eK,function(e){return eV(e,Object.assign({},r.settings.characterReferences,{subset:eq}))})+"--\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,s="svg"!==a.space&&r.settings.omitOptionalTags,o="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,s=+!e.settings.allowDangerousCharacters,o=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=eV(i.attribute,Object.assign({},e.settings.characterReferences,{subset:tt.name[a][s]}));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=eV(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:tt.unquoted[a][s]}))),r!==n&&(e.settings.quoteSmart&&(0,eY.D)(n,o)>(0,eY.D)(n,e.alternative)&&(o=e.alternative),r=o+eV(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?tt.single:tt.double)[a][s],attribute:!0}))+o),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&&(o=!1),!c&&s&&te(e,t,n)||(l.push("<",e.tagName,c?" "+c:""),o&&("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),o||s&&e9(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={},ts={},to=[];function tl(e,t,n){return ti(e,t,n,this)}function tc(e){let t=[],n=e&&e.children||to,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 th(e,t){return e&&t?.[e?.toLowerCase()]||e}async function td(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 ty(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 tb="light-dark()",tk=["color","background-color"];function tx(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&C.Italic&&(t["font-style"]="italic"),e.fontStyle&C.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&C.Underline&&n.push("underline"),e.fontStyle&C.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function tE(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let tv=new WeakMap;function t_(e,t){tv.set(e,t)}function tT(e){return tv.get(e)}class tA{_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 tA(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,eS])),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 tw=[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 d(`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 d(`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 d(`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=ty(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}},s=(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 d(`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,s=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,o=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||s||o){if(i&&a||s&&o||s&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new d(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(s),e.set(t.meta,{decorations:s,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 d(`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 s=r[e],o="",l=-1,c=-1;if(0===t&&(l=0),0===n&&(c=0),n===1/0&&(c=s.children.length),-1===l||-1===c)for(let e=0;e<s.children.length;e++)o+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(s.children[e]),-1===l&&o.length===t&&(l=e+1),-1===c&&o.length===n&&(c=e+1);if(-1===l)throw new d(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===c)throw new d(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=s.children.slice(l,c);if(i.alwaysWrap||u.length!==s.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"),s.children.splice(l,u.length,e)}else a(u[0],i,"token");else a(s,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 s=[];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++)s.unshift(()=>{var t;r[t=i]=a(r[t],e,"line")});i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}()];function tS(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,...tw]}var tC=["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 tM(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 tI={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 tL={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 tR(e,t,n={}){var r,i;let a,s,{theme:o=e.getLoadedThemes()[0]}=n,l=e.resolveLangAlias(n.lang||"text");if(tp(l)||tm(o))return ty(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:c,colorMap:u}=e.setTheme(o);if("ansi"===l){let e,r,i,a,s,o,l;return e=tu(c,n),r=ty(t),i=function(e=tI){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<tC.length;n++)t.push(e[tC[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(tC.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,c.colors?.[t]||tL[e]]}))),a=null,s=null,o=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:s,decorations:new Set(o)}),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:tC[r-30]}});else if(38===r){let n=tM(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:tC[r-40]}});else if(48===r){let n=tM(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:tC[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tC[r-100+8]}})}return t}(r.sequence);for(let t of e)"resetAll"===t.type?(a=null,s=null,o.clear()):"resetForegroundColor"===t.type?a=null:"resetBackgroundColor"===t.type?s=null:"resetDecoration"===t.type&&o.delete(t.value);for(let t of e)"setForegroundColor"===t.type?a=t.value:"setBackgroundColor"===t.type?s=t.value:"setDecoration"===t.type&&o.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=th(r,e),a=th(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 s=C.None;return n.decorations.has("bold")&&(s|=C.Bold),n.decorations.has("italic")&&(s|=C.Italic),n.decorations.has("underline")&&(s|=C.Underline),n.decorations.has("strikethrough")&&(s|=C.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:a,fontStyle:s}}))}let h=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==h.name)throw new d(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${h.name}"`);if(!n.grammarState.themes.includes(c.name))throw new d(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${c.name}"`)}return s=new tA((a=tD(t,r=h,i=c,u,n)).stateStack,r.name,i.name),t_(a.tokens,s),a.tokens}function tD(e,t,n,r,i){let a=tu(n,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:o=500}=i,l=ty(e),c=i.grammarState?function(e,t){if(!(e instanceof tA))throw new d("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??eS:null!=i.grammarContextCode?tD(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:eS,u=[],h=[];for(let e=0,d=l.length;e<d;e++){let d,p,[f,m]=l[e];if(""===f){u=[],h.push([]);continue}if(s>0&&f.length>=s){u=[],h.push([{content:f,offset:m,color:"",fontStyle:0}]);continue}i.includeExplanation&&(d=t.tokenizeLine(f,c,o).tokens,p=0);let g=t.tokenizeLine2(f,c,o),y=g.tokens.length/2;for(let e=0;e<y;e++){let t=g.tokens[2*e],s=e+1<y?g.tokens[2*e+2]:f.length;if(t===s)continue;let o=g.tokens[2*e+1],l=th(r[R.getForeground(o)],a),c=R.getFontStyle(o),h={content:f.substring(t,s),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(/ /))})}h.explanation=[];let r=0;for(;t+r<s;){let t=d[p],n=f.substring(t.startIndex,t.endIndex);r+=n.length,h.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(!tO(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tO(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(h)}h.push(u),u=[],c=g.ruleStack}return{tokens:h,stateStack:c}}function tO(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tP(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=tR(e,t,{...n,theme:r.theme}),a=tT(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 s=i.map(()=>0),o=i.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<n;t++){let n=o[t];n.content.length===e?(a[t].push(n),s[t]+=1,o[t]=i[t][s[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),o[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...i.map(e=>e.tokens)),s=a[0].map((e,t)=>e.map((e,i)=>{let s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:o,offset:l,...c}=e[t][i];s.variants[r[n].color]=c}),s})),o=i[0].state?new tA(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return o&&t_(s,o),s}function tF(e,t,n){let r,i,a,s,o,l;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="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 d("`themes` option must not be empty");let f=tP(e,t,n);if(l=tT(f),c&&tb!==c&&!p.find(e=>e.color===c))throw new d(`\`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},s=t.map(t=>tx(e.variants[t])),o=new Set(s.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 s.forEach((e,n)=>{for(let a of o){let o=e[a]||"inherit";if(0===n&&r&&tk.includes(a))if(r===tb&&s.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new d('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=s[e][a]||"inherit",h=s[r][a]||"inherit";l[a]=`light-dark(${u}, ${h})`,"css-vars"===i&&(l[c(n,a)]=o)}else l[a]=o;else"css-vars"===i&&(l[c(n,a)]=o)}}),a.htmlStyle=l,a})(e,g,u,c,h))),l&&t_(a,l);let y=p.map(e=>tu(e.theme,n));i=tB(p,m,y,u,c,"fg",h),r=tB(p,m,y,u,c,"bg",h),s=`shiki-themes ${m.map(e=>e.name).join(" ")}`,o=c?void 0:[i,r].join(";")}else if("theme"in n){let o=tu(n.theme,n);a=tR(e,t,n);let c=e.getTheme(n.theme);r=th(c.bg,o),i=th(c.fg,o),s=c.name,l=tT(a)}else throw new d("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:s,rootStyle:o,grammarState:l}}function tB(e,t,n,r,i,a,s){return e.map((o,l)=>{let c=th(t[l][a],n[l])||"inherit",u=`${r+o.color}${"bg"===a?"-bg":""}:${c}`;if(0===l&&i){if(i===tb&&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 d('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let s=th(t[r][a],n[r])||"inherit",o=th(t[i][a],n[i])||"inherit";return`light-dark(${s}, ${o});${u}`}return c}return"css-vars"===s?u:null}).filter(e=>!!e).join(";")}function tU(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>tU(e,t,n),codeToTokens:(t,n)=>tF(e,t,n)}){let i=t;for(let e of tS(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:s,bg:o,themeName:l,rootStyle:c,grammarState:u}=tF(e,i,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:d=!1}=n;!0===h?a=a.map(e=>{let t,n=[],r="";return e.forEach((i,a)=>{let s=!(i.fontStyle&&(i.fontStyle&C.Underline||i.fontStyle&C.Strikethrough));s&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),r+=i.content):r?(s?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"===h&&(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}))),d&&(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=tE(e.htmlStyle||tx(e)),i=tE(n.htmlStyle||tx(n)),a=e.fontStyle&&(e.fontStyle&C.Underline||e.fontStyle&C.Strikethrough),s=n.fontStyle&&(n.fontStyle&C.Underline||n.fontStyle&C.Strikethrough);a||s||r!==i?t.push({...n}):e.content+=n.content}return t}));let p={...r,get source(){return i}};for(let e of tS(n))a=e.tokens?.call(p,a)||a;return function(e,t,n,r=tT(e)){let i=tS(t),a=[],s={type:"root",children:[]},{structure:o="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},h={type:"element",tagName:"code",properties:{},children:a},d=[],p={...n,structure:o,addClassToHast:tg,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return h},get lines(){return d}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&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=tE(a.htmlStyle||tx(a));for(let s of(l&&(e.properties.style=l),i))e=s?.span?.call(p,e,t+1,r,n,a)||e;"inline"===o?s.children.push(e):"classic"===o&&n.children.push(e),r+=a.content.length}if("classic"===o){for(let e of i)n=e?.line?.call(p,n,t+1)||n;d.push(n),a.push(n)}else"inline"===o&&d.push(n)}),"classic"===o){for(let e of i)h=e?.code?.call(p,h)||h;for(let e of(u.children.push(h),i))u=e?.pre?.call(p,u)||u;s.children.push(u)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of s.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;s.children=[];for(let e=0;e<n.children.length;e++){e>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&s.children.push(...t.children)}}let f=s;for(let e of i)f=e?.root?.call(p,f)||f;return r&&t_(f,r),f}(a,{...n,fg:s,bg:o,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??c)},p,u)}let tH=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||eC.b,characterReferences:n.characterReferences||ts,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)},t$="__shiki_resolved";function tj(e){if(e?.[t$])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 s(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?s(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=s(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=s(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=s(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,t$,{enumerable:!1,writable:!1,value:!0}),t}async function tG(e){return Array.from(new Set((await Promise.all(e.filter(e=>!tf(e)).map(async e=>await td(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function tz(e){return(await Promise.all(e.map(async e=>tm(e)?null:tj(await td(e))))).filter(e=>!!e)}class tV extends Error{constructor(e){super(e),this.name="ShikiError"}}function tK(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 tV(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class tW extends ew{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=tj(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=T.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=tK(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 tV(`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 tq{_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 tY=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([tz(e.themes||[]),tG(e.langs||[]),e.engine]);return function(e){let t;tY+=1,!1!==e.warnings&&tY>=10&&tY%10==0&&console.warn(`[Shiki] ${tY} 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 tV("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tj),a=new tW(new tq(e.engine,r),i,r,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=a.getTheme(e);if(!t)throw new tV(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...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 tV("Shiki instance has been disposed")}function u(){n||(n=!0,a.dispose(),tY-=1)}return{setTheme:function(e){c();let n=s(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new tV(`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 tK(t,e.langAlias)},loadLanguage:async function(...e){return o(await tG(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await tz(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 tT(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=r;if(tp(i)||tm(a))throw new d("Plain language does not have grammar state");if("ansi"===i)throw new d("ANSI language does not have grammar state");let{theme:s,colorMap:o}=t.setTheme(a),l=t.getLanguage(i);return new tA(tD(n,l,s,o,r).stateStack,l.name,s.name)})(t,...e),codeToTokensBase:(e,n)=>tR(t,e,n),codeToTokensWithThemes:(e,n)=>tP(t,e,n),codeToTokens:(e,n)=>tF(t,e,n),codeToHast:(e,n)=>tU(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>tU(e,t,n),codeToTokens:(t,n)=>tF(e,t,n)},i=tH(tU(e,t,n,r));for(let e of tS(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 s(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 s="";for(;t<i;){let n=e[t++];if(!(128&n)){s+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){s+=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)s+=String.fromCharCode(n);else{let e=n-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(r.HEAPU8,e,t):""}let o={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 s=a*(1+.2/r);if(s=Math.min(s,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,s),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:o,wasi_snapshot_preview1:o});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=s}return await l(),r}var t3=Object.defineProperty,t6=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?t3(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};let t9=null;class t4{constructor(e){t6(this,"utf16Length"),t6(this,"utf8Length"),t6(this,"utf16Value"),t6(this,"utf8Value"),t6(this,"utf16OffsetToUtf8"),t6(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 s=new Uint8Array(n);let o=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]=o,u&&(i[n+1]=o),c<=127?a[o+0]=n:c<=2047?(a[o+0]=n,a[o+1]=n):c<=65535?(a[o+0]=n,a[o+1]=n,a[o+2]=n):(a[o+0]=n,a[o+1]=n,a[o+2]=n,a[o+3]=n)),c<=127?s[o++]=c:(c<=2047?s[o++]=192|(1984&c)>>>6:(c<=65535?s[o++]=224|(61440&c)>>>12:(s[o++]=240|(1835008&c)>>>18,s[o++]=128|(258048&c)>>>12),s[o++]=128|(4032&c)>>>6),s[o++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,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,s=!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,s=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,s&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let t8=class e{constructor(t){if(t6(this,"id",++e.LAST_ID),t6(this,"_onigBinding"),t6(this,"content"),t6(this,"utf16Length"),t6(this,"utf8Length"),t6(this,"utf16OffsetToUtf8"),t6(this,"utf8OffsetToUtf16"),t6(this,"ptr"),!t9)throw new t0("Must invoke loadWasm first.");this._onigBinding=t9,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=t9.omalloc(1e4)),e._sharedPtrInUse=!0,t9.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(t9)}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)}};t6(t8,"LAST_ID",0),t6(t8,"_sharedPtr",0),t6(t8,"_sharedPtrInUse",!1);class t7{constructor(e){if(t6(this,"_onigBinding"),t6(this,"_ptr"),!t9)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(t9),n[r]=i.utf8Length}const r=t9.omalloc(4*e.length);t9.HEAPU32.set(t,r/4);const i=t9.omalloc(4*e.length);t9.HEAPU32.set(n,i/4);const a=t9.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)t9.ofree(t[n]);t9.ofree(i),t9.ofree(r),0===a&&function(e){throw new t0(e.UTF8ToString(e.getLastOnigError()))}(t9),this._onigBinding=t9,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 t8(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 s=i.HEAPU32,o=a/4,l=s[o++],c=s[o++],u=[];for(let t=0;t<c;t++){let n=e.convertUtf8OffsetToUtf16(s[o++]),r=e.convertUtf8OffsetToUtf16(s[o++]);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(){t9=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,s;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 (s=n,async e=>{let t=await s.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 t7(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new t8(e)}}let nn=(a=(m={langs:h,themes:tZ,engine:()=>nt(Promise.all([n.e(74352),n.e(27890)]).then(n.bind(n,27890)))}).langs,s=m.themes,o=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 d(`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=s[e];if(!t)throw new d(`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??o(),...e,themes:r,langs:i});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(t)),loadTheme:(...e)=>l.loadTheme(...e.map(n)),getBundledLanguages:()=>a,getBundledThemes:()=>s}});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 ns(e,t){if(null==e)throw Error(t??"Value expected");return e}let no=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`
|
|
112
|
-
\\ (?:
|
|
113
|
-
${nl}
|
|
114
|
-
| [gk]<[^>]*>?
|
|
115
|
-
| [gk]'[^']*'?
|
|
116
|
-
| .
|
|
117
|
-
)
|
|
118
|
-
| \( (?:
|
|
119
|
-
\? (?:
|
|
120
|
-
[:=!>({]
|
|
121
|
-
| <[=!]
|
|
122
|
-
| <[^>]*>
|
|
123
|
-
| '[^']*'
|
|
124
|
-
| ~\|?
|
|
125
|
-
| #(?:[^)\\]|\\.?)*
|
|
126
|
-
| [^:)]*[:)]
|
|
127
|
-
)?
|
|
128
|
-
| \*[^\)]*\)?
|
|
129
|
-
)?
|
|
130
|
-
| (?:${nc.source})+
|
|
131
|
-
| ${no}
|
|
132
|
-
| .
|
|
133
|
-
`.replace(/\s+/g,""),"gsu"),nh=RegExp(na`
|
|
134
|
-
\\ (?:
|
|
135
|
-
${nl}
|
|
136
|
-
| .
|
|
137
|
-
)
|
|
138
|
-
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
139
|
-
| ${no}
|
|
140
|
-
| &&
|
|
141
|
-
| .
|
|
142
|
-
`.replace(/\s+/g,""),"gsu");function nd(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 ny({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 ny("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(nE.has(n))return nm(nE.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 ny(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function nb(e,t,n={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:ns(n.flags),raw:t}}function nk(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}let nx=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),nE=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function nv(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 n_(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 nT(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 nA=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function nw(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},s=[],o;for(nu.lastIndex=0;o=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(nh.lastIndex=n;a=nh.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 nd(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 ny("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:nh.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:nb("keep",n)};if("N"===a||"R"===a)return{token:ny("newline",n,{negate:"N"===a})};if("O"===a)return{token:ny("any",n)};if("X"===a)return{token:ny("text_segment",n)};let e=nd(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):[],[s,o,l]=a,c=nx.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 s)throw Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if("string"==typeof s&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if(2===a.length&&("number"==typeof o||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);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 s||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(3!==a.length)throw Error(`Named callout must have three arguments "${a}"`);if("string"==typeof s&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if("number"==typeof o||!/^(?:[<>!=]=|[<>])$/.test(o))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);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=n_(n),s=n_(r),o={};if(a&&(o.enable=a),s&&(o.disable=s),e.endsWith(")"))return t.replaceCurrentModX(i),nb("flags",e,{flags:o});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,nk("group",e,{...(a||s)&&{flags:o}});throw Error(`Unexpected flag modifier "${e}"`)}(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===n&&!e.captureGroup||"(?:"===n)return{token:nk("group",n)};if("(?>"===n)return{token:nk("atomic",n)};if("(?="===n||"(?!"===n||"(?<="===n||"(?<!"===n)return{token:nk("<"===n[2]?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if("("===n&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:nk("capturing",n,{..."("!==n&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if("(?~|"===n)throw Error(`Unsupported absence function kind "${n}"`);return{token:nk("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(`
|
|
143
|
-
`,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:ny("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(nv(e.slice(0,-1)));continue}}}n.push(nv(e))}return n}(n)}:{token:nm(nr(n),n)}}(a,e,o[0],nu.lastIndex);t.tokens?s.push(...t.tokens):t.token&&s.push(t.token),void 0!==t.lastIndex&&(nu.lastIndex=t.lastIndex)}let l=[],c=0;s.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:s.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=[],s=i.match(/^[0-7]+|\d/g);for(let e=0;e<s.length;e++){let t,r=s[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[s.nextIndex];switch(s.parent=e,s.nextIndex++,n.type){case"Alternator":return nS();case"Assertion":return function({kind:e}){return nC(ns({"^":"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,s);case"Character":return nI(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),s=n[e.nextIndex];if(!t.isCheckingRangeEnd&&a&&"CharacterClass"!==a.type&&"CharacterClassRange"!==a.type&&s&&"CharacterClassOpen"!==s.type&&"CharacterClassClose"!==s.type&&"CharacterClassIntersector"!==s.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 nI(nr("-"))}(s,t);case"CharacterClassOpen":return function({negate:e},t,n){let{tokens:r,walk:i}=t,a=[nL()],s=r[t.nextIndex],o=nz(s);for(;"CharacterClassClose"!==o.type;){if("CharacterClassIntersector"===o.type)a.push(nL()),t.nextIndex++;else{let e=a.at(-1);e.body.push(i(e,n))}o=nz(r[t.nextIndex],s)}let l=nL({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,s,t);case"CharacterSet":return function({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s}=r;if("property"===e){let r=nG(n);if(!ni.has(r)||s?.has(r))return nB(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s});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}):nR(e,{negate:t})}(n,s);case"Directive":return function(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:ns(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:s,namedGroupsByName:o,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:nU(void 0)};case"atomic":return nD({atomic:!0});case"capturing":return nM(i,{name:n});case"group":return nD({flags:e});case"lookahead":case"lookbehind":return nO({behind:"lookbehind"===t,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}(e),h="AbsenceFunction"===u.type,d=nj(u),p=d&&u.negate;if("CapturingGroup"===u.type&&(s.push(u),u.name&&(r=u.name,i=[],o.has(r)||o.set(r,i),o.get(r)).push(u)),h&&n.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let f=nV(a[t.nextIndex]);for(;"GroupClose"!==f.type;){if("Alternator"===f.type)u.body.push(nS()),t.nextIndex++;else{let e=u.body.at(-1),t=c(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||h,isInLookbehind:n.isInLookbehind||d,isInNegLookbehind:n.isInNegLookbehind||p});if(e.body.push(t),(d||n.isInLookbehind)&&!l){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(p||n.isInNegLookbehind){if(n$(t)||"CapturingGroup"===t.type)throw Error(e)}else if(n$(t)||nj(t)&&t.negate)throw Error(e)}}f=nV(a[t.nextIndex])}return t.nextIndex++,u}(n,s,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||!nA.has(a.type))throw Error("Quantifier requires a repeatable token");let s=nP(e,t,n,a);return i.body.pop(),s}(n,s);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 s=nF(i);return r.push(s),s}(n,s);default:throw Error(`Unexpected token type "${n.type}"`)}},s={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},o=(n={type:"Flags",...i.flags},{type:"Regex",body:nU(void 0),flags:n}),l=o.body[0];for(;s.nextIndex<i.tokens.length;){let e=a(l,{});"Alternative"===e.type?(o.body.push(e),l=e):l.body.push(e)}let{capturingGroups:c,hasNumberedRef:u,namedGroupsByName:h,subroutines:d}=s;if(u&&h.size&&!r.rules.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:e}of d)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(h.has(e)){if(h.get(e).length>1)throw Error(na`Subroutine uses a duplicate group name "\g<${e}>"`);h.get(e)[0].isSubroutined=!0}else throw Error(na`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function nS(e){return{type:"Alternative",body:nH(e?.body)}}function nC(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 nM(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:nU(t?.body)}}function nI(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 nL(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:nH(e?.body)}}function nR(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 nD(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:nU(e?.body)}}function nO(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:nU(e?.body)}}function nP(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(nG(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 nU(e){if(void 0===e)e=[nS()];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 nH(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 n$(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function nj(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function nG(e){return e.replace(/[- _]+/g,"").toLowerCase()}function nz(e,t){return ns(e,`Unclosed character class${t?.type==="Character"&&93===t.value&&"]"===t.raw?' (started with "]")':""}`)}function nV(e){return ns(e,"Unclosed group")}function nK(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,s=null,o=null,l=null){let c=0,u=!1,h={node:a,parent:s,key:o,container:l,root:e,remove(){nW(l).splice(Math.max(0,nq(o)+c),1),c--,u=!0},removeAllNextSiblings:()=>nW(l).splice(nq(o)+1),removeAllPrevSiblings(){let e=nq(o)+c;return c-=e,nW(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;l?l[Math.max(0,nq(o)+c)]=e:ns(s,"Can't replace root node")[o]=e,n&&i(e,s,o,l),u=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(nW(l).splice(Math.max(0,nq(o)+c),1,...e),c+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],s,nq(o)+n+t,l)}u=!0},skip(){u=!0}},{type:d}=a,p=t["*"],f=t[d],m="function"==typeof p?p:p?.enter,g="function"==typeof f?f:f?.enter;if(m?.(h,n),g?.(h,n),!u)switch(d){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 "${d}"`)}return f?.exit?.(h,n),p?.exit?.(h,n),c}return i(e),e}function nW(e){if(!Array.isArray(e))throw Error("Container expected");return e}function nq(e){if("number"!=typeof e)throw Error("Numeric key expected");return e}let nY=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],s=0,o="";for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===nX.DEFAULT==!s)){n instanceof Function?o+=n(t,{context:s?nX.CHAR_CLASS:nX.DEFAULT,negated:a[a.length-1]}):o+=n;continue}"["===e[0]?(s++,a.push("^"===e[1])):"]"===e&&s&&(s--,a.pop()),o+=e}return o}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 s=0;for(;i=a.exec(e);){let{0:e,groups:{$skip:t}}=i;if(!t&&(!r||r===nX.DEFAULT==!s))return i;"["===e?s++:"]"===e&&s&&s--,a.lastIndex==i.index&&a.lastIndex++}return null}(e,t,0,n)}let nJ=RegExp(String.raw`(?<noncapturingStart>${nY})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu"),n0=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,n1=RegExp(String.raw`
|
|
144
|
-
\\(?: \d+
|
|
145
|
-
| c[A-Za-z]
|
|
146
|
-
| [gk]<[^>]+>
|
|
147
|
-
| [pPu]\{[^\}]+\}
|
|
148
|
-
| u[A-Fa-f\d]{4}
|
|
149
|
-
| x[A-Fa-f\d]{2}
|
|
150
|
-
)
|
|
151
|
-
| \((?: \? (?: [:=!>]
|
|
152
|
-
| <(?:[=!]|[^>]+>)
|
|
153
|
-
| [A-Za-z\-]+:
|
|
154
|
-
| \(DEFINE\)
|
|
155
|
-
))?
|
|
156
|
-
| (?<qBase>${n0})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
157
|
-
| \\?.
|
|
158
|
-
`.replace(/\s+/g,""),"gsu"),n2=String.raw,n5=n2`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,n3=n2`\(\?R=(?<rDepth>[^\)]+)\)|${n5}`,n6=n2`\(\?<(?![=!])(?<captureName>[^>]+)>`,n9=n2`${n6}|(?<unnamed>\()(?!\?)`,n4=RegExp(n2`${n6}|${n3}|\(\?|\\?.`,"gsu"),n8="Cannot use multiple overlapping recursions";function n7(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,s){let o=new Set;r&&nQ(e+t,n6,({groups:{captureName:e}})=>{o.add(e)},nX.DEFAULT);let l=[n,r?o:null,i,a,s];return`${e}${rt(`(?:${e}`,"forward",...l)}(?:)${rt(`${t})`,"backward",...l)}${t}`}function rt(e,t,n,r,i,a,s){let o=e=>"forward"===t?e+2:n-e+2-1,l="";for(let t=0;t<n;t++){let n=o(t);l+=nQ(e,n2`${n9}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:o,backref:l}})=>{if(l&&r&&!r.has(l))return e;let c=`_$${n}`;if(o||t){let n=s+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),o?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 s=0;nQ(t,n9,()=>s++,nX.DEFAULT);let o=a-s+i,l=new Map;return e.forEach((e,t)=>{let i=(r-s*n)/n,a=s*n,c=t>o+s?t+r:t,u=[];for(let t of e)if(t<=o)u.push(t);else if(t>o+s+i)u.push(t+r);else if(t<=o+s)for(let e=0;e<=n;e++)u.push(t+s*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={},rs=globalThis.RegExp;function ro(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 rs("(?i:)")}catch{return!1}return!0})(),ra.unicodeSets=(()=>{try{new rs("[[]]","v")}catch{return!1}return!0})(),ra.bugFlagVLiteralHyphenIsRange=!!ra.unicodeSets&&(()=>{try{new rs(ri`[\d\-a]`,"v")}catch{return!0}return!1})(),ra.bugNestedClassIgnoresNegation=ra.unicodeSets&&new rs("[[^a]]","v").test("a");var rc={ES2025:2025,ES2024:2024,ES2018:2018},ru={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function rh(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 rd=new Set([rr(304),rr(305)]),rp=ri`[\p{L}\p{M}\p{N}\p{Pc}]`;function rf(e){if(rd.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=rb.get(n),a=rg.get(n),s=ry.get(n);return 1==[...r].length&&t.add(r),s&&t.add(s),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var rm=new Map(`C Other
|
|
159
|
-
Cc Control cntrl
|
|
160
|
-
Cf Format
|
|
161
|
-
Cn Unassigned
|
|
162
|
-
Co Private_Use
|
|
163
|
-
Cs Surrogate
|
|
164
|
-
L Letter
|
|
165
|
-
LC Cased_Letter
|
|
166
|
-
Ll Lowercase_Letter
|
|
167
|
-
Lm Modifier_Letter
|
|
168
|
-
Lo Other_Letter
|
|
169
|
-
Lt Titlecase_Letter
|
|
170
|
-
Lu Uppercase_Letter
|
|
171
|
-
M Mark Combining_Mark
|
|
172
|
-
Mc Spacing_Mark
|
|
173
|
-
Me Enclosing_Mark
|
|
174
|
-
Mn Nonspacing_Mark
|
|
175
|
-
N Number
|
|
176
|
-
Nd Decimal_Number digit
|
|
177
|
-
Nl Letter_Number
|
|
178
|
-
No Other_Number
|
|
179
|
-
P Punctuation punct
|
|
180
|
-
Pc Connector_Punctuation
|
|
181
|
-
Pd Dash_Punctuation
|
|
182
|
-
Pe Close_Punctuation
|
|
183
|
-
Pf Final_Punctuation
|
|
184
|
-
Pi Initial_Punctuation
|
|
185
|
-
Po Other_Punctuation
|
|
186
|
-
Ps Open_Punctuation
|
|
187
|
-
S Symbol
|
|
188
|
-
Sc Currency_Symbol
|
|
189
|
-
Sk Modifier_Symbol
|
|
190
|
-
Sm Math_Symbol
|
|
191
|
-
So Other_Symbol
|
|
192
|
-
Z Separator
|
|
193
|
-
Zl Line_Separator
|
|
194
|
-
Zp Paragraph_Separator
|
|
195
|
-
Zs Space_Separator
|
|
196
|
-
ASCII
|
|
197
|
-
ASCII_Hex_Digit AHex
|
|
198
|
-
Alphabetic Alpha
|
|
199
|
-
Any
|
|
200
|
-
Assigned
|
|
201
|
-
Bidi_Control Bidi_C
|
|
202
|
-
Bidi_Mirrored Bidi_M
|
|
203
|
-
Case_Ignorable CI
|
|
204
|
-
Cased
|
|
205
|
-
Changes_When_Casefolded CWCF
|
|
206
|
-
Changes_When_Casemapped CWCM
|
|
207
|
-
Changes_When_Lowercased CWL
|
|
208
|
-
Changes_When_NFKC_Casefolded CWKCF
|
|
209
|
-
Changes_When_Titlecased CWT
|
|
210
|
-
Changes_When_Uppercased CWU
|
|
211
|
-
Dash
|
|
212
|
-
Default_Ignorable_Code_Point DI
|
|
213
|
-
Deprecated Dep
|
|
214
|
-
Diacritic Dia
|
|
215
|
-
Emoji
|
|
216
|
-
Emoji_Component EComp
|
|
217
|
-
Emoji_Modifier EMod
|
|
218
|
-
Emoji_Modifier_Base EBase
|
|
219
|
-
Emoji_Presentation EPres
|
|
220
|
-
Extended_Pictographic ExtPict
|
|
221
|
-
Extender Ext
|
|
222
|
-
Grapheme_Base Gr_Base
|
|
223
|
-
Grapheme_Extend Gr_Ext
|
|
224
|
-
Hex_Digit Hex
|
|
225
|
-
IDS_Binary_Operator IDSB
|
|
226
|
-
IDS_Trinary_Operator IDST
|
|
227
|
-
ID_Continue IDC
|
|
228
|
-
ID_Start IDS
|
|
229
|
-
Ideographic Ideo
|
|
230
|
-
Join_Control Join_C
|
|
231
|
-
Logical_Order_Exception LOE
|
|
232
|
-
Lowercase Lower
|
|
233
|
-
Math
|
|
234
|
-
Noncharacter_Code_Point NChar
|
|
235
|
-
Pattern_Syntax Pat_Syn
|
|
236
|
-
Pattern_White_Space Pat_WS
|
|
237
|
-
Quotation_Mark QMark
|
|
238
|
-
Radical
|
|
239
|
-
Regional_Indicator RI
|
|
240
|
-
Sentence_Terminal STerm
|
|
241
|
-
Soft_Dotted SD
|
|
242
|
-
Terminal_Punctuation Term
|
|
243
|
-
Unified_Ideograph UIdeo
|
|
244
|
-
Uppercase Upper
|
|
245
|
-
Variation_Selector VS
|
|
246
|
-
White_Space space
|
|
247
|
-
XID_Continue XIDC
|
|
248
|
-
XID_Start XIDS`.split(/\s/).map(e=>[nG(e),e])),rg=new Map([["s",rr(383)],[rr(383),"s"]]),ry=new Map([[rr(223),rr(7838)],[rr(107),rr(8490)],[rr(229),rr(8491)],[rr(969),rr(8486)]]),rb=new Map([rx(453),rx(456),rx(459),rx(498),...rE(8072,8079),...rE(8088,8095),...rE(8104,8111),rx(8124),rx(8140),rx(8188)]),rk=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 rx(e){let t=rr(e);return[t.toLowerCase(),t]}function rE(e,t){return(function(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n})(e,t).map(e=>rx(e))}var rv=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),r_={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if("repeater"===i){let e=nD();e.body[0].body.push(nO({negate:!0,body:r}),nB("Any"));let i=nD();i.body[0].body.push(nP("greedy",0,1/0,e)),n(rO(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=nD({flags:n});t.body[0].body=e.body,e.body=[rO(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:s},o){let{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:h,supportedGNodes:d,wordIsAscii:p}=o;if("text_segment_boundary"===l)throw Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if("line_end"===l)s(rO(nO({body:[nS({body:[nC("string_end")]}),nS({body:[nI(10)]})]}),t));else if("line_start"===l)s(rO(rL(ri`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l)if(d.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)))s(rO(nO({negate:!0}),t));else if(h)throw Error(ri`Uses "\G" in a way that requires a subclass`);else s(rD(nC("string_start"),t)),o.strategy="clip_search"}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)s(rO(rL(ri`(?=\n?\z)`),t));else if("word_boundary"===l){if(!p&&!u){let e=`(?:(?<=${rp})(?!${rp})|(?<!${rp})(?=${rp}))`,n=`(?:(?<=${rp})(?=${rp})|(?<!${rp})(?!${rp}))`;s(rO(rL(c?n:e),t))}}else throw Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||rI(n)||(e.ref=n=rC(n,t))},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!rI(r)&&(e.name=r=rC(r,t)),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){"intersection"===t.kind&&n(rO(nL({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:s,wordIsAscii:o}){let{kind:l,negate:c,value:u}=e;if(a&&("digit"===l||"digit"===u))return void n(rD(nR("digit",{negate:c}),t));if(s&&("space"===l||"space"===u))return void n(rO(rR(rL("[ -\r ]"),c),t));if(o&&("word"===l||"word"===u))return void n(rD(nR("word",{negate:c}),t));if("any"===l)n(rD(nB("Any"),t));else if("digit"===l)n(rD(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(rO(rL(ri`(?>\r\n|${i?ri`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)n(rD(nB("AHex",{negate:c}),t));else if("newline"===l)n(rO(rL(c?"[^\n]":"(?>\r\n?|[\n\v\f\x85\u2028\u2029])"),t));else if("posix"===l)if(i||"graph"!==u&&"print"!==u)n(rO(rR(rL(rk.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(rO(rL(`[${e}]`),t))}else if("property"===l)rm.has(nG(u))||(e.key="sc");else if("space"===l)n(rD(nB("space",{negate:c}),t));else if("word"===l)n(rO(rR(rL(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:s}){let{kind:o,flags:l}=e;if("flags"===o)if(l.enable||l.disable){let e=nD({flags:l});e.body[0].body=s(),i(rO(e,t),{traverse:!0})}else r();else if("keep"===o){let e=n.body[0],r=1===n.body.length&&nT(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 s=nO({behind:!0});s.body[0].body=a(),i(rO(s,t))}else throw Error(`Unexpected directive kind "${o}"`)},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(rO(nO({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=nD();t.body[0].body.push(e.body),e.body=rO(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&&nT(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||rI(n)||(e.ref=n=rC(n,t))}},rT={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:s,openRefs:o,reffedNodesByReferencer:l}){let c=i.get(e);if(c&&o.has(e.number)){let r=rD(rS(e.number),t);l.set(r,o.get(e.number)),n(r);return}o.set(e.number,e),s.set(e.number,[]),e.name&&rl(s,e.name,[]);let u=s.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(s.get(e.number).push({node:e,origin:c}),e.name&&s.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=ro(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 s=r.subroutineRefMap.get(a),o=0===a,l=o?rS(0):function e(t,n,r,i){let a=Array.isArray(t)?[]:{};for(let[s,o]of Object.entries(t))"parent"===s?a.parent=Array.isArray(r)?i:r:o&&"object"==typeof o?a[s]=e(o,n,a,r):("type"===s&&"CapturingGroup"===o&&n.set(a,n.get(t)??t),a[s]=o);return a}(s,r.groupOriginByCopy,null),c=l;if(!o){var u,h;let e=rN(function(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}(s,e=>"Group"===e.type&&!!e.flags)),t=e?ro(r.globalFlags,e):r.globalFlags;u=t,h=r.currentFlags,(u.dotAll!==h.dotAll||u.ignoreCase!==h.ignoreCase)&&(c=nD({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(rO(c,t),{traverse:!o})}},rA={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 rM(n.parent)){if(t===n)break;if(t===e||function e(t,n){for(let r of rM(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(rO(nD({atomic:!0,body:i.reverse().map(e=>nS({body:[nN(e.number)]}))}),t)):e.ref=i[0].number:n(rO(nO({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=nM();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function rw(e){nK(e,{"*"({node:e,parent:t}){e.parent=t}})}function rS(e){let t=nF(e);return t.isRecursive=!0,t}function rC(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 rM(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function rI(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function rL(e,t){let n=nw(e,{...t,unicodePropertyMap:rm}).body;return n.length>1||n[0].body.length>1?nD({body:n}):n[0].body[0]}function rR(e,t){return e.negate=t,e}function rD(e,t){return e.parent=t,e}function rO(e,t){return rw(e),e.parent=t,e}var rP={"*":{enter({node:e},t){if(rK(e)){let n=t.getCurrentModI();t.pushModI(e.flags?ro({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){rK(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){rG(rr(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),rz(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&rv.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,s={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(s.hidden=!0,a>o.number&&(s.transferTo=o.number)),t.captureMap.set(a,s),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:e},t){let n=rr(e),r=rV(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&rG(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:s}=e;if("intersection"===r&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");ra.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(rW)&&(s=[nI(45),...s.filter(e=>!rW(e))]);let o=()=>`[${i?"^":""}${s.map(n).join("intersection"===r?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||ra.bugNestedClassIgnoresNegation)&&!i){let t=s.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let r=nD(),i=r.body[0];return r.parent=a,i.parent=r,e.body=s=s.filter(e=>!t.includes(e)),s.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=nS({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=o();return t.inCharClass=!1,r}let l=s[0];if("union"===r&&!i&&l&&((!t.useFlagV||!t.verbose)&&"union"===a.kind&&!(ra.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===a.kind&&1===s.length&&"CharacterClassRange"!==l.type))return s.map(n).join("");if(!t.useFlagV&&"CharacterClass"===a.type)throw Error("Uses nested character class in a way that requires min target ES2024");return o()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=rV(n,i),s=rV(r,i),o=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})(rz(e)).forEach(e=>{o.add(Array.isArray(e)?`${rV(e[0],i)}-${rV(e[1],i)}`:rV(e,i))}),`${a}-${s}${[...o].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&&rv.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 s=i.currentFlags;n&&(i.currentFlags=ro(s,n));let o=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)}${o})`:o;return i.currentFlags=s,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(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),rU=new Set(["-","\\","]","^","["]),rH=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),r$=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`]]),rj=/^\p{Cased}$/u;function rG(e){return rj.test(e)}function rz(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(!rG(t))continue;let s=rf(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(s.length&&(a.push(...s),n))break}return a}function rV(e,{escDigit:t,inCharClass:n,useFlagV:r}){var i;if(r$.has(e))return r$.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?rH:rU:rB).has(a)?"\\":"")+a}function rK({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function rW({type:e,value:t}){return"Character"===e&&45===t}var rq=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}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.#n=t.source,t instanceof e&&(this.#e=t.#e,this.#r=t.#r,this.#i=t.#i,this.rawOptions=t.rawOptions)}else{const e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?"":t,n),this.#n=t,this.#e=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.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if("clip_search"===this.#i&&n&&r){this.lastIndex=0;let e=this.#a(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.#a(t)}#a(e){let t;this.#t.lastIndex=this.lastIndex;let n=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!n||!this.#e.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:s}=this.#e.get(e)??{};if(a?i.push(null):(i.push(n.length),n.push(r[e]),this.hasIndices&&n.indices.push(t[e])),s&&void 0!==r[e]){let a=i[s];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(n[a]=r[e],this.hasIndices&&(n.indices[a]=t[e]),n.groups){this.#r||(this.#r=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:s}}=t;"["===e?i++:i?"]"===e&&i--:n&&(a++,s&&r.set(a,s))}return r}(this.source));let i=this.#r.get(s);i&&(n.groups[i]=r[e],this.hasIndices&&(n.indices.groups[i]=t[e]))}}}return n}};class rY{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 s=n.exec(r);if(!s)continue;if(s.index===t)return a(e,s,0);i.push([e,s,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,s,o=rh(t),l=(n=nw(e,{flags:o.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:o.rules.captureGroup,singleline:o.rules.singleline},skipBackrefValidation:o.rules.allowOrphanBackrefs,unicodePropertyMap:rm}),r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...{accuracy:o.accuracy,asciiWordBoundaries:o.rules.asciiWordBoundaries,avoidSubclass:o.avoidSubclass,bestEffortTarget:o.target}},rw(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},nK(n,r_,i),s={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},nK(n,rT,s),nK(n,rA,{groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer}),n._originMap=s.groupOriginByCopy,n._strategy=i.strategy,n),c=function(e,t){let n=rh(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 s=null,o=null;if(!i){let t=[e.flags.ignoreCase];nK(e,rP,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?s=!0:o=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!o)},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&&s&&o),useFlagMods:i,useFlagV:r,verbose:n.verbose};function h(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,h)}let d={pattern:e.body.map(h).join("|"),flags:h(e.flags),options:{...e.options}};return r||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&d._hiddenCaptures.push(t),e.transferTo&&rl(d._captureTransfers,e.transferTo,[]).push(t)}),d}(l,o),u=function(e,t){let n,{hiddenCaptures:r,mode:i}={hiddenCaptures:[],mode:"plugin",...t},a=t?.captureTransfers??new Map;if(!RegExp(n3,"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 s=[],o=nZ(e,n2`\\[1-9]`,nX.DEFAULT),l=new Map,c=[],u=!1,h=0,d=0;for(n4.lastIndex=0;n=n4.exec(e);){let{0:t,groups:{captureName:p,rDepth:f,gRNameOrNum:m,gRDepth:g}}=n;if("["===t)h++;else if(h)"]"===t&&h--;else if(f){if(n7(f),u)throw Error(n8);if(o)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,n3,nX.DEFAULT))throw Error(n8);let c=f-1;e=re(t,l,c,!1,r,s,d),a=rn(a,t,c,s.length,0,d);break}else if(m){n7(g);let h=!1;for(let e of c)if(e.name===m||e.num===+m){if(h=!0,e.hasRecursedWithin)throw Error(n8);break}if(!h)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,s=1;for(;n=r.exec(e);){let[e]=n;if("["===e)a++;else if(a)"]"===e&&a--;else if("("===e)s++;else if(")"===e&&!--s){i=n.index;break}}return e.slice(t,i)}(e,p);if(o&&nZ(f,n2`${n6}|\((?!\?)`,nX.DEFAULT))throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let y=e.slice(p,n.index),b=f.slice(y.length+t.length),k=s.length,x=g-1,E=re(y,b,x,!0,r,s,d);a=rn(a,y,x,s.length-k,k,d);let v=e.slice(0,p),_=e.slice(p+f.length);e=`${v}${E}${_}`,n4.lastIndex+=E.length-t.length-y.length-b.length,c.forEach(e=>e.hasRecursedWithin=!0),u=!0}else if(p)d++,l.set(String(d),n4.lastIndex),l.set(p,n4.lastIndex),c.push({num:d,name:p});else if("("===t[0]){let e="("===t;e&&(d++,l.set(String(d),n4.lastIndex)),c.push(e?{num:d}:{})}else")"===t&&c.pop()}return r.push(...s),{pattern:e,captureTransfers:a,hiddenCaptures:r}}(c.pattern,{captureTransfers:c._captureTransfers,hiddenCaptures:c._hiddenCaptures,mode:"external"}),h=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="(?:(?=(",s=[0],o=[],l=0,c=0,u=NaN;do{let t;n=!1;let h=0,d=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:y}}=t;if("["===f)h++;else if(h)"]"===f&&h--;else if("(?>"!==f||p){if(p&&y)d++;else if(g)p?d++:(l++,s.push(l+c));else if(")"===f&&p){if(!d){let t=l+ ++c;e=`${e.slice(0,u)}${a}${e.slice(u+3,m)}))<$$${t}>)${e.slice(m+1)}`,n=!0,o.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}d--}}else u=m,p=!0}}while(n);return r.push(...o),{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>s.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${s[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="",s=0;for(n1.lastIndex=0;t=n1.exec(e);){let{0:c,index:u,groups:{qBase:h,qMod:d,invalidQ:p}}=t;if("["===c)s||(i=u),s++;else if("]"===c)s?s--:i=null;else if(!s)if("+"===d&&a&&!a.startsWith("(")){if(p)throw Error(`Invalid quantifier "${c}"`);let t=-1;if(/^\{\d+\}$/.test(h)){var o,l;o=e,l=u+h.length,e=o.slice(0,l)+""+o.slice(l+d.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)}${h})${e.slice(u+c.length)}`}else e=`${e.slice(0,u-a.length)}(?>${a}${h})${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}),d={pattern:h.pattern,flags:`${o.hasIndices?"d":""}${o.global?"g":""}${c.flags}${c.options.disable.v?"u":"v"}`};if(o.avoidSubclass){if(o.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=h.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(h.captureTransfers),n=l._strategy,r=d.pattern.length>=o.lazyCompileLength;(e.length||t.length||n||r)&&(d.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...n&&{strategy:n},...r&&{lazyCompile:r}})}return d}(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...{target:t.target}})).options?new rq(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)},{createScanner:e=>new rY(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(h)),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"},r3=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,s=rJ(t),o=[r5(n[0]),r5(n[1])],l=(i=e.slice(0,100),a=e.length>100?e.slice(-100):"",`${s}:${o[0]}:${o[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(s)?s:"text",n).then(t=>{let n=t.getLoadedLanguages().includes(s)?s:"text",r=t.codeToTokens(e,{lang:n,themes:{light:o[0],dark:o[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)}}}()},74598:(e,t,n)=>{"use strict";function r(e){var t;return null!=e&&"function"!=typeof e&&Number.isSafeInteger(t=e.length)&&t>=0}n.d(t,{X:()=>r})},74873:(e,t,n)=>{"use strict";n.d(t,{N:()=>k});var r=n(7962),i=n(69266),a=n(82544),s=n(83864),o=n(59863),l=n(35182),c=n(41426),u=n(55263);function h(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,c.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,c.s)(e)&&e.offsetWidth||0,r=(0,c.s)(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function p({children:e,isPresent:t,anchorX:n,anchorY:a,root:s,pop:o}){let l=(0,i.useId)(),c=(0,i.useRef)(null),f=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:m}=(0,i.useContext)(u.Q),g=function(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=h(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():h(e[t],null)}}}}(...e),e)}(c,!1!==o?e.props?.ref??e?.ref:void 0);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:u,right:h,bottom:d,direction:p}=f.current;if(t||!1===o||!c.current||!e||!r)return;let g="rtl"===p,y="left"===n?g?`right: ${h}`:`left: ${u}`:g?`left: ${u}`:`right: ${h}`,b="bottom"===a?`bottom: ${d}`:`top: ${i}`;c.current.dataset.motionPopId=l;let k=document.createElement("style");m&&(k.nonce=m);let x=s??document.head;return x.appendChild(k),k.sheet&&k.sheet.insertRule(`
|
|
249
|
-
[data-motion-pop-id="${l}"] {
|
|
250
|
-
position: absolute !important;
|
|
251
|
-
width: ${e}px !important;
|
|
252
|
-
height: ${r}px !important;
|
|
253
|
-
${y}px !important;
|
|
254
|
-
${b}px !important;
|
|
255
|
-
}
|
|
256
|
-
`),()=>{c.current?.removeAttribute("data-motion-pop-id"),x.contains(k)&&x.removeChild(k)}},[t]),(0,r.jsx)(d,{isPresent:t,childRef:c,sizeRef:f,pop:o,children:!1===o?e:i.cloneElement(e,{ref:g})})}let f=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:c,presenceAffectsLayout:u,mode:h,anchorX:d,anchorY:f,root:g})=>{let y=(0,s.M)(m),b=(0,i.useId)(),k=(0,i.useRef)(n),x=(0,i.useRef)(a);(0,o.E)(()=>{k.current=n,x.current=a});let E=!0,v=(0,i.useMemo)(()=>(E=!1,{id:b,initial:t,isPresent:n,custom:c,onExitComplete:e=>{for(let t of(y.set(e,!0),y.values()))if(!t)return;a&&a()},register:e=>(y.set(e,!1),()=>{y.delete(e),k.current||y.size||x.current?.()})}),[n,y,a]);return u&&E&&(v={...v}),(0,i.useMemo)(()=>{y.forEach((e,t)=>y.set(t,!1))},[n]),i.useEffect(()=>{n||y.size||!a||a()},[n]),e=(0,r.jsx)(p,{pop:"popLayout"===h,isPresent:n,anchorX:d,anchorY:f,root:g,children:e}),(0,r.jsx)(l.t.Provider,{value:v,children:e})};function m(){return new Map}var g=n(77065);let y=e=>e.key||"";function b(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let k=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:u="sync",propagate:h=!1,anchorX:d="left",anchorY:p="top",root:m})=>{let[k,x]=(0,g.xQ)(h),E=(0,i.useMemo)(()=>b(e),[e]),v=h&&!k?[]:E.map(y),_=(0,i.useRef)(!0),T=(0,i.useRef)(E),A=(0,s.M)(()=>new Map),w=(0,i.useRef)(new Set),[S,C]=(0,i.useState)(E),[N,M]=(0,i.useState)(E);(0,o.E)(()=>{!h||k||N.length||x?.()},[k,h,N.length,x]),(0,o.E)(()=>{_.current=!1,T.current=E;for(let e=0;e<N.length;e++){let t=y(N[e]);v.includes(t)?(A.delete(t),w.current.delete(t)):!0!==A.get(t)&&A.set(t,!1)}},[N,v.length,v.join("-")]);let I=[];if(E!==S){let e=[...E];for(let t=0;t<N.length;t++){let n=N[t],r=y(n);v.includes(r)||(e.splice(t,0,n),I.push(n))}return"wait"===u&&I.length&&(e=I),M(b(e)),C(E),null}let{forceRender:L}=(0,i.useContext)(a.L);return(0,r.jsx)(r.Fragment,{children:N.map(e=>{let i=y(e),a=(!h||!!k)&&(E===N||v.includes(i));return(0,r.jsx)(f,{isPresent:a,initial:(!_.current||!!n)&&void 0,custom:t,presenceAffectsLayout:c,mode:u,root:m,onExitComplete:a?void 0:()=>{if(w.current.has(i)||!A.has(i))return;w.current.add(i),A.set(i,!0);let e=!0;A.forEach(t=>{t||(e=!1)}),e&&(L?.(),M(T.current),h&&x?.(),l&&l())},anchorX:d,anchorY:p,children:e},i)})})}},75851:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("shield-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]])},76085:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},76840:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(47057),i=n(2171);let a=(e,t=100)=>{let n=r.A.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,((e,t,n=50)=>{let{r:a,g:s,b:o,a:l}=r.A.parse(e),{r:c,g:u,b:h,a:d}=r.A.parse(t),p=n/100,f=2*p-1,m=l-d,g=((f*m==-1?f:(f+m)/(1+f*m))+1)/2,y=1-g;return(0,i.A)(a*g+c*y,s*g+u*y,o*g+h*y,l*p+d*(1-p))})(n,e,t)}},77065:(e,t,n)=>{"use strict";n.d(t,{tF:()=>s,xQ:()=>a});var r=n(69266),i=n(35182);function a(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:s,register:o}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return o(l)},[e]);let c=(0,r.useCallback)(()=>e&&s&&s(l),[l,s,e]);return!n&&s?[!1,c]:[!0]}function s(){var e;return null===(e=(0,r.useContext)(i.t))||e.isPresent}},77483:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]])},78844:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("circle-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}],["path",{d:"M19.08 19.08A10 10 0 1 1 4.92 4.92",key:"1ablyi"}]])},79566:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},79615:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]])},82544:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(69266).createContext)({})},83864:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(69266);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},84539:(e,t,n)=>{"use strict";n.d(t,{H:()=>tF,r:()=>tP});var r,i=n(39410);function a(e){return null==e}function s(e){return"object"==typeof e&&null!==e}function o(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r}function l(e){return 0===e&&-1/0==1/e}(0,i.K)(a,"isNothing"),(0,i.K)(s,"isObject"),(0,i.K)(function(e){return Array.isArray(e)?e:a(e)?[]:[e]},"toArray"),(0,i.K)(function(e,t){var n,r,i,a;if(t)for(n=0,r=(a=Object.keys(t)).length;n<r;n+=1)e[i=a[n]]=t[i];return e},"extend"),(0,i.K)(o,"repeat"),(0,i.K)(l,"isNegativeZero");function c(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function u(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=c(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function h(e,t,n,r,i){var a="",s="",o=Math.floor(i/2)-1;return r-t>o&&(t=r-o+(a=" ... ").length),n-r>o&&(n=r+o-(s=" ...").length),{str:a+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+a.length}}function d(e,t){return o(" ",t-e.length)+e}function p(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a=-1;s=n.exec(e.buffer);)i.push(s.index),r.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var s,l,c,u="",p=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+p+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)c=h(e.buffer,r[a-l],i[a-l],e.position-(r[a]-r[a-l]),f),u=o(" ",t.indent)+d((e.line-l+1).toString(),p)+" | "+c.str+"\n"+u;for(c=h(e.buffer,r[a],i[a],e.position,f),u+=o(" ",t.indent)+d((e.line+1).toString(),p)+" | "+c.str+"\n"+o("-",t.indent+p+3+c.pos)+"^\n",l=1;l<=t.linesAfter&&!(a+l>=i.length);l++)c=h(e.buffer,r[a+l],i[a+l],e.position-(r[a]-r[a+l]),f),u+=o(" ",t.indent)+d((e.line+l+1).toString(),p)+" | "+c.str+"\n";return u.replace(/\n$/,"")}(0,i.K)(c,"formatError"),(0,i.K)(u,"YAMLException$1"),u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u.prototype.toString=(0,i.K)(function(e){return this.name+": "+c(this,e)},"toString"),(0,i.K)(h,"getLine"),(0,i.K)(d,"padStart"),(0,i.K)(p,"makeSnippet");var f=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],m=["scalar","sequence","mapping"];function g(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function y(e,t){if(Object.keys(t=t||{}).forEach(function(t){if(-1===f.indexOf(t))throw new u('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=g(t.styleAliases||null),-1===m.indexOf(this.kind))throw new u('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}function b(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function k(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for((0,i.K)(r,"collectType"),e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}function x(e){return this.extend(e)}(0,i.K)(g,"compileStyleAliases"),(0,i.K)(y,"Type$1"),(0,i.K)(b,"compileList"),(0,i.K)(k,"compileMap"),(0,i.K)(x,"Schema$1"),x.prototype.extend=(0,i.K)(function(e){var t=[],n=[];if(e instanceof y)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new u("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof y))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new u("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new u("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof y))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(x.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=b(r,"implicit"),r.compiledExplicit=b(r,"explicit"),r.compiledTypeMap=k(r.compiledImplicit,r.compiledExplicit),r},"extend");var E=new x({explicit:[new y("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,i.K)(function(e){return null!==e?e:""},"construct")}),new y("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,i.K)(function(e){return null!==e?e:[]},"construct")}),new y("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,i.K)(function(e){return null!==e?e:{}},"construct")})]});function v(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function _(){return null}function T(e){return null===e}(0,i.K)(v,"resolveYamlNull"),(0,i.K)(_,"constructYamlNull"),(0,i.K)(T,"isNull");var A=new y("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:_,predicate:T,represent:{canonical:(0,i.K)(function(){return"~"},"canonical"),lowercase:(0,i.K)(function(){return"null"},"lowercase"),uppercase:(0,i.K)(function(){return"NULL"},"uppercase"),camelcase:(0,i.K)(function(){return"Null"},"camelcase"),empty:(0,i.K)(function(){return""},"empty")},defaultStyle:"lowercase"});function w(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function S(e){return"true"===e||"True"===e||"TRUE"===e}function C(e){return"[object Boolean]"===Object.prototype.toString.call(e)}(0,i.K)(w,"resolveYamlBoolean"),(0,i.K)(S,"constructYamlBoolean"),(0,i.K)(C,"isBoolean");var N=new y("tag:yaml.org,2002:bool",{kind:"scalar",resolve:w,construct:S,predicate:C,represent:{lowercase:(0,i.K)(function(e){return e?"true":"false"},"lowercase"),uppercase:(0,i.K)(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:(0,i.K)(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function M(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function I(e){return 48<=e&&e<=55}function L(e){return 48<=e&&e<=57}function R(e){if(null===e)return!1;var t,n=e.length,r=0,i=!1;if(!n)return!1;if(("-"===(t=e[r])||"+"===t)&&(t=e[++r]),"0"===t){if(r+1===n)return!0;if("b"===(t=e[++r])){for(r++;r<n;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!M(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!I(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;r<n;r++)if("_"!==(t=e[r])){if(!L(e.charCodeAt(r)))return!1;i=!0}return!!i&&"_"!==t}function D(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),("-"===(t=n[0])||"+"===t)&&("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)}function O(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!l(e)}(0,i.K)(M,"isHexCode"),(0,i.K)(I,"isOctCode"),(0,i.K)(L,"isDecCode"),(0,i.K)(R,"resolveYamlInteger"),(0,i.K)(D,"constructYamlInteger"),(0,i.K)(O,"isInteger");var P=new y("tag:yaml.org,2002:int",{kind:"scalar",resolve:R,construct:D,predicate:O,represent:{binary:(0,i.K)(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:(0,i.K)(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:(0,i.K)(function(e){return e.toString(10)},"decimal"),hexadecimal:(0,i.K)(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),F=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function B(e){return null!==e&&!!F.test(e)&&"_"!==e[e.length-1]}function U(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?1/0:-1/0:".nan"===t?NaN:n*parseFloat(t,10)}(0,i.K)(B,"resolveYamlFloat"),(0,i.K)(U,"constructYamlFloat");var H=/^[-+]?[0-9]+e/;function $(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(l(e))return"-0.0";return n=e.toString(10),H.test(n)?n.replace("e",".e"):n}function j(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||l(e))}(0,i.K)($,"representYamlFloat"),(0,i.K)(j,"isFloat");var G=new y("tag:yaml.org,2002:float",{kind:"scalar",resolve:B,construct:U,predicate:j,represent:$,defaultStyle:"lowercase"}),z=E.extend({implicit:[A,N,P,G]}),V=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),K=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function W(e){return null!==e&&(null!==V.exec(e)||null!==K.exec(e))}function q(e){var t,n,r,i,a,s,o,l,c=0,u=null;if(null===(t=V.exec(e))&&(t=K.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],s=+t[5],o=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c*=1}return t[9]&&(u=(60*t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(n,r,i,a,s,o,c)),u&&l.setTime(l.getTime()-u),l}function Y(e){return e.toISOString()}(0,i.K)(W,"resolveYamlTimestamp"),(0,i.K)(q,"constructYamlTimestamp"),(0,i.K)(Y,"representYamlTimestamp");var X=new y("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:W,construct:q,instanceOf:Date,represent:Y});function Q(e){return"<<"===e||null===e}(0,i.K)(Q,"resolveYamlMerge");var Z=new y("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Q}),J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function ee(e){if(null===e)return!1;var t,n,r=0,i=e.length;for(n=0;n<i;n++)if(!((t=J.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0}function et(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|J.indexOf(r.charAt(t));return 0==(n=i%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)}function en(e){var t,n,r="",i=0,a=e.length;for(t=0;t<a;t++)t%3==0&&t&&(r+=J[i>>18&63],r+=J[i>>12&63],r+=J[i>>6&63],r+=J[63&i]),i=(i<<8)+e[t];return 0==(n=a%3)?(r+=J[i>>18&63],r+=J[i>>12&63],r+=J[i>>6&63],r+=J[63&i]):2===n?(r+=J[i>>10&63],r+=J[i>>4&63],r+=J[i<<2&63],r+=J[64]):1===n&&(r+=J[i>>2&63],r+=J[i<<4&63],r+=J[64],r+=J[64]),r}function er(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}(0,i.K)(ee,"resolveYamlBinary"),(0,i.K)(et,"constructYamlBinary"),(0,i.K)(en,"representYamlBinary"),(0,i.K)(er,"isBinary");var ei=new y("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ee,construct:et,predicate:er,represent:en}),ea=Object.prototype.hasOwnProperty,es=Object.prototype.toString;function eo(e){if(null===e)return!0;var t,n,r,i,a,s=[];for(t=0,n=e.length;t<n;t+=1){if(r=e[t],a=!1,"[object Object]"!==es.call(r))return!1;for(i in r)if(ea.call(r,i))if(a)return!1;else a=!0;if(!a||-1!==s.indexOf(i))return!1;s.push(i)}return!0}function el(e){return null!==e?e:[]}(0,i.K)(eo,"resolveYamlOmap"),(0,i.K)(el,"constructYamlOmap");var ec=new y("tag:yaml.org,2002:omap",{kind:"sequence",resolve:eo,construct:el}),eu=Object.prototype.toString;function eh(e){var t,n,r,i,a;if(null===e)return!0;for(a=Array(e.length),t=0,n=e.length;t<n;t+=1){if(r=e[t],"[object Object]"!==eu.call(r)||1!==(i=Object.keys(r)).length)return!1;a[t]=[i[0],r[i[0]]]}return!0}function ed(e){var t,n,r,i,a;if(null===e)return[];for(a=Array(e.length),t=0,n=e.length;t<n;t+=1)i=Object.keys(r=e[t]),a[t]=[i[0],r[i[0]]];return a}(0,i.K)(eh,"resolveYamlPairs"),(0,i.K)(ed,"constructYamlPairs");var ep=new y("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eh,construct:ed}),ef=Object.prototype.hasOwnProperty;function em(e){var t;if(null===e)return!0;for(t in e)if(ef.call(e,t)&&null!==e[t])return!1;return!0}function eg(e){return null!==e?e:{}}(0,i.K)(em,"resolveYamlSet"),(0,i.K)(eg,"constructYamlSet");var ey=new y("tag:yaml.org,2002:set",{kind:"mapping",resolve:em,construct:eg}),eb=z.extend({implicit:[X,Z],explicit:[ei,ec,ep,ey]}),ek=Object.prototype.hasOwnProperty,ex=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,eE=/[\x85\u2028\u2029]/,ev=/[,\[\]\{\}]/,e_=/^(?:!|!!|![a-z\-]+!)$/i,eT=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function eA(e){return Object.prototype.toString.call(e)}function ew(e){return 10===e||13===e}function eS(e){return 9===e||32===e}function eC(e){return 9===e||32===e||10===e||13===e}function eN(e){return 44===e||91===e||93===e||123===e||125===e}function eM(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function eI(e){return 120===e?2:117===e?4:8*(85===e)}function eL(e){return 48<=e&&e<=57?e-48:-1}function eR(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"\x85":95===e?"\xa0":76===e?"\u2028":80===e?"\u2029":""}function eD(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function eO(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}(0,i.K)(eA,"_class"),(0,i.K)(ew,"is_EOL"),(0,i.K)(eS,"is_WHITE_SPACE"),(0,i.K)(eC,"is_WS_OR_EOL"),(0,i.K)(eN,"is_FLOW_INDICATOR"),(0,i.K)(eM,"fromHexCode"),(0,i.K)(eI,"escapedHexLen"),(0,i.K)(eL,"fromDecimalCode"),(0,i.K)(eR,"simpleEscapeSequence"),(0,i.K)(eD,"charFromCodepoint"),(0,i.K)(eO,"setProperty");var eP=Array(256),eF=Array(256);for(r=0;r<256;r++)eP[r]=+!!eR(r),eF[r]=eR(r);function eB(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||eb,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function eU(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=p(n),new u(t,n)}function eH(e,t){throw eU(e,t)}function e$(e,t){e.onWarning&&e.onWarning.call(null,eU(e,t))}(0,i.K)(eB,"State$1"),(0,i.K)(eU,"generateError"),(0,i.K)(eH,"throwError"),(0,i.K)(e$,"throwWarning");var ej={YAML:(0,i.K)(function(e,t,n){var r,i,a;null!==e.version&&eH(e,"duplication of %YAML directive"),1!==n.length&&eH(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&eH(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),a=parseInt(r[2],10),1!==i&&eH(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,1!==a&&2!==a&&e$(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,i.K)(function(e,t,n){var r,i;2!==n.length&&eH(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],e_.test(r)||eH(e,"ill-formed tag handle (first argument) of the TAG directive"),ek.call(e.tagMap,r)&&eH(e,'there is a previously declared suffix for "'+r+'" tag handle'),eT.test(i)||eH(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){eH(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i},"handleTagDirective")};function eG(e,t,n,r){var i,a,s,o;if(t<n){if(o=e.input.slice(t,n),r)for(i=0,a=o.length;i<a;i+=1)9===(s=o.charCodeAt(i))||32<=s&&s<=1114111||eH(e,"expected valid JSON character");else ex.test(o)&&eH(e,"the stream contains non-printable characters");e.result+=o}}function ez(e,t,n,r){var i,a,o,l;for(s(n)||eH(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,l=(i=Object.keys(n)).length;o<l;o+=1)a=i[o],ek.call(t,a)||(eO(t,a,n[a]),r[a]=!0)}function eV(e,t,n,r,i,a,s,o,l){var c,u;if(Array.isArray(i))for(c=0,u=(i=Array.prototype.slice.call(i)).length;c<u;c+=1)Array.isArray(i[c])&&eH(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===eA(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===eA(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(a))for(c=0,u=a.length;c<u;c+=1)ez(e,t,a[c],n);else ez(e,t,a,n);else!e.json&&!ek.call(n,i)&&ek.call(t,i)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,eH(e,"duplicated mapping key")),eO(t,i,a),delete n[i];return t}function eK(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):eH(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function eW(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;eS(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do i=e.input.charCodeAt(++e.position);while(10!==i&&13!==i&&0!==i);if(ew(i))for(eK(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return -1!==n&&0!==r&&e.lineIndent<n&&e$(e,"deficient indentation"),r}function eq(e){var t,n=e.position;return!!((45===(t=e.input.charCodeAt(n))||46===t)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,0===(t=e.input.charCodeAt(n))||eC(t)))||!1}function eY(e,t){1===t?e.result+=" ":t>1&&(e.result+=o("\n",t-1))}function eX(e,t,n){var r,i,a,s,o,l,c,u,h=e.kind,d=e.result;if(eC(u=e.input.charCodeAt(e.position))||eN(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u||(63===u||45===u)&&(eC(r=e.input.charCodeAt(e.position+1))||n&&eN(r)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,s=!1;0!==u;){if(58===u){if(eC(r=e.input.charCodeAt(e.position+1))||n&&eN(r))break}else if(35===u){if(eC(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&eq(e)||n&&eN(u))break;else if(ew(u)){if(o=e.line,l=e.lineStart,c=e.lineIndent,eW(e,!1,-1),e.lineIndent>=t){s=!0,u=e.input.charCodeAt(e.position);continue}e.position=a,e.line=o,e.lineStart=l,e.lineIndent=c;break}s&&(eG(e,i,a,!1),eY(e,e.line-o),i=a=e.position,s=!1),eS(u)||(a=e.position+1),u=e.input.charCodeAt(++e.position)}return eG(e,i,a,!1),!!e.result||(e.kind=h,e.result=d,!1)}function eQ(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(eG(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else ew(n)?(eG(e,r,i,!0),eY(e,eW(e,!1,t)),r=i=e.position):e.position===e.lineStart&&eq(e)?eH(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);eH(e,"unexpected end of the stream within a single quoted scalar")}function eZ(e,t){var n,r,i,a,s,o;if(34!==(o=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(o=e.input.charCodeAt(e.position));)if(34===o)return eG(e,n,e.position,!0),e.position++,!0;else if(92===o){if(eG(e,n,e.position,!0),ew(o=e.input.charCodeAt(++e.position)))eW(e,!1,t);else if(o<256&&eP[o])e.result+=eF[o],e.position++;else if((s=eI(o))>0){for(i=s,a=0;i>0;i--)(s=eM(o=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+s:eH(e,"expected hexadecimal character");e.result+=eD(a),e.position++}else eH(e,"unknown escape sequence");n=r=e.position}else ew(o)?(eG(e,n,r,!0),eY(e,eW(e,!1,t)),n=r=e.position):e.position===e.lineStart&&eq(e)?eH(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position);eH(e,"unexpected end of the stream within a double quoted scalar")}function eJ(e,t){var n,r,i,a,s,o,l,c,u,h,d,p,f=!0,m=e.tag,g=e.anchor,y=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))s=93,c=!1,a=[];else{if(123!==p)return!1;s=125,c=!0,a={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),p=e.input.charCodeAt(++e.position);0!==p;){if(eW(e,!0,t),(p=e.input.charCodeAt(e.position))===s)return e.position++,e.tag=m,e.anchor=g,e.kind=c?"mapping":"sequence",e.result=a,!0;f?44===p&&eH(e,"expected the node content, but found ','"):eH(e,"missed comma between flow collection entries"),h=u=d=null,o=l=!1,63===p&&eC(e.input.charCodeAt(e.position+1))&&(o=l=!0,e.position++,eW(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,e9(e,t,1,!1,!0),h=e.tag,u=e.result,eW(e,!0,t),p=e.input.charCodeAt(e.position),(l||e.line===n)&&58===p&&(o=!0,p=e.input.charCodeAt(++e.position),eW(e,!0,t),e9(e,t,1,!1,!0),d=e.result),c?eV(e,a,y,h,u,d,n,r,i):o?a.push(eV(e,null,y,h,u,d,n,r,i)):a.push(u),eW(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(f=!0,p=e.input.charCodeAt(++e.position)):f=!1}eH(e,"unexpected end of the stream within a flow collection")}function e0(e,t){var n,r,i,a,s=1,l=!1,c=!1,u=t,h=0,d=!1;if(124===(a=e.input.charCodeAt(e.position)))r=!1;else{if(62!==a)return!1;r=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===s?s=43===a?3:2:eH(e,"repeat of a chomping mode identifier");else if((i=eL(a))>=0)0===i?eH(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?eH(e,"repeat of an indentation width identifier"):(u=t+i-1,c=!0);else break;if(eS(a)){do a=e.input.charCodeAt(++e.position);while(eS(a));if(35===a)do a=e.input.charCodeAt(++e.position);while(!ew(a)&&0!==a)}for(;0!==a;){for(eK(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!c||e.lineIndent<u)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>u&&(u=e.lineIndent),ew(a)){h++;continue}if(e.lineIndent<u){3===s?e.result+=o("\n",l?1+h:h):1===s&&l&&(e.result+="\n");break}for(r?eS(a)?(d=!0,e.result+=o("\n",l?1+h:h)):d?(d=!1,e.result+=o("\n",h+1)):0===h?l&&(e.result+=" "):e.result+=o("\n",h):e.result+=o("\n",l?1+h:h),l=!0,c=!0,h=0,n=e.position;!ew(a)&&0!==a;)a=e.input.charCodeAt(++e.position);eG(e,n,e.position,!1)}return!0}function e1(e,t){var n,r,i=e.tag,a=e.anchor,s=[],o=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,eH(e,"tab characters must not be used in indentation")),45===r&&eC(e.input.charCodeAt(e.position+1)));){if(o=!0,e.position++,eW(e,!0,-1)&&e.lineIndent<=t){s.push(null),r=e.input.charCodeAt(e.position);continue}if(n=e.line,e9(e,t,3,!1,!0),s.push(e.result),eW(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)eH(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!o&&(e.tag=i,e.anchor=a,e.kind="sequence",e.result=s,!0)}function e2(e,t,n){var r,i,a,s,o,l,c,u=e.tag,h=e.anchor,d={},p=Object.create(null),f=null,m=null,g=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),c=e.input.charCodeAt(e.position);0!==c;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,eH(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,(63===c||58===c)&&eC(r))63===c?(y&&(eV(e,d,p,f,m,null,s,o,l),f=m=g=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):eH(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;else{if(s=e.line,o=e.lineStart,l=e.position,!e9(e,n,2,!1,!0))break;if(e.line===a){for(c=e.input.charCodeAt(e.position);eS(c);)c=e.input.charCodeAt(++e.position);if(58===c)eC(c=e.input.charCodeAt(++e.position))||eH(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(eV(e,d,p,f,m,null,s,o,l),f=m=g=null),b=!0,y=!1,i=!1,f=e.tag,m=e.result;else{if(!b)return e.tag=u,e.anchor=h,!0;eH(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=h,!0;eH(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===a||e.lineIndent>t)&&(y&&(s=e.line,o=e.lineStart,l=e.position),e9(e,t,4,!0,i)&&(y?m=e.result:g=e.result),y||(eV(e,d,p,f,m,g,s,o,l),f=m=g=null),eW(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==c)eH(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&eV(e,d,p,f,m,null,s,o,l),b&&(e.tag=u,e.anchor=h,e.kind="mapping",e.result=d),b}function e5(e){var t,n,r,i,a=!1,s=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&eH(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(a=!0,i=e.input.charCodeAt(++e.position)):33===i?(s=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,a){do i=e.input.charCodeAt(++e.position);while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):eH(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!eC(i);)33===i&&(s?eH(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),e_.test(n)||eH(e,"named tag handle cannot contain such characters"),s=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),ev.test(r)&&eH(e,"tag suffix cannot contain flow indicator characters")}r&&!eT.test(r)&&eH(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){eH(e,"tag name is malformed: "+r)}return a?e.tag=r:ek.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:eH(e,'undeclared tag handle "'+n+'"'),!0}function e3(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&eH(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!eC(n)&&!eN(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&eH(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function e6(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!eC(r)&&!eN(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&eH(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),ek.call(e.anchorMap,n)||eH(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],eW(e,!0,-1),!0}function e9(e,t,n,r,i){var a,s,o,l,c,u,h,d,p,f=1,m=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=4===n||3===n,r&&eW(e,!0,-1)&&(m=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;e5(e)||e3(e);)eW(e,!0,-1)?(m=!0,o=a,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):o=!1;if(o&&(o=m||i),(1===f||4===n)&&(d=1===n||2===n?t:t+1,p=e.position-e.lineStart,1===f?o&&(e1(e,p)||e2(e,p,d))||eJ(e,d)?g=!0:(s&&e0(e,d)||eQ(e,d)||eZ(e,d)?g=!0:e6(e)?(g=!0,(null!==e.tag||null!==e.anchor)&&eH(e,"alias node should not have any properties")):eX(e,d,1===n)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(g=o&&e1(e,p))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&eH(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((h=e.implicitTypes[l]).resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(ek.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(l=0,h=null,c=(u=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,u[l].tag.length)===u[l].tag){h=u[l];break}h||eH(e,"unknown tag !<"+e.tag+">"),null!==e.result&&h.kind!==e.kind&&eH(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):eH(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function e4(e){var t,n,r,i,a=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(eW(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===i);){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!eC(i);)i=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),r=[],n.length<1&&eH(e,"directive name must not be less than one character in length");0!==i;){for(;eS(i);)i=e.input.charCodeAt(++e.position);if(35===i){do i=e.input.charCodeAt(++e.position);while(0!==i&&!ew(i));break}if(ew(i))break;for(t=e.position;0!==i&&!eC(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&eK(e),ek.call(ej,n)?ej[n](e,n,r):e$(e,'unknown document directive "'+n+'"')}if(eW(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,eW(e,!0,-1)):s&&eH(e,"directives end mark is expected"),e9(e,e.lineIndent-1,4,!1,!0),eW(e,!0,-1),e.checkLineBreaks&&eE.test(e.input.slice(a,e.position))&&e$(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&eq(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,eW(e,!0,-1));return}e.position<e.length-1&&eH(e,"end of the stream or a document separator is expected")}function e8(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new eB(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,eH(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)e4(n);return n.documents}function e7(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=e8(e,n);if("function"!=typeof t)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function te(e,t){var n=e8(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new u("expected a single document in the stream, but found more")}}(0,i.K)(eG,"captureSegment"),(0,i.K)(ez,"mergeMappings"),(0,i.K)(eV,"storeMappingPair"),(0,i.K)(eK,"readLineBreak"),(0,i.K)(eW,"skipSeparationSpace"),(0,i.K)(eq,"testDocumentSeparator"),(0,i.K)(eY,"writeFoldedLines"),(0,i.K)(eX,"readPlainScalar"),(0,i.K)(eQ,"readSingleQuotedScalar"),(0,i.K)(eZ,"readDoubleQuotedScalar"),(0,i.K)(eJ,"readFlowCollection"),(0,i.K)(e0,"readBlockScalar"),(0,i.K)(e1,"readBlockSequence"),(0,i.K)(e2,"readBlockMapping"),(0,i.K)(e5,"readTagProperty"),(0,i.K)(e3,"readAnchorProperty"),(0,i.K)(e6,"readAlias"),(0,i.K)(e9,"composeNode"),(0,i.K)(e4,"readDocument"),(0,i.K)(e8,"loadDocuments"),(0,i.K)(e7,"loadAll$1"),(0,i.K)(te,"load$1");var tt=Object.prototype.toString,tn=Object.prototype.hasOwnProperty,tr={};tr[0]="\\0",tr[7]="\\a",tr[8]="\\b",tr[9]="\\t",tr[10]="\\n",tr[11]="\\v",tr[12]="\\f",tr[13]="\\r",tr[27]="\\e",tr[34]='\\"',tr[92]="\\\\",tr[133]="\\N",tr[160]="\\_",tr[8232]="\\L",tr[8233]="\\P";var ti=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ta=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ts(e,t){var n,r,i,a,s,o,l;if(null===t)return{};for(i=0,n={},a=(r=Object.keys(t)).length;i<a;i+=1)o=String(t[s=r[i]]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=e.compiledTypeMap.fallback[s])&&tn.call(l.styleAliases,o)&&(o=l.styleAliases[o]),n[s]=o;return n}function to(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=0xffffffff)n="U",r=8;else throw new u("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+o("0",r-t.length)+t}function tl(e){this.schema=e.schema||eb,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=a(e.flowLevel)?-1:e.flowLevel,this.styleMap=ts(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function tc(e,t){for(var n,r=o(" ",t),i=0,a=-1,s="",l=e.length;i<l;)-1===(a=e.indexOf("\n",i))?(n=e.slice(i),i=l):(n=e.slice(i,a+1),i=a+1),n.length&&"\n"!==n&&(s+=r),s+=n;return s}function tu(e,t){return"\n"+o(" ",e.indent*t)}function th(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function td(e){return 32===e||9===e}function tp(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function tf(e){return tp(e)&&65279!==e&&13!==e&&10!==e}function tm(e,t,n){var r=tf(e),i=r&&!td(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||tf(t)&&!td(t)&&35===e||58===t&&i}function tg(e){return tp(e)&&65279!==e&&!td(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}function ty(e){return!td(e)&&58!==e}function tb(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?(r-55296)*1024+n-56320+65536:r}function tk(e){return/^\n* /.test(e)}function tx(e,t,n,r,i,a,s,o){var l,c=0,u=null,h=!1,d=!1,p=-1!==r,f=-1,m=tg(tb(e,0))&&ty(tb(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(!tp(c=tb(e,l)))return 5;m=m&&tm(c,u,o),u=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(10===(c=tb(e,l)))h=!0,p&&(d=d||l-f-1>r&&" "!==e[f+1],f=l);else if(!tp(c))return 5;m=m&&tm(c,u,o),u=c}d=d||p&&l-f-1>r&&" "!==e[f+1]}return h||d?n>9&&tk(e)?5:s?2===a?5:2:d?4:3:!m||s||i(e)?2===a?5:2:1}function tE(e,t,n,r,a){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==ti.indexOf(t)||ta.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),l=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return th(e,t)}switch((0,i.K)(c,"testAmbiguity"),tx(t,l,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,a)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+tv(t,e.indent)+t_(tc(t,s));case 4:return">"+tv(t,e.indent)+t_(tc(tT(t,o),s));case 5:return'"'+tw(t)+'"';default:throw new u("impossible error: invalid scalar style")}}()}function tv(e,t){var n=tk(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function t_(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function tT(e,t){for(var n,r,i,a=/(\n+)([^\n]*)/g,s=(a.lastIndex=n=-1!==(n=e.indexOf("\n"))?n:e.length,tA(e.slice(0,n),t)),o="\n"===e[0]||" "===e[0];i=a.exec(e);){var l=i[1],c=i[2];r=" "===c[0],s+=l+(o||r||""===c?"":"\n")+tA(c,t),o=r}return s}function tA(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,a=0,s=0,o=0,l="";n=i.exec(e);)(o=n.index)-a>t&&(r=s>a?s:o,l+="\n"+e.slice(a,r),a=r+1),s=o;return l+="\n",e.length-a>t&&s>a?l+=e.slice(a,s)+"\n"+e.slice(s+1):l+=e.slice(a),l.slice(1)}function tw(e){for(var t,n="",r=0,i=0;i<e.length;r>=65536?i+=2:i++)!(t=tr[r=tb(e,i)])&&tp(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||to(r);return n}function tS(e,t,n){var r,i,a,s="",o=e.tag;for(r=0,i=n.length;r<i;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(tL(e,t,a,!1,!1)||void 0===a&&tL(e,t,null,!1,!1))&&(""!==s&&(s+=","+(e.condenseFlow?"":" ")),s+=e.dump);e.tag=o,e.dump="["+s+"]"}function tC(e,t,n,r){var i,a,s,o="",l=e.tag;for(i=0,a=n.length;i<a;i+=1)s=n[i],e.replacer&&(s=e.replacer.call(n,String(i),s)),(tL(e,t+1,s,!0,!0,!1,!0)||void 0===s&&tL(e,t+1,null,!0,!0,!1,!0))&&(r&&""===o||(o+=tu(e,t)),e.dump&&10===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=l,e.dump=o||"[]"}function tN(e,t,n){var r,i,a,s,o,l="",c=e.tag,u=Object.keys(n);for(r=0,i=u.length;r<i;r+=1)o="",""!==l&&(o+=", "),e.condenseFlow&&(o+='"'),s=n[a=u[r]],e.replacer&&(s=e.replacer.call(n,a,s)),tL(e,t,a,!1,!1)&&(e.dump.length>1024&&(o+="? "),o+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),tL(e,t,s,!1,!1)&&(o+=e.dump,l+=o));e.tag=c,e.dump="{"+l+"}"}function tM(e,t,n,r){var i,a,s,o,l,c,h="",d=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new u("sortKeys must be a boolean or a function");for(i=0,a=p.length;i<a;i+=1)c="",r&&""===h||(c+=tu(e,t)),o=n[s=p[i]],e.replacer&&(o=e.replacer.call(n,s,o)),tL(e,t+1,s,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=tu(e,t)),tL(e,t+1,o,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,h+=c));e.tag=d,e.dump=h||"{}"}function tI(e,t,n){var r,i,a,s,o,l;for(a=0,s=(i=n?e.explicitTypes:e.implicitTypes).length;a<s;a+=1)if(((o=i[a]).instanceOf||o.predicate)&&(!o.instanceOf||"object"==typeof t&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(n?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,"[object Function]"===tt.call(o.represent))r=o.represent(t,l);else if(tn.call(o.represent,l))r=o.represent[l](t,l);else throw new u("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function tL(e,t,n,r,i,a,s){e.tag=null,e.dump=n,tI(e,n,!1)||tI(e,n,!0);var o=tt.call(e.dump),l=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var c,h,d,p="[object Object]"===o||"[object Array]"===o;if(p&&(d=-1!==(h=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(i=!1),d&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(p&&d&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===o)r&&0!==Object.keys(e.dump).length?(tM(e,t,e.dump,i),d&&(e.dump="&ref_"+h+e.dump)):(tN(e,t,e.dump),d&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===o)r&&0!==e.dump.length?(e.noArrayIndent&&!s&&t>0?tC(e,t-1,e.dump,i):tC(e,t,e.dump,i),d&&(e.dump="&ref_"+h+e.dump)):(tS(e,t,e.dump),d&&(e.dump="&ref_"+h+" "+e.dump));else if("[object String]"===o)"?"!==e.tag&&tE(e,e.dump,t,a,l);else{if("[object Undefined]"===o||e.skipInvalid)return!1;throw new u("unacceptable kind of an object to dump "+o)}null!==e.tag&&"?"!==e.tag&&(c=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),c="!"===e.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",e.dump=c+" "+e.dump)}return!0}function tR(e,t){var n,r,i=[],a=[];for(tD(e,i,a),n=0,r=a.length;n<r;n+=1)t.duplicates.push(i[a[n]]);t.usedDuplicates=Array(r)}function tD(e,t,n){var r,i,a;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===n.indexOf(i)&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)tD(e[i],t,n);else for(i=0,a=(r=Object.keys(e)).length;i<a;i+=1)tD(e[r[i]],t,n)}(0,i.K)(ts,"compileStyleMap"),(0,i.K)(to,"encodeHex"),(0,i.K)(tl,"State"),(0,i.K)(tc,"indentString"),(0,i.K)(tu,"generateNextLine"),(0,i.K)(th,"testImplicitResolving"),(0,i.K)(td,"isWhitespace"),(0,i.K)(tp,"isPrintable"),(0,i.K)(tf,"isNsCharOrWhitespace"),(0,i.K)(tm,"isPlainSafe"),(0,i.K)(tg,"isPlainSafeFirst"),(0,i.K)(ty,"isPlainSafeLast"),(0,i.K)(tb,"codePointAt"),(0,i.K)(tk,"needIndentIndicator");function tO(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}(0,i.K)(tx,"chooseScalarStyle"),(0,i.K)(tE,"writeScalar"),(0,i.K)(tv,"blockHeader"),(0,i.K)(t_,"dropEndingNewline"),(0,i.K)(tT,"foldString"),(0,i.K)(tA,"foldLine"),(0,i.K)(tw,"escapeString"),(0,i.K)(tS,"writeFlowSequence"),(0,i.K)(tC,"writeBlockSequence"),(0,i.K)(tN,"writeFlowMapping"),(0,i.K)(tM,"writeBlockMapping"),(0,i.K)(tI,"detectType"),(0,i.K)(tL,"writeNode"),(0,i.K)(tR,"getDuplicateReferences"),(0,i.K)(tD,"inspectNode"),(0,i.K)(function(e,t){var n=new tl(t=t||{});n.noRefs||tR(e,n);var r=e;return(n.replacer&&(r=n.replacer.call({"":r},"",r)),tL(n,0,r,!0,!0))?n.dump+"\n":""},"dump$1"),(0,i.K)(tO,"renamed");var tP=z,tF=te;tO("safeLoad","load"),tO("safeLoadAll","loadAll"),tO("safeDump","dump")},84571:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("list-todo",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]])},84630:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("panel-right-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]])},85037:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(69266),i=n(66758),a=n(69611),s=n(9542),o=n(25905);let l=r.forwardRef(function(e,t){let{render:n,className:r,style:l,id:c,...u}=e,h=(0,s.e)(c),d=(0,o.T)();return(0,i.g)(()=>(d(h),()=>{d(e=>e===h?void 0:e)}),[d,h]),(0,a.o)("div",e,{ref:t,props:{id:h,role:"presentation",...u}})})},85279:(e,t,n)=>{"use strict";function r({reason:e,children:t}){return t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),n(707)},85784:(e,t,n)=>{"use strict";n.d(t,{Uu:()=>a});var r=n(37847);let i="u">typeof window;function a(){if(r.r.current=!0,i)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>r.O.current=e.matches;e.addEventListener("change",t),t()}else r.O.current=!1}},86075:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},86594:(e,t,n)=>{"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function a(e){return e}function s(e){return"translate("+e+",0)"}function o(e){return"translate(0,"+e+")"}function l(){return!this.__axis}function c(e,t){var n=[],r=null,i=null,c=6,u=6,h=3,d="u">typeof window&&window.devicePixelRatio>1?0:.5,p=1===e||4===e?-1:1,f=4===e||2===e?"x":"y",m=1===e||3===e?s:o;function g(s){var o=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,g=null==i?t.tickFormat?t.tickFormat.apply(t,n):a:i,y=Math.max(c,0)+h,b=t.range(),k=+b[0]+d,x=+b[b.length-1]+d,E=(t.bandwidth?function(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}:function(e){return t=>+e(t)})(t.copy(),d),v=s.selection?s.selection():s,_=v.selectAll(".domain").data([null]),T=v.selectAll(".tick").data(o,t).order(),A=T.exit(),w=T.enter().append("g").attr("class","tick"),S=T.select("line"),C=T.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(w),S=S.merge(w.append("line").attr("stroke","currentColor").attr(f+"2",p*c)),C=C.merge(w.append("text").attr("fill","currentColor").attr(f,p*y).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),s!==v&&(_=_.transition(s),T=T.transition(s),S=S.transition(s),C=C.transition(s),A=A.transition(s).attr("opacity",1e-6).attr("transform",function(e){return isFinite(e=E(e))?m(e+d):this.getAttribute("transform")}),w.attr("opacity",1e-6).attr("transform",function(e){var t=this.parentNode.__axis;return m((t&&isFinite(t=t(e))?t:E(e))+d)})),A.remove(),_.attr("d",4===e||2===e?u?"M"+p*u+","+k+"H"+d+"V"+x+"H"+p*u:"M"+d+","+k+"V"+x:u?"M"+k+","+p*u+"V"+d+"H"+x+"V"+p*u:"M"+k+","+d+"H"+x),T.attr("opacity",1).attr("transform",function(e){return m(E(e)+d)}),S.attr(f+"2",p*c),C.attr(f,p*y).text(g),v.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),v.each(function(){this.__axis=E})}return g.scale=function(e){return arguments.length?(t=e,g):t},g.ticks=function(){return n=Array.from(arguments),g},g.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),g):n.slice()},g.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),g):r&&r.slice()},g.tickFormat=function(e){return arguments.length?(i=e,g):i},g.tickSize=function(e){return arguments.length?(c=u=+e,g):c},g.tickSizeInner=function(e){return arguments.length?(c=+e,g):c},g.tickSizeOuter=function(e){return arguments.length?(u=+e,g):u},g.tickPadding=function(e){return arguments.length?(h=+e,g):h},g.offset=function(e){return arguments.length?(d=+e,g):d},g}function u(e){return c(1,e)}function h(e){return c(3,e)}function d(){}function p(e){return null==e?d:function(){return this.querySelector(e)}}function f(){return[]}function m(e){return null==e?f:function(){return this.querySelectorAll(e)}}function g(e){return function(){return this.matches(e)}}function y(e){return function(t){return t.matches(e)}}n.d(t,{JLW:()=>iW,l78:()=>h,tlR:()=>u,qrM:()=>i9,Yu4:()=>i8,IA3:()=>ae,Wi0:()=>an,PGM:()=>ar,OEq:()=>aa,y8u:()=>al,olC:()=>au,IrU:()=>ad,oDi:()=>am,Q7f:()=>ay,cVp:()=>ak,lUB:()=>iX,Lx9:()=>aE,nVG:()=>aC,uxU:()=>aN,Xf2:()=>aL,GZz:()=>aD,UPb:()=>aP,dyv:()=>aO,GPZ:()=>es,Sk5:()=>tj,bEH:()=>na,n8j:()=>iJ,T9B:()=>r,jkA:()=>i,rLf:()=>i2,WH:()=>function e(){var t,n,r=nh().unknown(void 0),i=r.domain,a=r.range,s=0,o=1,l=!1,c=0,u=0,h=.5;function d(){var e=i().length,r=o<s,d=r?o:s,p=r?s:o;t=(p-d)/Math.max(1,e-c+2*u),l&&(t=Math.floor(t)),d+=(p-d-t*(e-c))*h,n=t*(1-c),l&&(d=Math.round(d),n=Math.round(n));var f=(function(e,t,n){e*=1,t*=1,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),a=Array(i);++r<i;)a[r]=e+r*n;return a})(e).map(function(e){return d+t*e});return a(r?f.reverse():f)}return delete r.unknown,r.domain=function(e){return arguments.length?(i(e),d()):i()},r.range=function(e){return arguments.length?([s,o]=e,s*=1,o*=1,d()):[s,o]},r.rangeRound=function(e){return[s,o]=e,s*=1,o*=1,l=!0,d()},r.bandwidth=function(){return n},r.step=function(){return t},r.round=function(e){return arguments.length?(l=!!e,d()):l},r.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),d()):c},r.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},r.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},r.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),d()):h},r.copy=function(){return e(i(),[s,o]).round(l).paddingInner(c).paddingOuter(u).align(h)},ns.apply(d(),arguments)},m4Y:()=>function e(){var t,n=nL();return n.copy=function(){return nI(n,e())},ns.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return function(e,t,n){if(t*=1,e*=1,!((n*=1)>0))return[];if(e===t)return[e];let r=t<e,[i,a,s]=r?nm(t,e,n):nm(e,t,n);if(!(a>=i))return[];let o=a-i+1,l=Array(o);if(r)if(s<0)for(let e=0;e<o;++e)l[e]=-((a-e)/s);else for(let e=0;e<o;++e)l[e]=(a-e)*s;else if(s<0)for(let e=0;e<o;++e)l[e]=-((i+e)/s);else for(let e=0;e<o;++e)l[e]=(i+e)*s;return l}(n[0],n[n.length-1],null==e?10:e)},n.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var i,a,s=ny(e,t,n);switch((r=tD(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tL(o)/3)))-tL(Math.abs(s))))||(r.precision=a),eo(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=Math.max(0,tL(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(i=Math.abs(i=s)))-tL(i))+1)||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=Math.max(0,-tL(Math.abs(s))))||(r.precision=a-("%"===r.type)*2)}return es(r)}(r[0],r[r.length-1],null==e?10:e,n)},n.nice=function(e){null==e&&(e=10);var r,i,a=t(),s=0,o=a.length-1,l=a[s],c=a[o],u=10;for(c<l&&(i=l,l=c,c=i,i=s,s=o,o=i);u-- >0;){if((i=ng(l,c,e))===r)return a[s]=l,a[o]=c,t(a);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;r=i}return n},n},UMr:()=>nh,w7C:()=>ix,zt:()=>iE,Ltv:()=>iv,UAC:()=>nj,DCK:()=>ec,TUC:()=>nQ,Agd:()=>nH,t6C:()=>nP,wXd:()=>nB,ABi:()=>nW,Ui6:()=>n4,rGn:()=>nZ,ucG:()=>nF,YPH:()=>nK,Mol:()=>nX,PGu:()=>nq,GuW:()=>nY,hkb:()=>tZ});var b=Array.prototype.find;function k(){return this.firstElementChild}var x=Array.prototype.filter;function E(){return Array.from(this.children)}function v(e){return Array(e.length)}function _(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function T(e,t,n,r,i,a){for(var s,o=0,l=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new _(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function A(e,t,n,r,i,a,s){var o,l,c,u=new Map,h=t.length,d=a.length,p=Array(h);for(o=0;o<h;++o)(l=t[o])&&(p[o]=c=s.call(l,l.__data__,o,t)+"",u.has(c)?i[o]=l:u.set(c,l));for(o=0;o<d;++o)c=s.call(e,a[o],o,a)+"",(l=u.get(c))?(r[o]=l,l.__data__=a[o],u.delete(c)):n[o]=new _(e,a[o]);for(o=0;o<h;++o)(l=t[o])&&u.get(p[o])===l&&(i[o]=l)}function w(e){return e.__data__}function S(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}_.prototype={constructor:_,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var C="http://www.w3.org/1999/xhtml";let N={svg:"http://www.w3.org/2000/svg",xhtml:C,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function M(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),N.hasOwnProperty(t)?{space:N[t],local:e}:e}function I(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function L(e,t){return e.style.getPropertyValue(t)||I(e).getComputedStyle(e,null).getPropertyValue(t)}function R(e){return e.trim().split(/^|\s+/)}function D(e){return e.classList||new O(e)}function O(e){this._node=e,this._names=R(e.getAttribute("class")||"")}function P(e,t){for(var n=D(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function F(e,t){for(var n=D(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function B(){this.textContent=""}function U(){this.innerHTML=""}function H(){this.nextSibling&&this.parentNode.appendChild(this)}function $(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function j(e){var t=M(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===C&&t.documentElement.namespaceURI===C?t.createElement(e):t.createElementNS(n,e)}})(t)}function G(){return null}function z(){var e=this.parentNode;e&&e.removeChild(this)}function V(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function K(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function W(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,a=t.length;r<a;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function q(e,t,n){return function(){var r,i=this.__on,a=function(e){t.call(this,e,this.__data__)};if(i){for(var s=0,o=i.length;s<o;++s)if((r=i[s]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),r.value=t;return}}this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},i?i.push(r):this.__on=[r]}}function Y(e,t,n){var r=I(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}O.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var X=[null];function Q(e,t){this._groups=e,this._parents=t}function Z(){return new Q([[document.documentElement]],X)}Q.prototype=Z.prototype={constructor:Q,select:function(e){"function"!=typeof e&&(e=p(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s,o=t[i],l=o.length,c=r[i]=Array(l),u=0;u<l;++u)(a=o[u])&&(s=e.call(a,a.__data__,u,o))&&("__data__"in a&&(s.__data__=a.__data__),c[u]=s);return new Q(r,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=m(e);for(var n=this._groups,r=n.length,i=[],a=[],s=0;s<r;++s)for(var o,l=n[s],c=l.length,u=0;u<c;++u)(o=l[u])&&(i.push(e.call(o,o.__data__,u,l)),a.push(o));return new Q(i,a)},selectChild:function(e){var t;return this.select(null==e?k:(t="function"==typeof e?e:y(e),function(){return b.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?E:(t="function"==typeof e?e:y(e),function(){return x.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=g(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],o=s.length,l=r[i]=[],c=0;c<o;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&l.push(a);return new Q(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,w);var n=t?A:T,r=this._parents,i=this._groups;"function"!=typeof e&&(b=e,e=function(){return b});for(var a=i.length,s=Array(a),o=Array(a),l=Array(a),c=0;c<a;++c){var u=r[c],h=i[c],d=h.length,p="object"==typeof(y=e.call(u,u&&u.__data__,c,r))&&"length"in y?y:Array.from(y),f=p.length,m=o[c]=Array(f),g=s[c]=Array(f);n(u,h,m,g,l[c]=Array(d),p,t);for(var y,b,k,x,E=0,v=0;E<f;++E)if(k=m[E]){for(E>=v&&(v=E+1);!(x=g[v])&&++v<f;);k._next=x||null}}return(s=new Q(s,r))._enter=o,s._exit=l,s},enter:function(){return new Q(this._enter||this._groups.map(v),this._parents)},exit:function(){return new Q(this._exit||this._groups.map(v),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,s=Math.min(i,a),o=Array(i),l=0;l<s;++l)for(var c,u=n[l],h=r[l],d=u.length,p=o[l]=Array(d),f=0;f<d;++f)(c=u[f]||h[f])&&(p[f]=c);for(;l<i;++l)o[l]=n[l];return new Q(o,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],a=i.length-1,s=i[a];--a>=0;)(r=i[a])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=S);for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var s,o=n[a],l=o.length,c=i[a]=Array(l),u=0;u<l;++u)(s=o[u])&&(c[u]=s);c.sort(t)}return new Q(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var s=r[i];if(s)return s}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,a=t[n],s=0,o=a.length;s<o;++s)(i=a[s])&&e.call(i,i.__data__,s,a);return this},attr:function(e,t){var n=M(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):L(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=R(e+"");if(arguments.length<2){for(var r=D(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?P:F)(this,e)}}:t?function(e){return function(){P(this,e)}}:function(e){return function(){F(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?B:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?U:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(H)},lower:function(){return this.each($)},append:function(e){var t="function"==typeof e?e:j(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:j(e),r=null==t?G:"function"==typeof t?t:p(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(z)},clone:function(e){return this.select(e?K:V)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,a=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),s=a.length;if(arguments.length<2){var o=this.node().__on;if(o){for(var l,c=0,u=o.length;c<u;++c)for(r=0,l=o[c];r<s;++r)if((i=a[r]).type===l.type&&i.name===l.name)return l.value}return}for(o=t?q:W,r=0;r<s;++r)this.each(o(a[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return Y(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return Y(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],a=0,s=i.length;a<s;++a)(r=i[a])&&(yield r)}};var J={value:()=>{}};function ee(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new et(r)}function et(e){this._=e}function en(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=J,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}et.prototype=ee.prototype={constructor:et,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=en(r[n],e.name,t);else if(null==t)for(n in r)r[n]=en(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new et(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],a=0,n=r.length;a<n;++a)r[a].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};var er,ei,ea,es,eo,el,ec,eu,eh,ed=0,ep=0,ef=0,em=0,eg=0,ey=0,eb="object"==typeof performance&&performance.now?performance:Date,ek="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ex(){return eg||(ek(eE),eg=eb.now()+ey)}function eE(){eg=0}function ev(){this._call=this._time=this._next=null}function e_(e,t,n){var r=new ev;return r.restart(e,t,n),r}function eT(){eg=(em=eb.now())+ey,ed=ep=0;try{ex(),++ed;for(var e,t=eu;t;)(e=eg-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ed}finally{ed=0,function(){for(var e,t,n=eu,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:eu=t);eh=e,ew(r)}(),eg=0}}function eA(){var e=eb.now(),t=e-em;t>1e3&&(ey-=t,em=e)}function ew(e){!ed&&(ep&&(ep=clearTimeout(ep)),e-eg>24?(e<1/0&&(ep=setTimeout(eT,e-eb.now()-ey)),ef&&(ef=clearInterval(ef))):(ef||(em=eb.now(),ef=setInterval(eA,1e3)),ed=1,ek(eT)))}function eS(e,t,n){var r=new ev;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}ev.prototype=e_.prototype={constructor:ev,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?ex():+n)+(null==t?0:+t),this._next||eh===this||(eh?eh._next=this:eu=this,eh=this),this._call=e,this._time=n,ew()},stop:function(){this._call&&(this._call=null,this._time=1/0,ew())}};var eC=ee("start","end","cancel","interrupt"),eN=[];function eM(e,t,n,r,i,a){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(l){var c,u,h,d;if(1!==n.state)return o();for(c in i)if((d=i[c]).name===n.name){if(3===d.state)return eS(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[c]):+c<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[c])}if(eS(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=Array(h=n.tween.length),c=0,u=-1;c<h;++c)(d=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=d);r.length=u+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(o),n.state=5,1),a=-1,s=r.length;++a<s;)r[a].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),o())}function o(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=e_(function(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:eC,tween:eN,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function eI(e,t){var n=eR(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function eL(e,t){var n=eR(e,t);if(n.state>3)throw Error("too late; already running");return n}function eR(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function eD(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}var eO=180/Math.PI,eP={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eF(e,t,n,r,i,a){var s,o,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*eO,skewX:Math.atan(l)*eO,scaleX:s,scaleY:o}}function eB(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(a,s){var o,l,c,u,h=[],d=[];return a=e(a),s=e(s),!function(e,r,i,a,s,o){if(e!==i||r!==a){var l=s.push("translate(",null,t,null,n);o.push({i:l-4,x:eD(e,i)},{i:l-2,x:eD(r,a)})}else(i||a)&&s.push("translate("+i+t+a+n)}(a.translateX,a.translateY,s.translateX,s.translateY,h,d),o=a.rotate,l=s.rotate,o!==l?(o-l>180?l+=360:l-o>180&&(o+=360),d.push({i:h.push(i(h)+"rotate(",null,r)-2,x:eD(o,l)})):l&&h.push(i(h)+"rotate("+l+r),c=a.skewX,u=s.skewX,c!==u?d.push({i:h.push(i(h)+"skewX(",null,r)-2,x:eD(c,u)}):u&&h.push(i(h)+"skewX("+u+r),!function(e,t,n,r,a,s){if(e!==n||t!==r){var o=a.push(i(a)+"scale(",null,",",null,")");s.push({i:o-4,x:eD(e,n)},{i:o-2,x:eD(t,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,s.scaleX,s.scaleY,h,d),a=s=null,function(e){for(var t,n=-1,r=d.length;++n<r;)h[(t=d[n]).i]=t.x(e);return h.join("")}}}var eU=eB(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?eP:eF(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),eH=eB(function(e){return null==e?eP:(er||(er=document.createElementNS("http://www.w3.org/2000/svg","g")),er.setAttribute("transform",e),e=er.transform.baseVal.consolidate())?eF((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):eP},", ",")",")");function e$(e,t,n){var r=e._id;return e.each(function(){var e=eL(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return eR(e,r).value[t]}}function ej(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function eG(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ez(){}var eV="\\s*([+-]?\\d+)\\s*",eK="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",eW="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eq=/^#([0-9a-f]{3,8})$/,eY=RegExp(`^rgb\\(${eV},${eV},${eV}\\)$`),eX=RegExp(`^rgb\\(${eW},${eW},${eW}\\)$`),eQ=RegExp(`^rgba\\(${eV},${eV},${eV},${eK}\\)$`),eZ=RegExp(`^rgba\\(${eW},${eW},${eW},${eK}\\)$`),eJ=RegExp(`^hsl\\(${eK},${eW},${eW}\\)$`),e0=RegExp(`^hsla\\(${eK},${eW},${eW},${eK}\\)$`),e1={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function e2(){return this.rgb().formatHex()}function e5(){return this.rgb().formatRgb()}function e3(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=eq.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?e6(t):3===n?new e7(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?e9(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?e9(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=eY.exec(e))?new e7(t[1],t[2],t[3],1):(t=eX.exec(e))?new e7(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=eQ.exec(e))?e9(t[1],t[2],t[3],t[4]):(t=eZ.exec(e))?e9(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=eJ.exec(e))?ta(t[1],t[2]/100,t[3]/100,1):(t=e0.exec(e))?ta(t[1],t[2]/100,t[3]/100,t[4]):e1.hasOwnProperty(e)?e6(e1[e]):"transparent"===e?new e7(NaN,NaN,NaN,0):null}function e6(e){return new e7(e>>16&255,e>>8&255,255&e,1)}function e9(e,t,n,r){return r<=0&&(e=t=n=NaN),new e7(e,t,n,r)}function e4(e){return(e instanceof ez||(e=e3(e)),e)?new e7((e=e.rgb()).r,e.g,e.b,e.opacity):new e7}function e8(e,t,n,r){return 1==arguments.length?e4(e):new e7(e,t,n,null==r?1:r)}function e7(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function te(){return`#${ti(this.r)}${ti(this.g)}${ti(this.b)}`}function tt(){let e=tn(this.opacity);return`${1===e?"rgb(":"rgba("}${tr(this.r)}, ${tr(this.g)}, ${tr(this.b)}${1===e?")":`, ${e})`}`}function tn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ti(e){return((e=tr(e))<16?"0":"")+e.toString(16)}function ta(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new to(e,t,n,r)}function ts(e){if(e instanceof to)return new to(e.h,e.s,e.l,e.opacity);if(e instanceof ez||(e=e3(e)),!e)return new to;if(e instanceof to)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,o=a-i,l=(a+i)/2;return o?(s=t===a?(n-r)/o+(n<r)*6:n===a?(r-t)/o+2:(t-n)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new to(s,o,l,e.opacity)}function to(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tl(e){return(e=(e||0)%360)<0?e+360:e}function tc(e){return Math.max(0,Math.min(1,e||0))}function tu(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function th(e,t,n,r,i){var a=e*e,s=a*e;return((1-3*e+3*a-s)*t+(4-6*a+3*s)*n+(1+3*e+3*a-3*s)*r+s*i)/6}ej(ez,e3,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:e2,formatHex:e2,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ts(this).formatHsl()},formatRgb:e5,toString:e5}),ej(e7,e8,eG(ez,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new e7(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new e7(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new e7(tr(this.r),tr(this.g),tr(this.b),tn(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:te,formatHex:te,formatHex8:function(){return`#${ti(this.r)}${ti(this.g)}${ti(this.b)}${ti((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:tt,toString:tt})),ej(to,function(e,t,n,r){return 1==arguments.length?ts(e):new to(e,t,n,null==r?1:r)},eG(ez,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new to(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new to(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new e7(tu(e>=240?e-240:e+120,i,r),tu(e,i,r),tu(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new to(tl(this.h),tc(this.s),tc(this.l),tn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=tn(this.opacity);return`${1===e?"hsl(":"hsla("}${tl(this.h)}, ${100*tc(this.s)}%, ${100*tc(this.l)}%${1===e?")":`, ${e})`}`}}));let td=e=>()=>e;function tp(e,t){return function(n){return e+n*t}}function tf(e,t){var n=t-e;return n?tp(e,n):td(isNaN(e)?t:e)}let tm=function e(t){var n,r=1==(n=+t)?tf:function(e,t){var r,i,a;return t-e?(r=e,i=t,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(e){return Math.pow(r+e*i,a)}):td(isNaN(e)?t:e)};function i(e,t){var n=r((e=e8(e)).r,(t=e8(t)).r),i=r(e.g,t.g),a=r(e.b,t.b),s=tf(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=a(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);function tg(e){return function(t){var n,r,i=t.length,a=Array(i),s=Array(i),o=Array(i);for(n=0;n<i;++n)r=e8(t[n]),a[n]=r.r||0,s[n]=r.g||0,o[n]=r.b||0;return a=e(a),s=e(s),o=e(o),r.opacity=1,function(e){return r.r=a(e),r.g=s(e),r.b=o(e),r+""}}}tg(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],s=r>0?e[r-1]:2*i-a,o=r<t-1?e[r+2]:2*a-i;return th((n-r/t)*t,s,i,a,o)}}),tg(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],a=e[r%t],s=e[(r+1)%t],o=e[(r+2)%t];return th((n-r/t)*t,i,a,s,o)}});var ty=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tb=RegExp(ty.source,"g");function tk(e,t){var n,r,i,a,s,o=ty.lastIndex=tb.lastIndex=0,l=-1,c=[],u=[];for(e+="",t+="";(i=ty.exec(e))&&(a=tb.exec(t));)(s=a.index)>o&&(s=t.slice(o,s),c[l]?c[l]+=s:c[++l]=s),(i=i[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,u.push({i:l,x:eD(i,a)})),o=tb.lastIndex;return o<t.length&&(s=t.slice(o),c[l]?c[l]+=s:c[++l]=s),c.length<2?u[0]?(n=u[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=u.length,function(e){for(var n,r=0;r<t;++r)c[(n=u[r]).i]=n.x(e);return c.join("")})}function tx(e,t){var n;return("number"==typeof t?eD:t instanceof e3?tm:(n=e3(t))?(t=n,tm):tk)(e,t)}var tE=Z.prototype.constructor;function tv(e){return function(){this.style.removeProperty(e)}}var t_=0;function tT(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var tA=Z.prototype;tT.prototype=(function(e){return Z().transition(e)}).prototype={constructor:tT,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=p(e));for(var r=this._groups,i=r.length,a=Array(i),s=0;s<i;++s)for(var o,l,c=r[s],u=c.length,h=a[s]=Array(u),d=0;d<u;++d)(o=c[d])&&(l=e.call(o,o.__data__,d,c))&&("__data__"in o&&(l.__data__=o.__data__),h[d]=l,eM(h[d],t,n,d,h,eR(o,n)));return new tT(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=m(e));for(var r=this._groups,i=r.length,a=[],s=[],o=0;o<i;++o)for(var l,c=r[o],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var d,p=e.call(l,l.__data__,h,c),f=eR(l,n),g=0,y=p.length;g<y;++g)(d=p[g])&&eM(d,t,n,g,p,f);a.push(p),s.push(l)}return new tT(a,s,t,n)},selectChild:tA.selectChild,selectChildren:tA.selectChildren,filter:function(e){"function"!=typeof e&&(e=g(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],o=s.length,l=r[i]=[],c=0;c<o;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&l.push(a);return new tT(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),s=Array(r),o=0;o<a;++o)for(var l,c=t[o],u=n[o],h=c.length,d=s[o]=Array(h),p=0;p<h;++p)(l=c[p]||u[p])&&(d[p]=l);for(;o<r;++o)s[o]=t[o];return new tT(s,this._parents,this._name,this._id)},selection:function(){return new tE(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++t_,r=this._groups,i=r.length,a=0;a<i;++a)for(var s,o=r[a],l=o.length,c=0;c<l;++c)if(s=o[c]){var u=eR(s,t);eM(s,e,n,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new tT(r,this._parents,e,n)},call:tA.call,nodes:tA.nodes,node:tA.node,size:tA.size,empty:tA.empty,each:tA.each,on:function(e,t){var n,r,i,a,s,o,l=this._id;return arguments.length<2?eR(this.node(),l).on.on(e):this.each((n=l,r=e,i=t,o=(r+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?eI:eL,function(){var e=o(this,n),t=e.on;t!==a&&(s=(a=t).copy()).on(r,i),e.on=s}))},attr:function(e,t){var n=M(e),r="transform"===n?eH:tx;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,a;return function(){var s,o,l=n(this);return null==l?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local))===(o=l+"")?null:s===r&&o===i?a:(i=o,a=t(r=s,l))}}:function(e,t,n){var r,i,a;return function(){var s,o,l=n(this);return null==l?void this.removeAttribute(e):(s=this.getAttribute(e))===(o=l+"")?null:s===r&&o===i?a:(i=o,a=t(r=s,l))}})(n,r,e$(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,a=n+"";return function(){var s=this.getAttributeNS(e.space,e.local);return s===a?null:s===r?i:i=t(r=s,n)}}:function(e,t,n){var r,i,a=n+"";return function(){var s=this.getAttribute(e);return s===a?null:s===r?i:i=t(r=s,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=M(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,a,s,o,l,c,u,h,d,p,f,m,g,y,b,k,x,E,v,_,T="transform"==(e+="")?eU:tx;return null==t?this.styleTween(e,(r=e,function(){var e=L(this,r),t=(this.style.removeProperty(r),L(this,r));return e===t?null:e===i&&t===a?s:s=T(i=e,a=t)})).on("end.style."+e,tv(e)):"function"==typeof t?this.styleTween(e,(o=e,l=e$(this,"style."+e,t),function(){var e=L(this,o),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(o),n=t=L(this,o)),e===n?null:e===c&&n===u?h:(u=n,h=T(c=e,t))})).each((d=this._id,k="end."+(b="style."+(p=e)),function(){var e=eL(this,d),t=e.on,n=null==e.value[b]?y||(y=tv(p)):void 0;(t!==f||g!==n)&&(m=(f=t).copy()).on(k,g=n),e.on=m})):this.styleTween(e,(x=e,_=t+"",function(){var e=L(this,x);return e===_?null:e===E?v:v=T(E=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t){this.style.setProperty(e,a.call(this,t),n)}),r}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=e$(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=eR(this.node(),n).tween,a=0,s=i.length;a<s;++a)if((r=i[a]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=eL(this,e),a=i.tween;if(a!==n){r=n=a;for(var s=0,o=r.length;s<o;++s)if(r[s].name===t){(r=r.slice()).splice(s,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var a=eL(this,e),s=a.tween;if(s!==r){i=(r=s).slice();for(var o={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=o;break}l===c&&i.push(o)}a.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eI(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eI(this,e).delay=t}})(t,e)):eR(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eL(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eL(this,e).duration=t}})(t,e)):eR(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){eL(this,e).ease=t}}(t,e)):eR(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();eL(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,s){var o={value:s},l={value:function(){0==--i&&a()}};n.each(function(){var n=eL(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),n.on=t}),0===i&&a()})},[Symbol.iterator]:tA[Symbol.iterator]};var tw={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};Z.prototype.interrupt=function(e){return this.each(function(){!function(e,t){var n,r,i,a=e.__transition,s=!0;if(a){for(i in t=null==t?null:t+"",a){if((n=a[i]).name!==t){s=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[i]}s&&delete e.__transition}}(this,e)})},Z.prototype.transition=function(e){var t,n;e instanceof tT?(t=e._id,e=e._name):(t=++t_,(n=tw).time=ex(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var s,o=r[a],l=o.length,c=0;c<l;++c)(s=o[c])&&eM(s,e,t,c,o,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(s,t));return new tT(r,this._parents,e,t)};let{abs:tS,max:tC,min:tN}=Math;function tM(e){return{type:e}}function tI(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function tL(e){return(e=tI(Math.abs(e)))?e[1]:NaN}["w","e"].map(tM),["n","s"].map(tM),["n","w","e","s","nw","ne","sw","se"].map(tM);var tR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tD(e){var t;if(!(t=tR.exec(e)))throw Error("invalid format: "+e);return new tO({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function tO(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function tP(e,t){var n=tI(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}tD.prototype=tO.prototype,tO.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let tF={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>tP(100*e,t),r:tP,s:function(e,t){var n=tI(e,t);if(!n)return ei=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(ei=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return a===s?r:a>s?r+Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+tI(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function tB(e){return e}var tU=Array.prototype.map,tH=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function t$(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function tj(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=tz)):void 0===t&&(t=tG);for(var n,r,i,a,s,o=new tW(e),l=[o];n=l.pop();)if((i=t(n.data))&&(s=(i=Array.from(i)).length))for(n.children=i,a=s-1;a>=0;--a)l.push(r=i[a]=new tW(i[a])),r.parent=n,r.depth=n.depth+1;return o.eachBefore(tK)}function tG(e){return e.children}function tz(e){return Array.isArray(e)?e[1]:null}function tV(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function tK(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function tW(e){this.data=e,this.depth=this.height=0,this.parent=null}function tq(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}es=(ea=function(e){var t,n,r,i=void 0===e.grouping||void 0===e.thousands?tB:(t=tU.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],s=0,o=t[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),a.push(e.substring(i-=o,i+o)),!((l+=o+1)>r));)o=t[s=(s+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?tB:(r=tU.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function d(e,t){var n=(e=tD(e)).fill,r=e.align,d=e.sign,p=e.symbol,f=e.zero,m=e.width,g=e.comma,y=e.precision,b=e.trim,k=e.type;"n"===k?(g=!0,k="g"):tF[k]||(void 0===y&&(y=12),b=!0,k="g"),(f||"0"===n&&"="===r)&&(f=!0,n="0",r="=");var x=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?a:"#"===p&&/[boxX]/.test(k)?"0"+k.toLowerCase():""),E=("$"===p?s:/[%p]/.test(k)?c:"")+(t&&void 0!==t.suffix?t.suffix:""),v=tF[k],_=/[defgprs%]/.test(k);function T(e){var t,a,s,c=x,p=E;if("c"===k)p=v(e)+p,e="";else{var T=(e*=1)<0||1/e<0;if(e=isNaN(e)?h:v(Math.abs(e),y),b&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),T&&0==+e&&"+"!==d&&(T=!1),c=(T?"("===d?d:u:"-"===d||"("===d?"":d)+c,p=("s"!==k||isNaN(e)||void 0===ei?"":tH[8+ei/3])+p+(T&&"("===d?")":""),_){for(t=-1,a=e.length;++t<a;)if(48>(s=e.charCodeAt(t))||s>57){p=(46===s?o+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}}g&&!f&&(e=i(e,1/0));var A=c.length+e.length+p.length,w=A<m?Array(m-A+1).join(n):"";switch(g&&f&&(e=i(w+e,w.length?m-p.length:1/0),w=""),r){case"<":e=c+e+p+w;break;case"=":e=c+w+e+p;break;case"^":e=w.slice(0,A=w.length>>1)+c+e+p+w.slice(A);break;default:e=w+c+e+p}return l(e)}return y=void 0===y?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),T.toString=function(){return e+""},T}return{format:d,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(tL(t)/3))),r=Math.pow(10,-n),i=d(((e=tD(e)).type="f",e),{suffix:tH[8+n/3]});return function(e){return i(r*e)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,eo=ea.formatPrefix,tW.prototype=tj.prototype={constructor:tW,count:function(){return this.eachAfter(t$)},each:function(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,a=this,s=[a],o=[],l=-1;a=s.pop();)if(o.push(a),n=a.children)for(r=0,i=n.length;r<i;++r)s.push(n[r]);for(;a=o.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,a=[i],s=-1;i=a.pop();)if(e.call(t,i,++s,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)r.push(t=t.parent);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return tj(this).eachBefore(tV)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,a=[i];do for(e=a.reverse(),a=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)a.push(t[n]);while(a.length)}};let tY=function e(t){function n(e,n,r,i,a){!function(e,t,n,r,i,a){for(var s,o,l,c,u,h,d,p,f,m,g,y=[],b=t.children,k=0,x=0,E=b.length,v=t.value;k<E;){l=i-n,c=a-r;do u=b[x++].value;while(!u&&x<E);for(h=d=u,f=Math.max(d/(g=u*u*(m=Math.max(c/l,l/c)/(v*e))),g/h);x<E;++x){if(u+=o=b[x].value,o<h&&(h=o),o>d&&(d=o),(p=Math.max(d/(g=u*u*m),g/h))>f){u-=o;break}f=p}y.push(s={value:u,dice:l<c,children:b.slice(k,x)}),s.dice?function(e,t,n,r,i){for(var a,s=e.children,o=-1,l=s.length,c=e.value&&(r-t)/e.value;++o<l;)(a=s[o]).y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*c}(s,n,r,i,v?r+=c*u/v:a):function(e,t,n,r,i){for(var a,s=e.children,o=-1,l=s.length,c=e.value&&(i-n)/e.value;++o<l;)(a=s[o]).x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*c}(s,n,r,v?n+=l*u/v:i,a),v-=u,k=x}}(t,e,n,r,i,a)}return n.ratio=function(t){return e((t*=1)>1?t:1)},n}((1+Math.sqrt(5))/2);function tX(){return 0}function tQ(e){return function(){return e}}function tZ(){var e=tY,t=!1,n=1,r=1,i=[0],a=tX,s=tX,o=tX,l=tX,c=tX;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(h),i=[0],t&&e.eachBefore(tq),e}function h(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,h=t.x1-n,d=t.y1-n;h<r&&(r=h=(r+h)/2),d<u&&(u=d=(u+d)/2),t.x0=r,t.y0=u,t.x1=h,t.y1=d,t.children&&(n=i[t.depth+1]=a(t)/2,r+=c(t)-n,u+=s(t)-n,h-=o(t)-n,d-=l(t)-n,h<r&&(r=h=(r+h)/2),d<u&&(u=d=(u+d)/2),e(t,r,u,h,d))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw Error();return e}(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a="function"==typeof e?e:tQ(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(s="function"==typeof e?e:tQ(+e),u):s},u.paddingRight=function(e){return arguments.length?(o="function"==typeof e?e:tQ(+e),u):o},u.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:tQ(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:tQ(+e),u):c},u}let tJ=Math.PI/180,t0=180/Math.PI,t1=4/29,t2=6/29,t5=6/29*3*(6/29),t3=6/29*(6/29)*(6/29);function t6(e){if(e instanceof t9)return new t9(e.l,e.a,e.b,e.opacity);if(e instanceof nn)return nr(e);e instanceof e7||(e=e4(e));var t,n,r=ne(e.r),i=ne(e.g),a=ne(e.b),s=t4((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?t=n=s:(t=t4((.4360747*r+.3850649*i+.1430804*a)/.96422),n=t4((.0139322*r+.0971045*i+.7141733*a)/.82521)),new t9(116*s-16,500*(t-s),200*(s-n),e.opacity)}function t9(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function t4(e){return e>t3?Math.pow(e,1/3):e/t5+t1}function t8(e){return e>t2?e*e*e:t5*(e-t1)}function t7(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ne(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nt(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof nn)return new nn(e.h,e.c,e.l,e.opacity);if(e instanceof t9||(e=t6(e)),0===e.a&&0===e.b)return new nn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*t0;return new nn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new nn(e,t,n,null==r?1:r)}function nn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function nr(e){if(isNaN(e.h))return new t9(e.l,0,0,e.opacity);var t=e.h*tJ;return new t9(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function ni(e){return function(t,n){var r=e((t=nt(t)).h,(n=nt(n)).h),i=tf(t.c,n.c),a=tf(t.l,n.l),s=tf(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=s(e),t+""}}}ej(t9,function(e,t,n,r){return 1==arguments.length?t6(e):new t9(e,t,n,null==r?1:r)},eG(ez,{brighter(e){return new t9(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new t9(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=.96422*t8(t),new e7(t7(3.1338561*t-1.6168667*(e=+t8(e))-.4906146*(n=.82521*t8(n))),t7(-.9787684*t+1.9161415*e+.033454*n),t7(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ej(nn,nt,eG(ez,{brighter(e){return new nn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new nn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return nr(this).rgb()}}));let na=ni(function(e,t){var n=t-e;return n?tp(e,n>180||n<-180?n-360*Math.round(n/360):n):td(isNaN(e)?t:e)});function ns(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}ni(tf);class no extends Map{constructor(e,t=nc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(nl(this,e))}has(e){return super.has(nl(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function nl({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function nc(e){return null!==e&&"object"==typeof e?e.valueOf():e}let nu=Symbol("implicit");function nh(){var e=new no,t=[],n=[],r=nu;function i(i){let a=e.get(i);if(void 0===a){if(r!==nu)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();for(let r of(t=[],e=new no,n))e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return nh(t,n).unknown(r)},ns.apply(i,arguments),i}let nd=Math.sqrt(50),np=Math.sqrt(10),nf=Math.sqrt(2);function nm(e,t,n){let r,i,a,s=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(s)),l=s/Math.pow(10,o),c=l>=nd?10:l>=np?5:l>=nf?2:1;return(o<0?(r=Math.round(e*(a=Math.pow(10,-o)/c)),i=Math.round(t*a),r/a<e&&++r,i/a>t&&--i,a=-a):(r=Math.round(e/(a=Math.pow(10,o)*c)),i=Math.round(t/a),r*a<e&&++r,i*a>t&&--i),i<r&&.5<=n&&n<2)?nm(e,t,2*n):[r,i,a]}function ng(e,t,n){return nm(e*=1,t*=1,n*=1)[2]}function ny(e,t,n){t*=1,e*=1,n*=1;let r=t<e,i=r?ng(t,e,n):ng(e,t,n);return(r?-1:1)*(i<0?-(1/i):i)}function nb(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nk(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nx(e){let t,n,r;function i(e,r,a=0,s=e.length){if(a<s){if(0!==t(r,r))return s;do{let t=a+s>>>1;0>n(e[t],r)?a=t+1:s=t}while(a<s)}return a}return 2!==e.length?(t=nb,n=(t,n)=>nb(e(t),n),r=(t,n)=>e(t)-n):(t=e===nb||e===nk?e:nE,n=e,r=e),{left:i,center:function(e,t,n=0,a=e.length){let s=i(e,t,n,a-1);return s>n&&r(e[s-1],t)>-r(e[s],t)?s-1:s},right:function(e,r,i=0,a=e.length){if(i<a){if(0!==t(r,r))return a;do{let t=i+a>>>1;0>=n(e[t],r)?i=t+1:a=t}while(i<a)}return i}}}function nE(){return 0}let nv=nx(nb),n_=nv.right;nv.left,nx(function(e){return null===e?NaN:+e}).center;function nT(e,t){return e*=1,t*=1,function(n){return Math.round(e*(1-n)+t*n)}}function nA(e){return+e}var nw=[0,1];function nS(e){return e}function nC(e,t){var n;return(t-=e*=1)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})}function nN(e,t,n){var r=e[0],i=e[1],a=t[0],s=t[1];return i<r?(r=nC(i,r),a=n(s,a)):(r=nC(r,i),a=n(a,s)),function(e){return a(r(e))}}function nM(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=nC(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(t){var n=n_(e,t,1,r)-1;return a[n](i[n](t))}}function nI(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function nL(){return(function(){var e,t,n,r,i,a,s=nw,o=nw,l=function e(t,n){var r,i,a=typeof n;return null==n||"boolean"===a?td(n):("number"===a?eD:"string"===a?(i=e3(n))?(n=i,tm):tk:n instanceof e3?tm:n instanceof Date?function(e,t){var n=new Date;return e*=1,t*=1,function(r){return n.setTime(e*(1-r)+t*r),n}}:!ArrayBuffer.isView(r=n)||r instanceof DataView?Array.isArray(n)?function(t,n){var r,i=n?n.length:0,a=t?Math.min(i,t.length):0,s=Array(a),o=Array(i);for(r=0;r<a;++r)s[r]=e(t[r],n[r]);for(;r<i;++r)o[r]=n[r];return function(e){for(r=0;r<a;++r)o[r]=s[r](e);return o}}:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(t,n){var r,i={},a={};for(r in(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={}),n)r in t?i[r]=e(t[r],n[r]):a[r]=n[r];return function(e){for(r in i)a[r]=i[r](e);return a}}:eD:function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(n=0;n<r;++n)i[n]=e[n]*(1-a)+t[n]*a;return i}})(t,n)},c=nS;function u(){var e,t,n,l=Math.min(s.length,o.length);return c!==nS&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?nM:nN,i=a=null,h}function h(t){return null==t||isNaN(t*=1)?n:(i||(i=r(s.map(e),o,l)))(e(c(t)))}return h.invert=function(n){return c(t((a||(a=r(o,s.map(e),eD)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,nA),u()):s.slice()},h.range=function(e){return arguments.length?(o=Array.from(e),u()):o.slice()},h.rangeRound=function(e){return o=Array.from(e),l=nT,u()},h.clamp=function(e){return arguments.length?(c=!!e||nS,u()):c!==nS},h.interpolate=function(e){return arguments.length?(l=e,u()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,r){return e=n,t=r,u()}})()(nS,nS)}let nR=new Date,nD=new Date;function nO(e,t,n,r){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,a)=>{let s,o=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r)||!(a>0))return o;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>nO(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(nR.setTime(+t),nD.setTime(+r),e(nR),e(nD),Math.floor(n(nR,nD))),i.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null),i}let nP=nO(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);nP.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?nO(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):nP:null,nP.range;let nF=nO(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());nF.range;let nB=nO(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());nB.range;let nU=nO(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());nU.range;let nH=nO(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());nH.range;let n$=nO(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());n$.range;let nj=nO(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);nj.range;let nG=nO(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);nG.range;let nz=nO(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function nV(e){return nO(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}nz.range;let nK=nV(0),nW=nV(1),nq=nV(2),nY=nV(3),nX=nV(4),nQ=nV(5),nZ=nV(6);function nJ(e){return nO(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}nK.range,nW.range,nq.range,nY.range,nX.range,nQ.range,nZ.range;let n0=nJ(0),n1=nJ(1),n2=nJ(2),n5=nJ(3),n3=nJ(4),n6=nJ(5),n9=nJ(6);n0.range,n1.range,n2.range,n5.range,n3.range,n6.range,n9.range;let n4=nO(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());n4.range;let n8=nO(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());n8.range;let n7=nO(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());n7.every=e=>isFinite(e=Math.floor(e))&&e>0?nO(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,n7.range;let re=nO(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function rt(e,t,n,r,i,a){let s=[[nF,1,1e3],[nF,5,5e3],[nF,15,15e3],[nF,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function o(t,n,r){let i=Math.abs(n-t)/r,a=nx(([,,e])=>e).right(s,i);if(a===s.length)return e.every(ny(t/31536e6,n/31536e6,r));if(0===a)return nP.every(Math.max(ny(t,n,r),1));let[o,l]=s[i/s[a-1][2]<s[a][2]/i?a-1:a];return o.every(l)}return[function(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&"function"==typeof n.range?n:o(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a},o]}re.every=e=>isFinite(e=Math.floor(e))&&e>0?nO(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,re.range;let[rn,rr]=rt(re,n8,n0,nz,n$,nU),[ri,ra]=rt(n7,n4,nK,nj,nH,nB);function rs(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ro(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function rl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var rc={"-":"",_:" ",0:"0"},ru=/^\s*\d+/,rh=/^%/,rd=/[\\^$*+?|[\]().{}]/g;function rp(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function rf(e){return e.replace(rd,"\\$&")}function rm(e){return RegExp("^(?:"+e.map(rf).join("|")+")","i")}function rg(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function ry(e,t,n){var r=ru.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rb(e,t,n){var r=ru.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function rk(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function rx(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function rE(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function rv(e,t,n){var r=ru.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function r_(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rT(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function rA(e,t,n){var r=ru.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function rw(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rS(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rC(e,t,n){var r=ru.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function rN(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function rM(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function rI(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function rL(e,t,n){var r=ru.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function rR(e,t,n){var r=ru.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rD(e,t,n){var r=rh.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rO(e,t,n){var r=ru.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function rP(e,t,n){var r=ru.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rF(e,t){return rp(e.getDate(),t,2)}function rB(e,t){return rp(e.getHours(),t,2)}function rU(e,t){return rp(e.getHours()%12||12,t,2)}function rH(e,t){return rp(1+nj.count(n7(e),e),t,3)}function r$(e,t){return rp(e.getMilliseconds(),t,3)}function rj(e,t){return r$(e,t)+"000"}function rG(e,t){return rp(e.getMonth()+1,t,2)}function rz(e,t){return rp(e.getMinutes(),t,2)}function rV(e,t){return rp(e.getSeconds(),t,2)}function rK(e){var t=e.getDay();return 0===t?7:t}function rW(e,t){return rp(nK.count(n7(e)-1,e),t,2)}function rq(e){var t=e.getDay();return t>=4||0===t?nX(e):nX.ceil(e)}function rY(e,t){return e=rq(e),rp(nX.count(n7(e),e)+(4===n7(e).getDay()),t,2)}function rX(e){return e.getDay()}function rQ(e,t){return rp(nW.count(n7(e)-1,e),t,2)}function rZ(e,t){return rp(e.getFullYear()%100,t,2)}function rJ(e,t){return rp((e=rq(e)).getFullYear()%100,t,2)}function r0(e,t){return rp(e.getFullYear()%1e4,t,4)}function r1(e,t){var n=e.getDay();return rp((e=n>=4||0===n?nX(e):nX.ceil(e)).getFullYear()%1e4,t,4)}function r2(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rp(t/60|0,"0",2)+rp(t%60,"0",2)}function r5(e,t){return rp(e.getUTCDate(),t,2)}function r3(e,t){return rp(e.getUTCHours(),t,2)}function r6(e,t){return rp(e.getUTCHours()%12||12,t,2)}function r9(e,t){return rp(1+nG.count(re(e),e),t,3)}function r4(e,t){return rp(e.getUTCMilliseconds(),t,3)}function r8(e,t){return r4(e,t)+"000"}function r7(e,t){return rp(e.getUTCMonth()+1,t,2)}function ie(e,t){return rp(e.getUTCMinutes(),t,2)}function it(e,t){return rp(e.getUTCSeconds(),t,2)}function ir(e){var t=e.getUTCDay();return 0===t?7:t}function ii(e,t){return rp(n0.count(re(e)-1,e),t,2)}function ia(e){var t=e.getUTCDay();return t>=4||0===t?n3(e):n3.ceil(e)}function is(e,t){return e=ia(e),rp(n3.count(re(e),e)+(4===re(e).getUTCDay()),t,2)}function io(e){return e.getUTCDay()}function il(e,t){return rp(n1.count(re(e)-1,e),t,2)}function ic(e,t){return rp(e.getUTCFullYear()%100,t,2)}function iu(e,t){return rp((e=ia(e)).getUTCFullYear()%100,t,2)}function ih(e,t){return rp(e.getUTCFullYear()%1e4,t,4)}function id(e,t){var n=e.getUTCDay();return rp((e=n>=4||0===n?n3(e):n3.ceil(e)).getUTCFullYear()%1e4,t,4)}function ip(){return"+0000"}function im(){return"%"}function ig(e){return+e}function iy(e){return Math.floor(e/1e3)}function ib(e){return new Date(e)}function ik(e){return e instanceof Date?+e:+new Date(+e)}function ix(){return ns.apply((function e(t,n,r,i,a,s,o,l,c,u){var h=nL(),d=h.invert,p=h.domain,f=u(".%L"),m=u(":%S"),g=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),k=u("%b %d"),x=u("%B"),E=u("%Y");function v(e){return(c(e)<e?f:l(e)<e?m:o(e)<e?g:s(e)<e?y:i(e)<e?a(e)<e?b:k:r(e)<e?x:E)(e)}return h.invert=function(e){return new Date(d(e))},h.domain=function(e){return arguments.length?p(Array.from(e,ik)):p().map(ib)},h.ticks=function(e){var n=p();return t(n[0],n[n.length-1],null==e?10:e)},h.tickFormat=function(e,t){return null==t?v:u(t)},h.nice=function(e){var t,r,i,a,s,o,l,c=p();return e&&"function"==typeof e.range||(e=n(c[0],c[c.length-1],null==e?10:e)),e?p((t=c,r=e,t=t.slice(),a=0,s=t.length-1,o=t[a],(l=t[s])<o&&(i=a,a=s,s=i,i=o,o=l,l=i),t[a]=r.floor(o),t[s]=r.ceil(l),t)):h},h.copy=function(){return nI(h,e(t,n,r,i,a,s,o,l,c,u))},h})(ri,ra,n7,n4,nK,nj,nH,nB,nF,ec).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}ec=(el=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,o=e.months,l=e.shortMonths,c=rm(i),u=rg(i),h=rm(a),d=rg(a),p=rm(s),f=rg(s),m=rm(o),g=rg(o),y=rm(l),b=rg(l),k={a:function(e){return s[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return o[e.getMonth()]},c:null,d:rF,e:rF,f:rj,g:rJ,G:r1,H:rB,I:rU,j:rH,L:r$,m:rG,M:rz,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ig,s:iy,S:rV,u:rK,U:rW,V:rY,w:rX,W:rQ,x:null,X:null,y:rZ,Y:r0,Z:r2,"%":im},x={a:function(e){return s[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return o[e.getUTCMonth()]},c:null,d:r5,e:r5,f:r8,g:iu,G:id,H:r3,I:r6,j:r9,L:r4,m:r7,M:ie,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ig,s:iy,S:it,u:ir,U:ii,V:is,w:io,W:il,x:null,X:null,y:ic,Y:ih,Z:ip,"%":im},E={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return T(e,t,n,r)},d:rS,e:rS,f:rR,g:r_,G:rv,H:rN,I:rN,j:rC,L:rL,m:rw,M:rM,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:rA,Q:rO,s:rP,S:rI,u:rb,U:rk,V:rx,w:ry,W:rE,x:function(e,t,r){return T(e,n,t,r)},X:function(e,t,n){return T(e,r,t,n)},y:r_,Y:rv,Z:rT,"%":rD};function v(e,t){return function(n){var r,i,a,s=[],o=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++o<c;)37===e.charCodeAt(o)&&(s.push(e.slice(l,o)),null!=(i=rc[r=e.charAt(++o)])?r=e.charAt(++o):i="e"===r?" ":"0",(a=t[r])&&(r=a(n,i)),s.push(r),l=o+1);return s.push(e.slice(l,o)),s.join("")}}function _(e,t){return function(n){var r,i,a=rl(1900,void 0,1);if(T(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(!t||"Z"in a||(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=ro(rl(a.y,0,1))).getUTCDay())>4||0===i?n1.ceil(r):n1(r),r=nG.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=rs(rl(a.y,0,1))).getDay())>4||0===i?nW.ceil(r):nW(r),r=nj.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:+("W"in a)),i="Z"in a?ro(rl(a.y,0,1)).getUTCDay():rs(rl(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,ro(a)):rs(a)}}function T(e,t,n,r){for(var i,a,s=0,o=t.length,l=n.length;s<o;){if(r>=l)return -1;if(37===(i=t.charCodeAt(s++))){if(!(a=E[(i=t.charAt(s++))in rc?t.charAt(s++):i])||(r=a(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return k.x=v(n,k),k.X=v(r,k),k.c=v(t,k),x.x=v(n,x),x.X=v(r,x),x.c=v(t,x),{format:function(e){var t=v(e+="",k);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=v(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=_(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,el.parse,el.utcFormat,el.utcParse;let iE=function(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function iv(e){return"string"==typeof e?new Q([[document.querySelector(e)]],[document.documentElement]):new Q([[e]],X)}function i_(e){return function(){return e}}let iT=Math.abs,iA=Math.atan2,iw=Math.cos,iS=Math.max,iC=Math.min,iN=Math.sin,iM=Math.sqrt,iI=Math.PI,iL=iI/2,iR=2*iI;function iD(e){return e>=1?iL:e<=-1?-iL:Math.asin(e)}let iO=Math.PI,iP=2*iO,iF=iP-1e-6;function iB(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class iU{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?iB:function(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return iB;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e*=1,t*=1,n*=1,r*=1,(i*=1)<0)throw Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,o=n-e,l=r-t,c=a-e,u=s-t,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(h>1e-6)if(Math.abs(u*o-l*c)>1e-6&&i){let d=n-a,p=r-s,f=o*o+l*l,m=Math.sqrt(f),g=Math.sqrt(h),y=i*Math.tan((iO-Math.acos((f+h-(d*d+p*p))/(2*m*g)))/2),b=y/g,k=y/m;Math.abs(b-1)>1e-6&&this._append`L${e+b*c},${t+b*u}`,this._append`A${i},${i},0,0,${+(u*d>c*p)},${this._x1=e+k*o},${this._y1=t+k*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,i,a){if(e*=1,t*=1,n*=1,a=!!a,n<0)throw Error(`negative radius: ${n}`);let s=n*Math.cos(r),o=n*Math.sin(r),l=e+s,c=t+o,u=1^a,h=a?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%iP+iP),h>iF?this._append`A${n},${n},0,1,${u},${e-s},${t-o}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:h>1e-6&&this._append`A${n},${n},0,${+(h>=iO)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n*=1}v${+r}h${-n}Z`}toString(){return this._}}function iH(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new iU(t)}function i$(e){return e.innerRadius}function ij(e){return e.outerRadius}function iG(e){return e.startAngle}function iz(e){return e.endAngle}function iV(e){return e&&e.padAngle}function iK(e,t,n,r,i,a,s){var o=e-n,l=t-r,c=(s?a:-a)/iM(o*o+l*l),u=c*l,h=-c*o,d=e+u,p=t+h,f=n+u,m=r+h,g=(d+f)/2,y=(p+m)/2,b=f-d,k=m-p,x=b*b+k*k,E=i-a,v=d*m-f*p,_=(k<0?-1:1)*iM(iS(0,E*E*x-v*v)),T=(v*k-b*_)/x,A=(-v*b-k*_)/x,w=(v*k+b*_)/x,S=(-v*b+k*_)/x,C=T-g,N=A-y,M=w-g,I=S-y;return C*C+N*N>M*M+I*I&&(T=w,A=S),{cx:T,cy:A,x01:-u,y01:-h,x11:T*(i/E-1),y11:A*(i/E-1)}}function iW(){var e=i$,t=ij,n=i_(0),r=null,i=iG,a=iz,s=iV,o=null,l=iH(c);function c(){var c,u,h=+e.apply(this,arguments),d=+t.apply(this,arguments),p=i.apply(this,arguments)-iL,f=a.apply(this,arguments)-iL,m=iT(f-p),g=f>p;if(o||(o=c=l()),d<h&&(u=d,d=h,h=u),d>1e-12)if(m>iR-1e-12)o.moveTo(d*iw(p),d*iN(p)),o.arc(0,0,d,p,f,!g),h>1e-12&&(o.moveTo(h*iw(f),h*iN(f)),o.arc(0,0,h,f,p,g));else{var y,b,k=p,x=f,E=p,v=f,_=m,T=m,A=s.apply(this,arguments)/2,w=A>1e-12&&(r?+r.apply(this,arguments):iM(h*h+d*d)),S=iC(iT(d-h)/2,+n.apply(this,arguments)),C=S,N=S;if(w>1e-12){var M=iD(w/h*iN(A)),I=iD(w/d*iN(A));(_-=2*M)>1e-12?(M*=g?1:-1,E+=M,v-=M):(_=0,E=v=(p+f)/2),(T-=2*I)>1e-12?(I*=g?1:-1,k+=I,x-=I):(T=0,k=x=(p+f)/2)}var L=d*iw(k),R=d*iN(k),D=h*iw(v),O=h*iN(v);if(S>1e-12){var P,F=d*iw(x),B=d*iN(x),U=h*iw(E),H=h*iN(E);if(m<iI)if(P=function(e,t,n,r,i,a,s,o){var l=n-e,c=r-t,u=s-i,h=o-a,d=h*l-u*c;if(!(d*d<1e-12))return d=(u*(t-a)-h*(e-i))/d,[e+d*l,t+d*c]}(L,R,U,H,F,B,D,O)){var $,j=L-P[0],G=R-P[1],z=F-P[0],V=B-P[1],K=1/iN((($=(j*z+G*V)/(iM(j*j+G*G)*iM(z*z+V*V)))>1?0:$<-1?iI:Math.acos($))/2),W=iM(P[0]*P[0]+P[1]*P[1]);C=iC(S,(h-W)/(K-1)),N=iC(S,(d-W)/(K+1))}else C=N=0}T>1e-12?N>1e-12?(y=iK(U,H,L,R,d,N,g),b=iK(F,B,D,O,d,N,g),o.moveTo(y.cx+y.x01,y.cy+y.y01),N<S?o.arc(y.cx,y.cy,N,iA(y.y01,y.x01),iA(b.y01,b.x01),!g):(o.arc(y.cx,y.cy,N,iA(y.y01,y.x01),iA(y.y11,y.x11),!g),o.arc(0,0,d,iA(y.cy+y.y11,y.cx+y.x11),iA(b.cy+b.y11,b.cx+b.x11),!g),o.arc(b.cx,b.cy,N,iA(b.y11,b.x11),iA(b.y01,b.x01),!g))):(o.moveTo(L,R),o.arc(0,0,d,k,x,!g)):o.moveTo(L,R),h>1e-12&&_>1e-12?C>1e-12?(y=iK(D,O,F,B,h,-C,g),b=iK(L,R,U,H,h,-C,g),o.lineTo(y.cx+y.x01,y.cy+y.y01),C<S?o.arc(y.cx,y.cy,C,iA(y.y01,y.x01),iA(b.y01,b.x01),!g):(o.arc(y.cx,y.cy,C,iA(y.y01,y.x01),iA(y.y11,y.x11),!g),o.arc(0,0,h,iA(y.cy+y.y11,y.cx+y.x11),iA(b.cy+b.y11,b.cx+b.x11),g),o.arc(b.cx,b.cy,C,iA(b.y11,b.x11),iA(b.y01,b.x01),!g))):o.arc(0,0,h,v,E,g):o.lineTo(D,O)}else o.moveTo(0,0);if(o.closePath(),c)return o=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-iI/2;return[iw(r)*n,iN(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:i_(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:i_(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:i_(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:i_(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:i_(+e),c):i},c.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:i_(+e),c):a},c.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:i_(+e),c):s},c.context=function(e){return arguments.length?(o=null==e?null:e,c):o},c}function iq(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function iY(e){this._context=e}function iX(e){return new iY(e)}function iQ(e){return e[0]}function iZ(e){return e[1]}function iJ(e,t){var n=i_(!0),r=null,i=iX,a=null,s=iH(o);function o(o){var l,c,u,h=(o=iq(o)).length,d=!1;for(null==r&&(a=i(u=s())),l=0;l<=h;++l)!(l<h&&n(c=o[l],l,o))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(c,l,o),+t(c,l,o));if(u)return a=null,u+""||null}return e="function"==typeof e?e:void 0===e?iQ:i_(e),t="function"==typeof t?t:void 0===t?iZ:i_(t),o.x=function(t){return arguments.length?(e="function"==typeof t?t:i_(+t),o):e},o.y=function(e){return arguments.length?(t="function"==typeof e?e:i_(+e),o):t},o.defined=function(e){return arguments.length?(n="function"==typeof e?e:i_(!!e),o):n},o.curve=function(e){return arguments.length?(i=e,null!=r&&(a=i(r)),o):i},o.context=function(e){return arguments.length?(null==e?r=a=null:a=i(r=e),o):r},o}function i0(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function i1(e){return e}function i2(){var e=i1,t=i0,n=null,r=i_(0),i=i_(iR),a=i_(0);function s(s){var o,l,c,u,h,d=(s=iq(s)).length,p=0,f=Array(d),m=Array(d),g=+r.apply(this,arguments),y=Math.min(iR,Math.max(-iR,i.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/d,a.apply(this,arguments)),k=b*(y<0?-1:1);for(o=0;o<d;++o)(h=m[f[o]=o]=+e(s[o],o,s))>0&&(p+=h);for(null!=t?f.sort(function(e,n){return t(m[e],m[n])}):null!=n&&f.sort(function(e,t){return n(s[e],s[t])}),o=0,c=p?(y-d*k)/p:0;o<d;++o,g=u)u=g+((h=m[l=f[o]])>0?h*c:0)+k,m[l]={data:s[l],index:o,value:h,startAngle:g,endAngle:u,padAngle:b};return m}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:i_(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:i_(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:i_(+e),s):i},s.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:i_(+e),s):a},s}function i5(){}function i3(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function i6(e){this._context=e}function i9(e){return new i6(e)}function i4(e){this._context=e}function i8(e){return new i4(e)}function i7(e){this._context=e}function ae(e){return new i7(e)}iU.prototype,Array.prototype.slice,iY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},i6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i3(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i3(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},i4.prototype={areaStart:i5,areaEnd:i5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:i3(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},i7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:i3(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class at{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function an(e){return new at(e,!0)}function ar(e){return new at(e,!1)}function ai(e,t){this._basis=new i6(e),this._beta=t}ai.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],s=e[n]-i,o=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*s),this._beta*t[l]+(1-this._beta)*(a+r*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};let aa=function e(t){function n(e){return 1===t?new i6(e):new ai(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function as(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ao(e,t){this._context=e,this._k=(1-t)/6}ao.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:as(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:as(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let al=function e(t){function n(e){return new ao(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ac(e,t){this._context=e,this._k=(1-t)/6}ac.prototype={areaStart:i5,areaEnd:i5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:as(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let au=function e(t){function n(e){return new ac(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ah(e,t){this._context=e,this._k=(1-t)/6}ah.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:as(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ad=function e(t){function n(e){return new ah(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ap(e,t,n){var r=e._x1,i=e._y1,a=e._x2,s=e._y2;if(e._l01_a>1e-12){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,s=(s*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,s,e._x2,e._y2)}function af(e,t){this._context=e,this._alpha=t}af.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ap(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let am=function e(t){function n(e){return t?new af(e,t):new ao(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ag(e,t){this._context=e,this._alpha=t}ag.prototype={areaStart:i5,areaEnd:i5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ap(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ay=function e(t){function n(e){return t?new ag(e,t):new ac(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ab(e,t){this._context=e,this._alpha=t}ab.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ap(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ak=function e(t){function n(e){return t?new ab(e,t):new ah(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ax(e){this._context=e}function aE(e){return new ax(e)}function av(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0);return((a<0?-1:1)+(s<0?-1:1))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs((a*i+s*r)/(r+i)))||0}function a_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function aT(e,t,n){var r=e._x0,i=e._y0,a=e._x1,s=e._y1,o=(a-r)/3;e._context.bezierCurveTo(r+o,i+o*t,a-o,s-o*n,a,s)}function aA(e){this._context=e}function aw(e){this._context=new aS(e)}function aS(e){this._context=e}function aC(e){return new aA(e)}function aN(e){return new aw(e)}function aM(e){this._context=e}function aI(e){var t,n,r=e.length-1,i=Array(r),a=Array(r),s=Array(r);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function aL(e){return new aM(e)}function aR(e,t){this._context=e,this._t=t}function aD(e){return new aR(e,.5)}function aO(e){return new aR(e,0)}function aP(e){return new aR(e,1)}function aF(e,t,n){this.k=e,this.x=t,this.y=n}ax.prototype={areaStart:i5,areaEnd:i5,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},aA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:aT(this,this._t0,a_(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t*=1,(e*=1)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,aT(this,a_(this,n=av(this,e,t)),n);break;default:aT(this,this._t0,n=av(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(aw.prototype=Object.create(aA.prototype)).point=function(e,t){aA.prototype.point.call(this,t,e)},aS.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}},aM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=aI(e),i=aI(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},aR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},aF.prototype={constructor:aF,scale:function(e){return 1===e?this:new aF(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new aF(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new aF(1,0,0);aF.prototype},87372:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]])},87733:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},88707:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]])},89131:(e,t,n)=>{"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from("string"==typeof e?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){var t,n;return null!=(n=null==(t=e.match(/[\t ]/g))?void 0:t.length)?n:0})):e},[]);if(i.length){var a=RegExp("\n[ ]{".concat(Math.min.apply(Math,i),"}"),"g");r=r.map(function(e){return e.replace(a,"\n")})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return t.forEach(function(e,t){var n=s.match(/(?:^|\n)( *)$/),i=n?n[1]:"",a=e;"string"==typeof e&&e.includes("\n")&&(a=String(e).split("\n").map(function(e,t){return 0===t?e:"".concat(i).concat(e)}).join("\n")),s+=a+r[t+1]}),s}n.d(t,{T:()=>r})},89618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BLANK_URL=t.relativeFirstCharacters=t.whitespaceEscapeCharsRegex=t.urlSchemeRegex=t.ctrlCharactersRegex=t.htmlCtrlEntityRegex=t.htmlEntitiesRegex=t.invalidProtocolRegex=void 0,t.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,t.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,t.htmlCtrlEntityRegex=/&(newline|tab);/gi,t.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,t.urlSchemeRegex=/^.+(:|:)/gim,t.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,t.relativeFirstCharacters=[".","/"],t.BLANK_URL="about:blank"},89757:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("lock-keyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},90099:(e,t,n)=>{"use strict";n.d(t,{i:()=>y});var r=n(69266),i=n(48356),a=n(79833),s=n(69611),o=n(9542),l=n(96910),c=n(56906),u=n(39341),h=n(54545),d=n(30542),p=n(91305),f=n(53402),m=n(27944),g=n(7962);let y=r.forwardRef(function(e,t){let{render:n,className:y,id:b,label:k,nativeButton:x=!1,disabled:E=!1,closeOnClick:v=!1,value:_,style:T,...A}=e,w=(0,h.q)({guess:!0,label:k}),S=(0,p.O)(!0),C=(0,o.e)(b),{store:N}=(0,a.Y)(),M=N.useState("isActive",w.index),I=N.useState("itemProps"),{value:L,setValue:R,disabled:D}=(0,l.S)(),O=N.useState("disabled"),P=E||D||O,F=L===_,{getItemProps:B,itemRef:U}=(0,d.O)({closeOnClick:v,disabled:P,highlighted:M,id:C,store:N,nativeButton:x,nodeId:S?.context.nodeId,itemMetadata:d.z}),H=r.useMemo(()=>({disabled:P,highlighted:M,checked:F}),[P,M,F]),$=(0,s.o)("div",e,{state:H,stateAttributesMapping:u.a,props:[I,{role:"menuitemradio","aria-checked":F,onClick:function(e){R(_,(0,f.d)(m.Bo,e.nativeEvent,void 0,{preventUnmountOnClose:i.tE}))}},A,B],ref:[U,t,w.ref]});return(0,g.jsx)(c.l.Provider,{value:H,children:$})})},90164:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},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)-/,s=/^-(ms)-/,o=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(s,l):e.replace(a,l)).replace(r,o))}},90695:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},90772:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},93192:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("list-checks",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]])},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))},93356:(e,t,n)=>{"use strict";n.d(t,{a:()=>n3});var r=n(49343),i=n(84539),a=n(55531);n(71627),n(50789),n(48495),n(7632),n(71216),n(94725);var s=n(44549),o=n(4196),l=n(89316),c=n(47508),u=n(39410),h=n(89131),d=n(86594),p="comm",f="rule",m="decl",g="@keyframes",y="@layer",b=Math.abs,k=String.fromCharCode;function x(e,t,n){return e.replace(t,n)}function E(e,t){return 0|e.charCodeAt(t)}function v(e,t,n){return e.slice(t,n)}function _(e){return e.length}function T(e,t){return t.push(e),e}function A(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function w(e,t,n,r){switch(e.type){case y:if(e.children.length)break;case"@import":case"@namespace":case m:return e.return=e.return||e.value;case p:return"";case g:return e.return=e.value+"{"+A(e.children,r)+"}";case f:if(!_(e.value=e.props.join(",")))return""}return _(n=A(e.children,r))?e.return=e.value+"{"+n+"}":""}var S=1,C=1,N=0,M=0,I=0,L="";function R(e,t,n,r,i,a,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:S,column:C,length:s,return:"",siblings:o}}function D(){return I=M<N?E(L,M++):0,C++,10===I&&(C=1,S++),I}function O(){return E(L,M)}function P(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function F(e){var t,n;return(t=M-1,n=function e(t){for(;D();)switch(I){case t:return M;case 34:case 39:34!==t&&39!==t&&e(I);break;case 40:41===t&&e(t);break;case 92:D()}return M}(91===e?e+2:40===e?e+1:e),v(L,t,n)).trim()}function B(e,t,n,r,i,a,s,o,l,c,u,h){for(var d=i-1,p=0===i?a:[""],m=p.length,g=0,y=0,k=0;g<r;++g)for(var E=0,_=v(e,d+1,d=b(y=s[g])),T=e;E<m;++E)(T=(y>0?p[E]+" "+_:x(_,/&\f/g,p[E])).trim())&&(l[k++]=T);return R(e,t,n,0===i?f:o,l,c,u,h)}function U(e,t,n,r,i){return R(e,t,n,m,v(e,0,r),v(e,r+1,-1),r,i)}var H=n(98500),$=n(26232),j=n(74598),G=n(33349),z=n(24722);function V(e){if(null==e)return!0;if((0,j.X)(e))return("function"==typeof e.splice||"string"==typeof e||!!(0,$.P)(e)||!!(0,z.i)(e)||!!(0,G.N)(e))&&0===e.length;if("object"==typeof e||"function"==typeof e){let t;if(e instanceof Map||e instanceof Set)return 0===e.size;let n=Object.keys(e);return(t=e?.constructor,e===("function"==typeof t?t.prototype:Object.prototype))?0===n.filter(e=>"constructor"!==e).length:0===n.length}return!0}var K={id:"c4",detector:(0,u.K)(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:(0,u.K)(async()=>{let{diagram:e}=await n.e(72617).then(n.bind(n,72617));return{id:"c4",diagram:e}},"loader")},W="flowchart",q=(0,u.K)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-wrapper"&&t?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(e),"detector"),Y=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(41585),n.e(55060)]).then(n.bind(n,55060));return{id:W,diagram:e}},"loader"),X={id:W,detector:q,loader:Y},Q="flowchart-v2",Z=(0,u.K)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-d3"&&(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),!!/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(e)),"detector"),J=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(41585),n.e(55060)]).then(n.bind(n,55060));return{id:Q,diagram:e}},"loader"),ee={id:Q,detector:Z,loader:J},et="swimlane",en=(0,u.K)(e=>/^\s*swimlane-beta\b/.test(e),"detector"),er=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(41585),n.e(6294)]).then(n.bind(n,6294));return{id:et,diagram:e}},"loader"),ei={id:et,detector:en,loader:er},ea={id:"er",detector:(0,u.K)(e=>/^\s*erDiagram/.test(e),"detector"),loader:(0,u.K)(async()=>{let{diagram:e}=await n.e(11777).then(n.bind(n,11777));return{id:"er",diagram:e}},"loader")},es="gitGraph",eo=(0,u.K)(e=>/^\s*gitGraph/.test(e),"detector"),el=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(21946)]).then(n.bind(n,21946));return{id:es,diagram:e}},"loader"),ec={id:es,detector:eo,loader:el},eu="gantt",eh=(0,u.K)(e=>/^\s*gantt/.test(e),"detector"),ed=(0,u.K)(async()=>{let{diagram:e}=await n.e(67426).then(n.bind(n,67426));return{id:eu,diagram:e}},"loader"),ep={id:eu,detector:eh,loader:ed},ef="info",em=(0,u.K)(e=>/^\s*info/.test(e),"detector"),eg=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(14051)]).then(n.bind(n,14051));return{id:ef,diagram:e}},"loader"),ey={id:ef,detector:em,loader:eg},eb={id:"pie",detector:(0,u.K)(e=>/^\s*pie/.test(e),"detector"),loader:(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(30100)]).then(n.bind(n,30100));return{id:"pie",diagram:e}},"loader")},ek="quadrantChart",ex=(0,u.K)(e=>/^\s*quadrantChart/.test(e),"detector"),eE=(0,u.K)(async()=>{let{diagram:e}=await n.e(75657).then(n.bind(n,75657));return{id:ek,diagram:e}},"loader"),ev={id:ek,detector:ex,loader:eE},e_="xychart",eT=(0,u.K)(e=>/^\s*xychart(-beta)?/.test(e),"detector"),eA=(0,u.K)(async()=>{let{diagram:e}=await n.e(70995).then(n.bind(n,70995));return{id:e_,diagram:e}},"loader"),ew={id:e_,detector:eT,loader:eA},eS="requirement",eC=(0,u.K)(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),eN=(0,u.K)(async()=>{let{diagram:e}=await n.e(50894).then(n.bind(n,50894));return{id:eS,diagram:e}},"loader"),eM={id:eS,detector:eC,loader:eN},eI="sequence",eL=(0,u.K)(e=>/^\s*sequenceDiagram/.test(e),"detector"),eR=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(23678),n.e(22065)]).then(n.bind(n,82977));return{id:eI,diagram:e}},"loader"),eD={id:eI,detector:eL,loader:eR},eO="class",eP=(0,u.K)((e,t)=>t?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(e),"detector"),eF=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(69558),n.e(26816)]).then(n.bind(n,26816));return{id:eO,diagram:e}},"loader"),eB={id:eO,detector:eP,loader:eF},eU="classDiagram",eH=(0,u.K)((e,t)=>!!/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(e),"detector"),e$=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(69558),n.e(69559)]).then(n.bind(n,69559));return{id:eU,diagram:e}},"loader"),ej={id:eU,detector:eH,loader:e$},eG="state",ez=(0,u.K)((e,t)=>t?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(e),"detector"),eV=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(17817),n.e(41487),n.e(3376),n.e(51039),n.e(79059)]).then(n.bind(n,79059));return{id:eG,diagram:e}},"loader"),eK={id:eG,detector:ez,loader:eV},eW="stateDiagram",eq=(0,u.K)((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),eY=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(51039),n.e(88481)]).then(n.bind(n,88481));return{id:eW,diagram:e}},"loader"),eX={id:eW,detector:eq,loader:eY},eQ="journey",eZ=(0,u.K)(e=>/^\s*journey/.test(e),"detector"),eJ=(0,u.K)(async()=>{let{diagram:e}=await n.e(59205).then(n.bind(n,59205));return{id:eQ,diagram:e}},"loader"),e0={id:eQ,detector:eZ,loader:eJ},e1={draw:(0,u.K)((e,t,n)=>{c.R.debug("rendering svg for syntax error\n");let i=(0,r.D)(t),a=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,l.a$)(i,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw")},e2={db:{},renderer:e1,parser:{parse:(0,u.K)(()=>{},"parse")}},e5="flowchart-elk",e3=(0,u.K)((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk")&&(t.layout="elk",!0),"detector"),e6=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(41585),n.e(55060)]).then(n.bind(n,55060));return{id:e5,diagram:e}},"loader"),e9={id:e5,detector:e3,loader:e6},e4="timeline",e8=(0,u.K)(e=>/^\s*timeline/.test(e),"detector"),e7=(0,u.K)(async()=>{let{diagram:e}=await n.e(86247).then(n.bind(n,86247));return{id:e4,diagram:e}},"loader"),te={id:e4,detector:e8,loader:e7},tt="mindmap",tn=(0,u.K)(e=>/^\s*mindmap/.test(e),"detector"),tr=(0,u.K)(async()=>{let{diagram:e}=await n.e(71914).then(n.bind(n,71914));return{id:tt,diagram:e}},"loader"),ti={id:tt,detector:tn,loader:tr},ta="kanban",ts=(0,u.K)(e=>/^\s*kanban/.test(e),"detector"),to=(0,u.K)(async()=>{let{diagram:e}=await n.e(46259).then(n.bind(n,46259));return{id:ta,diagram:e}},"loader"),tl={id:ta,detector:ts,loader:to},tc="sankey",tu=(0,u.K)(e=>/^\s*sankey(-beta)?/.test(e),"detector"),th=(0,u.K)(async()=>{let{diagram:e}=await n.e(39255).then(n.bind(n,39255));return{id:tc,diagram:e}},"loader"),td={id:tc,detector:tu,loader:th},tp="packet",tf=(0,u.K)(e=>/^\s*packet(-beta)?/.test(e),"detector"),tm=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(95481)]).then(n.bind(n,95481));return{id:tp,diagram:e}},"loader"),tg={id:tp,detector:tf,loader:tm},ty="radar",tb=(0,u.K)(e=>/^\s*radar-beta/.test(e),"detector"),tk=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(30238)]).then(n.bind(n,30238));return{id:ty,diagram:e}},"loader"),tx={id:ty,detector:tb,loader:tk},tE="block",tv=(0,u.K)(e=>/^\s*block(-beta)?/.test(e),"detector"),t_=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(17817),n.e(68654)]).then(n.bind(n,68654));return{id:tE,diagram:e}},"loader"),tT={id:tE,detector:tv,loader:t_},tA="treeView",tw=(0,u.K)(e=>/^\s*treeView-beta/.test(e),"detector"),tS=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(47584)]).then(n.bind(n,47584));return{id:tA,diagram:e}},"loader"),tC={id:tA,detector:tw,loader:tS},tN="architecture",tM=(0,u.K)(e=>/^\s*architecture/.test(e),"detector"),tI=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(57634),n.e(91637),n.e(10030)]).then(n.bind(n,10030));return{id:tN,diagram:e}},"loader"),tL={id:tN,detector:tM,loader:tI},tR="eventmodeling",tD=(0,u.K)(e=>/^\s*eventmodeling/.test(e),"detector"),tO=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(52416)]).then(n.bind(n,52416));return{id:tR,diagram:e}},"loader"),tP={id:tR,detector:tD,loader:tO},tF="ishikawa",tB=(0,u.K)(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),tU=(0,u.K)(async()=>{let{diagram:e}=await n.e(74031).then(n.bind(n,74031));return{id:tF,diagram:e}},"loader"),tH={id:tF,detector:tB,loader:tU},t$="venn",tj=(0,u.K)(e=>/^\s*venn-beta/.test(e),"detector"),tG=(0,u.K)(async()=>{let{diagram:e}=await n.e(1114).then(n.bind(n,1114));return{id:t$,diagram:e}},"loader"),tz={id:t$,detector:tj,loader:tG},tV="treemap",tK=(0,u.K)(e=>/^\s*treemap/.test(e),"detector"),tW=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(32174)]).then(n.bind(n,32174));return{id:tV,diagram:e}},"loader"),tq={id:tV,detector:tK,loader:tW},tY="wardley",tX=(0,u.K)(e=>/^\s*wardley-beta/i.test(e),"detector"),tQ=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(9613)]).then(n.bind(n,9613));return{id:tY,diagram:e}},"loader"),tZ={id:tY,detector:tX,loader:tQ},tJ="cynefin",t0=(0,u.K)(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),t1=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(57283)]).then(n.bind(n,57283));return{id:tJ,diagram:e}},"loader"),t2={id:tJ,detector:t0,loader:t1},t5="railroad",t3=(0,u.K)(e=>/^\s*railroad-beta/i.test(e),"detector"),t6=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(55718),n.e(20595)]).then(n.bind(n,20595));return{id:t5,diagram:e}},"loader"),t9={id:t5,detector:t3,loader:t6},t4="railroadEbnf",t8=(0,u.K)(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),t7=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(55718),n.e(21488)]).then(n.bind(n,21488));return{id:t4,diagram:e}},"loader"),ne={id:t4,detector:t8,loader:t7},nt="railroadAbnf",nn=(0,u.K)(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),nr=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(55718),n.e(63552)]).then(n.bind(n,63552));return{id:nt,diagram:e}},"loader"),ni={id:nt,detector:nn,loader:nr},na="railroadPeg",ns=(0,u.K)(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),no=(0,u.K)(async()=>{let{diagram:e}=await Promise.all([n.e(64581),n.e(91637),n.e(55718),n.e(73762)]).then(n.bind(n,73762));return{id:na,diagram:e}},"loader"),nl={id:na,detector:ns,loader:no},nc=!1,nu=(0,u.K)(()=>{nc||(nc=!0,(0,l.Js)("error",e2,e=>"error"===e.toLowerCase().trim()),(0,l.Js)("---",{db:{clear:(0,u.K)(()=>{},"clear")},styles:{},renderer:{draw:(0,u.K)(()=>{},"draw")},parser:{parse:(0,u.K)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,u.K)(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),(0,l.Xd)(e9,ti,tL),(0,l.Xd)(K,tl,ej,eB,ea,ep,ey,eb,eM,eD,ei,ee,X,te,ec,eX,eK,e0,ev,td,tg,ew,tT,tP,tC,tx,tH,tq,t9,ne,ni,nl,tz,tZ,t2))},"addDiagrams"),nh=(0,u.K)(async()=>{c.R.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(l.mW).map(async([e,{detector:t,loader:n}])=>{if(n)try{(0,l.Gs)(e)}catch{try{let{diagram:e,id:r}=await n();(0,l.Js)(r,e,t)}catch(t){throw c.R.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete l.mW[e],t}}}))).filter(e=>"rejected"===e.status);if(e.length>0){for(let t of(c.R.error(`Failed to load ${e.length} external diagrams`),e))c.R.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function nd(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function np(e,t,n,r){if(void 0!==e.insert){if(n){let t=`chart-desc-${r}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){let n=`chart-title-${r}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}(0,u.K)(nd,"setA11yDiagramInfo"),(0,u.K)(np,"addSVGa11yTitleDescription");var nf=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{(0,u.K)(this,"Diagram")}static async fromText(t,n={}){let r=(0,l.zj)(),i=(0,l.Ch)(t,r);t=(0,o.C4)(t)+"\n";try{(0,l.Gs)(i)}catch{let e=(0,l.J$)(i);if(!e)throw new l.C0(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();(0,l.Js)(t,n)}let{db:a,parser:s,renderer:c,init:u}=(0,l.Gs)(i);return s.parser&&(s.parser.yy=a),a.clear?.(),u?.(r),n.title&&a.setDiagramTitle?.(n.title),await s.parse(t),new e(i,t,a,s,c)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},nm=[],ng=(0,u.K)(()=>{nm.forEach(e=>{e()}),nm=[]},"attachFunctions"),ny=(0,u.K)(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function nb(e){let t=e.match(l.EJ);if(!t)return{text:e,metadata:{}};let n=t[1],r=n?t[2].split("\n").map(e=>e.startsWith(n)?e.slice(n.length):e).join("\n"):t[2],a=(0,i.H)(r,{schema:i.r})??{};a="object"!=typeof a||Array.isArray(a)?{}:a;let s={};return a.displayMode&&(s.displayMode=a.displayMode.toString()),a.title&&(s.title=a.title.toString()),a.config&&(s.config=a.config),{text:e.slice(t[0].length),metadata:s}}(0,u.K)(nb,"extractFrontMatter");var nk=(0,u.K)(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,n)=>"<"+t+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),nx=(0,u.K)(e=>{let{text:t,metadata:n}=nb(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||(a.gantt={}),a.gantt.displayMode=r),{title:i,config:a,text:t}},"processFrontmatter"),nE=(0,u.K)(e=>{let t=o._K.detectInit(e)??{},n=o._K.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:e})=>"wrap"===e):n?.type==="wrap"&&(t.wrap=!0),{text:(0,o.vU)(e),directive:t}},"processDirectives");function nv(e){let t=nx(nk(e)),n=nE(t.text),r=(0,o.$t)(t.config,n.directive);return{code:e=ny(n.text),title:t.title,config:r}}function n_(e){return btoa(Array.from(new TextEncoder().encode(e),e=>String.fromCodePoint(e)).join(""))}(0,u.K)(nv,"preprocessDiagram"),(0,u.K)(n_,"toBase64");var nT=["foreignobject"],nA=["dominant-baseline"];function nw(e){let t=nv(e);return(0,l.cL)(),(0,l.xA)(t.config??{}),t}async function nS(e,t){nu();try{let{code:t,config:n}=nw(e);return{diagramType:(await nU(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}(0,u.K)(nw,"processAndSetConfigs"),(0,u.K)(nS,"parse");var nC=(0,u.K)((e,t,n=[])=>{let r=(0,l.Df)(`{ ${n.join(" !important; ")} !important; }`);return`.${e} ${t} ${r}`},"cssImportantStyles"),nN=(0,u.K)((e,t=new Map)=>{let n=new CSSStyleSheet;if(void 0!==e.fontFamily&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),void 0!==e.altFontFamily&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=(0,l.E)(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{V(e.styles)||r.forEach(t=>{n.insertRule(nC(e.id,t,e.styles),n.cssRules.length)}),V(e.textStyles)||n.insertRule(nC(e.id,"tspan",(e?.textStyles||[]).map(e=>e.replace("color","fill"))),n.cssRules.length)})}let r="";if(void 0!==e.themeCSS)if("function"==typeof n.replaceSync){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=(0,l.KG)(t)+"\n"}else r+=`${e.themeCSS}
|
|
257
|
-
`;return r+(0,l.KG)(n)},"createCssStyles"),nM=(0,u.K)((e,t)=>{var n,r,i,a,s;return A((i=function e(t,n,r,i,a,s,o,l,c){for(var u,h,d,f,m=0,g=0,y=o,b=0,A=0,w=0,N=1,H=1,$=1,j=0,G=0,z="",V=a,K=s,W=i,q=z;H;)switch(w=G,G=D()){case 40:108!=w&&58==E(q,y-1)?(j++,q+="("):q+=F(G);break;case 41:j--,q+=")";break;case 34:case 39:case 91:q+=F(G);break;case 9:case 10:case 13:case 32:if(j>0){q+=k(G);break}q+=function(e){for(;I=O();)if(I<33)D();else break;return P(e)>2||P(I)>3?"":" "}(w);break;case 92:q+=function(e,t){for(var n;--t&&D()&&!(I<48)&&!(I>102)&&(!(I>57)||!(I<65))&&(!(I>70)||!(I<97)););return n=M+(t<6&&32==O()&&32==D()),v(L,e,n)}(M-1,7);continue;case 47:switch(O()){case 42:case 47:T((u=function(e,t){for(;D();)if(e+I===57)break;else if(e+I===84&&47===O())break;return"/*"+v(L,t,M-1)+"*"+k(47===e?e:D())}(D(),M),h=n,d=r,f=c,R(u,h,d,p,k(I),v(u,2,-2),0,f)),c),(5==P(w||1)||5==P(O()||1))&&_(q)&&" "!==v(q,-1,void 0)&&(q+=" ");break;default:q+="/"}break;case 123*N:l[m++]=_(q)*$;case 125*N:case 59:case 0:if(j>0&&G){q+=k(G);break}switch(G){case 0:case 125:H=0;case 59+g:-1==$&&(q=x(q,/\f/g,"")),A>0&&(_(q)-y||0===N)&&T(A>32?U(q+";",i,r,y-1,c):U(x(q," ","")+";",i,r,y-2,c),c);break;case 59:q+=";";default:if(T(W=B(q,n,r,m,g,a,l,z,V=[],K=[],y,s),s),123===G)if(0===g)e(q,n,W,W,V,s,y,l,K);else{switch(b){case 99:if(110===E(q,3))break;case 108:if(97===E(q,2))break;default:g=0;case 100:case 109:case 115:}g?e(t,W,W,i&&T(B(t,W,W,0,0,a,l,z,a,V=[],y,K),K),a,K,y,l,i?V:K):e(q,W,W,W,[""],K,0,l,K)}}m=g=A=0,N=$=1,z=q="",y=o;break;case 58:y=1+_(q),A=w;default:if(N<1){if(123==G)--N;else if(125==G&&0==N++&&125==(I=M>0?E(L,--M):0,C--,10===I&&(C=1,S--),I))continue}switch(q+=k(G),G*N){case 38:$=g>0?1:(q+="\f",-1);break;case 44:if(j>0)break;l[m++]=(_(q)-1)*$,$=1;break;case 64:45===O()&&(q+=F(D())),b=O(),g=y=_(z=q+=function(e){for(;!P(O());)D();return v(L,e,M)}(M)),G++;break;case 45:45===w&&2==_(q)&&(N=0)}}return s}("",null,null,null,[""],(r=n=`${e}{${t}}`,S=C=1,N=_(L=r),M=0,n=[]),0,[0],n),L="",i),(s=(a=[(0,u.K)(function(t,n,r,i){"rule"===t.type&&Array.isArray(t.props)?t.parent&&t.parent.type===g||(t.props=t.props.map(n=>n===e&&Array.isArray(t.children)&&t.children.every(e=>"decl"===e.type&&new Set(["font-family","font-size","fill"]).has(e.props))||(n.startsWith(`${e} `)||n.startsWith(`${e}>`))&&!n.startsWith(`${e} ||`)?n:`${e} ${n}`)):t.type.startsWith("@")&&(["@media","@supports",y,"@scope","@container","@starting-style",g].includes(t.type)||(c.R.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=p))},"addNamespace"),w]).length,function(e,t,n,r){for(var i="",o=0;o<s;o++)i+=a[o](e,t,n,r)||"";return i}))},"compileCSS"),nI=(0,u.K)((e,t,n,r)=>{let i=nN(e,n),a=(0,l.tM)(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r);return nM(r,a)},"createUserStyles"),nL=(0,u.K)((e="",t,n)=>{let r=e;return n||t||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(r=(0,o.Sm)(r)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),nR=(0,u.K)((e="",t)=>{let n=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%",r=n_(`<body style="margin:0">${e}</body>`);return`<iframe style="width:100%;height:${n};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${r}" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
258
|
-
The "iframe" tag is not supported by your browser.
|
|
259
|
-
</iframe>`},"putIntoIFrame"),nD=(0,u.K)((e,t,n,r,i)=>{let a=e.append("div");a.attr("id",n),r&&a.attr("style",r);let s=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&s.attr("xmlns:xlink",i),s.append("g"),e},"appendDivSvgG");function nO(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,u.K)(nO,"sandboxedIframe");var nP=(0,u.K)((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},"removeExistingElements"),nF=(0,u.K)(async function(e,t,n){let r,i;nu();let a=nw(t);t=a.code;let s=(0,l.zj)();c.R.debug(s),t.length>(s?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let o=`#${e}`,h="i"+e,p="#"+h,f="d"+e,m="#"+f,g=(0,u.K)(()=>{let e=b?p:m,t=(0,d.Ltv)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),y=(0,d.Ltv)(document.body),b="sandbox"===s.securityLevel,k="loose"===s.securityLevel,x=s.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),b){let e=nO((0,d.Ltv)(n),h);(y=(0,d.Ltv)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else y=(0,d.Ltv)(n);nD(y,e,f,`font-family: ${x}`,"http://www.w3.org/1999/xlink")}else{if(nP(document,e,f,h),b){let e=nO((0,d.Ltv)(document.body),h);(y=(0,d.Ltv)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else y=(0,d.Ltv)("body");nD(y,e,f)}try{r=await nf.fromText(t,{title:a.title})}catch(e){if(s.suppressErrorRendering)throw g(),e;r=await nf.fromText("error"),i=e}let E=y.select(m).node(),v=r.type,_=E.firstChild,T=_.firstChild,A=nI(s,v,r.renderer.getClasses?.(t,r),o),w=document.createElement("style");w.innerHTML=A,_.insertBefore(w,T);try{await r.renderer.draw(t,e,"11.16.1",r)}catch(n){throw s.suppressErrorRendering?g():e1.draw(t,e,"11.16.1"),n}nH(v,y.select(`${m} svg`),r.db.getAccTitle?.(),r.db.getAccDescription?.()),y.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let S=y.select(m).node().innerHTML;if(c.R.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),S=nL(S,b,(0,l._3)(s.arrowMarkerAbsolute)),b?S=nR(S,y.select(m+" svg").node()):k||(S=H.A.sanitize(S,{ADD_TAGS:nT,ADD_ATTR:nA,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),ng(),i)throw i;return g(),{diagramType:v,svg:S,bindFunctions:r.db.bindFunctions}},"render");function nB(e={}){let t=(0,l.hH)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,l.wZ)(t),t?.theme&&t.theme in l.H$?t.themeVariables=l.H$[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=l.H$.default.getThemeVariables(t.themeVariables));let n="object"==typeof t?(0,l.UU)(t):(0,l.Q2)();(0,c.H)(n.logLevel),nu()}(0,u.K)(nB,"initialize");var nU=(0,u.K)((e,t={})=>{let{code:n}=nv(e);return nf.fromText(n,t)},"getDiagramFromText");function nH(e,t,n,r){nd(t,e),np(t,n,r,t.attr("id"))}(0,u.K)(nH,"addA11yInfo");var n$=Object.freeze({render:nF,parse:nS,getDiagramFromText:nU,initialize:nB,getConfig:l.zj,setConfig:l.Nk,getSiteConfig:l.Q2,updateSiteConfig:l.B6,reset:(0,u.K)(()=>{(0,l.cL)()},"reset"),globalReset:(0,u.K)(()=>{(0,l.cL)(l.sb)},"globalReset"),defaultConfig:l.sb});(0,c.H)((0,l.zj)().logLevel),(0,l.cL)((0,l.zj)());var nj=(0,u.K)((e,t,n)=>{c.R.warn(e),(0,o.dq)(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),nG=(0,u.K)(async function(e={querySelector:".mermaid"}){try{await nz(e)}catch(t){if((0,o.dq)(t)&&c.R.error(t.str),n2.parseError&&n2.parseError(t),!e.suppressErrors)throw c.R.error("Use the suppressErrors option to suppress these errors"),t}},"run"),nz=(0,u.K)(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){let r,i,a=n$.getConfig();if(c.R.debug(`${!e?"No ":""}Callback function found`),n)r=n;else if(t)r=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");c.R.debug(`Found ${r.length} diagrams`),a?.startOnLoad!==void 0&&(c.R.debug("Start On Load: "+a?.startOnLoad),n$.updateSiteConfig({startOnLoad:a?.startOnLoad}));let s=new o._K.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),l=[];for(let t of Array.from(r)){if(c.R.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let n=`mermaid-${s.next()}`;i=t.innerHTML,i=(0,h.T)(o._K.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let r=o._K.detectInit(i);r&&c.R.debug("Detected early reinit: ",r);try{let{svg:r,bindFunctions:a}=await n0(n,i,t);t.innerHTML=r,e&&await e(n),a&&a(t)}catch(e){nj(e,l,n2.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),nV=(0,u.K)(function(e){n$.initialize(e)},"initialize"),nK=(0,u.K)(async function(e,t,n){c.R.warn("mermaid.init is deprecated. Please use run instead."),e&&nV(e);let r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await nG(r)},"init"),nW=(0,u.K)(async(e,{lazyLoad:t=!0}={})=>{nu(),(0,l.Xd)(...e),!1===t&&await nh()},"registerExternalDiagrams"),nq=(0,u.K)(function(){if(n2.startOnLoad){let{startOnLoad:e}=n$.getConfig();e&&n2.run().catch(e=>c.R.error("Mermaid failed to initialize",e))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",nq,!1);var nY=(0,u.K)(function(e){n2.parseError=e},"setParseErrorHandler"),nX=[],nQ=!1,nZ=(0,u.K)(async()=>{if(!nQ){for(nQ=!0;nX.length>0;){let e=nX.shift();if(e)try{await e()}catch(e){c.R.error("Error executing queue",e)}}nQ=!1}},"executeQueue"),nJ=(0,u.K)(async(e,t)=>new Promise((n,r)=>{let i=(0,u.K)(()=>new Promise((i,a)=>{n$.parse(e,t).then(e=>{i(e),n(e)},e=>{c.R.error("Error parsing",e),n2.parseError?.(e),a(e),r(e)})}),"performCall");nX.push(i),nZ().catch(r)}),"parse"),n0=(0,u.K)((e,t,n)=>new Promise((r,i)=>{let a=(0,u.K)(()=>new Promise((a,s)=>{n$.render(e,t,n).then(e=>{a(e),r(e)},e=>{c.R.error("Error parsing",e),n2.parseError?.(e),s(e),i(e)})}),"performCall");nX.push(a),nZ().catch(i)}),"render"),n1=(0,u.K)(()=>Object.keys(l.mW).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),n2={startOnLoad:!0,mermaidAPI:n$,parse:nJ,render:n0,init:nK,run:nG,registerExternalDiagrams:nW,registerLayoutLoaders:a.sO,initialize:nV,parseError:void 0,contentLoaded:nq,setParseErrorHandler:nY,detectType:l.Ch,registerIconPacks:s.pC,getRegisteredDiagramsMetadata:n1},n5={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},n3=function(e={}){let t=!1,n={...n5,...e.config},r={initialize(r){n={...n5,...e.config,...r},n2.initialize(n),t=!0},render:async(e,r)=>(t||(n2.initialize(n),t=!0),await n2.render(e,r))};return{name:"mermaid",type:"diagram",language:"mermaid",getMermaid:e=>(e&&r.initialize(e),r)}}()},93525:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(47552),i=n(47057);let a=(e,t)=>{let n=i.A.parse(e);for(let e in t)n[e]=r.A.channel.clamp[e](t[e]);return i.A.stringify(n)}},93780:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]])},94411:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("message-square-text",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]])},94703:(e,t,n)=>{"use strict";function r(){}n.d(t,{ok:()=>r})},94725:(e,t,n)=>{"use strict";n.d(t,{W:()=>eB,G:()=>eG});var r=n(44549),i=n(4196),a=n(89316),s=n(47508),o=n(39410),l=n(86594);function c(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var u=c(),h={exec:()=>null};function d(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(f.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var p=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),f={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,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ 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,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,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")},m=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,g=/(?:[*+-]|\d{1,9}[.)])/,y=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,b=d(y).replace(/bull/g,g).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(),k=d(y).replace(/bull/g,g).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(),x=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,E=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,v=d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",E).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,g).getRegex(),T="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",A=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,w=d("^ {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",A).replace("tag",T).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),S=d(x).replace("hr",m).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",T).getRegex(),C={blockquote:d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",S).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:v,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:m,html:w,lheading:b,list:_,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:S,table:h,text:/^[^\n]+/},N=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",m).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",T).getRegex(),M={...C,lheading:k,table:N,paragraph:d(x).replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",N).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",T).getRegex()},I={...C,html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",A).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:h,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(x).replace("hr",m).replace("heading",` *#{1,6} *[^
|
|
260
|
-
]`).replace("lheading",b).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},L=/^( {2,}|\\)\n(?!\s*$)/,R=/[\p{P}\p{S}]/u,D=/[\s\p{P}\p{S}]/u,O=/[^\s\p{P}\p{S}]/u,P=d(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,D).getRegex(),F=/(?!~)[\p{P}\p{S}]/u,B=d(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",p?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),U=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,H=d(U,"u").replace(/punct/g,R).getRegex(),$=d(U,"u").replace(/punct/g,F).getRegex(),j="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",G=d(j,"gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,D).replace(/punct/g,R).getRegex(),z=d(j,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,F).getRegex(),V=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,D).replace(/punct/g,R).getRegex(),K=d(/\\(punct)/,"gu").replace(/punct/g,R).getRegex(),W=d(/^<(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(),q=d(A).replace("(?:--\x3e|$)","--\x3e").getRegex(),Y=d("^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",q).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),X=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Q=d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",X).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Z=d(/^!?\[(label)\]\[(ref)\]/).replace("label",X).replace("ref",E).getRegex(),J=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",E).getRegex(),ee=d("reflink|nolink(?!\\()","g").replace("reflink",Z).replace("nolink",J).getRegex(),et=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,en={_backpedal:h,anyPunctuation:K,autolink:W,blockSkip:B,br:L,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:h,emStrongLDelim:H,emStrongRDelimAst:G,emStrongRDelimUnd:V,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Q,nolink:J,punctuation:P,reflink:Z,reflinkSearch:ee,tag:Y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:h},er={...en,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",X).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X).getRegex()},ei={...en,emStrongRDelimAst:z,emStrongLDelim:$,url:d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",et).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:d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",et).getRegex()},ea={...ei,br:d(L).replace("{2,}","*").getRegex(),text:d(ei.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},es={normal:C,gfm:M,pedantic:I},eo={normal:en,gfm:ei,breaks:ea,pedantic:er},el={"&":"&","<":"<",">":">",'"':""","'":"'"},ec=e=>el[e];function eu(e,t){if(t){if(f.escapeTest.test(e))return e.replace(f.escapeReplace,ec)}else if(f.escapeTestNoEncode.test(e))return e.replace(f.escapeReplaceNoEncode,ec);return e}function eh(e){try{e=encodeURI(e).replace(f.percentDecode,"%")}catch{return null}return e}function ed(e,t){let n=e.replace(f.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(f.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(f.slashPipe,"|");return n}function ep(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 ef(e,t,n,r,i){let a=t.href,s=t.title||null,o=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:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}var em=class{options;rules;lexer;constructor(e){this.options=e||u}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:ep(e,`
|
|
261
|
-
`)}}}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(`
|
|
262
|
-
`).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(`
|
|
263
|
-
`)}(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=ep(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:ep(t[0],`
|
|
264
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ep(t[0],`
|
|
265
|
-
`).split(`
|
|
266
|
-
`),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))a.push(e[s]),t=!0;else if(t)break;else a.push(e[s]);e=e.slice(s);let o=a.join(`
|
|
267
|
-
`),l=o.replace(this.rules.other.blockquoteSetextReplace,`
|
|
268
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
269
|
-
${o}`:o,r=r?`${r}
|
|
270
|
-
${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+`
|
|
271
|
-
`+e.join(`
|
|
272
|
-
`),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+`
|
|
273
|
-
`+e.join(`
|
|
274
|
-
`),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(`
|
|
275
|
-
`);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),s=!1;for(;e;){let n=!1,r="",o="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split(`
|
|
276
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split(`
|
|
277
|
-
`,1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,o=l.trimStart()):u?h=t[1].length+1:(h=(h=t[2].search(this.rules.other.nonSpaceChar))>4?1:h,o=l.slice(h),h+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+`
|
|
278
|
-
`,e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),a=this.rules.other.headingBeginRegex(h),s=this.rules.other.htmlBeginRegex(h);for(;e;){let d=e.split(`
|
|
279
|
-
`,1)[0],p;if(c=d,p=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||s.test(c)||t.test(c)||n.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=h||!c.trim())o+=`
|
|
280
|
-
`+p.slice(h);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;o+=`
|
|
281
|
-
`+c}u||c.trim()||(u=!0),r+=d+`
|
|
282
|
-
`,e=e.substring(d.length+1),l=p.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0));let d=null,p;this.options.gfm&&(d=this.rules.other.listIsTask.exec(o))&&(p="[ ] "!==d[0],o=o.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:r,task:!!d,checked:p,loose:!1,text:o,tokens:[]}),i.raw+=r}let o=i.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[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=0;e<i.items.length;e++)i.items[e].loose=!0;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=ed(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
283
|
-
`):[],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(ed(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)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
284
|
-
`?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=ep(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)),ef(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 ef(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,s=n,o=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]){s+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){o+=a;continue}if((s-=a)>0)continue;a=Math.min(a,a+s+o);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){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}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}}}},eg=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||u,this.options.tokenizer=this.options.tokenizer||new em,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:f,block:es.normal,inline:eo.normal};this.options.pedantic?(t.block=es.pedantic,t.inline=eo.pedantic):this.options.gfm&&(t.block=es.gfm,this.options.breaks?t.inline=eo.breaks:t.inline=eo.gfm),this.tokenizer.rules=t}static get rules(){return{block:es,inline:eo}}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(f.carriageReturn,`
|
|
285
|
-
`),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.options.pedantic&&(e=e.replace(f.tabCharGlobal," ").replace(f.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+=`
|
|
286
|
-
`: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(`
|
|
287
|
-
`)?"":`
|
|
288
|
-
`)+r.raw,n.text+=`
|
|
289
|
-
`+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(`
|
|
290
|
-
`)?"":`
|
|
291
|
-
`)+r.raw,n.text+=`
|
|
292
|
-
`+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(`
|
|
293
|
-
`)?"":`
|
|
294
|
-
`)+r.raw,a.text+=`
|
|
295
|
-
`+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(`
|
|
296
|
-
`)?"":`
|
|
297
|
-
`)+r.raw,n.text+=`
|
|
298
|
-
`+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,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,s="";for(;e;){let n;if(a||(s=""),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,s))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(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)&&(s=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}},ey=class{options;parser;constructor(e){this.options=e||u}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(f.notSpaceStart)?.[0],i=e.replace(f.endingNewline,"")+`
|
|
299
|
-
`;return r?'<pre><code class="language-'+eu(r)+'">'+(n?i:eu(i,!0))+`</code></pre>
|
|
300
|
-
`:"<pre><code>"+(n?i:eu(i,!0))+`</code></pre>
|
|
301
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
302
|
-
${this.parser.parse(e)}</blockquote>
|
|
303
|
-
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
304
|
-
`}hr(e){return`<hr>
|
|
305
|
-
`}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+'"':"")+`>
|
|
306
|
-
`+r+"</"+i+`>
|
|
307
|
-
`}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+eu(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
308
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
309
|
-
`}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>
|
|
310
|
-
<thead>
|
|
311
|
-
`+t+`</thead>
|
|
312
|
-
`+r+`</table>
|
|
313
|
-
`}tablerow({text:e}){return`<tr>
|
|
314
|
-
${e}</tr>
|
|
315
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
316
|
-
`}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>${eu(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=eh(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+eu(t)+'"'),a+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=eh(e);if(null===i)return eu(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${eu(t)}"`),a+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:eu(e.text)}},eb=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""}},ek=class e{options;renderer;textRenderer;constructor(e){this.options=e||u,this.options.renderer=this.options.renderer||new ey,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new eb}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){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||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"def":n+=this.renderer.def(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let a=i,s=this.renderer.text(a);for(;r+1<e.length&&"text"===e[r+1].type;)a=e[++r],s+=`
|
|
317
|
-
`+this.renderer.text(a);t?n+=this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):n+=s;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){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"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}},ex=class{options;block;constructor(e){this.options=e||u}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(){return this.block?eg.lex:eg.lexInline}provideParser(){return this.block?ek.parse:ek.parseInline}},eE=new class{defaults=c();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ek;Renderer=ey;TextRenderer=eb;Lexer=eg;Tokenizer=em;Hooks=ex;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 ey(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 em(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 ex;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];ex.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&ex.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 eg.lex(e,t??this.defaults)}parser(e,t){return ek.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?eg.lex:eg.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let s=await (i.hooks?await i.hooks.provideParser():e?ek.parse:ek.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?eg.lex:eg.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?ek.parse:ek.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+=`
|
|
318
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+eu(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function ev(e,t){return eE.parse(e,t)}ev.options=ev.setOptions=function(e){return eE.setOptions(e),ev.defaults=eE.defaults,u=ev.defaults,ev},ev.getDefaults=c,ev.defaults=u,ev.use=function(...e){return eE.use(...e),ev.defaults=eE.defaults,u=ev.defaults,ev},ev.walkTokens=function(e,t){return eE.walkTokens(e,t)},ev.parseInline=eE.parseInline,ev.Parser=ek,ev.parser=ek.parse,ev.Renderer=ey,ev.TextRenderer=eb,ev.Lexer=eg,ev.lexer=eg.lex,ev.Tokenizer=em,ev.Hooks=ex,ev.parse=ev,ev.options,ev.setOptions,ev.use,ev.walkTokens,ev.parseInline,ek.parse,eg.lex;var e_=n(89131);function eT(e,{markdownAutoWrap:t}){let n=e.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,e_.T)(n)}function eA(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:"normal"}))??[])}function ew(e,t={}){let n=eT(e,t),r=ev.lexer(n),i=[[]],a=0;function s(e,t="normal"){"text"===e.type?e.text.split("\n").forEach((e,n)=>{0!==n&&(a++,i.push([])),e.split(" ").forEach(e=>{(e=e.replace(/'/g,"'"))&&i[a].push({content:e,type:t})})}):"strong"===e.type||"em"===e.type?e.tokens.forEach(t=>{s(t,e.type)}):"html"===e.type&&i[a].push({content:e.text,type:"normal"})}return(0,o.K)(s,"processNode"),r.forEach(e=>{"paragraph"===e.type?e.tokens?.forEach(e=>{s(e)}):"html"===e.type?i[a].push({content:e.text,type:"normal"}):i[a].push({content:e.raw,type:"normal"})}),i}function eS(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}function eC(e,{markdownAutoWrap:t}={}){let n=ev.lexer(e);function r(e){if("text"===e.type)return!1===t?e.text.replace(/\n */g,"<br/>").replace(/ /g," "):e.text.replace(/\n */g,"<br/>");if("strong"===e.type)return`<strong>${e.tokens?.map(r).join("")}</strong>`;if("em"===e.type)return`<em>${e.tokens?.map(r).join("")}</em>`;if("paragraph"===e.type)return`<p>${e.tokens?.map(r).join("")}</p>`;if("space"===e.type)return"";else if("html"===e.type)return`${e.text}`;else if("escape"===e.type)return e.text;return s.R.warn(`Unsupported markdown: ${e.type}`),e.raw}return(0,o.K)(r,"output"),n.map(r).join("")}function eN(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}function eM(e,t){return eI(e,[],eN(t.content),t.type)}function eI(e,t,n,r){if(0===n.length)return[{content:t.join(""),type:r},{content:"",type:r}];let[i,...a]=n,s=[...t,i];return e([{content:s.join(""),type:r}])?eI(e,s,a,r):(0===t.length&&i&&(t.push(i),n.shift()),[{content:t.join(""),type:r},{content:n.join(""),type:r}])}function eL(e,t){if(e.some(({content:e})=>e.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return eR(e,t)}function eR(e,t,n=[],r=[]){if(0===e.length)return r.length>0&&n.push(r),n.length>0?n:[];let i="";" "===e[0].content&&(i=" ",e.shift());let a=e.shift()??{content:" ",type:"normal"},s=[...r];if(""!==i&&s.push({content:i,type:"normal"}),s.push(a),t(s))return eR(e,t,n,s);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){let[r,i]=eM(t,a);n.push([r]),i.content&&e.unshift(i)}return eR(e,t,n)}function eD(e,t){t&&e.attr("style",t)}async function eO(e,t,n,r,i=!1,s=(0,a.zj)()){let o=e.append("foreignObject");o.attr("width",`${Math.min(10*n,16384)}px`),o.attr("height",`${Math.min(10*n,16384)}px`);let l=o.append("xhtml:div"),c=(0,a.Wi)(t.label)?await (0,a.dj)(t.label.replace(a.Y2.lineBreakRegex,"\n"),s):(0,a.jZ)(t.label,s),u=t.isNode?"nodeLabel":"edgeLabel",h=l.append("span");h.html(c),eD(h,t.labelStyle),h.attr("class",`${u} ${r}`),eD(l,t.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),n!==1/0&&(l.style("max-width",n+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&l.attr("class","labelBkg");let d=l.node().getBoundingClientRect();return d.width===n&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",n+"px"),d=l.node().getBoundingClientRect()),o.node()}function eP(e,t,n,r=!1){let i=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*n-.1+"em").attr("dy",n+"em");return r&&i.attr("text-anchor","middle"),i}function eF(e,t,n){let r=e.append("text"),i=eP(r,1,t);e$(i,n);let a=i.node().getComputedTextLength();return r.remove(),a}function eB(e,t,n){let r=e.append("text"),i=eP(r,1,t);e$(i,[{content:n,type:"normal"}]);let a=i.node()?.getBoundingClientRect();return a&&r.remove(),a}function eU(e,t,n,r=!1,i=!1){let a=t.append("g"),s=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1");i&&l.attr("text-anchor","middle");let c=0;for(let t of n){let n=(0,o.K)(t=>eF(a,1.1,t)<=e,"checkWidth");for(let e of n(t)?[t]:eL(t,n))e$(eP(l,c,1.1,i),e),c++}if(!r)return l.node();{let e=l.node().getBBox();return s.attr("x",e.x-2).attr("y",e.y-2).attr("width",e.width+4).attr("height",e.height+4),a.node()}}function eH(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return e}})}function e$(e,t){e.text(""),t.forEach((t,n)=>{let r=e.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===n?r.text(eH(t.content)):r.text(" "+eH(t.content))})}async function ej(e,t={}){let n=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,i,s)=>(n.push((async()=>{let n=`${i}:${s}`;return await (0,r.dn)(n)?await (0,r.WY)(n,void 0,{class:"label-icon"}):`<i class='${(0,a.jZ)(e,t).replace(":"," ")}'></i>`})()),e));let i=await Promise.all(n);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}(0,o.K)(eT,"preprocessMarkdown"),(0,o.K)(eA,"nonMarkdownToLines"),(0,o.K)(ew,"markdownToLines"),(0,o.K)(eS,"nonMarkdownToHTML"),(0,o.K)(eC,"markdownToHTML"),(0,o.K)(eN,"splitTextToChars"),(0,o.K)(eM,"splitWordToFitWidth"),(0,o.K)(eI,"splitWordToFitWidthRecursion"),(0,o.K)(eL,"splitLineToFitWidth"),(0,o.K)(eR,"splitLineToFitWidthRecursion"),(0,o.K)(eD,"applyStyle"),(0,o.K)(eO,"addHtmlSpan"),(0,o.K)(eP,"createTspan"),(0,o.K)(eF,"computeWidthOfText"),(0,o.K)(eB,"computeDimensionOfText"),(0,o.K)(eU,"createFormattedText"),(0,o.K)(eH,"decodeHTMLEntities"),(0,o.K)(e$,"updateTextContentAndStyles"),(0,o.K)(ej,"replaceIconSubstring");var eG=(0,o.K)(async(e,t="",{style:n="",isTitle:r=!1,classes:o="",useHtmlLabels:c=!0,markdown:u=!0,isNode:h=!0,width:d=200,addSvgBackground:p=!1}={},f)=>{if(s.R.debug("XYZ createText",t,n,r,o,c,h,"addSvgBackground: ",p),c){let r=u?eC(t,f):eS(t),s=await ej((0,i.Sm)(r),f),l=t.replace(/\\\\/g,"\\"),c={isNode:h,label:(0,a.Wi)(t)?l:s,labelStyle:n.replace("fill:","color:")};return await eO(e,c,d,o,p,f)}{let a=(0,i.Sm)(t.replace(/<br\s*\/?>/g,"<br/>")),s=eU(d,e,u?ew(a.replace("<br>","<br/>"),f):eA(a),!!t&&p,!h);if(h){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));let e=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,l.Ltv)(s).attr("style",e)}else{let e=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,l.Ltv)(s).select("rect").attr("style",e.replace(/background:/g,"fill:"));let t=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,l.Ltv)(s).select("text").attr("style",t)}return r?(0,l.Ltv)(s).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,l.Ltv)(s).selectAll("tspan.text-outer-tspan").classed("row",!0),s}},"createText")},95377:(e,t,n)=>{"use strict";n.d(t,{c:()=>B});var r=n(80417),i=n(69266),a=n(34517),s=n(33914),o=n(53949),l=n(66538),c=n(66758),u=n(48356),h=n(52333),d=n(65905),p=n(17499),f=n(69738),m=n(79718),g=n(24082),y=n(6561),b=n(79833),k=n(85933),x=n(69611),E=n(79621),v=n(41775),_=n(82956),T=n(26564),A=n(54545);function w(e){let{render:t,className:n,style:r,state:a=u.t0,props:s=u.Ml,refs:o=u.Ml,metadata:l,stateAttributesMapping:c,tag:h="div",...d}=e,{compositeProps:p,compositeRef:f}=function(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=(0,T.G)(),{ref:a,index:s}=(0,A.q)(e),o=n===s,l=i.useRef(null),c=(0,_.a)(a,l);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(s)},onMouseMove(){let e=l.current;if(!t||!e)return;let n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;o||n||e.focus()}},compositeRef:c,index:s}}({metadata:l});return(0,x.o)(h,e,{state:a,ref:[f,...o],props:[p,...s,d],stateAttributesMapping:c})}var S=n(28991),C=n(1424),N=n(63962),M=n(54005),I=n(9542),L=n(27944),R=n(92622),D=n(73146),O=n(69609),P=n(52686),F=n(7962);let B=(0,o.nk)(function(e,t){let n,{render:o,className:_,style:A,disabled:B=!1,nativeButton:U=!0,id:H,openOnHover:$,delay:j=100,closeDelay:G=0,handle:z,payload:V,...K}=e,W=(0,b.Y)(!0),q=(0,C.f)(z)??W?.store;if(!q)throw Error((0,r.A)(85));let Y=(0,I.e)(H),X=q.useState("isTriggerActive",Y),Q=q.useState("floatingRootContext"),Z=q.useState("isOpenedByTrigger",Y),J=q.useState("triggerPopupId",Y),ee=i.useRef(null),et=(n=(0,R.t)(!0),i.useMemo(()=>n?{type:"menubar",context:n}:{type:void 0},[n])),en=(0,T.G)(!0),er=(0,h.cq)(),ei=i.useMemo(()=>er??new g.k,[er]),ea=(0,h.fI)(ei),es=(0,h.R1)(),{registerTrigger:eo,isMountedByThisTrigger:el}=(0,N.L_)(Y,ee,q,{payload:V,closeDelay:G,parent:et,floatingTreeRoot:ei,floatingNodeId:ea,floatingParentNodeId:es,keyboardEventRelay:en?.relayKeyboardEvent}),ec="menubar"===et.type,eu=q.useState("disabled"),eh=B||eu||ec&&et.context.disabled,{getButtonProps:ed,buttonRef:ep}=(0,E.s)({disabled:eh,native:U});i.useEffect(()=>{Z||void 0!==et.type||(q.context.allowMouseUpTriggerRef.current=!1)},[q,Z,et.type]);let ef=i.useRef(null),em=(0,a.Z)(),eg=(0,l.K)(e=>{if(!ef.current)return;em.clear(),q.context.allowMouseUpTriggerRef.current=!1;let t=e.target;(0,y.gR)(ef.current,t)||(0,y.gR)(q.select("positionerElement"),t)||t===ef.current||null!=t&&(0,S.Q)(t)===q.select("rootId")||(0,v.U)(e,ef.current)||ei.events.emit("close",{domEvent:e,reason:L.LO})});i.useEffect(()=>{Z&&q.select("lastOpenChangeReason")===L.N7&&(0,s.R)(ef.current).addEventListener("mouseup",eg,{once:!0})},[Z,eg,q]);let ey=ec&&et.context.hasSubmenuOpen,eb=$??ey,ek=(0,d.j)(Q,{enabled:eb&&!eh&&(!ec||ey&&!el),handleClose:(0,p.i)({blockPointerEvents:!ec}),mouseOnly:!0,move:!1,restMs:void 0===et.type?j:void 0,delay:{close:G},triggerElementRef:ee,externalTree:ei,isActiveTrigger:X,isClosing:()=>"ending"===q.select("transitionStatus")}),ex=function(e,t){let n=(0,a.Z)(),[r,s]=i.useState(!1);return(0,c.g)(()=>{e&&t===L.N7?(s(!0),n.start(D.X3,()=>{s(!1)})):e||(n.clear(),s(!1))},[e,t,n]),r}(Z,q.select("lastOpenChangeReason")),eE=(0,f.k)(Q,{enabled:!eh,event:Z&&ec?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:void 0===et.type&&ex}),ev=(0,m.i)(Q,{enabled:!eh&&ey}),e_=function(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,a=i.useRef(!1);return i.useMemo(()=>t?{onMouseDown:e=>{("open"===n&&!r||"close"===n&&r)&&(a.current=!0,(0,s.R)(e.currentTarget).addEventListener("click",()=>{a.current=!1},{once:!0}))},onClick:e=>{a.current&&(a.current=!1,e.preventBaseUIHandler())}}:u.t0,[t,n,r])}({open:Z,enabled:ec,mouseDownAction:"open"}),eT=i.useMemo(()=>(0,P.v6)(ev.reference,eE.reference),[ev.reference,eE.reference]),eA=q.useState("triggerProps",el),{preFocusGuardRef:ew,handlePreFocusGuardFocus:eS,handleFocusTargetFocus:eC}=(0,M.a)(q,ee),eN={disabled:eh,open:Z},eM=[ef,t,ep,eo,ee],eI=[eT,ek??u.t0,eA,{"aria-haspopup":"menu","aria-controls":J,id:Y,onMouseDown:e=>{q.select("open")||(em.start(200,()=>{q.context.allowMouseUpTriggerRef.current=!0}),(0,s.R)(e.currentTarget).addEventListener("mouseup",eg,{once:!0}))}},ec?{role:"menuitem"}:{},e_,K,ed],eL=(0,x.o)("button",e,{enabled:!ec,stateAttributesMapping:k.jL,state:eN,ref:eM,props:eI});return ec?(0,F.jsx)(w,{tag:"button",render:o,className:_,style:A,state:eN,refs:eM,props:eI,stateAttributesMapping:k.jL}):Z?(0,F.jsxs)(i.Fragment,{children:[(0,F.jsx)(O.U,{ref:ew,onFocus:eS},`${Y}-pre-focus-guard`),(0,F.jsx)(i.Fragment,{children:eL},Y),(0,F.jsx)(O.U,{ref:q.context.triggerFocusTargetRef,onFocus:eC},`${Y}-post-focus-guard`)]}):(0,F.jsx)(i.Fragment,{children:eL},Y)})},96411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={bindSnapshot:function(){return l},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return c}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let i=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class a{disable(){throw i}getStore(){}run(){throw i}exit(){throw i}enterWith(){throw i}static bind(e){return e}}let s="u">typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return s?new s:new a}function l(e){return s?s.bind(e):a.bind(e)}function c(){return s?s.snapshot():function(e,...t){return e(...t)}}},96910:(e,t,n)=>{"use strict";n.d(t,{S:()=>s,h:()=>a});var r=n(80417),i=n(69266);let a=i.createContext(void 0);function s(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.A)(34));return e}},97906:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("rotate-ccw-clock",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},98347:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(50735).A)("folder-search",[["path",{d:"M10.7 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 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]])},98500:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>ef});let i=Object.entries,a=Object.setPrototypeOf,s=Object.isFrozen,o=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,c=Object.freeze,u=Object.seal,h=Object.create,d="u">typeof Reflect&&Reflect,p=d.apply,f=d.construct;c||(c=function(e){return e}),u||(u=function(e){return e}),p||(p=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),f||(f=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 new e(...n)});let m=O(Array.prototype.forEach),g=O(Array.prototype.lastIndexOf),y=O(Array.prototype.pop),b=O(Array.prototype.push),k=O(Array.prototype.splice),x=Array.isArray,E=O(String.prototype.toLowerCase),v=O(String.prototype.toString),_=O(String.prototype.match),T=O(String.prototype.replace),A=O(String.prototype.indexOf),w=O(String.prototype.trim),S=O(Number.prototype.toString),C=O(Boolean.prototype.toString),N="u"<typeof BigInt?null:O(BigInt.prototype.toString),M="u"<typeof Symbol?null:O(Symbol.prototype.toString),I=O(Object.prototype.hasOwnProperty),L=O(Object.prototype.toString),R=O(RegExp.prototype.test),D=(ep=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f(ep,t)});function O(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return p(e,t,r)}}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;if(a&&a(e,null),!x(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){let e=n(i);e!==i&&(s(t)||(t[r]=e),i=e)}e[i]=!0}return e}function F(e){let t=h(null);for(let a of i(e)){var n=function(e){if(Array.isArray(e))return e}(a)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,a,s=[],o=!0,l=!1;try{i=(t=t.call(e)).next,!1;for(;!(o=(n=i.call(t)).done)&&(s.push(n.value),2!==s.length);o=!0);}catch(e){l=!0,r=e}finally{try{if(!o&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(a)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,2):void 0}}(a)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let i=n[0],s=n[1];I(e,i)&&(x(s)?t[i]=function(e){for(let t=0;t<e.length;t++)I(e,t)||(e[t]=null);return e}(s):s&&"object"==typeof s&&s.constructor===Object?t[i]=F(s):t[i]=s)}return t}function B(e,t){for(;null!==e;){let n=l(e,t);if(n){if(n.get)return O(n.get);if("function"==typeof n.value)return O(n.value)}e=o(e)}return function(){return null}}let U=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),H=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$=c(["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"]),j=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),G=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),z=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=c(["#text"]),K=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),W=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=c(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),X=u(/{{[\w\W]*|^[\w\W]*}}/g),Q=u(/<%[\w\W]*|^[\w\W]*%>/g),Z=u(/\${[\w\W]*/g),J=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),ee=u(/^aria-[\-\w]+$/),et=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),en=u(/^(?:\w+script|data):/i),er=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ei=u(/^html$/i),ea=u(/^[a-z][.\w]*(-[.\w]+)+$/i),es=u(/<[/\w!]/g),eo=u(/<[/\w]/g),el=u(/<\/no(script|embed|frames)/i),ec=u(/\/>/i),eu=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},eh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ed=function(e,t,n,r){return I(e,t)&&x(e[t])?P(r.base?F(r.base):{},e[t],r.transform):n};var ep,ef=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,a=t=>e(t);if(a.version="3.4.13",a.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return a.isSupported=!1,a;let s=r.document,o=s,l=o.currentScript;r.DocumentFragment;let d=r.HTMLTemplateElement,p=r.Node,f=r.Element,O=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let ep=r.DOMParser,ef=r.trustedTypes,em=f.prototype,eg=B(em,"cloneNode"),ey=B(em,"remove"),eb=B(em,"nextSibling"),ek=B(em,"childNodes"),ex=B(em,"parentNode"),eE=B(em,"shadowRoot"),ev=B(em,"attributes"),e_=p&&p.prototype?B(p.prototype,"nodeType"):null,eT=p&&p.prototype?B(p.prototype,"nodeName"):null,eA=p&&p.prototype?B(p.prototype,"ownerDocument"):null;if("function"==typeof d){let e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let ew="",eS=!1,eC=0,eN=function(){if(eC>0)throw D('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},eM=function(e){eN(),eC++;try{return t.createHTML(e)}finally{eC--}},eI=function(e){eN(),eC++;try{return t.createScriptURL(e)}finally{eC--}},eL=s,eR=eL.implementation,eD=eL.createNodeIterator,eO=eL.createDocumentFragment,eP=eL.getElementsByTagName,eF=o.importNode,eB=eh();a.isSupported="function"==typeof i&&"function"==typeof ex&&eR&&void 0!==eR.createHTMLDocument;let eU=et,eH=null,e$=P({},[...U,...H,...$,...G,...V]),ej=null,eG=P({},[...K,...W,...q,...Y]),ez=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eV=null,eK=null,eW=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eq=!0,eY=!0,eX=!1,eQ=!0,eZ=!1,eJ=!0,e0=!1,e1=!1,e2=null,e5=null,e3=!1,e6=!1,e9=!1,e4=!1,e8=!0,e7=!1,te="user-content-",tt=!0,tn=!1,tr={},ti=null,ta=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),ts=null,to=P({},["audio","video","img","source","image","track"]),tl=null,tc=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tu="http://www.w3.org/1998/Math/MathML",th="http://www.w3.org/2000/svg",td="http://www.w3.org/1999/xhtml",tp=td,tf=!1,tm=null,tg=P({},[tu,th,td],v),ty=c(["mi","mo","mn","ms","mtext"]),tb=P({},ty),tk=c(["annotation-xml"]),tx=P({},tk),tE=P({},["title","style","font","a","script"]),tv=null,t_=["application/xhtml+xml","text/html"],tT=null,tA=null,tw=s.createElement("form"),tS=function(e){return e instanceof RegExp||e instanceof Function},tC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tA&&tA===e)return;e&&"object"==typeof e||(e={}),e=F(e),tT="application/xhtml+xml"===(tv=-1===t_.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?v:E,eH=ed(e,"ALLOWED_TAGS",e$,{transform:tT}),ej=ed(e,"ALLOWED_ATTR",eG,{transform:tT}),tm=ed(e,"ALLOWED_NAMESPACES",tg,{transform:v}),tl=ed(e,"ADD_URI_SAFE_ATTR",tc,{transform:tT,base:tc}),ts=ed(e,"ADD_DATA_URI_TAGS",to,{transform:tT,base:to}),ti=ed(e,"FORBID_CONTENTS",ta,{transform:tT}),eV=ed(e,"FORBID_TAGS",F({}),{transform:tT}),eK=ed(e,"FORBID_ATTR",F({}),{transform:tT}),tr=!!I(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?F(e.USE_PROFILES):e.USE_PROFILES),eq=!1!==e.ALLOW_ARIA_ATTR,eY=!1!==e.ALLOW_DATA_ATTR,eX=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eQ=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eZ=e.SAFE_FOR_TEMPLATES||!1,eJ=!1!==e.SAFE_FOR_XML,e0=e.WHOLE_DOCUMENT||!1,e6=e.RETURN_DOM||!1,e9=e.RETURN_DOM_FRAGMENT||!1,e4=e.RETURN_TRUSTED_TYPE||!1,e3=e.FORCE_BODY||!1,e8=!1!==e.SANITIZE_DOM,e7=e.SANITIZE_NAMED_PROPS||!1,tt=!1!==e.KEEP_CONTENT,tn=e.IN_PLACE||!1,eU=!function(e){try{return R(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?et:e.ALLOWED_URI_REGEXP,tp="string"==typeof e.NAMESPACE?e.NAMESPACE:td,tb=I(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?F(e.MATHML_TEXT_INTEGRATION_POINTS):P({},ty),tx=I(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?F(e.HTML_INTEGRATION_POINTS):P({},tk);let r=I(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?F(e.CUSTOM_ELEMENT_HANDLING):h(null);if(ez=h(null),I(r,"tagNameCheck")&&tS(r.tagNameCheck)&&(ez.tagNameCheck=r.tagNameCheck),I(r,"attributeNameCheck")&&tS(r.attributeNameCheck)&&(ez.attributeNameCheck=r.attributeNameCheck),I(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(ez.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),u(ez),eZ&&(eY=!1),e9&&(e6=!0),tr&&(eH=P({},V),ej=h(null),!0===tr.html&&(P(eH,U),P(ej,K)),!0===tr.svg&&(P(eH,H),P(ej,W),P(ej,Y)),!0===tr.svgFilters&&(P(eH,$),P(ej,W),P(ej,Y)),!0===tr.mathMl&&(P(eH,G),P(ej,q),P(ej,Y))),eW.tagCheck=null,eW.attributeCheck=null,I(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eW.tagCheck=e.ADD_TAGS:x(e.ADD_TAGS)&&(eH===e$&&(eH=F(eH)),P(eH,e.ADD_TAGS,tT))),I(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eW.attributeCheck=e.ADD_ATTR:x(e.ADD_ATTR)&&(ej===eG&&(ej=F(ej)),P(ej,e.ADD_ATTR,tT))),I(e,"ADD_URI_SAFE_ATTR")&&x(e.ADD_URI_SAFE_ATTR)&&P(tl,e.ADD_URI_SAFE_ATTR,tT),I(e,"FORBID_CONTENTS")&&x(e.FORBID_CONTENTS)&&(ti===ta&&(ti=F(ti)),P(ti,e.FORBID_CONTENTS,tT)),I(e,"ADD_FORBID_CONTENTS")&&x(e.ADD_FORBID_CONTENTS)&&(ti===ta&&(ti=F(ti)),P(ti,e.ADD_FORBID_CONTENTS,tT)),tt&&(eH["#text"]=!0),e0&&P(eH,["html","head","body"]),eH.table&&(P(eH,["tbody"]),delete eV.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{ew=eM("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,ew=""):(void 0===t&&(eS||(n=eu(ef,l),eS=!0),t=n),t&&"string"==typeof ew&&(ew=eM("")));c&&c(e),tA=e},tN=P({},[...H,...$,...j]),tM=P({},[...G,...z]),tI=function(e){var t,n,r;let i=ex(e);i&&i.tagName||(i={namespaceURI:tp,tagName:"template"});let a=E(e.tagName),s=E(i.tagName);return!!tm[e.namespaceURI]&&(e.namespaceURI===th?(t=i).namespaceURI===td?"svg"===a:t.namespaceURI===tu?"svg"===a&&("annotation-xml"===s||tb[s]):!!tN[a]:e.namespaceURI===tu?(n=i).namespaceURI===td?"math"===a:n.namespaceURI===th?"math"===a&&tx[s]:!!tM[a]:e.namespaceURI===td?((r=i).namespaceURI!==th||!!tx[s])&&(r.namespaceURI!==tu||!!tb[s])&&!tM[a]&&(tE[a]||!tN[a]):"application/xhtml+xml"===tv&&!!tm[e.namespaceURI])},tL=function(e){b(a.removed,{element:e});try{ex(e).removeChild(e)}catch(t){if(ey(e),!ex(e))throw D("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tR=function(e){tP(e);let t=ek(e);if(t){let e=[];m(t,t=>{b(e,t)}),m(e,e=>{try{ey(e)}catch(e){}})}let n=ev(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if("string"==typeof i)try{e.removeAttribute(i)}catch(e){}}},tD=function(e,t){try{b(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(e6||e9)try{tL(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tO=function(e){let t=ev(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if("string"==typeof i&&!ej[tT(i)])try{e.removeAttribute(i)}catch(e){}}},tP=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(e_?e_(e):e.nodeType)===1&&tO(e);let n=ek(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tF=function(e){if(!eJ)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=e_?e_(e):e.nodeType;if(7===n||8===n&&R(eo,e.data)){try{ey(e)}catch(e){}continue}if(1===n){let t=tT(eT?eT(e):e.nodeName);try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&"label"!==t&&"output"!==t&&e.removeAttribute("for")}catch(e){}}let r=ek(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},tB=function(e){let n=null,r=null;if(e3)e="<remove></remove>"+e;else{let t=_(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===tv&&tp===td&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?eM(e):e;if(tp===td)try{n=new ep().parseFromString(i,tv)}catch(e){}if(!n||!n.documentElement){n=eR.createDocument(tp,"template",null);try{n.documentElement.innerHTML=tf?ew:i}catch(e){}}let a=n.body||n.documentElement;return(e&&r&&a.insertBefore(s.createTextNode(r),a.childNodes[0]||null),tp===td)?eP.call(n,e0?"html":"body")[0]:e0?n.documentElement:a},tU=function(e){let t=eA?eA(e):e.ownerDocument;return eD.call(t||e,e,O.SHOW_ELEMENT|O.SHOW_COMMENT|O.SHOW_TEXT|O.SHOW_PROCESSING_INSTRUCTION|O.SHOW_CDATA_SECTION,null)},tH=function(e){return e=T(e,X," "),e=T(e,Q," "),e=T(e,Z," ")},t$=function(e){var t;e.normalize();let n=eA?eA(e):e.ownerDocument,r=eD.call(n||e,e,O.SHOW_TEXT|O.SHOW_COMMENT|O.SHOW_CDATA_SECTION|O.SHOW_PROCESSING_INSTRUCTION,null),i=r.nextNode();for(;i;)i.data=tH(i.data),i=r.nextNode();let a=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");a&&m(a,e=>{tG(e.content)&&t$(e.content)})},tj=function(e){let t=eT?eT(e):null;return"string"==typeof t&&"form"===tT(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==ev(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==e_(e)||e.childNodes!==ek(e))},tG=function(e){if(!e_||"object"!=typeof e||null===e)return!1;try{return 11===e_(e)}catch(e){return!1}},tz=function(e){if(!e_||"object"!=typeof e||null===e)return!1;try{return"number"==typeof e_(e)}catch(e){return!1}};function tV(e,t,n){0!==e.length&&m(e,e=>{e.call(a,t,n,tA)})}let tK=function(e,t,n){if(!eV[t]&&tQ(t)&&(ez.tagNameCheck instanceof RegExp&&R(ez.tagNameCheck,t)||ez.tagNameCheck instanceof Function&&ez.tagNameCheck(t)))return!1;if(tt&&!ti[t]){let t=ex(e),r=ek(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?eg(r[a],!0):r[a];t.insertBefore(i,eb(e))}}}return tL(e),!0},tW=function(e,t,n,r){return 0===e.length?t:t===n||t===r?F(t):t},tq=function(e,t){if(tV(eB.beforeSanitizeElements,e,null),e!==t&&null===ex(e))return tn&&tP(e),!0;if(tj(e))return tL(e),!0;let n=tT(eT?eT(e):e.nodeName);if(eH=tW(eB.uponSanitizeElement,eH,e$,e2),tV(eB.uponSanitizeElement,e,{tagName:n,allowedTags:eH}),e!==t&&null===ex(e))return tn&&tP(e),!0;if(eJ&&e.hasChildNodes()&&!tz(e.firstElementChild)&&R(es,e.textContent)&&R(es,e.innerHTML)||eJ&&e.namespaceURI===td&&"style"===n&&tz(e.firstElementChild)||7===e.nodeType||eJ&&8===e.nodeType&&R(eo,e.data))return tL(e),!0;if(eV[n]||!(eW.tagCheck instanceof Function&&eW.tagCheck(n))&&!eH[n]){let r=tK(e,n,t);return!1===r&&tV(eB.afterSanitizeElements,e,null),r}if((e_?e_(e):e.nodeType)===1&&!tI(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&R(el,e.innerHTML))return tL(e),!0;if(eZ&&3===e.nodeType){let t=tH(e.textContent);e.textContent!==t&&(b(a.removed,{element:e.cloneNode()}),e.textContent=t)}return tV(eB.afterSanitizeElements,e,null),!1},tY=function(e,t,n){if(eK[t]||eJ&&"patchsrc"===t||eJ&&"for"===t&&"label"!==e&&"output"!==e||e8&&("id"===t||"name"===t)&&(n in s||n in tw))return!1;let r=ej[t]||eW.attributeCheck instanceof Function&&eW.attributeCheck(t,e);if(eY&&R(J,t));else if(eq&&R(ee,t));else if(r){if(tl[t]);else if(R(eU,T(n,er,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===A(n,"data:")&&ts[e]);else if(eX&&!R(en,T(n,er,"")));else if(n)return!1}else if(!(tQ(e)&&(ez.tagNameCheck instanceof RegExp&&R(ez.tagNameCheck,e)||ez.tagNameCheck instanceof Function&&ez.tagNameCheck(e))&&(ez.attributeNameCheck instanceof RegExp&&R(ez.attributeNameCheck,t)||ez.attributeNameCheck instanceof Function&&ez.attributeNameCheck(t,e))||"is"===t&&ez.allowCustomizedBuiltInElements&&(ez.tagNameCheck instanceof RegExp&&R(ez.tagNameCheck,n)||ez.tagNameCheck instanceof Function&&ez.tagNameCheck(n))))return!1;return!0},tX=P({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tQ=function(e){return!tX[E(e)]&&R(ea,e)},tZ=function(e,n,r,i){if(t&&"object"==typeof ef&&"function"==typeof ef.getAttributeType&&!r)switch(ef.getAttributeType(e,n)){case"TrustedHTML":return eM(i);case"TrustedScriptURL":return eI(i)}return i},tJ=function(e,t,n,r){try{n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),tj(e)?tL(e):y(a.removed)}catch(n){tD(t,e)}},t0=function(e){tV(eB.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tj(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ej=tW(eB.uponSanitizeAttribute,ej,eG,e5),forceKeepAttr:void 0},r=t.length,i=tT(e.nodeName);for(;r--;){let a=t[r],s=a.name,o=a.namespaceURI,l=a.value,c=tT(s),u="value"===s?l:w(l);if(n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,tV(eB.uponSanitizeAttribute,e,n),u=n.attrValue,e7&&("id"===c||"name"===c)&&0!==A(u,te)&&(tD(s,e),u=te+u),eJ&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&_(u,"href")){tD(s,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr||!eQ&&R(ec,u)||(eZ&&(u=tH(u)),!tY(i,c,u))){tD(s,e);continue}(u=tZ(i,c,o,u))!==l&&tJ(e,s,o,u)}}tV(eB.afterSanitizeAttributes,e,null)},t1=function(e){let t=null,n=tU(e);for(tV(eB.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(tV(eB.uponSanitizeShadowNode,t,null),tq(t,e),t0(t),tG(t.content)&&t1(t.content),(e_?e_(t):t.nodeType)===1){let e=eE(t);tG(e)&&(t2(e),t1(e))}tV(eB.afterSanitizeShadowDOM,e,null)},t2=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){t1(e.shadow);continue}let n=e.node,r=(e_?e_(n):n.nodeType)===1,i=ek(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=eT?eT(n):null;if("string"==typeof e&&"template"===tT(e)){let e=n.content;tG(e)&&t.push({node:e,shadow:null})}}if(r){let e=eE(n);tG(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return a.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,l=null;if((tf=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tz(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return S(e);case"boolean":return C(e);case"bigint":return N?N(e):"0";case"symbol":return M?M(e):"Symbol()";case"undefined":default:return L(e);case"function":case"object":{if(null===e)return L(e);let t=B(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:L(n)}return L(e)}}}(e)))throw D("dirty is not a string, aborting");if(!a.isSupported)return e;e1?(eH=e2,ej=e5):tC(n),(eB.uponSanitizeElement.length>0||eB.uponSanitizeAttribute.length>0)&&(eH=F(eH)),eB.uponSanitizeAttribute.length>0&&(ej=F(ej)),a.removed=[];let c=tn&&"string"!=typeof e&&tz(e);if(c){tF(e);let t=eT?eT(e):e.nodeName;if("string"==typeof t){let n=tT(t);if(!eH[n]||eV[n])throw tR(e),D("root node is forbidden and cannot be sanitized in-place")}if(tj(e))throw tR(e),D("root node is clobbered and cannot be sanitized in-place");try{t2(e)}catch(t){throw tR(e),t}}else if(tz(e))1===(i=(r=tB("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),t2(i);else{if(!e6&&!eZ&&!e0&&-1===e.indexOf("<"))return t&&e4?eM(e):e;if(!(r=tB(e)))return e6?null:e4?ew:""}r&&e3&&tL(r.firstChild);let u=c?e:r;try{let e=tU(u);for(;s=e.nextNode();)tq(s,u),t0(s),tG(s.content)&&t1(s.content)}catch(t){throw c&&(tR(e),m(a.removed,e=>{e.element&&tP(e.element)})),t}if(c)return m(a.removed,e=>{e.element&&tP(e.element)}),eZ&&t$(e),e;if(e6){if(eZ&&t$(r),e9)for(l=eO.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(ej.shadowroot||ej.shadowrootmode)&&(l=eF.call(o,l,!0)),l}let h=e0?r.outerHTML:r.innerHTML;return e0&&eH["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&R(ei,r.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+h),eZ&&(h=tH(h)),t&&e4?eM(h):h},a.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tC(e),e1=!0,e2=eH,e5=ej},a.clearConfig=function(){tA=null,e1=!1,e2=null,e5=null,t=n,ew=""},a.isValidAttribute=function(e,t,n){return tA||tC({}),tY(tT(e),tT(t),n)},a.addHook=function(e,t){"function"!=typeof t||I(eB,e)&&b(eB[e],t)},a.removeHook=function(e,t){if(I(eB,e)){if(void 0!==t){let n=g(eB[e],t);return -1===n?void 0:k(eB[e],n,1)[0]}return y(eB[e])}},a.removeHooks=function(e){I(eB,e)&&(eB[e]=[])},a.removeAllHooks=function(){eB=eh()},a}()},98655:(e,t,n)=>{"use strict";n.d(t,{h:()=>l});var r=n(69266),i=n(6387),a=n(79833),s=n(21782),o=n(7962);function l(e){let t=(0,a.Y)().store,n=r.useMemo(()=>({parentMenu:t}),[t]);return(0,o.jsx)(s.E.Provider,{value:n,children:(0,o.jsx)(i.i,{...e})})}},99577:(e,t,n)=>{"use strict";n.d(t,{f:()=>E});var r=n(80417),i=n(69266),a=n(48356),s=n(41604),o=n(65905),l=n(17499),c=n(69738),u=n(79833),h=n(9542),d=n(85933),p=n(54545),f=n(30542),m=n(69611),g=n(91305),y=n(63962),b=n(21782),k=n(27944);let x={"aria-expanded":void 0},E=i.forwardRef(function(e,t){let{render:n,className:E,style:v,label:_,id:T,nativeButton:A=!1,openOnHover:w=!0,delay:S=100,closeDelay:C=0,disabled:N=!1,...M}=e,I=(0,b.B)();if(!I?.parentMenu)throw Error((0,r.A)(37));let L=(0,p.q)({guess:!0,label:_}),R=(0,g.O)(),{store:D}=(0,u.Y)(),O=(0,h.e)(T),P=D.useState("open"),F=D.useState("floatingRootContext"),B=D.useState("floatingTreeRoot"),U=D.useState("triggerPopupId",O),H=(0,y.VI)(O,D),$=i.useCallback(e=>{let t=H(e);return null!==e&&D.select("open")&&null==D.select("activeTriggerId")&&D.update({activeTriggerId:O,activeTriggerElement:e,closeDelay:C}),t},[H,C,D,O]),j=i.useRef(null),G=i.useCallback(e=>{j.current=e,D.set("activeTriggerElement",e)},[D]);D.useSyncedValue("closeDelay",C);let z=I.parentMenu,V=D.useState("disabled"),K=z.useState("disabled"),W=N||V||K,q=z.useState("itemProps"),Y=z.useState("isActive",L.index),X=i.useMemo(()=>({type:"submenu-trigger",setActive(){z.select("highlightItemOnHover")&&z.set("activeIndex",L.index)}}),[z,L.index]),{getItemProps:Q,itemRef:Z}=(0,f.O)({closeOnClick:!1,disabled:W,highlighted:Y,id:O,store:D,typingRef:z.context.typingRef,nativeButton:A,itemMetadata:X,nodeId:R?.context.nodeId}),J=D.useState("hoverEnabled"),ee=(0,o.j)(F,{enabled:J&&w&&!W,handleClose:(0,l.i)({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:S,delay:{open:S,close:C},shouldOpen:S>0?()=>z.select("allowMouseEnter"):void 0,triggerElementRef:j,externalTree:B,isClosing:()=>"ending"===D.select("transitionStatus"),guardStaleOpen:!0}),et=(0,c.k)(F,{enabled:!W,event:"mousedown",toggle:!w,ignoreMouse:w,stickIfOpen:!1}).reference??a.t0,en=D.useState("triggerProps",!0);delete en.id;let er=D.useState("openMethod"),ei=D.useState("lastOpenChangeReason")===k.Dq||"keyboard"===er,ea=P&&ei&&s.N;return(0,m.o)("div",e,{state:{disabled:W,highlighted:Y,open:P},stateAttributesMapping:d.qV,props:[et,ee,en,q,ea?x:void 0,{"aria-controls":U,tabIndex:P||Y?0:-1,onBlur(){Y&&z.set("activeIndex",null)}},M,Q],ref:[t,L.ref,Z,$,G]})})}}]);
|