1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-BSJCjMpz.js","assets/rolldown-runtime-CNC7AqOf.js","assets/html-DhHa9-nS.js","assets/javascript-BttINa8q.js","assets/css-Bpd_-uWF.js","assets/angular-ts-DORhBINR.js","assets/scss-B8PjoOey.js","assets/apl-Dqn0rotQ.js","assets/xml-Dt-VRNGg.js","assets/java-MBw7zHAA.js","assets/json-BNRlFZ-5.js","assets/astro-2xQ26JAi.js","assets/typescript-CKFhM_78.js","assets/postcss-BXeXVLqQ.js","assets/tsx-HeIVaWJk.js","assets/blade-UxXs1MHp.js","assets/html-derivative-BtSxGMqd.js","assets/sql-CYgr9Mgi.js","assets/bsl-BkkzgIyY.js","assets/sdbl-bTVj8UrX.js","assets/c-Blw65jlH.js","assets/cairo-DLTphjLi.js","assets/python-gzcpVVnB.js","assets/cobol-Cz6009rC.js","assets/coffee-CC-CTfG5.js","assets/cpp-CrCo1Zjp.js","assets/regexp-DNT4mv-6.js","assets/glsl-CNFhMZ3o.js","assets/crystal-aZN9g_In.js","assets/shellscript-CoI_i11P.js","assets/edge-CqbqiuPZ.js","assets/elixir-CXhE20Yh.js","assets/elm-BfHi1MFa.js","assets/erb-BbGptYuZ.js","assets/ruby-lMKUMnme.js","assets/haml-DQD5gGOL.js","assets/graphql-Bs_icwQf.js","assets/jsx-UEmBU27c.js","assets/lua-Bc0cVuDM.js","assets/yaml-BFRNvut5.js","assets/erlang-Cphh6RMH.js","assets/markdown-BYOwaDjH.js","assets/fortran-fixed-form-DEKoE2YW.js","assets/fortran-free-form-CYNrtFtB.js","assets/fsharp-D13ZGOAj.js","assets/gdresource-C0sCabJj.js","assets/gdshader-CBce3t8t.js","assets/gdscript-Cp2uCuqX.js","assets/git-commit-BSykSTBG.js","assets/diff-woXpYk--.js","assets/git-rebase-09-F-Xjy.js","assets/glimmer-js-DYMAj7M5.js","assets/glimmer-ts-KNe6IVYx.js","assets/hack-BmiOOC6t.js","assets/handlebars-CGggBfPN.js","assets/http-D8fCFQUQ.js","assets/hurl-14JhHsIH.js","assets/csv-Dx-8-gkx.js","assets/hxml-B0Qn7Nwc.js","assets/haxe-OTjmBuCE.js","assets/jinja-Bm5Qe2Fo.js","assets/jison-DsrzMHSA.js","assets/julia-CVOY6IQ9.js","assets/r-BrtO6otC.js","assets/just-CtlqdWPS.js","assets/perl-Btc9MKYd.js","assets/latex-rYmgEcul.js","assets/tex-DtyfcXbs.js","assets/liquid-CZHoAeV7.js","assets/marko-v6D4VUKa.js","assets/less-DVTAwKKz.js","assets/mdc-ki0z3Xzn.js","assets/nextflow-Bbiyy34d.js","assets/nextflow-groovy-Dc_ddanL.js","assets/nginx-BDAkFTs4.js","assets/nim-BS2BANbO.js","assets/php-nnvROT4x.js","assets/pug-DTRvYXy5.js","assets/qml-DGFlbsc_.js","assets/razor-DUnZi0aC.js","assets/csharp-Ct8U2NOr.js","assets/rst-Db1i2AX2.js","assets/cmake-Bj61d0ZC.js","assets/sas-BcBdVQyo.js","assets/shaderlab-TOUzSsQk.js","assets/hlsl-Cvrh5tZx.js","assets/shellsession-o4Zr-oXZ.js","assets/soy-CPNozKlO.js","assets/sparql-D_iOobhT.js","assets/turtle-ByJddavk.js","assets/stata-Do1KM1Y1.js","assets/surrealql-DZFWP0QQ.js","assets/svelte-Bx5wyOi0.js","assets/templ-CkV7d5P6.js","assets/go-BJwz_mda.js","assets/ts-tags-DlxBZo1A.js","assets/twig-CP-N6gGk.js","assets/vue-BhcCNOOj.js","assets/vue-html-Bcgt8jrn.js","assets/vue-vine-Dtw_Bvs2.js","assets/stylus-B6D30XZt.js","assets/xsl-Cfl5-n_a.js","assets/dagre-VKFMJZFB-BfiRr00J.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-Cz8bXOH0.js","assets/chunk-WYO6CB5R-CSmmyjbB.js","assets/preload-helper-Czpn1I53.js","assets/chunk-ICXQ74PX-S6l-MNo3.js","assets/dist-BH9bKIvu.js","assets/chunk-C7G6YPKG-B-P4knGH.js","assets/chunk-OGEWGWER-BUUUgJDM.js","assets/chunk-HOUHSVGY-DJRieHYM.js","assets/chunk-Q4XR5HBZ-By0d5_th.js","assets/chunk-ZGVPDNZ5-BHuPmMs4.js","assets/rough.esm-CSKSodPl.js","assets/chunk-7BUUIJ7U-Bb538aSH.js","assets/graphlib-DS17s2tU.js","assets/dagre-dpRSp0QF.js","assets/map-BaFkSB1l.js","assets/chunk-RYQCIY6F-AHipPOEA.js","assets/swimlanes-5IMT3BWC-CpOWL2FL.js","assets/cose-bilkent-JH36ORCC-ClnkE1nH.js","assets/cytoscape.esm-CQFVGiJu.js","assets/c4Diagram-LMCZKHZV-CybUHMtT.js","assets/chunk-32BRIVSS-BT4WWbMw.js","assets/flowDiagram-23GEKE2U-Drs4J1_0.js","assets/chunk-XXDRQBXY-DlK_iNGL.js","assets/chunk-VR4S4FIN-Cqm7RnOX.js","assets/chunk-PUDLZKDR-BDMaZnLA.js","assets/channel-DaGdoR_g.js","assets/chunk-5VM5RSS4-ZNzvKenW.js","assets/swimlanesDiagram-G3AALYLV-6djWtIJL.js","assets/erDiagram-Q63AITRT-Did5Ycz1.js","assets/gitGraphDiagram-IHSO6WYX-OAgD2xM7.js","assets/mermaid-parser.core-BJ6GgaGe.js","assets/chunk-KEIR6QF5-Dj-OpFgW.js","assets/chunk-JWPE2WC7-DVXcaiue.js","assets/chunk-2Q5K7J3B-C1jixKkw.js","assets/ganttDiagram-NO4QXBWP-CiH8_mv5.js","assets/linear-BiXMiKrI.js","assets/defaultLocale-C8Fc0cco.js","assets/init-D6jRqBbL.js","assets/infoDiagram-FWYZ7A6U-D36gOZMD.js","assets/pieDiagram-ENE6RG2P-uGVer6B0.js","assets/ordinal-hYBb2elL.js","assets/path-BWPyau1x.js","assets/arc-C6pGbJrV.js","assets/array-BifhSqXX.js","assets/quadrantDiagram-ABIIQ3AL-BQmxGMtm.js","assets/xychartDiagram-FW5EYKEG-Db7XadrE.js","assets/line-BjLXZAxf.js","assets/requirementDiagram-TGXJPOKE-D-PiwYXK.js","assets/sequenceDiagram-DBY2YBRQ-NLcTcS-L.js","assets/classDiagram-OUVF2IWQ-f10rcGTZ.js","assets/chunk-V7JOEXUC-Wm7llc3w.js","assets/classDiagram-v2-EOCWNBFH-f10rcGTZ.js","assets/stateDiagram-2N3HPSRC-DO2qNCA-.js","assets/chunk-EX3LRPZG-BnHLMaJ4.js","assets/stateDiagram-v2-6OUMAXLB-B6iLrnry.js","assets/journeyDiagram-5HDEW3XC-D4a75faj.js","assets/timeline-definition-FHXFAJF6-B3CbLscf.js","assets/mindmap-definition-LN4V7U3C-BxHcilWV.js","assets/kanban-definition-HUTT4EX6-Bx_big5i.js","assets/sankeyDiagram-HTMAVEWB-jBSL6dMD.js","assets/diagram-NH7WQ7WH-i6j4xaWz.js","assets/diagram-WEI45ONY-BPJ3f-J0.js","assets/blockDiagram-677ZJIJ3-CCUNr87t.js","assets/diagram-OA4YK3LP-eOAw766V.js","assets/architectureDiagram-ZJ3FMSHR-DZ2DkKkX.js","assets/diagram-FQU43EPY-cDmHliUU.js","assets/ishikawaDiagram-FXEZZL3T-BlOizjrm.js","assets/vennDiagram-L72KCM5P-D1Uidbj9.js","assets/diagram-G47NLZAW-lpa6dIpu.js","assets/wardleyDiagram-EHGQE667-Dv7SqBuD.js","assets/cynefinDiagram-TSTJHNR4-CPsxY843.js","assets/railroadDiagram-RFXS5EU6-Bc71o7uj.js","assets/chunk-MOJQB5TN-BPRw-vwV.js","assets/ebnfDiagram-CCIWWBDH-CYwtXMpu.js","assets/abnfDiagram-VRR7QNED-Czh0aDMk.js","assets/pegDiagram-2B236MQR-BhB-KVVf.js","assets/highlighted-body-OFNGDK62-BHK1vAA5.js","assets/react-9ZasmZpi.js","assets/jsx-runtime-DiK4U9sA.js","assets/browser-BTqjkxS6.js","assets/routes-B5InFKpY.js","assets/link-tVHHmD0y.js","assets/react-dom-CbJ76tum.js","assets/useStore-B0LK1n4E.js","assets/useRouter-DaoFskDj.js","assets/arrow-right-Crwxp5sY.js","assets/check-BKxawZZt.js","assets/VideoFacade-_DqlBslE.js","assets/proxy-DbWJaT_H.js","assets/founders-BtDkJNQ8.js","assets/QuoteSlot-BHukFQd7.js","assets/about-7OKfkybv.js","assets/ai-instructions-BHvD2Szt.js","assets/automate-deal-registration-D3OSkO7e.js","assets/contact-DBfThs_h.js","assets/LeadDialog-DA-zr1xL.js","assets/dist-DL0dIjG6.js","assets/not-found-i5RsCZif.js","assets/qss-CuvTgpZA.js","assets/redirect-Dhm19zUi.js","assets/bundle-mjs-B_AA55HL.js","assets/consent-0LzYRb12.js","assets/dist-CmqN-DMS.js","assets/utils-DqNhCx4L.js","assets/tslib.es6-DBiTlYkD.js","assets/leads.functions-CEd7LIya.js","assets/deal-registration-C8FfUio8.js","assets/distributors-uYudYLh0.js","assets/founding-partners-D7nJN6Dq.js","assets/partner-compass-CYUg1-aB.js","assets/AnimatePresence-y1iIOcai.js","assets/privacy-policy-XhFaebeQ.js","assets/LegalPage-B
vendor: 18,709 bytes, lines 1-9
1d2-PKov.js","assets/resources-Dtj7Sxog.js","assets/terms-and-conditions-CXjAkY8g.js","assets/vendor-strategy-as-a-service-BJxvXLIl.js","assets/vendors-C1JSkHIo.js","assets/blog.index-B4jC4Tu-.js","assets/blog._slug-DQ5c6OZv.js","assets/blog._slug-HSZh_pdY.js","assets/blog._slug--mbq3amM.js","assets/PortableBody-Dl49mDNI.js","assets/blog.msp-channel-value-leakage-report-UCMv4CXg.js","assets/external-link-B5uSENNr.js","assets/calculators.index-SlOgEV-W.js","assets/calculators.msp-health-check-D7oSsF9J.js","assets/CalculatorWizard-CE9Y-_lR.js","assets/arrow-left-Ch9vfuei.js","assets/download-DboGZ6H-.js","assets/calculators.value-gap-BNSe2lCG.js","assets/calculators.vendor-channel-health-D9XFDew1.js","assets/demos.index-dFjEZEbo.js","assets/demos._slug-gK1RFUQu.js","assets/demos._slug-Dz1o8-HS.js","assets/circle-check-DyJSEk_w.js","assets/glossary.index-C6_0_LJL.js","assets/glossary._slug-Ifw_0Pt4.js","assets/glossary._slug-CLkHS1bJ.js","assets/resources.index-CygMqqpp.js","assets/toolkit.index-BkEh1amx.js","assets/toolkit._slug-DpLmsIQp.js","assets/toolkit._slug-CZvrJkkl.js","assets/toolkit._slug-DEgiIB36.js","assets/vendor-programmes.index-BWQKLTkO.js","assets/vendor-programmes._slug-Dh7HQEvX.js","assets/vendor-programmes._slug-C2gs1EyP.js"])))=>i.map(i=>d[i]); 2import{a as e,r as t,t as n}from"./rolldown-runtime-CNC7AqOf.js";import{t as r}from"./react-9ZasmZpi.js";import{t as i}from"./react-dom-CbJ76tum.js";import{a,c as o,i as s,n as c,o as l,t as u}from"./dist-DL0dIjG6.js";import{A as d,B as f,C as p,D as m,E as h,F as g,L as _,M as v,N as y,O as b,P as x,R as S,S as C,T as w,b as ee,c as te,f as ne,g as re,h as ie,i as ae,j as oe,k as se,l as ce,n as le,p as ue,r as de,s as fe,t as pe,u as me,v as he,w as ge,x as _e,y as ve,z as ye}from"./useStore-B0LK1n4E.js";import{n as be,r as xe,t as Se}from"./useRouter-DaoFskDj.js";import{n as Ce,t as we}from"./not-found-i5RsCZif.js";import{n as Te,t as Ee}from"./qss-CuvTgpZA.js";import{n as De,r as Oe}from"./matchContext-DGij45HS.js";import{r as ke,t as Ae}from"./redirect-Dhm19zUi.js";import{t as je}from"./link-tVHHmD0y.js";import{a as Me,i as Ne,n as Pe,r as Fe,t as Ie}from"./site-BqLnNJ2x.js";import{t as Le}from"./jsx-runtime-DiK4U9sA.js";import{a as Re,c as ze,d as Be,i as Ve,l as He,n as Ue,o as We,r as Ge,s as Ke,u as qe}from"./tslib.es6-DBiTlYkD.js";import{t as T}from"./preload-helper-Czpn1I53.js";import{n as Je,t as Ye}from"./arrow-right-Crwxp5sY.js";import{t as Xe}from"./check-BKxawZZt.js";import{a as Ze,c as Qe,i as $e,l as et,n as tt,o as nt,r as rt,t as it,u as at}from"./dist-CmqN-DMS.js";import{n as ot,t as st}from"./bundle-mjs-B_AA55HL.js";import{t as ct}from"./utils-DqNhCx4L.js";import{n as E}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{h as lt,m as ut,p as dt}from"./src-Cz8bXOH0.js";import{$ as ft,C as pt,E as mt,I as ht,L as gt,N as _t,P as vt,Q as yt,S as bt,T as xt,V as St,W as Ct,X as wt,Z as Tt,_ as Et,b as Dt,c as Ot,g as kt,l as At,m as jt,n as Mt,p as Nt,q as Pt,r as Ft,s as It,t as Lt,u as Rt,x as zt}from"./chunk-WYO6CB5R-CSmmyjbB.js";import{$ as Bt,J as Vt,K as Ht,Q as Ut,S as Wt,X as Gt,Y as Kt,Z as qt,a as Jt,d as Yt,et as Xt,f as Zt,g as Qt,h as $t,i as en,nt as tn,o as nn,q as rn,rt as an,tt as on,u as sn,v as cn,x as ln,y as un}from"./chunk-ICXQ74PX-S6l-MNo3.js";import{t as dn}from"./line-BjLXZAxf.js";import{i as fn,n as pn}from"./chunk-C7G6YPKG-B-P4knGH.js";import{n as mn}from"./chunk-OGEWGWER-BUUUgJDM.js";import{r as hn}from"./chunk-HOUHSVGY-DJRieHYM.js";import{n as gn,r as _n}from"./chunk-Q4XR5HBZ-By0d5_th.js";import{t as vn}from"./rough.esm-CSKSodPl.js";import{a as yn,i as bn,r as xn,s as Sn}from"./chunk-ZGVPDNZ5-BHuPmMs4.js";import{i as Cn,n as wn,r as Tn,t as En}from"./chunk-7BUUIJ7U-Bb538aSH.js";import{c as Dn,l as On,t as kn,u as An}from"./proxy-DbWJaT_H.js";var jn=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,re());else{var t=n(l);t!==null&&oe(x,t.startTime-e)}}var S=!1,C=-1,w=5,ee=-1;function te(){return g?!0:!(e.unstable_now()-ee<w)}function ne(){if(g=!1,S){var t=e.unstable_now();ee=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&te());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&oe(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?re():S=!1}}}var re;if(typeof y==`function`)re=function(){y(ne)};else if(typeof MessageChannel<`u`){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=ne,re=function(){ae.postMessage(null)}}else re=function(){_(ne,0)};function oe(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,oe(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,re()))),r},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Mn=n(((e,t)=>{t.exports=jn()})),Nn=n((e=>{var t=Mn(),n=r(),a=i();function o(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(o(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return d(i),e;if(a===r)return d(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),ne=Symbol.for(`react.lazy`),re=Symbol.for(`react.activity`),ie=Symbol.for(`react.memo_cache_sentinel`),ae=Symbol.iterator;function oe(e){return typeof e!=`object`||!e?null:(e=ae&&e[ae]||e[`@@iterator`],typeof e==`function`?e:null)}var se=Symbol.for(`react.client.reference`);function ce(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case ee:return`SuspenseList`;case re:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case te:return t=e.displayName||null,t===null?ce(e.type)||`Memo`:t;case ne:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var le=Array.isArray,ue=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},pe=[],me=-1;function he(e){return{current:e}}function ge(e){0>me||(e.current=pe[me],pe[me]=null,me--)}function _e(e,t){me++,pe[me]=e.current,e.current=t}var ve=he(null),ye=he(null),be=he(null),xe=he(null);function Se(e,t){switch(_e(be,t),_e(ye,e),_e(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pf(t),e=mf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ge(ve),_e(ve,e)}function Ce(){ge(ve),ge(ye),ge(be)}function we(e){e.memoizedState!==null&&_e(xe,e);var t=ve.current,n=mf(t,e.type);t!==n&&(_e(ye,e),_e(ve,n))}function Te(e){ye.current===e&&(ge(ve),ge(ye)),xe.current===e&&(ge(xe),Sp._currentValue=fe)}var Ee,De;function Oe(e){if(Ee===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ee=t&&t[1]||``,De=-1<e.stack.indexOf(` 3 at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return` 4`+Ee+e+De}var ke=!1;function Ae(e,t){if(!e||ke)return``;ke=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(` 5`),l=s.split(` 6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=` 7`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ke=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Oe(n):``}function je(e,t){switch(e.tag){case 26:case 27:case 5:return Oe(e.type);case 16:return Oe(`Lazy`);case 13:return e.child!==t&&t!==null?Oe(`Suspense Fallback`):Oe(`Suspense`);case 19:return Oe(`SuspenseList`);case 0:case 15:return Ae(e.type,!1);case 11:return Ae(e.type.render,!1);case 1:return Ae(e.type,!0);case 31:return Oe(`Activity`);default:return``}}function Me(e){try{var t=``,n=null;do t+=je(e,n),n=e,e=e.return;while(e);return t}catch(e){return` 8Error generating stack: `+e.message+` 9`+e.stack}}var Ne=Object.prototype.hasOwnProperty,Pe=t.unstable_scheduleCallback,Fe=t.unstable_cancelCallback,Ie=t.unstable_shouldYield,Le=t.unstable_requestPaint,Re=t.unstable_now,ze=t.unstable_getCurrentPriorityLevel,Be=t.unstable_ImmediatePriority,Ve=t.unstable_UserBlockingPriority,He=t.unstable_NormalPriority,Ue=t.unstable_LowPriority,We=t.unstable_IdlePriority,Ge=t.log,Ke=t.unstable_setDisableYieldValue,qe=null,T=null;function Je(e){if(typeof Ge==`function`&&Ke(e),T&&typeof T.setStrictMode==`function`)try{T.setStrictMode(qe,e)}catch{}}var Ye=Math.clz32?Math.clz32:Qe,Xe=Math.log,Ze=Math.LN2;function Qe(e){return e>>>=0,e===0?32:31-(Xe(e)/Ze|0)|0}var $e=256,et=262144,tt=4194304;function nt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=nt(n))):i=nt(o):i=nt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=nt(n))):i=nt(o)):i=nt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function it(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function at(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ot(){var e=tt;return tt<<=1,!(tt&62914560)&&(tt=4194304),e}function st(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ct(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function E(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ye(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&<(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function lt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ye(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ut(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ye(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function dt(e,t){var n=t&-t;return n=n&42?1:ft(n),(n&(e.suspendedLanes|t))===0?n:0}function ft(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function pt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function mt(){var e=de.p;return e===0?(e=window.event,e===void 0?32:Rp(e.type)):e}function ht(e,t){var n=de.p;try{return de.p=e,t()}finally{de.p=n}}var gt=Math.random().toString(36).slice(2),_t=`__reactFiber$`+gt,vt=`__reactProps$`+gt,yt=`__reactContainer$`+gt,bt=`__reactEvents$`+gt,xt=`__reactListeners$`+gt,St=`__reactHandles$`+gt,Ct=`__reactResources$`+gt,wt=`__reactMarker$`+gt;function Tt(e){delete e[_t],delete e[vt],delete e[bt],delete e[xt],delete e[St]}function Et(e){var t=e[_t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[_t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=If(e);e!==null;){if(n=e[_t])return n;e=If(e)}return t}e=n,n=e.parentNode}return null}function Dt(e){if(e=e[_t]||e[yt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ot(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function kt(e){var t=e[Ct];return t||=e[Ct]={hoistableStyles:new Map,hoistableScripts:new Map},t}function At(e){e[wt]=!0}var jt=new Set,Mt={};function Nt(e,t){Pt(e,t),Pt(e+`Capture`,t)}function Pt(e,t){for(Mt[e]=t,e=0;e<t.length;e++)jt.add(t[e])}var Ft=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
9037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),It={},Lt={};function Rt(e){return Ne.call(Lt,e)?!0:Ne.call(It,e)?!1:Ft.test(e)?Lt[e]=!0:(It[e]=!0,!1)}function zt(e,t,n){if(Rt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Bt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Vt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Ht(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ut(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Wt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gt(e){if(!e._valueTracker){var t=Ut(e)?`checked`:`value`;e._valueTracker=Wt(e,t,``+e[t])}}function Kt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ut(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function qt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Jt=/[\n"\\]/g;function Yt(e){return e.replace(Jt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Xt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Ht(t)):e.value!==``+Ht(t)&&(e.value=``+Ht(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Qt(e,o,Ht(n)):Qt(e,o,Ht(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Ht(s):e.removeAttribute(`name`)}function Zt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Gt(e);return}n=n==null?``:``+Ht(n),t=t==null?n:``+Ht(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Gt(e)}function Qt(e,t,n){t===`number`&&qt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function $t(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Ht(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function en(e,t,n){if(t!=null&&(t=``+Ht(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Ht(n)}function tn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(o(92));if(le(r)){if(1<r.length)throw Error(o(93));r=r[0]}n=r}n??=``,t=n}
vendor: 9,508 bytes, line 9
9n=Ht(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Gt(e)}function nn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function an(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||rn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function on(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(o(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&an(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&an(e,a,t[a])}function sn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var cn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`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`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`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`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`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`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),ln=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function un(e){return ln.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function dn(){}var fn=null;function pn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mn=null,hn=null;function gn(e){var t=Dt(e);if(t&&(e=t.stateNode)){var n=e[vt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Xt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Yt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[vt]||null;if(!i)throw Error(o(90));Xt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Kt(r)}break a;case`textarea`:en(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&$t(e,!!n.multiple,t,!1)}}}var _n=!1;function vn(e,t,n){if(_n)return e(t,n);_n=!0;try{return e(t)}finally{if(_n=!1,(mn!==null||hn!==null)&&(Hu(),mn&&(t=mn,e=hn,hn=mn=null,gn(t),e)))for(t=0;t<e.length;t++)gn(e[t])}}function yn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[vt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(o(231,t,typeof n));return n}var bn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),xn=!1;if(bn)try{var Sn={};Object.defineProperty(Sn,"passive",{get:function(){xn=!0}}),window.addEventListener(`test`,Sn,Sn),window.removeEventListener(`test`,Sn,Sn)}catch{xn=!1}var Cn=null,wn=null,Tn=null;function En(){if(Tn)return Tn;var e,t=wn,n=t.length,r,i=`value`in Cn?Cn.value:Cn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Tn=i.slice(e,1<r?1-r:void 0)}function Dn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function On(){return!0}function kn(){return!1}function An(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?On:kn,this.isPropagationStopped=kn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=On)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=On)},persist:function(){},isPersistent:On}),t}var jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nn=An(jn),Pn=m({},jn,{view:0,detail:0}),Fn=An(Pn),In,Ln,Rn,zn=m({},Pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Rn&&(Rn&&e.type===`mousemove`?(In=e.screenX-Rn.screenX,Ln=e.screenY-Rn.screenY):Ln=In=0,Rn=e),In)},movementY:function(e){return`movementY`in e?e.movementY:Ln}}),Bn=An(zn),Vn=An(m({},zn,{dataTransfer:0})),Hn=An(m({},Pn,{relatedTarget:0})),Un=An(m({},jn,{animationName:0,elapsedTime:0,pseudoElement:0})),Wn=An(m({},jn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Gn=An(m({},jn,{data:0})),Kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},qn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F
95`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Yn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jn[e])?!!t[e]:!1}function Xn(){return Yn}var Zn=An(m({},Pn,{key:function(e){if(e.key){var t=Kn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Dn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xn,charCode:function(e){return e.type===`keypress`?Dn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Dn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Qn=An(m({},zn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),$n=An(m({},Pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xn})),er=An(m({},jn,{propertyName:0,elapsedTime:0,pseudoElement:0})),tr=An(m({},zn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),nr=An(m({},jn,{newState:0,oldState:0})),rr=[9,13,27,32],ir=bn&&`CompositionEvent`in window,ar=null;bn&&`documentMode`in document&&(ar=document.documentMode);var or=bn&&`TextEvent`in window&&!ar,sr=bn&&(!ir||ar&&8<ar&&11>=ar),cr=` `,lr=!1;function ur(e,t){switch(e){case`keyup`:return rr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function dr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var fr=!1;function pr(e,t){switch(e){case`compositionend`:return dr(t);case`keypress`:return t.which===32?(lr=!0,cr):null;case`textInput`:return e=t.data,e===cr&&lr?null:e;default:return null}}function mr(e,t){if(fr)return e===`compositionend`||!ir&&ur(e,t)?(e=En(),Tn=wn=Cn=null,fr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return sr&&t.locale!==`ko`?null:t.data;default:return null}}var hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!hr[e.type]:t===`textarea`}function _r(e,t,n,r){mn?hn?hn.push(r):hn=[r]:mn=r,t=Xd(t,`onChange`),0<t.length&&(n=new Nn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var vr=null,yr=null;function br(e){Hd(e,0)}function xr(e){if(Kt(Ot(e)))return e}function Sr(e,t){if(e===`change`)return t}var Cr=!1;if(bn){var wr;if(bn){var Tr=`oninput`in document;if(!Tr){var Er=document.createElement(`div`);Er.setAttribute(`oninput`,`return;`),Tr=typeof Er.oninput==`function`}wr=Tr}else wr=!1;Cr=wr&&(!document.documentMode||9<document.documentMode)}function Dr(){vr&&(vr.detachEvent(`onpropertychange`,Or),yr=vr=null)}function Or(e){if(e.propertyName===`value`&&xr(yr)){var t=[];_r(t,yr,e,pn(e)),vn(br,t)}}function kr(e,t,n){e===`focusin`?(Dr(),vr=t,yr=n,vr.attachEvent(`onpropertychange`,Or)):e===`focusout`&&Dr()}function Ar(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return xr(yr)}function jr(e,t){if(e===`click`)return xr(t)}function Mr(e,t){if(e===`input`||e===`change`)return xr(t)}function Nr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Pr=typeof Object.is==`function`?Object.is:Nr;function Fr(e,t){if(Pr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ne.call(t,i)||!Pr(e[i],t[i]))return!1}return!0}function Ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lr(e,t){var n=Ir(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ir(n)}}function Rr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=qt(e.document)}return t}function Br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Vr=bn&&`documentMode`in document&&11>=document.documentMode,Hr=null,Ur=null,Wr=null,Gr=!1;function Kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gr||Hr==null||Hr!==qt(r)||(r=Hr,`selectionStart`in r&&Br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 72,508 bytes, line 9
9sNode:r.focusNode,focusOffset:r.focusOffset}),Wr&&Fr(Wr,r)||(Wr=r,r=Xd(Ur,`onSelect`),0<r.length&&(t=new Nn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Hr)))}function qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Jr={animationend:qr(`Animation`,`AnimationEnd`),animationiteration:qr(`Animation`,`AnimationIteration`),animationstart:qr(`Animation`,`AnimationStart`),transitionrun:qr(`Transition`,`TransitionRun`),transitionstart:qr(`Transition`,`TransitionStart`),transitioncancel:qr(`Transition`,`TransitionCancel`),transitionend:qr(`Transition`,`TransitionEnd`)},Yr={},Xr={};bn&&(Xr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Jr.animationend.animation,delete Jr.animationiteration.animation,delete Jr.animationstart.animation),`TransitionEvent`in window||delete Jr.transitionend.transition);function Zr(e){if(Yr[e])return Yr[e];if(!Jr[e])return e;var t=Jr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xr)return Yr[e]=t[n];return e}var Qr=Zr(`animationend`),$r=Zr(`animationiteration`),ei=Zr(`animationstart`),ti=Zr(`transitionrun`),ni=Zr(`transitionstart`),ri=Zr(`transitioncancel`),ii=Zr(`transitionend`),ai=new Map,oi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);oi.push(`scrollEnd`);function D(e,t){ai.set(e,t),Nt(t,[e])}var O=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},si=[],ci=0,li=0;function ui(){for(var e=ci,t=li=ci=0;t<e;){var n=si[t];si[t++]=null;var r=si[t];si[t++]=null;var i=si[t];si[t++]=null;var a=si[t];if(si[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&mi(n,i,a)}}function di(e,t,n,r){si[ci++]=e,si[ci++]=t,si[ci++]=n,si[ci++]=r,li|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function fi(e,t,n,r){return di(e,t,n,r),hi(e)}function pi(e,t){return di(e,null,null,t),hi(e)}function mi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ye(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function hi(e){if(50<Nu)throw Nu=0,Pu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var gi={};function _i(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vi(e,t,n,r){return new _i(e,t,n,r)}function yi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bi(e,t){var n=e.alternate;return n===null?(n=vi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function xi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Si(e,t,n,r,i,a){var s=0;if(r=e,typeof e==`function`)yi(e)&&(s=1);else if(typeof e==`string`)s=pp(e,n,ve.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case re:return e=vi(31,n,t,i),e.elementType=re,e.lanes=a,e;case v:return Ci(n.children,i,a,t);case y:s=8,i|=24;break;case b:return e=vi(12,n,t,i|2),e.elementType=b,e.lanes=a,e;case w:return e=vi(13,n,t,i),e.elementType=w,e.lanes=a,e;case ee:return e=vi(19,n,t,i),e.elementType=ee,e.lanes=a,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case x:s=9;break a;case C:s=11;break a;case te:s=14;break a;case ne:s=16,r=null;break a}s=29,n=Error(o(130,e===null?`null`:typeof e,``)),r=null}return t=vi(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Ci(e,t,n,r){return e=vi(7,e,r,t),e.lanes=n,e}function wi(e,t,n){return e=vi(6,e,null,t),e.lanes=n,e}function Ti(e){var t=vi(18,null,null,0);return t.stateNode=e,t}function Ei(e,t,n){return t=vi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Di=new WeakMap;function Oi(e,t){if(typeof e==`object`&&e){var n=Di.get(e);return n===void 0?(t={value:e,source:t,stack:Me(t)},Di.set(e,t),t):n}return{value:e,source:t,stack:Me(t)}}var ki=[],Ai=0,ji=null,Mi=0,Ni=[],Pi=0,Fi=null,Ii=1,Li=``;function Ri(e,t){ki[Ai++]=Mi,ki[Ai++]=ji,ji=e,Mi=t}function zi(e,t,n){Ni[Pi++]=Ii,Ni[Pi++]=Li,Ni[Pi++]=Fi,Fi=e;var r=Ii;e=Li;var i=32-Ye(r)-1;r&=~(1<<i),n+=1;var a=32-Ye(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ii=1<<32-Ye(t)+i|n<<i|r,Li=a+e}else Ii=1<<a|n<<i|r,Li=e}function Bi(e){e.return!==null&&(Ri(e,1),zi(e,1,0))}function Vi(e){for(;e===ji;)ji=ki[--Ai],ki[Ai]=null,Mi=ki[--Ai],ki[Ai]=null;for(;e===Fi;)Fi=Ni[--Pi],Ni[Pi]=null,Li=Ni[--Pi],Ni[Pi]=null,Ii=Ni[--Pi],Ni[Pi]=null}function Hi(e,t){Ni[Pi++]=Ii,Ni[Pi++]=Li,Ni[Pi++]=Fi,Ii=t.id,Li=t.overflow,Fi=e}var Ui=null,Wi=null,Gi=!1,Ki=null,qi=!1,Ji=Error(o(519));function Yi(e){throw ta(Oi(Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ji}function Xi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[_t]=e,t[vt]=r,n){case`dialog`:Ud(`cancel`,t),Ud(`close`,t);break;case`iframe`:case`object`:case`embed`:Ud(`load`,t);break;case`video`:case`audio`:for(n=0;n<Bd.length;n++)Ud(Bd[n],t);break;case`source`:Ud(`error`,t);break;case`img`:case`image`:case`link`:Ud(`error`,t),Ud(`load`,t);break;case`details`:Ud(`toggle`,t);break;case`input`:Ud(`invalid`,t),Zt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Ud(`invalid`,t);break;case`textarea`:Ud(`invalid`,t),tn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||nf(t.textContent,n)?(r.popover!=null&&(Ud(`beforetoggle`,t),Ud(`toggle`,t)),r.onScroll!=null&&Ud(`scroll`,t),r.onScrollEnd!=null&&Ud(`scrollend`,t),r.onClick!=null&&(t.onclick=dn),t=!0):t=!1,t||Yi(e,!0)}function Zi(e){for(Ui=e.return;Ui;)switch(Ui.tag){case 5:case 31:case 13:qi=!1;return;case 27:case 3:qi=!0;return;default:Ui=Ui.return}}function Qi(e){if(e!==Ui)return!1;if(!Gi)return Zi(e),Gi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||hf(e.type,e.memoizedProps)),n=!n),n&&Wi&&Yi(e),Zi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));Wi=Ff(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));Wi=Ff(e)}else t===27?(t=Wi,Cf(e.type)?(e=Pf,Pf=null,Wi=e):Wi=t):Wi=Ui?Nf(e.stateNode.nextSibling):null;return!0}function $i(){Wi=Ui=null,Gi=!1}function ea(){var e=Ki;return e!==null&&(yu===null?yu=e:yu.push.apply(yu,e),Ki=null),e}function ta(e){Ki===null?Ki=[e]:Ki.push(e)}var na=he(null),ra=null,ia=null;function aa(e,t,n){_e(na,t._currentValue),t._currentValue=n}function oa(e){e._currentValue=na.current,ge(na)}function sa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ca(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var s=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),sa(a.return,n,e),r||(s=null);break a}a=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(o(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),sa(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function la(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(o(387));if(s=s.memoizedProps,s!==null){var c=i.type;Pr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===xe.current){if(s=i.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[Sp]:e.push(Sp))}i=i.return}e!==null&&ca(t,e,n,r),t.flags|=262144}function ua(e){for(e=e.firstContext;e!==null;){if(!Pr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function da(e){ra=e,ia=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function fa(e){return ma(ra,e)}function pa(e,t){return ra===null&&da(e),ma(e,t)}function ma(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ia===null){if(e===null)throw Error(o(308));ia=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ia=ia.next=t;return n}var ha=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ga=t.unstable_scheduleCallback,_a=t.unstable_NormalPriority,va={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ya(){return{controller:new ha,data:new Map,refCount:0}}function ba(e){e.refCount--,e.refCount===0&&ga(_a,function(){e.controller.abort()})}var xa=null,Sa=0,Ca=0,wa=null;function Ta(e,t){if(xa===null){var n=xa=[];Sa=0,Ca=Pd(),wa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Sa++,t.then(Ea,Ea),t}function Ea(){if(--Sa===0&&xa!==null){wa!==null&&(wa.status=`fulfilled`);var e=xa;xa=null,Ca=0,wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Da(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Oa=ue.S;ue.S=function(e,t){Su=Re(),typeof t==`object`&&t&&typeof t.then==`function`&&Ta(e,t),Oa!==null&&Oa(e,t)};var ka=he(null);function Aa(){var e=ka.current;return e===null?ru.pooledCache:e}function ja(e,t){t===null?_e(ka,ka.current):_e(ka,t.pool)}function Ma(){var e=Aa();return e===null?null:{parent:va._currentValue,pool:e}}var Na=Error(o(460)),Pa=Error(o(474)),Fa=Error(o(542)),Ia={then:function(){}};function La(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ra(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(dn,dn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ha(e),e;default:if(typeof t.status==`string`)t.then(dn,dn);else{if(e=ru,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ha(e),e}throw Ba=t,Na}}function za(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ba=e,Na):e}}var Ba=null;function Va(){if(Ba===null)throw Error(o(459));var e=Ba;return Ba=null,e}function Ha(e){if(e===Na||e===Fa)throw Error(o(483))}var Ua=null,Wa=0;function Ga(e){var t=Wa;return Wa+=1,Ua===null&&(Ua=[]),Ra(Ua,e,t)}function Ka(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function qa(e,t){throw t.$$typeof===h?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ja(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=bi(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=wi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===ne&&za(a)===t.type)?(t=i(t,n.props),Ka(t,n),t.return=e,t):(t=Si(n.type,n.key,n.props,null,e.mode,r),Ka(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ei(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=Ci(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=wi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=Si(t.type,t.key,t.props,null,e.mode,n),Ka(n,t),n.return=e,n;case _:return t=Ei(t,e.mode,n),t.return=e,t;case ne:return t=za(t),f(e,t,n)}if(le(t)||oe(t))return t=Ci(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ga(t),n);if(t.$$typeof===S)return f(e,pa(e,t),n);qa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case ne:return n=za(n),p(e,t,n,r)}if(le(n)||oe(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ga(n),r);if(n.$$typeof===S)return p(e,t,pa(e,n),r);qa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case _:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ne:return r=za(r),m(e,t,n,r,i)}if(le(r)||oe(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ga(r),i);if(r.$$typeof===S)return m(e,t,n,pa(t,r),i);qa(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Gi&&Ri(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return Gi&&Ri(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Gi&&Ri(i,h),l}function y(i,s,c,l){if(c==null)throw Error(o(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=a(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Gi&&Ri(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return Gi&&Ri(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Gi&&Ri(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===v&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case g:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===v){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ne&&za(l)===r.type){n(e,r.sibling),c=i(r,a.props),Ka(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===v?(c=Ci(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=Si(a.type,a.key,a.props,null,e.mode,c),Ka(c,a),c.return=e,e=c)}return s(e);case _:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Ei(a,e.mode,c),c.return=e,e=c}return s(e);case ne:return a=za(a),b(e,r,a,c)}if(le(a))return h(e,r,a,c);if(oe(a)){if(l=oe(a),typeof l!=`function`)throw Error(o(150));return a=l.call(a),y(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Ga(a),c);if(a.$$typeof===S)return b(e,r,pa(e,a),c);qa(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=wi(a,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Wa=0;var i=b(e,t,n,r);return Ua=null,i}catch(t){if(t===Na||t===Fa)throw t;var a=vi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ya=Ja(!0),Xa=Ja(!1),Za=!1;function Qa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $a(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function eo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function to(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,nu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=hi(e),mi(e,null,n),t}return di(e,r,t,n),hi(e)}function no(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ut(e,n)}}function ro(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var io=!1;function ao(){if(io){var e=wa;if(e!==null)throw e}}function oo(e,t,n,r){io=!1;var i=e.updateQueue;Za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(au&f)===f:(r&f)===f){f!==0&&f===Ca&&(io=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Za=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),pu|=o,e.lanes=o,e.memoizedState=d}}function so(e,t){if(typeof e!=`function`)throw Error(o(191,e));e.call(t)}function co(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)so(n[e],t)}var lo=he(null),uo=he(0);function fo(e,t){e=du,_e(uo,e),_e(lo,t),du=e|t.baseLanes}function po(){_e(uo,du),_e(lo,lo.current)}function mo(){du=uo.current,ge(lo),ge(uo)}var ho=he(null),go=null;function _o(e){var t=e.alternate;_e(So,So.current&1),_e(ho,e),go===null&&(t===null||lo.current!==null||t.memoizedState!==null)&&(go=e)}function vo(e){_e(So,So.current),_e(ho,e),go===null&&(go=e)}function yo(e){e.tag===22?(_e(So,So.current),_e(ho,e),go===null&&(go=e)):bo(e)}function bo(){_e(So,So.current),_e(ho,ho.current)}function xo(e){ge(ho),go===e&&(go=null),ge(So)}var So=he(0);function Co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Af(n)||jf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wo=0,To=null,Eo=null,Do=null,Oo=!1,ko=!1,Ao=!1,jo=0,Mo=0,No=null,Po=0;function Fo(){throw Error(o(321))}function Io(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pr(e[n],t[n]))return!1;return!0}function Lo(e,t,n,r,i,a){return wo=a,To=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ue.H=e===null||e.memoizedState===null?ec:tc,Ao=!1,a=n(r,i),Ao=!1,ko&&(a=zo(t,n,r,i)),Ro(e),a}function Ro(e){ue.H=$s;var t=Eo!==null&&Eo.next!==null;if(wo=0,Do=Eo=To=null,Oo=!1,Mo=0,No=null,t)throw Error(o(300));e===null||vc||(e=e.dependencies,e!==null&&ua(e)&&(vc=!0))}function zo(e,t,n,r){To=e;var i=0;do{if(ko&&(No=null),Mo=0,ko=!1,25<=i)throw Error(o(301));if(i+=1,Do=Eo=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}ue.H=nc,a=t(n,r)}while(ko);return a}function Bo(){var e=ue.H,t=e.useState()[0];return t=typeof t.then==`function`?qo(t):t,e=e.useState()[0],(Eo===null?null:Eo.memoizedState)!==e&&(To.flags|=1024),t}function Vo(){var e=jo!==0;return jo=0,e}function Ho(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Uo(e){if(Oo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Oo=!1}wo=0,Do=Eo=To=null,ko=!1,Mo=jo=0,No=null}function Wo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Do===null?To.memoizedState=Do=e:Do=Do.next=e,Do}function Go(){if(Eo===null){var e=To.alternate;e=e===null?null:e.memoizedState}else e=Eo.next;var t=Do===null?To.memoizedState:Do.next;if(t!==null)Do=t,Eo=e;else{if(e===null)throw To.alternate===null?Error(o(467)):Error(o(310));Eo=e,e={memoizedState:Eo.memoizedState,baseState:Eo.baseState,baseQueue:Eo.baseQueue,queue:Eo.queue,next:null},Do===null?To.memoizedState=Do=e:Do=Do.next=e}return Do}function Ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function qo(e){var t=Mo;return Mo+=1,No===null&&(No=[]),e=Ra(No,e,t),t=To,(Do===null?t.memoizedState:Do.next)===null&&(t=t.alternate,ue.H=t===null||t.memoizedState===null?ec:tc),e}function Jo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return qo(e);if(e.$$typeof===S)return fa(e)}throw Error(o(438,String(e)))}function Yo(e){var t=null,n=To.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=To.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Ko(),To.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ie;return t.index++,n}function Xo(e,t){return typeof t==`function`?t(e):t}function Zo(e){return Qo(Go(),Eo,e)}function Qo(e,t,n){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(wo&f)===f:(au&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ca&&(d=!0);else if((wo&p)===p){u=u.next,p===Ca&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=a):l=l.next=f,To.lanes|=p,pu|=p;f=u.action,Ao&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=a):l=l.next=p,To.lanes|=f,pu|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=a:l.next=c,!Pr(a,e.memoizedState)&&(vc=!0,d&&(n=wa,n!==null)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function $o(e){var t=Go(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);Pr(a,t.memoizedState)||(vc=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function es(e,t,n){var r=To,i=Go(),a=Gi;if(a){if(n===void 0)throw Error(o(407));n=n()}else n=t();var s=!Pr((Eo||i).memoizedState,n);if(s&&(i.memoizedState=n,vc=!0),i=i.queue,Ts(rs.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||Do!==null&&Do.memoizedState.tag&1){if(r.flags|=2048,bs(9,{destroy:void 0},ns.bind(null,r,i,n,t),null),ru===null)throw Error(o(349));a||wo&127||ts(r,t,n)}return n}function ts(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=To.updateQueue,t===null?(t=Ko(),To.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ns(e,t,n,r){t.value=n,t.getSnapshot=r,is(t)&&as(e)}function rs(e,t,n){return n(function(){is(t)&&as(e)})}function is(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pr(e,n)}catch{return!0}}function as(e){var t=pi(e,2);t!==null&&Lu(t,e,2)}function os(e){var t=Wo();if(typeof e==`function`){var n=e;if(e=n(),Ao){Je(!0);try{n()}finally{Je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:e},t}function ss(e,t,n,r){return e.baseState=n,Qo(e,Eo,typeof r==`function`?r:Xo)}function cs(e,t,n,r,i){if(Xs(e))throw Error(o(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};ue.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,ls(t,a)):(a.next=n.next,t.pending=n.next=a)}}function ls(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=ue.T,o={};ue.T=o;try{var s=n(i,r),c=ue.S;c!==null&&c(o,s),us(e,t,s)}catch(n){fs(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),ue.T=a}}else try{a=n(i,r),us(e,t,a)}catch(n){fs(e,t,n)}}function us(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ds(e,t,n)},function(n){return fs(e,t,n)}):ds(e,t,n)}function ds(e,t,n){t.status=`fulfilled`,t.value=n,ps(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ls(e,n)))}function fs(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ps(t),t=t.next;while(t!==r)}e.action=null}function ps(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ms(e,t){return t}function hs(e,t){if(Gi){var n=ru.formState;if(n!==null){a:{var r=To;if(Gi){if(Wi){b:{for(var i=Wi,a=qi;i.nodeType!==8;){if(!a){i=null;break b}if(i=Nf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Wi=Nf(i.nextSibling),r=i.data===`F!`;break a}}Yi(r)}r=!1}r&&(t=n[0])}}return n=Wo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:t},n.queue=r,n=qs.bind(null,To,r),r.dispatch=n,r=os(!1),a=Ys.bind(null,To,!1,r.queue),r=Wo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=cs.bind(null,To,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function gs(e){return _s(Go(),Eo,e)}function _s(e,t,n){if(t=Qo(e,t,ms)[0],e=Zo(Xo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=qo(t)}catch(e){throw e===Na?Fa:e}else r=t;t=Go();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(To.flags|=2048,bs(9,{destroy:void 0},vs.bind(null,i,n),null)),[r,a,e]}function vs(e,t){e.action=t}function ys(e){var t=Go(),n=Eo;if(n!==null)return _s(t,n,e);Go(),t=t.memoizedState,n=Go();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function bs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=To.updateQueue,t===null&&(t=Ko(),To.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function xs(){return Go().memoizedState}function Ss(e,t,n,r){var i=Wo();To.flags|=e,i.memoizedState=bs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Cs(e,t,n,r){var i=Go();r=r===void 0?null:r;var a=i.memoizedState.inst;Eo!==null&&r!==null&&Io(r,Eo.memoizedState.deps)?i.memoizedState=bs(t,a,n,r):(To.flags|=e,i.memoizedState=bs(1|t,a,n,r))}function ws(e,t){Ss(8390656,8,e,t)}function Ts(e,t){Cs(2048,8,e,t)}function Es(e){To.flags|=4;var t=To.updateQueue;if(t===null)t=Ko(),To.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ds(e){var t=Go().memoizedState;return Es({ref:t,nextImpl:e}),function(){if(nu&2)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Os(e,t){return Cs(4,2,e,t)}function ks(e,t){return Cs(4,4,e,t)}function As(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function js(e,t,n){n=n==null?null:n.concat([e]),Cs(4,4,As.bind(null,t,e),n)}function Ms(){}function Ns(e,t){var n=Go();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Io(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ps(e,t){var n=Go();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Io(t,r[1]))return r[0];if(r=e(),Ao){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r}function Fs(e,t,n){return n===void 0||wo&1073741824&&!(au&261930)?e.memoizedState=t:(e.memoizedState=n,e=Iu(),To.lanes|=e,pu|=e,n)}function Is(e,t,n,r){return Pr(n,t)?n:lo.current===null?!(wo&42)||wo&1073741824&&!(au&261930)?(vc=!0,e.memoizedState=n):(e=Iu(),To.lanes|=e,pu|=e,t):(e=Fs(e,n,r),Pr(e,t)||(vc=!0),e)}function Ls(e,t,n,r,i){var a=de.p;de.p=a!==0&&8>a?a:8;var o=ue.T,s={};ue.T=s,Ys(e,!1,t,n);try{var c=i(),l=ue.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Js(e,t,Da(c,r),Fu(e)):Js(e,t,r,Fu(e))}catch(n){Js(e,t,{then:function(){},status:`rejected`,reason:n},Fu())}finally{de.p=a,o!==null&&s.types!==null&&(o.types=s.types),ue.T=o}}function Rs(){}function zs(e,t,n,r){if(e.tag!==5)throw Error(o(476));var i=Bs(e).queue;Ls(e,i,t,fe,n===null?Rs:function(){return Vs(e),n(r)})}function Bs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Vs(e){var t=Bs(e);t.next===null&&(t=e.alternate.memoizedState),Js(e,t.next.queue,{},Fu())}function Hs(){return fa(Sp)}function Us(){return Go().memoizedState}function Ws(){return Go().memoizedState}function Gs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Fu();e=eo(n);var r=to(t,e,n);r!==null&&(Lu(r,t,n),no(r,t,n)),t={cache:ya()},e.payload=t;return}t=t.return}}function Ks(e,t,n){var r=Fu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Xs(e)?Zs(t,n):(n=fi(e,t,n,r),n!==null&&(Lu(n,e,r),Qs(n,t,r)))}function qs(e,t,n){Js(e,t,n,Fu())}function Js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xs(e))Zs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Pr(s,o))return di(e,t,i,0),ru===null&&ui(),!1}catch{}if(n=fi(e,t,i,r),n!==null)return Lu(n,e,r),Qs(n,t,r),!0}return!1}function Ys(e,t,n,r){if(r={lane:2,revertLane:Pd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Xs(e)){if(t)throw Error(o(479))}else t=fi(e,n,r,2),t!==null&&Lu(t,e,2)}function Xs(e){var t=e.alternate;return e===To||t!==null&&t===To}function Zs(e,t){ko=Oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ut(e,n)}}var $s={readContext:fa,use:Jo,useCallback:Fo,useContext:Fo,useEffect:Fo,useImperativeHandle:Fo,useLayoutEffect:Fo,useInsertionEffect:Fo,useMemo:Fo,useReducer:Fo,useRef:Fo,useState:Fo,useDebugValue:Fo,useDeferredValue:Fo,useTransition:Fo,useSyncExternalStore:Fo,useId:Fo,useHostTransitionStatus:Fo,useFormState:Fo,useActionState:Fo,useOptimistic:Fo,useMemoCache:Fo,useCacheRefresh:Fo};$s.useEffectEvent=Fo;var ec={readContext:fa,use:Jo,useCallback:function(e,t){return Wo().memoizedState=[e,t===void 0?null:t],e},useContext:fa,useEffect:ws,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ss(4194308,4,As.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ss(4194308,4,e,t)},useInsertionEffect:function(e,t){Ss(4,2,e,t)},useMemo:function(e,t){var n=Wo();t=t===void 0?null:t;var r=e();if(Ao){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Wo();if(n!==void 0){var i=n(t);if(Ao){Je(!0);try{n(t)}finally{Je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ks.bind(null,To,e),[r.memoizedState,e]},useRef:function(e){var t=Wo();return e={current:e},t.memoizedState=e},useState:function(e){e=os(e);var t=e.queue,n=qs.bind(null,To,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ms,useDeferredValue:function(e,t){return Fs(Wo(),e,t)},useTransition:function(){var e=os(!1);return e=Ls.bind(null,To,e.queue,!0,!1),Wo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=To,i=Wo();if(Gi){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),ru===null)throw Error(o(349));au&127||ts(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ws(rs.bind(null,r,a,e),[e]),r.flags|=2048,bs(9,{destroy:void 0},ns.bind(null,r,a,n,t),null),n},useId:function(){var e=Wo(),t=ru.identifierPrefix;if(Gi){var n=Li,r=Ii;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=jo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Po++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Hs,useFormState:hs,useActionState:hs,useOptimistic:function(e){var t=Wo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ys.bind(null,To,!0,n),n.dispatch=t,[e,t]},useMemoCache:Yo,useCacheRefresh:function(){return Wo().memoizedState=Gs.bind(null,To)},useEffectEvent:function(e){var t=Wo(),n={impl:e};return t.memoizedState=n,function(){if(nu&2)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},tc={readContext:fa,use:Jo,useCallback:Ns,useContext:fa,useEffect:Ts,useImperativeHandle:js,useInsertionEffect:Os,useLayoutEffect:ks,useMemo:Ps,useReducer:Zo,useRef:xs,useState:function(){return Zo(Xo)},useDebugValue:Ms,useDeferredValue:function(e,t){return Is(Go(),Eo.memoizedState,e,t)},useTransition:function(){var e=Zo(Xo)[0],t=Go().memoizedState;return[typeof e==`boolean`?e:qo(e),t]},useSyncExternalStore:es,useId:Us,useHostTransitionStatus:Hs,useFormState:gs,useActionState:gs,useOptimistic:function(e,t){return ss(Go(),Eo,e,t)},useMemoCache:Yo,useCacheRefresh:Ws};tc.useEffectEvent=Ds;var nc={readContext:fa,use:Jo,useCallback:Ns,useContext:fa,useEffect:Ts,useImperativeHandle:js,useInsertionEffect:Os,useLayoutEffect:ks,useMemo:Ps,useReducer:$o,useRef:xs,useState:function(){return $o(Xo)},useDebugValue:Ms,useDeferredValue:function(e,t){var n=Go();return Eo===null?Fs(n,e,t):Is(n,Eo.memoizedState,e,t)},useTransition:function(){var e=$o(Xo)[0],t=Go().memoizedState;return[typeof e==`boolean`?e:qo(e),t]},useSyncExternalStore:es,useId:Us,useHostTransitionStatus:Hs,useFormState:ys,useActionState:ys,useOptimistic:function(e,t){var n=Go();return Eo===null?(n.baseState=e,[e,n.queue.dispatch]):ss(n,Eo,e,t)},useMemoCache:Yo,useCacheRefresh:Ws};nc.useEffectEvent=Ds;function rc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ic={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fu(),i=eo(r);i.payload=t,n!=null&&(i.callback=n),t=to(e,i,r),t!==null&&(Lu(t,e,r),no(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fu(),i=eo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=to(e,i,r),t!==null&&(Lu(t,e,r),no(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fu(),r=eo(n);r.tag=2,t!=null&&(r.callback=t),t=to(e,r,n),t!==null&&(Lu(t,e,n),no(t,e,n))}};function ac(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Fr(n,r)||!Fr(i,a):!0}function oc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ic.enqueueReplaceState(t,t.state,null)}function sc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function cc(e){O(e)}function lc(e){console.error(e)}function uc(e){O(e)}function dc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function fc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function pc(e,t,n){return n=eo(n),n.tag=3,n.payload={element:null},n.callback=function(){dc(e,t)},n}function mc(e){return e=eo(e),e.tag=3,e}function hc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){fc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){fc(t,n,r),typeof i!=`function`&&(Tu===null?Tu=new Set([this]):Tu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function gc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&la(t,n,i,!0),n=ho.current,n!==null){switch(n.tag){case 31:case 13:return go===null?Yu():n.alternate===null&&fu===0&&(fu=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Ia?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),md(e,r,i)),!1;case 22:return n.flags|=65536,r===Ia?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),md(e,r,i)),!1}throw Error(o(435,n.tag))}return md(e,r,i),Yu(),!1}if(Gi)return t=ho.current,t===null?(r!==Ji&&(t=Error(o(423),{cause:r}),ta(Oi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Oi(r,n),i=pc(e.stateNode,r,i),ro(e,i),fu!==4&&(fu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Ji&&(e=Error(o(422),{cause:r}),ta(Oi(e,n)))),!1;var a=Error(o(520),{cause:r});if(a=Oi(a,n),vu===null?vu=[a]:vu.push(a),fu!==4&&(fu=2),t===null)return!0;r=Oi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=pc(n.stateNode,r,e),ro(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(Tu===null||!Tu.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=mc(i),hc(i,e,n,r),ro(n,i),!1}n=n.return}while(n!==null);return!1}var _c=Error(o(461)),vc=!1;function yc(e,t,n,r){t.child=e===null?Xa(t,null,n,r):Ya(t,e.child,n,r)}function bc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return da(t),r=Lo(e,t,n,o,a,i),s=Vo(),e!==null&&!vc?(Ho(e,t,i),Wc(e,t,i)):(Gi&&s&&Bi(t),t.flags|=1,yc(e,t,r,i),t.child)}function xc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!yi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Sc(e,t,a,r,i)):(e=Si(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Gc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Fr:n,n(o,r)&&e.ref===t.ref)return Wc(e,t,i)}return t.flags|=1,e=bi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Sc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Fr(a,r)&&e.ref===t.ref)if(vc=!1,t.pendingProps=r=a,Gc(e,i))e.flags&131072&&(vc=!0);else return t.lanes=e.lanes,Wc(e,t,i)}return Ac(e,t,n,r,i)}function Cc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Tc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ja(t,a===null?null:a.cachePool),a===null?po():fo(t,a),yo(t);else return r=t.lanes=536870912,Tc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ja(t,null),po(),bo(t)):(ja(t,a.cachePool),fo(t,a),bo(t),t.memoizedState=null);return yc(e,t,i,n),t.child}function wc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Tc(e,t,n,r,i){var a=Aa();return a=a===null?null:{parent:va._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ja(t,null),po(),yo(t),e!==null&&la(e,t,r,!0),t.childLanes=i,null}function Ec(e,t){return t=zc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Dc(e,t,n){return Ya(t,e.child,null,n),e=Ec(t,t.pendingProps),e.flags|=2,xo(t),t.memoizedState=null,e}function Oc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Gi){if(r.mode===`hidden`)return e=Ec(t,r),t.lanes=536870912,wc(null,e);if(vo(t),(e=Wi)?(e=kf(e,qi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fi===null?null:{id:Ii,overflow:Li},retryLane:536870912,hydrationErrors:null},n=Ti(e),n.return=t,t.child=n,Ui=t,Wi=null)):e=null,e===null)throw Yi(t);return t.lanes=536870912,null}return Ec(t,r)}var a=e.memoizedState;if(a!==null){var s=a.dehydrated;if(vo(t),i)if(t.flags&256)t.flags&=-257,t=Dc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(vc||la(e,t,n,!1),i=(n&e.childLanes)!==0,vc||i){if(r=ru,r!==null&&(s=dt(r,n),s!==0&&s!==a.retryLane))throw a.retryLane=s,pi(e,s),Lu(r,e,s),_c;Yu(),t=Dc(e,t,n)}else e=a.treeContext,Wi=Nf(s.nextSibling),Ui=t,Gi=!0,Ki=null,qi=!1,e!==null&&Hi(t,e),t=Ec(t,r),t.flags|=4096;return t}return e=bi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function kc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ac(e,t,n,r,i){return da(t),n=Lo(e,t,n,r,void 0,i),r=Vo(),e!==null&&!vc?(Ho(e,t,i),Wc(e,t,i)):(Gi&&r&&Bi(t),t.flags|=1,yc(e,t,n,i),t.child)}function jc(e,t,n,r,i,a){return da(t),t.updateQueue=null,n=zo(t,r,n,i),Ro(e),r=Vo(),e!==null&&!vc?(Ho(e,t,a),Wc(e,t,a)):(Gi&&r&&Bi(t),t.flags|=1,yc(e,t,n,a),t.child)}function Mc(e,t,n,r,i){if(da(t),t.stateNode===null){var a=gi,o=n.contextType;typeof o==`object`&&o&&(a=fa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=ic,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Qa(t),o=n.contextType,a.context=typeof o==`object`&&o?fa(o):gi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(rc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&ic.enqueueReplaceState(a,a.state,null),oo(t,r,a,i),ao(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=sc(n,s);a.props=c;var l=a.context,u=n.contextType;o=gi,typeof u==`object`&&u&&(o=fa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&oc(t,a,r,o),Za=!1;var f=t.memoizedState;a.state=f,oo(t,r,a,i),ao(),l=t.memoizedState,s||f!==l||Za?(typeof d==`function`&&(rc(t,n,d,r),l=t.memoizedState),(c=Za||ac(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,$a(e,t),o=t.memoizedProps,u=sc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=gi,typeof l==`object`&&l&&(c=fa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&oc(t,a,r,c),Za=!1,f=t.memoizedState,a.state=f,oo(t,r,a,i),ao();var p=t.memoizedState;o!==d||f!==p||Za||e!==null&&e.dependencies!==null&&ua(e.dependencies)?(typeof s==`function`&&(rc(t,n,s,r),p=t.memoizedState),(u=Za||ac(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ua(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,kc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ya(t,e.child,null,i),t.child=Ya(t,null,n,i)):yc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Wc(e,t,i),e}function Nc(e,t,n,r){return $i(),t.flags|=256,yc(e,t,n,r),t.child}var Pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fc(e){return{baseLanes:e,cachePool:Ma()}}function Ic(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=gu),e}function Lc(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!=0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(So.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Gi){if(i?_o(t):bo(t),(e=Wi)?(e=kf(e,qi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fi===null?null:{id:Ii,overflow:Li},retryLane:536870912,hydrationErrors:null},n=Ti(e),n.return=t,t.child=n,Ui=t,Wi=null)):e=null,e===null)throw Yi(t);return jf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(bo(t),i=t.mode,c=zc({mode:`hidden`,children:c},i),r=Ci(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Fc(n),r.childLanes=Ic(e,s,n),t.memoizedState=Pc,wc(null,r)):(_o(t),Rc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(_o(t),t.flags&=-257,t=Bc(e,t,n)):t.memoizedState===null?(bo(t),c=r.fallback,i=t.mode,r=zc({mode:`visible`,children:r.children},i),c=Ci(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ya(t,e.child,null,n),r=t.child,r.memoizedState=Fc(n),r.childLanes=Ic(e,s,n),t.memoizedState=Pc,t=wc(null,r)):(bo(t),t.child=e.child,t.flags|=128,t=null);else if(_o(t),jf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(o(419)),r.stack=``,r.digest=s,ta({value:r,source:null,stack:null}),t=Bc(e,t,n)}else if(vc||la(e,t,n,!1),s=(n&e.childLanes)!==0,vc||s){if(s=ru,s!==null&&(r=dt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,pi(e,r),Lu(s,e,r),_c;Af(c)||Yu(),t=Bc(e,t,n)}else Af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Wi=Nf(c.nextSibling),Ui=t,Gi=!0,Ki=null,qi=!1,e!==null&&Hi(t,e),t=Rc(t,r.children),t.flags|=4096);return t}return i?(bo(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=bi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=Ci(c,i,n,null),c.flags|=2):c=bi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,wc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Fc(n):(i=c.cachePool,i===null?i=Ma():(l=va._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=Ic(e,s,n),t.memoizedState=Pc,wc(e.child,r)):(_o(t),n=e.child,e=n.sibling,n=bi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Rc(e,t){return t=zc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function zc(e,t){return e=vi(22,e,null,t),e.lanes=0,e}function Bc(e,t,n){return Ya(t,e.child,null,n),e=Rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sa(e.return,t,n)}function Hc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Uc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=So.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,_e(So,o),yc(e,t,r,n),r=Gi?Mi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vc(e,n,t);else if(e.tag===19)Vc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Co(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Hc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Co(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Hc(t,!0,n,null,a,r);break;case`together`:Hc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Wc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pu|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(la(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=bi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Gc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ua(e))):!0}function Kc(e,t,n){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),aa(t,va,e.memoizedState.cache),$i();break;case 27:case 5:we(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(_o(t),e=Wc(e,t,n),e===null?null:e.sibling):Lc(e,t,n):(_o(t),t.flags|=128,null);_o(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(la(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Uc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_e(So,So.current),r)break;return null;case 22:return t.lanes=0,Cc(e,t,n,t.pendingProps);case 24:aa(t,va,e.memoizedState.cache)}return Wc(e,t,n)}function qc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)vc=!0;else{if(!Gc(e,n)&&!(t.flags&128))return vc=!1,Kc(e,t,n);vc=!!(e.flags&131072)}else vc=!1,Gi&&t.flags&1048576&&zi(t,Mi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=za(t.elementType),t.type=e,typeof e==`function`)yi(e)?(r=sc(e,r),t.tag=1,t=Mc(null,t,e,r,n)):(t.tag=0,t=Ac(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===C){t.tag=11,t=bc(null,t,e,r,n);break a}else if(i===te){t.tag=14,t=xc(null,t,e,r,n);break a}}throw t=ce(e)||e,Error(o(306,t,``))}}return t;case 0:return Ac(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=sc(r,t.pendingProps),Mc(e,t,r,i,n);case 3:a:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,$a(e,t),oo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,aa(t,va,r),r!==a.cache&&ca(t,[va],n,!0),ao(),r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=Nc(e,t,r,n);break a}else if(r!==i){i=Oi(Error(o(424)),t),ta(i),t=Nc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Wi=Nf(e.firstChild),Ui=t,Gi=!0,Ki=null,qi=!0,n=Xa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if($i(),r===i){t=Wc(e,t,n);break a}yc(e,t,r,n)}t=t.child}return t;case 26:return kc(e,t),e===null?(n=ep(t.type,null,t.pendingProps,null))?t.memoizedState=n:Gi||(n=t.type,e=t.pendingProps,r=ff(be.current).createElement(n),r[_t]=t,r[vt]=e,of(r,n,e),At(r),t.stateNode=r):t.memoizedState=ep(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return we(t),e===null&&Gi&&(r=t.stateNode=Lf(t.type,t.pendingProps,be.current),Ui=t,qi=!0,i=Wi,Cf(t.type)?(Pf=i,Wi=Nf(r.firstChild)):Wi=i),yc(e,t,t.pendingProps.children,n),kc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Gi&&((i=r=Wi)&&(r=Df(r,t.type,t.pendingProps,qi),r===null?i=!1:(t.stateNode=r,Ui=t,Wi=Nf(r.firstChild),qi=!1,i=!0)),i||Yi(t)),we(t),i=t.type,a=t.pendingProps,s=e===null?null:e.memoizedProps,r=a.children,hf(i,a)?r=null:s!==null&&hf(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=Lo(e,t,Bo,null,null,n),Sp._currentValue=i),kc(e,t),yc(e,t,r,n),t.child;case 6:return e===null&&Gi&&((e=n=Wi)&&(n=Of(n,t.pendingProps,qi),n===null?e=!1:(t.stateNode=n,Ui=t,Wi=null,e=!0)),e||Yi(t)),null;case 13:return Lc(e,t,n);case 4:return Se(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ya(t,null,r,n):yc(e,t,r,n),t.child;case 11:return bc(e,t,t.type,t.pendingProps,n);case 7:return yc(e,t,t.pendingProps,n),t.child;case 8:return yc(e,t,t.pendingProps.children,n),t.child;case 12:return yc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,aa(t,t.type,r.value),yc(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,da(t),i=fa(i),r=r(i),t.flags|=1,yc(e,t,r,n),t.child;case 14:return xc(e,t,t.type,t.pendingProps,n);case 15:return Sc(e,t,t.type,t.pendingProps,n);case 19:return Uc(e,t,n);case 31:return Oc(e,t,n);case 22:return Cc(e,t,n,t.pendingProps);case 24:return da(t),r=fa(va),e===null?(i=Aa(),i===null&&(i=ru,a=ya(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Qa(t),aa(t,va,i)):((e.lanes&n)!==0&&($a(e,t),oo(t,null,null,n),ao()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,aa(t,va,r),r!==i.cache&&ca(t,[va],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),aa(t,va,r))),yc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Jc(e){e.flags|=4}function Yc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Ku())e.flags|=8192;else throw Ba=Ia,Pa}else e.flags&=-16777217}function Xc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!mp(t))if(Ku())e.flags|=8192;else throw Ba=Ia,Pa}function Zc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ot(),e.lanes|=t,_u|=t)}function Qc(e,t){if(!Gi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $c(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function el(e,t,n){var r=t.pendingProps;switch(Vi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $c(t),null;case 1:return $c(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),oa(va),Ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Qi(t)?Jc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ea())),$c(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Jc(t),a===null?($c(t),Yc(t,i,null,r,n)):($c(t),Xc(t,a))):a?a===e.memoizedState?($c(t),t.flags&=-16777217):(Jc(t),$c(t),Xc(t,a)):(e=e.memoizedProps,e!==r&&Jc(t),$c(t),Yc(t,i,e,r,n)),null;case 27:if(Te(t),n=be.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Jc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return $c(t),null}e=ve.current,Qi(t)?Xi(t,e):(e=Lf(i,r,n),t.stateNode=e,Jc(t))}return $c(t),null;case 5:if(Te(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Jc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return $c(t),null}if(a=ve.current,Qi(t))Xi(t,a);else{var s=ff(be.current);switch(a){case 1:a=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=s.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}a[_t]=t,a[vt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)a.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;a:switch(of(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Jc(t)}}return $c(t),Yc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(o(166));if(e=be.current,Qi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ui,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[_t]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||nf(e.nodeValue,n)),e||Yi(t,!0)}else e=ff(e).createTextNode(r),e[_t]=t,t.stateNode=e}return $c(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Qi(t),n!==null){if(e===null){if(!r)throw Error(o(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(557));e[_t]=t}else $i(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;$c(t),e=!1}else n=ea(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(xo(t),t):(xo(t),null);if(t.flags&128)throw Error(o(558))}return $c(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Qi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(o(317));i[_t]=t}else $i(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;$c(t),i=!1}else i=ea(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(xo(t),t):(xo(t),null)}return xo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Zc(t,t.updateQueue),$c(t),null);case 4:return Ce(),e===null&&Kd(t.stateNode.containerInfo),$c(t),null;case 10:return oa(t.type),$c(t),null;case 19:if(ge(So),r=t.memoizedState,r===null)return $c(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Qc(r,!1);else{if(fu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Co(e),a!==null){for(t.flags|=128,Qc(r,!1),e=a.updateQueue,t.updateQueue=e,Zc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)xi(n,e),n=n.sibling;return _e(So,So.current&1|2),Gi&&Ri(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Re()>Cu&&(t.flags|=128,i=!0,Qc(r,!1),t.lanes=4194304)}else{if(!i)if(e=Co(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Zc(t,e),Qc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!Gi)return $c(t),null}else 2*Re()-r.renderingStartTime>Cu&&n!==536870912&&(t.flags|=128,i=!0,Qc(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?($c(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Re(),e.sibling=null,n=So.current,_e(So,i?n&1|2:n&1),Gi&&Ri(t,r.treeForkCount),e);case 22:case 23:return xo(t),mo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&($c(t),t.subtreeFlags&6&&(t.flags|=8192)):$c(t),n=t.updateQueue,n!==null&&Zc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ge(ka),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),oa(va),$c(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function tl(e,t){switch(Vi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oa(va),Ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Te(t),null;case 31:if(t.memoizedState!==null){if(xo(t),t.alternate===null)throw Error(o(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(So),null;case 4:return Ce(),null;case 10:return oa(t.type),null;case 22:case 23:return xo(t),mo(),e!==null&&ge(ka),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return oa(va),null;case 25:return null;default:return null}}function nl(e,t){switch(Vi(t),t.tag){case 3:oa(va),Ce();break;case 26:case 27:case 5:Te(t);break;case 4:Ce();break;case 31:t.memoizedState!==null&&xo(t);break;case 13:xo(t);break;case 19:ge(So);break;case 10:oa(t.type);break;case 22:case 23:xo(t),mo(),e!==null&&ge(ka);break;case 24:oa(va)}}function rl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){pd(t,t.return,e)}}function il(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){pd(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){pd(t,t.return,e)}}function al(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{co(t,n)}catch(t){pd(e,e.return,t)}}}function ol(e,t,n){n.props=sc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){pd(e,t,n)}}function sl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){pd(e,t,n)}}function cl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){pd(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){pd(e,t,n)}else n.current=null}function ll(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){pd(e,e.return,t)}}function ul(e,t,n){try{var r=e.stateNode;sf(r,e.type,n,t),r[vt]=t}catch(t){pd(e,e.return,t)}}function dl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Cf(e.type)||e.tag===4}function fl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||dl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Cf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dn));else if(r!==4&&(r===27&&Cf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(pl(e,t,n),e=e.sibling;e!==null;)pl(e,t,n),e=e.sibling}function ml(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Cf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ml(e,t,n),e=e.sibling;e!==null;)ml(e,t,n),e=e.sibling}function hl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);of(t,r,n),t[_t]=e,t[vt]=n}catch(t){pd(e,e.return,t)}}var gl=!1,_l=!1,vl=!1,yl=typeof WeakSet==`function`?WeakSet:Set,bl=null;function xl(e,t){if(e=e.containerInfo,uf=jp,e=zr(e),Br(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===a&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(df={focusedElem:e,selectionRange:n},jp=!1,bl=t;bl!==null;)if(t=bl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,bl=e;else for(;bl!==null;){switch(t=bl,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var h=sc(n.type,i);e=r.getSnapshotBeforeUpdate(h,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){pd(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:Ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,bl=e;break}bl=t.return}}function Sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ll(e,n),r&4&&rl(5,n);break;case 1:if(Ll(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){pd(n,n.return,e)}else{var i=sc(n.type,t.memoizedProps);t=t.memoizedState;
vendor: 5,409 bytes, line 9
9try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){pd(n,n.return,e)}}r&64&&al(n),r&512&&sl(n,n.return);break;case 3:if(Ll(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{co(e,t)}catch(e){pd(n,n.return,e)}}break;case 27:t===null&&r&4&&hl(n);case 26:case 5:Ll(e,n),t===null&&r&4&&ll(n),r&512&&sl(n,n.return);break;case 12:Ll(e,n);break;case 31:Ll(e,n),r&4&&Ol(e,n);break;case 13:Ll(e,n),r&4&&kl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_d.bind(null,n),Mf(e,n))));break;case 22:if(r=n.memoizedState!==null||gl,!r){t=t!==null&&t.memoizedState!==null||_l,i=gl;var a=_l;gl=r,(_l=t)&&!a?zl(e,n,(n.subtreeFlags&8772)!=0):Ll(e,n),gl=i,_l=a}break;case 30:break;default:Ll(e,n)}}function Cl(e){var t=e.alternate;t!==null&&(e.alternate=null,Cl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Tt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var wl=null,Tl=!1;function El(e,t,n){for(n=n.child;n!==null;)Dl(e,t,n),n=n.sibling}function Dl(e,t,n){if(T&&typeof T.onCommitFiberUnmount==`function`)try{T.onCommitFiberUnmount(qe,n)}catch{}switch(n.tag){case 26:_l||cl(n,t),El(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:_l||cl(n,t);var r=wl,i=Tl;Cf(n.type)&&(wl=n.stateNode,Tl=!1),El(e,t,n),Rf(n.stateNode),wl=r,Tl=i;break;case 5:_l||cl(n,t);case 6:if(r=wl,i=Tl,wl=null,El(e,t,n),wl=r,Tl=i,wl!==null)if(Tl)try{(wl.nodeType===9?wl.body:wl.nodeName===`HTML`?wl.ownerDocument.body:wl).removeChild(n.stateNode)}catch(e){pd(n,t,e)}else try{wl.removeChild(n.stateNode)}catch(e){pd(n,t,e)}break;case 18:wl!==null&&(Tl?(e=wl,wf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),rm(e)):wf(wl,n.stateNode));break;case 4:r=wl,i=Tl,wl=n.stateNode.containerInfo,Tl=!0,El(e,t,n),wl=r,Tl=i;break;case 0:case 11:case 14:case 15:il(2,n,t),_l||il(4,n,t),El(e,t,n);break;case 1:_l||(cl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&ol(n,t,r)),El(e,t,n);break;case 21:El(e,t,n);break;case 22:_l=(r=_l)||n.memoizedState!==null,El(e,t,n),_l=r;break;default:El(e,t,n)}}function Ol(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{rm(e)}catch(e){pd(t,t.return,e)}}}function kl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{rm(e)}catch(e){pd(t,t.return,e)}}function Al(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new yl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new yl),t;default:throw Error(o(435,e.tag))}}function jl(e,t){var n=Al(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=vd.bind(null,e,t);t.then(r,r)}})}function Ml(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Cf(c.type)){wl=c.stateNode,Tl=!1;break a}break;case 5:wl=c.stateNode,Tl=!1;break a;case 3:case 4:wl=c.stateNode.containerInfo,Tl=!0;break a}c=c.return}if(wl===null)throw Error(o(160));Dl(a,s,i),wl=null,Tl=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Pl(t,e),t=t.sibling}var Nl=null;function Pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ml(t,e),Fl(e),r&4&&(il(3,e,e.return),rl(3,e),il(5,e,e.return));break;case 1:Ml(t,e),Fl(e),r&512&&(_l||n===null||cl(n,n.return)),r&64&&gl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=Nl;if(Ml(t,e),Fl(e),r&512&&(_l||n===null||cl(n,n.return)),r&4){var a=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:a=i.getElementsByTagName(`title`)[0],(!a||a[wt]||a[_t]||a.namespaceURI===`http://www.w3.org/2000/svg`||a.hasAttribute(`itemprop`))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector(`head > title`))),of(a,r,n),a[_t]=e,At(a),r=a;break a;case`link`:var s=dp(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(a=s[c],a.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&a.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&a.getAttribute(`title`)===(n.title==null?null:n.title)&&a.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}a=i.createElement(r),of(a,r,n),i.head.appendChild(a);break;case`meta`:if(s=dp(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(a=s[c],a.getAttribute(`content`)===(n.content==null?null:``+n.content)&&a.getAttribute(`name`)===(n.name==null?null:n.name)&&a.getAttribute(`property`)===(n.property==null?null:n.property)&&a.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}a=i.createElement(r),of(a,r,n),i.head.appendChild(a);break;default:throw Error(o(468,r))}a[_t]=e,At(a),r=a}e.stateNode=r}else fp(i,e.type,e.stateNode);else e.stateNode=sp(i,r,e.memoizedProps);
vendor: 40,704 bytes, lines 9-10
9else a===r?r===null&&e.stateNode!==null&&ul(e,e.memoizedProps,n.memoizedProps):(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?fp(i,e.type,e.stateNode):sp(i,r,e.memoizedProps))}break;case 27:Ml(t,e),Fl(e),r&512&&(_l||n===null||cl(n,n.return)),n!==null&&r&4&&ul(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ml(t,e),Fl(e),r&512&&(_l||n===null||cl(n,n.return)),e.flags&32){i=e.stateNode;try{nn(i,``)}catch(t){pd(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,ul(e,i,n===null?i:n.memoizedProps)),r&1024&&(vl=!0);break;case 6:if(Ml(t,e),Fl(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){pd(e,e.return,t)}}break;case 3:if(k=null,i=Nl,Nl=Vf(t.containerInfo),Ml(t,e),Nl=i,Fl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{rm(t.containerInfo)}catch(t){pd(e,e.return,t)}vl&&(vl=!1,Il(e));break;case 4:r=Nl,Nl=Vf(e.stateNode.containerInfo),Ml(t,e),Fl(e),Nl=r;break;case 12:Ml(t,e),Fl(e);break;case 31:Ml(t,e),Fl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,jl(e,r)));break;case 13:Ml(t,e),Fl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(xu=Re()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,jl(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=gl,d=_l;if(gl=u||i,_l=d||l,Ml(t,e),_l=d,gl=u,Fl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||gl||_l||Rl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,i)s=a.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){pd(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){pd(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?Tf(m,!0):Tf(l.stateNode,!1)}catch(e){pd(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,jl(e,n))));break;case 19:Ml(t,e),Fl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,jl(e,r)));break;case 30:break;case 21:break;default:Ml(t,e),Fl(e)}}function Fl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(dl(r)){n=r;break}r=r.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode;ml(e,fl(e),i);break;case 5:var a=n.stateNode;n.flags&32&&(nn(a,``),n.flags&=-33),ml(e,fl(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;pl(e,fl(e),s);break;default:throw Error(o(161))}}catch(t){pd(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Il(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Il(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ll(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Sl(e,t.alternate,t),t=t.sibling}function Rl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:il(4,t,t.return),Rl(t);break;case 1:cl(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&ol(t,t.return,n),Rl(t);break;case 27:Rf(t.stateNode);case 26:case 5:cl(t,t.return),Rl(t);break;case 22:t.memoizedState===null&&Rl(t);break;case 30:Rl(t);break;default:Rl(t)}e=e.sibling}}function zl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:zl(i,a,n),rl(4,a);break;case 1:if(zl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){pd(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)so(c[i],s)}catch(e){pd(r,r.return,e)}}n&&o&64&&al(a),sl(a,a.return);break;case 27:hl(a);case 26:case 5:zl(i,a,n),n&&r===null&&o&4&&ll(a),sl(a,a.return);break;case 12:zl(i,a,n);break;case 31:zl(i,a,n),n&&o&4&&Ol(i,a);break;case 13:zl(i,a,n),n&&o&4&&kl(i,a);break;case 22:a.memoizedState===null&&zl(i,a,n),sl(a,a.return);break;case 30:break;default:zl(i,a,n)}t=t.sibling}}function Bl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ba(n))}function Vl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ba(e))}function Hl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ul(e,t,n,r),t=t.sibling}function Ul(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Hl(e,t,n,r),i&2048&&rl(9,t);break;case 1:Hl(e,t,n,r);break;case 3:Hl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ba(e)));break;case 12:if(i&2048){Hl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){pd(t,t.return,e)}}else Hl(e,t,n,r);break;case 31:Hl(e,t,n,r);break;case 13:Hl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Hl(e,t,n,r):(a._visibility|=2,Wl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Hl(e,t,n,r):Gl(e,t),i&2048&&Bl(o,t);break;case 24:Hl(e,t,n,r),i&2048&&Vl(t.alternate,t);break;default:Hl(e,t,n,r)}}function Wl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Wl(a,o,s,c,i),rl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Wl(a,o,s,c,i)):u._visibility&2?Wl(a,o,s,c,i):Gl(a,o),i&&l&2048&&Bl(o.alternate,o);break;case 24:Wl(a,o,s,c,i),i&&l&2048&&Vl(o.alternate,o);break;default:Wl(a,o,s,c,i)}t=t.sibling}}function Gl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Gl(n,r),i&2048&&Bl(r.alternate,r);break;case 24:Gl(n,r),i&2048&&Vl(r.alternate,r);break;default:Gl(n,r)}t=t.sibling}}var Kl=8192;function ql(e,t,n){if(e.subtreeFlags&Kl)for(e=e.child;e!==null;)Jl(e,t,n),e=e.sibling}function Jl(e,t,n){switch(e.tag){case 26:ql(e,t,n),e.flags&Kl&&e.memoizedState!==null&&hp(n,Nl,e.memoizedState,e.memoizedProps);break;case 5:ql(e,t,n);break;case 3:case 4:var r=Nl;Nl=Vf(e.stateNode.containerInfo),ql(e,t,n),Nl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Kl,Kl=16777216,ql(e,t,n),Kl=r):ql(e,t,n));break;default:ql(e,t,n)}}function Yl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Xl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];bl=r,$l(r,e)}Yl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zl(e),e=e.sibling}function Zl(e){switch(e.tag){case 0:case 11:case 15:Xl(e),e.flags&2048&&il(9,e,e.return);break;case 3:Xl(e);break;case 12:Xl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ql(e)):Xl(e);break;default:Xl(e)}}function Ql(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];bl=r,$l(r,e)}Yl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:il(8,t,t.return),Ql(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ql(t));break;default:Ql(t)}e=e.sibling}}function $l(e,t){for(;bl!==null;){var n=bl;switch(n.tag){case 0:case 11:case 15:il(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ba(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,bl=r;else a:for(n=e;bl!==null;){r=bl;var i=r.sibling,a=r.return;if(Cl(r),r===n){bl=null;break a}if(i!==null){i.return=a,bl=i;break a}bl=a}}}var eu={getCacheForType:function(e){var t=fa(va),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return fa(va).controller.signal}},tu=typeof WeakMap==`function`?WeakMap:Map,nu=0,ru=null,iu=null,au=0,ou=0,su=null,cu=!1,lu=!1,uu=!1,du=0,fu=0,pu=0,mu=0,hu=0,gu=0,_u=0,vu=null,yu=null,bu=!1,xu=0,Su=0,Cu=1/0,wu=null,Tu=null,Eu=0,Du=null,Ou=null,ku=0,Au=0,ju=null,Mu=null,Nu=0,Pu=null;function Fu(){return nu&2&&au!==0?au&-au:ue.T===null?mt():Pd()}function Iu(){if(gu===0)if(!(au&536870912)||Gi){var e=et;et<<=1,!(et&3932160)&&(et=262144),gu=e}else gu=536870912;return e=ho.current,e!==null&&(e.flags|=32),gu}function Lu(e,t,n){(e===ru&&(ou===2||ou===9)||e.cancelPendingCommit!==null)&&(Wu(e,0),Vu(e,au,gu,!1)),ct(e,n),(!(nu&2)||e!==ru)&&(e===ru&&(!(nu&2)&&(mu|=n),fu===4&&Vu(e,au,gu,!1)),Ed(e))}function Ru(e,t,n){if(nu&6)throw Error(o(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||it(e,t),i=r?Qu(e,t):Xu(e,t,!0),a=r;do{if(i===0){lu&&!r&&Vu(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!Bu(n)){i=Xu(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=vu;var l=c.current.memoizedState.isDehydrated;if(l&&(Wu(c,s).flags|=256),s=Xu(c,s,!1),s!==2){if(uu&&!l){c.errorRecoveryDisabledLanes|=a,mu|=a,i=4;break a}a=yu,yu=i,a!==null&&(yu===null?yu=a:yu.push.apply(yu,a))}i=s}if(a=!1,i!==2)continue}}if(i===1){Wu(e,0),Vu(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Vu(r,t,gu,!cu);break a;case 2:yu=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=xu+300-Re(),10<i)){if(Vu(r,t,gu,!cu),rt(r,0,!0)!==0)break a;ku=t,r.timeoutHandle=vf(zu.bind(null,r,n,yu,wu,bu,t,gu,mu,_u,cu,a,`Throttled`,-0,0),i);break a}zu(r,n,yu,wu,bu,t,gu,mu,_u,cu,a,null,-0,0)}}break}while(1);Ed(e)}function zu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dn},Jl(t,a,d);var m=(a&62914560)===a?xu-Re():(a&4194048)===a?Su-Re():0;if(m=_p(d,m),m!==null){ku=a,e.cancelPendingCommit=m(ad.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Vu(e,a,o,!l);return}}ad(e,t,a,n,r,i,o,s,c)}function Bu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Pr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vu(e,t,n,r){t&=~hu,t&=~mu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ye(i),o=1<<a;r[a]=-1,i&=~o}n!==0&<(e,n,t)}function Hu(){return nu&6?!0:(Dd(0,!1),!1)}function Uu(){if(iu!==null){if(ou===0)var e=iu.return;else e=iu,ia=ra=null,Uo(e),Ua=null,Wa=0,e=iu;for(;e!==null;)nl(e.alternate,e),e=e.return;iu=null}}function Wu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,yf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ku=0,Uu(),ru=e,iu=n=bi(e.current,null),au=t,ou=0,su=null,cu=!1,lu=it(e,t),uu=!1,_u=gu=hu=mu=pu=fu=0,yu=vu=null,bu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ye(r),a=1<<i;t|=e[i],r&=~a}return du=t,ui(),n}function Gu(e,t){To=null,ue.H=$s,t===Na||t===Fa?(t=Va(),ou=3):t===Pa?(t=Va(),ou=4):ou=t===_c?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,su=t,iu===null&&(fu=1,dc(e,Oi(t,e.current)))}function Ku(){var e=ho.current;return e===null?!0:(au&4194048)===au?go===null:(au&62914560)===au||au&536870912?e===go:!1}function qu(){var e=ue.H;return ue.H=$s,e===null?$s:e}function Ju(){var e=ue.A;return ue.A=eu,e}function Yu(){fu=4,cu||(au&4194048)!==au&&ho.current!==null||(lu=!0),!(pu&134217727)&&!(mu&134217727)||ru===null||Vu(ru,au,gu,!1)}function Xu(e,t,n){var r=nu;nu|=2;var i=qu(),a=Ju();(ru!==e||au!==t)&&(wu=null,Wu(e,t)),t=!1;var o=fu;a:do try{if(ou!==0&&iu!==null){var s=iu,c=su;switch(ou){case 8:Uu(),o=6;break a;case 3:case 2:case 9:case 6:ho.current===null&&(t=!0);var l=ou;if(ou=0,su=null,nd(e,s,c,l),n&&lu){o=0;break a}break;default:l=ou,ou=0,su=null,nd(e,s,c,l)}}Zu(),o=fu;break}catch(t){Gu(e,t)}while(1);return t&&e.shellSuspendCounter++,ia=ra=null,nu=r,ue.H=i,ue.A=a,iu===null&&(ru=null,au=0,ui()),o}function Zu(){for(;iu!==null;)ed(iu)}function Qu(e,t){var n=nu;nu|=2;var r=qu(),i=Ju();ru!==e||au!==t?(wu=null,Cu=Re()+500,Wu(e,t)):lu=it(e,t);a:do try{if(ou!==0&&iu!==null){t=iu;var a=su;b:switch(ou){case 1:ou=0,su=null,nd(e,t,a,1);break;case 2:case 9:if(La(a)){ou=0,su=null,td(t);break}t=function(){ou!==2&&ou!==9||ru!==e||(ou=7),Ed(e)},a.then(t,t);break a;case 3:ou=7;break a;case 4:ou=5;break a;case 7:La(a)?(ou=0,su=null,td(t)):(ou=0,su=null,nd(e,t,a,7));break;case 5:var s=null;switch(iu.tag){case 26:s=iu.memoizedState;case 5:case 27:var c=iu;if(s?mp(s):c.stateNode.complete){ou=0,su=null;var l=c.sibling;if(l!==null)iu=l;else{var u=c.return;u===null?iu=null:(iu=u,rd(u))}break b}}ou=0,su=null,nd(e,t,a,5);break;case 6:ou=0,su=null,nd(e,t,a,6);break;case 8:Uu(),fu=6;break a;default:throw Error(o(462))}}$u();break}catch(t){Gu(e,t)}while(1);return ia=ra=null,ue.H=r,ue.A=i,nu=n,iu===null?(ru=null,au=0,ui(),fu):0}function $u(){for(;iu!==null&&!Ie();)ed(iu)}function ed(e){var t=qc(e.alternate,e,du);e.memoizedProps=e.pendingProps,t===null?rd(e):iu=t}function td(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=jc(n,t,t.pendingProps,t.type,void 0,au);break;case 11:t=jc(n,t,t.pendingProps,t.type.render,t.ref,au);break;case 5:Uo(t);default:nl(n,t),t=iu=xi(t,du),t=qc(n,t,du)}e.memoizedProps=e.pendingProps,t===null?rd(e):iu=t}function nd(e,t,n,r){ia=ra=null,Uo(t),Ua=null,Wa=0;var i=t.return;try{if(gc(e,i,t,n,au)){fu=1,dc(e,Oi(n,e.current)),iu=null;return}}catch(t){if(i!==null)throw iu=i,t;fu=1,dc(e,Oi(n,e.current)),iu=null;return}t.flags&32768?(Gi||r===1?e=!0:lu||au&536870912?e=!1:(cu=e=!0,(r===2||r===9||r===3||r===6)&&(r=ho.current,r!==null&&r.tag===13&&(r.flags|=16384))),id(t,e)):rd(t)}function rd(e){var t=e;do{if(t.flags&32768){id(t,cu);return}e=t.return;var n=el(t.alternate,t,du);if(n!==null){iu=n;return}if(t=t.sibling,t!==null){iu=t;return}iu=t=e}while(t!==null);fu===0&&(fu=5)}function id(e,t){do{var n=tl(e.alternate,e);if(n!==null){n.flags&=32767,iu=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){iu=e;return}iu=e=n}while(e!==null);fu=6,iu=null}function ad(e,t,n,r,i,a,s,c,l){e.cancelPendingCommit=null;do ud();while(Eu!==0);if(nu&6)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(a=t.lanes|t.childLanes,a|=li,E(e,n,a,s,c,l),e===ru&&(iu=ru=null,au=0),Ou=t,Du=e,ku=n,Au=a,ju=i,Mu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,yd(He,function(){return dd(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=ue.T,ue.T=null,i=de.p,de.p=2,s=nu,nu|=4;try{xl(e,t,n)}finally{nu=s,de.p=i,ue.T=r}}Eu=1,od(),sd(),cd()}}function od(){if(Eu===1){Eu=0;var e=Du,t=Ou,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=ue.T,ue.T=null;var r=de.p;de.p=2;var i=nu;nu|=4;try{Pl(t,e);var a=df,o=zr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Rr(s.ownerDocument.documentElement,s)){if(c!==null&&Br(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Lr(s,h),v=Lr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}jp=!!uf,df=uf=null}finally{nu=i,de.p=r,ue.T=n}}e.current=t,Eu=2}}function sd(){if(Eu===2){Eu=0;var e=Du,t=Ou,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=ue.T,ue.T=null;var r=de.p;de.p=2;var i=nu;nu|=4;try{Sl(e,t.alternate,t)}finally{nu=i,de.p=r,ue.T=n}}Eu=3}}function cd(){if(Eu===4||Eu===3){Eu=0,Le();var e=Du,t=Ou,n=ku,r=Mu;t.subtreeFlags&10256||t.flags&10256?Eu=5:(Eu=0,Ou=Du=null,ld(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Tu=null),pt(n),t=t.stateNode,T&&typeof T.onCommitFiberRoot==`function`)try{T.onCommitFiberRoot(qe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=ue.T,i=de.p,de.p=2,ue.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{ue.T=t,de.p=i}}ku&3&&ud(),Ed(e),i=e.pendingLanes,n&261930&&i&42?e===Pu?Nu++:(Nu=0,Pu=e):Nu=0,Dd(0,!1)}}function ld(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ba(t)))}function ud(){return od(),sd(),cd(),dd()}function dd(){if(Eu!==5)return!1;var e=Du,t=Au;Au=0;var n=pt(ku),r=ue.T,i=de.p;try{de.p=32>n?32:n,ue.T=null,n=ju,ju=null;var a=Du,s=ku;if(Eu=0,Ou=Du=null,ku=0,nu&6)throw Error(o(331));var c=nu;if(nu|=4,Zl(a.current),Ul(a,a.current,s,n),nu=c,Dd(0,!1),T&&typeof T.onPostCommitFiberRoot==`function`)try{T.onPostCommitFiberRoot(qe,a)}catch{}return!0}finally{de.p=i,ue.T=r,ld(e,t)}}function fd(e,t,n){t=Oi(n,t),t=pc(e.stateNode,t,2),e=to(e,t,2),e!==null&&(ct(e,2),Ed(e))}function pd(e,t,n){if(e.tag===3)fd(e,e,n);else for(;t!==null;){if(t.tag===3){fd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Tu===null||!Tu.has(r))){e=Oi(n,e),n=mc(2),r=to(t,n,2),r!==null&&(hc(n,r,t,e),ct(r,2),Ed(r));break}}t=t.return}}function md(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new tu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(uu=!0,i.add(n),e=hd.bind(null,e,t,n),t.then(e,e))}function hd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ru===e&&(au&n)===n&&(fu===4||fu===3&&(au&62914560)===au&&300>Re()-xu?!(nu&2)&&Wu(e,0):hu|=n,_u===au&&(_u=0)),Ed(e)}function gd(e,t){t===0&&(t=ot()),e=pi(e,t),e!==null&&(ct(e,t),Ed(e))}function _d(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gd(e,n)}function vd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),gd(e,n)}function yd(e,t){return Pe(e,t)}var bd=null,xd=null,Sd=!1,Cd=!1,wd=!1,Td=0;function Ed(e){e!==xd&&e.next===null&&(xd===null?bd=xd=e:xd=xd.next=e),Cd=!0,Sd||(Sd=!0,Nd())}function Dd(e,t){if(!wd&&Cd){wd=!0;do for(var n=!1,r=bd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ye(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Md(r,a))}else a=au,a=rt(r,r===ru?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||it(r,a)||(n=!0,Md(r,a));r=r.next}while(n);wd=!1}}function Od(){kd()}function kd(){Cd=Sd=!1;var e=0;Td!==0&&_f()&&(e=Td);for(var t=Re(),n=null,r=bd;r!==null;){var i=r.next,a=Ad(r,t);a===0?(r.next=null,n===null?bd=i:n.next=i,i===null&&(xd=n)):(n=r,(e!==0||a&3)&&(Cd=!0)),r=i}Eu!==0&&Eu!==5||Dd(e,!1),Td!==0&&(Td=0)}function Ad(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ye(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=at(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ru,n=au,n=rt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ou===2||ou===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Fe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||it(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Fe(r),pt(n)){case 2:case 8:n=Ve;break;case 32:n=He;break;case 268435456:n=We;break;default:n=He}return r=jd.bind(null,e),n=Pe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Fe(r),e.callbackPriority=2,e.callbackNode=null,2}function jd(e,t){if(Eu!==0&&Eu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ud()&&e.callbackNode!==n)return null;var r=au;return r=rt(e,e===ru?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Ru(e,r,t),Ad(e,Re()),e.callbackNode!=null&&e.callbackNode===n?jd.bind(null,e):null)}function Md(e,t){if(ud())return null;Ru(e,t,!0)}function Nd(){xf(function(){nu&6?Pe(Be,Od):kd()})}function Pd(){if(Td===0){var e=Ca;e===0&&(e=$e,$e<<=1,!($e&261888)&&($e=256)),Td=e}return Td}function Fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:un(``+e)}function Id(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Ld(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Fd((i[vt]||null).action),o=r.submitter;o&&(t=(t=o[vt]||null)?Fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Nn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Td!==0){var e=o?Id(i,o):new FormData(i);zs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Id(i,o):new FormData(i),zs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Rd=0;Rd<oi.length;Rd++){var zd=oi[Rd];D(zd.toLowerCase(),`on`+(zd[0].toUpperCase()+zd.slice(1)))}D(Qr,`onAnimationEnd`),D($r,`onAnimationIteration`),D(ei,`onAnimationStart`),D(`dblclick`,`onDoubleClick`),D(`focusin`,`onFocus`),D(`focusout`,`onBlur`),D(ti,`onTransitionRun`),D(ni,`onTransitionStart`),D(ri,`onTransitionCancel`),D(ii,`onTransitionEnd`),Pt(`onMouseEnter`,[`mouseout`,`mouseover`]),Pt(`onMouseLeave`,[`mouseout`,`mouseover`]),Pt(`onPointerEnter`,[`pointerout`,`pointerover`]),Pt(`onPointerLeave`,[`pointerout`,`pointerover`]),Nt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Nt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Nt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Nt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Nt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Nt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Bd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Bd));function Hd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){O(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){O(e)}i.currentTarget=null,a=c}}}}function Ud(e,t){var n=t[bt];n===void 0&&(n=t[bt]=new Set);var r=e+`__bubble`;n.has(r)||(qd(t,e,2,!1),n.add(r))}function Wd(e,t,n){var r=0;t&&(r|=4),qd(n,e,r,t)}var Gd=`_reactListening`+Math.random().toString(36).slice(2);function Kd(e){if(!e[Gd]){e[Gd]=!0,jt.forEach(function(t){t!==`selectionchange`&&(Vd.has(t)||Wd(t,!1,e),Wd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gd]||(t[Gd]=!0,Wd(`selectionchange`,!1,t))}}function qd(e,t,n,r){switch(Rp(t)){case 2:var i=Mp;break;case 8:i=Np;break;default:i=Pp}n=i.bind(null,t,n,e),i=void 0,!xn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Jd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Et(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}vn(function(){var r=a,i=pn(n),o=[];a:{var s=ai.get(e);if(s!==void 0){var l=Nn,u=e;switch(e){case`keypress`:if(Dn(n)===0)break a;case`keydown`:case`keyup`:l=Zn;break;case`focusin`:u=`focus`,l=Hn;break;case`focusout`:u=`blur`,l=Hn;break;case`beforeblur`:case`afterblur`:l=Hn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Vn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=$n;break;case Qr:case $r:case ei:l=Un;break;case ii:l=er;break;case`scroll`:case`scrollend`:l=Fn;break;case`wheel`:l=tr;break;case`copy`:case`cut`:case`paste`:l=Wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Qn;break;case`toggle`:case`beforetoggle`:l=nr}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=yn(m,p),g!=null&&d.push(Yd(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==fn&&(u=n.relatedTarget||n.fromElement)&&(Et(u)||u[yt]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?Et(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Bn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Qn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:Ot(l),h=u==null?s:Ot(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,Et(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Zd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Qd(o,s,l,d,!1),u!==null&&f!==null&&Qd(o,f,u,d,!0)}}a:{if(s=r?Ot(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=Sr;else if(gr(s))if(Cr)v=Mr;else{v=Ar;var y=kr}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&sn(r.elementType)&&(v=Sr):v=jr;if(v&&=v(e,r)){_r(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Qt(s,`number`,s.value)}switch(y=r?Ot(r):window,e){case`focusin`:(gr(y)||y.contentEditable===`true`)&&(Hr=y,Ur=r,Wr=null);break;case`focusout`:Wr=Ur=Hr=null;break;case`mousedown`:Gr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Gr=!1,Kr(o,n,i);break;case`selectionchange`:if(Vr)break;case`keydown`:case`keyup`:Kr(o,n,i)}var b;if(ir)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else fr?ur(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(sr&&n.locale!==`ko`&&(fr||x!==`onCompositionStart`?x===`onCompositionEnd`&&fr&&(b=En()):(Cn=i,wn=`value`in Cn?Cn.value:Cn.textContent,fr=!0)),y=Xd(r,x),0<y.length&&(x=new Gn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=dr(n),b!==null&&(x.data=b)))),(b=or?pr(e,n):mr(e,n))&&(x=Xd(r,`onBeforeInput`),0<x.length&&(y=new Gn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),Ld(o,e,r,n,i)}Hd(o,t)})}function Yd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=yn(e,n),i!=null&&r.unshift(Yd(e,i,a)),i=yn(e,t),i!=null&&r.push(Yd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Zd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Qd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=yn(n,a),l!=null&&o.unshift(Yd(n,l,c))):i||(l=yn(n,a),l!=null&&o.push(Yd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var $d=/\r\n?/g,ef=/\u0000|\uFFFD/g;function tf(e){return(typeof e==`string`?e:``+e).replace($d,` 10`).replace(ef,``)}function nf(e,t){return t=tf(t),tf(e)===t}function rf(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||nn(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&nn(e,``+r);break;case`className`:Bt(e,`class`,r);break;case`tabIndex`:Bt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Bt(e,n,r);break;case`style`:on(e,r,a);break;case`data`:if(t!==`object`){Bt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=un(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof a==`function`&&(n===`formAction`?(t!==`input`&&rf(e,t,`name`,i.name,i,null),rf(e,t,`formEncType`,i.formEncType,i,null),rf(e,t,`formMethod`,i.formMethod,i,null),rf(e,t,`formTarget`,i.formTarget,i,null)):(rf(e,t,`encType`,i.encType,i,null),rf(e,t,`method`,i.method,i,null),rf(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=un(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=dn);break;case`onScroll`:r!=null&&Ud(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ud(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=un(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Ud(`beforetoggle`,e),Ud(`toggle`,e),zt(e,`popover`,r);break;case`xlinkActuate`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:zt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=cn.get(n)||n,zt(e,n,r))}}function af(e,t,n,r,i,a){switch(n){case`style`:on(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?nn(e,r):(typeof r==`number`||typeof r==`bigint`)&&nn(e,``+r);break;case`onScroll`:r!=null&&Ud(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ud(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=dn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Mt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[vt]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):zt(e,n,r)}}}function of(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Ud(`error`,e),Ud(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:rf(e,t,a,s,n,null)}}i&&rf(e,t,`srcSet`,n.srcSet,n,null),r&&rf(e,t,`src`,n.src,n,null);return;case`input`:Ud(`invalid`,e);var c=a=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(o(137,t));break;default:rf(e,t,r,d,n,null)}}Zt(e,a,c,l,u,s,i,!1);return;case`select`:for(i in Ud(`invalid`,e),r=s=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:rf(e,t,i,c,n,null)}t=a,n=s,e.multiple=!!r,t==null?n!=null&&$t(e,!!r,n,!0):$t(e,!!r,t,!1);return;case`textarea`:for(s in Ud(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(o(91));break;default:rf(e,t,s,c,n,null)}tn(e,r,i,a);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:rf(e,t,l,r,n,null)}return;case`dialog`:Ud(`beforetoggle`,e),Ud(`toggle`,e),Ud(`cancel`,e),Ud(`close`,e);break;case`iframe`:case`object`:Ud(`load`,e);break;case`video`:case`audio`:for(r=0;r<Bd.length;r++)Ud(Bd[r],e);break;case`image`:Ud(`error`,e),Ud(`load`,e);break;case`details`:Ud(`toggle`,e);break;case`embed`:case`source`:case`link`:Ud(`error`,e),Ud(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:rf(e,t,u,r,n,null)}return;default:if(sn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&af(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&rf(e,t,c,r,n,null))}function sf(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||rf(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:a=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(o(137,t));break;default:m!==f&&rf(e,t,p,m,r,f)}}Xt(e,s,c,l,u,d,a,i);return;case`select`:for(a in m=s=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||rf(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:p=a;break;case`defaultValue`:c=a;break;case`multiple`:s=a;default:a!==l&&rf(e,t,i,a,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?$t(e,!!n,n?[]:``,!1):$t(e,!!n,t,!0)):$t(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:rf(e,t,c,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(i!=null||a!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(o(91));break;default:i!==a&&rf(e,t,s,i,r,a)}en(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:rf(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:rf(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&rf(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(o(137,t));break;default:rf(e,t,u,p,r,m)}return;default:if(sn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&af(e,t,_,void 0,r,p);
vendor: 4,463 bytes, line 10
10for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||af(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&rf(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||rf(e,t,f,p,r,m)}function cf(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function lf(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&cf(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&cf(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var uf=null,df=null;function ff(e){return e.nodeType===9?e:e.ownerDocument}function pf(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function mf(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function hf(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gf=null;function _f(){var e=window.event;return e&&e.type===`popstate`?e===gf?!1:(gf=e,!0):(gf=null,!1)}var vf=typeof setTimeout==`function`?setTimeout:void 0,yf=typeof clearTimeout==`function`?clearTimeout:void 0,bf=typeof Promise==`function`?Promise:void 0,xf=typeof queueMicrotask==`function`?queueMicrotask:bf===void 0?vf:function(e){return bf.resolve(null).then(e).catch(Sf)};function Sf(e){setTimeout(function(){throw e})}function Cf(e){return e===`head`}function wf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),rm(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Rf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Rf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[wt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Rf(e.ownerDocument.body);n=i}while(n);rm(t)}function Tf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function Ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:Ef(n),Tt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function Df(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[wt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=Nf(e.nextSibling),e===null)break}return null}function Of(e,t,n){if(t===``)return null;for(;
vendor: 17,953 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=Nf(e.nextSibling),e===null))return null;return e}function kf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=Nf(e.nextSibling),e===null))return null;return e}function Af(e){return e.data===`$?`||e.data===`$~`}function jf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function Mf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function Nf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var Pf=null;function Ff(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return Nf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function If(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Lf(e,t,n){switch(t=ff(n),e){case`html`:if(e=t.documentElement,!e)throw Error(o(452));return e;case`head`:if(e=t.head,!e)throw Error(o(453));return e;case`body`:if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Rf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Tt(e)}var zf=new Map,Bf=new Set;function Vf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Hf=de.d;de.d={f:Uf,r:Wf,D:qf,C:Jf,L:Yf,m:Xf,X:Qf,S:Zf,M:$f};function Uf(){var e=Hf.f(),t=Hu();return e||t}function Wf(e){var t=Dt(e);t!==null&&t.tag===5&&t.type===`form`?Vs(t):Hf.r(e)}var Gf=typeof document>`u`?null:document;function Kf(e,t,n){var r=Gf;if(r&&typeof t==`string`&&t){var i=Yt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Bf.has(i)||(Bf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),of(t,`link`,e),At(t),r.head.appendChild(t)))}}function qf(e){Hf.D(e),Kf(`dns-prefetch`,e,null)}function Jf(e,t){Hf.C(e,t),Kf(`preconnect`,e,t)}function Yf(e,t,n){Hf.L(e,t,n);var r=Gf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Yt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Yt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Yt(n.imageSizes)+`"]`)):i+=`[href="`+Yt(e)+`"]`;var a=i;switch(t){case`style`:a=tp(e);break;case`script`:a=ap(e)}zf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),zf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(np(a))||t===`script`&&r.querySelector(op(a))||(t=r.createElement(`link`),of(t,`link`,e),At(t),r.head.appendChild(t)))}}function Xf(e,t){Hf.m(e,t);var n=Gf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Yt(r)+`"][href="`+Yt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=ap(e)}if(!zf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),zf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(op(a)))return}r=n.createElement(`link`),of(r,`link`,e),At(r),n.head.appendChild(r)}}}function Zf(e,t,n){Hf.S(e,t,n);var r=Gf;if(r&&e){var i=kt(r).hoistableStyles,a=tp(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(np(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=zf.get(a))&&lp(e,n);var c=o=r.createElement(`link`);At(c),of(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,cp(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Qf(e,t){Hf.X(e,t);var n=Gf;if(n&&e){var r=kt(n).hoistableScripts,i=ap(e),a=r.get(i);a||(a=n.querySelector(op(i)),a||(e=m({src:e,async:!0},t),(t=zf.get(i))&&up(e,t),a=n.createElement(`script`),At(a),of(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function $f(e,t){Hf.M(e,t);var n=Gf;if(n&&e){var r=kt(n).hoistableScripts,i=ap(e),a=r.get(i);a||(a=n.querySelector(op(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=zf.get(i))&&up(e,t),a=n.createElement(`script`),At(a),of(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function ep(e,t,n,r){var i=(i=be.current)?Vf(i):null;if(!i)throw Error(o(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=tp(n.href),n=kt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=tp(n.href);var a=kt(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(np(e)))&&!a._p&&(s.instance=a,s.state.loading=5),zf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},zf.set(e,n),a||ip(i,e,n,s.state))),t&&r===null)throw Error(o(528,``));return s}if(t&&r!==null)throw Error(o(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=ap(n),n=kt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(o(444,e))}}function tp(e){return`href="`+Yt(e)+`"`}function np(e){return`link[rel="stylesheet"][`+e+`]`}function rp(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function ip(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),of(t,`link`,n),At(t),e.head.appendChild(t))}function ap(e){return`[src="`+Yt(e)+`"]`}function op(e){return`script[async]`+e}function sp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Yt(n.href)+`"]`);if(r)return t.instance=r,At(r),r;var i=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),At(r),of(r,`style`,i),cp(r,n.precedence,e),t.instance=r;case`stylesheet`:i=tp(n.href);var a=e.querySelector(np(i));if(a)return t.state.loading|=4,t.instance=a,At(a),a;r=rp(n),(i=zf.get(i))&&lp(r,i),a=(e.ownerDocument||e).createElement(`link`),At(a);var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),of(a,`link`,r),t.state.loading|=4,cp(a,n.precedence,e),t.instance=a;case`script`:return a=ap(n.src),(i=e.querySelector(op(a)))?(t.instance=i,At(i),i):(r=n,(i=zf.get(a))&&(r=m({},n),up(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),At(i),of(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(o(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,cp(r,n.precedence,e));return t.instance}function cp(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function lp(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function up(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var k=null;function dp(e,t,n){if(k===null){var r=new Map,i=k=new Map;i.set(n,r)}else i=k,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[wt]||a[_t]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function fp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function pp(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function mp(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function hp(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=tp(r.href),a=t.querySelector(np(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=vp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,At(a);return}a=t.ownerDocument||t,r=rp(r),(i=zf.get(i))&&lp(r,i),a=a.createElement(`link`),At(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),of(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=vp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var gp=0;function _p(e,t){return e.stylesheets&&e.count===0&&bp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&bp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&gp===0&&(gp=62500*lf());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>gp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function vp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var yp=null;function bp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,yp=new Map,t.forEach(xp,e),yp=null,vp.call(e))}function xp(e,t){if(!(t.state.loading&4)){var n=yp.get(e);if(n)var r=n.get(null);else{n=new Map,yp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=vp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Sp={$$typeof:S,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function Cp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=st(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=st(0),this.hiddenUpdates=st(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function wp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new Cp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=vi(3,null,null,t),e.current=a,a.stateNode=e,t=ya(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Qa(a),e}function Tp(e){return e?(e=gi,e):gi}function Ep(e,t,n,r,i,a){i=Tp(i),r.context===null?r.context=i:r.pendingContext=i,r=eo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=to(e,r,t),n!==null&&(Lu(n,e,t),no(n,e,t))}function Dp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Op(e,t){Dp(e,t),(e=e.alternate)&&Dp(e,t)}function kp(e){if(e.tag===13||e.tag===31){var t=pi(e,67108864);t!==null&&Lu(t,e,67108864),Op(e,67108864)}}function Ap(e){if(e.tag===13||e.tag===31){var t=Fu();t=ft(t);var n=pi(e,t);n!==null&&Lu(n,e,t),Op(e,t)}}var jp=!0;function Mp(e,t,n,r){var i=ue.T;ue.T=null;var a=de.p;try{de.p=2,Pp(e,t,n,r)}finally{de.p=a,ue.T=i}}function Np(e,t,n,r){var i=ue.T;ue.T=null;var a=de.p;try{de.p=8,Pp(e,t,n,r)}finally{de.p=a,ue.T=i}}function Pp(e,t,n,r){if(jp){var i=Fp(r);if(i===null)Jd(e,t,r,Ip,n),qp(e,r);else if(Yp(i,e,t,n,r))r.stopPropagation();else if(qp(e,r),t&4&&-1<Kp.indexOf(e)){for(;i!==null;){var a=Dt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=nt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ye(o);s.entanglements[1]|=c,o&=~c}Ed(a),!(nu&6)&&(Cu=Re()+500,Dd(0,!1))}}break;case 31:case 13:s=pi(a,2),s!==null&&Lu(s,a,2),Hu(),Op(a,2)}if(a=Fp(r),a===null&&Jd(e,t,r,Ip,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Jd(e,t,r,null,n)}}function Fp(e){return e=pn(e),Lp(e)}var Ip=null;function Lp(e){if(Ip=null,e=Et(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=u(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ip=e,null}function Rp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(ze()){case Be:return 2;case Ve:return 8;case He:case Ue:return 32;case We:return 268435456;default:return 32}default:return 32}}var zp=!1,Bp=null,Vp=null,Hp=null,Up=new Map,Wp=new Map,Gp=[],Kp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function qp(e,t){switch(e){case`focusin`:case`focusout`:Bp=null;break;case`dragenter`:case`dragleave`:Vp=null;break;case`mouseover`:case`mouseout`:Hp=null;break;case`pointerover`:case`pointerout`:Up.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Wp.delete(t.pointerId)}}function Jp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Dt(t),t!==null&&kp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Yp(e,t,n,r,i){switch(t){case`focusin`:return Bp=Jp(Bp,e,t,n,r,i),!0;case`dragenter`:return Vp=Jp(Vp,e,t,n,r,i),!0;case`mouseover`:return Hp=Jp(Hp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Up.set(a,Jp(Up.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Wp.set(a,Jp(Wp.get(a)||null,e,t,n,r,i)),!0}return!1}function Xp(e){var t=Et(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,ht(e.priority,function(){Ap(n)});return}}else if(t===31){if(t=u(n),t!==null){e.blockedOn=t,ht(e.priority,function(){Ap(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);fn=r,n.target.dispatchEvent(r),fn=null}else return t=Dt(n),t!==null&&kp(t),e.blockedOn=n,!1;t.shift()}return!0}function Qp(e,t,n){Zp(e)&&n.delete(t)}function $p(){zp=!1,Bp!==null&&Zp(Bp)&&(Bp=null),Vp!==null&&Zp(Vp)&&(Vp=null),Hp!==null&&Zp(Hp)&&(Hp=null),Up.forEac
10h(Qp),Wp.forEach(Qp)}function em(e,n){e.blockedOn===n&&(e.blockedOn=null,zp||(zp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,$p)))}var tm=null;function nm(e){tm!==e&&(tm=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){tm===e&&(tm=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Lp(r||n)===null)continue;break}var a=Dt(n);a!==null&&(e.splice(t,3),t-=3,zs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function rm(e){function t(t){return em(t,e)}Bp!==null&&em(Bp,e),Vp!==null&&em(Vp,e),Hp!==null&&em(Hp,e),Up.forEach(t),Wp.forEach(t);for(var n=0;n<Gp.length;n++){var r=Gp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Gp.length&&(n=Gp[0],n.blockedOn===null);)Xp(n),n.blockedOn===null&&Gp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[vt]||null;if(typeof a==`function`)o||nm(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[vt]||null)s=o.formAction;else if(Lp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),nm(n)}}}function im(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function am(e){this._internalRoot=e}om.prototype.render=am.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current;Ep(n,Fu(),e,t,null,null)},om.prototype.unmount=am.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ep(e.current,2,null,e,null,null),Hu(),t[yt]=null}};function om(e){this._internalRoot=e}om.prototype.unstable_scheduleHydration=function(e){if(e){var t=mt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gp.length&&t!==0&&t<Gp[n].priority;n++);Gp.splice(n,0,e),n===0&&Xp(e)}};var sm=n.version;if(sm!==`19.2.7`)throw Error(o(527,sm,`19.2.7`));de.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(o(188)):(e=Object.keys(e).join(`,`),Error(o(268,e)));return e=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var cm={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:ue,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var lm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lm.isDisabled&&lm.supportsFiber)try{qe=lm.inject(cm),T=lm}catch{}}e.hydrateRoot=function(e,t,n){if(!s(e))throw Error(o(299));var r=!1,i=``,a=cc,c=lc,l=uc,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=wp(e,1,!0,t,n??null,r,i,u,a,c,l,im),t.context=Tp(null),n=t.current,r=Fu(),r=ft(r),i=eo(r),i.callback=null,to(n,i,r),n=r,t.current.lanes=n,ct(t,n),Ed(t),e[yt]=t.current,Kd(e),new om(t)}})),Pn=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Nn()}));function Fn(){try{return sessionStorage}catch{return}}var In=`tsr-scroll-restoration-v1_3`,Ln=Fn();function Rn(){try{return JSON.parse(Ln?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function zn(){try{Ln?.setItem(In,JSON.stringify(Bn))}catch{}}var Bn=Rn(),Vn=`data-scroll-restoration-id`,Hn=e=>e.state.__TSR_key||e.href;function Un(e){let t=e.getAttribute(Vn);if(t)return`[${Vn}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Wn=!1,Gn=`window`;function Kn(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function qn(e){let t=new Set;for(let n of e){if(n===Gn)continue;let e=Kn(n);e&&t.add(e)}return t}
10function Jn(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Hn,a=new Set,o=e=>{let t=Bn[e]||={};for(let e of a)e===document?t[Gn]={scrollX,scrollY}:e.isConnected&&(t[Un(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,Wn=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Wn||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),zn()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=Bn[d];if(e){let t=Bn[u];for(let n in e){if(n===Gn){if(s)continue}else{let e=Kn(n);if(!e||s&&o&&(l??=qn(o),l.has(e)))continue}t||=Bn[u]={},t[n]??=e[n]}}}Wn=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=qn(o));let t=e&&i&&c,s=r.restoring?Bn[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Gn){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Kn(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Wn=!1}}))}var Yn=Zn(JSON.parse),Xn=Qn(JSON.stringify,JSON.parse);function Zn(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Ee(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Qn(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Te(e,r);return t?`?${t}`:``}}function $n(e){return{input:({url:t})=>{for(let n of e)t=tr(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=nr(e[n],t);return t}}}function er(e){let t=re(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=ue([`/`,t,e.pathname]),e)}}function tr(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function nr(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function rr(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>ir(o,_.get())),x=r(()=>ir(s,v.get())),S=r(()=>ir(c,y.get())),C=r(()=>_.get()[0]),ee=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),te=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),ne=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),re=w(64);function ie(e){let t=re.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),re.set(e,t)),t}let ae={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:ee,matchRouteDeps:te,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:ne,getRouteMatchStore:ie,setMatches:oe,setPending:se,setCached:ce};oe(e.matches),a?.(ae);function oe(e){ar(e,o,_,n,i)}function se(e){ar(e,s,v,n,i)}function ce(e){ar(e,c,y,n,i)}return ae}function ir(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function ar(e,t,n,r,i){let a=e.map(e=>
10e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}m(n.get(),a)||n.set(a)})}var or=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},sr=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),cr=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),lr=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},ur=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},dr=(e,t,n)=>{if(!(!Ae(n)&&!we(n)))throw Ae(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Ae(n)?`redirected`:we(n)?`notFound`:r.status===`pending`?`success`:r.status,context:lr(e,t.index),isFetching:!1,error:n})),we(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Ae(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},fr=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},pr=(e,t,n)=>{let r=lr(e,n);e.updateMatch(t,e=>({...e,context:r}))},mr=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,dr(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,dr(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}
10)),!e.preload&&!Ae(n)&&!we(n)&&(e.serialError??=n)},hr=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!cr(e,t)&&(n.options.loader||n.options.beforeLoad||Er(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{or(e)},i);r._nonReactive.pendingTimeout=t}},gr=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;hr(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&dr(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},_r=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=b(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&mr(e,n,o),s&&mr(e,n,s),hr(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=b();let f={...lr(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=cr(e,t),v={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},y=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(Ae(r)||we(r))&&(u(),mr(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},x;try{if(x=r.options.beforeLoad(v),_(x))return u(),x.catch(t=>{mr(e,n,t)}).then(y)}catch(t){u(),mr(e,n,t)}y(x)},vr=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>_r(e,n,t,i),s=()=>{if(fr(e,n))return;let t=gr(e,n,i);return _(t)?t.then(o):o()};return a()},yr=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},br=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=lr(e,r),d=cr(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},xr=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Tr(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(br(e,t,n,r,i)),l=!!s&&_(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;dr(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:lr(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:lr(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,we(t)&&await i.options.notFoundComponent?.preload?.(),dr(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,dr(e,e.router.getMatch(n),t)}!Ae(o)&&!we(o)&&await Tr(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:lr(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),dr(e,r,t)}},Sr=async(e,t,n)=>
10{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(br(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await xr(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){Ae(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await xr(e,t,i,n,d):pr(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(fr(e,i)){if(!e.router.getMatch(i))return e.matches[n];pr(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=cr(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&dr(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=b(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function Cr(e){let t=e,n=[];sr(t.router)&&or(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=vr(t,e);_(n)&&await n}catch(e){if(Ae(e))throw e;if(we(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?ur(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(Sr(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(Ae(e))throw e;we(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=ur(t,l);e===void 0&&xe();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Tr(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Tr(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=yr(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=or(t);if(_(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function wr(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Tr(e,t=Dr){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Dr?(()=>{if(e._componentsPromise===void 0){let t=wr(e,Dr);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():wr(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Er(e){for(let t of Dr)if(e.options[t]?.preload)return!0;return!1}var Dr=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],Or=`__TSR_index`,kr=`popstate`,Ar=`beforeunload`;function jr(e){let t=e.getLocation(),n=new Set,r=r=>
10{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Fr(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Or];i=Mr(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Or];i=Mr(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Or]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function Mr(e,t){t||={};let n=Ir();return{...t,key:n,__TSR_key:n,[Or]:e}}function Nr(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Fr(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Ir();t.history.replaceState({[Or]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=Fr(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Or]-l.state[Or],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=jr({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Ar,S,{capture:!0}),t.removeEventListener(kr,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Ar,S,{capture:!0}),t.addEventListener(kr,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Pr(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Fr(e,t){let n=Pr(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Ir();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Or]:0,key:a,__TSR_key:a}}}function Ir(){return(Math.random()+1).toString(36).substring(7)}function Lr(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Rr(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var zr=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=me(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Nr()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=w(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=rr(Hr(this.latestLocation),e),Jn(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=re(o);t&&t!==`/`&&e.push(er({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:$n(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=ge(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&p(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>
10{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:se(e).path,external:!1,searchStr:o,search:ye(t?.search,i),hash:se(r.slice(1)).path,state:f(t?.state,a)}}let o=new URL(i,this.origin),s=tr(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:se(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:ye(t?.search,c),hash:se(s.hash.slice(1)).path,state:f(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>ie({base:e,to:t.includes(`//`)?ce(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Wr({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,y(t.params,s)),d=this.routesByPath[he(l)],p;if(d)p=this.getRouteBranch(d);else if(l.includes(`$`))p=[];else{let e=this.getMatchedRoutes(l);p=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(p=[...p,this.options.notFoundRoute])}if(p.length&&x(u))for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let m=e.leaveParams?l:se(ne({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Ur(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=Gr({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=ye(o,h);let g=this.options.stringifySearch(h),_=t.hash===!0?n.hash:t.hash?y(t.hash,n.hash):void 0,v=_?`#${_}`:``,b=t.state===!0?n.state:t.state?y(t.state,n.state):{};b=f(n.state,b);let S=`${m}${g}${v}`,C,w,ee=!1;if(this.rewrite){let e=new URL(S,this.origin),t=nr(this.rewrite,e);C=e.href.replace(e.origin,``),t.origin===this.origin?w=t.pathname+t.search+t.hash:(w=t.href,ee=!0)}else C=oe(S),w=C;return{publicHref:w,href:C,pathname:m,search:h,searchStr:g,state:b,hash:_??``,external:ee,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=ee(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,y(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];
10e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=d(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=he(this.latestLocation.href)===he(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=b(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=Fr(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=tr(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(g(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t&&(this._scroll.hash=t===`PUSH`||t===`REPLACE`);let n=this.latestLocation,r=Rr(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Cr({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){Ae(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):we(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Rr(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>
10{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&g(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`||e-t.updatedAt>=r}})},this.loadRouteChunk=Tr,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Cr({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(Ae(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});we(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=C(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!d(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?d(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Xn,parseSearch:e.parseSearch??Yn,protocolAllowlist:e.protocolAllowlist??h}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=ve(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParam
10s:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:he(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?qr(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],u,d,p;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=Ur(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},p=void 0}catch(e){let r=e;if(e instanceof Br||(r=new Br(e.message,{cause:e})),t?.throwOnError)throw r;u=n,d={},p=r}}let m=r.options.loaderDeps?.({search:u})??``,h=m?JSON.stringify(m):``,{interpolatedPath:g,usedParams:_}=ne({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),v=r.id+g+h,y=this.getMatch(v),x=l.get(r.id),S=y?._strictParams??_,C;if(!y)try{Jr(r,S)}catch(e){if(C=we(e)||Ae(e)?e:new Vr(e.message,{cause:e}),t?.throwOnError)throw C}Object.assign(i,S);let w=x?`stay`:`enter`,ee;if(y)ee={...y,cause:w,params:x?.params??i,_strictParams:S,search:ye(x?x.search:y.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Er(r)?`pending`:`success`;ee={id:v,ssr:r.options.ssr,index:n,routeId:r.id,params:x?.params??i,_strictParams:S,pathname:g,updatedAt:Date.now(),search:x?ye(x.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:C,__routeContext:void 0,_nonReactive:{loadPromise:b()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:w,loaderDeps:x?f(x.loaderDeps,m):m,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(ee.globalNotFound=s===r.id),ee.searchError=p;let te=this.getParentContext(o);ee.context={...te,...ee.__routeContext,...ee.__beforeLoadContext},c[n]=ee}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=l.get(n.routeId);if(n.params=o?ye(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let t=S(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];let{matchedRoutes:r,routeParams:i}=this.getMatchedRoutes(e.pathname),a=S(r),o={...e.search};for(let e of r)try{Object.assign(o,Ur(e.options.validateSearch,o))}catch{}let s=t&&this.stores.matchStores.get(t)?.get(),c=s&&s.routeId===a.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),i);for(let t of r)try{Jr(t,e)}catch{}l=e}let u={matchedRoutes:r,fullPath:a.fullPath,search:o,params:l};return this.lightweightCache.set(e,[t,u]),u}},Br=class extends Error{},Vr=class extends Error{};function Hr(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Ur(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Br(`Async validation not supported`);if(n.issues)throw new Br(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Wr({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=he(e),a,o=_e(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Gr({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Kr(n)(e,t,r??!1)}function Kr(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>
10t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=Ur(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=y(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function qr(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Oe}function Jr(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}var Yr=Symbol.for(`TSR_DEFERRED_PROMISE`);function Xr(e,t){let n=e;return n[Yr]?n:(n[Yr]={status:`pending`},n.then(e=>{n[Yr].status=`success`,n[Yr].data=e}).catch(e=>{n[Yr].status=`error`,n[Yr].error={data:(t?.serializeError??Lr)(e),__isServerError:!0}}),n)}function Zr(e,t){if(e)return typeof e==`string`?e:e[t]}function Qr(e){return e?.scriptFormat??`module`}function $r(e,t,n){let r=ei(t),i=Zr(n,`script`)??r.crossOrigin;return{...Qr(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function ei(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function ti(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function ni(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var ri=l({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(o in e)?!1:!!e[o],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>a(e)});function ii(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function ai(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function oi(e){window.$_TSR||xe();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||xe();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=ii(e.i)}),n.lastMatchId&&=ii(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:a}=n;e.ssr={manifest:r};let o=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:o},await e.options.hydrate?.(i);let s=e.matchRoutes(e.stores.location.get()),c=Promise.all(s.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function l(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=b();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let d;s.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,u(e);return}ai(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&d===void 0&&(d=e.index,l(e))}),e.stores.setMatches(s);let f=e.stores.matches.get(),p=e.stores.location.get();await Promise.all(f.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=f[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:p,navigate:t=>e.navigate({...t,_fromLocation:p}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:s,routeId:n.id};t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:f,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(we(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let m=s[s.length-1].id!==a;if(!s.some(e=>
10e.ssr===!1)&&!m)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let h=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(m){let t=s[1];t||xe(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=h,h.then(()=>{e.batch(()=>{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return c}var D=e(r(),1),O=Le();function si({promise:e}){if(ae)return ae(e);let t=Xr(e);if(t[Yr].status===`pending`)throw t;if(t[Yr].status===`error`)throw t[Yr].error;return t[Yr].data}function ci(e){let t=(0,O.jsx)(li,{...e});return e.fallback?(0,O.jsx)(D.Suspense,{fallback:e.fallback,children:t}):t}function li(e){let t=si(e);return e.children(t)}function ui(e){let t=e.errorComponent??fi;return(0,O.jsx)(di,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?D.createElement(t,{error:n,reset:r}):e.children})}var di=class extends D.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function fi({error:e}){let[t,n]=D.useState(!1);return(0,O.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,O.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,O.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,O.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,O.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,O.jsx)(`div`,{children:(0,O.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,O.jsx)(`code`,{children:e.message}):null})}):null]})}var pi=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(pi||{});function mi({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function hi(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var gi=[],_i=0,{link:vi,unlink:yi,propagate:bi,checkDirty:xi,shallowPropagate:Si}=mi({update(e){return e._update()}
10,notify(e){gi[wi++]=e,e.flags&=~pi.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=pi.Mutable|pi.Dirty,Oi(e))}}),Ci=0,wi=0,Ti,Ei=0;function Di(e){try{++Ei,e()}finally{--Ei||ki()}}function Oi(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=yi(n,e)}function ki(){if(!(Ei>0)){for(;Ci<wi;){let e=gi[Ci];gi[Ci++]=void 0,e.notify()}Ci=0,wi=0}}function Ai(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?pi.None:pi.Mutable,get(){return Ti!==void 0&&vi(i,Ti,_i),i._snapshot},subscribe(e){let t=hi(e),n={current:!1},r=ji(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Ti,o=t?.compare??Object.is;if(n)Ti=i,++_i,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=pi.Mutable|pi.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Ti=a,n&&(i.flags&=~pi.RecursedCheck),Oi(i)}}};return n?(i.flags=pi.Mutable|pi.Dirty,i.get=function(){let e=i.flags;if(e&pi.Dirty||e&pi.Pending&&xi(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Si(e)}}else e&pi.Pending&&(i.flags=e&~pi.Pending);return Ti!==void 0&&vi(i,Ti,_i),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(bi(e),Si(e),ki())}},i}function ji(e){let t=()=>{let t=Ti;Ti=n,++_i,n.depsTail=void 0,n.flags=pi.Watching|pi.RecursedCheck;try{return e()}finally{Ti=t,n.flags&=~pi.RecursedCheck,Oi(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:pi.Watching|pi.RecursedCheck,notify(){let e=this.flags;e&pi.Dirty||e&pi.Pending&&xi(this.deps,this)?t():this.flags=pi.Watching},stop(){this.flags=pi.None,this.depsTail=void 0,Oi(this)}};return t(),n}function Mi(e){let t=Se(),n=`not-found-${pe(t.stores.location,e=>e.pathname)}-${pe(t.stores.status,e=>e)}`;return(0,O.jsx)(ui,{getResetKey:()=>n,onCatch:(t,n)=>{if(we(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(we(t))return e.fallback?.(t);throw t},children:e.children})}function Ni(){return(0,O.jsx)(`p`,{children:`Not Found`})}function Pi(e){return(0,O.jsx)(O.Fragment,{children:e.children})}function Fi(e,t,n){return t.options.notFoundComponent?(0,O.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,O.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,O.jsx)(Ni,{})}var Ii=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,Li=(e,t)=>e[0]===t[0]&&e[1]===t[1],Ri=D.memo(function({matchId:e}){let t=Se(),n=t.stores.matchStores.get(e);n||xe();let r=pe(t.stores.loadedAt,e=>e),i=pe(n,e=>e,Ii);return(0,O.jsx)(zi,{router:t,matchId:e,resetKey:r,matchState:D.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function zi({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,O.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?D.Suspense:Pi,f=s?ui:Pi,p=l?Mi:Pi;return(0,O.jsxs)(i.isRoot?i.options.shellComponent??Pi:Pi,{children:[(0,O.jsx)(De.Provider,{value:t,children:(0,O.jsx)(d,{fallback:o,children:(0,O.jsx)(f,{getResetKey:()=>n,errorComponent:s||fi,onCatch:(e,t)=>{if(we(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,O.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return D.createElement(l,e)},children:u||r._displayPending?(0,O.jsx)(le,{fallback:o,children:(0,O.jsx)(Vi,{matchId:t})}):(0,O.jsx)(Vi,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Bi,{}),(e.options.scrollRestoration,null)]}):null]})}function Bi(){let e=Se(),t=D.useRef();return fe(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...Rr(e.stores.location.get(),r??n)}),t.current=n},[pe(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}
10var Vi=D.memo(function({matchId:e}){let t=Se(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||xe();let i=pe(r,e=>e),a=i.routeId,o=t.routesById[a],s=D.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=D.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,O.jsx)(e,{},s):(0,O.jsx)(Hi,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=b();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return we(i.error)||xe(),Fi(t,o,i.error);if(i.status===`redirected`)throw Ae(i.error)||xe(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Hi=D.memo(function(){let e=Se(),t=D.useContext(De),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=pe(a,e=>[e?.routeId,e?.globalNotFound??!1],Li),i=pe(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,O.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||xe(),Fi(e,a,void 0);if(!i)return null;let s=(0,O.jsx)(Ri,{matchId:i});return n===`__root__`?(0,O.jsx)(D.Suspense,{fallback:o,children:s}):s});function Ui(){let e=Se(),t=D.useRef({router:e,mounted:!1}),[n,r]=D.useState(!1),i=pe(e.stores.isLoading,e=>e),a=pe(e.stores.hasPending,e=>e),o=te(i),s=i||n||a,c=te(s),l=i||a,u=te(l);return e.startTransition=e=>{r(!0),D.startTransition(()=>{e(),r(!1)})},D.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return he(e.latestLocation.publicHref)!==he(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),fe(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),fe(()=>{o&&!i&&e.emit({type:`onLoad`,...Rr(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),fe(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Rr(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),fe(()=>{if(c&&!s){let t=Rr(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Di(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Wi(){let e=Se(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,O.jsx)(t,{}):null,r=(0,O.jsxs)(typeof document<`u`&&e.ssr?Pi:D.Suspense,{fallback:n,children:[(0,O.jsx)(Ui,{}),(0,O.jsx)(Gi,{})]});return e.options.InnerWrap?(0,O.jsx)(e.options.InnerWrap,{children:r}):r}function Gi(){let e=Se(),t=pe(e.stores.firstId,e=>e),n=pe(e.stores.loadedAt,e=>e),r=t?(0,O.jsx)(Ri,{matchId:t}):null;return(0,O.jsx)(De.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,O.jsx)(ui,{getResetKey:()=>n,errorComponent:fi,onCatch:void 0,children:r})})}var Ki=e=>({createMutableStore:Ai,createReadonlyStore:Ai,batch:Di}),qi=e=>new Ji(e),Ji=class extends zr{constructor(e){super(e,Ki)}};function Yi({router:e,children:t,...n}
10){x(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,O.jsx)(be.Provider,{value:e,children:t});return e.options.Wrap?(0,O.jsx)(e.options.Wrap,{children:r}):r}function Xi({router:e,...t}){return(0,O.jsx)(Yi,{router:e,...t,children:(0,O.jsx)(Wi,{})})}function Zi(e){let t=Se({warn:e?.router===void 0}),n=e?.router||t;return pe(n.stores.__store,Me(e,n))}function Qi(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function $i(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,O.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,O.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,O.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,O.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,O.jsx)(ea,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function ea({attrs:e,children:t,preventScriptHoist:n}){Se();let r=de(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(D.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Qi(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Qi(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,O.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,O.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,O.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var ta=e=>{let t=Se(),n=t.options.ssr?.nonce,r=pe(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),d),i=D.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:v(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=pe(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),d),o=pe(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=ni(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Zr(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},d),s=pe(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...$r(a,t,e),nonce:n}})})}),i},d),c=pe(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),d),l=pe(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),d),u=[];return ti(u,i),u.push(...s),ti(u,a),u.push(...o),ti(u,c),ti(u,l),u};function na(e){let t=ta(e.assetCrossOrigin),n=Se().options.ssr?.nonce;return(0,O.jsx)(O.Fragment,{children:t.map(e=>(0,D.createElement)($i,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var ra=()=>{let e=Se(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>
10e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=pe(e.stores.matches,n,d);return ia(e,pe(e.stores.matches,r,d),i)};function ia(e,t,n){let r=[...t,...n];return(0,O.jsx)(O.Fragment,{children:r.map((e,t)=>(0,D.createElement)($i,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var aa=(e,t)=>{let n={type:`request`,...t||e},r=e=>aa({},Object.assign(n,{validator:e,inputValidator:e}));return{options:n,middleware:e=>aa({},Object.assign(n,{middleware:e})),validator:r,inputValidator:r,client:e=>aa({},Object.assign(n,{client:e})),server:e=>aa({},Object.assign(n,{server:e}))}};function oa(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&oa(e,r.extends))}}var sa=e=>({getOptions:async()=>{let t=await e();if(t.serializationAdapters){let e=new Set;oa(e,t.serializationAdapters),t.serializationAdapters=Array.from(e)}return t},createMiddleware:aa}),ca=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),la=class extends Error{constructor(e,t=`FunctionsError`,n){super(e),this.name=t,this.context=n}toJSON(){return{name:this.name,message:this.message,context:this.context}}},ua=class extends la{constructor(e){super(`Failed to send a request to the Edge Function`,`FunctionsFetchError`,e)}},da=class extends la{constructor(e){super(`Relay Error invoking the Edge Function`,`FunctionsRelayError`,e)}},fa=class extends la{constructor(e){super(`Edge Function returned a non-2xx status code`,`FunctionsHttpError`,e)}},pa;(function(e){e.Any=`any`,e.ApNortheast1=`ap-northeast-1`,e.ApNortheast2=`ap-northeast-2`,e.ApSouth1=`ap-south-1`,e.ApSoutheast1=`ap-southeast-1`,e.ApSoutheast2=`ap-southeast-2`,e.CaCentral1=`ca-central-1`,e.EuCentral1=`eu-central-1`,e.EuWest1=`eu-west-1`,e.EuWest2=`eu-west-2`,e.EuWest3=`eu-west-3`,e.SaEast1=`sa-east-1`,e.UsEast1=`us-east-1`,e.UsWest1=`us-west-1`,e.UsWest2=`us-west-2`})(pa||={});var ma=class{constructor(e,{headers:t={},customFetch:n,region:r=pa.Any}={}){this.url=e,this.headers=t,this.region=r,this.fetch=ca(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return Re(this,arguments,void 0,function*(e,t={}){let n,r;try{let{headers:i,method:a,body:o,signal:s,timeout:c}=t,l={},{region:u}=t;u||=this.region;let d=new URL(`${this.url}/${e}`);u&&u!==`any`&&(l[`x-region`]=u,d.searchParams.set(`forceFunctionRegion`,u));let f,p=!!i&&Object.keys(i).some(e=>e.toLowerCase()===`content-type`);o&&!p?typeof Blob<`u`&&o instanceof Blob||o instanceof ArrayBuffer?(l[`Content-Type`]=`application/octet-stream`,f=o):typeof o==`string`?(l[`Content-Type`]=`text/plain`,f=o):typeof FormData<`u`&&o instanceof FormData?f=o:(l[`Content-Type`]=`application/json`,f=JSON.stringify(o)):f=o&&typeof o!=`string`&&!(typeof Blob<`u`&&o instanceof Blob)&&!(o instanceof ArrayBuffer)&&!(typeof FormData<`u`&&o instanceof FormData)?JSON.stringify(o):o;let m=s;c&&(r=new AbortController,n=setTimeout(()=>r.abort(),c),s?(m=r.signal,s.addEventListener(`abort`,()=>r.abort())):m=r.signal);let h=yield this.fetch(d.toString(),{method:a||`POST`,headers:Object.assign(Object.assign(Object.assign({},l),this.headers),i),body:f,signal:m}).catch(e=>{throw new ua(e)}),g=h.headers.get(`x-relay-error`);if(g&&g===`true`)throw new da(h);if(!h.ok)throw new fa(h);let _=(h.headers.get(`Content-Type`)??`text/plain`).split(`;`)[0].trim(),v;return v=_===`application/json`?yield h.json():_===`application/octet-stream`||_===`application/pdf`?yield h.blob():_===`text/event-stream`?h:_===`multipart/form-data`?yield h.formData():yield h.text(),{data:v,error:null,response:h}}catch(e){return{data:null,error:e,response:e instanceof fa||e instanceof da?e.context:void 0}}finally{n&&clearTimeout(n)}})}},ha=3,ga=e=>Math.min(1e3*2**e,3e4),_a=[520,503],va=[`GET`,`HEAD`,`OPTIONS`],ya=class extends Error{constructor(e){super(e.message),this.name=`PostgrestError`,this.details=e.details,this.hint=e.hint,this.co
10de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function ba(e,t){return new Promise(n=>{if(t?.aborted){n();return}let r=setTimeout(()=>{t?.removeEventListener(`abort`,i),n()},e);function i(){clearTimeout(r),n()}t?.addEventListener(`abort`,i)})}function xa(e,t,n,r){return!(!r||n>=ha||!va.includes(e)||!_a.includes(t))}var Sa=class{constructor(e){this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError??!1,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle??!1,this.shouldStripNulls=e.shouldStripNulls??!1,this.urlLengthLimit=e.urlLengthLimit??8e3,this.retryEnabled=e.retry??!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get(`Accept`)===`text/csv`)throw Error(`stripNulls() cannot be used with csv()`);return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(this.schema===void 0||([`GET`,`HEAD`].includes(this.method)?this.headers.set(`Accept-Profile`,this.schema):this.headers.set(`Content-Profile`,this.schema)),this.method!==`GET`&&this.method!==`HEAD`&&this.headers.set(`Content-Type`,`application/json`),this.shouldStripNulls){let e=this.headers.get(`Accept`);e===`application/vnd.pgrst.object+json`?this.headers.set(`Accept`,`application/vnd.pgrst.object+json;nulls=stripped`):(!e||e===`application/json`)&&this.headers.set(`Accept`,`application/vnd.pgrst.array+json;nulls=stripped`)}let r=this.fetch,i=(async()=>{let e=0;for(;;){let t={};n.headers.forEach((e,n)=>{t[n]=e}),e>0&&(t[`X-Retry-Count`]=String(e));let i;try{i=await r(n.url.toString(),{method:n.method,headers:t,body:JSON.stringify(n.body,(e,t)=>typeof t==`bigint`?t.toString():t),signal:n.signal})}catch(t){if(t?.name===`AbortError`||t?.code===`ABORT_ERR`||!va.includes(n.method))throw t;if(n.retryEnabled&&e<ha){let t=ga(e);e++,await ba(t,n.signal);continue}throw t}if(xa(n.method,i.status,e,n.retryEnabled)){let t=i.headers?.get(`Retry-After`)??null,r=t===null?ga(e):Math.max(0,parseInt(t,10)||0)*1e3;await i.text(),e++,await ba(r,n.signal);continue}return await n.processResponse(i)}})();return this.shouldThrowOnError||(i=i.catch(e=>{let t=``,n=``,r=``,i=e?.cause;if(i){let n=i?.message??``,r=i?.code??``;t=`${e?.name??`FetchError`}: ${e?.message}`,t+=`\n\nCaused by: ${i?.name??`Error`}: ${n}`,r&&(t+=` (${r})`),i?.stack&&(t+=`\n${i.stack}`)}else t=e?.stack??``;let a=this.url.toString().length;return e?.name===`AbortError`||e?.code===`ABORT_ERR`?(r=``,n=`Request was aborted (timeout or manual cancellation)`,a>this.urlLengthLimit&&(n+=`. Note: Your request URL is ${a} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(i?.name===`HeadersOverflowError`||i?.code===`UND_ERR_HEADERS_OVERFLOW`)&&(r=``,n=`HTTP headers exceeded server limits (typically 16KB)`,a>this.urlLengthLimit&&(n+=`. Your request URL is ${a} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${e?.name??`FetchError`}: ${e?.message}`,details:t,hint:n,code:r},data:null,count:null,status:0,statusText:``}})),i.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,i=null,a=e.status,o=e.statusText;if(e.ok){if(t.method!==`HEAD`){let i=await e.text();if(i!==``)if(t.headers.get(`Accept`)===`text/csv`)r=i;else if(t.headers.get(`Accept`)&&t.headers.get(`Accept`)?.includes(`application/vnd.pgrst.plan+text`))r=i;else try{r=JSON.parse(i)}catch{if(n={message:i},r=null,t.shouldThrowOnError)throw new ya({message:i,details:``,hint:``,code:``})}}let s=t.headers.get(`Prefer`)?.match(/count=(exact|planned|estimated)/),c=e.headers.get(`content-range`)?.split(`/`);s&&c&&c.length>1&&(i=parseInt(c[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:`PGRST116`,details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:`JSON object requested, multiple (or no) rows returned`},r=null,i=null,a=406,o=`Not Acceptable`):r=r.length===1?r[0]:null)}else{let i=await e.text();try{n=JSON.parse(i),Array.isArray(n)&&e.status===404&&(r=[],n=null,a=200,o=`OK`)}
vendor: 10,009 bytes, line 10
10catch{e.status===404&&i===``?(a=204,o=`No Content`):n={message:i}}if(n&&t.shouldThrowOnError)throw new ya(n)}return{success:n===null,error:n,data:r,count:i,status:a,statusText:o}}returns(){return this}overrideTypes(){return this}},Ca=class extends Sa{throwOnError(){return super.throwOnError()}select(e){let t=!1,n=(e??`*`).split(``).map(e=>/\s/.test(e)&&!t?``:(e===`"`&&(t=!t),e)).join(``);return this.url.searchParams.set(`select`,n),this.headers.append(`Prefer`,`return=representation`),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){let a=i?`${i}.order`:`order`,o=this.url.searchParams.get(a);return this.url.searchParams.set(a,`${o?`${o},`:``}${e}.${t?`asc`:`desc`}${n===void 0?``:n?`.nullsfirst`:`.nullslast`}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){let r=n===void 0?`limit`:`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){let i=r===void 0?`offset`:`${r}.offset`,a=r===void 0?`limit`:`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(a,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set(`Accept`,`application/vnd.pgrst.object+json`),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set(`Accept`,`text/csv`),this}geojson(){return this.headers.set(`Accept`,`application/geo+json`),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:a=`text`}={}){let o=[e?`analyze`:null,t?`verbose`:null,n?`settings`:null,r?`buffers`:null,i?`wal`:null].filter(Boolean).join(`|`),s=this.headers.get(`Accept`)??`application/json`;return this.headers.set(`Accept`,`application/vnd.pgrst.plan+${a}; for="${s}"; options=${o};`),this}rollback(){return this.headers.append(`Prefer`,`tx=rollback`),this}returns(){return this}maxAffected(e){return this.headers.append(`Prefer`,`handling=strict`),this.headers.append(`Prefer`,`max-affected=${e}`),this}},wa=RegExp(`[,()]`),Ta=class extends Ca{throwOnError(){return super.throwOnError()}eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(`,`)}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(`,`)}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(`,`)}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(`,`)}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){let n=Array.from(new Set(t)).map(e=>typeof e==`string`&&wa.test(e)?`"${e}"`:`${e}`).join(`,`);return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){let n=Array.from(new Set(t)).map(e=>typeof e==`string`&&wa.test(e)?`"${e}"`:`${e}`).join(`,`);return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t==`string`?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(`,`)}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t==`string`?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(`,`)}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t==`string`?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(`,`)}}`),this}textSearch(e,t,{config:n,type:r}={}){let i=``;r===`plain`?i=`pl`:r===`phrase`?i=`ph`:r===`websearch`&&(i=`w`);let a=n===void 0?``:`(${n})`;return this.url.searchParams.append(e,`${i}fts${a}.${t}`),this}match(e){return Object.entries(e).filter(([e,t])=>t!==void 0).forEach(([e,t])=>{this.url.searchParams.append(e,`eq.${t}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){let r=n?`${n}.or`:`or`;return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},Ea=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:i=8e3,retry:a}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=i,this.retry=a}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){let{head:n=!1,count:r}=t??{},i=n?`HEAD`:`GET`,a=!1,o=(e??`*`).split(``).map(e=>/\s/.test(e)&&!a?``:(e===`"`&&(a=!a),e)).join(``),{url:s,headers:c}=this.cloneRequestState();return s.searchParams.set(`select`,o),r&&c.append(`Prefer`,`count=${r}`),new Ta({method:i,url:s,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){let{url:r,headers:i}=this.cloneRequestState();if(t&&i.append(`Prefer`,`count=${t}`),n||i.append(`Prefer`,`missing=default`),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);r.searchParams.set(`columns`,e.join(`,`))}}return new Ta({method:`POST`,url:r,headers:i,schema:this.schema,body:e,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){let{url:a,headers:o}=this.cloneRequestState();if(o.append(`Prefer`,`resolution=${n?`ignore`:`merge`}-duplicates`),t!==void 0&&a.searchParams.set(`on_conflict`,t),r&&o.append(`Prefer`,`count=${r}`),i||o.append(`Prefer`,`missing=default`),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);a.searchParams.set(`columns`,e.join(`,`))}}return new Ta({method:`POST`,url:a,headers:o,schema:this.schema,body:e,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){let{url:n,headers:r}=this.cloneRequestState();return t&&r.append(`Prefer`,`count=${t}`),new Ta({method:`PATCH`,url:n,headers:r,schema:this.schema,body:e,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){let{url:t,headers:n}=this.cloneRequestState();return e&&n.append(`Prefer`,`count=${e}`),new Ta({method:`DELETE`,url:t,headers:n,schema:this.schema,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Da(e){"@babel/helpers - typeof";return Da=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Da(e)}function Oa(e,t){if(Da(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Da(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ka(e){var t=Oa(e,`string`);return Da(t)==`symbol`?t:t+``}function Aa(e,t,n){return(t=ka(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ma(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ja(Object(n),!0).forEach(function(t){Aa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Na=class e{constructor(e,{headers:t={},schema:n,fetch:r,timeout:i,urlLengthLimit:a=8e3,retry:o}={}){this.url=e,this.headers=new Headers(t),this.schemaName=n,this.urlLengthLimit=a;let s=r??globalThis.fetch;i!==void 0&&i>0?this.fetch=(e,t)=>{let n=new AbortController,r=setTimeout(()=>n.abort(),i),a=t?.signal;if(a){if(a.aborted)return clearTimeout(r),s(e,t);let i=()=>{clearTimeout(r),n.abort()};return a.addEventListener(`abort`,i,{once:!0}),s(e,Ma(Ma({},t),{},{signal:n.signal})).finally(()=>{clearTimeout(r),a.removeEventListener(`abort`,i)})}return s(e,Ma(Ma({},t),{},{signal:n.signal})).finally(()=>clearTimeout(r))}:this.fetch=s,this.retry=o}from(e){if(!e||typeof e!=`string`||e.trim()===``)throw Error(`Invalid relation name: relation must be a non-empty string.`);return new Ea(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new e(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,t={},{head:n=!1,get:r=!1,count:i}={}){let a,o=new URL(`${this.url}/rpc/${e}`),s,c=e=>typeof e==`object`&&!!e&&(!Array.isArray(e)||e.some(c)),l=n&&Object.values(t).some(c);l?(a=`POST`,s=t):n||r?(a=n?`HEAD`:`GET`,Object.entries(t).filter(([e,t])=>t!==void 0).map(([e,t])=>[e,Array.isArray(t)?`{${t.join(`,`)}}`:`${t}
10`]).forEach(([e,t])=>{o.searchParams.append(e,t)})):(a=`POST`,s=t);let u=new Headers(this.headers);return l?u.set(`Prefer`,i?`count=${i},return=minimal`:`return=minimal`):i&&u.set(`Prefer`,`count=${i}`),new Ta({method:a,url:o,headers:u,schema:this.schemaName,body:s,fetch:this.fetch??fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}},Pa=class{constructor(){}static detectEnvironment(){if(typeof WebSocket<`u`)return{type:`native`,wsConstructor:WebSocket};let e=globalThis;if(typeof globalThis<`u`&&e.WebSocket!==void 0)return{type:`native`,wsConstructor:e.WebSocket};let t=typeof global<`u`?global:void 0;if(t&&t.WebSocket!==void 0)return{type:`native`,wsConstructor:t.WebSocket};if(typeof globalThis<`u`&&e.WebSocketPair!==void 0&&globalThis.WebSocket===void 0)return{type:`cloudflare`,error:`Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.`,workaround:`Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime.`};if(typeof globalThis<`u`&&e.EdgeRuntime||typeof navigator<`u`&&navigator.userAgent?.includes(`Vercel-Edge`))return{type:`unsupported`,error:`Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.`,workaround:`Use serverless functions or a different deployment target for WebSocket functionality.`};let n=globalThis.process;if(n){let e=n.versions;if(e&&e.node)return{type:`unsupported`,error:`Node.js detected but native WebSocket not found.`,workaround:`Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option.`}}return{type:`unsupported`,error:`Unknown JavaScript runtime without WebSocket support.`,workaround:`Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation.`}}static getWebSocketConstructor(){let e=this.detectEnvironment();if(e.wsConstructor)return e.wsConstructor;let t=e.error||`WebSocket not supported in this environment.`;throw e.workaround&&(t+=`\n\nSuggested solution: ${e.workaround}`),Error(t)}static isWebSocketSupported(){try{return this.detectEnvironment().type===`native`}catch{return!1}}},Fa=`realtime-js/2.110.7`,Ia=`1.0.0`,La=`2.0.0`,Ra=La,za=1e4,Ba={closed:`closed`,errored:`errored`,joined:`joined`,joining:`joining`,leaving:`leaving`},Va={close:`phx_close`,error:`phx_error`,join:`phx_join`,reply:`phx_reply`,leave:`phx_leave`,access_token:`access_token`},Ha={connecting:`connecting`,open:`open`,closing:`closing`,closed:`closed`},Ua=class{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT=`broadcast`,this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,t){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event==`string`)return t(this._binaryEncodeUserBroadcastPush(e));let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(e){return this._isArrayBuffer(e.payload?.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){let t=e.payload?.payload??new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,t)}_encodeJsonUserBroadcastPush(e){let t=e.payload?.payload??{},n=new TextEncoder().encode(JSON.stringify(t)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,n)}_encodeUserBroadcastPush(e,t,n){let r=new TextEncoder,i=r.encode(e.topic),a=r.encode(e.ref??``),o=r.encode(e.join_ref??``),s=r.encode(e.payload.event),c=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},l=r.encode(Object.keys(c).length===0?``:JSON.stringify(c));if(o.length>255)throw Error(`joinRef length ${o.length} exceeds maximum of 255`);if(a.length>255)throw Error(`ref length ${a.length} exceeds maximum of 255`);if(i.length>255)throw Error(`topic length ${i.length} exceeds maximum of 255`);if(s.length>255)throw Error(`userEvent length ${s.length} exceeds maximum of 255`);if(l.length>255)throw Error(`metadata length ${l.length} exceeds maximum of 255`);let u=this.USER_BROADCAST_PUSH_META_LENGTH+o.length+a.length+i.length+s.length+l.length,d=new ArrayBuffer(this.HEADER_LENGTH+u),f=new DataView(d),p=new Uint8Array(d),m=0;f.setUint8(m++,this.KINDS.userBroadcastPush),f.setUint8(m++,o.length),f.setUint8(m++,a.length),f.setUint8(m++,i.length),f.setUint8(m++,s.length),f.setUint8(m++,l.length),f.setUint8(m++,t),p.set(o,m),m+=o.length,p.set(a,m),m+=a.length,p.set(i,m),m+=i.length,p.set(s,m),m+=s.length,p.set(l,m),m+=l.length;var h=new Uint8Array(d.byteLength+n.byteLength);return h.set(new Uint8Array(d),0),h.set(new Uint8Array(n),d.byteLength),h.buffer}decode(e,t){if(this._isArrayBuffer(e))return t(this._binaryDecode(e));if(typeof e==`string`){let[n,r,i,a,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:a,payload:o})}return t({})}_binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,t,r)}}_decodeUserBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+4,c=n.decode(e.slice(s,s+r));s+=r;let l=n.decode(e.slice(s,s+i));s+=i;let u=n.decode(e.slice(s,s+a));s+=a;let d=e.slice(s,e.byteLength),f=o===this.JSON_ENCODING?JSON.parse(n.decode(d)):d,p={type:this.BROADCAST_EVENT,event:l,payload:f};return a>0&&(p.meta=JSON.parse(u)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:p}}_isArrayBuffer(e){return e instanceof ArrayBuffer||e?.constructor?.name===`ArrayBuffer`}_pick(e,t){return!e||typeof e!=`object`?{}:Object.fromEntries(Object.entries(e).filter(([e])=>t.includes(e)))}},Wa;(function(e){e.abstime=`abstime`,e.bool=`bool`,e.date=`date`,e.daterange=`daterange`,e.float4=`float4`,e.float8=`float8`,e.int2=`int2`,e.int4=`int4`,e.int4range=`int4range`,e.int8=`int8`,e.int8range=`int8range`,e.json=`json`,e.jsonb=`jsonb`,e.money=`money`,e.numeric=`numeric`,e.oid=`oid`,e.reltime=`reltime`,e.text=`text`,e.time=`time`,e.timestamp=`timestamp`,e.timestamptz=`timestamptz`,e.timetz=`timetz`,e.tsrange=`tsrange`,e.tstzrange=`tstzrange`})(Wa||={});var Ga=(e,t,n={})=>{let r=n.skipTypes??[];return t?Object.keys(t).reduce((n,i)=>(n[i]=Ka(i,e,t,r),n),{}):{}},Ka=(e,t,n,r)=>{let i=t.find(t=>t.name===e)?.type,a=n[e];return i&&!r.includes(i)?qa(i,a):Ja(a)},qa=(e,t)=>{if(e.charAt(0)===`_`)return Qa(t,e.slice(1,e.length));switch(e){case Wa.bool:return Ya(t);case Wa.float4:case Wa.float8:case Wa.int2:case Wa.int4:case Wa.int8:case Wa.numeric:case Wa.oid:return Xa(t);case Wa.json:case Wa.jsonb:return Za(t);case Wa.timestamp:return $a(t);case Wa.abstime:case Wa.date:case Wa.daterange:case Wa.int4range:case Wa.int8range:case Wa.money:case Wa.reltime:case Wa.text:case Wa.time:case Wa.timestamptz:case Wa.timetz:case Wa.tsrange:case Wa.tstzrange:return Ja(t);default:return Ja(t)}},Ja=e=>e,Ya=e=>{switch(e){case`t`:return!0;case`f`:return!1;default:return e}},Xa=e=>{if(typeof e==`string`){let t=parseFloat(e);
vendor: 35,287 bytes, lines 10-11
10if(!Number.isNaN(t))return t}return e},Za=e=>{if(typeof e==`string`)try{return JSON.parse(e)}catch{return e}return e},Qa=(e,t)=>{if(typeof e!=`string`)return e;let n=e.length-1,r=e[n];if(e[0]===`{`&&r===`}`){let r,i=e.slice(1,n);try{r=JSON.parse(`[`+i+`]`)}catch{r=i?i.split(`,`):[]}return r.map(e=>qa(t,e))}return e},$a=e=>typeof e==`string`?e.replace(` `,`T`):e,eo=e=>{let t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,`http`),t.pathname=t.pathname.replace(/\/+$/,``).replace(/\/socket\/websocket$/i,``).replace(/\/socket$/i,``).replace(/\/websocket$/i,``),t.pathname===``||t.pathname===`/`?t.pathname=`/api/broadcast`:t.pathname+=`/api/broadcast`,t.href},to=e=>typeof e==`function`?e:function(){return e},no=typeof self<`u`?self:null,ro=typeof window<`u`?window:null,io=no||ro||globalThis,ao=`2.0.0`,oo=1e4,so=1e3,co=100,lo={connecting:0,open:1,closing:2,closed:3},uo={closed:`closed`,errored:`errored`,joined:`joined`,joining:`joining`,leaving:`leaving`},fo={close:`phx_close`,error:`phx_error`,join:`phx_join`,reply:`phx_reply`,leave:`phx_leave`},po={longpoll:`longpoll`,websocket:`websocket`},mo={complete:4},ho=`base64url.bearer.phx.`,go=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived(`timeout`)||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger(`timeout`,{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},_o=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries+=1,this.callback()},this.timerCalc(this.tries+1))}},vo=class{constructor(e,t,n){this.state=uo.closed,this.topic=e,this.params=to(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new go(this,fo.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new _o(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive(`ok`,()=>{this.state=uo.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this.joinPush.receive(`error`,e=>{this.state=uo.errored,this.socket.hasLogger()&&this.socket.log(`channel`,`error ${this.topic}`,e),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log(`channel`,`close ${this.topic}`),this.state=uo.closed,this.socket.remove(this)}),this.onError(e=>{this.socket.hasLogger()&&this.socket.log(`channel`,`error ${this.topic}`,e),this.isJoining()&&this.joinPush.reset(),this.state=uo.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive(`timeout`,()=>{this.socket.hasLogger()&&this.socket.log(`channel`,`timeout ${this.topic}`,this.joinPush.timeout),new go(this,fo.leave,to({}),this.timeout).send(),this.state=uo.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(fo.reply,(e,t)=>{this.trigger(this.replyEventName(t),e)})}join(e=this.timeout){if(this.joinedOnce)throw Error(`tried to join multiple times. 'join' can only be called a single time per channel instance`);return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=uo.closed,this.bindings=[]}onClose(e){this.on(fo.close,e)}onError(e){return this.on(fo.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(t===void 0||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t||={},!this.joinedOnce)throw Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new go(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=uo.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log(`channel`,`leave ${this.topic}`),this.trigger(fo.close,`leave`)},n=new go(this,fo.leave,to({}),e);return n.receive(`ok`,()=>t()).receive(`timeout`,()=>t()),n.send(),this.canPush()||n.trigger(`ok`,{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic===e?r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log(`channel`,`dropping outdated message`,{topic:e,event:t,payload:n,joinRef:r}),!1):!0:!1}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=uo.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw Error(`channel onMessage callbacks must return the payload, modified or unmodified`);let a=this.bindings.filter(r=>r.event===e&&this.filterBindings(r,t,n));for(let e=0;e<a.length;e++)a[e].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===uo.closed}isErrored(){return this.state===uo.errored}isJoined(){return this.state===uo.joined}isJoining(){return this.state===uo.joining}isLeaving(){return this.state===uo.leaving}},yo=class{static request(e,t,n,r,i,a,o){if(io.XDomainRequest){let n=new io.XDomainRequest;return this.xdomainRequest(n,e,t,r,i,a,o)}else if(io.XMLHttpRequest){let s=new io.XMLHttpRequest;return this.xhrRequest(s,e,t,n,r,i,a,o)}else if(io.fetch&&io.AbortController)return this.fetchRequest(e,t,n,r,i,a,o);else throw Error(`No suitable XMLHttpRequest implementation found`)}static fetchRequest(e,t,n,r,i,a,o){let s={method:e,headers:n,body:r},c=null;return i&&(c=new AbortController,setTimeout(()=>c.abort(),i),s.signal=c.signal),io.fetch(t,s).then(e=>e.text()).then(e=>this.parseJSON(e)).then(e=>o&&o(e)).catch(e=>{e.name===`AbortError`&&a?a():o&&o(null)}),c}static xdomainRequest(e,t,n,r,i,a,o){return e.timeout=i,e.open(t,n),e.onload=()=>{let t=this.parseJSON(e.responseText);o&&o(t)},a&&(e.ontimeout=a),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,a,o,s){e.open(t,n,!0),e.timeout=a;for(let[t,n]of Object.entries(r))e.setRequestHeader(t,n);return e.onerror=()=>s&&s(null),e.onreadystatechange=()=>{e.readyState===mo.complete&&s&&s(this.parseJSON(e.responseText))},o&&(e.ontimeout=o),e.send(i),e}static parseJSON(e){if(!e||e===``)return null;try{return JSON.parse(e)}catch{return console&&console.log(`failed to parse JSON response`,e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=t?`${t}[${r}]`:r,a=e[r];typeof a==`object`?n.push(this.serialize(a,i)):n.push(encodeURIComponent(i)+`=`+encodeURIComponent(a))}return n.join(`&`)}static appendParams(e,t){return Object.keys(t).length===0?e:`${e}${e.match(/\?/)?`&`:`?`}${this.serialize(t)}`}},bo=e=>{let t=``,n=new Uint8Array(e),r=n.byteLength;for(let e=0;e<r;e++)t+=String.fromCharCode(n[e]);return btoa(t)},xo=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(ho)&&(this.authToken=atob(t[1].slice(ho.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=lo.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace(`ws://`,`http://`).replace(`wss://`,`https://`).replace(RegExp(`(.*)/`+po.websocket),`$1/`+po.longpoll)}endpointURL(){return yo.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=lo.connecting}ontimeout(){this.onerror(`timeout`),this.closeAndRetry(1005,`timeout`,!1)}isActive(){return this.readyState===lo.open||this.readyState===lo.connecting}poll(){let e={Accept:`application/json`};this.authToken&&(e[`X-Phoenix-AuthToken`]=this.authToken),this.ajax(`GET`,e,null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:n,messages:r}=e;if(t===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,`session_gone`,!1);return}this.token=n}else t=0;switch(t){case 200:r.forEach(e=>{setTimeout(()=>this.onmessage({data:e}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=lo.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,`forbidden`,!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,`internal server error`,500);break;default:throw Error(`unhandled poll status ${t}`)}})}send(e){typeof e!=`string`&&(e=bo(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e,t=0){this.awaitingBatchAck=!0;let n=t+co,r=e.slice(t,n);this.ajax(`POST`,{"Content-Type":`application/x-ndjson`},r.join(` 11`),()=>this.onerror(`timeout`),t=>{!t||t.status!==200?(this.awaitingBatchAck=!1,this.onerror(t&&t.status),this.closeAndRetry(1011,`internal server error`,!1)):n<e.length?this.batchSend(e,n):this.batchBuffer.length>0?(this.batchSend(this.batchBuffer),this.batchBuffer=[]):this.awaitingBatchAck=!1})}close(e,t,n){for(let e of this.reqs)e.abort();this.readyState=lo.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<`u`?this.onclose(new CloseEvent(`close`,r)):this.onclose(r)}ajax(e,t,n,r,i){let a;a=yo.request(e,this.endpointURL(),t,n,this.timeout,()=>{this.reqs.delete(a),r()},e=>{this.reqs.delete(a),this.isActive()&&i(e)}),this.reqs.add(a)}},So=class e{constructor(t,n={}){let r=n.events||{state:`presence_state`,diff:`presence_diff`};this.state=Object.create(null),this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,t=>{let{onJoin:n,onLeave:r,onSync:i}=this.caller;this.joinRef=this.channel.joinRef(),this.state=e.syncState(this.state,t,n,r),this.pendingDiffs.forEach(t=>{this.state=e.syncDiff(this.state,t,n,r)}),this.pendingDiffs=[],i()}),this.channel.on(r.diff,t=>{let{onJoin:n,onLeave:r,onSync:i}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(t):(this.state=e.syncDiff(this.state,t,n,r),i())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(t){return e.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,n,r){let i=this.toNullProtoObj(this.clone(e));t=this.toNullProtoObj(t);let a=Object.create(null),o=Object.create(null);return this.map(i,(e,n)=>{t[e]||(o[e]=n)}),this.map(t,(e,t)=>{let n=i[e];if(n){let r=t.metas.map(e=>e.phx_ref),i=n.metas.map(e=>e.phx_ref),s=t.metas.filter(e=>i.indexOf(e.phx_ref)<0),c=n.metas.filter(e=>r.indexOf(e.phx_ref)<0);s.length>0&&(a[e]=t,a[e].metas=s),c.length>0&&(o[e]=this.clone(n),o[e].metas=c)}else a[e]=t}),this.syncDiff(i,{joins:a,leaves:o},n,r)}static syncDiff(e,t,n,r){e=this.toNullProtoObj(e);let{joins:i,leaves:a}=this.clone(t);return n||=function(){},r||=function(){},this.map(i,(t,r)=>{let i=e[t];if(e[t]=this.clone(r),i){let n=e[t].metas.map(e=>e.phx_ref),r=i.metas.filter(e=>n.indexOf(e.phx_ref)<0);e[t].metas.unshift(...r)}n(t,i,r)}),this.map(a,(t,n)=>{let i=e[t];if(!i)return;let a=n.metas.map(e=>e.phx_ref);i.metas=i.metas.filter(e=>a.indexOf(e.phx_ref)<0),r(t,i,n),i.metas.length===0&&delete e[t]}),e}static list(e,t){return t||=function(e,t){return t},this.map(e,(e,n)=>t(e,n))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static toNullProtoObj(e){if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(n=>{t[n]=e[n]}),t}static clone(e){return JSON.parse(JSON.stringify(e))}},Co={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,a,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:a,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:a}=e,o=new TextEncoder,s=o.encode(t),c=o.encode(n),l=o.encode(i),u=o.encode(r);this.assertFieldSize(s.byteLength,`join_ref`),this.assertFieldSize(c.byteLength,`ref`),this.assertFieldSize(l.byteLength,`topic`),this.assertFieldSize(u.byteLength,`event`);let d=this.META_LENGTH+s.byteLength+c.byteLength+l.byteLength+u.byteLength,f=new ArrayBuffer(this.HEADER_LENGTH+d),p=new Uint8Array(f),m=new DataView(f),h=0;m.setUint8(h++,this.KINDS.push),m.setUint8(h++,s.byteLength),m.setUint8(h++,c.byteLength),m.setUint8(h++,l.byteLength),m.setUint8(h++,u.byteLength),p.set(s,h),h+=s.byteLength,p.set(c,h),h+=c.byteLength,p.set(l,h),h+=l.byteLength,p.set(u,h),h+=u.byteLength;var g=new Uint8Array(f.byteLength+a.byteLength);return g.set(p,0),g.set(new Uint8Array(a),f.byteLength),g.buffer},assertFieldSize(e,t){if(e>255)throw Error(`unable to convert ${t} to binary: must be less than or equal to 255 bytes, but is ${e} bytes`)},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(o,o+r));o+=r;let c=n.decode(e.slice(o,o+i));o+=i;let l=n.decode(e.slice(o,o+a));return o+=a,{join_ref:s,ref:null,topic:c,event:l,payload:e.slice(o,e.byteLength)}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,c=n.decode(e.slice(s,s+r));s+=r;let l=n.decode(e.slice(s,s+i));s+=i;let u=n.decode(e.slice(s,s+a));s+=a;let d=n.decode(e.slice(s,s+o));s+=o;let f={status:d,response:e.slice(s,e.byteLength)};return{join_ref:c,ref:l,topic:u,event:fo.reply,payload:f}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=this.HEADER_LENGTH+2,o=n.decode(e.slice(a,a+r));a+=r;let s=n.decode(e.slice(a,a+i));return a+=i,{join_ref:null,ref:null,topic:o,event:s,payload:e.slice(a,e.byteLength)}}},wo=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||oo,this.transport=t.transport||io.WebSocket||xo,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=io&&io.sessionStorage}catch{}this.sessionStore=t.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=Co.encode.bind(Co),this.defaultDecoder=Co.decode.bind(Co),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||`arraybuffer`,this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport===xo?(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder):(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder);let r=null;ro&&ro.addEventListener&&(ro.addEventListener(`pagehide`,e=>{this.conn&&(this.disconnect(),r=this.connectClock)}),ro.addEventListener(`pageshow`,e=>{r===this.connectClock&&(r=null,this.connect())}),ro.addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=e=>t.rejoinAfterMs?t.rejoinAfterMs(e):[1e3,2e3,5e3][e-1]||1e4,this.reconnectAfterMs=e=>t.reconnectAfterMs?t.reconnectAfterMs(e):[10,50,100,150,200,250,500,1e3,2e3][e-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(e,t,n)=>{console.log(`${e}: ${t}`,n)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=to(t.params||{}),this.endPoint=`${e}/${po.websocket}`,this.vsn=t.vsn||ao,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new _o(()=>{if(this.pageHidden){this.log(`Not reconnecting as page is hidden!`),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken&&to(t.authToken)}getLongPollTransport(){return xo}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&=(this.conn.close(),null),this.transport=e}protocol(){return location.protocol.match(/^https/)?`wss`:`ws`}endPointURL(){let e=yo.appendParams(yo.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)===`/`?e.charAt(1)===`/`?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`:e}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log(`passing params to connect is deprecated. Instead pass :params to the Socket constructor`),this.params=to(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==xo?this.connectWithFallback(xo,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:`phoenix`,event:`heartbeat`,payload:{},ref:t});let r=this.onMessage(i=>{i.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case xo:return`LongPoll`;default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=[`phoenix`,`${ho}${btoa(this.authToken()).replace(/=/g,``)}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,i,a=this.transportName(e),o=t=>{this.log(`transport`,`falling back to ${a}...`,t),this.off([void 0,i]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${a}`))return o(`memorized`);this.fallbackTimer=setTimeout(o,t),i=this.onError(e=>{this.log(`transport`,`error`,e),r&&!n&&(clearTimeout(this.fallbackTimer),o(e))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let t=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${t}`,`true`),this.log(`transport`,`established ${t} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(o,t),this.ping(e=>{this.log(`transport`,`connected to primary after`,e),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log(`transport`,`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks(`open`)}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log(`transport`,`heartbeat timeout. Attempting to re-establish connection`);try{this.heartbeatCallback(`timeout`)}catch(e){this.log(`error`,`error in heartbeat callback`,e)}this.triggerChanError(Error(`heartbeat timeout`)),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),so,`heartbeat timeout`)}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();let r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||``):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===lo.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log(`transport`,`close`,e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks(`close`,e)}onConnError(e){this.hasLogger()&&this.log(`transport`,`error`,e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks(`error`,e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(fo.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case lo.connecting:return`connecting`;case lo.open:return`open`;case lo.closing:return`closing`;default:return`closed`}}isConnected(){return this.connectionState()===`open`}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([t])=>e.indexOf(t)===-1)}channel(e,t={}){let n=new vo(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:i,join_ref:a}=e;this.log(`push`,`${t} ${n} (${a}, ${i})`,r)}this.isConnected()?this.encode(e,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(e,e=>this.conn.send(e)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback(`disconnected`)}catch(e){this.log(`error`,`error in heartbeat callback`,e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:`phoenix`,event:`heartbeat`,payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback(`sent`)}catch(e){this.log(`error`,`error in heartbeat callback`,e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:n,payload:r,ref:i,join_ref:a}=e;if(i&&i===this.pendingHeartbeatRef){let e=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(r.status===`ok`?`ok`:`error`,e)}catch(e){this.log(`error`,`error in heartbeat callback`,e)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log(`receive`,`${r.status||``} ${t} ${n} ${i&&`(`+i+`)`||``}`.trim(),r);for(let e=0;e<this.channels.length;e++){let o=this.channels[e];o.isMember(t,n,r,a)&&o.trigger(n,r,i,a)}this.triggerStateCallbacks(`message`,e)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(t){this.log(`error`,`error in ${e} callback`,t)}})}catch(t){this.log(`error`,`error triggering ${e} callbacks`,t)}}leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t.isJoined()||t.isJoining()));t&&(this.hasLogger()&&this.log(`transport`,`leaving duplicate topic "${e}"`),t.leave())}},To=class e{constructor(t,n){let r=Oo(n);this.presence=new So(t.getChannel(),r),this.presence.onJoin((n,r,i)=>{let a=e.onJoinPayload(n,r,i);t.getChannel().trigger(`presence`,a)}),this.presence.onLeave((n,r,i)=>{let a=e.onLeavePayload(n,r,i);t.getChannel().trigger(`presence`,a)}),this.presence.onSync(()=>{t.getChannel().trigger(`presence`,{event:`sync`})})}get state(){return e.transformState(this.presence.state)}static transformState(e){return e=Do(e),Object.getOwnPropertyNames(e).reduce((t,n)=>{let r=e[n];return t[n]=Eo(r),t},{})}static onJoinPayload(e,t,n){return{event:`join`,key:e,currentPresences:ko(t),newPresences:Eo(n)}}static onLeavePayload(e,t,n){return{event:`leave`,key:e,currentPresences:ko(t),leftPresences:Eo(n)}}};function Eo(e){return e.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e))}function Do(e){return JSON.parse(JSON.stringify(e))}function Oo(e){return e?.events&&{events:e.events}}function ko(e){return e?.metas?Eo(e):[]}var Ao;(function(e){e.SYNC=`sync`,e.JOIN=`join`,e.LEAVE=`leave`})(Ao||={});var jo=class{get state(){return this.presenceAdapter.state}constructor(e,t){this.channel=e,this.presenceAdapter=new To(this.channel.channelAdapter,t)}};function Mo(e){if(e instanceof Error)return e;if(typeof e==`string`)return Error(e);if(e&&typeof e==`object`){let t=e;if(typeof t.code==`number`){let n=typeof t.reason==`string`&&t.reason?` (${t.reason})`:``;return Error(`socket closed: ${t.code}${n}`,{cause:e})}return Error(`channel error: transport failure`,{cause:e})}return Error(`channel error: connection lost`)}var No=class{constructor(e,t,n){let r=Po(n);this.channel=e.getSocket().channel(t,r),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,t){return this.channel.on(e,t)}off(e,t){this.channel.off(e,t)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}push(e,t,n){let r;try{r=this.channel.push(e,t,n)}catch{throw Error(`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>100){let e=this.channel.pushBuffer.shift();e.cancelTimeout(),this.socket.log(`channel`,`discarded push due to buffer overflow: ${e.event}`,e.payload())}return r}updateJoinPayload(e){let t=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},t),e)}canPush(){return this.socket.isConnected()&&this.state===Ba.joined}isJoined(){return this.state===Ba.joined}isJoining(){return this.state===Ba.joining}isClosed(){return this.state===Ba.closed}isLeaving(){return this.state===Ba.leaving}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}};function Po(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:``,enabled:!1},private:!1},e.config)}}var Fo=/[,()"\\]/,Io=e=>Fo.test(e)||e!==e.trim(),Lo=e=>`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`,Ro=e=>{let t=e===null?`null`:String(e);return Io(t)?Lo(t):t},zo=e=>e===null?`null`:String(e),Bo=(e,t)=>{if(e===`in`){let e=Array.isArray(t)?t:[t];if(e.length===0)throw Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(e)).map(e=>Ro(e)).join(`,`)})`}return e===`is`?`is.${zo(t)}`:`${e}.${Ro(t)}`},Vo=class{constructor(){this.filters=[]}add(e,t,n,r=!1){let i=r?`not.`:``;return this.filters.push(`${e}=${i}${Bo(t,n)}`),this}eq(e,t){return this.add(e,`eq`,t)}neq(e,t){return this.add(e,`neq`,t)}gt(e,t){return this.add(e,`gt`,t)}gte(e,t){return this.add(e,`gte`,t)}lt(e,t){return this.add(e,`lt`,t)}lte(e,t){return this.add(e,`lte`,t)}in(e,t){return this.add(e,`in`,t)}like(e,t){return this.add(e,`like`,t)}ilike(e,t){return this.add(e,`ilike`,t)}match(e,t){return this.add(e,`match`,t)}imatch(e,t){return this.add(e,`imatch`,t)}is(e,t){return this.add(e,`is`,t)}isDistinct(e,t){return this.add(e,`isdistinct`,t)}not(e,t,n){return this.add(e,t,n,!0)}build(){return this.filters.join(`,`)}toString(){return this.build()}},Ho;(function(e){e.ALL=`*`,e.INSERT=`INSERT`,e.UPDATE=`UPDATE`,e.DELETE=`DELETE`})(Ho||={});var Uo;(function(e){e.BROADCAST=`broadcast`,e.PRESENCE=`presence`,e.POSTGRES_CHANGES=`postgres_changes`,e.SYSTEM=`system`})(Uo||={});var Wo;(function(e){e.SUBSCRIBED=`SUBSCRIBED`,e.TIMED_OUT=`TIMED_OUT`,e.CLOSED=`CLOSED`,e.CHANNEL_ERROR=`CHANNEL_ERROR`})(Wo||={});var Go=class e{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(e,t={config:{}},n){if(this.topic=e,this.params=t,this.socket=n,this.bindings={},this.subTopic=e.replace(/^realtime:/i,``),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:``,enabled:!1},private:!1},t.config),this.channelAdapter=new No(this.socket.socketAdapter,e,this.params),this.presence=new jo(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=eo(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&this.params.config?.broadcast?.replay)throw Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(e,t=this.timeout){if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){let{config:{broadcast:n,presence:r,private:i}}=this.params,a=this.bindings.postgres_changes?.map(e=>e.filter)??[],o=!!this.bindings[Uo.PRESENCE]&&this.bindings[Uo.PRESENCE].length>0||this.params.config.presence?.enabled===!0,s={},c={broadcast:n,presence:Object.assign(Object.assign({},r),{enabled:o}),postgres_changes:a,private:i};this.socket.accessTokenValue&&(s.access_token=this.socket.accessTokenValue),this._onError(t=>{e?.(Wo.CHANNEL_ERROR,Mo(t))}),this._onClose(()=>e?.(Wo.CLOSED)),this.updateJoinPayload(Object.assign({config:c},s)),this._updateFilterMessage(),this.channelAdapter.subscribe(t).receive(`ok`,async({postgres_changes:t})=>{if(this.socket._isManualToken()||this.socket.setAuth(),t===void 0){e?.(Wo.SUBSCRIBED);return}this._updatePostgresBindings(t,e)}).receive(`error`,t=>{this.state=Ba.errored;let n=Object.values(t).join(`, `)||`error`;e?.(Wo.CHANNEL_ERROR,Error(n,{cause:t}))}).receive(`timeout`,()=>{e?.(Wo.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){let r=this.bindings.postgres_changes,i=r?.length??0,a=[];for(let o=0;o<i;o++){let i=r[o],{filter:{event:s,schema:c,table:l,filter:u}}=i,d=t&&t[o];if(d&&d.event===s&&e.isFilterValueEqual(d.schema,c)&&e.isFilterValueEqual(d.table,l)&&e.isFilterValueEqual(d.filter,u))a.push(Object.assign(Object.assign({},i),{id:d.id}));else{this.unsubscribe(),this.state=Ba.errored,n?.(Wo.CHANNEL_ERROR,Error(`mismatch between server and client bindings for postgres changes`));return}}this.bindings.postgres_changes=a,this.state!=Ba.errored&&n&&n(Wo.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e,t={}){return await this.send({type:`presence`,event:`track`,payload:e},t)}async untrack(e={}){return await this.send({type:`presence`,event:`untrack`},e)}on(e,t,n){let r=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=e===Uo.PRESENCE||e===Uo.POSTGRES_CHANGES;if(r&&i)throw this.socket.log(`channel`,`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`),Error(`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(e,t,n)}async httpSend(e,t,n={}){if(t==null)return Promise.reject(Error(`Payload is required for httpSend()`));let r=t instanceof ArrayBuffer||ArrayBuffer.isView(t),i={apikey:this.socket.apiKey?this.socket.apiKey:``,"Content-Type":r?`application/octet-stream`:`application/json`};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);let a=new URL(this.broadcastEndpointURL);a.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(e)}`,this.private&&a.searchParams.set(`private`,`true`);let o={method:`POST`,headers:i,body:r?t:JSON.stringify(t)},s=await this._fetchWithTimeout(a.toString(),o,n.timeout??this.timeout);if(s.status===202)return{success:!0};if(s.status===404)return Promise.reject(Error(`httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realt
11ime-js/migrations/httpsend-server-version.md`));let c=s.statusText;try{let e=await s.json();c=e.error||e.message||c}catch{}return Promise.reject(Error(c))}async send(e,t={}){if(!this.channelAdapter.canPush()&&e.type===`broadcast`){console.warn(`Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.`);let{event:n,payload:r}=e,i={apikey:this.socket.apiKey?this.socket.apiKey:``,"Content-Type":`application/json`};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);let a={method:`POST`,headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:n,payload:r,private:this.private}]})};try{let e=await this._fetchWithTimeout(this.broadcastEndpointURL,a,t.timeout??this.timeout);return await e.body?.cancel(),e.ok?`ok`:`error`}catch(e){return e instanceof Error&&e.name===`AbortError`?`timed out`:`error`}}else return new Promise(n=>{let r=this.channelAdapter.push(e.type,e,t.timeout||this.timeout);e.type===`broadcast`&&!this.params?.config?.broadcast?.ack&&n(`ok`),r.receive(`ok`,()=>n(`ok`)),r.receive(`error`,()=>n(`error`)),r.receive(`timeout`,()=>n(`timed out`))})}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(t=>{this.channelAdapter.unsubscribe(e).receive(`ok`,()=>t(`ok`)).receive(`timeout`,()=>t(`timed out`)).receive(`error`,()=>t(`error`))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,t,n){let r=new AbortController,i=setTimeout(()=>r.abort(),n),a=await this.socket.fetch(e,Object.assign(Object.assign({},t),{signal:r.signal}));return clearTimeout(i),a}_on(e,t,n){let r=e.toLocaleLowerCase(),i=t?.filter;(i instanceof Vo||typeof i==`object`&&i&&typeof i.build==`function`)&&(t=Object.assign(Object.assign({},t),{filter:i.build()}));let a=this.channelAdapter.on(e,n),o={type:r,filter:t,callback:n,ref:a};return this.bindings[r]?this.bindings[r].push(o):this.bindings[r]=[o],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,t,n)=>{let r=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(r,n))return!1;let i=this.bindings[r]?.find(t=>t.ref===e.ref);if(!i)return!0;if([`broadcast`,`presence`,`postgres_changes`].includes(r))if(`id`in i){let e=i.id,n=i.filter?.event;return e&&t.ids?.includes(e)&&(n===`*`||n?.toLocaleLowerCase()===t.data?.type.toLocaleLowerCase())}else{let e=(i?.filter?.event)?.toLocaleLowerCase();return e===`*`||e===(t?.event)?.toLocaleLowerCase()}else return i.type.toLocaleLowerCase()===r})}_notThisChannelEvent(e,t){let{close:n,error:r,leave:i,join:a}=Va;return t&&[n,r,i,a].includes(e)&&t!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,t,n)=>{if(typeof t==`object`&&`ids`in t){let e=t.data,{schema:n,table:r,commit_timestamp:i,type:a,errors:o}=e;return Object.assign(Object.assign({},{schema:n,table:r,commit_timestamp:i,eventType:a,new:{},old:{},errors:o}),this._getPayloadRecords(e))}return t})}copyBindings(e){if(this.joinedOnce)throw Error(`cannot copy bindings into joined channel`);for(let t in e.bindings)for(let n of e.bindings[t])this._on(n.type,n.filter,n.callback)}static isFilterValueEqual(e,t){return(e??void 0)===(t??void 0)}_getPayloadRecords(e){let t={new:{},old:{}};return(e.type===`INSERT`||e.type===`UPDATE`)&&(t.new=Ga(e.columns,e.record)),(e.type===`UPDATE`||e.type===`DELETE`)&&(t.old=Ga(e.columns,e.old_record)),t}},Ko=class{constructor(e,t){this.socket=new wo(e,t)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(e){this.socket.heartbeatCallback=e}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(e,t,n,r=1e4){return new Promise(i=>{setTimeout(()=>i(`timeout`),r),this.socket.disconnect(()=>{e(),i(`ok`)},t,n)})}push(e){this.socket.push(e)}log(e,t,n){this.socket.log(e,t,n)}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Ha.connecting}isDisconnecting(){return this.socket.connectionState()==Ha.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}},qo={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},Jo=[1e3,2e3,5e3,1e4],Yo=1e4;function Xo(){let e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){return Array.from(e.keys())[t]??null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function Zo(){try{if(typeof globalThis<`u`&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return Xo()}var Qo=` 12 addEventListener("message", (e) => { 13 if (e.data.event === "start") { 14 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 15 } 16 });`,$o=class{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(e,t){if(this.channels=[],this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint=``,this.headers={},this.params={}
16,this.ref=0,this.serializer=new Ua,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),!t?.params?.apikey)throw Error(`API key is required to connect to Realtime`);this.apiKey=t.params.apikey;let n=this._initializeOptions(t);this.socketAdapter=new Ko(e,n),this.httpEndpoint=eo(e),this.fetch=this._resolveFetch(t?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely(`connect`),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){let t=e.message;throw Error(`WebSocket not available: ${t}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,t){return this._cancelPendingDisconnect(),this.isDisconnecting()?`ok`:await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,t)}getChannels(){return this.channels}async removeChannel(e){let t=await e.unsubscribe();return t===`ok`&&e.teardown(),t}async removeAllChannels(){let e=this.channels.map(async e=>{let t=await e.unsubscribe();return e.teardown(),t}),t=await Promise.all(e);return await this.disconnect(),t}log(e,t,n){this.socketAdapter.log(e,t,n)}connectionState(){return this.socketAdapter.connectionState()||Ha.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,t={config:{}}){let n=`realtime:${e}`,r=this.getChannels().find(e=>e.topic===n);if(r)return r;{let n=new Go(`realtime:${e}`,t,this);return this._cancelPendingDisconnect(),this.channels.push(n),n}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(t=>t.topic!==e.topic),this.channels.length===0&&(this.log(`transport`,`no channels remaining, scheduling disconnect`),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log(`transport`,`disconnecting immediately - no channels`),this.disconnect();return}
16this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log(`transport`,`deferred disconnect fired - no channels, disconnecting`),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log(`transport`,`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log(`transport`,`pending disconnect cancelled - channel activity detected`),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(e=null){let t,n=!1;if(e)t=e,n=!0;else if(this.accessToken)try{t=await this.accessToken()}catch(e){this.log(`error`,`Error fetching access token from callback`,e),t=this.accessTokenValue}else t=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=t&&(this.accessTokenValue=t,this.channels.forEach(e=>{let n={access_token:t,version:Fa};t&&e.updateJoinPayload(n),e.joinedOnce&&e.channelAdapter.isJoined()&&e.channelAdapter.push(Va.access_token,{access_token:t})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e=`general`){this._isManualToken()||this.setAuth().catch(t=>{this.log(`error`,`Error setting auth in ${e}`,t)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(e=>{this.log(`error`,`error waiting for auth on connect`,e)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(t,n)=>{t!==`disconnected`&&(t==`sent`&&this._setAuthSafely(),e&&e(t,n))}}_startWorkerHeartbeat(){this.workerUrl?this.log(`worker`,`starting worker for from ${this.workerUrl}`):this.log(`worker`,`starting default worker`);let e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=e=>{this.log(`worker`,`worker error`,e.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=e=>{e.data.event===`keepAlive`&&this.sendHeartbeat()},this.workerRef.postMessage({event:`start`,interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&=(this.log(`worker`,`terminating worker`),this.workerRef.terminate(),void 0)}_workerObjectUrl(e){let t;if(e)t=e;else{let e=new Blob([Qo],{type:`application/javascript`});t=URL.createObjectURL(e)}return t}_initializeOptions(e){this.worker=e?.worker??!1,this.accessToken=e?.accessToken??null;let t={};t.timeout=e?.timeout??za,t.heartbeatIntervalMs=e?.heartbeatIntervalMs??qo.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=e?.disconnectOnEmptyChannelsAfterMs??2*(e?.heartbeatIntervalMs??qo.HEARTBEAT_INTERVAL),t.transport=e?.transport??Pa.getWebSocketConstructor(),t.params=e?.params,t.logger=e?.logger,t.heartbeatCallback=this._wrapHeartbeatCallback(e?.heartbeatCallback),t.sessionStorage=e?.sessionStorage??Zo(),t.reconnectAfterMs=e?.reconnectAfterMs??(e=>Jo[e-1]||Yo);let n,r,i=e?.vsn??Ra;switch(i){case Ia:n=(e,t)=>t(JSON.stringify(e)),r=(e,t)=>t(JSON.parse(e));break;case La:n=this.serializer.encode.bind(this.serializer),r=this.serializer.decode.bind(this.serializer);break;default:throw Error(`Unsupported serializer version: ${t.vsn}`)}if(t.vsn=i,t.encode=e?.encode??n,t.decode=e?.decode??r,t.beforeReconnect=this._reconnectAuth.bind(this),(e?.logLevel||e?.log_level)&&(this.logLevel=e.logLevel||e.log_level,t.params=Object.assign(Object.assign({},t.params),{log_level:this.logLevel})),this.worker){if(typeof window<`u`&&!window.Worker)throw Error(`Web Worker is not supported`);this.workerUrl=e?.workerUrl,t.autoSendHeartbeat=!this.worker}return t}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
vendor: 4,836 bytes, line 16
16,es=class extends Error{constructor(e,t){super(e),this.name=`IcebergError`,this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType===`CommitStateUnknownException`||[500,502,504].includes(t.status)&&t.icebergType?.includes(`CommitState`)===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function ts(e,t,n){let r=new URL(t,e);if(n)for(let[e,t]of Object.entries(n))t!==void 0&&r.searchParams.set(e,t);return r.toString()}async function ns(e){return!e||e.type===`none`?{}:e.type===`bearer`?{Authorization:`Bearer ${e.token}`}:e.type===`header`?{[e.name]:e.value}:e.type===`custom`?await e.getHeaders():{}}function rs(e){let t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:a,headers:o}){let s=ts(e.baseUrl,r,i),c=await ns(e.auth),l=await t(s,{method:n,headers:{...a?{"Content-Type":`application/json`}:{},...c,...o},body:a?JSON.stringify(a):void 0}),u=await l.text(),d=(l.headers.get(`content-type`)||``).includes(`application/json`),f=d&&u?JSON.parse(u):u;if(!l.ok){let e=d?f:void 0,t=e?.error;throw new es(t?.message??`Request failed with status ${l.status}`,{status:l.status,icebergType:t?.type,icebergCode:t?.code,details:e})}return{status:l.status,headers:l.headers,data:f}}}}function is(e){return e.join(`�`)}var as=class{constructor(e,t=``){this.client=e,this.prefix=t}async listNamespaces(e){let t=e?{parent:is(e.namespace)}:void 0;return(await this.client.request({method:`GET`,path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(e=>({namespace:e}))}async createNamespace(e,t){let n={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:`POST`,path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:`DELETE`,path:`${this.prefix}/namespaces/${is(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:`GET`,path:`${this.prefix}/namespaces/${is(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:`HEAD`,path:`${this.prefix}/namespaces/${is(e.namespace)}`}),!0}catch(e){if(e instanceof es&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(e){if(e instanceof es&&e.status===409)return;throw e}}};function os(e){return e.join(`�`)}var ss=class{constructor(e,t=``,n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:`GET`,path:`${this.prefix}/namespaces/${os(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){let n={};return this.accessDelegation&&(n[`X-Iceberg-Access-Delegation`]=this.accessDelegation),(await this.client.request({method:`POST`,path:`${this.prefix}/namespaces/${os(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){let n=await this.client.request({method:`POST`,path:`${this.prefix}/namespaces/${os(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data[`metadata-location`],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:`DELETE`,path:`${this.prefix}/namespaces/${os(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){let t={};return this.accessDelegation&&(t[`X-Iceberg-Access-Delegation`]=this.accessDelegation),(await this.client.request({method:`GET`,path:`${this.prefix}/namespaces/${os(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){let t={};this.accessDelegation&&(t[`X-Iceberg-Access-Delegation`]=this.accessDelegation);try{return await this.client.request({method:`HEAD`,path:`${this.prefix}/namespaces/${os(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(e){if(e instanceof es&&e.status===404)return!1;throw e}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof es&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},cs=class{constructor(e){let t=`v1`;e.catalogName&&(t+=`/${e.catalogName}`);let n=e.baseUrl.endsWith(`/`)?e.baseUrl:`${e.baseUrl}/`;this.client=rs({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(`,`),this.namespaceOps=new as(this.client,t),this.tableOps=new ss(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
16async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function ls(e){"@babel/helpers - typeof";return ls=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ls(e)}function us(e,t){if(ls(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ls(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ds(e){var t=us(e,`string`);return ls(t)==`symbol`?t:t+``}function fs(e,t,n){return(t=ds(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ps(Object(n),!0).forEach(function(t){fs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var hs=class extends Error{constructor(e,t=`storage`,n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t===`vectors`?`StorageVectorsError`:`StorageError`,this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function gs(e){return typeof e==`object`&&!!e&&`__isStorageError`in e}var _s=class extends hs{constructor(e,t,n,r=`storage`){super(e,r,t,n),this.name=r===`vectors`?`StorageVectorsApiError`:`StorageApiError`,this.status=t,this.statusCode=n}toJSON(){return ms({},super.toJSON())}},vs=class extends hs{constructor(e,t,n=`storage`){super(e,n),this.name=n===`vectors`?`StorageVectorsUnknownError`:`StorageUnknownError`,this.originalError=t}};function ys(e,t,n){let r=ms({},e),i=t.toLowerCase();for(let e of Object.keys(r))e.toLowerCase()===i&&delete r[e];return r[i]=n,r}function bs(e){let t={};for(let[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}var xs=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),Ss=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Cs=e=>{if(Array.isArray(e))return e.map(e=>Cs(e));if(typeof e==`function`||e!==Object(e))return e;let t={};return Object.entries(e).forEach(([e,n])=>{let r=e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace(/[-_]/g,``));t[r]=Cs(n)}),t},ws=e=>!e||typeof e!=`string`||e.length===0||e.length>100||e.trim()!==e||e.includes(`/`)||e.includes(`\\`)?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Ts=e=>{if(typeof e==`object`&&e){let t=e;if(typeof t.msg==`string`)return t.msg;if(typeof t.message==`string`)return t.message;if(typeof t.error_description==`string`)return t.error_description;if(typeof t.error==`string`)return t.error;if(typeof t.error==`object`&&t.error!==null){let e=t.error;if(typeof e.message==`string`)return e.message}}return JSON.stringify(e)},Es=async(e,t,n,r)=>{if(typeof e==`object`&&e&&`json`in e&&typeof e.json==`function`){let n=e,i=parseInt(String(n.status),10);Number.isFinite(i)||(i=500),n.json().then(e=>{let n=e?.statusCode||e?.code||i+``;t(new _s(Ts(e),i,n,r))}).catch(()=>{let e=i+``;t(new _s(n.statusText||`HTTP ${i} error`,i,e,r))})}else t(new vs(Ts(e),e,r))},Ds=(e,t,n,r)=>{let i={method:e,headers:t?.headers||{}};if(e===`GET`||e===`HEAD`||!r)return ms(ms({},i),n);if(Ss(r)){let e=t?.headers||{},n;for(let[t,r]of Object.entries(e))t.toLowerCase()===`content-type`&&(n=r);i.headers=ys(e,`Content-Type`,n??`application/json`),i.body=JSON.stringify(r)}else i.body=r;return t?.duplex&&(i.duplex=t.duplex),ms(ms({},i),n)};async function Os(e,t,n,r,i,a,o){return new Promise((s,c)=>{e(n,Ds(t,r,i,a)).then(e=>{if(!e.ok)throw e;if(r?.noResolveJson)return e;if(o===`vectors`){let t=e.headers.get(`content-type`);if(e.headers.get(`content-length`)===`0`||e.status===204||!t||!t.includes(`application/json`))return{}}return e.json()}).then(e=>s(e)).catch(e=>Es(e,c,r,o))})}function ks(e=`storage`){return{get:async(t,n,r,i)=>Os(t,`GET`,n,r,i,void 0,e),post:async(t,n,r,i,a)=>Os(t,`POST`,n,i,a,r,e),put:async(t,n,r,i,a)=>Os(t,`PUT`,n,i,a,r,e),head:async(t,n,r,i)=>Os(t,`HEAD`,n,ms(ms({},r),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,r,i,a)=>Os(t,`DELETE`,n,i,a,r,e)}}var{get:As,post:js,put:Ms,head:Ns,remove:Ps}=ks(`storage`),Fs=ks(`vectors`),Is=class{constructor(e,t={},n,r=`storage`){this.shouldThrowOnError=!1,this.url=e,this.headers=bs(t),this.fetch=xs(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=ys(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(gs(e))return{data:null,error:e};throw e}}},Ls=Symbol.toStringTag,Rs=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Ls]=`StreamDownloadBuilder`,this.promise=null}
16then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||=this.execute(),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(gs(t))return{data:null,error:t};throw t}}},zs=Symbol.toStringTag,Bs=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[zs]=`BlobDownloadBuilder`,this.promise=null}asStream(){return new Rs(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||=this.execute(),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(gs(t))return{data:null,error:t};throw t}}},Vs={limit:100,offset:0,sortBy:{column:`name`,order:`asc`}},Hs={cacheControl:`3600`,contentType:`text/plain;charset=UTF-8`,upsert:!1},Us=class extends Is{constructor(e,t={},n,r){super(e,t,r,`storage`),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var i=this;return i.handleOperation(async()=>{let a,o=ms(ms({},Hs),r),s=ms(ms({},i.headers),e===`POST`&&{"x-upsert":String(o.upsert)}),c=o.metadata;if(typeof Blob<`u`&&n instanceof Blob?(a=new FormData,a.append(`cacheControl`,o.cacheControl),c&&a.append(`metadata`,i.encodeMetadata(c)),a.append(``,n)):typeof FormData<`u`&&n instanceof FormData?(a=n,a.has(`cacheControl`)||a.append(`cacheControl`,o.cacheControl),c&&!a.has(`metadata`)&&a.append(`metadata`,i.encodeMetadata(c))):(a=n,s[`cache-control`]=`max-age=${o.cacheControl}`,s[`content-type`]=o.contentType,c&&(s[`x-metadata`]=i.toBase64(i.encodeMetadata(c))),(typeof ReadableStream<`u`&&a instanceof ReadableStream||a&&typeof a==`object`&&`pipe`in a&&typeof a.pipe==`function`)&&!o.duplex&&(o.duplex=`half`)),r?.headers)for(let[e,t]of Object.entries(r.headers))s=ys(s,e,t);let l=i._removeEmptyFolders(t),u=i._getFinalPath(l),d=await(e==`PUT`?Ms:js)(i.fetch,`${i.url}/object/${u}`,a,ms({headers:s},o?.duplex?{duplex:o.duplex}:{}));return{path:l,id:d.Id,fullPath:d.Key}})}async upload(e,t,n){return this.uploadOrUpdate(`POST`,e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;let a=i._removeEmptyFolders(e),o=i._getFinalPath(a),s=new URL(i.url+`/object/upload/sign/${o}`);return s.searchParams.set(`token`,t),i.handleOperation(async()=>{let e,t=ms(ms({},Hs),r),o=ms(ms({},i.headers),{"x-upsert":String(t.upsert)}),c=t.metadata;if(typeof Blob<`u`&&n instanceof Blob?(e=new FormData,e.append(`cacheControl`,t.cacheControl),c&&e.append(`metadata`,i.encodeMetadata(c)),e.append(``,n)):typeof FormData<`u`&&n instanceof FormData?(e=n,e.has(`cacheControl`)||e.append(`cacheControl`,t.cacheControl),c&&!e.has(`metadata`)&&e.append(`metadata`,i.encodeMetadata(c))):(e=n,o[`cache-control`]=`max-age=${t.cacheControl}`,o[`content-type`]=t.contentType,c&&(o[`x-metadata`]=i.toBase64(i.encodeMetadata(c))),(typeof ReadableStream<`u`&&e instanceof ReadableStream||e&&typeof e==`object`&&`pipe`in e&&typeof e.pipe==`function`)&&!t.duplex&&(t.duplex=`half`)),r?.headers)for(let[e,t]of Object.entries(r.headers))o=ys(o,e,t);return{path:a,fullPath:(await Ms(i.fetch,s.toString(),e,ms({headers:o},t?.duplex?{duplex:t.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e),i=ms({},n.headers);t?.upsert&&(i[`x-upsert`]=`true`);let a=await js(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(n.url+a.url),s=o.searchParams.get(`token`);if(!s)throw new hs(`No token returned by API`);return{signedUrl:o.toString(),path:e,token:s}})}async update(e,t,n){return this.uploadOrUpdate(`PUT`,e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await js(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
16stinationBucket:n?.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await js(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n?.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let i=r._getFinalPath(e),a=typeof n?.transform==`object`&&n.transform!==null&&Object.keys(n.transform).length>0,o=await js(r.fetch,`${r.url}/object/sign/${i}`,ms({expiresIn:t},a?{transform:n.transform}:{}),{headers:r.headers}),s=new URLSearchParams;n?.download&&s.set(`download`,n.download===!0?``:n.download),n?.cacheNonce!=null&&s.set(`cacheNonce`,String(n.cacheNonce));let c=s.toString();return{signedUrl:encodeURI(`${r.url}${o.signedURL}${c?`&${c}`:``}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{let i=await js(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),a=new URLSearchParams;n?.download&&a.set(`download`,n.download===!0?``:n.download),n?.cacheNonce!=null&&a.set(`cacheNonce`,String(n.cacheNonce));let o=a.toString();return i.map(e=>ms(ms({},e),{},{signedUrl:e.signedURL?encodeURI(`${r.url}${e.signedURL}${o?`&${o}`:``}`):null}))})}download(e,t,n){let r=typeof t?.transform==`object`&&t.transform!==null&&Object.keys(t.transform).length>0?`render/image/authenticated`:`object`,i=new URLSearchParams;t?.transform&&this.applyTransformOptsToQuery(i,t.transform),t?.cacheNonce!=null&&i.set(`cacheNonce`,String(t.cacheNonce));let a=i.toString(),o=this._getFinalPath(e);return new Bs(()=>As(this.fetch,`${this.url}/${r}/${o}${a?`?${a}`:``}`,{headers:this.headers,noResolveJson:!0},n),this.shouldThrowOnError)}async info(e){var t=this;let n=t._getFinalPath(e);return t.handleOperation(async()=>Cs(await As(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;let n=t._getFinalPath(e);try{return await Ns(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(gs(e)){let t=e instanceof _s?e.status:e instanceof vs?e.originalError?.status:void 0;if(t!==void 0&&[400,404].includes(t))return{data:!1,error:e}}throw e}}getPublicUrl(e,t){let n=this._getFinalPath(e),r=new URLSearchParams;t?.download&&r.set(`download`,t.download===!0?``:t.download),t?.transform&&this.applyTransformOptsToQuery(r,t.transform),t?.cacheNonce!=null&&r.set(`cacheNonce`,String(t.cacheNonce));let i=r.toString(),a=typeof t?.transform==`object`&&t.transform!==null&&Object.keys(t.transform).length>0?`render/image`:`object`;return{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}`)+(i?`?${i}`:``)}}}async remove(e){var t=this;return t.handleOperation(async()=>await Ps(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async purgeCache(e,t,n){var r=this;return r.handleOperation(async()=>{let i=r._getFinalPath(e),a=new URLSearchParams;t?.transformations&&a.set(`transformations`,`true`);let o=a.toString();return await Ps(r.fetch,`${r.url}/cdn/${i}${o?`?${o}`:``}`,{},{headers:r.headers},n)})}async list(e,t,n){var r=this;return r.handleOperation(async()=>{let i=t?.sortBy?ms(ms({},Vs.sortBy),t.sortBy):Vs.sortBy,a=ms(ms(ms({},Vs),t),{},{sortBy:i,prefix:e||``});return await js(r.fetch,`${r.url}/object/list/${r.bucketId}`,a,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{let r=ms({},e);return await js(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<`u`?Buffer.from(e).toString(`base64`):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,``)}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,``).replace(/\/+/g,`/`)}applyTransformOptsToQuery(e,t){return t.width&&e.set(`width`,t.width.toString()),t.height&&e.set(`height`,t.height.toString()),t.resize&&e.set(`resize`,t.resize),t.format&&e.set(`format`,t.format),t.quality&&e.set(`quality`,t.quality.toString()),e}},Ws={"X-Client-Info":`storage-js/2.110.7`},Gs=class extends Is{constructor(e,t={},n,r){let i=new URL(e);r?.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes(`storage.supabase.`)&&(i.hostname=i.hostname.replace(`supabase.`,`storage.supabase.`));let a=i.href.replace(/\/$/,``),o=ms(ms({},Ws),t);super(a,o,n,`storage`)}async listBuckets(e){var t=this;return t.handleOperation(async()=>{let n=t.listBucketOptionsToQueryString(e);return await As(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await As(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await js(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Ms(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await js(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Ps(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}async purgeBucketCache(e,t,n){var r=this;return r.handleOperation(async()=>{let i=new URLSearchParams;t?.transformations&&i.set(`transformations`,`true`);let a=i.toString();return await Ps(r.fetch,`${r.url}/cdn/${e}${a?`?${a}`:``}`,{},{headers:r.headers},n)})}listBucketOptionsToQueryString(e){let t={};return e&&(`limit`in e&&(t.limit=String(e.limit)),`offset`in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>
160?`?`+new URLSearchParams(t).toString():``}},Ks=class extends Is{constructor(e,t={},n){let r=e.replace(/\/$/,``),i=ms(ms({},Ws),t);super(r,i,n,`storage`)}async createBucket(e){var t=this;return t.handleOperation(async()=>await js(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{let n=new URLSearchParams;e?.limit!==void 0&&n.set(`limit`,e.limit.toString()),e?.offset!==void 0&&n.set(`offset`,e.offset.toString()),e?.sortColumn&&n.set(`sortColumn`,e.sortColumn),e?.sortOrder&&n.set(`sortOrder`,e.sortOrder),e?.search&&n.set(`search`,e.search);let r=n.toString(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await As(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Ps(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!ws(e))throw new hs(`Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.`);let n=new cs({baseUrl:this.url,catalogName:e,auth:{type:`custom`,getHeaders:async()=>t.headers},fetch:this.fetch}),r=this.shouldThrowOnError;return new Proxy(n,{get(e,t){let n=e[t];return typeof n==`function`?async(...t)=>{try{return{data:await n.apply(e,t),error:null}}catch(e){if(r)throw e;return{data:null,error:e}}}:n}})}},qs=class extends Is{constructor(e,t={},n){let r=e.replace(/\/$/,``),i=ms(ms({},Ws),{},{"Content-Type":`application/json`},t);super(r,i,n,`vectors`)}async createIndex(e){var t=this;return t.handleOperation(async()=>await Fs.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Fs.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Fs.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Fs.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},Js=class extends Is{constructor(e,t={},n){let r=e.replace(/\/$/,``),i=ms(ms({},Ws),{},{"Content-Type":`application/json`},t);super(r,i,n,`vectors`)}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw Error(`Vector batch size must be between 1 and 500 items`);return t.handleOperation(async()=>await Fs.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Fs.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw Error(`segmentCount must be between 1 and 16`);if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Fs.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Fs.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw Error(`Keys batch size must be between 1 and 500 items`);return t.handleOperation(async()=>await Fs.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},Ys=class extends Is{constructor(e,t={},n){let r=e.replace(/\/$/,``),i=ms(ms({},Ws),{},{"Content-Type":`application/json`},t);super(r,i,n,`vectors`)}async createBucket(e){var t=this;return t.handleOperation(async()=>await Fs.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Fs.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Fs.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Fs.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},Xs=class extends Ys{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new Zs(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},Zs=class extends qs{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,ms(ms({},e),{},{vectorBucketName:n.vectorBucketName}))}
16async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,ms(ms({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new Qs(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},Qs=class extends Js{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,ms(ms({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,ms(ms({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,ms(ms({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,ms(ms({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,ms(ms({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},$s=class extends Gs{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new Us(this.url,this.headers,e,this.fetch)}get vectors(){return new Xs(this.url+`/vector`,{headers:this.headers,fetch:this.fetch})}get analytics(){return new Ks(this.url+`/iceberg`,this.headers,this.fetch)}},ec=`2.110.7`,tc=30*1e3,nc=3*tc,rc=2*tc,ic=`http://localhost:9999`,ac=`supabase.auth.token`,oc={"X-Client-Info":`gotrue-js/${ec}`},sc=`X-Supabase-Api-Version`,cc={"2024-01-01":{timestamp:Date.parse(`2024-01-01T00:00:00.0Z`),name:`2024-01-01`}},lc=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,uc=class extends Error{constructor(e,t,n){super(e),this.__isAuthError=!0,this.name=`AuthError`,this.status=t,this.code=n}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}};function dc(e){return typeof e==`object`&&!!e&&`__isAuthError`in e}var fc=class extends uc{constructor(e,t,n){super(e,t,n),this.name=`AuthApiError`,this.status=t,this.code=n}};function pc(e){return dc(e)&&e.name===`AuthApiError`}var mc=class extends uc{constructor(e,t){super(e),this.name=`AuthUnknownError`,this.originalError=t}},hc=class extends uc{constructor(e,t,n,r){super(e,n,r),this.name=t,this.status=n}},gc=class extends hc{constructor(){super(`Auth session missing!`,`AuthSessionMissingError`,400,void 0)}};function _c(e){return dc(e)&&e.name===`AuthSessionMissingError`}var vc=class extends hc{constructor(){super(`Auth session or user missing`,`AuthInvalidToken
16ResponseError`,500,void 0)}},yc=class extends hc{constructor(e){super(e,`AuthInvalidCredentialsError`,400,void 0)}},bc=class extends hc{constructor(e,t=null){super(e,`AuthImplicitGrantRedirectError`,500,void 0),this.details=null,this.details=t}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}};function xc(e){return dc(e)&&e.name===`AuthImplicitGrantRedirectError`}var Sc=class extends hc{constructor(e,t=null){super(e,`AuthPKCEGrantCodeExchangeError`,500,void 0),this.details=null,this.details=t}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}},Cc=class extends hc{constructor(){super(`PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.`,`AuthPKCECodeVerifierMissingError`,400,`pkce_code_verifier_not_found`)}},wc=class extends hc{constructor(e,t){super(e,`AuthRetryableFetchError`,t,void 0)}};function Tc(e){return dc(e)&&e.name===`AuthRetryableFetchError`}var Ec=class extends hc{constructor(e=`Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)`){super(e,`AuthRefreshDiscardedError`,409,void 0)}};function Dc(e){return dc(e)&&e.name===`AuthRefreshDiscardedError`}var Oc=class extends hc{constructor(e,t,n){super(e,`AuthWeakPasswordError`,t,`weak_password`),this.reasons=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}},kc=class extends hc{constructor(e){super(e,`AuthInvalidJwtError`,400,`invalid_jwt`)}},Ac=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`.split(``),jc=` 17\r=`.split(``),Mc=(()=>{let e=Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<jc.length;t+=1)e[jc[t].charCodeAt(0)]=-2;for(let t=0;t<Ac.length;t+=1)e[Ac[t].charCodeAt(0)]=t;return e})();function Nc(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;)n(Ac[t.queue>>t.queuedBits-6&63]),t.queuedBits-=6;else if(t.queuedBits>0)for(t.queue<<=6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;)n(Ac[t.queue>>t.queuedBits-6&63]),t.queuedBits-=6}function Pc(e,t,n){let r=Mc[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else if(r===-2)return;else throw Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}function Fc(e){let t=[],n=e=>{t.push(String.fromCodePoint(e))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},a=e=>{Rc(e,r,n)};for(let t=0;t<e.length;t+=1)Pc(e.charCodeAt(t),i,a);return t.join(``)}function Ic(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function Lc(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){let t=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|t)+65536,n+=1}Ic(r,t)}}function Rc(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw Error(`Invalid UTF-8 sequence`);--t.utf8seq}else if(t.utf8seq>0){if(e<=127)throw Error(`Invalid UTF-8 sequence`);t.codepoint=t.codepoint<<6|e&63,--t.utf8seq,t.utf8seq===0&&n(t.codepoint)}}function zc(e){let t=[],n={queue:0,queuedBits:0},r=e=>{t.push(e)};for(let t=0;t<e.length;t+=1)Pc(e.charCodeAt(t),n,r);return new Uint8Array(t)}function Bc(e){let t=[];return Lc(e,e=>t.push(e)),new Uint8Array(t)}function Vc(e){let t=[],n={queue:0,queuedBits:0},r=e=>{t.push(e)};return e.forEach(e=>Nc(e,n,r)),Nc(null,n,r),t.join(``)}function Hc(e){return Math.round(Date.now()/1e3)+e}function Uc(){return Symbol(`auth-callback`)}var Wc=()=>typeof window<`u`&&typeof document<`u`,Gc={tested:!1,writable:!1},Kc=()=>
17{if(!Wc())return!1;try{if(typeof globalThis.localStorage!=`object`)return!1}catch{return!1}if(Gc.tested)return Gc.writable;let e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Gc.tested=!0,Gc.writable=!0}catch{Gc.tested=!0,Gc.writable=!1}return Gc.writable};function qc(e){let t={},n=new URL(e);if(n.hash&&n.hash[0]===`#`)try{new URLSearchParams(n.hash.substring(1)).forEach((e,n)=>{t[n]=e})}catch{}return n.searchParams.forEach((e,n)=>{t[n]=e}),t}var Jc=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),Yc=e=>typeof e==`object`&&!!e&&`status`in e&&`ok`in e&&`json`in e&&typeof e.json==`function`,Xc=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Zc=async(e,t)=>{let n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}},Qc=async(e,t)=>{await e.removeItem(t)},$c=class e{constructor(){this.promise=new e.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}};$c.promiseConstructor=Promise;function el(e){let t=e.split(`.`);if(t.length!==3)throw new kc(`Invalid JWT structure`);for(let e=0;e<t.length;e++)if(!lc.test(t[e]))throw new kc(`JWT not in base64url format`);return{header:JSON.parse(Fc(t[0])),payload:JSON.parse(Fc(t[1])),signature:zc(t[2]),raw:{header:t[0],payload:t[1]}}}async function tl(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function nl(e,t){return new Promise((n,r)=>{(async()=>{for(let i=0;i<1/0;i++)try{let r=await e(i);if(!t(i,null,r)){n(r);return}}catch(e){if(!t(i,e)){r(e);return}}})()})}function rl(e){return(`0`+e.toString(16)).substr(-2)}function il(){let e=new Uint32Array(56);if(typeof crypto>`u`){let e=``;for(let t=0;t<56;t++)e+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~`.charAt(Math.floor(Math.random()*66));return e}return crypto.getRandomValues(e),Array.from(e,rl).join(``)}async function al(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest(`SHA-256`,t),r=new Uint8Array(n);return Array.from(r).map(e=>String.fromCharCode(e)).join(``)}async function ol(e){if(!(typeof crypto<`u`&&crypto.subtle!==void 0&&typeof TextEncoder<`u`))return console.warn(`WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256.`),e;let t=await al(e);return btoa(t).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}async function sl(e,t,n=!1){let r=il(),i=r;n&&(i+=`/recovery`),await Xc(e,`${t}-code-verifier`,i);let a=await ol(r);return[a,r===a?`plain`:`s256`]}var cl=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function ll(e){let t=e.headers.get(sc);if(!t||!t.match(cl))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function ul(e){if(!e)throw Error(`Missing exp claim`);if(e<=Math.floor(Date.now()/1e3))throw Error(`JWT has expired`)}function dl(e){switch(e){case`RS256`:return{name:`RSASSA-PKCS1-v1_5`,hash:{name:`SHA-256`}};case`ES256`:return{name:`ECDSA`,namedCurve:`P-256`,hash:{name:`SHA-256`}};default:throw Error(`Invalid alg claim`)}}var fl=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function pl(e){if(!fl.test(e))throw Error(`@supabase/auth-js: Expected parameter to be UUID but is not`)}function ml(e){if(!e.passkey)throw Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function hl(){return new Proxy({},{get:(e,t)=>{if(t===`__isUserNotAvailableProxy`)return!0;if(typeof t==`symbol`){let e=t.toString();if(e===`Symbol(Symbol.toPrimitive)`||e===`Symbol(Symbol.toStringTag)`||e===`Symbol(util.inspect.custom)`)return}throw Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${t}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,t)=>{throw Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,t)=>{throw Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function gl(e,t){return new Proxy(e,{get:(e,n,r)=>{if(n===`__isInsecureUserWarningProxy`)return!0;
17if(typeof n==`symbol`){let t=n.toString();if(t===`Symbol(Symbol.toPrimitive)`||t===`Symbol(Symbol.toStringTag)`||t===`Symbol(util.inspect.custom)`||t===`Symbol(nodejs.util.inspect.custom)`)return Reflect.get(e,n,r)}return!t.value&&typeof n==`string`&&(console.warn(`Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.`),t.value=!0),Reflect.get(e,n,r)}})}function _l(e){return JSON.parse(JSON.stringify(e))}var vl=e=>{if(typeof e==`object`&&e){let t=e;if(typeof t.msg==`string`)return t.msg;if(typeof t.message==`string`)return t.message;if(typeof t.error_description==`string`)return t.error_description;if(typeof t.error==`string`)return t.error}return JSON.stringify(e)},yl=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function bl(e){if(!Yc(e))throw new wc(vl(e),0);if(yl.includes(e.status))throw new wc(vl(e),e.status);let t;try{t=await e.json()}catch(e){throw new mc(vl(e),e)}let n,r=ll(e);if(r&&r.getTime()>=cc[`2024-01-01`].timestamp&&typeof t==`object`&&t&&typeof t.code==`string`?n=t.code:typeof t==`object`&&t&&typeof t.error_code==`string`&&(n=t.error_code),!n){if(typeof t==`object`&&t&&typeof t.weak_password==`object`&&t.weak_password&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.reasons.reduce((e,t)=>e&&typeof t==`string`,!0))throw new Oc(vl(t),e.status,t.weak_password.reasons)}else if(n===`weak_password`)throw new Oc(vl(t),e.status,t.weak_password?.reasons||[]);else if(n===`session_not_found`)throw new gc;throw new fc(vl(t),e.status||500,n)}var xl=(e,t,n,r)=>{let i={method:e,headers:t?.headers||{}};return e===`GET`?i:(i.headers=Object.assign({"Content-Type":`application/json;charset=UTF-8`},t?.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function Sl(e,t,n,r){let i=Object.assign({},r?.headers);i[`X-Supabase-Api-Version`]||(i[sc]=cc[`2024-01-01`].name),r?.jwt&&(i.Authorization=`Bearer ${r.jwt}`);let a=r?.query??{};r?.redirectTo&&(a.redirect_to=r.redirectTo);let o=await Cl(e,t,n+(Object.keys(a).length?`?`+new URLSearchParams(a).toString():``),{headers:i,noResolveJson:r?.noResolveJson},{},r?.body);return r?.xform?r?.xform(o):{data:Object.assign({},o),error:null}}async function Cl(e,t,n,r,i,a){let o=xl(t,r,i,a),s;try{s=await e(n,Object.assign({},o))}catch(e){throw console.error(e),new wc(vl(e),0)}if(s.ok||await bl(s),r?.noResolveJson)return s;try{return await s.json()}catch(e){await bl(e)}}function wl(e){let t=null;Al(e)&&(t=Object.assign({},e),e.expires_at||(t.expires_at=Hc(e.expires_in)));let n=e.user??(typeof e?.id==`string`?e:null);return{data:{session:t,user:n},error:null}}function Tl(e){let t=wl(e);return!t.error&&e.weak_password&&typeof e.weak_password==`object`&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message==`string`&&e.weak_password.reasons.reduce((e,t)=>e&&typeof t==`string`,!0)&&(t.data.weak_password=e.weak_password),t}function El(e){return{data:{user:e.user??e},error:null}}function Dl(e){return{data:e,error:null}}function Ol(e){let{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a}=e,o=He(e,[`action_link`,`email_otp`,`hashed_token`,`redirect_to`,`verification_type`]);return{data:{properties:{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a},user:Object.assign({},o)},error:null}}function kl(e){return e}function Al(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}var jl=[`global`,`local`,`others`],Ml=class{constructor({url:e=``,headers:t={},fetch:n,experimental:r}){this.url=e,this.headers=t,this.fetch=Jc(n),this.experimental=r??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(e,t=jl[0]){if(jl.indexOf(t)<0)throw Error(`@supabase/auth-js: Parameter scope must be one of ${jl.join(`, `)}`);try{return await Sl(this.fetch,`POST`,`${this.url}/logout?scope=${t}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(e){if(dc(e))return{data:null,error:e};throw e}}async inviteUserByEmail(e,t={}){try{return await Sl(this.fetch,`POST`,`${this.url}/invite`,{body:{email:e,data:t.data},headers:this.headers,redirectTo:t.redirectTo,xform:El})}catch(e){if(dc(e))return{data:{user:null},error:e};throw e}}async generateLink(e){try{let{options:t}=e,n=He(e,[`options`]),r=Object.assign(Object.assign({},n),t);
17return`newEmail`in n&&(r.new_email=n?.newEmail,delete r.newEmail),await Sl(this.fetch,`POST`,`${this.url}/admin/generate_link`,{body:r,headers:this.headers,xform:Ol,redirectTo:t?.redirectTo})}catch(e){if(dc(e))return{data:{properties:null,user:null},error:e};throw e}}async createUser(e){try{return await Sl(this.fetch,`POST`,`${this.url}/admin/users`,{body:e,headers:this.headers,xform:El})}catch(e){if(dc(e))return{data:{user:null},error:e};throw e}}async listUsers(e){try{let t={nextPage:null,lastPage:0,total:0},n=await Sl(this.fetch,`GET`,`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(e?.page)?.toString()??``,per_page:(e?.perPage)?.toString()??``},xform:kl});if(n.error)throw n.error;let r=await n.json(),i=n.headers.get(`x-total-count`)??0,a=n.headers.get(`link`)?.split(`,`)??[];return a.length>0&&(a.forEach(e=>{let n=parseInt(e.split(`;`)[0].split(`=`)[1].substring(0,1)),r=JSON.parse(e.split(`;`)[1].split(`=`)[1]);t[`${r}Page`]=n}),t.total=parseInt(i)),{data:Object.assign(Object.assign({},r),t),error:null}}catch(e){if(dc(e))return{data:{users:[]},error:e};throw e}}async getUserById(e){pl(e);try{return await Sl(this.fetch,`GET`,`${this.url}/admin/users/${e}`,{headers:this.headers,xform:El})}catch(e){if(dc(e))return{data:{user:null},error:e};throw e}}async updateUserById(e,t){pl(e);try{return await Sl(this.fetch,`PUT`,`${this.url}/admin/users/${e}`,{body:t,headers:this.headers,xform:El})}catch(e){if(dc(e))return{data:{user:null},error:e};throw e}}async deleteUser(e,t=!1){pl(e);try{return await Sl(this.fetch,`DELETE`,`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:t},xform:El})}catch(e){if(dc(e))return{data:{user:null},error:e};throw e}}async _listFactors(e){pl(e.userId);try{let{data:t,error:n}=await Sl(this.fetch,`GET`,`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:e=>({data:{factors:e},error:null})});return{data:t,error:n}}catch(e){if(dc(e))return{data:null,error:e};throw e}}async _deleteFactor(e){pl(e.userId),pl(e.id);try{return{data:await Sl(this.fetch,`DELETE`,`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(e){if(dc(e))return{data:null,error:e};throw e}}async _listOAuthClients(e){try{let t={nextPage:null,lastPage:0,total:0},n=await Sl(this.fetch,`GET`,`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(e?.page)?.toString()??``,per_page:(e?.perPage)?.toString()??``},xform:kl});if(n.error)throw n.error;let r=await n.json(),i=n.headers.get(`x-total-count`)??0,a=n.headers.get(`link`)?.split(`,`)??[];return a.length>0&&(a.forEach(e=>{let n=parseInt(e.split(`;`)[0].split(`=`)[1].substring(0,1)),r=JSON.parse(e.split(`;`)[1].split(`=`)[1]);t[`${r}Page`]=n}),t.total=parseInt(i)),{data:Object.assign(Object.assign({},r),t),error:null}}catch(e){if(dc(e))return{data:{clients:[]},error:e};throw e}}async _createOAuthClient(e){try{return await Sl(this.fetch,`POST`,`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(dc(e))return{data:null,error:e};throw e}}async _getOAuthClient(e){try{return await Sl(this.fetch,`GET`,`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(dc(e))return{data:null,error:e};throw e}}async _updateOAuthClient(e,t){try{return await Sl(this.fetch,`PUT`,`${this.url}/admin/oauth/clients/${e}`,{body:t,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(dc(e))return{data:null,error:e};throw e}}async _deleteOAuthClient(e){try{return await Sl(this.fetch,`DELETE`,`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(e){if(dc(e))return{data:null,error:e};throw e}}async _regenerateOAuthClientSecret(e){try{return await Sl(this.fetch,`POST`,`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(dc(e))return{data:null,error:e};throw e}}async _listCustomProviders(e){try{let t={};return e?.type&&(t.type=e.type),await Sl(this.fetch,`GET`,`${this.url}/admin/custom-providers`,{headers:this.headers,query:t,xform:e=>({data:{providers:e?.providers??[]},error:null})})}catch(e){if(dc(e))return{data:{providers:[]},error:e};throw e}}async _createCustomProvider(e){try{return await Sl(this.fetch,`POST`,`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(dc(e))return{data:null,error:e};throw e}}async _getCustomProvider(e){try{return await Sl(this.fetch,`GET`,`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(dc(e))return{data:null,error:e};throw e}}async _updateCustomProvider(e,t){try{return await Sl(this.fetch,`PUT`,`${this.url}/admin/custom-providers/${e}`,{body:t,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(dc(e))return{data:null,error:e};throw e}}async _deleteCustomProvider(e){try{return await Sl(this.fetch,`DELETE`,`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(e){if(dc(e))return{data:null,error:e};throw e}}async _adminListPasskeys(e){ml(this.experimental),pl(e.userId);try{return await Sl(this.fetch,`GET`,`${this.url}/admin/users/${e.userId}/passkeys`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(dc(e))return{data:null,error:e};throw e}}async _adminDeletePasskey(e){ml(this.experimental),pl(e.userId),pl(e.passkeyId);try{return await Sl(this.fetch,`DELETE`,`${this.url}/admin/users/${e.userId}/passkeys/${e.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(e){if(dc(e))return{data:null,error:e};throw e}}};function Nl(e={}){return{getItem:t=>
17e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}globalThis&&Kc()&&globalThis.localStorage&&globalThis.localStorage.getItem(`supabase.gotrue-js.locks.debug`);var Pl=class extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}};function Fl(){if(typeof globalThis!=`object`)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<`u`&&(self.globalThis=self)}}function Il(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function Ll(e){return parseInt(e,16)}function Rl(e){let t=new TextEncoder().encode(e);return`0x`+Array.from(t,e=>e.toString(16).padStart(2,`0`)).join(``)}function zl(e){let{chainId:t,domain:n,expirationTime:r,issuedAt:i=new Date,nonce:a,notBefore:o,requestId:s,resources:c,scheme:l,uri:u,version:d}=e;if(!Number.isInteger(t))throw Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${t}`);if(!n)throw Error(`@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.`);if(a&&a.length<8)throw Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!u)throw Error(`@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.`);if(d!==`1`)throw Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${d}`);if(e.statement?.includes(` 18`))throw Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`);let f=Il(e.address),p=`${l?`${l}://${n}`:n} wants you to sign in with your Ethereum account:\n${f}\n\n${e.statement?`${e.statement}\n`:``}`,m=`URI: ${u}\nVersion: ${d}\nChain ID: ${t}${a?`\nNonce: ${a}`:``}\nIssued At: ${i.toISOString()}`;if(r&&(m+=`\nExpiration Time: ${r.toISOString()}`),o&&(m+=`\nNot Before: ${o.toISOString()}`),s&&(m+=`\nRequest ID: ${s}`),c){let e=` 19Resources:`;for(let t of c){if(!t||typeof t!=`string`)throw Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${t}`);e+=`\n- ${t}`}m+=e}return`${p}\n${m}`}var Bl=class extends Error{constructor({message:e,code:t,cause:n,name:r}){super(e,{cause:n}),this.__isWebAuthnError=!0,this.name=r??(n instanceof Error?n.name:void 0)??`Unknown Error`,this.code=t}toJSON(){return{name:this.name,message:this.message,code:this.code}}},Vl=class extends Bl{constructor(e,t){super({code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:t,message:e}),this.name=`WebAuthnUnknownError`,this.originalError=t}};function Hl({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new Bl({message:`Registration ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`ConstraintError`){if(n.authenticatorSelection?.requireResidentKey===!0)return new Bl({message:`Discoverable credentials were required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT`,cause:e});if(t.mediation===`conditional`&&n.authenticatorSelection?.userVerification===`required`)return new Bl({message:`User verification was required during automatic registration but it could not be performed`,code:`ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE`,cause:e});if(n.authenticatorSelection?.userVerification===`required`)return new Bl({message:`User verification was required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT`,cause:e})}else if(e.name===`InvalidStateError`)return new Bl({message:`The authenticator was previously registered`,code:`ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED`,cause:e});else if(e.name===`NotAllowedError`)return new Bl({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`NotSupportedError`)return n.pubKeyCredParams.filter(e=>e.type===`public-key`).length===0?new Bl({message:`No entry in pubKeyCredParams was of type "public-key"`,code:`ERROR_MALFORMED_PUBKEYCREDPARAMS`,cause:e}):new Bl({message:`No available authenticator supported any of the specified pubKeyCredParams algorithms`,code:`ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG`,cause:e});else if(e.name===`SecurityError`){let t=window.location.hostname;if(!Yl(t))return new Bl({message:`${window.location.hostname}
19 is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rp.id!==t)return new Bl({message:`The RP ID "${n.rp.id}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`TypeError`){if(n.user.id.byteLength<1||n.user.id.byteLength>64)return new Bl({message:`User ID was not between 1 and 64 characters`,code:`ERROR_INVALID_USER_ID_LENGTH`,cause:e})}else if(e.name===`UnknownError`)return new Bl({message:`The authenticator was unable to process the specified options, or could not create a new credential`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return new Bl({message:`a Non-Webauthn related error has occurred`,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e})}function Ul({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new Bl({message:`Authentication ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`NotAllowedError`)return new Bl({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`SecurityError`){let t=window.location.hostname;if(!Yl(t))return new Bl({message:`${window.location.hostname} is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rpId!==t)return new Bl({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`UnknownError`)return new Bl({message:`The authenticator was unable to process the specified options, or could not create a new assertion signature`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return new Bl({message:`a Non-Webauthn related error has occurred`,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e})}var Wl=new class{createNewAbortSignal(){if(this.controller){let e=Error(`Cancelling existing WebAuthn API call for new one`);e.name=`AbortError`,this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error(`Manually cancelling existing WebAuthn API call`);e.name=`AbortError`,this.controller.abort(e),this.controller=void 0}}};function Gl(e){if(!e)throw Error(`Credential creation options are required`);if(typeof PublicKeyCredential<`u`&&`parseCreationOptionsFromJSON`in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON==`function`)return PublicKeyCredential.parseCreationOptionsFromJSON(e);let{challenge:t,user:n,excludeCredentials:r}=e,i=He(e,[`challenge`,`user`,`excludeCredentials`]),a=zc(t).buffer,o=Object.assign(Object.assign({},n),{id:zc(n.id).buffer}),s=Object.assign(Object.assign({},i),{challenge:a,user:o});if(r&&r.length>0){s.excludeCredentials=Array(r.length);for(let e=0;e<r.length;e++){let t=r[e];s.excludeCredentials[e]=Object.assign(Object.assign({},t),{id:zc(t.id).buffer,type:t.type||`public-key`,transports:t.transports})}}return s}function Kl(e){if(!e)throw Error(`Credential request options are required`);if(typeof PublicKeyCredential<`u`&&`parseRequestOptionsFromJSON`in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON==`function`)return PublicKeyCredential.parseRequestOptionsFromJSON(e);let{challenge:t,allowCredentials:n}=e,r=He(e,[`challenge`,`allowCredentials`]),i=zc(t).buffer,a=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){a.allowCredentials=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e];a.allowCredentials[e]=Object.assign(Object.assign({},t),{id:zc(t.id).buffer,type:t.type||`public-key`,transports:t.transports})}}return a}function ql(e){if(`toJSON`in e&&typeof e.toJSON==`function`)return e.toJSON();let t=e;return{id:e.id,rawId:e.id,response:{attestationObject:Vc(new Uint8Array(e.response.attestationObject)),clientDataJSON:Vc(new Uint8Array(e.response.clientDataJSON))},type:`public-key`,clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:t.authenticatorAttachment??void 0}}function Jl(e){if(`toJSON`in e&&typeof e.toJSON==`function`)return e.toJSON();let t=e,n=e.getClientExtensionResults(),r=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Vc(new Uint8Array(r.authenticatorData)),clientDataJSON:Vc(new Uint8Array(r.clientDataJSON)),signature:Vc(new Uint8Array(r.signature)),userHandle:r.userHandle?Vc(new Uint8Array(r.userHandle)):void 0},type:`public-key`,clientExtensionResults:n,authenticatorAttachment:t.authenticatorAttachment??void 0}}function Yl(e){return e===`localhost`||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Xl(){return!!(Wc()&&`PublicKeyCredential`in window&&window.PublicKeyCredential&&`credentials`in navigator&&typeof(navigator==null?void 0:navigator.credentials)?.create==`function`&&typeof(navigator==null?void 0:navigator.credentials)?.get==`function`)}async function Zl(e){try{let t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Vl(`Browser returned unexpected credential type`,t)}:{data:null,error:new Vl(`Empty credential response`,t)}}
19catch(t){return{data:null,error:Hl({error:t,options:e})}}}async function Ql(e){try{let t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Vl(`Browser returned unexpected credential type`,t)}:{data:null,error:new Vl(`Empty credential response`,t)}}catch(t){return{data:null,error:Ul({error:t,options:e})}}}var $l={hints:[`security-key`],authenticatorSelection:{authenticatorAttachment:`cross-platform`,requireResidentKey:!1,userVerification:`preferred`,residentKey:`discouraged`},attestation:`direct`},eu={userVerification:`preferred`,hints:[`security-key`],attestation:`direct`};function tu(...e){let t=e=>typeof e==`object`&&!!e&&!Array.isArray(e),n=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),r={};for(let i of e)if(i)for(let e in i){let a=i[e];if(a!==void 0)if(Array.isArray(a))r[e]=a;else if(n(a))r[e]=a;else if(t(a)){let n=r[e];t(n)?r[e]=tu(n,a):r[e]=tu(a)}else r[e]=a}return r}function nu(e,t){return tu($l,e,t||{})}function ru(e,t){return tu(eu,e,t||{})}var iu=class{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:`webauthn`}))}async _challenge({factorId:e,webauthn:t,friendlyName:n,signal:r},i){try{let{data:a,error:o}=await this.client.mfa.challenge({factorId:e,webauthn:t});if(!a)return{data:null,error:o};let s=r??Wl.createNewAbortSignal();if(a.webauthn.type===`create`){let{user:e}=a.webauthn.credential_options.publicKey;if(!e.name){let t=n;if(t)e.name=`${e.id}:${t}`;else{let t=(await this.client.getUser()).data.user,n=t?.user_metadata?.name||t?.email||t?.id||`User`;e.name=`${e.id}:${n}`}}e.displayName||=e.name}switch(a.webauthn.type){case`create`:{let{data:t,error:n}=await Zl({publicKey:nu(a.webauthn.credential_options.publicKey,i?.create),signal:s});return t?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:t}},error:null}:{data:null,error:n}}case`request`:{let t=ru(a.webauthn.credential_options.publicKey,i?.request),{data:n,error:r}=await Ql(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:t,signal:s}));return n?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:n}},error:null}:{data:null,error:r}}}}catch(e){return dc(e)?{data:null,error:e}:{data:null,error:new mc(`Unexpected error in challenge`,e)}}}async _verify({challengeId:e,factorId:t,webauthn:n}){return this.client.mfa.verify({factorId:t,challengeId:e,webauthn:n})}async _authenticate({factorId:e,webauthn:{rpId:t=typeof window<`u`?window.location.hostname:void 0,rpOrigins:n=typeof window<`u`?[window.location.origin]:void 0,signal:r}={}},i){if(!t)return{data:null,error:new uc(`rpId is required for WebAuthn authentication`)};try{if(!Xl())return{data:null,error:new mc(`Browser does not support WebAuthn`,null)};let{data:a,error:o}=await this.challenge({factorId:e,webauthn:{rpId:t,rpOrigins:n},signal:r},{request:i});if(!a)return{data:null,error:o};let{webauthn:s}=a;return this._verify({factorId:e,challengeId:a.challengeId,webauthn:{type:s.type,rpId:t,rpOrigins:n,credential_response:s.credential_response}})}catch(e){return dc(e)?{data:null,error:e}:{data:null,error:new mc(`Unexpected error in authenticate`,e)}}}async _register({friendlyName:e,webauthn:{rpId:t=typeof window<`u`?window.location.hostname:void 0,rpOrigins:n=typeof window<`u`?[window.location.origin]:void 0,signal:r}={}},i){if(!t)return{data:null,error:new uc(`rpId is required for WebAuthn registration`)};try{if(!Xl())return{data:null,error:new mc(`Browser does not support WebAuthn`,null)};let{data:a,error:o}=await this._enroll({friendlyName:e});if(!a)return await this.client.mfa.listFactors().then(t=>t.data?.all.find(t=>t.factor_type===`webauthn`&&t.friendly_name===e&&t.status!==`unverified`)).then(e=>e?this.client.mfa.unenroll({factorId:e?.id}):void 0),{data:null,error:o};let{data:s,error:c}=await this._challenge({factorId:a.id,friendlyName:a.friendly_name,webauthn:{rpId:t,rpOrigins:n},signal:r},{create:i});return s?this._verify({factorId:a.id,challengeId:s.challengeId,webauthn:{rpId:t,rpOrigins:n,type:s.webauthn.type,credential_response:s.webauthn.credential_response}}):{data:null,error:c}}catch(e){return dc(e)?{data:null,error:e}:{data:null,error:new mc(`Unexpected error in register`,e)}}}};Fl();var au={url:ic,storageKey:ac,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:oc,flowType:`implicit`,debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},ou={},su=class e{get jwks(){return ou[this.storageKey]?.jwks??{keys:[]}}set jwks(e){ou[this.storageKey]=Object.assign(Object.assign({},ou[this.storageKey]),{jwks:e})}get jwks_cached_at(){return ou[this.storageKey]?.cachedAt??-(2**53-1)}set jwks_cached_at(e){ou[this.storageKey]=Object.assign(Object.assign({},ou[this.storageKey]),{cachedAt:e})}constructor(t){var n;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this._pendingInitNotifications=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;let r=Object.assign(Object.assign({},au),t);if(this.storageKey=r.storageKey,this.instanceID=e.nextInstanceID[this.storageKey]??0,e.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!r.debug,typeof r.debug==`function`&&(this.logger=r.debug),this.instanceID>0&&Wc()){let e=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(e),this.logDebugMessages&&console.trace(e)}if(this.persistSession=r.persistSession,this.autoRefreshToken=r.autoRefreshToken,this.experimental=r.experimental??{},this.admin=new Ml({url:r.url,headers:r.headers,fetch:r.fetch,experimental:this.experimental}),this.url=r.url,this.headers=r.headers,this.fetch=Jc(r.fetch),this.detectSessionInUrl=r.detectSessionInUrl,this.flowType=r.flowType,this.hasCustomAuthorizationHeader=r.hasCustomAuthorizationHeader,this.throwOnError=r.throwOnError,this.lockAcquireTimeout=r.lockAcquireTimeout,r.lock!=null&&(this.lock=r.lock),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=-(2**53-1)),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new iu(this)}
19,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(r.storage?this.storage=r.storage:Kc()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Nl(this.memoryStorage)),r.userStorage&&(this.userStorage=r.userStorage)):(this.memoryStorage={},this.storage=Nl(this.memoryStorage)),Wc()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(e){console.error(`Failed to create a new BroadcastChannel, multi-tab state changes will not be available`,e)}(n=this.broadcastChannel)==null||n.addEventListener(`message`,async e=>{this._debug(`received broadcast notification from other tab or client`,e),(e.data.event===`TOKEN_REFRESHED`||e.data.event===`SIGNED_IN`)&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(e.data.event,e.data.session,!1)}catch(e){this._debug(`#broadcastChannel`,`error`,e)}})}r.skipAutoInitialize||this.initialize().catch(e=>{this._debug(`#initialize()`,`error`,e)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${ec}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){if(this.initializePromise)return await this.initializePromise;this._pendingInitNotifications=[],this.initializePromise=(async()=>this.lock==null?await this._initialize():await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))();let e=await this.initializePromise,t=this._pendingInitNotifications??[];this._pendingInitNotifications=null;for(let e of t)await this._notifyAllSubscribers(e.event,e.session,e.broadcast);return e}async _initialize(){try{let e={},t=`none`;if(Wc()&&(e=qc(window.location.href),this._isImplicitGrantCallback(e)?t=`implicit`:await this._isPKCECallback(e)&&(t=`pkce`)),Wc()&&this.detectSessionInUrl&&t!==`none`){let{data:n,error:r}=await this._getSessionFromURL(e,t);if(r){if(this._debug(`#_initialize()`,`error detecting session from URL`,r),xc(r)){let e=r.details?.code;if(e===`identity_already_exists`||e===`identity_not_found`||e===`single_identity_not_deletable`)return{error:r}}return{error:r}}let{session:i,redirectType:a}=n;return this._debug(`#_initialize()`,`detected session in URL`,i,`redirect type`,a),await this._saveSession(i),setTimeout(async()=>{a===`recovery`?await this._notifyAllSubscribers(`PASSWORD_RECOVERY`,i):await this._notifyAllSubscribers(`SIGNED_IN`,i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(e){return dc(e)?this._returnResult({error:e}):this._returnResult({error:new mc(`Unexpected error during initialization`,e)})}finally{await this._handleVisibilityChange(),this._debug(`#_initialize()`,`end`)}}async signInAnonymously(e){try{let{data:t,error:n}=await Sl(this.fetch,`POST`,`${this.url}/signup`,{headers:this.headers,body:{data:e?.options?.data??{},gotrue_meta_security:{captcha_token:e?.options?.captchaToken}},xform:wl});if(n||!t)return this._returnResult({data:{user:null,session:null},error:n});let r=t.session,i=t.user;return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers(`SIGNED_IN`,r)),this._returnResult({data:{user:i,session:r},error:null})}catch(e){if(dc(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signUp(e){try{let t;if(`email`in e){let{email:n,password:r,options:i}=e,a=null,o=null;this.flowType===`pkce`&&([a,o]=await sl(this.storage,this.storageKey)),t=await Sl(this.fetch,`POST`,`${this.url}/signup`,{headers:this.headers,redirectTo:i?.emailRedirectTo,body:{email:n,password:r,data:i?.data??{},gotrue_meta_security:{captcha_token:i?.captchaToken},code_challenge:a,code_challenge_method:o},xform:wl})}else if(`phone`in e){let{phone:n,password:r,options:i}=e;t=await Sl(this.fetch,`POST`,`${this.url}/signup`,{headers:this.headers,body:{phone:n,password:r,data:i?.data??{},channel:i?.channel??`sms`,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:wl})}else throw new yc(`You must provide either an email or phone number and a password`);let{data:n,error:r}=t;if(r||!n)return await Qc(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:r});let i=n.session,a=n.user;return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers(`SIGNED_IN`,i)),this._returnResult({data:{user:a,session:i},error:null})}catch(e){if(await Qc(this.storage,`${this.storageKey}-code-verifier`),dc(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithPassword(e){try{let t;if(`email`in e){let{email:n,password:r,options:i}=e;t=await Sl(this.fetch,`POST`,`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:n,password:r,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:Tl})}else if(`phone`in e){let{phone:n,password:r,options:i}=e;t=await Sl(this.fetch,`POST`,`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:n,password:r,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:Tl})}else throw new yc(`You must provide either an email or phone number and a password`);let{data:n,error:r}=t;if(r)return this._returnResult({data:{user:null,session:null},error:r});if(!n||!n.session||!n.user){let e=new vc;return this._returnResult({data:{user:null,session:null},error:e})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers(`SIGNED_IN`,n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:r})}catch(e){if(dc(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithOAuth(e){return await this._handleProviderSignIn(e.provider,{redirectTo:e.options?.redirectTo,scopes:e.options?.scopes,queryParams:e.options?.queryParams,skipBrowserRedirect:e.options?.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this.lock==null?this._exchangeCodeForSession(e):this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){let{chain:t}=e;switch(t){case`ethereum`:return await this.signInWithEthereum(e);case`solana`:return await this.signInWithSolana(e);default:throw Error(`@supabase/auth-js: Unsupported chain "${t}"`)}}async signInWithEthereum(e){let t,n;if(`message`in e)t=e.message,n=e.signature;else{let{chain:r,wallet:i,statement:a,options:o}=e,s;if(!Wc()){if(typeof i!=`object`||!o?.url)throw Error(`@supabase/auth-js: Both wallet and url must be specified in non-browser environments.`);s=i}else if(typeof i==`object`)s=i;else{let e=window;if(`ethereum`in e&&typeof e.ethereum==`object`&&`request`in e.ethereum&&typeof e.ethereum.request==`function`)s=e.ethereum;else throw Error(`@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.`)}let c=new URL(o?.url??window.location.href),l=await s.request({method:`eth_requestAccounts`}).then(e=>e).catch(()=>{throw Error(`@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid`)});if(!l||l.length===0)throw Error(`@supabase/auth-js: No accounts available. Please ensure the wallet is connected.`);let u=Il(l[0]),d=o?.signInWithEthereum?.chainId;d||=Ll(await s.request({method:`eth_chainId`})),t=zl({domain:c.host,address:u,statement:a,uri:c.href,version:`1`,chainId:d,nonce:o?.signInWithEthereum?.nonce,issuedAt:o?.signInWithEthereum?.issuedAt??new Date,expirationTime:o?.signInWithEthereum?.expirationTime,notBefore:o?.signInWithEthereum?.notBefore,requestId:o?.signInWithEthereum?.requestId,resources:o?.signInWithEthereum?.resources}),n=await s.request({method:`personal_sign`,params:[Rl(t),u]})}try{let{data:r,error:i}=await Sl(this.fetch,`POST`,`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:`ethereum`,message:t,signature:n},e.options?.captchaToken?{gotrue_meta_security:{captcha_token:e.options?.captchaToken}}:null),xform:wl});if(i)throw i;if(!r||!r.session||!r.user){let e=new vc;return this._returnResult({data:{user:null,session:null},error:e})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers(`SIGNED_IN`,r.session)),this._returnResult({data:Object.assign({},r),error:i})}catch(e){if(dc(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithSolana(e){let t,n;if(`message`in e)t=e.message,n=e.signature;else{let{chain:r,wallet:i,statement:a,options:o}=e,s;if(!Wc()){if(typeof i!=`object`||!o?.url)throw Error(`@supabase/auth-js: Both wallet and url must be specified in non-browser environments.`);s=i}else if(typeof i==`object`)s=i;else{let e=window;if(`solana`in e&&typeof e.solana==`object`&&(`signIn`in e.solana&&typeof e.solana.signIn==`function`||`signMessage`in e.
19solana&&typeof e.solana.signMessage==`function`))s=e.solana;else throw Error(`@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.`)}let c=new URL(o?.url??window.location.href);if(`signIn`in s&&s.signIn){let e=await s.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},o?.signInWithSolana),{version:`1`,domain:c.host,uri:c.href}),a?{statement:a}:null)),r;if(Array.isArray(e)&&e[0]&&typeof e[0]==`object`)r=e[0];else if(e&&typeof e==`object`&&`signedMessage`in e&&`signature`in e)r=e;else throw Error(`@supabase/auth-js: Wallet method signIn() returned unrecognized value`);if(`signedMessage`in r&&`signature`in r&&(typeof r.signedMessage==`string`||r.signedMessage instanceof Uint8Array)&&r.signature instanceof Uint8Array)t=typeof r.signedMessage==`string`?r.signedMessage:new TextDecoder().decode(r.signedMessage),n=r.signature;else throw Error(`@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields`)}else{if(!(`signMessage`in s)||typeof s.signMessage!=`function`||!(`publicKey`in s)||typeof s!=`object`||!s.publicKey||!(`toBase58`in s.publicKey)||typeof s.publicKey.toBase58!=`function`)throw Error(`@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API`);t=[`${c.host} wants you to sign in with your Solana account:`,s.publicKey.toBase58(),...a?[``,a,``]:[``],`Version: 1`,`URI: ${c.href}`,`Issued At: ${o?.signInWithSolana?.issuedAt??new Date().toISOString()}`,...o?.signInWithSolana?.notBefore?[`Not Before: ${o.signInWithSolana.notBefore}`]:[],...o?.signInWithSolana?.expirationTime?[`Expiration Time: ${o.signInWithSolana.expirationTime}`]:[],...o?.signInWithSolana?.chainId?[`Chain ID: ${o.signInWithSolana.chainId}`]:[],...o?.signInWithSolana?.nonce?[`Nonce: ${o.signInWithSolana.nonce}`]:[],...o?.signInWithSolana?.requestId?[`Request ID: ${o.signInWithSolana.requestId}`]:[],...o?.signInWithSolana?.resources?.length?[`Resources`,...o.signInWithSolana.resources.map(e=>`- ${e}`)]:[]].join(` 20`);let e=await s.signMessage(new TextEncoder().encode(t),`utf8`);if(!e||!(e instanceof Uint8Array))throw Error(`@supabase/auth-js: Wallet signMessage() API returned an recognized value`);n=e}}try{let{data:r,error:i}=await Sl(this.fetch,`POST`,`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:`solana`,message:t,signature:Vc(n)},e.options?.captchaToken?{gotrue_meta_security:{captcha_token:e.options?.captchaToken}}:null),xform:wl});if(i)throw i;if(!r||!r.session||!r.user){let e=new vc;return this._returnResult({data:{user:null,session:null},error:e})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers(`SIGNED_IN`,r.session)),this._returnResult({data:Object.assign({},r),error:i})}catch(e){if(dc(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async _exchangeCodeForSession(e){let[t,n]=(await Zc(this.storage,`${this.storageKey}-code-verifier`)??``).split(`/`);try{if(!t&&this.flowType===`pkce`)throw new Cc;let{data:r,error:i}=await Sl(this.fetch,`POST`,`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:t},xform:wl});if(await Qc(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!r||!r.session||!r.user){let e=new vc;return this._returnResult({data:{user:null,session:null,redirectType:null},error:e})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers(n===`recovery`?`PASSWORD_RECOVERY`:`SIGNED_IN`,r.session)),this._returnResult({data:Object.assign(Object.assign({},r),{redirectType:n??null}),error:i})}catch(e){if(await Qc(this.storage,`${this.storageKey}-code-verifier`),dc(e))return this._returnResult({data:{user:null,session:null,redirectType:null},error:e});throw e}}async signInWithIdToken(e){try{let{options:t,provider:n,token:r,access_token:i,nonce:a}=e,{data:o,error:s}=await Sl(this.fetch,`POST`,`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:r,access_token:i,nonce:a,gotrue_meta_security:{captcha_token:t?.captchaToken}},xform:wl});if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!o||!o.session||!o.user){let e=new vc;return this._returnResult({data:{user:null,session:null},error:e})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers(`SIGNED_IN`,o.session)),this._returnResult({data:o,error:s})}catch(e){if(dc(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithOtp(e){try{if(`email`in e){let{email:t,options:n}=e,r=null,i=null;this.flowType===`pkce`&&([r,i]=await sl(this.storage,this.storageKey));let{error:a}=await Sl(this.fetch,`POST`,`${this.url}/otp`,{headers:this.headers,body:{email:t,data:n?.data??{},create_user:n?.shouldCreateUser??!0,gotrue_meta_security:{captcha_token:n?.captchaToken},code_challenge:r,code_challenge_method:i},redirectTo:n?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:a})}if(`phone`in e){let{phone:t,options:n}=e,{data:r,error:i}=await Sl(this.fetch,`POST`,`${this.url}/otp`,{headers:this.headers,body:{phone:t,data:n?.data??{},create_user:n?.shouldCreateUser??!0,gotrue_meta_security:{captcha_token:n?.captchaToken},channel:n?.channel??`sms`}});return this._returnResult({data:{user:null,session:null,messageId:r?.message_id},error:i})}throw new yc(`You must provide either an email or phone number.`)}catch(e){if(await Qc(this.storage,`${this.storageKey}-code-verifier`),dc(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async verifyOtp(e){try{let t,n;`options`in e&&(t=e.options?.redirectTo,n=e.options?.captchaToken);let{data:r,error:i}=await Sl(this.fetch,`POST`,`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:n}}),redirectTo:t,xform:wl});if(i)throw i;if(!r)throw Error(`An error occurred on token verification.`);let a=r.session,o=r.user;return a?.access_token&&(await this._saveSession(a),await this._notifyAllSubscribers(e.type==`recovery`?`PASSWORD_RECOVERY`:`SIGNED_IN`,a)),this._returnResult({data:{user:o,session:a},error:null})}catch(e){if(dc(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithSSO(e){try{let t=null,n=null;this.flowType===`pkce`&&([t,n]=await sl(this.storage,this.storageKey));let r=await Sl(this.fetch,`POST`,`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},`providerId`in e?{provider_id:e.providerId}:null),`domain`in e?{domain:e.domain}:null),{redirect_to:e.options?.redirectTo??void 0}),e?.options?.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:t,code_challenge_method:n}),headers:this.headers,xform:Dl});return r.data?.url&&Wc()&&!e.options?.skipBrowserRedirect&&window.location.assign(r.data.url),this._returnResult(r)}catch(e){if(await Qc(this.storage,`${this.storageKey}-code-verifier`),dc(e))return this._returnResult({data:null,error:e});throw e}}async reauthenticate(){return await this.initializePromise,this.lock==null?await this._reauthenticate():await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;if(n)throw n;if(!t)throw new gc;let{error:r}=await Sl(this.fetch,`GET`,`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return this._returnResult({data:{user:null,session:null},error:r})})}catch(e){if(dc(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{let t=`${this.url}/resend`;if(`email`in e){let{email:n,type:r,options:i}=e,a=null,o=null;this.flowType===`pkce`&&([a,o]=await sl(this.storage,this.storageKey));let{error:s}=await Sl(this.fetch,`POST`,t,{headers:this.headers,body:{email:n,type:r,gotrue_meta_security:{captcha_token:i?.captchaToken},code_challenge:a,code_challenge_method:o},redirectTo:i?.emailRedirectTo});return s&&await Qc(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:s})}else if(`phone`in e){let{phone:n,type:r,options:i}=e,{data:a,error:o}=await Sl(this.fetch,`POST`,t,{headers:this.headers,body:{phone:n,type:r,gotrue_meta_security:{captcha_token:i?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:a?.message_id},error:o})}throw new yc(`You must provide either an email or phone number and a type`)}catch(e){if(await Qc(this.storage,`${this.storageKey}-code-verifier`),dc(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async getSession(){return await this.initializePromise,this.lock==null?await this._useSession(async e=>e):await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async e=>e))}async _acquireLock(e,t){this._debug(`#_acquireLock`,`begin`,e);try{if(this.lockAcquired){let e=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),n=(async()=>(await e,await t()))();return this.pendingInLock.push((async()=>{try{await n}catch{}})()),n}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug(`#_acquireLock`,`lock acquired for storage key`,this.storageKey);try{this.lockAcquired=!0;let e=t();for(this.pendingInLock.push((async()=>{try{await e}catch{}})()),await e;this.pendingInLock.length;){let e=[...this.pendingInLock];await Promise.all(e),this.pendingInLock.splice(0,e.length)}return await e}finally{this._debug(`#_acquireLock`,`lock released for storage key`,this.storageKey),this.lockAcquired=!1}})}finally{this._debug(`#_acquireLock`,`end`)}}async _useSession(e){this._debug(`#_useSession`,`begin`);try{return await e(await this.__loadSession())}finally{this._debug(`#_useSession`,`end`)}}async __loadSession(){this._debug(`#__loadSession()`,`begin`),this.lock!=null&&!this.lockAcquired&&this._debug(`#__loadSession()`,`used outside of an acquired lock!`,Error().stack);try{let e=null,t=await Zc(this.storage,this.storageKey);if(this._debug(`#getSession()`,`session from storage`,t),t!==null&&(this._isValidSession(t)?e=t:(this._debug(`#getSession()`,`session from storage is not val
20id`),await this._removeSession())),!e)return{data:{session:null},error:null};let n=e.expires_at?e.expires_at*1e3-Date.now()<nc:!1;if(this._debug(`#__loadSession()`,`session has${n?``:` not`} expired`,`expires_at`,e.expires_at),!n){if(this.userStorage){let t=await Zc(this.userStorage,this.storageKey+`-user`);t?.user?e.user=t.user:e.user=hl()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){let t={value:this.suppressGetSessionWarning};e.user=gl(e.user,t),t.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}let{data:r,error:i}=await this._callRefreshToken(e.refresh_token);if(i){if(e.expires_at&&e.expires_at*1e3>Date.now()){let t=await Zc(this.storage,this.storageKey);if(t&&t.refresh_token===e.refresh_token)return this._returnResult({data:{session:e},error:null})}return this._returnResult({data:{session:null},error:i})}return this._returnResult({data:{session:r},error:null})}finally{this._debug(`#__loadSession()`,`end`)}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;let t;return t=this.lock==null?await this._getUser():await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()),t.data.user&&(this.suppressGetSessionWarning=!0),t}async _getUser(e){try{return e?await Sl(this.fetch,`GET`,`${this.url}/user`,{headers:this.headers,jwt:e,xform:El}):await this._useSession(async e=>{let{data:t,error:n}=e;if(n)throw n;return!t.session?.access_token&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new gc}:await Sl(this.fetch,`GET`,`${this.url}/user`,{headers:this.headers,jwt:t.session?.access_token??void 0,xform:El})})}catch(e){if(dc(e))return _c(e)&&(await this._removeSession(),await Qc(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:e});throw e}}async updateUser(e,t={}){return await this.initializePromise,this.lock==null?await this._updateUser(e,t):await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,t))}async _updateUser(e,t={}){try{return await this._useSession(async n=>{let{data:r,error:i}=n;if(i)throw i;if(!r.session)throw new gc;let a=r.session,o=null,s=null;this.flowType===`pkce`&&e.email!=null&&([o,s]=await sl(this.storage,this.storageKey));let{data:c,error:l}=await Sl(this.fetch,`PUT`,`${this.url}/user`,{headers:this.headers,redirectTo:t?.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:o,code_challenge_method:s}),jwt:a.access_token,xform:El});if(l)throw l;return a.user=c.user,await this._saveSession(a),await this._notifyAllSubscribers(`USER_UPDATED`,a),this._returnResult({data:{user:a.user},error:null})})}catch(e){if(await Qc(this.storage,`${this.storageKey}-code-verifier`),dc(e))return this._returnResult({data:{user:null},error:e});throw e}}async setSession(e){return await this.initializePromise,this.lock==null?await this._setSession(e):await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new gc;let t=Date.now()/1e3,n=t,r=!0,i=null,{payload:a}=el(e.access_token);if(a.exp&&(n=a.exp,r=n<=t),r){let{data:t,error:n}=await this._callRefreshToken(e.refresh_token);if(n)return this._returnResult({data:{user:null,session:null},error:n});if(!t)return{data:{user:null,session:null},error:null};i=t}else{let{data:r,error:a}=await this._getUser(e.access_token);if(a)return this._returnResult({data:{user:null,session:null},error:a});i={access_token:e.access_token,refresh_token:e.refresh_token,user:r.user,token_type:`bearer`,expires_in:n-t,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers(`SIGNED_IN`,i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(e){if(dc(e))return this._returnResult({data:{session:null,user:null},error:e});throw e}}async refreshSession(e){return await this.initializePromise,this.lock==null?await this._refreshSession(e):await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async t=>{if(!e){let{data:n,error:r}=t;if(r)throw r;e=n.session??void 0}if(!e?.refresh_token)throw new gc;let{data:n,error:r}=await this._callRefreshToken(e.refresh_token);return r?this._returnResult({data:{user:null,session:null},error:r}):n?this._returnResult({data:{user:n.user,session:n},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(e){if(dc(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async _getSessionFromURL(e,t){try{if(!Wc())throw new bc(`No browser detected.`);if(e.error||e.error_description||e.error_code)throw new bc(e.error_description||`Error in URL with unspecified error_description`,{error:e.error||`unspecified_error`,code:e.error_code||`unspecified_code`});switch(t){case`implicit`:if(this.flowType===`pkce`)throw new Sc(`Not a valid PKCE flow url.`);break;case`pkce`:if(this.flowType===`implicit`)throw new bc(`Not a valid implicit grant flow url.`);break;default:}if(t===`pkce`){if(this._debug(`#_initialize()`,`begin`,`is PKCE flow`,!0),!e.code)throw new Sc(`No code detected.`);let{data:t,error:n}=await this._exchangeCodeForSession(e.code);
20if(n)throw n;let r=new URL(window.location.href);return r.searchParams.delete(`code`),window.history.replaceState(window.history.state,``,r.toString()),{data:{session:t.session,redirectType:t.redirectType??null},error:null}}let{provider_token:n,provider_refresh_token:r,access_token:i,refresh_token:a,expires_in:o,expires_at:s,token_type:c}=e;if(!i||!o||!a||!c)throw new bc(`No session defined in URL`);let l=Math.round(Date.now()/1e3),u=parseInt(o),d=l+u;s&&(d=parseInt(s));let f=d-l;f*1e3<=3e4&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${u}s`);let p=d-u;l-p>=120?console.warn(`@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale`,p,d,l):l-p<0&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew`,p,d,l);let{data:m,error:h}=await this._getUser(i);if(h)throw h;let g={provider_token:n,provider_refresh_token:r,access_token:i,expires_in:u,expires_at:d,refresh_token:a,token_type:c,user:m.user};return window.location.hash=``,this._debug(`#_getSessionFromURL()`,`clearing window.location.hash`),this._returnResult({data:{session:g,redirectType:e.type},error:null})}catch(e){if(dc(e))return this._returnResult({data:{session:null,redirectType:null},error:e});throw e}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl==`function`?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error||e.error_description||e.error_code)}async _isPKCECallback(e){let t=await Zc(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&t)}async signOut(e={scope:`global`}){return await this.initializePromise,this.lock==null?await this._signOut(e):await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:`global`}){return await this._useSession(async t=>{let n=async()=>{await this._removeSession(),await Qc(this.storage,`${this.storageKey}-code-verifier`)},{data:r,error:i}=t;if(i&&!_c(i))return this._returnResult({error:i});let a=r.session?.access_token;if(a){let{error:t}=await this.admin.signOut(a,e);if(t&&!(pc(t)&&(t.status===404||t.status===401||t.status===403)||_c(t)))return e!==`others`&&await n(),this._returnResult({error:t})}return e!==`others`&&await n(),this._returnResult({error:null})})}onAuthStateChange(e){let t=Uc(),n={id:t,callback:e,unsubscribe:()=>{this._debug(`#unsubscribe()`,`state change callback with id removed`,t),this.stateChangeEmitters.delete(t)}};return this._debug(`#onAuthStateChange()`,`registered callback with id`,t),this.stateChangeEmitters.set(t,n),(async()=>{await this.initializePromise,this.lock==null?await this._emitInitialSession(t):await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(t)})})(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async t=>{try{let{data:{session:n},error:r}=t;if(r)throw r;await this.stateChangeEmitters.get(e)?.callback(`INITIAL_SESSION`,n),this._debug(`INITIAL_SESSION`,`callback id`,e,`session`,n)}catch(t){await this.stateChangeEmitters.get(e)?.callback(`INITIAL_SESSION`,null),this._debug(`INITIAL_SESSION`,`callback id`,e,`error`,t),_c(t)?console.warn(t):console.error(t)}})}async resetPasswordForEmail(e,t={}){let n=null,r=null;this.flowType===`pkce`&&([n,r]=await sl(this.storage,this.storageKey,!0));try{return await Sl(this.fetch,`POST`,`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:r,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:t.redirectTo})}catch(e){if(await Qc(this.storage,`${this.storageKey}-code-verifier`),dc(e))return this._returnResult({data:null,error:e});throw e}}async getUserIdentities(){try{let{data:e,error:t}=await this.getUser();if(t)throw t;return this._returnResult({data:{identities:e.user.identities??[]},error:null})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async linkIdentity(e){return`token`in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){try{let{data:t,error:n}=await this._useSession(async t=>{let{data:n,error:r}=t;if(r)throw r;let i=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:e.options?.redirectTo,scopes:e.options?.scopes,queryParams:e.options?.queryParams,skipBrowserRedirect:!0});return await Sl(this.fetch,`GET`,i,{headers:this.headers,jwt:n.session?.access_token??void 0})});if(n)throw n;return Wc()&&!e.options?.skipBrowserRedirect&&window.location.assign(t?.url),this._returnResult({data:{provider:e.provider,url:t?.url},error:null})}catch(t){if(dc(t))return this._returnResult({data:{provider:e.provider,url:null},error:t});throw t}}async linkIdentityIdToken(e){return await this._useSession(async t=>{try{let{error:n,data:{session:r}}=t;if(n)throw n;let{options:i,provider:a,token:o,access_token:s,nonce:c}=e,{data:l,error:u}=await Sl(this.fetch,`POST`,`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:r?.access_token??void 0,body:{provider:a,id_token:o,access_token:s,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:wl});return u?this._returnResult({data:{user:null,session:null},error:u}):!l||!l.session||!l.user?this._returnResult({data:{user:null,session:null},error:new vc}):(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers(`USER_UPDATED`,l.session)),this._returnResult({data:l,error:u}))}catch(e){if(await Qc(this.storage,`${this.storageKey}-code-verifier`),dc(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}})}async unlinkIdentity(e){try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)throw r;return await Sl(this.fetch,`DELETE`,`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:n.session?.access_token??void 0})})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _refreshAccessToken(e){let t=`#_refreshAccessToken()`;this._debug(t,`begin`);try{let n=Date.now();return await nl(async n=>(n>0&&await tl(200*2**(n-1)),this._debug(t,`refreshing attempt`,n),await Sl(this.fetch,`POST`,`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:wl})),(e,t)=>{let r=200*2**e;return t&&Tc(t)&&Date.now()+r-n<3e4})}catch(e){if(this._debug(t,`error`,e),dc(e))return this._returnResult({data:{session:null,user:null},error:e});throw e}finally{this._debug(t,`end`)}}_isValidSession(e){return typeof e==`object`&&!!e&&`access_token`in e&&`refresh_token`in e&&`expires_at`in e}async _handleProviderSignIn(e,t){let n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});return this._debug(`#_handleProviderSignIn()`,`provider`,e,`options`,t,`url`,n),Wc()&&!t.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){let e=`#_recoverAndRefresh()`;this._debug(e,`begin`);try{let t=await Zc(this.storage,this.storageKey);if(t&&this.userStorage){let e=await Zc(this.userStorage,this.storageKey+`-user`);!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!e&&(e={user:t.user},await Xc(this.userStorage,this.storageKey+`-user`,e)),t.user=e?.user??hl()}else if(t&&!t.user&&!t.user){let e=await Zc(this.storage,this.storageKey+`-user`);e&&e?.user?(t.user=e.user,await Qc(this.storage,this.storageKey+`-user`),await Xc(this.storage,this.storageKey,t)):t.user=hl()}if(this._debug(e,`session from storage`,t),!this._isValidSession(t)){this._debug(e,`session is not val
20id`),t!==null&&await this._removeSession();return}let n=(t.expires_at??1/0)*1e3-Date.now()<nc;if(this._debug(e,`session has${n?``:` not`} expired with margin of ${nc}s`),n){if(this.autoRefreshToken&&t.refresh_token){let{error:n}=await this._callRefreshToken(t.refresh_token);n&&(Dc(n)?this._debug(e,`refresh discarded by commit guard`,n):this._debug(e,`refresh failed`,n))}}else if(t.user&&t.user.__isUserNotAvailableProxy===!0)try{let{data:n,error:r}=await this._getUser(t.access_token);!r&&n?.user?(t.user=n.user,await this._saveSession(t),await this._notifyAllSubscribers(`SIGNED_IN`,t)):this._debug(e,`could not get user data, skipping SIGNED_IN notification`)}catch(t){console.error(`Error getting user data:`,t),this._debug(e,`error getting user data, skipping SIGNED_IN notification`,t)}else await this._notifyAllSubscribers(`SIGNED_IN`,t)}catch(t){this._debug(e,`error`,t),console.error(t);return}finally{this._debug(e,`end`)}}async _callRefreshToken(e){var t,n;if(!e)throw new gc;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===e&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug(`#_callRefreshToken()`,`returning cached failure (cooldown active)`),this.lastRefreshFailure.result;let r=`#_callRefreshToken()`;this._debug(r,`begin`);try{this.refreshingDeferred=new $c;let t=await Zc(this.storage,this.storageKey),{data:n,error:i}=await this._refreshAccessToken(e);if(i)throw i;if(!n.session)throw new gc;let a=await Zc(this.storage,this.storageKey);if(t!==null&&(a===null||a.refresh_token!==t.refresh_token)){this._debug(r,`commit guard: storage changed since refresh started, discarding rotated tokens`,{startedWith:`present`,nowHolds:a?`replaced`:`cleared`});let e={data:null,error:new Ec};return this.refreshingDeferred.resolve(e),e}let o=this._sessionRemovalEpoch;if(await this._saveSession(n.session),this._sessionRemovalEpoch!==o){this._debug(r,`commit guard (post-save): _removeSession ran during _saveSession, undoing write`),await Qc(this.storage,this.storageKey),this.userStorage&&await Qc(this.userStorage,this.storageKey+`-user`);let e={data:null,error:new Ec};return this.refreshingDeferred.resolve(e),e}await this._notifyAllSubscribers(`TOKEN_REFRESHED`,n.session);let s={data:n.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(s),s}catch(i){if(this._debug(r,`error`,i),dc(i)){let n={data:null,error:i};if(!Tc(i)){let e=await Zc(this.storage,this.storageKey);e?.expires_at&&e.expires_at*1e3>Date.now()?this._debug(r,`proactive refresh failed, access token still valid â preserving session`):await this._removeSession()}return this.lastRefreshFailure={refreshToken:e,result:n,expiresAt:Date.now()+rc},(t=this.refreshingDeferred)==null||t.resolve(n),n}throw(n=this.refreshingDeferred)==null||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(r,`end`)}}async _notifyAllSubscribers(e,t,n=!0){if(this._pendingInitNotifications!==null&&n){this._pendingInitNotifications.push({event:e,session:t,broadcast:n});return}let r=`#_notifyAllSubscribers(${e})`;this._debug(r,`begin`,t,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:t});let r=[],i=Array.from(this.stateChangeEmitters.values()).map(async n=>{try{await n.callback(e,t)}catch(e){r.push(e)}});if(await Promise.all(i),r.length>0){for(let e=0;e<r.length;e+=1)console.error(r[e]);throw r[0]}}finally{this._debug(r,`end`)}}async _saveSession(e){this._debug(`#_saveSession()`,e),this.suppressGetSessionWarning=!0;let t=Object.assign({},e),n=t.user&&t.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&t.user&&await Xc(this.userStorage,this.storageKey+`-user`,{user:t.user});let e=Object.assign({},t);delete e.user;let r=_l(e);await Xc(this.storage,this.storageKey,r)}else{let e=_l(t);await Xc(this.storage,this.storageKey,e)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug(`#_removeSession()`),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await Qc(this.storage,this.storageKey),await Qc(this.storage,this.storageKey+`-code-verifier`),await Qc(this.storage,this.storageKey+`-user`),this.userStorage&&await Qc(this.userStorage,this.storageKey+`-user`),await this._notifyAllSubscribers(`SIGNED_OUT`,null)}_removeVisibilityChangedCallback(){this._debug(`#_removeVisibilityChangedCallback()`);let e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Wc()&&window!=null&&window.removeEventListener&&window.removeEventListener(`visibilitychange`,e)}
20catch(e){console.error(`removing visibilitychange callback failed`,e)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug(`#_startAutoRefresh()`);let e=setInterval(()=>this._autoRefreshTokenTick(),tc);this.autoRefreshTicker=e,e&&typeof e==`object`&&typeof e.unref==`function`?e.unref():typeof Deno<`u`&&typeof Deno.unrefTimer==`function`&&Deno.unrefTimer(e);let t=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=t,t&&typeof t==`object`&&typeof t.unref==`function`?t.unref():typeof Deno<`u`&&typeof Deno.unrefTimer==`function`&&Deno.unrefTimer(t)}async _stopAutoRefresh(){this._debug(`#_stopAutoRefresh()`);let e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);let t=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,t&&clearTimeout(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var e;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(e=this.broadcastChannel)==null||e.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug(`#_autoRefreshTokenTick()`,`begin`),this.lock!=null){try{await this._acquireLock(0,async()=>{try{let e=Date.now();try{return await this._useSession(async t=>{let{data:{session:n}}=t;if(!n||!n.refresh_token||!n.expires_at){this._debug(`#_autoRefreshTokenTick()`,`no session`);return}let r=Math.floor((n.expires_at*1e3-e)/tc);this._debug(`#_autoRefreshTokenTick()`,`access token expires in ${r} ticks, a tick lasts ${tc}ms, refresh threshold is 3 ticks`),r<=3&&await this._callRefreshToken(n.refresh_token)})}catch(e){console.error(`Auto refresh tick failed with error. This is likely a transient error.`,e)}}finally{this._debug(`#_autoRefreshTokenTick()`,`end`)}})}catch(e){if(e instanceof Pl)this._debug(`auto refresh token tick lock not available`);else throw e}return}if(this.refreshingDeferred!==null){this._debug(`#_autoRefreshTokenTick()`,`refresh already in flight, skipping`);return}try{let e=Date.now();try{await this._useSession(async t=>{let{data:{session:n}}=t;if(!n||!n.refresh_token||!n.expires_at){this._debug(`#_autoRefreshTokenTick()`,`no session`);return}let r=Math.floor((n.expires_at*1e3-e)/tc);this._debug(`#_autoRefreshTokenTick()`,`access token expires in ${r} ticks, a tick lasts ${tc}ms, refresh threshold is 3 ticks`),r<=3&&await this._callRefreshToken(n.refresh_token)})}catch(e){console.error(`Auto refresh tick failed with error. This is likely a transient error.`,e)}}finally{this._debug(`#_autoRefreshTokenTick()`,`end`)}}async _handleVisibilityChange(){if(this._debug(`#_handleVisibilityChange()`),!Wc()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug(`#visibilityChangedCallback`,`error`,e)}},window==null||window.addEventListener(`visibilitychange`,this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error(`_handleVisibilityChange`,e)}}async _onVisibilityChanged(e){let t=`#_onVisibilityChanged(${e})`;if(this._debug(t,`visibilityState`,document.visibilityState),document.visibilityState===`visible`){if(this.autoRefreshToken&&this._startAutoRefresh(),!e)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!==`visible`){this._debug(t,`acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting`);return}await this._recoverAndRefresh()});else{if(document.visibilityState!==`visible`){this._debug(t,`visibilityState is no longer visible, skipping recovery`);return}await this._recoverAndRefresh()}}else document.visibilityState===`hidden`&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,t,n){let r=[`provider=${encodeURIComponent(t)}`];if(n?.redirectTo&&r.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n?.scopes&&r.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType===`pkce`){let[e,t]=await sl(this.storage,this.storageKey),n=new URLSearchParams({code_challenge:`${encodeURIComponent(e)}`,code_challenge_method:`${encodeURIComponent(t)}`});
20r.push(n.toString())}if(n?.queryParams){let e=new URLSearchParams(n.queryParams);r.push(e.toString())}return n?.skipBrowserRedirect&&r.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${r.join(`&`)}`}async _unenroll(e){try{return await this._useSession(async t=>{let{data:n,error:r}=t;return r?this._returnResult({data:null,error:r}):await Sl(this.fetch,`DELETE`,`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:n?.session?.access_token})})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _enroll(e){try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)return this._returnResult({data:null,error:r});let i=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType===`phone`?{phone:e.phone}:e.factorType===`totp`?{issuer:e.issuer}:{}),{data:a,error:o}=await Sl(this.fetch,`POST`,`${this.url}/factors`,{body:i,headers:this.headers,jwt:n?.session?.access_token});return o?this._returnResult({data:null,error:o}):(e.factorType===`totp`&&a.type===`totp`&&a?.totp?.qr_code&&(a.totp.qr_code=`data:image/svg+xml;utf-8,${a.totp.qr_code}`),this._returnResult({data:a,error:null}))})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _verify(e){let t=async()=>{try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)return this._returnResult({data:null,error:r});let i=Object.assign({challenge_id:e.challengeId},`webauthn`in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type===`create`?ql(e.webauthn.credential_response):Jl(e.webauthn.credential_response)})}:{code:e.code}),{data:a,error:o}=await Sl(this.fetch,`POST`,`${this.url}/factors/${e.factorId}/verify`,{body:i,headers:this.headers,jwt:n?.session?.access_token});return o?this._returnResult({data:null,error:o}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers(`MFA_CHALLENGE_VERIFIED`,a),this._returnResult({data:a,error:o}))})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}};return this.lock==null?t():this._acquireLock(this.lockAcquireTimeout,t)}async _challenge(e){let t=async()=>{try{return await this._useSession(async t=>{let{data:n,error:r}=t;if(r)return this._returnResult({data:null,error:r});let i=await Sl(this.fetch,`POST`,`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:n?.session?.access_token});if(i.error)return i;let{data:a}=i;if(a.type!==`webauthn`)return{data:a,error:null};switch(a.webauthn.type){case`create`:return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:Gl(a.webauthn.credential_options.publicKey)})})}),error:null};case`request`:return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:Kl(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}};return this.lock==null?t():this._acquireLock(this.lockAcquireTimeout,t)}async _challengeAndVerify(e){let{data:t,error:n}=await this._challenge({factorId:e.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:e.factorId,challengeId:t.id,code:e.code})}async _listFactors(){let{data:{user:e},error:t}=await this.getUser();if(t)return{data:null,error:t};let n={all:[],phone:[],totp:[],webauthn:[]};for(let t of e?.factors??[])n.all.push(t),t.status===`verified`&&n[t.factor_type].push(t);return{data:n,error:null}}async _getAuthenticatorAssuranceLevel(e){if(e)try{let{payload:t}=el(e),n=null;t.aal&&(n=t.aal);let r=n,{data:{user:i},error:a}=await this.getUser(e);if(a)return this._returnResult({data:null,error:a});((i?.factors)?.filter(e=>e.status===`verified`)??[]).length>0&&(r=`aal2`);let o=t.amr||[];return{data:{currentLevel:n,nextLevel:r,currentAuthenticationMethods:o},error:null}}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}let{data:{session:t},error:n}
20=await this.getSession();if(n)return this._returnResult({data:null,error:n});if(!t)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};let{payload:r}=el(t.access_token),i=null;r.aal&&(i=r.aal);let a=i;(t.user.factors?.filter(e=>e.status===`verified`)??[]).length>0&&(a=`aal2`);let o=r.amr||[];return{data:{currentLevel:i,nextLevel:a,currentAuthenticationMethods:o},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await Sl(this.fetch,`GET`,`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:n.access_token,xform:e=>({data:e,error:null})}):this._returnResult({data:null,error:new gc})})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _approveAuthorization(e,t){try{return await this._useSession(async n=>{let{data:{session:r},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!r)return this._returnResult({data:null,error:new gc});let a=await Sl(this.fetch,`POST`,`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:r.access_token,body:{action:`approve`},xform:e=>({data:e,error:null})});return a.data&&a.data.redirect_url&&Wc()&&!t?.skipBrowserRedirect&&window.location.assign(a.data.redirect_url),a})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _denyAuthorization(e,t){try{return await this._useSession(async n=>{let{data:{session:r},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!r)return this._returnResult({data:null,error:new gc});let a=await Sl(this.fetch,`POST`,`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:r.access_token,body:{action:`deny`},xform:e=>({data:e,error:null})});return a.data&&a.data.redirect_url&&Wc()&&!t?.skipBrowserRedirect&&window.location.assign(a.data.redirect_url),a})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _listOAuthGrants(){try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;return n?this._returnResult({data:null,error:n}):t?await Sl(this.fetch,`GET`,`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:t.access_token,xform:e=>({data:e,error:null})}):this._returnResult({data:null,error:new gc})})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?(await Sl(this.fetch,`DELETE`,`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new gc})})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async fetchJwk(e,t={keys:[]}){let n=t.keys.find(t=>t.kid===e);if(n)return n;let r=Date.now();if(n=this.jwks.keys.find(t=>t.kid===e),n&&this.jwks_cached_at+6e5>r)return n;let{data:i,error:a}=await Sl(this.fetch,`GET`,`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=r,n=i.keys.find(t=>t.kid===e),!n)?null:n}async getClaims(e,t={}){try{let n=e;if(!n){let{data:e,error:t}
20=await this.getSession();if(t||!e.session)return this._returnResult({data:null,error:t});n=e.session.access_token}let{header:r,payload:i,signature:a,raw:{header:o,payload:s}}=el(n);if(!t?.allowExpired)try{ul(i.exp)}catch(e){throw new kc(e instanceof Error?e.message:`JWT validation failed`)}let c=!r.alg||r.alg.startsWith(`HS`)||!r.kid||!(`crypto`in globalThis&&`subtle`in globalThis.crypto)?null:await this.fetchJwk(r.kid,t?.keys?{keys:t.keys}:t?.jwks);if(!c){let{error:e}=await this.getUser(n);if(e)throw e;return{data:{claims:i,header:r,signature:a},error:null}}let l=dl(r.alg),u=await crypto.subtle.importKey(`jwk`,c,l,!0,[`verify`]);if(!await crypto.subtle.verify(l,u,a,Bc(`${o}.${s}`)))throw new kc(`Invalid JWT signature`);return{data:{claims:i,header:r,signature:a},error:null}}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async signInWithPasskey(e){ml(this.experimental);try{if(!Xl())return this._returnResult({data:null,error:new mc(`Browser does not support WebAuthn`,null)});let{data:t,error:n}=await this._startPasskeyAuthentication({options:{captchaToken:e?.options?.captchaToken}});if(n||!t)return this._returnResult({data:null,error:n});let{data:r,error:i}=await Ql({publicKey:Kl(t.options),signal:e?.options?.signal??Wl.createNewAbortSignal()});if(i||!r)return this._returnResult({data:null,error:i??new mc(`WebAuthn ceremony failed`,null)});let a=Jl(r);return this._verifyPasskeyAuthentication({challengeId:t.challenge_id,credential:a})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async registerPasskey(e){ml(this.experimental);try{if(!Xl())return this._returnResult({data:null,error:new mc(`Browser does not support WebAuthn`,null)});let{data:t,error:n}=await this._startPasskeyRegistration();if(n||!t)return this._returnResult({data:null,error:n});let{data:r,error:i}=await Zl({publicKey:Gl(t.options),signal:e?.options?.signal??Wl.createNewAbortSignal()});if(i||!r)return this._returnResult({data:null,error:i??new mc(`WebAuthn ceremony failed`,null)});let a=ql(r);return this._verifyPasskeyRegistration({challengeId:t.challenge_id,credential:a})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _startPasskeyRegistration(){ml(this.experimental);try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;if(n)return this._returnResult({data:null,error:n});if(!t)return this._returnResult({data:null,error:new gc});let{data:r,error:i}=await Sl(this.fetch,`POST`,`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:t.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:r,error:null})})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyRegistration(e){ml(this.experimental);try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new gc});let{data:i,error:a}=await Sl(this.fetch,`POST`,`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:n.access_token,body:{challenge_id:e.challengeId,credential:e.credential}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _startPasskeyAuthentication(e){ml(this.experimental);try{let{data:t,error:n}=await Sl(this.fetch,`POST`,`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:e?.options?.captchaToken}}});return n?this._returnResult({data:null,error:n}):this._returnResult({data:t,error:null})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyAuthentication(e){ml(this.experimental);try{let{data:t,error:n}=await Sl(this.fetch,`POST`,`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:e.challengeId,credential:e.credential},xform:wl});return n?this._returnResult({data:null,error:n}):(t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers(`SIGNED_IN`,t.session)),this._returnResult({data:t,error:null}))}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _listPasskeys(){ml(this.experimental);try{return await this._useSession(async e=>{let{data:{session:t},error:n}=e;if(n)return this._returnResult({data:null,error:n});if(!t)return this._returnResult({data:null,error:new gc});let{data:r,error:i}=await Sl(this.fetch,`GET`,`${this.url}/passkeys`,{headers:this.headers,jwt:t.access_token,xform:e=>({data:e,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:r,error:null})})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _updatePasskey(e){ml(this.experimental);try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new gc});let{data:i,error:a}=await Sl(this.fetch,`PATCH`,`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:n.access_token,body:{friendly_name:e.friendlyName}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}async _deletePasskey(e){ml(this.experimental);try{return await this._useSession(async t=>{let{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new gc});let{error:i}=await Sl(this.fetch,`DELETE`,`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:n.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(e){if(dc(e))return this._returnResult({data:null,error:e});throw e}}};su.nextInstanceID={};var cu=su,lu=`2.110.7`,uu=``,du;if(typeof Deno<`u`)uu=`deno`,du=Deno.version?.deno;else if(typeof document<`u`)uu=`web`;else if(typeof navigator<`u`&&navigator.product===`ReactNative`)uu=`react-native`;else{var fu;uu=`node`;let e=globalThis.process;du=e==null||(fu=e.version)==null?void 0:fu.replace(/^v/,``)}var pu=[`runtime=${uu}`];du&&pu.push(`runtime-version=${du}`);var mu={headers:{"X-Client-Info":`supabase-js/${lu}; ${pu.join(`; `)}`}},hu={schema:`public`},gu={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:`implicit`},_u={},vu={enabled:!1,respectSamplingDecision:!0};function yu(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}var bu=null,xu=`@opentelemetry/api`;function Su(){return bu===null&&(bu=T(()=>import(xu),[]).catch(()=>null)),bu}function Cu(){return yu(this,void 0,void 0,function*(){try{let e=yield Su();if(!e||!e.propagation||!e.context)return null;let t={};e.propagation.inject(e.context.active(),t);let n=t.traceparent;return n?{traceparent:n,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function wu(e){if(!e||typeof e!=`string`)return null;let t=e.split(`-`);if(t.length!==4)return null;let[n,r,i,a]=t;if(n.length!==2||r.length!==32||i.length!==16||a.length!==2)return null;let o=/^[0-9a-f]+$/i;return!o.test(n)||!o.test(r)||!o.test(i)||!o.test(a)||r===`00000000000000000000000000000000`||i===`0000000000000000`?null:{version:n,traceId:r,parentId:i,traceFlags:a,isSampled:(parseInt(a,16)&1)==1}}function Tu(e,t){if(!e||!t||t.length===0)return!1;let n;if(e instanceof URL)n=e;else try{n=new URL(e)}catch{return!1}for(let e of t)try{if(typeof e==`string`){if(Eu(n.hostname,e))return!0}
20else if(e instanceof RegExp){if(e.test(n.hostname))return!0}else if(typeof e==`function`&&e(n))return!0}catch{continue}return!1}function Eu(e,t){if(t===e)return!0;if(t.startsWith(`*.`)){let n=t.slice(2);if(e.endsWith(n)&&(e===n||e.endsWith(`.`+n)))return!0}return!1}function Du(e){let t=[];try{let n=new URL(e);t.push(n.hostname)}catch{}return t.push(`*.supabase.co`,`*.supabase.in`),t.push(`localhost`,`127.0.0.1`,`[::1]`),t}function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ou(e)}function ku(e,t){if(Ou(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ou(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Au(e){var t=ku(e,`string`);return Ou(t)==`symbol`?t:t+``}function ju(e,t,n){return(t=Au(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Mu(Object(n),!0).forEach(function(t){ju(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Pu=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),Fu=()=>Headers,Iu=e=>e.startsWith(`sb_publishable_`)||e.startsWith(`sb_secret_`),Lu=`sb_temp_`,Ru=new Set,zu=e=>{if(!e.startsWith(`sb_`)||Iu(e)||e.startsWith(Lu))return;let t=e.match(/^sb_[a-zA-Z0-9]+_/)?.[0]??`unknown`;Ru.has(t)||(Ru.add(t),console.warn(`@supabase/supabase-js: Unrecognized Supabase API key format. The client will proceed and send this key as-is; if you see authentication errors you may need to upgrade @supabase/supabase-js to a version that recognizes this key type.`))},Bu=(e,t,n,r,i,a)=>{let o=Pu(r),s=Fu(),c=i?.enabled===!0,l=i?.respectSamplingDecision!==!1,u=c?Du(t):null,d=!(a?.omitApiKeyAsBearer&&Iu(e));return async(t,r)=>{let i=await n(),a=new s(r?.headers);if(a.has(`apikey`)||a.set(`apikey`,e),!a.has(`Authorization`)){let t=i??(d?e:null);t&&a.set(`Authorization`,`Bearer ${t}`)}if(u){let e=await Vu(t,u,l);e&&(e.traceparent&&!a.has(`traceparent`)&&a.set(`traceparent`,e.traceparent),e.tracestate&&!a.has(`tracestate`)&&a.set(`tracestate`,e.tracestate),e.baggage&&!a.has(`baggage`)&&a.set(`baggage`,e.baggage))}return o(t,Nu(Nu({},r),{},{headers:a}))}};async function Vu(e,t,n){if(!Tu(typeof e==`string`||e instanceof URL?e:e.url,t))return null;let r=await Cu();if(!r||!r.traceparent)return null;if(n){let e=wu(r.traceparent);if(e&&!e.isSampled)return null}return r}function Hu(e){return typeof e==`boolean`?{enabled:e}:e}function Uu(e){return e.endsWith(`/`)?e:e+`/`}function Wu(e,t){let{db:n,auth:r,realtime:i,global:a}=e,{db:o,auth:s,realtime:c,global:l}=t,u=Hu(e.tracePropagation),d=Hu(t.tracePropagation),f={db:Nu(Nu({},o),n),auth:Nu(Nu({},s),r),realtime:Nu(Nu({},c),i),storage:{},global:Nu(Nu(Nu({},l),a),{},{headers:Nu(Nu({},l?.headers??{}),a?.headers??{})}),tracePropagation:{enabled:u?.enabled??d?.enabled??!1,respectSamplingDecision:u?.respectSamplingDecision??d?.respectSamplingDecision??!0},accessToken:async()=>``};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function Gu(e){let t=e?.trim();if(!t)throw Error(`supabaseUrl is required.`);if(!t.match(/^https?:\/\//i))throw Error(`Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.`);try{return new URL(Uu(t))}catch{throw Error(`Invalid supabaseUrl: Provided URL is malformed.`)}}var Ku=class extends cu{constructor(e){super(e)}},qu=class{constructor(e,t,n){this.supabaseUrl=e,this.supabaseKey=t;let r=Gu(e);if(!t)throw Error(`supabaseKey is required.`);zu(t),this.realtimeUrl=new URL(`realtime/v1`,r),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace(`http`,`ws`),this.authUrl=new URL(`auth/v1`,r),this.storageUrl=new URL(`storage/v1`,r),this.functionsUrl=new URL(`functions/v1`,r);let i=`sb-${r.hostname.split(`.`)[0]}-auth-token`,a={db:hu,realtime:_u,auth:Nu(Nu({},gu),{},{storageKey:i}),global:mu,tracePropagation:vu},o=Wu(n??{},a);this.settings=o,this.storageKey=o.auth.storageKey??``,this.headers=o.global.headers??{},o.accessToken?(this.accessToken=o.accessToken,this.auth=new Proxy({},{get:(e,t)=>{throw Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(t)} is not possible`)}})):this.auth=this._initSupabaseAuthClient(o.auth??{},this.headers,o.global.fetch),this.fetch=Bu(t,e,this._getSessionToken.bind(this),o.global.fetch,o.tracePropagation),this.functionsFetch=Bu(t,e,this._getSessionToken.bind(this),o.global.fetch,o.tracePropagation,{omitApiKeyAsBearer
20:!0}),this.realtime=this._initRealtimeClient(Nu({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},o.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(e=>this.realtime.setAuth(e)).catch(e=>console.warn(`Failed to set initial Realtime auth token:`,e)),this.rest=new Na(new URL(`rest/v1`,r).href,{headers:this.headers,schema:o.db.schema,fetch:this.fetch,timeout:o.db.timeout,urlLengthLimit:o.db.urlLengthLimit}),this.storage=new $s(this.storageUrl.href,this.headers,this.fetch,n?.storage),o.accessToken||this._listenForAuthEvents()}get functions(){return new ma(this.functionsUrl.href,{headers:this.headers,customFetch:this.functionsFetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getSessionToken(){var e=this;if(e.accessToken)return await e.accessToken();let{data:t}=await e.auth.getSession();return t.session?.access_token??null}async _getAccessToken(){var e=this;return await e._getSessionToken()??e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:a,flowType:o,lock:s,debug:c,throwOnError:l,experimental:u,lockAcquireTimeout:d,skipAutoInitialize:f},p,m){let h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Ku({url:this.authUrl.href,headers:Nu(Nu({},h),p),storageKey:a,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:o,lock:s,debug:c,throwOnError:l,experimental:u,fetch:m,lockAcquireTimeout:d,skipAutoInitialize:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(e=>e.toLowerCase()===`authorization`)})}_initRealtimeClient(e){return new $o(this.realtimeUrl.href,Nu(Nu({},e),{},{params:Nu(Nu({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,`CLIENT`,t?.access_token)})}_handleTokenChanged(e,t,n){(e===`TOKEN_REFRESHED`||e===`SIGNED_IN`||e===`INITIAL_SESSION`)&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e===`SIGNED_OUT`&&(this.realtime.setAuth(),t==`STORAGE`&&this.auth.signOut(),this.changedAccessToken=void 0)}},Ju=(e,t,n)=>new qu(e,t,n);function Yu(){if(typeof window<`u`)return!1;let e=globalThis.process;if(!e)return!1;let t=e.version;if(t==null)return!1;let n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=20:!1}Yu()&&console.warn(`â ï¸ Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715`);function Xu(){if(typeof window>`u`)return;let e=location.hostname,t=[`lovableproject.com`,`lovableproject-dev.com`,`lovable.app`,`gpt-eng.com`,`gptengineer.run`].some(t=>e===t||e.endsWith(`.`+t))?e.match(RegExp(`^(?:id-preview(?:-[a-z0-9]+)?|project)--([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})(?:-dev)?(?=\\.|$)`,`i`))?.[1]??e.match(RegExp(`^([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})(?=[.-])`,`i`))?.[1]:void 0,n=window.parent&&window.parent!==window;if(!t||!n)return localStorage;let r=e.endsWith(`.lovableproject-dev.com`)||e.endsWith(`.gpt-eng.com`),i=r?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,a=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:``),o=a&&i.test(a)?[a]:r?[`https://lovable.dev`,`http://localhost:3000`]:[`https://lovable.dev`],s=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),c=(e,n,r)=>new Promise(i=>{let a=s(),c=!1,l,u=e=>{c||(c=!0,clearTimeout(l),window.removeEventListener(`message`,d),i(e))},d=e=>{if(o.indexOf(e.origin)<0)return;let t=e.data;t&&t.type===`lovable-preview-auth:result`&&t.requestId===a&&u(t)}
20;window.addEventListener(`message`,d);let f={type:e,requestId:a,projectId:t,key:n};r!==void 0&&(f.value=r);for(let e of o)window.parent.postMessage(f,e);l=setTimeout(()=>u(null),2e3)}),l=!0;return{getItem:async e=>{let t=await c(`lovable-preview-auth:get`,e);return!t&&l&&(await new Promise(e=>setTimeout(e,250)),t=await c(`lovable-preview-auth:get`,e)),l=!1,t&&t.ok&&typeof t.value==`string`?t.value===``?(localStorage.removeItem(e),null):t.value:localStorage.getItem(e)},setItem:(e,t)=>(localStorage.setItem(e,t),c(`lovable-preview-auth:set`,e,t).then(()=>void 0)),removeItem:e=>(localStorage.removeItem(e),c(`lovable-preview-auth:remove`,e).then(()=>void 0))}}function Zu(e){return e.startsWith(`sb_publishable_`)||e.startsWith(`sb_secret_`)}function Qu(e){return(t,n)=>{let r=new Headers(typeof Request<`u`&&t instanceof Request?t.headers:void 0);return n?.headers&&new Headers(n.headers).forEach((e,t)=>r.set(t,e)),Zu(e)&&r.get(`Authorization`)===`Bearer ${e}`&&r.delete(`Authorization`),r.set(`apikey`,e),fetch(t,{...n,headers:r})}}function $u(){let e=`eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InpvcnZkZWdpcmZuZGFsaWRzeHZ2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODI0Njk0MTIsImV4cCI6MjA5ODA0NTQxMn0.sjjfc21Sf37qkto_io7ZEKNT0V5R3gfCt05KcvQOT6o`;return Ju(`https://zorvdegirfndalidsxvv.supabase.co`,e,{global:{fetch:Qu(e)},auth:{storage:Xu(),persistSession:!0,autoRefreshToken:!0}})}var ed,td=new Proxy({},{get(e,t,n){return ed||=$u(),Reflect.get(ed,t,n)}}),nd=aa({type:`function`}).client(async({next:e})=>{let{data:t}=await td.auth.getSession(),n=t.session?.access_token;return e({headers:n?{Authorization:`Bearer ${n}`}:{}})}),rd=aa(),id=sa(()=>({functionMiddleware:[nd],requestMiddleware:[rd]})),ad=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},od=new class extends ad{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},sd={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},cd=new class{#e=sd;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ld(e){setTimeout(e,0)}var ud=typeof window>`u`||`Deno`in globalThis;function dd(){}function fd(e,t){return typeof e==`function`?e(t):e}function pd(e){return typeof e==`number`&&e>=0&&e!==1/0}function md(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hd(e,t){return typeof e==`function`?e(t):e}function gd(e,t){return typeof e==`function`?e(t):e}function _d(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==yd(o,t.options))return!1}else if(!xd(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function vd(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(bd(t.options.mutationKey)!==bd(a))return!1}else if(!xd(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function yd(e,t){return(t?.queryKeyHashFn||bd)(e)}function bd(e){return JSON.stringify(e,(e,t)=>Td(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function xd(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>xd(e[n],t[n])):!1}var Sd=Object.prototype.hasOwnProperty;function Cd(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=wd(e)&&wd(t);if(!r&&!(Td(e)&&Td(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Sd.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=Cd(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function wd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Td(e){if(!Ed(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Ed(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Ed(e){return Object.prototype.toString.call(e)===`[object Object]`}function Dd(e){return new Promise(t=>{cd.setTimeout(t,e)})}function Od(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Cd(e,t)}function kd(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ad(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var jd=Symbol();function Md(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===jd?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Nd(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Pd=(()=>{let e=()=>ud;return{isServer(){return e()},setIsServer(t){e=t}}})();function Fd(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Id=ld;function Ld(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Id,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>
20{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Rd=Ld(),zd=new class extends ad{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Bd(e){return Math.min(1e3*2**e,3e4)}function Vd(e){return(e??`online`)!==`online`||zd.isOnline()}var Hd=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ud(e){let t=!1,n=0,r,i=Fd(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Hd(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>od.isFocused()&&(e.networkMode===`always`||zd.isOnline())&&e.canRun(),u=()=>Vd(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Pd.isServer()?0:3),o=e.retryDelay??Bd,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),Dd(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Wd=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pd(this.gcTime)&&(this.#e=cd.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pd.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(cd.clearTimeout(this.#e),this.#e=void 0)}};function Gd(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Nd(e,()=>t.signal,()=>n=!0)},u=Md(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Ad:kd;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?qd:Kd,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Kd(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Kd(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function qd(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Jd=class extends Wd{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Zd(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Zd(this.options);e.data!==void 0&&(this.setState(Xd(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Od(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(dd).catch(dd):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>gd(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>
200?!this.isActive():this.options.queryFn===jd||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>hd(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!md(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Md(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Gd(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Ud({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Hd&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Hd){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Yd(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Xd(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Rd.batch(()=>
20{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Yd(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Vd(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Xd(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Zd(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Qd=class extends Wd{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||$d(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ud({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Rd.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function $d(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ef=class extends ad{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Qd({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=tf(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=tf(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=tf(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>
20e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=tf(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Rd.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>vd(t,e))}findAll(e={}){return this.getAll().filter(t=>vd(e,t))}notify(e){Rd.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Rd.batch(()=>Promise.all(e.map(e=>e.continue().catch(dd))))}};function tf(e){return e.options.scope?.id}var nf=class extends ad{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??yd(r,t),a=this.get(i);return a||(a=new Jd({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Rd.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>_d(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>_d(e,t)):t}notify(e){Rd.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Rd.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Rd.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},rf=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new nf,this.#t=e.mutationCache||new ef,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=od.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=zd.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(hd(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=fd(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Rd.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Rd.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Rd.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Rd.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(dd).catch(dd)}invalidateQueries(e,t={}){return Rd.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Rd.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(dd)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(dd)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(hd(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(dd).catch(dd)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dd).catch(dd)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return zd.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(bd(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{xd(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(bd(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{xd(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=yd(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===jd&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},af=D.createContext(void 0),of=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,O.jsx)(af.Provider,{value:e,children:t})),sf=`/assets/styles-VgDQv-NQ.css`;function cf(e,t={}){typeof window>`u`||window.__lovableEvents?.captureException?.(e,{source:`react_error_boundary`,route:window.location.pathname,...t},{mechanism:`react_error_boundary`,handled:!1,severity:`error`})}var lf=Je(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),uf=Je(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),df=Je(`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`}]]),ff=Je(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}
20],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),pf=Je(`message-circle`,[[`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`}]]),mf=Je(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),hf=Je(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),gf={version:1,asset_id:`e33eaa5c-92fe-4f3b-8928-a941e3f536c3`,project_id:`89a3b2fb-dd08-4719-bc00-70342b1fa7df`,url:`/__l5e/assets-v1/e33eaa5c-92fe-4f3b-8928-a941e3f536c3/indyrct-logo-color.svg`,r2_key:`a/v1/89a3b2fb-dd08-4719-bc00-70342b1fa7df/e33eaa5c-92fe-4f3b-8928-a941e3f536c3/indyrct-logo-color.svg`,original_filename:`indyrct-logo-color.svg`,size:3069,content_type:`image/svg+xml`,created_at:`2026-06-26T12:47:26Z`};function _f({label:e,items:t,activePathPrefixes:n}){let[r,i]=(0,D.useState)(!1),a=(0,D.useRef)(null);(0,D.useEffect)(()=>{if(!r)return;function e(e){a.current?.contains(e.target)||i(!1)}function t(e){e.key===`Escape`&&i(!1)}return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[r]);let o=typeof window<`u`?window.location.pathname:``;return(0,O.jsxs)(`div`,{ref:a,className:`relative`,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[(0,O.jsxs)(`button`,{type:`button`,"aria-haspopup":`menu`,"aria-expanded":r,onClick:()=>i(e=>!e),className:`inline-flex items-center gap-1 rounded-md px-3.5 py-2 text-[14px] font-medium transition-colors hover:bg-[var(--bone)] hover:text-[var(--navy)] ${n.some(e=>o===e||o.startsWith(e+`/`))?`bg-[var(--bone)] text-[var(--navy)]`:`text-[var(--ink-3)]`}`,children:[e,(0,O.jsx)(uf,{className:`h-3.5 w-3.5 transition-transform ${r?`rotate-180`:``}`})]}),r&&(0,O.jsx)(`div`,{role:`menu`,className:`absolute left-0 top-full z-50 min-w-[280px] pt-2`,children:(0,O.jsx)(`div`,{className:`overflow-hidden rounded-xl border border-[var(--line-soft)] bg-white p-2 shadow-[0_18px_40px_-16px_rgba(15,23,42,0.18)]`,children:t.map(e=>e.kind===`soon`?(0,O.jsxs)(`div`,{"aria-disabled":`true`,className:`flex cursor-not-allowed items-start justify-between gap-3 rounded-md px-3 py-2.5 text-[14px]`,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`div`,{className:`font-medium text-[var(--ink-3)]`,children:e.label}),e.description&&(0,O.jsx)(`div`,{className:`mt-0.5 text-[12px] text-[var(--ink-4)]`,children:e.description})]}),(0,O.jsx)(`span`,{className:`mt-0.5 rounded-full border border-[var(--line-soft)] bg-[var(--bone)] px-2 py-0.5 text-[10px] uppercase tracking-[0.1em] text-[var(--ink-3)]`,children:`Soon`})]},e.label):(0,O.jsxs)(je,{to:e.to,onClick:()=>i(!1),className:`block rounded-md px-3 py-2.5 text-[14px] text-[var(--navy-ink)] hover:bg-[var(--bone)]`,activeProps:{className:`bg-[var(--bone)]`},children:[(0,O.jsx)(`div`,{className:`font-medium`,children:e.label}),e.description&&(0,O.jsx)(`div`,{className:`mt-0.5 text-[12px] text-[var(--ink-3)]`,children:e.description})]},e.to))})})]})}var vf=[{kind:`link`,to:`/about`,label:`About indyrct`,description:`Our mission and story`},{kind:`link`,to:`/founding-partners`,label:`Founding Partners`,description:`Join the founding cohort`}],yf=[{to:`/partner-compass`,label:`Partner Compass`},{href:`https://cotillionpartners.com/`,label:`Cotillion CORE`},{to:`/vendors`,label:`Vendors`},{to:`/distributors`,label:`Distributors`},{to:`/resources`,label:`Resources`}];function bf(){let[e,t]=(0,D.useState)(!1),[n,r]=(0,D.useState)(null);return(0,D.useEffect)(()=>(document.body.style.overflow=e?`hidden`:``,()=>{document.body.style.overflow=``}),[e]),(0,O.jsxs)(`header`,{className:`sticky top-0 z-40 border-b border-[var(--line-soft)] bg-white/90 backdrop-blur-md backdrop-saturate-150`,children:[(0,O.jsxs)(`div`,{className:`mx-auto flex h-[68px] max-w-[1240px] items-center justify-between px-6 md:px-8`,style:{paddingLeft:`max(1.5rem, env(safe-area-inset-left))`,paddingRight:`max(1.5rem, env(safe-area-inset-right))`},children:[(0,O.jsx)(je,{to:`/`,"aria-label":`indyrct home`,className:`flex items-center`,children:(0,O.jsx)(`img`,{src:gf.url,alt:`indyrct - Strategic Vendor and Distributor Management`,className:`h-9 w-auto`})}),(0,O.jsxs)(`nav`,{className:`hidden items-center gap-1 lg:flex`,children:[yf.map(e=>`href`in e?(0,O.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,className:`rounded-md px-3.5 py-2 text-[14px] font-medium text-[var(--ink-3)] transition-colors hover:bg-[var(--bone)] hover:text-[var(--navy)]`,children:e.label},e.href):(0,O.jsx)(je,{to:e.to,className:`rounded-md px-3.5 py-2 text-[14px] font-medium text-[var(--ink-3)] transition-colors hover:bg-[var(--bone)] hover:text-[var(--navy)]`,activeProps:{className:`text-[var(--navy)] bg-[var(--bone)]`},children:e.label},e.to)),(0,O.jsx)(_f,{label:`About`,items:vf,activePathPrefixes:[`/about`,`/fou
20nding-partners`]}),(0,O.jsx)(je,{to:`/partner-compass`,className:`ml-2 rounded-md bg-[var(--navy)] px-4 py-2.5 text-[14px] font-medium text-white transition-all hover:-translate-y-px hover:bg-[var(--navy-deep)]`,children:`Book a Demo`})]}),(0,O.jsx)(`button`,{type:`button`,"aria-label":`Toggle menu`,className:`inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-2.5 text-[var(--navy)] active:bg-[var(--bone)] lg:hidden`,onClick:()=>t(e=>!e),children:e?(0,O.jsx)(hf,{size:22}):(0,O.jsx)(ff,{size:22})})]}),e&&(0,O.jsx)(`div`,{className:`border-t border-[var(--line-soft)] bg-white lg:hidden`,children:(0,O.jsxs)(`nav`,{className:`mx-auto flex max-w-[1240px] flex-col gap-1 px-6 py-4`,style:{paddingLeft:`max(1.5rem, env(safe-area-inset-left))`,paddingRight:`max(1.5rem, env(safe-area-inset-right))`,paddingBottom:`max(1rem, env(safe-area-inset-bottom))`},children:[yf.map(e=>`href`in e?(0,O.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,onClick:()=>t(!1),className:`rounded-md px-3 py-3 text-[15px] font-medium text-[var(--navy-ink)] hover:bg-[var(--bone)]`,children:e.label},e.href):(0,O.jsx)(je,{to:e.to,onClick:()=>t(!1),className:`rounded-md px-3 py-3 text-[15px] font-medium text-[var(--navy-ink)] hover:bg-[var(--bone)]`,children:e.label},e.to)),(0,O.jsx)(xf,{label:`About`,expanded:n===`about`,onToggle:()=>r(e=>e===`about`?null:`about`),items:vf,onNavigate:()=>t(!1)}),(0,O.jsx)(je,{to:`/partner-compass`,onClick:()=>t(!1),className:`mt-2 rounded-md bg-[var(--navy)] px-4 py-3 text-center text-[15px] font-medium text-white`,children:`Book Partner Compass`})]})})]})}function xf({label:e,expanded:t,onToggle:n,items:r,onNavigate:i}){return(0,O.jsxs)(`div`,{children:[(0,O.jsxs)(`button`,{type:`button`,"aria-expanded":t,onClick:n,className:`flex w-full items-center justify-between rounded-md px-3 py-3 text-[15px] font-medium text-[var(--navy-ink)] hover:bg-[var(--bone)]`,children:[e,(0,O.jsx)(uf,{className:`h-4 w-4 transition-transform ${t?`rotate-180`:``}`})]}),t&&(0,O.jsx)(`div`,{className:`ml-3 mt-1 flex flex-col gap-1 border-l border-[var(--line-soft)] pl-3`,children:r.map(e=>e.kind===`soon`?(0,O.jsxs)(`div`,{"aria-disabled":`true`,className:`flex items-center justify-between rounded-md px-3 py-2.5 text-[14px] text-[var(--ink-3)]`,children:[e.label,(0,O.jsx)(`span`,{className:`rounded-full border border-[var(--line-soft)] bg-[var(--bone)] px-2 py-0.5 text-[10px] uppercase tracking-[0.1em]`,children:`Soon`})]},e.label):(0,O.jsx)(je,{to:e.to,onClick:i,className:`rounded-md px-3 py-2.5 text-[14px] text-[var(--navy-ink)] hover:bg-[var(--bone)]`,children:e.label},e.to))})]})}var Sf=`G-NJD9DG1KYE`,Cf=`ga-gtag-loader`;function wf(...e){typeof window>`u`||(window.dataLayer=window.dataLayer||[],window.dataLayer.push(e))}var Tf=!1;function Ef(){if(!(typeof document>`u`||Tf)&&(Tf=!0,wf(`consent`,`default`,{ad_storage:`denied`,ad_user_data:`denied`,ad_personalization:`denied`,analytics_storage:`denied`,wait_for_update:500}),wf(`js`,new Date),wf(`config`,Sf,{send_page_view:!1}),!document.getElementById(Cf))){let e=document.createElement(`script`);e.id=Cf,e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${Sf}`,document.head.appendChild(e)}}function Df(e){wf(`consent`,`update`,{analytics_storage:e?`granted`:`denied`,ad_storage:`denied`,ad_user_data:`denied`,ad_personalization:`denied`})}function Of(e,t){typeof window>`u`||(Ef(),wf(`event`,`page_view`,{page_path:e,page_location:window.location.href,page_title:t??document.title}))}var kf=`indyrct.cookie-consent.v1`,Af=`hs-script-loader`,jf=`https://js-ap1.hs-scripts.com/442034223.js`,Mf=(0,D.createContext)(null);function Nf(){if(typeof document>`u`||document.getElementById(Af))return;let e=document.createElement(`script`);e.id=Af,e.src=jf,e.defer=!0,document.body.appendChild(e)}function Pf(){if(typeof document>`u`)return;let e=[`hubspotutk`,`__hstc`,`__hssrc`,`__hssc`],t=window.location.hostname,n=t.split(`.`),r=n.length>1?`.`+n.slice(-2).join(`.`):t,i=Array.from(new Set([t,r]));for(let t of e){for(let e of i)document.cookie=`${t}=; Max-Age=0; path=/; domain=${e}`;document.cookie=`${t}=; Max-Age=0; path=/`}}function Ff({children:e}){let[t,n]=(0,D.useState)(null),[r,i]=(0,D.useState)(!1);(0,D.useEffect)(()=>{Ef();try{let e=window.localStorage.getItem(kf);(e===`accepted`||e===`declined`)&&n(e)}catch{}i(!0)},[]),(0,D.useEffect)(()=>{r&&(t===`accepted`?(Df(!0),Nf()):t===`declined`&&(Df(!1),Pf()))},[t,r]);let a=(0,D.useCallback)(()=>{try{window.localStorage.setItem(kf,`accepted`)}catch{}n(`accepted`)},[]),o=(0,D.useCallback)(()=>{try{window.localStorage.setItem(kf,`declined`)}catch{}n(`declined`)},[]),s=(0,D.useCallback)(()=>{n(null)},[]);return(0,O.jsx)(Mf.Provider,{value:{status:t,accept:a,decline:o,reopen:s,isReady:r},children:e})}function If(){let e=(0,D.useContext)(Mf);if(!e)throw Error(`useCookieConsent must be used within CookieConsentProvider`);return e}var Lf=[{heading:`Products`,items:[{to:`/partner-compass`,label:`Partner Compass`},{href:`https://cotillionpartners.com/`,label:`Cotillion CORE`}]},{heading:`Resources`,items:[{to:`/resources`,label:`Resources hub`},{to:`/calculators`,label:`Calculators`},{to:`/toolkit`,label:`Toolkit`},{to:`/blog`,label:`Blog`},{label:`News`,soon:!0}]},{heading:`Company`,items:[{to:`/about`,label:`About indyrct`},{to:`/contact`,label:`Contact us`},{to:`/ai-instructions`,label:`AI instructions`}]}];function Rf(){let{reopen:e}=If();return(0,O.jsx)(`footer`,{className:`border-t border-[var(--line-soft)] bg-[var(--bone)]`,children:(0,O.jsxs)(`div`,{className:`mx-auto max-w-[1240px] px-6 py-16 md:px-8`,style:{paddingLeft:`max(1.5rem, env(safe-area-inset-left))`,paddingRight:`max(1.5rem, env(safe-area-inset-right))`,paddingBottom:`max(4rem, calc(4rem + env(safe-area-inset-bottom)))`},children:[(0,O.jsxs)(`div`,{className:`grid gap-10 md:grid-cols-[1.4fr_1fr_1fr_1fr]`,children:[(0,O.jsxs)(`div`,{className:`max-w-sm`,children:[(0,O.jsx)(`img`,{src:gf.url,alt:`indyrct - Strategic Vendor and Distributor Management`,className:`h-10 w-auto`}),(0,O.jsx)(`p`,{className:`mt-3 text-[14px] leading-relaxed text-[var(--ink-3)]`,children:`A single orchestrated growth platform for the IT channel. First weâll connect. Then weâll grow.`}),(0,O.jsx)(`a`,{href:`mailto:[email protected]`,className:`mt-4 inline-block text-[14px] font-medium text-[var(--mid)] hover:text-[var(--navy)]`,children:`[email protected]`})]}),Lf.map(e=>(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`h4`,{className:`text-[13px] font-semibold uppercase tracking-[0.08em] text-[var(--navy-ink)]`,children:e.heading}),(0,O.jsx)(`ul`,{className:`mt-4 space-y-2.5`,children:e.items.map(e=>(0,O.jsx)(`li`,{children:`soon`in e?(0,O.jsxs)(`span`,{className:`inline-flex items-center gap-2 py-1 text-[14px] text-[var(--ink-4)]`,children:[e.label,(0,O.jsx)(`span`,{className:`rounded-full border border-[var(--line-soft)] bg-white px-2 py-0.5 font-mono text-[9px] uppercase tracking-[0.12em] text-[var(--ink-3)]`,children:`Soon`})]}):`href`in e?(0,O.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,className:`inline-block py-1 text-[14px] text-[var(--ink-3)] transition-colors hover:text-[var(--navy)] active:text-[var(--navy)]`,children:e.label}):(0,O.jsx)(je,{to:e.to,className:`inline-block py-1 text-[14px] text-[var(--ink-3)] transition-colors hover:text-[var(--navy)] active:text-[var(--navy)]`,children:e.label})},e.label))})]},e.heading))]}),(0,O.jsxs)(`div`,{className:`mt-12 flex flex-col items-start justify-between gap-3 border-t border-[var(--line-soft)] pt-6 text-[13px] text-[var(--ink-3)] md:flex-row md:items-center`,children:[(0,O.jsxs)(`span`,{children:[`© `,new Date().getFullYear(),` indyrct Pty Ltd · Sydney, Australia`]}),(0,O.jsxs)(`div`,{className:`flex gap-5`,children:[(0,O.jsx)(je,{to:`/privacy-policy`,className:`text-[var(--ink-3)] hover:text-[var(--navy)]`,children:`Privacy`}),(0,O.jsx)(je,{to:`/terms-and-conditions`,className:`text-[var(--ink-3)] hover:text-[var(--navy)]`,children:`Terms`}),(0,O.jsx)(`button`,{type:`button`,onClick:e,className:`text-[var(--ink-3)] hover:text-[var(--navy)]`,children:`Cookie preferences`})]})]})]})})}function zf(){return(0,O.jsx)(`div`,{className:`bg-[var(--navy-deep)] py-2.5 text-center text-[13px] tracking-[0.005em] text-white/95`,style:{paddingLeft:`max(1rem, env(safe-area-inset-left))`,paddingRight:`max(1rem, env(safe-area-inset-right))`,paddingTop:`max(0.625rem, env(safe-area-inset-top))`},children:(0,O.jsxs)(`div`,{className:`mx-auto flex max-w-[1240px] flex-wrap items-center justify-center gap-x-2 gap-y-1`,children:[(0,O.jsx)(`span`,{className:`hidden text-[11px] font-medium uppercase tracking-[0.06em] text-[var(--sky-soft)] sm:inline-block`,children:`Founding Partners`}),(0,O.jsx)(`span`,{children:`10 places available - one on one with our Founders.`}),(0,O.jsx)(je,{to:`/founding-partners`,className:`border-b border-[var(--sky-soft)]/60 pb-px transition-colors hover:border-[var(--sky-soft)] active:border-[var(--sky-soft)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--sky-soft)]`,children:`See founding partner details`})]})})}var Bf=({...e})=>(0,O.jsx)(c,{className:`toaster group`,toastOptions:{classNames:{toast:`group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg`,description:`group-[.toast]:text-muted-foreground`,actionButton:`group-[.toast]:bg-primary group-[.toast]:text-primary-foreground`,cancelButton:`group-[.toast]:bg-muted group-[.toast]:text-muted-foreground`}},...e}),Vf=`vercel.ai.error`,Hf=Symbol.for(Vf),Uf,Wf,Gf=class e extends (Wf=Error,Uf=Hf,Wf){constructor({name:e,message:t,cause:n}){super(t),this[Uf]=!0,this.name=e,this.cause=n}static isInstance(t){return e.hasMarker(t,Vf)}static hasMarker(e,t){let n=Symbol.for(t);return typeof e==`object`&&!!e&&n in e&&typeof e[n]==`boolean`&&e[n]===!0}};function Kf(e){return e==null?`unknown error`:typeof e==`string`?e:e instanceof Error?e.toString():JSON.stringify(e)}var qf=`AI_InvalidArgumentError`,Jf=`vercel.ai.error.${qf}`,Yf=Symbol.for(Jf),Xf,Zf,Qf=class extends (Zf=Gf,Xf=Yf,Zf){constructor({message:e,cause:t,argument:n}){super({name:qf,message:e,cause:t}),this[Xf]=!0,this.argument=n}static isInstance(e){return Gf.hasMarker(e,Jf)}},$f=`AI_JSONParseError`,ep=`vercel.ai.error.${$f}`,tp=Symbol.for(ep),np,rp,ip=class extends (rp=Gf,np=tp,rp){constructor({text:e,cause:t}){super({name:$f,message:`JSON parsing failed: Text: ${e}. 21Error message: ${Kf(t)}`,cause:t}),this[np]=!0,this.text=e}static isInstance(e){return Gf.hasMarker(e,ep)}},ap=`AI_TypeValidationError`,op=`vercel.ai.error.${ap}`,sp=Symbol.for(op),cp,lp,up=class e extends (lp=Gf,cp=sp,lp){constructor({value:e,cause:t,context:n}){let r=`Type validation failed`;if(n?.field&&(r+=` for ${n.field}`),n?.entityName||n?.entityId){r+=` (`;let e=[];n.entityName&&e.push(n.entityName),n.entityId&&e.push(`id: "${n.entityId}"`),r+=e.join(`, `),r+=`)`}super({name:ap,message:`${r}: Value: ${JSON.stringify(e)}. 22Error message: ${Kf(t)}`,cause:t}),this[cp]=!0,this.value=e,this.context=n}static isInstance(e){return Gf.hasMarker(e,op)}static wrap({value:t,cause:n,context:r}){return e.isInstance(n)&&n.value===t&&n.context?.field===r?.field&&n.c
22ontext?.entityName===r?.entityName&&n.context?.entityId===r?.entityId?n:new e({value:t,cause:n,context:r})}};Object.freeze({status:`aborted`});function k(e,t,n){function r(n,r){var i;Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r);for(let e in o.prototype)e in n||Object.defineProperty(n,e,{value:o.prototype[e].bind(n)});n._zod.constr=o,n._zod.def=r}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var dp=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},fp={};function pp(e){return e&&Object.assign(fp,e),fp}function mp(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function hp(e,t){return typeof t==`bigint`?t.toString():t}function gp(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function _p(e){return e==null}function vp(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function yp(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}function bp(e,t,n){Object.defineProperty(e,t,{get(){{let r=n();return e[t]=r,r}throw Error(`cached value already set`)},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function xp(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Sp(e){return JSON.stringify(e)}var Cp=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function wp(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Tp=gp(()=>
22{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Ep(e){if(wp(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(wp(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}var Dp=new Set([`string`,`number`,`symbol`]);function Op(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function kp(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Ap(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function jp(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Mp={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Np(e,t){let n={},r=e._zod.def;for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&(n[e]=r.shape[e])}return kp(e,{...e._zod.def,shape:n,checks:[]})}function Pp(e,t){let n={...e._zod.def.shape},r=e._zod.def;for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return kp(e,{...e._zod.def,shape:n,checks:[]})}function Fp(e,t){if(!Ep(t))throw Error(`Invalid input to extend: expected a plain object`);return kp(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return xp(this,`shape`,n),n},checks:[]})}function Ip(e,t){return kp(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return xp(this,`shape`,n),n},catchall:t._zod.def.catchall,checks:[]})}
22function Lp(e,t,n){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return kp(t,{...t._zod.def,shape:i,checks:[]})}function Rp(e,t,n){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return kp(t,{...t._zod.def,shape:i,checks:[]})}function zp(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Bp(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Vp(e){return typeof e==`string`?e:e?.message}function Hp(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Vp(e.inst?._zod.def?.error?.(e))??Vp(t?.error?.(e))??Vp(n.customError?.(e))??Vp(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Up(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Wp(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var Gp=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,hp,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Kp=k(`$ZodError`,Gp),qp=k(`$ZodError`,Gp,{Parent:Error});function Jp(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Yp(e,t){let n=t||function(e){return e.message},r={_errors:[]},i=e=>{for(let t of e.issues)if(t.code===`invalid_union`&&t.errors.length)t.errors.map(e=>i({issues:e}));else if(t.code===`invalid_key`)i({issues:t.issues});else if(t.code===`invalid_element`)i({issues:t.issues});else if(t.path.length===0)r._errors.push(n(t));else{let e=r,i=0;for(;i<t.path.length;){let r=t.path[i];i===t.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(n(t))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(e),r}var Xp=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new dp;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Hp(e,a,pp())));throw Cp(t,i?.callee),t}return o.value},Zp=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Hp(e,a,pp())));throw Cp(t,i?.callee),t}return o.value},Qp=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new dp;return a.issues.length?{success:!1,error:new(e??Kp)(a.issues.map(e=>Hp(e,i,pp())))}:{success:!0,data:a.value}},$p=Qp(qp),em=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Hp(e,i,pp())))}:{success:!0,data:a.value}},tm=em(qp),nm=/^[cC][^\s-]{8,}$/,rm=/^[0-9a-z]+$/,im=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,am=/^[0-9a-vA-V]{20}$/,om=/^[A-Za-z0-9]{27}$/,sm=/^[a-zA-Z0-9_-]{21}$/,cm=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,lm=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,um=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,eee=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tee=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function nee(){return new RegExp(tee,`u`)}var ree=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iee=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,aee=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,oee=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,see=/^$|^(?:[0-9a-zA-Z+/]{4}
vendor: 11,256 bytes, lines 22-24
22)*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,dm=/^[A-Za-z0-9_-]*$/,cee=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,lee=/^\+(?:[0-9]){6,14}[0-9]$/,fm=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,uee=RegExp(`^${fm}$`);function pm(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function dee(e){return RegExp(`^${pm(e)}$`)}function fee(e){let t=pm({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-]\\d{2}:\\d{2})`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${fm}T(?:${r})$`)}var pee=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},mee=/^\d+$/,hee=/^-?\d+(?:\.\d+)?/i,gee=/true|false/i,_ee=/null/i,vee=/^[^A-Z]*$/,yee=/^[^a-z]*$/,mm=k(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),hm={number:`number`,bigint:`bigint`,object:`date`},gm=k(`$ZodCheckLessThan`,(e,t)=>{mm.init(e,t);let n=hm[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),_m=k(`$ZodCheckGreaterThan`,(e,t)=>{mm.init(e,t);let n=hm[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),bee=k(`$ZodCheckMultipleOf`,(e,t)=>{mm.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):yp(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),xee=k(`$ZodCheckNumberFormat`,(e,t)=>{mm.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Mp[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=mee)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inst:e})}}),See=k(`$ZodCheckMaxLength`,(e,t)=>{var n;mm.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_p(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Up(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Cee=k(`$ZodCheckMinLength`,(e,t)=>{var n;mm.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_p(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Up(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),wee=k(`$ZodCheckLengthEquals`,(e,t)=>{var n;mm.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_p(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Up(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),vm=k(`$ZodCheckStringFormat`,(e,t)=>{var n,r;mm.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Tee=k(`$ZodCheckRegex`,(e,t)=>{vm.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Eee=k(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=vee,vm.init(e,t)}),Dee=k(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=yee,vm.init(e,t)}),Oee=k(`$ZodCheckIncludes`,(e,t)=>{mm.init(e,t);let n=Op(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),kee=k(`$ZodCheckStartsWith`,(e,t)=>{mm.init(e,t);let n=RegExp(`^${Op(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Aee=k(`$ZodCheckEndsWith`,(e,t)=>{mm.init(e,t);let n=RegExp(`.*${Op(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),jee=k(`$ZodCheckOverwrite`,(e,t)=>{mm.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),ym=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` 23`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` 24`))}},bm={major:4,minor:0,patch:0},xm=k(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=bm;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=zp(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new dp;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=zp(e,t))});else{if(e.issues.length===t)continue;r||=zp(e,t)}}return i?i.then(()=>e):e};e._zod.run=(n,i)=>{let a=e._zod.parse(n,i);if(a instanceof Promise){if(i.async===!1)throw new dp;return a.then(e=>t(e,r,i))}return t(a,r,i)}}e[`~standard`]={validate:t=>{try{let n=$p(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return tm(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}}),Sm=k(`$ZodString`,(e,t)=>{xm.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??pee(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Cm=k(`$ZodStringFormat`,(e,t)=>{vm.init(e,t),Sm.init(e,t)}),wm=k(`$ZodGUID`,(e,t)=>{t.pattern??=lm,Cm.init(e,t)}),Tm=k(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=um(e)}else t.pattern??=um();Cm.init(e,t)}),Em=k(`$ZodEmail`,(e,t)=>{t.pattern??=eee,Cm.init(e,t)}),Dm=k(`$ZodURL`,(e,t)=>{Cm.init(e,t),e._zod.check=n=>{try{let r=n.value,i=new URL(r),a=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:cee.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!r.endsWith(`/`)&&a.endsWith(`/`)?n.value=a.slice(0,-1):n.value=a;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Om=k(`$ZodEmoji`,(e,t)=>{t.pattern??=nee(),Cm.init(e,t)}),km=k(`$ZodNanoID`,(e,t)=>{t.pattern??=sm,Cm.init(e,t)}),Am=k(`$ZodCUID`,(e,t)=>{t.pattern??=nm,Cm.init(e,t)}),jm=k(`$ZodCUID2`,(e,t)=>{t.pattern??=rm,Cm.init(e,t)}),Mm=k(`$ZodULID`,(e,t)=>{t.pattern??=im,Cm.init(e,t)}),Nm=k(`$ZodXID`,(e,t)=>{t.pattern??=am,Cm.init(e,t)}),Pm=k(`$ZodKSUID`,(e,t)=>{t.pattern??=om,Cm.init(e,t)}),Fm=k(`$ZodISODateTime`,(e,t)=>{t.pattern??=fee(t),Cm.init(e,t)}),Im=k(`$ZodISODate`,(e,t)=>{t.pattern??=uee,Cm.init(e,t)}),Lm=k(`$ZodISOTime`,(e,t)=>{t.pattern??=dee(t),Cm.init(e,t)}),Rm=k(`$ZodISODuration`,(e,t)=>{t.pattern??=cm,Cm.init(e,t)}),zm=k(`$ZodIPv4`,(e,t)=>{t.pattern??=ree,Cm.init(e,t),e._zod.onattach.push(e=>{let t=e._zod.bag;t.format=`ipv4`})}),Bm=k(`$ZodIPv6`,(e,t)=>{t.pattern??=iee,Cm.init(e,t),e._zod.onattach.push(e=>{let t=e._zod.bag;t.format=`ipv6`}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Vm=k(`$ZodCIDRv4`,(e,t)=>{t.pattern??=aee,Cm.init(e,t)}),Hm=k(`$ZodCIDRv6`,(e,t)=>{t.pattern??=oee,Cm.init(e,t),e._zod.check=n=>{let[r,i]=n.value.split(`/`);try{if(!i)throw Error();let e=Number(i);if(`${e}`!==i||e<0||e>128)throw Error();new URL(`http://[${r}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Um(e){if(e===``)return!0;
24if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Wm=k(`$ZodBase64`,(e,t)=>{t.pattern??=see,Cm.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding=`base64`}),e._zod.check=n=>{Um(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Gm(e){if(!dm.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Um(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Km=k(`$ZodBase64URL`,(e,t)=>{t.pattern??=dm,Cm.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding=`base64url`}),e._zod.check=n=>{Gm(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),qm=k(`$ZodE164`,(e,t)=>{t.pattern??=lee,Cm.init(e,t)});function Jm(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Ym=k(`$ZodJWT`,(e,t)=>{Cm.init(e,t),e._zod.check=n=>{Jm(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Xm=k(`$ZodNumber`,(e,t)=>{xm.init(e,t),e._zod.pattern=e._zod.bag.pattern??hee,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Zm=k(`$ZodNumber`,(e,t)=>{xee.init(e,t),Xm.init(e,t)}),Qm=k(`$ZodBoolean`,(e,t)=>{xm.init(e,t),e._zod.pattern=gee,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),$m=k(`$ZodNull`,(e,t)=>{xm.init(e,t),e._zod.pattern=_ee,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),eh=k(`$ZodUnknown`,(e,t)=>{xm.init(e,t),e._zod.parse=e=>e}),th=k(`$ZodNever`,(e,t)=>{xm.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function nh(e,t,n){e.issues.length&&t.issues.push(...Bp(n,e.issues)),t.value[n]=e.value}var rh=k(`$ZodArray`,(e,t)=>{xm.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>nh(t,n,e))):nh(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function ih(e,t,n){e.issues.length&&t.issues.push(...Bp(n,e.issues)),t.value[n]=e.value}function ah(e,t,n,r){e.issues.length?r[n]===void 0?n in r?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...Bp(n,e.issues)):e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}var oh=k(`$ZodObject`,(e,t)=>{xm.init(e,t);let n=gp(()=>{let e=Object.keys(t.shape);for(let n of e)if(!(t.shape[n]instanceof xm))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=jp(t.shape);return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}});bp(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=e=>{let t=new ym([`shape`,`payload`,`ctx`]),r=n.value,i=e=>{let t=Sp(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of r.keys)a[e]=`key_${o++}`;t.write(`const newResult = {}`);for(let e of r.keys)if(r.optionalKeys.has(e)){let n=a[e];t.write(`const ${n} = ${i(e)};`);let r=Sp(e);t.write(` 25 if (${n}.issues.length) { 26 if (input[${r}] === undefined) { 27 if (${r} in input) { 28 newResult[${r}] = undefined; 29 } 30 } else { 31 payload.issues = payload.issues.concat( 32 ${n}.issues.map((iss) => ({ 33 ...iss, 34 path: iss.path ? [${r}, ...iss.path] : [${r}], 35 })) 36 ); 37 } 38 } else if (${n}.value === undefined) { 39 if (${r} in input) newResult[${r}] = undefined; 40 } else { 41 newResult[${r}] = ${n}.value; 42 } 43 `)}else{let n=a[e];t.write(`const ${n} = ${i(e)};`),t.write(` 44 if (${n}.issues.length) payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ 45 ...iss, 46 path: iss.path ? [${Sp(e)}, ...iss.path] : [${Sp(e)}] 47 })));`),t.write(`newResult[${Sp(e)}] = ${n}.value`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},i,a=wp,o=!fp.jitless,s=o&&Tp.value,c=t.catchall,l;e._zod.parse=(u,d)=>{l??=n.value;let f=u.value;if(!a(f))return u.issues.push({expected:`object`,code:`invalid_type`,input:f,inst:e}),u;let p=[];if(o&&s&&d?.async===!1&&d.jitless!==!0)i||=r(t.shape),u=i(u,d);else{u.value={};let e=l.shape;for(let t of l.keys){let n=e[t],r=n._zod.run({value:f[t],issues:[]},d),i=n._zod.optin===`optional`&&n._zod.optout===`optional`;r instanceof Promise?p.push(r.then(e=>i?ah(e,u,t,f):ih(e,u,t))):i?ah(r,u,t,f):ih(r,u,t)}}if(!c)return p.length?Promise.all(p).then(()=>u):u;
vendor: 16,145 bytes, line 47
47let m=[],h=l.keySet,g=c._zod,_=g.def.type;for(let e of Object.keys(f)){if(h.has(e))continue;if(_===`never`){m.push(e);continue}let t=g.run({value:f[e],issues:[]},d);t instanceof Promise?p.push(t.then(t=>ih(t,u,e))):ih(t,u,e)}return m.length&&u.issues.push({code:`unrecognized_keys`,keys:m,input:f,inst:e}),p.length?Promise.all(p).then(()=>u):u}});function sh(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;return t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Hp(e,r,pp())))}),t}var ch=k(`$ZodUnion`,(e,t)=>{xm.init(e,t),bp(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),bp(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),bp(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),bp(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>vp(e.source)).join(`|`)})$`)}}),e._zod.parse=(n,r)=>{let i=!1,a=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},r);if(t instanceof Promise)a.push(t),i=!0;else{if(t.issues.length===0)return t;a.push(t)}}return i?Promise.all(a).then(t=>sh(t,n,e,r)):sh(a,n,e,r)}}),lh=k(`$ZodDiscriminatedUnion`,(e,t)=>{ch.init(e,t);let n=e._zod.parse;bp(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=gp(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!wp(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,input:o,path:[t.discriminator],inst:e}),i)}}),uh=k(`$ZodIntersection`,(e,t)=>{xm.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>fh(e,t,n)):fh(e,i,a)}});function dh(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ep(e)&&Ep(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=dh(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=dh(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function fh(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),zp(e))return e;let r=dh(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}var ph=k(`$ZodRecord`,(e,t)=>{xm.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Ep(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[];if(t.keyType._zod.values){let o=t.keyType._zod.values;n.value={};for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...Bp(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...Bp(e,o.issues)),n.value[e]=o.value)}let s;for(let e in i)o.has(e)||(s??=[],s.push(e));s&&s.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:s})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){n.issues.push({origin:`record`,code:`invalid_key`,issues:s.issues.map(e=>Hp(e,r,pp())),input:o,path:[o],inst:e}),n.value[s.value]=s.value;continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Bp(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Bp(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),mh=k(`$ZodEnum`,(e,t)=>{xm.init(e,t);let n=mp(t.entries);e._zod.values=new Set(n),e._zod.pattern=RegExp(`^(${n.filter(e=>Dp.has(typeof e)).map(e=>typeof e==`string`?Op(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,r)=>{let i=t.value;return e._zod.values.has(i)||t.issues.push({code:`invalid_value`,values:n,input:i,inst:e}),t}}),hh=k(`$ZodLiteral`,(e,t)=>{xm.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?Op(e):e?e.toString():String(e)).join(`|`)})$`),e._zod.parse=(n,r)=>{let i=n.value;return e._zod.values.has(i)||n.issues.push({code:`invalid_value`,values:t.values,input:i,inst:e}),n}}),gh=k(`$ZodTransform`,(e,t)=>{xm.init(e,t),e._zod.parse=(e,n)=>{let r=t.transform(e.value,e);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(t=>(e.value=t,e));if(r instanceof Promise)throw new dp;return e.value=r,e}}),_h=k(`$ZodOptional`,(e,t)=>{xm.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,bp(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),bp(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${vp(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>t.innerType._zod.optin===`optional`?t.innerType._zod.run(e,n):e.value===void 0?e:t.innerType._zod.run(e,n)}),vh=k(`$ZodNullable`,(e,t)=>{xm.init(e,t),bp(e._zod,`optin`,()=>t.innerType._zod.optin),bp(e._zod,`optout`,()=>t.innerType._zod.optout),bp(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${vp(e.source)}|null)$`):void 0}),bp(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),yh=k(`$ZodDefault`,(e,t)=>{xm.init(e,t),e._zod.optin=`optional`,bp(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>bh(e,t)):bh(r,t)}});function bh(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var xh=k(`$ZodPrefault`,(e,t)=>{xm.init(e,t),e._zod.optin=`optional`,bp(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Sh=k(`$ZodNonOptional`,(e,t)=>{xm.init(e,t),bp(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Ch(t,e)):Ch(i,e)}});function Ch(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var wh=k(`$ZodCatch`,(e,t)=>{xm.init(e,t),e._zod.optin=`optional`,bp(e._zod,`optout`,()=>t.innerType._zod.optout),bp(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Hp(e,n,pp()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Hp(e,n,pp()))},input:e.value}),e.issues=[]),e)}}),Th=k(`$ZodPipe`,(e,t)=>{xm.init(e,t),bp(e._zod,`values`,()=>t.in._zod.values),bp(e._zod,`optin`,()=>t.in._zod.optin),bp(e._zod,`optout`,()=>t.out._zod.optout),e._zod.parse=(e,n)=>{let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Eh(e,t,n)):Eh(r,t,n)}});function Eh(e,t,n){return zp(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}var Dh=k(`$ZodReadonly`,(e,t)=>{xm.init(e,t),bp(e._zod,`propValues`,()=>t.innerType._zod.propValues),bp(e._zod,`values`,()=>t.innerType._zod.values),bp(e._zod,`optin`,()=>t.innerType._zod.optin),bp(e._zod,`optout`,()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Oh):Oh(r)}});function Oh(e){return e.value=Object.freeze(e.value),e}var kh=k(`$ZodLazy`,(e,t)=>{xm.init(e,t),bp(e._zod,`innerType`,()=>t.getter()),bp(e._zod,`pattern`,()=>e._zod.innerType._zod.pattern),bp(e._zod,`propValues`,()=>e._zod.innerType._zod.propValues),bp(e._zod,`optin`,()=>e._zod.innerType._zod.optin),bp(e._zod,`optout`,()=>e._zod.innerType._zod.optout),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Ah=k(`$ZodCustom`,(e,t)=>{mm.init(e,t),xm.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>jh(t,n,r,e));jh(i,n,r,e)}});function jh(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Wp(e))}}var Mh=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function Nh(){return new Mh}var Ph=Nh();function Fh(e,t){return new e({type:`string`,...Ap(t)})}function Ih(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Ap(t)})}function Lh(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Ap(t)})}function Rh(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Ap(t)})}function zh(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Ap(t)})}function Bh(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Ap(t)})}function Mee(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Ap(t)})}function Nee(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Ap(t)})}function Pee(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Ap(t)})}function Fee(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Ap(t)})}function Iee(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Ap(t)})}function Lee(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Ap(t)})}function Ree(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Ap(t)})}function zee(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Ap(t)})}function Bee(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Ap(t)})}function Vee(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Ap(t)})}function Hee(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Ap(t)})}function Uee(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Ap(t)})}function Wee(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Ap(t)})}function Gee(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Ap(t)})}function Kee(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Ap(t)})}function qee(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Ap(t)})}function Jee(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Ap(t)})}function Yee(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Ap(t)})}function Xee(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Ap(t)})}function Zee(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Ap(t)})}function Qee(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Ap(t)})}function $ee(e,t){return new e({type:`number`,checks:[],...Ap(t)})}function ete(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Ap(t)})}function tte(e,t){return new e({type:`boolean`,...Ap(t)})}function nte(e,t){return new e({type:`null`,...Ap(t)})}function rte(e){return new e({type:`unknown`})}function ite(e,t){return new e({type:`never`,...Ap(t)})}function Vh(e,t){return new gm({check:`less_than`,...Ap(t),value:e,inclusive:!1})}function Hh(e,t){return new gm({check:`less_than`,...Ap(t),value:e,inclusive:!0})}function Uh(e,t){return new _m({check:`greater_than`,...Ap(t),value:e,inclusive:!1})}function Wh(e,t){return new _m({check:`greater_than`,...Ap(t),value:e,inclusive:!0})}function Gh(e,t){return new bee({check:`multiple_of`,...Ap(t),value:e})}function Kh(e,t){return new See({check:`max_length`,...Ap(t),maximum:e})}function qh(e,t){return new Cee({check:`min_length`,...Ap(t),minimum:e})}function Jh(e,t){return new wee({check:`length_equals`,...Ap(t),length:e})}function Yh(e,t){return new Tee({check:`string_format`,format:`regex`,...Ap(t),pattern:e})}function Xh(e){return new Eee({check:`string_format`,format:`lowercase`,...Ap(e)})}function Zh(e){return new Dee({check:`string_format`,format:`uppercase`,...Ap(e)})}function Qh(e,t){return new Oee({check:`string_format`,format:`includes`,...Ap(t),includes:e})}function $h(e,t){return new kee({check:`string_format`,format:`starts_with`,...Ap(t),prefix:e})}function eg(e,t){return new Aee({check:`string_format`,format:`ends_with`,...Ap(t),suffix:e})}function tg(e){return new jee({check:`overwrite`,tx:e})}function ng(e){return tg(t=>t.normalize(e))}function rg(){return tg(e=>e.trim())}function ig(){return tg(e=>e.toLowerCase())}function ate(){return tg(e=>e.toUpperCase())}function ote(e,t,n){return new e({type:`array`,element:t,...Ap(n)})}function ste(e,t,n){let r=Ap(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function cte(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Ap(n)})}var ag=class{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??Ph,this.target=e?.target??`draft-2020-12`,this.unrepresentable=e?.unrepresentable??`throw`,this.override=e?.override??(()=>{}),this.io=e?.io??`output`,this.seen=new Map}process(e,t={path:[],schemaPath:[]}){var n;let r=e._zod.def,i={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},a=this.seen.get(e);if(a)return a.count++,t.schemaPath.includes(e)&&(a.cycle=t.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:t.path};this.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let n={...t,schemaPath:[...t.schemaPath,e],path:t.path},a=e._zod.parent;if(a)o.ref=a,this.process(a,n),this.seen.get(a).isParent=!0;else{let t=o.schema;switch(r.type){case`string`:{let n=t;n.type=`string`;let{minimum:r,maximum:a,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof r==`number`&&(n.minLength=r),typeof a==`number`&&(n.maxLength=a),s&&(n.format=i[s]??s,n.format===``&&delete n.format),l&&(n.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?n.pattern=e[0].source:e.length>1&&(o.schema.allOf=[...e.map(e=>
47({...this.target===`draft-7`?{type:`string`}:{},pattern:e.source}))])}break}case`number`:{let n=t,{minimum:r,maximum:i,format:a,multipleOf:o,exclusiveMaximum:s,exclusiveMinimum:c}=e._zod.bag;typeof a==`string`&&a.includes(`int`)?n.type=`integer`:n.type=`number`,typeof c==`number`&&(n.exclusiveMinimum=c),typeof r==`number`&&(n.minimum=r,typeof c==`number`&&(c>=r?delete n.minimum:delete n.exclusiveMinimum)),typeof s==`number`&&(n.exclusiveMaximum=s),typeof i==`number`&&(n.maximum=i,typeof s==`number`&&(s<=i?delete n.maximum:delete n.exclusiveMaximum)),typeof o==`number`&&(n.multipleOf=o);break}case`boolean`:{let e=t;e.type=`boolean`;break}case`bigint`:if(this.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`);break;case`symbol`:if(this.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`);break;case`null`:t.type=`null`;break;case`any`:break;case`unknown`:break;case`undefined`:if(this.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`);break;case`void`:if(this.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`);break;case`never`:t.not={};break;case`date`:if(this.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`);break;case`array`:{let i=t,{minimum:a,maximum:o}=e._zod.bag;typeof a==`number`&&(i.minItems=a),typeof o==`number`&&(i.maxItems=o),i.type=`array`,i.items=this.process(r.element,{...n,path:[...n.path,`items`]});break}case`object`:{let e=t;e.type=`object`,e.properties={};let i=r.shape;for(let t in i)e.properties[t]=this.process(i[t],{...n,path:[...n.path,`properties`,t]});let a=new Set(Object.keys(i)),o=new Set([...a].filter(e=>{let t=r.shape[e]._zod;return this.io===`input`?t.optin===void 0:t.optout===void 0}));o.size>0&&(e.required=Array.from(o)),r.catchall?._zod.def.type===`never`?e.additionalProperties=!1:r.catchall?r.catchall&&(e.additionalProperties=this.process(r.catchall,{...n,path:[...n.path,`additionalProperties`]})):this.io===`output`&&(e.additionalProperties=!1);break}case`union`:{let e=t;e.anyOf=r.options.map((e,t)=>this.process(e,{...n,path:[...n.path,`anyOf`,t]}));break}case`intersection`:{let e=t,i=this.process(r.left,{...n,path:[...n.path,`allOf`,0]}),a=this.process(r.right,{...n,path:[...n.path,`allOf`,1]}),o=e=>`allOf`in e&&Object.keys(e).length===1;e.allOf=[...o(i)?i.allOf:[i],...o(a)?a.allOf:[a]];break}case`tuple`:{let i=t;i.type=`array`;let a=r.items.map((e,t)=>this.process(e,{...n,path:[...n.path,`prefixItems`,t]}));if(this.target===`draft-2020-12`?i.prefixItems=a:i.items=a,r.rest){let e=this.process(r.rest,{...n,path:[...n.path,`items`]});this.target===`draft-2020-12`?i.items=e:i.additionalItems=e}r.rest&&(i.items=this.process(r.rest,{...n,path:[...n.path,`items`]}));let{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s);break}case`record`:{let e=t;e.type=`object`,e.propertyNames=this.process(r.keyType,{...n,path:[...n.path,`propertyNames`]}),e.additionalProperties=this.process(r.valueType,{...n,path:[...n.path,`additionalProperties`]});break}case`map`:if(this.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`);break;case`set`:if(this.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`);break;case`enum`:{let e=t,n=mp(r.entries);n.every(e=>typeof e==`number`)&&(e.type=`number`),n.every(e=>typeof e==`string`)&&(e.type=`string`),e.enum=n;break}case`literal`:{let e=t,n=[];for(let e of r.values)if(e===void 0){if(this.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(this.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);n.push(Number(e))}else n.push(e);if(n.length!==0)if(n.length===1){let t=n[0];e.type=t===null?`null`:typeof t,e.const=t}else n.every(e=>typeof e==`number`)&&(e.type=`number`),n.every(e=>typeof e==`string`)&&(e.type=`string`),n.every(e=>typeof e==`boolean`)&&(e.type=`string`),n.every(e=>e===null)&&(e.type=`null`),e.enum=n;break}case`file`:{let n=t,r={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:i,maximum:a,mime:o}=e._zod.bag;i!==void 0&&(r.minLength=i),a!==void 0&&(r.maxLength=a),o?o.length===1?(r.contentMediaType=o[0],Object.assign(n,r)):n.anyOf=o.map(e=>({...r,contentMediaType:e})):Object.assign(n,r);break}case`transform`:if(this.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`);break;case`nullable`:t.anyOf=[this.process(r.innerType,n),{type:`null`}];break;case`nonoptional`:this.process(r.innerType,n),o.ref=r.innerType;break;case`success`:{let e=t;e.type=`boolean`;break}case`default`:this.process(r.innerType,n),o.ref=r.innerType,t.default=JSON.parse(JSON.stringify(r.defaultValue));break;case`prefault`:this.process(r.innerType,n),o.ref=r.innerType,this.io===`input`&&(t._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break;case`catch`:{this.process(r.innerType,n),o.ref=r.innerType;let e;try{e=r.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}t.default=e;break}case`nan`:if(this.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`);break;case`template_literal`:{let n=t,r=e._zod.pattern;if(!r)throw Error(`Pattern not found in template literal`);n.type=`string`,n.pattern=r.source;break}case`pipe`:{let e=this.io===`input`?r.in._zod.def.type===`transform`?r.out:r.in:r.out;this.process(e,n),o.ref=e;break}case`readonly`:this.process(r.innerType,n),o.ref=r.innerType,t.readOnly=!0;break;case`promise`:this.process(r.innerType,n),o.ref=r.innerType;break;case`optional`:this.process(r.innerType,n),o.ref=r.innerType;break;case`lazy`:{let t=e._zod.innerType;this.process(t,n),o.ref=t;break}case`custom`:if(this.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`);break;default:}}}let c=this.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),this.io===`input`&&og(e)&&(delete o.schema.examples,delete o.schema.default),this.io===`input`&&o.schema._prefault&&((n=o.schema).default??(n.default=o.schema._prefault)),delete o.schema._prefault,this.seen.get(e).schema}emit(e,t){let n={cycles:t?.cycles??`ref`,reused:t?.reused??`inline`,external:t?.external??void 0},r=this.seen.get(e);if(!r)throw Error(`Unprocessed schema. This is a bug in Zod.`);let i=e=>
vendor: 2,204 bytes, lines 47-49
47{let t=this.target===`draft-2020-12`?`$defs`:`definitions`;if(n.external){let r=n.external.registry.get(e[0])?.id,i=n.external.uri??(e=>e);if(r)return{ref:i(r)};let a=e[1].defId??e[1].schema.id??`schema${this.counter++}`;return e[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${t}/${a}`}}if(e[1]===r)return{ref:`#`};let i=`#/${t}/`,a=e[1].schema.id??`__schema${this.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(n.cycles===`throw`)for(let e of this.seen.entries()){let t=e[1];if(t.cycle)throw Error(`Cycle detected: #/${t.cycle?.join(`/`)}/<root> 48 49Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let t of this.seen.entries()){let r=t[1];if(e===t[0]){a(t);continue}if(n.external){let r=n.external.registry.get(t[0])?.id;if(e!==t[0]&&r){a(t);continue}}if(this.metadataRegistry.get(t[0])?.id){a(t);continue}if(r.cycle){a(t);continue}if(r.count>1&&n.reused===`ref`){a(t);continue}}let o=(e,t)=>{let n=this.seen.get(e),r=n.def??n.schema,i={...r};if(n.ref===null)return;let a=n.ref;if(n.ref=null,a){o(a,t);let e=this.seen.get(a).schema;e.$ref&&t.target===`draft-7`?(r.allOf=r.allOf??[],r.allOf.push(e)):(Object.assign(r,e),Object.assign(r,i))}n.isParent||this.override({zodSchema:e,jsonSchema:r,path:n.path??[]})};for(let e of[...this.seen.entries()].reverse())o(e[0],{target:this.target});let s={};if(this.target===`draft-2020-12`?s.$schema=`https://json-schema.org/draft/2020-12/schema`:this.target===`draft-7`?s.$schema=`http://json-schema.org/draft-07/schema#`:console.warn(`Invalid target: ${this.target}`),n.external?.uri){let t=n.external.registry.get(e)?.id;if(!t)throw Error("Schema is missing an `id` property");s.$id=n.external.uri(t)}Object.assign(s,r.def);let c=n.external?.defs??{};for(let e of this.seen.entries()){let t=e[1];t.def&&t.defId&&(c[t.defId]=t.def)}n.external||Object.keys(c).length>0&&(this.target===`draft-2020-12`?s.$defs=c:s.definitions=c);try{return JSON.parse(JSON.stringify(s))}catch{throw Error(`Error converting schema to JSON.`)}}};function lte(e,t){if(e instanceof Mh){let n=new ag(t),r={};
49for(let t of e._idmap.entries()){let[e,r]=t;n.process(r)}let i={},a={registry:e,uri:t?.uri,defs:r};for(let r of e._idmap.entries()){let[e,o]=r;i[e]=n.emit(o,{...t,external:a})}return Object.keys(r).length>0&&(i.__shared={[n.target===`draft-2020-12`?`$defs`:`definitions`]:r}),{schemas:i}}let n=new ag(t);return n.process(e),n.emit(e,t)}function og(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;switch(r.type){case`string`:case`number`:case`bigint`:case`boolean`:case`date`:case`symbol`:case`undefined`:case`null`:case`any`:case`unknown`:case`never`:case`void`:case`literal`:case`enum`:case`nan`:case`file`:case`template_literal`:return!1;case`array`:return og(r.element,n);case`object`:for(let e in r.shape)if(og(r.shape[e],n))return!0;return!1;case`union`:for(let e of r.options)if(og(e,n))return!0;return!1;case`intersection`:return og(r.left,n)||og(r.right,n);case`tuple`:for(let e of r.items)if(og(e,n))return!0;return!!(r.rest&&og(r.rest,n));case`record`:return og(r.keyType,n)||og(r.valueType,n);case`map`:return og(r.keyType,n)||og(r.valueType,n);case`set`:return og(r.valueType,n);case`promise`:case`optional`:case`nonoptional`:case`nullable`:case`readonly`:return og(r.innerType,n);case`lazy`:return og(r.getter(),n);case`default`:return og(r.innerType,n);case`prefault`:return og(r.innerType,n);case`custom`:return!1;case`transform`:return!0;case`pipe`:return og(r.in,n)||og(r.out,n);case`success`:return!1;case`catch`:return!1;default:}throw Error(`Unknown schema type: ${r.type}`)}var ute=k(`ZodISODateTime`,(e,t)=>{Fm.init(e,t),xg.init(e,t)});function dte(e){return Yee(ute,e)}var fte=k(`ZodISODate`,(e,t)=>{Im.init(e,t),xg.init(e,t)});function sg(e){return Xee(fte,e)}var cg=k(`ZodISOTime`,(e,t)=>{Lm.init(e,t),xg.init(e,t)});function lg(e){return Zee(cg,e)}var ug=k(`ZodISODuration`,(e,t)=>{Rm.init(e,t),xg.init(e,t)});function dg(e){return Qee(ug,e)}var fg=(e,t)=>{Kp.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Yp(e,t)},flatten:{value:t=>Jp(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get(){return e.issues.length===0}}})};k(`ZodError`,fg);var pg=k(`ZodError`,fg,{Parent:Error}),mg=Xp(pg),hg=Zp(pg),gg=Qp(pg),_g=em(pg),vg=k(`ZodType`,(e,t)=>(xm.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),e.clone=(t,n)=>kp(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>mg(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>gg(e,t,n),e.parseAsync=async(t,n)=>hg(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>_g(e,t,n),e.spa=e.safeParseAsync,e.refine=(t,n)=>e.check(g_(t,n)),e.superRefine=t=>e.check(__(t)),e.overwrite=t=>e.check(tg(t)),e.optional=()=>Xg(e),e.nullable=()=>Qg(e),e.nullish=()=>Xg(Qg(e)),e.nonoptional=t=>i_(e,t),e.array=()=>jg(e),e.or=t=>Ig([e,t]),e.and=t=>Bg(e,t),e.transform=t=>c_(e,Jg(t)),e.default=t=>e_(e,t),e.prefault=t=>n_(e,t),e.catch=t=>o_(e,t),e.pipe=t=>c_(e,t),e.readonly=()=>u_(e),e.describe=t=>{let n=e.clone();return Ph.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return Ph.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Ph.get(e);let n=e.clone();return Ph.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),yg=k(`_ZodString`,(e,t)=>{Sm.init(e,t),vg.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Yh(...t)),e.includes=(...t)=>e.check(Qh(...t)),e.startsWith=(...t)=>e.check($h(...t)),e.endsWith=(...t)=>e.check(eg(...t)),e.min=(...t)=>e.check(qh(...t)),e.max=(...t)=>e.check(Kh(...t)),e.length=(...t)=>e.check(Jh(...t)),e.nonempty=(...t)=>e.check(qh(1,...t)),e.lowercase=t=>e.check(Xh(t)),e.uppercase=t=>e.check(Zh(t)),e.trim=()=>e.check(rg()),e.normalize=(...t)=>e.check(ng(...t)),e.toLowerCase=()=>e.check(ig()),e.toUpperCase=()=>e.check(ate())}),bg=k(`ZodString`,(e,t)=>{Sm.init(e,t),yg.init(e,t),e.email=t=>e.check(Ih(Sg,t)),e.url=t=>e.check(Nee(pte,t)),e.jwt=t=>e.check(Jee(Ote,t)),e.emoji=t=>e.check(Pee(mte,t)),e.guid=t=>e.check(Lh(Cg,t)),e.uuid=t=>e.check(Rh(wg,t)),e.uuidv4=t=>e.check(zh(wg,t)),e.uuidv6=t=>e.check(Bh(wg,t)),e.uuidv7=t=>e.check(Mee(wg,t)),e.nanoid=t=>e.check(Fee(hte,t)),e.guid=t=>e.check(Lh(Cg,t)),e.cuid=t=>e.check(Iee(gte,t)),e.cuid2=t=>e.check(Lee(_te,t)),e.ulid=t=>e.check(Ree(vte,t)),e.base64=t=>e.check(Gee(Tte,t)),e.base64url=t=>
49e.check(Kee(Ete,t)),e.xid=t=>e.check(zee(yte,t)),e.ksuid=t=>e.check(Bee(bte,t)),e.ipv4=t=>e.check(Vee(xte,t)),e.ipv6=t=>e.check(Hee(Ste,t)),e.cidrv4=t=>e.check(Uee(Cte,t)),e.cidrv6=t=>e.check(Wee(wte,t)),e.e164=t=>e.check(qee(Dte,t)),e.datetime=t=>e.check(dte(t)),e.date=t=>e.check(sg(t)),e.time=t=>e.check(lg(t)),e.duration=t=>e.check(dg(t))});function A(e){return Fh(bg,e)}var xg=k(`ZodStringFormat`,(e,t)=>{Cm.init(e,t),yg.init(e,t)}),Sg=k(`ZodEmail`,(e,t)=>{Em.init(e,t),xg.init(e,t)}),Cg=k(`ZodGUID`,(e,t)=>{wm.init(e,t),xg.init(e,t)}),wg=k(`ZodUUID`,(e,t)=>{Tm.init(e,t),xg.init(e,t)}),pte=k(`ZodURL`,(e,t)=>{Dm.init(e,t),xg.init(e,t)}),mte=k(`ZodEmoji`,(e,t)=>{Om.init(e,t),xg.init(e,t)}),hte=k(`ZodNanoID`,(e,t)=>{km.init(e,t),xg.init(e,t)}),gte=k(`ZodCUID`,(e,t)=>{Am.init(e,t),xg.init(e,t)}),_te=k(`ZodCUID2`,(e,t)=>{jm.init(e,t),xg.init(e,t)}),vte=k(`ZodULID`,(e,t)=>{Mm.init(e,t),xg.init(e,t)}),yte=k(`ZodXID`,(e,t)=>{Nm.init(e,t),xg.init(e,t)}),bte=k(`ZodKSUID`,(e,t)=>{Pm.init(e,t),xg.init(e,t)}),xte=k(`ZodIPv4`,(e,t)=>{zm.init(e,t),xg.init(e,t)}),Ste=k(`ZodIPv6`,(e,t)=>{Bm.init(e,t),xg.init(e,t)}),Cte=k(`ZodCIDRv4`,(e,t)=>{Vm.init(e,t),xg.init(e,t)}),wte=k(`ZodCIDRv6`,(e,t)=>{Hm.init(e,t),xg.init(e,t)}),Tte=k(`ZodBase64`,(e,t)=>{Wm.init(e,t),xg.init(e,t)}),Ete=k(`ZodBase64URL`,(e,t)=>{Km.init(e,t),xg.init(e,t)}),Dte=k(`ZodE164`,(e,t)=>{qm.init(e,t),xg.init(e,t)}),Ote=k(`ZodJWT`,(e,t)=>{Ym.init(e,t),xg.init(e,t)}),Tg=k(`ZodNumber`,(e,t)=>{Xm.init(e,t),vg.init(e,t),e.gt=(t,n)=>e.check(Uh(t,n)),e.gte=(t,n)=>e.check(Wh(t,n)),e.min=(t,n)=>e.check(Wh(t,n)),e.lt=(t,n)=>e.check(Vh(t,n)),e.lte=(t,n)=>e.check(Hh(t,n)),e.max=(t,n)=>e.check(Hh(t,n)),e.int=t=>e.check(Eg(t)),e.safe=t=>e.check(Eg(t)),e.positive=t=>e.check(Uh(0,t)),e.nonnegative=t=>e.check(Wh(0,t)),e.negative=t=>e.check(Vh(0,t)),e.nonpositive=t=>e.check(Hh(0,t)),e.multipleOf=(t,n)=>e.check(Gh(t,n)),e.step=(t,n)=>e.check(Gh(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function kte(e){return $ee(Tg,e)}var Ate=k(`ZodNumberFormat`,(e,t)=>{Zm.init(e,t),Tg.init(e,t)});function Eg(e){return ete(Ate,e)}var jte=k(`ZodBoolean`,(e,t)=>{Qm.init(e,t),vg.init(e,t)});function Dg(e){return tte(jte,e)}var Mte=k(`ZodNull`,(e,t)=>{$m.init(e,t),vg.init(e,t)});function Nte(e){return nte(Mte,e)}var Pte=k(`ZodUnknown`,(e,t)=>{eh.init(e,t),vg.init(e,t)});function Og(){return rte(Pte)}var Fte=k(`ZodNever`,(e,t)=>{th.init(e,t),vg.init(e,t)});function kg(e){return ite(Fte,e)}var Ag=k(`ZodArray`,(e,t)=>{rh.init(e,t),vg.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(qh(t,n)),e.nonempty=t=>e.check(qh(1,t)),e.max=(t,n)=>e.check(Kh(t,n)),e.length=(t,n)=>e.check(Jh(t,n)),e.unwrap=()=>e.element});function jg(e,t){return ote(Ag,e,t)}var Mg=k(`ZodObject`,(e,t)=>{oh.init(e,t),vg.init(e,t),bp(e,`shape`,()=>t.shape),e.keyof=()=>Wg(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Og()}),e.loose=()=>e.clone({...e._zod.def,catchall:Og()}),e.strict=()=>e.clone({...e._zod.def,catchall:kg()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Fp(e,t),e.merge=t=>Ip(e,t),e.pick=t=>Np(e,t),e.omit=t=>Pp(e,t),e.partial=(...t)=>Lp(Yg,e,t[0]),e.required=(...t)=>Rp(r_,e,t[0])});function Ng(e,t){return new Mg({type:`object`,get shape(){return xp(this,`shape`,{...e}),this.shape},...Ap(t)})}function Pg(e,t){return new Mg({type:`object`,get shape(){return xp(this,`shape`,{...e}),this.shape},catchall:kg(),...Ap(t)})}var Fg=k(`ZodUnion`,(e,t)=>{ch.init(e,t),vg.init(e,t),e.options=t.options});function Ig(e,t){return new Fg({type:`union`,options:e,...Ap(t)})}var Lg=k(`ZodDiscriminatedUnion`,(e,t)=>{Fg.init(e,t),lh.init(e,t)});function Rg(e,t,n){return new Lg({type:`union`,options:t,discriminator:e,...Ap(n)})}var zg=k(`ZodIntersection`,(e,t)=>{uh.init(e,t),vg.init(e,t)});function Bg(e,t){return new zg({type:`intersection`,left:e,right:t})}var Vg=k(`ZodRecord`,(e,t)=>{ph.init(e,t),vg.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function Hg(e,t,n){return new Vg({type:`record`,keyType:e,valueType:t,...Ap(n)})}var Ug=k(`ZodEnum`,(e,t)=>{mh.init(e,t),vg.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Ug({...t,checks:[],...Ap(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Ug({...t,checks:[],...Ap(r),entries:i})}});function Wg(e,t){return new Ug({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Ap(t)})}var Gg=k(`ZodLiteral`,(e,t)=>{hh.init(e,t),vg.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
49(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Kg(e,t){return new Gg({type:`literal`,values:Array.isArray(e)?e:[e],...Ap(t)})}var qg=k(`ZodTransform`,(e,t)=>{gh.init(e,t),vg.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Wp(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,t.continue??=!0,n.issues.push(Wp(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Jg(e){return new qg({type:`transform`,transform:e})}var Yg=k(`ZodOptional`,(e,t)=>{_h.init(e,t),vg.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Xg(e){return new Yg({type:`optional`,innerType:e})}var Zg=k(`ZodNullable`,(e,t)=>{vh.init(e,t),vg.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Qg(e){return new Zg({type:`nullable`,innerType:e})}var $g=k(`ZodDefault`,(e,t)=>{yh.init(e,t),vg.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function e_(e,t){return new $g({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():t}})}var t_=k(`ZodPrefault`,(e,t)=>{xh.init(e,t),vg.init(e,t),e.unwrap=()=>e._zod.def.innerType});function n_(e,t){return new t_({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():t}})}var r_=k(`ZodNonOptional`,(e,t)=>{Sh.init(e,t),vg.init(e,t),e.unwrap=()=>e._zod.def.innerType});function i_(e,t){return new r_({type:`nonoptional`,innerType:e,...Ap(t)})}var a_=k(`ZodCatch`,(e,t)=>{wh.init(e,t),vg.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function o_(e,t){return new a_({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var s_=k(`ZodPipe`,(e,t)=>{Th.init(e,t),vg.init(e,t),e.in=t.in,e.out=t.out});function c_(e,t){return new s_({type:`pipe`,in:e,out:t})}var l_=k(`ZodReadonly`,(e,t)=>{Dh.init(e,t),vg.init(e,t)});function u_(e){return new l_({type:`readonly`,innerType:e})}var d_=k(`ZodLazy`,(e,t)=>{kh.init(e,t),vg.init(e,t),e.unwrap=()=>e._zod.def.getter()});function f_(e){return new d_({type:`lazy`,getter:e})}var p_=k(`ZodCustom`,(e,t)=>{Ah.init(e,t),vg.init(e,t)});function m_(e){let t=new mm({check:`custom`});return t._zod.check=e,t}function h_(e,t){return ste(p_,e??(()=>!0),t)}function g_(e,t={}){return cte(p_,e,t)}function __(e){let t=m_(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(Wp(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(Wp(r))}},e(n.value,n)));return t}function v_(e,t={error:`Input not instance of ${e.name}`}){let n=new p_({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...Ap(t)});return n._zod.bag.Class=e,n}var y_;(function(e){e.assertEqual=e=>{};function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(y_||={});var b_;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(b_||={});var x_=y_.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),S_=e=>{switch(typeof e){case`undefined`:return x_.undefined;case`string`:return x_.string;case`number`:return Number.isNaN(e)?x_.nan:x_.number;case`boolean`:return x_.boolean;case`function`:return x_.function;case`bigint`:return x_.bigint;case`symbol`:return x_.symbol;case`object`:return Array.isArray(e)?x_.array:e===null?x_.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?x_.promise:typeof Map<`u`&&e instanceof Map?x_.map:typeof Set<`u`&&e instanceof Set?x_.set:typeof Date<`u`&&e instanceof Date?x_.date:x_.object;default:return x_.unknown}},j=y_.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),C_=class e extends
vendor: 11,164 bytes, line 49
49Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,y_.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};C_.create=e=>new C_(e);var w_=(e,t)=>{let n;switch(e.code){case j.invalid_type:n=e.received===x_.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case j.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,y_.jsonStringifyReplacer)}`;break;case j.unrecognized_keys:n=`Unrecognized key(s) in object: ${y_.joinValues(e.keys,`, `)}`;break;case j.invalid_union:n=`Invalid input`;break;case j.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${y_.joinValues(e.options)}`;break;case j.invalid_enum_value:n=`Invalid enum value. Expected ${y_.joinValues(e.options)}, received '${e.received}'`;break;case j.invalid_arguments:n=`Invalid function arguments`;break;case j.invalid_return_type:n=`Invalid function return type`;break;case j.invalid_date:n=`Invalid date`;break;case j.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:y_.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case j.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case j.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case j.custom:n=`Invalid input`;break;case j.invalid_intersection_types:n=`Intersection results could not be merged`;break;case j.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case j.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,y_.assertNever(e)}return{message:n}},T_=w_;function E_(){return T_}var D_=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function O_(e,t){let n=E_(),r=D_({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===w_?void 0:w_].filter(e=>!!e)});e.common.issues.push(r)}var k_=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return A_;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return A_;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},A_=Object.freeze({status:`aborted`}),j_=e=>({status:`dirty`,value:e}),M_=e=>({status:`valid`,value:e}),N_=e=>e.status===`aborted`,P_=e=>e.status===`dirty`,F_=e=>e.status===`valid`,I_=e=>typeof Promise<`u`&&e instanceof Promise,L_;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(L_||={});var R_=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},z_=(e,t)=>{if(F_(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new C_(e.common.issues);return this._error=t,this._error}}};function B_(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var V_=class{get description(){return this._def.description}_getType(e){return S_(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:S_(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new k_,ctx:{common:e.parent.common,data:e.data,parsedType:S_(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(I_(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:S_(e)};return z_(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:S_(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return F_(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>F_(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:S_(e)},r=this._parse({data:e,path:n.path,parent:n});return z_(n,await(I_(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:j.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new jv({schema:this,typeName:M.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:e=>this[`~validate`](e)}}optional(){return Mv.create(this,this._def)}nullable(){return Nv.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return hv.create(this)}promise(){return Av.create(this,this._def)}or(e){return vv.create([this,e],this._def)}and(e){return xv.create(this,e,this._def)}transform(e){return new jv({...B_(this._def),schema:this,typeName:M.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new Pv({...B_(this._def),innerType:this,defaultValue:t,typeName:M.ZodDefault})}brand(){return new Lv({typeName:M.ZodBranded,type:this,...B_(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new Fv({...B_(this._def),innerType:this,catchValue:t,typeName:M.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Rv.create(this,e)}readonly(){return zv.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},H_=/^c[^\s-]{8,}
vendor: 39,547 bytes, line 49
49$/i,U_=/^[0-9a-z]+$/,W_=/^[0-9A-HJKMNP-TV-Z]{26}$/i,G_=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,K_=/^[a-z0-9_-]{21}$/i,q_=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,J_=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Y_=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,X_=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,Z_,Q_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,$_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ev=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Ite=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Lte=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Rte=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,tv=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,zte=RegExp(`^${tv}$`);function nv(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Bte(e){return RegExp(`^${nv(e)}$`)}function Vte(e){let t=`${tv}T${nv(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function Hte(e,t){return!!((t===`v4`||!t)&&Q_.test(e)||(t===`v6`||!t)&&ev.test(e))}function Ute(e,t){if(!q_.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function Wte(e,t){return!!((t===`v4`||!t)&&$_.test(e)||(t===`v6`||!t)&&Ite.test(e))}var rv=class e extends V_{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==x_.string){let t=this._getOrReturnCtx(e);return O_(t,{code:j.invalid_type,expected:x_.string,received:t.parsedType}),A_}let t=new k_,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),O_(n,{code:j.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`max`)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),O_(n,{code:j.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.length<r.value;(i||a)&&(n=this._getOrReturnCtx(e,n),i?O_(n,{code:j.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}):a&&O_(n,{code:j.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if(r.kind===`email`)Y_.test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`email`,code:j.invalid_string,message:r.message}),t.dirty());else if(r.kind===`emoji`)Z_||=new RegExp(X_,`u`),Z_.test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`emoji`,code:j.invalid_string,message:r.message}),t.dirty());else if(r.kind===`uuid`)G_.test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`uuid`,code:j.invalid_string,message:r.message}),t.dirty());else if(r.kind===`nanoid`)K_.test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`nanoid`,code:j.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid`)H_.test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`cuid`,code:j.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid2`)U_.test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`cuid2`,code:j.invalid_string,message:r.message}),t.dirty());else if(r.kind===`ulid`)W_.test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`ulid`,code:j.invalid_string,message:r.message}),t.dirty());else if(r.kind===`url`)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),O_(n,{validation:`url`,code:j.invalid_string,message:r.message}),t.dirty()}else r.kind===`regex`?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`regex`,code:j.invalid_string,message:r.message}),t.dirty())):r.kind===`trim`?e.data=e.data.trim():r.kind===`includes`?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),O_(n,{code:j.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):r.kind===`toLowerCase`?e.data=e.data.toLowerCase():r.kind===`toUpperCase`?e.data=e.data.toUpperCase():r.kind===`startsWith`?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),O_(n,{code:j.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):r.kind===`endsWith`?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),O_(n,{code:j.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):r.kind===`datetime`?Vte(r).test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{code:j.invalid_string,validation:`datetime`,message:r.message}),t.dirty()):r.kind===`date`?zte.test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{code:j.invalid_string,validation:`date`,message:r.message}),t.dirty()):r.kind===`time`?Bte(r).test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{code:j.invalid_string,validation:`time`,message:r.message}),t.dirty()):r.kind===`duration`?J_.test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`duration`,code:j.invalid_string,message:r.message}),t.dirty()):r.kind===`ip`?Hte(e.data,r.version)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`ip`,code:j.invalid_string,message:r.message}),t.dirty()):r.kind===`jwt`?Ute(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`jwt`,code:j.invalid_string,message:r.message}),t.dirty()):r.kind===`cidr`?Wte(e.data,r.version)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`cidr`,code:j.invalid_string,message:r.message}),t.dirty()):r.kind===`base64`?Lte.test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`base64`,code:j.invalid_string,message:r.message}),t.dirty()):r.kind===`base64url`?Rte.test(e.data)||(n=this._getOrReturnCtx(e,n),O_(n,{validation:`base64url`,code:j.invalid_string,message:r.message}),t.dirty()):y_.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:j.invalid_string,...L_.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...L_.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...L_.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...L_.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...L_.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...L_.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...L_.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...L_.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...L_.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...L_.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...L_.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...L_.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...L_.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...L_.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...L_.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...L_.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...L_.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...L_.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...L_.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...L_.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...L_.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...L_.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...L_.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...L_.errToObj(t)})}nonempty(e){return this.min(1,L_.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};rv.create=e=>new rv({checks:[],typeName:M.ZodString,coerce:e?.coerce??!1,...B_(e)});function Gte(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var iv=class e extends V_{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==x_.number){let t=this._getOrReturnCtx(e);return O_(t,{code:j.invalid_type,expected:x_.number,received:t.parsedType}),A_}let t,n=new k_;for(let r of this._def.checks)r.kind===`int`?y_.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),O_(t,{code:j.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),O_(t,{code:j.too_small,minimum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),O_(t,{code:j.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?Gte(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),O_(t,{code:j.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),O_(t,{code:j.not_finite,message:r.message}),n.dirty()):y_.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,L_.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,L_.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,L_.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,L_.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:L_.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:L_.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:L_.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:L_.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:L_.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:L_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:L_.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:L_.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:L_.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:L_.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===`int`||e.kind===`multipleOf`&&y_.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}};iv.create=e=>new iv({checks:[],typeName:M.ZodNumber,coerce:e?.coerce||!1,...B_(e)});var av=class e extends V_{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==x_.bigint)return this._getInvalidInput(e);let t,n=new k_;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),O_(t,{code:j.too_small,type:`bigint`,minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),O_(t,{code:j.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),O_(t,{code:j.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):y_.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return O_(t,{code:j.invalid_type,expected:x_.bigint,received:t.parsedType}),A_}gte(e,t){return this.setLimit(`min`,e,!0,L_.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,L_.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,L_.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,L_.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:L_.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:L_.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:L_.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:L_.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:L_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:L_.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};av.create=e=>new av({checks:[],typeName:M.ZodBigInt,coerce:e?.coerce??!1,...B_(e)});var ov=class extends V_{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==x_.boolean){let t=this._getOrReturnCtx(e);return O_(t,{code:j.invalid_type,expected:x_.boolean,received:t.parsedType}),A_}return M_(e.data)}};ov.create=e=>new ov({typeName:M.ZodBoolean,coerce:e?.coerce||!1,...B_(e)});var sv=class e extends V_{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==x_.date){let t=this._getOrReturnCtx(e);return O_(t,{code:j.invalid_type,expected:x_.date,received:t.parsedType}),A_}if(Number.isNaN(e.data.getTime()))return O_(this._getOrReturnCtx(e),{code:j.invalid_date}),A_;let t=new k_,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),O_(n,{code:j.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:`date`}),t.dirty()):r.kind===`max`?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),O_(n,{code:j.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):y_.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:L_.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:L_.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e==null?null:new Date(e)}};sv.create=e=>new sv({checks:[],coerce:e?.coerce||!1,typeName:M.ZodDate,...B_(e)});var cv=class extends V_{_parse(e){if(this._getType(e)!==x_.symbol){let t=this._getOrReturnCtx(e);return O_(t,{code:j.invalid_type,expected:x_.symbol,received:t.parsedType}),A_}return M_(e.data)}};cv.create=e=>new cv({typeName:M.ZodSymbol,...B_(e)});var lv=class extends V_{_parse(e){if(this._getType(e)!==x_.undefined){let t=this._getOrReturnCtx(e);return O_(t,{code:j.invalid_type,expected:x_.undefined,received:t.parsedType}),A_}return M_(e.data)}};lv.create=e=>new lv({typeName:M.ZodUndefined,...B_(e)});var uv=class extends V_{_parse(e){if(this._getType(e)!==x_.null){let t=this._getOrReturnCtx(e);return O_(t,{code:j.invalid_type,expected:x_.null,received:t.parsedType}),A_}return M_(e.data)}};uv.create=e=>new uv({typeName:M.ZodNull,...B_(e)});var dv=class extends V_{constructor(){super(...arguments),this._any=!0}_parse(e){return M_(e.data)}};dv.create=e=>new dv({typeName:M.ZodAny,...B_(e)});var fv=class extends V_{constructor(){super(...arguments),this._unknown=!0}_parse(e){return M_(e.data)}};fv.create=e=>new fv({typeName:M.ZodUnknown,...B_(e)});var pv=class extends V_{_parse(e){let t=this._getOrReturnCtx(e);return O_(t,{code:j.invalid_type,expected:x_.never,received:t.parsedType}),A_}};pv.create=e=>new pv({typeName:M.ZodNever,...B_(e)});var mv=class extends V_{_parse(e){if(this._getType(e)!==x_.undefined){let t=this._getOrReturnCtx(e);return O_(t,{code:j.invalid_type,expected:x_.void,received:t.parsedType}),A_}return M_(e.data)}};mv.create=e=>new mv({typeName:M.ZodVoid,...B_(e)});var hv=class e extends V_{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==x_.array)return O_(t,{code:j.invalid_type,expected:x_.array,received:t.parsedType}),A_;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(O_(t,{code:e?j.too_big:j.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:`array`,inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(O_(t,{code:j.too_small,minimum:r.minLength.value,type:`array`,inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(O_(t,{code:j.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new R_(t,e,t.path,n)))).then(e=>k_.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new R_(t,e,t.path,n)));return k_.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:L_.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:L_.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:L_.toString(n)}})}nonempty(e){return this.min(1,e)}};hv.create=(e,t)=>new hv({type:e,minLength:null,maxLength:null,exactLength:null,typeName:M.ZodArray,...B_(t)});function gv(e){if(e instanceof _v){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Mv.create(gv(r))}return new _v({...e._def,shape:()=>t})}else if(e instanceof hv)return new hv({...e._def,type:gv(e.element)});else if(e instanceof Mv)return Mv.create(gv(e.unwrap()));else if(e instanceof Nv)return Nv.create(gv(e.unwrap()));else if(e instanceof Sv)return Sv.create(e.items.map(e=>gv(e)));else return e}var _v=class e extends V_{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=y_.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==x_.object){let t=this._getOrReturnCtx(e);return O_(t,{code:j.invalid_type,expected:x_.object,received:t.parsedType}),A_}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof pv&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new R_(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof pv){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(O_(n,{code:j.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new R_(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>k_.mergeObjectSync(t,e)):k_.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return L_.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:L_.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:M.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of y_.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of y_.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return gv(this)}partial(t){let n={};for(let e of y_.objectKeys(this.shape)){let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of y_.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof Mv;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return Dv(y_.objectKeys(this.shape))}};_v.create=(e,t)=>new _v({shape:()=>e,unknownKeys:`strip`,catchall:pv.create(),typeName:M.ZodObject,...B_(t)}),_v.strictCreate=(e,t)=>new _v({shape:()=>e,unknownKeys:`strict`,catchall:pv.create(),typeName:M.ZodObject,...B_(t)}),_v.lazycreate=(e,t)=>new _v({shape:e,unknownKeys:`strip`,catchall:pv.create(),typeName:M.ZodObject,...B_(t)});var vv=class extends V_{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new C_(e.ctx.common.issues));return O_(t,{code:j.invalid_union,unionErrors:n}),A_}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new C_(e));return O_(t,{code:j.invalid_union,unionErrors:i}),A_}}get options(){return this._def.options}};vv.create=(e,t)=>new vv({options:e,typeName:M.ZodUnion,...B_(t)});var yv=e=>e instanceof Tv?yv(e.schema):e instanceof jv?yv(e.innerType()):e instanceof Ev?[e.value]:e instanceof Ov?e.options:e instanceof kv?y_.objectValues(e.enum):e instanceof Pv?yv(e._def.innerType):e instanceof lv?[void 0]:e instanceof uv?[null]:e instanceof Mv?[void 0,...yv(e.unwrap())]:e instanceof Nv?[null,...yv(e.unwrap())]:e instanceof Lv||e instanceof zv?yv(e.unwrap()):e instanceof Fv?yv(e._def.innerType):[],Kte=class e extends V_{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==x_.object)return O_(t,{code:j.invalid_type,expected:x_.object,received:t.parsedType}),A_;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(O_(t,{code:j.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),A_)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=yv(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:M.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...B_(r)})}};function bv(e,t){let n=S_(e),r=S_(t);if(e===t)return{valid:!0,data:e};if(n===x_.object&&r===x_.object){let n=y_.objectKeys(t),r=y_.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=bv(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}else if(n===x_.array&&r===x_.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=bv(i,a);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}else if(n===x_.date&&r===x_.date&&+e==+t)return{valid:!0,data:e};else return{valid:!1}}var xv=class extends V_{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(N_(e)||N_(r))return A_;let i=bv(e.value,r.value);return i.valid?((P_(e)||P_(r))&&t.dirty(),{status:t.value,value:i.data}):(O_(n,{code:j.invalid_intersection_types}),A_)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};xv.create=(e,t,n)=>new xv({left:e,right:t,typeName:M.ZodIntersection,...B_(n)});var Sv=class e extends V_{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==x_.array)return O_(n,{code:j.invalid_type,expected:x_.array,received:n.parsedType}),A_;if(n.data.length<this._def.items.length)return O_(n,{code:j.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),A_;!this._def.rest&&n.data.length>this._def.items.length&&(O_(n,{code:j.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new R_(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>k_.mergeArray(t,e)):k_.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Sv.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new Sv({items:e,typeName:M.ZodTuple,rest:null,...B_(t)})};var qte=class e extends V_{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==x_.object)return O_(n,{code:j.invalid_type,expected:x_.object,received:n.parsedType}),A_;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new R_(n,e,n.path,e)),value:a._parse(new R_(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?k_.mergeObjectAsync(t,r):k_.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof V_?new e({keyType:t,valueType:n,typeName:M.ZodRecord,...B_(r)}):new e({keyType:rv.create(),valueType:t,typeName:M.ZodRecord,...B_(n)})}},Cv=class extends V_{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==x_.map)return O_(n,{code:j.invalid_type,expected:x_.map,received:n.parsedType}),A_;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new R_(n,e,n.path,[a,`key`])),value:i._parse(new R_(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return A_;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}else{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return A_;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};Cv.create=(e,t,n)=>new Cv({valueType:t,keyType:e,typeName:M.ZodMap,...B_(n)});var wv=class e extends V_{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==x_.set)return O_(n,{code:j.invalid_type,expected:x_.set,received:n.parsedType}),A_;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(O_(n,{code:j.too_small,minimum:r.minSize.value,type:`set`,inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(O_(n,{code:j.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return A_;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new R_(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:L_.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:L_.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};wv.create=(e,t)=>new wv({valueType:e,minSize:null,maxSize:null,typeName:M.ZodSet,...B_(t)});var Jte=class e extends V_{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==x_.function)return O_(t,{code:j.invalid_type,expected:x_.function,received:t.parsedType}),A_;function n(e,n){return D_({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,E_(),w_].filter(e=>!!e),issueData:{code:j.invalid_arguments,argumentsError:n}})}function r(e,n){return D_({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,E_(),w_].filter(e=>!!e),issueData:{code:j.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Av){let e=this;return M_(async function(...t){let o=new C_([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}else{let e=this;return M_(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new C_([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new C_([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Sv.create(t).rest(fv.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||Sv.create([]).rest(fv.create()),returns:n||fv.create(),typeName:M.ZodFunction,...B_(r)})}},Tv=class extends V_{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};Tv.create=(e,t)=>new Tv({getter:e,typeName:M.ZodLazy,...B_(t)});var Ev=class extends V_{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return O_(t,{received:t.data,code:j.invalid_literal,expected:this._def.value}),A_}return{status:`valid`,value:e.data}}get value(){return this._def.value}};Ev.create=(e,t)=>new Ev({value:e,typeName:M.ZodLiteral,...B_(t)});function Dv(e,t){return new Ov({values:e,typeName:M.ZodEnum,...B_(t)})}var Ov=class e extends V_{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return O_(t,{expected:y_.joinValues(n),received:t.parsedType,code:j.invalid_type}),A_}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return O_(t,{received:t.data,code:j.invalid_enum_value,options:n}),A_}return M_(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};Ov.create=Dv;var kv=class extends V_{_parse(e){let t=y_.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==x_.string&&n.parsedType!==x_.number){let e=y_.objectValues(t);return O_(n,{expected:y_.joinValues(e),received:n.parsedType,code:j.invalid_type}),A_}if(this._cache||=new Set(y_.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=y_.objectValues(t);return O_(n,{received:n.data,code:j.invalid_enum_value,options:e}),A_}return M_(e.data)}get enum(){return this._def.values}};kv.create=(e,t)=>new kv({values:e,typeName:M.ZodNativeEnum,...B_(t)});var Av=class extends V_{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==x_.promise&&t.common.async===!1?(O_(t,{code:j.invalid_type,expected:x_.promise,received:t.parsedType}),A_):M_((t.parsedType===x_.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};Av.create=(e,t)=>new Av({type:e,typeName:M.ZodPromise,...B_(t)});var jv=class extends V_{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===M.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{O_(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return A_;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?A_:r.status===`dirty`||t.value===`dirty`?j_(r.value):r});{if(t.value===`aborted`)return A_;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?A_:r.status===`dirty`||t.value===`dirty`?j_(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?A_:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?A_:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!F_(e))return A_;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>F_(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):A_);y_.assertNever(r)}};
vendor: 4,279 bytes, line 49
49jv.create=(e,t,n)=>new jv({schema:e,typeName:M.ZodEffects,effect:t,...B_(n)}),jv.createWithPreprocess=(e,t,n)=>new jv({schema:t,effect:{type:`preprocess`,transform:e},typeName:M.ZodEffects,...B_(n)});var Mv=class extends V_{_parse(e){return this._getType(e)===x_.undefined?M_(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Mv.create=(e,t)=>new Mv({innerType:e,typeName:M.ZodOptional,...B_(t)});var Nv=class extends V_{_parse(e){return this._getType(e)===x_.null?M_(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Nv.create=(e,t)=>new Nv({innerType:e,typeName:M.ZodNullable,...B_(t)});var Pv=class extends V_{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===x_.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};Pv.create=(e,t)=>new Pv({innerType:e,typeName:M.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...B_(t)});var Fv=class extends V_{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return I_(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new C_(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new C_(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Fv.create=(e,t)=>new Fv({innerType:e,typeName:M.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...B_(t)});var Iv=class extends V_{_parse(e){if(this._getType(e)!==x_.nan){let t=this._getOrReturnCtx(e);return O_(t,{code:j.invalid_type,expected:x_.nan,received:t.parsedType}),A_}return{status:`valid`,value:e.data}}};Iv.create=e=>new Iv({typeName:M.ZodNaN,...B_(e)});var Lv=class extends V_{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},Rv=class e extends V_{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?A_:e.status===`dirty`?(t.dirty(),j_(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?A_:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:M.ZodPipeline})}},zv=class extends V_{_parse(e){let t=this._def.innerType._parse(e),n=e=>(F_(e)&&(e.value=Object.freeze(e.value)),e);return I_(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};zv.create=(e,t)=>new zv({innerType:e,typeName:M.ZodReadonly,...B_(t)}),_v.lazycreate;var M;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(M||={}),rv.create,iv.create,Iv.create,av.create,ov.create,sv.create,cv.create,lv.create,uv.create,dv.create,fv.create,pv.create,mv.create,hv.create,_v.create,_v.strictCreate,vv.create,Kte.create,xv.create,Sv.create,qte.create,Cv.create,wv.create,Jte.create,Tv.create,Ev.create,Ov.create,kv.create,Av.create,jv.create,Mv.create,Nv.create,jv.createWithPreprocess,Rv.create;
vendor: 6,899 bytes, lines 49-58
49var Bv=class extends Error{constructor(e,t){super(e),this.name=`ParseError`,this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}},Vv=10,Yte=13,Hv=32;function Uv(e){}function Xte(e){if(typeof e==`function`)throw TypeError("`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?");let{onEvent:t=Uv,onError:n=Uv,onRetry:r=Uv,onComment:i,maxBufferSize:a}=e,o=[],s=0,c=!0,l,u=``,d=0,f,p=!1;function m(e){if(p)throw Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(c&&(c=!1,e.charCodeAt(0)===239&&e.charCodeAt(1)===187&&e.charCodeAt(2)===191&&(e=e.slice(3))),o.length===0){let t=g(e);t!==``&&(o.push(t),s=t.length),h();return}if(e.indexOf(` 50`)===-1&&e.indexOf(`\r`)===-1){o.push(e),s+=e.length,h();return}o.push(e);let t=o.join(``);o.length=0,s=0;let n=g(t);n!==``&&(o.push(n),s=n.length),h()}function h(){a!==void 0&&(s+u.length<=a||(p=!0,o.length=0,s=0,l=void 0,u=``,d=0,f=void 0,n(new Bv(`Buffered data exceeded max buffer size of ${a} characters`,{type:`max-buffer-size-exceeded`}))))}function g(e){let n=0;if(e.indexOf(`\r`)===-1){let r=e.indexOf(` 51`,n);for(;r!==-1;){if(n===r){d>0&&t({id:l,event:f,data:u}),l=void 0,u=``,d=0,f=void 0,n=r+1,r=e.indexOf(` 52`,n);continue}let i=e.charCodeAt(n);if(Wv(e,n,i)){let i=e.charCodeAt(n+5)===Hv?n+6:n+5,a=e.slice(i,r);if(d===0&&e.charCodeAt(r+1)===Vv){t({id:l,event:f,data:a}),l=void 0,u=``,f=void 0,n=r+2,r=e.indexOf(` 53`,n);continue}u=d===0?a:`${u} 54${a}`,d++}else Gv(e,n,i)?f=e.slice(e.charCodeAt(n+6)===Hv?n+7:n+6,r)||void 0:_(e,n,r);n=r+1,r=e.indexOf(` 55`,n)}return e.slice(n)}for(;n<e.length;){let t=e.indexOf(`\r`,n),r=e.indexOf(` 56`,n),i=-1;if(t!==-1&&r!==-1?i=t<r?t:r:t===-1?r!==-1&&(i=r):i=t===e.length-1?-1:t,i===-1)break;_(e,n,i),n=i+1,e.charCodeAt(n-1)===Yte&&e.charCodeAt(n)===Vv&&n++}return e.slice(n)}function _(e,t,n){if(t===n){y();return}let r=e.charCodeAt(t);if(Wv(e,t,r)){let r=e.charCodeAt(t+5)===Hv?t+6:t+5,i=e.slice(r,n);u=d===0?i:`${u} 57${i}`,d++;return}if(Gv(e,t,r)){f=e.slice(e.charCodeAt(t+6)===Hv?t+7:t+6,n)||void 0;return}if(r===105&&e.charCodeAt(t+1)===100&&e.charCodeAt(t+2)===58){let r=e.slice(e.charCodeAt(t+3)===Hv?t+4:t+3,n);l=r.includes(`\0`)?void 0:r;return}if(r===58){if(i){let r=e.slice(t,n);i(r.slice(e.charCodeAt(t+1)===Hv?2:1))}return}let a=e.slice(t,n),o=a.indexOf(`:`);if(o===-1){v(a,``,a);return}let s=a.slice(0,o),c=a.charCodeAt(o+1)===Hv?2:1;v(s,a.slice(o+c),a)}function v(e,t,i){switch(e){case`event`:f=t||void 0;break;case`data`:u=d===0?t:`${u} 58${t}`,d++;break;case`id`:l=t.includes(`\0`)?void 0:t;break;case`retry`:/^\d+$/.test(t)?r(parseInt(t,10)):n(new Bv(`Invalid \`retry\` value: "${t}"`,{type:`invalid-retry`,value:t,line:i}));break;default:n(new Bv(`Unknown field "${e.length>20?`${e.slice(0,20)}\u2026`:e}"`,{type:`unknown-field`,field:e,value:t,line:i}));break}}function y(){d>0&&t({id:l,event:f,data:u}),l=void 0,u=``,d=0,f=void 0}function b(e={}){if(e.consume&&o.length>0){let e=o.join(``);_(e,0,e.length)}c=!0,l=void 0,u=``,d=0,f=void 0,o.length=0,s=0,p=!1}return{feed:m,reset:b}}function Wv(e,t,n){return n===100&&e.charCodeAt(t+1)===97&&e.charCodeAt(t+2)===116&&e.charCodeAt(t+3)===97&&e.charCodeAt(t+4)===58}function Gv(e,t,n){return n===101&&e.charCodeAt(t+1)===118&&e.charCodeAt(t+2)===101&&e.charCodeAt(t+3)===110&&e.charCodeAt(t+4)===116&&e.charCodeAt(t+5)===58}var Zte=class extends TransformStream{constructor({onError:e,onRetry:t,onComment:n,maxBufferSize:r}={}){let i;super({start(a){i=Xte({onEvent:e=>{a.enqueue(e)},onError(t){typeof e==`function`&&e(t),(e===`terminate`||t.type===`max-buffer-size-exceeded`)&&a.error(t)},onRetry:t,onComment:n,maxBufferSize:r})},transform(e){i.feed(e)}})}};new TextDecoder;var{btoa:Qte,atob:$te}=globalThis,Kv=({prefix:e,size:t=16,alphabet:n=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,separator:r=`-`}={})=>{let i=()=>{let e=n.length,r=Array(t);for(let i=0;i<t;i++)r[i]=n[Math.random()*e|0];return r.join(``)};if(e==null)return i;if(n.includes(r))throw new Qf({argument:`separator`,message:`The separator "${r}" must not be part of the alphabet "${n}".`});return()=>`${e}${r}${i()}`},ene=Kv();function qv(e){if(e==null)return{};let t={};if(e instanceof Headers)e.forEach((e,n)=>{t[n.toLowerCase()]=e});else{Array.isArray(e)||(e=Object.entries(e));for(let[n,r]of e)r!=null&&(t[n.toLowerCase()]=r)}return t}function tne(e){return globalThis.Buffer?.isBuffer(e)??!1}var nne=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,rne=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function Jv(e){let t=JSON.parse(e);return typeof t!=`object`||!t||nne.test(e)===!1&&rne.test(e)===!1?t:ine(t)}function ine(e){let t=[e];for(;t.length;){let e=t;t=[];for(let n of e){if(Object.prototype.hasOwnProperty.call(n,`__proto__`)||Object.prototype.hasOwnProperty.call(n,`constructor`)&&n.constructor!==null&&typeof n.constructor==`object`&&Object.prototype.hasOwnProperty.call(n.constructor,`prototype`))throw SyntaxError(`Object contains forbidden prototype property`);for(let e in n){let r=n[e];r&&typeof r==`object`&&t.push(r)}}}return e}function ane(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return Jv(e)}try{return Jv(e)}finally{Error.stackTraceLimit=t}}function Yv(e){if(e.type===`object`||Array.isArray(e.type)&&e.type.includes(`object`)){e.additionalProperties=!1;let{properties:t}=e;if(t!=null)for(let e of Object.keys(t))t[e]=Xv(t[e])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(Xv):Xv(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(Xv)),e.allOf!=null&&(e.allOf=e.allOf.map(Xv)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(Xv));let{definitions:t}=e;if(t!=null)for(let e of Object.keys(t))t[e]=Xv(t[e]);return e}function Xv(e){return typeof e==`boolean`?e:Yv(e)}var one=Symbol(`Let zodToJsonSchema decide on which parser to use`),Zv={name:void 0,$refStrategy:`root`,basePath:[`#`],effectStrategy:`input`,pipeStrategy:`all`,dateStrategy:`format:date-time`,mapStrategy:`entries`,removeAdditionalStrategy:`passthrough`,allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:`definitions`,strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:`escape`,applyRegexFlags:!1,emailStrategy:`format:email`,base64Strategy:`contentEncoding:base64`,nameStrategy:`ref`},sne=e=>typeof e==`string`?{...Zv,name:e}:{...Zv,...e};function Qv(){return{}}function cne(e,t){let n={type:`array`};return e.type?._def&&e.type?._def?.typeName!==M.ZodAny&&(n.items=uy(e.type._def,{...t,currentPath:[...t.currentPath,`items`]})),e.minLength&&(n.minItems=e.minLength.value),e.maxLength&&(n.maxItems=e.maxLength.value),e.exactLength&&(n.minItems=e.exactLength.value,
vendor: 15,520 bytes, lines 58-62
58n.maxItems=e.exactLength.value),n}function lne(e){let t={type:`integer`,format:`int64`};if(!e.checks)return t;for(let n of e.checks)switch(n.kind){case`min`:n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case`max`:n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case`multipleOf`:t.multipleOf=n.value;break}return t}function une(){return{type:`boolean`}}function $v(e,t){return uy(e.type._def,t)}var dne=(e,t)=>uy(e.innerType._def,t);function ey(e,t,n){let r=n??t.dateStrategy;if(Array.isArray(r))return{anyOf:r.map(n=>ey(e,t,n))};switch(r){case`string`:case`format:date-time`:return{type:`string`,format:`date-time`};case`format:date`:return{type:`string`,format:`date`};case`integer`:return fne(e)}}var fne=e=>{let t={type:`integer`,format:`unix-time`};for(let n of e.checks)switch(n.kind){case`min`:t.minimum=n.value;break;case`max`:t.maximum=n.value;break}return t};function pne(e,t){return{...uy(e.innerType._def,t),default:e.defaultValue()}}function mne(e,t){return t.effectStrategy===`input`?uy(e.schema._def,t):Qv()}function hne(e){return{type:`string`,enum:Array.from(e.values)}}var gne=e=>`type`in e&&e.type===`string`?!1:`allOf`in e;function _ne(e,t){let n=[uy(e.left._def,{...t,currentPath:[...t.currentPath,`allOf`,`0`]}),uy(e.right._def,{...t,currentPath:[...t.currentPath,`allOf`,`1`]})].filter(e=>!!e),r=[];return n.forEach(e=>{if(gne(e))r.push(...e.allOf);else{let t=e;if(`additionalProperties`in e&&e.additionalProperties===!1){let{additionalProperties:n,...r}=e;t=r}r.push(t)}}),r.length?{allOf:r}:void 0}function vne(e){let t=typeof e.value;return t!==`bigint`&&t!==`number`&&t!==`boolean`&&t!==`string`?{type:Array.isArray(e.value)?`array`:`object`}:{type:t===`bigint`?`integer`:t,const:e.value}}var ty=void 0,ny={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(ty===void 0&&(ty=RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)),ty),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function ry(e,t){let n={type:`string`};if(e.checks)for(let r of e.checks)switch(r.kind){case`min`:n.minLength=typeof n.minLength==`number`?Math.max(n.minLength,r.value):r.value;break;case`max`:n.maxLength=typeof n.maxLength==`number`?Math.min(n.maxLength,r.value):r.value;break;case`email`:switch(t.emailStrategy){case`format:email`:ay(n,`email`,r.message,t);break;case`format:idn-email`:ay(n,`idn-email`,r.message,t);break;case`pattern:zod`:oy(n,ny.email,r.message,t);break}break;case`url`:ay(n,`uri`,r.message,t);break;case`uuid`:ay(n,`uuid`,r.message,t);break;case`regex`:oy(n,r.regex,r.message,t);break;case`cuid`:oy(n,ny.cuid,r.message,t);break;case`cuid2`:oy(n,ny.cuid2,r.message,t);break;case`startsWith`:oy(n,RegExp(`^${iy(r.value,t)}`),r.message,t);break;case`endsWith`:oy(n,RegExp(`${iy(r.value,t)}$`),r.message,t);break;case`datetime`:ay(n,`date-time`,r.message,t);break;case`date`:ay(n,`date`,r.message,t);break;case`time`:ay(n,`time`,r.message,t);break;case`duration`:ay(n,`duration`,r.message,t);break;case`length`:n.minLength=typeof n.minLength==`number`?Math.max(n.minLength,r.value):r.value,n.maxLength=typeof n.maxLength==`number`?Math.min(n.maxLength,r.value):r.value;break;case`includes`:oy(n,RegExp(iy(r.value,t)),r.message,t);break;case`ip`:r.version!==`v6`&&ay(n,`ipv4`,r.message,t),r.version!==`v4`&&ay(n,`ipv6`,r.message,t);break;case`base64url`:oy(n,ny.base64url,r.message,t);break;case`jwt`:oy(n,ny.jwt,r.message,t);break;case`cidr`:r.version!==`v6`&&oy(n,ny.ipv4Cidr,r.message,t),r.version!==`v4`&&oy(n,ny.ipv6Cidr,r.message,t);break;case`emoji`:oy(n,ny.emoji(),r.message,t);break;case`ulid`:oy(n,ny.ulid,r.message,t);break;case`base64`:switch(t.base64Strategy){case`format:binary`:ay(n,`binary`,r.message,t);break;case`contentEncoding:base64`:n.contentEncoding=`base64`;break;case`pattern:zod`:oy(n,ny.base64,r.message,t);break}break;case`nanoid`:oy(n,ny.nanoid,r.message,t);case`toLowerCase`:case`toUpperCase`:case`trim`:break;default:}return n}function iy(e,t){return t.patternStrategy===`escape`?bne(e):e}var yne=new Set(`ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789`);function bne(e){let t=``;for(let n=0;n<e.length;n++)yne.has(e[n])||(t+=`\\`),t+=e[n];return t}function ay(e,t,n,r){e.format||e.anyOf?.some(e=>e.format)?(e.anyOf||=[],e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):e.format=t}function oy(e,t,n,r){e.pattern||e.allOf?.some(e=>e.pattern)?(e.allOf||=[],e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:sy(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):e.pattern=sy(t,r)}function sy(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes(`i`),m:e.flags.includes(`m`),s:e.flags.includes(`s`)},r=n.i?e.source.toLowerCase():e.source,i=``,a=!1,o=!1,s=!1;for(let e=0;e<r.length;e++){if(a){i+=r[e],a=!1;continue}if(n.i){if(o){if(r[e].match(/[a-z]/)){s?(i+=r[e],i+=`${r[e-2]}-${r[e]}`.toUpperCase(),s=!1):r[e+1]===`-`&&r[e+2]?.match(/[a-z]/)?(i+=r[e],s=!0):i+=`${r[e]}${r[e].toUpperCase()}`;continue}}else if(r[e].match(/[a-z]/)){i+=`[${r[e]}${r[e].toUpperCase()}]`;continue}}if(n.m){if(r[e]===`^`){i+=`(^|(?<=[\r 59]))`;continue}else if(r[e]===`$`){i+=`($|(?=[\r 60]))`;continue}}if(n.s&&r[e]===`.`){i+=o?`${r[e]}\r 61`:`[${r[e]}\r 62]`;continue}i+=r[e],r[e]===`\\`?a=!0:o&&r[e]===`]`?o=!1:!o&&r[e]===`[`&&(o=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join(`/`)} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}function cy(e,t){let n={type:`object`,additionalProperties:uy(e.valueType._def,{...t,currentPath:[...t.currentPath,`additionalProperties`]})??t.allowedAdditionalProperties};if(e.keyType?._def.typeName===M.ZodString&&e.keyType._def.checks?.length){let{type:r,...i}=ry(e.keyType._def,t);return{...n,propertyNames:i}}else if(e.keyType?._def.typeName===M.ZodEnum)return{...n,propertyNames:{enum:e.keyType._def.values}};else if(e.keyType?._def.typeName===M.ZodBranded&&e.keyType._def.type._def.typeName===M.ZodString&&e.keyType._def.type._def.checks?.length){let{type:r,...i}=$v(e.keyType._def,t);return{...n,propertyNames:i}}return n}function xne(e,t){return t.mapStrategy===`record`?cy(e,t):{type:`array`,maxItems:125,items:{type:`array`,items:[uy(e.keyType._def,{...t,currentPath:[...t.currentPath,`items`,`items`,`0`]})||Qv(),uy(e.valueType._def,{...t,currentPath:[...t.currentPath,`items`,`items`,`1`]})||Qv()],minItems:2,maxItems:2}}}function Sne(e){let t=e.values,n=Object.keys(e.values).filter(e=>typeof t[t[e]]!=`number`).map(e=>t[e]),r=Array.from(new Set(n.map(e=>typeof e)));return{type:r.length===1?r[0]===`string`?`string`:`number`:[`string`,`number`],enum:n}}function Cne(){return{not:Qv()}}function wne(){return{type:`null`}}var ly={ZodString:`string`,ZodNumber:`number`,ZodBigInt:`integer`,ZodBoolean:`boolean`,ZodNull:`null`};function Tne(e,t){let n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every(e=>e._def.typeName in ly&&(!e._def.checks||!e._def.checks.length))){let e=n.reduce((e,t)=>{let n=ly[t._def.typeName];return n&&!e.includes(n)?[...e,n]:e},[]);return{type:e.length>1?e:e[0]}}else if(n.every(e=>e._def.typeName===`ZodLiteral`&&!e.description)){let e=n.reduce((e,t)=>{let n=typeof t._def.value;switch(n){case`string`:case`number`:case`boolean`:return[...e,n];case`bigint`:return[...e,`integer`];case`object`:if(t._def.value===null)return[...e,`null`];default:return e}},[]);if(e.length===n.length){let t=e.filter((e,t,n)=>n.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:n.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(n.every(e=>e._def.typeName===`ZodEnum`))return{type:`string`,enum:n.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return Ene(e,t)}var Ene=(e,t)=>{let n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((e,n)=>uy(e._def,{...t,currentPath:[...t.currentPath,`anyOf`,`${n}`]})).filter(e=>!!e&&(!t.strictUnions||typeof e==`object`&&Object.keys(e).length>0));return n.length?{anyOf:n}:void 0};function Dne(e,t){if([`ZodString`,`ZodNumber`,`ZodBigInt`,`ZodBoolean`,`ZodNull`].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[ly[e.innerType._def.typeName],`null`]};let n=uy(e.innerType._def,{...t,currentPath:[...t.currentPath,`anyOf`,`0`]});return n&&{anyOf:[n,{type:`null`}]}}function One(e){let t={type:`number`};if(!e.checks)return t;for(let n of e.checks)switch(n.kind){case`int`:t.type=`integer`;break;case`min`:n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case`max`:n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case`multipleOf`:t.multipleOf=n.value;break}return t}function kne(e,t){let n={type:`object`,properties:{}},r=[],i=e.shape();for(let e in i){let a=i[e];if(a===void 0||a._def===void 0)continue;let o=jne(a),s=uy(a._def,{...t,currentPath:[...t.currentPath,`properties`,e],propertyPath:[...t.currentPath,`properties`,e]});s!==void 0&&(n.properties[e]=s,o||r.push(e))}r.length&&(n.required=r);let a=Ane(e,t);return a!==void 0&&(n.additionalProperties=a),n}function Ane(e,t){if(e.catchall._def.typeName!==`ZodNever`)return uy(e.catchall._def,{...t,currentPath:[...t.currentPath,`additionalProperties`]});switch(e.unknownKeys){case`passthrough`:return t.allowedAdditionalProperties;case`strict`:return t.rejectedAdditionalProperties;case`strip`:return t.removeAdditionalStrategy===`strict`?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function jne(e){try{return e.isOptional()}catch{return!0}}var Mne=(e,t)=>{if(t.currentPath.toString()===t.propertyPath?.toString())return uy(e.innerType._def,t);let n=uy(e.innerType._def,{...t,currentPath:[...t.currentPath,`anyOf`,`1`]});return n?{anyOf:[{not:Qv()},n]}:Qv()},Nne=(e,t)=>{if(t.pipeStrategy===`input`)return uy(e.in._def,t);if(t.pipeStrategy===`output`)return uy(e.out._def,t);let n=uy(e.in._def,{...t,currentPath:[...t.currentPath,`allOf`,`0`]});return{allOf:[n,uy(e.out._def,{...t,currentPath:[...t.currentPath,`allOf`,n?`1`:`0`]})].filter(e=>e!==void 0)}};function Pne(e,t){return uy(e.type._def,t)}function Fne(e,t){let n={type:`array`,uniqueItems:!0,items:uy(e.valueType._def,{...t,currentPath:[...t.currentPath,`items`]})};return e.minSize&&(n.minItems=e.minSize.value),e.maxSize&&(n.maxItems=e.maxSize.value),n}function Ine(e,t){return e.rest?{type:`array`,minItems:e.items.length,items:e.items.map((e,n)=>uy(e._def,{...t,currentPath:[...t.currentPath,`items`,`${n}`]})).reduce((e,t)=>t===void 0?e:[...e,t],[]),additionalItems:uy(e.rest._def,{...t,currentPath:[...t.currentPath,`additionalItems`]})}:{type:`array`,minItems:e.items.length,maxItems:e.items.length,items:e.items.map((e,n)=>uy(e._def,{...t,currentPath:[...t.currentPath,`items`,`${n}`]})).reduce((e,t)=>t===void 0?e:[...e,t],[])}}function Lne(){return{not:Qv()}}function Rne(){return Qv()}var zne=(e,t)=>uy(e.innerType._def,t),Bne=(e,t,n)=>{switch(t){case M.ZodString:return ry(e,n);case M.ZodNumber:return One(e);case M.ZodObject:return kne(e,n);case M.ZodBigInt:return lne(e);case M.ZodBoolean:return une();case M.ZodDate:return ey(e,n);case M.ZodUndefined:return Lne();case M.ZodNull:return wne();case M.ZodArray:return cne(e,n);case M.ZodUnion:case M.ZodDiscriminatedUnion:return Tne(e,n);case M.ZodIntersection:return _ne(e,n);case M.ZodTuple:return Ine(e,n);case M.ZodRecord:return cy(e,n);case M.ZodLiteral:return vne(e);case M.ZodEnum:return hne(e);case M.ZodNativeEnum:return Sne(e);case M.ZodNullable:return Dne(e,n);case M.ZodOptional:return Mne(e,n);case M.ZodMap:return xne(e,n);case M.ZodSet:return Fne(e,n);case M.ZodLazy:return()=>e.getter()._def;case M.ZodPromise:return Pne(e,n);case M.ZodNaN:case M.ZodNever:return Cne();case M.ZodEffects:return mne(e,n);case M.ZodAny:return Qv();case M.ZodUnknown:return Rne();case M.ZodDefault:return pne(e,n);case M.ZodBranded:return $v(e,n);case M.ZodReadonly:return zne(e,n);case M.ZodCatch:return dne(e,n);case M.ZodPipeline:return Nne(e,n);case M.ZodFunction:case M.ZodVoid:case M.ZodSymbol:return;default:return(e=>void 0)(t)}},Vne=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join(`/`)};function uy(e,t,n=!1){let r=t.seen.get(e);if(t.override){let i=t.override?.call(t,e,t,r,n);if(i!==one)return i}if(r&&!n){let e=Hne(r,t);if(e!==void 0)return e}let i={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,i);let a=Bne(e,e.typeName,t),o=typeof a==`function`?uy(a(),t):a;if(o&&Une(e,t,o),t.postProcess){let n=t.postProcess(o,e,t);return i.jsonSchema=o,n}return i.jsonSchema=o,o}var Hne=(e,t)=>{switch(t.$refStrategy){case`root`:return{$ref:e.path.join(`/`)};case`relative`:return{$ref:Vne(t.currentPath,e.path)};case`none`:case`seen`:return e.path.length<t.currentPath.length&&e.path.every((e,n)=>t.currentPath[n]===e)?(console.warn(`Recursive reference detected at ${t.currentPath.join(`/`)}! Defaulting to any`),Qv()):t.$refStrategy===`seen`?Qv():void 0}},Une=(e,t,n)=>(e.description&&(n.description=e.description),n),Wne=e=>{let t=sne(e),n=t.name===void 0?t.basePath:[...t.basePath,t.definitionPath,t.name];return{...t,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([e,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}]))}},Gne=(e,t)=>{let n=Wne(t),r=typeof t==`object`&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>({...e,[t]:uy(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0)??Qv()}),{}):void 0,i=typeof t==`string`?t:t?.nameStrategy===`title`?void 0:t?.name,a=uy(e._def,i===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,i]}
62,!1)??Qv(),o=typeof t==`object`&&t.name!==void 0&&t.nameStrategy===`title`?t.name:void 0;o!==void 0&&(a.title=o);let s=i===void 0?r?{...a,[n.definitionPath]:r}:a:{$ref:[...n.$refStrategy===`relative`?[]:n.basePath,n.definitionPath,i].join(`/`),[n.definitionPath]:{...r,[i]:a}};return s.$schema=`http://json-schema.org/draft-07/schema#`,s},dy=Symbol.for(`vercel.ai.schema`);function Kne(e){let t;return()=>(t??=e(),t)}function fy(e,{validate:t}={}){return{[dy]:!0,_type:void 0,get jsonSchema(){return typeof e==`function`&&(e=e()),e},validate:t}}function qne(e){return typeof e==`object`&&!!e&&dy in e&&e[dy]===!0&&`jsonSchema`in e&&`validate`in e}function py(e){return e==null?fy({type:`object`,properties:{},additionalProperties:!1}):qne(e)?e:`~standard`in e?e[`~standard`].vendor===`zod`?my(e):Jne(e):e()}function Jne(e){return fy(()=>{if(!Yne(e))throw Error(`Standard schema vendor '${e[`~standard`].vendor}' does not support JSON Schema conversion.`);return Yv(e[`~standard`].jsonSchema.input({target:`draft-07`}))},{validate:async t=>{let n=await e[`~standard`].validate(t);return`value`in n?{success:!0,value:n.value}:{success:!1,error:new up({value:t,cause:n.issues})}}})}function Yne(e){return e[`~standard`].jsonSchema!=null}function Xne(e,t){let n=t?.useReferences??!1;return fy(()=>Gne(e,{$refStrategy:n?`root`:`none`}),{validate:async t=>{let n=await e.safeParseAsync(t);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}})}function Zne(e,t){let n=t?.useReferences??!1;return fy(()=>Yv(lte(e,{target:`draft-7`,io:`input`,reused:n?`ref`:`inline`})),{validate:async t=>{let n=await _g(e,t);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}})}function Qne(e){return`_zod`in e}function my(e,t){return Qne(e)?Zne(e,t):Xne(e,t)}async function hy({value:e,schema:t,context:n}){let r=await gy({value:e,schema:t,context:n});if(!r.success)throw up.wrap({value:e,cause:r.error,context:n});return r.value}async function gy({value:e,schema:t,context:n}){let r=py(t);try{if(r.validate==null)return{success:!0,value:e,rawValue:e};let t=await r.validate(e);return t.success?{success:!0,value:t.value,rawValue:e}:{success:!1,error:up.wrap({value:e,cause:t.error,context:n}),rawValue:e}}catch(t){return{success:!1,error:up.wrap({value:e,cause:t,context:n}),rawValue:e}}}async function _y({text:e,schema:t}){try{let n=ane(e);return t==null?{success:!0,value:n,rawValue:n}:await gy({value:n,schema:t})}catch(t){return{success:!1,error:ip.isInstance(t)?t:new ip({text:e,cause:t}),rawValue:void 0}}}function vy({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new Zte).pipeThrough(new TransformStream({async transform({data:e},n){e!==`[DONE]`&&n.enqueue(await _y({text:e,schema:t}))}}))}async function yy(e){return typeof e==`function`&&(e=e()),Promise.resolve(e)}new TextDecoder;var by=Object.defineProperty,xy=(e,t)=>{for(var n in t)by(e,n,{get:t[n],enumerable:!0})},Sy=`AI_NoObjectGeneratedError`,Cy=`vercel.ai.error.${Sy}`,wy=Symbol.for(Cy),Ty,Ey=class extends Gf{constructor({message:e=`No object generated.`,cause:t,text:n,response:r,usage:i,finishReason:a}){super({name:Sy,message:e,cause:t}),this[Ty]=!0,this.text=n,this.response=r,this.usage=i,this.finishReason=a}static isInstance(e){return Gf.hasMarker(e,Cy)}};Ty=wy;var Dy=`AI_UIMessageStreamError`,Oy=`vercel.ai.error.${Dy}`,ky=Symbol.for(Oy),Ay,jy=class extends Gf{constructor({chunkType:e,chunkId:t,message:n}){super({name:Dy,message:n}),this[Ay]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return Gf.hasMarker(e,Oy)}};Ay=ky;var My=f_(()=>Ig([Nte(),A(),kte(),Dg(),Hg(A(),My.optional()),jg(My)])),Ny=Hg(A(),Hg(A(),My.optional())),Py=Ig([A(),v_(Uint8Array),v_(ArrayBuffer),h_(tne,{message:`Must be a Buffer`})]),Fy=Hg(A(),A()),Iy=Ng({type:Kg(`text`),text:A(),providerOptions:Ny.optional()}),Ly=Ng({type:Kg(`image`),image:Ig([Py,v_(URL),Fy]),mediaType:A().optional(),providerOptions:Ny.optional()}),Ry=Rg(`type`,[Ng({type:Kg(`data`),data:Py}),Ng({type:Kg(`url`),url:v_(URL)}),Ng({type:Kg(`reference`),reference:Fy}),Ng({type:Kg(`text`),text:A()})]),zy=Rg(`type`,[Ng({type:Kg(`data`),data:Py}),Ng({type:Kg(`url`),url:v_(URL)})]),By=Ng({type:Kg(`file`),data:Ig([Ry,Py,v_(URL),Fy]),filename:A().optional(),mediaType:A(),providerOptions:Ny.optional()}),Vy=Ng({type:Kg(`reasoning`),text:A(),providerOptions:Ny.optional()}),Hy=Ng({type:Kg(`custom`),kind:A().transform(e=>e),providerOptions:Ny.optional()}),Uy=Ng({type:Kg(`reasoning-file`),data:Ig([zy,Py,v_(URL)]),mediaType:A(),providerOptions:Ny.optional()}
vendor: 7,044 bytes, line 62
62),Wy=Ng({type:Kg(`tool-call`),toolCallId:A(),toolName:A(),input:Og(),providerOptions:Ny.optional(),providerExecuted:Dg().optional()}),Gy=Rg(`type`,[Ng({type:Kg(`text`),value:A(),providerOptions:Ny.optional()}),Ng({type:Kg(`json`),value:My,providerOptions:Ny.optional()}),Ng({type:Kg(`execution-denied`),reason:A().optional(),providerOptions:Ny.optional()}),Ng({type:Kg(`error-text`),value:A(),providerOptions:Ny.optional()}),Ng({type:Kg(`error-json`),value:My,providerOptions:Ny.optional()}),Ng({type:Kg(`content`),value:jg(Ig([Ng({type:Kg(`text`),text:A(),providerOptions:Ny.optional()}),Ng({type:Kg(`file`),data:Ry,mediaType:A(),filename:A().optional(),providerOptions:Ny.optional()}),Ng({type:Kg(`file-data`),data:A(),mediaType:A(),filename:A().optional(),providerOptions:Ny.optional()}),Ng({type:Kg(`file-url`),url:A(),mediaType:A().optional(),providerOptions:Ny.optional()}),Ng({type:Kg(`file-id`),fileId:Ig([A(),Hg(A(),A())]),providerOptions:Ny.optional()}),Ng({type:Kg(`file-reference`),providerReference:Hg(A(),A()),providerOptions:Ny.optional()}),Ng({type:Kg(`image-data`),data:A(),mediaType:A(),providerOptions:Ny.optional()}),Ng({type:Kg(`image-url`),url:A(),providerOptions:Ny.optional()}),Ng({type:Kg(`image-file-id`),fileId:Ig([A(),Hg(A(),A())]),providerOptions:Ny.optional()}),Ng({type:Kg(`image-file-reference`),providerReference:Hg(A(),A()),providerOptions:Ny.optional()}),Ng({type:Kg(`custom`),providerOptions:Ny.optional()})]))})]),Ky=Ng({type:Kg(`tool-result`),toolCallId:A(),toolName:A(),output:Gy,providerOptions:Ny.optional()}),qy=Ng({type:Kg(`tool-approval-request`),approvalId:A(),toolCallId:A()}),Jy=Ng({type:Kg(`tool-approval-response`),approvalId:A(),approved:Dg(),reason:A().optional()});Ig([Ng({role:Kg(`system`),content:A(),providerOptions:Ny.optional()}),Ng({role:Kg(`user`),content:Ig([A(),jg(Ig([Iy,Ly,By]))]),providerOptions:Ny.optional()}),Ng({role:Kg(`assistant`),content:Ig([A(),jg(Ig([Iy,Hy,By,Vy,Uy,Wy,Ky,qy]))]),providerOptions:Ny.optional()}),Ng({role:Kg(`tool`),content:jg(Ig([Ky,Jy])),providerOptions:Ny.optional()})]);function Yy(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;let n={...e};for(let r in t)if(!(r===`__proto__`||r===`constructor`||r===`prototype`)&&Object.prototype.hasOwnProperty.call(t,r)){let i=t[r];if(i===void 0)continue;let a=r in e?e[r]:void 0,o=typeof i==`object`&&!!i&&!Array.isArray(i)&&!(i instanceof Date)&&!(i instanceof RegExp),s=typeof a==`object`&&!!a&&!Array.isArray(a)&&!(a instanceof Date)&&!(a instanceof RegExp);o&&s?n[r]=Yy(a,i):n[r]=i}return n}xy({},{array:()=>eb,choice:()=>tb,json:()=>nb,object:()=>$y,text:()=>Qy});function Xy(e){let t=[`ROOT`],n=-1,r=null,i=0;function a(e){return e>=`0`&&e<=`9`||e>=`A`&&e<=`F`||e>=`a`&&e<=`f`}function o(e,i,a){switch(e){case`"`:n=i,t.pop(),t.push(a),t.push(`INSIDE_STRING`);break;case`f`:case`t`:case`n`:n=i,r=i,t.pop(),t.push(a),t.push(`INSIDE_LITERAL`);break;case`-`:t.pop(),t.push(a),t.push(`INSIDE_NUMBER`);break;case`0`:case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:n=i,t.pop(),t.push(a),t.push(`INSIDE_NUMBER`);break;case`{`:n=i,t.pop(),t.push(a),t.push(`INSIDE_OBJECT_START`);break;case`[`:n=i,t.pop(),t.push(a),t.push(`INSIDE_ARRAY_START`);break}}function s(e,r){switch(e){case`,`:t.pop(),t.push(`INSIDE_OBJECT_AFTER_COMMA`);break;case`}`:n=r,t.pop();break}}function c(e,r){switch(e){case`,`:t.pop(),t.push(`INSIDE_ARRAY_AFTER_COMMA`);break;case`]`:n=r,t.pop();break}}for(let l=0;l<e.length;l++){let u=e[l];switch(t[t.length-1]){case`ROOT`:o(u,l,`FINISH`);break;case`INSIDE_OBJECT_START`:switch(u){case`"`:t.pop(),t.push(`INSIDE_OBJECT_KEY`);break;case`}`:n=l,t.pop();break}break;case`INSIDE_OBJECT_AFTER_COMMA`:switch(u){case`"`:t.pop(),t.push(`INSIDE_OBJECT_KEY`);break}break;case`INSIDE_OBJECT_KEY`:switch(u){case`"`:t.pop(),t.push(`INSIDE_OBJECT_AFTER_KEY`);break}break;case`INSIDE_OBJECT_AFTER_KEY`:switch(u){case`:`:t.pop(),t.push(`INSIDE_OBJECT_BEFORE_VALUE`);break}break;case`INSIDE_OBJECT_BEFORE_VALUE`:o(u,l,`INSIDE_OBJECT_AFTER_VALUE`);break;case`INSIDE_OBJECT_AFTER_VALUE`:s(u,l);break;case`INSIDE_STRING`:switch(u){case`"`:t.pop(),n=l;break;case`\\`:t.push(`INSIDE_STRING_ESCAPE`);break;default:n=l}break;case`INSIDE_ARRAY_START`:switch(u){case`]`:n=l,t.pop();break;default:n=l,o(u,l,`INSIDE_ARRAY_AFTER_VALUE`);break}break;case`INSIDE_ARRAY_AFTER_VALUE`:switch(u){case`,`:t.pop(),t.push(`INSIDE_ARRAY_AFTER_COMMA`);break;case`]`:n=l,t.pop();break;default:n=l;break}break;case`INSIDE_ARRAY_AFTER_COMMA`:o(u,l,`INSIDE_ARRAY_AFTER_VALUE`);break;case`INSIDE_STRING_ESCAPE`:t.pop(),u===`u`?(i=0,t.push(`INSIDE_STRING_UNICODE_ESCAPE`)):n=l;break;case`INSIDE_STRING_UNICODE_ESCAPE`:a(u)&&(i++,i===4&&(t.pop(),n=l));break;case`INSIDE_NUMBER`:switch(u){case`0`:case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:n=l;break;case`e`:case`E`:case`-`:case`.`:break;case`,`:t.pop(),t[t.length-1]===`INSIDE_ARRAY_AFTER_VALUE`&&c(u,l),t[t.length-1]===`INSIDE_OBJECT_AFTER_VALUE`&&s(u,l);break;case`}`:t.pop(),t[t.length-1]===`INSIDE_OBJECT_AFTER_VALUE`&&s(u,l);break;case`]`:t.pop(),t[t.length-1]===`INSIDE_ARRAY_AFTER_VALUE`&&c(u,l);break;default:t.pop();break}break;case`INSIDE_LITERAL`:{let i=e.substring(r,l+1);!`false`.startsWith(i)&&!`true`.startsWith(i)&&!`null`.startsWith(i)?(t.pop(),t[t.length-1]===`INSIDE_OBJECT_AFTER_VALUE`?s(u,l):t[t.length-1]===`INSIDE_ARRAY_AFTER_VALUE`&&c(u,l)):n=l;break}}}let l=e.slice(0,n+1);for(let n=t.length-1;n>=0;n--)switch(t[n]){case`INSIDE_STRING`:l+=`"`;break;case`INSIDE_OBJECT_KEY`:case`INSIDE_OBJECT_AFTER_KEY`:case`INSIDE_OBJECT_AFTER_COMMA`:case`INSIDE_OBJECT_START`:case`INSIDE_OBJECT_BEFORE_VALUE`:case`INSIDE_OBJECT_AFTER_VALUE`:l+=`}`;break;case`INSIDE_ARRAY_START`:case`INSIDE_ARRAY_AFTER_COMMA`:case`INSIDE_ARRAY_AFTER_VALUE`:l+=`]`;break;case`INSIDE_LITERAL`:{let t=e.substring(r,e.length);`true`.startsWith(t)?l+=`true`.slice(t.length):`false`.startsWith(t)?l+=`false`.slice(t.length):`null`.startsWith(t)&&(l+=`null`.slice(t.length))}}return l}async function Zy(e){if(e===void 0)return{value:void 0,state:`undefined-input`};let t=await _y({text:e});return t.success?{value:t.value,state:`successful-parse`}:(t=await _y({text:Xy(e)}),t.success?{value:t.value,state:`repaired-parse`}:{value:void 0,state:`failed-parse`})}var Qy=()=>({name:`text`,responseFormat:Promise.resolve({type:`text`}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),$y=({schema:e,name:t,description:n})=>{let r=py(e);return{name:`object`,responseFormat:yy(r.jsonSchema).then(e=>({type:`json`,schema:e,...t!=null&&{name:t},...n!=null&&{description:n}})),async parseCompleteOutput({text:e},t){let n=await _y({text:e});if(!n.success)throw new Ey({message:`No object generated: could not parse the response.`,cause:n.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let i=await gy({value:n.value,schema:r});if(!i.success)throw new Ey({message:`No object generated: response did not match sc
62hema.`,cause:i.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});return i.value},async parsePartialOutput({text:e}){let t=await Zy(e);switch(t.state){case`failed-parse`:case`undefined-input`:return;case`repaired-parse`:case`successful-parse`:return{partial:t.value}}},createElementStreamTransform(){}}},eb=({element:e,name:t,description:n})=>{let r=py(e);return{name:`array`,responseFormat:yy(r.jsonSchema).then(e=>{let{$schema:r,...i}=e;return{type:`json`,schema:{$schema:`http://json-schema.org/draft-07/schema#`,type:`object`,properties:{elements:{type:`array`,items:i}},required:[`elements`],additionalProperties:!1},...t!=null&&{name:t},...n!=null&&{description:n}}}),async parseCompleteOutput({text:e},t){let n=await _y({text:e});if(!n.success)throw new Ey({message:`No object generated: could not parse the response.`,cause:n.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let i=n.value;if(typeof i!=`object`||!i||!(`elements`in i)||!Array.isArray(i.elements))throw new Ey({message:`No object generated: response did not match schema.`,cause:new up({value:i,cause:`response must be an object with an elements array`}),text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let a=[];for(let n of i.elements){let i=await gy({value:n,schema:r});if(!i.success)throw new Ey({message:`No object generated: response did not match schema.`,cause:i.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});a.push(i.value)}return a},async parsePartialOutput({text:e}){let t=await Zy(e);switch(t.state){case`failed-parse`:case`undefined-input`:return;case`repaired-parse`:case`successful-parse`:{let e=t.value;if(typeof e!=`object`||!e||!(`elements`in e)||!Array.isArray(e.elements))return;let n=t.state===`repaired-parse`&&e.elements.length>0?e.elements.slice(0,-1):e.elements,i=[];for(let e of n){let t=await gy({value:e,schema:r});t.success&&i.push(t.value)}return{partial:i}}}},createElementStreamTransform(){let e=0;return new TransformStream({transform({partialOutput:t},n){if(t!=null)for(;e<t.length;e++)n.enqueue(t[e])}})}}},tb=({options:e,name:t,description:n})=>({name:`choice`,responseFormat:Promise.resolve({type:`json`,schema:{$schema:`http://json-schema.org/draft-07/schema#`,type:`object`,properties:{result:{type:`string`,enum:e}},required:[`result`],additionalProperties:!1},...t!=null&&{name:t},...n!=null&&{description:n}}),async parseCompleteOutput({text:t},n){let r=await _y({text:t});if(!r.success)throw new Ey({message:`No object generated: could not parse the response.`,cause:r.error,text:t,response:n.response,usage:n.usage,finishReason:n.finishReason});let i=r.value;if(typeof i!=`object`||!i||!(`result`in i)||typeof i.result!=`string`||!e.includes(i.result))throw new Ey({message:`No object generated: response did not match schema.`,cause:new up({value:i,cause:`response must be an object that contains a choice value.`}),text:t,response:n.response,usage:n.usage,finishReason:n.finishReason});return i.result},async parsePartialOutput({text:t}){let n=await Zy(t);switch(n.state){case`failed-parse`:case`undefined-input`:return;case`repaired-parse`:case`successful-parse`:{let t=n.value;if(typeof t!=`object`||!t||!(`result`in t)||typeof t.result!=`string`)return;let r=e.filter(e=>e.startsWith(t.result));return n.state===`successful-parse`?r.includes(t.result)?{partial:t.result}:void 0:r.length===1?{partial:r[0]}:void 0}}},createElementStreamTransform(){}}),nb=({name:e,description:t}={})=>({name:`json`,responseFormat:Promise.resolve({type:`json`,...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:e},t){let n=await _y({text:e});if(!n.success)throw new Ey({message:`No object generated: could not parse the response.`,cause:n.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});return n.value},async parsePartialOutput({text:e}){let t=await Zy(e);switch(t.state){case`failed-parse`:case`undefined-input`:return;case`repaired-parse`:case`successful-parse`:return t.value===void 0?void 0:{partial:t.value}}},createElementStreamTransform(){}});new TextEncoder,new TextEncoder,Kv({prefix:`aitxt`,size:24}),Kv({prefix:`call`,size:24}),TransformStream;var rb=Hg(A(),My.optional()),ib=Kne(()=>my(Ig([Pg({type:Kg(`text-start`),id:A(),providerMetadata:Ny.optional()}),Pg({type:Kg(`text-delta`),id:A(),delta:A(),providerMetadata:Ny.optional()}),Pg({type:Kg(`text-end`),id:A(),providerMetadata:Ny.optional()}),Pg({type:Kg(`error`),errorText:A()}),Pg({type:Kg(`tool-input-start`),toolCallId:A(),toolName:A(),providerExecuted:Dg().optional(),providerMetadata:Ny.optional(),toolMetadata:rb.optional(),dynamic:Dg().optional(),title:A().optional()}),Pg({type:Kg(`tool-input-delta`),toolCallId:A(),inputTextDelta:A()}),Pg({type:Kg(`tool-input-available`),toolCallId:A(),toolName:A(),input
62:Og(),providerExecuted:Dg().optional(),providerMetadata:Ny.optional(),toolMetadata:rb.optional(),dynamic:Dg().optional(),title:A().optional()}),Pg({type:Kg(`tool-input-error`),toolCallId:A(),toolName:A(),input:Og(),providerExecuted:Dg().optional(),providerMetadata:Ny.optional(),toolMetadata:rb.optional(),dynamic:Dg().optional(),errorText:A(),title:A().optional()}),Pg({type:Kg(`tool-approval-request`),approvalId:A(),toolCallId:A(),isAutomatic:Dg().optional(),signature:A().optional()}),Pg({type:Kg(`tool-approval-response`),approvalId:A(),approved:Dg(),reason:A().optional(),providerExecuted:Dg().optional(),providerMetadata:Ny.optional()}),Pg({type:Kg(`tool-output-available`),toolCallId:A(),output:Og(),providerExecuted:Dg().optional(),providerMetadata:Ny.optional(),toolMetadata:rb.optional(),dynamic:Dg().optional(),preliminary:Dg().optional()}),Pg({type:Kg(`tool-output-error`),toolCallId:A(),errorText:A(),providerExecuted:Dg().optional(),providerMetadata:Ny.optional(),toolMetadata:rb.optional(),dynamic:Dg().optional()}),Pg({type:Kg(`tool-output-denied`),toolCallId:A()}),Pg({type:Kg(`reasoning-start`),id:A(),providerMetadata:Ny.optional()}),Pg({type:Kg(`reasoning-delta`),id:A(),delta:A(),providerMetadata:Ny.optional()}),Pg({type:Kg(`reasoning-end`),id:A(),providerMetadata:Ny.optional()}),Pg({type:Kg(`custom`),kind:A().transform(e=>e),providerMetadata:Ny.optional()}),Pg({type:Kg(`source-url`),sourceId:A(),url:A(),title:A().optional(),providerMetadata:Ny.optional()}),Pg({type:Kg(`source-document`),sourceId:A(),mediaType:A(),title:A(),filename:A().optional(),providerMetadata:Ny.optional()}),Pg({type:Kg(`file`),url:A(),mediaType:A(),providerMetadata:Ny.optional()}),Pg({type:Kg(`reasoning-file`),url:A(),mediaType:A(),providerMetadata:Ny.optional()}),Pg({type:h_(e=>typeof e==`string`&&e.startsWith(`data-`),{message:`Type must start with "data-"`}),id:A().optional(),data:Og(),transient:Dg().optional()}),Pg({type:Kg(`start-step`)}),Pg({type:Kg(`finish-step`)}),Pg({type:Kg(`start`),messageId:A().optional(),messageMetadata:Og().optional()}),Pg({type:Kg(`finish`),finishReason:Wg([`stop`,`length`,`content-filter`,`tool-calls`,`error`,`other`]).optional(),messageMetadata:Og().optional()}),Pg({type:Kg(`abort`),reason:A().optional()}),Pg({type:Kg(`message-metadata`),messageMetadata:Og()})])));function ab(e){return e.type.startsWith(`data-`)}function ob(){return Object.create(null)}function sb(e){return e.type.startsWith(`tool-`)}function cb(e){return e.type===`dynamic-tool`}function lb(e){return sb(e)||cb(e)}function ub(e){return e.type.split(`-`).slice(1).join(`-`)}function db({lastMessage:e,messageId:t}){return{message:e?.role===`assistant`?e:{id:t,metadata:void 0,role:`assistant`,parts:[]},activeTextParts:ob(),activeReasoningParts:ob(),partialToolCalls:ob()}}function fb({stream:e,messageMetadataSchema:t,dataPartSchemas:n,runUpdateMessageJob:r,onError:i,onToolCall:a,onData:o}){return e.pipeThrough(new TransformStream({async transform(e,s){await r(async({state:r,write:c})=>{function l(e){let t=r.message.parts.filter(lb).find(t=>t.toolCallId===e);if(t==null)throw new jy({chunkType:`tool-invocation`,chunkId:e,message:`No tool invocation found for tool call ID "${e}".`});return t}function u(e){let t=r.message.parts.filter(lb).find(t=>t.approval?.id===e);if(t==null)throw new jy({chunkType:`tool-approval-response`,chunkId:e,message:`No tool invocation found for approval ID "${e}".`});return t}function d(e){let t=r.message.parts.find(t=>sb(t)&&t.toolCallId===e.toolCallId),n=e,i=t;if(t!=null){t.state=e.state,i.input=n.input,i.output=n.output,i.errorText=n.errorText,i.rawInput=n.rawInput,i.preliminary=n.preliminary,e.title!==void 0&&(i.title=e.title),e.toolMetadata!==void 0&&(i.toolMetadata=e.toolMetadata),i.providerExecuted=n.providerExecuted??t.providerExecuted;let r=n.providerMetadata;if(r!=null)if(e.state===`output-available`||e.state===`output-error`){let e=t;e.resultProviderMetadata=r}else t.callProviderMetadata=r}else r.message.parts.push({type:`tool-${e.toolName}`,toolCallId:e.toolCallId,state:e.state,title:e.title,...e.toolMetadata===void 0?{}:{toolMetadata:e.toolMetadata}
vendor: 7,390 bytes, line 62
62,input:n.input,output:n.output,rawInput:n.rawInput,errorText:n.errorText,providerExecuted:n.providerExecuted,preliminary:n.preliminary,...n.providerMetadata!=null&&(e.state===`output-available`||e.state===`output-error`)?{resultProviderMetadata:n.providerMetadata}:{},...n.providerMetadata!=null&&!(e.state===`output-available`||e.state===`output-error`)?{callProviderMetadata:n.providerMetadata}:{}})}function f(e){let t=r.message.parts.find(t=>t.type===`dynamic-tool`&&t.toolCallId===e.toolCallId),n=e,i=t;if(t!=null){t.state=e.state,i.toolName=e.toolName,i.input=n.input,i.output=n.output,i.errorText=n.errorText,i.rawInput=n.rawInput??i.rawInput,i.preliminary=n.preliminary,e.title!==void 0&&(i.title=e.title),e.toolMetadata!==void 0&&(i.toolMetadata=e.toolMetadata),i.providerExecuted=n.providerExecuted??t.providerExecuted;let r=n.providerMetadata;if(r!=null)if(e.state===`output-available`||e.state===`output-error`){let e=t;e.resultProviderMetadata=r}else t.callProviderMetadata=r}else r.message.parts.push({type:`dynamic-tool`,toolName:e.toolName,toolCallId:e.toolCallId,state:e.state,input:n.input,output:n.output,errorText:n.errorText,preliminary:n.preliminary,providerExecuted:n.providerExecuted,title:e.title,...e.toolMetadata===void 0?{}:{toolMetadata:e.toolMetadata},...n.providerMetadata!=null&&(e.state===`output-available`||e.state===`output-error`)?{resultProviderMetadata:n.providerMetadata}:{},...n.providerMetadata!=null&&!(e.state===`output-available`||e.state===`output-error`)?{callProviderMetadata:n.providerMetadata}:{}})}async function p(e){if(e!=null){let n=r.message.metadata==null?e:Yy(r.message.metadata,e);t!=null&&await hy({value:n,schema:t,context:{field:`message.metadata`,entityId:r.message.id}}),r.message.metadata=n}}switch(e.type){case`text-start`:{let t={type:`text`,text:``,providerMetadata:e.providerMetadata,state:`streaming`};r.activeTextParts[e.id]=t,r.message.parts.push(t),c();break}case`text-delta`:{let t=r.activeTextParts[e.id];if(t==null)throw new jy({chunkType:`text-delta`,chunkId:e.id,message:`Received text-delta for missing text part with ID "${e.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});t.text+=e.delta,t.providerMetadata=e.providerMetadata??t.providerMetadata,c();break}case`text-end`:{let t=r.activeTextParts[e.id];if(t==null)throw new jy({chunkType:`text-end`,chunkId:e.id,message:`Received text-end for missing text part with ID "${e.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});t.state=`done`,t.providerMetadata=e.providerMetadata??t.providerMetadata,delete r.activeTextParts[e.id],c();break}case`custom`:{let t={type:`custom`,kind:e.kind,providerMetadata:e.providerMetadata};r.message.parts.push(t),c();break}case`reasoning-start`:{let t={type:`reasoning`,text:``,providerMetadata:e.providerMetadata,state:`streaming`};r.activeReasoningParts[e.id]=t,r.message.parts.push(t),c();break}case`reasoning-delta`:{let t=r.activeReasoningParts[e.id];if(t==null)throw new jy({chunkType:`reasoning-delta`,chunkId:e.id,message:`Received reasoning-delta for missing reasoning part with ID "${e.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});t.text+=e.delta,t.providerMetadata=e.providerMetadata??t.providerMetadata,c();break}case`reasoning-end`:{let t=r.activeReasoningParts[e.id];if(t==null)throw new jy({chunkType:`reasoning-end`,chunkId:e.id,message:`Received reasoning-end for missing reasoning part with ID "${e.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});t.providerMetadata=e.providerMetadata??t.providerMetadata,t.state=`done`,delete r.activeReasoningParts[e.id],c();break}case`file`:case`reasoning-file`:r.message.parts.push({type:e.type,mediaType:e.mediaType,url:e.url,...e.providerMetadata==null?{}:{providerMetadata:e.providerMetadata}}),c();break;case`source-url`:r.message.parts.push({type:`source-url`,sourceId:e.sourceId,url:e.url,title:e.title,providerMetadata:e.providerMetadata}),c();break;case`source-document`:r.message.parts.push({type:`source-document`,sourceId:e.sourceId,mediaType:e.mediaType,title:e.title,filename:e.filename,providerMetadata:e.providerMetadata}),c();break;case`tool-input-start`:{let t=r.message.parts.filter(sb);r.partialToolCalls[e.toolCallId]={text:``,toolName:e.toolName,index:t.length,dynamic:e.dynamic,title:e.title,toolMetadata:e.toolMetadata},e.dynamic?f({toolCallId:e.toolCallId,toolName:e.toolName,state:`input-streaming`,input:void 0,providerExecuted:e.providerExecuted,title:e.title,toolMetadata:e.toolMetadata,providerMetadata:e.providerMetadata}):d({toolCallId:e.toolCallId,toolName:e.toolName,state:`input-streaming`,input:void 0,providerExecuted:e.providerExecuted,title:e.title,toolMetadata:e.toolMetadata,providerMetadata:e.providerMetadata}),c();break}case`tool-input-delta`:{let t=r.partialToolCalls[e.toolCallId];if(t==null)throw new jy({chunkType:`tool-input-delta`,chunkId:e.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${e.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});t.text+=e.inputTextDelta;let{value:n}=await Zy(t.text);t.dynamic?f({toolCallId:e.toolCallId,toolName:t.toolName,state:`input-streaming`,input:n,title:t.title,toolMetadata:t.toolMetadata}):d({toolCallId:e.toolCallId,toolName:t.toolName,state:`input-streaming`,input:n,title:t.title,toolMetadata:t.toolMetadata}),c();break}case`tool-input-available`:e.dynamic?f({toolCallId:e.toolCallId,toolName:e.toolName,state:`input-available`,input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:e.title,toolMetadata:e.toolMetadata}):d({toolCallId:e.toolCallId,toolName:e.toolName,state:`input-available`,input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:e.title,toolMetadata:e.toolMetadata}),c(),a&&!e.providerExecuted&&await a({toolCall:e});break;case`tool-input-error`:{let t=r.message.parts.filter(lb).find(t=>t.toolCallId===e.toolCallId);(t==null?e.dynamic:t.type===`dynamic-tool`)?f({toolCallId:e.toolCallId,toolName:e.toolName,state:`output-error`,input:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,toolMetadata:e.toolMetadata}):d({toolCallId:e.toolCallId,toolName:e.toolName,state:`output-error`,input:void 0,rawInput:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,toolMetadata:e.toolMetadata}),c();break}case`tool-approval-request`:{let t=l(e.toolCallId);t.state=`approval-requested`,t.approval={id:e.approvalId,...e.isAutomatic===!0?{isAutomatic:!0}:{},...e.signature==null?{}:{signature:e.signature}},c();break}case`tool-approval-response`:{let t=u(e.approvalId),n=t.approval==null?{id:e.approvalId}:t.approval;t.state=`approval-responded`,t.approval={id:e.approvalId,approved:e.approved,...e.reason==null?{}:{reason:e.reason},...n.isAutomatic===!0?{isAutomatic:!0}:{},...n.signature==null?{}:{signature:n.signature}},e.providerExecuted!=null&&(t.providerExecuted=e.providerExecuted),e.providerMetadata!=null&&(t.callProviderMetadata=e.providerMetadata),c();break}case`tool-output-denied`:{let t=l(e.toolCallId);t.state=`output-denied`,c();break}case`tool-output-available`:{let t=l(e.toolCallId);t.type===`dynamic-tool`?f({toolCallId:e.toolCallId,toolName:t.toolName,state:`output-
62available`,input:t.input,output:e.output,preliminary:e.preliminary,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata}):d({toolCallId:e.toolCallId,toolName:ub(t),state:`output-available`,input:t.input,output:e.output,providerExecuted:e.providerExecuted,preliminary:e.preliminary,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata}),c();break}case`tool-output-error`:{let t=l(e.toolCallId);t.type===`dynamic-tool`?f({toolCallId:e.toolCallId,toolName:t.toolName,state:`output-error`,input:t.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata}):d({toolCallId:e.toolCallId,toolName:ub(t),state:`output-error`,input:t.input,rawInput:t.rawInput,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata}),c();break}case`start-step`:r.message.parts.push({type:`step-start`});break;case`finish-step`:r.activeTextParts=ob(),r.activeReasoningParts=ob();break;case`start`:e.messageId!=null&&(r.message.id=e.messageId),await p(e.messageMetadata),(e.messageId!=null||e.messageMetadata!=null)&&c();break;case`finish`:e.finishReason!=null&&(r.finishReason=e.finishReason),await p(e.messageMetadata),e.messageMetadata!=null&&c();break;case`message-metadata`:await p(e.messageMetadata),e.messageMetadata!=null&&c();break;case`error`:i?.(Error(e.errorText));break;default:if(ab(e)){if(n?.[e.type]!=null){let t=r.message.parts.findIndex(t=>`id`in t&&`data`in t&&t.id===e.id&&t.type===e.type),i=t>=0?t:r.message.parts.length;await hy({value:e.data,schema:n[e.type],context:{field:`message.parts[${i}].data`,entityName:e.type,entityId:e.id}})}let t=e;if(t.transient){o?.(t);break}let i=t.id==null?void 0:r.message.parts.find(e=>t.type===e.type&&t.id===e.id);i==null?r.message.parts.push(t):i.data=t.data,o?.(t),c()}}s.enqueue(e)})}}))}async function pb({stream:e,onError:t}){let n=e.getReader();try{for(;;){let{done:e}=await n.read();if(e)break}}catch(e){t?.(e)}finally{n.releaseLock()}}Kv({prefix:`aitxt`,size:24}),Kv({prefix:`call`,size:24}),Kv({prefix:`aitxt`,size:24}),Kv({prefix:`call`,size:24}),Hg(A(),My.optional()),Hg(A(),A()),Kv({prefix:`call`,size:24}),Kv({prefix:`call`,size:24}),Kv({prefix:`aiobj`,size:24});var mb=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,n)=>{this.queue.push(async()=>{try{await e(),t()}catch(e){n(e)}}),this.processQueue()})}};Kv({prefix:`aiobj`,size:24}),Kv({prefix:`call`,size:24});async function hb(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw Error(`FileList is not supported in the current environment`);return Promise.all(Array.from(e).map(async e=>{let{name:t,type:n}=e;return{type:`file`,mediaType:n,filename:t,url:await new Promise((t,n)=>{let r=new FileReader;r.onload=e=>{t(e.target?.result)},r.onerror=e=>n(e),r.readAsDataURL(e)})}}))}var gb=class{constructor({api:e=`/api/chat`,credentials:t,headers:n,body:r,fetch:i,prepareSendMessagesRequest:a,prepareReconnectToStreamRequest:o}){this.api=e,this.credentials=t,this.headers=n,this.body=r,this.fetch=i,this.prepareSendMessagesRequest=a,this.prepareReconnectToStreamRequest=o}async sendMessages({abortSignal:e,...t}){let n=await yy(this.body),r=await yy(this.headers),i=await yy(this.credentials),a={...qv(r),...qv(t.headers)},o=await this.prepareSendMessagesRequest?.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...n,...t.body},headers:a,credentials:i,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId}),s=o?.api??this.api,c=o?.headers===void 0?a:qv(o.headers),l=o?.body===void 0?{...n,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId}:o.body,u=o?.credentials??i,d=await(this.fetch??globalThis.fetch)(s,{method:`POST`,headers:{"Content-Type":`application/json`,...c},body:JSON.stringify(l),credentials:u,signal:e});if(!d.ok)throw Error(await d.text()??`Failed to fetch the chat response.`);if(!d.body)throw Error(`The response body is empty.`);return this.processResponseStream(d.body)}async reconnectToStream(e){let t=await yy(this.body),n=await yy(this.headers),r=await yy(this.credentials),i={...qv(n),...qv(e.headers)},a=await this.prepareReconnectToStreamRequest?.call(this,{api:this.api,id:e.chatId,body:{...t,...e.body},headers:i,credentials:r,requestMetadata:e.metadata}),o=a?.api??`${this.api}/${e.chatId}/stream`,s=a?.headers===void 0?i:qv(a.headers),c=a?.credentials??r,l=await(this.fetch??globalThis.fetch)(o,{method:`GET`,headers:s,credentials:c});if(l.status===204)return null;if(!l.ok)throw Error(await l.text()??`Failed to fetch the chat response.`);if(!l.body)throw Error(`The response body is empty.`);return this.processResponseStream(l.body)}},_b=class extends gb{constructor(e={}){super(e)}processResponseStream(e){return vy({stream:e,schema:ib}).pipeThrough(new TransformStream({async transform(e,t){if(!e.success)throw e.error;t.enqueue(e.value)}}))}},vb=class{constructor({generateId:e=ene,id:t=e(),transport:n=new _b,messageMetadataSchema:r,dataPartSchemas:i,state:a,onError:o,onToolCall:s,onFinish:c,onData:l,sendAutomaticallyWhen:u}){this.activeResponse=void 0,this.jobExecutor=new mb,this.sendMessage=async(e,t)=>
62{if(e==null){await this.makeRequest({trigger:`submit-message`,messageId:this.lastMessage?.id,...t});return}let n;if(n=`text`in e||`files`in e?{parts:[...Array.isArray(e.files)?e.files:await hb(e.files),...`text`in e&&e.text!=null?[{type:`text`,text:e.text}]:[]]}:e,e.messageId!=null){let t=this.state.messages.findIndex(t=>t.id===e.messageId);if(t===-1)throw Error(`message with id ${e.messageId} not found`);if(this.state.messages[t].role!==`user`)throw Error(`message with id ${e.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,t+1),this.state.replaceMessage(t,{...n,id:e.messageId,role:n.role??`user`,metadata:e.metadata})}else this.state.pushMessage({...n,id:n.id??this.generateId(),role:n.role??`user`,metadata:e.metadata});await this.makeRequest({trigger:`submit-message`,messageId:e.messageId,...t})},this.regenerate=async({messageId:e,...t}={})=>{let n=e==null?this.state.messages.length-1:this.state.messages.findIndex(t=>t.id===e);if(n===-1)throw Error(`message ${e} not found`);this.state.messages=this.state.messages.slice(0,this.messages[n].role===`assistant`?n:n+1),await this.makeRequest({trigger:`regenerate-message`,messageId:e,...t})},this.resumeStream=async(e={})=>{await this.makeRequest({trigger:`resume-stream`,...e})},this.clearError=()=>{this.status===`error`&&(this.state.error=void 0,this.setStatus({status:`ready`}))},this.addToolApprovalResponse=async({id:e,approved:t,reason:n,options:r})=>this.jobExecutor.run(async()=>{let i=this.state.messages,a=i[i.length-1],o=r=>lb(r)&&r.state===`approval-requested`&&r.approval.id===e?{...r,state:`approval-responded`,approval:{...r.approval,id:e,approved:t,reason:n}}:r;this.state.replaceMessage(i.length-1,{...a,parts:a.parts.map(o)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(o)),this.status!==`streaming`&&this.status!==`submitted`&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(e=>{e&&this.makeRequest({trigger:`submit-message`,messageId:this.lastMessage?.id,...r})})}),this.addToolOutput=async({state:e=`output-available`,toolCallId:t,output:n,errorText:r,options:i})=>this.jobExecutor.run(async()=>{let a=this.state.messages,o=a[a.length-1],s=i=>lb(i)&&i.toolCallId===t?{...i,state:e,output:n,errorText:r}:i;this.state.replaceMessage(a.length-1,{...o,parts:o.parts.map(s)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(s)),this.status!==`streaming`&&this.status!==`submitted`&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(e=>{e&&this.makeRequest({trigger:`submit-message`,messageId:this.lastMessage?.id,...i})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{this.status!==`streaming`&&this.status!==`submitted`||this.activeResponse?.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=n,this.generateId=e,this.messageMetadataSchema=r,this.dataPartSchemas=i,this.state=a,this.onError=o,this.onToolCall=s,this.onFinish=c,this.onData=l,this.sendAutomaticallyWhen=u}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;let e=this.sendAutomaticallyWhen({messages:this.state.messages});return e&&typeof e==`object`&&`then`in e?await e:e}async makeRequest({trigger:e,metadata:t,headers:n,body:r,messageId:i}){var a;let o;if(e===`resume-stream`)try{let e=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:n,body:r});if(e==null)return;o=e}catch(e){this.onError&&e instanceof Error&&this.onError(e),this.setStatus({status:`error`,error:e});return}this.setStatus({status:`submitted`,error:void 0});let s=this.lastMessage,c=!1,l=!1,u=!1,d;try{let a={state:db({lastMessage:this.state.snapshot(s),messageId:this.generateId()}),abortController:new AbortController};d=a,a.abortController.signal.addEventListener(`abort`,()=>{c=!0}),this.activeResponse=a;let l;l=e===`resume-stream`?o:await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:a.abortController.signal,metadata:t,headers:n,body:r,trigger:e,messageId:i}
62),await pb({stream:fb({stream:l,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:e=>this.jobExecutor.run(()=>e({state:a.state,write:()=>{this.setStatus({status:`streaming`}),a.state.message.id===this.lastMessage?.id?this.state.replaceMessage(this.state.messages.length-1,a.state.message):this.state.pushMessage(a.state.message)}})),onError:e=>{throw e}}),onError:e=>{throw e}}),this.setStatus({status:`ready`})}catch(e){if(c||e.name===`AbortError`)return c=!0,this.setStatus({status:`ready`}),null;u=!0,e instanceof TypeError&&(e.message.toLowerCase().includes(`fetch`)||e.message.toLowerCase().includes(`network`))&&(l=!0),this.onError&&e instanceof Error&&this.onError(e),this.setStatus({status:`error`,error:e})}finally{try{d&&((a=this.onFinish)==null||a.call(this,{message:d.state.message,messages:this.state.messages,isAbort:c,isDisconnect:l,isError:u,finishReason:d.state.finishReason}))}catch(e){console.error(e)}this.activeResponse===d&&(this.activeResponse=void 0)}!u&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:`submit-message`,messageId:this.lastMessage?.id,metadata:t,headers:n,body:r})}},yb=e(n(((e,t)=>{function n(e,t){if(typeof e!=`function`)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n,r=0;return function(...i){clearTimeout(n);let a=Date.now(),o=t-(a-r);o<=0?(r=a,e.apply(this,i)):n=setTimeout(()=>{r=Date.now(),e.apply(this,i)},o)}}t.exports=n}))(),1),bb=(e,t,n)=>{if(!t.has(e))throw TypeError(`Cannot `+n)},xb=(e,t,n)=>(bb(e,t,`read from private field`),n?n.call(e):t.get(e)),Sb=(e,t,n)=>{if(t.has(e))throw TypeError(`Cannot add the same private member more than once`);t instanceof WeakSet?t.add(e):t.set(e,n)},Cb=(e,t,n,r)=>(bb(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n);function wb(e,t){return t==null?e:(0,yb.default)(e,t)}var Tb,Eb,Db,Ob,kb,Ab,jb,Mb,Nb,Pb=class{constructor(e=[]){Sb(this,Tb,void 0),Sb(this,Eb,`ready`),Sb(this,Db,void 0),Sb(this,Ob,new Set),Sb(this,kb,new Set),Sb(this,Ab,new Set),this.pushMessage=e=>{Cb(this,Tb,xb(this,Tb).concat(e)),xb(this,jb).call(this)},this.popMessage=()=>{Cb(this,Tb,xb(this,Tb).slice(0,-1)),xb(this,jb).call(this)},this.replaceMessage=(e,t)=>{Cb(this,Tb,[...xb(this,Tb).slice(0,e),this.snapshot(t),...xb(this,Tb).slice(e+1)]),xb(this,jb).call(this)},this.snapshot=e=>structuredClone(e),this[`~registerMessagesCallback`]=(e,t)=>{let n=t?wb(e,t):e;return xb(this,Ob).add(n),()=>{xb(this,Ob).delete(n)}},this[`~registerStatusCallback`]=e=>(xb(this,kb).add(e),()=>{xb(this,kb).delete(e)}),this[`~registerErrorCallback`]=e=>(xb(this,Ab).add(e),()=>{xb(this,Ab).delete(e)}),Sb(this,jb,()=>{xb(this,Ob).forEach(e=>e())}),Sb(this,Mb,()=>{xb(this,kb).forEach(e=>e())}),Sb(this,Nb,()=>{xb(this,Ab).forEach(e=>e())}),Cb(this,Tb,e)}get status(){return xb(this,Eb)}set status(e){Cb(this,Eb,e),xb(this,Mb).call(this)}get error(){return xb(this,Db)}set error(e){Cb(this,Db,e),xb(this,Nb).call(this)}get messages(){return xb(this,Tb)}set messages(e){Cb(this,Tb,[...e]),xb(this,jb).call(this)}};Tb=new WeakMap,Eb=new WeakMap,Db=new WeakMap,Ob=new WeakMap,kb=new WeakMap,Ab=new WeakMap,jb=new WeakMap,Mb=new WeakMap,Nb=new WeakMap;var Fb,Ib=class extends vb{constructor({messages:e,...t}){let n=new Pb(e);super({...t,state:n}),Sb(this,Fb,void 0),this[`~registerMessagesCallback`]=(e,t)=>xb(this,Fb)[`~registerMessagesCallback`](e,t),this[`~registerStatusCallback`]=e=>xb(this,Fb)[`~registerStatusCallback`](e),this[`~registerErrorCallback`]=e=>xb(this,Fb)[`~registerErrorCallback`](e),Cb(this,Fb,n)}};Fb=new WeakMap;
62function Lb({throttle:e,experimental_throttle:t,resume:n=!1,...r}={}){let i=e??t,a=(0,D.useRef)({});`chat`in r||(a.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen,transport:r.transport});let o,s=()=>a.current.transport??(o??=new _b),c={...r,transport:{sendMessages:e=>s().sendMessages(e),reconnectToStream:e=>s().reconnectToStream(e)},onToolCall:e=>{var t;return(t=a.current).onToolCall?.call(t,e)},onData:e=>{var t;return(t=a.current).onData?.call(t,e)},onFinish:e=>{var t;return(t=a.current).onFinish?.call(t,e)},onError:e=>{var t;return(t=a.current).onError?.call(t,e)},sendAutomaticallyWhen:e=>{var t;return(t=a.current).sendAutomaticallyWhen?.call(t,e)??!1}},l=(0,D.useRef)(`chat`in r?r.chat:new Ib(c));(`chat`in r&&r.chat!==l.current||`id`in r&&r.id!=null&&l.current.id!==r.id)&&(l.current=`chat`in r?r.chat:new Ib(c));let u=(0,D.useSyncExternalStore)((0,D.useCallback)(e=>l.current[`~registerMessagesCallback`](e,i),[i,l.current.id]),()=>l.current.messages,()=>l.current.messages),d=(0,D.useSyncExternalStore)(l.current[`~registerStatusCallback`],()=>l.current.status,()=>l.current.status),f=(0,D.useSyncExternalStore)(l.current[`~registerErrorCallback`],()=>l.current.error,()=>l.current.error),p=(0,D.useCallback)(e=>{typeof e==`function`&&(e=e(l.current.messages)),l.current.messages=e},[l]);return(0,D.useEffect)(()=>{n&&l.current.resumeStream()},[n,l]),{id:l.current.id,messages:u,setMessages:p,sendMessage:l.current.sendMessage,regenerate:l.current.regenerate,clearError:l.current.clearError,stop:l.current.stop,error:f,resumeStream:l.current.resumeStream,status:d,addToolResult:l.current.addToolOutput,addToolOutput:l.current.addToolOutput,addToolApprovalResponse:l.current.addToolApprovalResponse}}function Rb(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();
vendor: 4,393 bytes, line 62
62(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function zb(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Bb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hb={};function Ub(e,t){return((t||Hb).jsx?Vb:Bb).test(e)}var Wb=/[ \t\n\f\r]/g;function Gb(e){return typeof e==`object`?e.type===`text`&&Kb(e.value):Kb(e)}function Kb(e){return e.replace(Wb,``)===``}var qb=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};qb.prototype.normal={},qb.prototype.property={},qb.prototype.space=void 0;function Jb(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new qb(n,r,t)}function Yb(e){return e.toLowerCase()}var Xb=class{constructor(e,t){this.attribute=t,this.property=e}};Xb.prototype.attribute=``,Xb.prototype.booleanish=!1,Xb.prototype.boolean=!1,Xb.prototype.commaOrSpaceSeparated=!1,Xb.prototype.commaSeparated=!1,Xb.prototype.defined=!1,Xb.prototype.mustUseProperty=!1,Xb.prototype.number=!1,Xb.prototype.overloadedBoolean=!1,Xb.prototype.property=``,Xb.prototype.spaceSeparated=!1,Xb.prototype.space=void 0;var Zb=t({boolean:()=>$b,booleanish:()=>ex,commaOrSpaceSeparated:()=>ix,commaSeparated:()=>rx,number:()=>N,overloadedBoolean:()=>tx,spaceSeparated:()=>nx}),Qb=0,$b=ax(),ex=ax(),tx=ax(),N=ax(),nx=ax(),rx=ax(),ix=ax();function ax(){return 2**++Qb}var ox=Object.keys(Zb),sx=class extends Xb{constructor(e,t,n,r){let i=-1;if(super(e,t),cx(this,`space`,r),typeof n==`number`)for(;++i<ox.length;){let e=ox[i];cx(this,ox[i],(n&Zb[e])===Zb[e])}}};sx.prototype.defined=!0;function cx(e,t,n){n&&(e[t]=n)}function lx(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new sx(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Yb(r)]=r,n[Yb(a.attribute)]=r}return new qb(t,n,e.space)}var ux=lx({properties:{ariaActiveDescendant:null,ariaAtomic:ex,ariaAutoComplete:null,ariaBusy:ex,ariaChecked:ex,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:nx,ariaCurrent:null,ariaDescribedBy:nx,ariaDetails:null,ariaDisabled:ex,ariaDropEffect:nx,ariaErrorMessage:null,ariaExpanded:ex,ariaFlowTo:nx,ariaGrabbed:ex,ariaHasPopup:null,ariaHidden:ex,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nx,ariaLevel:N,ariaLive:null,ariaModal:ex,ariaMultiLine:ex,ariaMultiSelectable:ex,ariaOrientation:null,ariaOwns:nx,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:ex,ariaReadOnly:ex,ariaRelevant:null,ariaRequired:ex,ariaRoleDescription:nx,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:ex,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function dx(e,t){return t in e?e[t]:t}function fx(e,t){return dx(e,t.toLowerCase())}var px=lx({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:rx,acceptCharset:nx,accessKey:nx,action:null,allow:null,allowFullScreen:$b,allowPaymentRequest:$b,allowUserMedia:$b,alpha:$b,alt:null,as:null,async:$b,autoCapitalize:null,autoComplete:nx,autoFocus:$b,autoPlay:$b,blocking:nx,capture:null,charSet:null,checked:$b,cite:null,className:nx,closedBy:null,colorSpace:null,cols:N,colSpan:N,command:null,commandFor:null,content:null,contentEditable:ex,controls:$b,controlsList:nx,coords:N|rx,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$b,defer:$b,dir:null,dirName:null,disabled:$b,download:tx,draggable:ex,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$b,formTarget:null,headers:nx,height:N,hidden:tx,high:N,href:null,hrefLang:null,htmlFor:nx,httpEquiv:nx,id:null,imageSizes:null,imageSrcSet:null,inert:$b,inputMode:null,integrity:null,is:null,isMap:$b,itemId:null,itemProp:nx,itemRef:nx,itemScope:$b,itemType:nx,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$b,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,multiple:$b,muted:$b,name:null,nonce:null,noModule:$b,noValidate:$b,onAbort:null,onAfterPrint:null,onAuxCl
62ick: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:$b,optimum:N,pattern:null,ping:nx,placeholder:null,playsInline:$b,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$b,referrerPolicy:null,rel:nx,required:$b,reversed:$b,rows:N,rowSpan:N,sandbox:nx,scope:null,scoped:$b,seamless:$b,selected:$b,shadowRootClonable:$b,shadowRootCustomElementRegistry:$b,shadowRootDelegatesFocus:$b,shadowRootMode:null,shadowRootSerializable:$b,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:ex,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:$b,useMap:null,value:ex,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nx,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$b,declare:$b,event:null,face:null,frame:null,frameBorder:null,hSpace:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:$b,noHref:$b,noShade:$b,noWrap:$b,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:ex,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:$b,disablePictureInPicture:$b,disableRemotePlayback:$b,exportParts:rx,part:nx,prefix:null,property:null,results:N,security:null,unselectable:null},space:`html`,transform:fx}),mx=lx({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`,n
62avDownLeft:`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:ix,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:nx,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:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:$b,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,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:rx,g2:rx,glyphName:rx,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:ix,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,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:N,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,on
vendor: 18,660 bytes, lines 62-63
62Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nx,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ix,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ix,rev:ix,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ix,requiredFeatures:ix,requiredFonts:ix,requiredFormats:ix,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:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:ix,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ix,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ix,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:dx}),hx=lx({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),gx=lx({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:fx}),_x=lx({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),vx={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`},yx=/[A-Z]/g,bx=/-[a-z]/g,xx=/^data[-\w.:]+$/i;function Sx(e,t){let n=Yb(t),r=t,i=Xb;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&xx.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(bx,wx);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!bx.test(e)){let n=e.replace(yx,Cx);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=sx}return new i(r,t)}function Cx(e){return`-`+e.toLowerCase()}function wx(e){return e.charAt(1).toUpperCase()}var Tx=Jb([ux,px,hx,gx,_x],`html`),Ex=Jb([ux,mx,hx,gx,_x],`svg`);function Dx(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ox(e){return e.join(` `).trim()}var kx=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(` 63`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){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 h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),Ax=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(kx());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),jx=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Mx=n(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Ax()),r=jx();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Nx=Fx(`end`),Px=Fx(`start`);function Fx(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Ix(e){let t=Px(e),n=Nx(e);if(t&&n)return{start:t,end:n}}function Lx(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?zx(e.position):`start`in e||`end`in e?zx(e):`line`in e||`column`in e?Rx(e):``}function Rx(e){return Bx(e&&e.line)+`:`+Bx(e&&e.column)}function zx(e){return Rx(e&&e.start)+`-`+Rx(e&&e.end)}function Bx(e){return e&&typeof e==`number`?e:1}var Vx=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(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}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Lx(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&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Vx.prototype.file=``,Vx.prototype.name=``,Vx.prototype.reason=``,Vx.prototype.message=``,Vx.prototype.stack=``,Vx.prototype.column=void 0,Vx.prototype.line=void 0,Vx.prototype.ancestors=void 0,Vx.prototype.cause=void 0,Vx.prototype.fatal=void 0,Vx.prototype.place=void 0,Vx.prototype.ruleId=void 0,Vx.prototype.source=void 0;var Hx=e(Mx(),1),Ux={}.hasOwnProperty,Wx=new Map,Gx=/[A-Z]/g,Kx=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),qx=new Set([`td`,`th`]);function Jx(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=aS(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=iS(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?Ex:Tx,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Yx(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Yx(e,t,n){if(t.type===`element`)return Xx(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Zx(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return $x(e,t,n);if(t.type===`mdxjsEsm`)return Qx(e,t);if(t.type===`root`)return eS(e,t,n);if(t.type===`text`)return tS(e,t)}function Xx(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Ex,e.schema=i),e.ancestors.push(t);let a=dS(e,t.tagName,!1),o=oS(e,t),s=cS(e,t);return Kx.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Gb(e)})),nS(e,o,a,t),rS(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Zx(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}fS(e,t.position)}function Qx(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fS(e,t.position)}function $x(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Ex,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:dS(e,t.name,!0),o=sS(e,t),s=cS(e,t);return nS(e,o,a,t),rS(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function eS(e,t,n){let r={};return rS(r,cS(e,t)),e.create(t,e.Fragment,r,n)}function tS(e,t){return t.value}function nS(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function rS(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function iS(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function aS(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Px(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function oS(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Ux.call(t.properties,i)){let a=lS(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&qx.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function sS(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else fS(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else fS(e,t.position);else a=r.value===null||r.value;n[i]=a}return n}function cS(e,t){let n=[],r=-1,i=e.passKeys?new Map:Wx;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Yx(e,a,o);s!==void 0&&n.push(s)}return n}function lS(e,t,n){let r=Sx(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?zb(n):Ox(n)),r.property===`style`){let t=typeof n==`object`?n:uS(e,String(n));return e.stylePropertyNameCase===`css`&&(t=pS(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?vx[r.property]||r.property:r.attribute,n]}}function uS(e,t){try{return(0,Hx.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Vx("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute`,r}}function dS(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Ub(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Ub(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Ux.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);fS(e)}function fS(e,t){let n=new Vx("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=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-handle-mdx-estrees-without-createevaluater`,n}function pS(e){let t={},n;for(n in e)Ux.call(e,n)&&(t[mS(n)]=e[n]);return t}function mS(e){let t=e.replace(Gx,hS);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function hS(e){return`-`+e.toLowerCase()}var gS={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`]},_S={};function vS(e,t){let n=t||_S;return yS(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function yS(e,t,n){if(xS(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return bS(e.children,t,n)}return Array.isArray(e)?bS(e,t,n):``}function bS(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=yS(e[i],t,n);return r.join(``)}function xS(e){return!!(e&&typeof e==`object`)}var SS=document.createElement(`i`);function CS(e){let t=`&`+e+`;`;SS.innerHTML=t;let n=SS.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function wS(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function TS(e,t){return e.length>0?(wS(e,e.length,0,t),e):t}var ES={}.hasOwnProperty;function DS(e){let t={},n=-1;for(;++n<e.length;)OS(t,e[n]);return t}function OS(e,t){let n;for(n in t){let r=(ES.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){ES.call(r,a)||(r[a]=[]);let e=i[a];kS(r[a],Array.isArray(e)?e:e?[e]:[])}}}function kS(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);wS(e,0,0,r)}function AS(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function jS(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var MS=WS(/[A-Za-z]/),NS=WS(/[\dA-Za-z]/),PS=WS(/[#-'*+\--9=?A-Z^-~]/);function FS(e){return e!==null&&(e<32||e===127)}var IS=WS(/\d/),LS=WS(/[\dA-Fa-f]/),RS=WS(/[!-/:-@[-`{-~]/);function zS(e){return e!==null&&e<-2}function BS(e){return e!==null&&(e<0||e===32)}function VS(e){return e===-2||e===-1||e===32}var HS=WS(/\p{P}|\p{S}/u),US=WS(/\s/);function WS(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function GS(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&NS(e.charCodeAt(n+1))&&NS(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function KS(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return VS(r)?(e.enter(n),s(r)):t(r)}function s(r){return VS(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var qS={tokenize:JS};function JS(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),KS(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return zS(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var YS={tokenize:ZS},XS={tokenize:$ne};function ZS(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return wS(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(XS,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m
vendor: 5,112 bytes, line 63
63(e)}function f(n){return t.containerState={},e.attempt(XS,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return zS(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;wS(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function $ne(e,t,n){return KS(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function QS(e){if(e===null||BS(e)||US(e))return 1;if(HS(e))return 2}function $S(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}var eC={name:`attention`,resolveAll:ere,tokenize:tre};function ere(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};tC(d,-c),tC(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=TS(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=TS(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=TS(l,$S(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=TS(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=TS(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,wS(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function tre(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=QS(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=QS(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function tC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var nre={name:`autolink`,tokenize:rre};function rre(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return MS(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||NS(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||NS(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||FS(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):PS(t)?(e.consume(t),l):n(t)}function u(e){return NS(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||NS(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var nC={partial:!0,tokenize:ire};function ire(e,t,n){return r;function r(t){return VS(t)?KS(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||zS(e)?t(e):n(e)}}var rC={continuation:{tokenize:ore},exit:sre,name:`blockQuote`,tokenize:are};function are(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}
vendor: 23,644 bytes, line 63
63return n(t)}function a(n){return VS(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function ore(e,t,n){let r=this;return i;function i(t){return VS(t)?KS(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(rC,t,n)(r)}}function sre(e){e.exit(`blockQuote`)}var iC={name:`characterEscape`,tokenize:cre};function cre(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return RS(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var aC={name:`characterReference`,tokenize:lre};function lre(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=NS,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=LS,u):(e.enter(`characterReferenceValue`),a=7,o=IS,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===NS&&!CS(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var oC={partial:!0,tokenize:dre},sC={concrete:!0,name:`codeFenced`,tokenize:ure};function ure(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),VS(t)?KS(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||zS(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(oC,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||zS(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):VS(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),KS(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||zS(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||zS(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&VS(t)?KS(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||zS(t)?e.check(oC,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||zS(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),VS(t)?KS(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),VS(t)?KS(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||zS(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function dre(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var cC={name:`codeIndented`,tokenize:pre},fre={partial:!0,tokenize:mre};function pre(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),KS(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):zS(t)?e.attempt(fre,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||zS(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function mre(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):zS(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):KS(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):zS(e)?i(e):n(e)}}var hre={name:`codeText`,previous:_re,resolve:gre,tokenize:vre};function gre(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function _re(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function vre(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):zS(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||zS(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var yre=class{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=t??1/0;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){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&lC(this.left,n),i.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),lC(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),lC(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);lC(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);lC(this.left,t.reverse())}}};function lC(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 uC(e){let t={},n=-1,r,i,a,o,s,c,l,u=new yre(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,bre(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return wS(e,0,1/0,u.slice(0)),!l}function bre(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var xre={resolve:Cre,tokenize:wre},Sre={partial:!0,tokenize:Tre};function Cre(e){return uC(e),e}function wre(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):zS(t)?e.check(Sre,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Tre(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),KS(e,a,`linePrefix`)}function a(i){if(i===null||zS(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function dC(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||FS(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||zS(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||BS(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||FS(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function fC(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):zS(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||zS(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!VS(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function pC(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):zS(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),KS(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||zS(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function mC(e,t){let n;return r;function r(i){return zS(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):VS(i)?KS(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Ere={name:`definition`,tokenize:Ore},Dre={partial:!0,tokenize:kre};function Ore(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return fC.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=jS(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return BS(t)?mC(e,l)(t):l(t)}function l(t){return dC(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Dre,d,d)(t)}function d(t){return VS(t)?KS(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||zS(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function kre(e,t,n){return r;function r(t){return BS(t)?mC(e,i)(t):n(t)}function i(t){return pC(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return VS(t)?KS(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||zS(e)?t(e):n(e)}}var Are={name:`hardBreakEscape`,tokenize:jre};function jre(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return zS(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Mre={name:`headingAtx`,resolve:Nre,tokenize:Pre};function Nre(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},wS(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Pre(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||BS(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||zS(n)?(e.exit(`atxHeading`),t(n)):VS(n)?KS(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||BS(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Fre=`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`.split(`.`),hC=[`pre`,`script`,`style`,`textarea`],Ire={concrete:!0,name:`htmlFlow`,resolveTo:zre,tokenize:Bre},Lre={partial:!0,tokenize:Hre},Rre={partial:!0,tokenize:Vre};function zre(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(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}function Bre(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:de):MS(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):MS(a)?(e.consume(a),i=4,r.interrupt?t:de):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:de):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:re:m):n(i)}function h(t){return MS(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||BS(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&hC.includes(l)?(i=1,r.interrupt?t(s):re(s)):Fre.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):re(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||NS(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:re):n(i)}function v(t){return VS(t)?(e.consume(t),v):te(t)}function y(t){return t===47?(e.consume(t),te):t===58||t===95||MS(t)?(e.consume(t),b):VS(t)?(e.consume(t),y):te(t)}function b(t){return t===45||t===46||t===58||t===95||NS(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):VS(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):VS(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,ee):t===null||zS(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||BS(t)?x(t):(e.consume(t),w)}function ee(e){return e===47||e===62||VS(e)?y(e):n(e)}function te(t){return t===62?(e.consume(t),ne):n(t)}function ne(t){return t===null||zS(t)?re(t):VS(t)?(e.consume(t),ne):n(t)}function re(t){return t===45&&i===2?(e.consume(t),se):t===60&&i===1?(e.consume(t),ce):t===62&&i===4?(e.consume(t),fe):t===63&&i===3?(e.consume(t),de):t===93&&i===5?(e.consume(t),ue):zS(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Lre,pe,ie)(t)):t===null||zS(t)?(e.exit(`htmlFlowData`),ie(t)):(e.consume(t),re)}function ie(t){return e.check(Rre,ae,pe)(t)}function ae(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),oe}function oe(t){return t===null||zS(t)?ie(t):(e.enter(`htmlFlowData`),re(t))}function se(t){return t===45?(e.consume(t),de):re(t)}function ce(t){return t===47?(e.consume(t),o=``,le):re(t)}function le(t){if(t===62){let n=o.toLowerCase();return hC.includes(n)?(e.consume(t),fe):re(t)}return MS(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),le):re(t)}function ue(t){return t===93?(e.consume(t),de):re(t)}function de(t){return t===62?(e.consume(t),fe):t===45&&i===2?(e.consume(t),de):re(t)}function fe(t){return t===null||zS(t)?(e.exit(`htmlFlowData`),pe(t)):(e.consume(t),fe)}function pe(n){return e.exit(`htmlFlow`),t(n)}}function Vre(e,t,n){let r=this;return i;function i(t){return zS(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Hre(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(nC,t,n)}}var Ure={name:`htmlText`,tokenize:Wre};function Wre(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):MS(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):MS(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):zS(t)?(o=d,ce(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?se(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):zS(t)?(o=h,ce(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?se(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?se(t):zS(t)?(o=v,ce(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):zS(t)?(o=y,ce(t)):(e.consume(t),y)}function b(e){return e===62?se(e):y(e)}function x(t){return MS(t)?(e.consume(t),S):n(t)}function S(t){return t===45||NS(t)?(e.consume(t),S):C(t)}function C(t){return zS(t)?(o=C,ce(t)):VS(t)?(e.consume(t),C):se(t)}function w(t){return t===45||NS(t)?(e.consume(t),w):t===47||t===62||BS(t)?ee(t):n(t)}function ee(t){return t===47?(e.consume(t),se):t===58||t===95||MS(t)?(e.consume(t),te):zS(t)?(o=ee,ce(t)):VS(t)?(e.consume(t),ee):se(t)}function te(t){return t===45||t===46||t===58||t===95||NS(t)?(e.consume(t),te):ne(t)}function ne(t){return t===61?(e.consume(t),re):zS(t)?(o=ne,ce(t)):VS(t)?(e.consume(t),ne):ee(t)}function re(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ie):zS(t)?(o=re,ce(t)):VS(t)?(e.consume(t),re):(e.consume(t),ae)}function ie(t){return t===i?(e.consume(t),i=void 0,oe):t===null?n(t):zS(t)?(o=ie,ce(t)):(e.consume(t),ie)}function ae(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||BS(t)?ee(t):(e.consume(t),ae)}function oe(e){return e===47||e===62||BS(e)?ee(e):n(e)}function se(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ce(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),le}function le(t){return VS(t)?KS(e,ue,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ue(t)}function ue(t){return e.enter(`htmlTextData`),o(t)}}var gC={name:`labelEnd`,resolveAll:Jre,resolveTo:Yre,tokenize:Xre},Gre={tokenize:Zre},Kre={tokenize:Qre},qre={tokenize:$re};function Jre(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&wS(e,0,e.length,n),e}function Yre(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=TS(s,e.slice(a+1,a+r+3)),s=TS(s,[[`enter`,u,t]]),s=TS(s,$S(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=TS(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=TS(s,e.slice(o+1)),s=TS(s,[[`exit`,c,t]]),wS(e,a,e.length,s),e}function Xre(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(jS(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Gre,u,o?u:d)(t):t===91?e.attempt(Kre,u,o?l:d
vendor: 13,245 bytes, lines 63-65
63)(t):o?u(t):d(t)}function l(t){return e.attempt(qre,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function Zre(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return BS(t)?mC(e,a)(t):a(t)}function a(t){return t===41?u(t):dC(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return BS(t)?mC(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?pC(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return BS(t)?mC(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Qre(e,t,n){let r=this;return i;function i(t){return fC.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(jS(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function $re(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var eie={name:`labelStartImage`,resolveAll:gC.resolveAll,tokenize:tie};function tie(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var nie={name:`labelStartLink`,resolveAll:gC.resolveAll,tokenize:rie};function rie(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var _C={name:`lineEnding`,tokenize:iie};function iie(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),KS(e,t,`linePrefix`)}}var vC={name:`thematicBreak`,tokenize:aie};function aie(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||zS(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),VS(t)?KS(e,s,`whitespace`)(t):s(t))}}var yC={continuation:{tokenize:lie},exit:die,name:`list`,tokenize:cie},oie={partial:!0,tokenize:fie},sie={partial:!0,tokenize:uie};function cie(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:IS(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(vC,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return IS(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(nC,r.interrupt?n:u,e.attempt(oie,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return VS(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function lie(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(nC,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,KS(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!VS(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(sie,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,KS(e,e.attempt(yC,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function uie(e,t,n){let r=this;return KS(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function die(e){e.exit(this.containerState.type)}function fie(e,t,n){let r=this;return KS(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!VS(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var bC={name:`setextUnderline`,resolveTo:pie,tokenize:mie};function pie(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function mie(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),VS(t)?KS(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||zS(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var hie={tokenize:gie};function gie(e){let t=this,n=e.attempt(nC,r,e.attempt(this.parser.constructs.flowInitial,i,KS(e,e.attempt(this.parser.constructs.flow,i,e.attempt(xre,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var _ie={resolveAll:SC()},vie=xC(`string`),yie=xC(`text`);function xC(e){return{resolveAll:SC(e===`text`?bie:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)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 SC(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function bie(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var xie=t({attentionMarkers:()=>kie,contentInitial:()=>Cie,disable:()=>Aie,document:()=>Sie,flow:()=>Tie,flowInitial:()=>wie,insideSpan:()=>Oie,string:()=>Eie,text:()=>Die}),Sie={42:yC,43:yC,45:yC,48:yC,49:yC,50:yC,51:yC,52:yC,53:yC,54:yC,55:yC,56:yC,57:yC,62:rC},Cie={91:Ere},wie={[-2]:cC,[-1]:cC,32:cC},Tie={35:Mre,42:vC,45:[bC,vC],60:Ire,61:bC,95:vC,96:sC,126:sC},Eie={38:aC,92:iC},Die={[-5]:_C,[-4]:_C,[-3]:_C,33:eie,38:aC,42:eC,60:[nre,Ure],91:nie,92:[Are,iC],93:gC,95:eC,96:hre},Oie={null:[eC,_ie]},kie={null:[42,95]},Aie={null:[]};function jie(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=TS(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=$S(a,l.events,l),l.events):[]}function f(e,t){return Nie(p(e),t)}function p(e){return Mie(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,te()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){zS(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,te()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=ee(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&wS(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function ee(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,te()}}function te(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Mie(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Nie(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=` 64`;break;case-3:o=`\r 65`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Pie(e){let t={constructs:DS([xie,...(e||{}).extensions||[]]),content:n(qS),defined:[],document:n(YS),flow:n(hie),lazy:{},string:n(vie),text:n(yie)};return t;function n(e){return n;function n(n){return jie(t,e,n)}}}function Fie(e){for(;!uC(e););return e}var CC=/[\0\t\n\r]/g;function Iie(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(CC.lastIndex=u,c=CC.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Lie=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Rie(e){return e.replace(Lie,zie)}function zie(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;
vendor: 11,276 bytes, lines 65-67
65return AS(n.slice(t?2:1),t?16:10)}return CS(n)||e}var wC={}.hasOwnProperty;function Bie(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Vie(n)(Fie(Pie(n).document().write(Iie()(e,t,!0))))}function Vie(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Ae),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:a(Ee),blockQuote:a(xe),characterEscape:ee,characterReference:ee,codeFenced:a(Se),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Se,o),codeText:a(Ce,o),codeTextData:ee,data:ee,codeFlowValue:ee,definition:a(we),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Te),hardBreakEscape:a(De),hardBreakTrailing:a(De),htmlFlow:a(Oe,o),htmlFlowData:ee,htmlText:a(Oe,o),htmlTextData:ee,image:a(ke),label:o,link:a(Ae),listItem:a(Me),listItemValue:f,listOrdered:a(je,d),listUnordered:a(je),paragraph:a(Ne),reference:me,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Ee),strong:a(Pe),thematicBreak:a(Ie)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:be,autolinkProtocol:ye,blockQuote:c(),characterEscapeValue:te,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:_e,characterReference:ve,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:te,codeIndented:c(_),codeText:c(oe),codeTextData:te,data:te,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(re),hardBreakTrailing:c(re),htmlFlow:c(ie),htmlFlowData:te,htmlText:c(ae),htmlTextData:te,image:c(ce),label:ue,labelText:le,lineEnding:ne,link:c(se),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:he,resourceDestinationString:de,resourceTitleString:fe,resource:pe,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};EC(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];wC.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||DC).call(a,void 0,e[0])}for(r.position={start:TC(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:TC(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(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:TC(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(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]||DC).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Lx({start:e.start,end:e.end})+`): itâs not open`);n.position.end=TC(e.end)}function u(){return vS(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=jS(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Fe(),n.position={start:TC(e.start),end:void 0},t.push(n)),this.stack.push(n)}function te(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=TC(e.end)}function ne(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=TC(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(ee.call(this,e),te.call(this,e))}function re(){this.data.atHardBreak=!0}function ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function se(){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}function ce(){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}function le(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Rie(t),n.identifier=jS(t).toLowerCase()}function ue(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function de(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function fe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function pe(){this.data.inReference=void 0}function me(){this.data.referenceType=`collapsed`}function he(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=jS(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ge(e){this.data.characterReferenceType=e.type}function _e(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=AS(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=CS(t);let i=this.stack[this.stack.length-1];i.value+=r}function ve(e){let t=this.stack.pop();t.position.end=TC(e.end)}function ye(e){te.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function be(e){te.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function xe(){return{type:`blockquote`,children:[]}}function Se(){return{type:`code`,lang:null,meta:null,value:``}}function Ce(){return{type:`inlineCode`,value:``}}function we(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function Te(){return{type:`emphasis`,children:[]}}function Ee(){return{type:`heading`,depth:0,children:[]}}function De(){return{type:`break`}}function Oe(){return{type:`html`,value:``}}function ke(){return{type:`image`,title:null,url:``,alt:null}}function Ae(){return{type:`link`,title:null,url:``,children:[]}}function je(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Me(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Ne(){return{type:`paragraph`,children:[]}}function Pe(){return{type:`strong`,children:[]}}function Fe(){return{type:`text`,value:``}}function Ie(){return{type:`thematicBreak`}}}function TC(e){return{line:e.line,column:e.column,offset:e.offset}}function EC(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?EC(e,r):Hie(e,r)}}function Hie(e,t){let n;for(n in t)if(wC.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);break}}}function DC(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Lx({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Lx({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Lx({start:t.start,end:t.end})+`) is still open`)}function OC(e){let t=this;t.parser=n;function n(n){return Bie(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Uie(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)}function Wie(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:` 66`}]}function Gie(e,t){let n=t.value?t.value+` 67`:``,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=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Kie(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qie(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
vendor: 4,668 bytes, lines 67-69
67function Jie(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=GS(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Yie(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xie(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function kC(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Zie(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return kC(e,t);let i={src:GS(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Qie(e,t){let n={src:GS(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function $ie(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)}function eae(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return kC(e,t);let i={href:GS(r.url||``)};r.title!==null&&r.title!==void 0&&(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)}function tae(e,t){let n={href:GS(t.url)};t.title!==null&&t.title!==void 0&&(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)}function nae(e,t,n){let r=e.all(t),i=n?rae(n):AC(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:` 68`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:` 69`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function rae(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=AC(n[r])}return t}function AC(e){return e.spread??e.children.length>1}function iae(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&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)}function aae(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oae(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function sae(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cae(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=Px(t.children[1]),o=Nx(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{}
vendor: 4,085 bytes, line 69
69,children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function lae(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function uae(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var jC=9,MC=32;function dae(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(NC(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(NC(t.slice(i),i>0,!1)),a.join(``)}function NC(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===jC||t===MC;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===jC||t===MC;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function fae(e,t){let n={type:`text`,value:dae(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function pae(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var mae={blockquote:Uie,break:Wie,code:Gie,delete:Kie,emphasis:qie,footnoteReference:Jie,heading:Yie,html:Xie,imageReference:Zie,image:Qie,inlineCode:$ie,linkReference:eae,link:tae,listItem:nae,list:iae,paragraph:aae,root:oae,strong:sae,table:cae,tableCell:uae,tableRow:lae,text:fae,thematicBreak:pae,toml:PC,yaml:PC,definition:PC,footnoteDefinition:PC};function PC(){}var FC=typeof self==`object`?self:globalThis,IC=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new FC[e](t)},hae=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof FC[e]==`function`?IC(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(IC(a,o),i)};return r},LC=e=>hae(new Map,e)(0),RC=``,{toString:gae}={},{keys:_ae}=Object,zC=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=gae.call(e).slice(8,-1);switch(n){case`Array`:return[1,RC];case`Object`:return[2,RC];case`Date`:return[3,RC];case`RegExp`:return[4,RC];case`Map`:return[5,RC];case`Set`:return[6,RC];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},BC=([e,t])=>e===0&&(t===`function`||t===`symbol`),vae=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=zC(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of _ae(r))(e||!BC(zC(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,isNaN(r.getTime())?RC:r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);
vendor: 2,798 bytes, lines 69-71
69for(let[n,i]of r)(e||!(BC(zC(n))||BC(zC(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!BC(zC(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},VC=(e,{json:t,lossy:n}={})=>{let r=[];return vae(!(t||n),!!t,new Map,r)(e),r},HC=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?LC(VC(e,t)):structuredClone(e):(e,t)=>LC(VC(e,t));function yae(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 bae(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function xae(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||yae,r=e.options.footnoteBackLabel||bae,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=GS(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...HC(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:` 70`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:` 71`}]}}var UC=(function(e){if(e==null)return Tae;if(typeof e==`function`)return WC(e);if(typeof e==`object`)return Array.isArray(e)?Sae(e):Cae(e);if(typeof e==`string`)return wae(e);throw Error(`Expected function, string, or object as test`)});function Sae(e){let t=[],n=-1;for(;++n<e.length;)t[n]=UC(e[n]);return WC(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Cae(e){let t=e;return WC(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function wae(e){return WC(t);function t(t){return t&&t.type===e}}function WC(e){return t;
vendor: 14,484 bytes, lines 71-75
71function t(t,n,r){return!!(Eae(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Tae(){return!0}function Eae(e){return typeof e==`object`&&!!e&&`type`in e}function Dae(e){return e}var GC=[],KC=`skip`;function qC(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=UC(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+Dae(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=GC,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=Oae(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function Oae(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?GC:[e]}function JC(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),qC(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var YC={}.hasOwnProperty,kae={};function Aae(e,t){let n=t||kae,r=new Map,i=new Map,a={all:s,applyData:Mae,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...mae,...n.handlers},one:o,options:n,patch:jae,wrap:Pae};return JC(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(YC.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=HC(n);return r.children=a.all(e),r}return HC(e)}return(a.options.unknownHandler||Nae)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=XC(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=XC(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function jae(e,t){e.position&&(t.position=Ix(e))}function Mae(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,HC(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function Nae(e,t){let n=t.data||{},r=`value`in t&&!(YC.call(n,`hProperties`)||YC.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)}function Pae(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:` 72`});++r<e.length;)r&&n.push({type:`text`,value:` 73`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:` 74`}),n}function XC(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ZC(e,t){let n=Aae(e,t),r=n.one(e,void 0),i=xae(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:` 75`},i)),a}function QC(e,t){return e&&`run`in e?async function(n,r){let i=ZC(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ZC(n,{file:r,...e||t})}}function $C(e){if(e)throw e}var Fae=n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function ew(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Iae(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Lae(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Lae(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var tw={basename:Rae,dirname:zae,extname:Bae,join:Vae,sep:`/`};function Rae(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);nw(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function zae(e){if(nw(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Bae(e){nw(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Vae(...e){let t=-1,n;for(;++t<e.length;)nw(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Hae(n)}function Hae(e){nw(e);let t=e.codePointAt(0)===47,n=Uae(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Uae(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function nw(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Wae={cwd:Gae};function Gae(){return`/`}function rw(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Kae(e){if(typeof e==`string`)e=new URL(e);else if(!rw(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(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return qae(e)}function qae(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(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var iw=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],aw=class{constructor(e){let t;t=e?rw(e)?{path:e}:typeof e==`string`||lw(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Wae.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<iw.length;){let e=iw[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)iw.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?tw.basename(this.path):void 0}set basename(e){sw(e,`basename`),ow(e,`basename`),this.path=tw.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?tw.dirname(this.path):void 0}set dirname(e){cw(this.basename,`dirname`),this.path=tw.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?tw.extname(this.path):void 0}set extname(e){if(ow(e,`extname`),cw(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=tw.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){rw(e)&&(e=Kae(e)),sw(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?tw.basename(this.path,this.extname):void 0}set stem(e){sw(e,`stem`),ow(e,`stem`),this.path=tw.join(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 Vx(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 this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function ow(e,t){if(e&&e.includes(tw.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+tw.sep+"`")}function sw(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function cw(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function lw(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var uw=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),dw=e(Fae(),1),fw={}.hasOwnProperty,pw=new class e extends uw{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=Iae()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,dw.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(gw(`data`,this.frozen),this.namespace[e]=t,this):fw.call(this.namespace,e)&&this.namespace[e]||void 0:e?(gw(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=yw(e),n=this.parser||this.Parser;return mw(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),mw(`process`,this.parser||this.Parser),hw(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=yw(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);xw(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),mw(`processSync`,this.parser||this.Parser),hw(`processSync`,this.compiler||this.Compiler),this.process(e,r),vw(`processSync`,`process`,t),n;function r(e,r){t=!0,$C(e),n=r}}run(e,t,n){_w(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=yw(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),vw(`runSync`,`run`,n),r;function i(e,t){$C(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=yw(t),r=this.compiler||this.Compiler;return hw(`stringify`,r),_w(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(gw(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(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");o(e.plugins),e.settings&&(r.settings=(0,dw.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}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(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];ew(o)&&ew(r)&&(r=(0,dw.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function mw(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function hw(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function gw(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`.")}
75function _w(e){if(!ew(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function vw(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function yw(e){return bw(e)?e:new aw(e)}function bw(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function xw(e){return typeof e==`string`||Sw(e)}function Sw(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Cw=[],ww={allowDangerousHtml:!0},Jae=/^(https?|ircs?|mailto|xmpp)$/i,Yae=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function Xae(e){let t=Zae(e),n=Qae(e);return $ae(t.runSync(t.parse(n),n),e)}function Zae(e){let t=e.rehypePlugins||Cw,n=e.remarkPlugins||Cw,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ww}:ww;return pw().use(OC).use(n).use(QC,r).use(t)}function Qae(e){let t=e.children||``,n=new aw;return typeof t==`string`?n.value=t:``+t,n}function $ae(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||eoe;for(let e of Yae)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return JC(e,l),Jx(e,{Fragment:O.Fragment,components:i,ignoreInvalidStyle:!0,jsx:O.jsx,jsxs:O.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in gS)if(Object.hasOwn(gS,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=gS[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function eoe(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Jae.test(e.slice(0,t))?e:``}var toe=u(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,outline:`border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-10 rounded-md px-8`,icon:`h-9 w-9`,"icon-sm":`h-8 w-8`}},defaultVariants:{variant:`default`,size:`default`}}),Tw=D.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,O.jsx)(r?Qe:`button`,{className:ct(toe({variant:t,size:n,className:e})),ref:a,...i}));Tw.displayName=`Button`;var Ew={damping:.7,stiffness:.05,mass:1.25},Dw=70,Ow=1e3/60,kw=350,Aw=!1;globalThis.document?.addEventListener(`mousedown`,()=>{Aw=!0}),globalThis.document?.addEventListener(`mouseup`,()=>{Aw=!1}),globalThis.document?.addEventListener(`click`,()=>{Aw=!1});var jw=(e={})=>{let[t,n]=(0,D.useState)(!1),[r,i]=(0,D.useState)(e.initial!==!1),[a,o]=(0,D.useState)(!1),s=(0,D.useRef)(null);s.current=e;let c=(0,D.useCallback)(()=>
75{if(!Aw)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(g.current)||g.current?.contains(t.commonAncestorContainer)},[]),l=(0,D.useCallback)(e=>{d.isAtBottom=e,i(e)},[]),u=(0,D.useCallback)(e=>{d.escapedFromLock=e,n(e)},[]),d=(0,D.useMemo)(()=>{let n;return{escapedFromLock:t,isAtBottom:r,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return g.current?.scrollTop??0},set scrollTop(e){if(g.current){let{scrollBehavior:t}=getComputedStyle(g.current);t!==`auto`&&(g.current.style.scrollBehavior=`auto`),g.current.scrollTop=e,d.ignoreScrollToTop=g.current.scrollTop,t!==`auto`&&(g.current.style.scrollBehavior=t)}},get targetScrollTop(){return!g.current||!_.current?0:g.current.scrollHeight-1-g.current.clientHeight},get calculatedTargetScrollTop(){if(!g.current||!_.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:g.current,contentElement:_.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<=Dw}}},[]),f=(0,D.useCallback)((e={})=>{typeof e==`string`&&(e={animation:e}),e.preserveScrollPosition||l(!0);let t=Date.now()+(Number(e.wait)||0),n=Pw(s.current,e.animation),{ignoreEscapes:r=!1}=e,i,a=d.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{i=Date.now()}):i=t+(e.duration??0);let o=async()=>{let e=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;let{scrollTop:l}=d,u=performance.now(),p=(u-(d.lastTick??u))/Ow;if(d.animation||={behavior:n,promise:e,ignoreEscapes:r},d.animation.behavior===n&&(d.lastTick=u),c()||t>Date.now())return o();if(l<Math.min(a,d.calculatedTargetScrollTop)){if(d.animation?.behavior===n){if(n===`instant`)return d.scrollTop=d.calculatedTargetScrollTop,o();d.velocity=(n.damping*d.velocity+n.stiffness*d.scrollDifference)/n.mass,d.accumulated+=d.velocity*p,d.scrollTop+=d.accumulated,d.scrollTop!==l&&(d.accumulated=0)}return o()}return i>Date.now()?(a=d.calculatedTargetScrollTop,o()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?f({animation:Pw(s.current,s.current.resize),ignoreEscapes:r,duration:Math.max(0,i-Date.now())||void 0}):d.isAtBottom)});return e.then(e=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),e))};return e.wait!==!0&&(d.animation=void 0),d.animation?.behavior===n?d.animation.promise:o()},[l,c,d]),p=(0,D.useCallback)(()=>{u(!0),l(!1)},[u,l]),m=(0,D.useCallback)(({target:e})=>{if(e!==g.current)return;let{scrollTop:t,ignoreScrollToTop:n}=d,{lastScrollTop:r=t}=d;d.lastScrollTop=t,d.ignoreScrollToTop=void 0,n&&n>t&&(r=n),o(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||t===n)return;if(c()){u(!0),l(!1);return}let e=t>r,i=t<r;if(d.animation?.ignoreEscapes){d.scrollTop=r;return}i&&(u(!0),l(!1)),e&&u(!1),!d.escapedFromLock&&d.isNearBottom&&l(!0)},1)},[u,l,c,d]),h=(0,D.useCallback)(({target:e,deltaY:t})=>{let n=e;for(;![`scroll`,`auto`].includes(getComputedStyle(n).overflow);){if(!n.parentElement)return;n=n.parentElement}n===g.current&&t<0&&g.current.scrollHeight>g.current.clientHeight&&!d.animation?.ignoreEscapes&&(u(!0),l(!1))},[u,l,d]),g=Mw(e=>{g.current?.removeEventListener(`scroll`,m),g.current?.removeEventListener(`wheel`,h),e?.addEventListener(`scroll`,m,{passive:!0}),e?.addEventListener(`wheel`,h,{passive:!0})},[]),_=Mw(e=>{if(d.resizeObserver?.disconnect(),d.resizeObserver=void 0,!e)return;let t;d.resizeObserver=new ResizeObserver(([e])=>{let{height:n}=e.contentRect,r=n-(t??n);if(d.resizeDifference=r,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),o(d.isNearBottom),r>=0){let e=Pw(s.current,t?s.current.resize:s.current.initial);f({animation:e,wait:!0,preserveScrollPosition:!0,duration:e===`instant`?void 0:kw})}else d.isNearBottom&&(u(!1),l(!0));t=n,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===r&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(e)},[]);return{contentRef:_,scrollRef:g,scrollToBottom:f,stopScroll:p,isAtBottom:r||a,isNearBottom:a,escapedFromLock:t,state:d}};function Mw(e,t){let n=(0,D.useCallback)(t=>(n.current=t,e(t)),t);return n}var Nw=new Map;function Pw(...e){let t={...Ew},n=!1;for(let r of e){if(r===`instant`){n=!0;continue}typeof r==`object`&&(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 Nw.has(r)||Nw.set(r,Object.freeze(t)),n?`instant`:Nw.get(r)}var Fw=(0,D.createContext)(null),Iw=typeof window<`u`?D.useLayoutEffect:D.useEffect;function Lw({instance:e,children:t,resize:n,initial:r,mass:i,damping:a,stiffness:o,targetScrollTop:s,contextRef:c,...l}){let u=(0,D.useRef)(null),d=jw({mass:i,damping:a,stiffness:o,resize:n,initial:r,targetScrollTop:D.useCallback((e,t)=>(y?.targetScrollTop??s)?.(e,t)??e,[s])}),{scrollRef:f,contentRef:p,scrollToBottom:m,stopScroll:h,isAtBottom:g,escapedFromLock:_,state:v}=e??d,y=(0,D.useMemo)(()=>({scrollToBottom:m,stopScroll:h,scrollRef:f,isAtBottom:g,escapedFromLock:_,contentRef:p,state:v,get targetScrollTop(){return u.current},set targetScrollTop(e){u.current=e}}),[m,g,p,f,h,_,v]);return(0,D.useImperativeHandle)(c,()=>y,[y]),Iw(()=>{f.current&&getComputedStyle(f.current).overflow===`visible`&&(f.current.style.overflow=`auto`)},[]),D.createElement(Fw.Provider,{value:y},D.createElement(`div`,{...l},typeof t==`function`?t(y):t))}(function(e){function t({children:e,scrollClassName:t,...n}){let r=Rw();return D.createElement(`div`,{ref:r.scrollRef,style:{height:`100%`,width:`100%`,scrollbarGutter:`stable both-edges`},className:t},D.createElement(`div`,{...n,ref:r.contentRef},typeof e==`function`?e(r):e))}e.Content=t})(Lw||={});function Rw(){let e=(0,D.useContext)(Fw);if(!e)throw Error(`use-stick-to-bottom component context must be used within a StickToBottom component`);return e}var zw=({className:e,...t})=>(0,O.jsx)(Lw,{className:ct(`relative flex-1 overflow-y-hidden`,e),initial:`smooth`,resize:`smooth`,role:`log`,...t}),Bw=({className:e,...t})=>(0,O.jsx)(Lw.Content,{className:ct(`flex flex-col gap-8 p-4`,e),...t}),Vw=({className:e,...t})=>{let{isAtBottom:n,scrollToBottom:r}=Rw(),i=(0,D.useCallback)(()=>{r()},[r]);return!n&&(0,O.jsx)(Tw,{className:ct(`absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full dark:bg-background dark:hover:bg-muted`,e),onClick:i,size:`icon`,type:`button`,variant:`outline`,...t,children:(0,O.jsx)(lf,{className:`size-4`})})},Hw=D.useId||(()=>void 0),Uw=0;function Ww(e){let[t,n]=D.useState(Hw());return rt(()=>{e||n(e=>e??String(Uw++))},[e]),e||(t?`radix-${t}`:``)}var Gw={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},Kw={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:`CDATA[`,characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:`content`,contentTypeDocument:`document`,contentTypeFlow:`flow`,contentTypeString:`string`,contentTypeText:`text`,hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},qw={data:`data`,whitespace:`whitespace`,lineEnding:`lineEnding`,lineEndingBlank:`lineEndingBlank`,linePrefix:`linePrefix`,lineSuffix:`lineSuffix`,atxHeading:`atxHeading`,atxHeadingSequence:`atxHeadingSequence`,atxHeadingText:`atxHeadingText`,autolink:`autolink`,autolinkEmail:`autolinkEmail`,autolinkMarker:`autolinkMarker`,autolinkProtocol:`autolinkProtocol`,characterEscape:`characterEscape`,characterEscapeValue:`characterEscapeValue`,characterReference:`characterReference`,characterReferenceMarker:`characterReferenceMarker`,characterReferenceMarkerNumeric:`characterReferenceMarkerNumeric`,characterReferenceMarkerHexadecimal:`characterReferenceMarkerHexadecimal`,characterReferenceValue:`characterReferenceValue`,codeFenced:`codeFenced`,codeFencedFence:`codeFencedFence`,codeFencedFenceSequence:`codeFencedFenceSequence`,codeFencedFenceInfo:`codeFencedFenceInfo`,codeFencedFenceMeta:`codeFencedFenceMeta`,codeFlowValue:`codeFlowValue`,codeIndented:`codeIndented`,codeText:`codeText`,codeTextData:`codeTextData`,codeTextPadding:`codeTextPadding`,codeTextSequence:`codeTextSequence`,content:`content`,definition:`definition`,definitionDestination:`definitionDestination`,definitionDestinationLiteral:`definitionDestinationLiteral`,definitionDestinationLiteralMarker:`definitionDestinationLiteralMarker`,definitionDestinationRaw:`definitionDestinationRaw`,definitionDestinationString:`definitionDestinationString`,definitionLabel:`definitionLabel`,definitionLabelMarker:`definitionLabelMarker`,definitionLabelString:`definitionLabelString`,definitionMarker:`definitionMarker`,definitionTitle:`definitionTitle`,definitionTitleMarker:`definitionTitleMarker`,definitionTitleString:`definitionTitleString`,emphasis:`emphasis`,emphasisSequence:`emphasisSequence`,emphasisText:`emphasisText`,escapeMarker:`escapeMarker`,hardBreakEscape:`hardBreakEscape`,hardBreakTrailing:`hardBreakTrailing`,htmlFlow:`htmlFlow`,htmlFlowData:`htmlFlowData`,htmlText:`htmlText`,htmlTextData:`htmlTextData`,image:`image`,label:`label`,labelText:`labelText`,labelLink:`labelLink`,labelImage:`labelImage`,labelMarker:`labelMarker`,labelImageMarker:`labelImageMarker`,labelEnd:`labelEnd`,link:`link`,paragraph:`paragraph`,reference:`reference`,referenceMarker:`referenceMarker`,referenceString:`referenceString`,resource:`resource`,resourceDestination:`resourceDestination`,resourceDestinationLiteral:`resourceDestinationLiteral`,resourceDestinationLiteralMarker:`resourceDestinationLiteralMarker`,resourceDestinationRaw:`resourceDestinationRaw`,resourceDestinationString:`resourceDestinationString`,resourceMarker:`resourceMarker`,resourceTitle:`resourceTitle`,resourceTitleMarker:`resourceTitleMarker`,resourceTitleString:`resourceTitleString`,setextHeading:`setextHeading`,setextHeadingText:`setextHeadingText`,setextHeadingLine:`setextHeadingLine`,setextHeadingLineSequence:`setextHeadingLineSequence`,strong:`strong`,strongSequence:`strongSequence`,strongText:`strongText`,thematicBreak:`thematicBreak`,thematicBreakSequence:`thematicBreakSequence`,blockQuote:`blockQuote`,blockQuotePrefix:`blockQuotePrefix`,blockQuoteMarker:`blockQuoteMarker`,blockQuotePrefixWhitespace:`blockQuotePrefixWhitespace`,listOrdered:`listOrdered`,listUnordered:`listUnordered`,listItemIndent:`listItemIndent`,listItemMarker:`listItemMarker`,listItemPrefix:`listItemPrefix`,listItemPrefixWhitespace:`listItemPrefixWhitespace`,listItemValue:`listItemValue`,chunkDocument:`chunkDocument`,chunkContent:`chunkContent`,chunkFlow:`chunkFlow`,chunkText:`chunkText`,chunkString:`chunkString`},Jw=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,23
vendor: 6,087 bytes, line 75
750,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],Yw=[12288,12288,65281,65376,65504,65510],Xw=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],Zw=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Qw=[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],$w=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=i*2;if(t<e[a])r=i-1;else if(t>e[a+1])n=i+1;else return!0}return!1},eT=19968,[tT,nT]=rT(Qw);function rT(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(eT>=i&&eT<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}var iT=e=>e<161||e>1114109?!1:$w(Jw,e),aT=e=>e<12288||e>65510?!1:$w(Yw,e),oT=e=>e<8361||e>65518?!1:$w(Xw,e),sT=e=>e<32||e>10630?!1:$w(Zw,e),cT=e=>e>=tT&&e<=nT?!0:e<4352||e>262141?!1:$w(Qw,e);function lT(e){return iT(e)?`ambiguous`:aT(e)?`fullwidth`:oT(e)?`halfwidth`:sT(e)?`narrow`:cT(e)?`wide`:`neutral`}function uT(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}function noe(e){return uT(e),lT(e)}function roe(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function ioe(e){if(!e||e<4352)return!1;switch(noe(e)){case`fullwidth`:case`halfwidth`:return!0;case`wide`:return!roe(e);case`narrow`:return!1;case`ambiguous`:return 917760<=e&&e<=917999&&null;case`neutral`:return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}function aoe(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function ooe(e){return e!==null&&e>=65024&&e<=65038}var soe=dT(/\p{P}|\p{S}/u),coe=dT(/\s/);function dT(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCodePoint(t))}}function fT(e){return!!(e&Kw.characterGroupWhitespace)}function pT(e){return(e&vT.cjkPunctuation)===Kw.characterGroupPunctuation}function mT(e){return!!(e&vT.cjk)}function loe(e){return e===vT.ivs}function hT(e){return!!(e&vT.cjkOrIvs)}function gT(e){return e===vT.nonEmojiGeneralUseVS}function _T(e){return!!(e&vT.spaceOrPunctuation)}var vT;(function(e){e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(vT||={});function yT(e){if(e===Gw.eof||BS(e)||coe(e))return Kw.characterGroupWhitespace;let t=0;if(e>=4352){if(ooe(e))return vT.nonEmojiGeneralUseVS;switch(ioe(e)){case null:return vT.ivs;case!0:t|=vT.cjk;break}}return soe(e)&&(t|=Kw.characterGroupPunctuation),t}function bT(e,t,n){if(!gT(e))return e;let r=t(),i=yT(r);return!r||fT(i)?e:aoe(r,n)?vT.cjkPunctuation:uoe(i)}function uoe(e){return e&~vT.ivs}function xT(e){return!!(e&&e>=55296&&e<=56319)}function ST(e){return!!(e&&e>=56320&&e<=57343)}function CT(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}function doe(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}}
75),o=a.charCodeAt(a.length-1);if(Number.isNaN(o))return null;if(a.length<2||o<56320||57343<o)return o;let s=a.codePointAt(0);return s&&s>=65536?s:o}var wT=class{cachedValue=void 0;constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n}value(){return this.cachedValue===void 0&&(this.cachedValue=doe(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function TT(e,t,n){let r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}var ET={name:`attention`,resolveAll:DT,tokenize:OT};function DT(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};kT(d,-c),kT(f,c),o={type:c>1?qw.strongSequence:qw.emphasisSequence,start:d,end:{...e[r][1].end}},s={type:c>1?qw.strongSequence:qw.emphasisSequence,start:{...e[n][1].start},end:f},a={type:c>1?qw.strongText:qw.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?qw.strong:qw.emphasis,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=TS(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=TS(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),t.parser.constructs.insideSpan.null,l=TS(l,$S(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=TS(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=TS(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,wS(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function OT(e,t){let n=this.parser.constructs.attentionMarkers.null,{now:r,sliceSerialize:i,previous:a}=this,o=ST(a)?CT(a,r(),i):a,s=yT(o),c=new wT(o,r(),i),l=bT(s,c.value.bind(c),o),u;return d;function d(t){return t===Gw.asterisk||Gw.underscore,u=t,e.enter(`attentionSequence`),f(t)}function f(a){if(a===u)return e.consume(a),f;let s=e.exit(`attentionSequence`),c=yT(xT(a)?TT(a,r(),i):a),d=pT(l),p=d||fT(l),m=pT(c),h=m||fT(c),g=hT(l),_=!h||m&&(p||g)||n.includes(a),v=!p||d&&(h||mT(c))||n.includes(o);return s._open=!!(u===Gw.asterisk?_:_&&(_T(l)||!v)),s._close=!!(u===Gw.asterisk?v:v&&(_T(c)||!_)),t(a)}}function kT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function AT(){return{text:{[Gw.asterisk]:ET,[Gw.underscore]:ET},insideSpan:{null:[ET]}}}function jT(){let e=this.data();(e.micromarkExtensions||=[]).push(AT())}var MT=`;`.codePointAt(0)??Gw.eof,NT=`&`.codePointAt(0)??Gw.eof;function PT(){return{handlers:{emphasis:FT,strong:IT,text:BT}}}FT.peek=LT,IT.peek=RT;function FT(e,t,n,r){return zT(e,t,n,r,LT(e,t,n),1)}function IT(e,t,n,r){return zT(e,t,n,r,RT(e,t,n),2)}function LT(e,t,n){return n.options.emphasis||`*`}function RT(e,t,n){return n.options.strong||`*`}function zT(e,t,n,r,i,a){let o=i.repeat(a),s=n.enter(a===1?`emphasis`:`strong`),c=n.createTracker(r),l=c.move(o),u=c.move(n.containerPhrasing(e,{after:i,before:l,...c.current()})),d=JT(e,t,n,r.before),f=YT(e,t,n,r.after),p=VT(d,sE(u),i,`open`);p.inside&&u&&(u=iE(u));let m=VT({current:cE(u),previous:oE(u)},f,i,`close`);m.inside&&u&&(u=aE(u));let h=c.move(o);s();let g=m.outside&&eE(t,n);return n.attentionEncodeSurroundingInfo={after:m.outside&&!g,before:p.outside},tE(n).cjkFriendlyEncodeAfterSupplementaryText=g,l+u+h}function BT(e,t,n,r){let i=tE(n);if(!i.cjkFriendlyEncodeAfterSupplementaryText)return n.safe(e.value,r);i.cjkFriendlyEncodeAfterSupplementaryText=!1;let[a=``]=[...e.value],o=e.value.slice(a.length);return`${rE(a.codePointAt(0)??Gw.eof)}${n.safe(o,{...r,before:`;`})}`}function VT(e,t,n,r){let i=qT(e),a=yT(t);if(!hT(i)&&!hT(a))return r===`open`?HT(i,a,n):HT(a,i,n);let o={inside:!1,outside:!1},s={inside:!0,outside:!1},c={inside:!1,outside:!0},l={inside:!0,outside:!0};for(let i of[o,s,c,l]){let a=r===`open`?i.outside?lE:e:i.inside?lE:e,o=r===`open`?i.inside?uE:t:i.outside?uE:t;if(r===`open`?UT(n,a,o):WT(n,a,o))return i}return l}function HT(e,t,n){return KT(e)?KT(t)?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:fT(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:fT(e)?KT(t)?{inside:!1,outside:!1}:fT(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:fT(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function UT(e,t,n){let r=qT(t),{close:i,open:a}=GT(r,yT(n));return e===`_`?a&&(_T(r)||!i):a}function WT(e,t,n){let r=yT(n),{close:i,open:a}=GT(qT(t),r);return e===`_`?i&&(_T(r)||!a):i}function GT(e,t){let n=pT(e),r=n||fT(e),i=pT(t),a=i||fT(t);return{open:!a||i&&(r||hT(e)),close:!r||n&&(a||mT(t))}}function KT(e){return!fT(e)&&!pT(e)}function qT(e){let t=yT(e.current);return e.current===null||!gT(t)?t:bT(t,()=>e.previous,e.current)}function JT(e,t,n,r){let i=cE(r),a=oE(r);if(XT(i)||QT(i,a)){let r=$T(e,t,n,-1);r&&(i=cE(r),a=oE(r))}return{current:i,previous:a}}function YT(e,t,n,r){let i=sE(r);if(!ZT(i))return i;let a=$T(e,t,n,1);return a?sE(a):i}function XT(e){return e!==null&&56320<=e&&e<=57343}function ZT(e){return e!==null&&55296<=e&&e<=56319}function QT(e,t){return gT(yT(e))&&(t===null||t===Gw.eof)}function $T(e,t,n,r){if(!t)return;let i=n.indexStack.at(-1),a=t.children,o=typeof i==`number`?i:a.indexOf(e);if(o<0)return;let s=a[o+r];return nE(s)||void 0}function eE(e,t){if(!e)return!1;let n=t.indexStack.at(-1);if(typeof n!=`number`)return!1;let r=e.children[n+1];return r?.type===`text`&&(sE(r.value)??0)>65535}function tE(e){return e}function nE(e){return!e||typeof e!=`object`?``:`value`in e&&typeof e.value==`string`?e.value:`alt`in e&&typeof e.alt==`string`?e.alt:`children`in e&&Array.isArray(e.children)?e.children.map(nE).join(``):``}function rE(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function iE(e){let[t=``]=[...e];return rE(t.codePointAt(0)??Gw.eof)+e.slice(t.length)}function aE(e){let t=[...e],n=t.pop();return`${t.join(``)}${rE(n?.codePointAt(0)??Gw.eof)}`}function oE(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??Gw.eof}function sE(e){return e.codePointAt(0)??Gw.eof}function cE(e){return[...e].at(-1)?.codePointAt(0)??Gw.eof}var lE={current:MT,previous:Gw.eof},uE=NT;function dE(){let e=this.data();(e.toMarkdownExtensions||=[]).push(PT())}function fE(){jT.call(this),dE.call(this)}var pE=fE;function mE(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{[Gw.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[Gw.tilde]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&wS(o,o.length,0,$S(s,e.slice(r+1,n),t)),wS(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),wS(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=qw.data);return e}function i(e,n,r){let{now:i,sliceSerialize:a,previous:o}=this,s=ST(o)?CT(o,i(),a):o,c=yT(s),l=new wT(s,i(),a),u=bT(c,l.value.bind(l),s),d=this.events,f=0;return p;function p(t){return Gw.tilde,s===Gw.tilde&&d[d.length-1][1].type!==qw.characterEscape?r(t):(e.enter(`strikethroughSequenceTemporary`),m(t))}function m(o){let c=yT(s);if(o===Gw.tilde)return f>1?r(o):(e.consume(o),f++,m);if(f<2&&!t)return r(o);let l=e.exit(`strikethroughSequenceTemporary`),d=yT(xT(o)?TT(o,i(),a):o),p=pT(u)||fT(u),h=pT(d)||fT(d),g=mT(u)||loe(c);return l._open=!h||d===Kw.attentionSideAfter&&(p||g),l._close=!p||c===Kw.attentionSideAfter&&(h||mT(d)),n(o)}}}function hE(e){let t=this.data();(t.micromarkExtensions||=[]).push(mE(e))}var gE=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`],_E=`;`.codePointAt(0)??Gw.eof,vE=`&`.codePointAt(0)??Gw.eof;function yE(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:gE}],handlers:{delete:bE,text:xE}}}bE.peek=SE;function bE(e,t,n,r){let i=n.enter(`strikethrough`),a=n.createTracker(r),o=a.move(`~~`),s=a.move(n.containerPhrasing(e,{after:`~`,before:o,...a.current()})),c=AE(e,t,n,r.before),l=jE(e,t,n,r.after),u=CE(c,UE(s),`open`);u.inside&&s&&(s=BE(s));let d=CE({current:WE(s),previous:HE(s)},l,`close`);d.inside&&s&&(s=VE(s));let f=a.move(`~~`);i();let p=d.outside&&IE(t,n);return n.attentionEncodeSurroundingInfo={after:d.outside&&!p,before:u.outside},LE(n).cjkFriendlyEncodeAfterSupplementaryText=p,o+s+f}function xE(e,t,n,r){let i=LE(n);if(!i.cjkFriendlyEncodeAfterSupplementaryText)return n.safe(e.value,r);i.cjkFriendlyEncodeAfterSupplementaryText=!1;let[a=``]=[...e.value],o=e.value.slice(a.length);return`${zE(a.codePointAt(0)??Gw.eof)}${n.safe(o,{...r,before:`;`})}`}function SE(){return`~`}function CE(e,t,n){let r=kE(e),i=yT(t);if(!hT(r)&&!hT(i))return n===`open`?wE(r,i):wE(i,r);let a={inside:!1,outside:!1},o={inside:!0,outside:!1},s={inside:!1,outside:!0},c={inside:!0,outside:!0};for(let r of[a,o,s,c]){let i=n===`open`?r.outside?GE:e:r.inside?GE:e,a=n===`open`?r.inside?KE:t:r.outside?KE:t;if(n===`open`?TE(i,a):EE(i,a))return r}return c}function wE(e,t){return OE(e)?OE(t)?{inside:!1,outside:!1}:fT(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:fT(e)?OE(t)?{inside:!1,outside:!1}:fT(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:fT(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function TE(e,t){let{open:n}=DE(kE(e),yT(t));return n}function EE(e,t){let n=yT(t),{close:r}=DE(kE(e),n);return r}function DE(e,t){let n=pT(e),r=n||fT(e),i=pT(t),a=i||fT(t);return{open:!a||i&&(r||hT(e)),close:!r||n&&(a||mT(t))}}function OE(e){return!fT(e)&&!pT(e)}function kE(e){let t=yT(e.current);return e.current===null||!gT(t)?t:bT(t,()=>e.previous,e.current)}function AE(e,t,n,r){let i=WE(r),a=HE(r);if(ME(i)||PE(i,a)){let r=FE(e,t,n,-1);r&&(i=WE(r),a=HE(r))}return{current:i,previous:a}}function jE(e,t,n,r){let i=UE(r);if(!NE(i))return i;let a=FE(e,t,n,1);return a?UE(a):i}function ME(e){return e!==null&&56320<=e&&e<=57343}function NE(e){return e!==null&&55296<=e&&e<=56319}function PE(e,t){return gT(yT(e))&&(t===null||t===Gw.eof)}function FE(e,t,n,r){if(!t)return;let i=n.indexStack.at(-1),a=t.children,o=typeof i==`number`?i:a.indexOf(e);if(o<0)return;let s=a[o+r];return RE(s)||void 0}function IE(e,t){if(!e)return!1;let n=t.indexStack.at(-1);if(typeof n!=`number`)return!1;let r=e.children[n+1];return r?.type===`text`&&(UE(r.value)??0)>65535}function LE(e){return e}function RE(e){return!e||typeof e!=`object`?``:`value`in e&&typeof e.value==`string`?e.value:`alt`in e&&typeof e.alt==`string`?e.alt:`children`in e&&Array.isArray(e.children)?e.children.map(RE).join(``):``}function zE(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function BE(e){let[t=``]=[...e];return zE(t.codePointAt(0)??Gw.eof)+e.slice(t.length)}function VE(e){let t=[...e],n=t.pop();return`${t.join(``)}${zE(n?.codePointAt(0)??Gw.eof)}`}function HE(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??Gw.eof}function UE(e){return e.codePointAt(0)??Gw.eof}function WE(e){return[...e].at(-1)?.codePointAt(0)??Gw.eof}var GE={current:_E,previous:Gw.eof},KE=vE;function qE(){let e=this.data();(e.toMarkdownExtensions||=[]).push(yE())}function JE(e){hE.call(this,e),qE.call(this)}var YE=JE,XE=new Set([`ã`,`ï¼`,`ï¼`,`ã`,`ï¼`,`ï¼`,`ï¼`,`ï¼`,`ï¼`,`ï¼`,`ã`,`ã`,`ã`,`ã`,`ã`,`ã`,`ã`,`ã`,`ã`,`ã`]),ZE=/^(https?:\/\/|mailto:|www\.)/i,QE=e=>{if(e.children.length!==1)return!1;let t=e.children[0];return t.type===`text`&&t.value===e.url},$E=e=>{let t=0;for(let n of e){if(XE.has(n))return t;t+=n.length}return null},eD=(e,t)=>({...t,url:e,children:[{type:`text`,value:e}]}),tD=e=>({type:`text`,value:e}),nD=()=>e=>{JC(e,`link`,(e,t,n)=>{if(!n||typeof t!=`number`||!QE(e)||!ZE.test(e.url))return;let r=$E(e.url);if(r===null||r===0)return;let i=e.url.slice(0,r),a=e.url.slice(r),o=eD(i,e),s=tD(a);return n.children.splice(t,1,o,s),t+1})};function rD(){let e=[pE],t=[nD,YE];return{name:`cjk`,type:`cjk`,remarkPluginsBefore:e,remarkPluginsAfter:t,remarkPlugins:[...e,...t]}}
vendor: 4,302 bytes, line 75
75var iD=rD(),aD=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function oD(e){return sD(e)}function sD(e){return Array.isArray(e)?cD(e):e instanceof RegExp?e:typeof e==`object`?lD(e):e}function cD(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=sD(e[n]);return t}function lD(e){let t={};for(let n in e)t[n]=sD(e[n]);return t}function uD(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function dD(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?dD(e.substring(0,e.length-1)):e.substr(~t+1)}var fD=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,pD=class{static hasCaptures(e){return e===null?!1:(fD.lastIndex=0,fD.test(e))}static replaceCaptures(e,t,n){return e.replace(fD,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function mD(e,t){return e<t?-1:+(e>t)}function hD(e,t){if(e===null&&t===null)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++){let n=mD(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function gD(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 _D(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var vD=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}},yD=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(wD(e),t)}static createFromParsedTheme(e,t){return DD(e,t)}_cachedMatchRoot=new vD(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>xD(e.parent,t.parentScopes));return n?new CD(n.fontStyle,n.foreground,n.background):null}},bD=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||this.parent!==null&&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}};function xD(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!SD(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function SD(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var CD=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function wD(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=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&gD(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&gD(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new TD(l,u,e,o,s,c)}}return n}var TD=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}},ED=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(ED||{});function DD(e,t){e.sort((e,t)=>
vendor: 4,358 bytes, line 75
75{let n=mD(e.scope,t.scope);return n!==0||(n=hD(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new OD(t),o=new CD(n,a.getId(r),a.getId(i)),s=new foe(new AD(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new yD(a,o,s)}var OD=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(e===null)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)}},kD=Object.freeze([]),AD=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||kD,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,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},foe=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(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),AD.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(hD(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new AD(e,t,n,r,i))}},jD=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),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=moe(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function poe(e){return e}function moe(e){return e}function MD(e,t){let n=[],r=hoe(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;
vendor: 5,687 bytes, line 75
75i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(ND(i)){let e=[];do e.push(i),i=r.next();while(ND(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function ND(e){return!!e&&!!e.match(/[\w\.:]+/)}function hoe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function PD(e){typeof e.dispose==`function`&&e.dispose()}var FD=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},goe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},_oe=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))}},voe=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new FD(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new _oe;for(let n of e)yoe(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof FD){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 yoe(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 FD?LD({baseGrammar:a,selfGrammar:i},r):ID(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new FD(e))}function ID(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];RD([r],t,n)}}function LD(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&RD(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&RD(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function RD(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?uD({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&RD(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=zD(i);switch(a.kind){case 0:LD({...t,selfGrammar:t.baseGrammar},n);break;case 1:LD(t,n);break;case 2:ID(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?ID(a.ruleName,i,n):LD(i,n)}else a.kind===4?n.add(new goe(a.scopeName,a.ruleName)):n.add(new FD(a.scopeName));break}}}var boe=class{kind=0},xoe=class{kind=1},Soe=class{constructor(e){this.ruleName=e}kind=2},Coe=class{constructor(e){this.scopeName=e}kind=3},woe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function zD(e){if(e===`$base`)return new boe;if(e===`$self`)return new xoe;let t=e.indexOf(`#`);return t===-1?new Coe(e):t===0?new Soe(e.substring(1)):new woe(e.substring(0,t),e.substring(t+1))}var Toe=/\\(\d+)/,BD=/\\(\d+)/g,Eoe=-1,VD=-2;function HD(e){return e}function UD(e){return e}var WD=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=pD.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=pD.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${dD(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:pD.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:pD.replaceCaptures(this._contentName,e,t)}},Doe=class extends WD{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!`)}},Ooe=class extends WD{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new YD(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),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 XD,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},GD=class extends WD{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(),null)}
vendor: 8,321 bytes, line 75
75collectPatterns(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 XD,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},KD=class extends WD{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new YD(i,this.id),this.beginCaptures=a,this._end=new YD(o||`ï¿¿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),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){this._cachedCompiledPatterns=new XD;for(let t of 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}},qD=class extends WD{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new YD(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new YD(o,VD),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),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){this._cachedCompiledPatterns=new XD;for(let t of 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 XD,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`ï¿¿`),this._cachedCompiledWhilePatterns}},JD=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Doe(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Ooe(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=uD({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new GD(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new qD(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 KD(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(e===`$vscodeTextmateLocation`)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(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=zD(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof GD||e instanceof KD||e instanceof qD)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},YD=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?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,typeof this.source==`string`?this.hasBackReferences=Toe.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(typeof this.source!=`string`)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 BD.lastIndex=0,this.source.replace(BD,(e,t)=>_D(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`ï¿¿`,t[i+1]=`ï¿¿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`ï¿¿`,t[i+1]=`G`,n[i+1]=`ï¿¿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},XD=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(),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)}
75push(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 ZD(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):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):this.compile(e)}_resolveAnchors(e,t,n){return new ZD(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ZD=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&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(` 76`)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},QD=class{constructor(e,t){this.languageId=e,this.tokenType=t}},koe=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new QD(e,8),this._embeddedLanguagesMatcher=new Aoe(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new QD(0,0);_getBasicScopeAttributes=new vD(e=>new QD(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/},Aoe=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>_D(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])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var $D=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function eO(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=joe(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new $D(i,!0);f()}return new $D(i,!1);function f(){let o=Moe(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===Eoe){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),nO(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof KD){let r=o;nO(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof qD){let r=o;nO(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithRes
vendor: 16,371 bytes, lines 76-77
76olvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(nO(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function joe(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof qD&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=Foe(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==VD){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),nO(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function Moe(e,t,n,r,i,a){let o=Noe(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=Poe(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function Noe(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=tO(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Poe(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=tO(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function tO(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function Foe(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function nO(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));eO(e,p,n&&d.start===0,d.start,f,i,!1,0),PD(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new Ioe(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Ioe=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Loe(e,t,n,r,i,a,o,s){return new zoe(e,t,n,r,i,a,o,s)}function rO(e,t,n,r,i){let a=MD(t,iO),o=JD.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function iO(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(Roe(t[r],e))return n=r+1,!0;return!1})}function Roe(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]===`.`}var zoe=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new koe(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=aO(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=MD(e,iO);for(let n of t)this._tokenTypeMatchers.push({matcher:n.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={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)rO(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&rO(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(HD(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[UD(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]=aO(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){this._rootId===-1&&(this._rootId=JD.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===sO.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=jD.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?oO.createRootAndLookUpScopeName(a,r,this):oO.createRoot(`unknown`,r),t=new sO(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=` 77`;let a=this.createOnigString(e),o=a.content.length,s=new Voe(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=eO(this,a,i,0,t,s,!0,r);return PD(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function aO(e,t){return e=oD(e),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 oO=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)i=bD.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new bD(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new bD(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{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}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),jD.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},sO=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t!==null&&e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?oO.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{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}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:UD(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=oO.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,HD(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,oO.fromExtension(r,n.contentNameScopesList))}},Boe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):MD(e,iO).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>MD(e,iO).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!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}},Voe=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=jD.set(n,0,poe(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=jD.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(),this._tokens.length===0&&(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()),this._binaryTokens.length===0&&(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}},Hoe=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,Loe(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Uoe=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Hoe(yD.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(yD.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 Boe(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new voe(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=typeof this._options.getInjections==`function`?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)}},cO=sO.NULL,lO=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],uO={}.hasOwnProperty;function dO(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&uO.call(t,e)){let n=String(t[e]);i=uO.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Woe=/["&'<>`]/g,Goe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Koe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,qoe=/[|\\{}()[\]^$+*?.]/g,fO=new WeakMap;function Joe(e,t){if(e=e.replace(t.subset?Yoe(t.subset):Woe,r),t.subset||t.escapeOnly)return e;return e.replace(Goe,n).replace(Koe,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function Yoe(e){let t=fO.get(e);return t||(t=Xoe(e),fO.set(e,t)),t}function Xoe(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(qoe,`\\$&`));
vendor: 12,265 bytes, lines 77-85
77return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var Zoe=/[\dA-Fa-f]/;function Qoe(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!Zoe.test(String.fromCharCode(t))?r:r+`;`}var $oe=/\d/;function ese(e,t,n){let r=`&#`+String(e);return n&&t&&!$oe.test(String.fromCharCode(t))?r:r+`;`}var tse=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),pO={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`Â¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`Â`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`Ã`,Aacute:`Ã`,Acirc:`Ã`,Atilde:`Ã`,Auml:`Ã`,Aring:`à `,AElig:`Ã`,Ccedil:`Ã`,Egrave:`Ã`,Eacute:`Ã`,Ecirc:`Ã`,Euml:`Ã`,Igrave:`Ã`,Iacute:`Ã`,Icirc:`Ã`,Iuml:`Ã`,ETH:`Ã`,Ntilde:`Ã`,Ograve:`Ã`,Oacute:`Ã`,Ocirc:`Ã`,Otilde:`Ã`,Ouml:`Ã`,times:`Ã`,Oslash:`Ã`,Ugrave:`Ã`,Uacute:`Ã`,Ucirc:`Ã`,Uuml:`Ã`,Yacute:`Ã`,THORN:`Ã`,szlig:`Ã`,agrave:`à `,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`Ã¥`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`Ã`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`Æ`,Alpha:`Î`,Beta:`Î`,Gamma:`Î`,Delta:`Î`,Epsilon:`Î`,Zeta:`Î`,Eta:`Î`,Theta:`Î`,Iota:`Î`,Kappa:`Î`,Lambda:`Î`,Mu:`Î`,Nu:`Î`,Xi:`Î`,Omicron:`Î`,Pi:`Î `,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Î¥`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`Ï`,rho:`Ï`,sigmaf:`Ï`,sigma:`Ï`,tau:`Ï`,upsilon:`Ï `,phi:`Ï`,chi:`Ï`,psi:`Ï`,omega:`Ï`,thetasym:`Ï`,upsih:`Ï`,piv:`Ï`,bull:`â¢`,hellip:`â¦`,prime:`â²`,Prime:`â³`,oline:`â¾`,frasl:`â`,weierp:`â`,image:`â`,real:`â`,trade:`â¢`,alefsym:`âµ`,larr:`â`,uarr:`â`,rarr:`â`,darr:`â`,harr:`â`,crarr:`âµ`,lArr:`â`,uArr:`â`,rArr:`â`,dArr:`â`,hArr:`â`,forall:`â`,part:`â`,exist:`â`,empty:`â `,nabla:`â`,isin:`â`,notin:`â`,ni:`â`,prod:`â`,sum:`â`,minus:`â`,lowast:`â`,radic:`â`,prop:`â`,infin:`â`,ang:`â `,and:`â§`,or:`â¨`,cap:`â©`,cup:`âª`,int:`â«`,there4:`â´`,sim:`â¼`,cong:`â `,asymp:`â`,ne:`â `,equiv:`â¡`,le:`â¤`,ge:`â¥`,sub:`â`,sup:`â`,nsub:`â`,sube:`â`,supe:`â`,oplus:`â`,otimes:`â`,perp:`â¥`,sdot:`â `,lceil:`â`,rceil:`â`,lfloor:`â`,rfloor:`â`,lang:`â©`,rang:`âª`,loz:`â`,spades:`â `,clubs:`â£`,hearts:`â¥`,diams:`â¦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Å`,oelig:`Å`,Scaron:`Å `,scaron:`Å¡`,Yuml:`Ÿ`,circ:`Ë`,tilde:`Ë`,ensp:`â`,emsp:`â`,thinsp:`â`,zwnj:`â`,zwj:`â`,lrm:`â`,rlm:`â`,ndash:`â`,mdash:`â`,lsquo:`â`,rsquo:`â`,sbquo:`â`,ldquo:`â`,rdquo:`â`,bdquo:`â`,dagger:`â `,Dagger:`â¡`,permil:`â°`,lsaquo:`â¹`,rsaquo:`âº`,euro:`â¬`},nse=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],mO={}.hasOwnProperty,hO={},gO;for(gO in pO)mO.call(pO,gO)&&(hO[pO[gO]]=gO);var rse=/[^\dA-Za-z]/;function ise(e,t,n,r){let i=String.fromCharCode(e);if(mO.call(hO,i)){let e=hO[i],a=`&`+e;return n&&tse.includes(e)&&!nse.includes(e)&&(!r||t&&t!==61&&rse.test(String.fromCharCode(t)))?a:a+`;`}return``}function ase(e,t,n){let r=Qoe(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=ise(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=ese(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function _O(e,t){return Joe(e,Object.assign({format:ase},t))}var ose=/^>|^->|<!--|-->|--!>|<!-$/g,sse=[`>`],cse=[`<`,`>`];function lse(e,t,n,r){return r.settings.bogusComments?`<?`+_O(e.value,Object.assign({},r.settings.characterReferences,{subset:sse}))+`>`:`<!--`+e.value.replace(ose,i)+`-->`;function i(e){return _O(e,Object.assign({},r.settings.characterReferences,{subset:cse}))}}function use(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function vO(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var yO=xO(1),bO=xO(-1),dse=[];function xO(e){return t;function t(t,n,r){let i=t?t.children:dse,a=(n||0)+e,o=i[a];if(!r)for(;o&&Gb(o);)a+=e,o=i[a];return o}}var fse={}.hasOwnProperty;function SO(e){return t;function t(t,n,r){return fse.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var CO=SO({body:mse,caption:wO,colgroup:wO,dd:EO,dt:TO,head:wO,html:pse,li:gse,optgroup:OO,option:kO,p:hse,rp:DO,rt:DO,tbody:jO,td:PO,tfoot:MO,th:PO,thead:AO,tr:NO});function wO(e,t,n){let r=yO(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&Gb(r.value.charAt(0)))}function pse(e,t,n){let r=yO(n,t);return!r||r.type!==`comment`}function mse(e,t,n){let r=yO(n,t);return!r||r.type!==`comment`}function hse(e,t,n){let r=yO(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function gse(e,t,n){let r=yO(n,t);return!r||r.type===`element`&&r.tagName===`li`}function TO(e,t,n){let r=yO(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function EO(e,t,n){let r=yO(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function DO(e,t,n){let r=yO(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function OO(e,t,n){let r=yO(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function kO(e,t,n){let r=yO(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function AO(e,t,n){let r=yO(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function jO(e,t,n){let r=yO(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function MO(e,t,n){return!yO(n,t)}function NO(e,t,n){let r=yO(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function PO(e,t,n){let r=yO(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var FO=SO({body:RO,colgroup:zO,head:LO,html:IO,tbody:BO});function IO(e){let t=yO(e,-1);return!t||t.type!==`comment`}function LO(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function RO(e){let t=yO(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&Gb(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function zO(e,t,n){let r=bO(n,t),i=yO(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&CO(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function BO(e,t,n){let r=bO(n,t),i=yO(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&CO(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var VO={name:[[` 78\f\r &/=>`.split(``),` 79\f\r "&'/=>\``.split(``)],[`\0 80\f\r "&'/<=>`.split(``),`\0 81\f\r "&'/<=>\``.split(``)]],unquoted:[[` 82\f\r &>`.split(``),`\0 83\f\r "&'<=>\``.split(``)],[`\0 84\f\r "&'<=>\``.split(``),`\0 85\f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function HO(e,t,n,r){let i=r.schema,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=Ex);let l=UO(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!FO(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!CO(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function UO(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=WO(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function WO(e,t,n){let r=Sx(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=_O(r.attribute,Object.assign({},e.settings.characterReferences,{subset:VO.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?zb:Ox)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=_O(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:VO.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&vO(n,o)>vO(n,e.alternative)&&(o=e.alternative),s=o+_O(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?VO.single:VO.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var GO=[`<`,`&`];function KO(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:_O(e.value,Object.assign({},r.settings.characterReferences,{subset:GO}))}function qO(e,t,n,r){return r.settings.allowDangerousHtml?e.value:KO(e,t,n,r)}function JO(e,t,n,r){return r.all(e)}var YO=dO(`type`,{invalid:XO,unknown:ZO,handlers:{comment:lse,doctype:use,element:HO,raw:qO,root:JO,text:KO}});function XO(e){throw Error("Expected node, not `"+e+"`")}function ZO(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var QO={},$O={},ek=[];function tk(e,t){let n=t||QO,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:nk,all:rk,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||lO,characterReferences:n.characterReferences||$O,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1}
vendor: 10,732 bytes, line 85
85,schema:n.space===`svg`?Ex:Tx,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function nk(e,t,n){return YO(e,t,n,this)}function rk(e){let t=[],n=e&&e.children||ek,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}function ik(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function ak(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function ok(e){return Array.isArray(e)?e:[e]}async function sk(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function ck(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function lk(e){return e===`ansi`||ck(e)}function uk(e){return e===`none`}function dk(e){return uk(e)}function fk(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(/\s+/g);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function pk(e,t=!1){if(e.length===0)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}function mk(e){let t=pk(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function hk(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}var gk=`light-dark()`,_k=[`color`,`background-color`];function vk(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function yk(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.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);return t.length?vk(e,t):e})):e}function bk(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>xk(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&_k.includes(a))if(r===gk&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new aD('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,d=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${d})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s;else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function xk(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&ED.Italic&&(t[`font-style`]=`italic`),e.fontStyle&ED.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&ED.Underline&&n.push(`underline`),e.fontStyle&ED.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function Sk(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}var Ck=new WeakMap;function wk(e,t){Ck.set(e,t)}function Tk(e){return Ck.get(e)}var Ek=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(ok(n).map(e=>[e,cO])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Dk(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Dk(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function Ok(e,t){if(!(e instanceof Ek))throw new aD(`Invalid grammar state`);return e.getInternalStack(t)}function kk(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new aD(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}else{let t=r.lines[e.line];if(t===void 0)throw new aD(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new aD(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=mk(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));Ak(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return yk(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new aD(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=jk(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new aD(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new aD(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&fk(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function Ak(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new aD(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new aD(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function jk(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(jk).join(``):``}var Mk=[kk()];function Nk(e){let t=Pk(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Mk]}function Pk(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var Fk=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],Ik={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function Lk(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function Rk(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}else if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function zk(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:`resetAll`});else if(r<=9)Ik[r]&&t.push({type:`setDecoration`,value:Ik[r]});else if(r<=29){let e=Ik[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:Fk[r-30]}});else if(r===38){let n=Rk(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:Fk[r-40]}});else if(r===48){let n=Rk(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:Fk[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:Fk[r-100+8]}})}return t}function Bk(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=Lk(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=zk(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroun
85dColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var Vk={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function Hk(e=Vk){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<Fk.length;e++)r.push(t(Fk[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var Uk={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 Wk(e,t,n){let r=ik(e,n),i=pk(t),a=Hk(Object.fromEntries(Fk.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||Uk[t]]}))),o=Bk();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=ak(i,r),o=ak(o,r),n.decorations.has(`dim`)&&(i=Gk(i));let s=ED.None;return n.decorations.has(`bold`)&&(s|=ED.Bold),n.decorations.has(`italic`)&&(s|=ED.Italic),n.decorations.has(`underline`)&&(s|=ED.Underline),n.decorations.has(`strikethrough`)&&(s|=ED.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function Gk(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}else if(e.length===6)return`#${e}80`;else if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}else if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function Kk(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||`text`);if(ck(i)||uk(r))return pk(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(r);if(i===`ansi`)return Wk(a,t,n);let s=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new aD(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new aD(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return Jk(t,s,a,o,n)}function qk(...e){if(e.length===2)return Tk(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(ck(i)||uk(a))throw new aD(`Plain language does not have grammar state`);if(i===`ansi`)throw new aD(`ANSI language does not have grammar state`);
vendor: 18,484 bytes, lines 85-86
85let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new Ek(Yk(n,c,o,s,r).stateStack,c.name,o.name)}function Jk(e,t,n,r,i){let a=Yk(e,t,n,r,i),o=new Ek(a.stateStack,t.name,n.name);return wk(a.tokens,o),a.tokens}function Yk(e,t,n,r,i){let a=ik(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=pk(e),l=i.grammarState?Ok(i.grammarState,n.name)??cO:i.grammarContextCode==null?cO:Yk(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e<f;e++){let[f,p]=c[e];if(f===``){u=[],d.push([]);continue}if(o>0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:f.length;if(t===o)continue;let s=_.tokens[2*e+1],c=ak(r[jD.getForeground(s)],a),l=jD.getFontStyle(s),d={content:f.substring(t,o),offset:p+t,color:c,fontStyle:l};if(i.includeExplanation){let e=[];if(i.includeExplanation!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(/,/).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:i.includeExplanation===`scopeName`?Xk(t.scopes):Zk(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],l=_.ruleStack}return{tokens:d,stateStack:l}}function Xk(e){return e.map(e=>({scopeName:e}))}function Zk(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:eA(e,i,t.slice(0,r))}}return n}function Qk(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function $k(e,t,n){if(!Qk(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Qk(e[r],n[i])&&--r,--i;return r===-1}function eA(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if($k(e,t,n)){r.push(a);break}return r}function tA(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=Kk(e,t,{...n,theme:r.theme});return{tokens:i,state:Tk(i),theme:typeof r.theme==`string`?r.theme:r.theme.name}}),a=nA(...i.map(e=>e.tokens)),o=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:s,offset:c,...l}=e[t][i];o.variants[r[n].color]=l}),o})),s=i[0].state?new Ek(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&wk(o,s),o}function nA(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}function rA(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new aD("`themes` option must not be empty");let p=tA(e,t,n);if(c=Tk(p),l&&gk!==l&&!f.find(e=>e.color===l))throw new aD(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>bk(e,h,u,l,d))),c&&wk(a,c);let g=f.map(e=>ik(e.theme,n));i=iA(f,m,g,u,l,`fg`,d),r=iA(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=ik(n.theme,n);a=Kk(e,t,n);let l=e.getTheme(n.theme);r=ak(l.bg,s),i=ak(l.fg,s),o=l.name,c=Tk(a)}else throw new aD("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function iA(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=ak(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===gk&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new aD('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${ak(t[r][a],n[r])||`inherit`}, ${ak(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}function aA(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>aA(e,t,n),codeToTokens:(t,n)=>rA(e,t,n)}){let i=t;for(let e of Nk(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=rA(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=sA(a):d===`never`&&(a=cA(a)),f&&(a=lA(a));let p={...r,get source(){return i}};for(let e of Nk(n))a=e.tokens?.call(p,a)||a;return oA(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function oA(e,t,n,r=Tk(e)){let i=Nk(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(t.rootStyle==null?l.style=`background-color:${t.bg};color:${t.fg}`:l.style=t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:fk,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:` 86`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=Sk(a.htmlStyle||xk(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&wk(m,r),m}function sA(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&ED.Underline||i.fontStyle&ED.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function cA(e){return e.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}))}function lA(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t[t.length-1],r=Sk(e.htmlStyle||xk(e)),i=Sk(n.htmlStyle||xk(n)),a=e.fontStyle&&(e.fontStyle&ED.Underline||e.fontStyle&ED.Strikethrough),o=n.fontStyle&&(n.fontStyle&ED.Underline||n.fontStyle&ED.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var uA=tk;function dA(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>aA(e,t,n),codeToTokens:(t,n)=>rA(e,t,n)},i=uA(aA(e,t,n,r));for(let e of Nk(n))i=e.postprocess?.call(r,i,n)||i;return i}var fA={light:`#333333`,dark:`#bbbbbb`},pA={light:`#fffffe`,dark:`#1e1e1e`},mA=`__shiki_resolved`;function hA(e){if(e?.[mA])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||=t.type===`light`?fA.light:fA.dark,n||=t.type===`light`?pA.light:pA.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,mA,{enumerable:!1,writable:!1,value:!0}),t}async function gA(e){return Array.from(new Set((await Promise.all(e.filter(e=>!lk(e)).map(async e=>await sk(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function _A(e){return(await Promise.all(e.map(async e=>dk(e)?null:hA(await sk(e))))).filter(e=>!!e)}var vA=3;function yA(e,t=3){vA&&(typeof vA==`number`&&t>vA||console.trace(`[SHIKI DEPRECATE]: ${e}`))}var bA=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function xA(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 bA(`Circular alias \`${Array.from(n).join(` -> `)} -> ${e}\``);n.add(e)}}return e}var SA=class extends Uoe{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 typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=hA(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=yD.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=xA(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])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new bA(`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||=[...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))}},CA=class{_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}},wA=0;function TA(e){wA+=1,e.warnings!==!1&&wA>=10&&wA%10==0&&console.warn(`[Shiki] ${wA} 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 t=!1;if(!e.engine)throw new bA("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(hA),i=new SA(new CA(e.engine,n),r,n,e.langAlias),a;function o(t){return xA(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new bA(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new bA(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await gA(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await _A(e))}function g(){if(t)throw new bA(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--wA)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function EA(e){e.engine||yA("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([_A(e.themes||[]),gA(e.langs||[]),e.engine]);return TA({...e,themes:t,langs:n,engine:r})}async function DA(e){let t=await EA(e);return{getLastGrammarState:(...e)=>qk(t,...e),codeToTokensBase:(e,n)=>Kk(t,e,n),codeToTokensWithThemes:(e,n)=>tA(t,e,n),codeToTokens:(e,n)=>rA(t,e,n),codeToHast:(e,n)=>aA(t,e,n),codeToHtml:(e,n)=>dA(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function OA(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,lk(n))return[];let r=t[n];if(!r)throw new aD(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(dk(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new aD(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await DA({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function kA(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}else{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function AA(e,t){let n=kA(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}
vendor: 21,194 bytes, line 86
86var jA=[{id:`abap`,name:`ABAP`,import:(()=>T(()=>import(`./abap-CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>T(()=>import(`./actionscript-3--17pq3dv.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>T(()=>import(`./ada-C5qYipkI.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>T(()=>import(`./angular-html-BSJCjMpz.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3,4])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>T(()=>import(`./angular-ts-DORhBINR.js`),__vite__mapDeps([5,0,1,2,3,4,6])))},{id:`apache`,name:`Apache Conf`,import:(()=>T(()=>import(`./apache-U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>T(()=>import(`./apex-CGTLDQj6.js`),[]))},{id:`apl`,name:`APL`,import:(()=>T(()=>import(`./apl-Dqn0rotQ.js`),__vite__mapDeps([7,3,1,4,2,8,9,10])))},{id:`applescript`,name:`AppleScript`,import:(()=>T(()=>import(`./applescript-CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>T(()=>import(`./ara-4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>T(()=>import(`./asciidoc-DE70LPWp.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>T(()=>import(`./asm-Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>T(()=>import(`./astro-2xQ26JAi.js`),__vite__mapDeps([11,3,1,4,10,12,13,14])))},{id:`awk`,name:`AWK`,import:(()=>T(()=>import(`./awk-BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>T(()=>import(`./ballerina-B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>T(()=>import(`./bat-Bo4NYOV-.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>T(()=>import(`./beancount-D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>T(()=>import(`./berry-DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>T(()=>import(`./bibtex-Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>T(()=>import(`./bicep-CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>T(()=>import(`./bird2-C2hNVINV.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>T(()=>import(`./blade-UxXs1MHp.js`),__vite__mapDeps([15,3,1,4,2,8,9,10,16,17])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>T(()=>import(`./bsl-BkkzgIyY.js`),__vite__mapDeps([18,19])))},{id:`c`,name:`C`,import:(()=>T(()=>import(`./c-Blw65jlH.js`).then(e=>e.n),__vite__mapDeps([20,1])))},{id:`c3`,name:`C3`,import:(()=>T(()=>import(`./c3-CnJL0r0V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>T(()=>import(`./cadence-CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>T(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>T(()=>import(`./clarity-SemFz856.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>T(()=>import(`./clojure-DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>T(()=>import(`./cmake-Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>T(()=>import(`./cobol-Cz6009rC.js`),__vite__mapDeps([23,2,1,3,4,9])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>T(()=>import(`./codeowners-C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>T(()=>import(`./codeql-oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>T(()=>import(`./coffee-CC-CTfG5.js`),__vite__mapDeps([24,3,1])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>T(()=>import(`./common-lisp-Cv5bFMCO.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>T(()=>import(`./coq-BrsZFFmf.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>T(()=>import(`./cpp-CrCo1Zjp.js`).then(e=>e.n),__vite__mapDeps([25,1,17,26,27,20])))},{id:`crystal`,name:`Crystal`,import:(()=>T(()=>import(`./crystal-aZN9g_In.js`),__vite__mapDeps([28,3,1,4,2,17,20,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>T(()=>import(`./csharp-Ct8U2NOr.js`),[]))},{id:`css`,name:`CSS`,import:(()=>T(()=>import(`./css-Bpd_-uWF.js`).then(e=>e.n),__vite__mapDeps([4,1])))},{id:`csv`,name:`CSV`,import:(()=>T(()=>import(`./csv-Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>T(()=>import(`./cue-CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>T(()=>import(`./cypher-ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>T(()=>import(`./d-qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>T(()=>import(`./dart-DkHntEIa.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>T(()=>import(`./dax-BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>T(()=>import(`./desktop-Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>T(()=>import(`./diff-woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>T(()=>import(`./docker-IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>T(()=>import(`./dotenv-_5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>T(()=>import(`./dream-maker-DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>T(()=>import(`./edge-CqbqiuPZ.js`),__vite__mapDeps([30,2,1,3,4,12,16])))},{id:`elixir`,name:`Elixir`,import:(()=>T(()=>import(`./elixir-CXhE20Yh.js`),__vite__mapDeps([31,2,1,3,4])))},{id:`elm`,name:`Elm`,import:(()=>T(()=>import(`./elm-BfHi1MFa.js`),__vite__mapDeps([32,27,1,20])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>T(()=>import(`./emacs-lisp-C9PiwqqW.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>T(()=>import(`./erb-BbGptYuZ.js`),__vite__mapDeps([33,2,1,3,4,34,8,9,17,20,25,26,27,29,35,36,12,14,37,38,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>T(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>T(()=>import(`./fennel-DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>T(()=>import(`./fish-BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>T(()=>import(`./fluent-C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>T(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>T(()=>import(`./fortran-free-form-CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>T(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>T(()=>import(`./gdresource-C0sCabJj.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>T(()=>import(`./gdscript-Cp2uCuqX.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>T(()=>import(`./gdshader-CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>T(()=>import(`./genie-CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>T(()=>import(`./gherkin-DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>T(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>T(()=>import(`./git-rebase-09-F-Xjy.js`),__vite__mapDeps([50,29,1])))},{id:`gleam`,name:`Gleam`,import:(()=>T(()=>import(`./gleam-CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>T(()=>import(`./glimmer-js-DYMAj7M5.js`),__vite__mapDeps([51,3,1,4,2,12])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>T(()=>import(`./glimmer-ts-KNe6IVYx.js`),__vite__mapDeps([52,3,1,4,2,12])))},{id:`glsl`,name:`GLSL`,import:(()=>T(()=>import(`./glsl-CNFhMZ3o.js`).then(e=>e.n),__vite__mapDeps([27,1,20])))},{id:`gn`,name:`GN`,import:(()=>T(()=>import(`./gn-ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>T(()=>import(`./gnuplot-7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>T(()=>import(`./go-BJwz_mda.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>T(()=>import(`./graphql-Bs_icwQf.js`).then(e=>e.n),__vite__mapDeps([36,1,3,12,14,37])))},{id:`groovy`,name:`Groovy`,import:(()=>T(()=>import(`./groovy-CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>T(()=>import(`./hack-BmiOOC6t.js`),__vite__mapDeps([53,2,1,3,4,17])))},{id:`haml`,name:`Ruby Haml`,import:(()=>T(()=>import(`./haml-DQD5gGOL.js`).then(e=>e.n),__vite__mapDeps([35,1,3,4])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>T(()=>import(`./handlebars-CGggBfPN.js`),__vite__mapDeps([54,3,1,4,2,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>T(()=>import(`./haskell-D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>T(()=>import(`./haxe-OTjmBuCE.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>T(()=>import(`./hcl-Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>T(()=>import(`./hjson-CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>T(()=>import(`./hlsl-Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>T(()=>import(`./html-DhHa9-nS.js`).then(e=>e.n),__vite__mapDeps([2,1,3,4])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>T(()=>import(`./html-derivative-BtSxGMqd.js`),__vite__mapDeps([16,2,1,3,4])))},{id:`http`,name:`HTTP`,import:(()=>T(()=>import(`./http-D8fCFQUQ.js`),__vite__mapDeps([55,8,1,9,10,29,36,3,12,14,37])))},{id:`hurl`,name:`Hurl`,import:(()=>T(()=>import(`./hurl-14JhHsIH.js`),__vite__mapDeps([56,8,1,9,57,36,3,12,14,37])))},{id:`hxml`,name:`HXML`,import:(()=>T(()=>import(`./hxml-B0Qn7Nwc.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>T(()=>import(`./hy-CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>T(()=>import(`./imba-DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>T(()=>import(`./ini-B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>T(()=>import(`./java-MBw7zHAA.js`).then(e=>e.n),__vite__mapDeps([9,1])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>T(()=>import(`./javascript-BttINa8q.js`).then(e=>e.n),__vite__mapDeps([3,1])))},{id:`jinja`,name:`Jinja`,import:(()=>T(()=>import(`./jinja-Bm5Qe2Fo.js`),__vite__mapDeps([60,2,1,3,4])))},{id:`jison`,name:`Jison`,import:(()=>T(()=>import(`./jison-DsrzMHSA.js`),__vite__mapDeps([61,3,1])))},{id:`json`,name:`JSON`,import:(()=>T(()=>import(`./json-BNRlFZ-5.js`).then(e=>e.n),__vite__mapDeps([10,1])))},{id:`json5`,name:`JSON5`,import:(()=>T(()=>import(`./json5-BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>T(()=>import(`./jsonc-CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>T(()=>import(`./jsonl-CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>T(()=>import(`./jsonnet-CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>T(()=>import(`./jssm-DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>T(()=>import(`./jsx-UEmBU27c.js`).then(e=>e.n),__vite__mapDeps([37,1])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>T(()=>import(`./julia-CVOY6IQ9.js`),__vite__mapDeps([62,3,1,17,22,25,26,27,20,63])))},{id:`just`,name:`Just`,import:(()=>T(()=>import(`./just-CtlqdWPS.js`),__vite__mapDeps([64,3,1,12,22,29,34,4,2,8,9,17,20,25,26,27,35,36,14,37,38,39,65])))},{id:`kdl`,name:`KDL`,import:(()=>T(()=>import(`./kdl-CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>T(()=>import(`./kotlin-DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>T(()=>import(`./kusto-BUv0MjJC.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>T(()=>import(`./latex-rYmgEcul.js`),__vite__mapDeps([66,67,63,1])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>T(()=>import(`./lean-CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>T(()=>import(`./less-DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>T(()=>import(`./liquid-CZHoAeV7.js`),__vite__mapDeps([68,3,1,4,2,10])))},{id:`llvm`,name:`LLVM IR`,import:(()=>T(()=>import(`./llvm-Cm23YOpf.js`),[]))},{id:`log`,name:`Log file`,import:(()=>T(()=>import(`./log-BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>T(()=>import(`./logo-Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>T(()=>import(`./lua-Bc0cVuDM.js`).then(e=>e.n),__vite__mapDeps([38,1,20])))},{id:`luau`,name:`Luau`,import:(()=>T(()=>import(`./luau-CNKltnaQ.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>T(()=>import(`./make-Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>T(()=>import(`./markdown-BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>T(()=>import(`./marko-v6D4VUKa.js`),__vite__mapDeps([69,4,1,6,12,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>T(()=>import(`./matlab-D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>T(()=>import(`./mdc-ki0z3Xzn.js`),__vite__mapDeps([71,16,2,1,3,4,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>T(()=>import(`./mdx-DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>T(()=>import(`./mermaid-Bk4SNUv9.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>T(()=>import(`./mipsasm-BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>T(()=>import(`./mojo-BgCJLMeH.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>T(()=>import(`./moonbit-CaWjb8XO.js`),[]))},{id:`move`,name:`Move`,import:(()=>T(()=>import(`./move-B1IS1UjX.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>T(()=>import(`./narrat-_X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>T(()=>import(`./nextflow-Bbiyy34d.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`nextflow-groovy`,import:(()=>T(()=>import(`./nextflow-groovy-Dc_ddanL.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>T(()=>import(`./nginx-BDAkFTs4.js`),__vite__mapDeps([74,38,1,20])))},{id:`nim`,name:`Nim`,import:(()=>T(()=>import(`./nim-BS2BANbO.js`),__vite__mapDeps([75,3,1,4,2,8,9,20,27,41])))},{id:`nix`,name:`Nix`,import:(()=>T(()=>import(`./nix-IvuFDN5E.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>T(()=>import(`./nushell-DcLAeLz5.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>T(()=>import(`./objective-c-D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>T(()=>import(`./objective-cpp-BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>T(()=>import(`./ocaml-O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>T(()=>import(`./odin-B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>T(()=>import(`./openscad-BUDT5pXO.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>T(()=>import(`./pascal-4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>T(()=>import(`./perl-Btc9MKYd.js`),__vite__mapDeps([65,3,1,4,2,8,9,17])))},{id:`php`,name:`PHP`,import:(()=>T(()=>import(`./php-nnvROT4x.js`),__vite__mapDeps([76,3,1,4,2,8,9,10,17])))},{id:`pkl`,name:`Pkl`,import:(()=>T(()=>import(`./pkl-ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>T(()=>import(`./plsql-DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>T(()=>import(`./po-BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>T(()=>import(`./polar-C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>T(()=>import(`./postcss-BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>T(()=>import(`./powerquery-DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>T(()=>import(`./powershell-DshXNtvi.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>T(()=>import(`./prisma-BsRQq5mF.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>T(()=>import(`./prolog-iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>T(()=>import(`./proto-DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>T(()=>import(`./pug-DTRvYXy5.js`),__vite__mapDeps([77,3,1,4,2])))},{id:`puppet`,name:`Puppet`,import:(()=>T(()=>import(`./puppet-CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>T(()=>import(`./purescript-9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>T(()=>import(`./python-gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>T(()=>import(`./qml-DGFlbsc_.js`),__vite__mapDeps([78,3,1])))},{id:`qmldir`,name:`QML Directory`,import:(()=>T(()=>import(`./qmldir-DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>T(()=>import(`./qss-Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>T(()=>import(`./r-BrtO6otC.js`).then(e=>e.n),__vite__mapDeps([63,1])))},{id:`racket`,name:`Racket`,import:(()=>T(()=>import(`./racket-DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>T(()=>import(`./raku-B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>T(()=>import(`./razor-DUnZi0aC.js`),__vite__mapDeps([79,2,1,3,4,80])))},{id:`reg`,name:`Windows Registry Script`,import:(()=>T(()=>import(`./reg-CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>T(()=>import(`./regexp-DNT4mv-6.js`).then(e=>e.n),__vite__mapDeps([26,1])))},{id:`rel`,name:`Rel`,import:(()=>T(()=>import(`./rel-BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>T(()=>import(`./riscv-Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>T(()=>import(`./ron-VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>T(()=>import(`./rosmsg-CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>T(()=>import(`./rst-Db1i2AX2.js`),__vite__mapDeps([81,3,1,16,2,4,22,82,25,17,26,27,20,29,39,34,8,9,35,36,12,14,37,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>T(()=>import(`./ruby-lMKUMnme.js`),__vite__mapDeps([34,3,1,4,2,8,9,17,20,25,26,27,29,35,36,12,14,37,38,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>T(()=>import(`./rust-Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>T(()=>import(`./sas-BcBdVQyo.js`),__vite__mapDeps([83,17,1])))},{id:`sass`,name:`Sass`,import:(()=>T(()=>import(`./sass-DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>T(()=>import(`./scala-DKOlJaKm.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>T(()=>import(`./scheme-DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>T(()=>import(`./scss-B8PjoOey.js`).then(e=>e.n),__vite__mapDeps([6,1,4])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>T(()=>import(`./sdbl-bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>T(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([84,85])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>T(()=>import(`./shellscript-CoI_i11P.js`).then(e=>e.n),__vite__mapDeps([29,1])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>T(()=>import(`./shellsession-o4Zr-oXZ.js`),__vite__mapDeps([86,29,1])))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>T(()=>import(`./smalltalk-B16xEiuN.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>T(()=>import(`./solidity-CKzVLygQ.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>T(()=>import(`./soy-CPNozKlO.js`),__vite__mapDeps([87,2,1,3,4])))},{id:`sparql`,name:`SPARQL`,import:(()=>T(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([88,89])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>T(()=>import(`./splunk-BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>T(()=>import(`./sql-CYgr9Mgi.js`).then(e=>e.n),__vite__mapDeps([17,1])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>T(()=>import(`./ssh-config-BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>T(()=>import(`./stata-Do1KM1Y1.js`),__vite__mapDeps([90,17,1])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>T(()=>import(`./stylus-B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>T(()=>import(`./surrealql-DZFWP0QQ.js`),__vite__mapDeps([91,3,1])))},{id:`svelte`,name:`Svelte`,import:(()=>T(()=>import(`./svelte-Bx5wyOi0.js`),__vite__mapDeps([92,3,1,4,12,13])))},{id:`swift`,name:`Swift`,import:(()=>T(()=>import(`./swift-DonLKvLd.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>T(()=>import(`./system-verilog-DJ5XKQeo.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>T(()=>import(`./systemd-BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>T(()=>import(`./talonscript-CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>T(()=>import(`./tasl-DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>T(()=>import(`./tcl-CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>T(()=>import(`./templ-CkV7d5P6.js`),__vite__mapDeps([93,3,1,4,94])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>T(()=>import(`./terraform-DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>T(()=>import(`./tex-DtyfcXbs.js`),__vite__mapDeps([67,63,1])))},{id:`toml`,name:`TOML`,import:(()=>T(()=>import(`./toml-CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>T(()=>import(`./ts-tags-DlxBZo1A.js`),__vite__mapDeps([95,3,1,4,2,8,9,12,17,27,20])))},{id:`tsv`,name:`TSV`,import:(()=>T(()=>import(`./tsv-sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>T(()=>import(`./tsx-HeIVaWJk.js`).then(e=>e.n),__vite__mapDeps([14,1])))},{id:`turtle`,name:`Turtle`,import:(()=>T(()=>import(`./turtle-ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>T(()=>import(`./twig-CP-N6gGk.js`),__vite__mapDeps([96,3,1,4,6,22,34,2,8,9,17,20,25,26,27,29,35,36,12,14,37,38,39,76,10])))}
86,{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>T(()=>import(`./typescript-CKFhM_78.js`).then(e=>e.n),__vite__mapDeps([12,1])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>T(()=>import(`./typespec-B88KGewJ.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>T(()=>import(`./typst-DI99ib-x.js`),[]))},{id:`v`,name:`V`,import:(()=>T(()=>import(`./v-DETTlOr0.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>T(()=>import(`./vala-zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>T(()=>import(`./vb-Djn5o6TS.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>T(()=>import(`./verilog-CiiDBU1e.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>T(()=>import(`./vhdl-BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>T(()=>import(`./viml-DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>T(()=>import(`./vue-BhcCNOOj.js`),__vite__mapDeps([97,3,1,4,2,10,12,16])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>T(()=>import(`./vue-html-Bcgt8jrn.js`),__vite__mapDeps([98,3,1])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>T(()=>import(`./vue-vine-Dtw_Bvs2.js`),__vite__mapDeps([99,3,1,4,6,13,70,100])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>T(()=>import(`./vyper-CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>T(()=>import(`./wasm-ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`æè¨`],import:(()=>T(()=>import(`./wenyan-C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>T(()=>import(`./wgsl-BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>T(()=>import(`./wikitext-ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>T(()=>import(`./wit-DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>T(()=>import(`./wolfram-DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>T(()=>import(`./xml-Dt-VRNGg.js`).then(e=>e.n),__vite__mapDeps([8,1,9])))},{id:`xsl`,name:`XSL`,import:(()=>T(()=>import(`./xsl-Cfl5-n_a.js`),__vite__mapDeps([101,8,1,9])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>T(()=>import(`./yaml-BFRNvut5.js`).then(e=>e.n),__vite__mapDeps([39,1])))},{id:`zenscript`,name:`ZenScript`,import:(()=>T(()=>import(`./zenscript-BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>T(()=>import(`./zig-CMLA9XwU.js`),[]))}],MA=Object.fromEntries(jA.map(e=>[e.id,e.import])),NA=Object.fromEntries(jA.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),PA={...MA,...NA},FA=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>T(()=>import(`./andromeeda-vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>T(()=>import(`./aurora-x-CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>T(()=>import(`./ayu-dark-DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>T(()=>import(`./ayu-light-C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>T(()=>import(`./ayu-mirage-Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>T(()=>import(`./catppuccin-frappe-3VR1Za6u.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>T(()=>import(`./catppuccin-latte-DwIHMF0Q.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>T(()=>import(`./catppuccin-macchiato-DYnBP6_5.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>T(()=>import(`./catppuccin-mocha-DYhrFGRu.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>T(()=>import(`./dark-plus-Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>T(()=>import(`./dracula-BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>T(()=>import(`./dracula-soft-5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>T(()=>import(`./everforest-dark-sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>T(()=>import(`./everforest-light-Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>T(()=>import(`./github-dark-C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>T(()=>import(`./github-dark-default-DXG-b-1a.js`),[]))}
86,{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>T(()=>import(`./github-dark-dimmed-Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>T(()=>import(`./github-dark-high-contrast-B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>T(()=>import(`./github-light-EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>T(()=>import(`./github-light-default-BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>T(()=>import(`./github-light-high-contrast-B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>T(()=>import(`./gruvbox-dark-hard-C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>T(()=>import(`./gruvbox-dark-medium-BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>T(()=>import(`./gruvbox-dark-soft-MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>T(()=>import(`./gruvbox-light-hard-BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>T(()=>import(`./gruvbox-light-medium-BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>T(()=>import(`./gruvbox-light-soft-BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>T(()=>import(`./horizon-CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`dark`,import:(()=>T(()=>import(`./horizon-bright-Br1oVSNq.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>T(()=>import(`./houston-CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>T(()=>import(`./kanagawa-dragon-CXtmUGW6.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>T(()=>import(`./kanagawa-lotus-BN08jTvb.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>T(()=>import(`./kanagawa-wave-CTweb8Dz.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>T(()=>import(`./laserwave-C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>T(()=>import(`./light-plus-DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>T(()=>import(`./material-theme-Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>T(()=>import(`./material-theme-darker-2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>T(()=>import(`./material-theme-lighter-uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>T(()=>import(`./material-theme-ocean-CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>T(()=>import(`./material-theme-palenight-B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>T(()=>import(`./min-dark-BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>T(()=>import(`./min-light-DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>T(()=>import(`./monokai-CdkpiU2Y.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>T(()=>import(`./night-owl-DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>T(()=>import(`./night-owl-light-eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>T(()=>import(`./nord-Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>T(()=>import(`./one-dark-pro-CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>T(()=>import(`./one-light-D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>T(()=>import(`./plastic-DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>T(()=>import(`./poimandres-DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>T(()=>import(`./red-CJ3rzSJv.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>T(()=>import(`./rose-pine-BthvhNj6.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>T(()=>import(`./rose-pine-dawn-Dg85fqjY.js`),[]))}
86,{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>T(()=>import(`./rose-pine-moon-hon4tzzS.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>T(()=>import(`./slack-dark-DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>T(()=>import(`./slack-ochin-B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>T(()=>import(`./snazzy-light-4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>T(()=>import(`./solarized-dark-DV17i1UV.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>T(()=>import(`./solarized-light-DSh2HLQt.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>T(()=>import(`./synthwave-84-nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>T(()=>import(`./tokyo-night-oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>T(()=>import(`./vesper-D5bVUKB1.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>T(()=>import(`./vitesse-black-fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>T(()=>import(`./vitesse-dark-BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>T(()=>import(`./vitesse-light-VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),IA=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function LA(){return 2147483648}function RA(){return typeof performance<`u`?performance.now():Date.now()}var zA=(e,t)=>e+(t-e%t)%t;async function BA(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=LA();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,zA(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:RA,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var VA=Object.defineProperty,HA=(e,t,n)=>t in e?VA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,UA=(e,t,n)=>HA(e,typeof t==`symbol`?t:t+``,n),WA=null;
vendor: 4,603 bytes, line 86
86function GA(e){throw new IA(e.UTF8ToString(e.getLastOnigError()))}var KA=class e{constructor(t){UA(this,`utf16Length`),UA(this,`utf8Length`),UA(this,`utf16Value`),UA(this,`utf8Value`),UA(this,`utf16OffsetToUtf8`),UA(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},qA=class e{constructor(t){if(UA(this,`id`,++e.LAST_ID),UA(this,`_onigBinding`),UA(this,`content`),UA(this,`utf16Length`),UA(this,`utf8Length`),UA(this,`utf16OffsetToUtf8`),UA(this,`utf8OffsetToUtf16`),UA(this,`ptr`),!WA)throw new IA(`Must invoke loadWasm first.`);this._onigBinding=WA,this.content=t;let n=new KA(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=WA.omalloc(1e4),e._sharedPtrInUse=!0,WA.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(WA)}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)}};UA(qA,`LAST_ID`,0),UA(qA,`_sharedPtr`,0),UA(qA,`_sharedPtrInUse`,!1);var JA=qA,YA=class{constructor(e){if(UA(this,`_onigBinding`),UA(this,`_ptr`),!WA)throw new IA(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new KA(e[r]);t[r]=i.createString(WA),n[r]=i.utf8Length}let r=WA.omalloc(4*e.length);WA.HEAPU32.set(t,r/4);let i=WA.omalloc(4*e.length);WA.HEAPU32.set(n,i/4);let a=WA.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)WA.ofree(t[n]);WA.ofree(i),WA.ofree(r),a===0&&GA(WA),this._onigBinding=WA,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new JA(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(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function XA(e){return typeof e.instantiator==`function`}function ZA(e){return typeof e.default==`function`}function QA(e){return e.data!==void 0}function $A(e){return typeof Response<`u`&&e instanceof Response}function ej(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var tj;function nj(e){if(tj)return tj;async function t(){WA=await BA(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),XA(n)?n=await n.instantiator(t):ZA(n)?n=await n.default(t):(QA(n)&&(n=n.data),$A(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await ij(n)(t):await aj(n)(t):ej(n)||n instanceof WebAssembly.Module?n=await rj(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await rj(n.default)(t))),`instance`in n&&
86(n=n.instance),`exports`in n&&(n=n.exports),n})}return tj=t(),tj}function rj(e){return t=>WebAssembly.instantiate(e,t)}function ij(e){return t=>WebAssembly.instantiateStreaming(e,t)}function aj(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function oj(e){return e&&await nj(e),{createScanner(e){return new YA(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new JA(e)}}}var sj=OA({langs:PA,themes:FA,engine:()=>oj(T(()=>import(`./wasm-BnjxR4X6.js`),[]))}),{codeToHtml:_se,codeToHast:vse,codeToTokens:yse,codeToTokensBase:bse,codeToTokensWithThemes:xse,getSingletonHighlighter:Sse,getLastGrammarState:Cse}=AA(sj,{guessEmbeddedLanguages:hk});function cj(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function lj(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var uj=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),dj=String.raw;function fj(e,t){if(e==null)throw Error(t??`Value expected`);return e}var pj=dj`\[\^?`,mj=`c.? | C(?:-.?)?|${dj`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${dj`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${dj`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${dj`o\{[^\}]*\}?`}|${dj`\d{1,3}`}`,hj=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,gj=new RegExp(dj` 87 \\ (?: 88 ${mj} 89 | [gk]<[^>]*>? 90 | [gk]'[^']*'? 91 | . 92 ) 93 | \( (?: 94 \? (?: 95 [:=!>({] 96 | <[=!] 97 | <[^>]*> 98 | '[^']*' 99 | ~\|? 100 | #(?:[^)\\]|\\.?)* 101 | [^:)]*[:)] 102 )? 103 | \*[^\)]*\)? 104 )? 105 | (?:${hj.source})+ 106 | ${pj} 107 | . 108`.replace(/\s+/g,``),`gsu`),_j=new RegExp(dj` 109 \\ (?: 110 ${mj} 111 | . 112 ) 113 | \[:(?:\^?\p{Alpha}+|\^):\] 114 | ${pj} 115 | && 116 | . 117`.replace(/\s+/g,``),`gsu`);function vj(e,t={}){let n={flags:``,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!=`string`)throw Error(`String expected as pattern`);let r=Jj(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:n.rules.singleline},o=[],s;for(gj.lastIndex=0;s=gj.exec(e);){let t=yj(a,e,s[0],gj.lastIndex);t.tokens?o.push(...t.tokens):t.token&&o.push(t.token),t.lastIndex!==void 0&&(gj.lastIndex=t.lastIndex)}let c=[],l=0;o.filter(e=>e.type===`GroupOpen`).forEach(e=>{e.kind===`capturing`?e.number=++l:e.raw===`(`&&c.push(e)}),l||c.forEach((e,t)=>{e.kind=`capturing`,e.number=t+1});let u=l||c.length;return{tokens:o.map(e=>e.type===`EscapedNumber`?Xj(e,u):e).flat(),flags:r}}function yj(e,t,n,r){let[i,a]=n;if(n===`[`||n===`[^`){let e=bj(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if(i===`\\`){if(`AbBGyYzZ`.includes(a))return{token:wj(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:Rj(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:Tj(n)}}if(a===`K`)return{token:Mj(`keep`,n)};if(a===`N`||a===`R`)return{token:jj(`newline`,n,{negate:a===`N`})};if(a===`O`)return{token:jj(`any`,n)};if(a===`X`)return{token:jj(`text_segment`,n)};let e=Sj(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if(i===`(`){if(a===`*`)return{token:Uj(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:Hj(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n===`(`&&!e.captureGroup||n===`(?:`)return{token:Fj(`group`,n)};if(n===`(?>`)return{token:Fj(`atomic`,n)};if(n===`(?=`||n===`(?!`||n===`(?<=`||n===`(?<!`)return{token:Fj(n[2]===`<`?`lookbehind`:`lookahead`,n,{negate:n.endsWith(`!`)})};if(n===`(`&&e.captureGroup||n.startsWith(`(?<`)&&n.endsWith(`>`)||n.startsWith(`(?'`)&&n.endsWith(`'`))return{token:Fj(`capturing`,n,{...n!==`(`&&{name:n.slice(3,-1)}})};if(n.startsWith(`(?~`)){if(n===`(?~|`)throw Error(`Unsupported absence function kind "${n}"`);return{token:Fj(`absence_repeater`,n)}}throw Error(n===`(?(`?`Unsupported conditional "${n}"`:`Invalid or unsupported group option "${n}"`)}if(n===`)`){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error(`Unmatched ")"`);return{token:Pj(n)}}if(e.getCurrentModX()){if(n===`#`){let e=t.indexOf(` 118`,r);return{lastIndex:e===-1?t.length:e}}if(/^\s$/.test(n)){let e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}}
118return n===`.`?{token:jj(`dot`,n)}:n===`^`||n===`$`?{token:wj(e.singleline?{"^":dj`\A`,$:dj`\Z`}[n]:n,n)}:n===`|`?{token:Cj(n)}:hj.test(n)?{tokens:Zj(n)}:{token:Ej(cj(n),n)}}function bj(e,t,n){let r=[Aj(t[1]===`^`,t)],i=1,a;for(_j.lastIndex=n;a=_j.exec(e);){let e=a[0];if(e[0]===`[`&&e[1]!==`:`)i++,r.push(Aj(e[1]===`^`,e));else if(e===`]`){if(r.at(-1).type===`CharacterClassOpen`)r.push(Ej(93,e));else if(i--,r.push(Dj(e)),!i)break}else{let t=xj(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:_j.lastIndex||e.length}}function xj(e){if(e[0]===`\\`)return Sj(e,{inCharClass:!0});if(e[0]===`[`){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!uj.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return jj(`posix`,e,{value:t.groups.name,negate:!!t.groups.negate})}return e===`-`?Oj(e):e===`&&`?kj(e):Ej(cj(e),e)}function Sj(e,{inCharClass:t}){let n=e[1];if(n===`c`||n===`C`)return Vj(e);if(`dDhHsSwW`.includes(n))return Gj(e);if(e.startsWith(dj`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw Error(`Incomplete or invalid Unicode property "${e}"`);return Kj(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 Ej(cj(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n===`u`||n===`x`)return Ej(Yj(e),e);if(Bj.has(n))return Ej(Bj.get(n),e);if(/\d/.test(n))return Nj(t,e);if(e===`\\`)throw Error(dj`Incomplete escape "\"`);if(n===`M`)throw Error(`Unsupported meta "${e}"`);if([...e].length===2)return Ej(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function Cj(e){return{type:`Alternator`,raw:e}}function wj(e,t){return{type:`Assertion`,kind:e,raw:t}}function Tj(e){return{type:`Backreference`,raw:e}}function Ej(e,t){return{type:`Character`,value:e,raw:t}}function Dj(e){return{type:`CharacterClassClose`,raw:e}}function Oj(e){return{type:`CharacterClassHyphen`,raw:e}}function kj(e){return{type:`CharacterClassIntersector`,raw:e}}function Aj(e,t){return{type:`CharacterClassOpen`,negate:e,raw:t}}function jj(e,t,n={}){return{type:`CharacterSet`,kind:e,...n,raw:t}}function Mj(e,t,n={}){return e===`keep`?{type:`Directive`,kind:e,raw:t}:{type:`Directive`,kind:e,flags:fj(n.flags),raw:t}}function Nj(e,t){return{type:`EscapedNumber`,inCharClass:e,raw:t}}function Pj(e){return{type:`GroupClose`,raw:e}}function Fj(e,t,n={}){return{type:`GroupOpen`,kind:e,...n,raw:t}}function Ij(e,t,n,r){return{type:`NamedCallout`,kind:e,tag:t,arguments:n,raw:r}}function Lj(e,t,n,r){return{type:`Quantifier`,kind:e,min:t,max:n,raw:r}}function Rj(e){return{type:`Subroutine`,raw:e}}var zj=new Set([`COUNT`,`CMP`,`ERROR`,`FAIL`,`MAX`,`MISMATCH`,`SKIP`,`TOTAL_COUNT`]),Bj=new Map([[`a`,7],[`b`,8],[`e`,27],[`f`,12],[`n`,10],[`r`,13],[`t`,9],[`v`,11]]);function Vj(e){let t=e[1]===`c`?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return Ej(cj(t.toUpperCase())-64,e)}function Hj(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=qj(n),o=qj(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(`)`))return t.replaceCurrentModX(i),Mj(`flags`,e,{flags:s});if(e.endsWith(`:`))return t.pushModX(i),t.numOpenGroups++,Fj(`group`,e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}function Uj(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:n,tag:r,args:i}=t.groups;if(!n)throw Error(`Invalid named callout "${e}"`);if(r===``)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(`,`).filter(e=>e!==``).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[o,s,c]=a,l=zj.has(n)?n.toLowerCase():`custom`;switch(l){case`fail`:case`mismatch`:case`skip`:if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case`error`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(typeof o==`string`)throw Error(`Named callout argument must be a number "${o}"`);break;case`max`:if(!a.length||a.length>
1182)throw Error(`Named callout must have one or two arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(a.length===2&&(typeof s==`number`||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case`count`:case`total_count`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof o==`number`||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case`cmp`:if(a.length!==3)throw Error(`Named callout must have three arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(typeof s==`number`||!/^(?:[<>!=]=|[<>])$/.test(s))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof c==`string`&&!/^[A-Za-z_]\w*$/.test(c))throw Error(`Named callout argument three must be a tag or number "${c}"`);break;case`custom`:throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${l}"`)}return Ij(l,r??null,i?.split(`,`)??null,e)}function Wj(e){let t=null,n,r;if(e[0]===`{`){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,o=1e5;if(+i>o||a&&+a>o)throw Error(`Quantifier value unsupported in Oniguruma`);if(n=+i,r=a===void 0?+i:a===``?1/0:+a,n>r&&(t=`possessive`,[n,r]=[r,n]),e.endsWith(`?`)){if(t===`possessive`)throw Error(`Unsupported possessive interval quantifier chain with "?"`);t=`lazy`}else t||=`greedy`}else n=+(e[0]===`+`),r=e[0]===`?`?1:1/0,t=e[1]===`+`?`possessive`:e[1]===`?`?`lazy`:`greedy`;return Lj(t,n,r,e)}function Gj(e){let t=e[1].toLowerCase();return jj({d:`digit`,h:`hex`,s:`space`,w:`word`}[t],e,{negate:e[1]!==t})}function Kj(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return jj(`property`,e,{value:r,negate:t===`P`&&!n||t===`p`&&!!n})}function qj(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 Jj(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!`imxDPSWy`.includes(r))throw Error(`Invalid flag "${r}"`);if(r===`y`){if(!/^y{[gw]}/.test(e.slice(n)))throw Error(`Invalid or unspecified flag "y" mode`);t.textSegmentMode=e[n+2]===`g`?`grapheme`:`word`,n+=3;continue}t[{i:`ignoreCase`,m:`dotAll`,x:`extended`,D:`digitIsAscii`,P:`posixIsAscii`,S:`spaceIsAscii`,W:`wordIsAscii`}[r]]=!0}return t}function Yj(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);let t=e[2]===`{`?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function Xj(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&(i!==`0`&&i.length===1||i[0]!==`0`&&+i<=t))return[Tj(n)];let a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t=o[e],r;if(e===0&&t!==`8`&&t!==`9`){if(r=parseInt(t,8),r>127)throw Error(dj`Octal encoded byte above 177 unsupported "${n}"`)}else r=cj(t);a.push(Ej(r,(e===0?`\\`:``)+t))}return a}function Zj(e){let t=[],n=new RegExp(hj,`gy`),r;for(;r=n.exec(e);){let e=r[0];if(e[0]===`{`){let r=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(r){let{min:i,max:a}=r.groups;if(+i>+a&&e.endsWith(`?`)){n.lastIndex--,t.push(Wj(e.slice(0,-1)));continue}}}t.push(Wj(e))}return t}function Qj(e,t){if(!Array.isArray(e.body))throw Error(`Expected node with body array`);if(e.body.length!==1)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}function $j(e){return eM.has(e.type)}var eM=new Set([`AbsenceFunction`,`Backreference`,`CapturingGroup`,`Character`,`CharacterClass`,`CharacterSet`,`Group`,`Quantifier`,`Subroutine`]);function tM(e,t={}){let n={flags:``,normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=vj(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(e,t)=>{let n=r.tokens[a.nextIndex];switch(a.parent=e,a.nextIndex++,n.type){case`Alternator`:return dM();case`Assertion`:return nM(n);case`Backreference`:return rM(n,a);case`Character`:return hM(n.value,{useLastValid:!!t.isCheckingRangeEnd});case`CharacterClassHyphen`:return iM(n,a,t);case`CharacterClassOpen`:return aM(n,a,t);case`CharacterSet`:return oM(n,a);case`Directive`:return yM(n.kind,{flags:n.flags});case`GroupOpen`:return sM(n,a,t);case`NamedCallout`:return CM(n.kind,n.tag,n.arguments);case`Quantifier`:return cM(n,a);case`Subroutine`:return lM(n,a);default:throw Error(`Unexpected token type "${n.type}"`)}},a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},o=EM(bM(r.flags)),s=o.body[0];for(;a.nextIndex<r.tokens.length;){let e=i(s,{});e.type===`Alternative`?(o.body.push(e),s=e):s.body.push(e)}let{capturingGroups:c,hasNumberedRef:l,namedGroupsByName:u,subrout
118ines:d}=a;if(l&&u.size&&!n.rules.captureGroup)throw Error(`Numbered backref/subroutine not allowed when using named capture`);for(let{ref:e}of d)if(typeof e==`number`){if(e>c.length)throw Error(`Subroutine uses a group number that's not defined`);e&&(c[e-1].isSubroutined=!0)}else if(u.has(e)){if(u.get(e).length>1)throw Error(dj`Subroutine uses a duplicate group name "\g<${e}>"`);u.get(e)[0].isSubroutined=!0}else throw Error(dj`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function nM({kind:e}){return fM(fj({"^":`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===dj`\B`||e===dj`\Y`})}function rM({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,pM(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}"`);
118if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return pM(r)}return i(+r)}function iM(e,t,n){let{tokens:r,walk:i}=t,a=t.parent,o=a.body.at(-1),s=r[t.nextIndex];if(!n.isCheckingRangeEnd&&o&&o.type!==`CharacterClass`&&o.type!==`CharacterClassRange`&&s&&s.type!==`CharacterClassOpen`&&s.type!==`CharacterClassClose`&&s.type!==`CharacterClassIntersector`){let e=i(a,{...n,isCheckingRangeEnd:!0});if(o.type===`Character`&&e.type===`Character`)return a.body.pop(),_M(o,e);throw Error(`Invalid character class range`)}return hM(cj(`-`))}function aM({negate:e},t,n){let{tokens:r,walk:i}=t,a=[gM()],o=r[t.nextIndex],s=LM(o);for(;s.type!==`CharacterClassClose`;){if(s.type===`CharacterClassIntersector`)a.push(gM()),t.nextIndex++;else{let e=a.at(-1);e.body.push(i(e,n))}s=LM(r[t.nextIndex],o)}let c=gM({negate:e});return a.length===1?c.body=a[0].body:(c.kind=`intersection`,c.body=a.map(e=>e.body.length===1?e.body[0]:e)),t.nextIndex++,c}function oM({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if(e===`property`){let r=IM(n);if(uj.has(r)&&!o?.has(r))e=`posix`,n=r;else return OM(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o})}return e===`posix`?wM(n,{negate:t}):vM(e,{negate:t})}function sM(e,t,n){let{tokens:r,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:o,walk:s}=t,c=kM(e),l=c.type===`AbsenceFunction`,u=NM(c),d=u&&c.negate;if(c.type===`CapturingGroup`&&(i.push(c),c.name&&lj(a,c.name,[]).push(c)),l&&n.isInAbsenceFunction)throw Error(`Nested absence function not supported by Oniguruma`);let f=RM(r[t.nextIndex]);for(;f.type!==`GroupClose`;){if(f.type===`Alternator`)c.body.push(dM()),t.nextIndex++;else{let e=c.body.at(-1),t=s(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||l,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||d});if(e.body.push(t),(u||n.isInLookbehind)&&!o){let e=`Lookbehind includes a pattern not allowed by Oniguruma`;if(d||n.isInNegLookbehind){if(MM(t)||t.type===`CapturingGroup`)throw Error(e)}else if(MM(t)||NM(t)&&t.negate)throw Error(e)}}f=RM(r[t.nextIndex])}return t.nextIndex++,c}function cM({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!$j(a))throw Error(`Quantifier requires a repeatable token`);let o=TM(e,t,n,a);return i.body.pop(),o}function lM({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,i={"":e,"+":r+e,"-":r+1-e}[a.groups.sign],i<1)throw Error(`Invalid subroutine number`)}else i===`0`&&(i=0);let o=DM(i);return r.push(o),o}function uM(e,t){if(e!==`repeater`)throw Error(`Unexpected absence function kind "${e}"`);return{type:`AbsenceFunction`,kind:e,body:AM(t?.body)}}function dM(e){return{type:`Alternative`,body:jM(e?.body)}}function fM(e,t){let n={type:`Assertion`,kind:e};return(e===`word_boundary`||e===`text_segment_boundary`)&&(n.negate=!!t?.negate),n}function pM(e,t){let n=!!t?.orphan;return{type:`Backreference`,ref:e,...n&&{orphan:n}}}function mM(e,t){let n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!PM(n.name))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:`CapturingGroup`,number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:AM(t?.body)}}function hM(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw Error(e>1310719?`Invalid code point out of range "\\x{${t}}"`:`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:`Character`,value:e}}function gM(e){let t={kind:`union`,negate:!1,...e};return{type:`CharacterClass`,kind:t.kind,negate:t.negate,body:jM(e?.body)}}function _M(e,t){if(t.value<e.value)throw Error(`Character class range out of order`);return{type:`CharacterClassRange`,min:e,max:t}}function vM(e,t){let n=!!t?.negate,r={type:`CharacterSet`,kind:e};return(e===`digit`||e===`hex`||e===`newline`||e===`space`||e===`word`)&&(r.negate=n),(e===`text_segment`||e===`newline`&&!n)&&(r.variableLength=!0),r}function yM(e,t={}){if(e===`keep`)return{type:`Directive`,kind:e};if(e===`flags`)return{type:`Directive`,kind:e,flags:fj(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}function bM(e){return{type:`Flags`,...e}}function xM(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:AM(e?.body)}}function SM(e){let t={behind:!1,negate:!1,...e};return{type:`LookaroundAssertion`,kind:t.behind?`lookbehind`:`lookahead`,negate:t.negate,body:AM(e?.body)}}function CM(e,t,n){return{type:`NamedCallout`,kind:e,tag:t,arguments:n}}function wM(e,t){let n=!!t?.negate;if(!uj.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:`CharacterSet`,kind:`posix`,value:e,negate:n}}function TM(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 EM(e,t){return{type:`Regex`,body:AM(t?.body),flags:e}}
vendor: 4,113 bytes, line 118
118function DM(e){return{type:`Subroutine`,ref:e}}function OM(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(IM(e));if(!r){if(n.normalizeUnknownPropertyNames)r=FM(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(dj`Invalid Unicode property "\p{${e}}"`)}return{type:`CharacterSet`,kind:`property`,value:r??e,negate:n.negate}}function kM({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case`absence_repeater`:return uM(`repeater`);case`atomic`:return xM({atomic:!0});case`capturing`:return mM(i,{name:n});case`group`:return xM({flags:e});case`lookahead`:case`lookbehind`:return SM({behind:t===`lookbehind`,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}function AM(e){if(e===void 0)e=[dM()];else if(!Array.isArray(e)||!e.length||!e.every(e=>e.type===`Alternative`))throw Error(`Invalid body; expected array of one or more Alternative nodes`);return e}function jM(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error(`Invalid body; expected array of nodes`);return e}function MM(e){return e.type===`LookaroundAssertion`&&e.kind===`lookahead`}function NM(e){return e.type===`LookaroundAssertion`&&e.kind===`lookbehind`}function PM(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function FM(e){return e.trim().replace(/[- _]+/g,`_`).replace(/[A-Z][a-z]+(?=[A-Z])/g,`$&_`).replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function IM(e){return e.replace(/[- _]+/g,``).toLowerCase()}function LM(e,t){let n=t;return fj(e,`Unclosed character class${n?.type===`Character`&&n.value===93&&n.raw===`]`?` (started with "]")`:``}`)}function RM(e){return fj(e,`Unclosed group`)}function zM(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,o=null,s=null,c=null){let l=0,u=!1,d={node:a,parent:o,key:s,container:c,root:e,remove(){BM(c).splice(Math.max(0,VM(s)+l),1),l--,u=!0},removeAllNextSiblings(){return BM(c).splice(VM(s)+1)},removeAllPrevSiblings(){let e=VM(s)+l;return l-=e,BM(c).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;c?c[Math.max(0,VM(s)+l)]=e:fj(o,`Can't replace root node`)[s]=e,n&&i(e,o,s,c),u=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(BM(c).splice(Math.max(0,VM(s)+l),1,...e),l+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],o,VM(s)+n+t,c)}u=!0},skip(){u=!0}},{type:f}=a,p=t[`*`],m=t[f],h=typeof p==`function`?p:p?.enter,g=typeof m==`function`?m:m?.enter;if(h?.(d,n),g?.(d,n),!u)switch(f){case`AbsenceFunction`:case`Alternative`:case`CapturingGroup`:case`CharacterClass`:case`Group`:case`LookaroundAssertion`:r(a.body,a);break;case`Assertion`:case`Backreference`:case`Character`:case`CharacterSet`:case`Directive`:case`Flags`:case`NamedCallout`:case`Subroutine`:break;case`CharacterClassRange`:i(a.min,a,`min`),i(a.max,a,`max`);break;case`Quantifier`:i(a.body,a,`body`);break;case`Regex`:r(a.body,a),i(a.flags,a,`flags`);break;default:throw Error(`Unexpected node type "${f}"`)}return m?.exit?.(d,n),p?.exit?.(d,n),l}return i(e),e}function BM(e){if(!Array.isArray(e))throw Error(`Container expected`);return e}function VM(e){if(typeof e!=`number`)throw Error(`Numeric key expected`);return e}var HM=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function UM(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function WM(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}var GM=Object.freeze({DEFAULT:`DEFAULT`,CHAR_CLASS:`CHAR_CLASS`});function KM(e,t,n,r){let i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,`gsu`),a=[!1],o=0,s=``;for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===GM.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?GM.CHAR_CLASS:GM.DEFAULT,negated:a[a.length-1]}):s+=n;continue}e[0]===`[`?(o++,a.push(e[1]===`^`)):e===`]`&&o&&(o--,a.pop()),s+=e}return s}function qM(e,t,n,r){KM(e,t,n,r)}function JM(e,t,n=0,r){if(!new RegExp(t,`su`).test(e))return null;let i=RegExp(`${t}|(?<$skip>\\\\?.)`,`gsu`);i.lastIndex=n;let a=0,o;for(;o=i.exec(e);){let{0:e,groups:{$skip:t}}=o;
118if(!t&&(!r||r===GM.DEFAULT==!a))return o;e===`[`?a++:e===`]`&&a&&a--,i.lastIndex==o.index&&i.lastIndex++}return null}function YM(e,t,n){return!!JM(e,t,0,n)}function XM(e,t){let n=/\\?./gsu;n.lastIndex=t;let r=e.length,i=0,a=1,o;for(;o=n.exec(e);){let[e]=o;if(e===`[`)i++;else if(i)e===`]`&&i--;else if(e===`(`)a++;else if(e===`)`&&(a--,!a)){r=o.index;break}}return e.slice(t,r)}var ZM=new RegExp(String.raw`(?<noncapturingStart>${HM})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,`gsu`);function QM(e,t){let n=t?.hiddenCaptures??[],r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};let i=[0],a=[],o=0,s=0,c=NaN,l;do{l=!1;let t=0,u=0,d=!1,f;for(ZM.lastIndex=Number.isNaN(c)?0:c+7;f=ZM.exec(e);){let{0:p,index:m,groups:{capturingStart:h,noncapturingStart:g}}=f;if(p===`[`)t++;else if(t)p===`]`&&t--;else if(p===`(?>`&&!d)c=m,d=!0;else if(d&&g)u++;else if(h)d?u++:(o++,i.push(o+s));else if(p===`)`&&d){if(!u){s++;let t=o+s;if(e=`${e.slice(0,c)}(?:(?=(${e.slice(c+3,m)}))<$$${t}>)${e.slice(m+1)}`,l=!0,a.push(t),UM(n,t),r.size){let e=new Map;r.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),r=e}break}u--}}}while(l);return n.push(...a),e=KM(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>i.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${i[n]}`}return`\\${n}`},GM.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}var $M=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,eN=new RegExp(String.raw` 119\\(?: \d+ 120 | c[A-Za-z] 121 | [gk]<[^>]+> 122 | [pPu]\{[^\}]+\} 123 | u[A-Fa-f\d]{4} 124 | x[A-Fa-f\d]{2} 125 ) 126| \((?: \? (?: [:=!>] 127 | <(?:[=!]|[^>]+>) 128 | [A-Za-z\-]+: 129 | \(DEFINE\) 130 ))? 131| (?<qBase>${$M})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 132| \\?. 133`.replace(/\s+/g,``),`gsu`);function tN(e){if(!RegExp(`${$M}\\+`).test(e))return{pattern:e};let t=[],n=null,r=null,i=``,a=0,o;for(eN.lastIndex=0;o=eN.exec(e);){let{0:s,index:c,groups:{qBase:l,qMod:u,invalidQ:d}}=o;if(s===`[`)a||(r=c),a++;else if(s===`]`)a?a--:r=null;else if(!a)if(u===`+`&&i&&!i.startsWith(`(`)){if(d)throw Error(`Invalid quantifier "${s}"`);let t=-1;if(/^\{\d+\}$/.test(l))e=WM(e,c+l.length,u,``);else{if(i===`)`||i===`]`){let t=i===`)`?n:r;if(t===null)throw Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${l})${e.slice(c+s.length)}`}else e=`${e.slice(0,c-i.length)}(?>${i}${l})${e.slice(c+s.length)}`;t+=4}eN.lastIndex+=t}else s[0]===`(`?t.push(c):s===`)`&&(n=t.length?t.pop():null);i=s}return{pattern:e}}var nN=String.raw,rN=nN`\(\?R=(?<rDepth>[^\)]+)\)|${nN`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`,iN=nN`\(\?<(?![=!])(?<captureName>[^>]+)>`,aN=nN`${iN}|(?<unnamed>\()(?!\?)`,oN=new RegExp(nN`${iN}|${rN}|\(\?|\\?.`,`gsu`),sN=`Cannot use multiple overlapping recursions`;function cN(e,t){let{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:`plugin`,...t},i=t?.captureTransfers??new Map;if(!new RegExp(rN,`su`).test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if(r===`plugin`&&YM(e,nN`\(\?\(DEFINE\)`,GM.DEFAULT))throw Error(`DEFINE groups cannot be used with recursion`);let a=[],o=YM(e,nN`\\[1-9]`,GM.DEFAULT),s=new Map,c=[],l=!1,u=0,d=0,f;for(oN.lastIndex=0;f=oN.exec(e);){let{0:t,groups:{captureName:p,rDepth:m,gRNameOrNum:h,gRDepth:g}}=f;if(t===`[`)u++;else if(u)t===`]`&&u--;else if(m){if(lN(m),l)throw Error(sN);if(o)throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with global recursion`);let t=e.slice(0,f.index),s=e.slice(oN.lastIndex);if(YM(s,rN,GM.DEFAULT))throw Error(sN);let c=m-1;e=uN(t,s,c,!1,n,a,d),i=pN(i,t,c,a.length,0,d);break}else if(h){lN(g);let u=!1;for(let e of c)if(e.name===h||e.num===+h){if(u=!0,e.hasRecursedWithin)throw Error(sN);break}if(!u)throw Error(nN`Recursive \g cannot be used outside the referenced group "${r===`external`?h:nN`\g<${h}&R=${g}>`}"`);let p=s.get(h),m=XM(e,p);if(o&&YM(m,nN`${iN}|\((?!\?)`,GM.DEFAULT))throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with recursion of capturing groups`);let _=e.slice(p,f.index),v=m.slice(_.length+t.length),y=a.length,b=g-1,x=uN(_,v,b,!0,n,a,d);i=pN(i,_,b,a.length-y,y,d),e=`${e.slice(0,p)}${x}${e.slice(p+m.length)}
133`,oN.lastIndex+=x.length-t.length-_.length-v.length,c.forEach(e=>e.hasRecursedWithin=!0),l=!0}else if(p)d++,s.set(String(d),oN.lastIndex),s.set(p,oN.lastIndex),c.push({num:d,name:p});else if(t[0]===`(`){let e=t===`(`;e&&(d++,s.set(String(d),oN.lastIndex)),c.push(e?{num:d}:{})}else t===`)`&&c.pop()}return n.push(...a),{pattern:e,captureTransfers:i,hiddenCaptures:n}}function lN(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e=+e,e<2||e>100))throw Error(t)}function uN(e,t,n,r,i,a,o){let s=new Set;r&&qM(e+t,iN,({groups:{captureName:e}})=>{s.add(e)},GM.DEFAULT);let c=[n,r?s:null,i,a,o];return`${e}${dN(`(?:${e}`,`forward`,...c)}(?:)${dN(`${t})`,`backward`,...c)}${t}`}function dN(e,t,n,r,i,a,o){let s=e=>t===`forward`?e+2:n-e+2-1,c=``;for(let t=0;t<n;t++){let n=s(t);c+=KM(e,nN`${aN}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:c}})=>{if(c&&r&&!r.has(c))return e;let l=`_$${n}`;if(s||t){let n=o+a.length+1;return a.push(n),fN(i,n),s?e:`(?<${t}${l}>`}return nN`\k<${c}${l}>`},GM.DEFAULT)}return c}function fN(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function pN(e,t,n,r,i,a){if(e.size&&r){let o=0;qM(t,aN,()=>o++,GM.DEFAULT);let s=a-o+i,c=new Map;return e.forEach((e,t)=>{let i=(r-o*n)/n,a=o*n,l=t>s+o?t+r:t,u=[];for(let t of e)if(t<=s)u.push(t);else if(t>s+o+i)u.push(t+r);else if(t<=s+o)for(let e=0;e<=n;e++)u.push(t+o*e);else for(let e=0;e<=n;e++)u.push(t+a+i*e);c.set(l,u)}),c}return e}var mN=String.fromCodePoint,hN=String.raw,gN={},_N=globalThis.RegExp;gN.flagGroups=(()=>{try{new _N(`(?i:)`)}catch{return!1}return!0})(),gN.unicodeSets=(()=>{try{new _N(`[[]]`,`v`)}catch{return!1}return!0})(),gN.bugFlagVLiteralHyphenIsRange=gN.unicodeSets?(()=>{try{new _N(hN`[\d\-a]`,`v`)}catch{return!0}return!1})():!1,gN.bugNestedClassIgnoresNegation=gN.unicodeSets&&new _N(`[[^a]]`,`v`).test(`a`);function vN(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function yN(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function bN(e,t){return SN[e]>=SN[t]}function xN(e,t){if(e==null)throw Error(t??`Value expected`);return e}var SN={ES2025:2025,ES2024:2024,ES2018:2018},CN={auto:`auto`,ES2025:`ES2025`,ES2024:`ES2024`,ES2018:`ES2018`};function wN(e={}){if({}.toString.call(e)!==`[object Object]`)throw Error(`Unexpected options`);if(e.target!==void 0&&!CN[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:`default`,avoidSubclass:!1,flags:``,global:!1,hasIndices:!1,lazyCompileLength:1/0,target:`auto`,verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target===`auto`&&(t.target=gN.flagGroups?`ES2025`:gN.unicodeSets?`ES2024`:`ES2018`),t}var TN=`[ -\r ]`,EN=new Set([mN(304),mN(305)]),DN=hN`[\p{L}\p{M}\p{N}\p{Pc}]`;function ON(e){if(EN.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=MN.get(n),a=AN.get(n),o=jN.get(n);return[...r].length===1&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var kN=new Map(`C Other 134Cc Control cntrl 135Cf Format 136Cn Unassigned 137Co Private_Use 138Cs Surrogate 139L Letter 140LC Cased_Letter 141Ll Lowercase_Letter 142Lm Modifier_Letter 143Lo Other_Letter 144Lt Titlecase_Letter 145Lu Uppercase_Letter 146M Mark Combining_Mark 147Mc Spacing_Mark 148Me Enclosing_Mark 149Mn Nonspacing_Mark 150N Number 151Nd Decimal_Number digit 152Nl Letter_Number 153No Other_Number 154P Punctuation punct 155Pc Connector_Punctuation 156Pd Dash_Punctuation 157Pe Close_Punctuation 158Pf Final_Punctuation 159Pi Initial_Punctuation 160Po Other_Punctuation 161Ps Open_Punctuation 162S Symbol 163Sc Currency_Symbol 164Sk Modifier_Symbol 165Sm Math_Symbol 166So Other_Symbol 167Z Separator 168Zl Line_Separator 169Zp Paragraph_Separator 170Zs Space_Separator 171ASCII 172ASCII_Hex_Digit AHex 173Alphabetic Alpha 174Any 175Assigned 176Bidi_Control Bidi_C 177Bidi_Mirrored Bidi_M 178Case_Ignorable CI 179Cased 180Changes_When_Casefolded CWCF 181Changes_When_Casemapped CWCM 182Changes_When_Lowercased CWL 183Changes_When_NFKC_Casefolded CWKCF 184Changes_When_Titlecased CWT 185Changes_When_Uppercased CWU 186Dash 187Default_Ignorable_Code_Point DI 188Deprecated Dep 189Diacritic Dia 190Emoji 191Emoji_Component EComp 192Emoji_Modifier EMod 193Emoji_Modifier_Base EBase 194Emoji_Presentation EPres 195Extended_Pictographic ExtPict 196Extender Ext 197Grapheme_Base Gr_Base 198Grapheme_Extend Gr_Ext
199Hex_Digit Hex 200IDS_Binary_Operator IDSB 201IDS_Trinary_Operator IDST 202ID_Continue IDC 203ID_Start IDS 204Ideographic Ideo 205Join_Control Join_C 206Logical_Order_Exception LOE 207Lowercase Lower 208Math 209Noncharacter_Code_Point NChar 210Pattern_Syntax Pat_Syn 211Pattern_White_Space Pat_WS 212Quotation_Mark QMark 213Radical 214Regional_Indicator RI 215Sentence_Terminal STerm 216Soft_Dotted SD 217Terminal_Punctuation Term 218Unified_Ideograph UIdeo 219Uppercase Upper 220Variation_Selector VS 221White_Space space 222XID_Continue XIDC 223XID_Start XIDS`.split(/\s/).map(e=>[IM(e),e])),AN=new Map([[`s`,mN(383)],[mN(383),`s`]]),jN=new Map([[mN(223),mN(7838)],[mN(107),mN(8490)],[mN(229),mN(8491)],[mN(969),mN(8486)]]),MN=new Map([FN(453),FN(456),FN(459),FN(498),...IN(8072,8079),...IN(8088,8095),...IN(8104,8111),FN(8124),FN(8140),FN(8188)]),NN=new Map([[`alnum`,hN`[\p{Alpha}\p{Nd}]`],[`alpha`,hN`\p{Alpha}`],[`ascii`,hN`\p{ASCII}`],[`blank`,hN`[\p{Zs}\t]`],[`cntrl`,hN`\p{Cc}`],[`digit`,hN`\p{Nd}`],[`graph`,hN`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],[`lower`,hN`\p{Lower}`],[`print`,hN`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],[`punct`,hN`[\p{P}\p{S}]`],[`space`,hN`\p{space}`],[`upper`,hN`\p{Upper}`],[`word`,hN`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],[`xdigit`,hN`\p{AHex}`]]);function PN(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n}function FN(e){let t=mN(e);return[t.toLowerCase(),t]}function IN(e,t){return PN(e,t).map(e=>FN(e))}var LN=new Set([`Lower`,`Lowercase`,`Upper`,`Uppercase`,`Ll`,`Lowercase_Letter`,`Lt`,`Titlecase_Letter`,`Lu`,`Uppercase_Letter`]);function RN(e,t){let n={accuracy:`default`,asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:`ES2025`,...t};HN(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:bN(n.bestEffortTarget,`ES2024`),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};zM(e,zN,r);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return zM(e,BN,a),zM(e,VN,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}var zN={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if(i===`repeater`){let e=xM();e.body[0].body.push(SM({negate:!0,body:r}),OM(`Any`));let i=xM();i.body[0].body.push(TM(`greedy`,0,1/0,e)),n(sP(i,t),{traverse:!0})}else throw Error(`Unsupported absence function "(?~|"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>e.kind===`flags`);for(let e=n+1;e<t.body.length;e++){let n=t.body[e];yN(r,n,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=YN(t.get(e));if(n){let t=xM({flags:n});t.body[0].body=e.body,e.body=[sP(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:c,negate:l}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=s;if(c===`text_segment_boundary`)throw Error(`Unsupported text segment boundary "\\${l?`Y`:`y`}"`);if(c===`line_end`)o(sP(SM({body:[dM({body:[fM(`string_end`)]}),dM({body:[hM(10)]})]}),t));else if(c===`line_start`)o(sP(iP(hN`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c===`search_start`)if(f.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&tP(e))o(sP(SM({negate:!0}),t));else if(d)throw Error(hN`Uses "\G" in a way that requires a subclass`);else o(oP(fM(`string_start`),t)),s.strategy=`clip_search`}else if(!(c===`string_end`||c===`string_start`))if(c===`string_end_newline`)o(sP(iP(hN`(?=\n?\z)`),t));else if(c===`word_boundary`){if(!p&&!u){let e=`(?:(?<=${DN})(?!${DN})|(?<!${DN})(?=${DN}))`,n=`(?:(?<=${DN})(?=${DN})|(?<!${DN})(?!${DN}))`;o(sP(iP(l?n:e),t))}}else throw Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!rP(n)&&(n=JN(n,t),e.ref=n)},CapturingGroup({node:e}
vendor: 10,160 bytes, lines 223-226
223,{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!rP(r)&&(r=JN(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===`intersection`&&n(sP(gM({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:c,negate:l,value:u}=e;if(a&&(c===`digit`||u===`digit`)){n(oP(vM(`digit`,{negate:l}),t));return}if(o&&(c===`space`||u===`space`)){n(sP(aP(iP(TN),l),t));return}if(s&&(c===`word`||u===`word`)){n(oP(vM(`word`,{negate:l}),t));return}if(c===`any`)n(oP(OM(`Any`),t));else if(c===`digit`)n(oP(OM(`Nd`,{negate:l}),t));else if(c!==`dot`)if(c===`text_segment`){if(r===`strict`)throw Error(hN`Use of "\X" requires non-strict accuracy`);let e=`\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?`,a=hN`\p{RI}{2}|${e}(?:\u200D${e})*`;n(sP(iP(hN`(?>\r\n|${i?hN`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c===`hex`)n(oP(OM(`AHex`,{negate:l}),t));else if(c===`newline`)n(sP(iP(l?`[^ 224]`:`(?>\r 225?|[ 226\v\f \u2028\u2029])`),t));else if(c===`posix`)if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${mN(e.codePointAt(0)-1)}${mN(e.codePointAt(2)+1)}-\u{10FFFF}`),n(sP(iP(`[${e}]`),t))}else n(sP(aP(iP(NN.get(u)),l),t));else if(c===`property`)kN.has(IM(u))||(e.key=`sc`);else if(c===`space`)n(oP(OM(`space`,{negate:l}),t));else if(c===`word`)n(sP(aP(iP(DN),l),t));else throw Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`)if(!c.enable&&!c.disable)r();else{let e=xM({flags:c});e.body[0].body=o(),i(sP(e,t),{traverse:!0})}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&Qj(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(hN`Uses "\K" in a way that's unsupported`);let o=SM({behind:!0});o.body[0].body=a(),i(sP(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(sP(SM({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=xM();t.body[0].body.push(e.body),e.body=sP(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=QN(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(hN`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!rP(n)&&(n=JN(n,t),e.ref=n)}},BN={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=oP(KN(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&yN(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=yN(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=vN(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&!(n.type===`CapturingGroup`&&(n.name===a||n.number===a)););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?KN(0):GN(o,r.groupOriginByCopy,null),l=c;if(!s){let e=YN(qN(o,e=>e.type===`Group`&&!!e.flags)),t=e?vN(r.globalFlags,e):r.globalFlags;UN(t,r.currentFlags)||(l=xM({flags:XN(t)}),l.body[0].body.push(c))}n(sP(l,t),{traverse:!s})}},VN={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=>WN(t,e));i.length?i.length>1?n(sP(xM({atomic:!0,body:i.reverse().map(e=>dM({body:[pM(e.number)]}))}),t)):e.ref=i[0].number:n(sP(SM({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=mM();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function HN(e){zM(e,{"*"({node:e,parent:t}){e.parent=t}})}function UN(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function WN(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=ZN(n.parent);for(let r of t){if(r===n)break;if(r===e||$N(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function GN(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=GN(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function KN(e){let t=DM(e);return t.isRecursive=!0,t}function qN(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function JN(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function YN(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 XN({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function ZN(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function QN(e){let t=e.find(e=>e.kind===`search_start`||nP(e,{negate:!1})||!eP(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=QN(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function $N(e,t){let n=ZN(e)??[];for(let e of n)if(e===t||$N(e,t))return!0;return!1}function eP({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function tP(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function nP(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Qj(e.body[0],{type:`Assertion`,kind:`search_start`})}function rP(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function iP(e,t){let n=tM(e,{...t,unicodePropertyMap:kN}).body;return n.length>1||n[0].body.length>1?xM({body:n}):n[0].body[0]}function aP(e,t){return e.negate=t,e}function oP(e,t){return e.parent=t,e}function sP(e,t){return HN(e),e.parent=t,e}function cP(e,t){let n=wN(t),r=bN(n.target,`ES2024`),i=bN(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];zM(e,lP,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,xN(uP[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&yN(f._captureTransfers,e.transferTo,[]).push(t)}),f}var lP={"*":{enter({node:e},t){if(SP(e)){let n=t.getCurrentModI();t.pushModI(e.flags?vN({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){SP(e)&&t.popModI()}}
226,Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){gP(mN(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),_P(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&LN.has(e.value)&&t.setHasCasedChar()}},uP={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?hN`\B`:hN`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=mN(e),r=vP(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&gP(n)){let e=ON(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);gN.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(wP)&&(o=[hM(45),...o.filter(e=>!wP(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||gN.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=xM(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=dM({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(gN.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=vP(n,i),o=vP(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&yP(_P(e)).forEach(e=>{s.add(Array.isArray(e)?`${vP(e[0],i)}-${vP(e[1],i)}`:vP(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:hN`[^\n]`;if(e===`digit`)return t?hN`\D`:hN`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&LN.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?hN`\P`:hN`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?hN`\W`:hN`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=vN(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${bP(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+xP(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:hN`\g<${t}&R=${r}>`}}
vendor: 3,324 bytes, line 226
226,dP=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),fP=new Set([`-`,`\\`,`]`,`^`,`[`]),pP=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),mP=new Map([[9,hN`\t`],[10,hN`\n`],[11,hN`\v`],[12,hN`\f`],[13,hN`\r`],[8232,hN`\u2028`],[8233,hN`\u2029`],[65279,hN`\uFEFF`]]),hP=/^\p{Cased}$/u;function gP(e){return hP.test(e)}function _P(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=mN(e);if(!gP(t))continue;let o=ON(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function vP(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(mP.has(e))return mP.get(e);if(e<32||e>126&&e<160||e>262143||t&&CP(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?pP:fP:dP,a=mN(e);return(i.has(a)?`\\`:``)+a}function yP(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function bP(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function xP({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function SP({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function CP(e){return e>47&&e<58}function wP({type:e,value:t}){return e===`Character`&&t===45}var TP=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=DP(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(EP(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=OP(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function EP(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;
226r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function DP(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)yN(n,t,{}).transferTo=e;return n}function OP(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function kP(e,t){let n=AP(e,t);return n.options?new TP(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function AP(e,t){let n=wN(t),r=RN(tM(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:kN}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=cP(r,n),a=cN(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=QM(tN(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}var jP=4294967295,MP=class{constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}regexps;findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>e==null?{start:jP,end:jP,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}};function NP(e,t){return kP(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function PP(e={}){let t=Object.assign({target:`auto`,cache:new Map},e);return t.regexConstructor||=e=>NP(e,{target:t.target}),{createScanner(e){return new MP(e,t)},createString(e){return{content:e}}}}var wse=PP({forgiving:!0}),Tse=Object.fromEntries(jA.flatMap(e=>(e.aliases??[]).map(t=>[t,e.id]))),FP=new Set(Object.keys(PA)),IP=e=>{let t=e.trim().toLowerCase();return Tse[t]||(FP.has(t),t)},LP=new Map,RP=new Map,zP=new Map,BP=e=>typeof e==`string`?e:e.name??`custom`,Ese=(e,t)=>`${e}-${BP(t[0])}-${BP(t[1])}`,Dse=(e,t,n)=>{let r=e.slice(0,100),i=e.length>100?e.slice(-100):``;return`${t}:${n[0]}:${n[1]}:${e.length}:${r}:${i}`},Ose=(e,t)=>{let n=Ese(e,t);if(LP.has(n))return LP.get(n);let r=sj({themes:t,langs:[e],engine:wse});return LP.set(n,r),r};function kse(e={}){let t=e.themes??[`github-light`,`github-dark`];return{name:`shiki`,type:`code-highlighter`,supportsLanguage(e){let t=IP(e);return FP.has(t)},getSupportedLanguages(){return Array.from(FP)},getThemes(){return t},highlight({code:e,language:t,themes:n},r){let i=IP(t),a=[BP(n[0]),BP(n[1])],o=Dse(e,i,a);return RP.has(o)?RP.get(o):(r&&(zP.has(o)||zP.set(o,new Set),zP.get(o).add(r)),Ose(FP.has(i)?i:`text`,n).then(t=>{let n=t.getLoadedLanguages().includes(i)?i:`text`,r=t.codeToTokens(e,{lang:n,themes:{light:a[0],dark:a[1]}});RP.set(o,r);let s=zP.get(o);if(s){for(let e of s)e(r);zP.delete(o)}}).catch(e=>{console.error(`[Streamdown Code] Failed to highlight code:`,e),zP.delete(o)}),null)}}}var Ase=kse(),VP=/[#.]/g;function jse(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){VP.lastIndex=i;let e=VP.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}function HP(e,t,n){let r=n?Fse(n):void 0;function i(n,i,...a){let o;if(n==null){o={type:`root`,children:[]};let e=i;a.unshift(e)}else{o=jse(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,Mse(i))a.unshift(i);else for(let[t,n]of Object.entries(i))Nse(e,o.properties,t,n)}for(let e of a)UP(o.children,e);return o.type===`element`&&o.tagName===`template`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function Mse(e){if(typeof e!=`object`||!e||Array.isArray(e))return!0;
vendor: 4,112 bytes, line 226
226if(typeof e.type!=`string`)return!1;let t=e,n=Object.keys(e);for(let e of n){let n=t[e];if(n&&typeof n==`object`){if(!Array.isArray(n))return!0;let e=n;for(let t of e)if(typeof t!=`number`&&typeof t!=`string`)return!0}}return!!(`children`in e&&Array.isArray(e.children))}function Nse(e,t,n,r){let i=Sx(e,n),a;if(r!=null){if(typeof r==`number`){if(Number.isNaN(r))return;a=r}else a=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?Dx(r):i.commaSeparated?Rb(r):i.commaOrSpaceSeparated?Dx(Rb(r).join(` `)):WP(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?Pse(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(WP(i,i.property,t));a=e}i.property===`className`&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function UP(e,t){if(t!=null)if(typeof t==`number`||typeof t==`string`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(let n of t)UP(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?UP(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function WP(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||Yb(n)===Yb(t)))return!0}return n}function Pse(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function Fse(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var Ise=`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`.split(`.`),GP=HP(Tx,`div`),KP=HP(Ex,`g`,Ise),qP={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/`};function Lse(e,t){return JP(e,t||{})||{type:`root`,children:[]}}function JP(e,t){let n=Rse(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Rse(e,t){switch(e.nodeType){case 1:return Hse(e,t);case 3:return Bse(e);case 8:return Vse(e);case 9:return YP(e,t);case 10:return zse();case 11:return YP(e,t);default:return}}function YP(e,t){return{type:`root`,children:XP(e,t)}}function zse(){return{type:`doctype`}}function Bse(e){return{type:`text`,value:e.nodeValue||``}}function Vse(e){return{type:`comment`,value:e.nodeValue||``}}function Hse(e,t){let n=e.namespaceURI,r=n===qP.svg?KP:GP,i=n===qP.html?e.tagName.toLowerCase():e.tagName,a=n===qP.html&&i===`template`?e.content:e,o=e.getAttributeNames(),s={},c=-1;for(;++c<o.length;)s[o[c]]=e.getAttribute(o[c])||``;return r(i,s,XP(a,t))}function XP(e,t){let n=e.childNodes,r=[],i=-1;for(;++i<n.length;){let e=JP(n[i],t);e!==void 0&&r.push(e)}return r}var Use=new DOMParser;function Wse(e,t){return Lse(t?.fragment?Gse(e):Use.parseFromString(e,`text/html`))}function Gse(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var ZP=(function(e,t,n){let r=UC(n);if(!e||!e.type||!e.children)throw Error(`Expected parent node`);if(typeof t==`number`){if(t<0||t===1/0)throw Error(`Expected positive finite number as index`)}else if(t=e.children.indexOf(t),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]}),QP=(function(e){if(e==null)return Jse;if(typeof e==`string`)return qse(e);if(typeof e==`object`)return Kse(e);if(typeof e==`function`)return $P(e);throw Error("Expected function, string, or array as `test`")});function Kse(e){let t=[],n=-1;for(;++n<e.length;)t[n]=QP(e[n]);return $P(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function qse(e){return $P(t);function t(t){return t.tagName===e}}function $P(e){return t;
226function t(t,n,r){return!!(Yse(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Jse(e){return!!(e&&typeof e==`object`&&`type`in e&&e.type===`element`&&`tagName`in e&&typeof e.tagName==`string`)}function Yse(e){return typeof e==`object`&&!!e&&`type`in e&&`tagName`in e}var eF=/\n/g,tF=/[\t ]+/g,nF=QP(`br`),rF=QP(rce),Xse=QP(`p`),iF=QP(`tr`),Zse=QP([`datalist`,`head`,`noembed`,`noframes`,`noscript`,`rp`,`script`,`style`,`template`,`title`,nce,ice]),aF=QP(`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`.split(`.`));function Qse(e,t){let n=t||{},r=`children`in e?e.children:[],i=aF(e),a=cF(e,{whitespace:n.whitespace||`normal`,breakBefore:!1,breakAfter:!1}),o=[];(e.type===`text`||e.type===`comment`)&&o.push(...sF(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...oF(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?nF(r[s+1]):i}));let c=[],l;for(s=-1;++s<o.length;){let e=o[s];typeof e==`number`?l!==void 0&&e>l&&(l=e):e&&(l!==void 0&&l>-1&&c.push(` 227`.repeat(l)||` `),l=-1,c.push(e))}return c.join(``)}function oF(e,t,n){return e.type===`element`?$se(e,t,n):e.type===`text`?n.whitespace===`normal`?sF(e,n):ece(e):[]}function $se(e,t,n){let r=cF(e,n),i=e.children||[],a=-1,o=[];if(Zse(e))return o;let s,c;for(nF(e)||iF(e)&&ZP(t,e,iF)?c=` 228`:Xse(e)?(s=2,c=2):aF(e)&&(s=1,c=1);++a<i.length;)o=o.concat(oF(i[a],e,{whitespace:r,breakBefore:a?void 0:s,breakAfter:a<i.length-1?nF(i[a+1]):c}));return rF(e)&&ZP(t,e,rF)&&o.push(` `),s&&o.unshift(s),c&&o.push(c),o}function sF(e,t){let n=String(e.value),r=[],i=[],a=0;for(;a<=n.length;){eF.lastIndex=a;let e=eF.exec(n),i=e&&`index`in e?e.index:n.length;r.push(tce(n.slice(a,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,``),a!==0||t.breakBefore,i!==n.length||t.breakAfter)),a=i+1}let o=-1,s;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),s=void 0):r[o]?(typeof s==`number`&&i.push(s),i.push(r[o]),s=0):(o===0||o===r.length-1)&&i.push(0);return i}function ece(e){return[String(e.value)]}function tce(e,t,n){let r=[],i=0,a;for(;i<e.length;){tF.lastIndex=i;let n=tF.exec(e);a=n?n.index:e.length,!i&&!a&&n&&!t&&r.push(``),i!==a&&r.push(e.slice(i,a)),i=n?a+n[0].length:a}return i!==a&&!n&&r.push(``),r.join(` `)}function cF(e,t){if(e.type===`element`){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`;default:}}return t.whitespace}function nce(e){return!!(e.properties||{}).hidden}function rce(e){return e.tagName===`td`||e.tagName===`th`}function ice(e){return e.tagName===`dialog`&&!(e.properties||{}).open}var ace=t({ParseError:()=>P,SETTINGS_SCHEMA:()=>fF,__defineFunction:()=>oL,__defineMacro:()=>G,__defineSymbol:()=>I,__domTree:()=>tB,__parse:()=>Xz,__renderToDomTree:()=>Qz,__renderToHTMLTree:()=>$z,__setFontMetrics:()=>YF,default:()=>nB,render:()=>Jz,renderToString:()=>Yz,version:()=>eB}),P=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`â¦`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`â¦`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},oce=/([A-Z])/g,sce=e=>e.replace(oce,`-$1`).toLowerCase(),cce={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},lce=/[&><"']/g,lF=e=>String(e).replace(lce,e=>cce[e]),uF=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?uF(e.body[0]):e:e.type===`font`?uF(e.body):e,uce=new Set([`mathord`,`textord`,`atom`]),dF=e=>
vendor: 4,184 bytes, line 228
228uce.has(uF(e).type),dce=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},fF={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function fce(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function pce(e){return e.default===void 0?fce(Array.isArray(e.type)?e.type[0]:e.type):e.default}function mce(e,t,n,r){var i=n[t];e[t]=i===void 0?pce(r):r.processor?r.processor(i):i}var pF=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(fF)){var n=fF[t];n&&mce(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new P(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTe
228X-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=dce(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},mF=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return CF[hce[this.id]]}sub(){return CF[gce[this.id]]}fracNum(){return CF[_ce[this.id]]}fracDen(){return CF[vce[this.id]]}cramp(){return CF[yce[this.id]]}text(){return CF[bce[this.id]]}isTight(){return this.size>=2}},hF=0,gF=1,_F=2,vF=3,yF=4,bF=5,xF=6,SF=7,CF=[new mF(hF,0,!1),new mF(gF,0,!0),new mF(_F,1,!1),new mF(vF,1,!0),new mF(yF,2,!1),new mF(bF,2,!0),new mF(xF,3,!1),new mF(SF,3,!0)],hce=[yF,bF,yF,bF,xF,SF,xF,SF],gce=[bF,bF,bF,bF,SF,SF,SF,SF],_ce=[_F,vF,yF,bF,xF,SF,xF,SF],vce=[vF,vF,bF,bF,SF,SF,SF,SF],yce=[gF,gF,vF,vF,bF,bF,SF,SF],bce=[hF,gF,_F,vF,_F,vF,_F,vF],wF={DISPLAY:CF[hF],TEXT:CF[_F],SCRIPT:CF[yF],SCRIPTSCRIPT:CF[xF]},TF=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function xce(e){for(var t=0;t<TF.length;t++)for(var n=TF[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var EF=[];TF.forEach(e=>e.blocks.forEach(e=>EF.push(...e)));function DF(e){for(var t=0;t<EF.length;t+=2)if(e>=EF[t]&&e<=EF[t+1])return!0;return!1}var OF=e=>e+` `+e,kF=80,Sce=function(e,t){return`M95,`+(622+e+t)+` 229c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 230c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 231c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 232s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 233c69,-144,104.5,-217.7,106.5,-221 234l`+e/2.075+` -`+e+` 235c5.3,-9.3,12,-14,20,-14 236H400000v`+(40+e)+`H845.2724 237s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 238c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z 239M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Cce=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119 240c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 241c340,-704.7,510.7,-1060.3,512,-1067 242l`+e/2.084+` -`+e+` 243c4.7,-7.3,11,-11,19,-11 244H40000v`+(40+e)+`H1012.3 245s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 246c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 247s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 248c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z 249M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},wce=function(e,t){return`M983 `+(10+e+t)+` 250l`+e/3.13+` -`+e+` 251c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` 252H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 253s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 254c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 255c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 256c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 257c53.7,-170.3,84.5,-266.8,92.5,-289.5z 258M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Tce=function(e,t){return`M424,`+(2398+e+t)+` 259c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 260c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 261s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 262s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 263l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000 264v`+(40+e)+`H1014.6 265s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 266c-2,6,-10,9,-24,9 267c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+` 268h400000v`+(40+e)+`h-400000z`},Ece=function(e,t){return`M473,`+(2713+e+t)+` 269c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+` 270c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 271s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 272c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 273c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 274s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 275606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},Dce=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},Oce=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` 276H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 277h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 278c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 279219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},kce=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=Sce(t,kF);break;case`sqrtSize1`:r=Cce(t,kF);break;case`sqrtSize2`:r=wce(t,kF);break;case`sqrtSize3`:r=Tce(t,kF);break;case`sqrtSize4`:r=Ece(t,kF);break;case`sqrtTall`:r=Oce(t,kF,n)}return r},Ace=function(e,t){switch(e){case`â`:return OF(`M291 0 H417 V`+t+` H291z`);case`â£`:return OF(`M145 0 H188 V`+t+` H145z`);case`â¥`:return OF(`M145 0 H188 V`+t+` H145z`)+OF(`M367 0 H410 V`+t+` H367z`);case`â`:return OF(`M457 0 H583 V`+t+` H457z`);case`â¢`:return OF(`M319 0 H403 V`+t+` H319z`);case`â¥`:return OF(`M263 0 H347 V`+t+` H263z`);case`âª`:return OF(`M384 0 H504 V`+t+` H384z`);case`â`:return OF(`M312 0 H355 V`+t+` H312z`);case`â`:return OF(`M257 0 H300 V`+t+` H257z`)+OF(`M478 0 H521 V`+t+` H478z`);default:return``}},AF={doubleleftarrow:`M262 157 280l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 281 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 282 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 283c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 284 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 285-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 286-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z 287m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l 288-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 289 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 290-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 291-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 292-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 293c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 294-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 295 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 296-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 297c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 298 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 299 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 300 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 301-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 302 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 303 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 304 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 305-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 306H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 307 435 0h399565z`,leftgroupunder:`M400000 262 308H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 309 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 310-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 311-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 312-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 313 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 314-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 315-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z 316m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 317 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 318 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 319-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2
31911s5.3 5.3 12 320 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 321-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 322v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 323-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 324-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 325 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:OF(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:OF(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:OF(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:OF(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 326-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 327c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 328 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:OF(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334 329c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 330-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 331 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 332 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 333c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 334 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 335 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 336-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 337-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z 338m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 33960.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 340-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z 341m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 342c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 343-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z 344m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 34585.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 346-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z 347m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 348c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 349-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 350 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 351 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 352-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 353-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 354 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l 355-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 356s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 357c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 358 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 359-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 360 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 361 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 362-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 363-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 364 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 365-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 366 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z 367m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 368 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
369-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 370-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 371 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 372 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 373-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z 374m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 375 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 376-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 377 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:OF(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:OF(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:OF(`M399995 440 h-120 V150 H0 v-120 H399995z`)
vendor: 6,574 bytes, lines 377-450
377,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 378 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 379-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 380-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 381 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 382-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 383-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 384-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 385 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 386c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 387 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 388 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 389-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 390 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 391-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 392 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 393 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 394-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 395-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 396 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 397c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 398 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 399-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 400 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 401 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 402 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 403-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 404 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 405 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 406 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 4073.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 40810.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 409-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 410-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 411H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 412c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 413c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 414-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 415-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 416-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, 417-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 418-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 419-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 420-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 421c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 422c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 423s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 424121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 425s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 426c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z 427M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 428-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 42913.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 430-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 431-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 432-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 433151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 434c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 435c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 436c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 437c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z 438M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 439c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 440-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 441c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 442M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 443c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 4441c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, 445-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z 446M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 447c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 448-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 449c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 450M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 9,324 bytes, lines 450-478
450jce=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84 451H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z 452M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 453c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 454c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 455c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 456c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z 457M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 458c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 459c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+` v585 h43z`;case`lfloor`:return`M319 602 V0 H403 V602 v`+t+` v1715 h263 v84 H319z 460MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z 461MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z 462M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z 463M347 1759 V0 h-84 V1759 v`+t+` v602 h84z`;case`lparen`:return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 464c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, 465-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 466949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 467c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, 468-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 469l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, 470-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case`rparen`:return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 47163,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 472c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+` 473c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 474c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 475c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 476c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 477l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, 478-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function Mce(e){return`toText`in e}var jF=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(Mce(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},MF={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Nce={ex:!0,em:!0,mu:!0},NF=function(e){return typeof e!=`string`&&(e=e.unit),e in MF||e in Nce||e===`ex`},PF=function(e,t){var n;if(e.unit in MF)n=MF[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new P(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},F=function(e){return+e.toFixed(4)+`em`},FF=function(e){return e.filter(e=>e).join(` `)},IF=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=sce(n)+`:`+r+`;`)}return t},LF=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},RF=function(e){var t=document.createElement(e);t.className=FF(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},Pce=/[\s"'>/=\x00-\x1f]/,zF=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+lF(FF(this.classes))+`"`);var n=IF(this.style);n&&(t+=` style="`+lF(n)+`"`);for(var r of Object.keys(this.attributes)){if(Pce.test(r))throw new P(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+lF(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},BF=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,LF.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return RF.call(this,`span`)}toMarkup(){return zF.call(this,`span`)}},VF=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,LF.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return RF.call(this,`a`)}toMarkup(){return zF.call(this,`a`)}},Fce=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+lF(this.src)+`"`+(` alt="`+lF(this.alt)+`"`),t=IF(this.style);return t&&(e+=` style="`+lF(t)+`"`),e+=`'/>`,e}},Ice={î:`ıÌ`,ï:`ıÌ`,Ã:`ıÌ`,ì:`ıÌ`},HF=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=xce(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïÃì]/.test(this.text)&&(this.text=Ice[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=F(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=FF(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=lF(FF(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+F(this.italic)+`;`),n+=IF(this.style),n&&(e=!0,t+=` style="`+lF(n)+`"`);var r=lF(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},UF=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+lF(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},WF=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,AF[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+lF(this.alternate)+`"/>`:`<path d="`+lF(AF[this.pathName])+`"/>`}},GF=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+lF(this.attributes[t])+`"`;return e+=`/>`,e}};function Lce(e){if(e instanceof HF)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Rce(e){if(e instanceof BF)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var zce=e=>e instanceof BF||e instanceof VF||e instanceof jF,KF
vendor: 20,502 bytes, line 478
478={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],
vendor: 37,127 bytes, line 478
478116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},
vendor: 6,770 bytes, line 478
478qF={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},JF={Ã
:`A`,Ã:`D`,Ã:`o`,Ã¥:`a`,ð:`d`,þ:`o`,Ð:`A`,Ð:`B`,Ð:`B`,Ð:`F`,Ð:`A`,Ð:`E`,Ð:`K`,Ð:`3`,Ð:`N`,Ð:`N`,Ð:`K`,Ð:`N`,Ð:`M`,Ð:`H`,Ð:`O`,Ð:`N`,Ð :`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Ð¥:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Ð:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,Ñ:`p`,Ñ:`c`,Ñ:`o`,Ñ:`y`,Ñ:`b`,Ñ
:`x`,Ñ:`n`,Ñ:`n`,Ñ:`w`,Ñ:`w`,Ñ:`a`,Ñ:`m`,Ñ:`a`,Ñ:`e`,Ñ:`m`,Ñ:`r`};function YF(e,t){KF[e]=t}function XF(e,t,n){if(!KF[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=KF[t][r];if(!i&&e[0]in JF&&(r=JF[e[0]].charCodeAt(0),i=KF[t][r]),!i&&n===`text`&&DF(r)&&(i=KF[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var ZF={};function Bce(e){var t=e>=5?0:e>=3?1:2;if(!ZF[t]){var n=ZF[t]={cssEmPerMu:qF.quad[t]/18};for(var r in qF)qF.hasOwnProperty(r)&&(n[r]=qF[r][t])}return ZF[t]}var QF={math:{},text:{}};function I(e,t,n,r,i,a){QF[e][i]={font:t,group:n,replace:r},a&&r&&(QF[e][r]=QF[e][i])}var L=`math`,R=`text`,z=`main`,B=`ams`,$F=`accent-token`,eI=`bin`,tI=`close`,nI=`inner`,rI=`mathord`,iI=`op-token`,aI=`open`,oI=`punct`,V=`rel`,sI=`spacing`,H=`textord`;I(L,z,V,`â¡`,`\\equiv`,!0),I(L,z,V,`âº`,`\\prec`,!0),I(L,z,V,`â»`,`\\succ`,!0),I(L,z,V,`â¼`,`\\sim`,!0),I(L,z,V,`â¥`,`\\perp`),I(L,z,V,`⪯`,`\\preceq`,!0),I(L,z,V,`⪰`,`\\succeq`,!0),I(L,z,V,`â`,`\\simeq`,!0),I(L,z,V,`â£`,`\\mid`,!0),I(L,z,V,`âª`,`\\ll`,!0),I(L,z,V,`â«`,`\\gg`,!0),I(L,z,V,`â`,`\\asymp`,!0),I(L,z,V,`â¥`,`\\parallel`),I(L,z,V,`â`,`\\bowtie`,!0),I(L,z,V,`â£`,`\\smile`,!0),I(L,z,V,`â`,`\\sqsubseteq`,!0),I(L,z,V,`â`,`\\sqsupseteq`,!0),I(L,z,V,`â`,`\\doteq`,!0),I(L,z,V,`â¢`,`\\frown`,!0),I(L,z,V,`â`,`\\ni`,!0),I(L,z,V,`â`,`\\propto`,!0),I(L,z,V,`â¢`,`\\vdash`,!0),I(L,z,V,`â£`,`\\dashv`,!0),I(L,z,V,`â`,`\\owns`),I(L,z,oI,`.`,`\\ldotp`),I(L,z,oI,`â
`,`\\cdotp`),I(L,z,oI,`â
`,`·`),I(R,z,H,`â
`,`·`),I(L,z,H,`#`,`\\#`),I(R,z,H,`#`,`\\#`),I(L,z,H,`&`,`\\&`),I(R,z,H,`&`,`\\&`),I(L,z,H,`âµ`,`\\aleph`,!0),I(L,z,H,`â`,`\\forall`,!0),I(L,z,H,`â`,`\\hbar`,!0),I(L,z,H,`â`,`\\exists`,!0),I(L,z,H,`â`,`\\nabla`,!0),I(L,z,H,`â`,`\\flat`,!0),I(L,z,H,`â`,`\\ell`,!0),I(L,z,H,`â®`,`\\natural`,!0),I(L,z,H,`â£`,`\\clubsuit`,!0),I(L,z,H,`â`,`\\wp`,!0),I(L,z,H,`â¯`,`\\sharp`,!0),I(L,z,H,`â¢`,`\\diamondsuit`,!0),I(L,z,H,`â`,`\\Re`,!0),I(L,z,H,`â¡`,`\\heartsuit`,!0),I(L,z,H,`â`,`\\Im`,!0),I(L,z,H,`â `,`\\spadesuit`,!0),I(L,z,H,`§`,`\\S`,!0),I(R,z,H,`§`,`\\S`),I(L,z,H,`¶`,`\\P`,!0),I(R,z,H,`¶`,`\\P`),I(L,z,H,`â `,`\\dag`),I(R,z,H,`â `,`\\dag`),I(R,z,H,`â `,`\\textdagger`),I(L,z,H,`â¡`,`\\ddag`),I(R,z,H,`â¡`,`\\ddag`),I(R,z,H,`â¡`,`\\textdaggerdbl`),I(L,z,tI,`â±`,`\\rmoustache`,!0),I(L,z,aI,`â°`,`\\lmoustache`,!0),I(L,z,tI,`â¯`,`\\rgroup`,!0),I(L,z,aI,`â®`,`\\lgroup`,!0),I(L,z,eI,`â`,`\\mp`,!0),I(L,z,eI,`â`,`\\ominus`,!0),I(L,z,eI,`â`,`\\uplus`,!0),I(L,z,eI,`â`,`\\sqcap`,!0),I(L,z,eI,`â`,`\\ast`),I(L,z,eI,`â`,`\\sqcup`,!0),I(L,z,eI,`â¯`,`\\bigcirc`,!0),I(L,z,eI,`â`,`\\bullet`,!0),I(L,z,eI,`â¡`,`\\ddagger`),I(L,z,eI,`â`,`\\wr`,!0),I(L,z,eI,`⨿`,`\\amalg`),I(L,z,eI,`&`,`\\And`),I(L,z,V,`âµ`,`\\longleftarrow`,!0),I(L,z,V,`â`,`\\Leftarrow`,!0),I(L,z,V,`â¸`,`\\Longleftarrow`,!0),I(L,z,V,`â¶`,`\\longrightarrow`,!0),I(L,z,V,`â`,`\\Rightarrow`,!0),I(L,z,V,`â¹`,`\\Longrightarrow`,!0),I(L,z,V,`â`,`\\leftrightarrow`,!0),I(L,z,V,`â·`,`\\longleftrightarrow`,!0),I(L,z,V,`â`,`\\Leftrightarrow`,!0),I(L,z,V,`âº`,`\\Longleftrightarrow`,!0),I(L,z,V,`â¦`,`\\mapsto`,!0),I(L,z,V,`â¼`,`\\longmapsto`,!0),I(L,z,V,`â`,`\\nearrow`,!0),I(L,z,V,`â©`,`\\hookleftarrow`,!0),I(L,z,V,`âª`,`\\hookrightarrow`,!0),I(L,z,V,`â`,`\\searrow`,!0),I(L,z,V,`â¼`,`\\leftharpoonup`,!0),I(L,z,V,`â`,`\\rightharpoonup`,!0),I(L,z,V,`â`,`\\swarrow`,!0),I(L,z,V,`â½`,`\\leftharpoondown`,!0),I(L,z,V,`â`,`\\rightharpoondown`,!0),I(L,z,V,`â`,`\\nwarrow`,!0),I(L,z,V,`â`,`\\rightleftharpoons`,!0),I(L,B,V,`â®`,`\\nless`,!0),I(L,B,V,`î`,`\\@nleqslant`),I(L,B,V,`î`,`\\@nleqq`),I(L,B,V,`âª`,`\\lneq`,!0),I(L,B,V,`â¨`,`\\lneqq`,!0),I(L,B,V,`î`,`\\@lvertneqq`),I(L,B,V,`â¦`,`\\lnsim`,!0),I(L,B,V,`âª`,`\\lnapprox`,!0),I(L,B,V,`â`,`\\nprec`,!0),I(L,B,V,`â `,`\\npreceq`,!0),I(L,B,V,`â¨`,`\\precnsim`,!0),I(L,B,V,`⪹`,`\\precnapprox`,!0),I(L,B,V,`â`,`\\nsim`,!0),I(L,B,V,`î`,`\\@nshortmid`),I(L,B,V,`â¤`,`\\nmid`,!0),I(L,B,V,`â¬`,`\\nvdash`,!0),I(L,B,V,`â`,`\\nvDash`,!0),I(L,B,V,`âª`,`\\ntriangleleft`),I(L,B,V,`â¬`,`\\ntrianglelefteq`,!0),I(L,B,V,`â`,`\\subsetneq`,!0),I(L,B,V,`î`,`\\@varsubsetneq`),I(L,B,V,`â«`,`\\subsetneqq`,!0),I(L,B,V,`î`,`\\@varsubsetneqq`),I(L,B,V,`â¯`,`\\ngtr`,!0),I(L,B,V,`î`,`\\@ngeqslant`),I(L,B,V,`î`,`\\@ngeqq`),I(L,B,V,`âª`,`\\gneq`,!0),I(L,B,V,`â©`,`\\gneqq`,!0),I(L,B,V,`î`,`\\@gvertneqq`),I(L,B,V,`â§`,`\\gnsim`,!0),I(L,B,V,`âª`,`\\gnapprox`,!0),I(L,B,V,`â`,`\\nsucc`,!0),I(L,B,V,`â¡`,`\\nsucceq`,!0),I(L,B,V,`â©`,`\\succnsim`,!0),I(L,B,V,`⪺`,`\\succnapprox`,!0),I(L,B,V,`â`,`\\ncong`,!0),I(L,B,V,`î`,`\\@nshortparallel`),I(L,B,V,`â¦`,`\\nparallel`,!0),I(L,B,V,`â¯`,`\\nVDash`,!0),I(L,B,V,`â«`,`\\ntriangleright`),I(L,B,V,`â`,`\\ntrianglerighteq`,!0),I(L,B,V,`î`,`\\@nsupseteqq`),I(L,B,V,`â`,`\\supsetneq`,!0),I(L,B,V,`î`,`\\@varsupsetneq`),I(L,B,V,`â«`,`\\supsetneqq`,!0),I(L,B,V,`î`,`\\@varsupsetneqq`),I(L,B,V,`â®`,`\\nVdash`,!0),I(L,B,V,`⪵`,`\\precneqq`,!0),I(L,B,V,`⪶`,`\\succneqq`,!0),I(L,B,V,`î`,`\\@nsubseteqq`),I(L,B,eI,`â´`,`\\unlhd`),I(L,B,eI,`âµ`,`\\unrhd`),I(L,B,V,`â`,`\\nleftarrow`,!0),I(L,B,V,`â`,`\\nrightarrow`,!0),I(L,B,V,`â`,`\\nLeftarrow`,!0),I(L,B,V,`â`,`\\nRightarrow`,!0),I(L,B,V,`â®`,`\\nleftrightarrow`,!0),I(L,B,V,`â`,`\\nLeftrightarrow`,!0),I(L,B,V,`â³`,`\\vartriangle`),I(L,B,H,`â`,`\\hslash`),I(L,B,H,`â½`,`\\triangledown`),I(L,B,H,`â`,`\\lozenge`),I(L,B,H,`â`,`\\cir
478cledS`),I(L,B,H,`®`,`\\circledR`),I(R,B,H,`®`,`\\circledR`),I(L,B,H,`â¡`,`\\measuredangle`,!0),I(L,B,H,`â`,`\\nexists`),I(L,B,H,`â§`,`\\mho`),I(L,B,H,`â²`,`\\Finv`,!0),I(L,B,H,`â
`,`\\Game`,!0),I(L,B,H,`âµ`,`\\backprime`),I(L,B,H,`â²`,`\\blacktriangle`),I(L,B,H,`â¼`,`\\blacktriangledown`),I(L,B,H,`â `,`\\blacksquare`),I(L,B,H,`â§«`,`\\blacklozenge`),I(L,B,H,`â
`,`\\bigstar`),I(L,B,H,`â¢`,`\\sphericalangle`,!0),I(L,B,H,`â`,`\\complement`,!0),I(L,B,H,`ð`,`\\eth`,!0),I(R,z,H,`ð`,`ð`),I(L,B,H,`â±`,`\\diagup`),I(L,B,H,`â²`,`\\diagdown`),I(L,B,H,`â¡`,`\\square`),I(L,B,H,`â¡`,`\\Box`),I(L,B,H,`â`,`\\Diamond`),I(L,B,H,`Â¥`,`\\yen`,!0),I(R,B,H,`Â¥`,`\\yen`,!0),I(L,B,H,`â`,`\\checkmark`,!0),I(R,B,H,`â`,`\\checkmark`),I(L,B,H,`â¶`,`\\beth`,!0),I(L,B,H,`â¸`,`\\daleth`,!0),I(L,B,H,`â·`,`\\gimel`,!0),I(L,B,H,`Ï`,`\\digamma`,!0),I(L,B,H,`ϰ`,`\\varkappa`),I(L,B,aI,`â`,`\\@ulcorner`,!0),I(L,B,tI,`â`,`\\@urcorner`,!0),I(L,B,aI,`â`,`\\@llcorner`,!0),I(L,B,tI,`â`,`\\@lrcorner`,!0),I(L,B,V,`â¦`,`\\leqq`,!0),I(L,B,V,`⩽`,`\\leqslant`,!0),I(L,B,V,`âª`,`\\eqslantless`,!0),I(L,B,V,`â²`,`\\lesssim`,!0),I(L,B,V,`âª
`,`\\lessapprox`,!0),I(L,B,V,`â`,`\\approxeq`,!0),I(L,B,eI,`â`,`\\lessdot`),I(L,B,V,`â`,`\\lll`,!0),I(L,B,V,`â¶`,`\\lessgtr`,!0),I(L,B,V,`â`,`\\lesseqgtr`,!0),I(L,B,V,`âª`,`\\lesseqqgtr`,!0),I(L,B,V,`â`,`\\doteqdot`),I(L,B,V,`â`,`\\risingdotseq`,!0),I(L,B,V,`â`,`\\fallingdotseq`,!0),I(L,B,V,`â½`,`\\backsim`,!0),I(L,B,V,`â`,`\\backsimeq`,!0),I(L,B,V,`â«
`,`\\subseteqq`,!0),I(L,B,V,`â`,`\\Subset`,!0),I(L,B,V,`â`,`\\sqsubset`,!0),I(L,B,V,`â¼`,`\\preccurlyeq`,!0),I(L,B,V,`â`,`\\curlyeqprec`,!0),I(L,B,V,`â¾`,`\\precsim`,!0),I(L,B,V,`⪷`,`\\precapprox`,!0),I(L,B,V,`â²`,`\\vartriangleleft`),I(L,B,V,`â´`,`\\trianglelefteq`),I(L,B,V,`â¨`,`\\vDash`,!0),I(L,B,V,`âª`,`\\Vvdash`,!0),I(L,B,V,`â£`,`\\smallsmile`),I(L,B,V,`â¢`,`\\smallfrown`),I(L,B,V,`â`,`\\bumpeq`,!0),I(L,B,V,`â`,`\\Bumpeq`,!0),I(L,B,V,`â§`,`\\geqq`,!0),I(L,B,V,`⩾`,`\\geqslant`,!0),I(L,B,V,`âª`,`\\eqslantgtr`,!0),I(L,B,V,`â³`,`\\gtrsim`,!0),I(L,B,V,`âª`,`\\gtrapprox`,!0),I(L,B,eI,`â`,`\\gtrdot`),I(L,B,V,`â`,`\\ggg`,!0),I(L,B,V,`â·`,`\\gtrless`,!0),I(L,B,V,`â`,`\\gtreqless`,!0),I(L,B,V,`âª`,`\\gtreqqless`,!0),I(L,B,V,`â`,`\\eqcirc`,!0),I(L,B,V,`â`,`\\circeq`,!0),I(L,B,V,`â`,`\\triangleq`,!0),I(L,B,V,`â¼`,`\\thicksim`),I(L,B,V,`â`,`\\thickapprox`),I(L,B,V,`â«`,`\\supseteqq`,!0),I(L,B,V,`â`,`\\Supset`,!0),I(L,B,V,`â`,`\\sqsupset`,!0),I(L,B,V,`â½`,`\\succcurlyeq`,!0),I(L,B,V,`â`,`\\curlyeqsucc`,!0),I(L,B,V,`â¿`,`\\succsim`,!0),I(L,B,V,`⪸`,`\\succapprox`,!0),I(L,B,V,`â³`,`\\vartriangleright`),I(L,B,V,`âµ`,`\\trianglerighteq`),I(L,B,V,`â©`,`\\Vdash`,!0),I(L,B,V,`â£`,`\\shortmid`),I(L,B,V,`â¥`,`\\shortparallel`),I(L,B,V,`â¬`,`\\between`,!0),I(L,B,V,`â`,`\\pitchfork`,!0),I(L,B,V,`â`,`\\varpropto`),I(L,B,V,`â`,`\\blacktriangleleft`),I(L,B,V,`â´`,`\\therefore`,!0),I(L,B,V,`â`,`\\backepsilon`),I(L,B,V,`â¶`,`\\blacktriangleright`),I(L,B,V,`âµ`,`\\because`,!0),I(L,B,V,`â`,`\\llless`),I(L,B,V,`â`,`\\gggtr`),I(L,B,eI,`â²`,`\\lhd`),I(L,B,eI,`â³`,`\\rhd`),I(L,B,V,`â`,`\\eqsim`,!0),I(L,z,V,`â`,`\\Join`),I(L,B,V,`â`,`\\Doteq`,!0),I(L,B,eI,`â`,`\\dotplus`,!0),I(L,B,eI,`â`,`\\smallsetminus`),I(L,B,eI,`â`,`\\Cap`,!0),I(L,B,eI,`â`,`\\Cup`,!0),I(L,B,eI,`â©`,`\\doublebarwedge`,!0),I(L,B,eI,`â`,`\\boxminus`,!0),I(L,B,eI,`â`,`\\boxplus`,!0),I(L,B,eI,`â`,`\\divideontimes`,!0),I(L,B,eI,`â`,`\\ltimes`,!0),I(L,B,eI,`â`,`\\rtimes`,!0),I(L,B,eI,`â`,`\\leftthreetimes`,!0),I(L,B,eI,`â`,`\\rightthreetimes`,!0),I(L,B,eI,`â`,`\\curlywedge`,!0),I(L,B,eI,`â`,`\\curlyvee`,!0),I(L,B,eI,`â`,`\\cir
478cleddash`,!0),I(L,B,eI,`â`,`\\circledast`,!0),I(L,B,eI,`â
`,`\\centerdot`),I(L,B,eI,`âº`,`\\intercal`,!0),I(L,B,eI,`â`,`\\doublecap`),I(L,B,eI,`â`,`\\doublecup`),I(L,B,eI,`â `,`\\boxtimes`,!0),I(L,B,V,`â¢`,`\\dashrightarrow`,!0),I(L,B,V,`â `,`\\dashleftarrow`,!0),I(L,B,V,`â`,`\\leftleftarrows`,!0),I(L,B,V,`â`,`\\leftrightarrows`,!0),I(L,B,V,`â`,`\\Lleftarrow`,!0),I(L,B,V,`â`,`\\twoheadleftarrow`,!0),I(L,B,V,`â¢`,`\\leftarrowtail`,!0),I(L,B,V,`â«`,`\\looparrowleft`,!0),I(L,B,V,`â`,`\\leftrightharpoons`,!0),I(L,B,V,`â¶`,`\\curvearrowleft`,!0),I(L,B,V,`âº`,`\\circlearrowleft`,!0),I(L,B,V,`â°`,`\\Lsh`,!0),I(L,B,V,`â`,`\\upuparrows`,!0),I(L,B,V,`â¿`,`\\upharpoonleft`,!0),I(L,B,V,`â`,`\\downharpoonleft`,!0),I(L,z,V,`â¶`,`\\origof`,!0),I(L,z,V,`â·`,`\\imageof`,!0),I(L,B,V,`â¸`,`\\multimap`,!0),I(L,B,V,`â`,`\\leftrightsquigarrow`,!0),I(L,B,V,`â`,`\\rightrightarrows`,!0),I(L,B,V,`â`,`\\rightleftarrows`,!0),I(L,B,V,`â `,`\\twoheadrightarrow`,!0),I(L,B,V,`â£`,`\\rightarrowtail`,!0),I(L,B,V,`â¬`,`\\looparrowright`,!0),I(L,B,V,`â·`,`\\curvearrowright`,!0),I(L,B,V,`â»`,`\\circlearrowright`,!0),I(L,B,V,`â±`,`\\Rsh`,!0),I(L,B,V,`â`,`\\downdownarrows`,!0),I(L,B,V,`â¾`,`\\upharpoonright`,!0),I(L,B,V,`â`,`\\downharpoonright`,!0),I(L,B,V,`â`,`\\rightsquigarrow`,!0),I(L,B,V,`â`,`\\leadsto`),I(L,B,V,`â`,`\\Rrightarrow`,!0),I(L,B,V,`â¾`,`\\restriction`),I(L,z,H,`â`,"`"),I(L,z,H,`$`,`\\$`),I(R,z,H,`$`,`\\$`),I(R,z,H,`$`,`\\textdollar`),I(L,z,H,`%`,`\\%`),I(R,z,H,`%`,`\\%`),I(L,z,H,`_`,`\\_`),I(R,z,H,`_`,`\\_`),I(R,z,H,`_`,`\\textunderscore`),I(L,z,H,`â `,`\\angle`,!0),I(L,z,H,`â`,`\\infty`,!0),I(L,z,H,`â²`,`\\prime`),I(L,z,H,`â³`,`\\triangle`),I(L,z,H,`Î`,`\\Gamma`,!0),I(L,z,H,`Î`,`\\Delta`,!0),I(L,z,H,`Î`,`\\Theta`,!0),I(L,z,H,`Î`,`\\Lambda`,!0),I(L,z,H,`Î`,`\\Xi`,!0),I(L,z,H,`Î `,`\\Pi`,!0),I(L,z,H,`Σ`,`\\Sigma`,!0),I(L,z,H,`Î¥`,`\\Upsilon`,!0),I(L,z,H,`Φ`,`\\Phi`,!0),I(L,z,H,`Ψ`,`\\Psi`,!0),I(L,z,H,`Ω`,`\\Omega`,!0),I(L,z,H,`A`,`Î`),I(L,z,H,`B`,`Î`),I(L,z,H,`E`,`Î`),I(L,z,H,`Z`,`Î`),I(L,z,H,`H`,`Î`),I(L,z,H,`I`,`Î`),I(L,z,H,`K`,`Î`),I(L,z,H,`M`,`Î`),I(L,z,H,`N`,`Î`),I(L,z,H,`O`,`Î`),I(L,z,H,`P`,`Ρ`),I(L,z,H,`T`,`Τ`),I(L,z,H,`X`,`Χ`),I(L,z,H,`¬`,`\\neg`,!0),I(L,z,H,`¬`,`\\lnot`),I(L,z,H,`â¤`,`\\top`),I(L,z,H,`â¥`,`\\bot`),I(L,z,H,`â
`,`\\emptyset`),I(L,B,H,`â
`,`\\varnothing`),I(L,z,rI,`α`,`\\alpha`,!0),I(L,z,rI,`β`,`\\beta`,!0),I(L,z,rI,`γ`,`\\gamma`,!0),I(L,z,rI,`δ`,`\\delta`,!0),I(L,z,rI,`ϵ`,`\\epsilon`,!0),I(L,z,rI,`ζ`,`\\zeta`,!0),I(L,z,rI,`η`,`\\eta`,!0),I(L,z,rI,`θ`,`\\theta`,!0),I(L,z,rI,`ι`,`\\iota`,!0),I(L,z,rI,`κ`,`\\kappa`,!0),I(L,z,rI,`λ`,`\\lambda`,!0),I(L,z,rI,`μ`,`\\mu`,!0),I(L,z,rI,`ν`,`\\nu`,!0),I(L,z,rI,`ξ`,`\\xi`,!0),I(L,z,rI,`ο`,`\\omicron`,!0),I(L,z,rI,`Ï`,`\\pi`,!0),I(L,z,rI,`Ï`,`\\rho`,!0),I(L,z,rI,`Ï`,`\\sigma`,!0),I(L,z,rI,`Ï`,`\\tau`,!0),I(L,z,rI,`Ï
`,`\\upsilon`,!0),I(L,z,rI,`Ï`,`\\phi`,!0),I(L,z,rI,`Ï`,`\\chi`,!0),I(L,z,rI,`Ï`,`\\psi`,!0),I(L,z,rI,`Ï`,`\\omega`,!0),I(L,z,rI,`ε`,`\\varepsilon`,!0),I(L,z,rI,`Ï`,`\\vartheta`,!0),I(L,z,rI,`Ï`,`\\varpi`,!0),I(L,z,rI,`ϱ`,`\\varrho`,!0),I(L,z,rI,`Ï`,`\\varsigma`,!0),I(L,z,rI,`Ï`,`\\varphi`,!0),I(L,z,eI,`â`,`*`,!0),I(L,z,eI,`+`,`+`),I(L,z,eI,`â`,`-`,!0),I(L,z,eI,`â
`,`\\cdot`,!0),I(L,z,eI,`â`,`\\circ`,!0),I(L,z,eI,`÷`,`\\div`,!0),I(L,z,eI,`±`,`\\pm`,!0),I(L,z,eI,`Ã`,`\\times`,!0),I(L,z,eI,`â©`,`\\cap`,!0),I(L,z,eI,`âª`,`\\cup`,!0),I(L,z,eI,`â`,`\\setminus`,!0),I(L,z,eI,`â§`,`\\land`),I(L,z,eI,`â¨`,`\\lor`),I(L,z,eI,`â§`,`\\wedge`,!0),I(L,z,eI,`â¨`,`\\vee`,!0),I(L,z,H,`â`,`\\surd`),I(L,z,aI,`â¨`,`\\langle`,!0),I(L,z,aI,`â£`,`\\lvert`),I(L,z,aI,`â¥`,`\\lVert`),I(L,z,tI,`?`,`?`),I(L,z,tI,`!`,`!`),I(L,z,tI,`â©`,`\\rangle`,!0),I(L,z,tI,`â£`,`\\rvert`),I(L,z,tI,`â¥`,`\\rVert`),I(L,z,V,`=`,`=`),I(L,z,V,`:`,`:`),I(L,z,V,`â`,`\\approx`,!0),I(L,z,V,`â
`,`\\cong`,!0),I(L,z,V,`â¥`,`\\ge`),I(L,z,V,`â¥`,`\\geq`,!0),I(L,z,V,`â`,`\\gets`),I(L,z,V,`>`,`\\gt`,!0),I(L,z,V,`â`,`\\in`,!0),I(L,z,V,`î `,`\\@not`),I(L,z,V,`â`,`\\subset`,!0),I(L,z,V,`â`,`\\supset`,!0),I(L,z,V,`â`,`\\subseteq`,!0),I(L,z,V,`â`,`\\supseteq`,!0),I(L,B,V,`â`,`\\nsubseteq`,!0),I(L,B,V,`â`,`\\nsupseteq`,!0),I(L,z,V,`â¨`,`\\models`),I(L,z,V,`â`,`\\leftarrow`,!0),I(L,z,V,`â¤`,`\\le`),I(L,z,V,`â¤`,`\\leq`,!0),I(L,z,V,`<`,`\\lt`,!0),I(L,z,V,`â`,`\\rightarrow`,!0),I(L,z,V,`â`,`\\to`),I(L,B,V,`â±`,`\\ngeq`,!0),I(L,B,V,`â°`,`\\nleq`,!0),I(L,z,sI,`\xA0`,`\\ `),I(L,z,sI,`\xA0`,`\\space`),I(L,z,sI,`\xA0`,`\\nobreakspace`),I(R,z,sI,`\xA0`,`\\ `),I(R,z,sI,`\xA0`,` `),I(R,z,sI,`\xA0`,`\\space`),I(R,z,sI,`\xA0`,`\\nobreakspace`),I(L,z,sI,``,`\\nobreak`),I(L,z,sI,``,`\\allowbreak`),I(L,z,oI,`,`,`,`),I(L,z,oI,`;`,`;`),I(L,B,eI,`â¼`,`\\barwedge`,!0),I(L,B,eI,`â»`,`\\veebar`,!0),I(L,z,eI,`â`,`\\odot`,!0),I(L,z,eI,`â`,`\\oplus`,!0),I(L,z,eI,`â`,`\\otimes`,!0),I(L,z,H,`â`,`\\partial`,!0),I(L,z,eI,`â`,`\\oslash`,!0),I(L,B,eI,`â`,`\\circledcirc`,!0),I(L,B,eI,`â¡`,`\\boxdot`,!0),I(L,z,eI,`â³`,`\\bigtri
478angleup`),I(L,z,eI,`â½`,`\\bigtriangledown`),I(L,z,eI,`â `,`\\dagger`),I(L,z,eI,`â`,`\\diamond`),I(L,z,eI,`â`,`\\star`),I(L,z,eI,`â`,`\\triangleleft`),I(L,z,eI,`â¹`,`\\triangleright`),I(L,z,aI,`{`,`\\{`),I(R,z,H,`{`,`\\{`),I(R,z,H,`{`,`\\textbraceleft`),I(L,z,tI,`}`,`\\}`),I(R,z,H,`}`,`\\}`),I(R,z,H,`}`,`\\textbraceright`),I(L,z,aI,`{`,`\\lbrace`),I(L,z,tI,`}`,`\\rbrace`),I(L,z,aI,`[`,`\\lbrack`,!0),I(R,z,H,`[`,`\\lbrack`,!0),I(L,z,tI,`]`,`\\rbrack`,!0),I(R,z,H,`]`,`\\rbrack`,!0),I(L,z,aI,`(`,`\\lparen`,!0),I(L,z,tI,`)`,`\\rparen`,!0),I(R,z,H,`<`,`\\textless`,!0),I(R,z,H,`>`,`\\textgreater`,!0),I(L,z,aI,`â`,`\\lfloor`,!0),I(L,z,tI,`â`,`\\rfloor`,!0),I(L,z,aI,`â`,`\\lceil`,!0),I(L,z,tI,`â`,`\\rceil`,!0),I(L,z,H,`\\`,`\\backslash`),I(L,z,H,`â£`,`|`),I(L,z,H,`â£`,`\\vert`),I(R,z,H,`|`,`\\textbar`,!0),I(L,z,H,`â¥`,`\\|`),I(L,z,H,`â¥`,`\\Vert`),I(R,z,H,`â¥`,`\\textbardbl`),I(R,z,H,`~`,`\\textasciitilde`),I(R,z,H,`\\`,`\\textbackslash`),I(R,z,H,`^`,`\\textasciicircum`),I(L,z,V,`â`,`\\uparrow`,!0),I(L,z,V,`â`,`\\Uparrow`,!0),I(L,z,V,`â`,`\\downarrow`,!0),I(L,z,V,`â`,`\\Downarrow`,!0),I(L,z,V,`â`,`\\updownarrow`,!0),I(L,z,V,`â`,`\\Updownarrow`,!0),I(L,z,iI,`â`,`\\coprod`),I(L,z,iI,`â`,`\\bigvee`),I(L,z,iI,`â`,`\\bigwedge`),I(L,z,iI,`â¨`,`\\biguplus`),I(L,z,iI,`â`,`\\bigcap`),I(L,z,iI,`â`,`\\bigcup`),I(L,z,iI,`â«`,`\\int`),I(L,z,iI,`â«`,`\\intop`),I(L,z,iI,`â¬`,`\\iint`),I(L,z,iI,`â`,`\\iiint`),I(L,z,iI,`â`,`\\prod`),I(L,z,iI,`â`,`\\sum`),I(L,z,iI,`â¨`,`\\bigotimes`),I(L,z,iI,`â¨`,`\\bigoplus`),I(L,z,iI,`â¨`,`\\bigodot`),I(L,z,iI,`â®`,`\\oint`),I(L,z,iI,`â¯`,`\\oiint`),I(L,z,iI,`â°`,`\\oiiint`),I(L,z,iI,`â¨`,`\\bigsqcup`),I(L,z,iI,`â«`,`\\smallint`),I(R,z,nI,`â¦`,`\\textellipsis`),I(L,z,nI,`â¦`,`\\mathellipsis`),I(R,z,nI,`â¦`,`\\ldots`,!0),I(L,z,nI,`â¦`,`\\ldots`,!0),I(L,z,nI,`â¯`,`\\@cdots`,!0),I(L,z,nI,`â±`,`\\ddots`,!0),I(L,z,H,`â®`,`\\varvdots`),I(R,z,H,`â®`,`\\varvdots`),I(L,z,$F,`Ë`,`\\acute`),I(L,z,$F,`Ë`,`\\grave`),I(L,z,$F,`¨`,`\\ddot`),I(L,z,$F,`~`,`\\tilde`),I(L,z,$F,`Ë`,`\\bar`),I(L,z,$F,`Ë`,`\\breve`),I(L,z,$F,`Ë`,`\\check`),I(L,z,$F,`^`,`\\hat`),I(L,z,$F,`â`,`\\vec`),I(L,z,$F,`Ë`,`\\dot`),I(L,z,$F,`Ë`,`\\mathring`),I(L,z,rI,`î±`,`\\@imath`),I(L,z,rI,`î·`,`\\@jmath`),I(L,z,H,`ı`,`ı`),I(L,z,H,`È·`,`È·`),I(R,z,H,`ı`,`\\i`,!0),I(R,z,H,`È·`,`\\j`,!0),I(R,z,H,`Ã`,`\\ss`,!0),I(R,z,H,`æ`,`\\ae`,!0),I(R,z,H,`Å`,`\\oe`,!0),I(R,z,H,`ø`,`\\o`,!0),I(R,z,H,`Ã`,`\\AE`,!0),I(R,z,H,`Å`,`\\OE`,!0),I(R,z,H,`Ã`,`\\O`,!0),I(R,z,$F,`Ë`,`\\'`),I(R,z,$F,`Ë`,"\\`"),I(R,z,$F,`Ë`,`\\^`),I(R,z,$F,`Ë`,`\\~`),I(R,z,$F,`Ë`,`\\=`),I(R,z,$F,`Ë`,`\\u`),I(R,z,$F,`Ë`,`\\.`),I(R,z,$F,`¸`,`\\c`),I(R,z,$F,`Ë`,`\\r`),I(R,z,$F,`Ë`,`\\v`),I(R,z,$F,`¨`,`\\"`),I(R,z,$F,`Ë`,`\\H`),I(R,z,$F,`â¯`,`\\textcircled`);var cI={"--":!0,"---":!0,"``":!0,"''":!0};I(R,z,H,`â`,`--`,!0),I(R,z,H,`â`,`\\textendash`),I(R,z,H,`â`,`---`,!0),I(R,z,H,`â`,`\\textemdash`),I(R,z,H,`â`,"`",!0),I(R,z,H,`â`,`\\textquoteleft`),I(R,z,H,`â`,`'`,!0),I(R,z,H,`â`,`\\textquoteright`),I(R,z,H,`â`,"``",!0),I(R,z,H,`â`,`\\textquotedblleft`),I(R,z,H,`â`,`''`,!0),I(R,z,H,`â`,`\\textquotedblright`),I(L,z,H,`°`,`\\degree`,!0),I(R,z,H,`°`,`\\degree`),I(R,z,H,`°`,`\\textdegree`,!0),I(L,z,H,`£`,`\\pounds`),I(L,z,H,`£`,`\\mathsterling`,!0),I(R,z,H,`£`,`\\pounds`),I(R,z,H,`£`,`\\textsterling`,!0),I(L,B,H,`â `,`\\maltese`),I(R,B,H,`â `,`\\maltese`);for(var lI=`0123456789/@."`,uI=0;uI<lI.length;uI++){var dI=lI.charAt(uI);I(L,z,H,dI,dI)}for(var fI=`0123456789!@*()-=+";:?/.,`,pI=0;pI<fI.length;pI++){var mI=fI.charAt(pI);I(R,z,H,mI,mI)}for(var hI=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,gI=0;gI<hI.length;gI++){var _I=hI.charAt(gI);I(L,z,rI,_I,_I),I(R,z,H,_I,_I)}I(L,B,H,`C`,`â`),I(R,B,H,`C`,`â`),I(L,B,H,`H`,`â`),I(R,B,H,`H`,`â`),I(L,B,H,`N`,`â`),I(R,B,H,`N`,`â`),I(L,B,H,`P`,`â`),I(R,B,H,`P`,`â`),I(L,B,H,`Q`,`â`),I(R,B,H,`Q`,`â`),I(L,B,H,`R`,`â`),I(R,B,H,`R`,`â`),I(L,B,H,`Z`,`â¤`),I(R,B,H,`Z`,`â¤`),I(L,z,rI,`h`,`â`),I(R,z,rI,`h`,`â`);for(var vI,yI=0;
vendor: 2,111 bytes, line 478
478yI<hI.length;yI++){var bI=hI.charAt(yI);vI=String.fromCharCode(55349,56320+yI),I(L,z,rI,bI,vI),I(R,z,H,bI,vI),vI=String.fromCharCode(55349,56372+yI),I(L,z,rI,bI,vI),I(R,z,H,bI,vI),vI=String.fromCharCode(55349,56424+yI),I(L,z,rI,bI,vI),I(R,z,H,bI,vI),vI=String.fromCharCode(55349,56580+yI),I(L,z,rI,bI,vI),I(R,z,H,bI,vI),vI=String.fromCharCode(55349,56684+yI),I(L,z,rI,bI,vI),I(R,z,H,bI,vI),vI=String.fromCharCode(55349,56736+yI),I(L,z,rI,bI,vI),I(R,z,H,bI,vI),vI=String.fromCharCode(55349,56788+yI),I(L,z,rI,bI,vI),I(R,z,H,bI,vI),vI=String.fromCharCode(55349,56840+yI),I(L,z,rI,bI,vI),I(R,z,H,bI,vI),vI=String.fromCharCode(55349,56944+yI),I(L,z,rI,bI,vI),I(R,z,H,bI,vI),yI<26&&(vI=String.fromCharCode(55349,56632+yI),I(L,z,rI,bI,vI),I(R,z,H,bI,vI),vI=String.fromCharCode(55349,56476+yI),I(L,z,rI,bI,vI),I(R,z,H,bI,vI))}vI=String.fromCharCode(55349,56668),I(L,z,rI,`k`,vI),I(R,z,H,`k`,vI);for(var xI=0;xI<10;xI++){var SI=xI.toString();vI=String.fromCharCode(55349,57294+xI),I(L,z,rI,SI,vI),I(R,z,H,SI,vI),vI=String.fromCharCode(55349,57314+xI),I(L,z,rI,SI,vI),I(R,z,H,SI,vI),vI=String.fromCharCode(55349,57324+xI),I(L,z,rI,SI,vI),I(R,z,H,SI,vI),vI=String.fromCharCode(55349,57334+xI),I(L,z,rI,SI,vI),I(R,z,H,SI,vI)}for(var CI=`ÃÃþ`,wI=0;wI<CI.length;wI++){var TI=CI.charAt(wI);I(L,z,rI,TI,TI),I(R,z,H,TI,TI)}var EI={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},DI={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},OI={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},Vce={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},kI={mathClass:``,textClass:``,font:``},AI={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},jI={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},MI={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},NI={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},PI={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},FI={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},II={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`}
vendor: 5,577 bytes, line 478
478,LI=[EI,EI,DI,DI,OI,OI,Vce,kI,kI,kI,AI,AI,jI,jI,MI,MI,NI,NI,PI,PI,FI,FI,kI,kI,II,II],Hce=[EI,kI,NI,PI,II],Uce=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return LI[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return Hce[Math.floor((r-120782)/10)];if(r===120485||r===120486)return LI[0];if(120486<r&&r<120782)return kI;throw new P(`Unsupported character: `+e)},RI=function(e,t,n){if(QF[n][e]){var r=QF[n][e].replace;r&&(e=r)}return{value:e,metrics:XF(e,t,n)}},zI=function(e,t,n,r,i){var a=RI(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new HF(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new HF(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},BI=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&RI(e,`Main-Bold`,t).metrics?zI(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||QF[t][e].font===`main`?zI(e,`Main-Regular`,t,n,r):zI(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},Wce=function(e,t,n){return n!==`textord`&&RI(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},VI=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],{font:o,fontFamily:s,fontWeight:c,fontShape:l}=t,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=Uce(i);f=m.font,p=m[r+`Class`]}if(f)return zI(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=Wce(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=ZI[o].fontName,g=[o]):(h=XI(s,c,l),g=[s,c,l]);if(RI(i,h,r).metrics)return zI(i,h,r,t,a.concat(g));if(cI.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(zI(i[y],h,r,t,a.concat(g)));return KI(v)}}if(n===`mathord`)return zI(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=QF[r][i]&&QF[r][i].font;if(b===`ams`)return zI(i,XI(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return zI(i,XI(`textrm`,c,l),r,t,a.concat(c,l));var x=XI(b,c,l);return zI(i,x,r,t,a.concat(x,c,l))}else throw Error(`unexpected type: `+n+` in makeOrd`)},Gce=(e,t)=>{if(FF(e.classes)!==FF(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},HI=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof HF&&r instanceof HF&&Gce(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},UI=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},U=function(e,t,n,r){var i=new BF(e,t,n,r);return UI(i),i},WI=(e,t,n,r)=>new BF(e,t,n,r),GI=function(e,t,n){var r=U([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=F(r.height),r.maxFontSize=1,r},Kce=function(e,t,n,r){var i=new VF(e,t,n,r);return UI(i),i},KI=function(e){var t=new jF(e);return UI(t),t},qI=function(e,t){return e instanceof jF?U([],[e],t):e},qce=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},JI=function(e,t){for(var{children:n,depth:r}=qce(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=U([`pstrut`],[]);c.style.height=F(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=U(g,[c,h],void 0,_);v.style.top=F(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=U([`vlist`],l);y.style.height=F(d);var b;if(u<0){var x=U([`vlist`],[U([],[])]);x.style.height=F(-u),b=[U([`vlist-r`],[y,U([`vlist-s`],[new HF(`â`)])]),U([`vlist-r`],[x])]}else b=[U([`vlist-r`],[y])];var S=U([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},YI=(e,t)=>{var n=U([`mspace`],[],t),r=PF(e,t);return n.style.marginRight=F(r),n},XI=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Ital
478ic`:`Regular`,r+`-`+i},ZI={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},QI={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},$I=function(e,t){var[n,r,i]=QI[e],a=WI([`overlay`],[new UF([new WF(n)],{width:F(r),height:F(i),style:`width:`+F(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=F(i),a.style.width=F(r),a},eL={number:3,unit:`mu`},tL={number:4,unit:`mu`},nL={number:5,unit:`mu`},Jce={mord:{mop:eL,mbin:tL,mrel:nL,minner:eL},mop:{mord:eL,mop:eL,mrel:nL,minner:eL},mbin:{mord:tL,mop:tL,mopen:tL,minner:tL},mrel:{mord:nL,mop:nL,mopen:nL,minner:nL},mopen:{},mclose:{mop:eL,mbin:tL,mrel:nL,minner:eL},mpunct:{mord:eL,mop:eL,mrel:nL,mopen:eL,mclose:eL,mpunct:eL,minner:eL},minner:{mord:eL,mop:eL,mbin:tL,mrel:nL,mopen:eL,mpunct:eL,minner:eL}},Yce={mord:{mop:eL},mop:{mord:eL,mop:eL},mbin:{},mrel:{},mopen:{},mclose:{mop:eL},mpunct:{},minner:{mop:eL}},rL={},iL={},aL={};function oL(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)rL[n[c]]=s;t&&(a&&(iL[t]=a),o&&(aL[t]=o))}function sL(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;oL({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var cL=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},lL=function(e){return e.type===`ordgroup`?e.body:[e]},Xce=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Zce=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),Qce={display:wF.DISPLAY,text:wF.TEXT,script:wF.SCRIPT,scriptscript:wF.SCRIPTSCRIPT},$ce={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},uL=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=gL(e[a],t);if(o instanceof jF){var s=o.children;i.push(...s)}else i.push(o)}if(HI(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(Qce[l.style]))}var u=U([r[0]||`leftmost`],[],t),d=U([r[1]||`rightmost`],[],t),f=n===`root`;return dL(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Zce.has(r)?t.classes[0]=`mord`:r===`mbin`&&Xce.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),dL(i,(e,t)=>{var n=mL(t),r=mL(e),i=n&&r?e.hasClass(`mtight`)?Yce[n]?.[r]:Jce[n]?.[r]:null;if(i)return YI(i,c)},{node:u},d,f),i},dL=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=fL(o);if(s){dL(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=U([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},fL=function(e){return e instanceof jF||e instanceof VF||e instanceof BF&&e.hasClass(`enclosing`)?e:null},pL=function(e,t){var n=fL(e);if(n){var r=n.children;if(r.length){if(t===`right`)return pL(r[r.length-1],`right`);if(t===`left`)return pL(r[0],`left`)}}return e},mL=function(e,t){return e?(t&&(e=pL(e,t)),$ce[e.classes[0]]||null):null},hL=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return U(t.concat(n))},gL=function(e,t,n){if(!e)return U();if(iL[e.type]){var r=iL[e.type](e,t);if(n&&t.size!==n.size){r=U(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new P(`Got group of unknown type: '`+e.type+`'`)};function _L(e,t){var n=U([`base`],e,t),r=U([`strut`]);return r.style.height=F(n.height+n.depth),n.depth&&(r.style.verticalAlign=F(-n.depth)),n.children.unshift(r),n}function vL(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=uL(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(_L(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(_L(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(_L(o,t));var l;n?(l=_L(uL(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=U([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=F(u.height+u.depth),u.depth&&(d.style.verticalAlign=F(-u.depth))}return u}function yL(e){return new jF(e)}var W=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=FF(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof bL&&this.children[n+1]instanceof bL){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof bL;)r+=this.children[++n].toText();e.appendChild(new bL(r).toNode())}
vendor: 3,582 bytes, line 478
478else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=` `+t+`="`,e+=lF(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+lF(FF(this.classes))+`"`),e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},bL=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return lF(this.toText())}toText(){return this.text}},xL=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=`â`:e>=.1666&&e<=.1667?this.character=`â`:e>=.2222&&e<=.2223?this.character=`â
`:e>=.2777&&e<=.2778?this.character=`â
â`:e>=-.05556&&e<=-.05555?this.character=`ââ£`:e>=-.1667&&e<=-.1666?this.character=`ââ£`:e>=-.2223&&e<=-.2222?this.character=`ââ£`:e>=-.2778&&e<=-.2777?this.character=`â
â£`:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,F(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+F(this.width)+`"/>`}toText(){return this.character?this.character:` `}},ele=new Set([`\\imath`,`\\jmath`]),tle=new Set([`mrow`,`mtable`]),SL=function(e,t,n){return QF[t][e]&&QF[t][e].replace&&e.charCodeAt(0)!==55349&&!(cI.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=QF[t][e].replace),new bL(e)},CL=function(e){return e.length===1?e[0]:new W(`mrow`,e)},nle={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},wL=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=nle[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(ele.has(a))return null;if(QF[r][a]){var o=QF[r][a].replace;o&&(a=o)}var s=ZI[n].fontName;return XF(a,s,r)?ZI[n].variant:null};function TL(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof bL&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof bL&&n.text===`,`}else return!1}var EL=function(e,t,n){if(e.length===1){var r=OL(e[0],t);return n&&r instanceof W&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=OL(e[o],t);if(s instanceof W&&a instanceof W){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}else if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}else if(TL(s)&&a.type===`mn`){a.children.push(...s.children);continue}
vendor: 6,388 bytes, line 478
478else if(s.type===`mn`&&TL(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||TL(a))){var c=s.children[0];c instanceof W&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof bL&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof bL&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},DL=function(e,t,n){return CL(EL(e,t,n))},OL=function(e,t){if(!e)return new W(`mrow`);if(aL[e.type])return aL[e.type](e,t);throw new P(`Got group of unknown type: '`+e.type+`'`)};function kL(e,t,n,r,i){var a=EL(e,n),o=a.length===1&&a[0]instanceof W&&tle.has(a[0].type)?a[0]:new W(`mrow`,a),s=new W(`annotation`,[new bL(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new W(`math`,[new W(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),U([i?`katex`:`katex-mathml`],[c])}var rle=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],AL=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],jL=function(e,t){return t.size<2?e:rle[e-1][t.size-1]},ML=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=AL[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:jL(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:AL[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=jL(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Bce(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};ML.BASESIZE=6;var NL=function(e){return new ML({style:e.displayMode?wF.DISPLAY:wF.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},PL=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=U(n,[e])}return e},ile=function(e,t,n){var r=NL(n),i;return n.output===`mathml`?kL(e,t,r,n.displayMode,!0):(i=n.output===`html`?U([`katex`],[vL(e,r)]):U([`katex`],[kL(e,t,r,n.displayMode,!1),vL(e,r)]),PL(i,n))},ale=function(e,t,n){return PL(U([`katex`],[vL(e,NL(n))]),n)},ole={widehat:`^`,widecheck:`Ë`,widetilde:`~`,utilde:`~`,overleftarrow:`â`,underleftarrow:`â`,xleftarrow:`â`,overrightarrow:`â`,underrightarrow:`â`,xrightarrow:`â`,underbrace:`â`,overbrace:`â`,underbracket:`âµ`,overbracket:`â´`,overgroup:`â `,undergroup:`â¡`,overleftrightarrow:`â`,underleftrightarrow:`â`,xleftrightarrow:`â`,Overrightarrow:`â`,xRightarrow:`â`,overleftharpoon:`â¼`,xleftharpoonup:`â¼`,overrightharpoon:`â`,xrightharpoonup:`â`,xLeftarrow:`â`,xLeftrightarrow:`â`,xhookleftarrow:`â©`,xhookrightarrow:`âª`,xmapsto:`â¦`,xrightharpoondown:`â`,xleftharpoondown:`â½`,xrightleftharpoons:`â`,xleftrightharpoons:`â`,xtwoheadleftarrow:`â`,xtwoheadrightarrow:`â `,xlongequal:`=`,xtofrom:`â`,xrightleftarrows:`â`,xrightequilibrium:`â`,xleftequilibrium:`â`,"\\cdrightarrow":`â`,"\\cdleftarrow":`â`,"\\cdlongequal":`=`},FL=function(e){var t=new W(`mo`,[new bL(ole[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},sle={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`r
478ightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},cle=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),IL=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(cle.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:WI([],[new UF([new WF(o)],{width:`100%`,height:F(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}else{var l=[],u=sle[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var[d,f,p]=u,m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support 479 `+h+` children.`);for(var v=0;v<h;v++){var y=new UF([new WF(d[v])],{width:`400em`,height:F(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=WI([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=F(m),l.push(b)}return{span:U([`stretchy`],l,t),minWidth:f,height:m}}
vendor: 20,918 bytes, line 479
479}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=F(a),i>0&&(r.style.minWidth=F(i)),r},lle=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=U([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new GF({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new GF({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=WI([],[new UF(c,{width:`100%`,height:F(o)})],i)}return a.height=o,a.style.height=F(o),a},ule={bin:1,close:1,inner:1,open:1,punct:1,rel:1},dle={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function fle(e){return e in ule}function LL(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function RL(e){var t=zL(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function zL(e){return e&&(e.type===`atom`||dle.hasOwnProperty(e.type))?e:null}var BL=e=>{if(e instanceof HF)return e;if(zce(e)&&e.children.length===1)return BL(e.children[0])},VL=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=LL(e.base,`accent`),n=r.base,e.base=n,i=Rce(gL(e,t)),e.base=r):(r=LL(e,`accent`),n=r.base);var a=gL(n,t.havingCrampedStyle()),o=r.isShifty&&dF(n),s=0;o&&(s=BL(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=IL(r,t),u=JI({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+F(2*s)+`)`,marginLeft:F(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=$I(`vec`,t),f=QI.vec[1]):(d=VI({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=Lce(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=U([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=F(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=JI({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=U([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},HL=(e,t)=>{var n=e.isStretchy?FL(e.label):new W(`mo`,[SL(e.label,e.mode)]),r=new W(`mover`,[OL(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},ple=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));oL({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=cL(t[0]),r=!ple.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:VL,mathmlBuilder:HL}),oL({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:VL,mathmlBuilder:HL}),oL({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=gL(e.base,t),r=IL(e,t),i=e.label===`\\utilde`?.12:0;return U([`mord`,`accentunder`],[JI({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=FL(e.label),r=new W(`munder`,[OL(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var UL=e=>{var t=new W(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};oL({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=qI(gL(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=qI(gL(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=IL(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=JI({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=JI({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return U([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=FL(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=UL(OL(e.body,t));r=e.below?new W(`munderover`,[n,UL(OL(e.below,t)),i]):new W(`mover`,[n,i])}else e.below?r=new W(`munder`,[n,UL(OL(e.below,t))]):(r=UL(),r=new W(`mover`,[n,r]));return r}});function WL(e,t){var n=uL(e.body,t,!0);return U([e.mclass],n,t)}function GL(e,t){var n,r=EL(e.body,t);return e.mclass===`minner`?n=new W(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new W(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new W(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}oL({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:lL(i),isCharacterBox:dF(i)}},htmlBuilder:WL,mathmlBuilder:GL});var KL=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};oL({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:KL(t[0]),body:lL(t[1]),isCharacterBox:dF(t[1])}}}),oL({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:KL(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:lL(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:dF(c)}},htmlBuilder:WL,mathmlBuilder:GL}),oL({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:KL(t[0]),body:lL(t[0])}},htmlBuilder(e,t){var n=uL(e.body,t,!0),r=U([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new W(`mstyle`,EL(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var mle={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},qL=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),JL=e=>e.type===`textord`&&e.text===`@`,hle=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function gle(e,t,n){var r=mle[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function _le(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new P(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=qL(),c=0;c<o.length;c++)if(!JL(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=RL(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l))if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(hle(o[p],l)){f=!1,c=p;break}if(JL(o[p]))throw new P(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new P(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new P(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[gle(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=qL()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}oL({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=qI(gL(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=F(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new W(`mrow`,[OL(e.label,t)]);return n=new W(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new W(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),oL({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=qI(gL(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new W(`mrow`,[OL(e.fragment,t)])}}),oL({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=LL(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=LL(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new P(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new P(`\\@char with invalid code point `+i);return s<=65535?c=String.fromCharCode(s):(s-=65536,c=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:c}}});var YL=(e,t)=>KI(uL(e.body,t.withColor(e.color),!1)),XL=(e,t)=>{var n=new W(`mstyle`,EL(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};oL({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=LL(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:lL(i)}},htmlBuilder:YL,mathmlBuilder:XL}),oL({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=LL(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:YL,mathmlBuilder:XL}),oL({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&LL(i,`size`).value}},htmlBuilder(e,t){var n=U([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=F(PF(e.size,t)))),n},mathmlBuilder(e,t){var n=new W(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,F(PF(e.size,t)))),n}});var ZL={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},QL=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new P(`Expected a control sequence`,e);return t},vle=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},$L=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};oL({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(ZL[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=ZL[r.text]),LL(t.parseFunction(),`internal`);throw new P(`Invalid token after macro prefix`,r)}}),oL({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new P(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new P(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new P(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new P(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===ZL[n]),{type:`internal`,mode:t.mode}}}),oL({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=QL(t.gullet.popToken());return t.gullet.consumeSpaces(),$L(t,r,vle(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),oL({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=QL(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return $L(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var eR=function(e,t,n){var r=XF(QF.math[e]&&QF.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},tR=function(e,t,n,r){var i=n.havingBaseStyle(t),a=U(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},nR=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=F(i),e.height-=i,e.depth+=i},yle=function(e,t,n,r,i,a){var o=tR(zI(e,`Main-Regular`,i,r),t,r,a);return n&&nR(o,r,t),o},ble=function(e,t,n,r){return zI(e,`Size`+t+`-Regular`,n,r)},rR=function(e,t,n,r,i,a){var o=ble(e,t,i,r),s=tR(U([`delimsizing`,`size`+t],[o],r),wF.TEXT,r,a);return n&&nR(s,r,wF.TEXT),s},iR=function(e,t,n){return{type:`elem`,elem:U([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[U([],[zI(e,t,n)])])}},aR=function(e,t,n){var r=KF[`Size4-Regular`][e.charCodeAt(0)]?KF[`Size4-Regular`][e.charCodeAt(0)][4]:KF[`Size1-Regular`][e.charCodeAt(0)][4],i=WI([],[new UF([new WF(`inner`,Ace(e,Math.round(1e3*t)))],{width:F(r),height:F(t),style:`width:`+F(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=F(t),i.style.width=F(r),{type:`elem`,elem:i}},oR=.008,sR={type:`kern`,size:-1*oR},xle=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Sle=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),cR=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`â`:e===`\\Uparrow`?c=l=`â`:e===`\\downarrow`?o=c=`â`:e===`\\Downarrow`?o=c=`â`:e===`\\updownarrow`?(o=`\\uparrow`,c=`â`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`â`,l=`\\Downarrow`):xle.has(e)?(c=`â£`,u=`vert`,d=333):Sle.has(e)?(c=`â¥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`â¡`,c=`â¢`,l=`â£`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`â¤`,c=`â¥`,l=`â¦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`â`?(c=o=`â¢`,l=`â£`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`â`?(o=`â¡`,c=l=`â¢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`â`?(c=o=`â¥`,l=`â¦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`â`?(o=`â¤`,c=l=`â¥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`â`,c=`â`,l=`â`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`â`,c=`â`,l=`â `,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`â§`,s=`â¨`,l=`â©`,c=`âª`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`â«`,s=`â¬`,l=`â`,c=`âª`,f=`Size4-Regular`):e===`\\lgroup`||e===`â®`?(o=`â§`,l=`â©`,c=`âª`,f=`Size4-Regular`):e===`\\rgroup`||e===`â¯`?(o=`â«`,l=`â`,c=`âª`,f=`Size4-Regular`):e===`\\lmoustache`||e===`â°`?(o=`â§`,l=`â`,c=`âª`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`â±`)&&(o=`â«`,l=`â©`,c=`âª`,f=`Size4-Regular`);var p=eR(o,f,i),m=p.height+p.depth,h=eR(c,f,i),g=h.height+h.depth,_=eR(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=eR(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var ee=C/2-w,te=[];if(u.length>0){var ne=C-m-v,re=Math.round(C*1e3),ie=jce(u,Math.round(ne*1e3)),ae=new WF(u,ie),oe=F(d/1e3),se=F(re/1e3),ce=WI([],[new UF([ae],{width:oe,height:se,viewBox:`0 0 `+d+` `+re})],r);ce.height=re/1e3,ce.style.width=oe,ce.style.height=se,te.push({type:`elem`,elem:ce})}else{if(te.push(iR(l,f,i)),te.push(sR),s===null){var le=C-m-v+2*oR;te.push(aR(c,le,r))}else{var ue=(C-m-v-y)/2+2*oR;te.push(aR(c,ue,r)),te.push(sR),te.push(iR(s,f,i)),te.push(sR),te.push(aR(c,ue,r))}te.push(sR),te.push(iR(o,f,i))}var de=r.havingBaseStyle(wF.TEXT);return tR(U([`delimsizing`,`mult`],[JI({positionType:`bottom`,positionData:ee,children:te})],de),wF.TEXT,r,a)},lR=80,uR=.08,dR=function(e,t,n,r,i){return WI([`hide-tail`],[new UF([new WF(e,kce(e,r,n))],{width:`400em`,height:F(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},Cle=function(e,t){var n=t.havingBaseSizing(),r=_R(`\\surd`,e*n.sizeMultiplier,gR,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+lR,e<1?i=1:e<1.4&&(i=.7),s=(1+a+uR)/i,c=(1+a)/i,o=dR(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+lR)*mR[r.size],c=(mR[r.size]+a)/i,s=(mR[r.size]+a+uR)/i,o=dR(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+uR,c=e+a,l=Math.floor(1e3*e+a)+lR,o=dR(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=F(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},fR=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}
479`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`â`,`â`,`\\lceil`,`\\rceil`,`â`,`â`,`\\surd`]),wle=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`â®`,`â¯`,`\\lmoustache`,`\\rmoustache`,`â°`,`â±`]),pR=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),mR=[0,1.2,1.8,2.4,3],hR=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`â¨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`â©`)&&(e=`\\rangle`),fR.has(e)||pR.has(e))return rR(e,t,!1,n,r,i);if(wle.has(e))return cR(e,mR[t],!1,n,r,i);throw new P(`Illegal delimiter: '`+e+`'`)},Tle=[{type:`small`,style:wF.SCRIPTSCRIPT},{type:`small`,style:wF.SCRIPT},{type:`small`,style:wF.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Ele=[{type:`small`,style:wF.SCRIPTSCRIPT},{type:`small`,style:wF.SCRIPT},{type:`small`,style:wF.TEXT},{type:`stack`}],gR=[{type:`small`,style:wF.SCRIPTSCRIPT},{type:`small`,style:wF.SCRIPT},{type:`small`,style:wF.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Dle=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},_R=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=eR(e,Dle(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},vR=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`â¨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`â©`)&&(e=`\\rangle`);var o=pR.has(e)?Tle:fR.has(e)?gR:Ele,s=_R(e,t,o,r);return s.type===`small`?yle(e,s.style,n,r,i,a):s.type===`large`?rR(e,s.size,n,r,i,a):cR(e,t,n,r,i,a)},yR=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return vR(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},bR={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},xR=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,â,â,\\lceil,\\rceil,â,â,<,>,\\langle,â¨,\\rangle,â©,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,â®,â¯,\\lmoustache,\\rmoustache,â°,â±,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function SR(e){return`isMiddle`in e}function CR(e,t){var n=zL(e);if(n&&xR.has(n.text))return n;throw n?new P(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new P(`Invalid delimiter type '`+e.type+`'`,e)}oL({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=CR(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:bR[e.funcName].size,mclass:bR[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?U([e.mclass]):hR(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(SL(e.delim,e.mode));var n=new W(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=F(mR[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function wR(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}oL({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new P(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:CR(t[0],e).text,color:n}}}),oL({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=CR(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=LL(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{wR(e);for(var n=uL(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];SR(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?hL(t,[`mopen`]):yR(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(SR(u)){var d=u.isMiddle;n[l]=yR(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=hL(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=yR(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),U([`minner`],n,t)},mathmlBuilder:(e,t)=>{wR(e);var n=EL(e.body,t);if(e.left!==`.`){var r=new W(`mo`,[SL(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new W(`mo`,[SL(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return CL(n)}}),oL({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=CR(t[0],e);if(!e.parser.leftrightDepth)throw new P(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=hL(t,[]):(n=hR(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new W(`mo`,[e.delim===`\\vert`||e.delim===`|`?SL(`|`,`text`):SL(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var TR=(e,t)=>{var n=qI(gL(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=dF(e.body);if(r===`sout`)a=U([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=PF({number:.6,unit:`pt`},t),l=PF({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=F(d/2+c);var f=Math.floor(1e3*d*i);a=WI([`hide-tail`],[new UF([new WF(`phase`,Dce(f))],{width:`400em`,height:F(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=F(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=lle(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=F(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=F(h),a.style.borderRightWidth=F(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=JI({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});
vendor: 4,906 bytes, line 479
479else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=JI({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?U([`mord`,`cancel-lap`],[g],t):U([`mord`],[g],t)},ER=(e,t)=>{var n,r=new W(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[OL(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+F(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};oL({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=LL(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:TR,mathmlBuilder:ER}),oL({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=LL(t[0],`color-token`).color,o=LL(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:TR,mathmlBuilder:ER}),oL({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),oL({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:TR,mathmlBuilder:ER}),oL({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:TR,mathmlBuilder:ER}),oL({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var DR={};function OR(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)DR[n[c]]=s;a&&(iL[t]=a),o&&(aL[t]=o)}var kR={};function G(e,t){kR[e]=t}var AR=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},jR=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,AR.range(this,t))}};function MR(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var NR=e=>{if(!e.parser.settings.displayMode)throw new P(`{`+e.envName+`} can be used only in display mode.`)},PR=new Set([`gather`,`gather*`]);function FR(e){if(!e.includes(`ed`))return!e.includes(`*`)}function IR(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new P(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new jR(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(MR(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);
vendor: 4,079 bytes, line 479
479var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new P(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var w=void 0;e.gullet.future().text!==` `&&(w=e.parseSizeGroup(!0)),g.push(w?w.value:null),b(),_.push(MR(e)),m=[],h.push(m),y()}else throw new P(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function LR(e){return e.slice(0,1)===`d`?`display`:`text`}var RR=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(wF.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?PF({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=gL(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var w=e.rowGaps[n],ee=0;w&&(ee=PF(w,t),ee>0&&(ee+=g,x<ee&&(x=ee),ee=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+ee,s[n]=S,v(a[n+1])}var te=_/2+t.fontMetrics().axisHeight,ne=e.cols||[],re=[],ie,ae,oe=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var se=s[n],ce=se.pos-te,le=e.tags[n],ue=void 0;ue=le===!0?U([`eqn-num`],[],t):le===!1?U([],[],t):U([],uL(le,t,!0),t),ue.depth=se.depth,ue.height=se.height,oe.push({type:`elem`,elem:ue,shift:ce})}for(r=0,ae=0;r<o||ae<ne.length;++r,++ae){for(var de=ne[ae],fe=!0;(pe=de)?.type===`separator`;){var pe;if(fe||(ie=U([`arraycolsep`],[]),ie.style.width=F(t.fontMetrics().doubleRuleSep),re.push(ie)),de.separator===`|`||de.separator===`:`){var me=de.separator===`|`?`solid`:`dashed`,he=U([`vertical-separator`],[],t);he.style.height=F(_),he.style.borderRightWidth=F(l),he.style.borderRightStyle=me,he.style.margin=`0 `+F(-l/2);var ge=_-te;ge&&(he.style.verticalAlign=F(-ge)),re.push(he)}else throw new P(`Invalid separator type: `+de.separator);ae++,de=ne[ae],fe=!1}if(!(r>=o)){var _e=void 0;(r>0||e.hskipBeforeAndAfter)&&(_e=de?.pregap??d,_e!==0&&(ie=U([`arraycolsep`],[]),ie.style.width=F(_e),re.push(ie)));var ve=[];for(n=0;n<i;++n){var ye=s[n],be=ye.cells[r];if(be){var xe=ye.pos-te;be.depth=ye.depth,be.height=ye.height,ve.push({type:`elem`,elem:be,shift:xe})}}var Se=JI({positionType:`individualShift`,children:ve}),Ce=U([`col-align-`+(de?.align||`c`)],[Se]);re.push(Ce),(r<o-1||e.hskipBeforeAndAfter)&&(_e=de?.postgap??d,_e!==0&&(ie=U([`arraycolsep`],[]),ie.style.width=F(_e),re.push(ie)))}}var we=U([`mtable`],re);if(c.length>0){for(var Te=GI(`hline`,t,l),Ee=GI(`hdashline`,t,l),De=[{type:`elem`,elem:we,shift:0}];c.length>0;){var Oe=c.pop(),ke=Oe.pos-te;Oe.isDashed?De.push({type:`elem`,elem:Ee,shift:ke}):De.push({type:`elem`,elem:Te,shift:ke})}we=JI({positionType:`individualShift`,children:De})}if(oe.length===0)return U([`mord`],[we],t);var Ae=U([`tag`],[JI({positionType:`individualShift`,children:oe})],t);return KI([we,Ae])},zR={c:`center `,l:`left `,r:`right `},BR=function(e,t){for(var n=[],r=new W(`mtd`,[],[`mtr-glue`]),i=new W(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new W(`mtd`,[OL(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new W(`mtr`,s))}var l=new W(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);
vendor: 22,236 bytes, line 479
479l.setAttribute(`rowspacing`,F(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=zR[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,w=e.hLinesBeforeRow;d+=w[0].length>0?`left `:``,d+=w[w.length-1].length>0?`right `:``;for(var ee=1;ee<w.length-1;ee++)C+=w[ee].length===0?`none `:w[ee][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new W(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new W(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},VR=function(e,t){e.envName.includes(`ed`)||NR(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=IR(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:FR(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o=0,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u<t[0].body.length;u++){var d=LL(t[0].body[u],`textord`);l+=d.text}o=Number(l),s=o*2}var f=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2)LL(LL(e[t],`styling`).body[0],`ordgroup`).body.unshift(c);if(f)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new P(`Too many math in a row: `+(`expected `+o+`, but got `+n),e[0])}});for(var p=0;p<s;++p){var m=`r`,h=0;p%2==1?m=`l`:p>0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};OR({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(zL(t[0])?[t[0]]:LL(t[0],`ordgroup`).body).map(function(e){var t=RL(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new P(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return IR(e.parser,r,LR(e.envName))},htmlBuilder:RR,mathmlBuilder:BR}),OR({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new P(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=IR(e.parser,r,LR(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:RR,mathmlBuilder:BR}),OR({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=IR(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:RR,mathmlBuilder:BR}),OR({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(zL(t[0])?[t[0]]:LL(t[0],`ordgroup`).body).map(function(e){var t=RL(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new P(`Unknown column alignment: `+t,e)});if(n.length>1)throw new P(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=IR(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new P(`{subarray} can contain only one column`);return i},htmlBuilder:RR,mathmlBuilder:BR}),OR({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=IR(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},LR(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:RR,mathmlBuilder:BR}),OR({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:VR,htmlBuilder:RR,mathmlBuilder:BR}),OR({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){PR.has(e.envName)&&NR(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:FR(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return IR(e.parser,t,`display`)},htmlBuilder:RR,mathmlBuilder:BR}),OR({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:VR,htmlBuilder:RR,mathmlBuilder:BR}),OR({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){NR(e);var t={autoTag:FR(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return IR(e.parser,t,`display`)},htmlBuilder:RR,mathmlBuilder:BR}),OR({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return NR(e),_le(e.parser)},htmlBuilder:RR,mathmlBuilder:BR}),G(`\\nonumber`,`\\gdef\\@eqnsw{0}`),G(`\\notag`,`\\nonumber`),oL({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new P(e.funcName+` valid only within array environment`)}});var HR=DR;oL({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new P(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=LL(i.body[o],`textord`).text;if(r===`\\begin`){if(!HR.hasOwnProperty(a))throw new P(`No such environment: `+a,i);var s=HR[a],{args:c,optArgs:l}=n.parseArguments(`\\begin{`+a+`}`,s),u={mode:n.mode,envName:a,parser:n},d=s.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=LL(n.parseFunction(),`environment`);if(p.name!==a)throw new P(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var UR=(e,t)=>{var n=e.font,r=t.withFont(n);return gL(e.body,r)},WR=(e,t)=>{var n=e.font,r=t.withFont(n);return OL(e.body,r)},GR={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};oL({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=cL(t[0]),a=r;return a in GR&&(a=GR[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:UR,mathmlBuilder:WR}),oL({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:KL(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:dF(r)}}}),oL({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:UR,mathmlBuilder:WR});var KR=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=gL(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=gL(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=PF(e.barSize,t),u=GI(`frac-line`,t,d)):u=GI(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===wF.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=JI({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=JI({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===wF.DISPLAY.size?t.fontMetrics().delim1:n.size===wF.SCRIPTSCRIPT.size?t.havingStyle(wF.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?hL(t,[`mopen`]):vR(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?U([]):e.rightDelim==null?hL(t,[`mclose`]):vR(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return U([`mord`].concat(a.sizingClasses(t)),[x,U([`mfrac`],[g]),S],t)},qR=(e,t)=>{var n=new W(`mfrac`,[OL(e.numer,t),OL(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=PF(e.barSize,t);n.setAttribute(`linethickness`,F(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new W(`mo`,[new bL(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new W(`mo`,[new bL(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return CL(i)}return n},JR=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;oL({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),JR({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:KR,mathmlBuilder:qR}),oL({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var YR=[`display`,`text`,`script`,`scriptscript`],XR=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};oL({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=cL(t[0]),o=a.type===`atom`&&a.family===`open`?XR(a.text):null,s=cL(t[1]),c=s.type===`atom`&&s.family===`close`?XR(s.text):null,l=LL(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=LL(p.body[0],`textord`);f=YR[Number(m.text)]}}else p=LL(p,`textord`),f=YR[Number(p.text)];return JR({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),oL({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:LL(t[0],`size`).value,token:i}}}),oL({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=LL(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var ZR=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?gL(e.sup,t.havingStyle(n.sup()),t):gL(e.sub,t.havingStyle(n.sub()),t),i=LL(e.base,`horizBrace`)):i=LL(e,`horizBrace`);var a=gL(i.base,t.havingBaseStyle(wF.DISPLAY)),o=IL(i,t),s=i.isOver?JI({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):JI({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=U([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?JI({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):JI({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return U([`minner`,i.isOver?`mover`:`munder`],[s],t)};oL({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:ZR,mathmlBuilder:(e,t)=>{var n=FL(e.label);return new W(e.isOver?`mover`:`munder`,[OL(e.base,t),n])}}),oL({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=LL(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:lL(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=uL(e.body,t,!1);return Kce(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=DL(e.body,t);return n instanceof W||(n=new W(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),oL({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=LL(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:lL(s)}}}),oL({type:`hbox`,names:[`\\hbox`],props:{numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:`hbox`,mode:n.mode,body:lL(t[0])}},htmlBuilder(e,t){return KI(uL(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new W(`mrow`,EL(e.body,t.withFont(``)))}}),oL({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],props:{numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=LL(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u<l.length;u++){var d=l[u],f=d.indexOf(`=`);if(f<0)throw new P(`\\htmlData key/value '`+d+`' missing equals sign`);var p=d.slice(0,f),m=d.slice(f+1);c[`data-`+p.trim()]=m}s={command:`\\htmlData`,attributes:c};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(s)?{type:`html`,mode:n.mode,attributes:c,body:lL(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=uL(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=U(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>DL(e.body,t)}),oL({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:lL(t[0]),mathml:lL(t[1])}},htmlBuilder:(e,t)=>KI(uL(e.html,t,!1)),mathmlBuilder:(e,t)=>DL(e.mathml,t)});var QR=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new P(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!NF(n))throw new P(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};oL({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=LL(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=QR(d);break;case`height`:a=QR(d);break;case`totalheight`:o=QR(d);break;default:throw new P(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=LL(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=PF(e.height,t),r=0;e.totalheight.number>0&&(r=PF(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=PF(e.width,t));var a={height:F(n+r)};i>0&&(a.width=F(i)),r>0&&(a.verticalAlign=F(-r));var o=new Fce(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new W(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=PF(e.height,t),i=0;if(e.totalheight.number>0&&(i=PF(e.totalheight,t)-r,n.setAttribute(`valign`,F(-i))),n.setAttribute(`height`,F(r+i)),e.width.number>0){var a=PF(e.width,t);n.setAttribute(`width`,F(a))}return n.setAttribute(`src`,e.src),n}}),oL({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=LL(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return YI(e.dimension,t)},mathmlBuilder(e,t){return new xL(PF(e.dimension,t))}}),oL({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=U([],[gL(e.body,t)]),n=U([`inner`],[n],t)):n=U([`inner`],[gL(e.body,t)]);var r=U([`fix`],[]),i=U([e.alignment],[n,r],t),a=U([`strut`]);return a.style.height=F(i.height+i.depth),i.depth&&(a.style.verticalAlign=F(-i.depth)),i.children.unshift(a),i=U([`thinbox`],[i],t),U([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new W(`mpadded`,[OL(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),oL({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),oL({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new P(`Mismatched `+e.funcName)}});var $R=(e,t)=>{switch(t.style.size){case wF.DISPLAY.size:return e.display;case wF.TEXT.size:return e.text;case wF.SCRIPT.size:return e.script;case wF.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};oL({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:lL(t[0]),text:lL(t[1]),script:lL(t[2]),scriptscript:lL(t[3])}},htmlBuilder:(e,t)=>KI(uL($R(e,t),t,!1)),mathmlBuilder:(e,t)=>DL($R(e,t),t)});var ez=(e,t,n,r,i,a,o)=>{e=U([],[e]);var s=n&&dF(n),c,l;if(t){var u=gL(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=gL(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=JI({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:F(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:F(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=JI({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:F(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=JI({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:F(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=U([`mspace`],[],r);m.style.marginRight=F(a),p.unshift(m)}return U([`mop`,`op-limits`],p,r)},tz=new Set([`\\smallint`]),nz=(e,t)=>
vendor: 1,071 bytes, line 479
479{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=LL(e.base,`op`),i=!0):a=LL(e,`op`);var o=t.style,s=!1;o.size===wF.DISPLAY.size&&a.symbol&&!tz.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=zI(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=$I(d+`Size`+(s?`2`:`1`),t);c=JI({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=uL(a.body,t,!0);p.length===1&&p[0]instanceof HF?(c=p[0],c.classes[0]=`mop`):c=U([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(BI(a.name[h],a.mode,t));c=U([`mop`],m,t)}var g=0,_=0;return(c instanceof HF||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?ez(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=F(g)),c)}
vendor: 17,712 bytes, lines 479-482
479,rz=(e,t)=>{var n;if(e.symbol)n=new W(`mo`,[SL(e.name,e.mode)]),tz.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new W(`mo`,EL(e.body,t));else{n=new W(`mi`,[new bL(e.name.slice(1))]);var r=new W(`mo`,[SL(`â¡`,`text`)]);n=e.parentIsSupSub?new W(`mrow`,[n,r]):yL([n,r])}return n},iz={"â":`\\prod`,"â":`\\coprod`,"â":`\\sum`,"â":`\\bigwedge`,"â":`\\bigvee`,"â":`\\bigcap`,"â":`\\bigcup`,"â¨":`\\bigodot`,"â¨":`\\bigoplus`,"â¨":`\\bigotimes`,"â¨":`\\biguplus`,"â¨":`\\bigsqcup`};oL({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.â.â.â.â.â.â.â.â¨.â¨.â¨.â¨.â¨`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=iz[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:nz,mathmlBuilder:rz}),oL({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:lL(r)}},htmlBuilder:nz,mathmlBuilder:rz});var az={"â«":`\\int`,"â¬":`\\iint`,"â":`\\iiint`,"â®":`\\oint`,"â¯":`\\oiint`,"â°":`\\oiiint`};oL({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:nz,mathmlBuilder:rz}),oL({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:nz,mathmlBuilder:rz}),oL({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`â«`,`â¬`,`â`,`â®`,`â¯`,`â°`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=az[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:nz,mathmlBuilder:rz});var oz=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=LL(e.base,`operatorname`),i=!0):a=LL(e,`operatorname`);var o;if(a.body.length>0){for(var s=uL(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof HF&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=U([`mop`],s,t)}else o=U([`mop`],[],t);return i?ez(o,n,r,t,t.style,0,0):o};oL({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:lL(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:oz,mathmlBuilder:(e,t)=>{for(var n=EL(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof xL))if(a instanceof W)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof bL?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}r&&(n=[new bL(n.map(e=>e.toText()).join(``))]);var s=new W(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new W(`mo`,[SL(`â¡`,`text`)]);return e.parentIsSupSub?new W(`mrow`,[s,c]):yL([s,c])}}),G(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),sL({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?KI(uL(e.body,t,!1)):U([`mord`],uL(e.body,t,!0),t)},mathmlBuilder(e,t){return DL(e.body,t,!0)}}),oL({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=gL(e.body,t.havingCrampedStyle()),r=GI(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return U([`mord`,`overline`],[JI({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new W(`mo`,[new bL(`â¾`)]);n.setAttribute(`stretchy`,`true`);var r=new W(`mover`,[OL(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),oL({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:lL(r)}},htmlBuilder:(e,t)=>KI(uL(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new W(`mphantom`,EL(e.body,t))}),G(`\\hphantom`,`\\smash{\\phantom{#1}}`),oL({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>U([`mord`,`rlap`],[U([`inner`],[gL(e.body,t.withPhantom())]),U([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new W(`mpadded`,[new W(`mphantom`,EL(lL(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),oL({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=LL(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=gL(e.body,t);return JI({positionType:`shift`,positionData:-PF(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new W(`mpadded`,[OL(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),oL({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),oL({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=LL(t[0],`size`),o=LL(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&LL(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=U([`mord`,`rule`],[],t),r=PF(e.width,t),i=PF(e.height,t),a=e.shift?PF(e.shift,t):0;return n.style.borderRightWidth=F(r),n.style.borderTopWidth=F(i),n.style.bottom=F(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=PF(e.width,t),r=PF(e.height,t),i=e.shift?PF(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new W(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,F(n)),o.setAttribute(`height`,F(r));var s=new W(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,F(i)):(s.setAttribute(`height`,F(i)),s.setAttribute(`depth`,F(-i))),s.setAttribute(`voffset`,F(i)),s}});function sz(e,t,n){for(var r=uL(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return KI(r)}var cz=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];oL({type:`sizing`,names:cz,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:cz.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return sz(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new W(`mstyle`,EL(e.body,n));return r.setAttribute(`mathsize`,F(n.sizeMultiplier)),r}}),oL({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&LL(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=RL(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=U([],[gL(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return U([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return U([`mord`],[JI({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new W(`mpadded`,[OL(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),oL({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=gL(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=qI(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<wF.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=Cle(n.height+n.depth+a+r,t),l=o.height-s;l>n.height+n.depth+a&&(a=(a+l-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=F(c);var d=JI({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+u)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var f=t.havingStyle(wF.SCRIPTSCRIPT),p=gL(e.index,f,t);return U([`mord`,`sqrt`],[U([`root`],[JI({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}else return U([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new W(`mroot`,[OL(n,t),OL(r,t)]):new W(`msqrt`,[OL(n,t)])}});var lz={display:wF.DISPLAY,text:wF.TEXT,script:wF.SCRIPT,scriptscript:wF.SCRIPTSCRIPT};function uz(e){return e in lz}oL({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!uz(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=lz[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),sz(e.body,r,t)},mathmlBuilder(e,t){var n=lz[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new W(`mstyle`,EL(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var dz=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===wF.DISPLAY.size||n.alwaysHandleSupSub)?nz:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===wF.DISPLAY.size||n.limits)?oz:null:n.type===`accent`?dF(n.base)?VL:null:n.type===`horizBrace`&&!e.sub===n.isOver?ZR:null:null};sL({type:`supsub`,htmlBuilder(e,t){var n=dz(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=gL(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&dF(r);if(i){var p=t.havingStyle(t.style.sup());s=gL(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=gL(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===wF.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=F(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof HF||y)&&(v=F(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=JI({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=JI({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=JI({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return U([mL(o,`right`)||`mord`],[o,U([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[OL(e.base,t)];e.sub&&a.push(OL(e.sub,t)),e.sup&&a.push(OL(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===wF.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===wF.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===wF.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===wF.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===wF.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===wF.DISPLAY)?`munder`:`msub`}return new W(o,a)}}),sL({type:`atom`,htmlBuilder(e,t){return BI(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new W(`mo`,[SL(e.text,e.mode)]);if(e.family===`bin`){var r=wL(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var fz={mi:`italic`,mn:`normal`,mtext:`normal`};sL({type:`mathord`,htmlBuilder(e,t){return VI(e,t,`mathord`)},mathmlBuilder(e,t){var n=new W(`mi`,[SL(e.text,e.mode,t)]),r=wL(e,t)||`italic`;return r!==fz[n.type]&&n.setAttribute(`mathvariant`,r),n}}),sL({type:`textord`,htmlBuilder(e,t){return VI(e,t,`textord`)},mathmlBuilder(e,t){var n=SL(e.text,e.mode,t),r=wL(e,t)||`normal`,i=e.mode===`text`?new W(`mtext`,[n]):/[0-9]/.test(e.text)?new W(`mn`,[n]):e.text===`\\prime`?new W(`mo`,[n]):new W(`mi`,[n]);return r!==fz[i.type]&&i.setAttribute(`mathvariant`,r),i}});var pz={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},mz={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};sL({type:`spacing`,htmlBuilder(e,t){if(mz.hasOwnProperty(e.text)){var n=mz[e.text].className||``;if(e.mode===`text`){var r=VI(e,t,`textord`);return r.classes.push(n),r}else return U([`mspace`,n],[BI(e.text,e.mode,t)],t)}else if(pz.hasOwnProperty(e.text))return U([`mspace`,pz[e.text]],[],t);else throw new P(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(mz.hasOwnProperty(e.text))n=new W(`mtext`,[new bL(`\xA0`)]);else if(pz.hasOwnProperty(e.text))return new W(`mspace`);else throw new P(`Unknown type of space "`+e.text+`"`);return n}});var hz=()=>{var e=new W(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};sL({type:`tag`,mathmlBuilder(e,t){var n=new W(`mtable`,[new W(`mtr`,[hz(),new W(`mtd`,[DL(e.body,t)]),hz(),new W(`mtd`,[DL(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var gz={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},_z={"\\textbf":`textbf`,"\\textmd":`textmd`},vz={"\\textit":`textit`,"\\textup":`textup`},yz=(e,t)=>{var n=e.font;return n?gz[n]?t.withTextFontFamily(gz[n]):_z[n]?t.withTextFontWeight(_z[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(vz[n]):t};oL({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:lL(i),font:r}},htmlBuilder(e,t){var n=yz(e,t);return U([`mord`,`text`],uL(e.body,n,!0),n)},mathmlBuilder(e,t){var n=yz(e,t);return DL(e.body,n)}}),oL({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=gL(e.body,t),r=GI(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return U([`mord`,`underline`],[JI({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new W(`mo`,[new bL(`â¾`)]);n.setAttribute(`stretchy`,`true`);var r=new W(`munder`,[OL(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),oL({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=gL(e.body,t),r=t.fontMetrics().axisHeight;return JI({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new W(`mrow`,[new W(`mpadded`,[OL(e.body,t)],[`vcenter`])])}}),oL({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new P(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=bz(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(zI(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return U([`mord`,`text`].concat(i.sizingClasses(t)),HI(r),i)},mathmlBuilder(e,t){var n=new W(`mtext`,[new bL(bz(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var bz=e=>e.body.replace(/ /g,e.star?`â£`:`\xA0`),xz=rL,Sz=`[ \r 480 ]`,Cz=`\\\\[a-zA-Z@]+`,wz=`\\\\[^\ud800-\udfff]`,Tz=`(`+Cz+`)`+Sz+`*`,Ez=`\\\\( 481|[ \r ]+ 482?)[ \r ]*`,Dz=`[Ì-ͯ]`,Oz=RegExp(Dz+`+$`),kz=`(`+Sz+`+)|`+(Ez+`|`)+`([
482!-\\[\\]-â§âª-í¿ï¤-ï¿¿]`+(Dz+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(Dz+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+Tz)+(`|`+wz+`)`),Az=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(kz,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new jR(`EOF`,new AR(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new P(`Unexpected character: '`+e[t]+`'`,new jR(e[t],new AR(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(` 483`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=i+1,this.lex()}return new jR(r,new AR(this,t,this.tokenRegex.lastIndex))}},jz=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new P(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},Mz=kR;G(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),G(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),G(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),G(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),G(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),G(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),G(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Nz={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};G(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new P("\\char` missing argument");else r=t.text.charCodeAt(0);else n=10;if(n){if(r=Nz[t.text],r==null||r>=n)throw new P(`Invalid base-`+n+` digit `+t.text);for(var i;(i=Nz[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var Pz=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new P(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new P(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new P(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new P(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};G(`\\newcommand`,e=>Pz(e,!1,!0,!1)),G(`\\renewcommand`,e=>Pz(e,!0,!1,!1)),G(`\\providecommand`,e=>Pz(e,!0,!0,!0)),G(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),G(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),G(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),xz[n],QF.math[n],QF.text[n]),``}),G(`\\bgroup`,`{`),G(`\\egroup`,`}`),G(`~`,`\\nobreakspace`),G(`\\lq`,"`"),G(`\\rq`,`'`),G(`\\aa`,`\\r a`),G(`\\AA`,`\\r A`),G(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),G(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),G(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),G(`â¬`,`\\mathscr{B}`),G(`â°`,`\\mathscr{E}`),G(`â±`,`\\mathscr{F}`),G(`â`,`\\mathscr{H}`),G(`â`,`\\mathscr{I}`),G(`â`,`\\mathscr{L}`),G(`â³`,`\\mathscr{M}`),G(`â`,`\\mathscr{R}`),G(`â`,`\\mathfrak{C}`),G(`â`,`\\mathfrak{H}`),G(`â¨`,`\\mathfrak{Z}`),G(`\\Bbbk`,`\\Bbb{k}`),G(`\\llap`,`\\mathllap{\\textrm{#1}}`),G(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),G(`\\clap`,`\\mathclap{\\textrm{#1}}`),G(`\\mathstrut`,`\\vphantom{(}`),G(`\\underbar`,`\\underline{\\text{#1}}`),G(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),G(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`â }}"),G(`\\ne`,`\\neq`),G(`â `,`\\neq`),G(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`â}}"),G(`â`,`\\notin`),G(`â`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`â}}"),G(`â`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`â}}"),G(`â`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`â}}"),G(`â`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`â}}"),G(`â`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`â}}"),G(`â`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`â}}"),G(`â`,"\\html@mathml{\\stackrel{\\tiny?}{=}}
483{\\mathrel{\\char`â}}"),G(`â`,`\\perp`),G(`â¼`,`\\mathclose{!\\mkern-0.8mu!}`),G(`â`,`\\notni`),G(`â`,`\\ulcorner`),G(`â`,`\\urcorner`),G(`â`,`\\llcorner`),G(`â`,`\\lrcorner`),G(`©`,`\\copyright`),G(`®`,`\\textregistered`),G(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),G(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),G(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),G(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),G(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),G(`â®`,`\\vdots`),G(`\\varGamma`,`\\mathit{\\Gamma}`),G(`\\varDelta`,`\\mathit{\\Delta}`),G(`\\varTheta`,`\\mathit{\\Theta}`),G(`\\varLambda`,`\\mathit{\\Lambda}`),G(`\\varXi`,`\\mathit{\\Xi}`),G(`\\varPi`,`\\mathit{\\Pi}`),G(`\\varSigma`,`\\mathit{\\Sigma}`),G(`\\varUpsilon`,`\\mathit{\\Upsilon}`),G(`\\varPhi`,`\\mathit{\\Phi}`),G(`\\varPsi`,`\\mathit{\\Psi}`),G(`\\varOmega`,`\\mathit{\\Omega}`),G(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),G(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),G(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),G(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),G(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),G(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),G(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),G(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var Fz={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},Iz=new Set([`bin`,`rel`]);G(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in Fz?t=Fz[n]:(n.slice(0,4)===`\\not`||n in QF.math&&Iz.has(QF.math[n].group))&&(t=`\\dotsb`),t});var Lz={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};G(`\\dotso`,function(e){return e.future().text in Lz?`\\ldots\\,`:`\\ldots`}),G(`\\dotsc`,function(e){var t=e.future().text;return t in Lz&&t!==`,`?`\\ldots\\,`:`\\ldots`}),G(`\\cdots`,function(e){return e.future().text in Lz?`\\@cdots\\,`:`\\@cdots`}),G(`\\dotsb`,`\\cdots`),G(`\\dotsm`,`\\cdots`),G(`\\dotsi`,`\\!\\cdots`),G(`\\dotsx`,`\\ldots\\,`),G(`\\DOTSI`,`\\relax`),G(`\\DOTSB`,`\\relax`),G(`\\DOTSX`,`\\relax`),G(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),G(`\\,`,`\\tmspace+{3mu}{.1667em}`),G(`\\thinspace`,`\\,`),G(`\\>`,`\\mskip{4mu}`),G(`\\:`,`\\tmspace+{4mu}{.2222em}`),G(`\\medspace`,`\\:`),G(`\\;`,`\\tmspace+{5mu}{.2777em}`),G(`\\thickspace`,`\\;`),G(`\\!`,`\\tmspace-{3mu}{.1667em}`),G(`\\negthinspace`,`\\!`),G(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),G(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),G(`\\enspace`,`\\kern.5em `),G(`\\enskip`,`\\hskip.5em\\relax`),G(`\\quad`,`\\hskip1em\\relax`),G(`\\qquad`,`\\hskip2em\\relax`),G(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),G(`\\tag@paren`,`\\tag@literal{({#1})}`),G(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new P(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),G(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),G(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),G(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),G(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),G(`\\newline`,`\\\\\\relax`),G(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var Rz=F(KF[`Main-Regular`][84][1]-.7*KF[`Main-Regular`][65][1]);G(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Rz+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),G(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Rz+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),G(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),G(`\\@hspace`,`\\hskip #1\\relax`),G(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),G(`\\ordinarycolon`,`:`),G(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),G(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),G(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),G(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),G(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),G(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),G(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),G(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),G(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),G(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),G(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),G(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),G(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),G(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),G(`â·`,`\\dblcolon`),G(`â¹`,`\\eqcolon`),G(`â`,`\\coloneqq`),G(`â`,`\\eqqcolon`),G(`â©´`,`\\Coloneqq`),G(`\\ratio`,`\\vcentcolon`),G(`\\coloncolon`,`\\dblcolon`),G(`\\colonequals`,`\\coloneqq`),G(`\\coloncolonequals`,`\\Coloneqq`),G(`\\equalscolon`,`\\eqqcolon`),G(`\\equalscoloncolon`,`\\Eqqcolon`),G(`\\colonminus`,`\\coloneq`),G(`\\coloncolonminus`,`\\Coloneq`),G(`\\minuscolon`,`\\eqcolon`),G(`\\minuscoloncolon`,`\\Eqcolon`),G(`\\coloncolonapprox`,`\\Colonapprox`),G(`\\coloncolonsim`,`\\Colonsim`),G(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),G(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),G(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),G(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),G(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`â}}"),G(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),G(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),G(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),G(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),G(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),G(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),G(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),G(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),G(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{â©}`),G(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{â¨}`),G(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{â±}`),G(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{â±}`),G(`\\nleqq`,`\\html@mathml{\\@nleqq}{â°}`),G(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{â°}`),G(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{â¤}`),G(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{â¦}`),G(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{â}`),G(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{â}`),G(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{â}`),G(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{â«}`),G(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{â}`),G(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{â«}`),G(`\\imath`,`\\html@mathml{\\@imath}{ı}`),G(`\\jmath`,`\\html@mathml{\\@jmath}{È·}`),G(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}
483{\\mathopen{\\char`â¦}}"),G(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`â§}}"),G(`â¦`,`\\llbracket`),G(`â§`,`\\rrbracket`),G(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`â¦}}"),G(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`â¦}}"),G(`â¦`,`\\lBrace`),G(`â¦`,`\\rBrace`),G(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),G(`⦵`,`\\minuso`),G(`\\darr`,`\\downarrow`),G(`\\dArr`,`\\Downarrow`),G(`\\Darr`,`\\Downarrow`),G(`\\lang`,`\\langle`),G(`\\rang`,`\\rangle`),G(`\\uarr`,`\\uparrow`),G(`\\uArr`,`\\Uparrow`),G(`\\Uarr`,`\\Uparrow`),G(`\\N`,`\\mathbb{N}`),G(`\\R`,`\\mathbb{R}`),G(`\\Z`,`\\mathbb{Z}`),G(`\\alef`,`\\aleph`),G(`\\alefsym`,`\\aleph`),G(`\\Alpha`,`\\mathrm{A}`),G(`\\Beta`,`\\mathrm{B}`),G(`\\bull`,`\\bullet`),G(`\\Chi`,`\\mathrm{X}`),G(`\\clubs`,`\\clubsuit`),G(`\\cnums`,`\\mathbb{C}`),G(`\\Complex`,`\\mathbb{C}`),G(`\\Dagger`,`\\ddagger`),G(`\\diamonds`,`\\diamondsuit`),G(`\\empty`,`\\emptyset`),G(`\\Epsilon`,`\\mathrm{E}`),G(`\\Eta`,`\\mathrm{H}`),G(`\\exist`,`\\exists`),G(`\\harr`,`\\leftrightarrow`),G(`\\hArr`,`\\Leftrightarrow`),G(`\\Harr`,`\\Leftrightarrow`),G(`\\hearts`,`\\heartsuit`),G(`\\image`,`\\Im`),G(`\\infin`,`\\infty`),G(`\\Iota`,`\\mathrm{I}`),G(`\\isin`,`\\in`),G(`\\Kappa`,`\\mathrm{K}`),G(`\\larr`,`\\leftarrow`),G(`\\lArr`,`\\Leftarrow`),G(`\\Larr`,`\\Leftarrow`),G(`\\lrarr`,`\\leftrightarrow`),G(`\\lrArr`,`\\Leftrightarrow`),G(`\\Lrarr`,`\\Leftrightarrow`),G(`\\Mu`,`\\mathrm{M}`),G(`\\natnums`,`\\mathbb{N}`),G(`\\Nu`,`\\mathrm{N}`),G(`\\Omicron`,`\\mathrm{O}`),G(`\\plusmn`,`\\pm`),G(`\\rarr`,`\\rightarrow`),G(`\\rArr`,`\\Rightarrow`),G(`\\Rarr`,`\\Rightarrow`),G(`\\real`,`\\Re`),G(`\\reals`,`\\mathbb{R}`),G(`\\Reals`,`\\mathbb{R}`),G(`\\Rho`,`\\mathrm{P}`),G(`\\sdot`,`\\cdot`),G(`\\sect`,`\\S`),G(`\\spades`,`\\spadesuit`),G(`\\sub`,`\\subset`),G(`\\sube`,`\\subseteq`),G(`\\supe`,`\\supseteq`),G(`\\Tau`,`\\mathrm{T}`),G(`\\thetasym`,`\\vartheta`),G(`\\weierp`,`\\wp`),G(`\\Zeta`,`\\mathrm{Z}`),G(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),G(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),G(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),G(`\\bra`,`\\mathinner{\\langle{#1}|}`),G(`\\ket`,`\\mathinner{|{#1}\\rangle}`),G(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),G(`\\Bra`,`\\left\\langle#1\\right|`),G(`\\Ket`,`\\left|#1\\right\\rangle`);var zz=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};G(`\\bra@ket`,zz(!1)),G(`\\bra@set`,zz(!0)),G(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),G(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),G(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),G(`\\angln`,`{\\angl n}`),G(`\\blue`,`\\textcolor{##6495ed}{#1}`),G(`\\orange`,`\\textcolor{##ffa500}{#1}`),G(`\\pink`,`\\textcolor{##ff00af}{#1}`),G(`\\red`,`\\textcolor{##df0030}{#1}`),G(`\\green`,`\\textcolor{##28ae7b}{#1}`),G(`\\gray`,`\\textcolor{gray}{#1}`),G(`\\purple`,`\\textcolor{##9d38bd}{#1}`),G(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),G(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),G(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),G(`\\blueD`,`\\textcolor{##11accd}{#1}`),G(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),G(`\\tealA`,`\\textcolor{##94fff5}{#1}`),G(`\\tealB`,`\\textcolor{##26edd5}{#1}`),G(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),G(`\\tealD`,`\\textcolor{##01a995}{#1}`),G(`\\tealE`,`\\textcolor{##208170}{#1}`),G(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),G(`\\greenB`,`\\textcolor{##8af281}{#1}`),G(`\\greenC`,`\\textcolor{##74cf70}{#1}`),G(`\\greenD`,`\\textcolor{##1fab54}{#1}`),G(`\\greenE`,`\\textcolor{##0d923f}{#1}`),G(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),G(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),G(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),G(`\\goldD`,`\\textcolor{##e07d10}{#1}`),G(`\\goldE`,`\\textcolor{##a75a05}{#1}`),G(`\\redA`,`\\textcolor{##fca9a9}{#1}`),G(`\\redB`,`\\textcolor{##ff8482}{#1}`),G(`\\redC`,`\\textcolor{##f9685d}{#1}`),G(`\\redD`,`\\textcolor{##e84d39}{#1}
483`),G(`\\redE`,`\\textcolor{##bc2612}{#1}`),G(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),G(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),G(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),G(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),G(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),G(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),G(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),G(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),G(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),G(`\\purpleE`,`\\textcolor{##543b78}{#1}`),G(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),G(`\\mintB`,`\\textcolor{##edf2df}{#1}`),G(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),G(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),G(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),G(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),G(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),G(`\\grayE`,`\\textcolor{##babec2}{#1}`),G(`\\grayF`,`\\textcolor{##888d93}{#1}`),G(`\\grayG`,`\\textcolor{##626569}{#1}`),G(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),G(`\\grayI`,`\\textcolor{##21242c}{#1}`),G(`\\kaBlue`,`\\textcolor{##314453}{#1}`),G(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var Bz={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Vz=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new jz(Mz,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Az(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new jR(`EOF`,n.loc)),this.pushTokens(r),new jR(``,AR.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new P(`Extra }`,i)}else if(i.text===`EOF`)throw new P(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n)if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new P(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new P(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new P(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new P(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new P(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new P(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new jR(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new Az(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||xz.hasOwnProperty(e)||QF.math.hasOwnProperty(e)||QF.text.hasOwnProperty(e)||Bz.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?xz.hasOwnProperty(e)&&!xz[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Hz=/^[âââââââââââ
âââââââᵢⱼââââââáµ£ââᵤᵥâᵦᵧᵨᵩᵪ]/,Uz=Object.freeze({"â":`+`,"â":`-`,"â":`=`,"â":`(`,"â":`)`,"â":`0`,"â":`1`,"â":`2`,"â":`3`,"â
483":`4`,"â
":`5`,"â":`6`,"â":`7`,"â":`8`,"â":`9`,â:`a`,â:`e`,â:`h`,áµ¢:`i`,â±¼:`j`,â:`k`,â:`l`,â:`m`,â:`n`,â:`o`,â:`p`,áµ£:`r`,â:`s`,â:`t`,ᵤ:`u`,áµ¥:`v`,â:`x`,ᵦ:`β`,áµ§:`γ`,ᵨ:`Ï`,ᵩ:`Ï`,ᵪ:`Ï`,"âº":`+`,"â»":`-`,"â¼":`=`,"â½":`(`,"â¾":`)`,"â°":`0`,"¹":`1`,"²":`2`,"³":`3`,"â´":`4`,"âµ":`5`,"â¶":`6`,"â·":`7`,"â¸":`8`,"â¹":`9`,á´¬:`A`,á´®:`B`,á´°:`D`,á´±:`E`,á´³:`G`,á´´:`H`,á´µ:`I`,á´¶:`J`,á´·:`K`,á´¸:`L`,á´¹:`M`,á´º:`N`,á´¼:`O`,á´¾:`P`,á´¿:`R`,áµ:`T`,áµ:`U`,â±½:`V`,áµ:`W`,áµ:`a`,áµ:`b`,á¶:`c`,áµ:`d`,áµ:`e`,á¶ :`f`,áµ:`g`,ʰ:`h`,â±:`i`,ʲ:`j`,áµ:`k`,Ë¡:`l`,áµ:`m`,â¿:`n`,áµ:`o`,áµ:`p`,ʳ:`r`,Ë¢:`s`,áµ:`t`,áµ:`u`,áµ:`v`,Ê·:`w`,Ë£:`x`,ʸ:`y`,á¶»:`z`,áµ:`β`,áµ:`γ`,áµ:`δ`,áµ :`Ï`,ᵡ:`Ï`,á¶¿:`θ`}),Wz={"Ì":{text:`\\'`,math:`\\acute`},"Ì":{text:"\\`",math:`\\grave`},"Ì":{text:`\\"`,math:`\\ddot`},"Ì":{text:`\\~`,math:`\\tilde`},"Ì":{text:`\\=`,math:`\\bar`},"Ì":{text:`\\u`,math:`\\breve`},"Ì":{text:`\\v`,math:`\\check`},"Ì":{text:`\\^`,math:`\\hat`},"Ì":{text:`\\.`,math:`\\dot`},"Ì":{text:`\\r`,math:`\\mathring`},"Ì":{text:`\\H`},"̧":{text:`\\c`}},Gz={á:`aÌ`,à :`aÌ`,ä:`aÌ`,Ç:`aÌÌ`,ã:`aÌ`,Ä:`aÌ`,Ä:`aÌ`,ắ:`aÌÌ`,ằ:`aÌÌ`,ẵ:`aÌÌ`,Ç:`aÌ`,â:`aÌ`,ấ:`aÌÌ`,ầ:`aÌÌ`,ẫ:`aÌÌ`,ȧ:`aÌ`,Ç¡:`aÌÌ`,Ã¥:`aÌ`,Ç»:`aÌÌ`,á¸:`bÌ`,Ä:`cÌ`,á¸:`çÌ`,Ä:`cÌ`,Ä:`cÌ`,Ä:`cÌ`,ç:`ç`,Ä:`dÌ`,á¸:`dÌ`,á¸:`ḑ`,é:`eÌ`,è:`eÌ`,ë:`eÌ`,ẽ:`eÌ`,Ä:`eÌ`,á¸:`eÌÌ`,á¸:`eÌÌ`,Ä:`eÌ`,á¸:`ȩÌ`,Ä:`eÌ`,ê:`eÌ`,ế:`eÌÌ`,á»:`eÌÌ`,á»
:`eÌÌ`,Ä:`eÌ`,È©:`ȩ`,á¸:`fÌ`,ǵ:`gÌ`,ḡ:`gÌ`,Ä:`gÌ`,ǧ:`gÌ`,Ä:`gÌ`,Ä¡:`gÌ`,Ä£:`ģ`,ḧ:`hÌ`,È:`hÌ`,Ä¥:`hÌ`,ḣ:`hÌ`,ḩ:`ḩ`,Ã:`iÌ`,ì:`iÌ`,ï:`iÌ`,ḯ:`iÌÌ`,Ä©:`iÌ`,Ä«:`iÌ`,Ä:`iÌ`,Ç:`iÌ`,î:`iÌ`,ǰ:`jÌ`,ĵ:`jÌ`,ḱ:`kÌ`,Ç©:`kÌ`,Ä·:`ķ`,ĺ:`lÌ`,ľ:`lÌ`,ļ:`ļ`,ḿ:`mÌ`,á¹:`mÌ`,Å:`nÌ`,ǹ:`nÌ`,ñ:`nÌ`,Å:`nÌ`,á¹
:`nÌ`,Å:`ņ`,ó:`oÌ`,ò:`oÌ`,ö:`oÌ`,È«:`oÌÌ`,õ:`oÌ`,á¹:`oÌÌ`,á¹:`oÌÌ`,È:`oÌÌ`,Å:`oÌ`,á¹:`oÌÌ`,á¹:`oÌÌ`,Å:`oÌ`,Ç:`oÌ`,ô:`oÌ`,á»:`oÌÌ`,á»:`oÌÌ`,á»:`oÌÌ`,ȯ:`oÌ`,ȱ:`oÌÌ`,Å:`oÌ`,á¹:`pÌ`,á¹:`pÌ`,Å:`rÌ`,Å:`rÌ`,á¹:`rÌ`,Å:`ŗ`,Å:`sÌ`,á¹¥:`sÌÌ`,Å¡:`sÌ`,á¹§:`sÌÌ`,Å:`sÌ`,ṡ:`sÌ`,Å:`ş`,áº:`tÌ`,Å¥:`tÌ`,ṫ:`tÌ`,Å£:`ţ`,ú:`uÌ`,ù:`uÌ`,ü:`uÌ`,Ç:`uÌÌ`,Ç:`uÌÌ`,Ç:`uÌÌ`,Ç:`uÌÌ`,Å©:`uÌ`,á¹¹:`uÌÌ`,Å«:`uÌ`,á¹»:`uÌÌ`,Å:`uÌ`,Ç:`uÌ`,û:`uÌ`,ů:`uÌ`,ű:`uÌ`,á¹½:`vÌ`,áº:`wÌ`,áº:`wÌ`,áº
:`wÌ`,ŵ:`wÌ`,áº:`wÌ`,áº:`wÌ`,áº:`xÌ`,áº:`xÌ`,ý:`yÌ`,ỳ:`yÌ`,ÿ:`yÌ`,ỹ:`yÌ`,ȳ:`yÌ`,Å·:`yÌ`,áº:`yÌ`,áº:`yÌ`,ź:`zÌ`,ž:`zÌ`,áº:`zÌ`,ż:`zÌ`,Ã:`AÌ`,Ã:`AÌ`,Ã:`AÌ`,Ç:`AÌÌ`,Ã:`AÌ`,Ä:`AÌ`,Ä:`AÌ`,Ắ:`AÌÌ`,Ằ:`AÌÌ`,Ẵ:`AÌÌ`,Ç:`AÌ`,Ã:`AÌ`,Ấ:`AÌÌ`,Ầ:`AÌÌ`,Ẫ:`AÌÌ`,Ȧ:`AÌ`,Ç :`AÌÌ`,Ã
:`AÌ`,Ǻ:`AÌÌ`,á¸:`BÌ`,Ä:`CÌ`,á¸:`ÇÌ`,Ä:`CÌ`,Ä:`CÌ`,Ä:`CÌ`,Ã:`Ç`,Ä:`DÌ`,á¸:`DÌ`,á¸:`Ḑ`,Ã:`EÌ`,Ã:`EÌ`,Ã:`EÌ`,Ẽ:`EÌ`,Ä:`EÌ`,á¸:`EÌÌ`,á¸:`EÌÌ`,Ä:`EÌ`,á¸:`ȨÌ`,Ä:`EÌ`,Ã:`EÌ`,Ế:`EÌÌ`,á»:`EÌÌ`,á»:`EÌÌ`,Ä:`EÌ`,Ȩ:`Ȩ`,á¸:`FÌ`,Ç´:`GÌ`,Ḡ:`GÌ`,Ä:`GÌ`,Ǧ:`GÌ`,Ä:`GÌ`,Ä :`GÌ`,Ä¢:`Ģ`,Ḧ:`HÌ`,È:`HÌ`,Ĥ:`HÌ`,Ḣ:`HÌ`,Ḩ:`Ḩ`,Ã:`IÌ`,Ã:`IÌ`,Ã:`IÌ`,Ḯ:`IÌÌ`,Ĩ:`IÌ`,Ī:`IÌ`,Ĭ:`IÌ`,Ç:`IÌ`,Ã:`IÌ`,İ:`IÌ`,Ä´:`JÌ`,Ḱ:`KÌ`,Ǩ:`KÌ`,Ķ:`Ķ`,Ĺ:`LÌ`,Ľ:`LÌ`,Ä»:`Ļ`,Ḿ:`MÌ`,á¹:`MÌ`,Å:`NÌ`,Ǹ:`NÌ`,Ã:`NÌ`,Å:`NÌ`,á¹:`NÌ`,Å
:`Ņ`,Ã:`OÌ`,Ã:`OÌ`,Ã:`OÌ`,Ȫ:`OÌÌ`,Ã:`OÌ`,á¹:`OÌÌ`,á¹:`OÌÌ`,Ȭ:`OÌÌ`,Å:`OÌ`,á¹:`OÌÌ`,á¹:`OÌÌ`,Å:`OÌ`,Ç:`OÌ`,Ã:`OÌ`,á»:`OÌÌ`,á»:`OÌÌ`,á»:`OÌÌ`,È®:`OÌ`,Ȱ:`OÌÌ`,Å:`OÌ`,á¹:`PÌ`,á¹:`PÌ`,Å:`RÌ`,Å:`RÌ`,á¹:`RÌ`,Å:`Ŗ`,Å:`SÌ`,Ṥ:`SÌÌ`,Å :`SÌ`,Ṧ:`SÌÌ`,Å:`SÌ`,á¹ :`SÌ`,Å:`Ş`,Ť:`TÌ`,Ṫ:`TÌ`,Å¢:`Ţ`,Ã:`UÌ`,Ã:`UÌ`,Ã:`UÌ`,Ç:`UÌÌ`,Ç:`UÌÌ`,Ç:`UÌÌ`,Ç:`UÌÌ`,Ũ:`UÌ`,Ṹ:`UÌÌ`,Ū:`UÌ`,Ṻ:`UÌÌ`,Ŭ:`UÌ`,Ç:`UÌ`,Ã:`UÌ`,Å®:`UÌ`,Ű:`UÌ`,á¹¼:`VÌ`,áº:`WÌ`,áº:`WÌ`,áº:`WÌ`,Å´:`WÌ`,áº:`WÌ`,áº:`XÌ`,áº:`XÌ`,Ã:`YÌ`,Ỳ:`YÌ`,Ÿ:`YÌ`,Ỹ:`YÌ`,Ȳ:`YÌ`,Ŷ:`YÌ`,áº:`YÌ`,Ź:`ZÌ`,Ž:`ZÌ`,áº:`ZÌ`,Å»:`ZÌ`,ά:`αÌ`,á½°:`αÌ`,á¾±:`αÌ`,á¾°:`αÌ`,Î:`εÌ`,á½²:`εÌ`,ή:`ηÌ`,á½´:`ηÌ`,ί:`ιÌ`,á½¶:`ιÌ`,Ï:`ιÌ`,Î:`ιÌÌ`,á¿:`ιÌÌ`,á¿:`ιÌ`,á¿:`ιÌ`,Ï:`οÌ`,ὸ:`οÌ`,Ï:`Ï
Ì`,ὺ:`Ï
Ì`,Ï:`Ï
Ì`,ΰ:`Ï
ÌÌ`,á¿¢:`Ï
ÌÌ`,á¿¡:`Ï
Ì`,á¿ :`Ï
Ì`,Ï:`ÏÌ`,á½¼:`ÏÌ`,Î:`Î¥Ì`,Ὺ:`Î¥Ì`,Ϋ:`Î¥Ì`,á¿©:`Î¥Ì`,Ῠ:`Î¥Ì`,Î:`ΩÌ`,Ὼ:`ΩÌ`},Kz=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new Vz(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new P(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new jR(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&xz[i.text]&&xz[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new P(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s}
vendor: 10,080 bytes, lines 483-484
483,o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}else return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new P(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new P(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new P(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new P(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new P(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(Uz[i.text]){var s=Hz.test(i.text),c=[];for(c.push(new jR(Uz[i.text])),this.consume();;){var l=this.fetch().text;if(!Uz[l]||Hz.test(l)!==s)break;c.unshift(new jR(Uz[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n||r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=xz[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new P(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new P(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new P(`Can't use function '`+r+`' in math mode`,n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=xz[e];if(o&&o.handler)return o.handler(a,t,n);throw new P(`No function handler for `+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;(`primitive`in t&&t.primitive&&o==null||t.type===`sqrt`&&a===1&&i[0]==null)&&(o=`primitive`);var c=this.parseGroupOfType(`argument to '`+e+`'`,o,s);if(s)i.push(c);else if(c!=null)r.push(c);else throw new P(`Null argument, please report this as a bug`)}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(`raw`,n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new P(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new P(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new P(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var r=``,i;(i=this.fetch()).text!==`EOF`;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new P(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(`color`,e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new P(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(`size`,e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new P(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!NF(i))throw new P(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(`url`,e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:AR.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Bz.hasOwnProperty(r)){if(this.settings.throwOnError)throw new P(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(!(!a||a.type!==`textord`)){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:AR.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:AR.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:AR.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new P(`\\verb assertion failed -- 484 please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}Gz.hasOwnProperty(t[0])&&!QF[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Accented Unicode text character "`+t[0]+`" used in math mode`,e),t=Gz[t[0]]+t.slice(1));var i=Oz.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(QF[this.mode][t]){this.settings.strict&&this.mode===`math`&&CI.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=QF[this.mode][t].group,s=AR.range(e);a=fle(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(DF(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:AR.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!Wz[l])throw new P(`Unknown accent ' `+l+`'`,e);var u=Wz[l][this.mode]||Wz[l].text;if(!u)throw new P(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:AR.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};Kz.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var qz=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new Kz(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new P(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new jR(`\\df@tag`)])}]}return r},Jz=function(e,t,n){t.textContent=``;var r=Qz(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),Jz=function(){throw new P(`KaTeX doesn't work in quirks mode.`)});var Yz=function(e,t){return Qz(e,t).toMarkup()},Xz=function(e,t){return qz(e,new pF(t))},Zz=function(e,t,n){if(n.throwOnError||!(e instanceof P))throw e;var r=U([`katex-error`],[new HF(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},Qz=function(e,t){var n=new pF(t);try{return ile(qz(e,n),e,n)}catch(t){return Zz(t,e,n)}},$z=function(e,t){var n=new pF(t);try{return ale(qz(e,n),e,n)}catch(t){return Zz(t,e,n)}},eB=`0.16.47`,tB={Span:BF,Anchor:VF,SymbolNode:HF,SvgNode:UF,PathNode:WF,LineNode:GF},nB={version:eB,render:Jz,renderToString:Yz,ParseError:P,SETTINGS_SCHEMA:fF,__parse:Xz,__renderToDomTree:Qz,__renderToHTMLTree:$z,__setFontMetrics:YF,__defineSymbol
vendor: 7,273 bytes, lines 484-488
484:I,__defineFunction:oL,__defineMacro:G,__domTree:tB},rB={},iB=[];function aB(e){let t=e||rB;return function(e,n){qC(e,`element`,function(e,r){let i=Array.isArray(e.properties.className)?e.properties.className:iB,a=i.includes(`language-math`),o=i.includes(`math-display`),s=i.includes(`math-inline`),c=o;if(!a&&!o&&!s)return;let l=r[r.length-1],u=e;if(e.tagName===`code`&&a&&l&&l.type===`element`&&l.tagName===`pre`&&(u=l,l=r[r.length-2],c=!0),!l)return;let d=Qse(u,{whitespace:`pre`}),f;try{f=nB.renderToString(d,{...t,displayMode:c,throwOnError:!0})}catch(i){let a=i,o=a.name.toLowerCase();n.message(`Could not render math with KaTeX`,{ancestors:[...r,e],cause:a,place:e.position,ruleId:o,source:`rehype-katex`});try{f=nB.renderToString(d,{...t,displayMode:c,strict:`ignore`,throwOnError:!1})}catch{f=[{type:`element`,tagName:`span`,properties:{className:[`katex-error`],style:`color:`+(t.errorColor||`#cc0000`),title:String(i)},children:[{type:`text`,value:d}]}]}}typeof f==`string`&&(f=Wse(f,{fragment:!0}).children);let p=l.children.indexOf(u);return l.children.splice(p,1,...f),KC})}}function oB(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function sB(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(e){this.enter({type:`math`,meta:null,value:``,data:{hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[]}]}},e)}function t(){this.buffer()}function n(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:`text`,value:t}),this.data.mathFlowInside=void 0}function a(e){this.enter({type:`inlineMath`,value:``,data:{hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[]}},e),this.buffer()}function o(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:`text`,value:t})}function s(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function cB(e){let t=(e||{}).singleDollarTextMath;return t??=!0,r.peek=i,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:` 485`,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(oB(i,`$`)+1,2)),s=n.enter(`mathFlow`),c=a.move(o);if(e.meta){let t=n.enter(`mathFlowMeta`);c+=a.move(n.safe(e.meta,{after:` 486`,before:c,encode:[`$`],...a.current()})),t()}return c+=a.move(` 487`),i&&(c+=a.move(i+` 488`)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function i(){return`$`}}var lB={tokenize:dB,concrete:!0,name:`mathFlow`},uB={tokenize:fB,partial:!0};function dB(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(e.consume(t),o++,c):o<2?n(t):(e.exit(`mathFlowFenceSequence`),KS(e,l,`whitespace`)(t))}function l(t){return t===null||zS(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||zS(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),d(t)):t===36?n(t):(e.consume(t),u)}function d(n){return e.exit(`mathFlowFence`),r.interrupt?t(n):e.attempt(uB,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?KS(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):zS(t)?e.attempt(uB,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||zS(t)?(e.exit(`mathFlowValue`),m(t)):(e.consume(t),h)}function g(n){return e.exit(`mathFlow`),t(n)}function _(e,t,n){let i=0;return KS(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),s(t)}function s(t){return t===36?(i++,e.consume(t),s):i<o?n(t):(e.exit(`mathFlowFenceSequence`),KS(e,c,`whitespace`)(t))}function c(r){return r===null||zS(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function fB(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function pB(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:mB,previous:hB,name:`mathText`};function n(e,n,r){let i=0,a,o;return s;function s(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),c(t)}function c(n){return n===36?(e.consume(n),i++,c):i<2&&!t?r(n):(e.exit(`mathTextSequence`),l(n))}function l(t){return t===null?r(t):t===36?(o=e.enter(`mathTextSequence`),a=0,d(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),l):zS(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),l):(e.enter(`mathTextData`),u(t))}function u(t){return t===null||t===32||t===36||zS(t)?(e.exit(`mathTextData`),l(t)):(e.consume(t),u)}function d(t){return t===36?(e.consume(t),a++,d):a===i?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(o.type=`mathTextData`,u(t))}}}function mB(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`mathTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function hB(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function gB(e){return{flow:{36:lB},text:{36:pB(e)}}}var _B={};function vB(e){let t=this,n=e||_B,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(gB(n)),a.push(sB()),o.push(cB(n))}function yB(e={}){return{name:`katex`,type:`math`,remarkPlugin:[vB,{singleDollarTextMath:e.singleDollarTextMath??!1}],rehypePlugin:[aB,{errorColor:e.errorColor??`var(--color-muted-foreground)`}],getStyles(){return`katex/dist/katex.min.css`}}}var bB=yB(),xB=E(e=>{let{securityLevel:t}=zt(),n=dt(`body`);
vendor: 5,009 bytes, lines 488-494
488return t===`sandbox`&&(n=dt((dt(`#i${e}`).node()?.contentDocument??document).body)),n.select(`#${e}`)},`selectSvgElement`);function SB(e){return e==null}E(SB,`isNothing`);function CB(e){return typeof e==`object`&&!!e}E(CB,`isObject`);function wB(e){return Array.isArray(e)?e:SB(e)?[]:[e]}E(wB,`toArray`);function TB(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}E(TB,`extend`);function EB(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}E(EB,`repeat`);function DB(e){return e===0&&1/e==-1/0}E(DB,`isNegativeZero`);var OB={isNothing:SB,isObject:CB,toArray:wB,repeat:EB,isNegativeZero:DB,extend:TB};function kB(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+=` 489 490`+e.mark.snippet),r+` `+n):r}E(kB,`formatError`);function AB(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=kB(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}E(AB,`YAMLException$1`),AB.prototype=Object.create(Error.prototype),AB.prototype.constructor=AB,AB.prototype.toString=E(function(e){return this.name+`: `+kB(this,e)},`toString`);var jB=AB;function MB(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`â`)+o,pos:r-t+a.length}}E(MB,`getLine`);function NB(e,t){return OB.repeat(` `,t-e.length)+e}E(NB,`padStart`);function PB(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s=``,c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=MB(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),d),s=OB.repeat(` `,t.indent)+NB((e.line-c+1).toString(),u)+` | `+l.str+` 491`+s;for(l=MB(e.buffer,r[o],i[o],e.position,d),s+=OB.repeat(` `,t.indent)+NB((e.line+1).toString(),u)+` | `+l.str+` 492`,s+=OB.repeat(`-`,t.indent+u+3+l.pos)+`^ 493`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=MB(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),d),s+=OB.repeat(` `,t.indent)+NB((e.line+c+1).toString(),u)+` | `+l.str+` 494`;return s.replace(/\n$/,``)}E(PB,`makeSnippet`);var FB=PB,IB=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],LB=[`scalar`,`sequence`,`mapping`];function RB(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}E(RB,`compileStyleAliases`);function zB(e,t){if(t||={},Object.keys(t).forEach(function(t){if(IB.indexOf(t)===-1)throw new jB(`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=RB(t.styleAliases||null),LB.indexOf(this.kind)===-1)throw new jB(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}E(zB,`Type$1`);var BB=zB;function VB(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}E(VB,`compileList`);function HB(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(E(r,`collectType`),t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}E(HB,`compileMap`);function UB(e){return this.extend(e)}E(UB,`Schema$1`),UB.prototype.extend=E(function(e){var t=[],n=[];if(e instanceof BB)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 jB(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof BB))throw new jB(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new jB(`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 jB(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}
494),n.forEach(function(e){if(!(e instanceof BB))throw new jB(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(UB.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=VB(r,`implicit`),r.compiledExplicit=VB(r,`explicit`),r.compiledTypeMap=HB(r.compiledImplicit,r.compiledExplicit),r},`extend`);var WB=new UB({explicit:[new BB(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:E(function(e){return e===null?``:e},`construct`)}),new BB(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:E(function(e){return e===null?[]:e},`construct`)}),new BB(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:E(function(e){return e===null?{}:e},`construct`)})]});function GB(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}E(GB,`resolveYamlNull`);function KB(){return null}E(KB,`constructYamlNull`);function qB(e){return e===null}E(qB,`isNull`);var JB=new BB(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:GB,construct:KB,predicate:qB,represent:{canonical:E(function(){return`~`},`canonical`),lowercase:E(function(){return`null`},`lowercase`),uppercase:E(function(){return`NULL`},`uppercase`),camelcase:E(function(){return`Null`},`camelcase`),empty:E(function(){return``},`empty`)},defaultStyle:`lowercase`});function YB(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}E(YB,`resolveYamlBoolean`);function XB(e){return e===`true`||e===`True`||e===`TRUE`}E(XB,`constructYamlBoolean`);function ZB(e){return Object.prototype.toString.call(e)===`[object Boolean]`}E(ZB,`isBoolean`);var QB=new BB(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:YB,construct:XB,predicate:ZB,represent:{lowercase:E(function(e){return e?`true`:`false`},`lowercase`),uppercase:E(function(e){return e?`TRUE`:`FALSE`},`uppercase`),camelcase:E(function(e){return e?`True`:`False`},`camelcase`)},defaultStyle:`lowercase`});function $B(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}E($B,`isHexCode`);function eV(e){return 48<=e&&e<=55}E(eV,`isOctCode`);function tV(e){return 48<=e&&e<=57}E(tV,`isDecCode`);function nV(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i===`-`||i===`+`)&&(i=e[++n]),i===`0`){if(n+1===t)return!0;if(i=e[++n],i===`b`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(i!==`0`&&i!==`1`)return!1;r=!0}return r&&i!==`_`}if(i===`x`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!$B(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!eV(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!tV(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}E(nV,`resolveYamlInteger`);function rV(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}E(rV,`constructYamlInteger`);function iV(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!OB.isNegativeZero(e)}E(iV,`isInteger`);var aV=new BB(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:nV,construct:rV,predicate:iV,represent:{binary:E(function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:E(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:E(function(e){return e.toString(10)},`decimal`),hexadecimal:E(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
494:[10,`dec`],hexadecimal:[16,`hex`]}}),oV=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function sV(e){return!(e===null||!oV.test(e)||e[e.length-1]===`_`)}E(sV,`resolveYamlFloat`);function cV(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}E(cV,`constructYamlFloat`);var lV=/^[-+]?[0-9]+e/;function uV(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(OB.isNegativeZero(e))return`-0.0`;return n=e.toString(10),lV.test(n)?n.replace(`e`,`.e`):n}E(uV,`representYamlFloat`);function dV(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||OB.isNegativeZero(e))}E(dV,`isFloat`);var fV=new BB(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:sV,construct:cV,predicate:dV,represent:uV,defaultStyle:`lowercase`}),pV=WB.extend({implicit:[JB,QB,aV,fV]}),mV=pV,hV=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),gV=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 _V(e){return e===null?!1:hV.exec(e)!==null||gV.exec(e)!==null}E(_V,`resolveYamlTimestamp`);function vV(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=hV.exec(e),t===null&&(t=gV.exec(e)),t===null)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],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}E(vV,`constructYamlTimestamp`);function yV(e){return e.toISOString()}E(yV,`representYamlTimestamp`);var bV=new BB(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:_V,construct:vV,instanceOf:Date,represent:yV});function xV(e){return e===`<<`||e===null}E(xV,`resolveYamlMerge`);var SV=new BB(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:xV}),CV=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 495\r`;function wV(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=CV;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}E(wV,`resolveYamlBinary`);function TV(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=CV,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}E(TV,`constructYamlBinary`);function EV(e){var t=``,n=0,r,i,a=e.length,o=CV;for(r=0;r<a;r++)r%3==0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}E(EV,`representYamlBinary`);function DV(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}E(DV,`isBinary`);var OV=new BB(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:wV,construct:TV,predicate:DV,represent:EV}),kV=Object.prototype.hasOwnProperty,AV=Object.prototype.toString;function jV(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,AV.call(i)!==`[object Object]`)return!1;for(a in i)if(kV.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}E(jV,`resolveYamlOmap`);function MV(e){return e===null?[]:e}E(MV,`constructYamlOmap`);var NV=new BB(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:jV,construct:MV}),PV=Object.prototype.toString;function FV(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],PV.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}E(FV,`resolveYamlPairs`);function IV(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}E(IV,`constructYamlPairs`);var LV=new BB(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:FV,construct:IV}),RV=Object.prototype.hasOwnProperty;function zV(e){if(e===null)return!0;var t,n=e;for(t in n)if(RV.call(n,t)&&n[t]!==null)return!1;return!0}E(zV,`resolveYamlSet`);function BV(e){return e===null?{}:e}E(BV,`constructYamlSet`);var VV=new BB(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:zV,construct:BV}),HV=mV.extend({implicit:[bV,SV],explicit:[OV,NV,LV,VV]}),UV=Object.prototype.hasOwnProperty,WV=1,GV=2,KV=3,qV=4,JV=1,YV=2,XV=3,ZV=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,QV=/[\x85\u2028\u2029]/,$V=/[,\[\]\{\}]/,eH=/^(?:!|!!|![a-z\-]+!)$/i,tH=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;
495\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function nH(e){return Object.prototype.toString.call(e)}E(nH,`_class`);function rH(e){return e===10||e===13}E(rH,`is_EOL`);function iH(e){return e===9||e===32}E(iH,`is_WHITE_SPACE`);function aH(e){return e===9||e===32||e===10||e===13}E(aH,`is_WS_OR_EOL`);function oH(e){return e===44||e===91||e===93||e===123||e===125}E(oH,`is_FLOW_INDICATOR`);function sH(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}E(sH,`fromHexCode`);function cH(e){return e===120?2:e===117?4:e===85?8:0}E(cH,`escapedHexLen`);function lH(e){return 48<=e&&e<=57?e-48:-1}E(lH,`fromDecimalCode`);function uH(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?` 496`:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`Â `:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}E(uH,`simpleEscapeSequence`);function dH(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}E(dH,`charFromCodepoint`);function fH(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}E(fH,`setProperty`);var pH=Array(256),mH=Array(256);for(hH=0;hH<256;hH++)pH[hH]=+!!uH(hH),mH[hH]=uH(hH);var hH;function gH(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||HV,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=[]}E(gH,`State$1`);function _H(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=FB(n),new jB(t,n)}E(_H,`generateError`);function vH(e,t){throw _H(e,t)}E(vH,`throwError`);function yH(e,t){e.onWarning&&e.onWarning.call(null,_H(e,t))}E(yH,`throwWarning`);var bH={YAML:E(function(e,t,n){var r,i,a;e.version!==null&&vH(e,`duplication of %YAML directive`),n.length!==1&&vH(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&vH(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&vH(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&yH(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:E(function(e,t,n){var r,i;n.length!==2&&vH(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],eH.test(r)||vH(e,`ill-formed tag handle (first argument) of the TAG directive`),UV.call(e.tagMap,r)&&vH(e,`there is a previously declared suffix for "`+r+`" tag handle`),tH.test(i)||vH(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{vH(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i},`handleTagDirective`)};function xH(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||vH(e,`expected valid JSON character`);else ZV.test(s)&&vH(e,`the stream contains non-printable characters`);e.result+=s}}E(xH,`captureSegment`);function SH(e,t,n,r){var i,a,o,s;for(OB.isObject(n)||vH(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],UV.call(t,a)||(fH(t,a,n[a]),r[a]=!0)}E(SH,`mergeMappings`);function CH(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&vH(e,`nested arrays are not supported inside keys`),typeof i==`object`&&nH(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&nH(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)SH(e,t,a[l],n);else SH(e,t,a,n);else!e.json&&!UV.call(n,i)&&UV.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,vH(e,`duplicated mapping key`)),fH(t,i,a),delete n[i];return t}E(CH,`storeMappingPair`);function wH(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):vH(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}
vendor: 19,537 bytes, lines 496-518
496E(wH,`readLineBreak`);function TH(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;iH(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(rH(i))for(wH(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&yH(e,`deficient indentation`),r}E(TH,`skipSeparationSpace`);function EH(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||aH(n)))}E(EH,`testDocumentSeparator`);function DH(e,t){t===1?e.result+=` `:t>1&&(e.result+=OB.repeat(` 497`,t-1))}E(DH,`writeFoldedLines`);function OH(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(aH(p)||oH(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),aH(i)||n&&oH(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),aH(i)||n&&oH(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),aH(r))break}else if(e.position===e.lineStart&&EH(e)||n&&oH(p))break;else if(rH(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,TH(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(xH(e,a,o,!1),DH(e,e.line-c),a=o=e.position,!1),iH(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return xH(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}E(OH,`readPlainScalar`);function kH(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(xH(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else rH(n)?(xH(e,r,i,!0),DH(e,TH(e,!1,t)),r=i=e.position):e.position===e.lineStart&&EH(e)?vH(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);vH(e,`unexpected end of the stream within a single quoted scalar`)}E(kH,`readSingleQuotedScalar`);function AH(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return xH(e,n,e.position,!0),e.position++,!0;else if(s===92){if(xH(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),rH(s))TH(e,!1,t);else if(s<256&&pH[s])e.result+=mH[s],e.position++;else if((o=cH(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=sH(s))>=0?a=(a<<4)+o:vH(e,`expected hexadecimal character`);e.result+=dH(a),e.position++}else vH(e,`unknown escape sequence`);n=r=e.position}else rH(s)?(xH(e,n,r,!0),DH(e,TH(e,!1,t)),n=r=e.position):e.position===e.lineStart&&EH(e)?vH(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);vH(e,`unexpected end of the stream within a double quoted scalar`)}E(AH,`readDoubleQuotedScalar`);function jH(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(TH(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&vH(e,`expected the node content, but found ','`):vH(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),aH(l)&&(d=f=!0,e.position++,TH(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,RH(e,t,WV,!1,!0),g=e.tag,h=e.result,TH(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),TH(e,!0,t),RH(e,t,WV,!1,!0),_=e.result),p?CH(e,s,m,g,h,_,r,i,a):d?s.push(CH(e,null,m,g,h,_,r,i,a)):s.push(h),TH(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}vH(e,`unexpected end of the stream within a flow collection`)}E(jH,`readFlowCollection`);function MH(e,t){var n,r,i=JV,a=!1,o=!1,s=t,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)JV===i?i=d===43?XV:YV:vH(e,`repeat of a chomping mode identifier`);else if((u=lH(d))>=0)u===0?vH(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?vH(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(iH(d)){do d=e.input.charCodeAt(++e.position);while(iH(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!rH(d)&&d!==0)}for(;d!==0;){for(wH(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),rH(d)){c++;continue}if(e.lineIndent<s){i===XV?e.result+=OB.repeat(` 498`,a?1+c:c):i===JV&&a&&(e.result+=` 499`);break}for(r?iH(d)?(l=!0,e.result+=OB.repeat(` 500`,a?1+c:c)):l?(l=!1,e.result+=OB.repeat(` 501`,c+1)):c===0?a&&(e.result+=` `):e.result+=OB.repeat(` 502`,c):e.result+=OB.repeat(` 503`,a?1+c:c),a=!0,o=!0,c=0,n=e.position;!rH(d)&&d!==0;)d=e.input.charCodeAt(++e.position);xH(e,n,e.position,!1)}return!0}E(MH,`readBlockScalar`);function NH(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,vH(e,`tab characters must not be used in indentation`)),!(c!==45||(o=e.input.charCodeAt(e.position+1),!aH(o))));){if(s=!0,e.position++,TH(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,RH(e,t,KV,!1,!0),a.push(e.result),TH(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)vH(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind=`sequence`,e.result=a,!0):!1}E(NH,`readBlockSequence`);function PH(e,t,n){var r,i,a,o,s,c,l=e.tag,u=e.anchor,d={},f=Object.create(null),p=null,m=null,h=null,g=!1,_=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,vH(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&aH(r))v===63?(g&&(CH(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!0,i=!0):g?(g=!1,i=!0):vH(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=r;else{if(o=e.line,s=e.lineStart,c=e.position,!RH(e,n,GV,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);iH(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),aH(v)||vH(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(CH(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!1,i=!1,p=e.tag,m=e.result;else if(_)vH(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=l,e.anchor=u,!0}else if(_)vH(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=l,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,c=e.position),RH(e,t,qV,!0,i)&&(g?m=e.result:h=e.result),g||(CH(e,d,f,p,m,h,o,s,c),p=m=h=null),TH(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)vH(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&CH(e,d,f,p,m,null,o,s,c),_&&(e.tag=l,e.anchor=u,e.kind=`mapping`,e.result=d),_}E(PH,`readBlockMapping`);function FH(e){var t,n=!1,r=!1,i,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;if(e.tag!==null&&vH(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i=`!!`,o=e.input.charCodeAt(++e.position)):i=`!`,t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):vH(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!aH(o);)o===33&&(r?vH(e,`tag suffix cannot contain exclamation marks`):(i=e.input.slice(t-1,e.position+1),eH.test(i)||vH(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),$V.test(a)&&vH(e,`tag suffix cannot contain flow indicator characters`)}a&&!tH.test(a)&&vH(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{vH(e,`tag name is malformed: `+a)}return n?e.tag=a:UV.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i===`!`?e.tag=`!`+a:i===`!!`?e.tag=`tag:yaml.org,2002:`+a:vH(e,`undeclared tag handle "`+i+`"`),!0}E(FH,`readTagProperty`);function IH(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&vH(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!aH(n)&&!oH(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&vH(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}E(IH,`readAnchorProperty`);function LH(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!aH(r)&&!oH(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&vH(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),UV.call(e.anchorMap,n)||vH(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],TH(e,!0,-1),!0}E(LH,`readAlias`);function RH(e,t,n,r,i){var a,o,s,c=1,l=!1,u=!1,d,f,p,m,h,g;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=qV===n||KV===n,r&&TH(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;FH(e)||IH(e);)TH(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1;if(s&&=l||i,(c===1||qV===n)&&(h=WV===n||GV===n?t:t+1,g=e.position-e.lineStart,c===1?s&&(NH(e,g)||PH(e,g,h))||jH(e,h)?u=!0:(o&&MH(e,h)||kH(e,h)||AH(e,h)?u=!0:LH(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&vH(e,`alias node should not have any properties`)):OH(e,h,WV===n)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=s&&NH(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&vH(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d<f;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!==`!`){if(UV.call(e.typeMap[e.kind||`fallback`],e.tag))m=e.typeMap[e.kind||`fallback`][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||`fallback`],d=0,f=p.length;d<f;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||vH(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&m.kind!==e.kind&&vH(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):vH(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}E(RH,`composeNode`);function zH(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(TH(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!aH(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&vH(e,`directive name must not be less than one character in length`);o!==0;){for(;iH(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!rH(o));break}if(rH(o))break;for(n=e.position;o!==0&&!aH(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&wH(e),UV.call(bH,r)?bH[r](e,r,i):yH(e,`unknown document directive "`+r+`"`)}if(TH(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,TH(e,!0,-1)):a&&vH(e,`directives end mark is expected`),RH(e,e.lineIndent-1,qV,!1,!0),TH(e,!0,-1),e.checkLineBreaks&&QV.test(e.input.slice(t,e.position))&&yH(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&EH(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,TH(e,!0,-1));return}if(e.position<e.length-1)vH(e,`end of the stream or a document separator is expected`);else return}E(zH,`readDocument`);function BH(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=` 504`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new gH(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,vH(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)zH(n);return n.documents}E(BH,`loadDocuments`);function VH(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=BH(e,n);if(typeof t!=`function`)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}E(VH,`loadAll$1`);function HH(e,t){var n=BH(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new jB(`expected a single document in the stream, but found more`)}}E(HH,`load$1`);var UH={loadAll:VH,load:HH},WH=Object.prototype.toString,GH=Object.prototype.hasOwnProperty,KH=65279,qH=9,JH=10,YH=13,XH=32,ZH=33,QH=34,$H=35,eU=37,tU=38,nU=39,rU=42,iU=44,aU=45,oU=58,sU=61,cU=62,lU=63,uU=64,dU=91,fU=93,pU=96,mU=123,hU=124,gU=125,_U={};_U[0]=`\\0`,_U[7]=`\\a`,_U[8]=`\\b`,_U[9]=`\\t`,_U[10]=`\\n`,_U[11]=`\\v`,_U[12]=`\\f`,_U[13]=`\\r`,_U[27]=`\\e`,_U[34]=`\\"`,_U[92]=`\\\\`,_U[133]=`\\N`,_U[160]=`\\_`,_U[8232]=`\\L`,_U[8233]=`\\P`;var vU=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],yU=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function bU(e,t){var n,r,i,a,o,s,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&GH.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s;return n}E(bU,`compileStyleMap`);function xU(e){var t=e.toString(16).toUpperCase(),n,r;if(e<=255)n=`x`,r=2;else if(e<=65535)n=`u`,r=4;else if(e<=4294967295)n=`U`,r=8;else throw new jB(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+OB.repeat(`0`,r-t.length)+t}E(xU,`encodeHex`);var SU=1,CU=2;function wU(e){this.schema=e.schema||HV,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=OB.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=bU(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===`"`?CU:SU,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}E(wU,`State`);function TU(e,t){for(var n=OB.repeat(` `,t),r=0,i=-1,a=``,o,s=e.length;r<s;)i=e.indexOf(` 505`,r),i===-1?(o=e.slice(r),r=s):(o=e.slice(r,i+1),r=i+1),o.length&&o!==` 506`&&(a+=n),a+=o;return a}E(TU,`indentString`);function EU(e,t){return` 507`+OB.repeat(` `,e.indent*t)}E(EU,`generateNextLine`);function DU(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}E(DU,`testImplicitResolving`);function OU(e){return e===XH||e===qH}E(OU,`isWhitespace`);function kU(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==KH||65536<=e&&e<=1114111}E(kU,`isPrintable`);function AU(e){return kU(e)&&e!==KH&&e!==YH&&e!==JH}E(AU,`isNsCharOrWhitespace`);function jU(e,t,n){var r=AU(e),i=r&&!OU(e);return(n?r:r&&e!==iU&&e!==dU&&e!==fU&&e!==mU&&e!==gU)&&e!==$H&&!(t===oU&&!i)||AU(t)&&!OU(t)&&e===$H||t===oU&&i}E(jU,`isPlainSafe`);function MU(e){return kU(e)&&e!==KH&&!OU(e)&&e!==aU&&e!==lU&&e!==oU&&e!==iU&&e!==dU&&e!==fU&&e!==mU&&e!==gU&&e!==$H&&e!==tU&&e!==rU&&e!==ZH&&e!==hU&&e!==sU&&e!==cU&&e!==nU&&e!==QH&&e!==eU&&e!==uU&&e!==pU}E(MU,`isPlainSafeFirst`);function NU(e){return!OU(e)&&e!==oU}E(NU,`isPlainSafeLast`);function PU(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}E(PU,`codePointAt`);function FU(e){return/^\n* /.test(e)}E(FU,`needIndentIndicator`);var IU=1,LU=2,RU=3,zU=4,BU=5;function VU(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=MU(PU(e,0))&&NU(PU(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=PU(e,c),!kU(l))return BU;h&&=jU(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=PU(e,c),l===JH)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!kU(l))return BU;h&&=jU(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?IU:a===CU?BU:LU:n>9&&FU(e)?BU:o?a===CU?BU:LU:f?zU:RU}E(VU,`chooseScalarStyle`);function HU(e,t,n,r,i){e.dump=(function(){if(t.length===0)return e.quotingType===CU?`""`:`''`;if(!e.noCompatMode&&(vU.indexOf(t)!==-1||yU.test(t)))return e.quotingType===CU?`"`+t+`"`:`'`+t+`'`;var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return DU(e,t)}switch(E(c,`testAmbiguity`),VU(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case IU:return t;case LU:return`'`+t.replace(/'/g,`''`)+`'`;case RU:return`|`+UU(t,e.indent)+WU(TU(t,a));case zU:return`>`+UU(t,e.indent)+WU(TU(GU(t,o),a));case BU:return`"`+qU(t)+`"`;default:throw new jB(`impossible error: invalid scalar style`)}})()}E(HU,`writeScalar`);function UU(e,t){var n=FU(e)?String(t):``,r=e[e.length-1]===` 508`;return n+(r&&(e[e.length-2]===` 509`||e===` 510`)?`+`:r?``:`-`)+` 511`}E(UU,`blockHeader`);function WU(e){return e[e.length-1]===` 512`?e.slice(0,-1):e}E(WU,`dropEndingNewline`);function GU(e,t){for(var n=/(\n+)([^\n]*)/g,r=(function(){var r=e.indexOf(` 513`);return r=r===-1?e.length:r,n.lastIndex=r,KU(e.slice(0,r),t)})(),i=e[0]===` 514`||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?` 515`:``)+KU(c,t),i=a}return r}E(GU,`foldString`);function KU(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=` 516`+e.slice(i,a),i=a+1),o=s;return c+=` 517`,e.length-i>t&&o>i?c+=e.slice(i,o)+` 518`+e.slice(o+1):c+=e.slice(i),c.slice(1)}E(KU,`foldLine`);function qU(e){for(var t=``,n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=PU(e,i),r=_U[n],!r&&kU(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||xU(n);return t}E(qU,`escapeString`);
518function JU(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),($U(e,t,s,!1,!1)||s===void 0&&$U(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}E(JU,`writeFlowSequence`);function YU(e,t,n,r){var i=``,a=e.tag,o,s,c;for(o=0,s=n.length;o<s;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),($U(e,t+1,c,!0,!0,!1,!0)||c===void 0&&$U(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=EU(e,t)),e.dump&&JH===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}E(YU,`writeBlockSequence`);function XU(e,t,n){var r=``,i=e.tag,a=Object.keys(n),o,s,c,l,u;for(o=0,s=a.length;o<s;o+=1)u=``,r!==``&&(u+=`, `),e.condenseFlow&&(u+=`"`),c=a[o],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),$U(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),$U(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}E(XU,`writeFlowMapping`);function ZU(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,u,d,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new jB(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s<c;s+=1)f=``,(!r||i!==``)&&(f+=EU(e,t)),l=o[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),$U(e,t+1,l,!0,!0,!0)&&(d=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,d&&(e.dump&&JH===e.dump.charCodeAt(0)?f+=`?`:f+=`? `),f+=e.dump,d&&(f+=EU(e,t)),$U(e,t+1,u,!0,d)&&(e.dump&&JH===e.dump.charCodeAt(0)?f+=`:`:f+=`: `,f+=e.dump,i+=f));e.tag=a,e.dump=i||`{}`}E(ZU,`writeBlockMapping`);function QU(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==`object`&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if
518(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag=`?`,s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,WH.call(s.represent)===`[object Function]`)r=s.represent(t,c);else if(GH.call(s.represent,c))r=s.represent[c](t,c);else throw new jB(`!<`+s.tag+`> tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}E(QU,`detectType`);function $U(e,t,n,r,i,a,o){e.tag=null,e.dump=n,QU(e,n,!1)||QU(e,n,!0);var s=WH.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var u=s===`[object Object]`||s===`[object Array]`,d,f;if(u&&(d=e.duplicates.indexOf(n),f=d!==-1),(e.tag!==null&&e.tag!==`?`||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[d])e.dump=`*ref_`+d;else{if(u&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(ZU(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(XU(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?YU(e,t-1,e.dump,i):YU(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(JU(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&HU(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new jB(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}E($U,`writeNode`);function eW(e,t){var n=[],r=[],i,a;for(tW(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}E(eW,`getDuplicateReferences`);function tW(e,t,n){var r,i,a;if(typeof e==`object`&&e)if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)tW(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)tW(e[r[i]],t,n)}E(tW,`inspectNode`);function nW(e,t){t||={};var n=new wU(t);n.noRefs||eW(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),$U(n,0,r,!0,!0)?n.dump+` 519`:``}E(nW,`dump$1`);var rW={dump:nW};function iW(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.`)}}E(iW,`renamed`);var aW=pV,oW=UH.load;UH.loadAll,rW.dump;function sW(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}function cW(e){if(e==null)return!0;if(ln(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!Wt(e)&&!cn(e)&&!un(e)?!1:e.length===0;if(typeof e==`object`||typeof e==`function`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return sW(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var lW=E((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&fW(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&fW(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),uW={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}},dW=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],fW=E((e,t,n,r,i,a,o=!1,s)=>{let c=uW[n],l=c&&dW.includes(c.type);if(!c){ut.warn(`Unknown arrow type: ${n}`);return}let u=`${i}_${a}-${c.type}${t===`start`?`Start`:`End`}${o&&l?`-margin`:``}`;if(s&&s.trim()!==``){let n=`${u}_${s.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(n)){let e=document.getElementById(u);if(e){let t=e.cloneNode(!0);t.id=n,t.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,s),c.fill&&e.setAttribute(`fill`,s)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${n})`)}else e.attr(`marker-${t}`,`url(${r}#${u})`)},`addEdgeMarker`),pW=E(e=>typeof e==`string`?e:zt()?.flowchart?.curve,`resolveEdgeCurveType`),mW=new Map,hW=new Map,gW=E(()=>{mW.clear(),hW.clear()},`clear`),_W=E(e=>e?typeof e==`string`?e:e.reduce((e,t)=>
vendor: 4,971 bytes, lines 519-522
519e+`;`+t,``):``,`getLabelStyles`),vW=E(async(e,t)=>{let n=zt(),r=xt(n),{labelStyles:i}=fn(t);t.labelStyle=i;let a=e.insert(`g`).attr(`class`,`edgeLabel`),o=a.insert(`g`).attr(`class`,`label`).attr(`data-id`,t.id),s=t.labelType===`markdown`,c=await gn(e,t.label,{style:_W(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1,markdown:s,width:void 0},n);o.node().appendChild(c),ut.info(`abc82`,t,t.labelType);let l=c.getBBox(),u=l;if(r){let e=c.children[0],t=dt(c);l=e.getBoundingClientRect(),u=l,t.attr(`width`,l.width),t.attr(`height`,l.height)}else{let e=dt(c).select(`text`).node();e&&typeof e.getBBox==`function`&&(u=e.getBBox())}o.attr(`transform`,En(u,r)),mW.set(t.id,a),t.width=l.width,t.height=l.height;let d;if(t.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await xn(i,t.startLabelLeft,_W(t.labelStyle)||``,!1,!1);d=a;let o=a.getBBox();if(r){let e=a.children[0],t=dt(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,En(o,r)),hW.get(t.id)||hW.set(t.id,{}),hW.get(t.id).startLeft=n,yW(d,t.startLabelLeft)}if(t.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await xn(i,t.startLabelRight,_W(t.labelStyle)||``,!1,!1);d=a;let o=a.getBBox();if(r){let e=a.children[0],t=dt(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,En(o,r)),hW.get(t.id)||hW.set(t.id,{}),hW.get(t.id).startRight=n,yW(d,t.startLabelRight)}if(t.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await xn(n,t.endLabelLeft,_W(t.labelStyle)||``,!1,!1);d=a;let o=a.getBBox();if(r){let e=a.children[0],t=dt(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,En(o,r)),hW.get(t.id)||hW.set(t.id,{}),hW.get(t.id).endLeft=n,yW(d,t.endLabelLeft)}if(t.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await xn(n,t.endLabelRight,_W(t.labelStyle)||``,!1,!1);d=a;let o=a.getBBox();if(r){let e=a.children[0],t=dt(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,En(o,r)),hW.get(t.id)||hW.set(t.id,{}),hW.get(t.id).endRight=n,yW(d,t.endLabelRight)}return c},`insertEdgeLabel`);function yW(e,t){xt(zt())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}E(yW,`setTerminalWidth`);var bW=E((e,t)=>{ut.debug(`Moving label abc88 `,e.id,e.label,mW.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath,{subGraphTitleTotalMargin:r}=mn(zt());if(e.label){let i=mW.get(e.id),a=e.x,o=e.y;if(n){let r=Qt.calcLabelPosition(n);ut.debug(`Moving label `+e.label+` from (`,a,`,`,o,`) to (`,r.x,`,`,r.y,`) abc88`),t.updatedPath&&(a=r.x,o=r.y)}i.attr(`transform`,`translate(${a}, ${o+r/2})`)}if(e.startLabelLeft){let t=hW.get(e.id).startLeft,r=e.x,i=e.y;if(n){let t=Qt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.startLabelRight){let t=hW.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=Qt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=hW.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=Qt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelRight){let t=hW.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=Qt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}},`positionEdgeLabel`),xW=E((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)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`),SW=E((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),CW=E((e,t,n)=>{ut.debug(`intersection calc abc89: 520 outsidePoint: ${JSON.stringify(t)} 521 insidePoint : ${JSON.stringify(n)} 522 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),o=e.width/2,s=n.x<t.x?o-a:o+a,c=e.height/2,l=Math.abs(t.y-n.y),u=Math.abs(t.x-n.x);if(Math.abs(i-t.y)*o>Math.abs(r-t.x)*c){let e=n.y<t.y?t.y-c-i:i-c-t.y;s=u*e/l;let r={x:n.x<t.x?n.x+s:n.x-u+s,y:n.y<t.y?n.y+l-e:n.y-l+e};return s===0&&(r.x=t.x,r.y=t.y),u===0&&(r.x=t.x),l===0&&(r.y=t.y),ut.debug(`abc89 top/bottom calc, Q ${l}, q ${e}, R ${u}, r ${s}`,r),r}else{s=n.x<t.x?t.x-o-r:r-o-t.x;let e=l*s/u,i=n.x<t.x?n.x+u-s:n.x-u+s,a=n.y<t.y?n.y+e:n.y-e;return ut.debug(`sides calc abc89, Q ${l}, q ${e}, R ${u}, r ${s}`,{_x:i,_y:a}),s===0&&(i=t.x,a=t.y),u===0&&(i=t.x),l===0&&(a=t.y),{x:i,y:a}}},`intersection`),wW=E((e,t)=>{ut.warn(`abc88 cutPathAtIntersect`,e,t);let n=[],r=e[0],i=!1;
vendor: 25,165 bytes, lines 522-525
522return e.forEach(e=>{if(ut.info(`abc88 checking point`,e,t),!SW(t,e)&&!i){let a=CW(t,r,e);ut.debug(`abc88 inside`,e,r,a),ut.debug(`abc88 intersection`,a,t);let o=!1;n.forEach(e=>{o||=e.x===a.x&&e.y===a.y}),n.some(e=>e.x===a.x&&e.y===a.y)?ut.warn(`abc88 no intersect`,a,n):n.push(a),i=!0}else ut.warn(`abc88 outside`,e,r),r=e,i||n.push(e)}),ut.debug(`returning points`,n),n},`cutPathAtIntersect`);function TW(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],o=e[r+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}E(TW,`extractCornerPoints`);var EW=E(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`),DW=E(function(e){let{cornerPointPositions:t}=TW(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],o=EW(t,a,5),s=EW(i,a,5),c=s.x-o.x,l=s.y-o.y;n.push(o);let u=Math.sqrt(2)*2,d={x:a.x,y:a.y};Math.abs(i.x-t.x)>10&&Math.abs(i.y-t.y)>=10?(ut.debug(`Corner point fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),d=a.x===o.x?{x:c<0?o.x-5+u:o.x+5-u,y:l<0?o.y-u:o.y+u}:{x:c<0?o.x-u:o.x+u,y:l<0?o.y-5+u:o.y+5-u}):ut.debug(`Corner point skipping fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(d,s)}else n.push(e[r]);return n},`fixCorners`),OW=E((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(i).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),kW=E(function(e,t,n,r,i,a,o,s=!1){if(!o)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:c,layout:l}=zt(),u=t.points,d=!1,f=i;var p=a;let m=[];for(let e in t.cssCompiledStyles)pn(e)||m.push(t.cssCompiledStyles[e]);if(l===`swimlane`){if(p.intersect&&f.intersect&&Array.isArray(u)&&u.length>=2)if(u.length===2)u=[f.intersect(u[0]),p.intersect(u[1])];else{let e=u.slice(1,-1),t=e[0],n=e[e.length-1],r=.5,i=Math.abs(u[u.length-1].x-n.x)<r&&Math.abs(u[u.length-1].y-n.y)<r,a=f.intersect(t),o=i?n:p.intersect(n),s=Math.abs(o.x-n.x)<r&&Math.abs(o.y-n.y)<r,c=Math.abs(a.x-t.x)<r&&Math.abs(a.y-t.y)<r?[]:[a],l=s?[]:[o];u=[...c,...e,...l]}u=xW(t,u)}else p.intersect&&f.intersect&&!s&&(u=u.slice(1,t.points.length-1),u.unshift(f.intersect(u[0])),u.push(p.intersect(u[u.length-1])));let h=btoa(JSON.stringify(u));t.toCluster&&(ut.info(`to cluster abc88`,n.get(t.toCluster)),u=wW(t.points,n.get(t.toCluster).node),d=!0),t.fromCluster&&(ut.debug(`from cluster abc88`,n.get(t.fromCluster),JSON.stringify(u,null,2)),u=wW(u.reverse(),n.get(t.fromCluster).node).reverse(),d=!0);let g=u.filter(e=>!Number.isNaN(e.y)),_=pW(t.curve);_!==`rounded`&&(g=DW(g));let v=an;switch(_){case`linear`:v=an;break;case`basis`:v=Xt;break;case`cardinal`:v=Bt;break;case`bumpX`:v=on;break;case`bumpY`:v=tn;break;case`catmullRom`:v=Ut;break;case`monotoneX`:v=Gt;break;case`monotoneY`:v=qt;break;case`natural`:v=Kt;break;case`step`:v=Vt;break;case`stepAfter`:v=Ht;break;case`stepBefore`:v=rn;break;case`rounded`:v=an;break;default:v=Xt}let{x:y,y:b}=wn(t),x=dn().x(y).y(b).curve(v),S;switch(t.thickness){case`normal`:S=`edge-thickness-normal`;break;case`thick`:S=`edge-thickness-thick`;break;case`invisible`:S=`edge-thickness-invisible`;break;default:S=`edge-thickness-normal`}switch(t.pattern){case`solid`:S+=` edge-pattern-solid`;break;case`dotted`:S+=` edge-pattern-dotted`;break;case`dashed`:S+=` edge-pattern-dashed`;break;default:S+=` edge-pattern-solid`}let C,w=_===`rounded`?AW(MW(g,t),5):x(g),ee=Array.isArray(t.style)?t.style:[t.style],te=ee.find(e=>e?.startsWith(`stroke:`)),ne=``;t.animate&&(ne=`edge-animation-fast`),t.animation&&(ne=`edge-animation-`+t.animation);let re=!1;if(t.look===`handDrawn`){let n=vn.svg(e);Object.assign([],g);let r=n.path(w,{roughness:.3,seed:c});S+=` transition`,C=dt(r).select(`path`).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+S+(t.classes?` `+t.classes:``)+(ne?` `+ne:``)).attr(`style`,ee?ee.reduce((e,t)=>e+`;`+t,``):``);let i=C.attr(`d`);C.attr(`d`,i),e.node().appendChild(C.node())}else{let n=m.join(`;`),r=ee?ee.reduce((e,t)=>e+t+`;`,``):``,i=(n?n+`;`+r+`;`:r)+`;`+(ee?ee.reduce((e,t)=>e+`;`+t,``):``);C=e.append(`path`).attr(`d`,w).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+S+(t.classes?` `+t.classes:``)+(ne?` `+ne:``)).attr(`style`,i),te=i.match(/stroke:([^;]+)/)?.[1],re=t.animate===!0||!!t.animation||n.includes(`animation`);let a=C.node(),s=typeof a.getTotalLength==`function`?a.getTotalLength():0,c=Cn[t.arrowTypeStart]||0,l=Cn[t.arrowTypeEnd]||0;if(t.look===`neo`&&!re){let e=`stroke-dasharray: ${t.pattern===`dotted`||t.pattern===`dashed`?OW(s,c,l):`0 ${c} ${s-c-l} ${l}`}; stroke-dashoffset: 0;`;C.attr(`style`,e+C.attr(`style`))}}C.attr(`data-edge`,!0),C.attr(`data-et`,`edge`),C.attr(`data-id`,t.id),C.attr(`data-points`,h),C.attr(`data-look`,sn(t.look)),t.showPoints&&g.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let ie=``;(zt().flowchart.arrowMarkerAbsolute||zt().state.arrowMarkerAbsolute)&&(ie=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,ie=ie.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),ut.info(`arrowTypeStart`,t.arrowTypeStart),ut.info(`arrowTypeEnd`,t.arrowTypeEnd);let ae=!re&&t?.look===`neo`;lW(C,t,ie,o,r,ae,te);let oe=Math.floor(u.length/2),se=u[oe];Qt.isLabelCoordinateInPath(se,C.attr(`d`))||(d=!0);let ce={};return d&&(ce.updatedPath=u),ce.originalPath=t.points,ce},`insertEdge`);function AW(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a<r;a++){let o=e[a],s=e[a-1],c=e[a+1];if(a===0)n+=`M${o.x},${o.y}`;else if(a===r-1)n+=`L${o.x},${o.y}`;else{let e=o.x-s.x,r=o.y-s.y,a=c.x-o.x,l=c.y-o.y,u=Math.hypot(e,r),d=Math.hypot(a,l);if(u<i||d<i){n+=`L${o.x},${o.y}`;continue}let f=e/u,p=r/u,m=a/d,h=l/d,g=f*m+p*h,_=Math.acos(Math.max(-1,Math.min(1,g)));if(_<i||Math.abs(Math.PI-_)<i){n+=`L${o.x},${o.y}`;continue}let v=Math.min(t/Math.sin(_/2),u/2,d/2),y=o.x-f*v,b=o.y-p*v,x=o.x+m*v,S=o.y+h*v;n+=`L${y},${b}`,n+=`Q${o.x},${o.y} ${x},${S}`}}return n}E(AW,`generateRoundedPath`);function jW(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}}E(jW,`calculateDeltaAndAngle`);function MW(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&Tn[t.arrowTypeStart]){let r=Tn[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=jW(i,a),s=r*Math.cos(o),c=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+c}let r=e.length;if(r>=2&&Tn[t.arrowTypeEnd]){let i=Tn[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=jW(o,a),c=i*Math.cos(s),l=i*Math.sin(s);n[r-1].x=a.x-c,n[r-1].y=a.y-l}return n}E(MW,`applyMarkerOffsetsToPoints`);var NW=E((e,t,n,r)=>{t.forEach(t=>{PW[t](e,n,r)})},`insertMarkers`),PW={extension:E((e,t,n)=>{ut.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`),composition:E((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`),aggregation:E((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`),dependency:E((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`),lollipop:E((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`),point:E((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`),circle:E((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`),cross:E((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`),barb:E((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`),barbNeo:E((e,t,n)=>{let{themeVariables:r}=Dt(),{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`),only_one:E((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`),zero_or_one:E((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`),one_or_more:E((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`),zero_or_more:E((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`),only_one_neo:E((e,t,n)=>{let{themeVariables:r}=Dt(),{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`),zero_or_one_neo:E((e,t,n)=>{let{themeVariables:r}=Dt(),{strokeWidth:i,mainBkg:a}=r,o=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`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),o.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${i}`);let s=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`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),one_or_more_neo:E((e,t,n)=>{let{themeVariables:r}=Dt(),{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`),zero_or_more_neo:E((e,t,n)=>{let{themeVariables:r}=Dt(),{strokeWidth:i,mainBkg:a}=r,o=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`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),o.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${i}`);let s=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`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),requirement_arrow:E((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 523 L20,10 524 M20,10 525 L0,20`)}
vendor: 16,014 bytes, lines 525-529
525,`requirement_arrow`),requirement_contains:E((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:E((e,t,n)=>{let{themeVariables:r}=Dt(),{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 526 L20,10 527 M20,10 528 L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),requirement_contains_neo:E((e,t,n)=>{let{themeVariables:r}=Dt(),{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`)},FW=NW,IW={common:It,getConfig:Dt,insertCluster:bn,insertEdge:kW,insertEdgeLabel:vW,insertMarkers:FW,insertNode:yn,interpolateToCurve:Yt,labelHelper:Sn,log:ut,positionEdgeLabel:bW},LW={},RW=E(e=>{for(let t of e)LW[t.name]=t},`registerLayoutLoaders`);E(()=>{RW([{name:`dagre`,loader:E(async()=>await T(()=>import(`./dagre-VKFMJZFB-BfiRr00J.js`),__vite__mapDeps([102,103,104,1,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119])),`loader`)},{name:`swimlane`,loader:E(async()=>await T(()=>import(`./swimlanes-5IMT3BWC-CpOWL2FL.js`),__vite__mapDeps([120,106,103,104,1,105,107,108,109,110,111,112,113,114,115,116,119,118])),`loader`)},{name:`cose-bilkent`,loader:E(async()=>await T(()=>import(`./cose-bilkent-JH36ORCC-ClnkE1nH.js`),__vite__mapDeps([121,1,103,104,122])),`loader`)}])},`registerDefaultLayoutLoaders`)();var zW=E(async(e,t,n)=>{if(!(e.layoutAlgorithm in LW))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=LW[e.layoutAlgorithm],i=await r.loader(),{theme:a,themeVariables:o}=e.config,{useGradient:s,gradientStart:c,gradientStop:l}=o,u=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${u}-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`,`${u}-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`}`),s){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`,c).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,l).attr(`stop-opacity`,1)}return i.render(e,t,IW,{algorithm:r.algorithm},n)},`render`),BW=E((e=``,{fallback:t=`dagre`}={})=>{if(e in LW)return e;if(t in LW)return ut.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},`getRegisteredLayoutAlgorithm`),VW=`comm`,HW=`rule`,UW=`decl`,WW=`@import`,GW=`@namespace`,KW=`@keyframes`,qW=`@layer`,JW=Math.abs,YW=String.fromCharCode;function XW(e){return e.trim()}function ZW(e,t,n){return e.replace(t,n)}function QW(e,t){return e.charCodeAt(t)|0}function $W(e,t,n){return e.slice(t,n)}function eG(e){return e.length}function tG(e){return e.length}function nG(e,t){return t.push(e),e}var rG=1,iG=1,aG=0,oG=0,sG=0,cG=``;function lG(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:rG,column:iG,length:o,return:``,siblings:s}}function uG(){return sG}function dG(){return sG=oG>0?QW(cG,--oG):0,iG--,sG===10&&(iG=1,rG--),sG}function fG(){return sG=oG<aG?QW(cG,oG++):0,iG++,sG===10&&(iG=1,rG++),sG}function pG(){return QW(cG,oG)}function mG(){return oG}function hG(e,t){return $W(cG,e,t)}function gG(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 _G(e){return rG=iG=1,aG=eG(cG=e),oG=0,[]}function vG(e){return cG=``,e}function yG(e){return XW(hG(oG-1,SG(e===91?e+2:e===40?e+1:e)))}function bG(e){for(;(sG=pG())&&sG<33;)fG();return gG(e)>2||gG(sG)>3?``:` `}function xG(e,t){for(;--t&&fG()&&!(sG<48||sG>102||sG>57&&sG<65||sG>70&&sG<97););return hG(e,mG()+(t<6&&pG()==32&&fG()==32))}function SG(e){for(;fG();)switch(sG){case e:return oG;case 34:case 39:e!==34&&e!==39&&SG(sG);break;case 40:e===41&&SG(e);break;case 92:fG();break}return oG}function CG(e,t){for(;fG()&&e+sG!==57&&!(e+sG===84&&pG()===47););return`/*`+hG(t,oG-1)+`*`+YW(e===47?e:fG())}function wG(e){for(;!gG(pG());)fG();return hG(e,oG)}function TG(e){return vG(EG(``,null,null,null,[``],e=_G(e),0,[0],e))}function EG(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=fG()){case 40:m!=108&&QW(w,d-1)==58?(v++,w+=`(`):w+=yG(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=yG(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=YW(y);break}w+=bG(m);break;case 92:w+=xG(mG()-1,7);continue;case 47:switch(pG()){case 42:case 47:nG(OG(CG(fG(),mG()),t,n,c),c),(gG(m||1)==5||gG(pG()||1)==5)&&eG(w)&&$W(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=eG(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=YW(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=ZW(w,/\f/g,``)),p>0&&(eG(w)-d||h===0)&&nG(p>32?kG(w+`;`,r,n,d-1,c):kG(ZW(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(nG(C=DG(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)EG(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(QW(w,3)===110)break;case 108:if(QW(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?EG(e,C,C,r&&nG(DG(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):EG(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+eG(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&dG()==125)continue}switch(w+=YW(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(eG(w)-1)*_,_=1;break;case 64:pG()===45&&(w+=yG(fG())),f=pG(),u=d=eG(b=w+=wG(mG())),y++;break;case 45:m===45&&eG(w)==2&&(h=0)}}return a}function DG(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=tG(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=$W(e,f+1,f=JW(g=o[h])),b=e;v<m;++v)(b=XW(g>0?p[v]+` `+y:ZW(y,/&\f/g,p[v])))&&(c[_++]=b);return lG(e,t,n,i===0?HW:s,c,l,u,d)}function OG(e,t,n,r){return lG(e,t,n,VW,YW(uG()),$W(e,2,-2),0,r)}function kG(e,t,n,r,i){return lG(e,t,n,UW,$W(e,0,r),$W(e,r+1,-1),r,i)}function AG(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function jG(e,t,n,r){switch(e.type){case qW:if(e.children.length)break;case WW:case GW:case UW:return e.return=e.return||e.value;case VW:return``;case KW:return e.return=e.value+`{`+AG(e.children,r)+`}`;case HW:if(!eG(e.value=e.props.join(`,`)))return``}return eG(n=AG(e.children,r))?e.return=e.value+`{`+n+`}`:``}function MG(e){var t=tG(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}var NG=`c4`,PG={id:NG,detector:E(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./c4Diagram-LMCZKHZV-CybUHMtT.js`);return{diagram:e}},__vite__mapDeps([123,103,104,1,105,106,108,107,124]));return{id:NG,diagram:e}},`loader`)},FG=`flowchart`,IG={id:FG,detector:E((e,t)=>t?.flowchart?.defaultRenderer===`dagre-wrapper`||t?.flowchart?.defaultRenderer===`elk`?!1:/^\s*graph/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./flowDiagram-23GEKE2U-Drs4J1_0.js`);return{diagram:e}},__vite__mapDeps([125,104,1,103,105,106,107,108,109,110,111,112,113,114,115,124,126,127,128,129,130]));return{id:FG,diagram:e}},`loader`)},LG=`flowchart-v2`,RG={id:LG,detector:E((e,t)=>t?.flowchart?.defaultRenderer===`dagre-d3`?!1:(t?.flowchart?.defaultRenderer===`elk`&&(t.layout=`elk`),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer===`dagre-wrapper`?!0:/^\s*flowchart/.test(e)),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./flowDiagram-23GEKE2U-Drs4J1_0.js`);return{diagram:e}},__vite__mapDeps([125,104,1,103,105,106,107,108,109,110,111,112,113,114,115,124,126,127,128,129,130]));return{id:LG,diagram:e}},`loader`)},zG=`swimlane`,BG={id:zG,detector:E(e=>/^\s*swimlane-beta\b/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./swimlanesDiagram-G3AALYLV-6djWtIJL.js`);return{diagram:e}},__vite__mapDeps([131,103,104,1,105,106,107,108,109,110,111,112,113,114,115,124,126,127,128,129,130]));return{id:zG,diagram:e}},`loader`)},VG=`er`,HG={id:VG,detector:E(e=>/^\s*erDiagram/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./erDiagram-Q63AITRT-Did5Ycz1.js`);return{diagram:e}},__vite__mapDeps([132,103,104,1,105,106,129,107,108,109,110,111,112,113,114,115,126,127]));return{id:VG,diagram:e}},`loader`)},UG=`gitGraph`,WG={id:UG,detector:E(e=>/^\s*gitGraph/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./gitGraphDiagram-IHSO6WYX-OAgD2xM7.js`);return{diagram:e}},__vite__mapDeps([133,103,104,1,105,106,107,108,134,135,136,137]));return{id:UG,diagram:e}},`loader`)},GG=`gantt`,KG={id:GG,detector:E(e=>/^\s*gantt/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./ganttDiagram-NO4QXBWP-CiH8_mv5.js`);return{diagram:e}},__vite__mapDeps([138,1,103,104,105,106,139,140,141,108,107]));return{id:GG,diagram:e}},`loader`)},qG=`info`,JG={id:qG,detector:E(e=>/^\s*info/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./infoDiagram-FWYZ7A6U-D36gOZMD.js`);return{diagram:e}},__vite__mapDeps([142,103,104,1,105,106,134,135]));return{id:qG,diagram:e}},`loader`)},YG=`pie`,XG={id:YG,detector:E(e=>/^\s*pie/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./pieDiagram-ENE6RG2P-uGVer6B0.js`);return{diagram:e}},__vite__mapDeps([143,103,104,1,105,106,144,141,145,108,146,147,107,134,135,136]));return{id:YG,diagram:e}},`loader`)},ZG=`quadrantChart`,QG={id:ZG,detector:E(e=>/^\s*quadrantChart/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./quadrantDiagram-ABIIQ3AL-BQmxGMtm.js`);return{diagram:e}},__vite__mapDeps([148,103,104,1,105,106,139,140,141]));return{id:ZG,diagram:e}},`loader`)},$G=`xychart`,eK={id:$G,detector:E(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./xychartDiagram-FW5EYKEG-Db7XadrE.js`);return{diagram:e}},__vite__mapDeps([149,103,104,1,105,106,139,140,141,144,107,108,150,145,147,111,112]));return{id:$G,diagram:e}},`loader`)},tK=`requirement`,nK={id:tK,detector:E(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./requirementDiagram-TGXJPOKE-D-PiwYXK.js`);return{diagram:e}},__vite__mapDeps([151,103,104,1,105,106,107,108,109,110,111,112,113,114,115,126,127]));return{id:tK,diagram:e}},`loader`)},rK=`sequence`,iK={id:rK,detector:E(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./sequenceDiagram-DBY2YBRQ-NLcTcS-L.js`);return{diagram:e}},__vite__mapDeps([152,103,104,1,105,106,108,107,124,137]));return{id:rK,diagram:e}},`loader`)},aK=`class`,oK={id:aK,detector:E((e,t)=>t?.class?.defaultRenderer!==`dagre-wrapper`&&/^\s*classDiagram/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./classDiagram-OUVF2IWQ-f10rcGTZ.js`);return{diagram:e}},__vite__mapDeps([153,103,104,1,105,106,107,108,109,110,111,112,113,114,115,124,126,127,154,130]));return{id:aK,diagram:e}},`loader`)},sK=`classDiagram`,cK={id:sK,detector:E((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer===`dagre-wrapper`?!0:/^\s*classDiagram-v2/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./classDiagram-v2-EOCWNBFH-f10rcGTZ.js`);return{diagram:e}},__vite__mapDeps([155,103,104,1,105,106,107,108,109,110,111,112,113,114,115,124,126,127,154,130]));return{id:sK,diagram:e}},`loader`)},lK=`state`,uK={id:lK,detector:E((e,t)=>t?.state?.defaultRenderer!==`dagre-wrapper`&&/^\s*stateDiagram/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./stateDiagram-2N3HPSRC-DO2qNCA-.js`);return{diagram:e}},__vite__mapDeps([156,103,104,1,105,106,107,108,150,145,147,109,110,111,112,113,114,115,116,117,118,124,126,127,157]));return{id:lK,diagram:e}},`loader`)},dK=`stateDiagram`,fK={id:dK,detector:E((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer===`dagre-wrapper`),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./stateDiagram-v2-6OUMAXLB-B6iLrnry.js`);return{diagram:e}},__vite__mapDeps([158,103,104,1,105,106,107,108,109,110,111,112,113,114,115,124,126,127,157]));return{id:dK,diagram:e}},`loader`)},pK=`journey`,mK={id:pK,detector:E(e=>/^\s*journey/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./journeyDiagram-5HDEW3XC-D4a75faj.js`);return{diagram:e}},__vite__mapDeps([159,103,104,1,105,106,146,145,108,130,124]));return{id:pK,diagram:e}},`loader`)},hK={draw:E((e,t,n)=>{ut.debug(`rendering svg for syntax error 529`);let r=xB(t),i=r.append(`g`);r.attr(`viewBox`,`0 0 2412 512`),Ot(r,100,512,!0),i.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`),i.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`),i.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`),i.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.
529164-16,16v32c0,8.836 7.156,16 16,16z`),i.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`),i.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`),i.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`),i.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`)},gK=hK,_K={db:{},renderer:hK,parser:{parse:E(()=>{},`parse`)}},vK=`flowchart-elk`,yK={id:vK,detector:E((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer===`elk`?(t.layout=`elk`,!0):!1,`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./flowDiagram-23GEKE2U-Drs4J1_0.js`);return{diagram:e}},__vite__mapDeps([125,104,1,103,105,106,107,108,109,110,111,112,113,114,115,124,126,127,128,129,130]));return{id:vK,diagram:e}},`loader`)},bK=`timeline`,xK={id:bK,detector:E(e=>/^\s*timeline/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./timeline-definition-FHXFAJF6-B3CbLscf.js`);return{diagram:e}},__vite__mapDeps([160,103,104,1,105,106,146,145,108,107]));return{id:bK,diagram:e}},`loader`)},SK=`mindmap`,CK={id:SK,detector:E(e=>/^\s*mindmap/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./mindmap-definition-LN4V7U3C-BxHcilWV.js`);return{diagram:e}},__vite__mapDeps([161,103,104,1,105,106,107,108,109,110,111,112,113,114,115,126,127]));return{id:SK,diagram:e}},`loader`)},wK=`kanban`,TK={id:wK,detector:E(e=>/^\s*kanban/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./kanban-definition-HUTT4EX6-Bx_big5i.js`);return{diagram:e}},__vite__mapDeps([162,103,104,1,105,106,107,108,109,110,111,112,113,114,130]));return{id:wK,diagram:e}},`loader`)},EK=`sankey`,DK={id:EK,detector:E(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./sankeyDiagram-HTMAVEWB-jBSL6dMD.js`);return{diagram:e}},__vite__mapDeps([163,103,104,1,105,106,144,141]));return{id:EK,diagram:e}},`loader`)},OK=`packet`,kK={id:OK,detector:E(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./diagram-NH7WQ7WH-i6j4xaWz.js`);return{diagram:e}},__vite__mapDeps([164,103,104,1,105,106,107,108,134,135,136]));return{id:OK,diagram:e}},`loader`)},AK=`radar`,jK={id:AK,detector:E(e=>/^\s*radar-beta/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./diagram-WEI45ONY-BPJ3f-J0.js`);return{diagram:e}},__vite__mapDeps([165,103,104,1,105,106,107,108,134,135,136]));return{id:AK,diagram:e}},`loader`)},MK=`block`,NK={id:MK,detector:E(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./blockDiagram-677ZJIJ3-CCUNr87t.js`);return{diagram:e}},__vite__mapDeps([166,103,104,1,105,106,129,107,108,150,145,147,110,111,112,115,130,116]));return{id:MK,diagram:e}},`loader`)},PK=`treeView`,FK={id:PK,detector:E(e=>/^\s*treeView-beta/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./diagram-OA4YK3LP-eOAw766V.js`);return{diagram:e}},__vite__mapDeps([167,103,104,1,105,106,107,108,111,134,135,136,137]));return{id:PK,diagram:e}},`loader`)},IK=`architecture`,LK={id:IK,detector:E(e=>/^\s*architecture/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./architectureDiagram-ZJ3FMSHR-DZ2DkKkX.js`);return{diagram:e}},__vite__mapDeps([168,1,103,104,105,106,107,108,111,112,134,135,136,122]));return{id:IK,diagram:e}},`loader`)},RK=`eventmodeling`,zK={id:RK,detector:E(e=>/^\s*eventmodeling/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./diagram-FQU43EPY-cDmHliUU.js`);return{diagram:e}},__vite__mapDeps([169,103,104,1,105,106,107,108,135,134,136]));return{id:RK,diagram:e}},`loader`)},BK=`ishikawa`,VK={id:BK,detector:E(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./ishikawaDiagram-FXEZZL3T-BlOizjrm.js`);return{diagram:e}},__vite__mapDeps([170,103,104,1,105,106,107,108,114]));return{id:BK,diagram:e}},`loader`)},HK=`venn`,UK={id:HK,detector:E(e=>/^\s*venn-beta/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./vennDiagram-L72KCM5P-D1Uidbj9.js`);return{diagram:e}},__vite__mapDeps([171,103,104,1,105,106,107,108,114]));return{id:HK,diagram:e}},`loader`)},WK=`treemap`,GK={id:WK,detector:E(e=>/^\s*treemap/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./diagram-G47NLZAW-lpa6dIpu.js`);return{diagram:e}},__vite__mapDeps([172,103,104,1,105,106,144,141,140,107,108,109,134,135,136,127]));return{id:WK,diagram:e}},`loader`)},KK=`wardley`,qK={id:KK,detector:E(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./wardleyDiagram-EHGQE667-Dv7SqBuD.js`);return{diagram:e}},__vite__mapDeps([173,103,104,1,105,106,107,108,134,135,136]));return{id:KK,diagram:e}},`loader`)},JK=`cynefin`,YK={id:JK,detector:E(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./cynefinDiagram-TSTJHNR4-CPsxY843.js`);return{diagram:e}},__vite__mapDeps([174,103,104,1,105,106,107,108,134,135,136]));return{id:JK,diagram:e}},`loader`)},XK=`railroad`,ZK={id:XK,detector:E(e=>/^\s*railroad-beta/i.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./railroadDiagram-RFXS5EU6-Bc71o7uj.js`);return{diagram:e}}
vendor: 7,770 bytes, lines 529-537
529,__vite__mapDeps([175,103,104,1,105,106,134,135,176,136]));return{id:XK,diagram:e}},`loader`)},QK=`railroadEbnf`,$K={id:QK,detector:E(e=>/^\s*railroad-ebnf-beta/i.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./ebnfDiagram-CCIWWBDH-CYwtXMpu.js`);return{diagram:e}},__vite__mapDeps([177,103,104,1,105,106,134,135,176,136]));return{id:QK,diagram:e}},`loader`)},eq=`railroadAbnf`,tq={id:eq,detector:E(e=>/^\s*railroad-abnf-beta/i.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./abnfDiagram-VRR7QNED-Czh0aDMk.js`);return{diagram:e}},__vite__mapDeps([178,103,104,1,105,106,134,135,176,136]));return{id:eq,diagram:e}},`loader`)},nq=`railroadPeg`,rq={id:nq,detector:E(e=>/^\s*railroad-peg-beta/i.test(e),`detector`),loader:E(async()=>{let{diagram:e}=await T(async()=>{let{diagram:e}=await import(`./pegDiagram-2B236MQR-BhB-KVVf.js`);return{diagram:e}},__vite__mapDeps([179,103,104,1,105,106,134,135,176,136]));return{id:nq,diagram:e}},`loader`)},iq=!1,aq=E(()=>{iq||(iq=!0,_t(`error`,_K,e=>e.toLowerCase().trim()===`error`),_t(`---`,{db:{clear:E(()=>{},`clear`)},styles:{},renderer:{draw:E(()=>{},`draw`)},parser:{parse:E(()=>{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:E(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),vt(yK,CK,LK),vt(PG,TK,cK,oK,HG,KG,JG,XG,nK,iK,BG,RG,IG,xK,WG,fK,uK,mK,QG,DK,kK,eK,NK,zK,FK,jK,VK,GK,ZK,$K,tq,rq,UK,qK,YK))},`addDiagrams`),oq=E(async()=>{ut.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(jt).map(async([e,{detector:t,loader:n}])=>{if(n)try{bt(e)}catch{try{let{diagram:e,id:r}=await n();_t(r,e,t)}catch(t){throw ut.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete jt[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){ut.error(`Failed to load ${e.length} external diagrams`);for(let t of e)ut.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),sq=`graphics-document document`;function cq(e,t){e.attr(`role`,sq),t!==``&&e.attr(`aria-roledescription`,t)}E(cq,`setA11yDiagramInfo`);function lq(e,t,n,r){if(e.insert!==void 0){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)}}}E(lq,`addSVGa11yTitleDescription`);var uq=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{E(this,`Diagram`)}static async fromText(t,n={}){let r=Dt(),i=Nt(t,r);t=nn(t)+` 530`;try{bt(i)}catch{let e=pt(i);if(!e)throw new Lt(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();_t(t,n)}let{db:a,parser:o,renderer:s,init:c}=bt(i);return o.parser&&(o.parser.yy=a),a.clear?.(),c?.(r),n.title&&a.setDiagramTitle?.(n.title),await o.parse(t),new e(i,t,a,o,s)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},dq=[],fq=E(()=>{dq.forEach(e=>{e()}),dq=[]},`attachFunctions`),pq=E(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`);function mq(e){let t=e.match(Et);if(!t)return{text:e,metadata:{}};let n=t[1],r=oW(n?t[2].split(` 531`).map(e=>e.startsWith(n)?e.slice(n.length):e).join(` 532`):t[2],{schema:aW})??{};r=typeof r==`object`&&!Array.isArray(r)?r:{};let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}E(mq,`extractFrontMatter`);var hq=E(e=>e.replace(/\r\n?/g,` 533`).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),gq=E(e=>{let{text:t,metadata:n}=mq(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),_q=E(e=>{let t=Qt.detectInit(e)??{},n=Qt.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:$t(e),directive:t}},`processDirectives`);function vq(e){let t=gq(hq(e)),n=_q(t.text),r=en(t.config,n.directive);return e=pq(n.text),{code:e,title:t.title,config:r}}E(vq,`preprocessDiagram`);function yq(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}E(yq,`toBase64`);var bq=5e4,xq=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,Sq=`sandbox`,Cq=`loose`,wq=`http://www.w3.org/2000/svg`,Tq=`http://www.w3.org/1999/xlink`,Eq=`http://www.w3.org/1999/xhtml`,Dq=`100%`,Oq=`100%`,kq=`border:0;margin:0;`,Aq=`margin:0`,jq=`allow-top-navigation-by-user-activation allow-popups`,Mq=`The "iframe" tag is not supported by your browser.`,Nq=[`foreignobject`],Pq=[`dominant-baseline`];function Fq(e){let t=vq(e);return ht(),Mt(t.config??{}),t}E(Fq,`processAndSetConfigs`);async function Iq(e,t){aq();try{let{code:t,config:n}=Fq(e);return{diagramType:(await Jq(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}E(Iq,`parse`);var Lq=E((e,t,n=[])=>`.${e} ${t} ${gt(`{ ${n.join(` !important; `)} !important; }`)}`,`cssImportantStyles`),Rq=E((e,t=new Map)=>{let n=new CSSStyleSheet;if(e.fontFamily!==void 0&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),e.altFontFamily!==void 0&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=xt(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{cW(e.styles)||r.forEach(t=>{n.insertRule(Lq(e.id,t,e.styles),n.cssRules.length)}),cW(e.textStyles)||n.insertRule(Lq(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))),n.cssRules.length)})}let r=``;if(e.themeCSS!==void 0)if(typeof n.replaceSync==`function`){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=At(t)+` 534`}else r+=`${e.themeCSS} 535`;return r+At(n)},`createCssStyles`),zq=E((e,t)=>AG(TG(`${e}{${t}}`),MG([E(function(t,n,r,i){if(t.type===`rule`&&Array.isArray(t.props)){if(t.parent&&t.parent.type===`@keyframes`)return;t.props=t.props.map(t=>t.startsWith(e)?t:`${e} ${t}`)}else t.type.startsWith(`@`)&&([`@media`,`@supports`,`@layer`,`@scope`,`@container`,`@starting-style`,`@keyframes`].includes(t.type)||(ut.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=VW))},`addNamespace`),jG])),`compileCSS`),Bq=E((e,t,n,r)=>zq(r,wt(t,Rq(e,n),{...e.themeVariables,theme:e.theme,look:e.look},r)),`createUserStyles`),Vq=E((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=Jt(r),r=r.replace(/<br>/g,`<br/>`),r},`cleanUpSvgCode`),Hq=E((e=``,t)=>`<iframe style="width:${Dq};height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+`px`:Oq};${kq}" src="data:text/html;charset=UTF-8;base64,${yq(`<body style="${Aq}">${e}</body>`)}" sandbox="${jq}"> 536 ${Mq} 537</iframe>`,`putIntoIFrame`),Uq=E((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,wq);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function Wq(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}E(Wq,`sandboxedIframe`);var Gq=E((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),Kq=E(async function(e,t,n){aq();let r=Fq(t);t=r.code;let i=Dt();ut.debug(i),t.length>(i?.maxTextSize??bq)&&(t=xq);let a=`#${e}
537`,o=`i`+e,s=`#`+o,c=`d`+e,l=`#`+c,u=E(()=>{let e=dt(f?s:l).node();e&&`remove`in e&&e.remove()},`removeTempElements`),d=dt(document.body),f=i.securityLevel===Sq,p=i.securityLevel===Cq,m=i.fontFamily;n===void 0?(Gq(document,e,c,o),f?(d=dt(Wq(dt(document.body),o).nodes()[0].contentDocument.body),d.node().style.margin=`0`):d=dt(`body`),Uq(d,e,c)):(n&&(n.innerHTML=``),f?(d=dt(Wq(dt(n),o).nodes()[0].contentDocument.body),d.node().style.margin=`0`):d=dt(n),Uq(d,e,c,`font-family: ${m}`,Tq));let h,g;try{h=await uq.fromText(t,{title:r.title})}catch(e){if(i.suppressErrorRendering)throw u(),e;h=await uq.fromText(`error`),g=e}let _=d.select(l).node(),v=h.type,y=_.firstChild,b=y.firstChild,x=h.renderer.getClasses?.(t,h),S=Bq(i,v,x,a),C=document.createElement(`style`);C.innerHTML=S,y.insertBefore(C,b);try{await h.renderer.draw(t,e,`11.16.0`,h)}catch(n){throw i.suppressErrorRendering?u():gK.draw(t,e,`11.16.0`),n}let w=d.select(`${l} svg`),ee=h.db.getAccTitle?.(),te=h.db.getAccDescription?.();Yq(v,w,ee,te),d.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,Eq);let ne=d.select(l).node().innerHTML;if(ut.debug(`config.arrowMarkerAbsolute`,i.arrowMarkerAbsolute),ne=Vq(ne,f,kt(i.arrowMarkerAbsolute)),f){let e=d.select(l+` svg`).node();ne=Hq(ne,e)}else p||(ne=ft.sanitize(ne,{ADD_TAGS:Nq,ADD_ATTR:Pq,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(fq(),g)throw g;return u(),{diagramType:v,svg:ne,bindFunctions:h.db.bindFunctions}},`render`);function qq(e={}){let t=Ft({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),St(t),t?.theme&&t.theme in Tt?t.themeVariables=Tt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Tt.default.getThemeVariables(t.themeVariables)),lt((typeof t==`object`?Pt(t):mt()).logLevel),aq()}E(qq,`initialize`);var Jq=E((e,t={})=>{let{code:n}=vq(e);return uq.fromText(n,t)},`getDiagramFromText`);function Yq(e,t,n,r){cq(t,e),lq(t,n,r,t.attr(`id`))}E(Yq,`addA11yInfo`);var Xq=Object.freeze({render:Kq,parse:Iq,getDiagramFromText:Jq,initialize:qq,getConfig:Dt,setConfig:Ct,getSiteConfig:mt,updateSiteConfig:yt,reset:E(()=>{ht()},`reset`),globalReset:E(()=>{ht(Rt)},`globalReset`),defaultConfig:Rt});lt(Dt().logLevel),ht(Dt());var Zq=E((e,t,n)=>{ut.warn(e),Zt(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`),Qq=E(async function(e={querySelector:`.mermaid`}){try{await $q(e)}catch(t){if(Zt(t)&&ut.error(t.str),uJ.parseError&&uJ.parseError(t),!e.suppressErrors)throw ut.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),$q=E(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=Xq.getConfig();ut.debug(`${e?``:`No `}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);ut.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(ut.debug(`Start On Load: `+r?.startOnLoad),Xq.updateSiteConfig({startOnLoad:r?.startOnLoad}));let a=new Qt.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),o,s=[];for(let t of Array.from(i)){if(ut.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${a.next()}`;o=t.innerHTML,o=_n(Qt.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let r=Qt.detectInit(o);r&&ut.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await lJ(n,o,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){Zq(e,s,uJ.parseError)}}if(s.length>0)throw s[0]},`runThrowsErrors`),eJ=E(function(e){Xq.initialize(e)},`initialize`),tJ=E(async function(e,t,n){ut.warn(`mermaid.init is deprecated. Please use run instead.`),e&&eJ(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await Qq(r)},`init`),nJ=E(async(e,{lazyLoad:t=!0}={})=>{aq(),vt(...e),t===!1&&await oq()},`registerExternalDiagrams`),rJ=E(function(){if(uJ.startOnLoad){let{startOnLoad:e}=Xq.getConfig();e&&uJ.run().catch(e=>ut.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,rJ,!1);var iJ=E(function(e){uJ.parseError=e},`setParseErrorHandler`),aJ=[],oJ=!1,sJ=E(async()=>
537{if(!oJ){for(oJ=!0;aJ.length>0;){let e=aJ.shift();if(e)try{await e()}catch(e){ut.error(`Error executing queue`,e)}}oJ=!1}},`executeQueue`),cJ=E(async(e,t)=>new Promise((n,r)=>{let i=E(()=>new Promise((i,a)=>{Xq.parse(e,t).then(e=>{i(e),n(e)},e=>{ut.error(`Error parsing`,e),uJ.parseError?.(e),a(e),r(e)})}),`performCall`);aJ.push(i),sJ().catch(r)}),`parse`),lJ=E((e,t,n)=>new Promise((r,i)=>{let a=E(()=>new Promise((a,o)=>{Xq.render(e,t,n).then(e=>{a(e),r(e)},e=>{ut.error(`Error parsing`,e),uJ.parseError?.(e),o(e),i(e)})}),`performCall`);aJ.push(a),sJ().catch(i)}),`render`),uJ={startOnLoad:!0,mermaidAPI:Xq,parse:cJ,render:lJ,init:tJ,run:Qq,registerExternalDiagrams:nJ,registerLayoutLoaders:RW,initialize:eJ,parseError:void 0,contentLoaded:rJ,setParseErrorHandler:iJ,detectType:Nt,registerIconPacks:hn,getRegisteredDiagramsMetadata:E(()=>Object.keys(jt).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},dJ=uJ,fJ={startOnLoad:!1,theme:`default`,securityLevel:`strict`,fontFamily:`monospace`,suppressErrorRendering:!0};function pJ(e={}){let t=!1,n={...fJ,...e.config},r={initialize(r){n={...fJ,...e.config,...r},dJ.initialize(n),t=!0},async render(e,r){return t||=(dJ.initialize(n),!0),await dJ.render(e,r)}};return{name:`mermaid`,type:`diagram`,language:`mermaid`,getMermaid(e){return e&&r.initialize(e),r}}}var mJ=pJ(),hJ={indicator:`indicator`,textOnly:`text-only`,remove:`remove`};function gJ({defaultOrigin:e=``,allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a=`inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm`,blockedLinkClass:o=`text-gray-500`,linkBlockPolicy:s=hJ.indicator,imageBlockPolicy:c=hJ.indicator}){let l=t.length&&!t.every(e=>e===`*`),u=n.length&&!n.every(e=>e===`*`);if(!e&&(l||u))throw Error(`defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided`);return l=>{let u=EJ(e,t,n,r,i,a,o,s,c);SJ(l),JC(l,u)}}function _J(e,t){if(typeof e!=`string`)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}return null}}function vJ(e){return typeof e==`string`?e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`):!1}var yJ=new Set([`https:`,`http:`,`irc:`,`ircs:`,`mailto:`,`xmpp:`,`blob:`]),bJ=new Set([`javascript:`,`data:`,`file:`,`vbscript:`]);function xJ(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e==`string`&&e.startsWith(`#`)&&!i)try{if(new URL(e,`http://example.com`).hash===e)return e}catch{}if(typeof e==`string`&&e.startsWith(`data:`))return i&&r&&e.startsWith(`data:image/`)?e:null;if(typeof e==`string`&&e.startsWith(`blob:`)){try{if(new URL(e).protocol===`blob:`&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&t!==`invalid`)return e}}catch{return null}return null}let o=_J(e,n);if(!o||bJ.has(o.protocol)||!(yJ.has(o.protocol)||a.includes(o.protocol)||a.includes(`*`)))return null;if(o.protocol===`mailto:`||!o.protocol.match(/^https?:$/))return o.href;let s=vJ(e);return o&&t.some(e=>{let t=_J(e,n);return!t||t.origin!==o.origin?!1:o.href.startsWith(t.href)})?s?o.pathname+o.search+o.hash:o.href:t.includes(`*`)?o.protocol!==`https:`&&o.protocol!==`http:`?null:s?o.pathname+o.search+o.hash:o.href:null}function SJ(e){if(`children`in e&&Array.isArray(e.children)){e.children=e.children.filter(e=>e!=null);for(let t of e.children)SJ(t)}}var CJ=Symbol(`node-seen`);function wJ(e,t,n){return t===hJ.remove?{type:`remove`}:t===hJ.textOnly?{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:n},children:[...e.children,{type:`text`,value:` [blocked]`}]}}}function TJ(e,t,n){if(t===hJ.remove)return{type:`remove`};if(t===hJ.textOnly){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`)+`]`}]}}}var EJ=(e,t,n,r,i,a,o,s,c)=>{let l=(u,d,f)=>{if(u.type!==`element`||u[CJ])return!0;
vendor: 4,188 bytes, lines 537-538
537if(u.tagName===`a`){let n=xJ(u.properties.href,t,e,!1,!1,i);if(n===null){if(u[CJ]=!0,JC(u,l),f&&typeof d==`number`){let e=wJ(u,s,o);if(e.type===`remove`)return f.children.splice(d,1),[KC,d];f.children[d]=e.element}return KC}else return u.properties.href=n,u.properties.target=`_blank`,u.properties.rel=`noopener noreferrer`,!0}if(u.tagName===`img`){let t=xJ(u.properties.src,n,e,r,!0,i);if(t===null){if(u[CJ]=!0,JC(u,l),f&&typeof d==`number`){let e=TJ(u,c,a);if(e.type===`remove`)return f.children.splice(d,1),[KC,d];f.children[d]=e.element}return KC}else return u.properties.src=t,!0}return!0};return l};function DJ(e){let t=String(e),n=[];return{toOffset:i,toPoint:r};function r(e){if(typeof e==`number`&&e>-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(i===void 0){let e=OJ(t,n[r-1]);i=e===-1?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}function i(e){if(e&&typeof e.line==`number`&&typeof e.column==`number`&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){let e=n[n.length-1],r=OJ(t,e),i=r===-1?t.length+1:r+1;if(e===i)break;n.push(i)}let r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}}}function OJ(e,t){let n=e.indexOf(`\r`,t),r=e.indexOf(` 538`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}var kJ={}.hasOwnProperty,AJ=Object.prototype;function jJ(e,t){let n=t||{};return MJ({file:n.file||void 0,location:!1,schema:n.space===`svg`?Ex:Tx,verbose:n.verbose||!1},e)}function MJ(e,t){let n;switch(t.nodeName){case`#comment`:{let r=t;return n={type:`comment`,value:r.data},FJ(e,r,n),n}case`#document`:case`#document-fragment`:{let r=t,i=`mode`in r?r.mode===`quirks`||r.mode===`limited-quirks`:!1;if(n={type:`root`,children:NJ(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){let t=String(e.file),r=DJ(t),i=r.toPoint(0),a=r.toPoint(t.length);n.position={start:i,end:a}}return n}case`#documentType`:{let r=t;return n={type:`doctype`},FJ(e,r,n),n}case`#text`:{let r=t;return n={type:`text`,value:r.value},FJ(e,r,n),n}default:return n=PJ(e,t),n}}function NJ(e,t){let n=-1,r=[];for(;++n<t.length;){let i=MJ(e,t[n]);r.push(i)}return r}function PJ(e,t){let n=e.schema;e.schema=t.namespaceURI===qP.svg?Ex:Tx;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+`:`:``)+e.name;kJ.call(AJ,n)||(i[n]=e.value)}let a=(e.schema.space===`svg`?KP:GP)(t.tagName,i,NJ(e,t.childNodes));if(FJ(e,t,a),a.tagName===`template`){let n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&LJ(r.startTag),o=r&&r.endTag&&LJ(r.endTag),s=MJ(e,n.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=n,a}function FJ(e,t,n){if(`sourceCodeLocation`in t&&t.sourceCodeLocation&&e.file){let r=IJ(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function IJ(e,t,n){let r=LJ(n);if(t.type===`element`){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(i in n.attrs)kJ.call(n.attrs,i)&&(r[Sx(e.schema,i).property]=LJ(n.attrs[i]));n.startTag;let a=LJ(n.startTag),o=n.endTag?LJ(n.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=r,t.data={position:s}}}return r}function LJ(e){let t=RJ({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=RJ({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function RJ(e){return e.line&&e.column?e:void 0}var zJ={},BJ={}.hasOwnProperty,VJ=dO(`type`,{handlers:{root:UJ,element:JJ,text:KJ,comment:qJ,doctype:GJ}});function HJ(e,t){let n=(t||zJ).space;return VJ(e,n===`svg`?Ex:Tx)}function UJ(e,t){let n={nodeName:`#document`,mode:(e.data||{}).quirksMode?`quirks`:`no-quirks`,childNodes:[]};return n.childNodes=XJ(e.children,n,t),ZJ(e,n),n}function WJ(e,t){let n={nodeName:`#document-fragment`,childNodes:[]};return n.childNodes=XJ(e.children,n,t),ZJ(e,n),n}function GJ(e){let t={nodeName:`#documentType`,name:`html`,publicId:``,systemId:``,parentNode:null};return ZJ(e,t),t}function KJ(e){let t={nodeName:`#text`,value:e.value,parentNode:null};return ZJ(e,t),t}function qJ(e){let t={nodeName:`#comment`,data:e.value,parentNode:null};return ZJ(e,t),t}function JJ(e,t){let n=t,r=n;
vendor: 10,002 bytes, line 538
538e.type===`element`&&e.tagName.toLowerCase()===`svg`&&n.space===`html`&&(r=Ex);let i=[],a;if(e.properties){for(a in e.properties)if(a!==`children`&&BJ.call(e.properties,a)){let t=YJ(r,a,e.properties[a]);t&&i.push(t)}}let o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:qP[o],childNodes:[],parentNode:null};return s.childNodes=XJ(e.children,s,r),ZJ(e,s),e.tagName===`template`&&e.content&&(s.content=WJ(e.content,r)),s}function YJ(e,t,n){let r=Sx(e,t);if(n===!1||n==null||typeof n==`number`&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?zb(n):Ox(n));let i={name:r.attribute,value:n===!0?``:String(n)};if(r.space&&r.space!==`html`&&r.space!==`svg`){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=qP[r.space]}return i}function XJ(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=VJ(e[r],n);a.parentNode=t,i.push(a)}return i}function ZJ(e,t){let n=e.position;n&&n.start&&n.end&&(n.start.offset,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 QJ=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]),K;(function(e){e[e.EOF=-1]=`EOF`,e[e.NULL=0]=`NULL`,e[e.TABULATION=9]=`TABULATION`,e[e.CARRIAGE_RETURN=13]=`CARRIAGE_RETURN`,e[e.LINE_FEED=10]=`LINE_FEED`,e[e.FORM_FEED=12]=`FORM_FEED`,e[e.SPACE=32]=`SPACE`,e[e.EXCLAMATION_MARK=33]=`EXCLAMATION_MARK`,e[e.QUOTATION_MARK=34]=`QUOTATION_MARK`,e[e.AMPERSAND=38]=`AMPERSAND`,e[e.APOSTROPHE=39]=`APOSTROPHE`,e[e.HYPHEN_MINUS=45]=`HYPHEN_MINUS`,e[e.SOLIDUS=47]=`SOLIDUS`,e[e.DIGIT_0=48]=`DIGIT_0`,e[e.DIGIT_9=57]=`DIGIT_9`,e[e.SEMICOLON=59]=`SEMICOLON`,e[e.LESS_THAN_SIGN=60]=`LESS_THAN_SIGN`,e[e.EQUALS_SIGN=61]=`EQUALS_SIGN`,e[e.GREATER_THAN_SIGN=62]=`GREATER_THAN_SIGN`,e[e.QUESTION_MARK=63]=`QUESTION_MARK`,e[e.LATIN_CAPITAL_A=65]=`LATIN_CAPITAL_A`,e[e.LATIN_CAPITAL_Z=90]=`LATIN_CAPITAL_Z`,e[e.RIGHT_SQUARE_BRACKET=93]=`RIGHT_SQUARE_BRACKET`,e[e.GRAVE_ACCENT=96]=`GRAVE_ACCENT`,e[e.LATIN_SMALL_A=97]=`LATIN_SMALL_A`,e[e.LATIN_SMALL_Z=122]=`LATIN_SMALL_Z`})(K||={});var $J={DASH_DASH:`--`,CDATA_START:`[CDATA[`,DOCTYPE:`doctype`,SCRIPT:`script`,PUBLIC:`public`,SYSTEM:`system`};function eY(e){return e>=55296&&e<=57343}function tY(e){return e>=56320&&e<=57343}function nY(e,t){return(e-55296)*1024+9216+t}function rY(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function iY(e){return e>=64976&&e<=65007||QJ.has(e)}var q;(function(e){e.controlCharacterInInputStream=`control-character-in-input-stream`,e.noncharacterInInputStream=`noncharacter-in-input-stream`,e.surrogateInInputStream=`surrogate-in-input-stream`,e.nonVoidHtmlElementStartTagWithTrailingSolidus=`non-void-html-element-start-tag-with-trailing-solidus`,e.endTagWithAttributes=`end-tag-with-attributes`,e.endTagWithTrailingSolidus=`end-tag-with-trailing-solidus`,e.unexpectedSolidusInTag=`unexpected-solidus-in-tag`,e.unexpectedNullCharacter=`unexpected-null-character`,e.unexpectedQuestionMarkInsteadOfTagName=`unexpected-question-mark-instead-of-tag-name`,e.invalidFirstCharacterOfTagName=`invalid-first-character-of-tag-name`,e.unexpectedEqualsSignBeforeAttributeName=`unexpected-equals-sign-before-attribute-name`,e.missingEndTagName=`missing-end-tag-name`,e.unexpectedCharacterInAttributeName=`unexpected-character-in-attribute-name`,e.unknownNamedCharacterReference=`unknown-named-character-reference`,e.missingSemicolonAfterCharacterReference=`missing-semicolon-after-character-reference`,e.unexpectedCharacterAfterDoctypeSystemIdentifier=`unexpected-character-after-doctype-system-identifier`,e.unexpectedCharacterInUnquotedAttributeValue=`unexpected-character-in-unquoted-attribute-value`,e.eofBeforeTagName=`eof-before-tag-name`,e.eofInTag=`eof-in-tag`,e.missingAttributeValue=`missing-attribute-value`,e.missingWhitespaceBetweenAttributes=`missing-whitespace-between-attributes`,e.missingWhitespaceAfterDoctypePublicKeyword=`missing-whitespace-after-doctype-public-keyword`,e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers=`missing-whitespace-between-doctype-public-and-system-identifiers`,e.missingWhitespaceAfterDoctypeSystemKeyword=`missing-whitespace-after-doctype-system-keyword`,e.missingQuoteBeforeDoctypePublicIdentifier=`missing-quote-before-doctype-public-identifier`,e.missingQuoteBeforeDoctypeSystemIdentifier=`missing-quote-before-doctype-system-identifier`,e.missingDoctypePublicIdentifier=`missing-doctype-public-identifier`,e.missingDoctypeSystemIdentifier=`missing-doctype-system-identifier`,e.abruptDoctypePublicIdentifier=`abrupt-doctype-public-identifier`,e.abruptDoctypeSystemIdentifier=`abrupt-doctype-system-identifier`,e.cdataInHtmlContent=`cdata-in-html-content`,e.incorrectlyOpenedComment=`incorrectly-opened-comment`,e.eofInScriptHtmlCommentLikeText=`eof-in-script-html-comment-like-text`,e.eofInDoctype=`eof-in-doctype`,e.nestedComment=`nested-comment`,e.abruptClosingOfEmptyComment=`abrupt-closing-of-empty-comment`,e.eofInComment=`eof-in-comment`,e.incorrectlyClosedComment=`incorrectly-closed-comment`,e.eofInCdata=`eof-in-cdata`,e.absenceOfDigitsInNumericCharacterReference=`absence-of-digits-in-numeric-character-reference`,e.nullCharacterReference=`null-character-reference`,e.surrogateCharacterReference=`surrogate-character-reference`,e.characterReferenceOutsideUnicodeRange=`character-reference-outside-unicode-range`,e.controlCharacterReference=`control-character-reference`,e.noncharacterCharacterReference=`noncharacter-character-reference`,e.missingWhitespaceBeforeDoctypeName=`missing-whitespace-before-doctype-name`,e.missingDoctypeName=`missing-doctype-name`,e.invalidCharacterSequenceAfterDoctypeName=`invalid-character-sequence-after-doctype-name`,e.duplicateAttribute=`duplicate-attribute`,e.nonConformingDoctype=`non-conforming-doctype`,e.missingDoctype=`missing-doctype`,e.misplacedDoctype=`misplaced-doctype`,e.endTagWithoutMatchingOpenElement=`end-tag-without-matching-open-element`,e.closingOfElementWithOpenChildElements=`closing-of-element-with-open-child-elements`,e.disallowedContentInNoscriptInHead=`disallowed-content-in-noscript-in-head`,e.openElementsLeftAfterEof=`open-elements-left-after-eof`,e.abandonedHeadElementChild=`abandoned-head-element-child`,e.misplacedStartTagForHeadElement=`misplaced-start-tag-for-head-element`,e.nestedNoscriptInHead=`nested-noscript-in-head`,e.eofInElementThatCanContainOnlyText=`eof-in-element-that-can-contain-only-text`})(q||={});var aY=65536,oY=class{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=aY,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,o=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(tY(t))return this.pos++,this._addGap(),nY(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,K.EOF;return this._err(q.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((this.html.charCodeAt(this.pos+t)|32)!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,K.EOF;let n=this.html.charCodeAt(t);return n===K.CARRIAGE_RETURN?K.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,K.EOF;let e=this.html.charCodeAt(this.pos);return e===K.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,K.LINE_FEED):e===K.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,eY(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===K.LINE_FEED||e===K.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){rY(e)?this._err(q.controlCharacterInInputStream):iY(e)&&this._err(q.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}},sY;(function(e){e[e.CHARACTER=0]=`CHARACTER`,e[e.NULL_CHARACTER=1]=`NULL_CHARACTER`,e[e.WHITESPACE_CHARACTER=2]=`WHITESPACE_CHARACTER`,e[e.START_TAG=3]=`START_TAG`,e[e.END_TAG=4]=`END_TAG`,e[e.COMMENT=5]=`COMMENT`,e[e.DOCTYPE=6]=`DOCTYPE`,e[e.EOF=7]=`EOF`,e[e.HIBERNATION=8]=`HIBERNATION`})(sY||={});function cY(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}var lY=new Uint16Array(`
vendor: 8,301 bytes, line 538
538áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌ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;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦Ö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áÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹ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;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;
vendor: 7,828 bytes, line 538
538ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸Ä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ãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 4,296 bytes, line 538
538ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»\xA0ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;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è»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
vendor: 6,210 bytes, line 538
538astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Ä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ã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ
538`.split(``).map(e=>e.charCodeAt(0))),uY=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]]);String.fromCodePoint;function dY(e){return e>=55296&&e<=57343||e>1114111?65533:uY.get(e)??e}var fY;
vendor: 8,377 bytes, line 538
538(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(fY||={});var pY=32,mY;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(mY||={});function hY(e){return e>=fY.ZERO&&e<=fY.NINE}function gY(e){return e>=fY.UPPER_A&&e<=fY.UPPER_F||e>=fY.LOWER_A&&e<=fY.LOWER_F}function _Y(e){return e>=fY.UPPER_A&&e<=fY.UPPER_Z||e>=fY.LOWER_A&&e<=fY.LOWER_Z||hY(e)}function vY(e){return e===fY.EQUALS||_Y(e)}var yY;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(yY||={});var bY;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(bY||={});var xY=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=yY.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=bY.Strict}startEntity(e){this.decodeMode=e,this.state=yY.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case yY.EntityStart:return e.charCodeAt(t)===fY.NUM?(this.state=yY.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=yY.NamedEntity,this.stateNamedEntity(e,t));case yY.NumericStart:return this.stateNumericStart(e,t);case yY.NumericDecimal:return this.stateNumericDecimal(e,t);case yY.NumericHex:return this.stateNumericHex(e,t);case yY.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|pY)===fY.LOWER_X?(this.state=yY.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=yY.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(hY(r)||gY(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(hY(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===fY.SEMI)this.consumed+=1;else if(this.decodeMode===bY.Strict)return 0;return this.emitCodePoint(dY(this.result),this.consumed),this.errors&&(e!==fY.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&mY.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=SY(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===bY.Attribute&&(i===0||vY(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&mY.VALUE_LENGTH)>>14,i!==0){if(a===fY.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==bY.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]&mY.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~mY.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case yY.NamedEntity:return this.result!==0&&(this.decodeMode!==bY.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case yY.NumericDecimal:return this.emitNumericEntity(0,2);case yY.NumericHex:return this.emitNumericEntity(0,3);case yY.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case yY.EntityStart:return 0}}};function SY(e,t,n,r){let i=(t&mY.BRANCH_LENGTH)>>7,a=t&mY.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}var J;(function(e){e.HTML=`http://www.w3.org/1999/xhtml`,e.MATHML=`http://www.w3.org/1998/Math/MathML`,e.SVG=`http://www.w3.org/2000/svg`,e.XLINK=`http://www.w3.org/1999/xlink`,e.XML=`http://www.w3.org/XML/1998/namespace`,e.XMLNS=`http://www.w3.org/2000/xmlns/`})(J||={});var CY;(function(e){e.TYPE=`type`,e.ACTION=`action`,e.ENCODING=`encoding`,e.PROMPT=`prompt`,e.NAME=`name`,e.COLOR=`color`,e.FACE=`face`,e.SIZE=`size`})(CY||={});var wY;(function(e){e.NO_QUIRKS=`no-quirks`,e.QUIRKS=`quirks`,e.LIMITED_QUIRKS=`limited-quirks`})(wY||={});var Y;(function(e){e.A=`a`,e.ADDRESS=`address`,e.ANNOTATION_XML=`annotation-xml`,e.APPLET=`applet`,e.AREA=`area`,e.ARTICLE=`article`,e.ASIDE=`aside`,e.B=`b`,e.BASE=`base`,e.BASEFONT=`basefont`,e.BGSOUND=`bgsound`,e.BIG=`big`,e.BLOCKQUOTE=`blockquote`,e.BODY=`body`,e.BR=`br`,e.BUTTON=`button`,e.CAPTION=`caption`,e.CENTER=`center`,e.CODE=`code`,e.COL=`col`,e.COLGROUP=`colgroup`,e.DD=`dd`,e.DESC=`desc`,e.DETAILS=`details`,e.DIALOG=`dialog`,e.DIR=`dir`,e.DIV=`div`,e.DL=`dl`,e.DT=`dt`,e.EM=`em`,e.EMBED=`embed`,e.FIELDSET=`fieldset`,e.FIGCAPTION=`figcaption`,e.FIGURE=`figure`,e.FONT=`font`,e.FOOTER=`footer`,e.FOREIGN_OBJECT=`foreignObject`,e.FORM=`form`,e.FRAME=`frame`,e.FRAMESET=`frameset`,e.H1=`h1`,e.H2=`h2`,e.H3=`h3`,e.H4=`h4`,e.H5=`h5`,e.H6=`h6`,e.HEAD=`head`,e.HEADER=`header`,e.HGROUP=`hgroup`,e.HR=`hr`,e.HTML=`html`,e.I=`i`,e.IMG=`img`,e.IMAGE=`image`,e.INPUT=`input`,e.IFRAME=`iframe`,e.KEYGEN=`keygen`,e.LABEL=`label`,e.LI=`li`,e.LINK=`link`,e.LISTING=`listing`,e.MAIN=`main`,e.MALIGNMARK=`malignmark`,e.MARQUEE=`marquee`,e.MATH=`math`,e.MENU=`menu`,e.META=`meta`,e.MGLYPH=`mglyph`,e.MI=`mi`,e.MO=`mo`,e.MN=`mn`,e.MS=`ms`,e.MTEXT=`mtext`,e.NAV=`nav`,e.NOBR=`nobr`,e.NOFRAMES=`noframes`,e.NOEMBED=`noembed`,e.NOSCRIPT=`noscript`,e.OBJECT=`object`,e.OL=`ol`,e.OPTGROUP=`optgroup`,e.OPTION=`option`,e.P=`p`,e.PARAM=`param`,e.PLAINTEXT=`plaintext`,e.PRE=`pre`,e.RB=`rb`,e.RP=`rp`,e.RT=`rt`,e.RTC=`rtc`,e.RUBY=`ruby`,e.S=`s`,e.SCRIPT=`script`,e.SEARCH=`search`,e.SECTION=`section`,e.SELECT=`select`,e.SOURCE=`source`,e.SMALL=`small`,e.SPAN=`span`,e.STRIKE=`strike`,e.STRONG=`strong`,e.STYLE=`style`,e.SUB=`sub`,e.SUMMARY=`summary`,e.SUP=`sup`,e.TABLE=`table`,e.TBODY=`tbody`,e.TEMPLATE=`template`,e.TEXTAREA=`textarea`,e.TFOOT=`tfoot`,e.TD=`td`,e.TH=`th`,e.THEAD=`thead`,e.TITLE=`title`,e.TR=`tr`,e.TRACK=`track`,e.TT=`tt`,e.U=`u`,e.UL=`ul`,e.SVG=`svg`,e.VAR=`var`,e.WBR=`wbr`,e.XMP=`xmp`})(Y||={});var X;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.A=1]=`A`,e[e.ADDRESS=2]=`ADDRESS`,e[e.ANNOTATION_XML=3]=`ANNOTATION_XML`,e[e.APPLET=4]=`APPLET`,e[e.AREA=5]=`AREA`,e[e.ARTICLE=6]=`ARTICLE`,e[e.ASIDE=7]=`ASIDE`,e[e.B=8]=`B`,e[e.BASE=9]=`BASE`,e[e.BASEFONT=10]=`BASEFONT`,e[e.BGSOUND=11]=`BGSOUND`,e[e.BIG=12]=`BIG`,e[e.BLOCKQUOTE=13]=`BLOCKQUOTE`,e[e.BODY=14]=`BODY`,e[e.BR=15]=`BR`,e[e.BUTTON=16]=`BUTTON`,e[e.CAPTION=17]=`CAPTION`,e[e.CENTER=18]=`CENTER`,e[e.CODE=19]=`CODE`,e[e.COL=20]=`COL`,e[e.COLGROUP=21]=`COLGROUP`,e[e.DD=22]=`DD`,e[e.DESC=23]=`DESC`,e[e.DETAILS=24]=`DETAILS`,e[e.DIALOG=25]=`DIALOG`,e[e.DIR=26]=`DIR`,e[e.DIV=27]=`DIV`,e[e.DL=28]=`DL`,e[e.DT=29]=`DT`,e[e.EM=30]=`EM`,e[e.EMBED=31]=`EMBED`,e[e.FIELDSET=32]=`FIELDSET`,e[e.FIGCAPTION=33]=`FIGCAPTION`,e[e.FIGURE=34]=`FIGURE`,e[e.FONT=35]=`FONT`,e[e.FOOTER=36]=`FOOTER`,e[e.FOREIGN_OBJECT=37]=`FOREIGN_OBJECT`,e[e.FORM=38]=`FORM`,e[e.FRAME=39]=`FRAME`,e[e.FRAMESET=40]=`FRAMESET`,e[e.H1=41]=`H1`,e[e.H2=42]=`H2`,e[e.H3=43]=`H3`,e[e.H4=44]=`H4`,e[e.H5=45]=`H5`,e[e.H6=46]=`H6`,e[e.HEAD=47]=`HEAD`,e[e.HEADER=48]=`HEADER`,e[e.HGROUP=49]=`HGROUP`,e[e.HR=50]=`HR`,e[e.HTML=51]=`HTML`,e[e.I=52]=`I`,e[e.IMG=53]=`IMG`,e[e.IMAGE=54]=`IMAGE`,e[e.INPUT=55]=`INPUT`,e[e.IFRAME=56]=`IFRAME`,e[e.KEYGEN=57]=`KEYGEN`,e[e.LABEL=58]=`LABEL`,e[e.LI=59]=`
538LI`,e[e.LINK=60]=`LINK`,e[e.LISTING=61]=`LISTING`,e[e.MAIN=62]=`MAIN`,e[e.MALIGNMARK=63]=`MALIGNMARK`,e[e.MARQUEE=64]=`MARQUEE`,e[e.MATH=65]=`MATH`,e[e.MENU=66]=`MENU`,e[e.META=67]=`META`,e[e.MGLYPH=68]=`MGLYPH`,e[e.MI=69]=`MI`,e[e.MO=70]=`MO`,e[e.MN=71]=`MN`,e[e.MS=72]=`MS`,e[e.MTEXT=73]=`MTEXT`,e[e.NAV=74]=`NAV`,e[e.NOBR=75]=`NOBR`,e[e.NOFRAMES=76]=`NOFRAMES`,e[e.NOEMBED=77]=`NOEMBED`,e[e.NOSCRIPT=78]=`NOSCRIPT`,e[e.OBJECT=79]=`OBJECT`,e[e.OL=80]=`OL`,e[e.OPTGROUP=81]=`OPTGROUP`,e[e.OPTION=82]=`OPTION`,e[e.P=83]=`P`,e[e.PARAM=84]=`PARAM`,e[e.PLAINTEXT=85]=`PLAINTEXT`,e[e.PRE=86]=`PRE`,e[e.RB=87]=`RB`,e[e.RP=88]=`RP`,e[e.RT=89]=`RT`,e[e.RTC=90]=`RTC`,e[e.RUBY=91]=`RUBY`,e[e.S=92]=`S`,e[e.SCRIPT=93]=`SCRIPT`,e[e.SEARCH=94]=`SEARCH`,e[e.SECTION=95]=`SECTION`,e[e.SELECT=96]=`SELECT`,e[e.SOURCE=97]=`SOURCE`,e[e.SMALL=98]=`SMALL`,e[e.SPAN=99]=`SPAN`,e[e.STRIKE=100]=`STRIKE`,e[e.STRONG=101]=`STRONG`,e[e.STYLE=102]=`STYLE`,e[e.SUB=103]=`SUB`,e[e.SUMMARY=104]=`SUMMARY`,e[e.SUP=105]=`SUP`,e[e.TABLE=106]=`TABLE`,e[e.TBODY=107]=`TBODY`,e[e.TEMPLATE=108]=`TEMPLATE`,e[e.TEXTAREA=109]=`TEXTAREA`,e[e.TFOOT=110]=`TFOOT`,e[e.TD=111]=`TD`,e[e.TH=112]=`TH`,e[e.THEAD=113]=`THEAD`,e[e.TITLE=114]=`TITLE`,e[e.TR=115]=`TR`,e[e.TRACK=116]=`TRACK`,e[e.TT=117]=`TT`,e[e.U=118]=`U`,e[e.UL=119]=`UL`,e[e.SVG=120]=`SVG`,e[e.VAR=121]=`VAR`,e[e.WBR=122]=`WBR`,e[e.XMP=123]=`XMP`})(X||={});var TY=new Map([[Y.A,X.A],[Y.ADDRESS,X.ADDRESS],[Y.ANNOTATION_XML,X.ANNOTATION_XML],[Y.APPLET,X.APPLET],[Y.AREA,X.AREA],[Y.ARTICLE,X.ARTICLE],[Y.ASIDE,X.ASIDE],[Y.B,X.B],[Y.BASE,X.BASE],[Y.BASEFONT,X.BASEFONT],[Y.BGSOUND,X.BGSOUND],[Y.BIG,X.BIG],[Y.BLOCKQUOTE,X.BLOCKQUOTE],[Y.BODY,X.BODY],[Y.BR,X.BR],[Y.BUTTON,X.BUTTON],[Y.CAPTION,X.CAPTION],[Y.CENTER,X.CENTER],[Y.CODE,X.CODE],[Y.COL,X.COL],[Y.COLGROUP,X.COLGROUP],[Y.DD,X.DD],[Y.DESC,X.DESC],[Y.DETAILS,X.DETAILS],[Y.DIALOG,X.DIALOG],[Y.DIR,X.DIR],[Y.DIV,X.DIV],[Y.DL,X.DL],[Y.DT,X.DT],[Y.EM,X.EM],[Y.EMBED,X.EMBED],[Y.FIELDSET,X.FIELDSET],[Y.FIGCAPTION,X.FIGCAPTION],[Y.FIGURE,X.FIGURE],[Y.FONT,X.FONT],[Y.FOOTER,X.FOOTER],[Y.FOREIGN_OBJECT,X.FOREIGN_OBJECT],[Y.FORM,X.FORM],[Y.FRAME,X.FRAME],[Y.FRAMESET,X.FRAMESET],[Y.H1,X.H1],[Y.H2,X.H2],[Y.H3,X.H3],[Y.H4,X.H4],[Y.H5,X.H5],[Y.H6,X.H6],[Y.HEAD,X.HEAD],[Y.HEADER,X.HEADER],[Y.HGROUP,X.HGROUP],[Y.HR,X.HR],[Y.HTML,X.HTML],[Y.I,X.I],[Y.IMG,X.IMG],[Y.IMAGE,X.IMAGE],[Y.INPUT,X.INPUT],[Y.IFRAME,X.IFRAME],[Y.KEYGEN,X.KEYGEN],[Y.LABEL,X.LABEL],[Y.LI,X.LI],[Y.LINK,X.LINK],[Y.LISTING,X.LISTING],[Y.MAIN,X.MAIN],[Y.MALIGNMARK,X.MALIGNMARK],[Y.MARQUEE,X.MARQUEE],[Y.MATH,X.MATH],[Y.MENU,X.MENU],[Y.META,X.META],[Y.MGLYPH,X.MGLYPH],[Y.MI,X.MI],[Y.MO,X.MO],[Y.MN,X.MN],[Y.MS,X.MS],[Y.MTEXT,X.MTEXT],[Y.NAV,X.NAV],[Y.NOBR,X.NOBR],[Y.NOFRAMES,X.NOFRAMES],[Y.NOEMBED,X.NOEMBED],[Y.NOSCRIPT,X.NOSCRIPT],[Y.OBJECT,X.OBJECT],[Y.OL,X.OL],[Y.OPTGROUP,X.OPTGROUP],[Y.OPTION,X.OPTION],[Y.P,X.P],[Y.PARAM,X.PARAM],[Y.PLAINTEXT,X.PLAINTEXT],[Y.PRE,X.PRE],[Y.RB,X.RB],[Y.RP,X.RP],[Y.RT,X.RT],[Y.RTC,X.RTC],[Y.RUBY,X.RUBY],[Y.S,X.S],[Y.SCRIPT,X.SCRIPT],[Y.SEARCH,X.SEARCH],[Y.SECTION,X.SECTION],[Y.SELECT,X.SELECT],[Y.SOURCE,X.SOURCE],[Y.SMALL,X.SMALL],[Y.SPAN,X.SPAN],[Y.STRIKE,X.STRIKE],[Y.STRONG,X.STRONG],[Y.STYLE,X.STYLE],[Y.SUB,X.SUB],[Y.SUMMARY,X.SUMMARY],[Y.SUP,X.SUP],[Y.TABLE,X.TABLE],[Y.TBODY,X.TBODY],[Y.TEMPLATE,X.TEMPLATE],[Y.TEXTAREA,X.TEXTAREA],[Y.TFOOT,X.TFOOT],[Y.TD,X.TD],[Y.TH,X.TH],[Y.THEAD,X.THEAD],[Y.TITLE,X.TITLE],[Y.TR,X.TR],[Y.TRACK,X.TRACK],[Y.TT,X.TT],[Y.U,X.U],[Y.UL,X.UL],[Y.SVG,X.SVG],[Y.VAR,X.VAR],[Y.WBR,X.WBR],[Y.XMP,X.XMP]]);function EY(e){return TY.get(e)??X.UNKNOWN}var Z=X,DY={[J.HTML]:new Set([Z.ADDRESS,Z.APPLET,Z.AREA,Z.ARTICLE,Z.ASIDE,Z.BASE,Z.BASEFONT,Z.BGSOUND,Z.BLOCKQUOTE,Z.BODY,Z.BR,Z.BUTTON,Z.CAPTION,Z.CENTER,Z.COL,Z.COLGROUP,Z.DD,Z.DETAILS,Z.DIR,Z.DIV,Z.DL,Z.DT,Z.EMBED,Z.FIELDSET,Z.FIGCAPTION,Z.FIGURE,Z.FOOTER,Z.FORM,Z.FRAME,Z.FRAMESET,Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6,Z.HEAD,Z.HEADER,Z.HGROUP,Z.HR,Z.HTML,Z.IFRAME,Z.IMG,Z.INPUT,Z.LI,Z.LINK,Z.LISTING,Z.MAIN,Z.MARQUEE,Z.MENU,Z.META,Z.NAV,Z.NOEMBED,Z.NOFRAMES,Z.NOSCRIPT,Z.OBJECT,Z.OL,Z.P,Z.PARAM,Z.PLAINTEXT,Z.PRE,Z.SCRIPT,Z.SECTION,Z.SELECT,Z.SOURCE,Z.STYLE,Z.SUM
vendor: 10,089 bytes, line 538
538MARY,Z.TABLE,Z.TBODY,Z.TD,Z.TEMPLATE,Z.TEXTAREA,Z.TFOOT,Z.TH,Z.THEAD,Z.TITLE,Z.TR,Z.TRACK,Z.UL,Z.WBR,Z.XMP]),[J.MATHML]:new Set([Z.MI,Z.MO,Z.MN,Z.MS,Z.MTEXT,Z.ANNOTATION_XML]),[J.SVG]:new Set([Z.TITLE,Z.FOREIGN_OBJECT,Z.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},OY=new Set([Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6]);Y.STYLE,Y.SCRIPT,Y.XMP,Y.IFRAME,Y.NOEMBED,Y.NOFRAMES,Y.PLAINTEXT;var Q;(function(e){e[e.DATA=0]=`DATA`,e[e.RCDATA=1]=`RCDATA`,e[e.RAWTEXT=2]=`RAWTEXT`,e[e.SCRIPT_DATA=3]=`SCRIPT_DATA`,e[e.PLAINTEXT=4]=`PLAINTEXT`,e[e.TAG_OPEN=5]=`TAG_OPEN`,e[e.END_TAG_OPEN=6]=`END_TAG_OPEN`,e[e.TAG_NAME=7]=`TAG_NAME`,e[e.RCDATA_LESS_THAN_SIGN=8]=`RCDATA_LESS_THAN_SIGN`,e[e.RCDATA_END_TAG_OPEN=9]=`RCDATA_END_TAG_OPEN`,e[e.RCDATA_END_TAG_NAME=10]=`RCDATA_END_TAG_NAME`,e[e.RAWTEXT_LESS_THAN_SIGN=11]=`RAWTEXT_LESS_THAN_SIGN`,e[e.RAWTEXT_END_TAG_OPEN=12]=`RAWTEXT_END_TAG_OPEN`,e[e.RAWTEXT_END_TAG_NAME=13]=`RAWTEXT_END_TAG_NAME`,e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]=`SCRIPT_DATA_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_END_TAG_OPEN=15]=`SCRIPT_DATA_END_TAG_OPEN`,e[e.SCRIPT_DATA_END_TAG_NAME=16]=`SCRIPT_DATA_END_TAG_NAME`,e[e.SCRIPT_DATA_ESCAPE_START=17]=`SCRIPT_DATA_ESCAPE_START`,e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]=`SCRIPT_DATA_ESCAPE_START_DASH`,e[e.SCRIPT_DATA_ESCAPED=19]=`SCRIPT_DATA_ESCAPED`,e[e.SCRIPT_DATA_ESCAPED_DASH=20]=`SCRIPT_DATA_ESCAPED_DASH`,e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]=`SCRIPT_DATA_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]=`SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]=`SCRIPT_DATA_ESCAPED_END_TAG_OPEN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]=`SCRIPT_DATA_ESCAPED_END_TAG_NAME`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]=`SCRIPT_DATA_DOUBLE_ESCAPE_START`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]=`SCRIPT_DATA_DOUBLE_ESCAPED`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]=`SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]=`SCRIPT_DATA_DOUBLE_ESCAPE_END`,e[e.BEFORE_ATTRIBUTE_NAME=31]=`BEFORE_ATTRIBUTE_NAME`,e[e.ATTRIBUTE_NAME=32]=`ATTRIBUTE_NAME`,e[e.AFTER_ATTRIBUTE_NAME=33]=`AFTER_ATTRIBUTE_NAME`,e[e.BEFORE_ATTRIBUTE_VALUE=34]=`BEFORE_ATTRIBUTE_VALUE`,e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]=`ATTRIBUTE_VALUE_DOUBLE_QUOTED`,e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]=`ATTRIBUTE_VALUE_SINGLE_QUOTED`,e[e.ATTRIBUTE_VALUE_UNQUOTED=37]=`ATTRIBUTE_VALUE_UNQUOTED`,e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]=`AFTER_ATTRIBUTE_VALUE_QUOTED`,e[e.SELF_CLOSING_START_TAG=39]=`SELF_CLOSING_START_TAG`,e[e.BOGUS_COMMENT=40]=`BOGUS_COMMENT`,e[e.MARKUP_DECLARATION_OPEN=41]=`MARKUP_DECLARATION_OPEN`,e[e.COMMENT_START=42]=`COMMENT_START`,e[e.COMMENT_START_DASH=43]=`COMMENT_START_DASH`,e[e.COMMENT=44]=`COMMENT`,e[e.COMMENT_LESS_THAN_SIGN=45]=`COMMENT_LESS_THAN_SIGN`,e[e.COMMENT_LESS_THAN_SIGN_BANG=46]=`COMMENT_LESS_THAN_SIGN_BANG`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]=`COMMENT_LESS_THAN_SIGN_BANG_DASH`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]=`COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH`,e[e.COMMENT_END_DASH=49]=`COMMENT_END_DASH`,e[e.COMMENT_END=50]=`COMMENT_END`,e[e.COMMENT_END_BANG=51]=`COMMENT_END_BANG`,e[e.DOCTYPE=52]=`DOCTYPE`,e[e.BEFORE_DOCTYPE_NAME=53]=`BEFORE_DOCTYPE_NAME`,e[e.DOCTYPE_NAME=54]=`DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_NAME=55]=`AFTER_DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]=`AFTER_DOCTYPE_PUBLIC_KEYWORD`,e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]=`BEFORE_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]=`DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]=`DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]=`AFTER_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]=`BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS`,e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]=`AFTER_DOCTYPE_SYSTEM_KEYWORD`,e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]=`BEFORE_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]=`DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]=`DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]=`AFTER_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.BOGUS_DOCTYPE=67]=`BOGUS_DOCTYPE`,e[e.CDATA_SECTION=68]=`CDATA_SECTION`,e[e.CDATA_SECTION_BRACKET=69]=`CDATA_SECTION_BRACKET`,e[e.CDATA_SECTION_END=70]=`CDATA_SECTION_END`,e[e.CHARACTER_REFERENCE=71]=`CHARACTER_REFERENCE`,e[e.AMBIGUOUS_AMPERSAND=72]=`AMBIGUOUS_AMPERSAND`})(Q||={});var kY={DATA:Q.DATA,RCDATA:Q.RCDATA,RAWTEXT:Q.RAWTEXT,SCRIPT_DATA:Q.SCRIPT_DATA,PLAINTEXT:Q.PLAINTEXT,CDATA_SECTION:Q.CDATA_SECTION};function AY(e){return e>=K.DIGIT_0&&e<=K.DIGIT_9}function jY(e){return e>=K.LATIN_CAPITAL_A&&e<=K.LATIN_CAPITAL_Z}function MY(e){return e>=K.LATIN_SMALL_A&&e<=K.LATIN_SMALL_Z}function NY(e){return MY(e)||jY(e)}function PY(e){return NY(e)||AY(e)}function FY(e){return e+32}function IY(e){return e===K.SPACE||e===K.LINE_FEED||e===K.TABULATION||e===K.FORM_FEED}function LY(e){return IY(e)||e===K.SOLIDUS||e===K.GREATER_THAN_SIGN}function RY(e){return e===K.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:eY(e)?q.surrogateCharacterReference:iY(e)?q.noncharacterCharacterReference:rY(e)||e===K.CARRIAGE_RETURN?q.controlCharacterReference:null}var zY=class{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=Q.DATA,this.returnState=Q.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:``,value:``},this.preprocessor=new oY(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new xY(lY,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=RY(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;(r=(n=this.handler).onParseError)==null||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||e?.())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||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):!1}_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):!1}_createStartTagToken(){this.currentToken={type:sY.START_TAG,tagName:``,tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:sY.END_TAG,tagName:``,tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:sY.COMMENT,data:``,location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:sY.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;let t=this.currentToken;if(cY(t,this.currentAttr.name)===null){if(t.attrs.push(this.currentAttr),t.location&&this.currentLocation){let n=(e=t.location).attrs??(e.attrs=Object.create(null));n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(q.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=EY(e.tagName),e.type===sY.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(q.endTagWithAttributes),e.selfClosing&&this._err(q.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 sY.CHARACTER:this.handler.onCh
vendor: 6,202 bytes, line 538
538aracter(this.currentCharacterToken);break;case sY.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case sY.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}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:sY.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=IY(e)?sY.WHITESPACE_CHARACTER:e===K.NULL?sY.NULL_CHARACTER:sY.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(sY.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=Q.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?bY.Attribute:bY.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Q.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Q.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Q.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Q.DATA:this._stateData(e);break;case Q.RCDATA:this._stateRcdata(e);break;case Q.RAWTEXT:this._stateRawtext(e);break;case Q.SCRIPT_DATA:this._stateScriptData(e);break;case Q.PLAINTEXT:this._statePlaintext(e);break;case Q.TAG_OPEN:this._stateTagOpen(e);break;case Q.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Q.TAG_NAME:this._stateTagName(e);break;case Q.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Q.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Q.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Q.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Q.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Q.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Q.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Q.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Q.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Q.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Q.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Q.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Q.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Q.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Q.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Q.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Q.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Q.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Q.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Q.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Q.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Q.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Q.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Q.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Q.BOGUS_COMMENT:this._stateBogusComment(e);break;case Q.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Q.COMMENT_START:this._stateCommentStart(e);break;case Q.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Q.COMMENT:this._stateComment(e);break;case Q.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Q.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Q.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Q.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Q.COMMENT_END:this._stateCommentEnd(e);break;case Q.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Q.DOCTYPE:this._stateDoctype(e);break;case Q.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Q.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Q.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Q.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Q.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctype
vendor: 24,191 bytes, line 538
538SystemIdentifier(e);break;case Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Q.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Q.CDATA_SECTION:this._stateCdataSection(e);break;case Q.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Q.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Q.CHARACTER_REFERENCE:this._stateCharacterReference();break;case Q.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error(`Unknown state`)}}_stateData(e){switch(e){case K.LESS_THAN_SIGN:this.state=Q.TAG_OPEN;break;case K.AMPERSAND:this._startCharacterReference();break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitCodePoint(e);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case K.AMPERSAND:this._startCharacterReference();break;case K.LESS_THAN_SIGN:this.state=Q.RCDATA_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case K.LESS_THAN_SIGN:this.state=Q.RAWTEXT_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(NY(e))this._createStartTagToken(),this.state=Q.TAG_NAME,this._stateTagName(e);else switch(e){case K.EXCLAMATION_MARK:this.state=Q.MARKUP_DECLARATION_OPEN;break;case K.SOLIDUS:this.state=Q.END_TAG_OPEN;break;case K.QUESTION_MARK:this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Q.BOGUS_COMMENT,this._stateBogusComment(e);break;case K.EOF:this._err(q.eofBeforeTagName),this._emitChars(`<`),this._emitEOFToken();break;default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars(`<`),this.state=Q.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(NY(e))this._createEndTagToken(),this.state=Q.TAG_NAME,this._stateTagName(e);else switch(e){case K.GREATER_THAN_SIGN:this._err(q.missingEndTagName),this.state=Q.DATA;break;case K.EOF:this._err(q.eofBeforeTagName),this._emitChars(`</`),this._emitEOFToken();break;default:this._err(q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Q.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BEFORE_ATTRIBUTE_NAME;break;case K.SOLIDUS:this.state=Q.SELF_CLOSING_START_TAG;break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentTagToken();break;case K.NULL:this._err(q.unexpectedNullCharacter),t.tagName+=`�`;break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(jY(e)?FY(e):e)}}_stateRcdataLessThanSign(e){e===K.SOLIDUS?this.state=Q.RCDATA_END_TAG_OPEN:(this._emitChars(`<`),this.state=Q.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){NY(e)?(this.state=Q.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars(`</`),this.state=Q.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Q.BEFORE_ATTRIBUTE_NAME,!1;case K.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Q.SELF_CLOSING_START_TAG,!1;case K.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Q.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Q.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===K.SOLIDUS?this.state=Q.RAWTEXT_END_TAG_OPEN:(this._emitChars(`<`),this.state=Q.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){NY(e)?(this.state=Q.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars(`</`),this.state=Q.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Q.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case K.SOLIDUS:this.state=Q.SCRIPT_DATA_END_TAG_OPEN;break;case K.EXCLAMATION_MARK:this.state=Q.SCRIPT_DATA_ESCAPE_START,this._emitChars(`<!`);break;default:this._emitChars(`<`),this.state=Q.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){NY(e)?(this.state=Q.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars(`</`),this.state=Q.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Q.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===K.HYPHEN_MINUS?(this.state=Q.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars(`-`)):(this.state=Q.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===K.HYPHEN_MINUS?(this.state=Q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`)):(this.state=Q.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.SCRIPT_DATA_ESCAPED_DASH,this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Q.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case K.HYPHEN_MINUS:this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case K.GREATER_THAN_SIGN:this.state=Q.SCRIPT_DATA,this._emitChars(`>`);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Q.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===K.SOLIDUS?this.state=Q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:NY(e)?(this._emitChars(`<`),this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars(`<`),this.state=Q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){NY(e)?(this.state=Q.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars(`</`),this.state=Q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith($J.SCRIPT,!1)&&LY(this.preprocessor.peek($J.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<$J.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case K.HYPHEN_MINUS:this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case K.GREATER_THAN_SIGN:this.state=Q.SCRIPT_DATA,this._emitChars(`>`);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===K.SOLIDUS?(this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars(`/`)):(this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith($J.SCRIPT,!1)&&LY(this.preprocessor.peek($J.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<$J.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=Q.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.SOLIDUS:case K.GREATER_THAN_SIGN:case K.EOF:this.state=Q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case K.EQUALS_SIGN:this._err(q.unexpectedEqualsSignBeforeAttributeName),this._createAttr(`=`),this.state=Q.ATTRIBUTE_NAME;break;default:this._createAttr(``),this.state=Q.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:case K.SOLIDUS:case K.GREATER_THAN_SIGN:case K.EOF:this._leaveAttrName(),this.state=Q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case K.EQUALS_SIGN:this._leaveAttrName(),this.state=Q.BEFORE_ATTRIBUTE_VALUE;break;case K.QUOTATION_MARK:case K.APOSTROPHE:case K.LESS_THAN_SIGN:this._err(q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.name+=`�`;break;default:this.currentAttr.name+=String.fromCodePoint(jY(e)?FY(e):e)}}_stateAfterAttributeName(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.SOLIDUS:this.state=Q.SELF_CLOSING_START_TAG;break;case K.EQUALS_SIGN:this.state=Q.BEFORE_ATTRIBUTE_VALUE;break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentTagToken();break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this._createAttr(``),this.state=Q.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.QUOTATION_MARK:this.state=Q.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case K.APOSTROPHE:this.state=Q.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingAttributeValue),this.state=Q.DATA,this.emitCurrentTagToken();break;default:this.state=Q.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case K.QUOTATION_MARK:this.state=Q.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case K.AMPERSAND:this._startCharacterReference();break;case K.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case K.APOSTROPHE:this.state=Q.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case K.AMPERSAND:this._startCharacterReference();break;case K.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this._leaveAttrValue(),this.state=Q.BEFORE_ATTRIBUTE_NAME;break;case K.AMPERSAND:this._startCharacterReference();break;case K.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Q.DATA,this.emitCurrentTagToken();break;case K.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case K.QUOTATION_MARK:case K.APOSTROPHE:case K.LESS_THAN_SIGN:case K.EQUALS_SIGN:case K.GRAVE_ACCENT:this._err(q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this._leaveAttrValue(),this.state=Q.BEFORE_ATTRIBUTE_NAME;break;case K.SOLIDUS:this._leaveAttrValue(),this.state=Q.SELF_CLOSING_START_TAG;break;case K.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Q.DATA,this.emitCurrentTagToken();break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this._err(q.missingWhitespaceBetweenAttributes),this.state=Q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case K.GREATER_THAN_SIGN:{let e=this.currentToken;e.selfClosing=!0,this.state=Q.DATA,this.emitCurrentTagToken();break}case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this._err(q.unexpectedSolidusInTag),this.state=Q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentComment(t);break;case K.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case K.NULL:this._err(q.unexpectedNullCharacter),t.data+=`�`;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch($J.DASH_DASH,!0)?(this._createCommentToken($J.DASH_DASH.length+1),this.state=Q.COMMENT_START):this._consumeSequenceIfMatch($J.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation($J.DOCTYPE.length+1),this.state=Q.DOCTYPE):this._consumeSequenceIfMatch($J.CDATA_START,!0)?this.inForeignNode?this.state=Q.CDATA_SECTION:(this._err(q.cdataInHtmlContent),this._createCommentToken($J.CDATA_START.length+1),this.currentToken.data=`[CDATA[`,this.state=Q.BOGUS_COMMENT):this._ensureHibernation()||(this._err(q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Q.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.COMMENT_START_DASH;break;case K.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=Q.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=Q.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case K.HYPHEN_MINUS:this.state=Q.COMMENT_END;break;case K.GREATER_THAN_SIGN:this._err(q.abruptClosingOfEmptyComment),this.state=Q.DATA,this.emitCurrentComment(t);break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=Q.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case K.HYPHEN_MINUS:this.state=Q.COMMENT_END_DASH;break;case K.LESS_THAN_SIGN:t.data+=`<`,this.state=Q.COMMENT_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.data+=`�`;break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case K.EXCLAMATION_MARK:t.data+=`!`,this.state=Q.COMMENT_LESS_THAN_SIGN_BANG;break;case K.LESS_THAN_SIGN:t.data+=`<`;break;default:this.state=Q.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===K.HYPHEN_MINUS?this.state=Q.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Q.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===K.HYPHEN_MINUS?this.state=Q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Q.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==K.GREATER_THAN_SIGN&&e!==K.EOF&&this._err(q.nestedComment),this.state=Q.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case K.HYPHEN_MINUS:this.state=Q.COMMENT_END;break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=Q.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentComment(t);break;case K.EXCLAMATION_MARK:this.state=Q.COMMENT_END_BANG;break;case K.HYPHEN_MINUS:t.data+=`-`;break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--`,this.state=Q.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case K.HYPHEN_MINUS:t.data+=`--!`,this.state=Q.COMMENT_END_DASH;break;case K.GREATER_THAN_SIGN:this._err(q.incorrectlyClosedComment),this.state=Q.DATA,this.emitCurrentComment(t);break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--!`,this.state=Q.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BEFORE_DOCTYPE_NAME;break;case K.GREATER_THAN_SIGN:this.state=Q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case K.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBeforeDoctypeName),this.state=Q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(jY(e))this._createDoctypeToken(String.fromCharCode(FY(e))),this.state=Q.DOCTYPE_NAME;else switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.NULL:this._err(q.unexpectedNullCharacter),this._createDoctypeToken(`�`),this.state=Q.DOCTYPE_NAME;break;case K.GREATER_THAN_SIGN:{this._err(q.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Q.DATA;break}case K.EOF:{this._err(q.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=Q.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.AFTER_DOCTYPE_NAME;break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.NULL:this._err(q.unexpectedNullCharacter),t.name+=`�`;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(jY(e)?FY(e):e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch($J.PUBLIC,!1)?this.state=Q.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch($J.SYSTEM,!1)?this.state=Q.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(q.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case K.QUOTATION_MARK:this._err(q.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=Q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:this._err(q.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=Q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.QUOTATION_MARK:t.publicId=``,this.state=Q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:t.publicId=``,this.state=Q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case K.QUOTATION_MARK:this.state=Q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.publicId+=`�`;break;case K.GREATER_THAN_SIGN:this._err(q.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.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 K.APOSTROPHE:this.state=Q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.publicId+=`�`;break;case K.GREATER_THAN_SIGN:this._err(q.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.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 K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.QUOTATION_MARK:this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;
vendor: 11,515 bytes, line 538
538default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.QUOTATION_MARK:t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case K.QUOTATION_MARK:this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.QUOTATION_MARK:t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case K.QUOTATION_MARK:this.state=Q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.systemId+=`�`;break;case K.GREATER_THAN_SIGN:this._err(q.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.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 K.APOSTROPHE:this.state=Q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.systemId+=`�`;break;case K.GREATER_THAN_SIGN:this._err(q.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.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 K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case K.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.NULL:this._err(q.unexpectedNullCharacter);break;case K.EOF:this.emitCurrentDoctype(t),this._emitEOFToken();break;default:}}_stateCdataSection(e){switch(e){case K.RIGHT_SQUARE_BRACKET:this.state=Q.CDATA_SECTION_BRACKET;break;case K.EOF:this._err(q.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===K.RIGHT_SQUARE_BRACKET?this.state=Q.CDATA_SECTION_END:(this._emitChars(`]`),this.state=Q.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case K.GREATER_THAN_SIGN:this.state=Q.DATA;break;case K.RIGHT_SQUARE_BRACKET:this._emitChars(`]`);break;default:this._emitChars(`]]`),this.state=Q.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}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(K.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&PY(this.preprocessor.peek(1))?Q.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){PY(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===K.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}},BY=new Set([X.DD,X.DT,X.LI,X.OPTGROUP,X.OPTION,X.P,X.RB,X.RP,X.RT,X.RTC]),VY=new Set([...BY,X.CAPTION,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]),HY=new Set([X.APPLET,X.CAPTION,X.HTML,X.MARQUEE,X.OBJECT,X.TABLE,X.TD,X.TEMPLATE,X.TH]),UY=new Set([...HY,X.OL,X.UL]),WY=new Set([...HY,X.BUTTON]),GY=new Set([X.ANNOTATION_XML,X.MI,X.MN,X.MO,X.MS,X.MTEXT]),KY=new Set([X.DESC,X.FOREIGN_OBJECT,X.TITLE]),qY=new Set([X.TR,X.TEMPLATE,X.HTML]),JY=new Set([X.TBODY,X.TFOOT,X.THEAD,X.TEMPLATE,X.HTML]),YY=new Set([X.TABLE,X.TEMPLATE,X.HTML]),XY=new Set([X.TD,X.TH]),ZY=class{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=X.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===X.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===J.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&&this.currentTagId!==void 0&&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])!==J.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&--this.tmplCount,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(OY,J.HTML)}popUntilTableCellPopped(){this.popUntilPopped(XY,J.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(YY,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(JY,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(qY,J.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]===X.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 this.stackTop===0&&this.tagIDs[0]===X.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 J.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case J.SVG:if(KY.has(r))return!1;break;case J.MATHML:if(GY.has(r))return!1;break}}return!0}hasInScope(e){return this.hasInDynamicScope(e,HY)}hasInListItemScope(e){return this.hasInDynamicScope(e,UY)}hasInButtonScope(e){return this.hasInDynamicScope(e,WY)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case J.HTML:if(OY.has(t))return!0;if(HY.has(t))return!1;break;case J.SVG:if(KY.has(t))return!1;break;case J.MATHML:if(GY.has(t))return!1;break}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case e:return!0;case X.TABLE:case X.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===J.HTML)switch(this.tagIDs[e]){case X.TBODY:case X.THEAD:case X.TFOOT:return!0;case X.TABLE:case X.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case e:return!0;case X.OPTION:case X.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&BY.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&VY.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&VY.has(this.currentTagId);)this.pop()}},QY=3,$Y;(function(e){e[e.Marker=0]=`Marker`,e[e.Element=1]=`Element`})($Y||={});var eX={type:$Y.Marker},tX=class{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===$Y.Marker)break;let{element:o}=t;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){let t=this.treeAdapter.getAttrList(o);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<QY)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<QY)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=>
vendor: 12,389 bytes, line 538
538r.get(e.name)===e.value)&&(i+=1,i>=QY&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(eX)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:$Y.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:$Y.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t!==-1&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(eX);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===$Y.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===$Y.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===$Y.Element&&t.element===e)}},nX={createDocument(){return{nodeName:`#document`,mode:wY.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:`#document-fragment`,childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:`#comment`,data:e,parentNode:null}},createTextNode(e){return{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){return e.content},setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>e.nodeName===`#documentType`);if(i)i.name=t,i.publicId=n,i.systemId=r;else{let i={nodeName:`#documentType`,name:t,publicId:n,systemId:r,parentNode:null};nX.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return 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(nX.isTextNode(n)){n.value+=t;return}}nX.appendChild(e,nX.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&nX.isTextNode(r)?r.value+=t:nX.insertBefore(e,nX.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){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName===`#text`},isCommentNode(e){return e.nodeName===`#comment`},isDocumentTypeNode(e){return e.nodeName===`#documentType`},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,`tagName`)},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},rX=`html`,iX=`about:legacy-compat`,aX=`http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd`,oX=`+//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//`.split(`,`),sX=[...oX,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`],cX=new Set([`-//w3o//dtd w3 html strict 3.0//en//`,`-/w3c/dtd html 4.0 transitional/en`,`html`]),lX=[`-//w3c//dtd xhtml 1.0 frameset//`,`-//w3c//dtd xhtml 1.0 transitional//`],uX=[...lX,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`];function dX(e,t){return t.some(t=>e.startsWith(t))}function fX(e){return e.name===rX&&e.publicId===null&&(e.systemId===null||e.systemId===iX)}function pX(e){if(e.name!==rX)return wY.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===aX)return wY.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),cX.has(n))return wY.QUIRKS;let e=t===null?sX:oX;if(dX(n,e))return wY.QUIRKS;if(e=t===null?lX:uX,dX(n,e))return wY.LIMITED_QUIRKS}return wY.NO_QUIRKS}var mX={TEXT_HTML:`text/html`,APPLICATION_XML:`application/xhtml+xml`},hX=`definitionurl`,gX=`definitionURL`,_X=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`.split(`.`).map(e=>[e.toLowerCase(),e])),vX=new Map([[`xlink:actuate`,{prefix:`xlink`,name:`actuate`,namespace:J.XLINK}],[`xlink:arcrole`,{prefix:`xlink`,name:`arcrole`,namespace:J.XLINK}],[`xlink:href`,{prefix:`xlink`,name:`href`,namespace:J.XLINK}],[`xlink:role`,{prefix:`xlink`,name:`role`,namespace:J.XLINK}],[`xlink:show`,{prefix:`xlink`,name:`show`,namespace:J.XLINK}],[`xlink:title`,{prefix:`xlink`,name:`title`,namespace:J.XLINK}],[`xlink:type`,{prefix:`xlink`,name:`type`,namespace:J.XLINK}],[`xml:lang`,{prefix:`xml`,name:`lang`,namespace:J.XML}],[`xml:space`,{prefix:`xml`,name:`space`,namespace:J.XML}],[`xmlns`,{prefix:``,name:`xmlns`,namespace:J.XMLNS}],[`xmlns:xlink`,{prefix:`xmlns`,name:`xlink`,namespace:J.XMLNS}]]),yX=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`.split(`.`).map(e=>[e.toLowerCase(),e])),bX=new Set([X.B,X.BIG,X.BLOCKQUOTE,X.BODY,X.BR,X.CENTER,X.CODE,X.DD,X.DIV,X.DL,X.DT,X.EM,X.EMBED,X.H1,X.H2,X.H3,X.H4,X.H5,X.H6,X.HEAD,X.HR,X.I,X.IMG,X.LI,X.LISTING,X.MENU,X.META,X.NOBR,X.OL,X.P,X.PRE,X.RUBY,X.S,X.SMALL,X.SPAN,X.STRONG,X.STRIKE,X.SUB,X.SUP,X.TABLE,X.TT,X.U,X.UL,X.VAR]);function xX(e){let t=e.tagID;return t===X.FONT&&e.attrs.some(({name:e})=>e===CY.COLOR||e===CY.SIZE||e===CY.FACE)||bX.has(t)}function SX(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===hX){e.attrs[t].name=gX;break}}function CX(e){for(let t=0;t<e.attrs.length;t++){let n=_X.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function wX(e){for(let t=0;t<e.attrs.length;t++){let n=vX.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function TX(e){let t=yX.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=EY(e.tagName))}function EX(e,t){return t===J.MATHML&&(e===X.MI||e===X.MO||e===X.MN||e===X.MS||e===X.MTEXT)}function DX(e,t,n){if(t===J.MATHML&&e===X.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===CY.ENCODING){let t=n[e].value.toLowerCase();return t===mX.TEXT_HTML||t===mX.APPLICATION_XML}}return t===J.SVG&&(e===X.FOREIGN_OBJECT||e===X.DESC||e===X.TITLE)}function OX(e,t,n,r){return(!r||r===J.HTML)&&DX(e,t,n)||(!r||r===J.MATHML)&&EX(e,t)}var kX=`hidden`,AX=8,jX=3,$;(function(e){e[e.INITIAL=0]=`INITIAL`,e[e.BEFORE_HTML=1]=`BEFORE_HTML`,e[e.BEFORE_HEAD=2]=`BEFORE_HEAD`,e[e.IN_HEAD=3]=`IN_HEAD`,e[e.IN_HEAD_NO_SCRIPT=4]=`IN_HEAD_NO_SCRIPT`,e[e.AFTER_HEAD=5]=`AFTER_HEAD`,e[e.IN_BODY=6]=`IN_BODY`,e[e.TEXT=7]=`TEXT`,e[e.IN_TABLE=8]=`IN_TABLE`,e[e.IN_TABLE_TEXT=9]=`IN_TABLE_TEXT`,e[e.IN_CAPTION=10]=`IN_CAPTION`,e[e.IN_COLUMN_GROUP=11]=`IN_COLUMN_GROUP`,e[e.IN_TABLE_BODY=12]=`IN_TABLE_BODY`,e[e.IN_ROW=13]=`IN_ROW`,e[e.IN_CELL=14]=`IN_CELL`,e[e.IN_SELECT=15]=`IN_SELECT`,e[e.IN_SELECT_IN_TABLE=16]=`IN_SELECT_IN_TABLE`,e[e.IN_TEMPLATE=17]=`IN_TEMPLATE`,e[e.AFTER_BODY=18]=`AFTER_BODY`,e[e.IN_FRAMESET=19]=`IN_FRAMESET`,e[e.AFTER_FRAMESET=20]=`AFTER_FRAMESET`,e[e.AFTER_AFTER_BODY=21]=`AFTER_AFTER_BODY`,e[e.AFTER_AFTER_FRAMESET=22]=`AFTER_AFTER_FRAMESET`})($||={});var MX={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},NX=new Set([X.TABLE,X.TBODY,X.TFOOT,X.THEAD,X.TR]),PX={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:nX,onParseError:null},FX=class{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=$.INITIAL,this.originalInsertionMode=$.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={...PX,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new zY(this.options,this),this.activeFormattingElements=new tX(this.treeAdapter),this.fragmentContextID=n?EY(this.treeAdapter.getTagName(n)):X.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new ZY(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={...PX,...t};e??=n.treeAdapter.createElement(Y.TEMPLATE,J.HTML,[]);let r=n.treeAdapter.createElement(`documentmock`,J.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===X.TEMPLATE&&i.tmplInsertionModeStack.unshift($.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){if(!this.onParseError)return;let r=e.location??MX,i={code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:n?r.startLine:r.endLine,endCol:n?r.startCol:r.endCol,endOffset:n?r.startOffset:r.endOffset};this.onParseError(i)}
vendor: 21,763 bytes, line 538
538onItemPush(e,t,n){var r,i;(i=(r=this.treeAdapter).onItemPush)==null||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),(r=(n=this.treeAdapter).onItemPop)==null||r.call(n,e,this.openElements.current),t){let e,t;this.openElements.stackTop===0&&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)===J.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,J.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=$.TEXT}switchToPlaintextParsing(){this.insertionMode=$.TEXT,this.originalInsertionMode=$.IN_BODY,this.tokenizer.state=kY.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Y.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case X.TITLE:case X.TEXTAREA:this.tokenizer.state=kY.RCDATA;break;case X.STYLE:case X.XMP:case X.IFRAME:case X.NOEMBED:case X.NOFRAMES:case X.NOSCRIPT:this.tokenizer.state=kY.RAWTEXT;break;case X.SCRIPT:this.tokenizer.state=kY.SCRIPT_DATA;break;case X.PLAINTEXT:this.tokenizer.state=kY.PLAINTEXT;break;default:}}_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(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,J.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,J.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(Y.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,X.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=r[(n?r.lastIndexOf(n):r.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,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===sY.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){if(!this.currentNotInHTML)return!1;let t,n;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,e.tagID===X.SVG&&this.treeAdapter.getTagName(t)===Y.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===J.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===X.MGLYPH||e.tagID===X.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,J.HTML)}_processToken(e){switch(e.type){case sY.CHARACTER:this.onCharacter(e);break;case sY.NULL_CHARACTER:this.onNullCharacter(e);break;case sY.COMMENT:this.onComment(e);break;case sY.DOCTYPE:this.onDoctype(e);break;case sY.START_TAG:this._processStartTag(e);break;case sY.END_TAG:this.onEndTag(e);break;case sY.EOF:this.onEof(e);break;case sY.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e);break}}_isIntegrationPoint(e,t,n){return OX(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===$Y.Marker||this.openElements.contains(e.element)),n=t===-1?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=$.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(X.P),this.openElements.popUntilTagNamePopped(X.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case X.TR:this.insertionMode=$.IN_ROW;return;case X.TBODY:case X.THEAD:case X.TFOOT:this.insertionMode=$.IN_TABLE_BODY;return;case X.CAPTION:this.insertionMode=$.IN_CAPTION;return;case X.COLGROUP:this.insertionMode=$.IN_COLUMN_GROUP;return;case X.TABLE:this.insertionMode=$.IN_TABLE;return;case X.BODY:this.insertionMode=$.IN_BODY;return;case X.FRAMESET:this.insertionMode=$.IN_FRAMESET;return;case X.SELECT:this._resetInsertionModeForSelect(e);return;case X.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case X.HTML:this.insertionMode=this.headElement?$.AFTER_HEAD:$.BEFORE_HEAD;return;case X.TD:case X.TH:if(e>0){this.insertionMode=$.IN_CELL;return}break;case X.HEAD:if(e>0){this.insertionMode=$.IN_HEAD;return}break}this.insertionMode=$.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===X.TEMPLATE)break;if(e===X.TABLE){this.insertionMode=$.IN_SELECT_IN_TABLE;return}}this.insertionMode=$.IN_SELECT}_isElementCausesFosterParenting(e){return NX.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&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 X.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case X.TABLE:{let n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}default:}}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 DY[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){$Q(this,e);return}switch(this.insertionMode){case $.INITIAL:JX(this,e);break;case $.BEFORE_HTML:ZX(this,e);break;case $.BEFORE_HEAD:eZ(this,e);break;case $.IN_HEAD:iZ(this,e);break;case $.IN_HEAD_NO_SCRIPT:sZ(this,e);break;case $.AFTER_HEAD:uZ(this,e);break;case $.IN_BODY:case $.IN_CAPTION:case $.IN_CELL:case $.IN_TEMPLATE:pZ(this,e);break;case $.TEXT:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:cQ(this,e);break;case $.IN_TABLE_TEXT:xQ(this,e);break;case $.IN_COLUMN_GROUP:OQ(this,e);break;case $.AFTER_BODY:WQ(this,e);break;case $.AFTER_AFTER_BODY:XQ(this,e);break;default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){QQ(this,e);return}switch(this.insertionMode){case $.INITIAL:JX(this,e);break;case $.BEFORE_HTML:ZX(this,e);break;case $.BEFORE_HEAD:eZ(this,e);break;case $.IN_HEAD:iZ(this,e);break;case $.IN_HEAD_NO_SCRIPT:sZ(this,e);break;case $.AFTER_HEAD:uZ(this,e);break;case $.TEXT:this._insertCharacters(e);break;case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:cQ(this,e);break;case $.IN_COLUMN_GROUP:OQ(this,e);break;case $.AFTER_BODY:WQ(this,e);break;case $.AFTER_AFTER_BODY:XQ(this,e);break;default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){UX(this,e);return}switch(this.insertionMode){case $.INITIAL:case $.BEFORE_HTML:case $.BEFORE_HEAD:case $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:case $.IN_BODY:case $.IN_TABLE:case $.IN_CAPTION:case $.IN_COLUMN_GROUP:case $.IN_TABLE_BODY:case $.IN_ROW:case $.IN_CELL:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:case $.IN_TEMPLATE:case $.IN_FRAMESET:case $.AFTER_FRAMESET:UX(this,e);break;case $.IN_TABLE_TEXT:SQ(this,e);break;case $.AFTER_BODY:WX(this,e);break;case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:GX(this,e);break;default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case $.INITIAL:qX(this,e);break;case $.BEFORE_HEAD:case $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:this._err(e,q.misplacedDoctype);break;case $.IN_TABLE_TEXT:SQ(this,e);break;default:}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?t$(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case $.INITIAL:JX(this,e);break;case $.BEFORE_HTML:YX(this,e);break;case $.BEFORE_HEAD:QX(this,e);break;case $.IN_HEAD:tZ(this,e);break;case $.IN_HEAD_NO_SCRIPT:aZ(this,e);break;case $.AFTER_HEAD:cZ(this,e);break;case $.IN_BODY:KZ(this,e);break;case $.IN_TABLE:_Q(this,e);break;case $.IN_TABLE_TEXT:SQ(this,e);break;case $.IN_CAPTION:wQ(this,e);break;case $.IN_COLUMN_GROUP:EQ(this,e);break;case $.IN_TABLE_BODY:kQ(this,e);break;case $.IN_ROW:jQ(this,e);break;case $.IN_CELL:NQ(this,e);break;case $.IN_SELECT:FQ(this,e);break;case $.IN_SELECT_IN_TABLE:LQ(this,e);break;case $.IN_TEMPLATE:zQ(this,e);break;case $.AFTER_BODY:HQ(this,e);break;case $.IN_FRAMESET:GQ(this,e);break;case $.AFTER_FRAMESET:qQ(this,e);break;case $.AFTER_AFTER_BODY:YQ(this,e);break;case $.AFTER_AFTER_FRAMESET:ZQ(this,e);break;default:}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?n$(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case $.INITIAL:JX(this,e);break;case $.BEFORE_HTML:XX(this,e);break;case $.BEFORE_HEAD:$X(this,e);break;case $.IN_HEAD:nZ(this,e);break;case $.IN_HEAD_NO_SCRIPT:oZ(this,e);break;case $.AFTER_HEAD:lZ(this,e);break;case $.IN_BODY:iQ(this,e);break;case $.TEXT:oQ(this,e);break;case $.IN_TABLE:vQ(this,e);break;case $.IN_TABLE_TEXT:SQ(this,e);break;case $.IN_CAPTION:TQ(this,e);break;case $.IN_COLUMN_GROUP:DQ(this,e);break;case $.IN_TABLE_BODY:AQ(this,e);break;case $.IN_ROW:MQ(this,e);break;case $.IN_CELL:PQ(this,e);break;case $.IN_SELECT:IQ(this,e);break;case $.IN_SELECT_IN_TABLE:RQ(this,e);break;case $.IN_TEMPLATE:BQ(this,e);break;case $.AFTER_BODY:UQ(this,e);break;case $.IN_FRAMESET:KQ(this,e);break;case $.AFTER_FRAMESET:JQ(this,e);break;case $.AFTER_AFTER_BODY:XQ(this,e);break;default:}}onEof(e){switch(this.insertionMode){case $.INITIAL:JX(this,e);break;case $.BEFORE_HTML:ZX(this,e);break;case $.BEFORE_HEAD:eZ(this,e);break;case $.IN_HEAD:iZ(this,e);break;case $.IN_HEAD_NO_SCRIPT:sZ(this,e);break;case $.AFTER_HEAD:uZ(this,e);break;case $.IN_BODY:case $.IN_TABLE:case $.IN_CAPTION:case $.IN_COLUMN_GROUP:case $.IN_TABLE_BODY:case $.IN_ROW:case $.IN_CELL:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:aQ(this,e);break;case $.TEXT:sQ(this,e);break;case $.IN_TABLE_TEXT:SQ(this,e);break;case $.IN_TEMPLATE:VQ(this,e);break;case $.AFTER_BODY:case $.IN_FRAMESET:case $.AFTER_FRAMESET:case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:KX(this,e);break;default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===K.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:case $.TEXT:case $.IN_COLUMN_GROUP:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:case $.IN_FRAMESET:case $.AFTER_FRAMESET:this._insertCharacters(e);break;case $.IN_BODY:case $.IN_CAPTION:case $.IN_CELL:case $.IN_TEMPLATE:case $.AFTER_BODY:case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:fZ(this,e);break;case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:cQ(this,e);break;case $.IN_TABLE_TEXT:bQ(this,e);break;default:}}};function IX(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):rQ(e,t),n}function LX(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}function RX(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=jX;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=zX(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function zX(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}function BX(e,t,n){let r=EY(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===X.TEMPLATE&&i===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function VX(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)}function HX(e,t){for(let n=0;n<AX;n++){let n=IX(e,t);if(!n)break;let r=LX(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=RX(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&BX(e,a,i),VX(e,r,n)}}function UX(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function WX(e,t){e._appendCommentNode(t,e.openElements.items[0])}function GX(e,t){e._appendCommentNode(t,e.document)}function KX(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;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 qX(e,t){e._setDocumentType(t);let n=t.forceQuirks?wY.QUIRKS:pX(t);fX(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=$.BEFORE_HTML}function JX(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,wY.QUIRKS),e.insertionMode=$.BEFORE_HTML,e._processToken(t)}function YX(e,t){t.tagID===X.HTML?(e._insertElement(t,J.HTML),e.insertionMode=$.BEFORE_HEAD):ZX(e,t)}function XX(e,t){let n=t.tagID;(n===X.HTML||n===X.HEAD||n===X.BODY||n===X.BR)&&ZX(e,t)}function ZX(e,t){e._insertFakeRootElement(),e.insertionMode=$.BEFORE_HEAD,e._processToken(t)}function QX(e,t){switch(t.tagID){case X.HTML:KZ(e,t);break;case X.HEAD:e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=$.IN_HEAD;break;default:eZ(e,t)}}function $X(e,t){let n=t.tagID;n===X.HEAD||n===X.BODY||n===X.HTML||n===X.BR?eZ(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function eZ(e,t){e._insertFakeElement(Y.HEAD,X.HEAD),e.headElement=e.openElements.current,e.insertionMode=$.IN_HEAD,e._processToken(t)}function tZ(e,t){switch(t.tagID){case X.HTML:KZ(e,t);break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.TITLE:e._switchToTextParsing(t,kY.RCDATA);break;case X.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,kY.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=$.IN_HEAD_NO_SCRIPT);break;case X.NOFRAMES:case X.STYLE:e._switchToTextParsing(t,kY.RAWTEXT);break;case X.SCRIPT:e._switchToTextParsing(t,kY.SCRIPT_DATA);break;case X.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=$.IN_TEMPLATE,e.tmplInsertionModeStack.unshift($.IN_TEMPLATE);break;case X.HEAD:e._err(t,q.misplacedStartTagForHeadElement);break;default:iZ(e,t)}}function nZ(e,t){switch(t.tagID){case X.HEAD:e.openElements.pop(),e.insertionMode=$.AFTER_HEAD;break;case X.BODY:case X.BR:case X.HTML:iZ(e,t);break;case X.TEMPLATE:rZ(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function rZ(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==X.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function iZ(e,t){e.openElements.pop(),e.insertionMode=$.AFTER_HEAD,e._processToken(t)}function aZ(e,t){switch(t.tagID){case X.HTML:KZ(e,t);break;case X.BASEFONT:case X.BGSOUND:case X.HEAD:case X.LINK:case X.META:case X.NOFRAMES:case X.STYLE:tZ(e,t);break;case X.NOSCRIPT:e._err(t,q.nestedNoscriptInHead);break;default:sZ(e,t)}}function oZ(e,t){switch(t.tagID){case X.NOSCRIPT:e.openElements.pop(),e.insertionMode=$.IN_HEAD;break;case X.BR:sZ(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function sZ(e,t){let n=t.type===sY.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=$.IN_HEAD,e._processToken(t)}function cZ(e,t){switch(t.tagID){case X.HTML:KZ(e,t);break;case X.BODY:e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=$.IN_BODY;break;case X.FRAMESET:e._insertElement(t,J.HTML),e.insertionMode=$.IN_FRAMESET;break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,X.HEAD),tZ(e,t),e.openElements.remove(e.headElement);break;case X.HEAD:e._err(t,q.misplacedStartTagForHeadElement);break;default:uZ(e,t)}}function lZ(e,t){switch(t.tagID){case X.BODY:case X.HTML:case X.BR:uZ(e,t);break;case X.TEMPLATE:rZ(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function uZ(e,t){e._insertFakeElement(Y.BODY,X.BODY),e.insertionMode=$.IN_BODY,dZ(e,t)}function dZ(e,t){switch(t.type){case sY.CHARACTER:pZ(e,t);break;case sY.WHITESPACE_CHARACTER:fZ(e,t);break;case sY.COMMENT:UX(e,t);break;case sY.START_TAG:KZ(e,t);break;case sY.END_TAG:iQ(e,t);break;case sY.EOF:aQ(e,t);break;default:}}function fZ(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function pZ(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function mZ(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function hZ(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function gZ(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();
vendor: 8,519 bytes, line 538
538e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_FRAMESET)}function _Z(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function vZ(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&OY.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function yZ(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function bZ(e,t){let n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),n||(e.formElement=e.openElements.current))}function xZ(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===X.LI&&r===X.LI||(n===X.DD||n===X.DT)&&(r===X.DD||r===X.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==X.ADDRESS&&r!==X.DIV&&r!==X.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function SZ(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=kY.PLAINTEXT}function CZ(e,t){e.openElements.hasInScope(X.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function wZ(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Y.A);n&&(HX(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function TZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function EZ(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(X.NOBR)&&(HX(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function DZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function OZ(e,t){e.treeAdapter.getDocumentMode(e.document)!==wY.QUIRKS&&e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=$.IN_TABLE}function kZ(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function AZ(e){let t=cY(e,CY.TYPE);return t!=null&&t.toLowerCase()===kX}function jZ(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),AZ(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function MZ(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function NZ(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function PZ(e,t){t.tagName=Y.IMG,t.tagID=X.IMG,kZ(e,t)}function FZ(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=kY.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=$.TEXT}function IZ(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,kY.RAWTEXT)}function LZ(e,t){e.framesetOk=!1,e._switchToTextParsing(t,kY.RAWTEXT)}function RZ(e,t){e._switchToTextParsing(t,kY.RAWTEXT)}function zZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===$.IN_TABLE||e.insertionMode===$.IN_CAPTION||e.insertionMode===$.IN_TABLE_BODY||e.insertionMode===$.IN_ROW||e.insertionMode===$.IN_CELL?$.IN_SELECT_IN_TABLE:$.IN_SELECT}function BZ(e,t){e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function VZ(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function HZ(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(X.RTC),e._insertElement(t,J.HTML)}function UZ(e,t){e._reconstructActiveFormattingElements(),SX(t),wX(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function WZ(e,t){e._reconstructActiveFormattingElements(),CX(t),wX(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function GZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function KZ(e,t){switch(t.tagID){case X.I:case X.S:case X.B:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.SMALL:case X.STRIKE:case X.STRONG:TZ(e,t);break;case X.A:wZ(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:vZ(e,t);break;case X.P:case X.DL:case X.OL:case X.UL:case X.DIV:case X.DIR:case X.NAV:case X.MAIN:case X.MENU:case X.ASIDE:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.DETAILS:case X.ADDRESS:case X.ARTICLE:case X.SEARCH:case X.SECTION:case X.SUMMARY:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:_Z(e,t);break;case X.LI:case X.DD:case X.DT:xZ(e,t);break;case X.BR:case X.IMG:case X.WBR:case X.AREA:case X.EMBED:case X.KEYGEN:kZ(e,t);break;case X.HR:NZ(e,t);break;case X.RB:case X.RTC:VZ(e,t);break;case X.RT:case X.RP:HZ(e,t);break;case X.PRE:case X.LISTING:yZ(e,t);break;case X.XMP:IZ(e,t);break;case X.SVG:WZ(e,t);break;case X.HTML:mZ(e,t);break;case X.BASE:case X.LINK:case X.META:case X.STYLE:case X.TITLE:case X.SCRIPT:case X.BGSOUND:case X.BASEFONT:case X.TEMPLATE:tZ(e,t);break;case X.BODY:hZ(e,t);break;case X.FORM:bZ(e,t);break;case X.NOBR:EZ(e,t);break;case X.MATH:UZ(e,t);break;case X.TABLE:OZ(e,t);break;case X.INPUT:jZ(e,t);break;case X.PARAM:case X.TRACK:case X.SOURCE:MZ(e,t);break;case X.IMAGE:PZ(e,t);break;case X.BUTTON:CZ(e,t);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:DZ(e,t);break;case X.IFRAME:LZ(e,t);break;case X.SELECT:zZ(e,t);break;case X.OPTION:case X.OPTGROUP:BZ(e,t);break;case X.NOEMBED:case X.NOFRAMES:RZ(e,t);break;case X.FRAMESET:gZ(e,t);break;case X.TEXTAREA:FZ(e,t);break;case X.NOSCRIPT:e.options.scriptingEnabled?RZ(e,t):GZ(e,t);break;case X.PLAINTEXT:SZ(e,t);break;case X.COL:case X.TH:case X.TD:case X.TR:case X.HEAD:case X.FRAME:case X.TBODY:case X.TFOOT:case X.THEAD:case X.CAPTION:case X.COLGROUP:break;default:GZ(e,t)}}function qZ(e,t){if(e.openElements.hasInScope(X.BODY)&&(e.insertionMode=$.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function JZ(e,t){e.openElements.hasInScope(X.BODY)&&(e.insertionMode=$.AFTER_BODY,UQ(e,t))}function YZ(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function XZ(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(X.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(X.FORM):n&&e.openElements.remove(n))}function ZZ(e){e.openElements.hasInButtonScope(X.P)||e._insertFakeElement(Y.P,X.P),e._closePElement()}function QZ(e){e.openElements.hasInListItemScope(X.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(X.LI),e.openElements.popUntilTagNamePopped(X.LI))}function $Z(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function eQ(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function tQ(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function nQ(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Y.BR,X.BR),e.openElements.pop(),e.framesetOk=!1}function rQ(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!==X.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>
vendor: 12,502 bytes, line 538
538=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function iQ(e,t){switch(t.tagID){case X.A:case X.B:case X.I:case X.S:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.NOBR:case X.SMALL:case X.STRIKE:case X.STRONG:HX(e,t);break;case X.P:ZZ(e);break;case X.DL:case X.UL:case X.OL:case X.DIR:case X.DIV:case X.NAV:case X.PRE:case X.MAIN:case X.MENU:case X.ASIDE:case X.BUTTON:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.ADDRESS:case X.ARTICLE:case X.DETAILS:case X.SEARCH:case X.SECTION:case X.SUMMARY:case X.LISTING:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:YZ(e,t);break;case X.LI:QZ(e);break;case X.DD:case X.DT:$Z(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:eQ(e);break;case X.BR:nQ(e);break;case X.BODY:qZ(e,t);break;case X.HTML:JZ(e,t);break;case X.FORM:XZ(e);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:tQ(e,t);break;case X.TEMPLATE:rZ(e,t);break;default:rQ(e,t)}}function aQ(e,t){e.tmplInsertionModeStack.length>0?VQ(e,t):KX(e,t)}function oQ(e,t){var n;t.tagID===X.SCRIPT&&((n=e.scriptHandler)==null||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function sQ(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function cQ(e,t){if(e.openElements.currentTagId!==void 0&&NX.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=$.IN_TABLE_TEXT,t.type){case sY.CHARACTER:xQ(e,t);break;case sY.WHITESPACE_CHARACTER:bQ(e,t);break}else yQ(e,t)}function lQ(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_CAPTION}function uQ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_COLUMN_GROUP}function dQ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.COLGROUP,X.COLGROUP),e.insertionMode=$.IN_COLUMN_GROUP,EQ(e,t)}function fQ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_TABLE_BODY}function pQ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.TBODY,X.TBODY),e.insertionMode=$.IN_TABLE_BODY,kQ(e,t)}function mQ(e,t){e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function hQ(e,t){AZ(t)?e._appendElement(t,J.HTML):yQ(e,t),t.ackSelfClosing=!0}function gQ(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function _Q(e,t){switch(t.tagID){case X.TD:case X.TH:case X.TR:pQ(e,t);break;case X.STYLE:case X.SCRIPT:case X.TEMPLATE:tZ(e,t);break;case X.COL:dQ(e,t);break;case X.FORM:gQ(e,t);break;case X.TABLE:mQ(e,t);break;case X.TBODY:case X.TFOOT:case X.THEAD:fQ(e,t);break;case X.INPUT:hQ(e,t);break;case X.CAPTION:lQ(e,t);break;case X.COLGROUP:uQ(e,t);break;default:yQ(e,t)}}function vQ(e,t){switch(t.tagID){case X.TABLE:e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode());break;case X.TEMPLATE:rZ(e,t);break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:yQ(e,t)}}function yQ(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,dZ(e,t),e.fosterParentingEnabled=n}function bQ(e,t){e.pendingCharacterTokens.push(t)}function xQ(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function SQ(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)yQ(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var CQ=new Set([X.CAPTION,X.COL,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]);function wQ(e,t){let n=t.tagID;CQ.has(n)?e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_TABLE,_Q(e,t)):KZ(e,t)}function TQ(e,t){let n=t.tagID;switch(n){case X.CAPTION:case X.TABLE:e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_TABLE,n===X.TABLE&&vQ(e,t));break;case X.BODY:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:iQ(e,t)}}function EQ(e,t){switch(t.tagID){case X.HTML:KZ(e,t);break;case X.COL:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.TEMPLATE:tZ(e,t);break;default:OQ(e,t)}}function DQ(e,t){switch(t.tagID){case X.COLGROUP:e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=$.IN_TABLE);break;case X.TEMPLATE:rZ(e,t);break;case X.COL:break;default:OQ(e,t)}}function OQ(e,t){e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=$.IN_TABLE,e._processToken(t))}function kQ(e,t){switch(t.tagID){case X.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_ROW;break;case X.TH:case X.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Y.TR,X.TR),e.insertionMode=$.IN_ROW,jQ(e,t);break;case X.CAPTION:case X.COL:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE,_Q(e,t));break;default:_Q(e,t)}}function AQ(e,t){let n=t.tagID;switch(t.tagID){case X.TBODY:case X.TFOOT:case X.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE);break;case X.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE,vQ(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TD:case X.TH:case X.TR:break;default:vQ(e,t)}}function jQ(e,t){switch(t.tagID){case X.TH:case X.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_CELL,e.activeFormattingElements.insertMarker();break;case X.CAPTION:case X.COL:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:case X.TR:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY,kQ(e,t));break;default:_Q(e,t)}}function MQ(e,t){switch(t.tagID){case X.TR:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY);break;case X.TABLE:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY,AQ(e,t));break;case X.TBODY:case X.TFOOT:case X.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(X.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY,AQ(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TD:case X.TH:break;default:vQ(e,t)}}function NQ(e,t){let n=t.tagID;CQ.has(n)?(e.openElements.hasInTableScope(X.TD)||e.openElements.hasInTableScope(X.TH))&&(e._closeTableCell(),jQ(e,t)):KZ(e,t)}function PQ(e,t){let n=t.tagID;switch(n){case X.TD:case X.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_ROW);break;case X.TABLE:case X.TBODY:case X.TFOOT:case X.THEAD:case X.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),MQ(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:break;default:iQ(e,t)}}function FQ(e,t){switch(t.tagID){case X.HTML:KZ(e,t);break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._insertElement(t,J.HTML);break;case X.OPTGROUP:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop(),e._insertElement(t,J.HTML);break;case X.HR:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop(),e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.INPUT:case X.KEYGEN:case X.TEXTAREA:case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),t.tagID!==X.SELECT&&e._processStartTag(t));break;case X.SCRIPT:case X.TEMPLATE:tZ(e,t);break;default:}}function IQ(e,t){switch(t.tagID){case X.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===X.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===X.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop();break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop();break;case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode());break;case X.TEMPLATE:rZ(e,t);break;default:}}function LQ(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e._processStartTag(t)):FQ(e,t)}function RQ(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e.onEndTag(t)):IQ(e,t)}function zQ(e,t){switch(t.tagID){case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:tZ(e,t);break;case X.CAPTION:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.tmplInsertionModeStack[0]=$.IN_TABLE,e.insertionMode=$.IN_TABLE,_Q(e,t);break;case X.COL:e.tmplInsertionModeStack[0]=$.IN_COLUMN_GROUP,e.insertionMode=$.IN_COLUMN_GROUP,EQ(e,t);break;case X.TR:e.tmplInsertionModeStack[0]=$.IN_TABLE_BODY,e.insertionMode=$.IN_TABLE_BODY,kQ(e,t);break;case X.TD:case X.TH:e.tmplInsertionModeStack[0]=$.IN_ROW,e.insertionMode=$.IN_ROW,jQ(e,t);break;default:e.tmplInsertionModeStack[0]=$.IN_BODY,e.insertionMode=$.IN_BODY,KZ(e,t)}}function BQ(e,t){t.tagID===X.TEMPLATE&&rZ(e,t)}function VQ(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):KX(e,t)}function HQ(e,t){t.tagID===X.HTML?KZ(e,t):WQ(e,t)}function UQ(e,t){if(t.tagID===X.HTML){if(e.fragmentContext||(e.insertionMode=$.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===X.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!e.treeAdapter.getNodeSourceCodeLocation(n)?.endTag&&e._setEndLocation(n,t)}}else WQ(e,t)}function WQ(e,t){e.insertionMode=$.IN_BODY,dZ(e,t)}function GQ(e,t){switch(t.tagID){case X.HTML:KZ(e,t);break;case X.FRAMESET:e._insertElement(t,J.HTML);break;case X.FRAME:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.NOFRAMES:tZ(e,t);break;default:}}function KQ(e,t){t.tagID===X.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==X.FRAMESET&&(e.insertionMode=$.AFTER_FRAMESET))}function qQ(e,t){switch(t.tagID){case X.HTML:KZ(e,t);break;case X.NOFRAMES:tZ(e,t);break;default:}}function JQ(e,t){t.tagID===X.HTML&&(e.insertionMode=$.AFTER_AFTER_FRAMESET)}function YQ(e,t){t.tagID===X.HTML?KZ(e,t):XQ(e,t)}function XQ(e,t){e.insertionMode=$.IN_BODY,dZ(e,t)}function ZQ(e,t){switch(t.tagID){case X.HTML:KZ(e,t);break;case X.NOFRAMES:tZ(e,t);break;default:}}function QQ(e,t){t.chars=`�`,e._insertCharacters(t)}function $Q(e,t){e._insertCharacters(t),e.framesetOk=!1}function e$(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.o
vendor: 9,863 bytes, line 538
538penElements.current);)e.openElements.pop()}function t$(e,t){if(xX(t))e$(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===J.MATHML?SX(t):r===J.SVG&&(TX(t),CX(t)),wX(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function n$(e,t){if(t.tagID===X.P||t.tagID===X.BR){e$(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)===J.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Y.AREA,Y.BASE,Y.BASEFONT,Y.BGSOUND,Y.BR,Y.COL,Y.EMBED,Y.FRAME,Y.HR,Y.IMG,Y.INPUT,Y.KEYGEN,Y.LINK,Y.META,Y.PARAM,Y.SOURCE,Y.TRACK,Y.WBR;var r$=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,i$=new Set([`mdxFlowExpression`,`mdxJsxFlowElement`,`mdxJsxTextElement`,`mdxTextExpression`,`mdxjsEsm`]),a$={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function o$(e,t){let n=b$(e),r=dO(`type`,{handlers:{root:c$,element:l$,text:u$,comment:p$,doctype:d$,raw:m$},unknown:h$}),i={parser:n?new FX(a$):FX.getFragmentParser(void 0,a$),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),g$(i,Px());let a=jJ(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&JC(a,`comment`,function(e,t,n){let r=e;if(r.value.stitch&&n&&t!==void 0){let e=n.children;return e[t]=r.value.stitch,t}}),a.type===`root`&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function s$(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function c$(e,t){s$(e.children,t)}function l$(e,t){v$(e,t),s$(e.children,t),y$(e,t)}function u$(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:sY.CHARACTER,chars:e.value,location:x$(e)};g$(t,Px(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function d$(e,t){let n={type:sY.DOCTYPE,name:`html`,forceQuirks:!1,publicId:``,systemId:``,location:x$(e)};g$(t,Px(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function f$(e,t){t.stitches=!0;let n=S$(e);`children`in e&&`children`in n&&(n.children=o$({type:`root`,children:e.children},t.options).children),p$({type:`comment`,value:{stitch:n}},t)}function p$(e,t){let n=e.value,r={type:sY.COMMENT,data:n,location:x$(e)};g$(t,Px(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function m$(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,_$(t,Px(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(r$,`<$1$2`):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function h$(e,t){let n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))f$(n,t);else{let e=``;throw i$.has(n.type)&&(e=". 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 `"+n.type+"` node"+e)}}function g$(e,t){_$(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=kY.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 _$(e,t){if(t&&t.offset!==void 0){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 v$(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===kY.PLAINTEXT)return;g$(t,Px(e));let r=t.parser.openElements.current,i=`namespaceURI`in r?r.namespaceURI:qP.html;i===qP.html&&n===`svg`&&(i=qP.svg);let a=HJ({...e,children:[]},{space:i===qP.svg?`svg`:`html`}),o={type:sY.START_TAG,tagName:n,tagID:EY(n),selfClosing:!1,ackSelfClosing:!1,attrs:`attrs`in a?a.attrs:[],location:x$(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function y$(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&lO.includes(n)||t.parser.tokenizer.state===kY.PLAINTEXT)return;g$(t,Nx(e));let r={type:sY.END_TAG,tagName:n,tagID:EY(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:x$(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===kY.RCDATA||t.parser.tokenizer.state===kY.RAWTEXT||t.parser.tokenizer.state===kY.SCRIPT_DATA)&&(t.parser.tokenizer.state=kY.DATA)}function b$(e){let t=e.type===`root`?e.children[0]:e;return!!(t&&(t.type===`doctype`||t.type===`element`&&t.tagName.toLowerCase()===`html`))}function x$(e){let t=Px(e)||{line:void 0,column:void 0,offset:void 0},n=Nx(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 S$(e){return`children`in e?HC({...e,children:[]}):HC(e)}function C$(e){return function(t,n){return o$(t,{...e,file:n})}}var w$=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],T$={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...w$,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...w$],h2:[[`className`,`sr-only`]],img:[...w$,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...w$,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...w$],table:[...w$],ul:[...w$,[`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`.split(`.`)},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`.split(`.`)},E$={}.hasOwnProperty;function D$(e,t){let n={type:`root`,children:[]},r=O$({schema:t?{...T$,...t}:T$,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function O$(e,t){if(t&&typeof t==`object`){let n=t;switch(typeof n.type==`string`?n.type:``){case`comment`:return k$(e,n);case`doctype`:return A$(e,n);case`element`:return j$(e,n);case`root`:return M$(e,n);case`text`:return N$(e,n);default:}}}function k$(e,t){if(e.schema.allowComments){let e=typeof t.value==`string`?t.value:``,n=e.indexOf(`-->`),r={type:`comment`,value:n<0?e:e.slice(0,n)};return B$(r,t),r}}function A$(e,t){if(e.schema.allowDoctypes){let e={type:`doctype`};return B$(e,t),e}}function j$(e,t){let n=typeof t.tagName==`string`?t.tagName:``;e.stack.push(n);let r=P$(e,t.children),i=F$(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&&E$.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let o={type:`element`,tagName:n,properties:i,children:r};return B$(o,t),o}function M$(e,t){let n={type:`root`,children:P$(e,t.children)};return B$(n,t),n}function N$(e,t){let n={type:`text`,value:typeof t.value==`string`?t.value:``};return B$(n,t),n}function P$(e,t){let n=[];if(Array.isArray(t)){let r=t,i=-1;for(;++i<r.length;){let t=O$(e,r[i]);t&&(Array.isArray(t)?n.push(...t):n.push(t))}}return n}function F$(e,t){let n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&E$.call(r,n)?r[n]:void 0,o=r&&E$.call(r,`*`)?r[`*`]:void 0,s=t&&typeof t==`object`?t:{}
vendor: 14,180 bytes, lines 538-551
538,c={},l;for(l in s)if(E$.call(s,l)){let t=s[l],n=I$(e,V$(a,l),l,t);n??=I$(e,V$(o,l),l,t),n!=null&&(c[l]=n)}if(i&&E$.call(i,n)){let e=i[n];for(l in e)E$.call(e,l)&&!E$.call(c,l)&&(c[l]=e[l])}return c}function I$(e,t,n,r){return t?Array.isArray(r)?L$(e,t,n,r):R$(e,t,n,r):void 0}function L$(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=R$(e,t,n,r[i]);(typeof o==`number`||typeof o==`string`)&&a.push(o)}return a}function R$(e,t,n,r){if(!(typeof r!=`boolean`&&typeof r!=`number`&&typeof r!=`string`)&&z$(e,n,r)){if(typeof t==`object`&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&typeof i==`object`&&`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 z$(e,t,n){let r=e.schema.protocols&&E$.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;let i=String(n),a=i.indexOf(`:`),o=i.indexOf(`?`),s=i.indexOf(`#`),c=i.indexOf(`/`);if(a<0||c>-1&&a>c||o>-1&&a>o||s>-1&&a>s)return!0;let l=-1;for(;++l<r.length;){let e=r[l];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}function B$(e,t){let n=Ix(t);t.data&&(e.data=HC(t.data)),n&&(e.position=n)}function V$(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a=typeof i==`string`?i:i[0];if(a===t)return i;a===`data*`&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()===`data`)return n}function H$(e){return function(t){return D$(t,e)}}function U$(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function W$(e,t,n){let r=UC((n||{}).ignore||[]),i=G$(t),a=-1;for(;++a<i.length;)qC(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function G$(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;){let e=n[r];t.push([K$(e[0]),q$(e[1])])}return t}function K$(e){return typeof e==`string`?new RegExp(U$(e),`g`):e}function q$(e){return typeof e==`function`?e:function(){return e}}var J$=`phrasing`,Y$=[`autolink`,`link`,`image`,`label`];function X$(){return{transforms:[i1],enter:{literalAutolink:Q$,literalAutolinkEmail:$$,literalAutolinkHttp:$$,literalAutolinkWww:$$},exit:{literalAutolink:r1,literalAutolinkEmail:n1,literalAutolinkHttp:e1,literalAutolinkWww:t1}}}function Z$(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:J$,notInConstruct:Y$},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:J$,notInConstruct:Y$},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:J$,notInConstruct:Y$}]}}function Q$(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function $$(e){this.config.enter.autolinkProtocol.call(this,e)}function e1(e){this.config.exit.autolinkProtocol.call(this,e)}function t1(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function n1(e){this.config.exit.autolinkEmail.call(this,e)}function r1(e){this.exit(e)}function i1(e){W$(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,a1],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,o1]],{ignore:[`link`,`linkReference`]})}function a1(e,t,n,r,i){let a=``;if(!l1(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!s1(n)))return!1;let o=c1(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function o1(e,t,n,r){return!l1(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function s1(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function c1(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=vO(e,`(`),a=vO(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function l1(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||US(n)||HS(n))&&(!t||n!==47)}y1.peek=v1;function u1(){this.buffer()}function d1(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function f1(){this.buffer()}function p1(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function m1(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jS(this.sliceSerialize(e)).toLowerCase(),n.label=t}function h1(e){this.exit(e)}function g1(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jS(this.sliceSerialize(e)).toLowerCase(),n.label=t}function _1(e){this.exit(e)}function v1(){return`[`}function y1(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function b1(){return{enter:{gfmFootnoteCallString:u1,gfmFootnoteCall:d1,gfmFootnoteDefinitionLabelString:f1,gfmFootnoteDefinition:p1},exit:{gfmFootnoteCallString:m1,gfmFootnoteCall:h1,gfmFootnoteDefinitionLabelString:g1,gfmFootnoteDefinition:_1}}}function x1(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:y1},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?` 539`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?C1:S1))),s(),o}}function S1(e,t,n){return t===0?e:C1(e,t,n)}function C1(e,t,n){return(n?``:` `)+e}var w1=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];k1.peek=A1;function T1(){return{canContainEols:[`delete`],enter:{strikethrough:D1},exit:{strikethrough:O1}}}function E1(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:w1}],handlers:{delete:k1}}}function D1(e){this.enter({type:`delete`,children:[]},e)}function O1(e){this.exit(e)}function k1(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function A1(){return`~`}function j1(e){return e.length}function M1(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||j1,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=N1(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=P1(r[d]);else{let e=P1(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(` 540`)}function N1(e){return e==null?``:String(e)}function P1(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Ole(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),kle);return i(),o}function kle(e,t,n){return`>`+(n?``:` `)+e}function Ale(e,t){return F1(e,t.inConstruct,!0)&&!F1(e,t.notInConstruct,!1)}function F1(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function I1(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===` 541`&&Ale(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\ 542`}function jle(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Mle(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Nle(e,t,n,r){let i=Mle(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(jle(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,Ple);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(oB(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:` 543`,encode:["`"],...s.current()})),t()}return u+=s.move(` 544`),a&&(u+=s.move(a+` 545`)),u+=s.move(c),l(),u}function Ple(e,t,n){return(n?``:` `)+e}function L1(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Fle(e,t,n,r){let i=L1(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:` 546`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function Ile(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function R1(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function z1(e,t,n){let r=QS(e),i=QS(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}B1.peek=Lle;function B1(e,t,n,r){let i=Ile(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=z1(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=R1(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=z1(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+R1(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Lle(e,t,n){return n.options.emphasis||`*`}function Rle(e,t){let n=!1;return JC(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&vS(e)&&(t.options.setext||n))}function zle(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Rle(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:` 547`,after:` 548`});return r(),t(),o+` 549`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(` 550`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:` 551`,...a.current()});return/^[\t ]/.test(l)&&(l=R1(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}V1.peek=Ble;function V1(e){return e.value||``}function Ble(){return`<`}H1.peek=Vle;function H1(e,t,n,r){let i=L1(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function Vle(){return`!`}U1.peek=Hle;function U1(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Hle(){return`!`}W1.peek=Ule;
vendor: 14,077 bytes, lines 551-553
551function W1(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=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function Ule(){return"`"}function G1(e,t){let n=vS(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}K1.peek=Wle;function K1(e,t,n,r){let i=L1(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(G1(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function Wle(e,t,n){return G1(e,n)?`<`:`[`}q1.peek=Gle;function q1(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Gle(){return`[`}function J1(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Kle(e){let t=J1(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function qle(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Y1(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Jle(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?qle(n):J1(n),s=e.ordered?o===`.`?`)`:`.`:Kle(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),Y1(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function Yle(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Xle(e,t,n,r){let i=Yle(n),a=n.bulletCurrent||J1(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function Zle(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var Qle=UC([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function $le(e,t,n,r){return(e.children.some(function(e){return Qle(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function eue(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}X1.peek=tue;function X1(e,t,n,r){let i=eue(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=z1(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=R1(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=z1(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+R1(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function tue(e,t,n){return n.options.strong||`*`}function nue(e,t,n,r){return n.safe(e.value,r)}function rue(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function iue(e,t,n){let r=(Y1(n)+(n.options.ruleSpaces?` `:``)).repeat(rue(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Z1={blockquote:Ole,break:I1,code:Nle,definition:Fle,emphasis:B1,hardBreak:I1,heading:zle,html:V1,image:H1,imageReference:U1,inlineCode:W1,link:K1,linkReference:q1,list:Jle,listItem:Xle,paragraph:Zle,root:$le,strong:X1,text:nue,thematicBreak:iue};function aue(){return{enter:{table:oue,tableData:$1,tableHeader:$1,tableRow:cue},exit:{codeText:lue,table:sue,tableData:Q1,tableHeader:Q1,tableRow:Q1}}}function oue(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function sue(e){this.exit(e),this.data.inTable=void 0}function cue(e){this.enter({type:`tableRow`,children:[]},e)}function Q1(e){this.exit(e)}function $1(e){this.enter({type:`tableCell`,children:[]},e)}function lue(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,uue));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function uue(e,t){return t===`|`?t:e}function due(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:` 552`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(` 553`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return M1(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=Z1.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function fue(){return{exit:{taskListCheckValueChecked:e0,taskListCheckValueUnchecked:e0,paragraph:mue}}}function pue(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:hue}}}function e0(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function mue(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function hue(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Z1.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function gue(){return[X$(),b1(),T1(),aue(),fue()]}function _ue(e){return{extensions:[Z$(),x1(e),E1(),due(e),pue()]}}var vue={tokenize:wue,partial:!0},t0={tokenize:Tue,partial:!0},n0={tokenize:Eue,partial:!0},r0={tokenize:Due,partial:!0},yue={tokenize:Oue,partial:!0},i0={name:`wwwAutolink`,tokenize:Sue,previous:l0},a0={name:`protocolAutolink`,tokenize:Cue,previous:u0},o0={name:`emailAutolink`,tokenize:xue,previous:d0},s0={};function bue(){return{text:s0}}for(var c0=48;c0<123;)s0[c0]=o0,c0++,c0===58?c0=65:c0===91&&(c0=97);s0[43]=o0,s0[45]=o0,s0[46]=o0,s0[95]=o0,s0[72]=[o0,a0],s0[104]=[o0,a0],s0[87]=[o0,i0],s0[119]=[o0,i0];function xue(e,t,n){let r=this,i,a;return o;function o(t){return!f0(t)||!d0.call(r,r.previous)||p0(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return f0(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(yue,u,l)(t):t===45||t===95||NS(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&MS(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Sue(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!l0.call(r,r.previous)||p0(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(vue,e.attempt(t0,e.attempt(n0,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function Cue(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&u0.call(r,r.previous)&&!p0(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(MS(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||FS(t)||BS(t)||US(t)||HS(t)?n(t):e.attempt(t0,e.attempt(n0,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function wue(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Tue(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(r0,c,s)(t):t===null||BS(t)||US(t)||t!==45&&HS(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Eue(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(r0,t,a)(o):o===null||BS(o)||US(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Due(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||BS(o)||US(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||BS(e)||US(e)?t(e):r(e)}function a(e){return MS(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):MS(t)?(e.consume(t),o):n(t)}}function Oue(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return NS(e)?n(e):t(e)}}function l0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||BS(e)}function u0(e){return!MS(e)}function d0(e){return!(e===47||f0(e))}function f0(e){return e===43||e===45||e===46||e===95||NS(e)}function p0(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var kue={tokenize:Lue,partial:!0};function Aue(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Pue,continuation:{tokenize:Fue},exit:Iue}},text:{91:{name:`gfmFootnoteCall`,tokenize:Nue},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:jue,resolveTo:Mue}}}}function jue(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=jS(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Mue(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;
vendor: 7,445 bytes, line 553
553let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Nue(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||BS(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(jS(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return BS(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function Pue(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||BS(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=jS(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return BS(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),KS(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Fue(e,t,n){return e.check(nC,t,e.attempt(kue,t,n))}function Iue(e){e.exit(`gfmFootnoteDefinition`)}function Lue(e,t,n){let r=this;return KS(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Rue(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&wS(o,o.length,0,$S(s,e.slice(r+1,n),t)),wS(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),wS(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=QS(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=QS(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var zue=class{constructor(){this.map=[]}add(e,t,n){Bue(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,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 Bue(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){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])}}function Vue(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Hue(){return{flow:{null:{name:`table`,tokenize:Uue,resolveAll:Wue}}}}function Uue(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):zS(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):VS(t)?KS(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||BS(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,VS(t)?KS(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return VS(t)?KS(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||zS(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return VS(t)?KS(e,b,`whitespace`)(t):b(t)}
vendor: 16,056 bytes, lines 553-574
553function b(n){return n===124?m(n):n===null||zS(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||zS(n)?(e.exit(`tableRow`),t(n)):VS(n)?KS(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||BS(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?ee:w)}function ee(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Wue(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new zue;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(h0(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=m0(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=m0(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=m0(f,t,o,i,n,d)):(o[0]=o[1],d=m0(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&h0(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Vue(t.events,n))}return e}function m0(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},g0(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=g0(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=g0(t.events,n[2]),a=g0(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},g0(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function h0(e,t,n,r,i){let a=[],o=g0(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function g0(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Gue={name:`tasklistCheck`,tokenize:que};function Kue(){return{text:{91:Gue}}}function que(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return BS(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return zS(r)?t(r):VS(r)?e.check({tokenize:Jue},t,n)(r):n(r)}}function Jue(e,t,n){return KS(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Yue(e){return DS([bue(),Aue(),Rue(e),Hue(),Kue()])}var Xue={};function Zue(e){let t=this,n=e||Xue,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Yue(n)),a.push(gue()),o.push(_ue(n))}var Que=Object.defineProperty,$ue=Object.defineProperties,ede=Object.getOwnPropertyDescriptors,_0=Object.getOwnPropertySymbols,tde=Object.prototype.hasOwnProperty,nde=Object.prototype.propertyIsEnumerable,v0=(e,t,n)=>t in e?Que(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y0=(e,t)=>{for(var n in t||={})tde.call(t,n)&&v0(e,n,t[n]);if(_0)for(var n of _0(t))nde.call(t,n)&&v0(e,n,t[n]);return e},b0=(e,t)=>$ue(e,ede(t)),x0=(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},rde=(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},ide=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]==="`"&&!rde(e,n)&&(t+=1)}return t},S0=(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},ade=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,ode=e=>!e||typeof e!=`string`||!e.includes(`>`)?e:e.replace(ade,(t,n,r,i)=>x0(e,i)?t:`${n}\\>${r}`),sde=/(\*\*)([^*]*\*?)$/,cde=/(__)([^_]*?)$/,lde=/(\*\*\*)([^*]*?)$/,ude=/(\*)([^*]*?)$/,dde=/(_)([^_]*?)$/,fde=/(`)([^`]*?)$/,pde=/(~~)([^~]*?)$/,C0=/^[\s_~*`]*$/,w0=/^[\s]*[-*+][\s]+$/,mde=/[\p{L}\p{N}_]/u,hde=/^```[^`\n]*```?$/,gde=/^\*{4,}$/,_de=/(__)([^_]+)_$/,vde=/(~~)([^~]+)~$/,T0=/~~/g,E0=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95||mde.test(e)},yde=(e,t)=>{let n=1;for(let r=t-1;r>=0;--r)if(e[r]===`]`)n+=1;else if(e[r]===`[`&&(--n,n===0))return r;return-1},D0=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]===`[`)n+=1;else if(e[r]===`]`&&(--n,n===0))return r;return-1},O0=(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},bde=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===`)`)return!0;if(e[n]===` 554`)return!1}return!1},k0=(e,t)=>{for(let n=t-1;n>=0;--n){if(e[n]===`)`)return!1;if(e[n]===`(`)return n>0&&e[n-1]===`]`&&bde(e,t);if(e[n]===` 555`)return!1}return!1},xde=(e,t)=>{for(let n=t-1;n>=0;--n){if(e[n]===`>`)return!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]===` 556`)return!1}return!1},A0=(e,t,n)=>{let r=0;for(let n=t-1;n>=0;--n)if(e[n]===` 557`){r=n+1;break}let i=e.length;for(let n=t;n<e.length;n+=1)if(e[n]===` 558`){i=n;break}let a=e.substring(r,i),o=0,s=!1;for(let e of a)if(e===n)o+=1;else if(e!==` `&&e!==` `){s=!0;break}return o>=3&&!s},Sde=(e,t,n,r)=>n===`\\`||e.includes(`$`)&&O0(e,t)?!0:n!==`*`&&r===`*`?(t<e.length-2?e[t+2]:``)!==`*`:!!(n===`*`||n&&r&&E0(n)&&E0(r)||(!n||n===` `||n===` `||n===` 559`)&&(!r||r===` `||r===` `||r===` 560`)),j0=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!==`*`)continue;let a=i>0?e[i-1]:``,o=i<r-1?e[i+1]:``;Sde(e,i,a,o)||(t+=1)}return t},Cde=(e,t,n,r)=>!!(n===`\\`||e.includes(`$`)&&O0(e,t)||k0(e,t)||xde(e,t)||n===`_`||r===`_`||n&&r&&E0(n)&&E0(r)),wde=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!==`_`)continue;let a=i>0?e[i-1]:``,o=i<r-1?e[i+1]:``;Cde(e,i,a,o)||(t+=1)}return t},Tde=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},M0=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},N0=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},Ede=(e,t,n)=>{if(!t||C0.test(t))return!0;let r=e.substring(0,n).lastIndexOf(` 561`),i=r===-1?0:r+1,a=e.substring(i,n);return w0.test(a)&&t.includes(` 562`)?!0:A0(e,n,`*`)},Dde=e=>{let t=e.match(sde);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return x0(e,r)||S0(e,r)||Ede(e,n,r)?e:M0(e)%2==1?n.endsWith(`*`)?`${e}*`:`${e}**`:e},Ode=(e,t,n)=>{if(!t||C0.test(t))return!0;let r=e.substring(0,n).lastIndexOf(` 563`),i=r===-1?0:r+1,a=e.substring(i,n);return w0.test(a)&&t.includes(` 564`)?!0:A0(e,n,`_`)},kde=e=>{let t=e.match(cde);if(!t){let t=e.match(_de);if(t){let n=e.lastIndexOf(t[1]);if(!(x0(e,n)||S0(e,n))&&N0(e)%2==1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return x0(e,r)||S0(e,r)||Ode(e,n,r)?e:N0(e)%2==1?`${e}__`:e},Ade=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]!==`\\`&&!O0(e,n)){let t=n>0?e[n-1]:``,r=n<e.length-1?e[n+1]:``;if((!t||t===` `||t===` `||t===` 565`)&&(!r||r===` `||r===` `||r===` 566`)||t&&r&&E0(t)&&E0(r))continue;return n}}return-1},jde=e=>{if(!e.match(ude))return e;let t=Ade(e);if(t===-1||x0(e,t)||S0(e,t))return e;let n=e.substring(t+1);return!n||C0.test(n)?e:j0(e)%2==1?`${e}*`:e},P0=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]!==`\\`&&!O0(e,n)&&!k0(e,n)){let t=n>0?e[n-1]:``,r=n<e.length-1?e[n+1]:``;if(t&&r&&E0(t)&&E0(r))continue;return n}}return-1},Mde=e=>{let t=e.length;for(;t>0&&e[t-1]===` 567`;)--t;return t<e.length?`${e.slice(0,t)}_${e.slice(t)}`:`${e}_`},Nde=e=>{if(!e.endsWith(`**`))return null;let t=e.slice(0,-2);if(M0(t)%2!=1)return null;let n=t.indexOf(`**`),r=P0(t);return n!==-1&&r!==-1&&n<r?`${t}_**`:null},Pde=e=>{if(!e.match(dde))return e;let t=P0(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||C0.test(n)||x0(e,t)||S0(e,t))return e;if(wde(e)%2==1){let t=Nde(e);return t===null?Mde(e):t}return e},Fde=e=>{let t=M0(e),n=j0(e);return t%2==0&&n%2==0},Ide=(e,t,n)=>!t||C0.test(t)||x0(e,n)||S0(e,n)?!0:A0(e,n,`*`),Lde=e=>{if(gde.test(e))return e;let t=e.match(lde);if(!t)return e;let n=t[2];return Ide(e,n,e.lastIndexOf(t[1]))?e:Tde(e)%2==1?Fde(e)?e:`${e}***`:e},Rde=/<[a-zA-Z/][^>]*$/,zde=e=>{let t=e.match(Rde);return!t||t.index===void 0||x0(e,t.index)?e:e.substring(0,t.index).trimEnd()},Bde=e=>!e.match(hde)||e.includes(` 568`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,Vde=e=>(e.match(/```/g)||[]).length%2==1,Hde=e=>{let t=Bde(e);if(t!==null)return t;let n=e.match(fde);if(n&&!Vde(e)){let t=n[2];if(!t||C0.test(t))return e;if(ide(e)%2==1)return`${e}\``}return e},F0=(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)==="```",Ude=e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)e[r]==="`"&&!F0(e,r)&&(n=!n),!n&&e[r]===`$`&&e[r+1]===`$`&&(t+=1,r+=1);return t},Wde=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]===`\\`){r+=1;continue}if(e[r]==="`"&&!F0(e,r)){n=!n;continue}!n&&e[r]===`$`&&(r+1<e.length&&e[r+1]===`$`?r+=1:t+=1)}return t},Gde=e=>{if(e.endsWith(`$`)&&!e.endsWith(`$$`))return`${e}$`;let t=e.indexOf(`$$`);return t!==-1&&e.indexOf(` 569`,t)!==-1&&!e.endsWith(` 570`)?`${e} 571$$`:`${e}$$`},Kde=e=>Ude(e)%2==0?e:Gde(e),qde=e=>Wde(e)%2==1?`${e}$`:e,Jde=(e,t,n)=>{if(e.substring(t+2).includes(`)`))return null;let r=yde(e,t);if(r===-1||x0(e,r))return null;let i=r>0&&e[r-1]===`!`,a=i?r-1:r,o=e.substring(0,a);if(i)return o;let s=e.substring(r+1,t);return n===`text-only`?`${o}${s}`:`${o}[${s}](streamdown:incomplete-link)`},I0=(e,t)=>{for(let n=0;n<t;n++)if(e[n]===`[`&&!x0(e,n)){if(n>0&&e[n-1]===`!`)continue;let t=D0(e,n);if(t===-1)return n;if(t+1<e.length&&e[t+1]===`(`){let r=e.indexOf(`)`,t+2);r!==-1&&(n=r)}}return t},Yde=(e,t,n)=>{let r=t>0&&e[t-1]===`!`,i=r?t-1:t;if(!e.substring(t+1).includes(`]`)){let a=e.substring(0,i);if(r)return a;if(n===`text-only`){let n=I0(e,t);return e.substring(0,n)+e.substring(n+1)}return`${e}](streamdown:incomplete-link)`}if(D0(e,t)===-1){let a=e.substring(0,i);if(r)return a;if(n===`text-only`){let n=I0(e,t);return e.substring(0,n)+e.substring(n+1)}return`${e}](streamdown:incomplete-link)`}return null},L0=(e,t=`protocol`)=>{let n=e.lastIndexOf(`](`);if(n!==-1&&!x0(e,n)){let r=Jde(e,n,t);if(r!==null)return r}for(let n=e.length-1;n>=0;--n)if(e[n]===`[`&&!x0(e,n)){let r=Yde(e,n,t);if(r!==null)return r}return e},Xde=/^-{1,2}$/,Zde=/^[\s]*-{1,2}[\s]+$/,Qde=/^={1,2}$/,$de=/^[\s]*={1,2}[\s]+$/,efe=e=>{if(!e||typeof e!=`string`)return e;let t=e.lastIndexOf(` 572`);if(t===-1)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(Xde.test(i)&&!n.match(Zde)){let t=r.split(` 573`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}if(Qde.test(i)&&!n.match($de)){let t=r.split(` 574`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}return e},tfe=RegExp(`(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])`,`gu`),nfe=e=>!e||typeof e!=`string`||!e.includes(`~`)?e:e.replace(tfe,(t,n)=>x0(e,n)?t:`\\~`),rfe=e=>{let t=e.match(pde);if(t){let n=t[2];if(!n||C0.test(n))return e;let r=e.lastIndexOf(t[1]);if(x0(e,r)||S0(e,r))return e;if(e.match(T0)?.length%2==1)return`${e}~~`}else{let t=e.match(vde);if(t){let n=e.lastIndexOf(t[0].slice(0,2));if(x0(e,n)||S0(e,n))return e;if(e.match(T0)?.length%2==1)return`${e}~`}}return e},R0=e=>e!==!1,ife=e=>e===!0,z0={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},afe=[{handler:{name:`singleTilde`,handle:nfe,priority:z0.SINGLE_TILDE},optionKey:`singleTilde`},{handler:{name:`comparisonOperators`,handle:ode,priority:z0.COMPARISON_OPERATORS},optionKey:`comparisonOperators`},{handler:{name:`htmlTags`,handle:zde,priority:z0.HTML_TAGS},optionKey:`htmlTags`},{handler:{name:`setextHeadings`,handle:efe,priority:z0.SETEXT_HEADINGS},optionKey:`setextHeadings`},{handler:{name:`links`,handle:L0,priority:z0.LINKS},optionKey:`links`,earlyReturn:e=>e.endsWith(`](streamdown:incomplete-link)`)},{handler:{name:`boldItalic`,handle:Lde,priority:z0.BOLD_ITALIC},optionKey:`boldItalic`},{handler:{name:`bold`,handle:Dde,priority:z0.BOLD},optionKey:`bold`},{handler:{name:`italicDoubleUnderscore`,handle:kde,priority:z0.ITALIC_DOUBLE_UNDERSCORE},optionKey:`italic`},{handler:{name:`italicSingleAsterisk`,handle:jde,priority:z0.ITALIC_SINGLE_ASTERISK},optionKey:`italic`},{handler:{name:`italicSingleUnderscore`,handle:Pde,priority:z0.ITALIC_SINGLE_UNDERSCORE},optionKey:`italic`},{handler:{name:`inlineCode`,handle:Hde,priority:z0.INLINE_CODE},optionKey:`inlineCode`},{handler:{name:`strikethrough`,handle:rfe,priority:z0.STRIKETHROUGH},optionKey:`strikethrough`},{handler:{name:`katex`,handle:Kde,priority:z0.KATEX},optionKey:`katex`},{handler:{name:`inlineKatex`,handle:qde,priority:z0.INLINE_KATEX},optionKey:`inlineKatex`}],ofe=e=>{let t=e?.linkMode??`protocol`;return afe.filter(({handler:t,optionKey:n})=>t.name===`links`?R0(e?.links)||R0(e?.images):t.name===`inlineKatex`?ife(e?.inlineKatex):R0(e?.[n])).map(({handler:e,earlyReturn:n})=>e.name===`links`?{handler:b0(y0({},e),{handle:e=>L0(e,t)}),earlyReturn:t===`protocol`?n:void 0}:{handler:e,earlyReturn:n})},sfe=(e,t)=>{if(!e||typeof e!=`string`)return e;let n=e.endsWith(` `)&&!e.endsWith(` `)?e.slice(0,-1):e,r=ofe(t),i=(t?.handlers??[]).map(e=>({handler:b0(y0({},e),{priority:e.priority??z0.DEFAULT}),earlyReturn:void 0})),a=[...r,...i].sort((e,t)=>(e.handler.priority??0)-(t.handler.priority??0));for(let{handler:e,earlyReturn:t}of a)if(n=e.handle(n),t!=null&&t(n))return n;return n};function B0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var V0=B0();function H0(e){V0=e}var U0={exec:()=>null};function W0(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;
vendor: 4,234 bytes, line 574
574return i=i.replace(G0.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var cfe=(()=>{try{return!0}catch{return!1}})(),G0={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)}}>`)},lfe=/^(?:[ \t]*(?:\n|$))+/,ufe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,dfe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,K0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ffe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,q0=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,J0=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Y0=W0(J0).replace(/bull/g,q0).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(),pfe=W0(J0).replace(/bull/g,q0).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(),X0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,mfe=/^[^\n]+/,Z0=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,hfe=W0(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Z0).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gfe=W0(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,q0).getRegex(),Q0=`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`,$0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_fe=W0(`^ {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|/?>
574)[\\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`,$0).replace(`tag`,Q0).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),e2=W0(X0).replace(`hr`,K0).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`,Q0).getRegex(),t2={blockquote:W0(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,e2).getRegex(),code:ufe,def:hfe,fences:dfe,heading:ffe,hr:K0,html:_fe,lheading:Y0,list:gfe,newline:lfe,paragraph:e2,table:U0,text:mfe},n2=W0(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,K0).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`,Q0).getRegex(),vfe={...t2,lheading:pfe,table:n2,paragraph:W0(X0).replace(`hr`,K0).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,n2).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`,Q0).getRegex()},yfe={...t2,html:W0(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,$0).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:U0,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:W0(X0).replace(`hr`,K0).replace(`heading`,` *#{1,6} *[^ 575]`).replace(`lheading`,Y0).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},bfe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,xfe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,r2=/^( {2,}|\\)\n(?!\s*$)/,Sfe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,i2=/[\p{P}\p{S}]/u,a2=/[\s\p{P}\p{S}]/u,o2=/[^\s\p{P}\p{S}]/u,Cfe=W0(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,a2).getRegex(),s2=/(?!~)[\p{P}\p{S}]/u,wfe=/(?!~)[\s\p{P}\p{S}]/u,Tfe=/(?:[^\s\p{P}\p{S}]|~)/u,Efe=W0(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,cfe?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),c2=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Dfe=W0(c2,`u`).replace(/punct/g,i2).getRegex(),Ofe=W0(c2,`u`).replace(/punct/g,s2).getRegex(),l2=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,kfe=W0(l2,`gu`).replace(/notPunctSpace/g,o2).replace(/punctSpace/g,a2).replace(/punct/g,i2).getRegex(),Afe=W0(l2,`gu`).replace(/notPunctSpace/g,Tfe).replace(/punctSpace/g,wfe).replace(/punct/g,s2).getRegex(),jfe=W0(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,o2).replace(/punctSpace/g,a2).replace(/punct/g,i2).getRegex(),Mfe=W0(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,i2).getRegex(),Nfe=W0(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,o2).replace(/punctSpace/g,a2).replace(/punct/g,i2).getRegex(),Pfe=W0(/\\(punct)/,`gu`).replace(/punct/g,i2).getRegex(),Ffe=W0(/^<(scheme:[^\s\x00-\x1f<>]*|email)>
575/).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(),Ife=W0($0).replace(`(?:-->|$)`,`-->`).getRegex(),Lfe=W0(`^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`,Ife).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),u2=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Rfe=W0(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,u2).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),d2=W0(/^!?\[(label)\]\[(ref)\]/).replace(`label`,u2).replace(`ref`,Z0).getRegex(),f2=W0(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Z0).getRegex(),zfe=W0(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,d2).replace(`nolink`,f2).getRegex(),p2=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,m2={_backpedal:U0,anyPunctuation:Pfe,autolink:Ffe,blockSkip:Efe,br:r2,code:xfe,del:U0,delLDelim:U0,delRDelim:U0,emStrongLDelim:Dfe,emStrongRDelimAst:kfe,emStrongRDelimUnd:jfe,escape:bfe,link:Rfe,nolink:f2,punctuation:Cfe,reflink:d2,reflinkSearch:zfe,tag:Lfe,text:Sfe,url:U0},Bfe={...m2,link:W0(/^!?\[(label)\]\((.*?)\)/).replace(`label`,u2).getRegex(),reflink:W0(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,u2).getRegex()},h2={...m2,emStrongRDelimAst:Afe,emStrongLDelim:Ofe,delLDelim:Mfe,delRDelim:Nfe,url:W0(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,p2).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:W0(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,p2).getRegex()},Vfe={...h2,br:W0(r2).replace(`{2,}`,`*`).getRegex(),text:W0(h2.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},g2={normal:t2,gfm:vfe,pedantic:yfe},_2={normal:m2,gfm:h2,breaks:Vfe,pedantic:Bfe},Hfe={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},v2=e=>Hfe[e];function y2(e,t){if(t){if(G0.escapeTest.test(e))return e.replace(G0.escapeReplace,v2)}else if(G0.escapeTestNoEncode.test(e))return e.replace(G0.escapeReplaceNoEncode,v2);return e}function b2(e){try{e=encodeURI(e).replace(G0.percentDecode,`%`)}catch{return null}return e}function x2(e,t){let n=e.replace(G0.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(G0.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(G0.slashPipe,`|`);return n}function S2(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Ufe(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Wfe(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}function C2(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Gfe(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(` 576`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` 577`)}var w2=class{options;rules;lexer;constructor(e){this.options=e||V0}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:S2(e,` 578`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Gfe(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=S2(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:S2(t[0],` 579`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=S2(t[0],` 580`).split(` 581`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(` 582`),c=s.replace(this.rules.other.blockquoteSetextReplace,` 583 $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n} 584${s}`:s,r=r?`${r} 585${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;
vendor: 21,026 bytes, lines 585-631
585if(u?.type===`blockquote`){let t=u,a=t.raw+` 586`+e.join(` 587`),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+` 588`+e.join(` 589`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(` 590`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Wfe(t[2].split(` 591`,1)[0],t[1].length),l=e.split(` 592`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+` 593`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(` 594`,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=` 595`+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=` 596`+l}u=!l.trim(),r+=p+` 597`,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of 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=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(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:t[1]===`pre`||t[1]===`script`||t[1]===`style`,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=x2(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(` 598`):[],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(x2(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)===` 599`?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=S2(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Ufe(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?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)),C2(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 C2(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{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]===`@`)e=t[0],n=`mailto:`+e;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=t[1]===`www.`?`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}}}},T2=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||V0,this.options.tokenizer=this.options.tokenizer||new w2,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:G0,block:g2.normal,inline:_2.normal};this.options.pedantic?(t.block=g2.pedantic,t.inline=_2.pedantic):this.options.gfm&&(t.block=g2.gfm,this.options.breaks?t.inline=_2.breaks:t.inline=_2.gfm),this.tokenizer.rules=t}static get rules(){return{block:g2,inline:_2}}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(G0.carriageReturn,` 600`),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(G0.tabCharGlobal,` `).replace(G0.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):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=` 601`: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(` 602`)?``:` 603`)+r.raw,n.text+=` 604`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(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(` 605`)?``:` 606`)+r.raw,n.text+=` 607`+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)){e=e.substring(r.raw.length),t.push(r);continue}if(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=>{r=e.call({lexer:this},n),typeof r==`number`&&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(` 608`)?``:` 609`)+r.raw,a.text+=` 610`+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(` 611`)?``:` 612`)+r.raw,n.text+=` 613`+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}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},E2=class{options;parser;constructor(e){this.options=e||V0}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(G0.notSpaceStart)?.[0],i=e.replace(G0.endingNewline,``)+` 614`;return r?`<pre><code class="language-`+y2(r)+`">`+(n?i:y2(i,!0))+`</code></pre> 615`:`<pre><code>`+(n?i:y2(i,!0))+`</code></pre> 616`}blockquote({tokens:e}){return`<blockquote> 617${this.parser.parse(e)}</blockquote> 618`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> 619`}hr(e){return`<hr> 620`}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`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`> 621`+r+`</`+i+`> 622`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li> 623`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 624`}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&&=`<tbody>${r}</tbody>`,`<table> 625<thead> 626`+t+`</thead> 627`+r+`</table> 628`}tablerow({text:e}){return`<tr> 629${e}</tr> 630`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}> 631`}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>${y2(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=b2(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+y2(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=b2(e);if(i===null)return y2(n);e=i;let a=`<img src="${e}" alt="${y2(n)}"`;return t&&(a+=` title="${y2(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:y2(e.text)}},D2=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}},O2=class e{options;renderer;textRenderer;constructor(e){this.options=e||V0,this.options.renderer=this.options.renderer||new E2,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new D2}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=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(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 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(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},k2=class{options;block;constructor(e){this.options=e||V0}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?T2.lex:T2.lexInline}provideParser(e=this.block){return e?O2.parse:O2.parseInline}},A2=new class{defaults=B0();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=O2;Renderer=E2;TextRenderer=D2;Lexer=T2;Tokenizer=w2;Hooks=k2;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`:{let e=r;
vendor: 5,569 bytes, lines 631-632
631for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.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 r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)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&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(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 E2(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=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new w2(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=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new k2;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=n,i=e.hooks[r],a=t[r];k2.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&k2.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.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 T2.lex(e,t??this.defaults)}parser(e,t){return O2.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(this.defaults.async===!0&&r.async===!1)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`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)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?T2.lex:T2.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?O2.parse:O2.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?T2.lex:T2.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?O2.parse:O2.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+=` 632Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+y2(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function j2(e,t){return A2.parse(e,t)}j2.options=j2.setOptions=function(e){return A2.setOptions(e),j2.defaults=A2.defaults,H0(j2.defaults),j2},j2.getDefaults=B0,j2.defaults=V0,j2.use=function(...e){return A2.use(...e),j2.defaults=A2.defaults,H0(j2.defaults),j2},j2.walkTokens=function(e,t){return A2.walkTokens(e,t)},j2.parseInline=A2.parseInline,j2.Parser=O2,j2.parser=O2.parse,j2.Renderer=E2,j2.TextRenderer=D2,j2.Lexer=T2,j2.lexer=T2.lex,j2.Tokenizer=w2,j2.Hooks=k2,j2.parse=j2,j2.options,j2.setOptions,j2.use,j2.walkTokens,j2.parseInline,O2.parse,T2.lex;var M2=e(i(),1),Kfe=300,qfe=`300px`,Jfe=500;function Yfe(e={}){let{immediate:t=!1,debounceDelay:n=Kfe,rootMargin:r=qfe,idleTimeout:i=Jfe}=e,[a,o]=(0,D.useState)(!1),s=(0,D.useRef)(null),c=(0,D.useRef)(null),l=(0,D.useRef)(null),u=(0,D.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),d=(0,D.useMemo)(()=>typeof window<`u`&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):u,[u]),f=(0,D.useMemo)(()=>typeof window<`u`&&window.cancelIdleCallback?e=>
632window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,D.useEffect)(()=>{if(t){o(!0);return}let e=s.current;if(!e)return;c.current&&=(clearTimeout(c.current),null),l.current&&=(f(l.current),null);let a=()=>{c.current&&=(clearTimeout(c.current),null),l.current&&=(f(l.current),null)},u=e=>{l.current=d(t=>{t.timeRemaining()>0||t.didTimeout?(o(!0),e.disconnect()):l.current=d(()=>{o(!0),e.disconnect()},{timeout:i/2})},{timeout:i})},p=e=>{a(),c.current=window.setTimeout(()=>{var t;let n=e.takeRecords();(n.length===0||(t=n.at(-1)?.isIntersecting)!=null&&t)&&u(e)},n)},m=(e,t)=>{e.isIntersecting?p(t):a()},h=new IntersectionObserver(e=>{for(let t of e)m(t,h)},{rootMargin:r,threshold:0});return h.observe(e),()=>{c.current&&clearTimeout(c.current),l.current&&f(l.current),h.disconnect()}},[t,n,r,i,f,d]),{shouldRender:a,containerRef:s}}var N2=/\s/,Xfe=/^\s+$/,Zfe=new Set([`code`,`pre`,`svg`,`math`,`annotation`]),Qfe=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`element`,$fe=e=>e.some(e=>Qfe(e)&&Zfe.has(e.tagName)),epe=e=>{let t=[],n=``,r=!1;for(let i of e){let e=N2.test(i);e!==r&&n&&(t.push(n),n=``),n+=i,r=e}return n&&t.push(n),t},tpe=e=>{let t=[],n=``;for(let r of e)N2.test(r)?n+=r:(n&&=(t.push(n),``),t.push(r));return n&&t.push(n),t},npe=(e,t,n,r,i,a)=>{let o=`--sd-animation:sd-${t};--sd-duration:${i?0:n}ms;--sd-easing:${r}`;return a&&(o+=`;--sd-delay:${a}ms`),{type:`element`,tagName:`span`,properties:{"data-sd-animate":!0,style:o},children:[{type:`text`,value:e}]}},rpe=(e,t,n,r,i)=>{let a=t.at(-1);if(!(a&&`children`in a))return;if($fe(t))return KC;let o=a,s=o.children.indexOf(e);if(s===-1)return;let c=e.value;if(!c.trim()){i.count+=c.length;return}let l=n.sep===`char`?tpe(c):epe(c),u=r.prevContentLength,d=l.map(e=>{let t=i.count;if(i.count+=e.length,Xfe.test(e))return{type:`text`,value:e};let r=u>0&&t<u,a=r?0:i.newIndex++*n.stagger;return npe(e,n.animation,n.duration,n.easing,r,a)});return o.children.splice(s,1,...d),s+d.length},ipe=0;function P2(e){let t={animation:e?.animation??`fadeIn`,duration:e?.duration??150,easing:e?.easing??`ease`,sep:e?.sep??`word`,stagger:e?.stagger??40},n={prevContentLength:0,lastRenderCharCount:0},r=ipe++,i=()=>e=>{let r={count:0,newIndex:0};qC(e,`text`,(e,i)=>rpe(e,i,t,n,r)),n.lastRenderCharCount=r.count,n.prevContentLength=0};return Object.defineProperty(i,"name",{value:`rehypeAnimate$${r}`}),{name:`animate`,type:`animate`,rehypePlugin:i,setPrevContentLength(e){n.prevContentLength=e},getLastRenderCharCount(){let e=n.lastRenderCharCount;return n.lastRenderCharCount=0,e}}}P2();var F2=(0,D.createContext)(!1),ape=()=>(0,D.useContext)(F2),I2=(...e)=>st(ot(e)),ope=(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(` `)},spe=e=>e?(...t)=>ope(e,st(ot(t))):I2,L2=(e,t,n)=>{let r=typeof t==`string`&&n.startsWith(`text/csv`)?``:``,i=typeof t==`string`?new Blob([r+t],{type:n}):t,a=URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(a)},R2=(0,D.createContext)(I2),z2=()=>(0,D.useContext)(R2),cpe=I2(`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`),lpe=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},B2=(0,D.memo)(({children:e,result:t,language:n,className:r,startLine:i,lineNumbers:a=!0,...o})=>{let s=z2(),c=(0,D.useMemo)(()=>s(cpe),[s]),l=(0,D.useMemo)(()=>{let e={};return t.bg&&(e[`--sdm-bg`]=t.bg),t.fg&&(e[`--sdm-fg`]=t.fg),t.rootStyle&&Object.assign(e,lpe(t.rootStyle)),e},[t.bg,t.fg,t.rootStyle]);return(0,O.jsx)(`div`,{className:s(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,O.jsx)(`pre`,{className:s(r,`bg-[var(--sdm-bg,inherit]`,`dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]`),style:l,children:(0,O.jsx)(`code`,{className:a?s(`[counter-increment:line_0] [counter-reset:line]`):void 0,style:a&&i&&i>1?{counterReset:`line ${i-1}`}:void 0,children:t.tokens.map((e,t)=>(0,O.jsx)(`span`,{className:a?c:void 0,children:e.length===0||e.length===1&&e[0].content===``?` 633`: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))t===`color`?n[`--sdm-c`]=i:t===`background-color`?(n[`--sdm-tbg`]=i,r=!0):n[t]=i;return(0,O.jsx)(`span`,{className:s(`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),upe=({className:e,language:t,style:n,isIncomplete:r,...i})=>(0,O.jsx)(`div`,{className:z2()(`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}),V2=(0,D.createContext)({code:``}),H2=()=>(0,D.useContext)(V2),dpe=({language:e})=>{let t=z2();return(0,O.jsx)(`div`,{className:t(`flex h-8 items-center text-muted-foreground text-xs`),"data-language":e,"data-streamdown":`code-block-header`,children:(0,O.jsx)(`span`,{className:t(`ml-1 font-mono lowercase`),children:e})})},fpe=e=>{let t=e.length;for(;t>0&&e[t-1]===` 634`;)t--;return e.slice(0,t)},ppe=(0,D.lazy)(()=>T(()=>import(`./highlighted-body-OFNGDK62-BHK1vAA5.js`).then(e=>({default:e.HighlightedCodeBlockBody})),__vite__mapDeps([180,1,181,182]))),mpe=({code:e,language:t,className:n,children:r,isIncomplete:i=!1,startLine:a,lineNumbers:o,...s})=>{let c=z2(),l=(0,D.useMemo)(()=>fpe(e),[e]),u=(0,D.useMemo)(()=>({bg:`transparent`,fg:`inherit`,tokens:l.split(` 635`).map(e=>[{content:e,color:`inherit`,bgColor:`transparent`,htmlStyle:{},offset:0}])}),[l]);return(0,O.jsx)(V2.Provider,{value:{code:e},children:(0,O.jsxs)(upe,{isIncomplete:i,language:t,children:[(0,O.jsx)(dpe,{language:t}),r?(0,O.jsx)(`div`,{className:c(`pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end`),children:(0,O.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,O.jsx)(D.Suspense,{fallback:(0,O.jsx)(B2,{className:n,language:t,lineNumbers:o,result:u,startLine:a,...s}),children:(0,O.jsx)(ppe,{className:n,code:l,language:t,lineNumbers:o,raw:u,startLine:a,...s})})]})})},U2={CheckIcon:e=>(0,O.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,O.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,O.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,O.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,O.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,O.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.
63568342 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,O.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,O.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,O.jsxs)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:[(0,O.jsx)(`path`,{d:`M8 0V4`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,O.jsx)(`path`,{d:`M8 16V12`,opacity:`0.5`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,O.jsx)(`path`,{d:`M3.29773 1.52783L5.64887 4.7639`,opacity:`0.9`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,O.jsx)(`path`,{d:`M12.7023 1.52783L10.3511 4.7639`,opacity:`0.1`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,O.jsx)(`path`,{d:`M12.7023 14.472L10.3511 11.236`,opacity:`0.4`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,O.jsx)(`path`,{d:`M3.29773 14.472L5.64887 11.236`,opacity:`0.6`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,O.jsx)(`path`,{d:`M15.6085 5.52783L11.8043 6.7639`,opacity:`0.2`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,O.jsx)(`path`,{d:`M0.391602 10.472L4.19583 9.23598`,opacity:`0.7`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,O.jsx)(`path`,{d:`M15.6085 10.4722L11.8043 9.2361`,opacity:`0.3`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,O.jsx)(`path`,{d:`M0.391602 5.52783L4.19583 6.7639`,opacity:`0.8`,stroke:`currentColor`,strokeWidth:`1.5`})]}),Maximize2Icon:e=>(0,O.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,O.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,O.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,O.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,O.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,O.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,O.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,O.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,O.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,O.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`})})},W2=(0,D.createContext)(U2),hpe=(e,t)=>{if(e===t)return!0;
vendor: 14,497 bytes, line 635
635if(!(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])},G2=({icons:e,children:t})=>{let n=(0,D.useRef)(e),r=(0,D.useRef)(e?{...U2,...e}:U2);hpe(n.current,e)||(n.current=e,r.current=e?{...U2,...e}:U2);let i=r.current;return(0,O.jsx)(W2.Provider,{value:i,children:t})},K2=()=>(0,D.useContext)(W2),q2={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`},J2=(0,D.createContext)(q2),Y2=()=>(0,D.useContext)(J2),X2=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...o})=>{let s=z2(),[c,l]=(0,D.useState)(!1),u=(0,D.useRef)(0),{code:d}=H2(),{isAnimating:f}=(0,D.useContext)(a3),p=Y2(),m=a??d,h=async()=>{var r;if(typeof window>`u`||!((r=navigator==null?void 0:navigator.clipboard)!=null&&r.writeText)){t?.(Error(`Clipboard API not available`));return}try{c||(await navigator.clipboard.writeText(m),l(!0),e?.(),u.current=window.setTimeout(()=>l(!1),n))}catch(e){t?.(e)}};(0,D.useEffect)(()=>()=>{window.clearTimeout(u.current)},[]);let g=K2(),_=c?g.CheckIcon:g.CopyIcon;return(0,O.jsx)(`button`,{className:s(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,i),"data-streamdown":`code-block-copy-button`,disabled:f,onClick:h,title:p.copyCode,type:`button`,...o,children:r??(0,O.jsx)(_,{size:14})})},Z2={"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`},gpe=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...o})=>{let s=z2(),{code:c}=H2(),{isAnimating:l}=(0,D.useContext)(a3),u=Y2(),d=K2(),f=a??c,p=`file.${n&&n in Z2?Z2[n]:`txt`}`;return(0,O.jsx)(`button`,{className:s(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,i),"data-streamdown":`code-block-download-button`,disabled:l,onClick:()=>{try{L2(p,f,`text/plain`),e?.()}catch(e){t?.(e)}},title:u.downloadFile,type:`button`,...o,children:r??(0,O.jsx)(d.DownloadIcon,{size:14})})},Q2=()=>{let{Loader2Icon:e}=K2(),t=z2();return(0,O.jsxs)(`div`,{className:t(`w-full divide-y divide-border overflow-hidden rounded-xl border border-border`),children:[(0,O.jsx)(`div`,{className:t(`h-[46px] w-full bg-muted/80`)}),(0,O.jsx)(`div`,{className:t(`flex w-full items-center justify-center p-4`),children:(0,O.jsx)(e,{className:t(`size-4 animate-spin`)})})]})},_pe=/\.[^/.]+$/,vpe=({node:e,className:t,src:n,alt:r,onLoad:i,onError:a,...o})=>{let{DownloadIcon:s}=K2(),c=z2(),l=(0,D.useRef)(null),[u,d]=(0,D.useState)(!1),[f,p]=(0,D.useState)(!1),m=Y2(),h=o.width!=null||o.height!=null,g=(u||h)&&!f,_=f&&!h;(0,D.useEffect)(()=>{let e=l.current;if(e!=null&&e.complete){let t=e.naturalWidth>0;d(t),p(!t)}},[]);let v=(0,D.useCallback)(e=>{d(!0),p(!1),i?.(e)},[i]),y=(0,D.useCallback)(e=>{d(!1),p(!0),a?.(e)},[a]),b=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(`.`)&&i!==void 0&&i.length<=4,o=``;if(a)o=t;else{let n=e.type,i=`png`;n.includes(`jpeg`)||n.includes(`jpg`)?i=`jpg`:n.includes(`png`)?i=`png`:n.includes(`svg`)?i=`svg`:n.includes(`gif`)?i=`gif`:n.includes(`webp`)&&(i=`webp`),o=`${(r||t||`image`).replace(_pe,``)}.${i}`}L2(o,e,e.type)}catch{window.open(n,`_blank`)}};return n?(0,O.jsxs)(`div`,{className:c(`group relative my-4 inline-block`),"data-streamdown":`image-wrapper`,children:[(0,O.jsx)(`img`,{alt:r,className:c(`max-w-full rounded-lg`,_&&`hidden`,t),"data-streamdown":`image`,onError:y,onLoad:v,ref:l,src:n,...o}),_&&(0,O.jsx)(`span`,{className:c(`text-muted-foreground text-xs italic`),"data-streamdown":`image-fallback`,children:m.imageNotAvailable}),(0,O.jsx)(`div`,{className:c(`pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block`)}),g&&(0,O.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:b,title:m.downloadImage,type:`button`,children:(0,O.jsx)(s,{size:14})})]}):null},$2=0,e4=()=>{$2+=1,$2===1&&(document.body.style.overflow=`hidden`)},t4=()=>{$2=Math.max(0,$2-1),$2===0&&(document.body.style.overflow=``)},ype=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let{CheckIcon:i,CopyIcon:a,ExternalLinkIcon:o,XIcon:s}=K2(),c=z2(),[l,u]=(0,D.useState)(!1),d=Y2(),f=(0,D.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),u(!0),setTimeout(()=>u(!1),2e3)}catch{}},[e]),p=(0,D.useCallback)(()=>{r(),n()},[r,n]);return(0,D.useEffect)(()=>{if(t){e4();let e=e=>{e.key===`Escape`&&n()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),t4()}}},[t,n]),t?(0,O.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=>{e.key===`Escape`&&n()},role:`button`,tabIndex:0,children:(0,O.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,O.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,O.jsx)(s,{size:16})}),(0,O.jsxs)(`div`,{className:c(`flex flex-col gap-2`),children:[(0,O.jsxs)(`div`,{className:c(`flex items-center gap-2 font-semibold text-lg`),children:[(0,O.jsx)(o,{size:20}),(0,O.jsx)(`span`,{children:d.openExternalLink})]}),(0,O.jsx)(`p`,{className:c(`text-muted-foreground text-sm`),children:d.externalLinkWarning})]}),(0,O.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,O.jsxs)(`div`,{className:c(`flex gap-2`),children:[(0,O.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:f,type:`button`,children:l?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(i,{size:14}),(0,O.jsx)(`span`,{children:d.copied})]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(a,{size:14}),(0,O.jsx)(`span`,{children:d.copyLink})]})}),(0,O.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:p,type:`button`,children:[(0,O.jsx)(o,{size:14}),(0,O.jsx)(`span`,{children:d.openLink})]})]})]})}):null},n4=(0,D.createContext)(null),r4=()=>(0,D.useContext)(n4),bpe=()=>r4()?.code??null,i4=()=>r4()?.mermaid??null,xpe=e=>{var t;let n=r4();return n!=null&&n.renderers&&e&&(t=n.renderers.find(t=>Array.isArray(t.language)?t.language.includes(e):t.language===e))!=null?t:null},Spe=(e,t)=>new Promise((t,n)=>{let r=`data:image/svg+xml;base64,`+btoa(unescape(encodeURIComponent(e))),i=new Image;i.crossOrigin=`anonymous`,i.onload=()=>{let e=document.createElement(`canvas`),r=i.width*5,a=i.height*5;e.width=r,e.height=a;let o=e.getContext(`2d`);if(!o){n(Error(`Failed to create 2D canvas context for PNG export`));return}o.drawImage(i,0,0,r,a),e.toBlob(e=>{if(!e){n(Error(`Failed to create PNG blob`));return}t(e)},`image/png`)},i.onerror=()=>n(Error(`Failed to load SVG image`)),i.src=r}),Cpe=({chart:e,children:t,className:n,onDownload:r,config:i,onError:a})=>{let o=z2(),[s,c]=(0,D.useState)(!1),l=(0,D.useRef)(null),{isAnimating:u}=(0,D.useContext)(a3),d=K2(),f=i4(),p=Y2(),m=async t=>{try{if(t===`mmd`){L2(`diagram.mmd`,e,`text/plain`),c(!1),r?.(t);return}if(!f){a?.(Error(`Mermaid plugin not available`));return}let n=f.getMermaid(i),o=e.split(``).reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),s=`mermaid-${Math.abs(o)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:l}=await n.render(s,e);if(!l){a?.(Error(`SVG not found. Please wait for the diagram to render.`));return}if(t===`svg`){L2(`diagram.svg`,l,`image/svg+xml`),c(!1),r?.(t);return}if(t===`png`){L2(`diagram.png`,await Spe(l),`image/png`),r?.(t),c(!1);return}}catch(e){a?.(e)}};return(0,D.useEffect)(()=>{let e=e=>{let t=e.composedPath();l.current&&!t.includes(l.current)&&c(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,O.jsxs)(`div`,{className:o(`relative`),ref:l,children:[(0,O.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:u,onClick:()=>c(!s),title:p.downloadDiagram,type:`button`,children:t??(0,O.jsx)(d.DownloadIcon,{size:14})}),s?(0,O.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,O.jsx)(`button`,{className:o(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`svg`),title:p.downloadDiagramAsSvg,type:`button`,children:p.mermaidFormatSvg}),(0,O.jsx)(`button`,{className:o(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`png`),title:p.downloadDiagramAsPng,type:`button`,children:p.mermaidFormatPng}),(0,O.jsx)(`button`,{className:o(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`mmd`),title:p.downloadDiagramAsMmd,type:`button`,children:p.mermaidFormatMmd})]}):null]})},wpe=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...a})=>{let{Maximize2Icon:o,XIcon:s}=K2(),c=z2(),[l,u]=(0,D.useState)(!1),{isAnimating:d,controls:f}=(0,D.useContext)(a3),p=Y2(),m=(()=>
635{if(typeof f==`boolean`)return f;let e=f.mermaid;return e===!1?!1:e===!0||e===void 0||e.panZoom!==!1})(),h=()=>{u(!l)};return(0,D.useEffect)(()=>{if(l){e4();let e=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),t4()}}},[l]),(0,D.useEffect)(()=>{l?n?.():r&&r()},[l,n,r]),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`button`,{className:c(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,i),disabled:d,onClick:h,title:p.viewFullscreen,type:`button`,...a,children:(0,O.jsx)(o,{size:14})}),l?(0,M2.createPortal)((0,O.jsxs)(`div`,{className:c(`fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm`),onClick:h,onKeyDown:e=>{e.key===`Escape`&&h()},role:`button`,tabIndex:0,children:[(0,O.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:h,title:p.exitFullscreen,type:`button`,children:(0,O.jsx)(s,{size:20})}),(0,O.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,O.jsx)(c3,{chart:e,className:c(`size-full [&_svg]:h-auto [&_svg]:w-auto`),config:t,fullscreen:!0,showControls:m})})]}),document.body):null]})},a4=e=>{let t=[],n=[],r=e.querySelectorAll(`thead th`);for(let e of r)t.push(e.textContent?.trim()||``);let i=e.querySelectorAll(`tbody tr`);for(let e of i){let t=[],r=e.querySelectorAll(`td`);for(let e of r)t.push(e.textContent?.trim()||``);n.push(t)}return{headers:t,rows:n}},o4=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===` 636`)&&(t=!0)}return t?n?`"${e.replace(/"/g,`""`)}"`:`"${e}"`:e},i=t.length>0?n.length+1:n.length,a=Array(i),o=0;t.length>0&&(a[o]=t.map(r).join(`,`),o+=1);for(let e of n)a[o]=e.map(r).join(`,`),o+=1;return a.join(` 637`)},Tpe=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1;for(let n of e)if(n===` `||n===` 638`||n===`\r`){t=!0;break}if(!t)return e;let n=[];for(let t of e)t===` `?n.push(`\\t`):t===` 639`?n.push(`\\n`):t===`\r`?n.push(`\\r`):n.push(t);return n.join(``)},i=t.length>0?n.length+1:n.length,a=Array(i),o=0;t.length>0&&(a[o]=t.map(r).join(` `),o+=1);for(let e of n)a[o]=e.map(r).join(` `),o+=1;return a.join(` 640`)},s4=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(``)},c4=e=>{let{headers:t,rows:n}=e;if(t.length===0)return``;let r=Array(n.length+2),i=0;r[i]=`| ${t.map(e=>s4(e)).join(` | `)} |`,i+=1;let a=Array(t.length);for(let e=0;e<t.length;e+=1)a[e]=`---`;r[i]=`| ${a.join(` | `)} |`,i+=1;for(let e of 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?s4(e[r]):``;r[i]=`| ${n.join(` | `)} |`,i+=1}else r[i]=`| ${e.map(e=>s4(e)).join(` | `)} |`,i+=1;return r.join(` 641`)},l4=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let a=z2(),[o,s]=(0,D.useState)(!1),[c,l]=(0,D.useState)(!1),u=(0,D.useRef)(null),d=(0,D.useRef)(0),{isAnimating:f}=(0,D.useContext)(a3),p=Y2(),m=async e=>{var t;if(typeof window>`u`||!((t=navigator==null?void 0:navigator.clipboard)!=null&&t.write)){r?.(Error(`Clipboard API not available`));return}try{let t=(u.current?.closest(`[data-streamdown="table-wrapper"]`))?.querySelector(`table`);if(!t){r?.(Error(`Table not found`));return}let a=a4(t),o=({csv:o4,tsv:Tpe,md:c4}[e]||c4)(a),c=new ClipboardItem({"text/plain":new Blob([o],{type:`text/plain`}),"text/html":new Blob([t.outerHTML],{type:`text/html`})});await navigator.clipboard.write([c]),l(!0),s(!1),n?.(e),d.current=window.setTimeout(()=>l(!1),i)}catch(e){r?.(e)}};(0,D.useEffect)(()=>{let e=e=>{let t=e.composedPath();u.current&&!t.includes(u.current)&&s(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e),window.clearTimeout(d.current)}},[]);let h=K2(),g=c?h.CheckIcon:h.CopyIcon;return(0,O.jsxs)(`div`,{className:a(`relative`),ref:u,children:[(0,O.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:f,onClick:()=>s(!o),title:p.copyTable,type:`button`,children:e??(0,O.jsx)(g,{height:14,width:14})}),o?(0,O.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,O.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`md`),title:p.copyTableAsMarkdown,type:`button`,children:p.tableFormatMarkdown}),(0,O.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`csv`),title:p.copyTableAsCsv,type:`button`,children:p.tableFormatCsv}),(0,O.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`tsv`),title:p.copyTableAsTsv,type:`button`,children:p.tableFormatTsv})]}):null]})},u4=({children:e,className:t,onDownload:n,onError:r})=>{let i=z2(),[a,o]=(0,D.useState)(!1),s=(0,D.useRef)(null),{isAnimating:c}=(0,D.useContext)(a3),l=Y2(),u=K2(),d=e=>{try{let t=(s.current?.closest(`[data-streamdown="table-wrapper"]`))?.querySelector(`table`);if(!t){r?.(Error(`Table not found`));return}let i=a4(t),a=e===`csv`?o4(i):c4(i);L2(`table.${e===`csv`?`csv`:`md`}`,a,e===`csv`?`text/csv`:`text/markdown`),o(!1),n?.(e)}catch(e){r?.(e)}};return(0,D.useEffect)(()=>{let e=e=>{let t=e.composedPath();s.current&&!t.includes(s.current)&&o(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,O.jsxs)(`div`,{className:i(`relative`),ref:s,children:[(0,O.jsx)(`button`,{className:i(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:c,onClick:()=>o(!a),title:l.downloadTable,type:`button`,children:e??(0,O.jsx)(u.DownloadIcon,{size:14})}),a?(0,O.jsxs)(`div`,{className:i(`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,O.jsx)(`button`,{className:i(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>d(`csv`),title:l.downloadTableAsCsv,type:`button`,children:l.tableFormatCsv}),(0,O.jsx)(`button`,{className:i(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>
641d(`markdown`),title:l.downloadTableAsMarkdown,type:`button`,children:l.tableFormatMarkdown})]}):null]})},Epe=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:i,XIcon:a}=K2(),o=z2(),[s,c]=(0,D.useState)(!1),{isAnimating:l}=(0,D.useContext)(a3),u=Y2(),d=()=>{c(!0)},f=()=>{c(!1)};return(0,D.useEffect)(()=>{if(s){e4();let e=e=>{e.key===`Escape`&&c(!1)};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),t4()}}},[s]),(0,O.jsxs)(O.Fragment,{children:[(0,O.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:l,onClick:d,title:u.viewFullscreen,type:`button`,children:(0,O.jsx)(i,{size:14})}),s?(0,M2.createPortal)((0,O.jsx)(`div`,{"aria-label":u.viewFullscreen,"aria-modal":`true`,className:o(`fixed inset-0 z-50 flex flex-col bg-background`),"data-streamdown":`table-fullscreen`,onClick:f,onKeyDown:e=>{e.key===`Escape`&&f()},role:`dialog`,children:(0,O.jsxs)(`div`,{className:o(`flex h-full flex-col`),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:`presentation`,children:[(0,O.jsxs)(`div`,{className:o(`flex items-center justify-end gap-1 p-4`),children:[n?(0,O.jsx)(l4,{}):null,r?(0,O.jsx)(u4,{}):null,(0,O.jsx)(`button`,{className:o(`rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground`),onClick:f,title:u.exitFullscreen,type:`button`,children:(0,O.jsx)(a,{size:20})})]}),(0,O.jsx)(`div`,{className:o(`flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10`),children:(0,O.jsx)(`table`,{className:o(`w-full border-collapse border border-border`),"data-streamdown":`table`,children:e})})]})}),document.body):null]})},Dpe=({children:e,className:t,showControls:n,showCopy:r=!0,showDownload:i=!0,showFullscreen:a=!0,...o})=>{let s=z2(),c=n&&r,l=n&&i,u=n&&a,d=c||l||u;return(0,O.jsxs)(`div`,{className:s(`my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2`),"data-streamdown":`table-wrapper`,children:[d?(0,O.jsxs)(`div`,{className:s(`flex items-center justify-end gap-1`),children:[c?(0,O.jsx)(l4,{}):null,l?(0,O.jsx)(u4,{}):null,u?(0,O.jsx)(Epe,{showCopy:c,showDownload:l,children:e}):null]}):null,(0,O.jsx)(`div`,{className:s(`border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background`),children:(0,O.jsx)(`table`,{className:s(`w-full divide-y divide-border`,t),"data-streamdown":`table`,...o,children:e})})]})},Ope=/startLine=(\d+)/,kpe=/\bnoLineNumbers\b/,Ape=(0,D.lazy)(()=>T(()=>import(`./mermaid-GHXKKRXX-CMZeCbKb.js`).then(e=>({default:e.Mermaid})),[])),jpe=/language-([^\s]+)/;function d4(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return n?.line===r?.line&&n?.column===r?.column&&i?.line===a?.line&&i?.column===a?.column}function f4(e,t){return e.className===t.className&&d4(e.node,t.node)}var p4=(e,t)=>typeof e==`boolean`?e:e[t]!==!1,m4=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.table;return n===!1?!1:n===!0||n===void 0||n[t]!==!1},h4=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.code;return n===!1?!1:n===!0||n===void 0||n[t]!==!1},g4=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0||n[t]!==!1},_4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`ol`,{className:z2()(`list-inside list-decimal whitespace-normal [li_&]:pl-6`,t),"data-streamdown":`ordered-list`,...r,children:e}),(e,t)=>f4(e,t));_4.displayName=`MarkdownOl`;var v4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`li`,{className:z2()(`py-1 [&>p]:inline`,t),"data-streamdown":`list-item`,...r,children:e}),(e,t)=>e.className===t.className&&d4(e.node,t.node));v4.displayName=`MarkdownLi`;var y4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`ul`,{className:z2()(`list-inside list-disc whitespace-normal [li_&]:pl-6`,t),"data-streamdown":`unordered-list`,...r,children:e}),(e,t)=>f4(e,t));y4.displayName=`MarkdownUl`;var b4=(0,D.memo)(({className:e,node:t,...n})=>(0,O.jsx)(`hr`,{className:z2()(`my-6 border-border`,e),"data-streamdown":`horizontal-rule`,...n}),(e,t)=>f4(e,t));b4.displayName=`MarkdownHr`;var x4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`span`,{className:z2()(`font-semibold`,t),"data-streamdown":`strong`,...r,children:e}),(e,t)=>f4(e,t));x4.displayName=`MarkdownStrong`;var S4=(0,D.memo)(({children:e,className:t,href:n,node:r,...i})=>{let a=z2(),{linkSafety:o}=(0,D.useContext)(a3),[s,c]=(0,D.useState)(!1),l=n===`streamdown:incomplete-link`,u=(0,D.useCallback)(async e=>{if(!(!(o!=null&&o.enabled&&n)||l)){if(e.preventDefault(),o.onLinkCheck&&await o.onLinkCheck(n)){window.open(n,`_blank`,`noreferrer`);return}c(!0)}},[o,n,l]),d=(0,D.useCallback)(()=>{n&&window.open(n,`_blank`,`noreferrer`)},[n]),f=(0,D.useCallback)(()=>{c(!1)},[]),p={url:n??``,isOpen:s,onClose:f,onConfirm:d};return o!=null&&o.enabled&&n?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`button`,{className:a(`wrap-anywhere appearance-none text-left font-medium text-primary underline`,t),"data-incomplete":l,"data-streamdown":`link`,onClick:u,type:`button`,children:e}),o.renderModal?o.renderModal(p):(0,O.jsx)(ype,{...p})]}):(0,O.jsx)(`a`,{className:a(`wrap-anywhere font-medium text-primary underline`,t),"data-incomplete":l,"data-streamdown":`link`,href:n,rel:`noreferrer`,target:`_blank`,...i,children:e})},(e,t)=>f4(e,t)&&e.href===t.href);S4.displayName=`MarkdownA`;var C4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`h1`,{className:z2()(`mt-6 mb-2 font-semibold text-3xl`,t),"data-streamdown":`heading-1`,...r,children:e}),(e,t)=>f4(e,t));C4.displayName=`MarkdownH1`;var w4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`h2`,{className:z2()(`mt-6 mb-2 font-semibold text-2xl`,t),"data-streamdown":`heading-2`,...r,children:e}),(e,t)=>f4(e,t));w4.displayName=`MarkdownH2`;var T4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`h3`,{className:z2()(`mt-6 mb-2 font-semibold text-xl`,t),"data-streamdown":`heading-3`,...r,children:e}),(e,t)=>f4(e,t));T4.displayName=`MarkdownH3`;var E4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`h4`,{className:z2()(`mt-6 mb-2 font-semibold text-lg`,t),"data-streamdown":`heading-4`,...r,children:e}),(e,t)=>f4(e,t));E4.displayName=`MarkdownH4`;var D4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`h5`,{className:z2()(`mt-6 mb-2 font-semibold text-base`,t),"data-streamdown":`heading-5`,...r,children:e}),(e,t)=>f4(e,t));D4.displayName=`MarkdownH5`;var O4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`h6`,{className:z2()(`mt-6 mb-2 font-semibold text-sm`,t),"data-streamdown":`heading-6`,...r,children:e}),(e,t)=>f4(e,t));O4.displayName=`MarkdownH6`;var k4=(0,D.memo)(({children:e,className:t,node:n,...r})=>{let{controls:i}=(0,D.useContext)(a3);return(0,O.jsx)(Dpe,{className:t,showControls:p4(i,`table`),showCopy:m4(i,`copy`),showDownload:m4(i,`download`),showFullscreen:m4(i,`fullscreen`),...r,children:e})},(e,t)=>f4(e,t));k4.displayName=`MarkdownTable`;var A4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`thead`,{className:z2()(`bg-muted/80`,t),"data-streamdown":`table-header`,...r,children:e}),(e,t)=>f4(e,t));A4.displayName=`MarkdownThead`;var j4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`tbody`,{className:z2()(`divide-y divide-border`,t),"data-streamdown":`table-body`,...r,children:e}),(e,t)=>f4(e,t));j4.displayName=`MarkdownTbody`;var M4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`tr`,{className:z2()(`border-border`,t),"data-streamdown":`table-row`,...r,children:e}),(e,t)=>f4(e,t));M4.displayName=`MarkdownTr`;var N4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`th`,{className:z2()(`whitespace-nowrap px-4 py-2 text-left font-semibold text-sm`,t),"data-streamdown":`table-header-cell`,...r,children:e}),(e,t)=>f4(e,t));N4.displayName=`MarkdownTh`;var P4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`td`,{className:z2()(`px-4 py-2 text-sm`,t),"data-streamdown":`table-cell`,...r,children:e}),(e,t)=>f4(e,t));P4.displayName=`MarkdownTd`;var F4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`blockquote`,{className:z2()(`my-4 border-muted-foreground
641/30 border-l-4 pl-4 text-muted-foreground italic`,t),"data-streamdown":`blockquote`,...r,children:e}),(e,t)=>f4(e,t));F4.displayName=`MarkdownBlockquote`;var I4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`sup`,{className:z2()(`text-sm`,t),"data-streamdown":`superscript`,...r,children:e}),(e,t)=>f4(e,t));I4.displayName=`MarkdownSup`;var L4=(0,D.memo)(({children:e,className:t,node:n,...r})=>(0,O.jsx)(`sub`,{className:z2()(`text-sm`,t),"data-streamdown":`subscript`,...r,children:e}),(e,t)=>f4(e,t));L4.displayName=`MarkdownSub`;var R4=(0,D.memo)(({children:e,className:t,node:n,...r})=>{if(`data-footnotes`in r){let n=e=>{if(!(0,D.isValidElement)(e))return!1;let t=Array.isArray(e.props.children)?e.props.children:[e.props.children],n=!1,r=!1;for(let e of t)if(e){if(typeof e==`string`)e.trim()!==``&&(n=!0);else if((0,D.isValidElement)(e))if(e.props?.[`data-footnote-backref`]!==void 0)r=!0;else{let t=Array.isArray(e.props.children)?e.props.children:[e.props.children];for(let e of t){if(typeof e==`string`&&e.trim()!==``){n=!0;break}if((0,D.isValidElement)(e)&&e.props?.[`data-footnote-backref`]===void 0){n=!0;break}}}}return r&&!n},i=Array.isArray(e)?e.map(e=>{if(!(0,D.isValidElement)(e))return e;if(e.type===_4){let t=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!n(e));return t.length===0?null:{...e,props:{...e.props,children:t}}}return e}):e;return(Array.isArray(i)?i.some(e=>e!==null):i!==null)?(0,O.jsx)(`section`,{className:t,...r,children:i}):null}return(0,O.jsx)(`section`,{className:t,...r,children:e})},(e,t)=>f4(e,t));R4.displayName=`MarkdownSection`;var z4=(0,D.memo)(({node:e,className:t,children:n,...r})=>{let i=z2(),a=!(`data-block`in r),{mermaid:o,controls:s,lineNumbers:c}=(0,D.useContext)(a3),l=i4(),u=ape(),d=(t?.match(jpe))?.at(1)??``,f=xpe(d);if(a)return(0,O.jsx)(`code`,{className:i(`rounded bg-muted px-1.5 py-0.5 font-mono text-sm`,t),"data-streamdown":`inline-code`,...r,children:n});let p=e?.properties?.metastring,m=p?.match(Ope),h=m?Number.parseInt(m[1],10):void 0,g=h!==void 0&&h>=1?h:void 0,_=!(p&&kpe.test(p))&&c!==!1,v=``;if((0,D.isValidElement)(n)&&n.props&&typeof n.props==`object`&&`children`in n.props&&typeof n.props.children==`string`?v=n.props.children:typeof n==`string`&&(v=n),f){let e=f.component;return(0,O.jsx)(D.Suspense,{fallback:(0,O.jsx)(Q2,{}),children:(0,O.jsx)(e,{code:v,isIncomplete:u,language:d,meta:p})})}if(d===`mermaid`&&l){let e=p4(s,`mermaid`),n=g4(s,`download`),r=g4(s,`copy`),a=g4(s,`fullscreen`),c=g4(s,`panZoom`),l=e&&(n||r||a);return(0,O.jsx)(D.Suspense,{fallback:(0,O.jsx)(Q2,{}),children:(0,O.jsxs)(`div`,{className:i(`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,O.jsx)(`div`,{className:i(`flex h-8 items-center text-muted-foreground text-xs`),children:(0,O.jsx)(`span`,{className:i(`ml-1 font-mono lowercase`),children:`mermaid`})}),l?(0,O.jsx)(`div`,{className:i(`pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end`),children:(0,O.jsxs)(`div`,{className:i(`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,O.jsx)(Cpe,{chart:v,config:o?.config}):null,r?(0,O.jsx)(X2,{code:v}):null,a?(0,O.jsx)(wpe,{chart:v,config:o?.config}):null]})}):null,(0,O.jsx)(`div`,{className:i(`rounded-md border border-border bg-background`),children:(0,O.jsx)(Ape,{chart:v,config:o?.config,showControls:c})})]})})}let y=p4(s,`code`),b=h4(s,`download`),x=h4(s,`copy`);return(0,O.jsx)(mpe,{className:t,code:v,isIncomplete:u,language:d,lineNumbers:_,startLine:g,children:y?(0,O.jsxs)(O.Fragment,{children:[b?(0,O.jsx)(gpe,{code:v,language:d}):null,x?(0,O.jsx)(X2,{}):null]}):null})},(e,t)=>e.className===t.className&&d4(e.node,t.node));z4.displayName=`MarkdownCode`;var B4=(0,D.memo)(vpe,(e,t)=>e.className===t.className&&d4(e.node,t.node));B4.displayName=`MarkdownImg`;var V4=(0,D.memo)(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(e=>e!=null&&e!==``);
641if(r.length===1&&(0,D.isValidElement)(r[0])){let t=r[0].props.node?.tagName;if(t===`img`||t===`code`&&`data-block`in r[0].props)return(0,O.jsx)(O.Fragment,{children:e})}return(0,O.jsx)(`p`,{...n,children:e})},(e,t)=>f4(e,t));V4.displayName=`MarkdownParagraph`;var Mpe={ol:_4,li:v4,ul:y4,hr:b4,strong:x4,a:S4,h1:C4,h2:w4,h3:T4,h4:E4,h5:D4,h6:O4,table:k4,thead:A4,tbody:j4,tr:M4,th:N4,td:P4,blockquote:F4,code:z4,img:B4,pre:({children:e})=>(0,D.isValidElement)(e)?(0,D.cloneElement)(e,{"data-block":`true`}):e,sup:I4,sub:L4,p:V4,section:R4},Npe=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,Ppe=/\p{L}/u;function H4(e){let t=e.replace(/^#{1,6}\s+/gm,``).replace(/(\*{1,3}|_{1,3})/g,``).replace(/`[^`]*`/g,``).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/^[\s>*\-+\d.]+/gm,``);for(let e of t){if(Npe.test(e))return`rtl`;if(Ppe.test(e))return`ltr`}return`ltr`}var Fpe=/^[ \t]{0,3}(`{3,}|~{3,})/,Ipe=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,U4=e=>{let t=e.split(` 642`),n=null,r=0;for(let e of t){let t=Fpe.exec(e);if(n===null){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 n!==null},Lpe=e=>{let t=e.split(` 643`);for(let e of t){let t=e.trim();if(t.length>0&&t.includes(`|`)&&Ipe.test(t))return!0}return!1},Rpe=()=>e=>{JC(e,`html`,(e,t,n)=>{!n||typeof t!=`number`||(n.children[t]={type:`text`,value:e.value})})},W4=[],G4={allowDangerousHtml:!0},K4=new WeakMap,q4=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||e.length===0)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(typeof e==`function`){let n=K4.get(e);n||(n=e.name,K4.set(e,n)),t+=n}else t+=String(e);t+=`:`,t+=JSON.stringify(n)}else if(typeof r==`function`){let e=K4.get(r);e||(e=r.name,K4.set(r,e)),t+=e}else t+=String(r)}return t},o=a(n),s=`${a(r)}::${o}::${i?JSON.stringify(i):``}`;return this.keyCache.set(e,s),s}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()}},J4=e=>{let t=zpe(e),n=e.children||``;return Kpe(t.runSync(t.parse(n),n),e)},zpe=e=>{let t=q4.get(e);if(t)return t;let n=Vpe(e);return q4.set(e,n),n},Bpe=e=>e.some(e=>Array.isArray(e)?e[0]===C$:e===C$),Vpe=e=>{let t=e.rehypePlugins||W4,n=e.remarkPlugins||W4,r=Bpe(t)?n:[...n,Rpe],i=e.remarkRehypeOptions?{...G4,...e.remarkRehypeOptions}:G4;return pw().use(OC).use(r).use(QC,i).use(t)},Hpe=e=>e,Upe=(e,t,n,r)=>{n?e.children.splice(t,1):e.children[t]={type:`text`,value:r}},Wpe=(e,t)=>{for(let n in gS)if(Object.hasOwn(gS,n)&&Object.hasOwn(e.properties,n)){let r=e.properties[n],i=gS[n];(i===null||i.includes(e.tagName))&&(e.properties[n]=t(String(r||``),n,e)??void 0)}},Gpe=(e,t,n,r,i,a)=>{let o=!1;return r?o=!r.includes(e.tagName):i&&(o=i.includes(e.tagName)),!o&&a&&typeof t==`number`&&(o=!a(e,t,n)),o},Kpe=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:i,skipHtml:a,unwrapDisallowed:o,urlTransform:s}=t;if(n||r||i||a||s){let t=s||Hpe;JC(e,(e,s,c)=>{if(e.type===`raw`&&c&&typeof s==`number`)return Upe(c,s,a,e.value),s;if(e.type===`element`&&(Wpe(e,t),Gpe(e,s,c,r,i,n)&&c&&typeof s==`number`))return o&&e.children?c.children.splice(s,1,...e.children):c.children.splice(s,1),s})}return Jx(e,{Fragment:O.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:O.jsx,jsxs:O.jsxs,passKeys:!0,passNode:!0})},qpe=/\[\^[\w-]{1,200}\](?!:)/,Jpe=/\[\^[\w-]{1,200}\]:/,Ype=/<(\w+)[\s>]/,Xpe=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),Y4=new Map,X4=new Map,Zpe=e=>{let t=e.toLowerCase(),n=Y4.get(t);if(n)return n;let r=RegExp(`<${t}(?=[\\s>/])[^>]*>`,`gi`);return Y4.set(t,r),r},Qpe=e=>{let t=e.toLowerCase(),n=X4.get(t);if(n)return n;let r=RegExp(`</${t}(?=[\\s>])[^>]*>`,`gi`);return X4.set(t,r),r},Z4=(e,t)=>
643{if(Xpe.has(t.toLowerCase()))return 0;let n=e.match(Zpe(t));if(!n)return 0;let r=0;for(let e of n)e.trimEnd().endsWith(`/>`)||(r+=1);return r},Q4=(e,t)=>{let n=e.match(Qpe(t));return n?n.length:0},$pe=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},eme=e=>{let t=qpe.test(e),n=Jpe.test(e);if(t||n)return[e];let r=T2.lex(e,{gfm:!0}),i=[],a=[],o=!1;for(let e of r){let t=e.raw,n=i.length;if(a.length>0){i[n-1]+=t;let e=a.at(-1),r=Z4(t,e),o=Q4(t,e);for(let t=0;t<r;t+=1)a.push(e);for(let t=0;t<o;t+=1)a.length>0&&a.at(-1)===e&&a.pop();continue}if(e.type===`html`&&e.block){let e=t.match(Ype);if(e){let n=e[1];Z4(t,n)>Q4(t,n)&&a.push(n)}}if(n>0&&!o){let e=i[n-1];if($pe(e)%2==1){i[n-1]=e+t;continue}}i.push(t),e.type!==`space`&&(o=e.type===`code`)}return i},tme=(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(` 644 645`))return t+n+r;let i=n.replace(/\n\n/g,` 646<!----> 647`);return`${t}${(i.startsWith(` 648`)?``:` 649`)+i+(i.endsWith(` 650`)?``:` 651`)}${r} 652 653`})}return n},nme=/([\\`*_~[\]|])/g,rme=e=>e.replace(nme,`\\$1`),ime=(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+rme(n).replace(/\n\n/g,` `)+r)}return n},$4=e=>e.type===`text`?e.value:`children`in e&&Array.isArray(e.children)?e.children.map($4).join(``):``,ame=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(e=>e.toLowerCase()));JC(t,`element`,e=>{if(n.has(e.tagName.toLowerCase())){let t=$4(e);e.children=t?[{type:`text`,value:t}]:[]}})},ome=()=>e=>{JC(e,`code`,e=>{e.meta&&(e.data=e.data??{},e.data.hProperties={...e.data.hProperties??{},metastring:e.meta})})},sme=/^[ \t]*<[\w!/?-]/,cme=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,lme=e=>typeof e!=`string`||e.length===0||!sme.test(e)?e:e.replace(cme,`$1`),e3={...T$,protocols:{...T$.protocols,href:[...T$.protocols?.href??[],`tel`]},attributes:{...T$.attributes,code:[...T$.attributes?.code??[],`metastring`]}},t3={raw:C$,sanitize:[H$,e3],harden:[gJ,{allowedImagePrefixes:[`*`],allowedLinkPrefixes:[`*`],allowedProtocols:[`*`],defaultOrigin:void 0,allowDataImages:!0}]},ume={gfm:[Zue,{}],codeMeta:ome},n3=Object.values(t3),dme=Object.values(ume),fme={block:` â`,circle:` â`},r3=[`github-light`,`github-dark`],i3={enabled:!0},a3=(0,D.createContext)({shikiTheme:r3,controls:!0,isAnimating:!1,lineNumbers:!0,mode:`streaming`,mermaid:void 0,linkSafety:i3}),o3=(0,D.memo)(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,dir:a,animatePlugin:o,...s})=>{if(o){let e=o.getLastRenderCharCount();o.setPrevContentLength(e)}let c=typeof e==`string`&&n?lme(e):e,l=(0,O.jsx)(J4,{...s,children:c});return(0,O.jsx)(F2.Provider,{value:i,children:a?(0,O.jsx)(`div`,{dir:a,style:{display:`contents`},children:l}):l})},(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=>e.components?.[n]!==t.components?.[n]))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});o3.displayName=`Block`;var s3=(0,D.memo)(({children:e,mode:t=`streaming`,dir:n,parseIncompleteMarkdown:r=!0,normalizeHtmlIndentation:i=!1,components:a,rehypePlugins:o=n3,remarkPlugins:s=dme,className:c,shikiTheme:l=r3,mermaid:u,controls:d=!0,isAnimating:f=!1,animated:p,BlockComponent:m=o3,parseMarkdownIntoBlocksFn:h=eme,caret:g,plugins:_,remend:v,linkSafety:y=i3,lineNumbers:b=!0,allowedTags:x,literalTagContent:S,translations:C,icons:w,prefix:ee,onAnimationStart:te,onAnimationEnd:ne,...re})=>{let ie=(0,D.useId)(),[ae,oe]=(0,D.useTransition)(),se=(0,D.useMemo)(()=>spe(ee),[ee]),ce=(0,D.useRef)(null),le=(0,D.useRef)(te),ue=(0,D.useRef)(ne);le.current=te,ue.current=ne,(0,D.useEffect)(()=>{var e,n,r;if(t===`static`)return;let i=ce.current;if(ce.current=f,i===null){f&&((e=le.current)==null||e.call(le));return}f&&!i?(n=le.current)==null||n.call(le):!f&&i&&((r=ue.current)==null||r.call(ue))},[f,t]);let de=(0,D.useMemo)(()=>x?Object.keys(x):[],[x]),fe=(0,D.useMemo)(()=>
653{if(typeof e!=`string`)return``;let n=t===`streaming`&&r?sfe(e,v):e;return S&&S.length>0&&(n=ime(n,S)),de.length>0&&(n=tme(n,de)),n},[e,t,r,v,de,S]),pe=(0,D.useMemo)(()=>h(fe),[fe,h]),[me,he]=(0,D.useState)(pe);(0,D.useEffect)(()=>{t===`streaming`&&!be?oe(()=>{he(pe)}):he(pe)},[pe,t]);let ge=t===`streaming`?me:pe,_e=(0,D.useMemo)(()=>n===`auto`?ge.map(H4):void 0,[ge,n]),ve=(0,D.useMemo)(()=>ge.map((e,t)=>`${ie}-${t}`),[ge.length,ie]),ye=(0,D.useMemo)(()=>p===!0?`true`:p?JSON.stringify(p):``,[p]),be=(0,D.useMemo)(()=>ye?ye===`true`?P2():P2(p):null,[ye]),xe=(0,D.useMemo)(()=>({shikiTheme:(_?.code)?.getThemes()??l,controls:d,isAnimating:f,lineNumbers:b,mode:t,mermaid:u,linkSafety:y}),[l,d,f,b,t,u,y,_?.code]),Se=(0,D.useMemo)(()=>({...q2,...C}),[(0,D.useMemo)(()=>C?JSON.stringify(C):``,[C])]),Ce=(0,D.useMemo)(()=>{let{inlineCode:e,...t}=a??{},n={...Mpe,...t};if(e){let t=n.code;n.code=n=>`data-block`in n?t?(0,D.createElement)(t,n):null:(0,D.createElement)(e,n)}return n},[a]),we=(0,D.useMemo)(()=>{let e=[];return _!=null&&_.cjk&&(e=[...e,..._.cjk.remarkPluginsBefore]),e=[...e,...s],_!=null&&_.cjk&&(e=[...e,..._.cjk.remarkPluginsAfter]),_!=null&&_.math&&(e=[...e,_.math.remarkPlugin]),e},[s,_?.math,_?.cjk]),Te=(0,D.useMemo)(()=>{let e=o;if(x&&Object.keys(x).length>0&&o===n3){let t={...e3,tagNames:[...e3.tagNames??[],...Object.keys(x)],attributes:{...e3.attributes,...x}};e=[t3.raw,[H$,t],t3.harden]}return S&&S.length>0&&(e=[...e,[ame,S]]),_!=null&&_.math&&(e=[...e,_.math.rehypePlugin]),be&&f&&(e=[...e,be.rehypePlugin]),e},[o,_?.math,be,f,x,S]),Ee=(0,D.useMemo)(()=>{if(!f||ge.length===0)return!1;let e=ge.at(-1);return U4(e)||Lpe(e)},[f,ge]),De=(0,D.useMemo)(()=>g&&f&&!Ee?{"--streamdown-caret":`"${fme[g]}"`}:void 0,[g,f,Ee]);return t===`static`?(0,O.jsx)(J2.Provider,{value:Se,children:(0,O.jsx)(n4.Provider,{value:_??null,children:(0,O.jsx)(a3.Provider,{value:xe,children:(0,O.jsx)(G2,{icons:w,children:(0,O.jsx)(R2.Provider,{value:se,children:(0,O.jsx)(`div`,{className:se(`space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0`,c),dir:n===`auto`?H4(fe):n,children:(0,O.jsx)(J4,{components:Ce,rehypePlugins:Te,remarkPlugins:we,...re,children:fe})})})})})})}):(0,O.jsx)(J2.Provider,{value:Se,children:(0,O.jsx)(n4.Provider,{value:_??null,children:(0,O.jsx)(a3.Provider,{value:xe,children:(0,O.jsx)(G2,{icons:w,children:(0,O.jsx)(R2.Provider,{value:se,children:(0,O.jsxs)(`div`,{className:se(`space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0`,g&&!Ee?`[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]`:null,c),style:De,children:[ge.length===0&&g&&f&&(0,O.jsx)(`span`,{}),ge.map((e,t)=>{let a=t===ge.length-1,o=f&&a&&U4(e);return(0,O.jsx)(m,{animatePlugin:be,components:Ce,content:e,dir:_e?.[t]??(n===`auto`?void 0:n),index:t,isIncomplete:o,rehypePlugins:Te,remarkPlugins:we,shouldNormalizeHtmlIndentation:i,shouldParseIncompleteMarkdown:r,...re},ve[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);s3.displayName=`Streamdown`;var pme=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:a=!0,initialZoom:o=1,fullscreen:s=!1})=>{let{RotateCcwIcon:c,ZoomInIcon:l,ZoomOutIcon:u}=K2(),d=z2(),f=(0,D.useRef)(null),p=(0,D.useRef)(null),[m,h]=(0,D.useState)(o),[g,_]=(0,D.useState)({x:0,y:0}),[v,y]=(0,D.useState)(!1),[b,x]=(0,D.useState)({x:0,y:0}),[S,C]=(0,D.useState)({x:0,y:0}),w=(0,D.useCallback)(e=>{h(t=>Math.max(n,Math.min(r,t+e)))},[n,r]),ee=(0,D.useCallback)(()=>{w(i)},[w,i]),te=(0,D.useCallback)(()=>{w(-i)},[w,i]),ne=(0,D.useCallback)(()=>{h(o),_({x:0,y:0})},[o]),re=(0,D.useCallback)(e=>{e.preventDefault();let t=e.deltaY>0?-i:i;w(t)},[w,i]),ie=(0,D.useCallback)(e=>{if(e.button!==0||e.isPrimary===!1)return;y(!0),x({x:e.clientX,y:e.clientY}),C(g);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[g]),ae=(0,D.useCallback)(e=>{if(!v)return;e.preventDefault();let t=e.clientX-b.x,n=e.clientY-b.y;_({x:S.x+t,y:S.y+n})},[v,b,S]),oe=(0,D.useCallback)(e=>{y(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,D.useEffect)(()=>{let e=f.current;if(e)return e.addEventListener(`wheel`,re,{passive:!1}),()=>{e.removeEventListener(`wheel`,re)}},[re]),(0,D.useEffect)(()=>{let e=p.current;if(e&&v)return document.body.style.userSelect=`none`,e.addEventListener(`pointermove`,ae,{passive:!1}),e.addEventListener(`pointerup`,oe),e.addEventListener(`pointercancel`,oe),()=>{document.body.style.userSelect=``,e.removeEventListener(`pointermove`,ae),e.removeEventListener(`pointerup`,oe),e.removeEventListener(`pointercancel`,oe)}},[v,ae,oe]),(0,O.jsxs)(`div`,{className:d(`relative flex flex-col`,s?`h-full w-full`:`min-h-28 w-full`,t),ref:f,style:{cursor:v?`grabbing`:`grab`},children:[a?(0,O.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 supp
653orts-[backdrop-filter]:backdrop-blur-sm`,s?`bottom-4 left-4`:`bottom-2 left-2`),children:[(0,O.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:ee,title:`Zoom in`,type:`button`,children:(0,O.jsx)(l,{size:16})}),(0,O.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:te,title:`Zoom out`,type:`button`,children:(0,O.jsx)(u,{size:16})}),(0,O.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:ne,title:`Reset zoom and pan`,type:`button`,children:(0,O.jsx)(c,{size:16})})]}):null,(0,O.jsx)(`div`,{className:d(`flex-1 origin-center transition-transform duration-150 ease-out`,s?`flex h-full w-full items-center justify-center`:`flex w-full items-center justify-center`),onPointerDown:ie,ref:p,role:`application`,style:{transform:`translate(${g.x}px, ${g.y}px) scale(${m})`,transformOrigin:`center center`,touchAction:`none`,willChange:`transform`},children:e})]})},c3=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let a=z2(),[o,s]=(0,D.useState)(null),[c,l]=(0,D.useState)(!1),[u,d]=(0,D.useState)(``),[f,p]=(0,D.useState)(``),[m,h]=(0,D.useState)(0),{mermaid:g}=(0,D.useContext)(a3),_=i4(),v=g?.errorComponent,{shouldRender:y,containerRef:b}=Yfe({immediate:r});if((0,D.useEffect)(()=>{if(y){if(!_){s(`Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.`);return}(async()=>{try{s(null),l(!0);let t=_.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),p(a)}catch(e){if(!(f||u)){let t=e instanceof Error?e.message:`Failed to render Mermaid chart`;s(t)}}finally{l(!1)}})()}},[e,n,m,y,_]),!(y||u||f))return(0,O.jsx)(`div`,{className:a(`my-4 min-h-[200px]`,t),ref:b});if(c&&!u&&!f)return(0,O.jsx)(`div`,{className:a(`my-4 flex justify-center p-4`,t),ref:b,children:(0,O.jsxs)(`div`,{className:a(`flex items-center space-x-2 text-muted-foreground`),children:[(0,O.jsx)(`div`,{className:a(`h-4 w-4 animate-spin rounded-full border-current border-b-2`)}),(0,O.jsx)(`span`,{className:a(`text-sm`),children:`Loading diagram...`})]})});if(o&&!u&&!f)return v?(0,O.jsx)(`div`,{ref:b,children:(0,O.jsx)(v,{chart:e,error:o,retry:()=>h(e=>e+1)})}):(0,O.jsxs)(`div`,{className:a(`rounded-md bg-red-50 p-4`,t),ref:b,children:[(0,O.jsxs)(`p`,{className:a(`font-mono text-red-700 text-sm`),children:[`Mermaid Error: `,o]}),(0,O.jsxs)(`details`,{className:a(`mt-2`),children:[(0,O.jsx)(`summary`,{className:a(`cursor-pointer text-red-600 text-xs`),children:`Show Code`}),(0,O.jsx)(`pre`,{className:a(`mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs`),children:e})]})]});let x=u||f;return(0,O.jsx)(`div`,{className:a(`size-full`,t),"data-streamdown":`mermaid`,ref:b,children:(0,O.jsx)(pme,{className:a(r?`size-full overflow-hidden`:`overflow-hidden`,t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:(0,O.jsx)(`div`,{"aria-label":`Mermaid chart`,className:a(`flex justify-center`,r?`size-full items-center`:null),dangerouslySetInnerHTML:{__html:x},role:`img`})})})},mme=({className:e,from:t,...n})=>(0,O.jsx)(`div`,{className:ct(`group flex w-full max-w-[95%] flex-col gap-2`,t===`user`?`is-user ml-auto justify-end`:`is-assistant`,e),...n}),hme=({children:e,className:t,...n})=>(0,O.jsx)(`div`,{className:ct(`is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-sm`,`group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground`,`group-[.is-assistant]:text-foreground`,t),...n,children:e});(0,D.createContext)(null);var gme={cjk:iD,code:Ase,math:bB,mermaid:mJ},_me=(0,D.memo)(({className:e,...t})=>(0,O.jsx)(s3,{className:ct(`size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0`,e),plugins:gme,...t}),(e,t)=>e.children===t.children&&t.isAnimating===e.isAnimating);_me.displayName=`MessageResponse`;function vme(e){let t=e+`CollectionProvider`,[n,r]=$e(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=D.useRef(null),a=D.useRef(new Map).current;return(0,O.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=et(s),l=D.forwardRef((e,t)=>
653{let{scope:n,children:r}=e,i=at(t,a(s,n).collectionRef);return(0,O.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=et(u),p=D.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=D.useRef(null),s=at(t,o),c=a(u,n);return D.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,O.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return D.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var yme=D.createContext(void 0);function bme(e){let t=D.useContext(yme);return e||t||`ltr`}var l3=D.forwardRef(({className:e,...t},n)=>(0,O.jsx)(`textarea`,{className:ct(`flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:n,...t}));l3.displayName=`Textarea`;function xme({className:e,...t}){return(0,O.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:ct(`group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]`,`h-9 has-[>textarea]:h-auto`,`has-[>[data-align=inline-start]]:[&>input]:pl-2`,`has-[>[data-align=inline-end]]:[&>input]:pr-2`,`has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3`,`has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3`,`has-[[data-slot=input-group-control]:focus-visible]:ring-ring has-[[data-slot=input-group-control]:focus-visible]:ring-1`,`has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40`,e),...t})}var Sme=u(`text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]`,"inline-end":`order-last pr-3 has-[>button]:mr-[-0.4rem] has-[>kbd]:mr-[-0.35rem]`,"block-start":`[.border-b]:pb-3 order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5`,"block-end":`[.border-t]:pt-3 order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5`}},defaultVariants:{align:`inline-start`}});function Cme({className:e,align:t=`inline-start`,...n}){return(0,O.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":t,className:ct(Sme({align:t}),e),onClick:e=>{e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()},...n})}var wme=u(`flex items-center gap-2 text-sm shadow-none`,{variants:{size:{xs:`h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5`,sm:`h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5`,"icon-xs":`size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0`,"icon-sm":`size-8 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function Tme({className:e,type:t=`button`,variant:n=`ghost`,size:r=`xs`,...i}){return(0,O.jsx)(Tw,{type:t,"data-size":r,variant:n,className:ct(wme({size:r}),e),...i})}function Eme({className:e,...t}){return(0,O.jsx)(l3,{"data-slot":`input-group-control`,className:ct(`flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent`,e),...t})}function Dme({className:e,...t}){return(0,O.jsx)(s,{role:`status`,"aria-label":`Loading`,className:ct(`size-4 animate-spin`,e),...t})}var Ome=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,u3=(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=Ome[n[e]&63];return t},kme=async e=>{try{let t=await(await fetch(e)).blob();return new Promise(e=>{let n=new FileReader;n.onloadend=()=>e(n.result),n.onerror=()=>e(null),n.readAsDataURL(t)})}catch{return null}},Ame=(0,D.createContext)(null),jme=(0,D.createContext)(null),d3=()=>(0,D.useContext)(Ame),Mme=()=>(0,D.useContext)(jme),f3=(0,D.createContext)(null),Nme=()=>{let e=Mme(),t=(0,D.useContext)(f3)??e;if(!t)throw Error(`usePromptInputAttachments must be used within a PromptInput or PromptInputProvider`);return t},Pme=(0,D.createContext)(null),Fme=({className:e,accept:t,multiple:n,globalDrop:r,syncHiddenInput:i,maxFiles:a,maxFileSize:o,onError:s,onSubmit:c,children:l,...u})=>{let d=d3(),f=!!d,p=(0,D.useRef)(null),m=(0,D.useRef)(null),[h,g]=(0,D.useState)([]),_=f?d.attachments.files:h,[v,y]=(0,D.useState)([]),b=(0,D.useRef)(_);(0,D.useEffect)(()=>{b.current=_},[_]);let x=(0,D.useCallback)(()=>{p.current?.click()},[]),S=(0,D.useCallback)(e=>!t||t.trim()===``||t.split(`,`).map(e=>
653e.trim()).filter(Boolean).some(t=>{if(t.endsWith(`/*`)){let n=t.slice(0,-1);return e.type.startsWith(n)}return e.type===t}),[t]),C=(0,D.useCallback)(e=>{let t=[...e],n=t.filter(e=>S(e));if(t.length&&n.length===0){s?.({code:`accept`,message:`No files match the accepted types.`});return}let r=n.filter(e=>!o||e.size<=o);if(n.length>0&&r.length===0){s?.({code:`max_file_size`,message:`All files exceed the maximum size.`});return}g(e=>{let t=typeof a==`number`?Math.max(0,a-e.length):void 0,n=typeof t==`number`?r.slice(0,t):r;typeof t==`number`&&r.length>t&&s?.({code:`max_files`,message:`Too many files. Some were not added.`});let i=[];for(let e of n)i.push({filename:e.name,id:u3(),mediaType:e.type,type:`file`,url:URL.createObjectURL(e)});return[...e,...i]})},[S,a,o,s]),w=(0,D.useCallback)(e=>g(t=>{let n=t.find(t=>t.id===e);return n?.url&&URL.revokeObjectURL(n.url),t.filter(t=>t.id!==e)}),[]),ee=(0,D.useCallback)(e=>{let t=[...e],n=t.filter(e=>S(e));if(t.length&&n.length===0){s?.({code:`accept`,message:`No files match the accepted types.`});return}let r=n.filter(e=>!o||e.size<=o);if(n.length>0&&r.length===0){s?.({code:`max_file_size`,message:`All files exceed the maximum size.`});return}let i=_.length,c=typeof a==`number`?Math.max(0,a-i):void 0,l=typeof c==`number`?r.slice(0,c):r;typeof c==`number`&&r.length>c&&s?.({code:`max_files`,message:`Too many files. Some were not added.`}),l.length>0&&d?.attachments.add(l)},[S,o,a,s,_.length,d]),te=(0,D.useCallback)(()=>f?d?.attachments.clear():g(e=>{for(let t of e)t.url&&URL.revokeObjectURL(t.url);return[]}),[f,d]),ne=(0,D.useCallback)(()=>y([]),[]),re=f?ee:C,ie=f?d.attachments.remove:w,ae=f?d.attachments.openFileDialog:x,oe=(0,D.useCallback)(()=>{te(),ne()},[te,ne]);(0,D.useEffect)(()=>{f&&d.__registerFileInput(p,()=>p.current?.click())},[f,d]),(0,D.useEffect)(()=>{i&&p.current&&_.length===0&&(p.current.value=``)},[_,i]),(0,D.useEffect)(()=>{let e=m.current;if(!e||r)return;let t=e=>{e.dataTransfer?.types?.includes(`Files`)&&e.preventDefault()},n=e=>{e.dataTransfer?.types?.includes(`Files`)&&e.preventDefault(),e.dataTransfer?.files&&e.dataTransfer.files.length>0&&re(e.dataTransfer.files)};return e.addEventListener(`dragover`,t),e.addEventListener(`drop`,n),()=>{e.removeEventListener(`dragover`,t),e.removeEventListener(`drop`,n)}},[re,r]),(0,D.useEffect)(()=>{if(!r)return;let e=e=>{e.dataTransfer?.types?.includes(`Files`)&&e.preventDefault()},t=e=>{e.dataTransfer?.types?.includes(`Files`)&&e.preventDefault(),e.dataTransfer?.files&&e.dataTransfer.files.length>0&&re(e.dataTransfer.files)};return document.addEventListener(`dragover`,e),document.addEventListener(`drop`,t),()=>{document.removeEventListener(`dragover`,e),document.removeEventListener(`drop`,t)}},[re,r]),(0,D.useEffect)(()=>()=>{if(!f)for(let e of b.current)e.url&&URL.revokeObjectURL(e.url)},[f]);let se=(0,D.useCallback)(e=>{e.currentTarget.files&&re(e.currentTarget.files),e.currentTarget.value=``},[re]),ce=(0,D.useMemo)(()=>({add:re,clear:te,fileInputRef:p,files:_.map(e=>({...e,id:e.id})),openFileDialog:ae,remove:ie}),[_,re,ie,te,ae]),le=(0,D.useMemo)(()=>({add:e=>{let t=Array.isArray(e)?e:[e];y(e=>[...e,...t.map(e=>({...e,id:u3()}))])},clear:ne,remove:e=>{y(t=>t.filter(t=>t.id!==e))},sources:v}),[v,ne]),ue=(0,D.useCallback)(async e=>{e.preventDefault();let t=e.currentTarget,n=f?d.textInput.value:new FormData(t).get(`message`)||``;f||t.reset();try{let t=c({files:await Promise.all(_.map(async({id:e,...t})=>{if(t.url?.startsWith(`blob:`)){let e=await kme(t.url);return{...t,url:e??t.url}}return t})),text:n},e);if(t instanceof Promise)try{await t,oe(),f&&d.textInput.clear()}catch{}else oe(),f&&d.textInput.clear()}catch{}},[f,d,_,c,oe]),de=(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`input`,{accept:t,"aria-label":`Upload files`,className:`hidden`,multiple:n,onChange:se,ref:p,title:`Upload files`,type:`file`}),(0,O.jsx)(`form`,{className:ct(`w-full`,e),onSubmit:ue,ref:m,...u,children:(0,O.jsx)(xme,{className:`overflow-hidden`,children:l})})]}),fe=(0,O.jsx)(Pme.Provider,{value:le,children:de});return(0,O.jsx)(f3.Provider,{value:ce,children:fe})}
653,Ime=({onChange:e,onKeyDown:t,className:n,placeholder:r=`What would you like to know?`,...i})=>{let a=d3(),o=Nme(),[s,c]=(0,D.useState)(!1),l=(0,D.useCallback)(e=>{if(t?.(e),!e.defaultPrevented){if(e.key===`Enter`){if(s||e.nativeEvent.isComposing||e.shiftKey)return;e.preventDefault();let{form:t}=e.currentTarget;if(t?.querySelector(`button[type="submit"]`)?.disabled)return;t?.requestSubmit()}if(e.key===`Backspace`&&e.currentTarget.value===``&&o.files.length>0){e.preventDefault();let t=o.files.at(-1);t&&o.remove(t.id)}}},[t,s,o]),u=(0,D.useCallback)(e=>{let t=e.clipboardData?.items;if(!t)return;let n=[];for(let e of t)if(e.kind===`file`){let t=e.getAsFile();t&&n.push(t)}n.length>0&&(e.preventDefault(),o.add(n))},[o]),d=(0,D.useCallback)(()=>c(!1),[]),f=(0,D.useCallback)(()=>c(!0),[]),p=a?{onChange:t=>{a.textInput.setInput(t.currentTarget.value),e?.(t)},value:a.textInput.value}:{onChange:e};return(0,O.jsx)(Eme,{className:ct(`field-sizing-content max-h-48 min-h-16`,n),name:`message`,onCompositionEnd:d,onCompositionStart:f,onKeyDown:l,onPaste:u,placeholder:r,...i,...p})},Lme=({className:e,...t})=>(0,O.jsx)(Cme,{align:`block-end`,className:ct(`justify-between gap-1`,e),...t}),Rme=({className:e,variant:t=`default`,size:n=`icon-sm`,status:r,onStop:i,onClick:a,children:o,...s})=>{let c=r===`submitted`||r===`streaming`,l=(0,O.jsx)(df,{className:`size-4`});r===`submitted`?l=(0,O.jsx)(Dme,{}):r===`streaming`?l=(0,O.jsx)(mf,{className:`size-4`}):r===`error`&&(l=(0,O.jsx)(hf,{className:`size-4`}));let u=(0,D.useCallback)(e=>{if(c&&i){e.preventDefault(),i();return}a?.(e)},[c,i,a]);return(0,O.jsx)(Tme,{"aria-label":c?`Stop`:`Submit`,className:ct(e),onClick:u,size:n,type:c&&i?`button`:`submit`,variant:t,...s,children:o??l})};function p3(){!On.current&&Dn();let[e]=(0,D.useState)(An.current);return e}var zme=kn,m3=new Map,Bme=e=>{let t=m3.get(e);return t||(t=zme.create(e),m3.set(e,t)),t},Vme=(0,D.memo)(({children:e,as:t=`p`,className:n,duration:r=2,spread:i=2})=>{let a=Bme(t),o=(0,D.useMemo)(()=>(e?.length??0)*i,[e,i]);return(0,O.jsx)(a,{animate:{backgroundPosition:`0% center`},className:ct(`relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent`,`[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]`,n),initial:{backgroundPosition:`100% center`},style:{"--spread":`${o}px`,backgroundImage:`var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))`},transition:{duration:r,ease:`linear`,repeat:1/0},children:e})}),Hme={"msp-health-check":{title:`MSP Vendor Portfolio Health Check`,blurb:`Score your vendor sprawl, rebate leakage and MDF utilisation.`,path:`/calculators/msp-health-check`},"vendor-channel-health":{title:`Vendor Channel Health Check`,blurb:`Diagnose partner activation, deal-reg visibility and the pipeline blind spot.`,path:`/calculators/vendor-channel-health`},"value-gap":{title:`Value Gap Calculator`,blurb:`Quantify unclaimed rebates, MDF and margin left on the table.`,path:`/calculators/value-gap`}};function Ume({slug:e,reason:t}){let n=Hme[e];return n?(0,O.jsxs)(je,{to:n.path,className:`mt-2 flex flex-col gap-1 rounded-lg border border-[var(--line-soft)] bg-[var(--bone)] p-3 no-underline transition-colors hover:border-[var(--navy)]`,children:[(0,O.jsx)(`span`,{className:`text-[11px] font-semibold uppercase tracking-[0.1em] text-[var(--ink-4)]`,children:`Free Health Check`}),(0,O.jsx)(`span`,{className:`text-[14px] font-semibold text-[var(--navy)]`,children:n.title}),(0,O.jsx)(`span`,{className:`text-[13px] text-[var(--ink-3)]`,children:t??n.blurb}),(0,O.jsxs)(`span`,{className:`mt-1 inline-flex items-center gap-1 text-[12px] font-medium text-[var(--navy)]`,children:[`Open calculator `,(0,O.jsx)(Ye,{className:`size-3`})]})]}):null}function Wme({path:e,label:t,reason:n}){let r=/^https?:/.test(e),i=(0,O.jsxs)(O.Fragment,{children:[n?(0,O.jsx)(`span`,{className:`text-[13px] text-[var(--ink-3)]`,children:n}):null,(0,O.jsxs)(`span`,{className:`mt-1 inline-flex items-center gap-1 text-[13px] font-semibold text-white`,children:[t,` `,(0,O.jsx)(Ye,{className:`size-3.5`})]})]}),a=`mt-2 flex flex-col gap-1 rounded-lg bg-[var(--navy)] p-3 no-underline transition-colors hover:bg-[var(--navy-deep)]`;return r?(0,O.jsx)(`a`,{href:e,target:`_blank`,rel:`noreferrer`,className:a,children:i}):(0,O.jsx)(je,{to:e,className:a,children:i})}function Gme({ok:e}){return(0,O.jsxs)(`div`,{className:`mt-2 flex items-start gap-2 rounded-lg border p-3 text-[13px] ${e?`border-emerald-200 bg-emerald-50 text-emerald-900`:`border-amber-200 bg-amber-50 text-amber-900`}`,children:[(0,O.jsx)(Xe,{className:`mt-0.5 size-4 shrink-0`}),(0,O.jsx)(`span`,{children:e?`Thanks - we've got your details and someone will be in touch within one business day.`:`We couldn't save your details right now. Try the /contact page or email [email protected].`})]})}function Kme(e,t){if(e.type===`text`)return(0,O.jsx)(`div`,{className:`prose prose-sm max-w-none text-[14px] leading-relaxed`,children:(0,O.jsx)(Xae,{children:e.text})},t);
653if(e.type===`tool-recommend_calculator`){let n=e.output;return n?.slug?(0,O.jsx)(Ume,{slug:n.slug,reason:n.reason},t):null}if(e.type===`tool-suggest_next_step`){let n=e.output;return!n?.path||!n?.label?null:(0,O.jsx)(Wme,{path:n.path,label:n.label,reason:n.reason},t)}if(e.type===`tool-capture_lead`){let n=e.output;return n===void 0?null:(0,O.jsx)(Gme,{ok:!!n.ok},t)}return null}function qme(){let[e,t]=(0,D.useState)(!1),[n,r]=(0,D.useState)(``),{messages:i,sendMessage:a,status:o,error:s}=Lb({transport:(0,D.useRef)(new _b({api:`/api/chat`})).current}),c=o===`submitted`||o===`streaming`;return(0,D.useEffect)(()=>(document.body.style.overflow=e?`hidden`:``,()=>{document.body.style.overflow=``}),[e]),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`button`,{type:`button`,onClick:()=>t(!0),"aria-label":`Talk to the Channel Advisor`,className:`fixed bottom-5 right-5 z-40 inline-flex items-center gap-2 rounded-full bg-[var(--navy)] px-4 py-3 text-[14px] font-medium text-white shadow-lg transition-all hover:-translate-y-px hover:bg-[var(--navy-deep)] md:right-6 md:bottom-6`,children:[(0,O.jsx)(pf,{className:`size-4`}),(0,O.jsx)(`span`,{className:`hidden sm:inline`,children:`Channel Advisor`})]}),e?(0,O.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-end justify-end bg-black/20 p-0 sm:p-4`,children:(0,O.jsxs)(`div`,{className:`flex h-full w-full flex-col overflow-hidden border border-[var(--line-soft)] bg-white shadow-xl sm:h-[640px] sm:max-h-[calc(100vh-2rem)] sm:w-[420px] sm:rounded-xl`,children:[(0,O.jsxs)(`div`,{className:`flex items-start justify-between gap-3 border-b border-[var(--line-soft)] bg-[var(--bone)] px-4 py-3`,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`div`,{className:`text-[11px] font-semibold uppercase tracking-[0.1em] text-[var(--ink-4)]`,children:`indyrct`}),(0,O.jsx)(`div`,{className:`text-[15px] font-semibold text-[var(--navy)]`,children:`Channel Advisor`}),(0,O.jsx)(`div`,{className:`mt-0.5 text-[12px] text-[var(--ink-3)]`,children:`Ask about vendor sprawl, MDF, deal-reg or Partner Compass.`})]}),(0,O.jsx)(`button`,{type:`button`,"aria-label":`Close`,onClick:()=>t(!1),className:`inline-flex size-8 items-center justify-center rounded-md text-[var(--navy)] hover:bg-white`,children:(0,O.jsx)(hf,{className:`size-4`})})]}),(0,O.jsxs)(zw,{className:`flex-1`,children:[(0,O.jsxs)(Bw,{className:`space-y-3 px-4 py-4`,children:[i.length===0?(0,O.jsx)(`div`,{className:`rounded-lg border border-dashed border-[var(--line-soft)] bg-[var(--bone)]/50 p-4 text-[13px] text-[var(--ink-3)]`,children:`Hi - I'm the Channel Advisor. Tell me a bit about your business (VAR, SI, MSP, vendor or distributor) and what you're trying to fix. I'll point you at the right calculator, guide or next step.`}):null,i.map(e=>(0,O.jsx)(mme,{from:e.role===`user`?`user`:`assistant`,children:(0,O.jsx)(hme,{className:e.role===`assistant`?`bg-transparent p-0 text-[var(--navy-ink)]`:`bg-[var(--navy)] text-white`,children:e.parts.map((e,t)=>Kme(e,t))})},e.id)),o===`submitted`?(0,O.jsx)(`div`,{className:`pl-1`,children:(0,O.jsx)(Vme,{children:`Thinking...`})}):null,s?(0,O.jsxs)(`div`,{className:`rounded-md border border-red-200 bg-red-50 p-3 text-[13px] text-red-800`,children:[`Something went wrong. Try again in a moment, or head to`,` `,(0,O.jsx)(je,{to:`/contact`,className:`underline`,children:`/contact`}),`.`]}):null]}),(0,O.jsx)(Vw,{})]}),(0,O.jsxs)(`div`,{className:`border-t border-[var(--line-soft)] bg-white p-3`,children:[(0,O.jsxs)(Fme,{onSubmit:e=>{let t=e.text?.trim();!t||c||(a({text:t}),r(``))},children:[(0,O.jsx)(Ime,{value:n,onChange:e=>r(e.target.value),placeholder:`Ask the Channel Advisor...`}),(0,O.jsx)(Lme,{className:`justify-end`,children:(0,O.jsx)(Rme,{status:o,disabled:!n.trim()||c})})]}),(0,O.jsx)(`div`,{className:`mt-2 text-[10px] text-[var(--ink-4)]`,children:`Ephemeral conversation - not stored. Contact details you offer are sent to our HubSpot.`})]})]})}):null]})}function Jme(){let{status:e,isReady:t,accept:n,decline:r}=If();return!t||e!==null?null:(0,O.jsx)(`div`,{role:`region`,"aria-label":`Cookie consent`,className:`fixed inset-x-0 bottom-0 z-[80] px-4 pb-4`,style:{paddingBottom:`max(1rem, calc(1rem + env(safe-area-inset-bottom)))`},children:(0,O.jsxs)(`div`,{className:`mx-auto flex max-w-[1080px] flex-col gap-4 roun
653ded-2xl border border-[var(--line)] bg-[var(--bone)] p-5 shadow-[0_18px_40px_-20px_rgba(15,23,42,0.28)] md:flex-row md:items-center md:justify-between md:gap-6 md:p-6`,children:[(0,O.jsxs)(`p`,{className:`text-[14px] leading-relaxed text-[var(--ink-3)] md:max-w-[640px]`,children:[`We use cookies to understand how people find and use this site. You can accept or decline â declining wonât affect anything you can do here.`,` `,(0,O.jsx)(je,{to:`/privacy-policy`,className:`underline decoration-[var(--line)] underline-offset-2 hover:text-[var(--navy)]`,children:`Read our privacy policy`}),`.`]}),(0,O.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row md:shrink-0`,children:[(0,O.jsx)(`button`,{type:`button`,onClick:r,className:`inline-flex items-center justify-center rounded-full border border-[var(--navy)] bg-transparent px-5 py-2 text-[14px] font-medium text-[var(--navy)] transition-colors hover:bg-[var(--navy)]/5`,children:`Decline`}),(0,O.jsx)(`button`,{type:`button`,onClick:n,className:`inline-flex items-center justify-center rounded-full border border-[var(--navy)] bg-[var(--navy)] px-5 py-2 text-[14px] font-medium text-white transition-colors hover:bg-[var(--navy-deep)]`,children:`Accept`})]})]})})}var h3=`Vendor partner programmes, decoded for MSPs. indyrct scores MDF, deal registration and programme requirements from the partner's side - Partner Compass maps the vendor portfolio on the 4P framework.`;function Yme(){return(0,O.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-4`,children:(0,O.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,O.jsx)(`h1`,{className:`text-7xl font-bold text-foreground`,children:`404`}),(0,O.jsx)(`h2`,{className:`mt-4 text-xl font-semibold text-foreground`,children:`Page not found`}),(0,O.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`The page you're looking for doesn't exist or has been moved.`}),(0,O.jsx)(`div`,{className:`mt-6`,children:(0,O.jsx)(je,{to:`/`,className:`inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90`,children:`Go home`})})]})})}function Xme({error:e,reset:t}){console.error(e);let n=Se();return(0,D.useEffect)(()=>{cf(e,{boundary:`tanstack_root_error_component`})},[e]),(0,O.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-4`,children:(0,O.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,O.jsx)(`h1`,{className:`text-xl font-semibold tracking-tight text-foreground`,children:`This page didn't load`}),(0,O.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`Something went wrong on our end. You can try refreshing or head back home.`}),(0,O.jsxs)(`div`,{className:`mt-6 flex flex-wrap justify-center gap-2`,children:[(0,O.jsx)(`button`,{onClick:()=>{n.invalidate(),t()},className:`inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90`,children:`Try again`}),(0,O.jsx)(`a`,{href:`/`,className:`inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent`,children:`Go home`})]})]})})}var g3=Ne()({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1, viewport-fit=cover`},{name:`author`,content:`indyrct`},{name:`google-site-verification`,content:`ih47CfoX6G9aknt2wBXe2nIEk-l5z8OtA-J2tVfanRc`},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`},{property:`og:type`,content:`website`},{property:`og:site_name`,content:`indyrct`},{name:`twitter:card`,content:`summary_large_image`},{name:`apple-mobile-web-app-title`,content:`Indyrct`}],links:[{rel:`stylesheet`,href:sf},{rel:`preconnect`,href:`https://fonts.googleapis.com`},{rel:`preconnect`,href:`https://fonts.gstatic.com`,crossOrigin:`anonymous`},{rel:`preconnect`,href:`https://www.googletagmanager.com`},{rel:`dns-prefetch`,href:`https://www.googletagmanager.com`},{rel:`preload`,as:`style`,href:`https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&display=swap`,fetchpriority:`high`},{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&display=swap`},{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap`}
653,{rel:`icon`,type:`image/png`,href:`/favicon-96x96.png`,sizes:`96x96`},{rel:`icon`,type:`image/svg+xml`,href:`/favicon.svg`},{rel:`shortcut icon`,href:`/favicon.ico`},{rel:`apple-touch-icon`,sizes:`180x180`,href:`/apple-touch-icon.png`},{rel:`manifest`,href:`/site.webmanifest`}],scripts:[{src:`https://analytics.ahrefs.com/analytics.js`,"data-key":`sf8n3r1HW/GiamCOdULR7A`,async:!0},{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Organization`,name:`indyrct`,url:`${Ie}/`,description:h3,founder:{"@type":`Person`,name:`Craig Bovaird`},areaServed:[`APAC`,`EMEA`,`North America`],email:`[email protected]`,slogan:`Vendor partner programmes, decoded for MSPs`})},{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`WebSite`,name:`indyrct`,url:`${Ie}/`,description:h3})}]}),shellComponent:Zme,component:$me,notFoundComponent:Yme,errorComponent:Xme});function Zme({children:e}){return(0,O.jsxs)(`html`,{lang:`en`,children:[(0,O.jsx)(`head`,{children:(0,O.jsx)(na,{})}),(0,O.jsxs)(`body`,{children:[e,(0,O.jsx)(ra,{})]})]})}function Qme(){let e=Zi({select:e=>e.location.pathname+e.location.searchStr});return(0,D.useEffect)(()=>{Of(e)},[e]),null}function $me(){let{queryClient:e}=g3.useRouteContext();return(0,O.jsx)(of,{client:e,children:(0,O.jsxs)(Ff,{children:[(0,O.jsx)(Qme,{}),(0,O.jsxs)(`div`,{className:`flex min-h-screen flex-col bg-background text-foreground`,children:[(0,O.jsx)(zf,{}),(0,O.jsx)(bf,{}),(0,O.jsx)(`main`,{className:`flex-1`,children:(0,O.jsx)(Hi,{})}),(0,O.jsx)(Rf,{})]}),(0,O.jsx)(qme,{}),(0,O.jsx)(Jme,{}),(0,O.jsx)(Bf,{})]})})}var _3=`/assets/og-home-BEGcDJhd.jpg`,v3=`Vendor partner programmes, decoded for MSPs | indyrct`,y3=`MDF, deal registration, tier requirements - scored from the partner's side and kept current. Find out what your vendors would fund if you asked. Free health check.`,ehe=[{level:5,name:`Lighthouse`,icon:`â`,desc:`Top-of-mind for vendors. First call for deal support, lead referral, and co-marketing. MDF flows readily. Tiers advance predictably.`,top:!0},{level:4,name:`Strategic`,icon:`â`,desc:`Deliberate vendor investment. Consistent registered pipeline. Beginning to show up in joint GTM activity.`},{level:3,name:`Preferred`,icon:`â`,desc:`Active in key programmes. Some MDF utilised. Tier advancement is on the radar - but progress is inconsistent.`},{level:2,name:`Managed`,icon:`·`,desc:`Deals registered occasionally. Reactive to vendor outreach. Participating in programmes, not driving them.`},{level:1,name:`Invisible`,icon:`·`,desc:`Vendor engagement is ad hoc. Rebates unclaimed. No strategic relationship. The vendor sees no reason to differentiate you from any other buyer.`}],the=[{num:`01`,title:`MDF goes unclaimed every quarter`,text:`Pre-approval processes and reimbursement burdens exceed the bandwidth of most teams. The money exists. Nobody has time to claim it.`,badge:`up to 60% unused`},{num:`02`,title:`Registered deals earn 5-15 margin points more`,text:`Unregistered ones earn none. That's the price of a missed portal deadline - paid on every deal that slips through.`,badge:`Per deal`},{num:`03`,title:`Distributor rebates go unstacked`,text:`Vendor MDF and distributor incentives can often be combined on the same purchase. Nobody sits across both simultaneously - so the stacked value is almost never claimed.`,badge:`Uncombined`},{num:`04`,title:`Your quoting tool is working against you`,text:`Every time it pulls a live feed and picks the cheapest price, you're making a vendor relationship decision you didn't know you were making.`,badge:`Point of sale`}],nhe=[`Partner Compass Health Check - 18 questions, 6 domains`,`Full 4P scoring across your vendor & distributor portfolio`,`Four-quadrant classification: True North (invest), Strong West (sustain), East Reach (bridge), EOL (retire)`,`Lighthouse Partner Ladder positioning and gap analysis`,`12-month vendor strategy roadmap across 4 engagement phases`,`10 Founding Partner places - one on one with our Founders`],rhe=[`Automated deal registration across vendor portals - live today`,`Trust Profile - vendor-verified certifications, tier status, and authorised SKUs pulled directly from vendor systems - live today`,`CRM and PSA integration - works inside your existing workflows`,`MDF claim workflow and incentive stacking - on the roadmap`,`AWS Partner Center + Autotask live; ConnectWise and Microsoft next`,`Virtual PDM AI agent - in co-development with design partners`],ihe=[{num:`up to 60%`,label:`of MDF goes unused every quarter - ZINFI`},{num:`73%`,label:`say channel programmes are overly complicated - Channelnomics, 200K+ records`},{num:`67%`,label:`of IT spending flows through partners in 2026 - down from 70.1% in 2025 (Omdia, Jan 2026)`}],b3={version:1,asset_id:`98cfcda5-afe2-4a58-9467-d05a872389af`,project_id:`89a3b2fb-dd08-4719-bc00-70342b1fa7df`,url:`/__l5e/assets-v1/98cfcda5-afe2-4a58-9467-d05a872389af/bg-lines.jpg`,r2_key:`a/v1/89a3b2fb-dd08-4719-bc00-70342b1fa7df/98cfcda5-afe2-4a58-9467-d05a872389af/bg-lines.jpg`,original_filename:`bg-lines.jpg`,size:585970,content_type:`image/jpeg`,created_at:`2026-06-26T13:33:40Z`};function ahe(){return{meta:[{title:v3},{name:`description`,content:y3},{property:`og:title`,content:v3},{property:`og:description`,content:y3},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}/`},{property:`og:site_name`,content:`indyrct`},{property:`og:image`,content:_3},{property:`og:image:width`,content:`1216`},{property:`og:image:height`,content:`640`},{property:`og:image:alt`,content:`indyrct - vendor partner programmes, decoded for MSPs`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:v3},{name:`twitter:description`,content:y3},{name:`twitter:image`,content:_3},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`}],links:[{rel:`canonical`,href:`${Ie}/`},{rel:`preload`,as:`image`,href:b3.url,fetchpriority:`high`}]}}var x3=!(typeof navigator>`u`)&&navigator.product===`ReactNative`,S3={timeout:x3?6e4:12e4},ohe=function(e){let t={...S3,...typeof e==`string`?{url:e}:e};if(t.timeout=w3(t.timeout),t.query){let{url:e,searchParams:n}=function(e){let t=e.indexOf(`?`);if(t===-1)return{url:e,searchParams:new URLSearchParams};let n=e.slice(0,t),r=e.slice(t+1);if(!x3)return{url:n,searchParams:new URLSearchParams(r)};if(typeof decodeURIComponent!=`function`)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let i=new URLSearchParams;for(let e of r.split(`&`)){let[t,n]=e.split(`=`);t&&i.append(C3(t),C3(n||``))}return{url:n,searchParams:i}}(t.url);for(let[r,i]of Object.entries(t.query)){if(i!==void 0)if(Array.isArray(i))for(let e of i)n.append(r,e);else n.append(r,i);let a=n.toString();a&&(t.url=`${e}?${a}`)}}return t.method=t.body&&!t.method?`POST`:(t.method||`GET`).toUpperCase(),t};function C3(e){return decodeURIComponent(e.replace(/\+/g,` `))}function w3(e){if(!1===e||e===0)return!1;if(e.connect||e.socket)return e;let t=Number(e);return isNaN(t)?w3(S3.timeout):{connect:t,socket:t}}var she=/^https?:\/\//i,che=function(e){if(!she.test(e.url))throw Error(`"${e.url}" is not a valid URL`)};
653function lhe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var uhe=[`request`,`response`,`progress`,`error`,`abort`],T3=[`processOptions`,`validateOptions`,`interceptRequest`,`finalizeOptions`,`onRequest`,`onResponse`,`onError`,`onReturn`,`onHeaders`];function E3(e,t){let n=[],r=T3.reduce((e,t)=>(e[t]=e[t]||[],e),{processOptions:[ohe],validateOptions:[che]});function i(e){let n=typeof e==`object`&&e.callSiteStack?e.callSiteStack:void 0,i=n?void 0:Error(),a=uhe.reduce((e,t)=>(e[t]=function(){let e=Object.create(null),t=0;return{publish:function(t){for(let n in e)e[n](t)},subscribe:function(n){let r=t++;return e[r]=n,function(){delete e[r]}}}}(),e),{}),o=(e=>function(t,n,...r){let i=t===`onError`,a=n;for(let n=0;n<e[t].length&&(a=(0,e[t][n])(a,...r),!i||a);n++);return a})(r),s=o(`processOptions`,e);o(`validateOptions`,s);let c={options:s,channels:a,applyMiddleware:o},l,u=a.request.subscribe(e=>{l=t(e,(t,r)=>((e,t,r)=>{let s=e,c=t;if(!s)try{c=o(`onResponse`,t,r)}catch(e){c=null,s=e}if(s&&=o(`onError`,s,r),s){if(s instanceof Error){let e=n?.stack||i?.stack;if(typeof e==`string`){let t=e.split(` 654`).slice(n?1:2);t.length>0&&(s.stack+=` 655`+t.join(` 656`))}}a.error.publish(s)}else c&&a.response.publish(c)})(t,r,e))});a.abort.subscribe(()=>{u(),l&&l.abort()});let d=o(`onReturn`,a,c);return d===a&&a.request.publish(c),d}return i.use=function(e){if(!e)throw Error(`Tried to add middleware that resolved to falsey value`);if(typeof e==`function`)throw Error(`Tried to add middleware that was a function. It probably expects you to pass options to it.`);if(e.onReturn&&r.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return T3.forEach(t=>{e[t]&&r[t].push(e[t])}),n.push(e),i},i.clone=()=>E3(n,t),e.forEach(i.use),i}var D3,O3,dhe=lhe(function(){if(O3)return D3;O3=1;var e=function(e){return e.replace(/^\s+|\s+$/g,``)},t=function(e){return Object.prototype.toString.call(e)===`[object Array]`};return D3=function(n){if(!n)return{};for(var r=Object.create(null),i=e(n).split(` 657`),a=0;a<i.length;a++){var o=i[a],s=o.indexOf(`:`),c=e(o.slice(0,s)).toLowerCase(),l=e(o.slice(s+1));typeof r[c]>`u`?r[c]=l:t(r[c])?r[c].push(l):r[c]=[r[c],l]}return r}}()),k3=class{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText=``;responseType=``;status;statusText;withCredentials;#e;#t;#n;#r={};#i;#a={};#o;open(e,t,n){this.#e=e,this.#t=t,this.#n=``,this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#n}setRequestHeader(e,t){this.#r[e]=t}setInit(e,t=!0){this.#a=e,this.#o=t}send(e){let t=this.responseType!==`arraybuffer`,n={...this.#a,method:this.#e,headers:this.#r,body:e};typeof AbortController==`function`&&this.#o&&(this.#i=new AbortController,typeof EventTarget<`u`&&this.#i.signal instanceof EventTarget&&(n.signal=this.#i.signal)),typeof document<`u`&&(n.credentials=this.withCredentials?`include`:`omit`),fetch(this.#t,n).then(e=>(e.headers.forEach((e,t)=>{this.#n+=`${t}: ${e}\r\n`}),this.status=e.status,this.statusText=e.statusText,this.readyState=3,this.onreadystatechange?.(),t?e.text():e.arrayBuffer())).then(e=>{typeof e==`string`?this.responseText=e:this.response=e,this.readyState=4,this.onreadystatechange?.()}).catch(e=>{e.name===`AbortError`?this.onabort?.():this.onerror?.(e)})}},A3=typeof XMLHttpRequest==`function`?`xhr`:`fetch`,fhe=A3===`xhr`?XMLHttpRequest:k3,phe=(e,t)=>{let n=e.options,r=e.applyMiddleware(`finalizeOptions`,n),i={},a=e.applyMiddleware(`interceptRequest`,void 0,{adapter:A3,context:e});if(a){let e=setTimeout(t,0,null,a);return{abort:()=>clearTimeout(e)}}let o=new fhe;o instanceof k3&&typeof r.fetch==`object`&&o.setInit(r.fetch,r.useAbortSignal??!0);let s=r.headers,c=r.timeout,l=!1,u=!1,d=!1;if(o.onerror=e=>{m(o instanceof k3?e instanceof Error?e:Error(`Request error while attempting to reach ${r.url}`,{cause:e}):Error(`Request error while attempting to reach is ${r.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:``}`))},o.ontimeout=e=>{m(Error(`Request timeout while attempting to reach ${r.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:``}`))},o.onabort=()=>{p(!0),l=!0},o.onreadystatechange=function(){c&&(p(),i.socket=setTimeout(()=>f(`ESOCKETTIMEDOUT`),c.socket)),!l&&o&&o.readyState===4&&o.status!==0&&function(){if(!(l||u||d)){if(o.status===0)return void m(Error(`Unknown XHR error`));p(),u=!0,t(null,{body:o.response||(o.responseType===``||o.responseType===`text`?o.responseText:``),url:r.url,method:r.method,headers:dhe(o.getAllResponseHeaders()),statusCode:o.status,statusMessage:o.statusText})}}()},o.open(r.method,r.url,!0),o.withCredentials=!!r.withCredentials,s&&o.setRequestHeader)for(let e in s)s.hasOwnProperty(e)&&o.setRequestHeader(e,s[e]);return r.rawBody&&(o.responseType=`arraybuffer`),e.applyMiddleware(`onRequest`,{options:r,adapter:A3,request:o,context:e}
657),o.send(r.body||null),c&&(i.connect=setTimeout(()=>f(`ETIMEDOUT`),c.connect)),{abort:function(){l=!0,o&&o.abort()}};function f(t){d=!0,o.abort();let n=Error(t===`ESOCKETTIMEDOUT`?`Socket timed out on request to ${r.url}`:`Connection timed out on request to ${r.url}`);n.code=t,e.channels.error.publish(n)}function p(e){(e||l||o&&o.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function m(e){if(u)return;p(!0),u=!0,o=null;let n=e||Error(`Network error while attempting to reach ${r.url}`);n.isNetworkError=!0,n.request=r,t(n)}},mhe=(e=[],t=phe)=>E3(e,t);function hhe(e){return{}}var j3,M3,N3,P3,F3,I3={exports:{}};F3||(F3=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+t[0]+(this.useColors?`%c `:` `)+`+`+e.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;t.splice(1,0,n,`color: inherit`);let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem(`debug`,e):t.storage.removeItem(`debug`)}catch{}},t.load=function(){let e;try{e=t.storage.getItem(`debug`)||t.storage.getItem(`DEBUG`)}catch{}return!e&&typeof process<`u`&&`env`in process&&(e={}.DEBUG),e},t.useColors=function(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch{}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`),t.log=console.debug||console.log||(()=>{}),e.exports=(P3?N3:(P3=1,N3=function(e){function t(e){let r,i,a,o=null;function s(...e){if(!s.enabled)return;let n=s,i=Number(new Date);n.diff=i-(r||i),n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if(r===`%%`)return`%`;a++;let o=t.formatters[i];if(typeof o==`function`){let t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>o===null?(i!==t.namespaces&&(i=t.namespaces,a=t.enabled(e)),a):o,set:e=>{o=e}}),typeof t.init==`function`&&t.init(s),s}function n(e,n){let r=t(this.namespace+(typeof n>`u`?`:`:n)+e);return r.log=this.log,r}function r(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else{if(i===-1)return!1;r=i+1,a++,n=a}for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>`-`+e)].join(`,`);return t.enable(``),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(
657Boolean);for(let e of n)e[0]===`-`?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(let n of t.skips)if(r(e,n))return!1;for(let n of t.names)if(r(e,n))return!0;return!1},t.humanize=function(){if(M3)return j3;M3=1;var e=1e3,t=60*e,n=60*t,r=24*n,i=7*r;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+` `+r+(i?`s`:``)}return j3=function(o,s){s||={};var c,l,u=typeof o;if(u===`string`&&o.length>0)return function(a){if(!((a=String(a)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(o){var s=parseFloat(o[1]);switch((o[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return 315576e5*s;case`weeks`:case`week`:case`w`:return s*i;case`days`:case`day`:case`d`:return s*r;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return s*n;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return s*t;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return s*e;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return s;default:return}}}}(o);if(u===`number`&&isFinite(o))return s.long?(c=o,(l=Math.abs(c))>=r?a(c,l,r,`day`):l>=n?a(c,l,n,`hour`):l>=t?a(c,l,t,`minute`):l>=e?a(c,l,e,`second`):c+` ms`):function(i){var a=Math.abs(i);return a>=r?Math.round(i/r)+`d`:a>=n?Math.round(i/n)+`h`:a>=t?Math.round(i/t)+`m`:a>=e?Math.round(i/e)+`s`:i+`ms`}(o);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(o))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}))(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}}(I3,I3.exports)),I3.exports;var ghe=typeof Buffer>`u`?()=>!1:e=>Buffer.isBuffer(e);function L3(e){return Object.prototype.toString.call(e)===`[object Object]`}function _he(e){if(!1===L3(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!1===L3(n)||!1===n.hasOwnProperty(`isPrototypeOf`))}var vhe=[`boolean`,`string`,`number`];function yhe(){return{processOptions:e=>{let t=e.body;return!t||typeof t.pipe==`function`||ghe(t)||vhe.indexOf(typeof t)===-1&&!Array.isArray(t)&&!_he(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":`application/json`})})}}}function bhe(e){return{onResponse:n=>{let r=n.headers[`content-type`]||``,i=e&&e.force||r.indexOf(`application/json`)!==-1;return n.body&&r&&i?Object.assign({},n,{body:t(n.body)}):n},processOptions:e=>Object.assign({},e,{headers:Object.assign({Accept:`application/json`},e.headers)})};function t(e){try{return JSON.parse(e)}catch(e){throw e.message=`Failed to parsed response body as JSON: ${e.message}`,e}}}var R3={};typeof globalThis<`u`?R3=globalThis:typeof window<`u`?R3=window:typeof global<`u`?R3=global:typeof self<`u`&&(R3=self);var xhe=R3;function She(e={}){let t=e.implementation||xhe.Observable;if(!t)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(e,n)=>new t(t=>(e.error.subscribe(e=>t.error(e)),e.progress.subscribe(e=>t.next(Object.assign({type:`progress`},e))),e.response.subscribe(e=>{t.next(Object.assign({type:`response`},e)),t.complete()}),e.request.publish(n),()=>e.abort.publish()))}}function Che(){return{onRequest:e=>{if(e.adapter!==`xhr`)return;let t=e.request,n=e.context;function r(e){return t=>{let r=t.lengthComputable?t.loaded/t.total*100:-1;n.channels.progress.publish({stage:e,percent:r,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}`upload`in t&&`onprogress`in t.upload&&(t.upload.onprogress=r(`upload`)),`onprogress`in t&&(t.onprogress=r(`download`))}}}var z3=(e={})=>{let t=e.implementation||Promise;if(!t)throw Error("`Promise` is not available in global scope, and n
657o implementation was passed");return{onReturn:(n,r)=>new t((t,i)=>{let a=r.options.cancelToken;a&&a.promise.then(e=>{n.abort.publish(e),i(e)}),n.error.subscribe(i),n.response.subscribe(n=>{t(e.onlyBody?n.body:n)}),setTimeout(()=>{try{n.request.publish(r)}catch(e){i(e)}},0)})}},B3=class{__CANCEL__=!0;message;constructor(e){this.message=e}toString(){return`Cancel`+(this.message?`: ${this.message}`:``)}},whe=class e{promise;reason;constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t=null;this.promise=new Promise(e=>{t=e}),e(e=>{this.reason||(this.reason=new B3(e),t(this.reason))})}static source=()=>{let t;return{token:new e(e=>{t=e}),cancel:t}}};z3.Cancel=B3,z3.CancelToken=whe,z3.isCancel=e=>!(!e||!e?.__CANCEL__);var V3=(e,t,n)=>(n.method===`GET`||n.method===`HEAD`)&&(e.isNetworkError||!1);function The(e){return 100*2**e+100*Math.random()}var H3=(e={})=>(e=>{let t=e.maxRetries||5,n=e.retryDelay||The,r=e.shouldRetry;return{onError:(e,i)=>{let a=i.options,o=a.maxRetries||t,s=a.retryDelay||n,c=a.shouldRetry||r,l=a.attemptNumber||0;if((u=a.body)!==null&&typeof u==`object`&&typeof u.pipe==`function`||!c(e,l,a)||l>=o)return e;var u;let d=Object.assign({},i,{options:Object.assign({},a,{attemptNumber:l+1})});return setTimeout(()=>i.channels.request.publish(d),s(l)),null}}})({shouldRetry:V3,...e});H3.shouldRetry=V3,Ehe=hhe;var Ehe;function U3(e){return typeof e==`function`}function W3(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var G3=W3(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription: 658`+t.map(function(e,t){return t+1+`) `+e.toString()}).join(` 659 `):``,this.name=`UnsubscriptionError`,this.errors=t}});function K3(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var q3=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=Be(a),s=o.next();!s.done;s=o.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this);var c=this.initialTeardown;if(U3(c))try{c()}catch(e){i=e instanceof G3?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=Be(l),d=u.next();!d.done;d=u.next()){var f=d.value;try{X3(f)}
vendor: 17,832 bytes, line 659
659catch(e){i??=[],e instanceof G3?i=qe(qe([],ze(i)),ze(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new G3(i)}},e.prototype.add=function(t){if(t&&t!==this)if(this.closed)X3(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=this._finalizers??[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&K3(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&K3(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e}(),J3=q3.EMPTY;function Y3(e){return e instanceof q3||e&&`closed`in e&&U3(e.remove)&&U3(e.add)&&U3(e.unsubscribe)}function X3(e){U3(e)?e():e.unsubscribe()}var Z3={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Q3={setTimeout:function(e,t){var n=[...arguments].slice(2),r=Q3.delegate;return r?.setTimeout?r.setTimeout.apply(r,qe([e,t],ze(n))):setTimeout.apply(void 0,qe([e,t],ze(n)))},clearTimeout:function(e){return(Q3.delegate?.clearTimeout||clearTimeout)(e)},delegate:void 0};function $3(e){Q3.setTimeout(function(){var t=Z3.onUnhandledError;if(t)t(e);else throw e})}function e6(){}var Dhe=(function(){return t6(`C`,void 0,void 0)})();function Ohe(e){return t6(`E`,void 0,e)}function khe(e){return t6(`N`,e,void 0)}function t6(e,t,n){return{kind:e,value:t,error:n}}var n6=null;function r6(e){if(Z3.useDeprecatedSynchronousErrorHandling){var t=!n6;if(t&&(n6={errorThrown:!1,error:null}),e(),t){var n=n6,r=n.errorThrown,i=n.error;if(n6=null,r)throw i}}else e()}function Ahe(e){Z3.useDeprecatedSynchronousErrorHandling&&n6&&(n6.errorThrown=!0,n6.error=e)}var i6=function(e){We(t,e);function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Y3(t)&&t.add(n)):n.destination=Phe,n}return t.create=function(e,t,n){return new o6(e,t,n)},t.prototype.next=function(e){this.isStopped?c6(khe(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?c6(Ohe(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?c6(Dhe,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(q3),jhe=Function.prototype.bind;function a6(e,t){return jhe.call(e,t)}var Mhe=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){s6(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){s6(e)}else s6(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){s6(e)}},e}(),o6=function(e){We(t,e);function t(t,n,r){var i=e.call(this)||this,a;if(U3(t)||!t)a={next:t??void 0,error:n??void 0,complete:r??void 0};else{var o;i&&Z3.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=function(){return i.unsubscribe()},a={next:t.next&&a6(t.next,o),error:t.error&&a6(t.error,o),complete:t.complete&&a6(t.complete,o)}):a=t}return i.destination=new Mhe(a),i}return t}(i6);function s6(e){Z3.useDeprecatedSynchronousErrorHandling?Ahe(e):$3(e)}function Nhe(e){throw e}function c6(e,t){var n=Z3.onStoppedNotification;n&&Q3.setTimeout(function(){return n(e,t)})}var Phe={closed:!0,next:e6,error:Nhe,complete:e6},l6=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})();function u6(e){return e}function Fhe(){return d6([...arguments])}function d6(e){return e.length===0?u6:e.length===1?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var f6=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this,i=Lhe(e)?e:new o6(e,t,n);return r6(function(){var e=r,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?r._subscribe(i):r._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return t=p6(t),new t(function(t,r){var i=new o6({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){return this.source?.subscribe(e)},e.prototype[l6]=function(){return this},e.prototype.pipe=function(){return d6([...arguments])(this)},e.prototype.toPromise=function(e){var t=this;return e=p6(e),new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function p6(e){return e??Z3.Promise??Promise}function Ihe(e){return e&&U3(e.next)&&U3(e.error)&&U3(e.complete)}function Lhe(e){return e&&e instanceof i6||Ihe(e)&&Y3(e)}function Rhe(e){return U3(e?.lift)}function m6(e){return function(t){if(Rhe(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError(`Unable to lift unknown Observable type`)}}function h6(e,t,n,r,i){return new zhe(e,t,n,r,i)}var zhe=function(e){We(t,e);function t(t,n,r,i,a,o){var s=e.call(this,t)||this;return s.onFinalize=a,s.shouldUnsubscribe=o,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)==null||t.call(this))}},t}(i6),Bhe=W3(function(e){return function(){e(this),this.name=`ObjectUnsubscribedError`,this.message=`object unsubscribed`}}),g6=function(e){We(t,e);function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return t.prototype.lift=function(e){var t=new _6(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Bhe},t.prototype.next=function(e){var t=this;r6(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||=Array.from(t.observers);try{for(var i=Be(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;r6(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;r6(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){return this.observers?.length>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?J3:(this.currentObservers=null,a.push(e),new q3(function(){t.currentObservers=null,K3(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new f6;return e.source=this,e},t.create=function(e,t){return new _6(e,t)},t}(f6),_6=function(e){We(t,e);function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return t.prototype.next=function(e){var t,n;(n=(t=this.destination)?.next)==null||n.call(t,e)},t.prototype.error=function(e){var t,n;(n=(t=this.destination)?.error)==null||n.call(t,e)},t.prototype.complete=function(){var e,t;(t=(e=this.destination)?.complete)==null||t.call(e)},t.prototype._subscribe=function(e){return this.source?.subscribe(e)??J3},t}(g6),v6={now:function(){return(v6.delegate||Date).now()},delegate:void 0},Vhe=function(e){We(t,e);function t(t,n,r){t===void 0&&(t=1/0),n===void 0&&(n=1/0),r===void 0&&(r=v6);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this,r=n._infiniteTimeWindow,i=n._buffer.slice(),a=0;a<i.length&&!e.closed;a+=r?1:2)e.next(i[a]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var o=n.now(),s=0,c=1;c<r.length&&r[c]<=o;c+=2)s=c;s&&r.splice(0,s+1)}},t}(g6),Hhe=function(e){We(t,e);function t(t,n){return e.call(this)||this}return t.prototype.schedule=function(e,t){return t===void 0&&(t=0),this},t}(q3),y6={setInterval:function(e,t){var n=[...arguments].slice(2),r=y6.delegate;return r?.setInterval?r.setInterval.apply(r,qe([e,t],ze(n))):setInterval.apply(void 0,qe([e,t],ze(n)))},clearInterval:function(e){return(y6.delegate?.clearInterval||clearInterval)(e)},delegate:void 0},Uhe=function(e){We(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return t.prototype.schedule=function(e,t){if(t===void 0&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id??this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return n===void 0&&(n=0),y6.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&y6.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error(`executing a cancelled action`);this.pending=!1;var n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r;try{this.work(e)}catch(e){n=!0,r=e||Error(`Scheduled action threw falsy error`)}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,r=t.scheduler,i=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,K3(i,this),n!=null&&(this.id=this.recycleAsyncId(r,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Hhe),b6=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=v6.now,e}(),Whe=new(function(e){We(t,e);function t(t,n){n===void 0&&(n=b6.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return t.prototype.flush=function(e){var t=this.actions;if(this._active){t.push(e);return}var n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}},t}(b6))(Uhe),Ghe=new f6(function(e){return e.complete()});function x6(e){return e&&U3(e.schedule)}function S6(e){return e[e.length-1]}function Khe(e){return U3(S6(e))?e.pop():void 0}function C6(e){return x6(S6(e))?e.pop():void 0}function qhe(e,t){return typeof S6(e)==`number`?e.pop():t}var w6=(function(e){return e&&typeof e.length==`number`&&typeof e!=`function`});function T6(e){return U3(e?.then)}function E6(e){return U3(e[l6])}function D6(e){return Symbol.asyncIterator&&U3(e?.[Symbol.asyncIterator])}function O6(e){return TypeError(`You provided `+(typeof e==`object`&&e?`an invalid object`:`'`+e+`'`)+` where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Jhe(){return typeof Symbol!=`function`||!Symbol.iterator?`@@iterator`:Symbol.iterator}var k6=Jhe();function A6(e){return U3(e?.[k6])}function j6(e){return Ue(this,arguments,function(){var t,n,r,i;return Ke(this,function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Ve(t.read())];case 3:return n=a.sent(),r=n.value,i=n.done,i?[4,Ve(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Ve(r)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function M6(e){return U3(e?.getReader)}function N6(e){if(e instanceof f6)return e;if(e!=null){if(E6(e))return Yhe(e);if(w6(e))return Xhe(e);if(T6(e))return Zhe(e);if(D6(e))return P6(e);if(A6(e))return Qhe(e);if(M6(e))return $he(e)}throw O6(e)}function Yhe(e){return new f6(function(t){var n=e[l6]();if(U3(n.subscribe))return n.subscribe(t);throw TypeError(`Provided object does not correctly implement Symbol.observable`)})}function Xhe(e){return new f6(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Zhe(e){return new f6(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,$3)})}function Qhe(e){return new f6(function(t){var n,r;try{for(var i=Be(e),a=i.next();!a.done;a=i.next()){var o=a.value;if(t.next(o),t.closed)return}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function P6(e){return new f6(function(t){ege(e,t).catch(function(e){return t.error(e)})})}function $he(e){return P6(j6(e))}function ege(e,t){var n,r,i,a;return Re(this,void 0,void 0,function(){var o,s;return Ke(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=Ge(e),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),r.done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),i={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(a=n.return)?[4,a.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function F6(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(a),!i)return a}function I6(e,t){return t===void 0&&(t=0),m6(function(n,r){n.subscribe(h6(r,function(n){return F6(r,e,function(){return r.next(n)},t)},function(){return F6(r,e,function(){return r.complete()},t)},function(n){return F6(r,e,function(){return r.error(n)},t)}))})}function L6(e,t){return t===void 0&&(t=0),m6(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function tge(e,t){return N6(e).pipe(L6(t),I6(t))}function nge(e,t){return N6(e).pipe(L6(t),I6(t))}function rge(e,t){return new f6(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ige(e,t){return new f6(function(n){var r;return F6(n,t,function(){r=e[k6](),F6(n,t,function(){var e,t,i;try{e=r.next(),t=e.value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return U3(r?.return)&&r.return()}})}function R6(e,t){if(!e)throw Error(`Iterable cannot be null`);return new f6(function(n){F6(n,t,function(){var r=e[Symbol.asyncIterator]();F6(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function age(e,t){return R6(j6(e),t)}function oge(e,t){if(e!=null){if(E6(e))return tge(e,t);if(w6(e))return rge(e,t);if(T6(e))return nge(e,t);if(D6(e))return R6(e,t);if(A6(e))return ige(e,t);if(M6(e))return age(e,t)}throw O6(e)}function z6(e,t){return t?oge(e,t):N6(e)}function B6(){var e=[...arguments];return z6(e,C6(e))}function V6(e,t){var n=U3(e)?e:function(){return e},r=function(e){return e.error(n())};return new f6(t?function(e){return t.schedule(r,0,e)}:r)}function sge(e){return!!e&&(e instanceof f6||U3(e.lift)&&U3(e.subscribe))}var H6=W3(function(e){return function(){e(this),this.name=`EmptyError`,this.message=`no elements in sequence`}});function U6(e,t){var n=typeof t==`object`;return new Promise(function(r,i){var a=!1,o;e.subscribe({next:function(e){o=e,a=!0},error:i,complete:function(){a?r(o):n?r(t.defaultValue):i(new H6)}})})}function W6(e,t){var n=typeof t==`object`;return new Promise(function(r,i){var a=new o6({next:function(e){r(e),a.unsubscribe()},error:i,complete:function(){n?r(t.defaultValue):i(new H6)}});e.subscribe(a)})}function cge(e){return e instanceof Date&&!isNaN(e)}function G6(e,t){return m6(function(n,r){var i=0;n.subscribe(h6(r,function(n){r.next(e.call(t,n,i++))}))})}var lge=Array.isArray;function uge(e,t){return lge(t)?e.apply(void 0,qe([],ze(t))):e(t)}function dge(e){return G6(function(t){return uge(e,t)})}
659function fge(e,t,n){return n===void 0&&(n=u6),function(r){K6(t,function(){for(var i=e.length,a=Array(i),o=i,s=i,c=function(i){K6(t,function(){var c=z6(e[i],t),l=!1;c.subscribe(h6(r,function(e){a[i]=e,l||(l=!0,s--),s||r.next(n(a.slice()))},function(){--o||r.complete()}))},r)},l=0;l<i;l++)c(l)},r)}}function K6(e,t,n){e?F6(n,e,t):t()}function pge(e,t,n,r,i,a,o,s){var c=[],l=0,u=0,d=!1,f=function(){d&&!c.length&&!l&&t.complete()},p=function(e){return l<r?m(e):c.push(e)},m=function(e){a&&t.next(e),l++;var s=!1;N6(n(e,u++)).subscribe(h6(t,function(e){i?.(e),a?p(e):t.next(e)},function(){s=!0},void 0,function(){if(s)try{l--;for(var e=function(){var e=c.shift();o?F6(t,o,function(){return m(e)}):m(e)};c.length&&l<r;)e();f()}catch(e){t.error(e)}}))};return e.subscribe(h6(t,p,function(){d=!0,f()})),function(){s?.()}}function q6(e,t,n){return n===void 0&&(n=1/0),U3(t)?q6(function(n,r){return G6(function(e,i){return t(n,e,r,i)})(N6(e(n,r)))},n):(typeof t==`number`&&(n=t),m6(function(t,r){return pge(t,r,e,n)}))}function J6(e){return e===void 0&&(e=1/0),q6(u6,e)}function mge(){return J6(1)}function hge(){var e=[...arguments];return mge()(z6(e,C6(e)))}function Y6(e){return new f6(function(t){N6(e()).subscribe(t)})}function gge(e,t,n){e===void 0&&(e=0),n===void 0&&(n=Whe);var r=-1;return t!=null&&(x6(t)?n=t:r=t),new f6(function(t){var i=cge(e)?+e-n.now():e;i<0&&(i=0);var a=0;return n.schedule(function(){t.closed||(t.next(a++),0<=r?this.schedule(void 0,r):t.complete())},i)})}function _ge(){var e=[...arguments],t=C6(e),n=qhe(e,1/0),r=e;return r.length?r.length===1?N6(r[0]):J6(n)(z6(r,t)):Ghe}var vge=Array.isArray;function yge(e){return e.length===1&&vge(e[0])?e[0]:e}function X6(e,t){return m6(function(n,r){var i=0;n.subscribe(h6(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}function Z6(e){return m6(function(t,n){var r=null,i=!1,a;r=t.subscribe(h6(n,void 0,void 0,function(o){a=N6(e(o,Z6(e)(t))),r?(r.unsubscribe(),r=null,a.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,a.subscribe(n))})}function bge(e,t,n,r,i){return function(a,o){var s=n,c=t,l=0;a.subscribe(h6(o,function(t){var n=l++;c=s?e(c,t,n):(s=!0,t),r&&o.next(c)},i&&(function(){s&&o.next(c),o.complete()})))}}function xge(e,t){return m6(bge(e,t,arguments.length>=2,!1,!0))}function Q6(){var e=[...arguments],t=Khe(e);return t?Fhe(Q6.apply(void 0,qe([],ze(e))),dge(t)):m6(function(t,n){fge(qe([t],ze(yge(e))))(n)})}function Sge(){var e=[...arguments];return Q6.apply(void 0,qe([],ze(e)))}function Cge(e,t){return U3(t)?q6(e,t,1):q6(e,1)}function $6(e){return m6(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}function e8(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new g6}:t,r=e.resetOnError,i=r===void 0||r,a=e.resetOnComplete,o=a===void 0||a,s=e.resetOnRefCountZero,c=s===void 0||s;return function(e){var t,r,a,s=0,l=!1,u=!1,d=function(){r?.unsubscribe(),r=void 0},f=function(){d(),t=a=void 0,l=u=!1},p=function(){var e=t;f(),e?.unsubscribe()};return m6(function(e,m){s++,!u&&!l&&d();var h=a??=n();m.add(function(){s--,s===0&&!u&&!l&&(r=t8(p,c))}),h.subscribe(m),!t&&s>0&&(t=new o6({next:function(e){return h.next(e)},error:function(e){u=!0,d(),r=t8(f,i,e),h.error(e)},complete:function(){l=!0,d(),r=t8(f,o),h.complete()}}),N6(e).subscribe(t))})(e)}}function t8(e,t){var n=[...arguments].slice(2);if(t===!0){e();return}if(t!==!1){var r=new o6({next:function(){r.unsubscribe(),e()}});return N6(t.apply(void 0,qe([],ze(n)))).subscribe(r)}}function wge(e,t,n){var r,i,a,o,s=!1;return e&&typeof e==`object`?(r=e.bufferSize,o=r===void 0?1/0:r,i=e.windowTime,t=i===void 0?1/0:i,a=e.refCount,s=a!==void 0&&a,n=e.scheduler):o=e??1/0,e8({connector:function(){return new Vhe(o,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function Tge(e,t,n){var r=U3(e)||t||n?{next:e,error:t,complete:n}:e;return r?m6(function(e,t){var n;(n=r.subscribe)==null||n.call(r);var i=!0;e.subscribe(h6(t,function(e){var n;(n=r.next)==null||n.call(r,e),t.next(e)},function(){var e;i=!1,(e=r.complete)==null||e.call(r),t.complete()},function(e){var n;i=!1,(n=r.error)==null||n.call(r,e),t.error(e)},function(){var e,t;i&&((e=r.unsubscribe)==null||e.call(r)),(t=r.finalize)==null||t.call(r)}))}):u6}function n8(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var r8={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},i8={0:8203,1:8204,2:8205,3:65279},a8={0:String.fromCodePoint(i8[0]),1:String.fromCodePoint(i8[1]),2:String.fromCodePoint(i8[2]),3:String.fromCodePoint(i8[3])},Ege=[,,,,].fill(String.fromCodePoint(i8[0])).join(``);function Dge(e){let t=JSON.stringify(e),n=new TextEncoder().encode(t),r=``;for(let e=0;e<n.length;e++){let t=n[e];r+=a8[t>>6&3]+a8[t>>4&3]+a8[t>>2&3]+a8[t&3]}return Ege+r}function Oge(e){return!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e)?!1:!!Date.parse(e)}function kge(e){try{new URL(e,e.startsWith(`/`)?`https://acme.com`:void 0)}catch{return!1}return!0}function Age(e,t,n=`auto`){return n===!0||n===`auto`&&(Oge(e)||kge(e))?e:`${e}${Dge(t)}`}Object.fromEntries(Object.entries(a8).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(r8).map(e=>e.reverse()));var jge=`${Object.values(r8).map(e=>`\\u{${e.toString(16)}}`).join(``)}
659`,o8=RegExp(`[${jge}]{4,}`,`gu`);function Mge(e){return{cleaned:e.replace(o8,``),encoded:e.match(o8)?.[0]||``}}function Nge(e){return e&&JSON.parse(Mge(JSON.stringify(e)).cleaned)}function Pge(e){return Nge(e)}var Fge=`drafts`,Ige=`versions`,s8=`.`,c8=`${Fge}${s8}`,l8=`${Ige}${s8}`;function u8(e){return e.startsWith(c8)}function d8(e){return e.startsWith(l8)}function f8(e){return d8(e)?c8+h8(e):u8(e)?e:c8+e}function p8(e,t){if(t===`drafts`||t===`published`)throw Error(`Version can not be "published" or "drafts"`);return`${l8}${t}${s8}${h8(e)}`}function m8(e){if(!d8(e))return;let[t,n]=e.split(s8);return n}function h8(e){return d8(e)?e.split(s8).slice(2).join(s8):u8(e)?e.slice(c8.length):e}var Lge=e=>crypto.getRandomValues(new Uint8Array(e)),Rge=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return(a=t)=>{let o=``;for(;;){let t=n(i),s=i|0;for(;s--;)if(o+=e[t[s]&r]||``,o.length===a)return o}}},zge=(e,t=21)=>Rge(e,t,Lge),g8=/\r\n|[\n\r\u2028\u2029]/;function Bge(e,t,n){let r=e.split(g8),{start:i,end:a,markerLines:o}=Vge({start:_8(t.start,r),end:t.end?_8(t.end,r):void 0},r),s=`${a}`.length;return e.split(g8,a).slice(i,a).map((e,t)=>{let r=i+1+t,a=` ${` ${r}`.slice(-s)} |`,c=o[r],l=!o[r+1];if(!c)return` ${a}${e.length>0?` ${e}`:``}`;let u=``;if(Array.isArray(c)){let t=e.slice(0,Math.max(c[0]-1,0)).replace(/[^\t]/g,` `),r=c[1]||1;u=[` 660 `,a.replace(/\d/g,` `),` `,t,`^`.repeat(r)].join(``),l&&n&&(u+=` `+n)}return[`>`,a,e.length>0?` ${e}`:``,u].join(``)}).join(` 661`)}function Vge(e,t){let n={...e.start},r={...n,...e.end},i=n.line??-1,a=n.column??0,o=r.line,s=r.column,c=Math.max(i-3,0),l=Math.min(t.length,o+3);i===-1&&(c=0),o===-1&&(l=t.length);let u=o-i,d={};if(u)for(let e=0;e<=u;e++){let n=e+i;a?e===0?d[n]=[a,t[n-1].length-a+1]:e===u?d[n]=[0,s]:d[n]=[0,t[n-e].length]:d[n]=!0}else a===s?a?d[i]=[a,0]:d[i]=!0:d[i]=[a,s-a];return{start:c,end:l,markerLines:d}}function _8(e,t){let n=0;for(let r=0;r<t.length;r++){let i=t[r].length+1;if(n+i>e)return{line:r+1,column:e-n};n+=i}return{line:t.length,column:t[t.length-1]?.length??0}}var v8=5,Hge=class extends Error{response;statusCode=400;responseBody;traceId;details;constructor(e,t){let n=y8(e,t);super(n.message),Object.assign(this,n)}},Uge=class extends Error{response;statusCode=500;responseBody;traceId;details;constructor(e){let t=y8(e);super(t.message),Object.assign(this,t)}};function y8(e,t){let n=e.body,r={response:e,statusCode:e.statusCode,responseBody:qge(n,e),traceId:Kge(e),message:``,details:void 0};if(!n8(n))return r.message=`${S8(e,n)}${C8(r.traceId)}`,r;let i=n.error;if(typeof i==`string`&&typeof n.message==`string`)return r.message=`${i} - ${n.message}${C8(r.traceId)}`,r;if(typeof i!=`object`||!i)return typeof i==`string`?r.message=`${i}${C8(r.traceId)}`:typeof n.message==`string`?r.message=`${n.message}${C8(r.traceId)}`:r.message=`${S8(e,n)}${C8(r.traceId)}`,r;if(Wge(i)||Gge(i)){let e=i.items||[],t=e.slice(0,v8).map(e=>e.error?.description).filter(Boolean),a=t.length?`: 662- ${t.join(` 663- `)}`:``;return e.length>v8&&(a+=` 664...and ${e.length-v8} more`),r.message=`${i.description}${C8(r.traceId)}${a}`,r.details=n.error,r}if(b8(i)){let e=t?.options?.query?.tag;return r.message=x8(i,e,r.traceId),r.details=n.error,r}return`description`in i&&typeof i.description==`string`?(r.message=`${i.description}${C8(r.traceId)}`,r.details=i,r):(r.message=`${S8(e,n)}${C8(r.traceId)}`,r)}function Wge(e){return`type`in e&&e.type===`mutationError`&&`description`in e&&typeof e.description==`string`}function Gge(e){return`type`in e&&e.type===`actionError`&&`description`in e&&typeof e.description==`string`}function b8(e){return n8(e)&&e.type===`queryParseError`&&typeof e.query==`string`&&typeof e.start==`number`&&typeof e.end==`number`}function x8(e,t,n){let{query:r,start:i,end:a,description:o}=e,s=n?` 665(traceId: ${n})`:``;if(!r||typeof i>`u`)return`GROQ query parse error: ${o}${s}`;let c=t?` 666 667Tag: ${t}`:``;return`GROQ query parse error: 668${Bge(r,{start:i,end:a},o)}${c}${s}`}function S8(e,t){let n=typeof t==`string`?` (${Jge(t,100)})`:``,r=e.statusMessage?` ${e.statusMessage}`:``;return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${r}${n}`}function Kge(e){let t=e?.headers?.traceparent;if(t)return t.split(`-`)[1]}function qge(e,t){return(t.headers[`content-type`]||``).toLowerCase().indexOf(`application/json`)===-1?e:JSON.stringify(e,null,2)}function C8(e){return e?` (traceId: ${e})`:``}function Jge(e,t){return e.length>t?`${e.slice(0,t)}\u2026`:e}
668var w8=class extends Error{projectId;addOriginUrl;constructor({projectId:e,credentials:t}={}){if(super(`CorsOriginError`),this.name=`CorsOriginError`,this.projectId=e,e&&typeof location<`u`){let n=new URL(`https://sanity.io/manage/project/${e}/api`),{origin:r}=location;n.searchParams.set(`cors`,`add`),n.searchParams.set(`origin`,r),t&&n.searchParams.set(`credentials`,``),this.addOriginUrl=n,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${n}`}else e?this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: https://sanity.io/manage/project/${e}/api`:this.message=`The current origin is not allowed to connect to the Live Content API.`}},Yge={onResponse:(e,t)=>{if(e.statusCode>=500)throw new Uge(e);if(e.statusCode>=400)throw new Hge(e,t);return e}};function Xge(e={}){let t={},n=t=>e.ignoreWarnings!==void 0&&(Array.isArray(e.ignoreWarnings)?e.ignoreWarnings:[e.ignoreWarnings]).some(e=>typeof e==`string`?t.includes(e):e instanceof RegExp&&e.test(t));return{onResponse:e=>{let r=e.headers[`x-sanity-warning`],i=Array.isArray(r)?r:[r];for(let e of i)!e||t[e]||n(e)||(t[e]=!0,console.warn(e));return e}}}function T8(e,t={}){return mhe([H3({shouldRetry:Zge}),...e,Xge(t),yhe(),bhe(),Che(),Yge,She({implementation:f6})])}function Zge(e,t,n){if(n.maxRetries===0)return!1;let r=n.method===`GET`||n.method===`HEAD`,i=(n.uri||n.url).startsWith(`/data/query`),a=e.response&&(e.response.statusCode===429||e.response.statusCode===502||e.response.statusCode===503);return(r||i)&&a?!0:H3.shouldRetry(e,t,n)}var Qge=`https://www.sanity.io/help/`;function E8(e){return Qge+e}var D8=[`image`,`file`],O8=[`before`,`after`,`replace`],k8=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error(`Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters`)},$ge=e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},e_e=e=>{if(D8.indexOf(e)===-1)throw Error(`Invalid asset type: ${e}. Must be one of ${D8.join(`, `)}`)},A8=(e,t)=>{if(typeof t!=`object`||!t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},j8=(e,t)=>{if(typeof t!=`string`||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(`..`))throw Error(`${e}(): "${t}" is not a valid document ID`)},M8=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);j8(e,t._id)},t_e=(e,t)=>{if(typeof t!=`string`)throw Error(`\`${e}()\`: \`${t}\` is not a valid document type`)},N8=(e,t)=>{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);t_e(e,t._type)},n_e=(e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}\`) does not match the generated version ID (\`${e}\`)`)},r_e=(e,t,n)=>{let r=`insert(at, selector, items)`;if(O8.indexOf(e)===-1){let e=O8.map(e=>`"${e}"`).join(`, `);throw Error(`${r} takes an "at"-argument which is one of: ${e}`)}if(typeof t!=`string`)throw Error(`${r} takes a "selector"-argument which must be a string`);if(!Array.isArray(n))throw Error(`${r} takes an "items"-argument which must be an array`)},P8=e=>{if(e.dataset)return e.dataset;let t=e.resource;if(t&&t.type===`dataset`){let e=t.id.split(`.`);if(e.length!==2)throw Error(`Dataset resource ID must be in the format "project.dataset"`);return e[1]}throw Error("`dataset` must be provided to perform queries")},F8=e=>{if(typeof e!=`string`||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error(`Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.`);return e},I8=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:n,id:r}=t;switch(n){case`dataset`:if(r.split(`.`).length!==2)throw Error(`Dataset resource ID must be in the format "project.dataset"`);return;case`dashboard`:case`media-library`:case`canvas`:return;default:throw Error(`Unsupported resource type: ${n.toString()}`)}},L8=(e,t)=>{if(t.resource)throw Error(`\`${e}\` does not support resource-based operations`)};function i_e(e){let t=!1,n;return(...r)=>(t||=(n=e(...r),!0),n)}var R8=e=>i_e((...t)=>console.warn(e.join(` `),...t)),a_e=R8(["Because you set `withCredentials` to true, we will override your `useCdn`",`setting to be false since (cookie-based) credentials are never set on the CDN`]),o_e=R8(["Since you haven't set a value for `useCdn`, we will deliver content using our",`global, edge-cached API-CDN. If you wish to have content delivered faster, set`,"`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),s_e=R8(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),c_e=R8(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),l_e=R8([`You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.`,`See ${E8(`js-client-browser-token`)} for more information and how to hide this warning.`]),u_e=R8(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),d_e=R8([`Using the Sanity client without specifying an API version is deprecated.`,`See ${E8(`js-client-api-version`)}`]);R8(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]);var f_e=R8(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."]),p_e=R8(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),m_e=`apicdn.sanity.io`,z8={apiHost:`https://api.sanity.io`,apiVersion:`1`,useProjectHostname:!0,stega:{enabled:!1}},h_e=[`localhost`,`127.0.0.1`,`0.0.0.0`],g_e=e=>h_e.indexOf(e)!==-1;function __e(e){if(e===`1`||e===`X`)return;let t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}function B8(e){if(Array.isArray(e)&&e.length>1&&e.includes(`raw`))throw TypeError(`Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives`)}var V8=(e,t)=>{let n={...t,...e,stega:{...typeof t.stega==`boolean`?{enabled:t.stega}:t.stega||z8.stega,...typeof e.stega==`boolean`?{enabled:e.stega}:e.stega||{}}};n.apiVersion||d_e();let r={...z8,...n};r[`~experimental_resource`]&&!r.resource&&(p_e(),r.resource=r[`~experimental_resource`]);let i=r.resource,a=r.useProjectHostname&&!i;if(typeof Promise>`u`){let e=E8(`js-client-promise-polyfill`);throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(a&&!r.projectId)throw Error("Configuration must contain `projectId`");if(i&&I8(r),typeof r.perspective<`u`&&B8(r.perspective),`encodeSourceMap`in r)throw Error(`It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?`);if(`encodeSourceMapAtPath`in r)throw Error(`It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?`);if(typeof r.stega.enabled!=`boolean`)throw Error(`stega.enabled must be a boolean, received ${r.stega.enabled}`);if(r.stega.enabled&&r.stega.studioUrl===void 0)throw Error(`stega.studioUrl must be defined when stega.enabled is true`);if(r.stega.enabled&&typeof r.stega.studioUrl!=`string`&&typeof r.stega.studioUrl!=`function`)throw Error(`stega.studioUrl must be a string or a function, received ${r.stega.studioUrl}`);let o=typeof window<`u`&&window.location&&window.location.hostname,s=o&&g_e(window.location.hostname),c=!!r.token;
668r.withCredentials&&c&&(u_e(),r.withCredentials=!1),o&&s&&c&&r.ignoreBrowserTokenWarning!==!0?l_e():typeof r.useCdn>`u`&&o_e(),a&&$ge(r.projectId),r.dataset&&k8(r.dataset),`requestTagPrefix`in r&&(r.requestTagPrefix=r.requestTagPrefix?F8(r.requestTagPrefix).replace(/\.+$/,``):void 0),r.apiVersion=`${r.apiVersion}`.replace(/^v/,``),r.isDefaultApi=r.apiHost===z8.apiHost,r.useCdn===!0&&r.withCredentials&&a_e(),r.useCdn=r.useCdn!==!1&&!r.withCredentials,__e(r.apiVersion);let l=r.apiHost.split(`://`,2),u=l[0],d=l[1],f=r.isDefaultApi?m_e:d;return a?(r.url=`${u}://${r.projectId}.${d}/v${r.apiVersion}`,r.cdnUrl=`${u}://${r.projectId}.${f}/v${r.apiVersion}`):(r.url=`${r.apiHost}/v${r.apiVersion}`,r.cdnUrl=r.url),r},H8=class extends Error{name=`ConnectionFailedError`;status;constructor(e,t={}){let{status:n,...r}=t;super(e,r),this.status=n}},v_e=class extends Error{name=`DisconnectError`;reason;constructor(e,t,n={}){super(e,n),this.reason=t}},y_e=class extends Error{name=`ChannelError`;data;constructor(e,t){super(e),this.data=t}},b_e=class extends Error{name=`MessageError`;data;constructor(e,t,n={}){super(e,n),this.data=t}},U8=class extends Error{name=`MessageParseError`},x_e=[`channelError`,`disconnect`];function W8(e,t){return Y6(()=>{let t=e();return sge(t)?t:B6(t)}).pipe(q6(e=>S_e(e,t)))}function S_e(e,t){return new f6(n=>{let r=t.includes(`open`),i=t.includes(`reconnect`);function a(t){if(`data`in t){let[e,r]=G8(t);n.error(e?new U8(`Unable to parse EventSource error message`,{cause:r}):new b_e((r?.data).message,r));return}let r=t.status,a=typeof r==`number`?r:void 0;if(a!==void 0){n.error(new H8(`EventSource connection failed`,{status:a}));return}e.readyState===e.CLOSED?n.error(new H8(`EventSource connection failed`)):i&&n.next({type:`reconnect`})}function o(){n.next({type:`open`})}function s(t){let[r,i]=G8(t);if(r){n.error(new U8(`Unable to parse EventSource message`,{cause:r}));return}if(t.type===`channelError`){let t=new URL(e.url).searchParams.get(`tag`);n.error(new y_e(C_e(i?.data,t),i.data));return}if(t.type===`disconnect`){n.error(new v_e(`Server disconnected client: ${i.data?.reason||`unknown error`}`));return}n.next({type:t.type,id:t.lastEventId,...i.data?{data:i.data}:{}})}e.addEventListener(`error`,a),r&&e.addEventListener(`open`,o);let c=[...new Set([...x_e,...t])].filter(e=>e!==`error`&&e!==`open`&&e!==`reconnect`);return c.forEach(t=>e.addEventListener(t,s)),()=>{e.removeEventListener(`error`,a),r&&e.removeEventListener(`open`,o),c.forEach(t=>e.removeEventListener(t,s)),e.close()}})}function G8(e){try{let t=typeof e.data==`string`&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...w_e(t)?{}:{data:t}}]}catch(e){return[e,null]}}function C_e(e,t){let n=e.error;return n?b8(n)?x8(n,t):n.description?n.description:typeof n==`string`?n:JSON.stringify(n,null,2):e.message||`Unknown listener error`}function w_e(e){for(let t in e)return!1;return!0}function K8(e){if(typeof e==`string`)return{id:e};if(Array.isArray(e))return{query:`*[_id in $ids]`,params:{ids:e}};if(typeof e==`object`&&e&&`query`in e&&typeof e.query==`string`)return`params`in e&&typeof e.params==`object`&&e.params!==null?{query:e.query,params:e.params}:{query:e.query};let t=[`* Document ID (<docId>)`,`* Array of document IDs`,"* Object containing `query`"].join(` 669`);throw Error(`Unknown selection - must be one of: 670 671${t}`)}var q8=class{selection;operations;constructor(e,t={}){this.selection=e,this.operations=t}set(e){return this._assign(`set`,e)}setIfMissing(e){return this._assign(`setIfMissing`,e)}diffMatchPatch(e){return A8(`diffMatchPatch`,e),this._assign(`diffMatchPatch`,e)}unset(e){if(!Array.isArray(e))throw Error(`unset(attrs) takes an array of attributes to unset, non-array given`);return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign(`inc`,e)}dec(e){return this._assign(`dec`,e)}insert(e,t,n){return r_e(e,t,n),this._assign(`insert`,{[e]:t,items:n})}append(e,t){return this.insert(`after`,`${e}[-1]`,t)}prepend(e,t){return this.insert(`before`,`${e}[0]`,t)}splice(e,t,n,r){let i=typeof n>`u`||n===-1,a=t<0?t-1:t,o=i?-1:Math.max(0,t+n),s=`${e}[${a}:${a<0&&o>=0?``:o}]`;return this.insert(`replace`,s,r||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...K8(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,n=!0){return A8(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},n&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}},J8=class e extends q8{#e;constructor(e,t,n){super(e,t),this.#e=n}clone(){return new e(this.selection,{...this.operations},this.#e)}commit(e){if(!this.#e)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=typeof this.selection==`string`,n=Object.assign({returnFirst:t,returnDocuments:!0},e);return this.#e.mutate({patch:this.serialize()},n)}},Y8=class e extends q8{#e;constructor(e,t,n){super(e,t),this.#e=n}clone(){return new e(this.selection,{...this.operations},this.#e)}commit(e){if(!this.#e)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=typeof this.selection==`string`,n=Object.assign({returnFirst:t,returnDocuments:!0},e);return this.#e.mutate({patch:this.serialize()},n)}},X8={returnDocuments:!1},Z8=class{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return A8(`create`,e),this._add({create:e})}createIfNotExists(e){let t=`createIfNotExists`;return A8(t,e),M8(t,e),this._add({[t]:e})}createOrReplace(e){let t=`createOrReplace`;return A8(t,e),M8(t,e),this._add({[t]:e})}delete(e){return j8(`delete`,e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}},Q8=class e extends Z8{#e;constructor(e,t,n){super(e,n),this.#e=t}clone(){return new e([...this.operations],this.#e,this.trxId)}commit(e){if(!this.#e)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#e.mutate(this.serialize(),Object.assign({transactionId:this.trxId},X8,e||{}))}patch(e,t){let n=typeof t==`function`,r=typeof e!=`string`&&e instanceof Y8,i=typeof e==`object`&&(`query`in e||`id`in e);if(r)return this._add({patch:e.serialize()});if(n){let n=t(new Y8(e,{},this.#e));if(!(n instanceof Y8))throw Error("function passed to `patch()` must return the patch");return this._add({patch:n.serialize()})}if(i){let n=new Y8(e,t||{},this.#e);return this._add({patch:n.serialize()})}return this._add({patch:{id:e,...t}})}},$8=class e extends Z8{#e;constructor(e,t,n){super(e,n),this.#e=t}clone(){return new e([...this.operations],this.#e,this.trxId)}commit(e){if(!this.#e)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#e.mutate(this.serialize(),Object.assign({transactionId:this.trxId},X8,e||{}))}patch(e,t){let n=typeof t==`function`;if(typeof e!=`string`&&e instanceof J8)return this._add({patch:e.serialize()});if(n){let n=t(new J8(e,{},this.#e));if(!(n instanceof J8))throw Error("function passed to `patch()` must return the patch");return this._add({patch:n.serialize()})}return this._add({patch:{id:e,...t}})}},T_e=`X-Sanity-Project-ID`;function E_e(e,t={}){let n={};e.headers&&Object.assign(n,e.headers);let r=t.token||e.token;r&&(n.Authorization=`Bearer ${r}`),!t.useGlobalApi&&!e.useProjectHostname&&e.projectId&&(n[T_e]=e.projectId);let i=!!(typeof t.withCredentials>`u`?e.withCredentials:t.withCredentials),a=typeof t.timeout>
671`u`?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},n,t.headers||{}),timeout:typeof a>`u`?300*1e3:a,proxy:t.proxy||e.proxy,json:!0,withCredentials:i,fetch:typeof t.fetch==`object`&&typeof e.fetch==`object`?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}var e5=({query:e,params:t={},options:n={}})=>{let r=new URLSearchParams,{tag:i,includeMutations:a,returnQuery:o,...s}=n;i&&r.append(`tag`,i),r.append(`query`,e);for(let[e,n]of Object.entries(t))n!==void 0&&r.append(`$${e}`,JSON.stringify(n));for(let[e,t]of Object.entries(s))t&&r.append(e,`${t}`);return o===!1&&r.append(`returnQuery`,`false`),a===!1&&r.append(`includeMutations`,`false`),`?${r}`},D_e=(e,t)=>e===!1?void 0:typeof e>`u`?t:e,O_e=(e={})=>({dryRun:e.dryRun,returnIds:!0,returnDocuments:D_e(e.returnDocuments,!0),visibility:e.visibility||`sync`,autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}),t5=e=>e.type===`response`,k_e=e=>e.body,A_e=(e,t)=>e.reduce((e,n)=>(e[t(n)]=n,e),Object.create(null)),j_e=11264;function n5(e,t,n,r,i={},a={}){let o=`stega`in a?{...n||{},...typeof a.stega==`boolean`?{enabled:a.stega}:a.stega||{}}:n,s=o.enabled?Pge(i):i,c=a.filterResponse===!1?e=>e:e=>e.result,{cache:l,next:u,...d}={useAbortSignal:typeof a.signal<`u`,resultSourceMap:o.enabled?`withKeyArraySelector`:a.resultSourceMap,...a,returnQuery:a.filterResponse===!1&&a.returnQuery!==!1},f=typeof l<`u`||typeof u<`u`?{...d,fetch:{cache:l,next:u}}:d,p=v5(e,t,`query`,{query:r,params:s},f);return o.enabled?p.pipe(Sge(z6(T(()=>import(`./stegaEncodeSourceMap-DB9sM6r9.js`).then(function(e){return e.stegaEncodeSourceMap$1}),[]).then(({stegaEncodeSourceMap:e})=>e))),G6(([e,t])=>{let n=t(e.result,e.resultSourceMap,o);return c({...e,result:n})})):p.pipe(G6(c))}function r5(e,t,n,r={}){return S5(e,t,{uri:w5(e,`doc`,(()=>{if(!r.releaseId)return n;let e=m8(n);if(!e){if(u8(n))throw Error(`The document ID (\`${n}\`) is a draft, but \`options.releaseId\` is set as \`${r.releaseId}\``);return p8(n,r.releaseId)}if(e!==r.releaseId)throw Error(`The document ID (\`${n}\`) is already a version of \`${e}\` release, but this does not match the provided \`options.releaseId\` (\`${r.releaseId}\`)`);return n})()),json:!0,tag:r.tag,signal:r.signal,query:r.includeAllVersions===void 0?void 0:{includeAllVersions:r.includeAllVersions}}).pipe(X6(t5),G6(e=>{let t=e.body.documents;return t?r.includeAllVersions?t:t[0]:r.includeAllVersions?[]:void 0}))}function i5(e,t,n,r={}){return S5(e,t,{uri:w5(e,`doc`,n.join(`,`)),json:!0,tag:r.tag,signal:r.signal}).pipe(X6(t5),G6(e=>{let t=A_e(e.body.documents||[],e=>e._id);return n.map(e=>t[e]||null)}))}var a5=100;function o5(e,t,n,r={}){if(n.length===0)return B6(new Set);let i=[];for(let e=0;e<n.length;e+=a5)i.push(n.slice(e,e+a5));return z6(i).pipe(Cge(n=>S5(e,t,{uri:w5(e,`doc`,n.map(encodeURIComponent).join(`,`)),tag:r.tag,signal:r.signal,query:{excludeContent:!0}}).pipe(X6(t5),G6(e=>{let t=new Set;for(let n of e.body.omitted||[])n.reason===`existence`&&t.add(n.id);return new Set(n.filter(e=>!t.has(e)))}))),xge((e,t)=>{for(let n of t)e.add(n);return e},new Set))}function s5(e,t,n,r={}){return v5(e,t,`query`,{query:`*[sanity::partOfRelease($releaseId)]`,params:{releaseId:n}},r)}function c5(e,t,n,r){return M8(`createIfNotExists`,n),y5(e,t,n,`createIfNotExists`,r)}function l5(e,t,n,r){return M8(`createOrReplace`,n),y5(e,t,n,`createOrReplace`,r)}function u5(e,t,n,r,i){return M8(`createVersion`,n),N8(`createVersion`,n),f_e(),_5(e,t,{actionType:`sanity.action.document.version.create`,publishedId:r,document:n},i)}function d5(e,t,n,r,i,a,o){if(!r)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!n)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return j8(`createVersion`,r),j8(`createVersion`,n),_5(e,t,{actionType:`sanity.action.document.version.create`,publishedId:n,baseId:r,versionId:i?p8(n,i):f8(n),ifBaseRevisionId:a},o)}function f5(e,t,n,r){return v5(e,t,`mutate`,{mutations:[{delete:K8(n)}]},r)}function p5(e,t,n,r=!1,i){return _5(e,t,{actionType:`sanity.action.document.version.discard`,versionId:n,purge:r},i)}function m5(e,t,n,r){return M8(`replaceVersion`,n),N8(`replaceVersion`,n),_5(e,t,{actionType:`sanity.action.document.version.replace`,document:n},r)}function h5(e,t,n,r,i){return _5(e,t,{actionType:`sanity.action.document.version.unpublish`,versionId:n,publishedId:r},i)}function g5(e,t,n,r){let i;return i=n instanceof Y8||n instanceof J8?{patch:n.serialize()}:n instanceof Q8||n instanceof $8?n.serialize():n,v5(e,t,`mutate`,{mutations:Array.isArray(i)?i:[i],transactionId:r&&r.transactionId||void 0},r)}function _5(e,t,n,r){return v5(e,t,`actions`,{actions:Array.isArray(n)?n:[n],transactionId:r&&r.transactionId||void 0,skipCrossDatasetReferenceValidation:r&&r.skipCrossDatasetReferenceValidation||void 0,dryRun:r&&r.dryRun||void 0},r)}function v5(e,t,n,r,i={}){let a=n===`mutate`,o=n===`actions`,s=n===`query`,c=a||o?``:e5(r),l=!a&&!o&&c.length<j_e,u=l?c:``,d=i.returnFirst,{timeout:f,token:p,tag:m,headers:h,returnQuery:g,lastLiveEventId:_,cac
671heMode:v}=i,y=w5(e,n,u);return S5(e,t,{method:l?`GET`:`POST`,uri:y,json:!0,body:l?void 0:r,query:a&&O_e(i),timeout:f,headers:h,token:p,tag:m,returnQuery:g,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(_)?_[0]:_,cacheMode:v,canUseCdn:s,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn}).pipe(X6(t5),G6(k_e),G6(e=>{if(!a)return e;let t=e.results||[];if(i.returnDocuments)return d?t[0]&&t[0].document:t.map(e=>e.document);let n=d?`documentId`:`documentIds`,r=d?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[n]:r}}))}function y5(e,t,n,r,i={}){let a={[r]:n},o=Object.assign({returnFirst:!0,returnDocuments:!0},i);return v5(e,t,`mutate`,{mutations:[a]},o)}var b5=e=>{let t=e.config();return t.dataset!==void 0&&t.projectId!==void 0||t.resource!==void 0},x5=(e,t)=>b5(e)&&t.startsWith(w5(e,`query`)),M_e=(e,t)=>b5(e)&&t.startsWith(w5(e,`mutate`)),N_e=(e,t)=>b5(e)&&t.startsWith(w5(e,`doc`,``)),P_e=(e,t)=>b5(e)&&t.startsWith(w5(e,`listen`)),F_e=(e,t)=>b5(e)&&t.startsWith(w5(e,`history`,``)),I_e=(e,t)=>t.startsWith(`/data/`)||x5(e,t)||M_e(e,t)||N_e(e,t)||P_e(e,t)||F_e(e,t);function S5(e,t,n){let r=Error(),i=n.url||n.uri,a=e.config(),o=typeof n.canUseCdn>`u`?[`GET`,`HEAD`].indexOf(n.method||`GET`)>=0&&I_e(e,i):n.canUseCdn,s=(n.useCdn??a.useCdn)&&o,c=n.tag&&a.requestTagPrefix?[a.requestTagPrefix,n.tag].join(`.`):n.tag||a.requestTagPrefix;if(c&&n.tag!==null&&(n.query={tag:F8(c),...n.query}),[`GET`,`HEAD`,`POST`].indexOf(n.method||`GET`)>=0&&x5(e,i)){let e=n.resultSourceMap??a.resultSourceMap;e!==void 0&&e!==!1&&(n.query={resultSourceMap:e,...n.query});let t=n.perspective||a.perspective;typeof t<`u`&&(t===`previewDrafts`&&c_e(),B8(t),n.query={perspective:Array.isArray(t)?t.join(`,`):t,...n.query},(Array.isArray(t)&&t.length>0||t===`previewDrafts`||t===`drafts`)&&s&&(s=!1,s_e())),n.lastLiveEventId&&(n.query={...n.query,lastLiveEventId:n.lastLiveEventId}),n.returnQuery===!1&&(n.query={returnQuery:`false`,...n.query}),s&&n.cacheMode==`noStale`&&(n.query={cacheMode:`noStale`,...n.query})}let l=E_e(a,Object.assign({},n,{url:T5(e,i,s),callSiteStack:r})),u=new f6(e=>t(l,a.requester).subscribe(e));return n.signal?u.pipe(L_e(n.signal)):u}function C5(e,t,n){return S5(e,t,n).pipe(X6(e=>e.type===`response`),G6(e=>e.body))}function w5(e,t,n){let r=e.config();if(r.resource)return I8(r),`${B_e(r)}/${n===void 0?t:`${t}/${n}`}`.replace(/\/($|\?)/,`$1`);let i=`/${t}/${P8(r)}`;return`/data${n===void 0?i:`${i}/${n}`}`.replace(/\/($|\?)/,`$1`)}function T5(e,t,n=!1){let{url:r,cdnUrl:i}=e.config();return`${n?i:r}/${t.replace(/^\//,``)}`}function L_e(e){return t=>new f6(n=>{let r=()=>n.error(z_e(e));if(e&&e.aborted){r();return}let i=t.subscribe(n);return e.addEventListener(`abort`,r),()=>{e.removeEventListener(`abort`,r),i.unsubscribe()}})}var R_e=!!globalThis.DOMException;function z_e(e){if(R_e)return new DOMException(e?.reason??`The operation was aborted.`,`AbortError`);let t=Error(e?.reason??`The operation was aborted.`);return t.name=`AbortError`,t}var B_e=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:n,id:r}=t;switch(n){case`dataset`:{let e=r.split(`.`);if(e.length!==2)throw Error(`Dataset ID must be in the format "project.dataset"`);return`/projects/${e[0]}/datasets/${e[1]}`}case`canvas`:return`/canvases/${r}`;case`media-library`:return`/media-libraries/${r}`;case`dashboard`:return`/dashboards/${r}`;default:throw Error(`Unsupported resource type: ${n.toString()}`)}};function E5(e,t,n){return C5(e,t,{method:`POST`,uri:`/agent/action/generate/${P8(e.config())}`,body:n})}function V_e(e,t,n){return C5(e,t,{method:`POST`,uri:`/agent/action/patch/${P8(e.config())}`,body:n})}function H_e(e,t,n){return C5(e,t,{method:`POST`,uri:`/agent/action/prompt/${P8(e.config())}`,body:n})}function D5(e,t,n){return C5(e,t,{method:`POST`,uri:`/agent/action/transform/${P8(e.config())}`,body:n})}function O5(e,t,n){return C5(e,t,{method:`POST`,uri:`/agent/action/translate/${P8(e.config())}`,body:n})}var U_e=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}generate(e){return E5(this.#e,this.#t,e)}transform(e){return D5(this.#e,this.#t,e)}translate(e){return O5(this.#e,this.#t,e)}},W_e=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}generate(e){return U6(E5(this.#e,this.#t,e))}transform(e){return U6(D5(this.#e,this.#t,e))}translate(e){return U6(O5(this.#e,this.#t,e))}prompt(e){return U6(H_e(this.#e,this.#t,e))}patch(e){return U6(V_e(this.#e,this.#t,e))}},G_e=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}upload(e,t,n){return k5(this.#e,this.#t,e,t,n)}},K_e=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}upload(e,t,n){return U6(k5(this.#e,this.#t,e,t,n).pipe(X6(e=>e.type===`response`),G6(e=>e.body.document)))}};function k5(e,t,n,r,i={}){e_e(n);let a=i.extract||void 0;a&&!a.length&&(a=[`none`]);let o=e.config(),s=J_e(i,r),{tag:c,label:l,title:u,description:d,creditLine:f,filename:p,source:m}=s,h=o.resource?.type===`media-library`,g=h?{title:u,filename:p}:{label:l,title:u,description:d,filename:p,meta:a,creditLine:f};return m&&!h&&(g.sourceId=m.id,g.sourceName=m.name,g.sourceUrl=m.url),S5(e,t,{tag:c,method:`POST`,timeout:s.timeout||0,uri:q_e(o,n),headers:s.contentType?{"Content-Type":s.contentType}:{},query:g,body:r})}function q_e(e,t){let n=t===`image`?`images`:`files`,r=e.resource;if(r){let{type:e,id:t}=r;switch(e){case`dataset`:throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case`canvas`:return`/canvases/${t}/assets/${n}`;case`media-library`:return`/media-libraries/${t}/upload`;case`dashboard`:return`/dashboards/${t}/assets/${n}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}}return`assets/${n}/${P8(e)}`}function J_e(e,t){return typeof File>`u`||!(t instanceof File)?e:Object.assign({filename:e.preserveFilename===!1?void 0:t.name,contentType:t.type},e)}var Y_e=(e,t)=>
671Object.keys(t).concat(Object.keys(e)).reduce((n,r)=>(n[r]=typeof e[r]>`u`?t[r]:e[r],n),{}),X_e=(e,t)=>t.reduce((t,n)=>(typeof e[n]>`u`||(t[n]=e[n]),t),{}),A5=Y6(()=>T(()=>import(`./browser-BTqjkxS6.js`),__vite__mapDeps([183,1]))).pipe(G6(({default:e})=>e),wge(1)),Z_e=new Set([408,429]);function j5(){return function(e){return e.pipe(Z6((e,t)=>e instanceof H8&&(typeof e.status!=`number`||e.status<400||e.status>=500||Z_e.has(e.status))?hge(B6({type:`reconnect`}),gge(1e3).pipe(q6(()=>t))):V6(()=>e)))}}var Q_e=14800,$_e=[`includePreviousRevision`,`includeResult`,`includeMutations`,`includeAllVersions`,`visibility`,`effectFormat`,`enableResume`,`tag`],eve={includeResult:!0};function M5(e,t,n={}){let{url:r,token:i,withCredentials:a,requestTagPrefix:o,headers:s}=this.config(),c=n.tag&&o?[o,n.tag].join(`.`):n.tag,l={...Y_e(n,eve),tag:c},u=e5({query:e,params:t,options:{tag:c,...X_e(l,$_e)}}),d=`${r}${w5(this,`listen`,u)}`;if(d.length>Q_e)return V6(()=>Error(`Query too large for listener`));let f=l.events?l.events:[`mutation`],p={};return a&&(p.withCredentials=!0),(i||s)&&(p.headers={},i&&(p.headers.Authorization=`Bearer ${i}`),s&&Object.assign(p.headers,s)),W8(()=>(typeof EventSource>`u`||p.headers?A5:B6(EventSource)).pipe(G6(e=>new e(d,p))),f).pipe(j5(),X6(e=>f.includes(e.type)),G6(e=>({type:e.type,...`data`in e?e.data:{}})))}function tve(e,t){return nve(typeof e==`function`?{predicate:e,...t}:e)}function nve(e){return t=>{let n,r=!1,{predicate:i,...a}=e;return _ge(t.pipe(Tge(t=>{e.predicate(t)&&(r=!0,n=t)}),$6(()=>{r=!1,n=void 0}),e8(a)),new f6(e=>{r&&e.next(n),e.complete()}))}}var N5=`2021-03-25`,P5=class{#e;constructor(e){this.#e=e}events({includeDrafts:e=!1,tag:t,waitFor:n}={}){let{projectId:r,apiVersion:i,token:a,withCredentials:o,requestTagPrefix:s,headers:c}=this.#e.config(),l=i.replace(/^v/,``);if(l!==`X`&&l<N5)throw Error(`The live events API requires API version ${N5} or later. The current API version is ${l}. Please update your API version to use this feature.`);if(e&&!a&&!o)throw Error(`The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.`);let u=w5(this.#e,`live/events`),d=new URL(this.#e.getUrl(u,!1)),f=t&&s?[s,t].join(`.`):t;f&&d.searchParams.set(`tag`,f),e&&d.searchParams.set(`includeDrafts`,`true`),n&&d.searchParams.set(`waitFor`,n);let p={};e&&o&&(p.withCredentials=!0),(e&&a||c)&&(p.headers={},e&&a&&(p.headers.Authorization=`Bearer ${a}`),c&&Object.assign(p.headers,c));let m=`${d.href}::${JSON.stringify(p)}`,h=F5.get(m);if(h)return h;let g=W8(()=>(typeof EventSource>`u`||p.headers?A5:B6(EventSource)).pipe(G6(e=>new e(d.href,p))),[`message`,`restart`,`welcome`,`reconnect`,`goaway`]),_=rve(new URL(this.#e.getUrl(`/check/cors`,!1)),r,p.withCredentials===!0),v=g.pipe(j5(),q6(e=>e.type===`reconnect`?_.pipe(q6(()=>B6(e))):B6(e)),Z6(e=>e instanceof w8?V6(()=>e):_.pipe(q6(()=>{throw e}))),G6(e=>{if(e.type===`message`){let{data:t,...n}=e;return{...n,tags:t.tags}}return e})).pipe($6(()=>F5.delete(m)),tve({predicate:e=>e.type===`welcome`}));return F5.set(m,v),v}};function rve(e,t,n){return new f6(r=>{let i=new AbortController,{signal:a}=i;return fetch(e,{method:`GET`,mode:`cors`,credentials:`omit`,signal:a}).then(e=>{if(!(a.aborted||!e.ok))return e.json()}).then(e=>{if(!a.aborted){if(n&&e?.result?.withCredentials===!1){r.error(new w8({projectId:t,credentials:!0}));return}if(e?.result?.allowed===!1){r.error(new w8({projectId:t,credentials:n}));return}r.next(),r.complete()}}).catch(()=>{a.aborted||r.closed||(r.next(),r.complete())}),()=>i.abort()})}var F5=new Map,ive=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}create(e,t){return L5(this.#e,this.#t,`PUT`,e,t)}edit(e,t){return L5(this.#e,this.#t,`PATCH`,e,t)}delete(e){return L5(this.#e,this.#t,`DELETE`,e)}list(){L8(`dataset`,this.#e.config());let e=this.#e.config(),t=e.projectId,n=`/datasets`;return e.useProjectHostname===!1&&(n=`/projects/${t}/datasets`),C5(this.#e,this.#t,{uri:n,tag:null})}getEmbeddingsSettings(e){return L8(`dataset`,this.#e.config()),k8(e),C5(this.#e,this.#t,{uri:I5(this.#e,e),tag:null})}editEmbeddingsSettings(e,t){return L8(`dataset`,this.#e.config()),k8(e),C5(this.#e,this.#t,{method:`PUT`,uri:I5(this.#e,e),body:t,tag:null})}},ave=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}create(e,t){return L8(`dataset`,this.#e.config()),U6(L5(this.#e,this.#t,`PUT`,e,t))}edit(e,t){return L8(`dataset`,this.#e.config()),U6(L5(this.#e,this.#t,`PATCH`,e,t))}delete(e){return L8(`dataset`,this.#e.config()),U6(L5(this.#e,this.#t,`DELETE`,e))}list(){L8(`dataset`,this.#e.config());let e=this.#e.config(),t=e.projectId,n=`/datasets`;return e.useProjectHostname===!1&&(n=`/projects/${t}/datasets`),U6(C5(this.#e,this.#t,{uri:n,tag:null}))}getEmbeddingsSettings(e){return L8(`dataset`,this.#e.config()),k8(e),U6(C5(this.#e,this.#t,{uri:I5(this.#e,e),tag:null}))}editEmbeddingsSettings(e,t){return L8(`dataset`,this.#e.config()),k8(e),U6(C5(this.#e,this.#t,{method:`PUT`,uri:I5(this.#e,e),body:t,tag:null}))}};function I5(e,t){let n=e.config();return n.useProjectHostname===!1?`/projects/${n.projectId}/datasets/${t}/settings/embeddings`:`/datasets/${t}/settings/embeddings`}function L5(e,t,n,r,i){return L8(`dataset`,e.config()),k8(r),C5(e,t,{method:n,uri:`/datasets/${r}`,body:i,tag:null})}var R5=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getPlaybackInfo(e,t={}){let n=this.#e.config(),r=(n.resource||n[`~experimental_resource`])?.id,{instanceId:i,library
671Id:a}=lve(e),o=a||r;if(!o)throw Error(`Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR`);let s=uve(i,o),c=dve(t);return C5(this.#e,this.#t,{method:`GET`,uri:s,query:c})}},ove=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getPlaybackInfo(e,t={}){return U6(new R5(this.#e.observable,this.#t).getPlaybackInfo(e,t))}},sve=/^media-library:(ml[^:]+):([^:]+)$/;function cve(e){return typeof e==`object`&&`_ref`in e}function lve(e){let t=cve(e)?e._ref:e,n=sve.exec(t);if(n){let[,e,t]=n;return{libraryId:e,instanceId:t}}if(typeof e==`string`&&e.startsWith(`video-`))return{instanceId:e};throw Error(`Invalid video asset instance identifier "${t}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}function uve(e,t){return`/media-libraries/${t}/video/${e}/playback-info`}function dve(e){let t={};if(e.transformations){let{thumbnail:n,animated:r,storyboard:i}=e.transformations;n&&(n.width&&(t.thumbnailWidth=n.width),n.height&&(t.thumbnailHeight=n.height),n.time!==void 0&&(t.thumbnailTime=n.time),n.fit&&(t.thumbnailFit=n.fit),n.format&&(t.thumbnailFormat=n.format)),r&&(r.width&&(t.animatedWidth=r.width),r.height&&(t.animatedHeight=r.height),r.start!==void 0&&(t.animatedStart=r.start),r.end!==void 0&&(t.animatedEnd=r.end),r.fps&&(t.animatedFps=r.fps),r.format&&(t.animatedFormat=r.format)),i&&i.format&&(t.storyboardFormat=i.format)}return e.expiration&&(t.expiration=e.expiration),t}var fve=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers=`false`),e?.includeFeatures===!1&&(t.includeFeatures=`false`),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership=`true`),C5(this.#e,this.#t,{uri:`/projects`,query:t})}getById(e){return C5(this.#e,this.#t,{uri:`/projects/${e}`})}},pve=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers=`false`),e?.includeFeatures===!1&&(t.includeFeatures=`false`),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership=`true`),U6(C5(this.#e,this.#t,{uri:`/projects`,query:t}))}getById(e){return U6(C5(this.#e,this.#t,{uri:`/projects/${e}`}))}},z5=zge(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`,8),B5=(e,t)=>t?p8(e,t):f8(e);function V5(e,{releaseId:t,publishedId:n,document:r}){if(n&&r._id){let e=B5(n,t);return n_e(e,r),e}if(r._id){let n=u8(r._id),i=d8(r._id);if(!n&&!i)throw Error(`\`${e}()\` requires a document with an \`_id\` that is a version or draft ID`);if(t){if(n)throw Error(`\`${e}()\` was called with a document ID (\`${r._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);let i=m8(r._id);if(i!==t)throw Error(`\`${e}()\` was called with a document ID (\`${r._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${i}\`).`)}return r._id}if(n)return B5(n,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}var mve=(e,t)=>{if(typeof e==`object`&&e&&(`releaseId`in e||`metadata`in e)){let{releaseId:n=z5(),metadata:r={}}=e;return[n,r,t]}return[z5(),{},e]},H5=(e,t)=>{let[n,r,i]=mve(e,t);return{action:{actionType:`sanity.action.release.create`,releaseId:n,metadata:{...r,releaseType:r.releaseType||`undecided`}},options:i}},hve=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get({releaseId:e},t){return r5(this.#e,this.#t,`_.releases.${e}`,t)}create(e,t){let{action:n,options:r}=H5(e,t),{releaseId:i,metadata:a}=n;return _5(this.#e,this.#t,n,r).pipe(G6(e=>({...e,releaseId:i,metadata:a})))}edit({releaseId:e,patch:t},n){let r={actionType:`sanity.action.release.edit`,releaseId:e,patch:t};return _5(this.#e,this.#t,r,n)}publish({releaseId:e},t){let n={actionType:`sanity.action.release.publish`,releaseId:e};return _5(this.#e,this.#t,n,t)}archive({releaseId:e},t){let n={actionType:`sanity.action.release.archive`,releaseId:e};return _5(this.#e,this.#t,n,t)}unarchive({releaseId:e},t){let n={actionType:`sanity.action.release.unarchive`,releaseId:e};return _5(this.#e,this.#t,n,t)}schedule({releaseId:e,publishAt:t},n){let r={actionType:`sanity.action.release.schedule`,releaseId:e,publishAt:t};return _5(this.#e,this.#t,r,n)}unschedule({releaseId:e},t){let n={actionType:`sanity.action.release.unschedule`,releaseId:e};return _5(this.#e,this.#t,n,t)}delete({releaseId:e},t){let n={actionType:`sanity.action.release.delete`,releaseId:e};return _5(this.#e,this.#t,n,t)}fetchDocuments({releaseId:e},t){return s5(this.#e,this.#t,e,t)}},gve=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get({releaseId:e},t){return U6(r5(this.#e,this.#t,`_.releases.${e}`,t))}async create(e,t){let{action:n,options:r}=H5(e,t),{releaseId:i,metadata:a}=n;return{...await U6(_5(this.#e,this.#t,n,r)),releaseId:i,metadata:a}}edit({releaseId:e,patch:t},n){let r={actionType:`sanity.action.release.edit`,releaseId:e,patch:t};return U6(_5(this.#e,this.#t,r,n))}publish({releaseId:e},t){let n={actionType:`sanity.action.release.publish`,releaseId:e};return U6(_5(this.#e,this.#t,n,t))}archive({releaseId:e},t){let n={actionType:`sanity.action.release.archive`,releaseId:e};return U6(_5(this.#e,this.#t,n,t))}unarchive({releaseId:e},t){let n={actionType:`sanity.action.release.unarchive`,releaseId:e};return U6(_5(this.#e,this.#t,n,t))}schedule({releaseId:e,publishAt:t},n){let r={actionType:`sanity.action.release.schedule`,releaseId:e,publishAt:t};return U6(_5(this.#e,this.#t,r,n))}unschedule({releaseId:e},t){let n={actionType:`sanity.action.release.unschedule`,releaseId:e};return U6(_5(this.#e,this.#t,n,t))}delete({releaseId:e},t){let n={actionType:`sanity.action.release.delete`,releaseId:e};return U6(_5(this.#e,this.#t,n,t))}fetchDocuments({releaseId:e},t){return U6(s5(this.#e,this.#t,e,t))}},_ve=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getById(e){return C5(this.#e,this.#t,{uri:`/users/${e}`})}},vve=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getById(e){return U6(C5(this.#e,this.#t,{uri:`/users/${e}`}))}},yve=class e{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#e;#t;#n;listen=M5;constructor(e,t=z8){this.config(t),this.#t=e;let n=t._requestHandler;this.#n=n?(()=>{let r;return(i,a)=>{let o=i;return r||=new U5(e,{...t,_requestHandler:void 0}),n(o,t=>e(t,a),r)}})():e,this.assets=new G_e(this,this.#n),this.datasets=new ive(this,this.#n),this.live=new P5(this),this.mediaLibrary={video:new R5(this,this.#n)},this.projects=new fve(this,this.#n),this.users=new _ve(this,this.#n),this.agent={action:new U_e(this,this.#n)},this.releases=new hve(this,this.#n)}clone(){return new e(this.#t,this.config())}config(e){if(e===void 0)return{...this.#e};if(this.#e&&this.#e.allowReconfigure===!1)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#e=V8(e,this.#e||{}),this}withConfig(t){let n=this.config();return new e(this.#t,{...n,...t,stega:{...n.stega||{},...typeof t?.stega==`boolean`?{enabled:t.stega}:t?.stega||{}}})}
671fetch(e,t,n){return n5(this,this.#n,this.#e.stega,e,t,n)}getDocument(e,t){if(t?.includeAllVersions===!0)return r5(this,this.#n,e,{...t,includeAllVersions:!0});let n={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&`includeAllVersions`in t?{includeAllVersions:!1}:{}};return r5(this,this.#n,e,n)}getDocuments(e,t){return i5(this,this.#n,e,t)}documentsExists(e,t){return o5(this,this.#n,e,t)}create(e,t){return y5(this,this.#n,e,`create`,t)}createIfNotExists(e,t){return c5(this,this.#n,e,t)}createOrReplace(e,t){return l5(this,this.#n,e,t)}createVersion({document:e,publishedId:t,releaseId:n,baseId:r,ifBaseRevisionId:i},a){if(!e)return d5(this,this.#n,t,r,n,i,a);let o=V5(`createVersion`,{document:e,publishedId:t,releaseId:n}),s={...e,_id:o},c=t||h8(e._id);return u5(this,this.#n,s,c,a)}delete(e,t){return f5(this,this.#n,e,t)}discardVersion({releaseId:e,publishedId:t},n,r){let i=B5(t,e);return p5(this,this.#n,i,n,r)}replaceVersion({document:e,publishedId:t,releaseId:n},r){let i=V5(`replaceVersion`,{document:e,publishedId:t,releaseId:n}),a={...e,_id:i};return m5(this,this.#n,a,r)}unpublishVersion({releaseId:e,publishedId:t},n){let r=p8(t,e);return h5(this,this.#n,r,t,n)}mutate(e,t){return g5(this,this.#n,e,t)}patch(e,t){return new J8(e,t,this)}transaction(e){return new $8(e,this)}action(e,t){return _5(this,this.#n,e,t)}request(e){return C5(this,this.#n,e)}getUrl(e,t){return T5(this,e,t)}getDataUrl(e,t){return w5(this,e,t)}},U5=class e{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#e;#t;#n;listen=M5;constructor(t,n=z8){this.config(n),this.#t=t;let r=n._requestHandler;this.#n=r?(()=>{let i;return(a,o)=>{let s=a;return i||=new e(t,{...n,_requestHandler:void 0}),r(s,e=>t(e,o),i)}})():t,this.assets=new K_e(this,this.#n),this.datasets=new ave(this,this.#n),this.live=new P5(this),this.mediaLibrary={video:new ove(this,this.#n)},this.projects=new pve(this,this.#n),this.users=new vve(this,this.#n),this.agent={action:new W_e(this,this.#n)},this.releases=new gve(this,this.#n),this.observable=new yve(t,n)}clone(){return new e(this.#t,this.config())}config(e){if(e===void 0)return{...this.#e};if(this.#e&&this.#e.allowReconfigure===!1)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),this.#e=V8(e,this.#e||{}),this}withConfig(t){let n=this.config();return new e(this.#t,{...n,...t,stega:{...n.stega||{},...typeof t?.stega==`boolean`?{enabled:t.stega}:t?.stega||{}}})}fetch(e,t,n){return U6(n5(this,this.#n,this.#e.stega,e,t,n))}getDocument(e,t){if(t?.includeAllVersions===!0)return U6(r5(this,this.#n,e,{...t,includeAllVersions:!0}));let n={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&`includeAllVersions`in t?{includeAllVersions:!1}:{}};return U6(r5(this,this.#n,e,n))}getDocuments(e,t){return U6(i5(this,this.#n,e,t))}documentsExists(e,t){return U6(o5(this,this.#n,e,t))}create(e,t){return U6(y5(this,this.#n,e,`create`,t))}createIfNotExists(e,t){return U6(c5(this,this.#n,e,t))}createOrReplace(e,t){return U6(l5(this,this.#n,e,t))}createVersion({document:e,publishedId:t,releaseId:n,baseId:r,ifBaseRevisionId:i},a){if(!e)return W6(d5(this,this.#n,t,r,n,i,a));let o=V5(`createVersion`,{document:e,publishedId:t,releaseId:n}),s={...e,_id:o},c=t||h8(e._id);return W6(u5(this,this.#n,s,c,a))}delete(e,t){return U6(f5(this,this.#n,e,t))}discardVersion({releaseId:e,publishedId:t},n,r){let i=B5(t,e);return U6(p5(this,this.#n,i,n,r))}replaceVersion({document:e,publishedId:t,releaseId:n},r){let i=V5(`replaceVersion`,{document:e,publishedId:t,releaseId:n}),a={...e,_id:i};return W6(m5(this,this.#n,a,r))}unpublishVersion({releaseId:e,publishedId:t},n){let r=p8(t,e);return U6(h5(this,this.#n,r,t,n))}mutate(e,t){return U6(g5(this,this.#n,e,t))}patch(e,t){return new Y8(e,t,this)}transaction(e){return new Q8(e,this)}action(e,t){return U6(_5(this,this.#n,e,t))}request(e){return U6(C5(this,this.#n,e))}dataRequest(e,t,n){return U6(v5(this,this.#n,e,t,n))}getUrl(e,t){return T5(this,e,t)}getDataUrl(e,t){return w5(this,e,t)}};function bve(e,t){return{requester:T8(e),createClient:n=>{let r=T8(e,{ignoreWarnings:n.ignoreWarnings});return new t((e,t)=>
671(t||r)({maxRedirects:0,maxRetries:n.maxRetries,retryDelay:n.retryDelay,lineage:n.lineage,...e}),n)}}}var W5=bve([],U5);W5.requester;var xve=W5.createClient,G5=`image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg`;function Sve(e){let[,t,n,r]=e.split(`-`);if(!t||!n||!r)throw Error(`Malformed asset _ref '${e}'. Expected an id like "${G5}".`);let[i,a]=n.split(`x`),o=+i,s=+a;if(!(isFinite(o)&&isFinite(s)))throw Error(`Malformed asset _ref '${e}'. Expected an id like "${G5}".`);return{id:t,width:o,height:s,format:r}}var Cve=e=>{let t=e;return t?typeof t._ref==`string`:!1},wve=e=>{let t=e;return t?typeof t._id==`string`:!1},Tve=e=>{let t=e;return t&&t.asset?typeof t.asset.url==`string`:!1},Eve=e=>{if(typeof e==`object`&&e){let t=e;return t._upload&&(!t.asset||!t.asset._ref)}return!1};function Dve(e){if(!e)return null;let t;if(typeof e==`string`&&Ove(e))t={asset:{_ref:K5(e)}};else if(typeof e==`string`)t={asset:{_ref:e}};else if(Cve(e))t={asset:e};else if(wve(e))t={asset:{_ref:e._id||``}};else if(Tve(e))t={asset:{_ref:K5(e.asset.url)}};else if(typeof e.asset==`object`)t={...e};else return null;let n=e;return n.crop&&(t.crop=n.crop),n.hotspot&&(t.hotspot=n.hotspot),kve(t)}function Ove(e){return/^https?:\/\//.test(`${e}`)}function K5(e){return`image-${e.split(`/`).slice(-1)[0]}`.replace(/\.([a-z]+)$/,`-$1`)}function kve(e){if(e.crop&&e.hotspot)return e;let t={...e};return t.crop||={left:0,top:0,bottom:0,right:0},t.hotspot||={x:.5,y:.5,height:1,width:1},t}var q5=[[`width`,`w`],[`height`,`h`],[`format`,`fm`],[`download`,`dl`],[`blur`,`blur`],[`sharpen`,`sharp`],[`invert`,`invert`],[`orientation`,`or`],[`minHeight`,`min-h`],[`maxHeight`,`max-h`],[`minWidth`,`min-w`],[`maxWidth`,`max-w`],[`quality`,`q`],[`fit`,`fit`],[`crop`,`crop`],[`saturation`,`sat`],[`auto`,`auto`],[`dpr`,`dpr`],[`pad`,`pad`],[`frame`,`frame`]];function Ave(e){let t={...e||{}},n=t.source;delete t.source;let r=Dve(n);if(!r){if(n&&Eve(n))return`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=`;throw Error(`Unable to resolve image URL from source (${JSON.stringify(n)})`)}let i=Sve(r.asset._ref||r.asset._id||``),a=Math.round(r.crop.left*i.width),o=Math.round(r.crop.top*i.height),s={left:a,top:o,width:Math.round(i.width-r.crop.right*i.width-a),height:Math.round(i.height-r.crop.bottom*i.height-o)},c=r.hotspot.height*i.height/2,l=r.hotspot.width*i.width/2,u=r.hotspot.x*i.width,d=r.hotspot.y*i.height,f={left:u-l,top:d-c,right:u+l,bottom:d+c};return t.rect||t.focalPoint||t.ignoreImageParams||t.crop||(t={...t,...Mve({crop:s,hotspot:f},t)}),jve({...t,asset:i})}function jve(e){let t=(e.baseUrl||`https://cdn.sanity.io`).replace(/\/+$/,``),n=e.vanityName?`/${e.vanityName}`:``,r=`${e.asset.id}-${e.asset.width}x${e.asset.height}.${e.asset.format}${n}`,i;i=e.mediaLibraryId?`${t}/media-libraries/${e.mediaLibraryId}/images/${r}`:e.canvasId?`${t}/images/canvases/${e.canvasId}/${r}`:`${t}/images/${e.projectId}/${e.dataset}/${r}`;let a=[];if(e.rect){let{left:t,top:n,width:r,height:i}=e.rect;(t!==0||n!==0||i!==e.asset.height||r!==e.asset.width)&&a.push(`rect=${t},${n},${r},${i}`)}e.bg&&a.push(`bg=${e.bg}`),e.focalPoint&&(a.push(`fp-x=${e.focalPoint.x}`),a.push(`fp-y=${e.focalPoint.y}`));let o=[e.flipHorizontal&&`h`,e.flipVertical&&`v`].filter(Boolean).join(``);return o&&a.push(`flip=${o}`),q5.forEach(t=>{let[n,r]=t;typeof e[n]<`u`?a.push(`${r}=${encodeURIComponent(e[n])}`):typeof e[r]<`u`&&a.push(`${r}=${encodeURIComponent(e[r])}`)}),a.length===0?i:`${i}?${a.join(`&`)}`}function Mve(e,t){let n,r=t.width,i=t.height;if(!(r&&i))return{width:r,height:i,rect:e.crop};let a=e.crop,o=e.hotspot,s=r/i;if(a.width/a.height>s){let e=Math.round(a.height),t=Math.round(e*s),r=Math.max(0,Math.round(a.top)),i=Math.round((o.right-o.left)/2+o.left),c=Math.max(0,Math.round(i-t/2));c<a.left?c=a.left:c+t>a.left+a.width&&(c=a.left+a.width-t),n={left:c,top:r,width:t,height:e}}else{let e=a.width,t=Math.round(e/s),r=Math.max(0,Math.round(a.left)),i=Math.round((o.bottom-o.top)/2+o.top),c=Math.max(0,Math.round(i-t/2));c<a.top?c=a.top:c+t>a.top+a.height&&(c=a.top+a.height-t),n={left:r,top:c,width:e,height:t}}return{width:r,height:i,rect:n}}var Nve=[`clip`,`crop`,`fill`,`fillmax`,`max`,`scale`,`min`],Pve=[`top`,`bottom`,`left`,`right`,`center`,`focalpoint`,`entropy`],Fve=[`format`];function Ive(e){return e&&`config`in e?typeof e.config==`function`:!1}function Lve(e){return e&&`clientConfig`in e?typeof e.clientConfig==`object`:!1}function J5(e){let{apiHost:t,projectId:n,dataset:r}=e,i={baseUrl:(t||`https://api.sanity.io`).replace(/^https:\/\/api\./,`https://cdn.`)},a=e.resource??e[`~experimental_resource`];if(a?.type===`media-library`){if(typeof a.id!=`string`||a.id.length===0)throw Error(`Media library clients must include an id in "resource"`);return{...i,mediaLibraryId:a.id}}
671if(a?.type===`canvas`){if(typeof a.id!=`string`||a.id.length===0)throw Error(`Canvas clients must include an id in "resource"`);return{...i,canvasId:a.id}}if(a?.type===`dataset`){if(typeof a.id!=`string`||a.id.length===0)throw Error(`Dataset clients must include an id in "resource"`);let[e,t]=a.id.split(`.`);if(!e||!t)throw Error(`Dataset resource id must be in the format "projectId.dataset", got: `+a.id);return{...i,projectId:e,dataset:t}}return{...i,projectId:n,dataset:r}}function Rve(e){let t=q5;for(let n of t){let[t,r]=n;if(e===t||e===r)return t}return e}function Y5(e){let t={};return t=Ive(e)?J5(e.config()):Lve(e)?J5(e.clientConfig):e||{},t}function zve(e,t){return new e(null,Y5(t))}function Bve(e){return zve(Hve,e)}function Vve(e,t){let n=t.baseUrl||e.baseUrl,r={baseUrl:n};for(let e in t)if(t.hasOwnProperty(e)){let n=Rve(e);r[n]=t[e]}return{baseUrl:n,...r}}var Hve=class e{options;constructor(e,t){this.options=e?{...e.options||{},...t||{}}:{...t||{}}}withOptions(t){let n=Vve(this.options,t);return new e(this,n)}image(e){return this.withOptions({source:e})}dataset(e){return this.withOptions({dataset:e})}projectId(e){return this.withOptions({projectId:e})}withClient(t){let n=Y5(t),r={...this.options};return delete r.baseUrl,delete r.projectId,delete r.dataset,delete r.mediaLibraryId,delete r.canvasId,new e(null,{...n,...r})}bg(e){return this.withOptions({bg:e})}dpr(e){return this.withOptions(e&&e!==1?{dpr:e}:{})}width(e){return this.withOptions({width:e})}height(e){return this.withOptions({height:e})}focalPoint(e,t){return this.withOptions({focalPoint:{x:e,y:t}})}maxWidth(e){return this.withOptions({maxWidth:e})}minWidth(e){return this.withOptions({minWidth:e})}maxHeight(e){return this.withOptions({maxHeight:e})}minHeight(e){return this.withOptions({minHeight:e})}size(e,t){return this.withOptions({width:e,height:t})}blur(e){return this.withOptions({blur:e})}sharpen(e){return this.withOptions({sharpen:e})}rect(e,t,n,r){return this.withOptions({rect:{left:e,top:t,width:n,height:r}})}format(e){return this.withOptions({format:e})}invert(e){return this.withOptions({invert:e})}orientation(e){return this.withOptions({orientation:e})}quality(e){return this.withOptions({quality:e})}forceDownload(e){return this.withOptions({download:e})}flipHorizontal(){return this.withOptions({flipHorizontal:!0})}flipVertical(){return this.withOptions({flipVertical:!0})}ignoreImageParams(){return this.withOptions({ignoreImageParams:!0})}fit(e){if(Nve.indexOf(e)===-1)throw Error(`Invalid fit mode "${e}"`);return this.withOptions({fit:e})}crop(e){if(Pve.indexOf(e)===-1)throw Error(`Invalid crop mode "${e}"`);return this.withOptions({crop:e})}saturation(e){return this.withOptions({saturation:e})}auto(e){if(Fve.indexOf(e)===-1)throw Error(`Invalid auto mode "${e}"`);return this.withOptions({auto:e})}pad(e){return this.withOptions({pad:e})}vanityName(e){return this.withOptions({vanityName:e})}frame(e){if(e!==1)throw Error(`Invalid frame value "${e}"`);return this.withOptions({frame:e})}url(){return Ave(this.options)}toString(){return this.url()}};function Uve(e){let t=!1,n;return(...r)=>(t||=(n=e(...r),!0),n)}var Wve=(e=>Uve((...t)=>{console.warn(e.join(` `),...t)}))(["The default export of @sanity/image-url has been deprecated. Use the named export `createImageUrlBuilder` instead."]);function Gve(e){return function(t){return Wve(),e(t)}}var Kve=Gve(Bve),X5=xve({projectId:`a1s5z8nz`,dataset:`production`,apiVersion:`2024-10-01`,useCdn:!0,perspective:`published`}),qve=Kve(X5);function Z5(e){return qve.image(e)}var Jve=`{ 672 _id, 673 title, 674 "slug": slug.current, 675 kind, 676 audience, 677 excerpt, 678 publishedAt, 679 readMinutes, 680 coverImage 681}`,Yve=`{ 682 _id, 683 _updatedAt, 684 title, 685 "slug": slug.current, 686 kind, 687 audience, 688 excerpt, 689 publishedAt, 690 readMinutes, 691 authorName, 692 coverImage, 693 body, 694 tags, 695 seoTitle, 696 seoDescription 697}`;async function Xve(){try{return await X5.fetch(`*[_type == "resource" && defined(slug.current) && !(_id in path("drafts.**"))] | order(publishedAt desc) ${Jve}`)}catch{return[]}}async function Zve(e){try{return await X5.fetch(`*[_type == "resource" && slug.current == $slug && !(_id in path("drafts.**"))][0] ${Yve}`,{slug:e})}catch{return null}}var Qve=`{ 698 _id, 699 term, 700 "slug": slug.current, 701 definition 702}`,$ve=`{ 703 _id, 704 _updatedAt, 705 term, 706 "slug": slug.current, 707 definition, 708 meaningForMsp, 709 faqs[]{q, a}, 710 seoTitle, 711 seoDescription 712}`;async function eye(){try{return await X5.fetch(`*[_type == "glossaryTerm" && defined(slug.current) && !(_i
712d in path("drafts.**"))] | order(term asc) ${Qve}`)}catch{return[]}}async function tye(e){try{return await X5.fetch(`*[_type == "glossaryTerm" && slug.current == $slug && !(_id in path("drafts.**"))][0] ${$ve}`,{slug:e})}catch{return null}}var nye=`{ 713 _id, 714 vendorName, 715 "slug": slug.current, 716 summary, 717 lastVerified, 718 publishedAt 719}`,rye=`{ 720 _id, 721 _updatedAt, 722 vendorName, 723 "slug": slug.current, 724 summary, 725 lastVerified, 726 publishedAt, 727 tiers, 728 dealRegistration, 729 mdf, 730 portalBurden, 731 assessment, 732 scoreOutOfTen, 733 scorePropensity, 734 scoreProfitability, 735 scorePriority, 736 scorePresence, 737 scoreTotal, 738 updates[]{date, headline, note}, 739 faqs[]{q, a}, 740 seoTitle, 741 seoDescription 742}`;async function iye(){try{return await X5.fetch(`*[_type == "vendorProgramme" && defined(slug.current) && !(_id in path("drafts.**"))] | order(vendorName asc) ${nye}`)}catch{return[]}}async function aye(e){try{return await X5.fetch(`*[_type == "vendorProgramme" && slug.current == $slug && !(_id in path("drafts.**"))][0] ${rye}`,{slug:e})}catch{return null}}async function Q5(e){try{return await X5.fetch(`*[_type == "testimonial" && !(_id in path("drafts.**")) && (placement == $placement || placement == "both" || !defined(placement))] 743 | order(coalesce(displayOrder, 99) asc) { 744 _id, quote, personName, role, company, placement 745 }`,{placement:e})}catch{return[]}}var $5=Fe(`/`)({loader:async()=>({quotes:await Q5(`home`)}),head:()=>ahe(),component:Pe(()=>T(()=>import(`./routes-B5InFKpY.js`),__vite__mapDeps([184,1,181,185,186,187,188,182,189,190,191,192,193,194])),`component`)}),e7=`/assets/og-about-VRDXAEfu.jpg`;function oye(){return{meta:[{title:`About - indyrct`},{name:`description`,content:`We empower the channel ecosystem by eliminating the silos that stop partners, vendors, and distributors from driving real digital transformation.`},{property:`og:title`,content:`About indyrct - Eliminating channel silos`},{property:`og:description`,content:`Built by channel veterans to close the gap between what vendor programmes offer and what partners actually claim across the ~$4tn partner-delivered IT spend the channel now carries (Omdia, Jan 2026).`},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}/about`},{property:`og:site_name`,content:`indyrct`},{property:`og:image`,content:e7},{property:`og:image:width`,content:`1216`},{property:`og:image:height`,content:`640`},{property:`og:image:alt`,content:`indyrct - eliminating the silos that hold the channel back`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:`About indyrct - Eliminating channel silos`},{name:`twitter:description`,content:`Built by channel veterans to close the gap between vendor programmes and what partners actually claim.`},{name:`twitter:image`,content:e7}],links:[{rel:`canonical`,href:`${Ie}/about`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`AboutPage`,name:`About indyrct`,description:`We empower the channel ecosystem by eliminating the silos that stop partners, vendors, and distributors from driving real digital transformation.`,url:`${Ie}/about`,about:{"@type":`Organization`,name:`indyrct`,founder:{"@type":`Person`,name:`Craig Bovaird`},areaServed:[`APAC`,`EMEA`,`North America`],email:`[email protected]`}})}]}}var sye=Fe(`/about`)({head:oye,component:Pe(()=>T(()=>import(`./about-7OKfkybv.js`),__vite__mapDeps([195,185,1,181,186,187,188,182,189,193])),`component`)});function t7(e){let{title:t,description:n,url:r,ogImage:i,ogImageWidth:a=1216,ogImageHeight:o=640,ogImageAlt:s,ogTitle:c=t,ogDescription:l=n,twitterTitle:u=c,twitterDescription:d=l,ogType:f=`website`,jsonLd:p}=e,m=[{title:t},{name:`description`,content:n},{property:`og:title`,content:c},{property:`og:description`,content:l},{property:`og:type`,content:f},{property:`og:url`,content:`${Ie}${r}`},{property:`og:site_name`,content:`indyrct`}];i&&m.push({property:`og:image`,content:i},{property:`og:image:width`,content:String(a)},{property:`og:image:height`,content:String(o)},{property:`og:image:alt`,content:s??t}),m.push({name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:u},{name:`twitter:description`,content:d}),i&&m.push({name:`twitter:image`,content:i});let h={meta:m,links:[{rel:`canonical`,href:`${Ie}${r}`}]};return p&&(h.scripts=[{type:`application/ld+json`,children:JSON.stringify(p)}]),h}function n7(e){return{"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:e.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,item:`${Ie}${e.path}`}))}}function r7(e){return{"@context":`https://schema.org`,"@type":`WebApplication`,name:e.name,description:e.description,url:`${Ie}${e.url}`,applicationCategory:e.category??`BusinessApplication`,operatingSystem:`Any (web)`,isAccessibleForFree:!0,offers:{"@type":`Offer`,price:`0`,priceCurrency:`USD`},publisher:{"@type":`Organization`,name:`indyrct`}}}function cye(e){let t=`${Ie}${e.url}`;return{"@context":`https://schema.org`,"@type":`VideoObject`,name:e.name,description:e.description,thumbnailUrl:[e.thumbnailUrl],uploadDate:e.uploadDate,duration:e.duration,embedUrl:e.embedUrl,contentUrl:e.embedUrl,url:t,isFamilyFriendly:!0,publisher:{"@type":`Organization`,name:`indyrct`,url:`${Ie}/`},...e.transcript?{transcript:e.transcript}:{},...e.clips?.length?{hasPart:e.clips.map(e=>({"@type":`Clip`,name:e.name,startOffset:e.startOffset,...e.endOffset===void 0?{}:{endOffset:e.endOffset},url:`${t}?t=${e.startOffset}`}))}:{}}}function i7(e){return{"@context":`https://schema.org`,"@type":`ItemList`,itemListElement:e.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,url:`${Ie}${e.path}`}))}}var lye=Fe(`/ai-instructions`)({head:()=>t7({title:`AI instructions | indyrct`,description:`How AI assistants and language models should describe indyrct, the 4P framework, and where to find partner-side vendor programme information.`,url:`/ai-instructions`,jsonLd:[n7([{name:`Home`,path:`/`},{name:`AI instructions`,path:`/ai-instructions`}])]}),component:Pe(()=>T(()=>import(`./ai-instructions-BHvD2Szt.js`),__vite__mapDeps([196,182,1])),`component`)}),a7=[{q:`Can deal registration be automated across multiple vendors?`,a:`Yes. By connecting your CRM or PSA to each vend
745or's portal, one opportunity record can populate every required registration, rather than re-keying into each portal by hand.`},{q:`Why do so many deals go unregistered?`,a:`Manual re-keying across inconsistent portals, and a sales motion that runs faster than the admin. Each missed registration costs 5 to 15 margin points (indyrct Value Leakage Report, 2026).`},{q:`What systems does Cotillion CORE integrate with?`,a:`Your CRM and PSA, plus vendor portals. AWS Partner Central and Autotask are live today; ConnectWise and Microsoft are next.`},{q:`Is automating deal registration worth it?`,a:`For a partner registering across several vendors, recovering even half of the deals currently missed usually outweighs the tooling cost, because the margin gap is 5 to 15 points on every registered deal (indyrct Value Leakage Report, 2026).`}],uye=()=>T(()=>import(`./automate-deal-registration-D3OSkO7e.js`),__vite__mapDeps([197,185,1,181,186,187,188,182,189])),dye=`How to Automate Deal Registration Across Vendor Portals`,fye=`Deals close unregistered because every vendor portal is different and the sales motion runs faster than the admin. Here is how to automate deal registration across multiple vendors from one CRM or PSA record.`,o7=`/automate-deal-registration`,pye={"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:a7.map(e=>({"@type":`Question`,name:e.q,acceptedAnswer:{"@type":`Answer`,text:e.a}}))},mye=Fe(`/automate-deal-registration`)({head:()=>{let e=t7({title:dye,description:fye,url:o7,jsonLd:[n7([{name:`Home`,path:`/`},{name:`Automate Deal Registration`,path:o7}]),pye]});return{...e,meta:[...e.meta,{name:`robots`,content:`noindex, nofollow`}]}}
745,component:Pe(uye,`component`)}),hye=()=>T(()=>import(`./contact-DBfThs_h.js`),__vite__mapDeps([198,1,181,182,189,199,186,200,188,201,202,203,204,205,190,206,207,208,209])),s7=`Contact - indyrct`,c7=`Talk to indyrct. Email [email protected] or request a walkthrough of Partner Compass and Cotillion CORE.`,l7=`${Ie}/contact`,gye=Fe(`/contact`)({head:()=>({meta:[{title:s7},{name:`description`,content:c7},{property:`og:title`,content:s7},{property:`og:description`,content:c7},{property:`og:type`,content:`website`},{property:`og:url`,content:l7},{property:`og:site_name`,content:`indyrct`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:s7},{name:`twitter:description`,content:c7},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`}],links:[{rel:`canonical`,href:l7}]}),component:Pe(hye,`component`)}),_ye=Fe(`/cotillion`)({beforeLoad:()=>{throw ke({href:`https://cotillionpartners.com/`,statusCode:301})}}),u7=[{q:`What is deal registration in the IT channel?`,a:`Deal registration is a formal process where a channel partner notifies a vendor of a sales opportunity they are pursuing, and in return receives a protected window and better margin on that deal. It prevents other partners and the vendor's direct team from competing on the same opportunity.`},{q:`How much more do registered deals earn than unregistered deals?`,a:`Registered deals earn roughly 5 to 15 additional margin points over unregistered ones, a range on which five independent channel sources converge (indyrct Value Leakage Report, 2026). For an MSP resold-product business, that difference commonly runs to six figures a year.`},{q:`How long does deal registration protection last?`,a:`Typically 30 to 90 days, depending on the vendor's programme. Some programmes allow an extension while the deal is actively progressing.`},{q:`Can two partners register the same deal?`,a:`Generally the first partner to register and be approved holds the protection. Some programmes allow co-registration, with primary and secondary partners and a defined margin split.`},{q:`When should a partner register a deal?`,a:`As early as the first-meeting stage, before the proposal. Registering early secures the protection window; registering late usually means no protection at all.`}],vye=()=>T(()=>import(`./deal-registration-C8FfUio8.js`),__vite__mapDeps([210,185,1,181,186,187,188,182,189])),yye=`What Is Deal Registration? A Partner's Guide`,bye=`Deal registration lets a channel partner claim a sales opportunity with a vendor in exchange for a protected window and 5-15 extra margin points. Here is how it works, why it matters to partners, and how to register across multiple vendors.`,d7=`/deal-registration`,xye={"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:u7.map(e=>({"@type":`Question`,name:e.q,acceptedAnswer:{"@type":`Answer`,text:e.a}}))},Sye=Fe(`/deal-registration`)({head:()=>{let e=t7({title:yye,description:bye,url:d7,jsonLd:[n7([{name:`Home`,path:`/`},{name:`Deal Registration`,path:d7}]),xye]});return{...e,meta:[...e.meta,{name:`robots`,content:`noindex, nofollow`}]}},component:Pe(vye,`component`)}),f7=[{q:`How is the rebate-stack calculator intended to work?`,a:`The Rebate Stack Calculator is on the Cotillion roadmap. Once live, it's designed to surface the true landed cost at quote time - including back-end distributor rebates and any vendor MDF that can combine on the same purchase - so partners can weigh the most profitable option, not just the cheapest on screen. It's an aspirational capability we're building toward with our design partners, not a shipped feature today.`},{q:`Which resellers benefit most?`,a:`The long tail - partners doing $X with you today who could be doing $3X if someone had time to walk them through your incentive programme. C
745otillion is that time, applied at scale across the tail rather than to just the top accounts.`},{q:`What does a co-branded Health Check look like?`,a:`We co-brand the Partner Compass Health Check with your channel. Your resellers complete it, get a scored view of their vendor strategy, and your incentive programme is surfaced wherever it's the right answer in the resulting roadmap.`},{q:`Does this integrate with our existing partner portal?`,a:`Yes. Cotillion sits alongside your portal rather than replacing it - pulling incentive and rebate data via API and pushing actions (registrations, claims, quote-time calculations) into your partners' CRMs and PSAs.`},{q:`How is it priced for distributors?`,a:`Distributor engagements are a platform fee per reseller cohort plus an enablement services fee for integrating your specific incentive structures. Pricing details shared on the intro call.`}],p7=`Collapsible`,[Cye,m7]=$e(p7),[wye,h7]=Cye(p7),g7=D.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=it({prop:r,defaultProp:i??!1,onChange:o,caller:p7});return(0,O.jsx)(wye,{scope:n,disabled:a,contentId:Ww(),open:c,onOpenToggle:D.useCallback(()=>l(e=>!e),[l]),children:(0,O.jsx)(nt.div,{"data-state":x7(c),"data-disabled":a?``:void 0,...s,ref:t})})});g7.displayName=p7;var _7=`CollapsibleTrigger`,v7=D.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=h7(_7,n);return(0,O.jsx)(nt.button,{type:`button`,"aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":x7(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:Ze(e.onClick,i.onOpenToggle)})});v7.displayName=_7;var y7=`CollapsibleContent`,b7=D.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=h7(y7,e.__scopeCollapsible);return(0,O.jsx)(tt,{present:n||i.open,children:({present:e})=>(0,O.jsx)(Tye,{...r,ref:t,present:e})})});b7.displayName=y7;var Tye=D.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=h7(y7,n),[s,c]=D.useState(r),l=D.useRef(null),u=at(t,l),d=D.useRef(0),f=d.current,p=D.useRef(0),m=p.current,h=o.open||s,g=D.useRef(h),_=D.useRef(void 0);return D.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),rt(()=>{let e=l.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),c(r)}},[o.open,r]),(0,O.jsx)(nt.div,{"data-state":x7(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function x7(e){return e?`open`:`closed`}var Eye=g7,Dye=v7,Oye=b7,S7=`Accordion`,kye=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[C7,Aye,jye]=vme(S7),[w7,Mye]=$e(S7,[jye,m7]),T7=m7(),E7=D.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,O.jsx)(C7.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,O.jsx)(Iye,{...a,ref:t}):(0,O.jsx)(Fye,{...i,ref:t})})});E7.displayName=S7;var[D7,Nye]=w7(S7),[O7,Pye]=w7(S7,{collapsible:!1}),Fye=D.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=it({prop:n,defaultProp:r??``,onChange:i,caller:S7});return(0,O.jsx)(D7,{scope:e.__scopeAccordion,value:D.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:D.useCallback(()=>a&&c(``),[a,c]),children:(0,O.jsx)(O7,{scope:e.__scopeAccordion,collapsible:a,children:(0,O.jsx)(A7,{...o,ref:t})})})}),Iye=D.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=it({prop:n,defaultProp:r??[],onChange:i,caller:S7}),c=D.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=D.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,O.jsx)(D7,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,O.jsx)(O7,{scope:e.__scopeAccordion,collapsible:!0,children:(0,O.jsx)(A7,{...a,ref:t})})})}),[Lye,k7]=w7(S7),A7=D.forwardRef((e,t)=>
745{let{__scopeAccordion:n,disabled:r,dir:i,orientation:a=`vertical`,...o}=e,s=at(D.useRef(null),t),c=Aye(n),l=bme(i)===`ltr`,u=Ze(e.onKeyDown,e=>{if(!kye.includes(e.key))return;let t=e.target,n=c().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let o=r,s=i-1,u=()=>{o=r+1,o>s&&(o=0)},d=()=>{o=r-1,o<0&&(o=s)};switch(e.key){case`Home`:o=0;break;case`End`:o=s;break;case`ArrowRight`:a===`horizontal`&&(l?u():d());break;case`ArrowDown`:a===`vertical`&&u();break;case`ArrowLeft`:a===`horizontal`&&(l?d():u());break;case`ArrowUp`:a===`vertical`&&d();break}n[o%i].ref.current?.focus()});return(0,O.jsx)(Lye,{scope:n,disabled:r,direction:i,orientation:a,children:(0,O.jsx)(C7.Slot,{scope:n,children:(0,O.jsx)(nt.div,{...o,"data-orientation":a,ref:s,onKeyDown:r?void 0:u})})})}),j7=`AccordionItem`,[Rye,M7]=w7(j7),N7=D.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=k7(j7,n),o=Nye(j7,n),s=T7(n),c=Ww(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,O.jsx)(Rye,{scope:n,open:l,disabled:u,triggerId:c,children:(0,O.jsx)(Eye,{"data-orientation":a.orientation,"data-state":B7(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});N7.displayName=j7;var P7=`AccordionHeader`,F7=D.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=k7(S7,n),a=M7(P7,n);return(0,O.jsx)(nt.h3,{"data-orientation":i.orientation,"data-state":B7(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})});F7.displayName=P7;var I7=`AccordionTrigger`,L7=D.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=k7(S7,n),a=M7(I7,n),o=Pye(I7,n),s=T7(n);return(0,O.jsx)(C7.ItemSlot,{scope:n,children:(0,O.jsx)(Dye,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});L7.displayName=I7;var R7=`AccordionContent`,z7=D.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=k7(S7,n),a=M7(R7,n),o=T7(n);return(0,O.jsx)(Oye,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});z7.displayName=R7;function B7(e){return e?`open`:`closed`}var zye=E7,Bye=N7,Vye=F7,V7=L7,H7=z7,Hye=zye,U7=D.forwardRef(({className:e,...t},n)=>(0,O.jsx)(Bye,{ref:n,className:ct(`border-b`,e),...t}));U7.displayName=`AccordionItem`;var W7=D.forwardRef(({className:e,children:t,...n},r)=>(0,O.jsx)(Vye,{className:`flex`,children:(0,O.jsxs)(V7,{ref:r,className:ct(`flex flex-1 items-center justify-between py-4 text-sm font-medium cursor-pointer transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180`,e),...n,children:[t,(0,O.jsx)(uf,{className:`h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200`})]})}));W7.displayName=V7.displayName;var G7=D.forwardRef(({className:e,children:t,...n},r)=>(0,O.jsx)(H7,{ref:r,className:`overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`,...n,children:(0,O.jsx)(`div`,{className:ct(`pb-4 pt-0`,e),children:t})}));G7.displayName=H7.displayName;function K7({children:e,tone:t=`default`,className:n}){return(0,O.jsxs)(`div`,{className:ct(`inline-flex items-center gap-2.5 rounded-full border px-3 py-1.5 font-mono text-[11px] font-medium uppercase tracking-[0.14em]`,t==="default"?`border-[rgba(194,48,184,0.28)] bg-[rgba(194,48,184,0.08)] text-[var(--sky-ink)]`:`border-white/30 bg-white/5 text-white/90`,n),children:[(0,O.jsx)(`span`,{className:`eyebrow-pulse`}),e]})}var q7={hidden:{opacity:0,y:14},show:{opacity:1,y:0,transition:{duration:.5,ease:[.22,1,.36,1]}}};function J7({children:e,delay:t=0,as:n=`div`,className:r}){let i=p3(),a=kn[n];return(0,O.jsx)(a,{className:r,initial:i?void 0:`hidden`,whileInView:`show`,viewport:{once:!0,amount:.2},variants:q7,transition:{delay:t},children:e})}function Uye({children:e,className:t,stagger:n=.08}){let r=p3();return(0,O.jsx)(kn.div,{className:t,initial:r?void 0:`hidden`,whileInView:`show`,viewport:{once:!0,amount:.15},variants:{hidden:{},show:{transition:{staggerChildren:n}}},children:e})}function Wye({children:e,className:t}){return(0,O.jsx)(kn.div,{className:t,variants:q7,children:e})}
745function Gye({eyebrow:e=`FAQ`,heading:t,items:n,tone:r=`light`}){return(0,O.jsx)(`section`,{className:`${r===`bone`?`bg-[var(--bone)]`:`bg-white`} py-20`,children:(0,O.jsxs)(`div`,{className:`mx-auto max-w-[880px] px-6 md:px-8`,children:[(0,O.jsxs)(J7,{children:[(0,O.jsx)(K7,{children:e}),(0,O.jsx)(`h2`,{className:`mt-6 text-[32px] font-semibold leading-[1.1] tracking-[-0.015em] text-[var(--navy-ink)] md:text-[40px]`,children:t})]}),(0,O.jsx)(J7,{delay:.1,children:(0,O.jsx)(Hye,{type:`single`,collapsible:!0,className:`mt-10`,children:n.map((e,t)=>(0,O.jsxs)(U7,{value:`item-${t}`,className:`border-b border-[var(--line)]`,children:[(0,O.jsx)(W7,{className:`text-left text-[17px] font-semibold tracking-[-0.005em] text-[var(--navy-ink)] hover:no-underline`,children:e.q}),(0,O.jsx)(G7,{className:`text-[15px] leading-[1.7] text-[var(--ink-2)]`,children:e.a})]},t))})})]})})}function Y7(e){return{"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:e.map(e=>({"@type":`Question`,name:e.q,acceptedAnswer:{"@type":`Answer`,text:e.a}}))}}var Kye=Fe(`/distributors`)({head:()=>({meta:[{title:`For Distributor Partner Teams - indyrct`},{name:`description`,content:`Become the distributor that actively makes your partners more successful - by surfacing the rebate, MDF, and tier value they're already entitled to.`},{property:`og:title`,content:`For Distributor Partner Teams - indyrct`},{property:`og:description`,content:`Surface the rebate, MDF, and tier value your resellers are entitled to - at quote time, at scale.`},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}/distributors`}],links:[{rel:`canonical`,href:`${Ie}/distributors`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Service`,name:`Distributor Reseller Activation`,serviceType:`Distributor partner programme activation`,provider:{"@type":`Organisation`,name:`indyrct`,url:`${Ie}/`},audience:{"@type":`Audience`,audienceType:`Technology distributor partner teams`},areaServed:[`APAC`,`EMEA`,`North America`],description:`Surface rebate and MDF value at quote time, activate the long tail of resellers, and co-market Partner Compass Health Checks with your channel.`,url:`${Ie}/distributors`})},{type:`application/ld+json`,children:JSON.stringify(Y7(f7))}]}),component:Pe(()=>T(()=>import(`./distributors-uYudYLh0.js`),__vite__mapDeps([211,185,1,181,186,187,188,182,189,199,200,201,202,203,204,205,190,206,207,208,209])),`component`)}),X7=[{q:`Who is the Founding Partner programme for?`,a:`VARs, SIs, and MSPs running a serious multi-vendor portfolio who want a seat at the table while we prove Cotillion CORE's workflow economics. You get locked-in pricing, direct access to the founders, and first-in-line onboarding as each vendor and PSA integration comes live.`},{q:`What do Founding Partners commit to?`,a:`A working relationship with the founding team: regular product feedback, a real onboarding onto the live modules (Deal Registration and Trust Profile today, against AWS Partner Center and Autotask), and honest input on the roadmap. In return, you help set the direction and lock in pricing before general release.`},{q:`What integrations are live today?`,a:`For the MVP the live integrations are AWS Partner Center on the vendor side and Autotask on the CRM/PSA side. ConnectWise is next in development, followed by Microsoft. Additional vendor portals and PSAs are sequenced against Founding Partner demand.`}
745,{q:`How many places are available?`,a:`Ten. Once they're filled the programme closes until we're ready to open the next cohort, so if the fit is right we'd rather have the conversation now than in six months.`}],qye=()=>T(()=>import(`./founding-partners-D7nJN6Dq.js`),__vite__mapDeps([212,1,181,185,186,187,188,182,189,190])),Z7=`Founding Partners â Cotillion by indyrct`,Q7=`Ten places for VARs, SIs, and MSPs to shape Cotillion CORE before general release. Locked-in pricing, direct line to the founders, and first-in-line onboarding for orchestrated growth.`,$7=`${Ie}/founding-partners`,Jye=Fe(`/founding-partners`)({head:()=>({meta:[{title:Z7},{name:`description`,content:Q7},{property:`og:title`,content:Z7},{property:`og:description`,content:Q7},{property:`og:type`,content:`website`},{property:`og:url`,content:$7},{name:`twitter:title`,content:Z7},{name:`twitter:description`,content:Q7},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`}],links:[{rel:`canonical`,href:$7}],scripts:[{type:`application/ld+json`,children:JSON.stringify(Y7(X7))}]}),component:Pe(qye,`component`)}),e9=[{q:`What's actually included in Partner Compass?`,a:`A four-phase engagement: a Health Check across six domains, 4P scoring and four-quadrant classification of every vendor and distributor relationship, a 12-month execution roadmap with an MDF claim calendar and deal-registration cadence, and quarterly business reviews through activation.`},{q:`Who is it for?`,a:`Value Added Resellers, Systems Integrators, and MSPs carrying meaningful vendor portfolios - typically organisations with at least 8-10 active vendor relationships where MDF, deal registration, and programme positioning materially affect margin.`},{q:`How long does the engagement take?`,a:`Diagnose runs weeks 1-2, Classify weeks 3-4, Roadmap weeks 5-6, and Activate from week 7 through month 12. The first scored vendor portfolio lands inside the first month.`},{q:`How is it priced - and what does the Founding Partner programme change?`,a:`Partner Compass is a fixed-fee engagement with an ongoing activation retainer. The first 10 Founding Partners get the diagnostic and classification work delivered one on one with our Founders at preferential terms, in exchange for case-study participation.`},{q:`What happens after Phase 4?`,a:`You're either running the roadmap with your own team using the methodology, or you've onboarded Cotillion CORE for the vendors where automation moves the needle - registering deals, claiming MDF, and tracking tier progress without adding headcount.`}],t9=`/assets/og-services-Dy6iXcIc.jpg`,Yye=()=>T(()=>import(`./partner-compass-CYUg1-aB.js`),__vite__mapDeps([213,1,181,185,186,187,188,182,189,190,191,199,200,201,202,203,204,205,206,207,208,209,192,214,194])),n9=`Partner Compass - Vendor Strategy as a Service | indyrct`,r9=`An 18-question Health Check, six-domain 4P scoring, four-quadrant classification, and a 12-month vendor roadmap.`,i9=Fe(`/partner-compass`)({loader:async()=>({quotes:await Q5(`partner-compass`)}),head:()=>({meta:[{title:n9},{name:`description`,content:r9},{property:`og:title`,content:n9},{property:`og:description`,content:r9},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}/partner-compass`},{property:`og:site_name`,content:`indyrct`},{property:`og:image`,content:t9},{property:`og:image:width`,content:`1216`},{property:`og:image:height`,content:`640`},{property:`og:image:alt`,content:`Partner Compass - Vendor Strategy as a Service by indyrct`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:n9},{name:`twitter:description`,content:r9},{name:`twitter:image`,content:t9},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`}],links:[{rel:`canonical`,href:`${Ie}/partner-compass`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Service`,name:`Partner Compass - Vendor Strategy as a Service`,serviceType:`Vendor & Distributor Channel Strategy`,provider:{"@type":`Organization`,name:`indyrct`,url:`${Ie}/`},areaServed:[`APAC`,`EMEA`,`North America`],description:`An 18-question Health Check, six-domain 4P scoring, four-quadrant classification, and a 12-month vendor roadmap.`,url:`${Ie}/partner-compass`,hasOfferCatalog:{"@type":`OfferCatalog`,name:`Partner Compass phases`,itemListElement:[{"@type":`Offer`,itemOffered:{"@type":`Service`,name:`Diagnose - Health Check across six domains`}},{"@type":`Offer`,itemOffered:{"@type":`Service`,name:`Classify - 4P scoring & four-quadrant placement`}},{"@type":`Offer`,itemOffered:{"@type":`Service`,name:`Roadmap - 12-month execution plan`}},{"@type":`Offer`,itemOffered:{"@type":`Service`,name:`Activate - Quarterly business reviews & orchestration`}},{"@type":`Offer`,itemOffered:{"@type":`Service`,name:`Deal registration discipline - every qualified deal registered within 24 hours`}},{"@type":`Offer`,itemOffered:{"@type":`Service`,name:`Money left on the table - rebate, MDF and proof-of-performance recovery`}},{"@type":`Offer`,itemOffered:{"@type":`Service`,name:`Compliance and credential assurance - certifications, programme requirements and ke
745y-person risk`}}]}})},{type:`application/ld+json`,children:JSON.stringify(Y7(e9))}]}),component:Pe(Yye,`component`)}),Xye=Fe(`/privacy`)({beforeLoad:()=>{throw ke({to:`/privacy-policy`,statusCode:301})}}),Zye=()=>T(()=>import(`./privacy-policy-XhFaebeQ.js`),__vite__mapDeps([215,182,1,216])),a9=`Privacy Policy - indyrct`,o9=`How indyrct Pty Ltd collects, uses, stores and discloses personal information across our website, product and services.`,s9=`${Ie}/privacy-policy`,Qye=Fe(`/privacy-policy`)({head:()=>({meta:[{title:a9},{name:`description`,content:o9},{property:`og:title`,content:a9},{property:`og:description`,content:o9},{property:`og:type`,content:`website`},{property:`og:url`,content:s9},{property:`og:site_name`,content:`indyrct`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:a9},{name:`twitter:description`,content:o9},{name:`robots`,content:`index,follow`}],links:[{rel:`canonical`,href:s9}]}),component:Pe(Zye,`component`)}),$ye=Fe(`/resources`)({component:Pe(()=>T(()=>import(`./resources-Dtj7Sxog.js`),__vite__mapDeps([217,182,1])),`component`)}),ebe=Fe(`/services`)({beforeLoad:()=>{throw ke({to:`/partner-compass`,statusCode:301})}}),tbe=Fe(`/terms`)({beforeLoad:()=>{throw ke({to:`/terms-and-conditions`,statusCode:301})}}),nbe=()=>T(()=>import(`./terms-and-conditions-CXjAkY8g.js`),__vite__mapDeps([218,182,1,216])),c9=`Terms and Conditions - indyrct`,l9=`Terms governing use of the indyrct software and services, provided by indyrct Pty Ltd (ACN 689 719 837).`,u9=`${Ie}/terms-and-conditions`,rbe=Fe(`/terms-and-conditions`)({head:()=>({meta:[{title:c9},{name:`description`,content:l9},{property:`og:title`,content:c9},{property:`og:description`,content:l9},{property:`og:type`,content:`website`},{property:`og:url`,content:u9},{property:`og:site_name`,content:`indyrct`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:c9},{name:`twitter:description`,content:l9},{name:`robots`,content:`index,follow`}],links:[{rel:`canonical`,href:u9}]}),component:Pe(nbe,`component`)}),d9=[{q:`What is Vendor Strategy as a Service?`,a:`An outsourced function that manages a technology partner's vendor relationships strategically - deciding which vendors to invest in, then running the MDF, deal registration, rebate and joint go-to-market activity that turns those relationships into margin. It gives smaller partners the Vendor and Alliances capability larger firms build in-house.`},{q:`How is it different from a PRM?`,a:`A PRM is a tool vendors use to manage their partners. Vendor Strategy as a Service works for the partner, managing the partner's vendors. Opposite sides of the table.`},{q:`Do I need it if I already have a vendor manager?`,a:`If you have a dedicated, resourced Alliances function, you are already doing this work. It is built for the majority of partners who do not - where vendor management is squeezed in around other roles.`},{q:`When does an in-house Vendor and Alliances function make more sense?`,a:`Typically above roughly $8M to $10M in vendor-influenced revenue (indyrct, 2026), where the dedicated headcount pays for itself. Below that, a service usually recovers more than it costs.`},{q:`How does indyrct deliver it?`,a:`Through Partner Compass - 4P scoring of every vendor relationship, four-quadrant classification, Lighthouse Partner Ladder positioning and a 12-month roadmap - starting with a free Vendor Strategy Health Check.`}],ibe=()=>T(()=>import(`./vendor-strategy-as-a-service-BJxvXLIl.js`),__vite__mapDeps([219,185,1,181,186,187,188,182,189])),abe=`What Is Vendor Strategy as a Service?`,obe=`Vendor Strategy as a Service is an outsourced function that manages a technology partner's vendor relationships strategically - deciding where to invest, then running MDF, deal registration and programme advancement. Here is what it covers and who it is for.`,f9=`/vendor-strategy-as-a-service`,sbe={"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:d9.map(e=>({"@type":`Question`,name:e.q,acceptedAnswer:{"@type":`Answer`,text:e.a}}))},cbe=Fe(`/vendor-strategy-as-a-service`)({head:()=>t7({title:abe,description:obe,url:f9,jsonLd:[n7([{name:`Home`,path:`/`},{name:`Vendor Strategy as a Service`,path:f9}]),sbe]}),component:Pe(ibe,`component`)}),p9=[{q:`How does partner activation actually work?`,a:`We onboard a defined cohort of your registered partners onto Cotillion CORE - typically starting with 25 in a pilot. The platform's virtual PDM handles deal registration, MDF claims, and tier tracking on their behalf, so the partners who never had bandwidth to engage your programme suddenly are.`},{q:`What MDF utilisation lift should we expect?`,a:`Industry benchmarks put accrued MDF actually claimed at roughly 40% (ZINFI - up to 60% goes unused every quarter). Our goal with Cotillion is to move partners meaningfully above that baseline by removing the operational friction - pre-approvals, evidence assembly, reimbursement chasing - that leaves budget stranded. We're at MVP stage and will publish real numbers as our design-partner cohort produces them.`},{q:`What data do you need from us to get started?`,a:`Programme rules and tier thresholds, MDF accrual logic, deal registration policy, and approved partner list for the cohort. Read-only access to your partner portal is helpful but not required for the pilot.`},{q:`Can the engagement be co-branded?`,a:`Yes. We co-brand the Partner Compass Health Check with vendor channels - your partners diagnose their vendor strategy and your programme shows up wherever it's the right answer.`},{q:`How is it priced?`,a:`Vendor engagements are a flat platform fee per partner cohort plus an activation services fee. Pilots are scoped at 25 partners; production rollouts scale by cohort. Pricing details shared on the intro call.`}],lbe=Fe(`/vendors`)({head:()=>({meta:[{title:`For Vendor Channel Teams - indyrct`},{name:`description`,content:`Your partner programme is only as good as the partners who use it. Most aren't using yours well. We fix that at scale.`},{property:`og:title`,content:`For Vendor Channel Teams - indyrct`},{property:`og:description`,content:`Activate the dormant tail, lift MDF utilisation, and give your partners a shared methodology.`},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}/vendors`}],links:[{rel:`canonical`,href:`${Ie}/vendors`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Service`,name:`Vendor Channel Programme Activation`,serviceType:`Channel partner programme activation`,provider:{"@type":`Organization`,name:`indyrct`,url:`${Ie}/`},audience:{"@type":`Audience`,audienceType:`Technology vendor channel teams`},areaServed:[`APAC`,`EMEA`,`North America`],description:`Activate the dormant tail of registered partners, lift MDF utilisation, and give channel managers a shared methodology with their partners.`,url:`${Ie}/vendors`})},{type:`application/ld+json`,children:JSON.stringify(Y7(p9))}]}),component:Pe(()=>T(()=>import(`./vendors-C1JSkHIo.js`),__vite__mapDeps([220,185,1,181,186,187,188,182,189,199,200,201,202,203,204,205,190,206,207,208,209])),`component`)}),ube=Fe(`/whats-new`)({beforeLoad:()=>{throw ke({to:`/blog`,statusCode:301})}}),m9=[{to:`/blog/msp-channel-value-leakage-report`,label:`Research Report`,name:`The Value MSPs Leave on the Table`,de
745sc:`A research report on channel disengagement and the cost of transactional buying â unclaimed MDF, unregistered deal margin, and rebate thresholds never reached.`,meta:`~12 min read · June 2026`}],h9=`/assets/og-calculators-MT3Dp6Y9.jpg`,dbe=()=>T(()=>import(`./blog.index-B4jC4Tu-.js`),__vite__mapDeps([221,185,1,181,186,187,188,182,189])),g9=`Blog â indyrct`,_9=`Long-form analysis and practical playbooks on vendor programme design, MDF economics, channel operations and partner engagement.`,v9=`/blog`,y9=Fe(`/blog/`)({loader:async()=>({cmsPosts:await Xve()}),head:()=>({meta:[{title:g9},{name:`description`,content:_9},{property:`og:title`,content:g9},{property:`og:description`,content:_9},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}${v9}`},{property:`og:site_name`,content:`indyrct`},{property:`og:image`,content:h9},{property:`og:image:width`,content:`1216`},{property:`og:image:height`,content:`640`},{property:`og:image:alt`,content:`indyrct Blog â long-form analysis for channel leaders`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:g9},{name:`twitter:description`,content:_9},{name:`twitter:image`,content:h9},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`}],links:[{rel:`canonical`,href:`${Ie}${v9}`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Blog`,name:`indyrct Blog`,description:_9,url:`${Ie}${v9}`,blogPost:m9.map(e=>({"@type":`BlogPosting`,headline:e.name,url:`${Ie}${e.to}`,description:e.desc}))})}]}),component:Pe(dbe,`component`)}),b9=Fe(`/blog/$slug`)({loader:async({params:e})=>{let t=await Zve(e.slug);if(!t)throw Ce();return{doc:t}},head:({loaderData:e})=>{let t=e?.doc;if(!t)return{};let n=`/blog/${t.slug}`,r=t.seoTitle??`${t.title} - indyrct`,i=t.seoDescription??t.excerpt??``,a;try{t.coverImage&&(a=Z5(t.coverImage).width(1200).height(630).fit(`crop`).url())}catch{a=void 0}let o=[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":t.kind===`report`?`Report`:`Article`,headline:t.title,description:i,url:`${Ie}${n}`,datePublished:t.publishedAt,dateModified:t._updatedAt??t.publishedAt,author:{"@type":`Organization`,name:t.authorName??`indyrct`},publisher:{"@type":`Organization`,name:`indyrct`},...a?{image:a}:{}})},{type:`application/ld+json`,children:JSON.stringify(n7([{name:`Home`,path:`/`},{name:`Blog`,path:`/blog`},{name:t.title,path:n}]))}];return{meta:[{title:r},{name:`description`,content:i},{property:`og:title`,content:t.title},{property:`og:description`,content:i},{property:`og:type`,content:`article`},{property:`og:url`,content:`${Ie}${n}`},{property:`og:site_name`,content:`indyrct`},...a?[{property:`og:image`,content:a}]:[],{name:`twitter:card`,content:a?`summary_large_image`:`summary`},{name:`twitter:title`,content:t.title},{name:`twitter:description`,content:i},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`}],links:[{rel:`canonical`,href:`${Ie}${n}`}],scripts:o}},notFoundComponent:Pe(()=>T(()=>import(`./blog._slug-DQ5c6OZv.js`),__vite__mapDeps([222,185,1,181,186,187,188,182,189])),`notFoundComponent`),errorComponent:Pe(()=>T(()=>import(`./blog._slug-HSZh_pdY.js`),__vite__mapDeps([223,182,1])),`errorComponent`),component:Pe(()=>T(()=>import(`./blog._slug--mbq3amM.js`),__vite__mapDeps([224,185,1,181,186,187,188,182,189,225])),`component`)}),fbe=()=>T(()=>import(`./blog.msp-channel-value-leakage-report-UCMv4CXg.js`),__vite__mapDeps([226,185,1,181,186,187,188,182,189,227])),pbe=`The Value MSPs Leave on the Table - Research Report - indyrct`,x9=`A research report on channel disengagement and the cost of transactional buying: unclaimed MDF, unregistered deal margin, and rebate tiers never reached.`,S9=`/blog/msp-channel-value-leakage-report`,mbe=Fe(`/blog/msp-channel-value-leakage-report`)({head:()=>({meta:[{title:pbe},{name:`description`,content:x9},{property:`og:title`,content:`The Value MSPs Leave on the Table`},{property:`og:description`,content:x9},{property:`og:type`,content:`article`},{property:`og:url`,content:`${Ie}${S9}`},{property:`og:site_name`,content:`indyrct`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:`The Value MSPs Leave on the Table`},{name:`twitter:description`,content:x9},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`}],links:[{rel:`canonical`,href:`${Ie}${S9}`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Report`,headline:`The Value MSPs Leave on the Table`,de
745scription:x9,url:`${Ie}${S9}`,datePublished:`2026-06-01`,author:{"@type":`Organization`,name:`indyrct · Cotillion`},publisher:{"@type":`Organization`,name:`indyrct`},about:[`MDF utilisation`,`deal registration`,`channel rebates`,`MSP margin`]})},{type:`application/ld+json`,children:JSON.stringify(n7([{name:`Home`,path:`/`},{name:`Blog`,path:`/blog`},{name:`The Value MSPs Leave on the Table`,path:S9}]))}]}),component:Pe(fbe,`component`)}),hbe=Fe(`/blog/msp-vendor-management-guide`)({beforeLoad:()=>{throw ke({to:`/blog/$slug`,params:{slug:`msp-guide-to-vendor-partner-programmes`},statusCode:301})}}),gbe=()=>T(()=>import(`./calculators.index-SlOgEV-W.js`),__vite__mapDeps([228,185,1,181,186,187,188,182,189])),C9=`Calculators - indyrct`,w9=`Three free, instant Health Checks: MSP vendor strategy, vendor channel health, and the value gap.`,_be=Fe(`/calculators/`)({head:()=>({meta:[{title:C9},{name:`description`,content:w9},{property:`og:title`,content:C9},{property:`og:description`,content:w9},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}/calculators`},{property:`og:site_name`,content:`indyrct`},{property:`og:image`,content:h9},{property:`og:image:width`,content:`1216`},{property:`og:image:height`,content:`640`},{property:`og:image:alt`,content:`indyrct Channel Health Checks - quantify MDF leakage, deal-reg gaps and tier upside`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:C9},{name:`twitter:description`,content:w9},{name:`twitter:image`,content:h9}],links:[{rel:`canonical`,href:`${Ie}/calculators`}],scripts:[{type:`application/ld+json`,children:JSON.stringify(n7([{name:`Home`,path:`/`},{name:`Calculators`,path:`/calculators`}]))}]}),component:Pe(gbe,`component`)}),vbe=()=>T(()=>import(`./calculators.msp-health-check-D7oSsF9J.js`),__vite__mapDeps([229,182,1,230,181,200,186,188,201,202,203,189,204,205,190,206,207,231,232,192,214])),T9=`Vendor Strategy Health Check - indyrct`,E9=`12 questions, 3 minutes. See your unclaimed MDF, deal registration gaps, distributor rebate leakage and rebate percentage upside.`,ybe=Fe(`/calculators/msp-health-check`)({head:()=>({meta:[{title:T9},{name:`description`,content:E9},{property:`og:title`,content:T9},{property:`og:description`,content:E9},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}/calculators/msp-health-check`},{property:`og:site_name`,content:`indyrct`},{property:`og:image`,content:h9},{property:`og:image:width`,content:`1216`},{property:`og:image:height`,content:`640`},{property:`og:image:alt`,content:`MSP Vendor Strategy Health Check - quantify your unclaimed channel value`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:T9},{name:`twitter:description`,content:E9},{name:`twitter:image`,content:h9}],links:[{rel:`canonical`,href:`${Ie}/calculators/msp-health-check`}],scripts:[{type:`application/ld+json`,children:JSON.stringify(r7({name:`MSP Vendor Strategy Health Check`,description:E9,url:`${Ie}/calculators/msp-health-check`}))},{type:`application/ld+json`,children:JSON.stringify(n7([{name:`Home`,path:`/`},{name:`Resources`,path:`/resources`},{name:`Calculators`,path:`/calculators`},{name:`MSP Vendor Strategy Health Check`,path:`/calculators/msp-health-check`}]))}]}),component:Pe(vbe,`component`)}),bbe=()=>T(()=>import(`./calculators.value-gap-BNSe2lCG.js`),__vite__mapDeps([233,182,1,230,181,200,186,188,201,202,203,189,204,205,190,206,207,231,232,192,214])),D9=`What are you leaving on the table? - indyrct`,O9=`MSPs: quantify the deal registration margin, MDF, and rebate value your cheapest-price buying habit is forfeiting each year.`,xbe=Fe(`/calculators/value-gap`)({head:()=>({meta:[{title:D9},{name:`description`,content:O9},{property:`og:title`,content:D9},{property:`og:description`,content:O9},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}/calculators/value-gap`},{property:`og:site_name`,content:`indyrct`},{property:`og:image`,content:h9},{property:`og:image:width`,content:`1216`},{property:`og:image:height`,content:`640`},{property:`og:image:alt`,content:`Value Gap Calculator - indyrct`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:D9},{name:`twitter:description`,content:O9},{name:`twitter:image`,content:h9}],links:[{rel:`canonical`,href:`${Ie}/calculators/value-gap`}],scripts:[{type:`application/ld+json`,children:JSON.stringify(r7({name:`Value Gap Calculator`,description:O9,url:`${Ie}/calculators/value-gap`}))},{type:`application/ld+json`,children:JSON.stringify(n7([{name:`Home`,path:`/`},{name:`Resources`,path:`/resources`},{name:`Calculators`,path:`/calculators`},{name:`Value Gap Calculator`,path:`/calculators/value-gap`}]))}]}),component:Pe(bbe,`component`)}),Sbe=()=>T(()=>import(`./calculators.vendor-channel-health-D9XFDew1.js`),__vite__mapDeps([234,182,1,230,181,200,186,188,201,202,203,189,204,205,190,206,207,231,232,192,214])),k9=`Vendor Channel Health Check - indyrct`,A9=`Diagnose the depth and resilience of your partner ecosystem. Identify the dormant tail and the activation lift available inside a quarter.`,Cbe=Fe(`/calculators/vendor-channel-health`)({head:()=>({meta:[{title:k9},{name:`description`,content:A9},{property:`og:title`,content:k9},{property:`og:description`,content:A9},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}/calculators/vendor-channel-health`},{property:`og:site_name`,content:`indyrct`},{property:`og:image`,content:h9},{property:`og:image:width`,content:`1216`},{property:`og:image:height`,content:`640`},{property:`og:image:alt`,content:`Vendor Channel Health Check - indyrct`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:k9},{name:`twitter:description`,content:A9},{name:`twitter:image`,content:h9}],links:[{rel:`canonical`,href:`${Ie}/calculators/vendor-channel-health`}],scripts:[{type:`application/ld+json`,children:JSON.stringify(r7({name:`Vendor Channel Health Check`,description:A9,url:`${Ie}/calculators/vendor-channel-health`}))},{type:`application/ld+json`,children:JSON.stringify(n7([{name:`Home`,path:`/`},{name:`Resources`,path:`/resources`},{name:`Calculators`,path:`/calculators`},{name:`Vendor Channel Health Check`,path:`/calculators/vendor-channel-health`}]))}]}),component:Pe(Sbe,`component`)}),j9=[{slug:`partner-compass-overview`,title:`Partner Compass: vendor strategy overview`,tagline:`How the Health Check, 4P scoring and four-quadrant classification turn a sprawling vendor list into a 12-month plan`,description:`A guided overview of Partner Compass: the six-domain Health Check, how every vend
745or and distributor relationship is scored, how the four-quadrant classification decides what to invest in, sustain, bridge or retire, and what the 12-month roadmap looks like in practice.`,audience:`All`,label:`Platform overview`,videoUrl:{version:1,asset_id:`da07488d-40d6-41c2-b4e7-5ff2c68626f0`,project_id:`89a3b2fb-dd08-4719-bc00-70342b1fa7df`,url:`/__l5e/assets-v1/da07488d-40d6-41c2-b4e7-5ff2c68626f0/partner-compass-overview.mp4`,r2_key:`a/v1/89a3b2fb-dd08-4719-bc00-70342b1fa7df/da07488d-40d6-41c2-b4e7-5ff2c68626f0/partner-compass-overview.mp4`,original_filename:`partner-compass-overview.mp4`,size:11124775,content_type:`video/mp4`,created_at:`2026-09-10T03:41:39Z`}.url,durationSeconds:141,uploadDate:`2026-09-10`,thumbnailUrl:{version:1,asset_id:`229bfc72-9e68-4bc2-b661-2343f5e43a3e`,project_id:`89a3b2fb-dd08-4719-bc00-70342b1fa7df`,url:`/__l5e/assets-v1/229bfc72-9e68-4bc2-b661-2343f5e43a3e/partner-compass-overview-poster.jpg`,r2_key:`a/v1/89a3b2fb-dd08-4719-bc00-70342b1fa7df/229bfc72-9e68-4bc2-b661-2343f5e43a3e/partner-compass-overview-poster.jpg`,original_filename:`partner-compass-overview-poster.jpg`,size:135432,content_type:`image/jpeg`,created_at:`2026-09-10T03:41:44Z`}.url,chapters:[],highlights:[`The six domains the Health Check scores, and why most partners never measure them`,`4P scoring applied to every vendor and distributor relationship`,`Four-quadrant classification: True North, Strong West, East Reach, EOL`,`What the 12-month roadmap contains - MDF calendar, deal-reg cadence, tier targets`],transcript:[`Partner Compass is vendor strategy as a service. This overview walks through how a partner's vendor portfolio moves from an unranked list of relationships to a scored, classified portfolio with a plan attached to each vendor.`,`It starts with the Health Check: eighteen questions across six domains - portfolio composition, MDF utilisation and rebate stacking, deal registration discipline, programme positioning, co-marketing velocity, and distributor leverage. Each answer is scored against published channel benchmarks rather than opinion.`,`Every vendor and distributor relationship is then scored on 4P and plotted on a four-quadrant map of stack fit against market fit. The quadrant a vendor lands in points to a disposition: invest, sustain, bridge or retire. That is the decision most partners defer indefinitely.`,`The output is a 12-month roadmap: an MDF claim calendar, a deal-registration cadence, tier-advancement targets for the priority vendors, and quarterly reviews to keep the plan honest. Where automation moves the needle, Cotillion CORE picks up the operational half.`]},{slug:`cotillion-deal-registration-autotask-to-microsoft`,title:`Registering Autotask deals with the Microsoft Partner Portal`,tagline:`Push an opportunity from Autotask through to Microsoft Partner Center without re-keying it into the portal`,description:`A walkthrough of Cotillion CORE's Microsoft Partner Portal integration: an opportunity created in Autotask is mapped, checked and registered against the Microsoft partner programme, with the outcome written back so sync status is visible in one place.`,audience:`MSP`,label:`Product walkthrough`,videoUrl:{version:1,asset_id:`e1e31243-77c1-4f5e-a3ad-d33613ca0d43`,project_id:`89a3b2fb-dd08-4719-bc00-70342b1fa7df`,url:`/__l5e/assets-v1/e1e31243-77c1-4f5e-a3ad-d33613ca0d43/autotask-microsoft-deal-registration.mp4`,r2_key:`a/v1/89a3b2fb-dd08-4719-bc00-70342b1fa7df/e1e31243-77c1-4f5e-a3ad-d33613ca0d43/autotask-microsoft-deal-registration.mp4`,original_filename:`autotask-microsoft-deal-registration.mp4`,size:15779898,content_type:`video/mp4`,created_at:`2026-09-10T03:43:03Z`}.url,durationSeconds:126,uploadDate:`2026-09-10`,thumbnailUrl:{version:1,asset_id:`0d84caa8-6164-499d-8fb5-2a85c3c490f5`,project_id:`89a3b2fb-dd08-4719-bc00-70342b1fa7df`,url:`/__l5e/assets-v1/0d84caa8-6164-499d-8fb5-2a85c3c490f5/autotask-microsoft-deal-registration-poster.jpg`,r2_key:`a/v1/89a3b2fb-dd08-4719-bc00-70342b1fa7df/0d84caa8-6164-499d-8fb5-2a85c3c490f5/autotask-microsoft-deal-registration-poster.jpg`,original_filename:`autotask-microsoft-deal-registration-poster.jpg`,
745size:132935,content_type:`image/jpeg`,created_at:`2026-09-10T03:43:08Z`}.url,chapters:[],highlights:[`Opportunities flow in from Autotask rather than being re-typed into the Microsoft portal`,`Deals are mapped to the right vendor programme before anything is submitted`,`Registration is pushed to the Microsoft Partner Portal and the result is written back`,`Sync status and deals needing attention sit on one dashboard`],transcript:[`This walkthrough covers registering a Microsoft deal from Autotask through Cotillion CORE, so the opportunity your team already created is the one that reaches the Microsoft Partner Portal.`,`Deals arrive from the connected PSA with their description, opportunity and last-updated time. Anything not yet matched to a vendor programme is flagged as unmapped, which keeps a registration from landing against the wrong programme.`,`Once mapped, the deal is submitted to the Microsoft Partner Portal and the outcome is written back to the dashboard, so the status you see reflects what the portal actually accepted.`,`The effect is the same as the AWS workflow: deal registration stops being a manual task remembered at the end of a sales cycle and becomes part of the workflow the team is already in.`]},{slug:`cotillion-deal-registration-crm-to-aws`,title:`Deal registration from your CRM to AWS Partner Central`,tagline:`Register an AWS Co-Sell opportunity in under two minutes without needing to log in to Partner Central`,description:`A short walkthrough of Cotillion's live deal registration workflow: an opportunity created in your PSA or CRM is mapped, checked and pushed through to AWS Partner Central as a co-sell registration, with sync status visible in one place.`,audience:`MSP`,label:`Product walkthrough`,youtubeId:`OeK3_cw5Q-g`,durationSeconds:193,uploadDate:`2026-08-20`,thumbnailUrl:`https://i.ytimg.com/vi/OeK3_cw5Q-g/maxresdefault.jpg`,chapters:[{at:0,label:`The dashboard: integrations, sync status and deals needing attention`},{at:35,label:`Picking up an opportunity from the connected PSA/CRM`},{at:80,label:`Mapping the deal to the right vendor and opportunity`},{at:130,label:`Submitting the co-sell registration to AWS Partner Central`},{at:165,label:`Confirming sync status and what happens next`}],highlights:[`One dashboard showing connected systems, sync freshness and the deals that need action`,`Opportunities flow in from the PSA/CRM rather than being re-keyed into a vendor portal`,`Unmapped deals are surfaced explicitly, so nothing registers against the wrong vendor`,`Registration is pushed through to AWS Partner Central and the result is written back`],transcript:[`This walkthrough covers Cotillion's deal registration workflow: taking an opportunity that already exists in your PSA or CRM and registering it as an AWS co-sell deal, without anyone re-typing it into a vendor portal.`,`The dashboard is the starting point. It shows which systems are connected and how recently each one synced, the deals that need attention, and a deal overview split between action required, synced and ignored. The intent is that a partner manager can see the state of their registrations in a few seconds rather than logging into each portal in turn.`,`Deals arrive from the connected system. Each one carries its description, the opportunity it belongs to and when it was last updated. Deals that have not yet been matched to a vendor are flagged as unmapped, which is the queue of work: mapping is a deliberate step so a registration never lands against the wrong vendor programme.`,`Once a deal is mapped, it can be submitted as an AWS co-sell registration. Cotillion handles the submission into AWS Partner Central and writes the outcome back, so the sync status on the dashboard reflects what the vendor portal actually accepted rather than what someone believes they submitted.`,`The practical effect is that deal registration stops being a manual, memory-dependent task at the end of a sales cycle and becomes part of the workflow the team is already in. Deal registration with AWS is live today; further vendor integrations and modules are on the Cotillion roadmap.`]}];function M9(e){return j9.find(t=>t.slug===e)}function wbe(e){let t=Math.floor(e/60),n=e%60;return`PT${t>0?`${t}M`:``}${n>0||t===0?`${n}S`:``}`}function Tbe(e){let t=Math.floor(e/60),n=e%60;return`${t}:${String(n).padStart(2,`0`)}`}var Ebe=()=>T(()=>import(`./demos.index-dFjEZEbo.js`),__vite__mapDeps([235,185,1,181,186,187,188,182,189])),N9=`Demo Library - Product Walkthroughs | indyrct`,P9=`Short video walkthroughs of Partner Compass, the Health Check calculators and channel orchestration workflows - each with a written summary you can skim.`,F9=`/demos`,Dbe=Fe(`/demos/`)({head:()=>({meta:[{title:N9},{name:`description`,content:P9},{property:`og:title`,content:N9},{property:`og:description`,content:P9},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}${F9}`},{property:`og:site_name`,content:`indyrct`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:N9},{name:`twitter:description`,content:P9},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`}],links:[{rel:`canonical`,href:`${Ie}${F9}`}],scripts:[{type:`application/ld+json`,children:JSON.stringify(n7([{name:`Home`,path:`/`},{name:`Resources`,path:`/resources`},{name:`Demos`,path:F9}
745]))},...j9.length?[{type:`application/ld+json`,children:JSON.stringify(i7(j9.map(e=>({name:e.title,path:`/demos/${e.slug}`}))))}]:[]]}),component:Pe(Ebe,`component`)}),I9=Fe(`/demos/$slug`)({loader:({params:e})=>{let t=M9(e.slug);if(!t)throw Ce();return{demo:t}},head:({loaderData:e})=>{let t=e?.demo;if(!t)return{meta:[{title:`Demo not found | indyrct`},{name:`robots`,content:`noindex`}]};let n=`${t.title} - Demo | indyrct`,r=`/demos/${t.slug}`,i=t.youtubeId?`https://www.youtube-nocookie.com/embed/${t.youtubeId}`:`${Ie}${t.videoUrl}`,a=t.thumbnailUrl.startsWith(`/`)?`${Ie}${t.thumbnailUrl}`:t.thumbnailUrl;return{meta:[{title:n},{name:`description`,content:t.tagline},{property:`og:title`,content:n},{property:`og:description`,content:t.tagline},{property:`og:type`,content:`video.other`},{property:`og:url`,content:`${Ie}${r}`},{property:`og:site_name`,content:`indyrct`},{property:`og:image`,content:a},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:n},{name:`twitter:description`,content:t.tagline},{name:`twitter:image`,content:a},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`}],links:[{rel:`canonical`,href:`${Ie}${r}`}],scripts:[{type:`application/ld+json`,children:JSON.stringify(cye({name:t.title,description:t.description,url:r,thumbnailUrl:a,uploadDate:t.uploadDate,duration:wbe(t.durationSeconds),embedUrl:i,transcript:t.transcript.join(` 746 747`),clips:t.chapters.map((e,n)=>({name:e.label,startOffset:e.at,endOffset:t.chapters[n+1]?.at??t.durationSeconds}))}))},{type:`application/ld+json`,children:JSON.stringify(n7([{name:`Home`,path:`/`},{name:`Resources`,path:`/resources`},{name:`Demos`,path:`/demos`},{name:t.title,path:r}]))}]}},notFoundComponent:Pe(()=>T(()=>import(`./demos._slug-gK1RFUQu.js`),__vite__mapDeps([236,185,1,181,186,187,188,182])),`notFoundComponent`),component:Pe(()=>T(()=>import(`./demos._slug-Dz1o8-HS.js`),__vite__mapDeps([237,185,1,181,186,187,188,182,189,231,238,191])),`component`)}),Obe=()=>T(()=>import(`./glossary.index-C6_0_LJL.js`),__vite__mapDeps([239,185,1,181,186,187,188,182,189])),kbe=`Channel glossary - vendor programme terms explained | indyrct`,Abe=`Plain definitions of the vendor partner programme terms MSPs deal with every quarter - MDF, deal registration, rebates, programme tiers - and what each one means for your business.`,L9=`/glossary`,R9=Fe(`/glossary/`)({loader:async()=>({terms:await eye()}),head:({loaderData:e})=>{let t=e?.terms??[];return t7({title:kbe,description:Abe,url:L9,jsonLd:[n7([{name:`Home`,path:`/`},{name:`Glossary`,path:L9}]),{"@context":`https://schema.org`,"@type":`DefinedTermSet`,name:`indyrct channel glossary`,url:`${Ie}${L9}`,hasDefinedTerm:t.map(e=>({"@type":`DefinedTerm`,name:e.term,description:e.definition,url:`${Ie}/glossary/${e.slug}`}))}]})},component:Pe(Obe,`component`)}),z9=Fe(`/glossary/$slug`)({loader:async({params:e})=>{let t=await tye(e.slug);if(!t)throw Ce();return{doc:t}},head:({loaderData:e})=>{let t=e?.doc;if(!t)return{};let n=`/glossary/${t.slug}`,r=(t.faqs??[]).filter(e=>e?.q&&e?.a),i=[n7([{name:`Home`,path:`/`},{name:`Glossary`,path:`/glossary`},{name:t.term,path:n}]),{"@context":`https://schema.org`,"@type":`DefinedTerm`,name:t.term,description:t.definition,url:`${Ie}${n}`,inDefinedTermSet:`${Ie}/glossary`}];return r.length>0&&i.push(Y7(r)),t7({title:t.seoTitle??`${t.term} - channel glossary | indyrct`,description:t.seoDescription??t.definition,url:n,ogType:`article`,jsonLd:i})},notFoundComponent:Pe(()=>T(()=>import(`./glossary._slug-Ifw_0Pt4.js`),__vite__mapDeps([240,185,1,181,186,187,188,182,189])),`notFoundComponent`),component:Pe(()=>T(()=>import(`./glossary._slug-CLkHS1bJ.js`),__vite__mapDeps([241,185,1,181,186,187,188,182,189,225])),`component`)}),jbe=()=>T(()=>import(`./resources.index-CygMqqpp.js`),__vite__mapDeps([242,185,1,181,186,187,188,182,189])),B9=`Resources - indyrct`,V9=`Tools, insight and updates for channel leaders. Free Health Check calculators, research reports, and practical guides for VARs, SIs, MSPs, vendors and distributors.`,H9=`/resources`,Mbe=Fe(`/resources/`)({head:()=>({meta:[{title:B9},{name:`description`,content:V9},{property:`og:title`,content:B9},{property:`og:description`,content:V9},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}${H9}`},{property:`og:site_name`,content:`indyrct`},{property:`og:image`,content:h9},{property:`og:image:width`,content:`1216`},{property:`og:image:height`,content:`640`},{property:`og:image:alt`,content:`indyrct Resources - calculators, blog and news for channel leaders`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:B9},{name:`twitter:description`,content:V9},{name:`twitter:image`,content:h9},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`}],links:[{rel:`canonical`,href:`${Ie}${H9}`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`CollectionPage`,name:`indyrct Resources`,description:V9,url:`${Ie}${H9}`,hasPart:[{"@type":`WebPage`,name:`Vendor Strategy Health Check`,url:`${Ie}/calculators/msp-health-check`},{"@type":`WebPage`,name:`Vendor Channel Health Check`,url:`${Ie}/calculators/vendor-channel-health`},{"@type":`WebPage`,name:`Value Gap Calculator`,url:`${Ie}/calculators/value-gap`}]})}]}),component:Pe(jbe,`component`)}),Nbe=Fe(`/resources/$slug`)({beforeLoad:({params:e})=>{throw ke({to:`/blog/$slug`,params:{slug:e.slug},statusCode:301})}}),Pbe=Fe(`/resources/blog`)({beforeLoad:()=>{throw ke({to:`/blog`,statusCode:301})}}),Fbe=Fe(`/resources/msp-channel-value-leakage-report`)({beforeLoad:()=>{throw ke({to:`/blog/msp-channel-value-leakage-report`,statusCode:301})}}),Ibe=Fe(`/services/framework`)({beforeLoad:()=>{throw ke({to:`/partner-compass`,statusCode:301})}}),Lbe=()=>T(()=>import(`./toolkit.index-BkEh1amx.js`),__vite__mapDeps([243,185,1,181,186,187,188,182,189])),U9=`Free Notion Templates for Channel Leaders | indyrct`,W9=`Free Notion templates for MSPs, VARs, SIs, vendors and distributors - vendor portfolio tracking, MDF logs, deal-registration cadences.`,G9=`/toolkit`,Rbe=Fe(`/toolkit/`)({head:()=>({meta:[{title:U9},{name:`description`,content:W9},{property:`og:title`,content:U9},{property:`og:description`,content:W9},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}${G9}`},{property:`og:site_name`,content:`indyrct`},{name:`twitter:card`,content:`summary_large_image`},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`}],links:[{rel:`canonical`,href:`${Ie}${G9}`}]}),component:Pe(Lbe,`component`)}),K9=[{slug:`partner-compass-strategic-vendor-map`,label:`For MSPs, VARs & SIs`,title:`Partner Compass â Strategic Vendor Map`,tagline:`Classify every vend
747or, track MDF and deal-reg, and see rebate thresholds in one place.`,description:`The Notion workspace we use with Partner Compass clients to turn a scattered vendor list into a managed portfolio. Portfolio classification, MDF tracker, deal-registration log, rebate threshold planner, and a weekly cadence board.`,benefits:[`Classify vendors as Anchor, Growth, Utility or Exit`,`Track MDF entitlements, claims and expiry per vendor`,`Log deal registrations and margin impact`,`See rebate thresholds and progress-to-next-band`],whatsInside:[`Portfolio classification database with scoring rubric`,`MDF tracker with quarterly claim status`,`Deal-registration log with margin uplift math`,`Rebate threshold planner across major vendors`,`Weekly channel cadence board`],assetType:`notion`,assetUrl:`https://app.notion.com/p/indyrct/Partner-Compass-Strategic-Vendor-Map-33d003b8e3dd81e9945cc2344b2670ad?source=copy_link`,audience:`MSP`,estMinutes:15}];function zbe(e){return K9.find(t=>t.slug===e)}var q9=Fe(`/toolkit/$slug`)({loader:({params:e})=>{let t=zbe(e.slug);if(!t)throw Ce();return{template:t}},head:({loaderData:e})=>{let t=e?.template;if(!t)return{meta:[{title:`Template not found | indyrct`}]};let n=`${t.title} - Free Notion Template | indyrct`,r=t.tagline,i=`/toolkit/${t.slug}`;return{meta:[{title:n},{name:`description`,content:r},{property:`og:title`,content:n},{property:`og:description`,content:r},{property:`og:type`,content:`website`},{property:`og:url`,content:`${Ie}${i}`},{property:`og:site_name`,content:`indyrct`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:n},{name:`twitter:description`,content:r},{name:`robots`,content:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`}],links:[{rel:`canonical`,href:`${Ie}${i}`}],scripts:[{type:`application/ld+json`,children:JSON.stringify(n7([{name:`Home`,path:`/`},{name:`Resources`,path:`/resources`},{name:`Templates`,path:`/toolkit`},{name:t.title,path:i}]))}]}},notFoundComponent:Pe(()=>T(()=>import(`./toolkit._slug-DpLmsIQp.js`),__vite__mapDeps([244,185,1,181,186,187,188,182])),`notFoundComponent`),errorComponent:Pe(()=>T(()=>import(`./toolkit._slug-CZvrJkkl.js`),__vite__mapDeps([245,182,1])),`errorComponent`),component:Pe(()=>T(()=>import(`./toolkit._slug-DEgiIB36.js`),__vite__mapDeps([246,1,181,200,186,188,201,202,203,189,204,185,187,182,205,190,206,207,231,238,232,227,209])),`component`)}),Bbe=()=>T(()=>import(`./vendor-programmes.index-BWQKLTkO.js`),__vite__mapDeps([247,185,1,181,186,187,188,182,189])),Vbe=`Vendor programme teardowns - scored from the partner's side | indyrct`,Hbe=`Independent teardowns of vendor partner programmes: tiers and requirements, deal registration terms, MDF gating, portal burden and our scored assessment. Each one carries a last verified date.`,J9=`/vendor-programmes`,Y9=Fe(`/vendor-programmes/`)({loader:async()=>({programmes:await iye()}),head:({loaderData:e})=>{let t=e?.programmes??[];return t7({title:Vbe,description:Hbe,url:J9,jsonLd:[n7([{name:`Home`,path:`/`},{name:`Vendor programmes`,path:J9}]),i7(t.map(e=>({name:`${e.vendorName} partner programme teardown`,path:`/vendor-programmes/${e.slug}`})))]})},component:Pe(Bbe,`component`)}),X9=Fe(`/vendor-programmes/$slug`)({loader:async({params:e})=>{let t=await aye(e.slug);if(!t)throw Ce();return{doc:t}},head:({loaderData:e})=>{let t=e?.doc;if(!t)return{};let n=`/vendor-programmes/${t.slug}`,r=`${t.vendorName} partner programme - teardown`,i=(t.faqs??[]).filter(e=>e?.q&&e?.a),a=t.publishedAt??t.lastVerified??t._updatedAt,o=t.lastVerified??t._updatedAt??a,s=[n7([{name:`Home`,path:`/`},{name:`Vendor programmes`,path:`/vendor-programmes`},{name:t.vendorName,path:n}]),{"@context":`https://schema.org`,"@type":`Article`,headline:r,description:t.seoDescription??t.summary??r,url:`${Ie}${n}`,mainEntityOfPage:`${Ie}${n}`,...a?{datePublished:a}:{},...o?{dateModified:o}:{},author:{"@type":`Organization`,name:`indyrct`},publisher:{"@type":`Organization`,name:`indyrct`,url:`${Ie}/`}}];return i.length>0&&s.push(Y7(i)),t7({title:t.seoTitle??`${r} | indyrct`,description:t.seoDescription??t.summary??`Tiers, deal registration, MDF and portal burden in the ${t.vendorName} partner programme, scored from the partner's side.`,url:n,ogType:`article`,jsonLd:s})},notFoundComponent:Pe(()=>T(()=>import(`./vendor-programmes._slug-Dh7HQEvX.js`),__vite__mapDeps([248,185,1,181,186,187,188,182,189])),`notFoundComponent`),component:Pe(()=>T(()=>import(`./vendor-programmes._slug-C2gs1EyP.js`),__vite__mapDeps([249,185,1,181,186,187,188,182,189,199,200,201,202,203,204,205,190,206,207,208,209,225])),`component`)}),Ube=Fe(`/resources/calculators/`)({beforeLoad:()=>{throw ke({to:`/calculators`,statusCode:301})}}),Wbe=Fe(`/resources/calculators/msp-health-check`)({beforeLoad:()=>{throw ke({to:`/calculators/msp-health-check`,statusCode:301})}}),Gbe=Fe(`/resources/calculators/value-gap`)({beforeLoad:()=>{throw ke({to:`/calculators/value-gap`,statusCode:301})}}),Kbe=Fe(`/resources/calculators/vendor-channel-health`)({beforeLoad:()=>{throw ke({to:`/calculators/vendor-channel-health`,statusCode:301})}}),qbe=Fe(`/resources/templates/`)({beforeLoad:()=>{throw ke({to:`/toolkit`,statusCode:301})}}),Jbe=Fe(`/resources/templates/$slug`)({beforeLoad:({params:e})=>{throw ke({to:`/toolkit/$slug`,params:{slug:e.slug},statusCode:301})}}),Ybe=$5.update({id:`/`,path:`/`,getParentRoute:()=>g3}),Xbe=sye.update({id:`/about`,path:`/about`,getParentRoute:()=>g3}),Zbe=lye.update({id:`/ai-instructions`,path:`/ai-instructions`,getParentRoute:()=>g3}),Qbe=mye.update({id:`/automate-deal-registration`,path:`/automate-deal-registration`,getParentRoute:()=>g3}),$be=gye.update({id:`/contact`,path:`/contact`,getParentRoute:()=>g3}),exe=_ye.update({id:`/cotillion`,path:`/cotillion`,getParentRoute:()=>g3}),txe=Sye.update({id:`/deal-registration`,path:`/deal-registration`,getParentRoute:()=>g3}),nxe=Kye.update({id:`/distributors`,path:`/distributors`,getParentRoute:()=>g3}),rxe=Jye.update({id:`/founding-partners`,path:`/founding-partners`,getParentRoute:()=>g3}),ixe=i9.update({id:`/partner-compass`,path:`/partner-compass`,getParentRoute:()=>g3}),axe=Xye.update({id:`/privacy`,path:`/privacy`,getParentRoute:()=>g3}),oxe=Qye.update({id:`/privacy-policy`,path:`/privacy-policy`,getParentRoute:()=>g3}),Z9=$ye.update({id:`/resources`,path:`/resources`,getParentRoute:()=>g3}),Q9=ebe.update({id:`/services`,path:`/services`,getParentRoute:()=>g3}),sxe=tbe.update({id:`/terms`,path:`/terms`,getParentRoute:()=>g3}),cxe=rbe.update({id:`/terms-and-conditions`,path:`/terms-and-conditions`,getParentRoute:()=>g3}),lxe=cbe.update({id:`/vendor-strategy-as-a-service`,path:`/vendor-strategy-as-a-service`,getParentRoute:()=>g3}),uxe=lbe.update({id:`/vendors`,path:`/vendors`,getParentRoute:()=>g3}),dxe=ube.update({id:`/whats-new`,path:`/whats-new`,getParentRoute:()=>g3}
747),fxe=y9.update({id:`/blog/`,path:`/blog/`,getParentRoute:()=>g3}),pxe=b9.update({id:`/blog/$slug`,path:`/blog/$slug`,getParentRoute:()=>g3}),mxe=mbe.update({id:`/blog/msp-channel-value-leakage-report`,path:`/blog/msp-channel-value-leakage-report`,getParentRoute:()=>g3}),hxe=hbe.update({id:`/blog/msp-vendor-management-guide`,path:`/blog/msp-vendor-management-guide`,getParentRoute:()=>g3}),gxe=_be.update({id:`/calculators/`,path:`/calculators/`,getParentRoute:()=>g3}),_xe=ybe.update({id:`/calculators/msp-health-check`,path:`/calculators/msp-health-check`,getParentRoute:()=>g3}),vxe=xbe.update({id:`/calculators/value-gap`,path:`/calculators/value-gap`,getParentRoute:()=>g3}),yxe=Cbe.update({id:`/calculators/vendor-channel-health`,path:`/calculators/vendor-channel-health`,getParentRoute:()=>g3}),bxe=Dbe.update({id:`/demos/`,path:`/demos/`,getParentRoute:()=>g3}),xxe=I9.update({id:`/demos/$slug`,path:`/demos/$slug`,getParentRoute:()=>g3}),Sxe=R9.update({id:`/glossary/`,path:`/glossary/`,getParentRoute:()=>g3}),Cxe=z9.update({id:`/glossary/$slug`,path:`/glossary/$slug`,getParentRoute:()=>g3}),wxe=Mbe.update({id:`/`,path:`/`,getParentRoute:()=>Z9}),Txe=Nbe.update({id:`/$slug`,path:`/$slug`,getParentRoute:()=>Z9}),Exe=Pbe.update({id:`/blog`,path:`/blog`,getParentRoute:()=>Z9}),Dxe=Fbe.update({id:`/msp-channel-value-leakage-report`,path:`/msp-channel-value-leakage-report`,getParentRoute:()=>Z9}),Oxe=Ibe.update({id:`/framework`,path:`/framework`,getParentRoute:()=>Q9}),kxe=Rbe.update({id:`/toolkit/`,path:`/toolkit/`,getParentRoute:()=>g3}),Axe=q9.update({id:`/toolkit/$slug`,path:`/toolkit/$slug`,getParentRoute:()=>g3}),jxe=Y9.update({id:`/vendor-programmes/`,path:`/vendor-programmes/`,getParentRoute:()=>g3}),Mxe=X9.update({id:`/vendor-programmes/$slug`,path:`/vendor-programmes/$slug`,getParentRoute:()=>g3}),Nxe=Ube.update({id:`/calculators/`,path:`/calculators/`,getParentRoute:()=>Z9}),Pxe=Wbe.update({id:`/calculators/msp-health-check`,path:`/calculators/msp-health-check`,getParentRoute:()=>Z9}),Fxe=Gbe.update({id:`/calculators/value-gap`,path:`/calculators/value-gap`,getParentRoute:()=>Z9}),Ixe=Kbe.update({id:`/calculators/vendor-channel-health`,path:`/calculators/vendor-channel-health`,getParentRoute:()=>Z9}),Lxe=qbe.update({id:`/templates/`,path:`/templates/`,getParentRoute:()=>Z9}),Rxe={ResourcesSlugRoute:Txe,ResourcesBlogRoute:Exe,ResourcesMspChannelValueLeakageReportRoute:Dxe,ResourcesIndexRoute:wxe,ResourcesCalculatorsMspHealthCheckRoute:Pxe,ResourcesCalculatorsValueGapRoute:Fxe,ResourcesCalculatorsVendorChannelHealthRoute:Ixe,ResourcesTemplatesSlugRoute:Jbe.update({id:`/templates/$slug`,path:`/templates/$slug`,getParentRoute:()=>Z9}),ResourcesCalculatorsIndexRoute:Nxe,ResourcesTemplatesIndexRoute:Lxe},zxe=Z9._addFileChildren(Rxe),Bxe={ServicesFrameworkRoute:Oxe},Vxe={IndexRoute:Ybe,AboutRoute:Xbe,AiInstructionsRoute:Zbe,AutomateDealRegistrationRoute:Qbe,ContactRoute:$be,CotillionRoute:exe,DealRegistrationRoute:txe,DistributorsRoute:nxe,FoundingPartnersRoute:rxe,PartnerCompassRoute:ixe,PrivacyRoute:axe,PrivacyPolicyRoute:oxe,ResourcesRoute:zxe,ServicesRoute:Q9._addFileChildren(Bxe),TermsRoute:sxe,TermsAndConditionsRoute:cxe,VendorStrategyAsAServiceRoute:lxe,VendorsRoute:uxe,WhatsNewRoute:dxe,BlogSlugRoute:pxe,BlogMspChannelValueLeakageReportRoute:mxe,BlogMspVendorManagementGuideRoute:hxe,CalculatorsMspHealthCheckRoute:_xe,CalculatorsValueGapRoute:vxe,CalculatorsVendorChannelHealthRoute:yxe,DemosSlugRoute:xxe,GlossarySlugRoute:Cxe,ToolkitSlugRoute:Axe,VendorProgrammesSlugRoute:Mxe,BlogIndexRoute:fxe,CalculatorsIndexRoute:gxe,DemosIndexRoute:bxe,GlossaryIndexRoute:Sxe,ToolkitIndexRoute:kxe,VendorProgrammesIndexRoute:jxe},Hxe=g3._addFileChildren(Vxe),Uxe=()=>qi({routeTree:Hxe,context:{queryClient:new rf},scrollRestoration:!0,defaultPreloadStaleTime:0});async function Wxe(){let e=await Uxe(),t;if(id){let n=await id.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,t=n.serializationAdapters,e.options.defaultSsr=n.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};
747return t.push(ri),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await oi(e),e}var Gxe=Wxe;async function Kxe(){let e=await Gxe();return window.$_TSR?.h(),e}var $9;function qxe(){return $9||=Kxe(),(0,O.jsx)(ci,{promise:$9,children:e=>(0,O.jsx)(Xi,{router:e})})}var Jxe=Pn();(0,D.startTransition)(()=>{(0,Jxe.hydrateRoot)(document,(0,O.jsx)(D.StrictMode,{children:(0,O.jsx)(qxe,{})}))});export{oW as $,Age as A,bpe as B,K7 as C,$5 as D,a7 as E,nhe as F,gW as G,c3 as H,ihe as I,vW as J,mW as K,p3 as L,rhe as M,ehe as N,Z5 as O,the as P,aW as Q,l3 as R,Wye as S,u7 as T,BW as U,a3 as V,zW as W,bW as X,FW as Y,hW as Z,e9 as _,z9 as a,J7 as b,j9 as c,b9 as d,xB as et,y9 as f,i9 as g,d9 as h,K9 as i,Hi as it,b3 as j,n8 as k,Tbe as l,p9 as m,Y9 as n,Ww as nt,R9 as o,m9 as p,kW as q,q9 as r,hf as rt,I9 as s,X9 as t,ace as tt,M9 as u,X7 as v,f7 as w,Uye as x,Gye as y,B2 as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.