docmedown 0.9.3 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -6
- package/dist/cli.js +155 -129
- package/dist/docmedown.cjs +64 -64
- package/dist/docmedown.iife.js +264 -264
- package/dist/docmedown.mjs +3337 -3337
- package/dist/docmedown.web.js +69 -69
- package/dist/types/runtime/bridges/dynamic-component.d.ts +1 -9
- package/dist/types/runtime/home.d.ts +2 -4
- package/dist/types/runtime/markdown/callouts.d.ts +0 -12
- package/dist/types/runtime/markdown/highlighter.d.ts +0 -23
- package/dist/types/runtime/markdown/inline-text.d.ts +0 -1
- package/dist/types/runtime/markdown/parser.d.ts +0 -1
- package/dist/types/runtime/markdown/tables.d.ts +2 -3
- package/dist/types/runtime/media.d.ts +0 -3
- package/dist/types/runtime/offline-export.d.ts +2 -2
- package/dist/types/runtime/splash.d.ts +0 -2
- package/dist/types/runtime/svelte-compiler-loader.d.ts +0 -1
- package/dist/types/runtime/svelte-runtime.d.ts +0 -18
- package/dist/types/runtime/svelte-tag.d.ts +0 -1
- package/package.json +1 -1
- package/templates/getting-started.md +1 -1
package/dist/docmedown.cjs
CHANGED
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
4
4
|
`)}),c(t,`name`,{value:e}),t)}function Jt(){let e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;let t=Error().stack;if(Error.stackTraceLimit=e,!t)return[];let n=t.split(`
|
|
5
5
|
`),r=[];for(let e=0;e<n.length;e++){let t=n[e],i=t.replaceAll(`\\`,`/`);if(t.trim()!==`Error`){if(t.includes(`validate_each_keys`))return[];i.includes(`svelte/src/internal`)||i.includes(`node_modules/.vite`)||r.push(t)}}return r}function Yt(e,t,n){let r={};return[()=>(n(r)||mt(),e(r)),e=>t(r,e),()=>n(r)]}function Xt(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function Zt(e,t){return e===null&&pt(t),e.c??=new Map(Xt(e)||void 0)}var Qt=null;function $t(e){Qt=e}var en=null;function tn(e,t,n,r,i,a){let o=en;en={type:t,file:n[Fe],line:r,column:i,parent:o,...a};try{return e()}finally{en=o}}var nn=null;function rn(e){nn=e}function an(){return Yt(on,sn,cn)}function on(e){return Zt(Qt,`getContext`).get(e)}function sn(e,t){return Zt(Qt,`setContext`).set(e,t),t}function cn(e){return Zt(Qt,`hasContext`).has(e)}function ln(){return Zt(Qt,`getAllContexts`)}function un(e,t=!1,n){Qt={p:Qt,i:!1,c:null,e:null,s:e,x:null,r:ua,l:null}}function dn(e){var t=Qt,n=t.e;if(n!==null){t.e=null;for(var r of n)ki(r)}return e!==void 0&&(t.x=e),t.i=!0,Qt=t.p,fn(e)}function fn(e={}){return c(e,xe,{value:!0}),e}function pn(){return!0}var mn=[];function hn(){var e=mn;mn=[],b(e)}function gn(e){if(mn.length===0&&!xr){var t=mn;queueMicrotask(()=>{t===mn&&hn()})}mn.push(e)}function _n(){for(;mn.length>0;)hn()}var vn=~(ie|ae|re);function yn(e,t){e.f=e.f&vn|t}function bn(e){e.f&512||e.deps===null?yn(e,re):yn(e,ae)}function xn(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ge,xn(t.deps))}function Sn(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),xn(e.deps),yn(e,re)}function Cn(e,t,n){if(e==null)return t(void 0),n&&n(void 0),_;let r=Fa(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}function wn(e){let t;return Cn(e,e=>t=e)(),t}var Tn=!1,En=!1,Dn=Symbol(`unmounted`);function On(e,t,n){let r=n[t]??={store:null,source:Gr(void 0),unsubscribe:_};if(r.store!==e&&!(Dn in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=_;else{var i=!0;r.unsubscribe=Cn(e,e=>{i?r.source.v=e:D(r.source,e)}),i=!1}}return e&&Dn in n?wn(e):M(r.source)}function kn(e,t,n){let r=n[t];return r&&r.store!==e&&(r.unsubscribe(),r.unsubscribe=_),e}function An(e,t){return Nn(e,t),t}function jn(e,t){var n=e[t];n.store!==null&&An(n.store,n.source.v)}function Mn(){let e={};function t(){Di(()=>{for(var t in e)e[t].unsubscribe();c(e,Dn,{enumerable:!1,value:!0})})}return[e,t]}function Nn(e,t){Tn=!0;try{e.set(t)}finally{Tn=!1}}function Pn(e,t,n){return Nn(e,n),t}function Fn(e,t,n=1){return Nn(e,t+n),t}function In(e,t,n=1){let r=t+n;return Nn(e,r),r}function Ln(){En=!0}function Rn(e){var t=En;try{return En=!1,[e(),En]}finally{En=t}}function zn(e,t){if(t){let t=document.body;e.autofocus=!0,gn(()=>{document.activeElement===t&&e.focus()})}}function Bn(e){C&&di(e)!==null&&mi(e)}var Vn=!1;function Hn(){Vn||(Vn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[ke]?.()})},{capture:!0}))}function Un(e,t,n,r=!0){r&&n();for(var i of t)e.addEventListener(i,n);Di(()=>{for(var r of t)e.removeEventListener(r,n)})}function Wn(e){var t=sa,n=ua;la(null),da(null);try{return e()}finally{la(t),da(n)}}function Gn(e,t,n,r=n){e.addEventListener(t,()=>Wn(n));let i=e[ke];e[ke]=i?()=>{i(),r(!0)}:()=>r(!0),Hn()}function Kn(e,t,n,r){let i=pn()?or:ur;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=ua,c=Jn(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){Si(e,s)}er()}}var d=rr();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>cr(e))).then(u).catch(e=>Si(e,s)).finally(d)}l?l.then(()=>{c(),f(),er()}):f()}function qn(e,t){Kn(e,[],[],t)}function Jn(){var e=ua,t=sa,n=Qt,r=_r;return function(i=!0){da(e),la(t),$t(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}var Yn=!1;async function Xn(e){var t=Jn();Zn();var n=await e;return()=>(t(),Yn=!0,n)}function Zn(e){return Yn&&er(),e}async function Qn(e){Zn();var t=ir;queueMicrotask(()=>{ir===t&&ar(null)});var n=await e;return()=>(ar(t),queueMicrotask(()=>{ir===t&&ar(null)}),n)}async function*$n(e){let t=e[Symbol.asyncIterator]?.()??e[Symbol.iterator]?.();if(t===void 0)throw TypeError(`value is not async iterable`);let n=!0;try{for(;;){let{done:e,value:i}=(await Qn(t.next()))();if(e){n=!1;break}var r=ir;try{yield i}catch(e){throw ar(r),t.return!==void 0&&(await Qn(t.return()))(),e}ar(r)}}catch(e){throw n=!1,e}finally{if(n&&t.return!==void 0)return(await Qn(t.return()))().value}}function er(e=!0){Yn=!1,da(null),la(null),$t(null),e&&_r?.deactivate()}function tr(e){let t=Jn(),n=rr();var r=ua,i=null;let a=e=>{i={error:e},$i(r)||Si(e,r)};var o=Promise.resolve(e[0]()).catch(a),s={promise:o,settled:!1},c=[s];o.finally(()=>{s.settled=!0,er()});for(let n of e.slice(1)){o=o.then(()=>{t();try{if(i)throw i.error;if($i(r))throw je;return n()}finally{er()}}).catch(a);let e={promise:o,settled:!1};c.push(e),o.finally(()=>{e.settled=!0,er()})}return o.then(()=>Promise.resolve()).finally(n),c}function nr(e){return Promise.all(e.map(e=>e.promise))}function rr(){var e=ua,t=e.b,n=_r,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}var ir=null;function ar(e){ir=e}function or(e){var t=2|ie;return ua!==null&&(ua.f|=pe),{ctx:Qt,deps:null,effects:null,equals:st,f:t,fn:e,reactions:null,rv:0,v:Pe,wv:0,parent:ua,ac:null}}var sr=Symbol(`obsolete`);function cr(e,t,n){let r=ua;r===null&&vt();var i=void 0,a=Wr(Pe),o=!sa,s=new Set;return Li(()=>{var t=ua,n=x();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==je&&n.reject(e)}).finally(er)}catch(e){n.reject(e),er()}var c=_r;if(o){if(t.f&32768)var l=rr();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(sr);else for(let e of s.values())e.reject(sr);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==sr&&(c.activate(),t?(a.f|=ye,qr(a,t)):(a.f&8388608&&(a.f^=ye),qr(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Di(()=>{for(let e of s)e.reject(sr)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function lr(e){let t=or(e);return pa(t),t}function ur(e){let t=or(e);return t.equals=lt,t}function dr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Ki(t[n])}}function fr(e){var t,n=ua,r=e.parent;if(!aa&&r!==null&&e.v!==Pe&&r.f&24576)return We(),e.v;da(r);try{e.f&=~ge,dr(e),t=Ta(e)}finally{da(n)}return t}function pr(e){var t=fr(e);if(!e.equals(t)&&(e.wv=Sa(),(!_r?.is_fork||e.deps===null)&&(_r===null?e.v=t:(_r.capture(e,t,!0),vr?.capture(e,t,!0)),e.deps===null))){yn(e,re);return}aa||(yr===null?bn(e):(Ei()||_r?.is_fork)&&yr.set(e,t))}function mr(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&Wn(()=>{t.ac.abort(je),t.ac=null}),t.fn!==null&&(t.teardown=_),Oa(t,0),Wi(t))}function hr(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&ka(t)}var gr=null,_r=null,vr=null,yr=null,br=null,xr=!1,Sr=!1,Cr=null,wr=null,Tr=0,Er=1,Dr=class e{id=Er++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){gr===null?gr=this:(gr.#n=this,this.#t=gr),gr=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)yn(r,ie),t(r);for(r of n.m)yn(r,ae),t(r)}this.#p.add(e)}#g(){this.#e=!0,Tr++>1e3&&(this.#x(),Or());for(let e of this.#u)this.#d.delete(e),yn(e,ie),this.schedule(e);for(let e of this.#d)yn(e,ae),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=Cr=[],r=[],i=wr=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw Rr(e),this.#h()||this.discard(),t}if(_r=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Cr=null,wr=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)Lr(e,t);i.length>0&&_r.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),vr=this,Ar(r),Ar(n),vr=null,this.#s?.resolve();var s=_r;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&(Vr.clear(),s.#g())}#_(e,t,n){e.f^=re;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=re:i&4?t.push(r):Ca(r)&&(i&16&&this.#d.add(r),ka(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),yn(i,ie),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),_r=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)Sn(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==Pe&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),yr?.set(e,t)),this.is_fork||(e.v=t)}activate(){_r=this}deactivate(){_r=null,yr=null}flush(){try{Sr=!0,_r=this,this.#g()}finally{Tr=0,br=null,Cr=null,wr=null,Sr=!1,_r=null,yr=null,Vr.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(sr);this.#x(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,gn(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=x()).promise}static ensure(){if(_r===null){let t=_r=new e;!Sr&&!xr&&gn(()=>{t.#e||t.flush()})}return _r}apply(){yr=null}schedule(e){if(br=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Cr!==null&&t===ua&&(sa===null||!(sa.f&2))&&!Tn)return;if(n&96){if(!(n&1024))return;t.f^=re}}this.#c.push(t)}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?gr=e:t.#t=e,this.linked=!1}}};function T(e){var t=xr;xr=!0;try{var n;for(e&&(_r!==null&&!_r.is_fork&&_r.flush(),n=e());;){if(_n(),_r===null)return n;_r.flush()}}finally{xr=t}}function Or(){try{Et()}catch(e){Si(e,br)}}var kr=null;function Ar(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Ca(r)&&(kr=new Set,ka(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Ji(r),kr?.size>0)){Vr.clear();for(let e of kr){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)kr.has(n)&&(kr.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||ka(n)}}kr.clear()}}kr=null}}function jr(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?jr(n,t):e&131072&&(yn(n,ie),t.add(n))}}function Mr(e){_r.schedule(e)}var Nr=[];function Pr(){T(()=>{let e=Nr;Nr=[];for(let t of e)Yr(t)})}var Fr=new Map;function Ir(e){var t=!0,n=void 0;if(sa===null)return e();let r=sa,i=Fr.get(r)??Wr(0);return Fr.set(r,i),Di(()=>{r.f&33554432&&Fr.delete(r)}),M(i),ji(()=>{if(t){var r=yr;try{yr=null,n=e()}finally{yr=r}return}Nr.length===0&&gn(Pr),Nr.push(i)}),t=!1,n}function Lr(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),yn(e,re);for(var n=e.first;n!==null;)Lr(n,t),n=n.next}}function Rr(e){yn(e,re);for(var t=e.first;t!==null;)Rr(t),t=t.next}function zr(e){ut(`fork`),_r!==null&&Ot();var t=Dr.ensure();t.is_fork=!0,yr=new Map;var n=!1,r=t.settled();return T(e),{commit:async()=>{if(n){await r;return}t.linked||Dt(),n=!0,t.is_fork=!1;for(var[e,[i]]of t.current)e.v=i,e.wv=Sa();T(()=>{var e=new Set;for(var n of t.current.keys())jr(n,e);Hr(e),Jr()}),t.flush(),await r},discard:()=>{for(var e of t.current.keys())e.wv=Sa();!n&&t.linked&&t.discard()}}}var Br=new Set,Vr=new Map;function Hr(e){Br=e}var Ur=!1;function Wr(e,t){return{f:0,v:e,reactions:null,equals:st,rv:0,wv:0}}function E(e,t){let n=Wr(e,t);return pa(n),n}function Gr(e,t=!1,n=!0){let r=Wr(e);return t||(r.equals=lt),r}function Kr(e,t){return D(e,Fa(()=>M(e))),t}function D(e,t,n=!1){return sa!==null&&(!ca||sa.f&131072)&&pn()&&sa.f&4325394&&(fa===null||!fa.has(e))&&Ft(),qr(e,n?$r(t):t,wr)}function qr(e,t,n=null){if(!e.equals(t)){aa?Vr.set(e,t):Vr.has(e)||Vr.set(e,e.v);var r=Dr.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&fr(t),yr===null&&bn(t)}e.wv=Sa(),Qr(e,ie,n),pn()&&ua!==null&&ua.f&1024&&!(ua.f&96)&&(ga===null?_a([e]):ga.push(e)),!r.is_fork&&Br.size>0&&!Ur&&Jr()}return t}function Jr(){Ur=!1;for(let e of Br){e.f&1024&&yn(e,ae);let t;try{t=Ca(e)}catch{t=!0}t&&ka(e)}Br.clear()}function Yr(e,t=1){var n=M(e),r=t===1?n++:n--;return D(e,n),r}function Xr(e,t=1){var n=M(e);return D(e,t===1?++n:--n)}function Zr(e){D(e,e.v+1)}function Qr(e,t,n){var r=e.reactions;if(r!==null)for(var i=pn(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===ua)){var l=(c&ie)===0;if(l&&yn(s,t),c&131072)Br.add(s);else if(c&2){var u=s;yr?.delete(u),c&65536||(c&512&&(ua===null||!(ua.f&2097152))&&(s.f|=ge),Qr(u,ae,n))}else if(l){var d=s;c&16&&kr!==null&&kr.add(d),n===null?Mr(d):n.push(d)}}}}function $r(e){if(typeof e!=`object`||!e||be in e||xe in e)return e;let t=p(e);if(t!==d&&t!==f)return e;var n=new Map,i=r(e),a=E(0),o=null,s=ba,c=e=>{if(ba===s)return e();var t=sa,n=ba;la(null),xa(s);var r=e();return la(t),xa(n),r};return i&&n.set(`length`,E(e.length,o)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Nt();var i=n.get(t);return i===void 0?c(()=>{var e=E(r.value,o);return n.set(t,e),e}):D(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=c(()=>E(Pe,o));n.set(t,e),Zr(a)}}else D(r,Pe),Zr(a);return!0},get(t,r,i){if(r===be)return e;var a=n.get(r),s=r in t;if(a===void 0&&(!s||l(t,r)?.writable)&&(a=c(()=>E($r(s?t[r]:Pe),o)),n.set(r,a)),a!==void 0){var u=M(a);return u===Pe?void 0:u}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=M(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==Pe)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===be)return!0;var r=n.get(t),i=r!==void 0&&r.v!==Pe||Reflect.has(e,t);return(r!==void 0||ua!==null&&(!i||l(e,t)?.writable))&&(r===void 0&&(r=c(()=>E(i?$r(e[t]):Pe,o)),n.set(t,r)),M(r)===Pe)?!1:i},set(e,t,r,s){var u=n.get(t),d=t in e;if(i&&t===`length`)for(var f=r;f<u.v;f+=1){var p=n.get(f+``);p===void 0?f in e&&(p=c(()=>E(Pe,o)),n.set(f+``,p)):D(p,Pe)}if(u===void 0)(!d||l(e,t)?.writable)&&(u=c(()=>E(void 0,o)),D(u,$r(r)),n.set(t,u));else{d=u.v!==Pe;var m=c(()=>$r(r));D(u,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(s,r),!d){if(i&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&D(g,_+1)}Zr(a)}return!0},ownKeys(e){M(a);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==Pe});for(var[r,i]of n)i.v!==Pe&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Pt()}})}function ei(e){try{if(typeof e==`object`&&e&&be in e)return e[be]}catch{}return e}function ti(e,t){return Object.is(ei(e),ei(t))}function ni(e,t,n=!0){try{e===t!=(ei(e)===ei(t))&&Ze(n?`===`:`!==`)}catch{}return e===t===n}function ri(e,t,n=!0){return e==t!=(ei(e)==ei(t))&&Ze(n?`==`:`!=`),e==t===n}var ii,ai,oi,si,ci;function li(){if(ii===void 0){ii=window,ai=document,oi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;si=l(t,`firstChild`).get,ci=l(t,`nextSibling`).get,m(e)&&(e[Ee]=void 0,e[Te]=null,e[De]=void 0,e.__e=void 0),m(n)&&(n[Oe]=void 0)}}function ui(e=``){return document.createTextNode(e)}function di(e){return si.call(e)}function fi(e){return ci.call(e)}function O(e,t){if(!C)return di(e);var n=di(et);if(n===null)n=et.appendChild(ui());else if(t&&n.nodeType!==3){var r=ui();return n?.before(r),tt(r),r}return t&&bi(n),tt(n),n}function pi(e,t=!1){if(!C){var n=di(e);return n instanceof Comment&&n.data===``?fi(n):n}if(t){if(et?.nodeType!==3){var r=ui();return et?.before(r),tt(r),r}bi(et)}return et}function k(e,t=!1){if(!C)return di(e);var n=O(e,t);return w(e),n}function A(e,t=1,n=!1){let r=C?et:e;for(var i;t--;)i=r,r=fi(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=ui();return r===null?i?.after(a):r.before(a),tt(a),a}bi(r)}return tt(r),r}function mi(e){e.textContent=``}function hi(){return!1}function gi(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function _i(){return document.createDocumentFragment()}function vi(e=``){return document.createComment(e)}function yi(e,t,n=``){if(t.startsWith(`xlink:`)){e.setAttributeNS(`http://www.w3.org/1999/xlink`,t,n);return}return e.setAttribute(t,n)}function bi(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function xi(e){var t=ua;if(t===null)return sa.f|=ye,e;if(!(t.f&32768)&&!(t.f&4))throw e;Si(e,t)}function Si(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128&&!(t.f&33570816)){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function Ci(e){ua===null&&(sa===null&&wt(e),Ct()),aa&&St(e)}function wi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Ti(e,t){var n=ua;n!==null&&n.f&8192&&(e|=oe);var r={ctx:Qt,deps:null,nodes:null,f:e|ie|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};_r?.register_created_effect(r);var i=r;if(e&4)Cr===null?Dr.ensure().schedule(r):Cr.push(r);else if(t!==null){try{ka(r)}catch(e){throw Ki(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ue))}if(i!==null&&(i.parent=n,n!==null&&wi(i,n),sa!==null&&sa.f&2&&!(e&64))){var a=sa;(a.effects??=[]).push(i)}return r}function Ei(){return sa!==null&&!ca}function Di(e){let t=Ti(8,null);return yn(t,re),t.teardown=e,t}function Oi(e){Ci(`$effect`);var t=ua.f;if(!sa&&t&32&&Qt!==null&&!Qt.i){var n=Qt;(n.e??=[]).push(e)}else return ki(e)}function ki(e){return Ti(4|me,e)}function Ai(e){return Ci(`$effect.pre`),Ti(8|me,e)}function ji(e){return Ti(de,e)}function Mi(e){Dr.ensure();let t=Ti(64|pe,e);return()=>{Ki(t)}}function Ni(e){Dr.ensure();let t=Ti(64|pe,e);return(e={})=>new Promise(n=>{e.outro?Yi(t,()=>{Ki(t),n(void 0)}):(Ki(t),n(void 0))})}function Pi(e){return Ti(4,e)}function Fi(e,t){var n=Qt,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=Ri(()=>{if(e(),!r.ran){r.ran=!0;var n=ua;try{da(n.parent),Fa(t)}finally{da(n)}}})}function Ii(){var e=Qt;Ri(()=>{for(var t of e.l.$){t.deps();var n=t.effect;n.f&1024&&n.deps!==null&&yn(n,ae),Ca(n)&&ka(n),t.ran=!1}})}function Li(e){return Ti(ve|pe,e)}function Ri(e,t=0){return Ti(8|t,e)}function j(e,t=[],n=[],r=[]){Kn(r,t,n,t=>{Ti(8,()=>{e(...t.map(M))})})}function zi(e,t=[],n=[],r=[]){Kn(r,t,n,t=>{Ti(4,()=>e(...t.map(M)))})}function Bi(e,t=0){return Ti(16|t,e)}function Vi(e,t=0){return Ti(ne|t,e)}function Hi(e){return Ti(32|pe,e)}function Ui(e){var t=e.teardown;if(t!==null){let n=aa,r=sa;oa(!0),la(null);try{t.call(null)}catch(t){Si(t,e.parent)}finally{oa(n),la(r)}}}function Wi(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Wn(()=>{e.abort(je)});var r=n.next;n.f&64?n.parent=null:Ki(n,t),n=r}}function Gi(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Ki(t),t=n}}function Ki(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(qi(e.nodes.start,e.nodes.end),n=!0),e.f|=le,Wi(e,t&&!n),Oa(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Ui(e),e.f^=le,e.f|=se;var i=e.parent;i!==null&&i.first!==null&&Ji(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function qi(e,t){for(;e!==null;){var n=e===t?null:fi(e);e.remove(),e=n}}function Ji(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Yi(e,t,n=!0){var r=[];e.f|=256,Xi(e,r,!0);var i=()=>{n&&Ki(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Xi(e,t,n){if(!(e.f&8192)){e.f^=oe;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);Xi(i,t,o?n:!1)}i=a}}}function Zi(e){e.f&=-257,Qi(e,!0)}function Qi(e,t){if(!(e.f&256)&&e.f&8192){e.f^=oe,e.f&1024||(yn(e,ie),Dr.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);Qi(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function $i(e=ua){return(e.f&se)!==0}function ea(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:fi(n);t.append(n),n=i}}var ta=null;function na(e){var t=ta;try{if(ta=new Set,Fa(e),t!==null)for(var n of ta)t.add(n);return ta}finally{ta=t}}function ra(e){for(var t of na(e))qr(t,t.v)}var ia=!1,aa=!1;function oa(e){aa=e}var sa=null,ca=!1;function la(e){sa=e}var ua=null;function da(e){ua=e}var fa=null;function pa(e){sa!==null&&(fa??=new Set).add(e)}var ma=null,ha=0,ga=null;function _a(e){ga=e}var va=1,ya=0,ba=ya;function xa(e){ba=e}function Sa(){return++va}function Ca(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ge),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Ca(a)&&pr(a),a.wv>e.wv)return!0}t&512&&yr===null&&yn(e,re)}return!1}function wa(e,t,n=!0){var r=e.reactions;if(r!==null&&!(fa!==null&&fa.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?wa(a,t,!1):t===a&&(n?yn(a,ie):a.f&1024&&yn(a,ae),Mr(a))}}function Ta(e){var t=ma,n=ha,r=ga,i=sa,a=fa,o=Qt,s=ca,c=ba,l=e.f;ma=null,ha=0,ga=null,sa=l&96?null:e,fa=null,$t(e.ctx),ca=!1,ba=++ya,e.ac!==null&&(Wn(()=>{e.ac.abort(je)}),e.ac=null);try{e.f|=_e;var u=e.fn,d=u();e.f|=ce;var f=Ea(e);if(pn()&&ga!==null&&!ca&&f!==null&&!(e.f&6146))for(var p=0;p<ga.length;p++)wa(ga[p],e);if(i!==null&&i!==e){if(ya++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=ya;if(t!==null)for(let e of t)e.rv=ya;ga!==null&&(r===null?r=ga:r.push(...ga))}return e.f&8388608&&(e.f^=ye),d}catch(t){return Ea(e),xi(t)}finally{e.f^=_e,ma=t,ha=n,ga=r,sa=i,fa=a,$t(o),ca=s,ba=c}}function Ea(e){var t=e.deps,n=_r?.is_fork;if(ma!==null){var r;if(n||Oa(e,ha),t!==null&&ha>0)for(t.length=ha+ma.length,r=0;r<ma.length;r++)t[ha+r]=ma[r];else e.deps=t=ma;if(Ei()&&e.f&512)for(r=ha;r<t.length;r++)(t[r].reactions??=[]).push(e)}else!n&&t!==null&&ha<t.length&&(Oa(e,ha),t.length=ha);return t}function Da(e,t){let n=t.reactions;if(n!==null){var r=i.call(n,e);if(r!==-1){var o=n.length-1;o===0?n=t.reactions=null:(n[r]=n[o],n.pop())}}if(n===null&&t.f&2&&(ma===null||!a.call(ma,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ge),s.v!==Pe&&bn(s),s.ac!==null&&Wn(()=>{s.ac.abort(je),s.ac=null,yn(s,ie)}),mr(s),Oa(s,0)}}function Oa(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Da(e,n[r])}function ka(e){var t=e.f;if(!(t&16384)){yn(e,re);var n=ua,r=ia;ua=e,ia=!(t&96);try{t&16777232?Gi(e):Wi(e),Ui(e);var i=Ta(e);e.teardown=typeof i==`function`?i:null,e.wv=va}finally{ia=r,ua=n}}}async function Aa(){await Promise.resolve(),T()}function ja(){return Dr.ensure().settled()}function M(e){var t=!!(e.f&2);if(ta?.add(e),sa!==null&&!ca&&!(ua!==null&&ua.f&16384)&&(fa===null||!fa.has(e))){var n=sa.deps;if(sa.f&2097152)e.rv<ya&&(e.rv=ya,ma===null&&n!==null&&n[ha]===e?ha++:ma===null?ma=[e]:ma.push(e));else{sa.deps??=[],a.call(sa.deps,e)||sa.deps.push(e);var r=e.reactions;r===null?e.reactions=[sa]:a.call(r,sa)||r.push(sa)}}if(aa&&Vr.has(e))return Vr.get(e);if(t){var i=e;if(aa){var o=i.v;return(!(i.f&1024)&&i.reactions!==null||Na(i))&&(o=fr(i)),Vr.set(i,o),o}var s=!(i.f&512)&&!ca&&sa!==null&&(ia||!!(sa.f&512)),c=(i.f&ce)===0;Ca(i)&&(s&&(i.f|=512),pr(i)),s&&!c&&(hr(i),Ma(i))}if(yr?.has(e))return yr.get(e);if(e.f&8388608)throw e.v;return e.v}function Ma(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(hr(t),Ma(t))}function Na(e){if(e.v===Pe)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Vr.has(t)||t.f&2&&Na(t))return!0;return!1}function Pa(e){return e&&M(e)}function Fa(e){var t=ca;try{return ca=!0,e()}finally{ca=t}}function Ia(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(be in e)La(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&be in n&&La(n)}}}function La(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{La(e[n],t)}catch{}let n=p(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=u(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function Ra(){return Symbol(Be)}var za=[`area`,`base`,`br`,`col`,`command`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`];function Ba(e){return za.includes(e)||e.toLowerCase()===`!doctype`}function Va(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var Ha=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function Ua(e){return Ha.includes(e)}var Wa=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),Ga={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function Ka(e){return e=e.toLowerCase(),Ga[e]??e}[...Wa];var qa=[`touchstart`,`touchmove`];function Ja(e){return qa.includes(e)}var Ya=[`textarea`,`script`,`style`,`title`];function Xa(e){return Ya.includes(e)}function Za(e){return e?.replace(/\//g,`/`)}function Qa(e,t,n,r){return e!==t&&typeof t==`object`&&be in t&&Ve(n,Za(r)),e}function $a(e,t,n,r,i){return Qa(n===`=`?e[t]=r:n===`&&=`?e[t]&&=r():n===`||=`?e[t]||=r():n===`??=`?e[t]??=r():null,Fa(()=>e[t]),t,i)}async function eo(e,t,n,r,i){return Qa(n===`=`?e[t]=await r:n===`&&=`?e[t]&&=await r():n===`||=`?e[t]||=await r():n===`??=`?e[t]??=await r():null,Fa(()=>e[t]),t,i)}var to=new Map;function no(e){var t=to.get(e);if(t){for(let e of t)e.remove();to.delete(e)}}function ro(e,t,n){return(...r)=>{let i=e(...r);return ao(C?i:i.nodeType===11?i.firstChild:i,t,n),i}}function io(e,t,n){e.__svelte_meta={parent:en,loc:{file:t,line:n[0],column:n[1]}},n[2]&&ao(e.firstChild,t,n[2])}function ao(e,t,n){for(var r=0,i=0;e&&r<n.length;){if(C&&e.nodeType===8){var a=e;a.data[0]===`[`?i+=1:a.data[0]===`]`&&--i}i===0&&e.nodeType===1&&io(e,t,n[r++]),e=e.nextSibling}}var oo=Symbol(`events`),so=new Set,co=new Set;function lo(e){if(!C)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function uo(e,t,n,r={}){function i(e){if(r.capture||go.call(t,e),!e.cancelBubble)return Wn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?gn(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function fo(e,t,n,r,i){var a={capture:r,passive:i},o=uo(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Di(()=>{t.removeEventListener(e,o,a)})}function N(e,t,n){(t[oo]??={})[e]=n}function po(e){for(var t=0;t<e.length;t++)so.add(e[t]);for(var n of co)n(e)}var mo=null,ho=!1;function go(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;mo=e,ho||(ho=!0,setTimeout(()=>{ho=!1,mo=null}));var o=0,s=mo===e&&e[oo];if(s){var l=i.indexOf(s);if(l!==-1&&(t===document||t===window)){e[oo]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(a=i[o]||e.target,a!==t){c(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=sa,f=ua;la(null),da(null);try{for(var p,m=[];a!==null&&a!==t;){try{var h=a[oo]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[oo]=t,delete e.currentTarget,la(d),da(f)}}}function _o(e,t,n,r,i,a=!1,o=!1){let s,c;try{s=e()}catch(e){c=e}if(typeof s!=`function`&&(a||s!=null||c)){let e=r?.[Fe],t=i?` at ${e}:${i[0]}:${i[1]}`:` in ${e}`,a=n[0]?.eventPhase<Event.BUBBLING_PHASE?`capture`:``;if(Ge(`\`${n[0]?.type+a}\` handler${t}`,o?"remove the trailing `()`":"add a leading `() =>`"),c)throw c}s?.apply(t,n)}var vo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function yo(e){return vo?.createHTML(e)??e}function bo(e){var t=gi(`template`);return t.innerHTML=yo(e.replaceAll(`<!>`,`<!---->`)),t.content}var xo=Me?`template`:`TEMPLATE`,So=Me?`script`:`SCRIPT`;function Co(e,t){var n=ua;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function P(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(C)return Co(et,null),et;i===void 0&&(i=bo(a?e:`<!>`+e),n||(i=di(i)));var t=r||oi?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=di(t),s=t.lastChild;Co(o,s)}else Co(t,t);return t}}function wo(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(C)return Co(et,null),et;if(!o){var e=di(bo(a));if(i)for(o=document.createDocumentFragment();di(e);)o.appendChild(di(e));else o=di(e)}var t=o.cloneNode(!0);if(i){var n=di(t),r=t.lastChild;Co(n,r)}else Co(t,t);return t}}function To(e,t){return wo(e,t,`svg`)}function Eo(e,t){return wo(e,t,`math`)}function Do(e,t){var n=_i();for(var r of e){if(typeof r==`string`){n.append(ui(r));continue}if(r===void 0||r[0][0]===`/`){n.append(vi(r?r[0].slice(3):``));continue}let[e,o,...s]=r,c=e===`svg`?Re:e===`math`?ze:t;var i=gi(e,c,o?.is);for(var a in o)yi(i,a,o[a]);s.length>0&&(i.nodeName===xo?i.content:i).append(Do(s,i.nodeName===`foreignObject`?void 0:c)),n.append(i)}return n}function Oo(e,t){var n=!!(t&1),r=!!(t&2),i;return()=>{if(C)return Co(et,null),et;i===void 0&&(i=Do(e,t&4?Re:t&8?ze:void 0),n||(i=di(i)));var a=r||oi?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=di(a),s=a.lastChild;Co(o,s)}else Co(a,a);return a}}function ko(e){return()=>Ao(e())}function Ao(e){if(C)return e;let t=e.nodeType===11,n=e.nodeName===So?[e]:e.querySelectorAll(`script`),r=ua;for(let a of n){let n=gi(`script`);for(var i of a.attributes)n.setAttribute(i.name,i.value);n.textContent=a.textContent,(t?e.firstChild===a:e===a)&&(r.nodes.start=n),(t?e.lastChild===a:e===a)&&(r.nodes.end=n),a.replaceWith(n)}return e}function jo(e=``){if(!C){var t=ui(e+``);return Co(t,t),t}var n=et;return n.nodeType===3?bi(n):(n.before(n=ui()),tt(n)),Co(n,n),n}function Mo(){if(C)return Co(et,null),et;var e=document.createDocumentFragment(),t=document.createComment(``),n=ui();return e.append(t,n),Co(t,n),e}function F(e,t){if(C){var n=ua;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=et),nt();return}e!==null&&e.before(t)}function No(){if(C&&et&&et.nodeType===8&&et.textContent?.startsWith(`$`)){let e=et.textContent.substring(1);return nt(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function Po(e){let t=0,n=Wr(0),r;return()=>{Ei()&&(M(n),Ri(()=>(t===0&&(r=Fa(()=>e(()=>Zr(n)))),t+=1,()=>{gn(()=>{--t,t===0&&(r?.(),r=void 0,Zr(n))})})))}}var Fo=ue|pe;function Io(e,t,n,r){new Lo(e,t,n,r)}var Lo=class{parent;is_pending=!1;transform_error;#e;#t=C?et:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Po(()=>(this.#m=Wr(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=ua;t.b=this,t.f|=128,n(e)},this.parent=ua.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Bi(()=>{if(C){let e=this.#t;nt();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},Fo),C&&(this.#e=et)}#g(){try{this.#a=Hi(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);gn(r),t&&(this.#s=Hi(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){Qe();return}t=!0,n&&It(),this.#s!==null&&Yi(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){Si(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Hi(()=>e(this.#e)),gn(()=>{var e=this.#c=document.createDocumentFragment(),t=ui(),n=!1;if(e.append(t),this.#a=this.#S(()=>{try{return Hi(()=>this.#r(t))}catch(e){try{this.error(e),n=!0}catch(e){Si(e,this.#i.parent)}return null}}),this.#a===null){this.#c=null,n&&this.#x(_r);return}this.#u===0&&(this.#e.before(e),this.#c=null,Yi(this.#o,()=>{this.#o=null}),this.#x(_r))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Hi(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();ea(this.#a,e);let t=this.#n.pending;this.#o=Hi(()=>t(this.#e))}else this.#x(_r)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Sn(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=ua,n=sa,r=Qt;da(this.#i),la(this.#i),$t(this.#i.ctx);try{return Dr.ensure(),e()}finally{da(t),la(n),$t(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&Yi(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,gn(()=>{this.#d=!1,this.#m&&qr(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),M(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;_r?.is_fork?(this.#a&&_r.skip_effect(this.#a),this.#o&&_r.skip_effect(this.#o),this.#s&&_r.skip_effect(this.#s),_r.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(Ki(this.#a),null),this.#o&&=(Ki(this.#o),null),this.#s&&=(Ki(this.#s),null),C&&(tt(this.#t),it(),tt(at()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return Hi(()=>{var r=ua;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return Si(e,this.#i.parent),null}}))};gn(()=>{var t;try{t=this.transform_error(e)}catch(e){Si(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>Si(e,this.#i&&this.#i.parent)):n(t)})}};function Ro(){ua===null&&Tt();var e=ua.b;return e===null?0:e.get_effect_pending()}var zo=!0;function Bo(e){zo=e}function I(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Oe]??=e.nodeValue)&&(e[Oe]=n,e.nodeValue=`${n}`)}function Vo(e,t){return Wo(e,t)}function Ho(e,t){li(),t.intro=t.intro??!1;let n=t.target,r=C,i=et;try{for(var a=di(n);a&&(a.nodeType!==8||a.data!==`[`);)a=fi(a);if(!a)throw Ne;$e(!0),tt(a);let r=Wo(e,{...t,anchor:a});return $e(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
6
6
|
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==Ne&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&At(),li(),mi(n),$e(!1),Vo(e,t)}finally{$e(r),tt(i)}}var Uo=new Map;function Wo(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:s=!0,transformError:c}){li();var l=void 0,u=Ni(()=>{var u=n??t.appendChild(ui());Io(u,{pending:()=>{}},t=>{un({});var n=Qt;if(a&&(n.c=a),i&&(r.$$events=i),C&&Co(t,null),zo=s,l=e(t,r)||fn(),zo=!0,C&&(ua.nodes.end=et,et===null||et.nodeType!==8||et.data!==`]`))throw qe(),Ne;dn()},c);var d=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!d.has(r)){d.add(r);var i=Ja(r);for(let e of[t,document]){var a=Uo.get(e);a===void 0&&(a=new Map,Uo.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,go,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(o(so)),co.add(f),()=>{for(var e of d)for(let n of[t,document]){var r=Uo.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,go),r.delete(e),r.size===0&&Uo.delete(n)):r.set(e,i)}co.delete(f),u!==n&&u.parentNode?.removeChild(u)}});return Go.set(l,u),l}var Go=new WeakMap;function Ko(e,t){let n=Go.get(e);return n?(Go.delete(e),n(t)):Promise.resolve()}function qo(e){let t=Wr(e);function n(e,n){let r={},i={},a,o=!1,s=e;return Bi(()=>{if(r!==(r=M(t))){if(a){for(var e in i)delete i[e];Ki(a)}a=Hi(()=>{s=s[Ae]??s,o&&Bo(!1);var e=new.target?new r(s,n):r(s,n);e&&Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)),o&&Bo(!0)});var c=a.nodes;if(c){var l=ua;l.nodes?(l.nodes.start=c.start,l.nodes.end=c.end):l.nodes={start:c.start,end:c.end,a:null,t:null}}}},ue),o=!0,C&&(s=et),i}return n[Fe]=e[Fe],n[Ie]={fn:e,current:t,update:e=>{D(n[Ie].current,e[Ie].fn),e[Ie].current=n[Ie].current}},n}function Jo(e){let t=Qt?.function,n=Qt?.p?.function;return{mutation:(r,i,a,o,s)=>{let c=i[0];if(Yo(e,c)||!n)return a;let l=e;for(let e=0;e<i.length-1;e++)if(l=l[i[e]],!l?.[be])return a;return Ye(c,Za(`${t[Fe]}:${o}:${s}`),r,n[Fe]),a},binding:(r,i,a)=>{!Yo(e,r)&&n&&a()?.[be]&&Je(t[Fe],r,i[Fe],n[Fe])}}}function Yo(e,t){let n=be in e||Se in e;return!!l(e,t)?.set||n&&t in e||!(t in e)}function Xo(e){e&&bt(e[Fe]??`a component`,e.name)}function Zo(){let e=Qt?.function;function t(t){yt(t,e[Fe])}return{$destroy:()=>t(`$destroy()`),$on:()=>t(`$on(...)`),$set:()=>t(`$set(...)`)}}function Qo(e,t,n=!1){Ci(`$inspect`);let r=!0,i=Pe;ji(()=>{i=Pe;try{var a=e()}catch(e){i=e;return}var o=zt(a,!0,!0);Fa(()=>{if(n){if(t(...o),!r){let e=qt(`$inspect(...)`);e&&(console.groupCollapsed(`stack trace`),console.log(e),console.groupEnd())}}else t(r?`init`:`update`,...o)}),r=!1}),Ri(()=>{try{e()}catch{}i!==Pe&&(console.error(i),i=Pe)})}function $o(e,t=[],n=[],r){var i=C,a=null;if(i&&(nt(),a=at(!1),Co(e,a)),n.length===0&&t.every(e=>e.settled)){r(e),i&&tt(a);return}if(i){var o=et;tt(a)}Kn(t,[],n,t=>{i&&($e(!0),tt(o));try{for(let e of t)M(e);r(e,...t)}finally{i&&$e(!1)}})}function es(e,...t){(typeof e!=`object`||!(e instanceof Node))&&ft();for(let e of t)typeof e!=`function`&&ft()}var ts=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Zi(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(Zi(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(Ki(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();ea(r,t),t.append(ui()),this.#n.set(e,{effect:r,fragment:t})}else Ki(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Yi(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(Ki(n.effect),this.#n.delete(e))};ensure(e,t){var n=_r,r=hi();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=ui();i.append(a),this.#n.set(e,{effect:Hi(()=>t(a)),fragment:i})}else this.#t.set(e,Hi(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else C&&(this.anchor=et),this.#a(n)}},ns=0,rs=1,is=2;function as(e,t,n,r,i){C&&nt();var a=pn(),o=Pe,s=a?Wr(o):Gr(o,!1,!1),c=a?Wr(o):Gr(o,!1,!1),l=new ts(e);Bi(()=>{var a=_r,o=t(),u=!1;let d=C&&v(o)===(e.data===`[!`);if(d&&(tt(at()),$e(!1)),v(o)){var f=Jn(),p=!1;let e=e=>{if(!u){p=!0,f(!1),_r===a&&a.deactivate(),Dr.ensure();try{e()}finally{er(!1),xr||T()}}};o.then(t=>{e(()=>{qr(s,t),l.ensure(rs,r&&(e=>r(e,s)))})},t=>{e(()=>{if(qr(c,t),l.ensure(is,i&&(e=>i(e,c))),!i)throw c.v})}),C?l.ensure(ns,n):gn(()=>{p||e(()=>{l.ensure(ns,n)})})}else qr(s,o),l.ensure(rs,r&&(e=>r(e,s)));return d&&$e(!0),()=>{u=!0}})}function L(e,t,n=!1){var r;C&&(r=et,nt());var i=new ts(e),a=n?ue:0;function o(e,t){if(C){var n=ot(r);if(e!==parseInt(n.substring(1))){var a=at();tt(a),i.anchor=a,$e(!1),i.ensure(e,t),$e(!0);return}}i.ensure(e,t)}Bi(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var os=Symbol(`NaN`);function ss(e,t,n){C&&nt();var r=new ts(e),i=!pn();Bi(()=>{var e=t();e!==e&&(e=os),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function cs(e,t){C&&tt(di(e)),Ri(()=>{var n=t();for(var r in n){var i=n[r];i==null||i===``?e.style.removeProperty(r):e.style.setProperty(r,i)}})}function ls(e,t){return t}function us(e,t,n){for(var r=[],i=t.length,a,s=t.length,c=0;c<i;c++){let n=t[c];Yi(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;ds(e,o(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var l=r.length===0&&n!==null&&e.pending.size===0;if(l){var u=n,d=u.parentNode;mi(d),d.append(u),e.items.clear()}ds(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function ds(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=he,ea(a,document.createDocumentFragment())):Ki(t[i],n)}}var fs;function ps(e,t,n,i,a,s=null){var c=e,l=new Map;if(t&4){var u=e;c=C?tt(di(u)):u.appendChild(ui())}C&&nt();var d=null,f=ur(()=>{var e=n();return r(e)?e:e==null?[]:o(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,hs(v,p,c,t,i),d!==null&&(p.length===0?d.f&33554432?(d.f^=he,_s(d,null,c)):Zi(d):Yi(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:Bi(()=>{p=M(f);var e=p.length;let r=!1;C&&ot(c)===`[!`!=(e===0)&&(c=at(),tt(c),$e(!1),r=!0);for(var o=new Set,u=_r,v=hi(),y=0;y<e;y+=1){C&&et.nodeType===8&&et.data===`]`&&(c=et,r=!0,$e(!1));var b=p[y],x=i(b,y),S=h?null:l.get(x);S?(S.v&&qr(S.v,b),S.i&&qr(S.i,y),v&&u.unskip_effect(S.e)):(S=gs(l,h?c:fs??=ui(),b,x,y,a,t,n),h||(S.e.f|=he),l.set(x,S)),o.add(x)}if(e===0&&s&&!d&&(h?d=Hi(()=>s(c)):(d=Hi(()=>s(fs??=ui())),d.f|=he)),e>o.size&&xt(``,``,``),C&&e>0&&tt(at()),!h){if(m.set(u,o),v){for(let[e,t]of l)o.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u)}r&&$e(!0),M(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,C&&(c=et)}function ms(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function hs(e,t,n,r,i){var a=!!(r&8),s=t.length,c=e.items,l=ms(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<s;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Zi(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432){if(_.f^=he,_===l)_s(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),vs(e,d,_),vs(e,_,y),_s(_,y,n),d=_,p=[],m=[],l=ms(d.next);continue}}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)_s(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);vs(e,S.prev,ee.next),vs(e,d,S),vs(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),_s(_,l,n),vs(e,_.prev,_.next),vs(e,_,d===null?e.effect.first:d.next),vs(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=ms(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=ms(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(ds(e,o(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)_.f&8192||te.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&te.push(l),l=ms(l.next);var ne=te.length;if(ne>0){var re=r&4&&s===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}us(e,te,re)}}a&&gn(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function gs(e,t,n,r,i,a,o,s){var c=o&1?o&16?Wr(n):Gr(n,!1,!1):null,l=o&2?Wr(i):null;return{v:c,i:l,e:Hi(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function _s(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=fi(r);if(a.before(r),r===i)return;r=o}}function vs(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ys(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;C&&(o=tt(di(c)))}j(()=>{var e=ua;if(s===(s=t()??``)){C&&nt();return}if(n&&!C){e.nodes=null,c.innerHTML=s,s!==``&&Co(di(c),c.lastChild);return}if(e.nodes!==null&&(qi(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(C){for(var a=et.data,l=nt(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=fi(l);if(l===null)throw qe(),Ne;Co(et,u),o=tt(l);return}var d=gi(r?`svg`:i?`math`:`template`,r?Re:i?ze:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Co(di(f),f.lastChild),r||i)for(;di(f);)o.before(di(f));else o.before(f)}})}function bs(e,t,n,r,i){if(C&&nt(),t.$$host?.$$shadowRoot){let t=gi(`slot`);if(n!=="default"&&(t.name=n),F(e,t),i!==null){let e=ui();t.append(e),i(e)}return}var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n==="default"?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function xs(e){let t={};e.children&&(t.default=!0);for(let n in e.$$slots)t[n]=!0;return t}function Ss(e){let t=e();t&&Ba(t)&&Lt(t)}function Cs(e){let t=e();t&&typeof t!=`string`&&_t()}function ws(e,t){e!=null&&typeof e.subscribe!=`function`&>(t)}function Ts(e){return e.toString=()=>(ht(),``),e}function Es(e,t,...n){var r=new ts(e);Bi(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ue)}function Ds(e,t){let n=(n,...r)=>{var i=nn;rn(e);try{return t(n,...r)}finally{rn(i)}};return Ts(n),n}function Os(e){return(t,...n)=>{var r=e(...n),i;C?(i=et,nt()):(i=di(bo(r.render().trim())),t.before(i));let a=r.setup?.(i);Co(i,i),typeof a==`function`&&Di(a)}}function ks(e,t,n){var r;C&&(r=et,nt());var i=new ts(e);Bi(()=>{var e=t()??null;if(C&&ot(r)===`[`!=(e!==null)){var a=at();tt(a),i.anchor=a,$e(!1),i.ensure(e,e&&(t=>n(t,e))),$e(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ue)}var As=()=>performance.now(),js={tick:e=>requestAnimationFrame(e),now:()=>As(),tasks:new Set};function Ms(){let e=js.now();js.tasks.forEach(t=>{t.c(e)||(js.tasks.delete(t),t.f())}),js.tasks.size!==0&&js.tick(Ms)}function Ns(e){let t;return js.tasks.size===0&&js.tick(Ms),{promise:new Promise(n=>{js.tasks.add(t={c:e,f:n})}),abort(){js.tasks.delete(t)}}}function Ps(e,t){Wn(()=>{e.dispatchEvent(new CustomEvent(t))})}function Fs(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function Is(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=Fs(n.trim());t[i]=r.trim()}return t}var Ls=e=>e,Rs=null;function zs(e){Rs=e}function Bs(e,t,n){var r=(Rs??ua).nodes,i,a,o,s=null;r.a??={element:e,measure(){i=this.element.getBoundingClientRect()},apply(){if(o?.abort(),a=this.element.getBoundingClientRect(),i.left!==a.left||i.right!==a.right||i.top!==a.top||i.bottom!==a.bottom){let e=t()(this.element,{from:i,to:a},n?.());o=Hs(this.element,e,void 0,1,()=>{},()=>{o?.abort(),o=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if(t!==`absolute`&&t!==`fixed`){var a=e.style;s={position:a.position,width:a.width,height:a.height,transform:a.transform},a.position=`absolute`,a.width=n,a.height=r;var o=e.getBoundingClientRect();if(i.left!==o.left||i.top!==o.top){var c=`translate(${i.left-o.left}px, ${i.top-o.top}px)`;a.transform=a.transform?`${a.transform} ${c}`:c}}}},unfix(){if(s){var t=e.style;t.position=s.position,t.width=s.width,t.height=s.height,t.transform=s.transform}}},r.a.element=e}function Vs(e,t,n,r){var i=!!(e&1),a=!!(e&2),o=i&&a,s=!!(e&4),c=o?`both`:i?`in`:`out`,l,u=t.inert,d=t.style.overflow,f,p;function m(){return Wn(()=>l??=n()(t,r?.()??{},{direction:c}))}var h={is_global:s,in(){if(t.inert=u,!i){p?.abort(),p?.reset?.();return}a||f?.abort(),f=Hs(t,m(),p,1,()=>{Ps(t,`introstart`)},()=>{Ps(t,`introend`),f?.abort(),f=l=void 0,t.style.overflow=d})},out(e){if(!a){e?.(),l=void 0;return}t.inert=!0,p=Hs(t,m(),f,0,()=>{Ps(t,`outrostart`)},()=>{Ps(t,`outroend`),e?.()})},stop:()=>{f?.abort(),p?.abort()}},g=ua;if((g.nodes.t??=[]).push(h),i&&zo){var _=s;if(!_){for(var v=g.parent;v&&v.f&65536;)for(;(v=v.parent)&&!(v.f&16););_=!v||!!(v.f&32768)}_&&Pi(()=>{Fa(()=>h.in())})}}function Hs(e,t,n,r,i,a){var o=r===1,s=!1;if(g(t)){var c;return gn(()=>{s||(c=Hs(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{s=!0,c?.abort()},deactivate:()=>c.deactivate(),reset:()=>c.reset(),t:()=>c.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:_,deactivate:_,reset:_,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=Ls}=t;var p,m=()=>1-r;return gn(()=>{if(!s){var c=[];if(o&&n===void 0&&(d&&d(0,1),u)){var h=Is(u(0,1));c.push(h,h)}p=e.animate(c,{duration:l,fill:`forwards`}),p.onfinish=()=>{p.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var h=!1;if(u)for(var g=Math.ceil(c/(1e3/60)),_=0;_<=g;_+=1){var v=o+s*f(_/g),y=Is(u(v,1-v));l.push(y),h||=y.overflow===`hidden`}h&&(e.style.overflow=`hidden`),m=()=>{var e=p.currentTime;return o+s*f(e/c)},d&&Ns(()=>{if(p.playState!==`running`)return!1;var e=m();return d(e,1-e),!0})}p=e.animate(l,{duration:c,fill:`forwards`}),p.onfinish=()=>{m=()=>r,d?.(r,1-r),a()}}}}),{abort:()=>{s=!0,p&&(p.cancel(),p.effect=null,p.onfinish=_)},deactivate:()=>{a=_},reset:()=>{r===0&&d?.(1,0)},t:()=>m()}}function Us(e,t,n,r,i,a){let o=C;C&&nt();var s=null;C&&et.nodeType===1&&(s=et,nt());var c=C?et:e,l=ua,u=new ts(c,!1);Bi(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Re:void 0;if(e===null){u.ensure(null,null),Bo(!0);return}return u.ensure(e,t=>{if(e){if(s=C?s:gi(e,a),Co(s,s),r){var n=null;C&&Xa(e)&&s.append(n=document.createComment(``));var i=C?di(s):s.appendChild(ui());C&&(i===null?$e(!1):tt(i)),zs(l),r(s,i),n?.remove(),zs(null)}ua.nodes.end=s,t.before(s)}C&&tt(t)}),Bo(!0),()=>{e&&Bo(!1)}},ue),Di(()=>{Bo(!0)}),o&&($e(!0),tt(c))}function Ws(e,t){let n=null,r=C;var i;if(C){n=et;for(var a=di(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=fi(a);if(a===null)$e(!1);else{var o=fi(a);a.remove(),tt(o)}}C||(i=document.head.appendChild(ui()));try{Bi(()=>{var e=Hi(()=>t(i));e.f|=fe,C||(e.nodes===null?e.nodes={start:i,end:i,a:null,t:null}:e.nodes.end=i)})}finally{r&&($e(!0),tt(n))}}function Gs(e,t){Pi(()=>{e=ua?.parent?.nodes?.start??e;var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=gi(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Ks(e,t,n){Pi(()=>{var r=Fa(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};Ri(()=>{var e=n();Ia(e),i&&ct(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function qs(e,t){var n=void 0,r;Vi(()=>{n!==(n=t())&&(r&&=(Ki(r),null),n&&(r=Hi(()=>{Pi(()=>n(e))})))})}var Js=/[&"<]/g,Ys=/[&<]/g;function Xs(e,t){let n=String(e??``),r=t?Js:Ys;r.lastIndex=0;let i=``,a=0;for(;r.test(n);){let e=r.lastIndex-1,t=n[e];i+=n.substring(a,e)+(t===`&`?`&`:t===`"`?`"`:`<`),a=e+1}return i+n.substring(a)}function Zs(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Zs(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Qs(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Zs(e))&&(r&&(r+=` `),r+=t);return r}var $s={translate:new Map([[!0,`yes`],[!1,`no`]])};function ec(e,t,n=!1){if(e===`hidden`&&t!==`until-found`&&(n=!0),t==null||n&&!t&&t!==``)return``;let r=h.call($s,e)&&$s[e].get(t)||t;return` ${e}${n?`=""`:`="${Xs(r,!0)}"`}`}function tc(e){return typeof e==`object`?Qs(e):e??``}var nc=[...`
|
|
7
|
-
\r\f\xA0\v`];function rc(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||nc.includes(r[o-1]))&&(s===r.length||nc.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function ic(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ac(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function oc(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ac)),i&&c.push(...Object.keys(i).map(ac));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=ac(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=ic(r)),i&&(n+=ic(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function sc(e,t,n,r,i,a){var o=e[Ee];if(C||o!==n||o===void 0){var s=rc(n,r,a);(!C||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Ee]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function cc(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function lc(e,t,n,r){var i=e[De];if(C||i!==t){var a=oc(t,r);(!C||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[De]=t}else r&&(Array.isArray(r)?(cc(e,n?.[0],r[0]),cc(e,n?.[1],r[1],`important`)):cc(e,n,r));return r}function uc(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function dc(e,t){var n=!(`__defaultValue`in e);!n&&e.__defaultValue===t||(e.__defaultValue=t,fc(e,!n||`__value`in e))}function fc(e,t){var n=e.__defaultValue,i=e.multiple,a=i?n??[]:null;if(!(i&&!r(a))){var o=e.selectedIndex,s=t&&i?new Set(e.selectedOptions):null;for(var c of e.options){var l=gc(c);uc(c,i?a.includes(l):ti(l,n))}if(t){if(s!==null)for(c of e.options){var u=s.has(c);c.selected!==u&&(c.selected=u)}else e.selectedIndex!==o&&(e.selectedIndex=o)}}}function pc(e,t,n=!1){if(e.multiple){if(t==null)return;if(!r(t))return Xe();for(var i of e.options)i.selected=t.includes(gc(i));return}for(i of e.options)if(ti(gc(i),t)){i.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function mc(e){var t=new MutationObserver(t=>{t.every(_c)||(`__defaultValue`in e&&fc(e,!1),`__value`in e&&pc(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Di(()=>{t.disconnect()})}function hc(e,t,n=t){var r=new WeakSet,i=!0;Gn(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),gc);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&gc(o)}n(a),e.__value=a,_r!==null&&r.add(_r)}),Pi(()=>{var a=t();if(e===document.activeElement){var o=_r;if(r.has(o))return}if(pc(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=gc(s),n(a))}e.__value=a,i=!1})}function gc(e){return`__value`in e?e.__value:e.value}function _c(e){if(e.target.closest(`selectedcontent`)!==null)return!0;if(e.type===`childList`){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(e=>e.nodeName===`SELECTEDCONTENT`)}return!1}var vc=Symbol(`class`),yc=Symbol(`style`),bc=Symbol(`is custom element`),xc=Symbol(`is html`),Sc=Me?`link`:`LINK`,Cc=Me?`input`:`INPUT`,wc=Me?`option`:`OPTION`,Tc=Me?`select`:`SELECT`,Ec=Me?`progress`:`PROGRESS`;function Dc(e){if(C){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;R(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;R(e,`checked`,null),e.checked=r}}};e[ke]=n,gn(n),Hn()}}function Oc(e,t){var n=Ic(e);n.value!==(n.value=t??void 0)&&(e.value!==t||t===0&&e.nodeName===Ec)&&(e.value=t??``)}function kc(e,t){var n=Ic(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Ac(e,t){let n=e.checked;e.defaultChecked=t,e.checked=n}function jc(e,t){let n=e.value;e.defaultValue=t,e.value=n}function R(e,t,n,r){var i=Ic(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Sc)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Ce]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Rc(e).has(t)?e[t]=n:e.setAttribute(t,n))}function Mc(e,t,n){e.setAttributeNS(`http://www.w3.org/1999/xlink`,t,n)}function Nc(e,t,n){var r=sa,i=ua;let a=C;C&&$e(!1),la(null),da(null);try{t!==`style`&&(Lc.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Rc(e).has(t):n&&typeof n==`object`)?e[t]=n:R(e,t,n==null?n:String(n))}finally{la(r),da(i),a&&$e(!0)}}function Pc(e,t,n,r,i=!1,a=!1){C&&i&&e.nodeName===Cc&&(`defaultValue`in n||`defaultChecked`in n||Dc(e));var o=Ic(e),s=o[bc],c=!o[xc];let l=C&&s;l&&$e(!1);var u=t||{},d=e.nodeName===wc,f=e.nodeName===Tc;for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=tc(n.class):(r||n[vc])&&(n.class=null),n[yc]&&(n.style??=null);var m=Rc(e);if(e.nodeName===Cc&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==u.type||h===void 0&&e.hasAttribute(`type`))&&(u.type=h,R(e,`type`,h,a))}for(let i in n){let l=n[i];if(d&&i===`value`&&l==null){e.value=e.__value=``,u[i]=l;continue}if(i===`class`){sc(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,l,r,t?.[vc],n[vc]),u[i]=l,u[vc]=n[vc];continue}if(i===`style`){lc(e,l,t?.[yc],n[yc]),u[i]=l,u[yc]=n[yc];continue}var g=u[i];if(!(l===g&&!(l===void 0&&e.hasAttribute(i)))){u[i]=l;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=Ua(r);if(Va(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(l!=null)continue;e.removeEventListener(r,u[n],t),u[n]=null}if(v)N(r,e,l),po([r]);else if(l!=null){function y(e){u[i].call(this,e)}u[n]=uo(r,e,y,t)}}else if(i===`style`)R(e,i,l);else if(i===`autofocus`)zn(e,!!l);else if(!s&&(i===`__value`||i===`value`&&l!=null))e.value=e.__value=l;else if(i===`selected`&&d)uc(e,l);else{var b=i;c||(b=Ka(b));var x=b===`defaultValue`||b===`defaultChecked`;if(f&&b===`defaultValue`)continue;if(l==null&&!s&&!x){if(o[i]=null,b===`value`||b===`checked`){let n=e,r=t===void 0;if(b===`value`){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else x||(s||typeof l!=`string`)&&m.has(b)?(e[b]=l,b in o&&(o[b]=Pe)):typeof l!=`function`&&R(e,b,l,a)}}}}return l&&$e(!0),u}function Fc(e,t,n=[],r=[],i=[],a,o=!1,s=!1){Kn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Tc,l=!1;if(Vi(()=>{var u=t(...n.map(M)),d=Pc(e,r,u,a,o,s);if(l&&c){var f=e;`defaultValue`in u&&dc(f,u.defaultValue),`value`in u&&pc(f,u.value)}for(let e of Object.getOwnPropertySymbols(i))u[e]||Ki(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var p=u[t];t.description===`@attach`&&(!r||p!==r[t])&&(i[t]&&Ki(i[t]),i[t]=Hi(()=>qs(e,()=>p))),d[t]=p}r=d}),c){var u=e;Pi(()=>{var e=r;`defaultValue`in e&&dc(u,e.defaultValue),pc(u,e.value,!0),mc(u)})}l=!0})}function Ic(e){return e[Te]??={[bc]:e.nodeName.includes(`-`),[xc]:e.namespaceURI===Le}}var Lc=new Map;function Rc(e){var t=e.getAttribute(`is`)||e.nodeName,n=Lc.get(t);if(n)return n;Lc.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=u(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.add(o);i=p(i)}return n}var zc=null;function Bc(){if(zc===null){var e=gi(`select`);e.innerHTML=yo(`<option><span>t</span></option>`),zc=e.firstChild?.firstChild?.nodeType===1}return zc}function Vc(e,t){Bc()&&qs(e,()=>()=>{let n=e.closest(`select`);if(!n)return;let r=new MutationObserver(n=>{var r=!1;for(let t of n){if(t.target===e)return;r||=!!t.target.parentElement?.closest(`option`)?.selected}r&&(e.replaceWith(e=e.cloneNode(!0)),t(e))});return r.observe(n,{childList:!0,characterData:!0,subtree:!0}),()=>{r.disconnect()}})}function Hc(e,t){var n=C;Bc()||($e(!1),e.textContent=``,e.append(vi(``)));try{t()}finally{n&&(C?w(e):($e(!0),tt(e)))}}function Uc(e){Un(document,[`focusin`,`focusout`],t=>{t&&t.type===`focusout`&&t.relatedTarget||e(document.activeElement)})}function Wc(e,t,n=t){var r=new WeakSet;Gn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Yc(e)?Xc(a):a,n(a),_r!==null&&r.add(_r),await Aa(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(C&&e.defaultValue!==e.value||Fa(t)==null&&e.value)&&(n(Yc(e)?Xc(e.value):e.value),_r!==null&&r.add(_r)),Ri(()=>{var n=t();if(e===document.activeElement){var i=_r;if(r.has(i))return}Yc(e)&&n===Xc(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}var Gc=new Set;function Kc(e,t,n,r,i=r){var a=n.getAttribute(`type`)===`checkbox`,o=e;let s=!1;if(t!==null)for(var c of t)o=o[c]??=[];o.push(n),Gn(n,`change`,()=>{var e=n.__value;a&&(e=Jc(o,e,n.checked)),i(e)},()=>i(a?[]:null)),Ri(()=>{var e=r();if(C&&n.defaultChecked!==n.checked){s=!0;return}a?(e||=[],n.checked=e.includes(n.__value)):n.checked=ti(n.__value,e)}),Di(()=>{var e=o.indexOf(n);e!==-1&&o.splice(e,1)}),Gc.has(o)||(Gc.add(o),gn(()=>{o.sort((e,t)=>e.compareDocumentPosition(t)===4?-1:1),Gc.delete(o)})),gn(()=>{if(s){var e=a?Jc(o,e,n.checked):o.find(e=>e.checked)?.__value;i(e)}})}function qc(e,t,n=t){Gn(e,`change`,t=>{n(t?e.defaultChecked:e.checked)}),(C&&e.defaultChecked!==e.checked||Fa(t)==null)&&n(e.checked),Ri(()=>{e.checked=!!t()})}function Jc(e,t,n){for(var r=new Set,i=0;i<e.length;i+=1)e[i].checked&&r.add(e[i].__value);return n||r.delete(t),Array.from(r)}function Yc(e){var t=e.type;return t===`number`||t===`range`}function Xc(e){return e===``?null:+e}function Zc(e,t,n=t){Gn(e,`change`,()=>{n(e.files)}),C&&e.files&&n(e.files),Ri(()=>{e.files=t()})}function Qc(e){for(var t=[],n=0;n<e.length;n+=1)t.push({start:e.start(n),end:e.end(n)});return t}function $c(e,t,n=t){var r,i,a=()=>{cancelAnimationFrame(r),e.paused||(r=requestAnimationFrame(a));var t=e.currentTime;i!==t&&n(i=t)};r=requestAnimationFrame(a),e.addEventListener(`timeupdate`,a),Ri(()=>{var n=Number(t());i!==n&&!isNaN(n)&&(e.currentTime=i=n)}),Di(()=>{cancelAnimationFrame(r),e.removeEventListener(`timeupdate`,a)})}function el(e,t){var n;Un(e,[`loadedmetadata`,`progress`,`timeupdate`,`seeking`],()=>{var r=e.buffered;(!n||n.length!==r.length||n.some((e,t)=>r.start(t)!==e.start||r.end(t)!==e.end))&&(n=Qc(r),t(n))})}function tl(e,t){Un(e,[`loadedmetadata`],()=>t(Qc(e.seekable)))}function nl(e,t){Un(e,[`timeupdate`],()=>t(Qc(e.played)))}function rl(e,t){Un(e,[`seeking`,`seeked`],()=>t(e.seeking))}function il(e,t){Un(e,[`timeupdate`,`ended`],()=>t(e.ended))}function al(e,t){Un(e,[`loadedmetadata`,`loadeddata`,`canplay`,`canplaythrough`,`playing`,`waiting`,`emptied`],()=>t(e.readyState))}function ol(e,t,n=t){Pi(()=>{var n=Number(t());n!==e.playbackRate&&!isNaN(n)&&(e.playbackRate=n)}),Pi(()=>{Un(e,[`ratechange`],()=>{n(e.playbackRate)})})}function sl(e,t,n=t){var r=t();Un(e,[`play`,`pause`,`canplay`],()=>{r!==e.paused&&n(r=e.paused)},r==null),Pi(()=>{(r=!!t())!==e.paused&&(r?e.pause():e.play().catch(e=>{throw n(r=!0),e}))})}function cl(e,t,n=t){var r=()=>{n(e.volume)};t()??r(),Un(e,[`volumechange`],r,!1),Ri(()=>{var n=Number(t());n!==e.volume&&!isNaN(n)&&(e.volume=n)})}function ll(e,t,n=t){var r=()=>{n(e.muted)};t()??r(),Un(e,[`volumechange`],r,!1),Ri(()=>{var n=!!t();e.muted!==n&&(e.muted=n)})}function ul(e){Un(window,[`online`,`offline`],()=>{e(navigator.onLine)})}function dl(e,t,n){var r=l(e,t);r&&r.set&&(e[t]=n,Di(()=>{e[t]=null}))}var fl=class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}},pl=new fl({box:`content-box`}),ml=new fl({box:`border-box`}),hl=new fl({box:`device-pixel-content-box`});function gl(e,t,n){Di((t===`contentRect`||t===`contentBoxSize`?pl:t===`borderBoxSize`?ml:hl).observe(e,e=>n(e[t])))}function _l(e,t,n){var r=ml.observe(e,()=>n(e[t]));Pi(()=>(Fa(()=>n(e[t])),r))}function vl(e,t){return e===t||e?.[be]===t}function yl(e=fn(),t,n,r){var i=Qt.r,a=ua;return Pi(()=>{var o,s;return Ri(()=>{o=s,s=r?.()||[],Fa(()=>{vl(n(...s),e)||(t(e,...s),o&&vl(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&vl(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function bl(e,t,n,r=n){t.addEventListener(`input`,()=>{r(t[e])}),Ri(()=>{var i=n();if(t[e]!==i){if(i==null){var a=t[e];r(a)}else t[e]=i+``}})}function xl(e,t,n,r,i){var a=()=>{r(n[e])};n.addEventListener(t,a),i?Ri(()=>{n[e]=i()}):a(),(n===document.body||n===window||n===document)&&Di(()=>{n.removeEventListener(t,a)})}function Sl(e,t){Un(e,[`focus`,`blur`],()=>{t(e===document.activeElement)})}function Cl(e,t,n=t){var r=e===`x`,i=()=>Wn(()=>{a=!0,clearTimeout(o),o=setTimeout(s,100),n(window[r?`scrollX`:`scrollY`])});addEventListener(`scroll`,i,{passive:!0});var a=!1,o,s=()=>{a=!1},c=!0;Ri(()=>{var e=t();c?c=!1:!a&&e!=null&&(a=!0,clearTimeout(o),r?scrollTo(e,window.scrollY):scrollTo(window.scrollX,e),o=setTimeout(s,100))}),Pi(i),Di(()=>{removeEventListener(`scroll`,i)})}function wl(e,t){Un(window,[`resize`],()=>Wn(()=>t(window[e])))}function Tl(e){return function(...t){t[0].isTrusted&&e?.apply(this,t)}}function El(e){return function(...t){t[0].target===this&&e?.apply(this,t)}}function Dl(e){return function(...t){return t[0].stopPropagation(),e?.apply(this,t)}}function Ol(e){var t=!1;return function(...n){if(!t)return t=!0,e?.apply(this,n)}}function kl(e){return function(...t){return t[0].stopImmediatePropagation(),e?.apply(this,t)}}function Al(e){return function(...t){return t[0].preventDefault(),e?.apply(this,t)}}function jl(e=!1){let t=Qt,n=t.l.u;if(!n)return;let r=()=>Ia(t.s);if(e){let e=0,n={},i=or(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>M(i)}n.b.length&&Ai(()=>{Ml(t,r),b(n.b)}),Oi(()=>{let e=Fa(()=>n.m.map(y));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&Oi(()=>{Ml(t,r),b(n.a)})}function Ml(e,t){if(e.l.s)for(let t of e.l.s)M(t);t()}function Nl(e){var t=Wr(0);return function(){return arguments.length===1?(D(t,M(t)+1),arguments[0]):(M(t),e())}}function Pl(e,t){var n=e.$$events?.[t.type];for(var i of r(n)?n.slice():n==null?[]:[n])i.call(this,t)}function Fl(e,t,n){e.$$events||={},e.$$events[t]||=[],e.$$events[t].push(n)}function Il(e){for(var t in e)t in this&&(this[t]=e[t])}function Ll(e,t=1){let n=e();return e(n+t),n}function Rl(e,t=1){let n=e()+t;return e(n),n}var zl={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function Bl(e,t,n){return new Proxy({props:e,exclude:t},zl)}var Vl={get(e,t){if(!e.exclude.includes(t))return M(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,n){if(!(t in e.special)){var r=ua;try{da(e.parent_effect),e.special[t]=z({get[t](){return e.props[t]}},t,4)}finally{da(r)}}return e.special[t](n),Yr(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)?!0:(e.exclude.push(t),Yr(e.version),!0)},has(e,t){return!e.exclude.includes(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Hl(e,t){return new Proxy({props:e,exclude:t,special:{},version:Wr(0),parent_effect:ua},Vl)}var Ul={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(g(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];g(i)&&(i=i());let a=l(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(g(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=l(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===be||t===Se)return!1;for(let n of e.props)if(g(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(g(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function Wl(...e){return new Proxy({props:e},Ul)}function z(e,t,n,r){var i=!0,a=!!(n&8),o=!!(n&16),s=r,c=!0,u=void 0,d=()=>o&&i?(u??=or(r),M(u)):(c&&(c=!1,s=o?Fa(r):r),s);let f;if(a){var p=be in e||Se in e;f=l(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=Rn(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Mt(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?or:ur)(()=>(v=!1,g()));a&&M(y);var b=ua;return(function(e,t){if(arguments.length>0){let n=t?M(y):i&&a?$r(e):e;return D(y,n),v=!0,s!==void 0&&(s=n),e}return aa&&v||b.f&16384?y.v:M(y)})}function Gl(e,t,n,r,i,a){qn(t,()=>{var t=!1,o=nn?.[Fe];Ri(()=>{if(!t){var[s,c]=Rn(n);if(!c){var l=r(),u=!1,d=Ri(()=>{u||s[l]});u=!0,d.deps===null&&(He(e,`${o}:${i}:${a}`),t=!0)}}})})}function Kl(e){return new ql(e)}var ql=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Gr(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return M(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===Se||(M(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return D(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Ho:Vo)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&T(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&c(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Ko(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Jl;typeof HTMLElement==`function`&&(Jl=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=gi(`slot`);e!=="default"&&(n.name=e),F(t,n)}}let t={},n=Xl(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Yl(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Kl({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Mi(()=>{Ri(()=>{this.$$r=!0;for(let e of s(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Yl(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Yl(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return s(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Yl(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Xl(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Zl(e,t,n,r,i,a){let o=class extends Jl{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return s(t).map(e=>(t[e].attribute||e).toLowerCase())}};return s(t).forEach(e=>{c(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Yl(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(l(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{c(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function Ql(e,...t){return Fa(()=>{try{let n=!1,r=[];for(let e of t)e&&typeof e==`object`&&be in e?(r.push(zt(e,!0)),n=!0):r.push(e);n&&(Ue(e),console.log(`%c[snapshot]`,`color: grey`,...r))}catch{}}),t}var $l=e.n({CLASS:()=>vc,FILENAME:()=>Fe,HMR:()=>Ie,NAMESPACE_SVG:()=>Re,STYLE:()=>yc,aborted:()=>$i,action:()=>Ks,active_effect:()=>ua,add_legacy_event_listener:()=>Fl,add_locations:()=>ro,add_svelte_meta:()=>tn,animation:()=>Bs,append:()=>F,append_styles:()=>Gs,apply:()=>_o,assign:()=>$a,assign_async:()=>eo,async:()=>$o,async_derived:()=>cr,attach:()=>qs,attachment:()=>Ra,attr:()=>ec,attribute_effect:()=>Fc,autofocus:()=>zn,await:()=>as,bind_active_element:()=>Uc,bind_buffered:()=>el,bind_checked:()=>qc,bind_content_editable:()=>bl,bind_current_time:()=>$c,bind_element_size:()=>_l,bind_ended:()=>il,bind_files:()=>Zc,bind_focused:()=>Sl,bind_group:()=>Kc,bind_muted:()=>ll,bind_online:()=>ul,bind_paused:()=>sl,bind_playback_rate:()=>ol,bind_played:()=>nl,bind_prop:()=>dl,bind_property:()=>xl,bind_ready_state:()=>al,bind_resize_observer:()=>gl,bind_seekable:()=>tl,bind_seeking:()=>rl,bind_select_value:()=>hc,bind_this:()=>yl,bind_value:()=>Wc,bind_volume:()=>cl,bind_window_scroll:()=>Cl,bind_window_size:()=>wl,boundary:()=>Io,bubble_event:()=>Pl,check_target:()=>Xo,child:()=>O,cleanup_styles:()=>no,clsx:()=>tc,comment:()=>Mo,component:()=>ks,create_custom_element:()=>Zl,create_ownership_validator:()=>Jo,css_props:()=>cs,customizable_select:()=>Hc,deep_read:()=>La,deep_read_state:()=>Ia,deferred_template_effect:()=>zi,delegate:()=>po,delegated:()=>N,derived:()=>lr,derived_safe_equal:()=>ur,document:()=>ai,each:()=>ps,eager:()=>Ir,effect:()=>Pi,effect_root:()=>Mi,effect_tracking:()=>Ei,element:()=>Us,equals:()=>ri,event:()=>fo,exclude_from_object:()=>te,fallback:()=>S,first_child:()=>pi,flush:()=>T,for_await_track_reactivity_loss:()=>$n,from_html:()=>P,from_mathml:()=>Eo,from_svg:()=>To,from_tree:()=>Oo,get:()=>M,head:()=>Ws,hmr:()=>qo,html:()=>ys,hydrate_template:()=>rt,if:()=>L,index:()=>ls,init:()=>jl,init_select:()=>mc,inspect:()=>Qo,invalid_default_snippet:()=>dt,invalidate_inner_signals:()=>ra,invalidate_store:()=>jn,key:()=>ss,legacy_api:()=>Zo,legacy_pre_effect:()=>Fi,legacy_pre_effect_reset:()=>Ii,legacy_rest_props:()=>Hl,log_if_contains_state:()=>Ql,mark_store_binding:()=>Ln,mutable_source:()=>Gr,mutate:()=>Kr,next:()=>it,noop:()=>_,once:()=>Ol,only_child:()=>k,pending:()=>Ro,pop:()=>dn,preventDefault:()=>Al,prevent_snippet_stringification:()=>Ts,prop:()=>z,props_id:()=>No,proxy:()=>$r,push:()=>un,raf:()=>js,reactive_import:()=>Nl,remove_input_defaults:()=>Dc,remove_textarea_child:()=>Bn,render_effect:()=>Ri,replay_events:()=>lo,reset:()=>w,rest_props:()=>Bl,run:()=>tr,run_after_blockers:()=>qn,safe_get:()=>Pa,sanitize_slots:()=>xs,save:()=>Xn,select_option:()=>pc,selectedcontent:()=>Vc,self:()=>El,set:()=>D,set_attribute:()=>R,set_checked:()=>kc,set_class:()=>sc,set_custom_element_data:()=>Nc,set_default_checked:()=>Ac,set_default_select_value:()=>dc,set_default_value:()=>jc,set_selected:()=>uc,set_style:()=>lc,set_text:()=>I,set_value:()=>Oc,set_xlink_attribute:()=>Mc,setup_stores:()=>Mn,sibling:()=>A,slot:()=>bs,snapshot:()=>zt,snippet:()=>Es,spread_props:()=>Wl,state:()=>E,stopImmediatePropagation:()=>kl,stopPropagation:()=>Dl,store_get:()=>On,store_mutate:()=>Pn,store_set:()=>An,store_unsub:()=>kn,strict_equals:()=>ni,tag:()=>Gt,tag_proxy:()=>Kt,template_effect:()=>j,text:()=>jo,tick:()=>Aa,to_array:()=>ee,trace:()=>Wt,track_reactivity_loss:()=>Qn,transition:()=>Vs,trusted:()=>Tl,unsave:()=>Zn,untrack:()=>Fa,update:()=>Yr,update_legacy_props:()=>Il,update_pre:()=>Xr,update_pre_prop:()=>Rl,update_pre_store:()=>In,update_prop:()=>Ll,update_store:()=>Fn,user_effect:()=>Oi,user_pre_effect:()=>Ai,validate_binding:()=>Gl,validate_dynamic_element_tag:()=>Cs,validate_snippet_args:()=>es,validate_store:()=>ws,validate_void_dynamic_element:()=>Ss,wait:()=>nr,window:()=>ii,with_script:()=>ko,wrap_snippet:()=>Ds});function eu(e,t){if(ut(`hydratable`),C){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);Ke(e)}return t()}var tu=e.n({afterUpdate:()=>cu,beforeUpdate:()=>su,createContext:()=>an,createEventDispatcher:()=>ou,createRawSnippet:()=>Os,flushSync:()=>T,fork:()=>zr,getAbortSignal:()=>nu,getAllContexts:()=>ln,getContext:()=>on,hasContext:()=>cn,hydratable:()=>eu,hydrate:()=>Ho,mount:()=>Vo,onDestroy:()=>iu,onMount:()=>ru,setContext:()=>sn,settled:()=>ja,tick:()=>Aa,unmount:()=>Ko,untrack:()=>Fa});function nu(){return sa===null&&kt(),(sa.ac??=new AbortController).signal}function ru(e){Qt===null&&pt(`onMount`),Oi(()=>{let t=Fa(e);if(typeof t==`function`)return t})}function iu(e){Qt===null&&pt(`onDestroy`),ru(()=>()=>Fa(e))}function au(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function ou(){let e=Qt;return e===null&&pt(`createEventDispatcher`),(t,n,i)=>{let a=e.s.$$events?.[t];if(a){let o=r(a)?a.slice():[a],s=au(t,n,i);for(let t of o)t.call(e.x,s);return!s.defaultPrevented}return!0}}function su(e){Qt===null&&pt(`beforeUpdate`),Qt.l===null&&jt(`beforeUpdate`),lu(Qt).b.push(e)}function cu(e){Qt===null&&pt(`afterUpdate`),Qt.l===null&&jt(`afterUpdate`),lu(Qt).a.push(e)}function lu(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var uu=[`README.md`,`PROJECT.md`,`ABOUT.md`,`INDEX.md`];function du(e){return e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``).replace(/\/+$/,``)}function fu(e){return e.slug??du(e.path??``)}function pu(e){let t=fu(e);return t?{kind:`route`,slug:t}:null}function mu(e){return/^[a-z][a-z0-9+.-]*:\/\//i.test(e)||e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`)||e.includes(`#`)||/\.html?$/i.test(e)}function hu(e,t){let n=(Array.isArray(e)?e:[]).filter(e=>e&&(e.slug||e.path));if(n.length===0)return null;let r=t?.home?.trim();if(r){let e=du(r),t=n.find(t=>{let n=t.slug??du(t.path??``),r=du(t.path??t.slug??``);return n===e||r===e});if(t)return pu(t);if(mu(r))return{kind:`href`,href:r}}let i=n.filter(e=>!(e.path??e.slug??``).includes(`/`));for(let e of uu){let t=i.find(t=>(t.path??``)===e);if(t)return pu(t)}for(let e of uu){let t=e.toLowerCase(),n=i.find(e=>(e.path??``).toLowerCase()===t);if(n)return pu(n)}let a=[...n].sort((e,t)=>{let n=(e.path??e.slug??``).toLowerCase(),r=(t.path??t.slug??``).toLowerCase();if(n!==r)return n<r?-1:1;let i=e.path??e.slug??``,a=t.path??t.slug??``;return i<a?-1:+(i>a)})[0];return a?pu(a):null}async function gu(e,t={}){let n=Math.max(1,t.levels??3);for(let t=1;t<=n;t+=1){let n=`../`.repeat(t);try{let t=await e(`${n}_manifest.json`);if(!t.ok)continue;let r=await t.json();if(!r||!Array.isArray(r.docs)||r.docs.length===0)continue;let i=hu(r.docs,r.config??{});if(i?.kind===`route`&&i.slug)return{kind:`href`,href:`${n}index.html#/${i.slug}`,via:`ancestor`}}catch{}}return null}function _u(e){let t=e.replace(/\.(md|mdx|html)$/i,``);return t=t.replace(/^\d+[-_.]/,``),t.toLowerCase()===`readme`||t.toLowerCase()===`index`?`Overview`:t.split(/[-_]+/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function vu(e,t={},n){if(n&&n.length>0)return bu(n);let r=[],i=new Map;for(let n of e){let e=n.replace(/^\.?\//,``),a=e.split(`/`),o=t[e]||{};if(!o.hidden){if(a.length===1){let t=a[0],n=t.replace(/\.(md|mdx)$/i,``),i=n.toLowerCase()===`readme`||n.toLowerCase()===`index`;r.push({id:n,title:o.title||o.sidebar_label||(i?`Overview`:_u(t)),slug:i?`README`:n,path:e,icon:o.icon,badge:o.badge,badgeType:o.badge_type,order:o.order??o.sidebar_position??(i?-999:0),isCategory:!1})}else{let t=``,n=r;for(let e=0;e<a.length-1;e++){let r=a[e];t=t?`${t}/${r}`:r;let o=i.get(t);o||(o={id:t,title:_u(r),order:10,isCategory:!0,collapsed:!1,children:[]},i.set(t,o),n.push(o)),n=o.children}let s=a[a.length-1],c=e.replace(/\.(md|mdx)$/i,``),l=s.replace(/\.(md|mdx)$/i,``).toLowerCase()===`readme`||s.replace(/\.(md|mdx)$/i,``).toLowerCase()===`index`;n.push({id:c,title:o.title||o.sidebar_label||(l?`Overview`:_u(s)),slug:c,path:e,icon:o.icon,badge:o.badge,badgeType:o.badge_type,order:o.order??o.sidebar_position??(l?-100:0),isCategory:!1})}}}return yu(r),r}function yu(e){e.sort((e,t)=>e.order===t.order?e.slug===`README`?-1:t.slug===`README`?1:e.title.localeCompare(t.title):e.order-t.order);for(let t of e)t.children&&t.children.length>0&&yu(t.children)}function bu(e){return e.map((e,t)=>{let n=!!(e.children&&e.children.length>0),r=e.slug||(e.path?e.path.replace(/\.(md|mdx)$/i,``):`item-${t}`);return{id:r,title:e.title||_u(r),slug:n?void 0:r,path:e.path,icon:e.icon,badge:e.badge,badgeType:e.badgeType,order:t,isCategory:n,collapsed:e.collapsed??!1,children:e.children?bu(e.children):void 0}})}var xu=class{embeddedManifest=null;cache=new Map;constructor(){this.checkEmbeddedData()}checkEmbeddedData(){if(typeof window>`u`)return;let e=window.__DOCMEDOWN_DATA__;if(e&&typeof e==`object`&&(e.manifest&&(this.embeddedManifest=e.manifest),e.docs&&typeof e.docs==`object`))for(let[t,n]of Object.entries(e.docs))this.cache.set(t,n),this.cache.set(this.normalizeKey(t),n);try{if(typeof window<`u`&&typeof localStorage<`u`&&(window.location.protocol===`file:`||window.__DOCMEDOWN_OFFLINE__))for(let t=0;t<localStorage.length;t++){let n=localStorage.key(t);if(n?.startsWith(`dmd-offline-doc-`)){let t=n.slice(16),r=localStorage.getItem(n);r&&(this.cache.set(t,r),this.cache.set(this.normalizeKey(t),r),e?.docs&&typeof e.docs==`object`&&(e.docs[t]=r))}}}catch{}if(window.__DOCMEDOWN_MANIFEST__&&(this.embeddedManifest=window.__DOCMEDOWN_MANIFEST__),window.__DOCMEDOWN_DOCS__)for(let[e,t]of Object.entries(window.__DOCMEDOWN_DOCS__))this.cache.set(e,t),this.cache.set(this.normalizeKey(e),t);let t=document.getElementById(`dmd-manifest`);if(t?.textContent)try{this.embeddedManifest=JSON.parse(t.textContent)}catch(e){console.warn(`[DocMeDown] Failed to parse embedded manifest:`,e)}let n=document.getElementById(`dmd-docs`);if(n?.textContent)try{let e=JSON.parse(n.textContent);for(let[t,n]of Object.entries(e))this.cache.set(t,n),this.cache.set(this.normalizeKey(t),n)}catch(e){console.warn(`[DocMeDown] Failed to parse embedded docs:`,e)}}getEmbeddedManifest(){return this.embeddedManifest}async fetchManifest(e=``){if(this.embeddedManifest)return this.embeddedManifest;if(typeof window<`u`&&window.location.protocol===`file:`)return null;try{let t=e?`${e.replace(/\/$/,``)}/_manifest.json`:`_manifest.json`,n=await fetch(t);if(n.ok){let e=await n.json();return this.embeddedManifest=e,e}}catch{}return null}peekDocContent(e){if(this.cache.has(e))return this.cache.get(e);let t=this.normalizeKey(e),n=this.cache.get(t);if(n!==void 0)return n;let r=this.embeddedManifest?.docs?.find(e=>this.normalizeKey(e.slug)===t||this.normalizeKey(e.path)===t);if(r?.content)return this.cache.set(t,r.content),r.content}embeddedDocSources(){let e={};for(let[t,n]of this.cache){let r=this.normalizeKey(t);e[r]===void 0&&(e[r]=n)}for(let t of this.embeddedManifest?.docs??[]){let n=this.normalizeKey(t.slug);t.content&&e[n]===void 0&&(e[n]=t.content)}return Object.keys(e).length>0?e:null}async fetchDocContent(e,t=``){if(this.cache.has(e))return this.cache.get(e);let n=this.normalizeKey(e);if(this.cache.has(n))return this.cache.get(n);if(this.embeddedManifest?.docs){let e=this.embeddedManifest.docs.find(e=>this.normalizeKey(e.slug)===n||this.normalizeKey(e.path)===n);if(e?.content)return this.cache.set(n,e.content),e.content}if(typeof window<`u`&&window.location.protocol===`file:`)return null;let r=[`${n}.md`,`${n}.mdx`,`${n}/README.md`,`${n}/index.md`,n===`README`?`README.md`:null,n===`README`?`index.md`:null].filter(Boolean);for(let e of r)try{let r=t?`${t.replace(/\/$/,``)}/${e}`:e,i=await fetch(r);if(i.ok){let e=await i.text();return this.cache.set(n,e),e}}catch{}return null}setDocContent(e,t){this.cache.set(e,t);let n=this.normalizeKey(e);this.cache.set(n,t)}normalizeKey(e){return e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``)}},Su=class{config;cache=new Map;treeCache=null;constructor(e){this.config=e}getHeaders(){let e={Accept:`application/vnd.github.v3+json, text/plain`};return this.config.token&&(e.Authorization=`token ${this.config.token}`),e}async discoverFiles(){if(!this.config.repo)return[];if(this.treeCache&&Date.now()-this.treeCache.timestamp<3e5)return this.treeCache.files;let e=this.config.branch||`main`,t=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``);try{let n=`https://api.github.com/repos/${this.config.repo}/git/trees/${e}?recursive=1`,r=await fetch(n,{headers:this.getHeaders()});if(r.ok){let e=await r.json();if(Array.isArray(e.tree)){let n=[];for(let r of e.tree)if(r.type===`blob`&&/\.(md|mdx)$/i.test(r.path)&&(!t||r.path.startsWith(`${t}/`))){let e=t?r.path.substring(t.length+1):r.path;n.push(e)}return this.treeCache={files:n,timestamp:Date.now()},n}}}catch(e){console.warn(`[DocMeDown] Failed to fetch GitHub tree API, using fallback files:`,e)}return[`README.md`,`index.md`,`getting-started.md`]}async fetchDocContent(e){let t=e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``);if(this.cache.has(t))return this.cache.get(t);let n=this.config.branch||`main`,r=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``),i=[`${t}.md`,`${t}.mdx`,`${t}/README.md`,`${t}/index.md`,t===`README`?`README.md`:null].filter(Boolean);for(let e of i){let i=r?`${r}/${e}`:e,a=`https://raw.githubusercontent.com/${this.config.repo}/${n}/${i}`;try{let e=await fetch(a,{headers:this.getHeaders()});if(e.ok){let n=await e.text();return this.cache.set(t,n),n}}catch{}}return null}},Cu=class{config;cache=new Map;constructor(e){this.config=e}getHeaders(){let e={};return this.config.token&&(e[`PRIVATE-TOKEN`]=this.config.token),e}async discoverFiles(){if(!this.config.repo)return[];let e=this.config.branch||`main`,t=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``),n=encodeURIComponent(this.config.repo);try{let r=`https://gitlab.com/api/v4/projects/${n}/repository/tree?ref=${e}&recursive=true&per_page=100`,i=await fetch(r,{headers:this.getHeaders()});if(i.ok){let e=await i.json();if(Array.isArray(e)){let n=[];for(let r of e)if(r.type===`blob`&&/\.(md|mdx)$/i.test(r.path)&&(!t||r.path.startsWith(`${t}/`))){let e=t?r.path.substring(t.length+1):r.path;n.push(e)}return n}}}catch(e){console.warn(`[DocMeDown] Failed to fetch GitLab repository tree:`,e)}return[`README.md`,`index.md`]}async fetchDocContent(e){let t=e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``);if(this.cache.has(t))return this.cache.get(t);let n=this.config.branch||`main`,r=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``),i=encodeURIComponent(this.config.repo||``),a=[`${t}.md`,`${t}.mdx`,`${t}/README.md`,`${t}/index.md`,t===`README`?`README.md`:null].filter(Boolean);for(let e of a){let a=r?`${r}/${e}`:e,o=`https://gitlab.com/api/v4/projects/${i}/repository/files/${encodeURIComponent(a)}/raw?ref=${n}`;try{let e=await fetch(o,{headers:this.getHeaders()});if(e.ok){let n=await e.text();return this.cache.set(t,n),n}}catch{}}return null}};function wu(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Tu=wu();function Eu(e){Tu=e}var Du=/[&<>"']/,Ou=new RegExp(Du.source,`g`),ku=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Au=new RegExp(ku.source,`g`),ju={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Mu=e=>ju[e];function Nu(e,t){if(t){if(Du.test(e))return e.replace(Ou,Mu)}else if(ku.test(e))return e.replace(Au,Mu);return e}var Pu=/(^|[^\[])\^/g;function Fu(e,t){let n=typeof e==`string`?e:e.source;t||=``;let r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Pu,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function Iu(e){try{e=encodeURI(e).replace(/%25/g,`%`)}catch{return null}return e}var Lu={exec:()=>null};function Ru(e,t){let n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-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(/\\\|/g,`|`);return n}function zu(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 Bu(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-1}function Vu(e,t,n,r){let i=t.href,a=t.title?Nu(t.title):null,o=e[1].replace(/\\([\[\]])/g,`$1`);if(e[0].charAt(0)!==`!`){r.state.inLink=!0;let e={type:`link`,raw:n,href:i,title:a,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,e}return{type:`image`,raw:n,href:i,title:a,text:Nu(o)}}function Hu(e,t){let n=e.match(/^(\s+)(?:```)/);if(n===null)return t;let r=n[1];return t.split(`
|
|
7
|
+
\r\f\xA0\v`];function rc(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||nc.includes(r[o-1]))&&(s===r.length||nc.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function ic(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ac(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function oc(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ac)),i&&c.push(...Object.keys(i).map(ac));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=ac(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=ic(r)),i&&(n+=ic(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function sc(e,t,n,r,i,a){var o=e[Ee];if(C||o!==n||o===void 0){var s=rc(n,r,a);(!C||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Ee]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function cc(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function lc(e,t,n,r){var i=e[De];if(C||i!==t){var a=oc(t,r);(!C||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[De]=t}else r&&(Array.isArray(r)?(cc(e,n?.[0],r[0]),cc(e,n?.[1],r[1],`important`)):cc(e,n,r));return r}function uc(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function dc(e,t){var n=!(`__defaultValue`in e);!n&&e.__defaultValue===t||(e.__defaultValue=t,fc(e,!n||`__value`in e))}function fc(e,t){var n=e.__defaultValue,i=e.multiple,a=i?n??[]:null;if(!(i&&!r(a))){var o=e.selectedIndex,s=t&&i?new Set(e.selectedOptions):null;for(var c of e.options){var l=gc(c);uc(c,i?a.includes(l):ti(l,n))}if(t){if(s!==null)for(c of e.options){var u=s.has(c);c.selected!==u&&(c.selected=u)}else e.selectedIndex!==o&&(e.selectedIndex=o)}}}function pc(e,t,n=!1){if(e.multiple){if(t==null)return;if(!r(t))return Xe();for(var i of e.options)i.selected=t.includes(gc(i));return}for(i of e.options)if(ti(gc(i),t)){i.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function mc(e){var t=new MutationObserver(t=>{t.every(_c)||(`__defaultValue`in e&&fc(e,!1),`__value`in e&&pc(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Di(()=>{t.disconnect()})}function hc(e,t,n=t){var r=new WeakSet,i=!0;Gn(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),gc);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&gc(o)}n(a),e.__value=a,_r!==null&&r.add(_r)}),Pi(()=>{var a=t();if(e===document.activeElement){var o=_r;if(r.has(o))return}if(pc(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=gc(s),n(a))}e.__value=a,i=!1})}function gc(e){return`__value`in e?e.__value:e.value}function _c(e){if(e.target.closest(`selectedcontent`)!==null)return!0;if(e.type===`childList`){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(e=>e.nodeName===`SELECTEDCONTENT`)}return!1}var vc=Symbol(`class`),yc=Symbol(`style`),bc=Symbol(`is custom element`),xc=Symbol(`is html`),Sc=Me?`link`:`LINK`,Cc=Me?`input`:`INPUT`,wc=Me?`option`:`OPTION`,Tc=Me?`select`:`SELECT`,Ec=Me?`progress`:`PROGRESS`;function Dc(e){if(C){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;R(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;R(e,`checked`,null),e.checked=r}}};e[ke]=n,gn(n),Hn()}}function Oc(e,t){var n=Ic(e);n.value!==(n.value=t??void 0)&&(e.value!==t||t===0&&e.nodeName===Ec)&&(e.value=t??``)}function kc(e,t){var n=Ic(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Ac(e,t){let n=e.checked;e.defaultChecked=t,e.checked=n}function jc(e,t){let n=e.value;e.defaultValue=t,e.value=n}function R(e,t,n,r){var i=Ic(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Sc)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Ce]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Rc(e).has(t)?e[t]=n:e.setAttribute(t,n))}function Mc(e,t,n){e.setAttributeNS(`http://www.w3.org/1999/xlink`,t,n)}function Nc(e,t,n){var r=sa,i=ua;let a=C;C&&$e(!1),la(null),da(null);try{t!==`style`&&(Lc.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Rc(e).has(t):n&&typeof n==`object`)?e[t]=n:R(e,t,n==null?n:String(n))}finally{la(r),da(i),a&&$e(!0)}}function Pc(e,t,n,r,i=!1,a=!1){C&&i&&e.nodeName===Cc&&(`defaultValue`in n||`defaultChecked`in n||Dc(e));var o=Ic(e),s=o[bc],c=!o[xc];let l=C&&s;l&&$e(!1);var u=t||{},d=e.nodeName===wc,f=e.nodeName===Tc;for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=tc(n.class):(r||n[vc])&&(n.class=null),n[yc]&&(n.style??=null);var m=Rc(e);if(e.nodeName===Cc&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==u.type||h===void 0&&e.hasAttribute(`type`))&&(u.type=h,R(e,`type`,h,a))}for(let i in n){let l=n[i];if(d&&i===`value`&&l==null){e.value=e.__value=``,u[i]=l;continue}if(i===`class`){sc(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,l,r,t?.[vc],n[vc]),u[i]=l,u[vc]=n[vc];continue}if(i===`style`){lc(e,l,t?.[yc],n[yc]),u[i]=l,u[yc]=n[yc];continue}var g=u[i];if(!(l===g&&!(l===void 0&&e.hasAttribute(i)))){u[i]=l;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=Ua(r);if(Va(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(l!=null)continue;e.removeEventListener(r,u[n],t),u[n]=null}if(v)N(r,e,l),po([r]);else if(l!=null){function y(e){u[i].call(this,e)}u[n]=uo(r,e,y,t)}}else if(i===`style`)R(e,i,l);else if(i===`autofocus`)zn(e,!!l);else if(!s&&(i===`__value`||i===`value`&&l!=null))e.value=e.__value=l;else if(i===`selected`&&d)uc(e,l);else{var b=i;c||(b=Ka(b));var x=b===`defaultValue`||b===`defaultChecked`;if(f&&b===`defaultValue`)continue;if(l==null&&!s&&!x){if(o[i]=null,b===`value`||b===`checked`){let n=e,r=t===void 0;if(b===`value`){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else x||(s||typeof l!=`string`)&&m.has(b)?(e[b]=l,b in o&&(o[b]=Pe)):typeof l!=`function`&&R(e,b,l,a)}}}}return l&&$e(!0),u}function Fc(e,t,n=[],r=[],i=[],a,o=!1,s=!1){Kn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Tc,l=!1;if(Vi(()=>{var u=t(...n.map(M)),d=Pc(e,r,u,a,o,s);if(l&&c){var f=e;`defaultValue`in u&&dc(f,u.defaultValue),`value`in u&&pc(f,u.value)}for(let e of Object.getOwnPropertySymbols(i))u[e]||Ki(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var p=u[t];t.description===`@attach`&&(!r||p!==r[t])&&(i[t]&&Ki(i[t]),i[t]=Hi(()=>qs(e,()=>p))),d[t]=p}r=d}),c){var u=e;Pi(()=>{var e=r;`defaultValue`in e&&dc(u,e.defaultValue),pc(u,e.value,!0),mc(u)})}l=!0})}function Ic(e){return e[Te]??={[bc]:e.nodeName.includes(`-`),[xc]:e.namespaceURI===Le}}var Lc=new Map;function Rc(e){var t=e.getAttribute(`is`)||e.nodeName,n=Lc.get(t);if(n)return n;Lc.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=u(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.add(o);i=p(i)}return n}var zc=null;function Bc(){if(zc===null){var e=gi(`select`);e.innerHTML=yo(`<option><span>t</span></option>`),zc=e.firstChild?.firstChild?.nodeType===1}return zc}function Vc(e,t){Bc()&&qs(e,()=>()=>{let n=e.closest(`select`);if(!n)return;let r=new MutationObserver(n=>{var r=!1;for(let t of n){if(t.target===e)return;r||=!!t.target.parentElement?.closest(`option`)?.selected}r&&(e.replaceWith(e=e.cloneNode(!0)),t(e))});return r.observe(n,{childList:!0,characterData:!0,subtree:!0}),()=>{r.disconnect()}})}function Hc(e,t){var n=C;Bc()||($e(!1),e.textContent=``,e.append(vi(``)));try{t()}finally{n&&(C?w(e):($e(!0),tt(e)))}}function Uc(e){Un(document,[`focusin`,`focusout`],t=>{t&&t.type===`focusout`&&t.relatedTarget||e(document.activeElement)})}function Wc(e,t,n=t){var r=new WeakSet;Gn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Yc(e)?Xc(a):a,n(a),_r!==null&&r.add(_r),await Aa(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(C&&e.defaultValue!==e.value||Fa(t)==null&&e.value)&&(n(Yc(e)?Xc(e.value):e.value),_r!==null&&r.add(_r)),Ri(()=>{var n=t();if(e===document.activeElement){var i=_r;if(r.has(i))return}Yc(e)&&n===Xc(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}var Gc=new Set;function Kc(e,t,n,r,i=r){var a=n.getAttribute(`type`)===`checkbox`,o=e;let s=!1;if(t!==null)for(var c of t)o=o[c]??=[];o.push(n),Gn(n,`change`,()=>{var e=n.__value;a&&(e=Jc(o,e,n.checked)),i(e)},()=>i(a?[]:null)),Ri(()=>{var e=r();if(C&&n.defaultChecked!==n.checked){s=!0;return}a?(e||=[],n.checked=e.includes(n.__value)):n.checked=ti(n.__value,e)}),Di(()=>{var e=o.indexOf(n);e!==-1&&o.splice(e,1)}),Gc.has(o)||(Gc.add(o),gn(()=>{o.sort((e,t)=>e.compareDocumentPosition(t)===4?-1:1),Gc.delete(o)})),gn(()=>{if(s){var e=a?Jc(o,e,n.checked):o.find(e=>e.checked)?.__value;i(e)}})}function qc(e,t,n=t){Gn(e,`change`,t=>{n(t?e.defaultChecked:e.checked)}),(C&&e.defaultChecked!==e.checked||Fa(t)==null)&&n(e.checked),Ri(()=>{e.checked=!!t()})}function Jc(e,t,n){for(var r=new Set,i=0;i<e.length;i+=1)e[i].checked&&r.add(e[i].__value);return n||r.delete(t),Array.from(r)}function Yc(e){var t=e.type;return t===`number`||t===`range`}function Xc(e){return e===``?null:+e}function Zc(e,t,n=t){Gn(e,`change`,()=>{n(e.files)}),C&&e.files&&n(e.files),Ri(()=>{e.files=t()})}function Qc(e){for(var t=[],n=0;n<e.length;n+=1)t.push({start:e.start(n),end:e.end(n)});return t}function $c(e,t,n=t){var r,i,a=()=>{cancelAnimationFrame(r),e.paused||(r=requestAnimationFrame(a));var t=e.currentTime;i!==t&&n(i=t)};r=requestAnimationFrame(a),e.addEventListener(`timeupdate`,a),Ri(()=>{var n=Number(t());i!==n&&!isNaN(n)&&(e.currentTime=i=n)}),Di(()=>{cancelAnimationFrame(r),e.removeEventListener(`timeupdate`,a)})}function el(e,t){var n;Un(e,[`loadedmetadata`,`progress`,`timeupdate`,`seeking`],()=>{var r=e.buffered;(!n||n.length!==r.length||n.some((e,t)=>r.start(t)!==e.start||r.end(t)!==e.end))&&(n=Qc(r),t(n))})}function tl(e,t){Un(e,[`loadedmetadata`],()=>t(Qc(e.seekable)))}function nl(e,t){Un(e,[`timeupdate`],()=>t(Qc(e.played)))}function rl(e,t){Un(e,[`seeking`,`seeked`],()=>t(e.seeking))}function il(e,t){Un(e,[`timeupdate`,`ended`],()=>t(e.ended))}function al(e,t){Un(e,[`loadedmetadata`,`loadeddata`,`canplay`,`canplaythrough`,`playing`,`waiting`,`emptied`],()=>t(e.readyState))}function ol(e,t,n=t){Pi(()=>{var n=Number(t());n!==e.playbackRate&&!isNaN(n)&&(e.playbackRate=n)}),Pi(()=>{Un(e,[`ratechange`],()=>{n(e.playbackRate)})})}function sl(e,t,n=t){var r=t();Un(e,[`play`,`pause`,`canplay`],()=>{r!==e.paused&&n(r=e.paused)},r==null),Pi(()=>{(r=!!t())!==e.paused&&(r?e.pause():e.play().catch(e=>{throw n(r=!0),e}))})}function cl(e,t,n=t){var r=()=>{n(e.volume)};t()??r(),Un(e,[`volumechange`],r,!1),Ri(()=>{var n=Number(t());n!==e.volume&&!isNaN(n)&&(e.volume=n)})}function ll(e,t,n=t){var r=()=>{n(e.muted)};t()??r(),Un(e,[`volumechange`],r,!1),Ri(()=>{var n=!!t();e.muted!==n&&(e.muted=n)})}function ul(e){Un(window,[`online`,`offline`],()=>{e(navigator.onLine)})}function dl(e,t,n){var r=l(e,t);r&&r.set&&(e[t]=n,Di(()=>{e[t]=null}))}var fl=class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}},pl=new fl({box:`content-box`}),ml=new fl({box:`border-box`}),hl=new fl({box:`device-pixel-content-box`});function gl(e,t,n){Di((t===`contentRect`||t===`contentBoxSize`?pl:t===`borderBoxSize`?ml:hl).observe(e,e=>n(e[t])))}function _l(e,t,n){var r=ml.observe(e,()=>n(e[t]));Pi(()=>(Fa(()=>n(e[t])),r))}function vl(e,t){return e===t||e?.[be]===t}function yl(e=fn(),t,n,r){var i=Qt.r,a=ua;return Pi(()=>{var o,s;return Ri(()=>{o=s,s=r?.()||[],Fa(()=>{vl(n(...s),e)||(t(e,...s),o&&vl(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&vl(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function bl(e,t,n,r=n){t.addEventListener(`input`,()=>{r(t[e])}),Ri(()=>{var i=n();if(t[e]!==i){if(i==null){var a=t[e];r(a)}else t[e]=i+``}})}function xl(e,t,n,r,i){var a=()=>{r(n[e])};n.addEventListener(t,a),i?Ri(()=>{n[e]=i()}):a(),(n===document.body||n===window||n===document)&&Di(()=>{n.removeEventListener(t,a)})}function Sl(e,t){Un(e,[`focus`,`blur`],()=>{t(e===document.activeElement)})}function Cl(e,t,n=t){var r=e===`x`,i=()=>Wn(()=>{a=!0,clearTimeout(o),o=setTimeout(s,100),n(window[r?`scrollX`:`scrollY`])});addEventListener(`scroll`,i,{passive:!0});var a=!1,o,s=()=>{a=!1},c=!0;Ri(()=>{var e=t();c?c=!1:!a&&e!=null&&(a=!0,clearTimeout(o),r?scrollTo(e,window.scrollY):scrollTo(window.scrollX,e),o=setTimeout(s,100))}),Pi(i),Di(()=>{removeEventListener(`scroll`,i)})}function wl(e,t){Un(window,[`resize`],()=>Wn(()=>t(window[e])))}function Tl(e){return function(...t){t[0].isTrusted&&e?.apply(this,t)}}function El(e){return function(...t){t[0].target===this&&e?.apply(this,t)}}function Dl(e){return function(...t){return t[0].stopPropagation(),e?.apply(this,t)}}function Ol(e){var t=!1;return function(...n){if(!t)return t=!0,e?.apply(this,n)}}function kl(e){return function(...t){return t[0].stopImmediatePropagation(),e?.apply(this,t)}}function Al(e){return function(...t){return t[0].preventDefault(),e?.apply(this,t)}}function jl(e=!1){let t=Qt,n=t.l.u;if(!n)return;let r=()=>Ia(t.s);if(e){let e=0,n={},i=or(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>M(i)}n.b.length&&Ai(()=>{Ml(t,r),b(n.b)}),Oi(()=>{let e=Fa(()=>n.m.map(y));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&Oi(()=>{Ml(t,r),b(n.a)})}function Ml(e,t){if(e.l.s)for(let t of e.l.s)M(t);t()}function Nl(e){var t=Wr(0);return function(){return arguments.length===1?(D(t,M(t)+1),arguments[0]):(M(t),e())}}function Pl(e,t){var n=e.$$events?.[t.type];for(var i of r(n)?n.slice():n==null?[]:[n])i.call(this,t)}function Fl(e,t,n){e.$$events||={},e.$$events[t]||=[],e.$$events[t].push(n)}function Il(e){for(var t in e)t in this&&(this[t]=e[t])}function Ll(e,t=1){let n=e();return e(n+t),n}function Rl(e,t=1){let n=e()+t;return e(n),n}var zl={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function Bl(e,t,n){return new Proxy({props:e,exclude:t},zl)}var Vl={get(e,t){if(!e.exclude.includes(t))return M(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,n){if(!(t in e.special)){var r=ua;try{da(e.parent_effect),e.special[t]=z({get[t](){return e.props[t]}},t,4)}finally{da(r)}}return e.special[t](n),Yr(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)?!0:(e.exclude.push(t),Yr(e.version),!0)},has(e,t){return!e.exclude.includes(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Hl(e,t){return new Proxy({props:e,exclude:t,special:{},version:Wr(0),parent_effect:ua},Vl)}var Ul={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(g(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];g(i)&&(i=i());let a=l(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(g(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=l(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===be||t===Se)return!1;for(let n of e.props)if(g(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(g(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function Wl(...e){return new Proxy({props:e},Ul)}function z(e,t,n,r){var i=!0,a=!!(n&8),o=!!(n&16),s=r,c=!0,u=void 0,d=()=>o&&i?(u??=or(r),M(u)):(c&&(c=!1,s=o?Fa(r):r),s);let f;if(a){var p=be in e||Se in e;f=l(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=Rn(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Mt(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?or:ur)(()=>(v=!1,g()));a&&M(y);var b=ua;return(function(e,t){if(arguments.length>0){let n=t?M(y):i&&a?$r(e):e;return D(y,n),v=!0,s!==void 0&&(s=n),e}return aa&&v||b.f&16384?y.v:M(y)})}function Gl(e,t,n,r,i,a){qn(t,()=>{var t=!1,o=nn?.[Fe];Ri(()=>{if(!t){var[s,c]=Rn(n);if(!c){var l=r(),u=!1,d=Ri(()=>{u||s[l]});u=!0,d.deps===null&&(He(e,`${o}:${i}:${a}`),t=!0)}}})})}function Kl(e){return new ql(e)}var ql=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Gr(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return M(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===Se||(M(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return D(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Ho:Vo)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&T(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&c(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Ko(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Jl;typeof HTMLElement==`function`&&(Jl=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=gi(`slot`);e!=="default"&&(n.name=e),F(t,n)}}let t={},n=Xl(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Yl(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Kl({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Mi(()=>{Ri(()=>{this.$$r=!0;for(let e of s(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Yl(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Yl(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return s(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Yl(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Xl(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Zl(e,t,n,r,i,a){let o=class extends Jl{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return s(t).map(e=>(t[e].attribute||e).toLowerCase())}};return s(t).forEach(e=>{c(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Yl(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(l(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{c(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function Ql(e,...t){return Fa(()=>{try{let n=!1,r=[];for(let e of t)e&&typeof e==`object`&&be in e?(r.push(zt(e,!0)),n=!0):r.push(e);n&&(Ue(e),console.log(`%c[snapshot]`,`color: grey`,...r))}catch{}}),t}var $l=e.n({CLASS:()=>vc,FILENAME:()=>Fe,HMR:()=>Ie,NAMESPACE_SVG:()=>Re,STYLE:()=>yc,aborted:()=>$i,action:()=>Ks,active_effect:()=>ua,add_legacy_event_listener:()=>Fl,add_locations:()=>ro,add_svelte_meta:()=>tn,animation:()=>Bs,append:()=>F,append_styles:()=>Gs,apply:()=>_o,assign:()=>$a,assign_async:()=>eo,async:()=>$o,async_derived:()=>cr,attach:()=>qs,attachment:()=>Ra,attr:()=>ec,attribute_effect:()=>Fc,autofocus:()=>zn,await:()=>as,bind_active_element:()=>Uc,bind_buffered:()=>el,bind_checked:()=>qc,bind_content_editable:()=>bl,bind_current_time:()=>$c,bind_element_size:()=>_l,bind_ended:()=>il,bind_files:()=>Zc,bind_focused:()=>Sl,bind_group:()=>Kc,bind_muted:()=>ll,bind_online:()=>ul,bind_paused:()=>sl,bind_playback_rate:()=>ol,bind_played:()=>nl,bind_prop:()=>dl,bind_property:()=>xl,bind_ready_state:()=>al,bind_resize_observer:()=>gl,bind_seekable:()=>tl,bind_seeking:()=>rl,bind_select_value:()=>hc,bind_this:()=>yl,bind_value:()=>Wc,bind_volume:()=>cl,bind_window_scroll:()=>Cl,bind_window_size:()=>wl,boundary:()=>Io,bubble_event:()=>Pl,check_target:()=>Xo,child:()=>O,cleanup_styles:()=>no,clsx:()=>tc,comment:()=>Mo,component:()=>ks,create_custom_element:()=>Zl,create_ownership_validator:()=>Jo,css_props:()=>cs,customizable_select:()=>Hc,deep_read:()=>La,deep_read_state:()=>Ia,deferred_template_effect:()=>zi,delegate:()=>po,delegated:()=>N,derived:()=>lr,derived_safe_equal:()=>ur,document:()=>ai,each:()=>ps,eager:()=>Ir,effect:()=>Pi,effect_root:()=>Mi,effect_tracking:()=>Ei,element:()=>Us,equals:()=>ri,event:()=>fo,exclude_from_object:()=>te,fallback:()=>S,first_child:()=>pi,flush:()=>T,for_await_track_reactivity_loss:()=>$n,from_html:()=>P,from_mathml:()=>Eo,from_svg:()=>To,from_tree:()=>Oo,get:()=>M,head:()=>Ws,hmr:()=>qo,html:()=>ys,hydrate_template:()=>rt,if:()=>L,index:()=>ls,init:()=>jl,init_select:()=>mc,inspect:()=>Qo,invalid_default_snippet:()=>dt,invalidate_inner_signals:()=>ra,invalidate_store:()=>jn,key:()=>ss,legacy_api:()=>Zo,legacy_pre_effect:()=>Fi,legacy_pre_effect_reset:()=>Ii,legacy_rest_props:()=>Hl,log_if_contains_state:()=>Ql,mark_store_binding:()=>Ln,mutable_source:()=>Gr,mutate:()=>Kr,next:()=>it,noop:()=>_,once:()=>Ol,only_child:()=>k,pending:()=>Ro,pop:()=>dn,preventDefault:()=>Al,prevent_snippet_stringification:()=>Ts,prop:()=>z,props_id:()=>No,proxy:()=>$r,push:()=>un,raf:()=>js,reactive_import:()=>Nl,remove_input_defaults:()=>Dc,remove_textarea_child:()=>Bn,render_effect:()=>Ri,replay_events:()=>lo,reset:()=>w,rest_props:()=>Bl,run:()=>tr,run_after_blockers:()=>qn,safe_get:()=>Pa,sanitize_slots:()=>xs,save:()=>Xn,select_option:()=>pc,selectedcontent:()=>Vc,self:()=>El,set:()=>D,set_attribute:()=>R,set_checked:()=>kc,set_class:()=>sc,set_custom_element_data:()=>Nc,set_default_checked:()=>Ac,set_default_select_value:()=>dc,set_default_value:()=>jc,set_selected:()=>uc,set_style:()=>lc,set_text:()=>I,set_value:()=>Oc,set_xlink_attribute:()=>Mc,setup_stores:()=>Mn,sibling:()=>A,slot:()=>bs,snapshot:()=>zt,snippet:()=>Es,spread_props:()=>Wl,state:()=>E,stopImmediatePropagation:()=>kl,stopPropagation:()=>Dl,store_get:()=>On,store_mutate:()=>Pn,store_set:()=>An,store_unsub:()=>kn,strict_equals:()=>ni,tag:()=>Gt,tag_proxy:()=>Kt,template_effect:()=>j,text:()=>jo,tick:()=>Aa,to_array:()=>ee,trace:()=>Wt,track_reactivity_loss:()=>Qn,transition:()=>Vs,trusted:()=>Tl,unsave:()=>Zn,untrack:()=>Fa,update:()=>Yr,update_legacy_props:()=>Il,update_pre:()=>Xr,update_pre_prop:()=>Rl,update_pre_store:()=>In,update_prop:()=>Ll,update_store:()=>Fn,user_effect:()=>Oi,user_pre_effect:()=>Ai,validate_binding:()=>Gl,validate_dynamic_element_tag:()=>Cs,validate_snippet_args:()=>es,validate_store:()=>ws,validate_void_dynamic_element:()=>Ss,wait:()=>nr,window:()=>ii,with_script:()=>ko,wrap_snippet:()=>Ds});function eu(e,t){if(ut(`hydratable`),C){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);Ke(e)}return t()}var tu=e.n({afterUpdate:()=>cu,beforeUpdate:()=>su,createContext:()=>an,createEventDispatcher:()=>ou,createRawSnippet:()=>Os,flushSync:()=>T,fork:()=>zr,getAbortSignal:()=>nu,getAllContexts:()=>ln,getContext:()=>on,hasContext:()=>cn,hydratable:()=>eu,hydrate:()=>Ho,mount:()=>Vo,onDestroy:()=>iu,onMount:()=>ru,setContext:()=>sn,settled:()=>ja,tick:()=>Aa,unmount:()=>Ko,untrack:()=>Fa});function nu(){return sa===null&&kt(),(sa.ac??=new AbortController).signal}function ru(e){Qt===null&&pt(`onMount`),Oi(()=>{let t=Fa(e);if(typeof t==`function`)return t})}function iu(e){Qt===null&&pt(`onDestroy`),ru(()=>()=>Fa(e))}function au(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function ou(){let e=Qt;return e===null&&pt(`createEventDispatcher`),(t,n,i)=>{let a=e.s.$$events?.[t];if(a){let o=r(a)?a.slice():[a],s=au(t,n,i);for(let t of o)t.call(e.x,s);return!s.defaultPrevented}return!0}}function su(e){Qt===null&&pt(`beforeUpdate`),Qt.l===null&&jt(`beforeUpdate`),lu(Qt).b.push(e)}function cu(e){Qt===null&&pt(`afterUpdate`),Qt.l===null&&jt(`afterUpdate`),lu(Qt).a.push(e)}function lu(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var uu=[`README.md`,`PROJECT.md`,`ABOUT.md`,`INDEX.md`],du=3;function fu(e){return e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``).replace(/\/+$/,``)}function pu(e){return e.slug??fu(e.path??``)}function mu(e){let t=pu(e);return t?{kind:`route`,slug:t}:null}function hu(e){return/^[a-z][a-z0-9+.-]*:\/\//i.test(e)||e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`)||e.includes(`#`)||/\.html?$/i.test(e)}function gu(e,t){let n=(Array.isArray(e)?e:[]).filter(e=>e&&(e.slug||e.path));if(n.length===0)return null;let r=t?.home?.trim();if(r){let e=fu(r),t=n.find(t=>{let n=t.slug??fu(t.path??``),r=fu(t.path??t.slug??``);return n===e||r===e});if(t)return mu(t);if(hu(r))return{kind:`href`,href:r}}let i=n.filter(e=>!(e.path??e.slug??``).includes(`/`));for(let e of uu){let t=i.find(t=>(t.path??``)===e);if(t)return mu(t)}for(let e of uu){let t=e.toLowerCase(),n=i.find(e=>(e.path??``).toLowerCase()===t);if(n)return mu(n)}let a=[...n].sort((e,t)=>{let n=(e.path??e.slug??``).toLowerCase(),r=(t.path??t.slug??``).toLowerCase();if(n!==r)return n<r?-1:1;let i=e.path??e.slug??``,a=t.path??t.slug??``;return i<a?-1:+(i>a)})[0];return a?mu(a):null}async function _u(e,t={}){let n=Math.max(1,t.levels??du);for(let t=1;t<=n;t+=1){let n=`../`.repeat(t);try{let t=await e(`${n}_manifest.json`);if(!t.ok)continue;let r=await t.json();if(!r||!Array.isArray(r.docs)||r.docs.length===0)continue;let i=gu(r.docs,r.config??{});if(i?.kind===`route`&&i.slug)return{kind:`href`,href:`${n}index.html#/${i.slug}`,via:`ancestor`}}catch{}}return null}function vu(e){let t=e.replace(/\.(md|mdx|html)$/i,``);return t=t.replace(/^\d+[-_.]/,``),t.toLowerCase()===`readme`||t.toLowerCase()===`index`?`Overview`:t.split(/[-_]+/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function yu(e,t={},n){if(n&&n.length>0)return xu(n);let r=[],i=new Map;for(let n of e){let e=n.replace(/^\.?\//,``),a=e.split(`/`),o=t[e]||{};if(!o.hidden){if(a.length===1){let t=a[0],n=t.replace(/\.(md|mdx)$/i,``),i=n.toLowerCase()===`readme`||n.toLowerCase()===`index`;r.push({id:n,title:o.title||o.sidebar_label||(i?`Overview`:vu(t)),slug:i?`README`:n,path:e,icon:o.icon,badge:o.badge,badgeType:o.badge_type,order:o.order??o.sidebar_position??(i?-999:0),isCategory:!1})}else{let t=``,n=r;for(let e=0;e<a.length-1;e++){let r=a[e];t=t?`${t}/${r}`:r;let o=i.get(t);o||(o={id:t,title:vu(r),order:10,isCategory:!0,collapsed:!1,children:[]},i.set(t,o),n.push(o)),n=o.children}let s=a[a.length-1],c=e.replace(/\.(md|mdx)$/i,``),l=s.replace(/\.(md|mdx)$/i,``).toLowerCase()===`readme`||s.replace(/\.(md|mdx)$/i,``).toLowerCase()===`index`;n.push({id:c,title:o.title||o.sidebar_label||(l?`Overview`:vu(s)),slug:c,path:e,icon:o.icon,badge:o.badge,badgeType:o.badge_type,order:o.order??o.sidebar_position??(l?-100:0),isCategory:!1})}}}return bu(r),r}function bu(e){e.sort((e,t)=>e.order===t.order?e.slug===`README`?-1:t.slug===`README`?1:e.title.localeCompare(t.title):e.order-t.order);for(let t of e)t.children&&t.children.length>0&&bu(t.children)}function xu(e){return e.map((e,t)=>{let n=!!(e.children&&e.children.length>0),r=e.slug||(e.path?e.path.replace(/\.(md|mdx)$/i,``):`item-${t}`);return{id:r,title:e.title||vu(r),slug:n?void 0:r,path:e.path,icon:e.icon,badge:e.badge,badgeType:e.badgeType,order:t,isCategory:n,collapsed:e.collapsed??!1,children:e.children?xu(e.children):void 0}})}var Su=class{embeddedManifest=null;cache=new Map;constructor(){this.checkEmbeddedData()}checkEmbeddedData(){if(typeof window>`u`)return;let e=window.__DOCMEDOWN_DATA__;if(e&&typeof e==`object`&&(e.manifest&&(this.embeddedManifest=e.manifest),e.docs&&typeof e.docs==`object`))for(let[t,n]of Object.entries(e.docs))this.cache.set(t,n),this.cache.set(this.normalizeKey(t),n);try{if(typeof window<`u`&&typeof localStorage<`u`&&(window.location.protocol===`file:`||window.__DOCMEDOWN_OFFLINE__))for(let t=0;t<localStorage.length;t++){let n=localStorage.key(t);if(n?.startsWith(`dmd-offline-doc-`)){let t=n.slice(16),r=localStorage.getItem(n);r&&(this.cache.set(t,r),this.cache.set(this.normalizeKey(t),r),e?.docs&&typeof e.docs==`object`&&(e.docs[t]=r))}}}catch{}if(window.__DOCMEDOWN_MANIFEST__&&(this.embeddedManifest=window.__DOCMEDOWN_MANIFEST__),window.__DOCMEDOWN_DOCS__)for(let[e,t]of Object.entries(window.__DOCMEDOWN_DOCS__))this.cache.set(e,t),this.cache.set(this.normalizeKey(e),t);let t=document.getElementById(`dmd-manifest`);if(t?.textContent)try{this.embeddedManifest=JSON.parse(t.textContent)}catch(e){console.warn(`[DocMeDown] Failed to parse embedded manifest:`,e)}let n=document.getElementById(`dmd-docs`);if(n?.textContent)try{let e=JSON.parse(n.textContent);for(let[t,n]of Object.entries(e))this.cache.set(t,n),this.cache.set(this.normalizeKey(t),n)}catch(e){console.warn(`[DocMeDown] Failed to parse embedded docs:`,e)}}getEmbeddedManifest(){return this.embeddedManifest}async fetchManifest(e=``){if(this.embeddedManifest)return this.embeddedManifest;if(typeof window<`u`&&window.location.protocol===`file:`)return null;try{let t=e?`${e.replace(/\/$/,``)}/_manifest.json`:`_manifest.json`,n=await fetch(t);if(n.ok){let e=await n.json();return this.embeddedManifest=e,e}}catch{}return null}peekDocContent(e){if(this.cache.has(e))return this.cache.get(e);let t=this.normalizeKey(e),n=this.cache.get(t);if(n!==void 0)return n;let r=this.embeddedManifest?.docs?.find(e=>this.normalizeKey(e.slug)===t||this.normalizeKey(e.path)===t);if(r?.content)return this.cache.set(t,r.content),r.content}embeddedDocSources(){let e={};for(let[t,n]of this.cache){let r=this.normalizeKey(t);e[r]===void 0&&(e[r]=n)}for(let t of this.embeddedManifest?.docs??[]){let n=this.normalizeKey(t.slug);t.content&&e[n]===void 0&&(e[n]=t.content)}return Object.keys(e).length>0?e:null}async fetchDocContent(e,t=``){if(this.cache.has(e))return this.cache.get(e);let n=this.normalizeKey(e);if(this.cache.has(n))return this.cache.get(n);if(this.embeddedManifest?.docs){let e=this.embeddedManifest.docs.find(e=>this.normalizeKey(e.slug)===n||this.normalizeKey(e.path)===n);if(e?.content)return this.cache.set(n,e.content),e.content}if(typeof window<`u`&&window.location.protocol===`file:`)return null;let r=[`${n}.md`,`${n}.mdx`,`${n}/README.md`,`${n}/index.md`,n===`README`?`README.md`:null,n===`README`?`index.md`:null].filter(Boolean);for(let e of r)try{let r=t?`${t.replace(/\/$/,``)}/${e}`:e,i=await fetch(r);if(i.ok){let e=await i.text();return this.cache.set(n,e),e}}catch{}return null}setDocContent(e,t){this.cache.set(e,t);let n=this.normalizeKey(e);this.cache.set(n,t)}normalizeKey(e){return e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``)}},Cu=class{config;cache=new Map;treeCache=null;constructor(e){this.config=e}getHeaders(){let e={Accept:`application/vnd.github.v3+json, text/plain`};return this.config.token&&(e.Authorization=`token ${this.config.token}`),e}async discoverFiles(){if(!this.config.repo)return[];if(this.treeCache&&Date.now()-this.treeCache.timestamp<3e5)return this.treeCache.files;let e=this.config.branch||`main`,t=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``);try{let n=`https://api.github.com/repos/${this.config.repo}/git/trees/${e}?recursive=1`,r=await fetch(n,{headers:this.getHeaders()});if(r.ok){let e=await r.json();if(Array.isArray(e.tree)){let n=[];for(let r of e.tree)if(r.type===`blob`&&/\.(md|mdx)$/i.test(r.path)&&(!t||r.path.startsWith(`${t}/`))){let e=t?r.path.substring(t.length+1):r.path;n.push(e)}return this.treeCache={files:n,timestamp:Date.now()},n}}}catch(e){console.warn(`[DocMeDown] Failed to fetch GitHub tree API, using fallback files:`,e)}return[`README.md`,`index.md`,`getting-started.md`]}async fetchDocContent(e){let t=e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``);if(this.cache.has(t))return this.cache.get(t);let n=this.config.branch||`main`,r=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``),i=[`${t}.md`,`${t}.mdx`,`${t}/README.md`,`${t}/index.md`,t===`README`?`README.md`:null].filter(Boolean);for(let e of i){let i=r?`${r}/${e}`:e,a=`https://raw.githubusercontent.com/${this.config.repo}/${n}/${i}`;try{let e=await fetch(a,{headers:this.getHeaders()});if(e.ok){let n=await e.text();return this.cache.set(t,n),n}}catch{}}return null}},wu=class{config;cache=new Map;constructor(e){this.config=e}getHeaders(){let e={};return this.config.token&&(e[`PRIVATE-TOKEN`]=this.config.token),e}async discoverFiles(){if(!this.config.repo)return[];let e=this.config.branch||`main`,t=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``),n=encodeURIComponent(this.config.repo);try{let r=`https://gitlab.com/api/v4/projects/${n}/repository/tree?ref=${e}&recursive=true&per_page=100`,i=await fetch(r,{headers:this.getHeaders()});if(i.ok){let e=await i.json();if(Array.isArray(e)){let n=[];for(let r of e)if(r.type===`blob`&&/\.(md|mdx)$/i.test(r.path)&&(!t||r.path.startsWith(`${t}/`))){let e=t?r.path.substring(t.length+1):r.path;n.push(e)}return n}}}catch(e){console.warn(`[DocMeDown] Failed to fetch GitLab repository tree:`,e)}return[`README.md`,`index.md`]}async fetchDocContent(e){let t=e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``);if(this.cache.has(t))return this.cache.get(t);let n=this.config.branch||`main`,r=(this.config.docsDir||``).replace(/^\/+|\/+$/g,``),i=encodeURIComponent(this.config.repo||``),a=[`${t}.md`,`${t}.mdx`,`${t}/README.md`,`${t}/index.md`,t===`README`?`README.md`:null].filter(Boolean);for(let e of a){let a=r?`${r}/${e}`:e,o=`https://gitlab.com/api/v4/projects/${i}/repository/files/${encodeURIComponent(a)}/raw?ref=${n}`;try{let e=await fetch(o,{headers:this.getHeaders()});if(e.ok){let n=await e.text();return this.cache.set(t,n),n}}catch{}}return null}};function Tu(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Eu=Tu();function Du(e){Eu=e}var Ou=/[&<>"']/,ku=new RegExp(Ou.source,`g`),Au=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ju=new RegExp(Au.source,`g`),Mu={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Nu=e=>Mu[e];function Pu(e,t){if(t){if(Ou.test(e))return e.replace(ku,Nu)}else if(Au.test(e))return e.replace(ju,Nu);return e}var Fu=/(^|[^\[])\^/g;function Iu(e,t){let n=typeof e==`string`?e:e.source;t||=``;let r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Fu,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function Lu(e){try{e=encodeURI(e).replace(/%25/g,`%`)}catch{return null}return e}var Ru={exec:()=>null};function zu(e,t){let n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-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(/\\\|/g,`|`);return n}function Bu(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 Vu(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-1}function Hu(e,t,n,r){let i=t.href,a=t.title?Pu(t.title):null,o=e[1].replace(/\\([\[\]])/g,`$1`);if(e[0].charAt(0)!==`!`){r.state.inLink=!0;let e={type:`link`,raw:n,href:i,title:a,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,e}return{type:`image`,raw:n,href:i,title:a,text:Pu(o)}}function Uu(e,t){let n=e.match(/^(\s+)(?:```)/);if(n===null)return t;let r=n[1];return t.split(`
|
|
8
8
|
`).map(e=>{let t=e.match(/^\s+/);if(t===null)return e;let[n]=t;return n.length>=r.length?e.slice(r.length):e}).join(`
|
|
9
|
-
`)}var
|
|
10
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=
|
|
11
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=
|
|
9
|
+
`)}var Wu=class{options;rules;lexer;constructor(e){this.options=e||Eu}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(/^(?: {1,4}| {0,3}\t)/gm,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:Bu(e,`
|
|
10
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Uu(e,t[3]||``);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(/#$/.test(e)){let t=Bu(e,`#`);(this.options.pedantic||!t||/ $/.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:Bu(t[0],`
|
|
11
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Bu(t[0],`
|
|
12
12
|
`).split(`
|
|
13
13
|
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(/^ {0,3}>/.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(`
|
|
14
14
|
`),c=s.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
|
@@ -24,10 +24,10 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
24
24
|
`,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g,` `),p=l):p=l.replace(/\t/g,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(/[^ ]/)>=d||!l.trim())s+=`
|
|
25
25
|
`+p.slice(d);else{if(u||c.replace(/\t/g,` `).search(/[^ ]/)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
|
|
26
26
|
`+l}!u&&!l.trim()&&(u=!0),r+=f+`
|
|
27
|
-
`,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=/^\[[ xX]\] /.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(/^\[[ xX]\] +/,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>/\n.*\n/.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre: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(/\s+/g,` `),n=t[2]?t[2].replace(/^<(.*)>$/,`$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||!/[:|]/.test(t[2]))return;let n=
|
|
28
|
-
`):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)/^ *-+: *$/.test(e)?a.align.push(`right`):/^ *:-+: *$/.test(e)?a.align.push(`center`):/^ *:-+ *$/.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(
|
|
29
|
-
`?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:
|
|
30
|
-
]`).replace(`lheading`,
|
|
27
|
+
`,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=/^\[[ xX]\] /.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(/^\[[ xX]\] +/,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>/\n.*\n/.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre: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(/\s+/g,` `),n=t[2]?t[2].replace(/^<(.*)>$/,`$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||!/[:|]/.test(t[2]))return;let n=zu(t[1]),r=t[2].replace(/^\||\| *$/g,``).split(`|`),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,``).split(`
|
|
28
|
+
`):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)/^ *-+: *$/.test(e)?a.align.push(`right`):/^ *:-+: *$/.test(e)?a.align.push(`center`):/^ *:-+ *$/.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(zu(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
29
|
+
`?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:Pu(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.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&&/^</.test(e)){if(!/>$/.test(e))return;let t=Bu(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Vu(t[2],`()`);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=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),Hu(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer)}}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(/\s+/g,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Hu(n,e,n[0],this.lexer)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(r&&!(r[3]&&n.match(/[\p{L}\p{N}]/u))&&(!(r[1]||r[2])||!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}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(/\n/g,` `),n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Pu(e,!0),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=Pu(t[1]),n=`mailto:`+e):(e=Pu(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=Pu(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=Pu(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;return e=this.lexer.state.inRawBlock?t[0]:Pu(t[0]),{type:`text`,raw:t[0],text:e}}}},Gu=/^(?:[ \t]*(?:\n|$))+/,Ku=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,qu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ju=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Yu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Xu=/(?:[*+-]|\d{1,9}[.)])/,Zu=Iu(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Xu).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/).getRegex(),Qu=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,$u=/^[^\n]+/,ed=/(?!\s*\])(?:\\.|[^\[\]\\])+/,td=Iu(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,ed).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nd=Iu(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Xu).getRegex(),rd=`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`,id=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ad=Iu(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,id).replace(`tag`,rd).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),od=Iu(Qu).replace(`hr`,Ju).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,rd).getRegex(),sd={blockquote:Iu(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,od).getRegex(),code:Ku,def:td,fences:qu,heading:Yu,hr:Ju,html:ad,lheading:Zu,list:nd,newline:Gu,paragraph:od,table:Ru,text:$u},cd=Iu(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Ju).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,rd).getRegex(),ld={...sd,table:cd,paragraph:Iu(Qu).replace(`hr`,Ju).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,cd).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,rd).getRegex()},ud={...sd,html:Iu(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,id).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:Ru,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Iu(Qu).replace(`hr`,Ju).replace(`heading`,` *#{1,6} *[^
|
|
30
|
+
]`).replace(`lheading`,Zu).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},dd=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,fd=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,pd=/^( {2,}|\\)\n(?!\s*$)/,md=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,hd=`\\p{P}\\p{S}`,gd=Iu(/^((?![*_])[\spunctuation])/,`u`).replace(/punctuation/g,hd).getRegex(),_d=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,vd=Iu(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,`u`).replace(/punct/g,hd).getRegex(),yd=Iu(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])`,`gu`).replace(/punct/g,hd).getRegex(),bd=Iu(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])`,`gu`).replace(/punct/g,hd).getRegex(),xd=Iu(/\\([punct])/,`gu`).replace(/punct/g,hd).getRegex(),Sd=Iu(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Cd=Iu(id).replace(`(?:-->|$)`,`-->`).getRegex(),wd=Iu(`^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`,Cd).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Td=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ed=Iu(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace(`label`,Td).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dd=Iu(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Td).replace(`ref`,ed).getRegex(),Od=Iu(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,ed).getRegex(),kd={_backpedal:Ru,anyPunctuation:xd,autolink:Sd,blockSkip:_d,br:pd,code:fd,del:Ru,emStrongLDelim:vd,emStrongRDelimAst:yd,emStrongRDelimUnd:bd,escape:dd,link:Ed,nolink:Od,punctuation:gd,reflink:Dd,reflinkSearch:Iu(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Dd).replace(`nolink`,Od).getRegex(),tag:wd,text:md,url:Ru},Ad={...kd,link:Iu(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Td).getRegex(),reflink:Iu(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Td).getRegex()},jd={...kd,escape:Iu(dd).replace(`])`,`~|])`).getRegex(),url:Iu(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,`i`).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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Md={...jd,br:Iu(pd).replace(`{2,}`,`*`).getRegex(),text:Iu(jd.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Nd={normal:sd,gfm:ld,pedantic:ud},Pd={normal:kd,gfm:jd,breaks:Md,pedantic:Ad},Fd=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Eu,this.options.tokenizer=this.options.tokenizer||new Wu,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={block:Nd.normal,inline:Pd.normal};this.options.pedantic?(t.block=Nd.pedantic,t.inline=Pd.pedantic):this.options.gfm&&(t.block=Nd.gfm,t.inline=this.options.breaks?Pd.breaks:Pd.gfm),this.tokenizer.rules=t}static get rules(){return{block:Nd,inline:Pd}}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(/\r\n|\r/g,`
|
|
31
31
|
`),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){this.options.pedantic&&(e=e.replace(/\t/g,` `).replace(/^ +$/gm,``));let r,i,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+=`
|
|
32
32
|
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&(i.type===`paragraph`||i.type===`text`)?(i.raw+=`
|
|
33
33
|
`+r.raw,i.text+=`
|
|
@@ -37,9 +37,9 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
37
37
|
`+r.raw,i.text+=`
|
|
38
38
|
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r),n=a.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&i.type===`text`?(i.raw+=`
|
|
39
39
|
`+r.raw,i.text+=`
|
|
40
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,a=e,o,s,c;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)e.includes(o[0].slice(o[0].lastIndexOf(`[`)+1,-1))&&(a=a.slice(0,o.index)+`[`+`a`.repeat(o[0].length-2)+`]`+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+`[`+`a`.repeat(o[0].length-2)+`]`+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,o.index)+`++`+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(s||(c=``),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>(n=r.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type===`text`&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type===`text`&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,c)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&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(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),n.raw.slice(-1)!==`_`&&(c=n.raw.slice(-1)),s=!0,r=t[t.length-1],r&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},
|
|
41
|
-
`;return r?`<pre><code class="language-`+
|
|
42
|
-
`:`<pre><code>`+(n?i:
|
|
40
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,a=e,o,s,c;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)e.includes(o[0].slice(o[0].lastIndexOf(`[`)+1,-1))&&(a=a.slice(0,o.index)+`[`+`a`.repeat(o[0].length-2)+`]`+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+`[`+`a`.repeat(o[0].length-2)+`]`+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,o.index)+`++`+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(s||(c=``),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>(n=r.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type===`text`&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type===`text`&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,c)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&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(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),n.raw.slice(-1)!==`_`&&(c=n.raw.slice(-1)),s=!0,r=t[t.length-1],r&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},Id=class{options;parser;constructor(e){this.options=e||Eu}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(/^\S*/)?.[0],i=e.replace(/\n$/,``)+`
|
|
41
|
+
`;return r?`<pre><code class="language-`+Pu(r)+`">`+(n?i:Pu(i,!0))+`</code></pre>
|
|
42
|
+
`:`<pre><code>`+(n?i:Pu(i,!0))+`</code></pre>
|
|
43
43
|
`}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return`<hr>
|
|
44
44
|
`}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+`>
|
|
45
45
|
`+r+`</`+i+`>
|
|
@@ -47,16 +47,16 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
47
47
|
<thead>
|
|
48
48
|
`+t+`</thead>
|
|
49
49
|
`+r+`</table>
|
|
50
|
-
`}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}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>${e}</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=
|
|
51
|
-
`+this.renderer.text(i);n+=t?this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o}]}):o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t){t||=this.renderer;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions&&this.options.extensions.renderers&&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`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}},
|
|
52
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+
|
|
53
|
-
`),n=[],r=[],i=null,a=()=>{r.length&&n.push(
|
|
50
|
+
`}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}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>${e}</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=Lu(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+t+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n}){let r=Lu(e);if(r===null)return n;e=r;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${t}"`),i+=`>`,i}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}},Ld=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``}},Rd=class e{options;renderer;textRenderer;constructor(e){this.options=e||Eu,this.options.renderer=this.options.renderer||new Id,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ld}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(t!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=`
|
|
51
|
+
`+this.renderer.text(i);n+=t?this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o}]}):o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t){t||=this.renderer;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions&&this.options.extensions.renderers&&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`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}},zd=class{options;block;constructor(e){this.options=e||Eu}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Fd.lex:Fd.lexInline}provideParser(){return this.block?Rd.parse:Rd.parseInline}},Bd=new class{defaults=Tu();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Rd;Renderer=Id;TextRenderer=Ld;Lexer=Fd;Tokenizer=Wu;Hooks=zd;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;for(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 Id(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 Wu(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 zd;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];t[r]=zd.passThroughHooks.has(n)?e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let n=i.call(t,e);return a.call(t,n)}:(...e)=>{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 Fd.lex(e,t??this.defaults)}parser(e,t){return Rd.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(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`));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?Fd.lex:Fd.lexInline,s=i.hooks?i.hooks.provideParser():e?Rd.parse:Rd.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=s(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
52
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Pu(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function Vd(e,t){return Bd.parse(e,t)}Vd.options=Vd.setOptions=function(e){return Bd.setOptions(e),Vd.defaults=Bd.defaults,Du(Vd.defaults),Vd},Vd.getDefaults=Tu,Vd.defaults=Eu,Vd.use=function(...e){return Bd.use(...e),Vd.defaults=Bd.defaults,Du(Vd.defaults),Vd},Vd.walkTokens=function(e,t){return Bd.walkTokens(e,t)},Vd.parseInline=Bd.parseInline,Vd.Parser=Rd,Vd.parser=Rd.parse,Vd.Renderer=Id,Vd.TextRenderer=Ld,Vd.Lexer=Fd,Vd.lexer=Fd.lex,Vd.Tokenizer=Wu,Vd.Hooks=zd,Vd.parse=Vd,Vd.options,Vd.setOptions,Vd.use,Vd.walkTokens,Vd.parseInline,Rd.parse,Fd.lex;var Hd={note:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,tip:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/></svg>`,important:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>`,warning:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>`,caution:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>`};function Ud(e){let t=e.split(`
|
|
53
|
+
`),n=[],r=[],i=null,a=()=>{r.length&&n.push(Wd(r.join(`
|
|
54
54
|
`))),r=[]};for(let e of t){let t=/^ {0,3}(`{3,}|~{3,})/.exec(e);i?(n.push(e),t&&t[1][0]===i.char&&t[1].length>=i.len&&/^ {0,3}[`~]+\s*$/.test(e)&&(i=null)):t?(a(),i={char:t[1][0],len:t[1].length},n.push(e)):r.push(e)}return a(),n.join(`
|
|
55
|
-
`)}function
|
|
55
|
+
`)}function Wd(e){return e.replace(/^((?:>[^\n]*\n?)+)/gm,e=>{let t=e.split(`
|
|
56
56
|
`),n=t[0],r=/^>\s*\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\](?:\s+(.*))?$/i.exec(n.trim());if(!r)return e;let i=r[1].toLowerCase(),a=r[2]?.trim()||i.toUpperCase(),o=t.slice(1).map(e=>e.replace(/^>\s?/,``)).join(`
|
|
57
57
|
`).trim();return`\n<div class="dmd-callout dmd-callout-${i}">
|
|
58
58
|
<div class="dmd-callout-header">
|
|
59
|
-
<span class="dmd-callout-icon">${
|
|
59
|
+
<span class="dmd-callout-icon">${Hd[i]}</span>
|
|
60
60
|
<span class="dmd-callout-title">${a}</span>
|
|
61
61
|
</div>
|
|
62
62
|
<div class="dmd-callout-body">
|
|
@@ -64,20 +64,20 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
64
64
|
${o}
|
|
65
65
|
|
|
66
66
|
</div>
|
|
67
|
-
</div>\n`})}var
|
|
67
|
+
</div>\n`})}var Gd=e.r(t.t());function Kd(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}var qd=`__DOCMEDOWN_MERMAID__`,Jd=null;function Yd(e=``){e&&`${e.replace(/\/+$/,``)}`}function Xd(){return globalThis[qd]}function Zd(){return Jd||(Jd=(async()=>{let e=Xd();if(e)return e;let t=await Promise.resolve().then(()=>require("./mermaid-BvOI3ZSW.js")).then(e=>e.t);return t.default??t})(),Jd.catch(()=>{Jd=null}),Jd)}function Qd(e){let t=e.match(/\bviewBox=["']\s*[-+\d.eE]+[\s,]+[-+\d.eE]+[\s,]+([-+\d.eE]+)[\s,]+([-+\d.eE]+)\s*["']/i),n=Number(t?t[1]:e.match(/\bwidth=["']([\d.]+)(?:px)?["']/i)?.[1]),r=Number(t?t[2]:e.match(/\bheight=["']([\d.]+)(?:px)?["']/i)?.[1]);return!Number.isFinite(n)||!Number.isFinite(r)||n<=0||r<=0?null:{width:n,height:r}}function $d(e,t,n=!1){if(e.width<=0||e.height<=0||t.width<=0||t.height<=0)return 1;let r=Math.min(t.width/e.width,t.height/e.height);return Math.max(.05,n?r:Math.min(1,r))}function ef(e,t){return{x:Math.max(0,(e.width-t.width)/2),y:Math.max(0,(e.height-t.height)/2)}}function tf(e,t,n){let r={x:e.x+t.x,y:e.y+t.y},i={x:Math.min(n.x,Math.max(-n.x,r.x)),y:Math.min(n.y,Math.max(-n.y,r.y))};return{camera:i,remainder:{x:r.x-i.x,y:r.y-i.y}}}function nf(e){return`\`\`\`mermaid\n${e.trim()}\n\`\`\``}function rf(e,t){let n=e.trim(),r=n.match(/^([^\s[]+)\s*\[([\s\S]*)\]\s*$/);if(r){let e=r[2].trim().replace(/^(["'])([\s\S]*)\1$/,`$2`).trim();return{id:r[1],label:e||r[1]}}let i=n.match(/^["']([\s\S]+)["']$/);return i?{id:`subgraph-${t}`,label:i[1].trim()}:{id:n.split(/\s+/)[0]||`subgraph-${t}`,label:n||`Subgraph ${t+1}`}}function af(e){let t=e.replace(/\r\n?/g,`
|
|
68
68
|
`).split(`
|
|
69
|
-
`),n=[],r=[];return t.forEach((e,i)=>{let a=e.match(/^\s*subgraph\s+(.+?)\s*$/i);if(a){n.push({startLine:i,...
|
|
70
|
-
`),startLine:e.startLine})}}),r.sort((e,t)=>e.startLine-t.startLine)}function
|
|
69
|
+
`),n=[],r=[];return t.forEach((e,i)=>{let a=e.match(/^\s*subgraph\s+(.+?)\s*$/i);if(a){n.push({startLine:i,...rf(a[1],i)});return}if(/^\s*end\s*;?\s*$/i.test(e)){let e=n.pop();if(!e)return;r.push({id:e.id,label:e.label,source:t.slice(e.startLine,i+1).join(`
|
|
70
|
+
`),startLine:e.startLine})}}),r.sort((e,t)=>e.startLine-t.startLine)}function of(e,t){let n=e.replace(/\r\n?/g,`
|
|
71
71
|
`).split(`
|
|
72
72
|
`).find(e=>/^\s*(?:graph|flowchart)\s+\S+/i.test(e)),r=t.replace(/\r\n?/g,`
|
|
73
73
|
`).split(`
|
|
74
74
|
`),i=Math.min(...r.filter(e=>e.trim()).map(e=>e.match(/^\s*/)?.[0].length??0)),a=r.map(e=>e.slice(i)).join(`
|
|
75
|
-
`);return
|
|
75
|
+
`);return nf(`${n?.trim()||`flowchart TD`}\n${a.trim()}`)}var sf=`ui-sans-serif, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif`,cf=`ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace`,lf={atlas:{light:{canvas:`#f7f7f5`,surface:`#ffffff`,surfaceRaised:`#f0f0ec`,ink:`#1a2332`,inkSecondary:`#4d5a6e`,rule:`#e0e1db`,accent:`#315cf5`,codeSurface:`#0f172a`,codeInk:`#e2e8f0`,fontFamily:sf},dark:{canvas:`#0f1620`,surface:`#16202e`,surfaceRaised:`#1c2836`,ink:`#edf1f6`,inkSecondary:`#a7b4c5`,rule:`#2a3949`,accent:`#6b93ff`,codeSurface:`#0a101a`,codeInk:`#dbe4ee`,fontFamily:sf}},blueprint:{light:{canvas:`#f2f5f7`,surface:`#fafcfd`,surfaceRaised:`#e8edf0`,ink:`#14212b`,inkSecondary:`#45606f`,rule:`#c6d3da`,accent:`#ef5340`,codeSurface:`#101b23`,codeInk:`#ccdae2`,fontFamily:sf},dark:{canvas:`#0f171e`,surface:`#121c24`,surfaceRaised:`#182731`,ink:`#dbe6ec`,inkSecondary:`#92aab8`,rule:`#24363f`,accent:`#ff6a55`,codeSurface:`#0a1116`,codeInk:`#cadbe4`,fontFamily:sf}},terminal:{light:{canvas:`#f3f4f1`,surface:`#fbfcfa`,surfaceRaised:`#e9ebe6`,ink:`#161c17`,inkSecondary:`#4a564d`,rule:`#c9cdc3`,accent:`#0c7c40`,codeSurface:`#0a0e0b`,codeInk:`#cfe8d4`,fontFamily:cf},dark:{canvas:`#0a0e0c`,surface:`#0e130f`,surfaceRaised:`#151d17`,ink:`#d8e6d8`,inkSecondary:`#93a794`,rule:`#26382a`,accent:`#39e87f`,codeSurface:`#060907`,codeInk:`#cde9d3`,fontFamily:cf}},editorial:{light:{canvas:`#faf6ee`,surface:`#fffdf7`,surfaceRaised:`#f2ecdf`,ink:`#22201a`,inkSecondary:`#665e4c`,rule:`#ded2ba`,accent:`#a34a33`,codeSurface:`#211d15`,codeInk:`#e8e0ce`,fontFamily:`Iowan Old Style, Palatino Linotype, Palatino, Georgia, serif`},dark:{canvas:`#171512`,surface:`#1c1915`,surfaceRaised:`#26221b`,ink:`#ece7db`,inkSecondary:`#b0a78f`,rule:`#363023`,accent:`#dd805f`,codeSurface:`#100e0a`,codeInk:`#e3dbc9`,fontFamily:`Iowan Old Style, Palatino Linotype, Palatino, Georgia, serif`}}};function uf(e,t,n){let r=n??lf[e][t],i={darkMode:t===`dark`,background:r.canvas,fontFamily:r.fontFamily,fontSize:`15px`,primaryColor:r.surface,primaryTextColor:r.ink,primaryBorderColor:e===`terminal`?r.accent:r.rule,secondaryColor:r.surfaceRaised,secondaryTextColor:r.ink,secondaryBorderColor:r.rule,tertiaryColor:r.surfaceRaised,tertiaryTextColor:r.inkSecondary,tertiaryBorderColor:r.rule,lineColor:r.accent,textColor:r.ink,edgeLabelBackground:r.canvas,clusterBkg:r.surfaceRaised,clusterBorder:r.rule,titleColor:r.ink,actorBkg:r.surface,actorTextColor:r.ink,actorBorder:r.rule,actorLineColor:r.rule,signalColor:r.inkSecondary,signalTextColor:r.ink,labelBoxBkgColor:r.surfaceRaised,labelBoxBorderColor:r.rule,labelTextColor:r.ink,loopTextColor:r.inkSecondary,noteBkgColor:r.surfaceRaised,noteTextColor:r.ink,noteBorderColor:r.rule,activationBkgColor:r.surfaceRaised,activationBorderColor:r.accent,sequenceNumberColor:r.codeInk,mainBkg:r.surface,nodeBorder:r.rule,git0:r.accent,git1:r.inkSecondary,git2:r.accent,pie1:r.accent,pie2:r.inkSecondary,pie3:r.rule,pieSectionTextColor:r.ink,pieStrokeColor:r.rule};return{startOnLoad:!1,securityLevel:`strict`,suppressErrorRendering:!0,htmlLabels:!1,theme:`base`,fontFamily:r.fontFamily,themeVariables:i,flowchart:{useMaxWidth:!0,htmlLabels:!1,curve:`basis`,nodeSpacing:55,rankSpacing:65,padding:14,diagramPadding:10},sequence:{useMaxWidth:!0,diagramMarginX:24,diagramMarginY:16,boxMargin:10,mirrorActors:!1}}}function df(e){let t=new TextEncoder().encode(e),n=``;return t.forEach(e=>{n+=String.fromCharCode(e)}),btoa(n)}function ff(e){let t=atob(e),n=Uint8Array.from(t,e=>e.charCodeAt(0));return new TextDecoder().decode(n)}var pf=[`atlas`,`blueprint`,`terminal`,`editorial`];function mf(){let e=`atlas`;if(typeof document>`u`)return{family:e,mode:`light`,tokens:lf[e].light};let t=document.documentElement,n=t.getAttribute(`data-dmd-theme`),r=n&&pf.includes(n)?n:e,i=t.getAttribute(`data-theme`)===`dark`?`dark`:`light`,a=lf[r][i],o=a;if(typeof getComputedStyle==`function`){let e=getComputedStyle(t),n=t=>e.getPropertyValue(t).trim();o={...a,...n(`--dmd-accent`)?{accent:n(`--dmd-accent`)}:{},...n(`--dmd-code-bg`)?{codeSurface:n(`--dmd-code-bg`)}:{},...n(`--dmd-code-text`)?{codeInk:n(`--dmd-code-text`)}:{}}}return{family:r,mode:i,tokens:o}}var hf=0,gf=Promise.resolve();async function _f(e,t,n,r){let i=await Zd(),a=gf.then(async()=>{i.initialize(uf(t,n,r)),await i.parse(e);let a=`dmd-diagram-svg-${Date.now().toString(36)}-${hf++}`,{svg:o}=await i.render(a,e);return o});return gf=a.then(()=>void 0,()=>void 0),a}var vf=`<svg class="dmd-table-caption-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><path d="M3 9h18"/><path d="M3 15h18"/><path d="M9 3v18"/><path d="M15 3v18"/></svg>`,yf=`<svg class="copy-icon" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,bf=`<svg class="check-icon" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>`,xf=`<svg class="dmd-table-copy-chevron" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>`,Sf=[{id:`markdown`,label:`Markdown`,badge:`MD`,description:`For documents`},{id:`html`,label:`HTML`,badge:`<>`,description:`For web pages`},{id:`csv`,label:`CSV`,badge:`CSV`,description:`For spreadsheets`}];function Cf(e){return e?` data-align="${e}"`:``}function wf(e){let{header:t,rows:n,caption:r}=e,i=t?.length?`<thead><tr>${t.map(e=>`<th${Cf(e.align)}>${e.html}</th>`).join(``)}</tr></thead>`:``,a=`<tbody>${n.map(e=>`<tr>${e.map(e=>`<td${Cf(e.align)}>${e.html}</td>`).join(``)}</tr>`).join(``)}</tbody>`,o=Sf.map(e=>`<button type="button" class="dmd-table-copy-item" role="menuitem" tabindex="-1" data-dmd-table-copy="${e.id}" title="Copy as ${e.label} (${e.description.toLowerCase()})"><span class="dmd-table-copy-format">${e.badge}</span><span class="dmd-table-copy-text"><span class="dmd-table-copy-name">${e.label}</span><span class="dmd-table-copy-description">${e.description}</span></span></button>`).join(``),s=Math.max(t?.length??0,...n.map(e=>e.length),0),c=`${n.length} ${n.length===1?`row`:`rows`} · ${s} ${s===1?`column`:`columns`}`;return`
|
|
76
76
|
<div class="dmd-table-block" data-dmd-table>
|
|
77
77
|
<div class="dmd-table-toolbar">
|
|
78
|
-
<span class="dmd-table-caption">${
|
|
78
|
+
<span class="dmd-table-caption">${vf}${r?`<span class="dmd-table-caption-text">${Kd(r)}</span>`:``}<span class="dmd-table-dimensions">${c}</span></span>
|
|
79
79
|
<div class="dmd-table-copy">
|
|
80
|
-
<button type="button" class="dmd-table-copy-btn" data-dmd-table-toggle aria-haspopup="menu" aria-expanded="false" title="Copy table (Markdown, HTML, CSV)">${
|
|
80
|
+
<button type="button" class="dmd-table-copy-btn" data-dmd-table-toggle aria-haspopup="menu" aria-expanded="false" title="Copy table (Markdown, HTML, CSV)">${yf}${bf}<span class="dmd-table-copy-btn-text">Copy</span><span class="dmd-table-copy-label dmd-sr-only">Copy table</span>${xf}</button>
|
|
81
81
|
<div class="dmd-table-copy-menu" role="menu" aria-label="Copy table as" hidden>${o}</div>
|
|
82
82
|
<span class="dmd-sr-only" data-dmd-table-status role="status" aria-live="polite"></span>
|
|
83
83
|
</div>
|
|
@@ -89,28 +89,28 @@ ${o}
|
|
|
89
89
|
</table>
|
|
90
90
|
</div>
|
|
91
91
|
</div>
|
|
92
|
-
`}var
|
|
92
|
+
`}var Tf={comma:`,`,semicolon:`;`,tab:` `,pipe:`|`};function Ef(e,t){return e?Tf[e.toLowerCase()]||(e===`\\t`?` `:e.length===1?e:t):t}function Df(e){let t=e.split(/\r?\n/).find(e=>e.trim()!==``)??``,n=`,`,r=0;for(let e of[`,`,`;`,` `,`|`]){let i=t.split(e).length-1;i>r&&(n=e,r=i)}return n}function Of(e,t=`,`){let n=[],r=[],i=``,a=!1,o=!1,s=()=>{r.push(i),i=``},c=()=>{s(),(r.some(e=>e.trim()!==``)||r.length>1)&&n.push(r),r=[],o=!1};for(let n=0;n<e.length;n++){let r=e[n];if(a){r===`"`?e[n+1]===`"`?(i+=`"`,n++):a=!1:i+=r;continue}r===`"`&&i===``?(a=!0,o=!0):r===t?(s(),o=!0):r===`
|
|
93
93
|
`||r===`\r`?(r===`\r`&&e[n+1]===`
|
|
94
|
-
`&&n++,c()):(i+=r,o=!0)}return(o||i!==``||r.length>0)&&c(),n}function
|
|
95
|
-
`)}function
|
|
96
|
-
`)}function
|
|
94
|
+
`&&n++,c()):(i+=r,o=!0)}return(o||i!==``||r.length>0)&&c(),n}function kf(e,t){let n=RegExp(`\\b${t}=(?:"([^"]*)"|'([^']*)')`).exec(e);return n?n[1]??n[2]:RegExp(`\\b${t}=([^\\s"']+)`).exec(e)?.[1]}var Af=/^[-+]?(?:\d{1,3}(?:[,_]\d{3})+|\d+)?(?:\.\d+)?%?$/;function jf(e){let t=e.map(e=>e.trim()).filter(e=>e!==``);return t.length>0&&t.every(e=>Af.test(e)&&/\d/.test(e))}function Mf(e,t,n,r){let i=kf(t,`delimiter`),a=Of(e,n===`tsv`?Ef(i,` `):i?Ef(i,`,`):Df(e)),o=kf(t,`header`)?.toLowerCase()!==`false`,s=kf(t,`markdown`)?.toLowerCase()===`true`,c=kf(t,`title`);if(a.length===0)return wf({header:null,rows:[],caption:c});let l=Math.max(...a.map(e=>e.length)),u=a.map(e=>[...e,...Array(l-e.length).fill(``)]),d=o?u[0]??null:null,f=o?u.slice(1):u,p=Array.from({length:l},(e,t)=>jf(f.map(e=>e[t]))?`right`:null),m=e=>s?r(e):Kd(e);return wf({header:d?d.map((e,t)=>({html:m(e),align:p[t]})):null,rows:f.map(e=>e.map((e,t)=>({html:m(e),align:p[t]}))),caption:c})}function Nf(e){return Math.max(e.headers.length,...e.rows.map(e=>e.length),0)}function Pf(e,t){return Array.from({length:t},(t,n)=>e[n]??``)}function Ff(e){let t=e=>/[",\r\n]/.test(e)?`"${e.replace(/"/g,`""`)}"`:e,n=Nf(e),r=[];e.headers.length&&r.push(Pf(e.headers,n));for(let t of e.rows)r.push(Pf(t,n));return r.map(e=>e.map(t).join(`,`)).join(`
|
|
95
|
+
`)}function If(e){let t=Nf(e),n=e=>e.replace(/\|/g,`\\|`).replace(/\r?\n/g,`<br>`).trim(),r=e=>`| ${Pf(e,t).map(n).join(` | `)} |`,i=Array.from({length:t},(t,n)=>{let r=e.aligns[n];return r===`center`?`:---:`:r===`right`?`---:`:r===`left`?`:---`:`---`});return[r(e.headers),`| ${i.join(` | `)} |`,...e.rows.map(r)].join(`
|
|
96
|
+
`)}function Lf(e){let t=Nf(e),n=t=>e.aligns[t]?` style="text-align: ${e.aligns[t]}"`:``,r=(e,r)=>` <tr>\n${Pf(r,t).map((t,r)=>` <${e}${n(r)}>${Kd(t)}</${e}>`).join(`
|
|
97
97
|
`)}\n </tr>`;return`<table>\n${e.headers.length?` <thead>\n${r(`th`,e.headers)}\n </thead>\n`:``}${` <tbody>\n${e.rows.map(e=>r(`td`,e)).join(`
|
|
98
|
-
`)}\n </tbody>`}\n</table>`}function
|
|
98
|
+
`)}\n </tbody>`}\n</table>`}function Rf(e,t){return t===`csv`?Ff(e):t===`html`?Lf(e):If(e)}function zf(e){let t=e=>(e.textContent??``).replace(/\s+/g,` `).trim(),n=e=>{let t=e.getAttribute(`data-align`);return t===`left`||t===`center`||t===`right`?t:null},r=e.querySelector(`thead tr`),i=r?Array.from(r.children).map(t):[],a=r?Array.from(r.children).map(n):Array.from(e.querySelector(`tbody tr`)?.children??[]).map(n);return{headers:i,rows:Array.from(e.querySelectorAll(`tbody tr`)).map(e=>Array.from(e.children).map(t)),aligns:a}}Gd.default.languages.svelte={script:{pattern:/(<script\b[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,greedy:!0,inside:Gd.default.languages.javascript},style:{pattern:/(<style\b[^>]*>)[\s\S]*?(?=<\/style>)/i,lookbehind:!0,greedy:!0,inside:Gd.default.languages.css},comment:/<!--[\s\S]*?-->/,"svelte-directive":{pattern:/<\/?svelte:[\w-]+(?:\s+(?:[^>"']|"[^"]*"|'[^']*')*)?\/?>(?=\s|$)/i,greedy:!0,inside:Gd.default.languages.markup},tag:{pattern:/<\/?(?!\d)[^\s>/=$<%]+(?:\s+(?:[^\s>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?))*\s*\/?>/,greedy:!0,inside:Gd.default.languages.markup},interpolation:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,greedy:!0,inside:Gd.default.languages.javascript}};function Bf(e){return`<div class="dmd-diagram-host" data-dmd-diagram="${df(e)}"></div>`}var Vf={js:`javascript`,ts:`typescript`,py:`python`,sh:`bash`,shell:`bash`,zsh:`bash`,yml:`yaml`,md:`markdown`,rs:`rust`,golang:`go`,kt:`kotlin`,rb:`ruby`,cs:`csharp`,"c++":`cpp`,"c#":`csharp`,gql:`graphql`},Hf={ts:`#3178c6`,tsx:`#3178c6`,js:`#f7df1e`,jsx:`#f7df1e`,mjs:`#f7df1e`,cjs:`#f7df1e`,css:`#a855f7`,scss:`#a855f7`,less:`#a855f7`,html:`#f97316`,htm:`#f97316`,json:`#eab308`,jsonc:`#eab308`,yaml:`#ef4444`,yml:`#ef4444`,md:`#94a3b8`,markdown:`#94a3b8`,py:`#3b82f6`,sh:`#22c55e`,bash:`#22c55e`,zsh:`#22c55e`,rs:`#f97316`,go:`#38bdf8`,svelte:`#ff3e00`,vue:`#42b883`,svg:`#a855f7`,xml:`#f97316`,sql:`#a78bfa`,graphql:`#a855f7`,gql:`#a855f7`,dockerfile:`#38bdf8`,txt:`#64748b`,toml:`#94a3b8`,ini:`#94a3b8`},Uf={typescript:Hf.ts,javascript:Hf.js,jsx:Hf.jsx,tsx:Hf.tsx,python:Hf.py,bash:Hf.sh,css:Hf.css,scss:Hf.scss,json:Hf.json,jsonc:Hf.json,yaml:Hf.yaml,markdown:Hf.md,html:Hf.html,sql:Hf.sql,svelte:Hf.svelte,go:Hf.go,rust:Hf.rs,graphql:Hf.graphql,xml:Hf.xml,toml:Hf.toml};function Wf(e){let t=e.trim().toLowerCase();return Vf[t]||t}function Gf(e,t,n){let r=Wf(e);Gd.default.languages[r]=t,n&&(Uf[r]=n,Hf[r]=n)}function Kf(e,t=``){let n=Wf(t);if(n===`mermaid`)return Bf(e);if(!n||n===`text`||n===`plain`||n===`txt`)return Kd(e);let r=Gd.default.languages[n];return r?Gd.default.highlight(e,r,n):Kd(e)}var qf=`<svg class="dmd-code-file-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>`;function Jf(e){let t=e.replace(/\\/g,`/`),n=t.lastIndexOf(`/`);if(n===-1)return`<span class="dmd-code-filename" style="color:${Hf[t.includes(`.`)?t.split(`.`).pop().toLowerCase():``]||`#94a3b8`}">${qf}${Kd(t)}</span>`;let r=t.slice(0,n+1),i=t.slice(n+1),a=Hf[i.includes(`.`)?i.split(`.`).pop().toLowerCase():``]||`#94a3b8`;return`<span class="dmd-code-path">${Kd(r)}</span><span class="dmd-code-filename" style="color:${a}">${qf}${Kd(i)}</span>`}var Yf=`<svg class="copy-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,Xf=`<svg class="copy-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/><line x1="12" y1="12" x2="18" y2="12" stroke-width="2"/><line x1="12" y1="16" x2="16" y2="16" stroke-width="2"/></svg>`,Zf=`<svg class="check-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>`;function Qf(e,t=``){let n=Wf(t.trim().split(/\s+/)[0]||`text`)||`text`,r=``,i=t.match(/title=["']([^"']+)["']/);if(i&&(r=i[1]),n.toLowerCase()===`mermaid`)return Bf(e);if(n===`csv`||n===`tsv`)return Mf(e,t,n,e=>Vd.parseInline(e));function a(e,t,n){let r=5381,i=`${t}:${n}:${e}`;for(let e=0;e<i.length;e++)r=(r<<5)+r^i.charCodeAt(e);return`code-${(r>>>0).toString(36)}`}let o=Kf(e,n),s=a(e,n,t),c=$f(t),l=c.size>0,u=Uf[n];return`
|
|
99
99
|
<div class="dmd-code-block-wrapper" data-lang="${n}">
|
|
100
100
|
<div class="dmd-code-header">
|
|
101
|
-
<div class="dmd-code-header-left">${r?`<span class="dmd-code-title">${
|
|
101
|
+
<div class="dmd-code-header-left">${r?`<span class="dmd-code-title">${Jf(r)}</span>`:`<span class="dmd-code-lang"${u?` style="--dmd-lang-color:${u}"`:``}>${n.toUpperCase()}</span>`}</div>
|
|
102
102
|
<div class="dmd-code-header-right">
|
|
103
|
-
${l?`<button type="button" class="dmd-copy-btn dmd-copy-selected-btn" data-dmd-copy-selected aria-label="Copy highlighted lines" title="Copy highlighted lines">${
|
|
104
|
-
<button type="button" class="dmd-copy-btn" data-dmd-copy aria-label="Copy code" title="Copy code">${
|
|
103
|
+
${l?`<button type="button" class="dmd-copy-btn dmd-copy-selected-btn" data-dmd-copy-selected aria-label="Copy highlighted lines" title="Copy highlighted lines">${Xf}${Zf}</button>`:``}
|
|
104
|
+
<button type="button" class="dmd-copy-btn" data-dmd-copy aria-label="Copy code" title="Copy code">${Yf}${Zf}</button>
|
|
105
105
|
</div>
|
|
106
106
|
</div>
|
|
107
|
-
<pre class="language-${n}" tabindex="0"><code id="${s}" class="language-${n}">${
|
|
107
|
+
<pre class="language-${n}" tabindex="0"><code id="${s}" class="language-${n}">${ep(o,c)}</code></pre>
|
|
108
108
|
</div>
|
|
109
|
-
`}function
|
|
110
|
-
`);d=t;for(let e=0;e<n.length;e++)e>0&&(u(),l()),n[e]!==``&&(r+=n[e],i=!0)}return i||c.length>0?u():n.length=o,n.join(``)}function
|
|
109
|
+
`}function $f(e){let t=new Set,n=/\{([\d\s,-]+)\}/.exec(e);if(!n)return t;for(let e of n[1].split(`,`)){let[n,r]=e.split(`-`).map(e=>Number.parseInt(e.trim(),10));if(Number.isNaN(n))continue;let i=r===void 0||Number.isNaN(r)?n:r;for(let e=Math.max(1,n);e<=i;e++)t.add(e)}return t}function ep(e,t=new Set){let n=[],r=``,i=!1,a=1,o=0,s=!1,c=[],l=()=>{o=n.length,i=!1,r=``,s=c.length>0,n.push(`<span class="dmd-code-line${t.has(a)?` dmd-code-line-active`:``}">`);for(let e of c)n.push(e)},u=()=>{s||(r=tp(r));for(let e=0;e<c.length;e++)r+=`</span>`;n.push(r,`</span>`),a++};l();let d=0;for(;d<e.length;)if(e[d]===`<`){let t=e.indexOf(`>`,d);if(t===-1){r+=e.slice(d),i=!0;break}let n=e.slice(d,t+1);d=t+1,r+=n,n.startsWith(`</`)?c.pop():c.push(n)}else{let t=e.indexOf(`<`,d);t===-1&&(t=e.length);let n=e.slice(d,t).split(`
|
|
110
|
+
`);d=t;for(let e=0;e<n.length;e++)e>0&&(u(),l()),n[e]!==``&&(r+=n[e],i=!0)}return i||c.length>0?u():n.length=o,n.join(``)}function tp(e){let t=0,n=``;for(;t<e.length;)if(e[t]===` `)n+=`<span class="dmd-ws-space"> </span>`,t++;else if(e[t]===` `)n+=`<span class="dmd-ws-tab"> </span>`,t++;else break;return t>0?n+e.slice(t):e}var np=new Set([`badge`,`button`,`kbd`]),rp=np,ip=/<([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)(\/?)>/g,ap=/<(\/?)([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)(\/?)>/g,op=/<\/([A-Z][A-Za-z0-9]*)\s*>/g;function sp(e,t){let n=t.flags.includes(`g`)?t.flags:`${t.flags}g`,r=new RegExp(t.source,n),i=[],a=r.exec(e);for(;a!==null;)i.push([a.index,a.index+a[0].length]),a=r.exec(e);return i}function cp(e,t){for(let n=0;n<t.length;n++)if(e>=t[n][0]&&e<t[n][1])return!0;return!1}function lp(e){return[...sp(e,/(`{3,})[\s\S]*?\1/g),...sp(e,/(~{3,})[\s\S]*?\1/g),...sp(e,/(`+)[\s\S]*?\1/g)]}function up(e,t,n){ip.lastIndex=t;let r;for(;;){if(r=ip.exec(e),r===null)return null;if(!cp(r.index,n)&&!np.has(r[1].toLowerCase()))return{tag:r[1],full:r[0],start:r.index,end:r.index+r[0].length,selfClosing:r[3]===`/`}}}function dp(e,t,n){let r=1;ap.lastIndex=t.end;let i;for(;i=ap.exec(e),i!==null;)if(!cp(i.index,n)&&i[2]===t.tag&&i[4]!==`/`){if(i[1]===`/`){if(--r,r===0)return{full:i[0],start:i.index,end:i.index+i[0].length}}else r+=1}for(op.lastIndex=t.end;;){if(i=op.exec(e),i===null)return null;if(!cp(i.index,n)&&i[1].toLowerCase()===t.tag.toLowerCase())return{full:i[0],start:i.index,end:i.index+i[0].length}}}function fp(e){let t=e.split(`
|
|
111
111
|
`),n=null;for(let e of t){if(e.trim()===``)continue;let t=/^( +)/.exec(e);if(!t){n=0;break}let r=t[1].length;n=n===null?r:Math.min(n,r)}if(!n)return e;let r=` `.repeat(n);return t.map(e=>e.startsWith(r)?e.slice(n):e).join(`
|
|
112
|
-
`)}function
|
|
113
|
-
`).replace(/\n+$/,``),s=/(`{3,})[^\n]*\n[\s\S]*?\1|(~{3,})[^\n]*\n[\s\S]*?\2/g;if(!s.test(i))return o(i);let c=e=>{let t=/^(`{3,}|~{3,})([^\n]*)\n([\s\S]*?)\1\s*$/.exec(e);return t?Zf(t[3].replace(/\n$/,``),t[2].trim()):e},l=``,u=0;s.lastIndex=0;let d=s.exec(i);for(;d!==null;)l+=o(i.slice(u,d.index)),l+=`\n@@DMD-FENCE-${r.length}@@\n`,r.push(c(d[0])),u=d.index+d[0].length,d=s.exec(i);return l+=o(i.slice(u)),l}var pp=/(?:<p>)?\s*@@DMD-FENCE-(\d+)@@\s*(?:<\/p>)?/g;function mp(e,t){return t.length===0||!e?.includes(`@@DMD-FENCE-`)?e:e.replace(pp,(e,n)=>t[Number(n)]??``)}function hp(e,t,n,r){let i=cp(e),a=``,o=0;for(;;){let s=lp(e,o,i);if(s===null){let i=e.slice(o);a+=t===null?i:fp(i,t,n,r);break}let c=e.slice(o,s.start);if(a+=t===null?c:fp(c,t,n,r),s.selfClosing){a+=s.full,o=s.end;continue}let l=up(e,s,i);if(l===null){a+=s.full,o=s.end;continue}let u=hp(e.slice(s.end,l.start),s.tag,n,r);a+=s.full+u+l.full,o=l.end}return a}function gp(e){if(!e?.includes(`<`)||!/<[A-Z][A-Za-z0-9]*\b/.test(e))return{html:e,fences:[]};let t=new Bd.Renderer,n=[];return{html:hp(e,null,t,n),fences:n}}function _p(e){return e?.includes(`/>`)?e.replace(/<([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)\/>/g,(e,t,n)=>`<${t}${n}></${t}>`):e}var vp=/<p>\s*<([A-Z][A-Za-z0-9]*)\b/g,yp=/<p\b|<\/p>/g;function bp(e,t){yp.lastIndex=t;let n=1,r=yp.exec(e);for(;r;){if(n+=r[0]===`</p>`?-1:1,n===0)return r.index;r=yp.exec(e)}return-1}function xp(e){let t=``,n=0;vp.lastIndex=0;let r=vp.exec(e);for(;r;){if(tp.has(r[1].toLowerCase())){r=vp.exec(e);continue}let i=r.index+r[0].length,a=bp(e,i),o=a;for(;o>i&&/\s/.test(e[o-1]);)o--;if(t+=e.slice(n,r.index)+r[0].slice(r[0].length-r[1].length-1),a===-1)return t+=e.slice(i),t;t+=e.slice(i,o),n=a+4,r=vp.exec(e)}return t+e.slice(n)}function Sp(e){if(!e?.includes(`<`))return e;let t=xp(e);return t=t.replace(/(<\/([A-Z][A-Za-z0-9]*)\s*>)\s*<\/p>/g,(e,t,n)=>tp.has(n.toLowerCase())?e:t),t}var Cp={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`,nbsp:` `,copy:`©`,reg:`®`,trade:`™`,middot:`·`,hellip:`…`,mdash:`—`,ndash:`–`,bull:`•`,deg:`°`,times:`×`,plusmn:`±`,laquo:`«`,raquo:`»`,sect:`§`,para:`¶`};function wp(e){return Number.isInteger(e)&&e>0&&e<=1114111?String.fromCodePoint(e):``}function Tp(e){return e.replace(/&#x([0-9a-f]+);/gi,(e,t)=>wp(parseInt(t,16))).replace(/&#([0-9]+);/g,(e,t)=>wp(Number(t))).replace(/&([a-z][a-z0-9]*);/gi,(e,t)=>Cp[t.toLowerCase()]??e)}var Ep=/!\[([^\]]*)\]\([^)]*\)/g,Dp=/\[([^\]]+)\]\([^)]*\)/g,Op=/`([^`]+)`/g,kp=/\*\*([^*\n]+)\*\*/g,Ap=/__([^_\n]+)__/g,jp=/\*([^*\n]+)\*/g,Mp=/~~([^~\n]+)~~/g;function Np(e){return Tp(e.replace(Ep,`$1`).replace(Dp,`$1`).replace(Op,`$1`).replace(kp,`$1`).replace(Ap,`$1`).replace(jp,`$1`).replace(Mp,`$1`)).replace(/\s+/g,` `).trim()}var Pp=e.n({ParseError:()=>B,SETTINGS_SCHEMA:()=>Wp,__defineFunction:()=>Sg,__defineMacro:()=>Z,__defineSymbol:()=>H,__domTree:()=>Yy,__parse:()=>Wy,__renderToDomTree:()=>Ky,__renderToHTMLTree:()=>qy,__setFontMetrics:()=>th,default:()=>Xy,render:()=>Hy,renderToString:()=>Uy,version:()=>Jy}),B=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}},Fp=/([A-Z])/g,Ip=e=>e.replace(Fp,`-$1`).toLowerCase(),Lp={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},Rp=/[&><"']/g,zp=e=>String(e).replace(Rp,e=>Lp[e]),Bp=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Bp(e.body[0]):e:e.type===`font`?Bp(e.body):e,Vp=new Set([`mathord`,`textord`,`atom`]),Hp=e=>Vp.has(Bp(e).type),Up=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`},Wp={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 Gp(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 Kp(e){return e.default===void 0?Gp(Array.isArray(e.type)?e.type[0]:e.type):e.default}function qp(e,t,n,r){var i=n[t];e[t]=i===void 0?Kp(r):r.processor?r.processor(i):i}var Jp=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(Wp)){var n=Wp[t];n&&qp(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 B(`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(`LaTeX-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=Up(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Yp=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 im[am[this.id]]}sub(){return im[om[this.id]]}fracNum(){return im[sm[this.id]]}fracDen(){return im[cm[this.id]]}cramp(){return im[lm[this.id]]}text(){return im[um[this.id]]}isTight(){return this.size>=2}},Xp=0,Zp=1,Qp=2,$p=3,em=4,tm=5,nm=6,rm=7,im=[new Yp(Xp,0,!1),new Yp(Zp,0,!0),new Yp(Qp,1,!1),new Yp($p,1,!0),new Yp(em,2,!1),new Yp(tm,2,!0),new Yp(nm,3,!1),new Yp(rm,3,!0)],am=[em,tm,em,tm,nm,rm,nm,rm],om=[tm,tm,tm,tm,rm,rm,rm,rm],sm=[Qp,$p,em,tm,nm,rm,nm,rm],cm=[$p,$p,tm,tm,rm,rm,rm,rm],lm=[Zp,Zp,$p,$p,tm,tm,rm,rm],um=[Xp,Zp,Qp,$p,Qp,$p,Qp,$p],dm={DISPLAY:im[Xp],TEXT:im[Qp],SCRIPT:im[em],SCRIPTSCRIPT:im[nm]},fm=[{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 pm(e){for(var t=0;t<fm.length;t++)for(var n=fm[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 mm=[];fm.forEach(e=>e.blocks.forEach(e=>mm.push(...e)));function hm(e){for(var t=0;t<mm.length;t+=2)if(e>=mm[t]&&e<=mm[t+1])return!0;return!1}var gm=e=>e+` `+e,_m=80,vm=function(e,t){return`M95,`+(622+e+t)+`
|
|
112
|
+
`)}function pp(e,t,n,r){if(!e?.trim())return e;let i=fp(e).trim(),a=rp.has(t.toLowerCase()),o=e=>(a?Vd.parseInline(e,{renderer:n,gfm:!0,breaks:!1}):Vd.parse(e,{renderer:n,gfm:!0,breaks:!1})).replace(/\n{2,}/g,`
|
|
113
|
+
`).replace(/\n+$/,``),s=/(`{3,})[^\n]*\n[\s\S]*?\1|(~{3,})[^\n]*\n[\s\S]*?\2/g;if(!s.test(i))return o(i);let c=e=>{let t=/^(`{3,}|~{3,})([^\n]*)\n([\s\S]*?)\1\s*$/.exec(e);return t?Qf(t[3].replace(/\n$/,``),t[2].trim()):e},l=``,u=0;s.lastIndex=0;let d=s.exec(i);for(;d!==null;)l+=o(i.slice(u,d.index)),l+=`\n@@DMD-FENCE-${r.length}@@\n`,r.push(c(d[0])),u=d.index+d[0].length,d=s.exec(i);return l+=o(i.slice(u)),l}var mp=/(?:<p>)?\s*@@DMD-FENCE-(\d+)@@\s*(?:<\/p>)?/g;function hp(e,t){return t.length===0||!e?.includes(`@@DMD-FENCE-`)?e:e.replace(mp,(e,n)=>t[Number(n)]??``)}function gp(e,t,n,r){let i=lp(e),a=``,o=0;for(;;){let s=up(e,o,i);if(s===null){let i=e.slice(o);a+=t===null?i:pp(i,t,n,r);break}let c=e.slice(o,s.start);if(a+=t===null?c:pp(c,t,n,r),s.selfClosing){a+=s.full,o=s.end;continue}let l=dp(e,s,i);if(l===null){a+=s.full,o=s.end;continue}let u=gp(e.slice(s.end,l.start),s.tag,n,r);a+=s.full+u+l.full,o=l.end}return a}function _p(e){if(!e?.includes(`<`)||!/<[A-Z][A-Za-z0-9]*\b/.test(e))return{html:e,fences:[]};let t=new Vd.Renderer,n=[];return{html:gp(e,null,t,n),fences:n}}function vp(e){return e?.includes(`/>`)?e.replace(/<([A-Z][A-Za-z0-9]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)\/>/g,(e,t,n)=>`<${t}${n}></${t}>`):e}var yp=/<p>\s*<([A-Z][A-Za-z0-9]*)\b/g,bp=/<p\b|<\/p>/g;function xp(e,t){bp.lastIndex=t;let n=1,r=bp.exec(e);for(;r;){if(n+=r[0]===`</p>`?-1:1,n===0)return r.index;r=bp.exec(e)}return-1}function Sp(e){let t=``,n=0;yp.lastIndex=0;let r=yp.exec(e);for(;r;){if(np.has(r[1].toLowerCase())){r=yp.exec(e);continue}let i=r.index+r[0].length,a=xp(e,i),o=a;for(;o>i&&/\s/.test(e[o-1]);)o--;if(t+=e.slice(n,r.index)+r[0].slice(r[0].length-r[1].length-1),a===-1)return t+=e.slice(i),t;t+=e.slice(i,o),n=a+4,r=yp.exec(e)}return t+e.slice(n)}function Cp(e){if(!e?.includes(`<`))return e;let t=Sp(e);return t=t.replace(/(<\/([A-Z][A-Za-z0-9]*)\s*>)\s*<\/p>/g,(e,t,n)=>np.has(n.toLowerCase())?e:t),t}var wp={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`,nbsp:` `,copy:`©`,reg:`®`,trade:`™`,middot:`·`,hellip:`…`,mdash:`—`,ndash:`–`,bull:`•`,deg:`°`,times:`×`,plusmn:`±`,laquo:`«`,raquo:`»`,sect:`§`,para:`¶`};function Tp(e){return Number.isInteger(e)&&e>0&&e<=1114111?String.fromCodePoint(e):``}function Ep(e){return e.replace(/&#x([0-9a-f]+);/gi,(e,t)=>Tp(parseInt(t,16))).replace(/&#([0-9]+);/g,(e,t)=>Tp(Number(t))).replace(/&([a-z][a-z0-9]*);/gi,(e,t)=>wp[t.toLowerCase()]??e)}var Dp=/!\[([^\]]*)\]\([^)]*\)/g,Op=/\[([^\]]+)\]\([^)]*\)/g,kp=/`([^`]+)`/g,Ap=/\*\*([^*\n]+)\*\*/g,jp=/__([^_\n]+)__/g,Mp=/\*([^*\n]+)\*/g,Np=/~~([^~\n]+)~~/g;function Pp(e){return Ep(e.replace(Dp,`$1`).replace(Op,`$1`).replace(kp,`$1`).replace(Ap,`$1`).replace(jp,`$1`).replace(Mp,`$1`).replace(Np,`$1`)).replace(/\s+/g,` `).trim()}var Fp=e.n({ParseError:()=>B,SETTINGS_SCHEMA:()=>Gp,__defineFunction:()=>Cg,__defineMacro:()=>Z,__defineSymbol:()=>H,__domTree:()=>Xy,__parse:()=>Gy,__renderToDomTree:()=>qy,__renderToHTMLTree:()=>Jy,__setFontMetrics:()=>nh,default:()=>Zy,render:()=>Uy,renderToString:()=>Wy,version:()=>Yy}),B=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}},Ip=/([A-Z])/g,Lp=e=>e.replace(Ip,`-$1`).toLowerCase(),Rp={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},zp=/[&><"']/g,Bp=e=>String(e).replace(zp,e=>Rp[e]),Vp=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Vp(e.body[0]):e:e.type===`font`?Vp(e.body):e,Hp=new Set([`mathord`,`textord`,`atom`]),Up=e=>Hp.has(Vp(e).type),Wp=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`},Gp={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 Kp(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 qp(e){return e.default===void 0?Kp(Array.isArray(e.type)?e.type[0]:e.type):e.default}function Jp(e,t,n,r){var i=n[t];e[t]=i===void 0?qp(r):r.processor?r.processor(i):i}var Yp=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(Gp)){var n=Gp[t];n&&Jp(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 B(`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(`LaTeX-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=Wp(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Xp=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 am[om[this.id]]}sub(){return am[sm[this.id]]}fracNum(){return am[cm[this.id]]}fracDen(){return am[lm[this.id]]}cramp(){return am[um[this.id]]}text(){return am[dm[this.id]]}isTight(){return this.size>=2}},Zp=0,Qp=1,$p=2,em=3,tm=4,nm=5,rm=6,im=7,am=[new Xp(Zp,0,!1),new Xp(Qp,0,!0),new Xp($p,1,!1),new Xp(em,1,!0),new Xp(tm,2,!1),new Xp(nm,2,!0),new Xp(rm,3,!1),new Xp(im,3,!0)],om=[tm,nm,tm,nm,rm,im,rm,im],sm=[nm,nm,nm,nm,im,im,im,im],cm=[$p,em,tm,nm,rm,im,rm,im],lm=[em,em,nm,nm,im,im,im,im],um=[Qp,Qp,em,em,nm,nm,im,im],dm=[Zp,Qp,$p,em,$p,em,$p,em],fm={DISPLAY:am[Zp],TEXT:am[$p],SCRIPT:am[tm],SCRIPTSCRIPT:am[rm]},pm=[{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 mm(e){for(var t=0;t<pm.length;t++)for(var n=pm[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 hm=[];pm.forEach(e=>e.blocks.forEach(e=>hm.push(...e)));function gm(e){for(var t=0;t<hm.length;t+=2)if(e>=hm[t]&&e<=hm[t+1])return!0;return!1}var _m=e=>e+` `+e,vm=80,ym=function(e,t){return`M95,`+(622+e+t)+`
|
|
114
114
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
115
115
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
116
116
|
c44.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
|
|
@@ -121,7 +121,7 @@ c5.3,-9.3,12,-14,20,-14
|
|
|
121
121
|
H400000v`+(40+e)+`H845.2724
|
|
122
122
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
123
123
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
124
|
-
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},
|
|
124
|
+
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},bm=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
|
|
125
125
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
126
126
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
127
127
|
l`+e/2.084+` -`+e+`
|
|
@@ -131,7 +131,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,
|
|
|
131
131
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
132
132
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
133
133
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
134
|
-
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},
|
|
134
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},xm=function(e,t){return`M983 `+(10+e+t)+`
|
|
135
135
|
l`+e/3.13+` -`+e+`
|
|
136
136
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
|
137
137
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
@@ -140,7 +140,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
140
140
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
141
141
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
142
142
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
143
|
-
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},
|
|
143
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Sm=function(e,t){return`M424,`+(2398+e+t)+`
|
|
144
144
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
145
145
|
c0,-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
|
|
146
146
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
@@ -150,18 +150,18 @@ v`+(40+e)+`H1014.6
|
|
|
150
150
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
151
151
|
c-2,6,-10,9,-24,9
|
|
152
152
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
|
|
153
|
-
h400000v`+(40+e)+`h-400000z`},
|
|
153
|
+
h400000v`+(40+e)+`h-400000z`},Cm=function(e,t){return`M473,`+(2713+e+t)+`
|
|
154
154
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
|
|
155
155
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
|
156
156
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
157
157
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
158
158
|
c0,-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
|
|
159
159
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
160
|
-
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},
|
|
160
|
+
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},wm=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},Tm=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
|
|
161
161
|
H742v`+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
|
|
162
162
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
163
163
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
164
|
-
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},
|
|
164
|
+
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},Em=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=ym(t,vm);break;case`sqrtSize1`:r=bm(t,vm);break;case`sqrtSize2`:r=xm(t,vm);break;case`sqrtSize3`:r=Sm(t,vm);break;case`sqrtSize4`:r=Cm(t,vm);break;case`sqrtTall`:r=Tm(t,vm,n)}return r},Dm=function(e,t){switch(e){case`⎜`:return _m(`M291 0 H417 V`+t+` H291z`);case`∣`:return _m(`M145 0 H188 V`+t+` H145z`);case`∥`:return _m(`M145 0 H188 V`+t+` H145z`)+_m(`M367 0 H410 V`+t+` H367z`);case`⎟`:return _m(`M457 0 H583 V`+t+` H457z`);case`⎢`:return _m(`M319 0 H403 V`+t+` H319z`);case`⎥`:return _m(`M263 0 H347 V`+t+` H263z`);case`⎪`:return _m(`M384 0 H504 V`+t+` H384z`);case`⏐`:return _m(`M312 0 H355 V`+t+` H312z`);case`‖`:return _m(`M257 0 H300 V`+t+` H257z`)+_m(`M478 0 H521 V`+t+` H478z`);default:return``}},Om={doubleleftarrow:`M262 157
|
|
165
165
|
l10-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
|
|
166
166
|
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
|
|
167
167
|
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
|
|
@@ -207,10 +207,10 @@ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9
|
|
|
207
207
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
208
208
|
-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
|
|
209
209
|
-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
|
|
210
|
-
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:
|
|
210
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:_m(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:_m(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:_m(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:_m(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
211
211
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
212
212
|
c28.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
|
|
213
|
-
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:
|
|
213
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:_m(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
|
|
214
214
|
c-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
|
|
215
215
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
216
216
|
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
|
|
@@ -259,7 +259,7 @@ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown
|
|
|
259
259
|
m0-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
|
|
260
260
|
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
|
|
261
261
|
-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
|
|
262
|
-
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:
|
|
262
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:_m(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:_m(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:_m(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
263
263
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
264
264
|
-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
|
|
265
265
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
@@ -332,7 +332,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`
|
|
|
332
332
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
333
333
|
-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
|
|
334
334
|
c-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
|
|
335
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
|
|
335
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},km=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
|
|
336
336
|
H403z 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
|
|
337
337
|
M347 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
|
|
338
338
|
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
@@ -360,19 +360,19 @@ c-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
|
|
|
360
360
|
c0,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
|
|
361
361
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
362
362
|
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
363
|
-
-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 km(e){return`toText`in e}var Am=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(km(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},jm={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},Mm={ex:!0,em:!0,mu:!0},Nm=function(e){return typeof e!=`string`&&(e=e.unit),e in jm||e in Mm||e===`ex`},Pm=function(e,t){var n;if(e.unit in jm)n=jm[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 B(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},V=function(e){return+e.toFixed(4)+`em`},Fm=function(e){return e.filter(e=>e).join(` `)},Im=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=Ip(n)+`:`+r+`;`)}return t},Lm=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)}},Rm=function(e){var t=document.createElement(e);t.className=Fm(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},zm=/[\s"'>/=\x00-\x1f]/,Bm=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+zp(Fm(this.classes))+`"`);var n=Im(this.style);n&&(t+=` style="`+zp(n)+`"`);for(var r of Object.keys(this.attributes)){if(zm.test(r))throw new B(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+zp(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},Vm=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,Lm.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Rm.call(this,`span`)}toMarkup(){return Bm.call(this,`span`)}},Hm=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,Lm.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 Rm.call(this,`a`)}toMarkup(){return Bm.call(this,`a`)}},Um=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="`+zp(this.src)+`"`+(` alt="`+zp(this.alt)+`"`),t=Im(this.style);return t&&(e+=` style="`+zp(t)+`"`),e+=`'/>`,e}},Wm={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Gm=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=pm(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Wm[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=V(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=Fm(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+=zp(Fm(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+V(this.italic)+`;`),n+=Im(this.style),n&&(e=!0,t+=` style="`+zp(n)+`"`);var r=zp(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},Km=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+`="`+zp(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},qm=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`,Dm[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+zp(this.alternate)+`"/>`:`<path d="`+zp(Dm[this.pathName])+`"/>`}},Jm=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+`="`+zp(this.attributes[t])+`"`;return e+=`/>`,e}};function Ym(e){if(e instanceof Gm)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Xm(e){if(e instanceof Vm)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var Zm=e=>e instanceof Vm||e instanceof Hm||e instanceof Am,Qm={"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],116:[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]}},$m={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]},eh={Å:`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 th(e,t){Qm[e]=t}function nh(e,t,n){if(!Qm[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Qm[t][r];if(!i&&e[0]in eh&&(r=eh[e[0]].charCodeAt(0),i=Qm[t][r]),!i&&n===`text`&&hm(r)&&(i=Qm[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var rh={};function ih(e){var t=e>=5?0:e>=3?1:2;if(!rh[t]){var n=rh[t]={cssEmPerMu:$m.quad[t]/18};for(var r in $m)$m.hasOwnProperty(r)&&(n[r]=$m[r][t])}return rh[t]}var ah={math:{},text:{}};function H(e,t,n,r,i,a){ah[e][i]={font:t,group:n,replace:r},a&&r&&(ah[e][r]=ah[e][i])}var U=`math`,W=`text`,G=`main`,K=`ams`,oh=`accent-token`,sh=`bin`,ch=`close`,lh=`inner`,uh=`mathord`,dh=`op-token`,fh=`open`,ph=`punct`,q=`rel`,mh=`spacing`,J=`textord`;H(U,G,q,`≡`,`\\equiv`,!0),H(U,G,q,`≺`,`\\prec`,!0),H(U,G,q,`≻`,`\\succ`,!0),H(U,G,q,`∼`,`\\sim`,!0),H(U,G,q,`⊥`,`\\perp`),H(U,G,q,`⪯`,`\\preceq`,!0),H(U,G,q,`⪰`,`\\succeq`,!0),H(U,G,q,`≃`,`\\simeq`,!0),H(U,G,q,`∣`,`\\mid`,!0),H(U,G,q,`≪`,`\\ll`,!0),H(U,G,q,`≫`,`\\gg`,!0),H(U,G,q,`≍`,`\\asymp`,!0),H(U,G,q,`∥`,`\\parallel`),H(U,G,q,`⋈`,`\\bowtie`,!0),H(U,G,q,`⌣`,`\\smile`,!0),H(U,G,q,`⊑`,`\\sqsubseteq`,!0),H(U,G,q,`⊒`,`\\sqsupseteq`,!0),H(U,G,q,`≐`,`\\doteq`,!0),H(U,G,q,`⌢`,`\\frown`,!0),H(U,G,q,`∋`,`\\ni`,!0),H(U,G,q,`∝`,`\\propto`,!0),H(U,G,q,`⊢`,`\\vdash`,!0),H(U,G,q,`⊣`,`\\dashv`,!0),H(U,G,q,`∋`,`\\owns`),H(U,G,ph,`.`,`\\ldotp`),H(U,G,ph,`⋅`,`\\cdotp`),H(U,G,ph,`⋅`,`·`),H(W,G,J,`⋅`,`·`),H(U,G,J,`#`,`\\#`),H(W,G,J,`#`,`\\#`),H(U,G,J,`&`,`\\&`),H(W,G,J,`&`,`\\&`),H(U,G,J,`ℵ`,`\\aleph`,!0),H(U,G,J,`∀`,`\\forall`,!0),H(U,G,J,`ℏ`,`\\hbar`,!0),H(U,G,J,`∃`,`\\exists`,!0),H(U,G,J,`∇`,`\\nabla`,!0),H(U,G,J,`♭`,`\\flat`,!0),H(U,G,J,`ℓ`,`\\ell`,!0),H(U,G,J,`♮`,`\\natural`,!0),H(U,G,J,`♣`,`\\clubsuit`,!0),H(U,G,J,`℘`,`\\wp`,!0),H(U,G,J,`♯`,`\\sharp`,!0),H(U,G,J,`♢`,`\\diamondsuit`,!0),H(U,G,J,`ℜ`,`\\Re`,!0),H(U,G,J,`♡`,`\\heartsuit`,!0),H(U,G,J,`ℑ`,`\\Im`,!0),H(U,G,J,`♠`,`\\spadesuit`,!0),H(U,G,J,`§`,`\\S`,!0),H(W,G,J,`§`,`\\S`),H(U,G,J,`¶`,`\\P`,!0),H(W,G,J,`¶`,`\\P`),H(U,G,J,`†`,`\\dag`),H(W,G,J,`†`,`\\dag`),H(W,G,J,`†`,`\\textdagger`),H(U,G,J,`‡`,`\\ddag`),H(W,G,J,`‡`,`\\ddag`),H(W,G,J,`‡`,`\\textdaggerdbl`),H(U,G,ch,`⎱`,`\\rmoustache`,!0),H(U,G,fh,`⎰`,`\\lmoustache`,!0),H(U,G,ch,`⟯`,`\\rgroup`,!0),H(U,G,fh,`⟮`,`\\lgroup`,!0),H(U,G,sh,`∓`,`\\mp`,!0),H(U,G,sh,`⊖`,`\\ominus`,!0),H(U,G,sh,`⊎`,`\\uplus`,!0),H(U,G,sh,`⊓`,`\\sqcap`,!0),H(U,G,sh,`∗`,`\\ast`),H(U,G,sh,`⊔`,`\\sqcup`,!0),H(U,G,sh,`◯`,`\\bigcirc`,!0),H(U,G,sh,`∙`,`\\bullet`,!0),H(U,G,sh,`‡`,`\\ddagger`),H(U,G,sh,`≀`,`\\wr`,!0),H(U,G,sh,`⨿`,`\\amalg`),H(U,G,sh,`&`,`\\And`),H(U,G,q,`⟵`,`\\longleftarrow`,!0),H(U,G,q,`⇐`,`\\Leftarrow`,!0),H(U,G,q,`⟸`,`\\Longleftarrow`,!0),H(U,G,q,`⟶`,`\\longrightarrow`,!0),H(U,G,q,`⇒`,`\\Rightarrow`,!0),H(U,G,q,`⟹`,`\\Longrightarrow`,!0),H(U,G,q,`↔`,`\\leftrightarrow`,!0),H(U,G,q,`⟷`,`\\longleftrightarrow`,!0),H(U,G,q,`⇔`,`\\Leftrightarrow`,!0),H(U,G,q,`⟺`,`\\Longleftrightarrow`,!0),H(U,G,q,`↦`,`\\mapsto`,!0),H(U,G,q,`⟼`,`\\longmapsto`,!0),H(U,G,q,`↗`,`\\nearrow`,!0),H(U,G,q,`↩`,`\\hookleftarrow`,!0),H(U,G,q,`↪`,`\\hookrightarrow`,!0),H(U,G,q,`↘`,`\\searrow`,!0),H(U,G,q,`↼`,`\\leftharpoonup`,!0),H(U,G,q,`⇀`,`\\rightharpoonup`,!0),H(U,G,q,`↙`,`\\swarrow`,!0),H(U,G,q,`↽`,`\\leftharpoondown`,!0),H(U,G,q,`⇁`,`\\rightharpoondown`,!0),H(U,G,q,`↖`,`\\nwarrow`,!0),H(U,G,q,`⇌`,`\\rightleftharpoons`,!0),H(U,K,q,`≮`,`\\nless`,!0),H(U,K,q,``,`\\@nleqslant`),H(U,K,q,``,`\\@nleqq`),H(U,K,q,`⪇`,`\\lneq`,!0),H(U,K,q,`≨`,`\\lneqq`,!0),H(U,K,q,``,`\\@lvertneqq`),H(U,K,q,`⋦`,`\\lnsim`,!0),H(U,K,q,`⪉`,`\\lnapprox`,!0),H(U,K,q,`⊀`,`\\nprec`,!0),H(U,K,q,`⋠`,`\\npreceq`,!0),H(U,K,q,`⋨`,`\\precnsim`,!0),H(U,K,q,`⪹`,`\\precnapprox`,!0),H(U,K,q,`≁`,`\\nsim`,!0),H(U,K,q,``,`\\@nshortmid`),H(U,K,q,`∤`,`\\nmid`,!0),H(U,K,q,`⊬`,`\\nvdash`,!0),H(U,K,q,`⊭`,`\\nvDash`,!0),H(U,K,q,`⋪`,`\\ntriangleleft`),H(U,K,q,`⋬`,`\\ntrianglelefteq`,!0),H(U,K,q,`⊊`,`\\subsetneq`,!0),H(U,K,q,``,`\\@varsubsetneq`),H(U,K,q,`⫋`,`\\subsetneqq`,!0),H(U,K,q,``,`\\@varsubsetneqq`),H(U,K,q,`≯`,`\\ngtr`,!0),H(U,K,q,``,`\\@ngeqslant`),H(U,K,q,``,`\\@ngeqq`),H(U,K,q,`⪈`,`\\gneq`,!0),H(U,K,q,`≩`,`\\gneqq`,!0),H(U,K,q,``,`\\@gvertneqq`),H(U,K,q,`⋧`,`\\gnsim`,!0),H(U,K,q,`⪊`,`\\gnapprox`,!0),H(U,K,q,`⊁`,`\\nsucc`,!0),H(U,K,q,`⋡`,`\\nsucceq`,!0),H(U,K,q,`⋩`,`\\succnsim`,!0),H(U,K,q,`⪺`,`\\succnapprox`,!0),H(U,K,q,`≆`,`\\ncong`,!0),H(U,K,q,``,`\\@nshortparallel`),H(U,K,q,`∦`,`\\nparallel`,!0),H(U,K,q,`⊯`,`\\nVDash`,!0),H(U,K,q,`⋫`,`\\ntriangleright`),H(U,K,q,`⋭`,`\\ntrianglerighteq`,!0),H(U,K,q,``,`\\@nsupseteqq`),H(U,K,q,`⊋`,`\\supsetneq`,!0),H(U,K,q,``,`\\@varsupsetneq`),H(U,K,q,`⫌`,`\\supsetneqq`,!0),H(U,K,q,``,`\\@varsupsetneqq`),H(U,K,q,`⊮`,`\\nVdash`,!0),H(U,K,q,`⪵`,`\\precneqq`,!0),H(U,K,q,`⪶`,`\\succneqq`,!0),H(U,K,q,``,`\\@nsubseteqq`),H(U,K,sh,`⊴`,`\\unlhd`),H(U,K,sh,`⊵`,`\\unrhd`),H(U,K,q,`↚`,`\\nleftarrow`,!0),H(U,K,q,`↛`,`\\nrightarrow`,!0),H(U,K,q,`⇍`,`\\nLeftarrow`,!0),H(U,K,q,`⇏`,`\\nRightarrow`,!0),H(U,K,q,`↮`,`\\nleftrightarrow`,!0),H(U,K,q,`⇎`,`\\nLeftrightarrow`,!0),H(U,K,q,`△`,`\\vartriangle`),H(U,K,J,`ℏ`,`\\hslash`),H(U,K,J,`▽`,`\\triangledown`),H(U,K,J,`◊`,`\\lozenge`),H(U,K,J,`Ⓢ`,`\\circledS`),H(U,K,J,`®`,`\\circledR`),H(W,K,J,`®`,`\\circledR`),H(U,K,J,`∡`,`\\measuredangle`,!0),H(U,K,J,`∄`,`\\nexists`),H(U,K,J,`℧`,`\\mho`),H(U,K,J,`Ⅎ`,`\\Finv`,!0),H(U,K,J,`⅁`,`\\Game`,!0),H(U,K,J,`‵`,`\\backprime`),H(U,K,J,`▲`,`\\blacktriangle`),H(U,K,J,`▼`,`\\blacktriangledown`),H(U,K,J,`■`,`\\blacksquare`),H(U,K,J,`⧫`,`\\blacklozenge`),H(U,K,J,`★`,`\\bigstar`),H(U,K,J,`∢`,`\\sphericalangle`,!0),H(U,K,J,`∁`,`\\complement`,!0),H(U,K,J,`ð`,`\\eth`,!0),H(W,G,J,`ð`,`ð`),H(U,K,J,`╱`,`\\diagup`),H(U,K,J,`╲`,`\\diagdown`),H(U,K,J,`□`,`\\square`),H(U,K,J,`□`,`\\Box`),H(U,K,J,`◊`,`\\Diamond`),H(U,K,J,`¥`,`\\yen`,!0),H(W,K,J,`¥`,`\\yen`,!0),H(U,K,J,`✓`,`\\checkmark`,!0),H(W,K,J,`✓`,`\\checkmark`),H(U,K,J,`ℶ`,`\\beth`,!0),H(U,K,J,`ℸ`,`\\daleth`,!0),H(U,K,J,`ℷ`,`\\gimel`,!0),H(U,K,J,`ϝ`,`\\digamma`,!0),H(U,K,J,`ϰ`,`\\varkappa`),H(U,K,fh,`┌`,`\\@ulcorner`,!0),H(U,K,ch,`┐`,`\\@urcorner`,!0),H(U,K,fh,`└`,`\\@llcorner`,!0),H(U,K,ch,`┘`,`\\@lrcorner`,!0),H(U,K,q,`≦`,`\\leqq`,!0),H(U,K,q,`⩽`,`\\leqslant`,!0),H(U,K,q,`⪕`,`\\eqslantless`,!0),H(U,K,q,`≲`,`\\lesssim`,!0),H(U,K,q,`⪅`,`\\lessapprox`,!0),H(U,K,q,`≊`,`\\approxeq`,!0),H(U,K,sh,`⋖`,`\\lessdot`),H(U,K,q,`⋘`,`\\lll`,!0),H(U,K,q,`≶`,`\\lessgtr`,!0),H(U,K,q,`⋚`,`\\lesseqgtr`,!0),H(U,K,q,`⪋`,`\\lesseqqgtr`,!0),H(U,K,q,`≑`,`\\doteqdot`),H(U,K,q,`≓`,`\\risingdotseq`,!0),H(U,K,q,`≒`,`\\fallingdotseq`,!0),H(U,K,q,`∽`,`\\backsim`,!0),H(U,K,q,`⋍`,`\\backsimeq`,!0),H(U,K,q,`⫅`,`\\subseteqq`,!0),H(U,K,q,`⋐`,`\\Subset`,!0),H(U,K,q,`⊏`,`\\sqsubset`,!0),H(U,K,q,`≼`,`\\preccurlyeq`,!0),H(U,K,q,`⋞`,`\\curlyeqprec`,!0),H(U,K,q,`≾`,`\\precsim`,!0),H(U,K,q,`⪷`,`\\precapprox`,!0),H(U,K,q,`⊲`,`\\vartriangleleft`),H(U,K,q,`⊴`,`\\trianglelefteq`),H(U,K,q,`⊨`,`\\vDash`,!0),H(U,K,q,`⊪`,`\\Vvdash`,!0),H(U,K,q,`⌣`,`\\smallsmile`),H(U,K,q,`⌢`,`\\smallfrown`),H(U,K,q,`≏`,`\\bumpeq`,!0),H(U,K,q,`≎`,`\\Bumpeq`,!0),H(U,K,q,`≧`,`\\geqq`,!0),H(U,K,q,`⩾`,`\\geqslant`,!0),H(U,K,q,`⪖`,`\\eqslantgtr`,!0),H(U,K,q,`≳`,`\\gtrsim`,!0),H(U,K,q,`⪆`,`\\gtrapprox`,!0),H(U,K,sh,`⋗`,`\\gtrdot`),H(U,K,q,`⋙`,`\\ggg`,!0),H(U,K,q,`≷`,`\\gtrless`,!0),H(U,K,q,`⋛`,`\\gtreqless`,!0),H(U,K,q,`⪌`,`\\gtreqqless`,!0),H(U,K,q,`≖`,`\\eqcirc`,!0),H(U,K,q,`≗`,`\\circeq`,!0),H(U,K,q,`≜`,`\\triangleq`,!0),H(U,K,q,`∼`,`\\thicksim`),H(U,K,q,`≈`,`\\thickapprox`),H(U,K,q,`⫆`,`\\supseteqq`,!0),H(U,K,q,`⋑`,`\\Supset`,!0),H(U,K,q,`⊐`,`\\sqsupset`,!0),H(U,K,q,`≽`,`\\succcurlyeq`,!0),H(U,K,q,`⋟`,`\\curlyeqsucc`,!0),H(U,K,q,`≿`,`\\succsim`,!0),H(U,K,q,`⪸`,`\\succapprox`,!0),H(U,K,q,`⊳`,`\\vartriangleright`),H(U,K,q,`⊵`,`\\trianglerighteq`),H(U,K,q,`⊩`,`\\Vdash`,!0),H(U,K,q,`∣`,`\\shortmid`),H(U,K,q,`∥`,`\\shortparallel`),H(U,K,q,`≬`,`\\between`,!0),H(U,K,q,`⋔`,`\\pitchfork`,!0),H(U,K,q,`∝`,`\\varpropto`),H(U,K,q,`◀`,`\\blacktriangleleft`),H(U,K,q,`∴`,`\\therefore`,!0),H(U,K,q,`∍`,`\\backepsilon`),H(U,K,q,`▶`,`\\blacktriangleright`),H(U,K,q,`∵`,`\\because`,!0),H(U,K,q,`⋘`,`\\llless`),H(U,K,q,`⋙`,`\\gggtr`),H(U,K,sh,`⊲`,`\\lhd`),H(U,K,sh,`⊳`,`\\rhd`),H(U,K,q,`≂`,`\\eqsim`,!0),H(U,G,q,`⋈`,`\\Join`),H(U,K,q,`≑`,`\\Doteq`,!0),H(U,K,sh,`∔`,`\\dotplus`,!0),H(U,K,sh,`∖`,`\\smallsetminus`),H(U,K,sh,`⋒`,`\\Cap`,!0),H(U,K,sh,`⋓`,`\\Cup`,!0),H(U,K,sh,`⩞`,`\\doublebarwedge`,!0),H(U,K,sh,`⊟`,`\\boxminus`,!0),H(U,K,sh,`⊞`,`\\boxplus`,!0),H(U,K,sh,`⋇`,`\\divideontimes`,!0),H(U,K,sh,`⋉`,`\\ltimes`,!0),H(U,K,sh,`⋊`,`\\rtimes`,!0),H(U,K,sh,`⋋`,`\\leftthreetimes`,!0),H(U,K,sh,`⋌`,`\\rightthreetimes`,!0),H(U,K,sh,`⋏`,`\\curlywedge`,!0),H(U,K,sh,`⋎`,`\\curlyvee`,!0),H(U,K,sh,`⊝`,`\\circleddash`,!0),H(U,K,sh,`⊛`,`\\circledast`,!0),H(U,K,sh,`⋅`,`\\centerdot`),H(U,K,sh,`⊺`,`\\intercal`,!0),H(U,K,sh,`⋒`,`\\doublecap`),H(U,K,sh,`⋓`,`\\doublecup`),H(U,K,sh,`⊠`,`\\boxtimes`,!0),H(U,K,q,`⇢`,`\\dashrightarrow`,!0),H(U,K,q,`⇠`,`\\dashleftarrow`,!0),H(U,K,q,`⇇`,`\\leftleftarrows`,!0),H(U,K,q,`⇆`,`\\leftrightarrows`,!0),H(U,K,q,`⇚`,`\\Lleftarrow`,!0),H(U,K,q,`↞`,`\\twoheadleftarrow`,!0),H(U,K,q,`↢`,`\\leftarrowtail`,!0),H(U,K,q,`↫`,`\\looparrowleft`,!0),H(U,K,q,`⇋`,`\\leftrightharpoons`,!0),H(U,K,q,`↶`,`\\curvearrowleft`,!0),H(U,K,q,`↺`,`\\circlearrowleft`,!0),H(U,K,q,`↰`,`\\Lsh`,!0),H(U,K,q,`⇈`,`\\upuparrows`,!0),H(U,K,q,`↿`,`\\upharpoonleft`,!0),H(U,K,q,`⇃`,`\\downharpoonleft`,!0),H(U,G,q,`⊶`,`\\origof`,!0),H(U,G,q,`⊷`,`\\imageof`,!0),H(U,K,q,`⊸`,`\\multimap`,!0),H(U,K,q,`↭`,`\\leftrightsquigarrow`,!0),H(U,K,q,`⇉`,`\\rightrightarrows`,!0),H(U,K,q,`⇄`,`\\rightleftarrows`,!0),H(U,K,q,`↠`,`\\twoheadrightarrow`,!0),H(U,K,q,`↣`,`\\rightarrowtail`,!0),H(U,K,q,`↬`,`\\looparrowright`,!0),H(U,K,q,`↷`,`\\curvearrowright`,!0),H(U,K,q,`↻`,`\\circlearrowright`,!0),H(U,K,q,`↱`,`\\Rsh`,!0),H(U,K,q,`⇊`,`\\downdownarrows`,!0),H(U,K,q,`↾`,`\\upharpoonright`,!0),H(U,K,q,`⇂`,`\\downharpoonright`,!0),H(U,K,q,`⇝`,`\\rightsquigarrow`,!0),H(U,K,q,`⇝`,`\\leadsto`),H(U,K,q,`⇛`,`\\Rrightarrow`,!0),H(U,K,q,`↾`,`\\restriction`),H(U,G,J,`‘`,"`"),H(U,G,J,`$`,`\\$`),H(W,G,J,`$`,`\\$`),H(W,G,J,`$`,`\\textdollar`),H(U,G,J,`%`,`\\%`),H(W,G,J,`%`,`\\%`),H(U,G,J,`_`,`\\_`),H(W,G,J,`_`,`\\_`),H(W,G,J,`_`,`\\textunderscore`),H(U,G,J,`∠`,`\\angle`,!0),H(U,G,J,`∞`,`\\infty`,!0),H(U,G,J,`′`,`\\prime`),H(U,G,J,`△`,`\\triangle`),H(U,G,J,`Γ`,`\\Gamma`,!0),H(U,G,J,`Δ`,`\\Delta`,!0),H(U,G,J,`Θ`,`\\Theta`,!0),H(U,G,J,`Λ`,`\\Lambda`,!0),H(U,G,J,`Ξ`,`\\Xi`,!0),H(U,G,J,`Π`,`\\Pi`,!0),H(U,G,J,`Σ`,`\\Sigma`,!0),H(U,G,J,`Υ`,`\\Upsilon`,!0),H(U,G,J,`Φ`,`\\Phi`,!0),H(U,G,J,`Ψ`,`\\Psi`,!0),H(U,G,J,`Ω`,`\\Omega`,!0),H(U,G,J,`A`,`Α`),H(U,G,J,`B`,`Β`),H(U,G,J,`E`,`Ε`),H(U,G,J,`Z`,`Ζ`),H(U,G,J,`H`,`Η`),H(U,G,J,`I`,`Ι`),H(U,G,J,`K`,`Κ`),H(U,G,J,`M`,`Μ`),H(U,G,J,`N`,`Ν`),H(U,G,J,`O`,`Ο`),H(U,G,J,`P`,`Ρ`),H(U,G,J,`T`,`Τ`),H(U,G,J,`X`,`Χ`),H(U,G,J,`¬`,`\\neg`,!0),H(U,G,J,`¬`,`\\lnot`),H(U,G,J,`⊤`,`\\top`),H(U,G,J,`⊥`,`\\bot`),H(U,G,J,`∅`,`\\emptyset`),H(U,K,J,`∅`,`\\varnothing`),H(U,G,uh,`α`,`\\alpha`,!0),H(U,G,uh,`β`,`\\beta`,!0),H(U,G,uh,`γ`,`\\gamma`,!0),H(U,G,uh,`δ`,`\\delta`,!0),H(U,G,uh,`ϵ`,`\\epsilon`,!0),H(U,G,uh,`ζ`,`\\zeta`,!0),H(U,G,uh,`η`,`\\eta`,!0),H(U,G,uh,`θ`,`\\theta`,!0),H(U,G,uh,`ι`,`\\iota`,!0),H(U,G,uh,`κ`,`\\kappa`,!0),H(U,G,uh,`λ`,`\\lambda`,!0),H(U,G,uh,`μ`,`\\mu`,!0),H(U,G,uh,`ν`,`\\nu`,!0),H(U,G,uh,`ξ`,`\\xi`,!0),H(U,G,uh,`ο`,`\\omicron`,!0),H(U,G,uh,`π`,`\\pi`,!0),H(U,G,uh,`ρ`,`\\rho`,!0),H(U,G,uh,`σ`,`\\sigma`,!0),H(U,G,uh,`τ`,`\\tau`,!0),H(U,G,uh,`υ`,`\\upsilon`,!0),H(U,G,uh,`ϕ`,`\\phi`,!0),H(U,G,uh,`χ`,`\\chi`,!0),H(U,G,uh,`ψ`,`\\psi`,!0),H(U,G,uh,`ω`,`\\omega`,!0),H(U,G,uh,`ε`,`\\varepsilon`,!0),H(U,G,uh,`ϑ`,`\\vartheta`,!0),H(U,G,uh,`ϖ`,`\\varpi`,!0),H(U,G,uh,`ϱ`,`\\varrho`,!0),H(U,G,uh,`ς`,`\\varsigma`,!0),H(U,G,uh,`φ`,`\\varphi`,!0),H(U,G,sh,`∗`,`*`,!0),H(U,G,sh,`+`,`+`),H(U,G,sh,`−`,`-`,!0),H(U,G,sh,`⋅`,`\\cdot`,!0),H(U,G,sh,`∘`,`\\circ`,!0),H(U,G,sh,`÷`,`\\div`,!0),H(U,G,sh,`±`,`\\pm`,!0),H(U,G,sh,`×`,`\\times`,!0),H(U,G,sh,`∩`,`\\cap`,!0),H(U,G,sh,`∪`,`\\cup`,!0),H(U,G,sh,`∖`,`\\setminus`,!0),H(U,G,sh,`∧`,`\\land`),H(U,G,sh,`∨`,`\\lor`),H(U,G,sh,`∧`,`\\wedge`,!0),H(U,G,sh,`∨`,`\\vee`,!0),H(U,G,J,`√`,`\\surd`),H(U,G,fh,`⟨`,`\\langle`,!0),H(U,G,fh,`∣`,`\\lvert`),H(U,G,fh,`∥`,`\\lVert`),H(U,G,ch,`?`,`?`),H(U,G,ch,`!`,`!`),H(U,G,ch,`⟩`,`\\rangle`,!0),H(U,G,ch,`∣`,`\\rvert`),H(U,G,ch,`∥`,`\\rVert`),H(U,G,q,`=`,`=`),H(U,G,q,`:`,`:`),H(U,G,q,`≈`,`\\approx`,!0),H(U,G,q,`≅`,`\\cong`,!0),H(U,G,q,`≥`,`\\ge`),H(U,G,q,`≥`,`\\geq`,!0),H(U,G,q,`←`,`\\gets`),H(U,G,q,`>`,`\\gt`,!0),H(U,G,q,`∈`,`\\in`,!0),H(U,G,q,``,`\\@not`),H(U,G,q,`⊂`,`\\subset`,!0),H(U,G,q,`⊃`,`\\supset`,!0),H(U,G,q,`⊆`,`\\subseteq`,!0),H(U,G,q,`⊇`,`\\supseteq`,!0),H(U,K,q,`⊈`,`\\nsubseteq`,!0),H(U,K,q,`⊉`,`\\nsupseteq`,!0),H(U,G,q,`⊨`,`\\models`),H(U,G,q,`←`,`\\leftarrow`,!0),H(U,G,q,`≤`,`\\le`),H(U,G,q,`≤`,`\\leq`,!0),H(U,G,q,`<`,`\\lt`,!0),H(U,G,q,`→`,`\\rightarrow`,!0),H(U,G,q,`→`,`\\to`),H(U,K,q,`≱`,`\\ngeq`,!0),H(U,K,q,`≰`,`\\nleq`,!0),H(U,G,mh,`\xA0`,`\\ `),H(U,G,mh,`\xA0`,`\\space`),H(U,G,mh,`\xA0`,`\\nobreakspace`),H(W,G,mh,`\xA0`,`\\ `),H(W,G,mh,`\xA0`,` `),H(W,G,mh,`\xA0`,`\\space`),H(W,G,mh,`\xA0`,`\\nobreakspace`),H(U,G,mh,``,`\\nobreak`),H(U,G,mh,``,`\\allowbreak`),H(U,G,ph,`,`,`,`),H(U,G,ph,`;`,`;`),H(U,K,sh,`⊼`,`\\barwedge`,!0),H(U,K,sh,`⊻`,`\\veebar`,!0),H(U,G,sh,`⊙`,`\\odot`,!0),H(U,G,sh,`⊕`,`\\oplus`,!0),H(U,G,sh,`⊗`,`\\otimes`,!0),H(U,G,J,`∂`,`\\partial`,!0),H(U,G,sh,`⊘`,`\\oslash`,!0),H(U,K,sh,`⊚`,`\\circledcirc`,!0),H(U,K,sh,`⊡`,`\\boxdot`,!0),H(U,G,sh,`△`,`\\bigtriangleup`),H(U,G,sh,`▽`,`\\bigtriangledown`),H(U,G,sh,`†`,`\\dagger`),H(U,G,sh,`⋄`,`\\diamond`),H(U,G,sh,`⋆`,`\\star`),H(U,G,sh,`◃`,`\\triangleleft`),H(U,G,sh,`▹`,`\\triangleright`),H(U,G,fh,`{`,`\\{`),H(W,G,J,`{`,`\\{`),H(W,G,J,`{`,`\\textbraceleft`),H(U,G,ch,`}`,`\\}`),H(W,G,J,`}`,`\\}`),H(W,G,J,`}`,`\\textbraceright`),H(U,G,fh,`{`,`\\lbrace`),H(U,G,ch,`}`,`\\rbrace`),H(U,G,fh,`[`,`\\lbrack`,!0),H(W,G,J,`[`,`\\lbrack`,!0),H(U,G,ch,`]`,`\\rbrack`,!0),H(W,G,J,`]`,`\\rbrack`,!0),H(U,G,fh,`(`,`\\lparen`,!0),H(U,G,ch,`)`,`\\rparen`,!0),H(W,G,J,`<`,`\\textless`,!0),H(W,G,J,`>`,`\\textgreater`,!0),H(U,G,fh,`⌊`,`\\lfloor`,!0),H(U,G,ch,`⌋`,`\\rfloor`,!0),H(U,G,fh,`⌈`,`\\lceil`,!0),H(U,G,ch,`⌉`,`\\rceil`,!0),H(U,G,J,`\\`,`\\backslash`),H(U,G,J,`∣`,`|`),H(U,G,J,`∣`,`\\vert`),H(W,G,J,`|`,`\\textbar`,!0),H(U,G,J,`∥`,`\\|`),H(U,G,J,`∥`,`\\Vert`),H(W,G,J,`∥`,`\\textbardbl`),H(W,G,J,`~`,`\\textasciitilde`),H(W,G,J,`\\`,`\\textbackslash`),H(W,G,J,`^`,`\\textasciicircum`),H(U,G,q,`↑`,`\\uparrow`,!0),H(U,G,q,`⇑`,`\\Uparrow`,!0),H(U,G,q,`↓`,`\\downarrow`,!0),H(U,G,q,`⇓`,`\\Downarrow`,!0),H(U,G,q,`↕`,`\\updownarrow`,!0),H(U,G,q,`⇕`,`\\Updownarrow`,!0),H(U,G,dh,`∐`,`\\coprod`),H(U,G,dh,`⋁`,`\\bigvee`),H(U,G,dh,`⋀`,`\\bigwedge`),H(U,G,dh,`⨄`,`\\biguplus`),H(U,G,dh,`⋂`,`\\bigcap`),H(U,G,dh,`⋃`,`\\bigcup`),H(U,G,dh,`∫`,`\\int`),H(U,G,dh,`∫`,`\\intop`),H(U,G,dh,`∬`,`\\iint`),H(U,G,dh,`∭`,`\\iiint`),H(U,G,dh,`∏`,`\\prod`),H(U,G,dh,`∑`,`\\sum`),H(U,G,dh,`⨂`,`\\bigotimes`),H(U,G,dh,`⨁`,`\\bigoplus`),H(U,G,dh,`⨀`,`\\bigodot`),H(U,G,dh,`∮`,`\\oint`),H(U,G,dh,`∯`,`\\oiint`),H(U,G,dh,`∰`,`\\oiiint`),H(U,G,dh,`⨆`,`\\bigsqcup`),H(U,G,dh,`∫`,`\\smallint`),H(W,G,lh,`…`,`\\textellipsis`),H(U,G,lh,`…`,`\\mathellipsis`),H(W,G,lh,`…`,`\\ldots`,!0),H(U,G,lh,`…`,`\\ldots`,!0),H(U,G,lh,`⋯`,`\\@cdots`,!0),H(U,G,lh,`⋱`,`\\ddots`,!0),H(U,G,J,`⋮`,`\\varvdots`),H(W,G,J,`⋮`,`\\varvdots`),H(U,G,oh,`ˊ`,`\\acute`),H(U,G,oh,`ˋ`,`\\grave`),H(U,G,oh,`¨`,`\\ddot`),H(U,G,oh,`~`,`\\tilde`),H(U,G,oh,`ˉ`,`\\bar`),H(U,G,oh,`˘`,`\\breve`),H(U,G,oh,`ˇ`,`\\check`),H(U,G,oh,`^`,`\\hat`),H(U,G,oh,`⃗`,`\\vec`),H(U,G,oh,`˙`,`\\dot`),H(U,G,oh,`˚`,`\\mathring`),H(U,G,uh,``,`\\@imath`),H(U,G,uh,``,`\\@jmath`),H(U,G,J,`ı`,`ı`),H(U,G,J,`ȷ`,`ȷ`),H(W,G,J,`ı`,`\\i`,!0),H(W,G,J,`ȷ`,`\\j`,!0),H(W,G,J,`ß`,`\\ss`,!0),H(W,G,J,`æ`,`\\ae`,!0),H(W,G,J,`œ`,`\\oe`,!0),H(W,G,J,`ø`,`\\o`,!0),H(W,G,J,`Æ`,`\\AE`,!0),H(W,G,J,`Œ`,`\\OE`,!0),H(W,G,J,`Ø`,`\\O`,!0),H(W,G,oh,`ˊ`,`\\'`),H(W,G,oh,`ˋ`,"\\`"),H(W,G,oh,`ˆ`,`\\^`),H(W,G,oh,`˜`,`\\~`),H(W,G,oh,`ˉ`,`\\=`),H(W,G,oh,`˘`,`\\u`),H(W,G,oh,`˙`,`\\.`),H(W,G,oh,`¸`,`\\c`),H(W,G,oh,`˚`,`\\r`),H(W,G,oh,`ˇ`,`\\v`),H(W,G,oh,`¨`,`\\"`),H(W,G,oh,`˝`,`\\H`),H(W,G,oh,`◯`,`\\textcircled`);var hh={"--":!0,"---":!0,"``":!0,"''":!0};H(W,G,J,`–`,`--`,!0),H(W,G,J,`–`,`\\textendash`),H(W,G,J,`—`,`---`,!0),H(W,G,J,`—`,`\\textemdash`),H(W,G,J,`‘`,"`",!0),H(W,G,J,`‘`,`\\textquoteleft`),H(W,G,J,`’`,`'`,!0),H(W,G,J,`’`,`\\textquoteright`),H(W,G,J,`“`,"``",!0),H(W,G,J,`“`,`\\textquotedblleft`),H(W,G,J,`”`,`''`,!0),H(W,G,J,`”`,`\\textquotedblright`),H(U,G,J,`°`,`\\degree`,!0),H(W,G,J,`°`,`\\degree`),H(W,G,J,`°`,`\\textdegree`,!0),H(U,G,J,`£`,`\\pounds`),H(U,G,J,`£`,`\\mathsterling`,!0),H(W,G,J,`£`,`\\pounds`),H(W,G,J,`£`,`\\textsterling`,!0),H(U,K,J,`✠`,`\\maltese`),H(W,K,J,`✠`,`\\maltese`);for(var gh=`0123456789/@."`,_h=0;_h<gh.length;_h++){var vh=gh.charAt(_h);H(U,G,J,vh,vh)}for(var yh=`0123456789!@*()-=+";:?/.,`,bh=0;bh<yh.length;bh++){var xh=yh.charAt(bh);H(W,G,J,xh,xh)}for(var Sh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,Ch=0;Ch<Sh.length;Ch++){var wh=Sh.charAt(Ch);H(U,G,uh,wh,wh),H(W,G,J,wh,wh)}H(U,K,J,`C`,`ℂ`),H(W,K,J,`C`,`ℂ`),H(U,K,J,`H`,`ℍ`),H(W,K,J,`H`,`ℍ`),H(U,K,J,`N`,`ℕ`),H(W,K,J,`N`,`ℕ`),H(U,K,J,`P`,`ℙ`),H(W,K,J,`P`,`ℙ`),H(U,K,J,`Q`,`ℚ`),H(W,K,J,`Q`,`ℚ`),H(U,K,J,`R`,`ℝ`),H(W,K,J,`R`,`ℝ`),H(U,K,J,`Z`,`ℤ`),H(W,K,J,`Z`,`ℤ`),H(U,G,uh,`h`,`ℎ`),H(W,G,uh,`h`,`ℎ`);for(var Th,Eh=0;Eh<Sh.length;Eh++){var Dh=Sh.charAt(Eh);Th=String.fromCharCode(55349,56320+Eh),H(U,G,uh,Dh,Th),H(W,G,J,Dh,Th),Th=String.fromCharCode(55349,56372+Eh),H(U,G,uh,Dh,Th),H(W,G,J,Dh,Th),Th=String.fromCharCode(55349,56424+Eh),H(U,G,uh,Dh,Th),H(W,G,J,Dh,Th),Th=String.fromCharCode(55349,56580+Eh),H(U,G,uh,Dh,Th),H(W,G,J,Dh,Th),Th=String.fromCharCode(55349,56684+Eh),H(U,G,uh,Dh,Th),H(W,G,J,Dh,Th),Th=String.fromCharCode(55349,56736+Eh),H(U,G,uh,Dh,Th),H(W,G,J,Dh,Th),Th=String.fromCharCode(55349,56788+Eh),H(U,G,uh,Dh,Th),H(W,G,J,Dh,Th),Th=String.fromCharCode(55349,56840+Eh),H(U,G,uh,Dh,Th),H(W,G,J,Dh,Th),Th=String.fromCharCode(55349,56944+Eh),H(U,G,uh,Dh,Th),H(W,G,J,Dh,Th),Eh<26&&(Th=String.fromCharCode(55349,56632+Eh),H(U,G,uh,Dh,Th),H(W,G,J,Dh,Th),Th=String.fromCharCode(55349,56476+Eh),H(U,G,uh,Dh,Th),H(W,G,J,Dh,Th))}Th=String.fromCharCode(55349,56668),H(U,G,uh,`k`,Th),H(W,G,J,`k`,Th);for(var Oh=0;Oh<10;Oh++){var kh=Oh.toString();Th=String.fromCharCode(55349,57294+Oh),H(U,G,uh,kh,Th),H(W,G,J,kh,Th),Th=String.fromCharCode(55349,57314+Oh),H(U,G,uh,kh,Th),H(W,G,J,kh,Th),Th=String.fromCharCode(55349,57324+Oh),H(U,G,uh,kh,Th),H(W,G,J,kh,Th),Th=String.fromCharCode(55349,57334+Oh),H(U,G,uh,kh,Th),H(W,G,J,kh,Th)}for(var Ah=`ÐÞþ`,jh=0;jh<Ah.length;jh++){var Mh=Ah.charAt(jh);H(U,G,uh,Mh,Mh),H(W,G,J,Mh,Mh)}var Nh={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},Ph={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},Fh={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},Ih={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},Lh={mathClass:``,textClass:``,font:``},Rh={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},zh={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},Bh={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},Vh={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},Hh={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},Uh={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},Wh={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},Gh=[Nh,Nh,Ph,Ph,Fh,Fh,Ih,Lh,Lh,Lh,Rh,Rh,zh,zh,Bh,Bh,Vh,Vh,Hh,Hh,Uh,Uh,Lh,Lh,Wh,Wh],Kh=[Nh,Lh,Vh,Hh,Wh],qh=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return Gh[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return Kh[Math.floor((r-120782)/10)];if(r===120485||r===120486)return Gh[0];if(120486<r&&r<120782)return Lh;throw new B(`Unsupported character: `+e)},Jh=function(e,t,n){if(ah[n][e]){var r=ah[n][e].replace;r&&(e=r)}return{value:e,metrics:nh(e,t,n)}},Yh=function(e,t,n,r,i){var a=Jh(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 Gm(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 Gm(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},Xh=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&Jh(e,`Main-Bold`,t).metrics?Yh(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||ah[t][e].font===`main`?Yh(e,`Main-Regular`,t,n,r):Yh(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},Zh=function(e,t,n){return n!==`textord`&&Jh(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},Qh=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=qh(i);f=m.font,p=m[r+`Class`]}if(f)return Yh(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=Zh(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=dg[o].fontName,g=[o]):(h=ug(s,c,l),g=[s,c,l]);if(Jh(i,h,r).metrics)return Yh(i,h,r,t,a.concat(g));if(hh.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(Yh(i[y],h,r,t,a.concat(g)));return ag(v)}}if(n===`mathord`)return Yh(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=ah[r][i]&&ah[r][i].font;if(b===`ams`)return Yh(i,ug(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return Yh(i,ug(`textrm`,c,l),r,t,a.concat(c,l));var x=ug(b,c,l);return Yh(i,x,r,t,a.concat(x,c,l))}throw Error(`unexpected type: `+n+` in makeOrd`)},$h=(e,t)=>{if(Fm(e.classes)!==Fm(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},eg=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Gm&&r instanceof Gm&&$h(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},tg=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},Y=function(e,t,n,r){var i=new Vm(e,t,n,r);return tg(i),i},ng=(e,t,n,r)=>new Vm(e,t,n,r),rg=function(e,t,n){var r=Y([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=V(r.height),r.maxFontSize=1,r},ig=function(e,t,n,r){var i=new Hm(e,t,n,r);return tg(i),i},ag=function(e){var t=new Am(e);return tg(t),t},og=function(e,t){return e instanceof Am?Y([],[e],t):e},sg=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}},cg=function(e,t){for(var{children:n,depth:r}=sg(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=Y([`pstrut`],[]);c.style.height=V(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=Y(g,[c,h],void 0,_);v.style.top=V(-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=Y([`vlist`],l);y.style.height=V(d);var b;if(u<0){var x=Y([`vlist`],[Y([],[])]);x.style.height=V(-u),b=[Y([`vlist-r`],[y,Y([`vlist-s`],[new Gm(``)])]),Y([`vlist-r`],[x])]}else b=[Y([`vlist-r`],[y])];var S=Y([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},lg=(e,t)=>{var n=Y([`mspace`],[],t),r=Pm(e,t);return n.style.marginRight=V(r),n},ug=(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`?`Italic`:`Regular`,r+`-`+i},dg={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`}},fg={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},pg=function(e,t){var[n,r,i]=fg[e],a=ng([`overlay`],[new Km([new qm(n)],{width:V(r),height:V(i),style:`width:`+V(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=V(i),a.style.width=V(r),a},mg={number:3,unit:`mu`},hg={number:4,unit:`mu`},gg={number:5,unit:`mu`},_g={mord:{mop:mg,mbin:hg,mrel:gg,minner:mg},mop:{mord:mg,mop:mg,mrel:gg,minner:mg},mbin:{mord:hg,mop:hg,mopen:hg,minner:hg},mrel:{mord:gg,mop:gg,mopen:gg,minner:gg},mopen:{},mclose:{mop:mg,mbin:hg,mrel:gg,minner:mg},mpunct:{mord:mg,mop:mg,mrel:gg,mopen:mg,mclose:mg,mpunct:mg,minner:mg},minner:{mord:mg,mop:mg,mbin:hg,mrel:gg,mopen:mg,mpunct:mg,minner:mg}},vg={mord:{mop:mg},mop:{mord:mg,mop:mg},mbin:{},mrel:{},mopen:{},mclose:{mop:mg},mpunct:{},minner:{mop:mg}},yg={},bg={},xg={};function Sg(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)yg[n[c]]=s;t&&(a&&(bg[t]=a),o&&(xg[t]=o))}function Cg(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Sg({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var wg=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},Tg=function(e){return e.type===`ordgroup`?e.body:[e]},Eg=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Dg=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),Og={display:dm.DISPLAY,text:dm.TEXT,script:dm.SCRIPT,scriptscript:dm.SCRIPTSCRIPT},kg={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},Ag=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=Ig(e[a],t);if(o instanceof Am){var s=o.children;i.push(...s)}else i.push(o)}if(eg(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(Og[l.style]))}var u=Y([r[0]||`leftmost`],[],t),d=Y([r[1]||`rightmost`],[],t),f=n===`root`;return jg(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Dg.has(r)?t.classes[0]=`mord`:r===`mbin`&&Eg.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),jg(i,(e,t)=>{var n=Pg(t),r=Pg(e),i=n&&r?e.hasClass(`mtight`)?vg[n]?.[r]:_g[n]?.[r]:null;if(i)return lg(i,c)},{node:u},d,f),i},jg=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=Mg(o);if(s){jg(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=Y([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Mg=function(e){return e instanceof Am||e instanceof Hm||e instanceof Vm&&e.hasClass(`enclosing`)?e:null},Ng=function(e,t){var n=Mg(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Ng(r[r.length-1],`right`);if(t===`left`)return Ng(r[0],`left`)}}return e},Pg=function(e,t){return e?(t&&(e=Ng(e,t)),kg[e.classes[0]]||null):null},Fg=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return Y(t.concat(n))},Ig=function(e,t,n){if(!e)return Y();if(bg[e.type]){var r=bg[e.type](e,t);if(n&&t.size!==n.size){r=Y(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new B(`Got group of unknown type: '`+e.type+`'`)};function Lg(e,t){var n=Y([`base`],e,t),r=Y([`strut`]);return r.style.height=V(n.height+n.depth),n.depth&&(r.style.verticalAlign=V(-n.depth)),n.children.unshift(r),n}function Rg(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=Ag(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(Lg(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(Lg(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Lg(o,t));var l;n?(l=Lg(Ag(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=Y([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=V(u.height+u.depth),u.depth&&(d.style.verticalAlign=V(-u.depth))}return u}function zg(e){return new Am(e)}var X=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=Fm(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Bg&&this.children[n+1]instanceof Bg){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Bg;)r+=this.children[++n].toText();e.appendChild(new Bg(r).toNode())}else 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+=zp(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+zp(Fm(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(``)}},Bg=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return zp(this.toText())}toText(){return this.text}},Vg=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?` `:e>=-.05556&&e<=-.05555?` `:e>=-.1667&&e<=-.1666?` `:e>=-.2223&&e<=-.2222?` `:e>=-.2778&&e<=-.2777?` `: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`,V(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+V(this.width)+`"/>`}toText(){return this.character?this.character:` `}},Hg=new Set([`\\imath`,`\\jmath`]),Ug=new Set([`mrow`,`mtable`]),Wg=function(e,t,n){return ah[t][e]&&ah[t][e].replace&&e.charCodeAt(0)!==55349&&!(hh.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=ah[t][e].replace),new Bg(e)},Gg=function(e){return e.length===1?e[0]:new X(`mrow`,e)},Kg={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`},qg=(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=Kg[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(Hg.has(a))return null;if(ah[r][a]){var o=ah[r][a].replace;o&&(a=o)}var s=dg[n].fontName;return nh(a,s,r)?dg[n].variant:null};function Jg(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Bg&&t.text===`.`}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 Bg&&n.text===`,`}return!1}var Yg=function(e,t,n){if(e.length===1){var r=Zg(e[0],t);return n&&r instanceof X&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=Zg(e[o],t);if(s instanceof X&&a instanceof X){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}if(Jg(s)&&a.type===`mn`){a.children.push(...s.children);continue}if(s.type===`mn`&&Jg(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||Jg(a))){var c=s.children[0];c instanceof X&&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 Bg&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof Bg&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},Xg=function(e,t,n){return Gg(Yg(e,t,n))},Zg=function(e,t){if(!e)return new X(`mrow`);if(xg[e.type])return xg[e.type](e,t);throw new B(`Got group of unknown type: '`+e.type+`'`)};function Qg(e,t,n,r,i){var a=Yg(e,n),o=a.length===1&&a[0]instanceof X&&Ug.has(a[0].type)?a[0]:new X(`mrow`,a),s=new X(`annotation`,[new Bg(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new X(`math`,[new X(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),Y([i?`katex`:`katex-mathml`],[c])}var $g=[[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]],e_=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],t_=function(e,t){return t.size<2?e:$g[e-1][t.size-1]},n_=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=e_[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:t_(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:e_[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=t_(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||=ih(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};n_.BASESIZE=6;var r_=function(e){return new n_({style:e.displayMode?dm.DISPLAY:dm.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},i_=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=Y(n,[e])}return e},a_=function(e,t,n){var r=r_(n),i;return n.output===`mathml`?Qg(e,t,r,n.displayMode,!0):(i=n.output===`html`?Y([`katex`],[Rg(e,r)]):Y([`katex`],[Qg(e,t,r,n.displayMode,!1),Rg(e,r)]),i_(i,n))},o_=function(e,t,n){return i_(Y([`katex`],[Rg(e,r_(n))]),n)},s_={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":`=`},c_=function(e){var t=new X(`mo`,[new Bg(s_[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},l_={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`,`rightbraceunder`],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]},u_=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),d_=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(u_.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:ng([],[new Km([new qm(o)],{width:`100%`,height:V(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var l=[],u=l_[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
|
|
364
|
-
`+h+` children.`);for(var v=0;v<h;v++){var y=new Km([new qm(d[v])],{width:`400em`,height:V(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=ng([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=V(m),l.push(b)}return{span:Y([`stretchy`],l,t),minWidth:f,height:m}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=V(a),i>0&&(r.style.minWidth=V(i)),r},f_=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=Y([`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 Jm({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new Jm({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=ng([],[new Km(c,{width:`100%`,height:V(o)})],i)}return a.height=o,a.style.height=V(o),a},p_={bin:1,close:1,inner:1,open:1,punct:1,rel:1},m_={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function h_(e){return e in p_}function g_(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 __(e){var t=v_(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function v_(e){return e&&(e.type===`atom`||m_.hasOwnProperty(e.type))?e:null}var y_=e=>{if(e instanceof Gm)return e;if(Zm(e)&&e.children.length===1)return y_(e.children[0])},b_=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=g_(e.base,`accent`),n=r.base,e.base=n,i=Xm(Ig(e,t)),e.base=r):(r=g_(e,`accent`),n=r.base);var a=Ig(n,t.havingCrampedStyle()),o=r.isShifty&&Hp(n),s=0;o&&(s=y_(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=d_(r,t),u=cg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+V(2*s)+`)`,marginLeft:V(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=pg(`vec`,t),f=fg.vec[1]):(d=Qh({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=Ym(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=Y([`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=V(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=cg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=Y([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},x_=(e,t)=>{var n=e.isStretchy?c_(e.label):new X(`mo`,[Wg(e.label,e.mode)]),r=new X(`mover`,[Zg(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},S_=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));Sg({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=wg(t[0]),r=!S_.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:b_,mathmlBuilder:x_}),Sg({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:b_,mathmlBuilder:x_}),Sg({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=Ig(e.base,t),r=d_(e,t),i=e.label===`\\utilde`?.12:0;return Y([`mord`,`accentunder`],[cg({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=c_(e.label),r=new X(`munder`,[Zg(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var C_=e=>{var t=new X(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};Sg({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=og(Ig(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=og(Ig(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=d_(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=cg({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=cg({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return Y([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=c_(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=C_(Zg(e.body,t));r=e.below?new X(`munderover`,[n,C_(Zg(e.below,t)),i]):new X(`mover`,[n,i])}else e.below?r=new X(`munder`,[n,C_(Zg(e.below,t))]):(r=C_(),r=new X(`mover`,[n,r]));return r}});function w_(e,t){var n=Ag(e.body,t,!0);return Y([e.mclass],n,t)}function T_(e,t){var n,r=Yg(e.body,t);return e.mclass===`minner`?n=new X(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new X(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new X(`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}Sg({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:Tg(i),isCharacterBox:Hp(i)}},htmlBuilder:w_,mathmlBuilder:T_});var E_=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`};Sg({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:E_(t[0]),body:Tg(t[1]),isCharacterBox:Hp(t[1])}}}),Sg({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`:E_(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Tg(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:Hp(c)}},htmlBuilder:w_,mathmlBuilder:T_}),Sg({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:E_(t[0]),body:Tg(t[0])}},htmlBuilder(e,t){var n=Ag(e.body,t,!0),r=Y([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new X(`mstyle`,Yg(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var D_={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},O_=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),k_=e=>e.type===`textord`&&e.text===`@`,A_=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function j_(e,t,n){var r=D_[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 M_(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 B(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=O_(),c=0;c<o.length;c++)if(!k_(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=__(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(A_(o[p],l)){f=!1,c=p;break}if(k_(o[p]))throw new B(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new B(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new B(`Expected one of "<>AV=|." after @`,o[c])}var m={type:`styling`,body:[j_(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=O_()}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([])}}Sg({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=og(Ig(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=V(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new X(`mrow`,[Zg(e.label,t)]);return n=new X(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new X(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Sg({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=og(Ig(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new X(`mrow`,[Zg(e.fragment,t)])}}),Sg({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=g_(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=g_(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new B(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new B(`\\@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 N_=(e,t)=>ag(Ag(e.body,t.withColor(e.color),!1)),P_=(e,t)=>{var n=new X(`mstyle`,Yg(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};Sg({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=g_(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Tg(i)}},htmlBuilder:N_,mathmlBuilder:P_}),Sg({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=g_(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:N_,mathmlBuilder:P_}),Sg({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&&g_(i,`size`).value}},htmlBuilder(e,t){var n=Y([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=V(Pm(e.size,t)))),n},mathmlBuilder(e,t){var n=new X(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,V(Pm(e.size,t)))),n}});var F_={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},I_=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new B(`Expected a control sequence`,e);return t},L_=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},R_=(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)};Sg({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(F_[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=F_[r.text]),g_(t.parseFunction(),`internal`);throw new B(`Invalid token after macro prefix`,r)}}),Sg({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 B(`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 B(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new B(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new B(`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===F_[n]),{type:`internal`,mode:t.mode}}}),Sg({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=I_(t.gullet.popToken());return t.gullet.consumeSpaces(),R_(t,r,L_(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Sg({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=I_(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return R_(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var z_=function(e,t,n){var r=nh(ah.math[e]&&ah.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},B_=function(e,t,n,r){var i=n.havingBaseStyle(t),a=Y(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},V_=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=V(i),e.height-=i,e.depth+=i},H_=function(e,t,n,r,i,a){var o=B_(Yh(e,`Main-Regular`,i,r),t,r,a);return n&&V_(o,r,t),o},U_=function(e,t,n,r){return Yh(e,`Size`+t+`-Regular`,n,r)},W_=function(e,t,n,r,i,a){var o=U_(e,t,i,r),s=B_(Y([`delimsizing`,`size`+t],[o],r),dm.TEXT,r,a);return n&&V_(s,r,dm.TEXT),s},G_=function(e,t,n){return{type:`elem`,elem:Y([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[Y([],[Yh(e,t,n)])])}},K_=function(e,t,n){var r=Qm[`Size4-Regular`][e.charCodeAt(0)]?Qm[`Size4-Regular`][e.charCodeAt(0)][4]:Qm[`Size1-Regular`][e.charCodeAt(0)][4],i=ng([],[new Km([new qm(`inner`,Em(e,Math.round(1e3*t)))],{width:V(r),height:V(t),style:`width:`+V(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=V(t),i.style.width=V(r),{type:`elem`,elem:i}},q_=.008,J_={type:`kern`,size:-1*q_},Y_=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),X_=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Z_=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`):Y_.has(e)?(c=`∣`,u=`vert`,d=333):X_.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=z_(o,f,i),m=p.height+p.depth,h=z_(c,f,i),g=h.height+h.depth,_=z_(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=z_(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,ee=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,te=r.fontMetrics().axisHeight;n&&(te*=r.sizeMultiplier);var ne=ee/2-te,re=[];if(u.length>0){var ie=ee-m-v,ae=Math.round(ee*1e3),oe=Om(u,Math.round(ie*1e3)),se=new qm(u,oe),ce=V(d/1e3),le=V(ae/1e3),ue=ng([],[new Km([se],{width:ce,height:le,viewBox:`0 0 `+d+` `+ae})],r);ue.height=ae/1e3,ue.style.width=ce,ue.style.height=le,re.push({type:`elem`,elem:ue})}else{if(re.push(G_(l,f,i)),re.push(J_),s===null){var de=ee-m-v+2*q_;re.push(K_(c,de,r))}else{var fe=(ee-m-v-y)/2+2*q_;re.push(K_(c,fe,r)),re.push(J_),re.push(G_(s,f,i)),re.push(J_),re.push(K_(c,fe,r))}re.push(J_),re.push(G_(o,f,i))}var pe=r.havingBaseStyle(dm.TEXT);return B_(Y([`delimsizing`,`mult`],[cg({positionType:`bottom`,positionData:ne,children:re})],pe),dm.TEXT,r,a)},Q_=80,$_=.08,ev=function(e,t,n,r,i){return ng([`hide-tail`],[new Km([new qm(e,Tm(e,r,n))],{width:`400em`,height:V(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},tv=function(e,t){var n=t.havingBaseSizing(),r=dv(`\\surd`,e*n.sizeMultiplier,lv,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+Q_,e<1?i=1:e<1.4&&(i=.7),s=(1+a+$_)/i,c=(1+a)/i,o=ev(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+Q_)*av[r.size],c=(av[r.size]+a)/i,s=(av[r.size]+a+$_)/i,o=ev(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+$_,c=e+a,l=Math.floor(1e3*e+a)+Q_,o=ev(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=V(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},nv=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),rv=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),iv=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),av=[0,1.2,1.8,2.4,3],ov=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),nv.has(e)||iv.has(e))return W_(e,t,!1,n,r,i);if(rv.has(e))return Z_(e,av[t],!1,n,r,i);throw new B(`Illegal delimiter: '`+e+`'`)},sv=[{type:`small`,style:dm.SCRIPTSCRIPT},{type:`small`,style:dm.SCRIPT},{type:`small`,style:dm.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],cv=[{type:`small`,style:dm.SCRIPTSCRIPT},{type:`small`,style:dm.SCRIPT},{type:`small`,style:dm.TEXT},{type:`stack`}],lv=[{type:`small`,style:dm.SCRIPTSCRIPT},{type:`small`,style:dm.SCRIPT},{type:`small`,style:dm.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],uv=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.`)},dv=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=z_(e,uv(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]},fv=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=iv.has(e)?sv:nv.has(e)?lv:cv,s=dv(e,t,o,r);return s.type===`small`?H_(e,s.style,n,r,i,a):s.type===`large`?W_(e,s.size,n,r,i,a):Z_(e,t,n,r,i,a)},pv=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 fv(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},mv={"\\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}},hv=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 gv(e){return`isMiddle`in e}function _v(e,t){var n=v_(e);if(n&&hv.has(n.text))return n;throw n?new B(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new B(`Invalid delimiter type '`+e.type+`'`,e)}Sg({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=_v(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:mv[e.funcName].size,mclass:mv[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?Y([e.mclass]):ov(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(Wg(e.delim,e.mode));var n=new X(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=V(av[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function vv(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}Sg({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 B(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:_v(t[0],e).text,color:n}}}),Sg({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=_v(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=g_(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{vv(e);for(var n=Ag(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];gv(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===`.`?Fg(t,[`mopen`]):pv(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(gv(u)){var d=u.isMiddle;n[l]=pv(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=Fg(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=pv(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),Y([`minner`],n,t)},mathmlBuilder:(e,t)=>{vv(e);var n=Yg(e.body,t);if(e.left!==`.`){var r=new X(`mo`,[Wg(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new X(`mo`,[Wg(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return Gg(n)}}),Sg({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=_v(t[0],e);if(!e.parser.leftrightDepth)throw new B(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=Fg(t,[]):(n=ov(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new X(`mo`,[e.delim===`\\vert`||e.delim===`|`?Wg(`|`,`text`):Wg(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var yv=(e,t)=>{var n=og(Ig(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=Hp(e.body);if(r===`sout`)a=Y([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=Pm({number:.6,unit:`pt`},t),l=Pm({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=V(d/2+c);var f=Math.floor(1e3*d*i);a=ng([`hide-tail`],[new Km([new qm(`phase`,Cm(f))],{width:`400em`,height:V(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=V(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=f_(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=V(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=V(h),a.style.borderRightWidth=V(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=cg({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=cg({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?Y([`mord`,`cancel-lap`],[g],t):Y([`mord`],[g],t)},bv=(e,t)=>{var n,r=new X(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Zg(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: `+V(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};Sg({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=g_(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:yv,mathmlBuilder:bv}),Sg({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=g_(t[0],`color-token`).color,o=g_(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:yv,mathmlBuilder:bv}),Sg({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]}}}),Sg({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:yv,mathmlBuilder:bv}),Sg({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:yv,mathmlBuilder:bv}),Sg({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 xv={};function Sv(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)xv[n[c]]=s;a&&(bg[t]=a),o&&(xg[t]=o)}var Cv={};function Z(e,t){Cv[e]=t}var wv=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}},Tv=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,wv.range(this,t))}};function Ev(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 Dv=e=>{if(!e.parser.settings.displayMode)throw new B(`{`+e.envName+`} can be used only in display mode.`)},Ov=new Set([`gather`,`gather*`]);function kv(e){if(!e.includes(`ed`))return!e.includes(`*`)}function Av(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 B(`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 Tv(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(Ev(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);var ee=e.fetch().text;if(ee===`&`){if(d&&m.length===d){if(l||s)throw new B(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(ee===`\\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(ee===`\\\\`){e.consume();var te=void 0;e.gullet.future().text!==` `&&(te=e.parseSizeGroup(!0)),g.push(te?te.value:null),b(),_.push(Ev(e)),m=[],h.push(m),y()}else throw new B(`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 jv(e){return e.slice(0,1)===`d`?`display`:`text`}var Mv=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(dm.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?Pm({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 ee=Ig(y[r],t);x<ee.depth&&(x=ee.depth),b<ee.height&&(b=ee.height),S.cells[r]=ee}var te=e.rowGaps[n],ne=0;te&&(ne=Pm(te,t),ne>0&&(ne+=g,x<ne&&(x=ne),ne=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+ne,s[n]=S,v(a[n+1])}var re=_/2+t.fontMetrics().axisHeight,ie=e.cols||[],ae=[],oe,se,ce=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var le=s[n],ue=le.pos-re,de=e.tags[n],fe=void 0;fe=de===!0?Y([`eqn-num`],[],t):de===!1?Y([],[],t):Y([],Ag(de,t,!0),t),fe.depth=le.depth,fe.height=le.height,ce.push({type:`elem`,elem:fe,shift:ue})}for(r=0,se=0;r<o||se<ie.length;++r,++se){for(var pe=ie[se],me=!0;(he=pe)?.type===`separator`;){var he;if(me||(oe=Y([`arraycolsep`],[]),oe.style.width=V(t.fontMetrics().doubleRuleSep),ae.push(oe)),pe.separator===`|`||pe.separator===`:`){var ge=pe.separator===`|`?`solid`:`dashed`,_e=Y([`vertical-separator`],[],t);_e.style.height=V(_),_e.style.borderRightWidth=V(l),_e.style.borderRightStyle=ge,_e.style.margin=`0 `+V(-l/2);var ve=_-re;ve&&(_e.style.verticalAlign=V(-ve)),ae.push(_e)}else throw new B(`Invalid separator type: `+pe.separator);se++,pe=ie[se],me=!1}if(!(r>=o)){var ye=void 0;(r>0||e.hskipBeforeAndAfter)&&(ye=pe?.pregap??d,ye!==0&&(oe=Y([`arraycolsep`],[]),oe.style.width=V(ye),ae.push(oe)));var be=[];for(n=0;n<i;++n){var xe=s[n],Se=xe.cells[r];if(Se){var Ce=xe.pos-re;Se.depth=xe.depth,Se.height=xe.height,be.push({type:`elem`,elem:Se,shift:Ce})}}var we=cg({positionType:`individualShift`,children:be}),Te=Y([`col-align-`+(pe?.align||`c`)],[we]);ae.push(Te),(r<o-1||e.hskipBeforeAndAfter)&&(ye=pe?.postgap??d,ye!==0&&(oe=Y([`arraycolsep`],[]),oe.style.width=V(ye),ae.push(oe)))}}var Ee=Y([`mtable`],ae);if(c.length>0){for(var De=rg(`hline`,t,l),Oe=rg(`hdashline`,t,l),ke=[{type:`elem`,elem:Ee,shift:0}];c.length>0;){var Ae=c.pop(),je=Ae.pos-re;Ae.isDashed?ke.push({type:`elem`,elem:Oe,shift:je}):ke.push({type:`elem`,elem:De,shift:je})}Ee=cg({positionType:`individualShift`,children:ke})}if(ce.length===0)return Y([`mord`],[Ee],t);var Me=Y([`tag`],[cg({positionType:`individualShift`,children:ce})],t);return ag([Ee,Me])},Nv={c:`center `,l:`left `,r:`right `},Pv=function(e,t){for(var n=[],r=new X(`mtd`,[],[`mtr-glue`]),i=new X(`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 X(`mtd`,[Zg(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 X(`mtr`,s))}var l=new X(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,V(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+=Nv[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 ee=``,te=e.hLinesBeforeRow;d+=te[0].length>0?`left `:``,d+=te[te.length-1].length>0?`right `:``;for(var ne=1;ne<te.length-1;ne++)ee+=te[ne].length===0?`none `:te[ne][0]?`dashed `:`solid `;return/[sd]/.test(ee)&&l.setAttribute(`rowlines`,ee.trim()),d!==``&&(l=new X(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new X(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},Fv=function(e,t){e.envName.includes(`ed`)||Dv(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=Av(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:kv(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=g_(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)g_(g_(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 B(`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};Sv({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(v_(t[0])?[t[0]]:g_(t[0],`ordgroup`).body).map(function(e){var t=__(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 B(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Av(e.parser,r,jv(e.envName))},htmlBuilder:Mv,mathmlBuilder:Pv}),Sv({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 B(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=Av(e.parser,r,jv(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:Mv,mathmlBuilder:Pv}),Sv({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=Av(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Mv,mathmlBuilder:Pv}),Sv({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(v_(t[0])?[t[0]]:g_(t[0],`ordgroup`).body).map(function(e){var t=__(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new B(`Unknown column alignment: `+t,e)});if(n.length>1)throw new B(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=Av(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new B(`{subarray} can contain only one column`);return i},htmlBuilder:Mv,mathmlBuilder:Pv}),Sv({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=Av(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},jv(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Mv,mathmlBuilder:Pv}),Sv({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Fv,htmlBuilder:Mv,mathmlBuilder:Pv}),Sv({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){Ov.has(e.envName)&&Dv(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:kv(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Av(e.parser,t,`display`)},htmlBuilder:Mv,mathmlBuilder:Pv}),Sv({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Fv,htmlBuilder:Mv,mathmlBuilder:Pv}),Sv({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){Dv(e);var t={autoTag:kv(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Av(e.parser,t,`display`)},htmlBuilder:Mv,mathmlBuilder:Pv}),Sv({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return Dv(e),M_(e.parser)},htmlBuilder:Mv,mathmlBuilder:Pv}),Z(`\\nonumber`,`\\gdef\\@eqnsw{0}`),Z(`\\notag`,`\\nonumber`),Sg({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new B(e.funcName+` valid only within array environment`)}});var Iv=xv;Sg({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 B(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=g_(i.body[o],`textord`).text;if(r===`\\begin`){if(!Iv.hasOwnProperty(a))throw new B(`No such environment: `+a,i);var s=Iv[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=g_(n.parseFunction(),`environment`);if(p.name!==a)throw new B(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var Lv=(e,t)=>{var n=e.font,r=t.withFont(n);return Ig(e.body,r)},Rv=(e,t)=>{var n=e.font,r=t.withFont(n);return Zg(e.body,r)},zv={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};Sg({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=wg(t[0]),a=r;return a in zv&&(a=zv[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Lv,mathmlBuilder:Rv}),Sg({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:E_(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:Hp(r)}}}),Sg({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:Lv,mathmlBuilder:Rv});var Bv=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Ig(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=Ig(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=Pm(e.barSize,t),u=rg(`frac-line`,t,d)):u=rg(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===dm.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=cg({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=cg({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===dm.DISPLAY.size?t.fontMetrics().delim1:n.size===dm.SCRIPTSCRIPT.size?t.havingStyle(dm.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?Fg(t,[`mopen`]):fv(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?Y([]):e.rightDelim==null?Fg(t,[`mclose`]):fv(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return Y([`mord`].concat(a.sizingClasses(t)),[x,Y([`mfrac`],[g]),S],t)},Vv=(e,t)=>{var n=new X(`mfrac`,[Zg(e.numer,t),Zg(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Pm(e.barSize,t);n.setAttribute(`linethickness`,V(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new X(`mo`,[new Bg(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new X(`mo`,[new Bg(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return Gg(i)}return n},Hv=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;Sg({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`),Hv({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:Bv,mathmlBuilder:Vv}),Sg({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 Uv=[`display`,`text`,`script`,`scriptscript`],Wv=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};Sg({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=wg(t[0]),o=a.type===`atom`&&a.family===`open`?Wv(a.text):null,s=wg(t[1]),c=s.type===`atom`&&s.family===`close`?Wv(s.text):null,l=g_(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=g_(p.body[0],`textord`);f=Uv[Number(m.text)]}}else p=g_(p,`textord`),f=Uv[Number(p.text)];return Hv({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),Sg({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:g_(t[0],`size`).value,token:i}}}),Sg({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=g_(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 Gv=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Ig(e.sup,t.havingStyle(n.sup()),t):Ig(e.sub,t.havingStyle(n.sub()),t),i=g_(e.base,`horizBrace`)):i=g_(e,`horizBrace`);var a=Ig(i.base,t.havingBaseStyle(dm.DISPLAY)),o=d_(i,t),s=i.isOver?cg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):cg({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=Y([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?cg({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):cg({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return Y([`minner`,i.isOver?`mover`:`munder`],[s],t)};Sg({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:Gv,mathmlBuilder:(e,t)=>{var n=c_(e.label);return new X(e.isOver?`mover`:`munder`,[Zg(e.base,t),n])}}),Sg({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=g_(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Tg(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=Ag(e.body,t,!1);return ig(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Xg(e.body,t);return n instanceof X||(n=new X(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Sg({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=g_(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:Tg(s)}}}),Sg({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:Tg(t[0])}},htmlBuilder(e,t){return ag(Ag(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new X(`mrow`,Yg(e.body,t.withFont(``)))}}),Sg({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=g_(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 B(`\\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:Tg(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Ag(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=Y(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)=>Xg(e.body,t)}),Sg({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:Tg(t[0]),mathml:Tg(t[1])}},htmlBuilder:(e,t)=>ag(Ag(e.html,t,!1)),mathmlBuilder:(e,t)=>Xg(e.mathml,t)});var Kv=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 B(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!Nm(n))throw new B(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};Sg({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=g_(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=Kv(d);break;case`height`:a=Kv(d);break;case`totalheight`:o=Kv(d);break;default:throw new B(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=g_(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=Pm(e.height,t),r=0;e.totalheight.number>0&&(r=Pm(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Pm(e.width,t));var a={height:V(n+r)};i>0&&(a.width=V(i)),r>0&&(a.verticalAlign=V(-r));var o=new Um(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new X(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Pm(e.height,t),i=0;if(e.totalheight.number>0&&(i=Pm(e.totalheight,t)-r,n.setAttribute(`valign`,V(-i))),n.setAttribute(`height`,V(r+i)),e.width.number>0){var a=Pm(e.width,t);n.setAttribute(`width`,V(a))}return n.setAttribute(`src`,e.src),n}}),Sg({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=g_(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 lg(e.dimension,t)},mathmlBuilder(e,t){return new Vg(Pm(e.dimension,t))}}),Sg({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=Y([],[Ig(e.body,t)]),n=Y([`inner`],[n],t)):n=Y([`inner`],[Ig(e.body,t)]);var r=Y([`fix`],[]),i=Y([e.alignment],[n,r],t),a=Y([`strut`]);return a.style.height=V(i.height+i.depth),i.depth&&(a.style.verticalAlign=V(-i.depth)),i.children.unshift(a),i=Y([`thinbox`],[i],t),Y([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[Zg(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}}),Sg({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}}}),Sg({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new B(`Mismatched `+e.funcName)}});var qv=(e,t)=>{switch(t.style.size){case dm.DISPLAY.size:return e.display;case dm.TEXT.size:return e.text;case dm.SCRIPT.size:return e.script;case dm.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Sg({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:Tg(t[0]),text:Tg(t[1]),script:Tg(t[2]),scriptscript:Tg(t[3])}},htmlBuilder:(e,t)=>ag(Ag(qv(e,t),t,!1)),mathmlBuilder:(e,t)=>Xg(qv(e,t),t)});var Jv=(e,t,n,r,i,a,o)=>{e=Y([],[e]);var s=n&&Hp(n),c,l;if(t){var u=Ig(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Ig(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=cg({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:V(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:V(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=cg({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:V(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=cg({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:V(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=Y([`mspace`],[],r);m.style.marginRight=V(a),p.unshift(m)}return Y([`mop`,`op-limits`],p,r)},Yv=new Set([`\\smallint`]),Xv=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=g_(e.base,`op`),i=!0):a=g_(e,`op`);var o=t.style,s=!1;o.size===dm.DISPLAY.size&&a.symbol&&!Yv.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=Yh(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=pg(d+`Size`+(s?`2`:`1`),t);c=cg({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=Ag(a.body,t,!0);p.length===1&&p[0]instanceof Gm?(c=p[0],c.classes[0]=`mop`):c=Y([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(Xh(a.name[h],a.mode,t));c=Y([`mop`],m,t)}var g=0,_=0;return(c instanceof Gm||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?Jv(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=V(g)),c)},Zv=(e,t)=>{var n;if(e.symbol)n=new X(`mo`,[Wg(e.name,e.mode)]),Yv.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new X(`mo`,Yg(e.body,t));else{n=new X(`mi`,[new Bg(e.name.slice(1))]);var r=new X(`mo`,[Wg(``,`text`)]);n=e.parentIsSupSub?new X(`mrow`,[n,r]):zg([n,r])}return n},Qv={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};Sg({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=Qv[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Xv,mathmlBuilder:Zv}),Sg({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:Tg(r)}},htmlBuilder:Xv,mathmlBuilder:Zv});var $v={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};Sg({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:Xv,mathmlBuilder:Zv}),Sg({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:Xv,mathmlBuilder:Zv}),Sg({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=$v[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Xv,mathmlBuilder:Zv});var ey=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=g_(e.base,`operatorname`),i=!0):a=g_(e,`operatorname`);var o;if(a.body.length>0){for(var s=Ag(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 Gm&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=Y([`mop`],s,t)}else o=Y([`mop`],[],t);return i?Jv(o,n,r,t,t.style,0,0):o};Sg({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:Tg(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:ey,mathmlBuilder:(e,t)=>{for(var n=Yg(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof Vg)){if(a instanceof X)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 Bg?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}}r&&(n=[new Bg(n.map(e=>e.toText()).join(``))]);var s=new X(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new X(`mo`,[Wg(``,`text`)]);return e.parentIsSupSub?new X(`mrow`,[s,c]):zg([s,c])}}),Z(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Cg({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?ag(Ag(e.body,t,!1)):Y([`mord`],Ag(e.body,t,!0),t)},mathmlBuilder(e,t){return Xg(e.body,t,!0)}}),Sg({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=Ig(e.body,t.havingCrampedStyle()),r=rg(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return Y([`mord`,`overline`],[cg({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 X(`mo`,[new Bg(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`mover`,[Zg(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Sg({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:Tg(r)}},htmlBuilder:(e,t)=>ag(Ag(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new X(`mphantom`,Yg(e.body,t))}),Z(`\\hphantom`,`\\smash{\\phantom{#1}}`),Sg({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)=>Y([`mord`,`rlap`],[Y([`inner`],[Ig(e.body,t.withPhantom())]),Y([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[new X(`mphantom`,Yg(Tg(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),Sg({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=g_(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Ig(e.body,t);return cg({positionType:`shift`,positionData:-Pm(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new X(`mpadded`,[Zg(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),Sg({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),Sg({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=g_(t[0],`size`),o=g_(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&g_(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=Y([`mord`,`rule`],[],t),r=Pm(e.width,t),i=Pm(e.height,t),a=e.shift?Pm(e.shift,t):0;return n.style.borderRightWidth=V(r),n.style.borderTopWidth=V(i),n.style.bottom=V(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Pm(e.width,t),r=Pm(e.height,t),i=e.shift?Pm(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new X(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,V(n)),o.setAttribute(`height`,V(r));var s=new X(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,V(i)):(s.setAttribute(`height`,V(i)),s.setAttribute(`depth`,V(-i))),s.setAttribute(`voffset`,V(i)),s}});function ty(e,t,n){for(var r=Ag(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 ag(r)}var ny=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];Sg({type:`sizing`,names:ny,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:ny.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return ty(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new X(`mstyle`,Yg(e.body,n));return r.setAttribute(`mathsize`,V(n.sizeMultiplier)),r}}),Sg({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]&&g_(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=__(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=Y([],[Ig(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 Y([`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 Y([`mord`],[cg({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[Zg(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Sg({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=Ig(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=og(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<dm.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=tv(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=V(c);var d=cg({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(dm.SCRIPTSCRIPT),p=Ig(e.index,f,t);return Y([`mord`,`sqrt`],[Y([`root`],[cg({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}return Y([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new X(`mroot`,[Zg(n,t),Zg(r,t)]):new X(`msqrt`,[Zg(n,t)])}});var ry={display:dm.DISPLAY,text:dm.TEXT,script:dm.SCRIPT,scriptscript:dm.SCRIPTSCRIPT};function iy(e){return e in ry}Sg({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(!iy(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=ry[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),ty(e.body,r,t)},mathmlBuilder(e,t){var n=ry[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new X(`mstyle`,Yg(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 ay=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===dm.DISPLAY.size||n.alwaysHandleSupSub)?Xv:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===dm.DISPLAY.size||n.limits)?ey:null:n.type===`accent`?Hp(n.base)?b_:null:n.type===`horizBrace`&&!e.sub===n.isOver?Gv:null:null};Cg({type:`supsub`,htmlBuilder(e,t){var n=ay(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=Ig(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&Hp(r);if(i){var p=t.havingStyle(t.style.sup());s=Ig(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=Ig(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===dm.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=V(.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 Gm||y)&&(v=V(-(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=cg({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=cg({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=cg({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return Y([Pg(o,`right`)||`mord`],[o,Y([`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=[Zg(e.base,t)];e.sub&&a.push(Zg(e.sub,t)),e.sup&&a.push(Zg(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===dm.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===dm.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===dm.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===dm.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===dm.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===dm.DISPLAY)?`munder`:`msub`}return new X(o,a)}}),Cg({type:`atom`,htmlBuilder(e,t){return Xh(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new X(`mo`,[Wg(e.text,e.mode)]);if(e.family===`bin`){var r=qg(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 oy={mi:`italic`,mn:`normal`,mtext:`normal`};Cg({type:`mathord`,htmlBuilder(e,t){return Qh(e,t,`mathord`)},mathmlBuilder(e,t){var n=new X(`mi`,[Wg(e.text,e.mode,t)]),r=qg(e,t)||`italic`;return r!==oy[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Cg({type:`textord`,htmlBuilder(e,t){return Qh(e,t,`textord`)},mathmlBuilder(e,t){var n=Wg(e.text,e.mode,t),r=qg(e,t)||`normal`,i=e.mode===`text`?new X(`mtext`,[n]):/[0-9]/.test(e.text)?new X(`mn`,[n]):e.text===`\\prime`?new X(`mo`,[n]):new X(`mi`,[n]);return r!==oy[i.type]&&i.setAttribute(`mathvariant`,r),i}});var sy={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},cy={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};Cg({type:`spacing`,htmlBuilder(e,t){if(cy.hasOwnProperty(e.text)){var n=cy[e.text].className||``;if(e.mode===`text`){var r=Qh(e,t,`textord`);return r.classes.push(n),r}return Y([`mspace`,n],[Xh(e.text,e.mode,t)],t)}if(sy.hasOwnProperty(e.text))return Y([`mspace`,sy[e.text]],[],t);throw new B(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(cy.hasOwnProperty(e.text))n=new X(`mtext`,[new Bg(`\xA0`)]);else if(sy.hasOwnProperty(e.text))return new X(`mspace`);else throw new B(`Unknown type of space "`+e.text+`"`);return n}});var ly=()=>{var e=new X(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};Cg({type:`tag`,mathmlBuilder(e,t){var n=new X(`mtable`,[new X(`mtr`,[ly(),new X(`mtd`,[Xg(e.body,t)]),ly(),new X(`mtd`,[Xg(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var uy={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},dy={"\\textbf":`textbf`,"\\textmd":`textmd`},fy={"\\textit":`textit`,"\\textup":`textup`},py=(e,t)=>{var n=e.font;return n?uy[n]?t.withTextFontFamily(uy[n]):dy[n]?t.withTextFontWeight(dy[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(fy[n]):t};Sg({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:Tg(i),font:r}},htmlBuilder(e,t){var n=py(e,t);return Y([`mord`,`text`],Ag(e.body,n,!0),n)},mathmlBuilder(e,t){var n=py(e,t);return Xg(e.body,n)}}),Sg({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=Ig(e.body,t),r=rg(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return Y([`mord`,`underline`],[cg({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 X(`mo`,[new Bg(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`munder`,[Zg(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Sg({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=Ig(e.body,t),r=t.fontMetrics().axisHeight;return cg({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new X(`mrow`,[new X(`mpadded`,[Zg(e.body,t)],[`vcenter`])])}}),Sg({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new B(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=my(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(Yh(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return Y([`mord`,`text`].concat(i.sizingClasses(t)),eg(r),i)},mathmlBuilder(e,t){var n=new X(`mtext`,[new Bg(my(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var my=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),hy=yg,gy=`[ \r
|
|
365
|
-
]`,
|
|
363
|
+
-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 Am(e){return`toText`in e}var jm=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(Am(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},Mm={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},Nm={ex:!0,em:!0,mu:!0},Pm=function(e){return typeof e!=`string`&&(e=e.unit),e in Mm||e in Nm||e===`ex`},Fm=function(e,t){var n;if(e.unit in Mm)n=Mm[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 B(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},V=function(e){return+e.toFixed(4)+`em`},Im=function(e){return e.filter(e=>e).join(` `)},Lm=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=Lp(n)+`:`+r+`;`)}return t},Rm=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)}},zm=function(e){var t=document.createElement(e);t.className=Im(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},Bm=/[\s"'>/=\x00-\x1f]/,Vm=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+Bp(Im(this.classes))+`"`);var n=Lm(this.style);n&&(t+=` style="`+Bp(n)+`"`);for(var r of Object.keys(this.attributes)){if(Bm.test(r))throw new B(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+Bp(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},Hm=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,Rm.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return zm.call(this,`span`)}toMarkup(){return Vm.call(this,`span`)}},Um=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,Rm.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 zm.call(this,`a`)}toMarkup(){return Vm.call(this,`a`)}},Wm=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="`+Bp(this.src)+`"`+(` alt="`+Bp(this.alt)+`"`),t=Lm(this.style);return t&&(e+=` style="`+Bp(t)+`"`),e+=`'/>`,e}},Gm={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Km=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=mm(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Gm[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=V(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=Im(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+=Bp(Im(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+V(this.italic)+`;`),n+=Lm(this.style),n&&(e=!0,t+=` style="`+Bp(n)+`"`);var r=Bp(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},qm=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+`="`+Bp(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},Jm=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`,Om[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+Bp(this.alternate)+`"/>`:`<path d="`+Bp(Om[this.pathName])+`"/>`}},Ym=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+`="`+Bp(this.attributes[t])+`"`;return e+=`/>`,e}};function Xm(e){if(e instanceof Km)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Zm(e){if(e instanceof Hm)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var Qm=e=>e instanceof Hm||e instanceof Um||e instanceof jm,$m={"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],116:[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]}},eh={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]},th={Å:`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 nh(e,t){$m[e]=t}function rh(e,t,n){if(!$m[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=$m[t][r];if(!i&&e[0]in th&&(r=th[e[0]].charCodeAt(0),i=$m[t][r]),!i&&n===`text`&&gm(r)&&(i=$m[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var ih={};function ah(e){var t=e>=5?0:e>=3?1:2;if(!ih[t]){var n=ih[t]={cssEmPerMu:eh.quad[t]/18};for(var r in eh)eh.hasOwnProperty(r)&&(n[r]=eh[r][t])}return ih[t]}var oh={math:{},text:{}};function H(e,t,n,r,i,a){oh[e][i]={font:t,group:n,replace:r},a&&r&&(oh[e][r]=oh[e][i])}var U=`math`,W=`text`,G=`main`,K=`ams`,sh=`accent-token`,ch=`bin`,lh=`close`,uh=`inner`,dh=`mathord`,fh=`op-token`,ph=`open`,mh=`punct`,q=`rel`,hh=`spacing`,J=`textord`;H(U,G,q,`≡`,`\\equiv`,!0),H(U,G,q,`≺`,`\\prec`,!0),H(U,G,q,`≻`,`\\succ`,!0),H(U,G,q,`∼`,`\\sim`,!0),H(U,G,q,`⊥`,`\\perp`),H(U,G,q,`⪯`,`\\preceq`,!0),H(U,G,q,`⪰`,`\\succeq`,!0),H(U,G,q,`≃`,`\\simeq`,!0),H(U,G,q,`∣`,`\\mid`,!0),H(U,G,q,`≪`,`\\ll`,!0),H(U,G,q,`≫`,`\\gg`,!0),H(U,G,q,`≍`,`\\asymp`,!0),H(U,G,q,`∥`,`\\parallel`),H(U,G,q,`⋈`,`\\bowtie`,!0),H(U,G,q,`⌣`,`\\smile`,!0),H(U,G,q,`⊑`,`\\sqsubseteq`,!0),H(U,G,q,`⊒`,`\\sqsupseteq`,!0),H(U,G,q,`≐`,`\\doteq`,!0),H(U,G,q,`⌢`,`\\frown`,!0),H(U,G,q,`∋`,`\\ni`,!0),H(U,G,q,`∝`,`\\propto`,!0),H(U,G,q,`⊢`,`\\vdash`,!0),H(U,G,q,`⊣`,`\\dashv`,!0),H(U,G,q,`∋`,`\\owns`),H(U,G,mh,`.`,`\\ldotp`),H(U,G,mh,`⋅`,`\\cdotp`),H(U,G,mh,`⋅`,`·`),H(W,G,J,`⋅`,`·`),H(U,G,J,`#`,`\\#`),H(W,G,J,`#`,`\\#`),H(U,G,J,`&`,`\\&`),H(W,G,J,`&`,`\\&`),H(U,G,J,`ℵ`,`\\aleph`,!0),H(U,G,J,`∀`,`\\forall`,!0),H(U,G,J,`ℏ`,`\\hbar`,!0),H(U,G,J,`∃`,`\\exists`,!0),H(U,G,J,`∇`,`\\nabla`,!0),H(U,G,J,`♭`,`\\flat`,!0),H(U,G,J,`ℓ`,`\\ell`,!0),H(U,G,J,`♮`,`\\natural`,!0),H(U,G,J,`♣`,`\\clubsuit`,!0),H(U,G,J,`℘`,`\\wp`,!0),H(U,G,J,`♯`,`\\sharp`,!0),H(U,G,J,`♢`,`\\diamondsuit`,!0),H(U,G,J,`ℜ`,`\\Re`,!0),H(U,G,J,`♡`,`\\heartsuit`,!0),H(U,G,J,`ℑ`,`\\Im`,!0),H(U,G,J,`♠`,`\\spadesuit`,!0),H(U,G,J,`§`,`\\S`,!0),H(W,G,J,`§`,`\\S`),H(U,G,J,`¶`,`\\P`,!0),H(W,G,J,`¶`,`\\P`),H(U,G,J,`†`,`\\dag`),H(W,G,J,`†`,`\\dag`),H(W,G,J,`†`,`\\textdagger`),H(U,G,J,`‡`,`\\ddag`),H(W,G,J,`‡`,`\\ddag`),H(W,G,J,`‡`,`\\textdaggerdbl`),H(U,G,lh,`⎱`,`\\rmoustache`,!0),H(U,G,ph,`⎰`,`\\lmoustache`,!0),H(U,G,lh,`⟯`,`\\rgroup`,!0),H(U,G,ph,`⟮`,`\\lgroup`,!0),H(U,G,ch,`∓`,`\\mp`,!0),H(U,G,ch,`⊖`,`\\ominus`,!0),H(U,G,ch,`⊎`,`\\uplus`,!0),H(U,G,ch,`⊓`,`\\sqcap`,!0),H(U,G,ch,`∗`,`\\ast`),H(U,G,ch,`⊔`,`\\sqcup`,!0),H(U,G,ch,`◯`,`\\bigcirc`,!0),H(U,G,ch,`∙`,`\\bullet`,!0),H(U,G,ch,`‡`,`\\ddagger`),H(U,G,ch,`≀`,`\\wr`,!0),H(U,G,ch,`⨿`,`\\amalg`),H(U,G,ch,`&`,`\\And`),H(U,G,q,`⟵`,`\\longleftarrow`,!0),H(U,G,q,`⇐`,`\\Leftarrow`,!0),H(U,G,q,`⟸`,`\\Longleftarrow`,!0),H(U,G,q,`⟶`,`\\longrightarrow`,!0),H(U,G,q,`⇒`,`\\Rightarrow`,!0),H(U,G,q,`⟹`,`\\Longrightarrow`,!0),H(U,G,q,`↔`,`\\leftrightarrow`,!0),H(U,G,q,`⟷`,`\\longleftrightarrow`,!0),H(U,G,q,`⇔`,`\\Leftrightarrow`,!0),H(U,G,q,`⟺`,`\\Longleftrightarrow`,!0),H(U,G,q,`↦`,`\\mapsto`,!0),H(U,G,q,`⟼`,`\\longmapsto`,!0),H(U,G,q,`↗`,`\\nearrow`,!0),H(U,G,q,`↩`,`\\hookleftarrow`,!0),H(U,G,q,`↪`,`\\hookrightarrow`,!0),H(U,G,q,`↘`,`\\searrow`,!0),H(U,G,q,`↼`,`\\leftharpoonup`,!0),H(U,G,q,`⇀`,`\\rightharpoonup`,!0),H(U,G,q,`↙`,`\\swarrow`,!0),H(U,G,q,`↽`,`\\leftharpoondown`,!0),H(U,G,q,`⇁`,`\\rightharpoondown`,!0),H(U,G,q,`↖`,`\\nwarrow`,!0),H(U,G,q,`⇌`,`\\rightleftharpoons`,!0),H(U,K,q,`≮`,`\\nless`,!0),H(U,K,q,``,`\\@nleqslant`),H(U,K,q,``,`\\@nleqq`),H(U,K,q,`⪇`,`\\lneq`,!0),H(U,K,q,`≨`,`\\lneqq`,!0),H(U,K,q,``,`\\@lvertneqq`),H(U,K,q,`⋦`,`\\lnsim`,!0),H(U,K,q,`⪉`,`\\lnapprox`,!0),H(U,K,q,`⊀`,`\\nprec`,!0),H(U,K,q,`⋠`,`\\npreceq`,!0),H(U,K,q,`⋨`,`\\precnsim`,!0),H(U,K,q,`⪹`,`\\precnapprox`,!0),H(U,K,q,`≁`,`\\nsim`,!0),H(U,K,q,``,`\\@nshortmid`),H(U,K,q,`∤`,`\\nmid`,!0),H(U,K,q,`⊬`,`\\nvdash`,!0),H(U,K,q,`⊭`,`\\nvDash`,!0),H(U,K,q,`⋪`,`\\ntriangleleft`),H(U,K,q,`⋬`,`\\ntrianglelefteq`,!0),H(U,K,q,`⊊`,`\\subsetneq`,!0),H(U,K,q,``,`\\@varsubsetneq`),H(U,K,q,`⫋`,`\\subsetneqq`,!0),H(U,K,q,``,`\\@varsubsetneqq`),H(U,K,q,`≯`,`\\ngtr`,!0),H(U,K,q,``,`\\@ngeqslant`),H(U,K,q,``,`\\@ngeqq`),H(U,K,q,`⪈`,`\\gneq`,!0),H(U,K,q,`≩`,`\\gneqq`,!0),H(U,K,q,``,`\\@gvertneqq`),H(U,K,q,`⋧`,`\\gnsim`,!0),H(U,K,q,`⪊`,`\\gnapprox`,!0),H(U,K,q,`⊁`,`\\nsucc`,!0),H(U,K,q,`⋡`,`\\nsucceq`,!0),H(U,K,q,`⋩`,`\\succnsim`,!0),H(U,K,q,`⪺`,`\\succnapprox`,!0),H(U,K,q,`≆`,`\\ncong`,!0),H(U,K,q,``,`\\@nshortparallel`),H(U,K,q,`∦`,`\\nparallel`,!0),H(U,K,q,`⊯`,`\\nVDash`,!0),H(U,K,q,`⋫`,`\\ntriangleright`),H(U,K,q,`⋭`,`\\ntrianglerighteq`,!0),H(U,K,q,``,`\\@nsupseteqq`),H(U,K,q,`⊋`,`\\supsetneq`,!0),H(U,K,q,``,`\\@varsupsetneq`),H(U,K,q,`⫌`,`\\supsetneqq`,!0),H(U,K,q,``,`\\@varsupsetneqq`),H(U,K,q,`⊮`,`\\nVdash`,!0),H(U,K,q,`⪵`,`\\precneqq`,!0),H(U,K,q,`⪶`,`\\succneqq`,!0),H(U,K,q,``,`\\@nsubseteqq`),H(U,K,ch,`⊴`,`\\unlhd`),H(U,K,ch,`⊵`,`\\unrhd`),H(U,K,q,`↚`,`\\nleftarrow`,!0),H(U,K,q,`↛`,`\\nrightarrow`,!0),H(U,K,q,`⇍`,`\\nLeftarrow`,!0),H(U,K,q,`⇏`,`\\nRightarrow`,!0),H(U,K,q,`↮`,`\\nleftrightarrow`,!0),H(U,K,q,`⇎`,`\\nLeftrightarrow`,!0),H(U,K,q,`△`,`\\vartriangle`),H(U,K,J,`ℏ`,`\\hslash`),H(U,K,J,`▽`,`\\triangledown`),H(U,K,J,`◊`,`\\lozenge`),H(U,K,J,`Ⓢ`,`\\circledS`),H(U,K,J,`®`,`\\circledR`),H(W,K,J,`®`,`\\circledR`),H(U,K,J,`∡`,`\\measuredangle`,!0),H(U,K,J,`∄`,`\\nexists`),H(U,K,J,`℧`,`\\mho`),H(U,K,J,`Ⅎ`,`\\Finv`,!0),H(U,K,J,`⅁`,`\\Game`,!0),H(U,K,J,`‵`,`\\backprime`),H(U,K,J,`▲`,`\\blacktriangle`),H(U,K,J,`▼`,`\\blacktriangledown`),H(U,K,J,`■`,`\\blacksquare`),H(U,K,J,`⧫`,`\\blacklozenge`),H(U,K,J,`★`,`\\bigstar`),H(U,K,J,`∢`,`\\sphericalangle`,!0),H(U,K,J,`∁`,`\\complement`,!0),H(U,K,J,`ð`,`\\eth`,!0),H(W,G,J,`ð`,`ð`),H(U,K,J,`╱`,`\\diagup`),H(U,K,J,`╲`,`\\diagdown`),H(U,K,J,`□`,`\\square`),H(U,K,J,`□`,`\\Box`),H(U,K,J,`◊`,`\\Diamond`),H(U,K,J,`¥`,`\\yen`,!0),H(W,K,J,`¥`,`\\yen`,!0),H(U,K,J,`✓`,`\\checkmark`,!0),H(W,K,J,`✓`,`\\checkmark`),H(U,K,J,`ℶ`,`\\beth`,!0),H(U,K,J,`ℸ`,`\\daleth`,!0),H(U,K,J,`ℷ`,`\\gimel`,!0),H(U,K,J,`ϝ`,`\\digamma`,!0),H(U,K,J,`ϰ`,`\\varkappa`),H(U,K,ph,`┌`,`\\@ulcorner`,!0),H(U,K,lh,`┐`,`\\@urcorner`,!0),H(U,K,ph,`└`,`\\@llcorner`,!0),H(U,K,lh,`┘`,`\\@lrcorner`,!0),H(U,K,q,`≦`,`\\leqq`,!0),H(U,K,q,`⩽`,`\\leqslant`,!0),H(U,K,q,`⪕`,`\\eqslantless`,!0),H(U,K,q,`≲`,`\\lesssim`,!0),H(U,K,q,`⪅`,`\\lessapprox`,!0),H(U,K,q,`≊`,`\\approxeq`,!0),H(U,K,ch,`⋖`,`\\lessdot`),H(U,K,q,`⋘`,`\\lll`,!0),H(U,K,q,`≶`,`\\lessgtr`,!0),H(U,K,q,`⋚`,`\\lesseqgtr`,!0),H(U,K,q,`⪋`,`\\lesseqqgtr`,!0),H(U,K,q,`≑`,`\\doteqdot`),H(U,K,q,`≓`,`\\risingdotseq`,!0),H(U,K,q,`≒`,`\\fallingdotseq`,!0),H(U,K,q,`∽`,`\\backsim`,!0),H(U,K,q,`⋍`,`\\backsimeq`,!0),H(U,K,q,`⫅`,`\\subseteqq`,!0),H(U,K,q,`⋐`,`\\Subset`,!0),H(U,K,q,`⊏`,`\\sqsubset`,!0),H(U,K,q,`≼`,`\\preccurlyeq`,!0),H(U,K,q,`⋞`,`\\curlyeqprec`,!0),H(U,K,q,`≾`,`\\precsim`,!0),H(U,K,q,`⪷`,`\\precapprox`,!0),H(U,K,q,`⊲`,`\\vartriangleleft`),H(U,K,q,`⊴`,`\\trianglelefteq`),H(U,K,q,`⊨`,`\\vDash`,!0),H(U,K,q,`⊪`,`\\Vvdash`,!0),H(U,K,q,`⌣`,`\\smallsmile`),H(U,K,q,`⌢`,`\\smallfrown`),H(U,K,q,`≏`,`\\bumpeq`,!0),H(U,K,q,`≎`,`\\Bumpeq`,!0),H(U,K,q,`≧`,`\\geqq`,!0),H(U,K,q,`⩾`,`\\geqslant`,!0),H(U,K,q,`⪖`,`\\eqslantgtr`,!0),H(U,K,q,`≳`,`\\gtrsim`,!0),H(U,K,q,`⪆`,`\\gtrapprox`,!0),H(U,K,ch,`⋗`,`\\gtrdot`),H(U,K,q,`⋙`,`\\ggg`,!0),H(U,K,q,`≷`,`\\gtrless`,!0),H(U,K,q,`⋛`,`\\gtreqless`,!0),H(U,K,q,`⪌`,`\\gtreqqless`,!0),H(U,K,q,`≖`,`\\eqcirc`,!0),H(U,K,q,`≗`,`\\circeq`,!0),H(U,K,q,`≜`,`\\triangleq`,!0),H(U,K,q,`∼`,`\\thicksim`),H(U,K,q,`≈`,`\\thickapprox`),H(U,K,q,`⫆`,`\\supseteqq`,!0),H(U,K,q,`⋑`,`\\Supset`,!0),H(U,K,q,`⊐`,`\\sqsupset`,!0),H(U,K,q,`≽`,`\\succcurlyeq`,!0),H(U,K,q,`⋟`,`\\curlyeqsucc`,!0),H(U,K,q,`≿`,`\\succsim`,!0),H(U,K,q,`⪸`,`\\succapprox`,!0),H(U,K,q,`⊳`,`\\vartriangleright`),H(U,K,q,`⊵`,`\\trianglerighteq`),H(U,K,q,`⊩`,`\\Vdash`,!0),H(U,K,q,`∣`,`\\shortmid`),H(U,K,q,`∥`,`\\shortparallel`),H(U,K,q,`≬`,`\\between`,!0),H(U,K,q,`⋔`,`\\pitchfork`,!0),H(U,K,q,`∝`,`\\varpropto`),H(U,K,q,`◀`,`\\blacktriangleleft`),H(U,K,q,`∴`,`\\therefore`,!0),H(U,K,q,`∍`,`\\backepsilon`),H(U,K,q,`▶`,`\\blacktriangleright`),H(U,K,q,`∵`,`\\because`,!0),H(U,K,q,`⋘`,`\\llless`),H(U,K,q,`⋙`,`\\gggtr`),H(U,K,ch,`⊲`,`\\lhd`),H(U,K,ch,`⊳`,`\\rhd`),H(U,K,q,`≂`,`\\eqsim`,!0),H(U,G,q,`⋈`,`\\Join`),H(U,K,q,`≑`,`\\Doteq`,!0),H(U,K,ch,`∔`,`\\dotplus`,!0),H(U,K,ch,`∖`,`\\smallsetminus`),H(U,K,ch,`⋒`,`\\Cap`,!0),H(U,K,ch,`⋓`,`\\Cup`,!0),H(U,K,ch,`⩞`,`\\doublebarwedge`,!0),H(U,K,ch,`⊟`,`\\boxminus`,!0),H(U,K,ch,`⊞`,`\\boxplus`,!0),H(U,K,ch,`⋇`,`\\divideontimes`,!0),H(U,K,ch,`⋉`,`\\ltimes`,!0),H(U,K,ch,`⋊`,`\\rtimes`,!0),H(U,K,ch,`⋋`,`\\leftthreetimes`,!0),H(U,K,ch,`⋌`,`\\rightthreetimes`,!0),H(U,K,ch,`⋏`,`\\curlywedge`,!0),H(U,K,ch,`⋎`,`\\curlyvee`,!0),H(U,K,ch,`⊝`,`\\circleddash`,!0),H(U,K,ch,`⊛`,`\\circledast`,!0),H(U,K,ch,`⋅`,`\\centerdot`),H(U,K,ch,`⊺`,`\\intercal`,!0),H(U,K,ch,`⋒`,`\\doublecap`),H(U,K,ch,`⋓`,`\\doublecup`),H(U,K,ch,`⊠`,`\\boxtimes`,!0),H(U,K,q,`⇢`,`\\dashrightarrow`,!0),H(U,K,q,`⇠`,`\\dashleftarrow`,!0),H(U,K,q,`⇇`,`\\leftleftarrows`,!0),H(U,K,q,`⇆`,`\\leftrightarrows`,!0),H(U,K,q,`⇚`,`\\Lleftarrow`,!0),H(U,K,q,`↞`,`\\twoheadleftarrow`,!0),H(U,K,q,`↢`,`\\leftarrowtail`,!0),H(U,K,q,`↫`,`\\looparrowleft`,!0),H(U,K,q,`⇋`,`\\leftrightharpoons`,!0),H(U,K,q,`↶`,`\\curvearrowleft`,!0),H(U,K,q,`↺`,`\\circlearrowleft`,!0),H(U,K,q,`↰`,`\\Lsh`,!0),H(U,K,q,`⇈`,`\\upuparrows`,!0),H(U,K,q,`↿`,`\\upharpoonleft`,!0),H(U,K,q,`⇃`,`\\downharpoonleft`,!0),H(U,G,q,`⊶`,`\\origof`,!0),H(U,G,q,`⊷`,`\\imageof`,!0),H(U,K,q,`⊸`,`\\multimap`,!0),H(U,K,q,`↭`,`\\leftrightsquigarrow`,!0),H(U,K,q,`⇉`,`\\rightrightarrows`,!0),H(U,K,q,`⇄`,`\\rightleftarrows`,!0),H(U,K,q,`↠`,`\\twoheadrightarrow`,!0),H(U,K,q,`↣`,`\\rightarrowtail`,!0),H(U,K,q,`↬`,`\\looparrowright`,!0),H(U,K,q,`↷`,`\\curvearrowright`,!0),H(U,K,q,`↻`,`\\circlearrowright`,!0),H(U,K,q,`↱`,`\\Rsh`,!0),H(U,K,q,`⇊`,`\\downdownarrows`,!0),H(U,K,q,`↾`,`\\upharpoonright`,!0),H(U,K,q,`⇂`,`\\downharpoonright`,!0),H(U,K,q,`⇝`,`\\rightsquigarrow`,!0),H(U,K,q,`⇝`,`\\leadsto`),H(U,K,q,`⇛`,`\\Rrightarrow`,!0),H(U,K,q,`↾`,`\\restriction`),H(U,G,J,`‘`,"`"),H(U,G,J,`$`,`\\$`),H(W,G,J,`$`,`\\$`),H(W,G,J,`$`,`\\textdollar`),H(U,G,J,`%`,`\\%`),H(W,G,J,`%`,`\\%`),H(U,G,J,`_`,`\\_`),H(W,G,J,`_`,`\\_`),H(W,G,J,`_`,`\\textunderscore`),H(U,G,J,`∠`,`\\angle`,!0),H(U,G,J,`∞`,`\\infty`,!0),H(U,G,J,`′`,`\\prime`),H(U,G,J,`△`,`\\triangle`),H(U,G,J,`Γ`,`\\Gamma`,!0),H(U,G,J,`Δ`,`\\Delta`,!0),H(U,G,J,`Θ`,`\\Theta`,!0),H(U,G,J,`Λ`,`\\Lambda`,!0),H(U,G,J,`Ξ`,`\\Xi`,!0),H(U,G,J,`Π`,`\\Pi`,!0),H(U,G,J,`Σ`,`\\Sigma`,!0),H(U,G,J,`Υ`,`\\Upsilon`,!0),H(U,G,J,`Φ`,`\\Phi`,!0),H(U,G,J,`Ψ`,`\\Psi`,!0),H(U,G,J,`Ω`,`\\Omega`,!0),H(U,G,J,`A`,`Α`),H(U,G,J,`B`,`Β`),H(U,G,J,`E`,`Ε`),H(U,G,J,`Z`,`Ζ`),H(U,G,J,`H`,`Η`),H(U,G,J,`I`,`Ι`),H(U,G,J,`K`,`Κ`),H(U,G,J,`M`,`Μ`),H(U,G,J,`N`,`Ν`),H(U,G,J,`O`,`Ο`),H(U,G,J,`P`,`Ρ`),H(U,G,J,`T`,`Τ`),H(U,G,J,`X`,`Χ`),H(U,G,J,`¬`,`\\neg`,!0),H(U,G,J,`¬`,`\\lnot`),H(U,G,J,`⊤`,`\\top`),H(U,G,J,`⊥`,`\\bot`),H(U,G,J,`∅`,`\\emptyset`),H(U,K,J,`∅`,`\\varnothing`),H(U,G,dh,`α`,`\\alpha`,!0),H(U,G,dh,`β`,`\\beta`,!0),H(U,G,dh,`γ`,`\\gamma`,!0),H(U,G,dh,`δ`,`\\delta`,!0),H(U,G,dh,`ϵ`,`\\epsilon`,!0),H(U,G,dh,`ζ`,`\\zeta`,!0),H(U,G,dh,`η`,`\\eta`,!0),H(U,G,dh,`θ`,`\\theta`,!0),H(U,G,dh,`ι`,`\\iota`,!0),H(U,G,dh,`κ`,`\\kappa`,!0),H(U,G,dh,`λ`,`\\lambda`,!0),H(U,G,dh,`μ`,`\\mu`,!0),H(U,G,dh,`ν`,`\\nu`,!0),H(U,G,dh,`ξ`,`\\xi`,!0),H(U,G,dh,`ο`,`\\omicron`,!0),H(U,G,dh,`π`,`\\pi`,!0),H(U,G,dh,`ρ`,`\\rho`,!0),H(U,G,dh,`σ`,`\\sigma`,!0),H(U,G,dh,`τ`,`\\tau`,!0),H(U,G,dh,`υ`,`\\upsilon`,!0),H(U,G,dh,`ϕ`,`\\phi`,!0),H(U,G,dh,`χ`,`\\chi`,!0),H(U,G,dh,`ψ`,`\\psi`,!0),H(U,G,dh,`ω`,`\\omega`,!0),H(U,G,dh,`ε`,`\\varepsilon`,!0),H(U,G,dh,`ϑ`,`\\vartheta`,!0),H(U,G,dh,`ϖ`,`\\varpi`,!0),H(U,G,dh,`ϱ`,`\\varrho`,!0),H(U,G,dh,`ς`,`\\varsigma`,!0),H(U,G,dh,`φ`,`\\varphi`,!0),H(U,G,ch,`∗`,`*`,!0),H(U,G,ch,`+`,`+`),H(U,G,ch,`−`,`-`,!0),H(U,G,ch,`⋅`,`\\cdot`,!0),H(U,G,ch,`∘`,`\\circ`,!0),H(U,G,ch,`÷`,`\\div`,!0),H(U,G,ch,`±`,`\\pm`,!0),H(U,G,ch,`×`,`\\times`,!0),H(U,G,ch,`∩`,`\\cap`,!0),H(U,G,ch,`∪`,`\\cup`,!0),H(U,G,ch,`∖`,`\\setminus`,!0),H(U,G,ch,`∧`,`\\land`),H(U,G,ch,`∨`,`\\lor`),H(U,G,ch,`∧`,`\\wedge`,!0),H(U,G,ch,`∨`,`\\vee`,!0),H(U,G,J,`√`,`\\surd`),H(U,G,ph,`⟨`,`\\langle`,!0),H(U,G,ph,`∣`,`\\lvert`),H(U,G,ph,`∥`,`\\lVert`),H(U,G,lh,`?`,`?`),H(U,G,lh,`!`,`!`),H(U,G,lh,`⟩`,`\\rangle`,!0),H(U,G,lh,`∣`,`\\rvert`),H(U,G,lh,`∥`,`\\rVert`),H(U,G,q,`=`,`=`),H(U,G,q,`:`,`:`),H(U,G,q,`≈`,`\\approx`,!0),H(U,G,q,`≅`,`\\cong`,!0),H(U,G,q,`≥`,`\\ge`),H(U,G,q,`≥`,`\\geq`,!0),H(U,G,q,`←`,`\\gets`),H(U,G,q,`>`,`\\gt`,!0),H(U,G,q,`∈`,`\\in`,!0),H(U,G,q,``,`\\@not`),H(U,G,q,`⊂`,`\\subset`,!0),H(U,G,q,`⊃`,`\\supset`,!0),H(U,G,q,`⊆`,`\\subseteq`,!0),H(U,G,q,`⊇`,`\\supseteq`,!0),H(U,K,q,`⊈`,`\\nsubseteq`,!0),H(U,K,q,`⊉`,`\\nsupseteq`,!0),H(U,G,q,`⊨`,`\\models`),H(U,G,q,`←`,`\\leftarrow`,!0),H(U,G,q,`≤`,`\\le`),H(U,G,q,`≤`,`\\leq`,!0),H(U,G,q,`<`,`\\lt`,!0),H(U,G,q,`→`,`\\rightarrow`,!0),H(U,G,q,`→`,`\\to`),H(U,K,q,`≱`,`\\ngeq`,!0),H(U,K,q,`≰`,`\\nleq`,!0),H(U,G,hh,`\xA0`,`\\ `),H(U,G,hh,`\xA0`,`\\space`),H(U,G,hh,`\xA0`,`\\nobreakspace`),H(W,G,hh,`\xA0`,`\\ `),H(W,G,hh,`\xA0`,` `),H(W,G,hh,`\xA0`,`\\space`),H(W,G,hh,`\xA0`,`\\nobreakspace`),H(U,G,hh,``,`\\nobreak`),H(U,G,hh,``,`\\allowbreak`),H(U,G,mh,`,`,`,`),H(U,G,mh,`;`,`;`),H(U,K,ch,`⊼`,`\\barwedge`,!0),H(U,K,ch,`⊻`,`\\veebar`,!0),H(U,G,ch,`⊙`,`\\odot`,!0),H(U,G,ch,`⊕`,`\\oplus`,!0),H(U,G,ch,`⊗`,`\\otimes`,!0),H(U,G,J,`∂`,`\\partial`,!0),H(U,G,ch,`⊘`,`\\oslash`,!0),H(U,K,ch,`⊚`,`\\circledcirc`,!0),H(U,K,ch,`⊡`,`\\boxdot`,!0),H(U,G,ch,`△`,`\\bigtriangleup`),H(U,G,ch,`▽`,`\\bigtriangledown`),H(U,G,ch,`†`,`\\dagger`),H(U,G,ch,`⋄`,`\\diamond`),H(U,G,ch,`⋆`,`\\star`),H(U,G,ch,`◃`,`\\triangleleft`),H(U,G,ch,`▹`,`\\triangleright`),H(U,G,ph,`{`,`\\{`),H(W,G,J,`{`,`\\{`),H(W,G,J,`{`,`\\textbraceleft`),H(U,G,lh,`}`,`\\}`),H(W,G,J,`}`,`\\}`),H(W,G,J,`}`,`\\textbraceright`),H(U,G,ph,`{`,`\\lbrace`),H(U,G,lh,`}`,`\\rbrace`),H(U,G,ph,`[`,`\\lbrack`,!0),H(W,G,J,`[`,`\\lbrack`,!0),H(U,G,lh,`]`,`\\rbrack`,!0),H(W,G,J,`]`,`\\rbrack`,!0),H(U,G,ph,`(`,`\\lparen`,!0),H(U,G,lh,`)`,`\\rparen`,!0),H(W,G,J,`<`,`\\textless`,!0),H(W,G,J,`>`,`\\textgreater`,!0),H(U,G,ph,`⌊`,`\\lfloor`,!0),H(U,G,lh,`⌋`,`\\rfloor`,!0),H(U,G,ph,`⌈`,`\\lceil`,!0),H(U,G,lh,`⌉`,`\\rceil`,!0),H(U,G,J,`\\`,`\\backslash`),H(U,G,J,`∣`,`|`),H(U,G,J,`∣`,`\\vert`),H(W,G,J,`|`,`\\textbar`,!0),H(U,G,J,`∥`,`\\|`),H(U,G,J,`∥`,`\\Vert`),H(W,G,J,`∥`,`\\textbardbl`),H(W,G,J,`~`,`\\textasciitilde`),H(W,G,J,`\\`,`\\textbackslash`),H(W,G,J,`^`,`\\textasciicircum`),H(U,G,q,`↑`,`\\uparrow`,!0),H(U,G,q,`⇑`,`\\Uparrow`,!0),H(U,G,q,`↓`,`\\downarrow`,!0),H(U,G,q,`⇓`,`\\Downarrow`,!0),H(U,G,q,`↕`,`\\updownarrow`,!0),H(U,G,q,`⇕`,`\\Updownarrow`,!0),H(U,G,fh,`∐`,`\\coprod`),H(U,G,fh,`⋁`,`\\bigvee`),H(U,G,fh,`⋀`,`\\bigwedge`),H(U,G,fh,`⨄`,`\\biguplus`),H(U,G,fh,`⋂`,`\\bigcap`),H(U,G,fh,`⋃`,`\\bigcup`),H(U,G,fh,`∫`,`\\int`),H(U,G,fh,`∫`,`\\intop`),H(U,G,fh,`∬`,`\\iint`),H(U,G,fh,`∭`,`\\iiint`),H(U,G,fh,`∏`,`\\prod`),H(U,G,fh,`∑`,`\\sum`),H(U,G,fh,`⨂`,`\\bigotimes`),H(U,G,fh,`⨁`,`\\bigoplus`),H(U,G,fh,`⨀`,`\\bigodot`),H(U,G,fh,`∮`,`\\oint`),H(U,G,fh,`∯`,`\\oiint`),H(U,G,fh,`∰`,`\\oiiint`),H(U,G,fh,`⨆`,`\\bigsqcup`),H(U,G,fh,`∫`,`\\smallint`),H(W,G,uh,`…`,`\\textellipsis`),H(U,G,uh,`…`,`\\mathellipsis`),H(W,G,uh,`…`,`\\ldots`,!0),H(U,G,uh,`…`,`\\ldots`,!0),H(U,G,uh,`⋯`,`\\@cdots`,!0),H(U,G,uh,`⋱`,`\\ddots`,!0),H(U,G,J,`⋮`,`\\varvdots`),H(W,G,J,`⋮`,`\\varvdots`),H(U,G,sh,`ˊ`,`\\acute`),H(U,G,sh,`ˋ`,`\\grave`),H(U,G,sh,`¨`,`\\ddot`),H(U,G,sh,`~`,`\\tilde`),H(U,G,sh,`ˉ`,`\\bar`),H(U,G,sh,`˘`,`\\breve`),H(U,G,sh,`ˇ`,`\\check`),H(U,G,sh,`^`,`\\hat`),H(U,G,sh,`⃗`,`\\vec`),H(U,G,sh,`˙`,`\\dot`),H(U,G,sh,`˚`,`\\mathring`),H(U,G,dh,``,`\\@imath`),H(U,G,dh,``,`\\@jmath`),H(U,G,J,`ı`,`ı`),H(U,G,J,`ȷ`,`ȷ`),H(W,G,J,`ı`,`\\i`,!0),H(W,G,J,`ȷ`,`\\j`,!0),H(W,G,J,`ß`,`\\ss`,!0),H(W,G,J,`æ`,`\\ae`,!0),H(W,G,J,`œ`,`\\oe`,!0),H(W,G,J,`ø`,`\\o`,!0),H(W,G,J,`Æ`,`\\AE`,!0),H(W,G,J,`Œ`,`\\OE`,!0),H(W,G,J,`Ø`,`\\O`,!0),H(W,G,sh,`ˊ`,`\\'`),H(W,G,sh,`ˋ`,"\\`"),H(W,G,sh,`ˆ`,`\\^`),H(W,G,sh,`˜`,`\\~`),H(W,G,sh,`ˉ`,`\\=`),H(W,G,sh,`˘`,`\\u`),H(W,G,sh,`˙`,`\\.`),H(W,G,sh,`¸`,`\\c`),H(W,G,sh,`˚`,`\\r`),H(W,G,sh,`ˇ`,`\\v`),H(W,G,sh,`¨`,`\\"`),H(W,G,sh,`˝`,`\\H`),H(W,G,sh,`◯`,`\\textcircled`);var gh={"--":!0,"---":!0,"``":!0,"''":!0};H(W,G,J,`–`,`--`,!0),H(W,G,J,`–`,`\\textendash`),H(W,G,J,`—`,`---`,!0),H(W,G,J,`—`,`\\textemdash`),H(W,G,J,`‘`,"`",!0),H(W,G,J,`‘`,`\\textquoteleft`),H(W,G,J,`’`,`'`,!0),H(W,G,J,`’`,`\\textquoteright`),H(W,G,J,`“`,"``",!0),H(W,G,J,`“`,`\\textquotedblleft`),H(W,G,J,`”`,`''`,!0),H(W,G,J,`”`,`\\textquotedblright`),H(U,G,J,`°`,`\\degree`,!0),H(W,G,J,`°`,`\\degree`),H(W,G,J,`°`,`\\textdegree`,!0),H(U,G,J,`£`,`\\pounds`),H(U,G,J,`£`,`\\mathsterling`,!0),H(W,G,J,`£`,`\\pounds`),H(W,G,J,`£`,`\\textsterling`,!0),H(U,K,J,`✠`,`\\maltese`),H(W,K,J,`✠`,`\\maltese`);for(var _h=`0123456789/@."`,vh=0;vh<_h.length;vh++){var yh=_h.charAt(vh);H(U,G,J,yh,yh)}for(var bh=`0123456789!@*()-=+";:?/.,`,xh=0;xh<bh.length;xh++){var Sh=bh.charAt(xh);H(W,G,J,Sh,Sh)}for(var Ch=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,wh=0;wh<Ch.length;wh++){var Th=Ch.charAt(wh);H(U,G,dh,Th,Th),H(W,G,J,Th,Th)}H(U,K,J,`C`,`ℂ`),H(W,K,J,`C`,`ℂ`),H(U,K,J,`H`,`ℍ`),H(W,K,J,`H`,`ℍ`),H(U,K,J,`N`,`ℕ`),H(W,K,J,`N`,`ℕ`),H(U,K,J,`P`,`ℙ`),H(W,K,J,`P`,`ℙ`),H(U,K,J,`Q`,`ℚ`),H(W,K,J,`Q`,`ℚ`),H(U,K,J,`R`,`ℝ`),H(W,K,J,`R`,`ℝ`),H(U,K,J,`Z`,`ℤ`),H(W,K,J,`Z`,`ℤ`),H(U,G,dh,`h`,`ℎ`),H(W,G,dh,`h`,`ℎ`);for(var Eh,Dh=0;Dh<Ch.length;Dh++){var Oh=Ch.charAt(Dh);Eh=String.fromCharCode(55349,56320+Dh),H(U,G,dh,Oh,Eh),H(W,G,J,Oh,Eh),Eh=String.fromCharCode(55349,56372+Dh),H(U,G,dh,Oh,Eh),H(W,G,J,Oh,Eh),Eh=String.fromCharCode(55349,56424+Dh),H(U,G,dh,Oh,Eh),H(W,G,J,Oh,Eh),Eh=String.fromCharCode(55349,56580+Dh),H(U,G,dh,Oh,Eh),H(W,G,J,Oh,Eh),Eh=String.fromCharCode(55349,56684+Dh),H(U,G,dh,Oh,Eh),H(W,G,J,Oh,Eh),Eh=String.fromCharCode(55349,56736+Dh),H(U,G,dh,Oh,Eh),H(W,G,J,Oh,Eh),Eh=String.fromCharCode(55349,56788+Dh),H(U,G,dh,Oh,Eh),H(W,G,J,Oh,Eh),Eh=String.fromCharCode(55349,56840+Dh),H(U,G,dh,Oh,Eh),H(W,G,J,Oh,Eh),Eh=String.fromCharCode(55349,56944+Dh),H(U,G,dh,Oh,Eh),H(W,G,J,Oh,Eh),Dh<26&&(Eh=String.fromCharCode(55349,56632+Dh),H(U,G,dh,Oh,Eh),H(W,G,J,Oh,Eh),Eh=String.fromCharCode(55349,56476+Dh),H(U,G,dh,Oh,Eh),H(W,G,J,Oh,Eh))}Eh=String.fromCharCode(55349,56668),H(U,G,dh,`k`,Eh),H(W,G,J,`k`,Eh);for(var kh=0;kh<10;kh++){var Ah=kh.toString();Eh=String.fromCharCode(55349,57294+kh),H(U,G,dh,Ah,Eh),H(W,G,J,Ah,Eh),Eh=String.fromCharCode(55349,57314+kh),H(U,G,dh,Ah,Eh),H(W,G,J,Ah,Eh),Eh=String.fromCharCode(55349,57324+kh),H(U,G,dh,Ah,Eh),H(W,G,J,Ah,Eh),Eh=String.fromCharCode(55349,57334+kh),H(U,G,dh,Ah,Eh),H(W,G,J,Ah,Eh)}for(var jh=`ÐÞþ`,Mh=0;Mh<jh.length;Mh++){var Nh=jh.charAt(Mh);H(U,G,dh,Nh,Nh),H(W,G,J,Nh,Nh)}var Ph={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},Fh={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},Ih={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},Lh={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},Rh={mathClass:``,textClass:``,font:``},zh={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},Bh={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},Vh={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},Hh={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},Uh={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},Wh={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},Gh={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},Kh=[Ph,Ph,Fh,Fh,Ih,Ih,Lh,Rh,Rh,Rh,zh,zh,Bh,Bh,Vh,Vh,Hh,Hh,Uh,Uh,Wh,Wh,Rh,Rh,Gh,Gh],qh=[Ph,Rh,Hh,Uh,Gh],Jh=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return Kh[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return qh[Math.floor((r-120782)/10)];if(r===120485||r===120486)return Kh[0];if(120486<r&&r<120782)return Rh;throw new B(`Unsupported character: `+e)},Yh=function(e,t,n){if(oh[n][e]){var r=oh[n][e].replace;r&&(e=r)}return{value:e,metrics:rh(e,t,n)}},Xh=function(e,t,n,r,i){var a=Yh(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 Km(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 Km(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},Zh=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&Yh(e,`Main-Bold`,t).metrics?Xh(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||oh[t][e].font===`main`?Xh(e,`Main-Regular`,t,n,r):Xh(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},Qh=function(e,t,n){return n!==`textord`&&Yh(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},$h=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=Jh(i);f=m.font,p=m[r+`Class`]}if(f)return Xh(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=Qh(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=fg[o].fontName,g=[o]):(h=dg(s,c,l),g=[s,c,l]);if(Yh(i,h,r).metrics)return Xh(i,h,r,t,a.concat(g));if(gh.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(Xh(i[y],h,r,t,a.concat(g)));return og(v)}}if(n===`mathord`)return Xh(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=oh[r][i]&&oh[r][i].font;if(b===`ams`)return Xh(i,dg(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return Xh(i,dg(`textrm`,c,l),r,t,a.concat(c,l));var x=dg(b,c,l);return Xh(i,x,r,t,a.concat(x,c,l))}throw Error(`unexpected type: `+n+` in makeOrd`)},eg=(e,t)=>{if(Im(e.classes)!==Im(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},tg=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Km&&r instanceof Km&&eg(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},ng=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},Y=function(e,t,n,r){var i=new Hm(e,t,n,r);return ng(i),i},rg=(e,t,n,r)=>new Hm(e,t,n,r),ig=function(e,t,n){var r=Y([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=V(r.height),r.maxFontSize=1,r},ag=function(e,t,n,r){var i=new Um(e,t,n,r);return ng(i),i},og=function(e){var t=new jm(e);return ng(t),t},sg=function(e,t){return e instanceof jm?Y([],[e],t):e},cg=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}},lg=function(e,t){for(var{children:n,depth:r}=cg(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=Y([`pstrut`],[]);c.style.height=V(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=Y(g,[c,h],void 0,_);v.style.top=V(-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=Y([`vlist`],l);y.style.height=V(d);var b;if(u<0){var x=Y([`vlist`],[Y([],[])]);x.style.height=V(-u),b=[Y([`vlist-r`],[y,Y([`vlist-s`],[new Km(``)])]),Y([`vlist-r`],[x])]}else b=[Y([`vlist-r`],[y])];var S=Y([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},ug=(e,t)=>{var n=Y([`mspace`],[],t),r=Fm(e,t);return n.style.marginRight=V(r),n},dg=(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`?`Italic`:`Regular`,r+`-`+i},fg={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`}},pg={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},mg=function(e,t){var[n,r,i]=pg[e],a=rg([`overlay`],[new qm([new Jm(n)],{width:V(r),height:V(i),style:`width:`+V(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=V(i),a.style.width=V(r),a},hg={number:3,unit:`mu`},gg={number:4,unit:`mu`},_g={number:5,unit:`mu`},vg={mord:{mop:hg,mbin:gg,mrel:_g,minner:hg},mop:{mord:hg,mop:hg,mrel:_g,minner:hg},mbin:{mord:gg,mop:gg,mopen:gg,minner:gg},mrel:{mord:_g,mop:_g,mopen:_g,minner:_g},mopen:{},mclose:{mop:hg,mbin:gg,mrel:_g,minner:hg},mpunct:{mord:hg,mop:hg,mrel:_g,mopen:hg,mclose:hg,mpunct:hg,minner:hg},minner:{mord:hg,mop:hg,mbin:gg,mrel:_g,mopen:hg,mpunct:hg,minner:hg}},yg={mord:{mop:hg},mop:{mord:hg,mop:hg},mbin:{},mrel:{},mopen:{},mclose:{mop:hg},mpunct:{},minner:{mop:hg}},bg={},xg={},Sg={};function Cg(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)bg[n[c]]=s;t&&(a&&(xg[t]=a),o&&(Sg[t]=o))}function wg(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Cg({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var Tg=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},Eg=function(e){return e.type===`ordgroup`?e.body:[e]},Dg=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Og=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),kg={display:fm.DISPLAY,text:fm.TEXT,script:fm.SCRIPT,scriptscript:fm.SCRIPTSCRIPT},Ag={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},jg=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=Lg(e[a],t);if(o instanceof jm){var s=o.children;i.push(...s)}else i.push(o)}if(tg(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(kg[l.style]))}var u=Y([r[0]||`leftmost`],[],t),d=Y([r[1]||`rightmost`],[],t),f=n===`root`;return Mg(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Og.has(r)?t.classes[0]=`mord`:r===`mbin`&&Dg.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),Mg(i,(e,t)=>{var n=Fg(t),r=Fg(e),i=n&&r?e.hasClass(`mtight`)?yg[n]?.[r]:vg[n]?.[r]:null;if(i)return ug(i,c)},{node:u},d,f),i},Mg=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=Ng(o);if(s){Mg(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=Y([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Ng=function(e){return e instanceof jm||e instanceof Um||e instanceof Hm&&e.hasClass(`enclosing`)?e:null},Pg=function(e,t){var n=Ng(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Pg(r[r.length-1],`right`);if(t===`left`)return Pg(r[0],`left`)}}return e},Fg=function(e,t){return e?(t&&(e=Pg(e,t)),Ag[e.classes[0]]||null):null},Ig=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return Y(t.concat(n))},Lg=function(e,t,n){if(!e)return Y();if(xg[e.type]){var r=xg[e.type](e,t);if(n&&t.size!==n.size){r=Y(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new B(`Got group of unknown type: '`+e.type+`'`)};function Rg(e,t){var n=Y([`base`],e,t),r=Y([`strut`]);return r.style.height=V(n.height+n.depth),n.depth&&(r.style.verticalAlign=V(-n.depth)),n.children.unshift(r),n}function zg(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=jg(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(Rg(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(Rg(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Rg(o,t));var l;n?(l=Rg(jg(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=Y([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=V(u.height+u.depth),u.depth&&(d.style.verticalAlign=V(-u.depth))}return u}function Bg(e){return new jm(e)}var X=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=Im(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Vg&&this.children[n+1]instanceof Vg){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Vg;)r+=this.children[++n].toText();e.appendChild(new Vg(r).toNode())}else 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+=Bp(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+Bp(Im(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(``)}},Vg=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Bp(this.toText())}toText(){return this.text}},Hg=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?` `:e>=-.05556&&e<=-.05555?` `:e>=-.1667&&e<=-.1666?` `:e>=-.2223&&e<=-.2222?` `:e>=-.2778&&e<=-.2777?` `: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`,V(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+V(this.width)+`"/>`}toText(){return this.character?this.character:` `}},Ug=new Set([`\\imath`,`\\jmath`]),Wg=new Set([`mrow`,`mtable`]),Gg=function(e,t,n){return oh[t][e]&&oh[t][e].replace&&e.charCodeAt(0)!==55349&&!(gh.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=oh[t][e].replace),new Vg(e)},Kg=function(e){return e.length===1?e[0]:new X(`mrow`,e)},qg={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`},Jg=(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=qg[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(Ug.has(a))return null;if(oh[r][a]){var o=oh[r][a].replace;o&&(a=o)}var s=fg[n].fontName;return rh(a,s,r)?fg[n].variant:null};function Yg(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Vg&&t.text===`.`}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 Vg&&n.text===`,`}return!1}var Xg=function(e,t,n){if(e.length===1){var r=Qg(e[0],t);return n&&r instanceof X&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=Qg(e[o],t);if(s instanceof X&&a instanceof X){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}if(Yg(s)&&a.type===`mn`){a.children.push(...s.children);continue}if(s.type===`mn`&&Yg(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||Yg(a))){var c=s.children[0];c instanceof X&&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 Vg&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof Vg&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},Zg=function(e,t,n){return Kg(Xg(e,t,n))},Qg=function(e,t){if(!e)return new X(`mrow`);if(Sg[e.type])return Sg[e.type](e,t);throw new B(`Got group of unknown type: '`+e.type+`'`)};function $g(e,t,n,r,i){var a=Xg(e,n),o=a.length===1&&a[0]instanceof X&&Wg.has(a[0].type)?a[0]:new X(`mrow`,a),s=new X(`annotation`,[new Vg(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new X(`math`,[new X(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),Y([i?`katex`:`katex-mathml`],[c])}var e_=[[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]],t_=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],n_=function(e,t){return t.size<2?e:e_[e-1][t.size-1]},r_=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=t_[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:n_(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:t_[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=n_(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||=ah(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};r_.BASESIZE=6;var i_=function(e){return new r_({style:e.displayMode?fm.DISPLAY:fm.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},a_=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=Y(n,[e])}return e},o_=function(e,t,n){var r=i_(n),i;return n.output===`mathml`?$g(e,t,r,n.displayMode,!0):(i=n.output===`html`?Y([`katex`],[zg(e,r)]):Y([`katex`],[$g(e,t,r,n.displayMode,!1),zg(e,r)]),a_(i,n))},s_=function(e,t,n){return a_(Y([`katex`],[zg(e,i_(n))]),n)},c_={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":`=`},l_=function(e){var t=new X(`mo`,[new Vg(c_[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},u_={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`,`rightbraceunder`],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]},d_=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),f_=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(d_.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:rg([],[new qm([new Jm(o)],{width:`100%`,height:V(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var l=[],u=u_[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
|
|
364
|
+
`+h+` children.`);for(var v=0;v<h;v++){var y=new qm([new Jm(d[v])],{width:`400em`,height:V(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=rg([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=V(m),l.push(b)}return{span:Y([`stretchy`],l,t),minWidth:f,height:m}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=V(a),i>0&&(r.style.minWidth=V(i)),r},p_=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=Y([`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 Ym({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new Ym({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=rg([],[new qm(c,{width:`100%`,height:V(o)})],i)}return a.height=o,a.style.height=V(o),a},m_={bin:1,close:1,inner:1,open:1,punct:1,rel:1},h_={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function g_(e){return e in m_}function __(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 v_(e){var t=y_(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function y_(e){return e&&(e.type===`atom`||h_.hasOwnProperty(e.type))?e:null}var b_=e=>{if(e instanceof Km)return e;if(Qm(e)&&e.children.length===1)return b_(e.children[0])},x_=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=__(e.base,`accent`),n=r.base,e.base=n,i=Zm(Lg(e,t)),e.base=r):(r=__(e,`accent`),n=r.base);var a=Lg(n,t.havingCrampedStyle()),o=r.isShifty&&Up(n),s=0;o&&(s=b_(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=f_(r,t),u=lg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+V(2*s)+`)`,marginLeft:V(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=mg(`vec`,t),f=pg.vec[1]):(d=$h({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=Xm(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=Y([`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=V(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=lg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=Y([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},S_=(e,t)=>{var n=e.isStretchy?l_(e.label):new X(`mo`,[Gg(e.label,e.mode)]),r=new X(`mover`,[Qg(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},C_=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));Cg({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=Tg(t[0]),r=!C_.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:x_,mathmlBuilder:S_}),Cg({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:x_,mathmlBuilder:S_}),Cg({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=Lg(e.base,t),r=f_(e,t),i=e.label===`\\utilde`?.12:0;return Y([`mord`,`accentunder`],[lg({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=l_(e.label),r=new X(`munder`,[Qg(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var w_=e=>{var t=new X(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};Cg({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=sg(Lg(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=sg(Lg(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=f_(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=lg({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=lg({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return Y([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=l_(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=w_(Qg(e.body,t));r=e.below?new X(`munderover`,[n,w_(Qg(e.below,t)),i]):new X(`mover`,[n,i])}else e.below?r=new X(`munder`,[n,w_(Qg(e.below,t))]):(r=w_(),r=new X(`mover`,[n,r]));return r}});function T_(e,t){var n=jg(e.body,t,!0);return Y([e.mclass],n,t)}function E_(e,t){var n,r=Xg(e.body,t);return e.mclass===`minner`?n=new X(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new X(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new X(`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}Cg({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:Eg(i),isCharacterBox:Up(i)}},htmlBuilder:T_,mathmlBuilder:E_});var D_=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`};Cg({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:D_(t[0]),body:Eg(t[1]),isCharacterBox:Up(t[1])}}}),Cg({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`:D_(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Eg(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:Up(c)}},htmlBuilder:T_,mathmlBuilder:E_}),Cg({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:D_(t[0]),body:Eg(t[0])}},htmlBuilder(e,t){var n=jg(e.body,t,!0),r=Y([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new X(`mstyle`,Xg(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var O_={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},k_=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),A_=e=>e.type===`textord`&&e.text===`@`,j_=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function M_(e,t,n){var r=O_[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 N_(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 B(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=k_(),c=0;c<o.length;c++)if(!A_(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=v_(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(j_(o[p],l)){f=!1,c=p;break}if(A_(o[p]))throw new B(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new B(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new B(`Expected one of "<>AV=|." after @`,o[c])}var m={type:`styling`,body:[M_(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=k_()}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([])}}Cg({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=sg(Lg(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=V(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new X(`mrow`,[Qg(e.label,t)]);return n=new X(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new X(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Cg({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=sg(Lg(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new X(`mrow`,[Qg(e.fragment,t)])}}),Cg({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=__(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=__(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new B(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new B(`\\@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 P_=(e,t)=>og(jg(e.body,t.withColor(e.color),!1)),F_=(e,t)=>{var n=new X(`mstyle`,Xg(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};Cg({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=__(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Eg(i)}},htmlBuilder:P_,mathmlBuilder:F_}),Cg({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=__(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:P_,mathmlBuilder:F_}),Cg({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&&__(i,`size`).value}},htmlBuilder(e,t){var n=Y([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=V(Fm(e.size,t)))),n},mathmlBuilder(e,t){var n=new X(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,V(Fm(e.size,t)))),n}});var I_={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},L_=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new B(`Expected a control sequence`,e);return t},R_=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},z_=(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)};Cg({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(I_[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=I_[r.text]),__(t.parseFunction(),`internal`);throw new B(`Invalid token after macro prefix`,r)}}),Cg({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 B(`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 B(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new B(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new B(`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===I_[n]),{type:`internal`,mode:t.mode}}}),Cg({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=L_(t.gullet.popToken());return t.gullet.consumeSpaces(),z_(t,r,R_(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Cg({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=L_(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return z_(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var B_=function(e,t,n){var r=rh(oh.math[e]&&oh.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},V_=function(e,t,n,r){var i=n.havingBaseStyle(t),a=Y(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},H_=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=V(i),e.height-=i,e.depth+=i},U_=function(e,t,n,r,i,a){var o=V_(Xh(e,`Main-Regular`,i,r),t,r,a);return n&&H_(o,r,t),o},W_=function(e,t,n,r){return Xh(e,`Size`+t+`-Regular`,n,r)},G_=function(e,t,n,r,i,a){var o=W_(e,t,i,r),s=V_(Y([`delimsizing`,`size`+t],[o],r),fm.TEXT,r,a);return n&&H_(s,r,fm.TEXT),s},K_=function(e,t,n){return{type:`elem`,elem:Y([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[Y([],[Xh(e,t,n)])])}},q_=function(e,t,n){var r=$m[`Size4-Regular`][e.charCodeAt(0)]?$m[`Size4-Regular`][e.charCodeAt(0)][4]:$m[`Size1-Regular`][e.charCodeAt(0)][4],i=rg([],[new qm([new Jm(`inner`,Dm(e,Math.round(1e3*t)))],{width:V(r),height:V(t),style:`width:`+V(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=V(t),i.style.width=V(r),{type:`elem`,elem:i}},J_=.008,Y_={type:`kern`,size:-1*J_},X_=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Z_=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Q_=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`):X_.has(e)?(c=`∣`,u=`vert`,d=333):Z_.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=B_(o,f,i),m=p.height+p.depth,h=B_(c,f,i),g=h.height+h.depth,_=B_(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=B_(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,ee=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,te=r.fontMetrics().axisHeight;n&&(te*=r.sizeMultiplier);var ne=ee/2-te,re=[];if(u.length>0){var ie=ee-m-v,ae=Math.round(ee*1e3),oe=km(u,Math.round(ie*1e3)),se=new Jm(u,oe),ce=V(d/1e3),le=V(ae/1e3),ue=rg([],[new qm([se],{width:ce,height:le,viewBox:`0 0 `+d+` `+ae})],r);ue.height=ae/1e3,ue.style.width=ce,ue.style.height=le,re.push({type:`elem`,elem:ue})}else{if(re.push(K_(l,f,i)),re.push(Y_),s===null){var de=ee-m-v+2*J_;re.push(q_(c,de,r))}else{var fe=(ee-m-v-y)/2+2*J_;re.push(q_(c,fe,r)),re.push(Y_),re.push(K_(s,f,i)),re.push(Y_),re.push(q_(c,fe,r))}re.push(Y_),re.push(K_(o,f,i))}var pe=r.havingBaseStyle(fm.TEXT);return V_(Y([`delimsizing`,`mult`],[lg({positionType:`bottom`,positionData:ne,children:re})],pe),fm.TEXT,r,a)},$_=80,ev=.08,tv=function(e,t,n,r,i){return rg([`hide-tail`],[new qm([new Jm(e,Em(e,r,n))],{width:`400em`,height:V(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},nv=function(e,t){var n=t.havingBaseSizing(),r=fv(`\\surd`,e*n.sizeMultiplier,uv,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+$_,e<1?i=1:e<1.4&&(i=.7),s=(1+a+ev)/i,c=(1+a)/i,o=tv(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+$_)*ov[r.size],c=(ov[r.size]+a)/i,s=(ov[r.size]+a+ev)/i,o=tv(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+ev,c=e+a,l=Math.floor(1e3*e+a)+$_,o=tv(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=V(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},rv=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),iv=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),av=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),ov=[0,1.2,1.8,2.4,3],sv=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),rv.has(e)||av.has(e))return G_(e,t,!1,n,r,i);if(iv.has(e))return Q_(e,ov[t],!1,n,r,i);throw new B(`Illegal delimiter: '`+e+`'`)},cv=[{type:`small`,style:fm.SCRIPTSCRIPT},{type:`small`,style:fm.SCRIPT},{type:`small`,style:fm.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],lv=[{type:`small`,style:fm.SCRIPTSCRIPT},{type:`small`,style:fm.SCRIPT},{type:`small`,style:fm.TEXT},{type:`stack`}],uv=[{type:`small`,style:fm.SCRIPTSCRIPT},{type:`small`,style:fm.SCRIPT},{type:`small`,style:fm.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],dv=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.`)},fv=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=B_(e,dv(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]},pv=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=av.has(e)?cv:rv.has(e)?uv:lv,s=fv(e,t,o,r);return s.type===`small`?U_(e,s.style,n,r,i,a):s.type===`large`?G_(e,s.size,n,r,i,a):Q_(e,t,n,r,i,a)},mv=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 pv(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},hv={"\\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}},gv=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 _v(e){return`isMiddle`in e}function vv(e,t){var n=y_(e);if(n&&gv.has(n.text))return n;throw n?new B(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new B(`Invalid delimiter type '`+e.type+`'`,e)}Cg({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=vv(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:hv[e.funcName].size,mclass:hv[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?Y([e.mclass]):sv(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(Gg(e.delim,e.mode));var n=new X(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=V(ov[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function yv(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}Cg({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 B(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:vv(t[0],e).text,color:n}}}),Cg({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=vv(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=__(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{yv(e);for(var n=jg(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];_v(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===`.`?Ig(t,[`mopen`]):mv(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(_v(u)){var d=u.isMiddle;n[l]=mv(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=Ig(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=mv(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),Y([`minner`],n,t)},mathmlBuilder:(e,t)=>{yv(e);var n=Xg(e.body,t);if(e.left!==`.`){var r=new X(`mo`,[Gg(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new X(`mo`,[Gg(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return Kg(n)}}),Cg({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=vv(t[0],e);if(!e.parser.leftrightDepth)throw new B(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=Ig(t,[]):(n=sv(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new X(`mo`,[e.delim===`\\vert`||e.delim===`|`?Gg(`|`,`text`):Gg(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var bv=(e,t)=>{var n=sg(Lg(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=Up(e.body);if(r===`sout`)a=Y([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=Fm({number:.6,unit:`pt`},t),l=Fm({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=V(d/2+c);var f=Math.floor(1e3*d*i);a=rg([`hide-tail`],[new qm([new Jm(`phase`,wm(f))],{width:`400em`,height:V(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=V(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=p_(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=V(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=V(h),a.style.borderRightWidth=V(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=lg({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=lg({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?Y([`mord`,`cancel-lap`],[g],t):Y([`mord`],[g],t)},xv=(e,t)=>{var n,r=new X(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Qg(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: `+V(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};Cg({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=__(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:bv,mathmlBuilder:xv}),Cg({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=__(t[0],`color-token`).color,o=__(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:bv,mathmlBuilder:xv}),Cg({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]}}}),Cg({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:bv,mathmlBuilder:xv}),Cg({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:bv,mathmlBuilder:xv}),Cg({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 Sv={};function Cv(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)Sv[n[c]]=s;a&&(xg[t]=a),o&&(Sg[t]=o)}var wv={};function Z(e,t){wv[e]=t}var Tv=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}},Ev=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,Tv.range(this,t))}};function Dv(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 Ov=e=>{if(!e.parser.settings.displayMode)throw new B(`{`+e.envName+`} can be used only in display mode.`)},kv=new Set([`gather`,`gather*`]);function Av(e){if(!e.includes(`ed`))return!e.includes(`*`)}function jv(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 B(`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 Ev(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(Dv(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);var ee=e.fetch().text;if(ee===`&`){if(d&&m.length===d){if(l||s)throw new B(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(ee===`\\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(ee===`\\\\`){e.consume();var te=void 0;e.gullet.future().text!==` `&&(te=e.parseSizeGroup(!0)),g.push(te?te.value:null),b(),_.push(Dv(e)),m=[],h.push(m),y()}else throw new B(`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 Mv(e){return e.slice(0,1)===`d`?`display`:`text`}var Nv=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(fm.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?Fm({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 ee=Lg(y[r],t);x<ee.depth&&(x=ee.depth),b<ee.height&&(b=ee.height),S.cells[r]=ee}var te=e.rowGaps[n],ne=0;te&&(ne=Fm(te,t),ne>0&&(ne+=g,x<ne&&(x=ne),ne=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+ne,s[n]=S,v(a[n+1])}var re=_/2+t.fontMetrics().axisHeight,ie=e.cols||[],ae=[],oe,se,ce=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var le=s[n],ue=le.pos-re,de=e.tags[n],fe=void 0;fe=de===!0?Y([`eqn-num`],[],t):de===!1?Y([],[],t):Y([],jg(de,t,!0),t),fe.depth=le.depth,fe.height=le.height,ce.push({type:`elem`,elem:fe,shift:ue})}for(r=0,se=0;r<o||se<ie.length;++r,++se){for(var pe=ie[se],me=!0;(he=pe)?.type===`separator`;){var he;if(me||(oe=Y([`arraycolsep`],[]),oe.style.width=V(t.fontMetrics().doubleRuleSep),ae.push(oe)),pe.separator===`|`||pe.separator===`:`){var ge=pe.separator===`|`?`solid`:`dashed`,_e=Y([`vertical-separator`],[],t);_e.style.height=V(_),_e.style.borderRightWidth=V(l),_e.style.borderRightStyle=ge,_e.style.margin=`0 `+V(-l/2);var ve=_-re;ve&&(_e.style.verticalAlign=V(-ve)),ae.push(_e)}else throw new B(`Invalid separator type: `+pe.separator);se++,pe=ie[se],me=!1}if(!(r>=o)){var ye=void 0;(r>0||e.hskipBeforeAndAfter)&&(ye=pe?.pregap??d,ye!==0&&(oe=Y([`arraycolsep`],[]),oe.style.width=V(ye),ae.push(oe)));var be=[];for(n=0;n<i;++n){var xe=s[n],Se=xe.cells[r];if(Se){var Ce=xe.pos-re;Se.depth=xe.depth,Se.height=xe.height,be.push({type:`elem`,elem:Se,shift:Ce})}}var we=lg({positionType:`individualShift`,children:be}),Te=Y([`col-align-`+(pe?.align||`c`)],[we]);ae.push(Te),(r<o-1||e.hskipBeforeAndAfter)&&(ye=pe?.postgap??d,ye!==0&&(oe=Y([`arraycolsep`],[]),oe.style.width=V(ye),ae.push(oe)))}}var Ee=Y([`mtable`],ae);if(c.length>0){for(var De=ig(`hline`,t,l),Oe=ig(`hdashline`,t,l),ke=[{type:`elem`,elem:Ee,shift:0}];c.length>0;){var Ae=c.pop(),je=Ae.pos-re;Ae.isDashed?ke.push({type:`elem`,elem:Oe,shift:je}):ke.push({type:`elem`,elem:De,shift:je})}Ee=lg({positionType:`individualShift`,children:ke})}if(ce.length===0)return Y([`mord`],[Ee],t);var Me=Y([`tag`],[lg({positionType:`individualShift`,children:ce})],t);return og([Ee,Me])},Pv={c:`center `,l:`left `,r:`right `},Fv=function(e,t){for(var n=[],r=new X(`mtd`,[],[`mtr-glue`]),i=new X(`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 X(`mtd`,[Qg(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 X(`mtr`,s))}var l=new X(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,V(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+=Pv[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 ee=``,te=e.hLinesBeforeRow;d+=te[0].length>0?`left `:``,d+=te[te.length-1].length>0?`right `:``;for(var ne=1;ne<te.length-1;ne++)ee+=te[ne].length===0?`none `:te[ne][0]?`dashed `:`solid `;return/[sd]/.test(ee)&&l.setAttribute(`rowlines`,ee.trim()),d!==``&&(l=new X(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new X(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},Iv=function(e,t){e.envName.includes(`ed`)||Ov(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=jv(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:Av(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=__(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)__(__(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 B(`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};Cv({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(y_(t[0])?[t[0]]:__(t[0],`ordgroup`).body).map(function(e){var t=v_(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 B(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return jv(e.parser,r,Mv(e.envName))},htmlBuilder:Nv,mathmlBuilder:Fv}),Cv({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 B(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=jv(e.parser,r,Mv(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:Nv,mathmlBuilder:Fv}),Cv({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=jv(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Nv,mathmlBuilder:Fv}),Cv({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(y_(t[0])?[t[0]]:__(t[0],`ordgroup`).body).map(function(e){var t=v_(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new B(`Unknown column alignment: `+t,e)});if(n.length>1)throw new B(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=jv(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new B(`{subarray} can contain only one column`);return i},htmlBuilder:Nv,mathmlBuilder:Fv}),Cv({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=jv(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Mv(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Nv,mathmlBuilder:Fv}),Cv({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Iv,htmlBuilder:Nv,mathmlBuilder:Fv}),Cv({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){kv.has(e.envName)&&Ov(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:Av(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return jv(e.parser,t,`display`)},htmlBuilder:Nv,mathmlBuilder:Fv}),Cv({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Iv,htmlBuilder:Nv,mathmlBuilder:Fv}),Cv({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){Ov(e);var t={autoTag:Av(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return jv(e.parser,t,`display`)},htmlBuilder:Nv,mathmlBuilder:Fv}),Cv({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return Ov(e),N_(e.parser)},htmlBuilder:Nv,mathmlBuilder:Fv}),Z(`\\nonumber`,`\\gdef\\@eqnsw{0}`),Z(`\\notag`,`\\nonumber`),Cg({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new B(e.funcName+` valid only within array environment`)}});var Lv=Sv;Cg({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 B(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=__(i.body[o],`textord`).text;if(r===`\\begin`){if(!Lv.hasOwnProperty(a))throw new B(`No such environment: `+a,i);var s=Lv[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=__(n.parseFunction(),`environment`);if(p.name!==a)throw new B(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var Rv=(e,t)=>{var n=e.font,r=t.withFont(n);return Lg(e.body,r)},zv=(e,t)=>{var n=e.font,r=t.withFont(n);return Qg(e.body,r)},Bv={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};Cg({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=Tg(t[0]),a=r;return a in Bv&&(a=Bv[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Rv,mathmlBuilder:zv}),Cg({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:D_(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:Up(r)}}}),Cg({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:Rv,mathmlBuilder:zv});var Vv=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Lg(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=Lg(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=Fm(e.barSize,t),u=ig(`frac-line`,t,d)):u=ig(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===fm.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=lg({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=lg({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===fm.DISPLAY.size?t.fontMetrics().delim1:n.size===fm.SCRIPTSCRIPT.size?t.havingStyle(fm.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?Ig(t,[`mopen`]):pv(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?Y([]):e.rightDelim==null?Ig(t,[`mclose`]):pv(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return Y([`mord`].concat(a.sizingClasses(t)),[x,Y([`mfrac`],[g]),S],t)},Hv=(e,t)=>{var n=new X(`mfrac`,[Qg(e.numer,t),Qg(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Fm(e.barSize,t);n.setAttribute(`linethickness`,V(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new X(`mo`,[new Vg(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new X(`mo`,[new Vg(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return Kg(i)}return n},Uv=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;Cg({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`),Uv({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:Vv,mathmlBuilder:Hv}),Cg({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 Wv=[`display`,`text`,`script`,`scriptscript`],Gv=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};Cg({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=Tg(t[0]),o=a.type===`atom`&&a.family===`open`?Gv(a.text):null,s=Tg(t[1]),c=s.type===`atom`&&s.family===`close`?Gv(s.text):null,l=__(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=__(p.body[0],`textord`);f=Wv[Number(m.text)]}}else p=__(p,`textord`),f=Wv[Number(p.text)];return Uv({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),Cg({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:__(t[0],`size`).value,token:i}}}),Cg({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=__(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 Kv=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Lg(e.sup,t.havingStyle(n.sup()),t):Lg(e.sub,t.havingStyle(n.sub()),t),i=__(e.base,`horizBrace`)):i=__(e,`horizBrace`);var a=Lg(i.base,t.havingBaseStyle(fm.DISPLAY)),o=f_(i,t),s=i.isOver?lg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):lg({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=Y([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?lg({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):lg({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return Y([`minner`,i.isOver?`mover`:`munder`],[s],t)};Cg({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:Kv,mathmlBuilder:(e,t)=>{var n=l_(e.label);return new X(e.isOver?`mover`:`munder`,[Qg(e.base,t),n])}}),Cg({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=__(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Eg(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=jg(e.body,t,!1);return ag(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Zg(e.body,t);return n instanceof X||(n=new X(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Cg({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=__(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:Eg(s)}}}),Cg({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:Eg(t[0])}},htmlBuilder(e,t){return og(jg(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new X(`mrow`,Xg(e.body,t.withFont(``)))}}),Cg({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=__(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 B(`\\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:Eg(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=jg(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=Y(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)=>Zg(e.body,t)}),Cg({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:Eg(t[0]),mathml:Eg(t[1])}},htmlBuilder:(e,t)=>og(jg(e.html,t,!1)),mathmlBuilder:(e,t)=>Zg(e.mathml,t)});var qv=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 B(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!Pm(n))throw new B(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};Cg({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=__(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=qv(d);break;case`height`:a=qv(d);break;case`totalheight`:o=qv(d);break;default:throw new B(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=__(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=Fm(e.height,t),r=0;e.totalheight.number>0&&(r=Fm(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Fm(e.width,t));var a={height:V(n+r)};i>0&&(a.width=V(i)),r>0&&(a.verticalAlign=V(-r));var o=new Wm(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new X(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Fm(e.height,t),i=0;if(e.totalheight.number>0&&(i=Fm(e.totalheight,t)-r,n.setAttribute(`valign`,V(-i))),n.setAttribute(`height`,V(r+i)),e.width.number>0){var a=Fm(e.width,t);n.setAttribute(`width`,V(a))}return n.setAttribute(`src`,e.src),n}}),Cg({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=__(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 ug(e.dimension,t)},mathmlBuilder(e,t){return new Hg(Fm(e.dimension,t))}}),Cg({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=Y([],[Lg(e.body,t)]),n=Y([`inner`],[n],t)):n=Y([`inner`],[Lg(e.body,t)]);var r=Y([`fix`],[]),i=Y([e.alignment],[n,r],t),a=Y([`strut`]);return a.style.height=V(i.height+i.depth),i.depth&&(a.style.verticalAlign=V(-i.depth)),i.children.unshift(a),i=Y([`thinbox`],[i],t),Y([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[Qg(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}}),Cg({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}}}),Cg({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new B(`Mismatched `+e.funcName)}});var Jv=(e,t)=>{switch(t.style.size){case fm.DISPLAY.size:return e.display;case fm.TEXT.size:return e.text;case fm.SCRIPT.size:return e.script;case fm.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Cg({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:Eg(t[0]),text:Eg(t[1]),script:Eg(t[2]),scriptscript:Eg(t[3])}},htmlBuilder:(e,t)=>og(jg(Jv(e,t),t,!1)),mathmlBuilder:(e,t)=>Zg(Jv(e,t),t)});var Yv=(e,t,n,r,i,a,o)=>{e=Y([],[e]);var s=n&&Up(n),c,l;if(t){var u=Lg(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Lg(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=lg({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:V(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:V(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=lg({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:V(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=lg({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:V(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=Y([`mspace`],[],r);m.style.marginRight=V(a),p.unshift(m)}return Y([`mop`,`op-limits`],p,r)},Xv=new Set([`\\smallint`]),Zv=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=__(e.base,`op`),i=!0):a=__(e,`op`);var o=t.style,s=!1;o.size===fm.DISPLAY.size&&a.symbol&&!Xv.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=Xh(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=mg(d+`Size`+(s?`2`:`1`),t);c=lg({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=jg(a.body,t,!0);p.length===1&&p[0]instanceof Km?(c=p[0],c.classes[0]=`mop`):c=Y([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(Zh(a.name[h],a.mode,t));c=Y([`mop`],m,t)}var g=0,_=0;return(c instanceof Km||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?Yv(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=V(g)),c)},Qv=(e,t)=>{var n;if(e.symbol)n=new X(`mo`,[Gg(e.name,e.mode)]),Xv.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new X(`mo`,Xg(e.body,t));else{n=new X(`mi`,[new Vg(e.name.slice(1))]);var r=new X(`mo`,[Gg(``,`text`)]);n=e.parentIsSupSub?new X(`mrow`,[n,r]):Bg([n,r])}return n},$v={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};Cg({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=$v[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Zv,mathmlBuilder:Qv}),Cg({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:Eg(r)}},htmlBuilder:Zv,mathmlBuilder:Qv});var ey={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};Cg({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:Zv,mathmlBuilder:Qv}),Cg({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:Zv,mathmlBuilder:Qv}),Cg({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=ey[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Zv,mathmlBuilder:Qv});var ty=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=__(e.base,`operatorname`),i=!0):a=__(e,`operatorname`);var o;if(a.body.length>0){for(var s=jg(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 Km&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=Y([`mop`],s,t)}else o=Y([`mop`],[],t);return i?Yv(o,n,r,t,t.style,0,0):o};Cg({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:Eg(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:ty,mathmlBuilder:(e,t)=>{for(var n=Xg(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof Hg)){if(a instanceof X)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 Vg?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}}r&&(n=[new Vg(n.map(e=>e.toText()).join(``))]);var s=new X(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new X(`mo`,[Gg(``,`text`)]);return e.parentIsSupSub?new X(`mrow`,[s,c]):Bg([s,c])}}),Z(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),wg({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?og(jg(e.body,t,!1)):Y([`mord`],jg(e.body,t,!0),t)},mathmlBuilder(e,t){return Zg(e.body,t,!0)}}),Cg({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=Lg(e.body,t.havingCrampedStyle()),r=ig(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return Y([`mord`,`overline`],[lg({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 X(`mo`,[new Vg(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`mover`,[Qg(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Cg({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:Eg(r)}},htmlBuilder:(e,t)=>og(jg(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new X(`mphantom`,Xg(e.body,t))}),Z(`\\hphantom`,`\\smash{\\phantom{#1}}`),Cg({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)=>Y([`mord`,`rlap`],[Y([`inner`],[Lg(e.body,t.withPhantom())]),Y([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[new X(`mphantom`,Xg(Eg(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),Cg({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=__(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Lg(e.body,t);return lg({positionType:`shift`,positionData:-Fm(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new X(`mpadded`,[Qg(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),Cg({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),Cg({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=__(t[0],`size`),o=__(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&__(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=Y([`mord`,`rule`],[],t),r=Fm(e.width,t),i=Fm(e.height,t),a=e.shift?Fm(e.shift,t):0;return n.style.borderRightWidth=V(r),n.style.borderTopWidth=V(i),n.style.bottom=V(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Fm(e.width,t),r=Fm(e.height,t),i=e.shift?Fm(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new X(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,V(n)),o.setAttribute(`height`,V(r));var s=new X(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,V(i)):(s.setAttribute(`height`,V(i)),s.setAttribute(`depth`,V(-i))),s.setAttribute(`voffset`,V(i)),s}});function ny(e,t,n){for(var r=jg(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 og(r)}var ry=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];Cg({type:`sizing`,names:ry,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:ry.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return ny(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new X(`mstyle`,Xg(e.body,n));return r.setAttribute(`mathsize`,V(n.sizeMultiplier)),r}}),Cg({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]&&__(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=v_(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=Y([],[Lg(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 Y([`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 Y([`mord`],[lg({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[Qg(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Cg({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=Lg(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=sg(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<fm.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=nv(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=V(c);var d=lg({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(fm.SCRIPTSCRIPT),p=Lg(e.index,f,t);return Y([`mord`,`sqrt`],[Y([`root`],[lg({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}return Y([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new X(`mroot`,[Qg(n,t),Qg(r,t)]):new X(`msqrt`,[Qg(n,t)])}});var iy={display:fm.DISPLAY,text:fm.TEXT,script:fm.SCRIPT,scriptscript:fm.SCRIPTSCRIPT};function ay(e){return e in iy}Cg({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(!ay(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=iy[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),ny(e.body,r,t)},mathmlBuilder(e,t){var n=iy[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new X(`mstyle`,Xg(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 oy=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===fm.DISPLAY.size||n.alwaysHandleSupSub)?Zv:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===fm.DISPLAY.size||n.limits)?ty:null:n.type===`accent`?Up(n.base)?x_:null:n.type===`horizBrace`&&!e.sub===n.isOver?Kv:null:null};wg({type:`supsub`,htmlBuilder(e,t){var n=oy(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=Lg(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&Up(r);if(i){var p=t.havingStyle(t.style.sup());s=Lg(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=Lg(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===fm.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=V(.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 Km||y)&&(v=V(-(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=lg({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=lg({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=lg({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return Y([Fg(o,`right`)||`mord`],[o,Y([`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=[Qg(e.base,t)];e.sub&&a.push(Qg(e.sub,t)),e.sup&&a.push(Qg(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===fm.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===fm.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===fm.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===fm.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===fm.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===fm.DISPLAY)?`munder`:`msub`}return new X(o,a)}}),wg({type:`atom`,htmlBuilder(e,t){return Zh(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new X(`mo`,[Gg(e.text,e.mode)]);if(e.family===`bin`){var r=Jg(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 sy={mi:`italic`,mn:`normal`,mtext:`normal`};wg({type:`mathord`,htmlBuilder(e,t){return $h(e,t,`mathord`)},mathmlBuilder(e,t){var n=new X(`mi`,[Gg(e.text,e.mode,t)]),r=Jg(e,t)||`italic`;return r!==sy[n.type]&&n.setAttribute(`mathvariant`,r),n}}),wg({type:`textord`,htmlBuilder(e,t){return $h(e,t,`textord`)},mathmlBuilder(e,t){var n=Gg(e.text,e.mode,t),r=Jg(e,t)||`normal`,i=e.mode===`text`?new X(`mtext`,[n]):/[0-9]/.test(e.text)?new X(`mn`,[n]):e.text===`\\prime`?new X(`mo`,[n]):new X(`mi`,[n]);return r!==sy[i.type]&&i.setAttribute(`mathvariant`,r),i}});var cy={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},ly={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};wg({type:`spacing`,htmlBuilder(e,t){if(ly.hasOwnProperty(e.text)){var n=ly[e.text].className||``;if(e.mode===`text`){var r=$h(e,t,`textord`);return r.classes.push(n),r}return Y([`mspace`,n],[Zh(e.text,e.mode,t)],t)}if(cy.hasOwnProperty(e.text))return Y([`mspace`,cy[e.text]],[],t);throw new B(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(ly.hasOwnProperty(e.text))n=new X(`mtext`,[new Vg(`\xA0`)]);else if(cy.hasOwnProperty(e.text))return new X(`mspace`);else throw new B(`Unknown type of space "`+e.text+`"`);return n}});var uy=()=>{var e=new X(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};wg({type:`tag`,mathmlBuilder(e,t){var n=new X(`mtable`,[new X(`mtr`,[uy(),new X(`mtd`,[Zg(e.body,t)]),uy(),new X(`mtd`,[Zg(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var dy={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},fy={"\\textbf":`textbf`,"\\textmd":`textmd`},py={"\\textit":`textit`,"\\textup":`textup`},my=(e,t)=>{var n=e.font;return n?dy[n]?t.withTextFontFamily(dy[n]):fy[n]?t.withTextFontWeight(fy[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(py[n]):t};Cg({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:Eg(i),font:r}},htmlBuilder(e,t){var n=my(e,t);return Y([`mord`,`text`],jg(e.body,n,!0),n)},mathmlBuilder(e,t){var n=my(e,t);return Zg(e.body,n)}}),Cg({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=Lg(e.body,t),r=ig(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return Y([`mord`,`underline`],[lg({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 X(`mo`,[new Vg(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`munder`,[Qg(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Cg({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=Lg(e.body,t),r=t.fontMetrics().axisHeight;return lg({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new X(`mrow`,[new X(`mpadded`,[Qg(e.body,t)],[`vcenter`])])}}),Cg({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new B(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=hy(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(Xh(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return Y([`mord`,`text`].concat(i.sizingClasses(t)),tg(r),i)},mathmlBuilder(e,t){var n=new X(`mtext`,[new Vg(hy(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var hy=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),gy=bg,_y=`[ \r
|
|
365
|
+
]`,vy=`\\\\[a-zA-Z@]+`,yy=`\\\\[^\ud800-\udfff]`,by=`(`+vy+`)`+_y+`*`,xy=`\\\\(
|
|
366
366
|
|[ \r ]+
|
|
367
|
-
?)[ \r ]*`,
|
|
368
|
-
`,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 Tv(r,new wv(this,t,this.tokenRegex.lastIndex))}},Ty=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 B(`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}},Ey=Cv;Z(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Z(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Z(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Z(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Z(`\\@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}}),Z(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),Z(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Dy={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};Z(`\\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 B("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Dy[t.text],r==null||r>=n)throw new B(`Invalid base-`+n+` digit `+t.text);for(var i;(i=Dy[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var Oy=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new B(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new B(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new B(`\\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 B(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};Z(`\\newcommand`,e=>Oy(e,!1,!0,!1)),Z(`\\renewcommand`,e=>Oy(e,!0,!1,!1)),Z(`\\providecommand`,e=>Oy(e,!0,!0,!0)),Z(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),hy[n],ah.math[n],ah.text[n]),``}),Z(`\\bgroup`,`{`),Z(`\\egroup`,`}`),Z(`~`,`\\nobreakspace`),Z(`\\lq`,"`"),Z(`\\rq`,`'`),Z(`\\aa`,`\\r a`),Z(`\\AA`,`\\r A`),Z(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),Z(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),Z(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Z(`ℬ`,`\\mathscr{B}`),Z(`ℰ`,`\\mathscr{E}`),Z(`ℱ`,`\\mathscr{F}`),Z(`ℋ`,`\\mathscr{H}`),Z(`ℐ`,`\\mathscr{I}`),Z(`ℒ`,`\\mathscr{L}`),Z(`ℳ`,`\\mathscr{M}`),Z(`ℛ`,`\\mathscr{R}`),Z(`ℭ`,`\\mathfrak{C}`),Z(`ℌ`,`\\mathfrak{H}`),Z(`ℨ`,`\\mathfrak{Z}`),Z(`\\Bbbk`,`\\Bbb{k}`),Z(`\\llap`,`\\mathllap{\\textrm{#1}}`),Z(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),Z(`\\clap`,`\\mathclap{\\textrm{#1}}`),Z(`\\mathstrut`,`\\vphantom{(}`),Z(`\\underbar`,`\\underline{\\text{#1}}`),Z(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),Z(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Z(`\\ne`,`\\neq`),Z(`≠`,`\\neq`),Z(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Z(`∉`,`\\notin`),Z(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Z(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Z(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Z(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Z(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Z(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Z(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Z(`⟂`,`\\perp`),Z(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),Z(`∌`,`\\notni`),Z(`⌜`,`\\ulcorner`),Z(`⌝`,`\\urcorner`),Z(`⌞`,`\\llcorner`),Z(`⌟`,`\\lrcorner`),Z(`©`,`\\copyright`),Z(`®`,`\\textregistered`),Z(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),Z(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),Z(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),Z(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),Z(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),Z(`⋮`,`\\vdots`),Z(`\\varGamma`,`\\mathit{\\Gamma}`),Z(`\\varDelta`,`\\mathit{\\Delta}`),Z(`\\varTheta`,`\\mathit{\\Theta}`),Z(`\\varLambda`,`\\mathit{\\Lambda}`),Z(`\\varXi`,`\\mathit{\\Xi}`),Z(`\\varPi`,`\\mathit{\\Pi}`),Z(`\\varSigma`,`\\mathit{\\Sigma}`),Z(`\\varUpsilon`,`\\mathit{\\Upsilon}`),Z(`\\varPhi`,`\\mathit{\\Phi}`),Z(`\\varPsi`,`\\mathit{\\Psi}`),Z(`\\varOmega`,`\\mathit{\\Omega}`),Z(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),Z(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),Z(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),Z(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),Z(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),Z(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),Z(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),Z(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var ky={",":`\\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`},Ay=new Set([`bin`,`rel`]);Z(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in ky?t=ky[n]:(n.slice(0,4)===`\\not`||n in ah.math&&Ay.has(ah.math[n].group))&&(t=`\\dotsb`),t});var jy={")":!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};Z(`\\dotso`,function(e){return e.future().text in jy?`\\ldots\\,`:`\\ldots`}),Z(`\\dotsc`,function(e){var t=e.future().text;return t in jy&&t!==`,`?`\\ldots\\,`:`\\ldots`}),Z(`\\cdots`,function(e){return e.future().text in jy?`\\@cdots\\,`:`\\@cdots`}),Z(`\\dotsb`,`\\cdots`),Z(`\\dotsm`,`\\cdots`),Z(`\\dotsi`,`\\!\\cdots`),Z(`\\dotsx`,`\\ldots\\,`),Z(`\\DOTSI`,`\\relax`),Z(`\\DOTSB`,`\\relax`),Z(`\\DOTSX`,`\\relax`),Z(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),Z(`\\,`,`\\tmspace+{3mu}{.1667em}`),Z(`\\thinspace`,`\\,`),Z(`\\>`,`\\mskip{4mu}`),Z(`\\:`,`\\tmspace+{4mu}{.2222em}`),Z(`\\medspace`,`\\:`),Z(`\\;`,`\\tmspace+{5mu}{.2777em}`),Z(`\\thickspace`,`\\;`),Z(`\\!`,`\\tmspace-{3mu}{.1667em}`),Z(`\\negthinspace`,`\\!`),Z(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),Z(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),Z(`\\enspace`,`\\kern.5em `),Z(`\\enskip`,`\\hskip.5em\\relax`),Z(`\\quad`,`\\hskip1em\\relax`),Z(`\\qquad`,`\\hskip2em\\relax`),Z(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),Z(`\\tag@paren`,`\\tag@literal{({#1})}`),Z(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new B(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),Z(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),Z(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),Z(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),Z(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),Z(`\\newline`,`\\\\\\relax`),Z(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var My=V(Qm[`Main-Regular`][84][1]-.7*Qm[`Main-Regular`][65][1]);Z(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+My+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),Z(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+My+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),Z(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),Z(`\\@hspace`,`\\hskip #1\\relax`),Z(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),Z(`\\ordinarycolon`,`:`),Z(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),Z(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),Z(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),Z(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),Z(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),Z(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),Z(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),Z(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),Z(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),Z(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),Z(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),Z(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),Z(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),Z(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),Z(`∷`,`\\dblcolon`),Z(`∹`,`\\eqcolon`),Z(`≔`,`\\coloneqq`),Z(`≕`,`\\eqqcolon`),Z(`⩴`,`\\Coloneqq`),Z(`\\ratio`,`\\vcentcolon`),Z(`\\coloncolon`,`\\dblcolon`),Z(`\\colonequals`,`\\coloneqq`),Z(`\\coloncolonequals`,`\\Coloneqq`),Z(`\\equalscolon`,`\\eqqcolon`),Z(`\\equalscoloncolon`,`\\Eqqcolon`),Z(`\\colonminus`,`\\coloneq`),Z(`\\coloncolonminus`,`\\Coloneq`),Z(`\\minuscolon`,`\\eqcolon`),Z(`\\minuscoloncolon`,`\\Eqcolon`),Z(`\\coloncolonapprox`,`\\Colonapprox`),Z(`\\coloncolonsim`,`\\Colonsim`),Z(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Z(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),Z(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),Z(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),Z(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),Z(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),Z(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),Z(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),Z(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),Z(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),Z(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),Z(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),Z(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),Z(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),Z(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),Z(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),Z(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),Z(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),Z(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),Z(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),Z(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),Z(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),Z(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),Z(`\\imath`,`\\html@mathml{\\@imath}{ı}`),Z(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),Z(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Z(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Z(`⟦`,`\\llbracket`),Z(`⟧`,`\\rrbracket`),Z(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Z(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Z(`⦃`,`\\lBrace`),Z(`⦄`,`\\rBrace`),Z(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Z(`⦵`,`\\minuso`),Z(`\\darr`,`\\downarrow`),Z(`\\dArr`,`\\Downarrow`),Z(`\\Darr`,`\\Downarrow`),Z(`\\lang`,`\\langle`),Z(`\\rang`,`\\rangle`),Z(`\\uarr`,`\\uparrow`),Z(`\\uArr`,`\\Uparrow`),Z(`\\Uarr`,`\\Uparrow`),Z(`\\N`,`\\mathbb{N}`),Z(`\\R`,`\\mathbb{R}`),Z(`\\Z`,`\\mathbb{Z}`),Z(`\\alef`,`\\aleph`),Z(`\\alefsym`,`\\aleph`),Z(`\\Alpha`,`\\mathrm{A}`),Z(`\\Beta`,`\\mathrm{B}`),Z(`\\bull`,`\\bullet`),Z(`\\Chi`,`\\mathrm{X}`),Z(`\\clubs`,`\\clubsuit`),Z(`\\cnums`,`\\mathbb{C}`),Z(`\\Complex`,`\\mathbb{C}`),Z(`\\Dagger`,`\\ddagger`),Z(`\\diamonds`,`\\diamondsuit`),Z(`\\empty`,`\\emptyset`),Z(`\\Epsilon`,`\\mathrm{E}`),Z(`\\Eta`,`\\mathrm{H}`),Z(`\\exist`,`\\exists`),Z(`\\harr`,`\\leftrightarrow`),Z(`\\hArr`,`\\Leftrightarrow`),Z(`\\Harr`,`\\Leftrightarrow`),Z(`\\hearts`,`\\heartsuit`),Z(`\\image`,`\\Im`),Z(`\\infin`,`\\infty`),Z(`\\Iota`,`\\mathrm{I}`),Z(`\\isin`,`\\in`),Z(`\\Kappa`,`\\mathrm{K}`),Z(`\\larr`,`\\leftarrow`),Z(`\\lArr`,`\\Leftarrow`),Z(`\\Larr`,`\\Leftarrow`),Z(`\\lrarr`,`\\leftrightarrow`),Z(`\\lrArr`,`\\Leftrightarrow`),Z(`\\Lrarr`,`\\Leftrightarrow`),Z(`\\Mu`,`\\mathrm{M}`),Z(`\\natnums`,`\\mathbb{N}`),Z(`\\Nu`,`\\mathrm{N}`),Z(`\\Omicron`,`\\mathrm{O}`),Z(`\\plusmn`,`\\pm`),Z(`\\rarr`,`\\rightarrow`),Z(`\\rArr`,`\\Rightarrow`),Z(`\\Rarr`,`\\Rightarrow`),Z(`\\real`,`\\Re`),Z(`\\reals`,`\\mathbb{R}`),Z(`\\Reals`,`\\mathbb{R}`),Z(`\\Rho`,`\\mathrm{P}`),Z(`\\sdot`,`\\cdot`),Z(`\\sect`,`\\S`),Z(`\\spades`,`\\spadesuit`),Z(`\\sub`,`\\subset`),Z(`\\sube`,`\\subseteq`),Z(`\\supe`,`\\supseteq`),Z(`\\Tau`,`\\mathrm{T}`),Z(`\\thetasym`,`\\vartheta`),Z(`\\weierp`,`\\wp`),Z(`\\Zeta`,`\\mathrm{Z}`),Z(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),Z(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),Z(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),Z(`\\bra`,`\\mathinner{\\langle{#1}|}`),Z(`\\ket`,`\\mathinner{|{#1}\\rangle}`),Z(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),Z(`\\Bra`,`\\left\\langle#1\\right|`),Z(`\\Ket`,`\\left|#1\\right\\rangle`);var Ny=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}};Z(`\\bra@ket`,Ny(!1)),Z(`\\bra@set`,Ny(!0)),Z(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),Z(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),Z(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),Z(`\\angln`,`{\\angl n}`),Z(`\\blue`,`\\textcolor{##6495ed}{#1}`),Z(`\\orange`,`\\textcolor{##ffa500}{#1}`),Z(`\\pink`,`\\textcolor{##ff00af}{#1}`),Z(`\\red`,`\\textcolor{##df0030}{#1}`),Z(`\\green`,`\\textcolor{##28ae7b}{#1}`),Z(`\\gray`,`\\textcolor{gray}{#1}`),Z(`\\purple`,`\\textcolor{##9d38bd}{#1}`),Z(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),Z(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),Z(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),Z(`\\blueD`,`\\textcolor{##11accd}{#1}`),Z(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),Z(`\\tealA`,`\\textcolor{##94fff5}{#1}`),Z(`\\tealB`,`\\textcolor{##26edd5}{#1}`),Z(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),Z(`\\tealD`,`\\textcolor{##01a995}{#1}`),Z(`\\tealE`,`\\textcolor{##208170}{#1}`),Z(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),Z(`\\greenB`,`\\textcolor{##8af281}{#1}`),Z(`\\greenC`,`\\textcolor{##74cf70}{#1}`),Z(`\\greenD`,`\\textcolor{##1fab54}{#1}`),Z(`\\greenE`,`\\textcolor{##0d923f}{#1}`),Z(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),Z(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),Z(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),Z(`\\goldD`,`\\textcolor{##e07d10}{#1}`),Z(`\\goldE`,`\\textcolor{##a75a05}{#1}`),Z(`\\redA`,`\\textcolor{##fca9a9}{#1}`),Z(`\\redB`,`\\textcolor{##ff8482}{#1}`),Z(`\\redC`,`\\textcolor{##f9685d}{#1}`),Z(`\\redD`,`\\textcolor{##e84d39}{#1}`),Z(`\\redE`,`\\textcolor{##bc2612}{#1}`),Z(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),Z(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),Z(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),Z(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),Z(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),Z(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),Z(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),Z(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),Z(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),Z(`\\purpleE`,`\\textcolor{##543b78}{#1}`),Z(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),Z(`\\mintB`,`\\textcolor{##edf2df}{#1}`),Z(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),Z(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),Z(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),Z(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),Z(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),Z(`\\grayE`,`\\textcolor{##babec2}{#1}`),Z(`\\grayF`,`\\textcolor{##888d93}{#1}`),Z(`\\grayG`,`\\textcolor{##626569}{#1}`),Z(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),Z(`\\grayI`,`\\textcolor{##21242c}{#1}`),Z(`\\kaBlue`,`\\textcolor{##314453}{#1}`),Z(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var Py={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Fy=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 Ty(Ey,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new wy(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 Tv(`EOF`,n.loc)),this.pushTokens(r),new Tv(``,wv.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 B(`Extra }`,i)}else if(i.text===`EOF`)throw new B(`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 B(`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 B(`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 B(`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 B(`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 B(`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 B(`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 Tv(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 wy(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)||hy.hasOwnProperty(e)||ah.math.hasOwnProperty(e)||ah.text.hasOwnProperty(e)||Py.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?hy.hasOwnProperty(e)&&!hy[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Iy=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ly=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Ry={"́":{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`}},zy={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},By=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 Fy(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 B(`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 Tv(`}`)),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&&hy[i.text]&&hy[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 B(`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},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],[])]}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 B(`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 B(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new B(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new B(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new B(`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(Ly[i.text]){var s=Iy.test(i.text),c=[];for(c.push(new Tv(Ly[i.text])),this.consume();;){var l=this.fetch().text;if(!Ly[l]||Iy.test(l)!==s)break;c.unshift(new Tv(Ly[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=hy[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new B(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new B(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new B(`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=hy[e];if(o&&o.handler)return o.handler(a,t,n);throw new B(`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 B(`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 B(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new B(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new B(`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 B(`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 B(`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 B(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!Nm(i))throw new B(`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:wv.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Py.hasOwnProperty(r)){if(this.settings.throwOnError)throw new B(`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:wv.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:wv.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:wv.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 B(`\\verb assertion failed --
|
|
369
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}
|
|
370
|
-
`);for(let e of a){let t=e.indexOf(`:`);if(t===-1)continue;let n=e.substring(0,t).trim(),r=e.substring(t+1).trim();r.startsWith(`"`)&&r.endsWith(`"`)||r.startsWith(`'`)&&r.endsWith(`'`)?r=r.substring(1,r.length-1):r===`true`?r=!0:r===`false`?r=!1:!Number.isNaN(Number(r))&&r!==``?r=Number(r):r.startsWith(`[`)&&r.endsWith(`]`)&&(r=r.substring(1,r.length-1).split(`,`).map(e=>e.trim().replace(/^['"]|['"]$/g,``)).filter(Boolean)),i[n]=r}return{frontmatter:i,content:r}}function
|
|
367
|
+
?)[ \r ]*`,Sy=`[̀-ͯ]`,Cy=RegExp(Sy+`+$`),wy=`(`+_y+`+)|`+(xy+`|`)+`([!-\\[\\]-‧-豈-]`+(Sy+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(Sy+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+by)+(`|`+yy+`)`),Ty=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(wy,`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 Ev(`EOF`,new Tv(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new B(`Unexpected character: '`+e[t]+`'`,new Ev(e[t],new Tv(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
|
|
368
|
+
`,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 Ev(r,new Tv(this,t,this.tokenRegex.lastIndex))}},Ey=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 B(`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}},Dy=wv;Z(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Z(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Z(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Z(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Z(`\\@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}}),Z(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),Z(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Oy={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};Z(`\\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 B("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Oy[t.text],r==null||r>=n)throw new B(`Invalid base-`+n+` digit `+t.text);for(var i;(i=Oy[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var ky=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new B(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new B(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new B(`\\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 B(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};Z(`\\newcommand`,e=>ky(e,!1,!0,!1)),Z(`\\renewcommand`,e=>ky(e,!0,!1,!1)),Z(`\\providecommand`,e=>ky(e,!0,!0,!0)),Z(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),gy[n],oh.math[n],oh.text[n]),``}),Z(`\\bgroup`,`{`),Z(`\\egroup`,`}`),Z(`~`,`\\nobreakspace`),Z(`\\lq`,"`"),Z(`\\rq`,`'`),Z(`\\aa`,`\\r a`),Z(`\\AA`,`\\r A`),Z(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),Z(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),Z(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Z(`ℬ`,`\\mathscr{B}`),Z(`ℰ`,`\\mathscr{E}`),Z(`ℱ`,`\\mathscr{F}`),Z(`ℋ`,`\\mathscr{H}`),Z(`ℐ`,`\\mathscr{I}`),Z(`ℒ`,`\\mathscr{L}`),Z(`ℳ`,`\\mathscr{M}`),Z(`ℛ`,`\\mathscr{R}`),Z(`ℭ`,`\\mathfrak{C}`),Z(`ℌ`,`\\mathfrak{H}`),Z(`ℨ`,`\\mathfrak{Z}`),Z(`\\Bbbk`,`\\Bbb{k}`),Z(`\\llap`,`\\mathllap{\\textrm{#1}}`),Z(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),Z(`\\clap`,`\\mathclap{\\textrm{#1}}`),Z(`\\mathstrut`,`\\vphantom{(}`),Z(`\\underbar`,`\\underline{\\text{#1}}`),Z(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),Z(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Z(`\\ne`,`\\neq`),Z(`≠`,`\\neq`),Z(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Z(`∉`,`\\notin`),Z(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Z(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Z(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Z(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Z(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Z(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Z(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Z(`⟂`,`\\perp`),Z(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),Z(`∌`,`\\notni`),Z(`⌜`,`\\ulcorner`),Z(`⌝`,`\\urcorner`),Z(`⌞`,`\\llcorner`),Z(`⌟`,`\\lrcorner`),Z(`©`,`\\copyright`),Z(`®`,`\\textregistered`),Z(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),Z(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),Z(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),Z(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),Z(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),Z(`⋮`,`\\vdots`),Z(`\\varGamma`,`\\mathit{\\Gamma}`),Z(`\\varDelta`,`\\mathit{\\Delta}`),Z(`\\varTheta`,`\\mathit{\\Theta}`),Z(`\\varLambda`,`\\mathit{\\Lambda}`),Z(`\\varXi`,`\\mathit{\\Xi}`),Z(`\\varPi`,`\\mathit{\\Pi}`),Z(`\\varSigma`,`\\mathit{\\Sigma}`),Z(`\\varUpsilon`,`\\mathit{\\Upsilon}`),Z(`\\varPhi`,`\\mathit{\\Phi}`),Z(`\\varPsi`,`\\mathit{\\Psi}`),Z(`\\varOmega`,`\\mathit{\\Omega}`),Z(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),Z(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),Z(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),Z(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),Z(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),Z(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),Z(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),Z(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var Ay={",":`\\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`},jy=new Set([`bin`,`rel`]);Z(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in Ay?t=Ay[n]:(n.slice(0,4)===`\\not`||n in oh.math&&jy.has(oh.math[n].group))&&(t=`\\dotsb`),t});var My={")":!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};Z(`\\dotso`,function(e){return e.future().text in My?`\\ldots\\,`:`\\ldots`}),Z(`\\dotsc`,function(e){var t=e.future().text;return t in My&&t!==`,`?`\\ldots\\,`:`\\ldots`}),Z(`\\cdots`,function(e){return e.future().text in My?`\\@cdots\\,`:`\\@cdots`}),Z(`\\dotsb`,`\\cdots`),Z(`\\dotsm`,`\\cdots`),Z(`\\dotsi`,`\\!\\cdots`),Z(`\\dotsx`,`\\ldots\\,`),Z(`\\DOTSI`,`\\relax`),Z(`\\DOTSB`,`\\relax`),Z(`\\DOTSX`,`\\relax`),Z(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),Z(`\\,`,`\\tmspace+{3mu}{.1667em}`),Z(`\\thinspace`,`\\,`),Z(`\\>`,`\\mskip{4mu}`),Z(`\\:`,`\\tmspace+{4mu}{.2222em}`),Z(`\\medspace`,`\\:`),Z(`\\;`,`\\tmspace+{5mu}{.2777em}`),Z(`\\thickspace`,`\\;`),Z(`\\!`,`\\tmspace-{3mu}{.1667em}`),Z(`\\negthinspace`,`\\!`),Z(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),Z(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),Z(`\\enspace`,`\\kern.5em `),Z(`\\enskip`,`\\hskip.5em\\relax`),Z(`\\quad`,`\\hskip1em\\relax`),Z(`\\qquad`,`\\hskip2em\\relax`),Z(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),Z(`\\tag@paren`,`\\tag@literal{({#1})}`),Z(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new B(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),Z(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),Z(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),Z(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),Z(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),Z(`\\newline`,`\\\\\\relax`),Z(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var Ny=V($m[`Main-Regular`][84][1]-.7*$m[`Main-Regular`][65][1]);Z(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Ny+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),Z(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Ny+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),Z(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),Z(`\\@hspace`,`\\hskip #1\\relax`),Z(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),Z(`\\ordinarycolon`,`:`),Z(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),Z(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),Z(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),Z(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),Z(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),Z(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),Z(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),Z(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),Z(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),Z(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),Z(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),Z(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),Z(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),Z(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),Z(`∷`,`\\dblcolon`),Z(`∹`,`\\eqcolon`),Z(`≔`,`\\coloneqq`),Z(`≕`,`\\eqqcolon`),Z(`⩴`,`\\Coloneqq`),Z(`\\ratio`,`\\vcentcolon`),Z(`\\coloncolon`,`\\dblcolon`),Z(`\\colonequals`,`\\coloneqq`),Z(`\\coloncolonequals`,`\\Coloneqq`),Z(`\\equalscolon`,`\\eqqcolon`),Z(`\\equalscoloncolon`,`\\Eqqcolon`),Z(`\\colonminus`,`\\coloneq`),Z(`\\coloncolonminus`,`\\Coloneq`),Z(`\\minuscolon`,`\\eqcolon`),Z(`\\minuscoloncolon`,`\\Eqcolon`),Z(`\\coloncolonapprox`,`\\Colonapprox`),Z(`\\coloncolonsim`,`\\Colonsim`),Z(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Z(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),Z(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),Z(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),Z(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),Z(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),Z(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),Z(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),Z(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),Z(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),Z(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),Z(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),Z(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),Z(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),Z(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),Z(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),Z(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),Z(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),Z(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),Z(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),Z(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),Z(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),Z(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),Z(`\\imath`,`\\html@mathml{\\@imath}{ı}`),Z(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),Z(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Z(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Z(`⟦`,`\\llbracket`),Z(`⟧`,`\\rrbracket`),Z(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Z(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Z(`⦃`,`\\lBrace`),Z(`⦄`,`\\rBrace`),Z(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Z(`⦵`,`\\minuso`),Z(`\\darr`,`\\downarrow`),Z(`\\dArr`,`\\Downarrow`),Z(`\\Darr`,`\\Downarrow`),Z(`\\lang`,`\\langle`),Z(`\\rang`,`\\rangle`),Z(`\\uarr`,`\\uparrow`),Z(`\\uArr`,`\\Uparrow`),Z(`\\Uarr`,`\\Uparrow`),Z(`\\N`,`\\mathbb{N}`),Z(`\\R`,`\\mathbb{R}`),Z(`\\Z`,`\\mathbb{Z}`),Z(`\\alef`,`\\aleph`),Z(`\\alefsym`,`\\aleph`),Z(`\\Alpha`,`\\mathrm{A}`),Z(`\\Beta`,`\\mathrm{B}`),Z(`\\bull`,`\\bullet`),Z(`\\Chi`,`\\mathrm{X}`),Z(`\\clubs`,`\\clubsuit`),Z(`\\cnums`,`\\mathbb{C}`),Z(`\\Complex`,`\\mathbb{C}`),Z(`\\Dagger`,`\\ddagger`),Z(`\\diamonds`,`\\diamondsuit`),Z(`\\empty`,`\\emptyset`),Z(`\\Epsilon`,`\\mathrm{E}`),Z(`\\Eta`,`\\mathrm{H}`),Z(`\\exist`,`\\exists`),Z(`\\harr`,`\\leftrightarrow`),Z(`\\hArr`,`\\Leftrightarrow`),Z(`\\Harr`,`\\Leftrightarrow`),Z(`\\hearts`,`\\heartsuit`),Z(`\\image`,`\\Im`),Z(`\\infin`,`\\infty`),Z(`\\Iota`,`\\mathrm{I}`),Z(`\\isin`,`\\in`),Z(`\\Kappa`,`\\mathrm{K}`),Z(`\\larr`,`\\leftarrow`),Z(`\\lArr`,`\\Leftarrow`),Z(`\\Larr`,`\\Leftarrow`),Z(`\\lrarr`,`\\leftrightarrow`),Z(`\\lrArr`,`\\Leftrightarrow`),Z(`\\Lrarr`,`\\Leftrightarrow`),Z(`\\Mu`,`\\mathrm{M}`),Z(`\\natnums`,`\\mathbb{N}`),Z(`\\Nu`,`\\mathrm{N}`),Z(`\\Omicron`,`\\mathrm{O}`),Z(`\\plusmn`,`\\pm`),Z(`\\rarr`,`\\rightarrow`),Z(`\\rArr`,`\\Rightarrow`),Z(`\\Rarr`,`\\Rightarrow`),Z(`\\real`,`\\Re`),Z(`\\reals`,`\\mathbb{R}`),Z(`\\Reals`,`\\mathbb{R}`),Z(`\\Rho`,`\\mathrm{P}`),Z(`\\sdot`,`\\cdot`),Z(`\\sect`,`\\S`),Z(`\\spades`,`\\spadesuit`),Z(`\\sub`,`\\subset`),Z(`\\sube`,`\\subseteq`),Z(`\\supe`,`\\supseteq`),Z(`\\Tau`,`\\mathrm{T}`),Z(`\\thetasym`,`\\vartheta`),Z(`\\weierp`,`\\wp`),Z(`\\Zeta`,`\\mathrm{Z}`),Z(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),Z(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),Z(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),Z(`\\bra`,`\\mathinner{\\langle{#1}|}`),Z(`\\ket`,`\\mathinner{|{#1}\\rangle}`),Z(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),Z(`\\Bra`,`\\left\\langle#1\\right|`),Z(`\\Ket`,`\\left|#1\\right\\rangle`);var Py=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}};Z(`\\bra@ket`,Py(!1)),Z(`\\bra@set`,Py(!0)),Z(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),Z(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),Z(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),Z(`\\angln`,`{\\angl n}`),Z(`\\blue`,`\\textcolor{##6495ed}{#1}`),Z(`\\orange`,`\\textcolor{##ffa500}{#1}`),Z(`\\pink`,`\\textcolor{##ff00af}{#1}`),Z(`\\red`,`\\textcolor{##df0030}{#1}`),Z(`\\green`,`\\textcolor{##28ae7b}{#1}`),Z(`\\gray`,`\\textcolor{gray}{#1}`),Z(`\\purple`,`\\textcolor{##9d38bd}{#1}`),Z(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),Z(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),Z(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),Z(`\\blueD`,`\\textcolor{##11accd}{#1}`),Z(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),Z(`\\tealA`,`\\textcolor{##94fff5}{#1}`),Z(`\\tealB`,`\\textcolor{##26edd5}{#1}`),Z(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),Z(`\\tealD`,`\\textcolor{##01a995}{#1}`),Z(`\\tealE`,`\\textcolor{##208170}{#1}`),Z(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),Z(`\\greenB`,`\\textcolor{##8af281}{#1}`),Z(`\\greenC`,`\\textcolor{##74cf70}{#1}`),Z(`\\greenD`,`\\textcolor{##1fab54}{#1}`),Z(`\\greenE`,`\\textcolor{##0d923f}{#1}`),Z(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),Z(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),Z(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),Z(`\\goldD`,`\\textcolor{##e07d10}{#1}`),Z(`\\goldE`,`\\textcolor{##a75a05}{#1}`),Z(`\\redA`,`\\textcolor{##fca9a9}{#1}`),Z(`\\redB`,`\\textcolor{##ff8482}{#1}`),Z(`\\redC`,`\\textcolor{##f9685d}{#1}`),Z(`\\redD`,`\\textcolor{##e84d39}{#1}`),Z(`\\redE`,`\\textcolor{##bc2612}{#1}`),Z(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),Z(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),Z(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),Z(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),Z(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),Z(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),Z(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),Z(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),Z(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),Z(`\\purpleE`,`\\textcolor{##543b78}{#1}`),Z(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),Z(`\\mintB`,`\\textcolor{##edf2df}{#1}`),Z(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),Z(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),Z(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),Z(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),Z(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),Z(`\\grayE`,`\\textcolor{##babec2}{#1}`),Z(`\\grayF`,`\\textcolor{##888d93}{#1}`),Z(`\\grayG`,`\\textcolor{##626569}{#1}`),Z(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),Z(`\\grayI`,`\\textcolor{##21242c}{#1}`),Z(`\\kaBlue`,`\\textcolor{##314453}{#1}`),Z(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var Fy={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Iy=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 Ey(Dy,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Ty(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 Ev(`EOF`,n.loc)),this.pushTokens(r),new Ev(``,Tv.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 B(`Extra }`,i)}else if(i.text===`EOF`)throw new B(`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 B(`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 B(`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 B(`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 B(`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 B(`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 B(`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 Ev(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 Ty(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)||gy.hasOwnProperty(e)||oh.math.hasOwnProperty(e)||oh.text.hasOwnProperty(e)||Fy.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?gy.hasOwnProperty(e)&&!gy[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Ly=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ry=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),zy={"́":{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`}},By={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Vy=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 Iy(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 B(`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 Ev(`}`)),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&&gy[i.text]&&gy[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 B(`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},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],[])]}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 B(`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 B(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new B(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new B(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new B(`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(Ry[i.text]){var s=Ly.test(i.text),c=[];for(c.push(new Ev(Ry[i.text])),this.consume();;){var l=this.fetch().text;if(!Ry[l]||Ly.test(l)!==s)break;c.unshift(new Ev(Ry[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=gy[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new B(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new B(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new B(`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=gy[e];if(o&&o.handler)return o.handler(a,t,n);throw new B(`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 B(`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 B(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new B(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new B(`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 B(`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 B(`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 B(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!Pm(i))throw new B(`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:Tv.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Fy.hasOwnProperty(r)){if(this.settings.throwOnError)throw new B(`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:Tv.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:Tv.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:Tv.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 B(`\\verb assertion failed --
|
|
369
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}By.hasOwnProperty(t[0])&&!oh[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=By[t[0]]+t.slice(1));var i=Cy.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(oh[this.mode][t]){this.settings.strict&&this.mode===`math`&&jh.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=oh[this.mode][t].group,s=Tv.range(e);a=g_(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&&(gm(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:Tv.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(!zy[l])throw new B(`Unknown accent ' `+l+`'`,e);var u=zy[l][this.mode]||zy[l].text;if(!u)throw new B(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:Tv.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};Vy.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var Hy=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new Vy(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 B(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new Ev(`\\df@tag`)])}]}return r},Uy=function(e,t,n){t.textContent=``;var r=qy(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.`),Uy=function(){throw new B(`KaTeX doesn't work in quirks mode.`)});var Wy=function(e,t){return qy(e,t).toMarkup()},Gy=function(e,t){return Hy(e,new Yp(t))},Ky=function(e,t,n){if(n.throwOnError||!(e instanceof B))throw e;var r=Y([`katex-error`],[new Km(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},qy=function(e,t){var n=new Yp(t);try{return o_(Hy(e,n),e,n)}catch(t){return Ky(t,e,n)}},Jy=function(e,t){var n=new Yp(t);try{return s_(Hy(e,n),e,n)}catch(t){return Ky(t,e,n)}},Yy=`0.16.47`,Xy={Span:Hm,Anchor:Um,SymbolNode:Km,SvgNode:qm,PathNode:Jm,LineNode:Ym},Zy={version:Yy,render:Uy,renderToString:Wy,ParseError:B,SETTINGS_SCHEMA:Gp,__parse:Gy,__renderToDomTree:qy,__renderToHTMLTree:Jy,__setFontMetrics:nh,__defineSymbol:H,__defineFunction:Cg,__defineMacro:Z,__domTree:Xy};function Qy(e){let t=[],n=`@@__DMD_KATEX_CODE_`,r=`__@@`,i=e=>{let i=t.length;return t.push(e),`${n}${i}${r}`},a=e.replace(/(`{3,})[\s\S]*?\1/g,e=>i(e));a=a.replace(/(~{3,})[\s\S]*?\1/g,e=>i(e)),a=a.replace(/(`+)[\s\S]*?\1/g,e=>i(e));let o=a.replace(/\$\$([\s\S]+?)\$\$/g,(e,t)=>{try{return Zy.renderToString(t.trim(),{displayMode:!0,throwOnError:!1})}catch{return`$$${t}$$`}});return o=o.replace(/(^|[^\\])\$([^$\n]+?)\$/g,(e,t,n)=>{if(!n.trim())return`${t}$${n}$`;try{return`${t}${Zy.renderToString(n.trim(),{displayMode:!1,throwOnError:!1})}`}catch{return`${t}$${n}$`}}),t.forEach((e,t)=>{o=o.split(`${n}${t}${r}`).join(e)}),o}function $y(e){let t=e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/);if(!t)return{frontmatter:{},content:e};let n=t[1],r=e.substring(t[0].length),i={},a=n.split(`
|
|
370
|
+
`);for(let e of a){let t=e.indexOf(`:`);if(t===-1)continue;let n=e.substring(0,t).trim(),r=e.substring(t+1).trim();r.startsWith(`"`)&&r.endsWith(`"`)||r.startsWith(`'`)&&r.endsWith(`'`)?r=r.substring(1,r.length-1):r===`true`?r=!0:r===`false`?r=!1:!Number.isNaN(Number(r))&&r!==``?r=Number(r):r.startsWith(`[`)&&r.endsWith(`]`)&&(r=r.substring(1,r.length-1).split(`,`).map(e=>e.trim().replace(/^['"]|['"]$/g,``)).filter(Boolean)),i[n]=r}return{frontmatter:i,content:r}}function eb(e){return e.toLowerCase().replace(/<[^>]*>/g,``).replace(/[^\w\s-]/g,``).trim().replace(/[\s_-]+/g,`-`)}function tb(e){let t=e.trim().split(/\s+/).length;return Math.max(1,Math.ceil(t/200))}function nb(e,t=``){let{frontmatter:n,content:r}=$y(e),i=tb(r),a=Qy(r);a=Ud(a);let o=_p(a);a=o.html;let s=[],c={},l=new Vd.Renderer;return l.heading=({tokens:e,depth:n})=>{let r=Vd.parseInline(e.map(e=>e.raw).join(``)),i=e.map(e=>e.text||e.raw).join(``),a=eb(i);return c[a]?(c[a]++,a=`${a}-${c[a]}`):c[a]=1,n<=3&&s.push({level:n,text:Pp(i),html:r,id:a}),`
|
|
371
371
|
<h${n} id="${a}" class="dmd-heading dmd-h${n}">
|
|
372
372
|
<a href="#/${t}#${a}" class="dmd-heading-anchor" aria-hidden="true">#</a>
|
|
373
373
|
<span>${r}</span>
|
|
374
374
|
</h${n}>
|
|
375
|
-
`},l.code=({text:e,lang:t})=>Zf(e,t||``),l.table=e=>Cf({header:e.header.map((t,n)=>({html:Bd.parseInline(t.text||``),align:t.align||e.align?.[n]||null})),rows:e.rows.map(t=>t.map((t,n)=>({html:Bd.parseInline(t.text||``),align:t.align||e.align?.[n]||null})))}),l.link=({href:e,title:n,text:r})=>{let i=e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`mailto:`),a=e;if(!i){if(/\.html(?:#.*)?$/i.test(e))return`<a href="${e}"${n?` title="${n}"`:``} class="dmd-link">${r}</a>`;if(e.startsWith(`#`))a=`#/${t}${e}`;else{let n=e.replace(/\.(md|mdx)$/i,``);if(n.startsWith(`./`)){let e=t.includes(`/`)?t.substring(0,t.lastIndexOf(`/`)):``;n=e?`${e}/${n.replace(/^\.\//,``)}`:n.replace(/^\.\//,``)}else if(!n.startsWith(`/`)){let e=t.includes(`/`)?t.substring(0,t.lastIndexOf(`/`)):``;n=e?`${e}/${n}`:n}a=`#/${n.replace(/^\//,``)}`}}let o=n?` title="${n}"`:``;return`<a href="${a}"${o}${i?` target="_blank" rel="noopener noreferrer"`:``} class="dmd-link">${r}${i?`<svg class="dmd-ext-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>`:``}</a>`},{frontmatter:n,html:Sp(_p(mp(Bd.parse(a,{renderer:l,gfm:!0,breaks:!1}),o.fences))),headings:s,readingTimeMinutes:i}}var nb={};function rb(e){let t;return()=>(t===void 0&&(t=e()),t)}var ib=e=>e,ab=e=>e*1e3,ob=e=>e/1e3,sb=e=>Array.isArray(e)&&typeof e[0]==`number`,cb=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function lb(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var ub=40;function db(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=cb.reduce((e,t)=>(e[t]=lb(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=nb.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,ub),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:cb.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<cb.length;t++)o[cb[t]].cancel(e)},state:i,steps:o}}var{schedule:fb,cancel:pb,state:mb,steps:hb}=db(typeof requestAnimationFrame<`u`?requestAnimationFrame:ib,!0),gb;function _b(){gb=void 0}var vb={now:()=>(gb===void 0&&vb.set(mb.isProcessing||nb.useManualTiming?mb.timestamp:performance.now()),gb),set:e=>{gb=e,queueMicrotask(_b)}},yb=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},bb=e=>e!==null;function xb(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(bb),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}function Sb(e,t){return{kind:e,animation:t,timestamp:vb.now(),frameTimestamp:mb.timestamp,frameIsProcessing:mb.isProcessing}}function Cb(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Sb(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}var wb=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}};function Tb(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Eb=e=>e.startsWith(`--`);function Db(e,t,n){Eb(t)?e.style.setProperty(t,n):e.style[t]=n}var Ob={};function kb(e,t){let n=rb(e);return()=>Ob[t]??n()}var Ab=kb(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),jb=kb(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Mb=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Nb={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Mb([0,.65,.55,1]),circOut:Mb([.55,0,1,.45]),backIn:Mb([.31,.01,.66,-.59]),backOut:Mb([.33,1.53,.69,.99])};function Pb(e,t){if(e)return typeof e==`function`?jb()?yb(e,t):`ease-out`:sb(e)?Mb(e):Array.isArray(e)?e.map(e=>Pb(e,t)||Nb.easeOut):Nb[e]}function Fb(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Pb(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Ib(e){return typeof e==`function`&&`applyToOptions`in e}function Lb({type:e,...t}){return Ib(e)&&jb()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Rb=class extends wb{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Lb(e);this.animation=Fb(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=xb(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Db(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},Cb(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return ob(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+ob(e)}get time(){return ob(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ab(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Ab()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),ib):r(this)}},zb=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Bb(this.animations,`duration`)}get iterationDuration(){return Bb(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function Bb(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Vb=class extends zb{then(e,t){return this.finished.finally(e).then(()=>{})}},Hb=new WeakMap,Ub=(e,t=``)=>`${e}:${t}`;function Wb(e){let t=Hb.get(e);return t||(t=new Map,Hb.set(e,t)),t}function Gb(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Kb(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Gb(n,e)}var qb=new Set(`borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.width.maxWidth.height.maxHeight.top.right.bottom.left.inset.insetBlock.insetBlockStart.insetBlockEnd.insetInline.insetInlineStart.insetInlineEnd.padding.paddingTop.paddingRight.paddingBottom.paddingLeft.paddingBlock.paddingBlockStart.paddingBlockEnd.paddingInline.paddingInlineStart.paddingInlineEnd.margin.marginTop.marginRight.marginBottom.marginLeft.marginBlock.marginBlockStart.marginBlockEnd.marginInline.marginInlineStart.marginInlineEnd.fontSize.backgroundPositionX.backgroundPositionY`.split(`.`));function Jb(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&qb.has(t)&&(e[n]=e[n]+`px`)}function Yb(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Xb(e,t){let n=window.getComputedStyle(e);return Eb(t)?n.getPropertyValue(t):n[t]}function Zb(e,t,n,r){if(e==null)return[];let i=Yb(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...Kb(s,e)};i.duration&&=ab(i.duration),i.delay&&=ab(i.delay);let a=Wb(r),c=Ub(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=Xb(r,i)),Tb(t),Jb(t,i),!a&&t.length<2&&t.unshift(Xb(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new Rb(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var Qb=(e=>{function t(t,n,r){return new Vb(Zb(t,n,r,e))}return t})(),$b=e.n({animate:()=>rx,animateRaw:()=>Qb,collapse:()=>cx,expand:()=>sx,fade:()=>ux,getMotionOptions:()=>nx,isDOMElement:()=>ex,motion:()=>lx,prefersReducedMotion:()=>tx,scale:()=>fx,slide:()=>dx,smoothScroll:()=>ax,stagger:()=>mx,useMotion:()=>px});function ex(e){return typeof window>`u`||!e?!1:window.Element!==void 0&&e instanceof window.Element}function tx(){if(typeof window>`u`)return!1;let e=document.documentElement?.getAttribute(`data-dmd-motion`);if(e===`reduced`||e===`off`)return!0;if(e===`full`||e===`on`)return!1;try{let e=window.localStorage.getItem(`dmd-motion`);if(e===`reduced`||e===`off`)return!0;if(e===`full`||e===`on`)return!1}catch{}return window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1}function nx(e){return tx()?{...e,duration:0,delay:0}:e}function rx(e,t,n={}){if(!ex(e)){if(e&&typeof e==`object`&&`style`in e&&e.style)for(let[n,r]of Object.entries(t)){let t=Array.isArray(r)?r[r.length-1]:r;try{e.style[n]=String(t)}catch{}}let n=Promise.resolve();return n.stop=()=>{},n}return tx()&&(n={...n,duration:0,delay:0}),Qb(e,t,n)}var ix=new WeakMap;function ax(e,t,n={}){ix.get(e)?.stop();let r=n.direction!==`y`,i=r?e.scrollLeft:e.scrollTop,a=t-i;if(Math.abs(a)<1||(n.duration??400)<=0||tx()||typeof requestAnimationFrame>`u`)return r?e.scrollLeft=t:e.scrollTop=t,n.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let o=n.duration??400,s=n.easing??(e=>1-(1-e)**3),c=null,l=0,u=!1,d,f=new Promise(e=>{d=e}),p=e.style.scrollSnapType;e.style.scrollSnapType=`none`;let m=()=>{e.style.scrollSnapType=p,e.removeEventListener(`wheel`,h),e.removeEventListener(`touchstart`,h),e.removeEventListener(`pointerdown`,h),e.removeEventListener(`keydown`,h)},h=()=>{u||(u=!0,l&&cancelAnimationFrame(l),m(),ix.delete(e),d())},g=f=>{if(u)return;c===null&&(c=f);let p=f-c,h=Math.min(1,p/o),_=s(h),v=i+a*_;r?e.scrollLeft=v:e.scrollTop=v,h<1?l=requestAnimationFrame(g):(u=!0,r?e.scrollLeft=t:e.scrollTop=t,m(),ix.delete(e),n.onComplete?.(),d())};return ix.set(e,{stop:h}),e.addEventListener(`wheel`,h,{passive:!0}),e.addEventListener(`touchstart`,h,{passive:!0}),e.addEventListener(`pointerdown`,h,{passive:!0}),e.addEventListener(`keydown`,h),l=requestAnimationFrame(g),{stop:h,finished:f}}var ox=new WeakMap;function sx(e,t={}){if(ox.get(e)?.stop(),!ex(e)||tx())return e?.style&&(e.style.height=`auto`,e.style.opacity=`1`,e.style.overflow=`visible`),t.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let n=e.offsetHeight;e.style.display=`block`,e.style.height=`auto`;let r=e.scrollHeight,i=n>0&&n<r?n:0;e.style.height=`${i}px`,e.style.opacity=n>0?String(Math.min(1,n/r)):`0`,e.style.overflow=`hidden`;let a=(t.duration??240)/1e3,o=Qb(e,{height:[`${i}px`,`${r}px`],opacity:[Number(e.style.opacity)||0,1]},{duration:a,ease:[.16,1,.3,1]}),s=!1,c=()=>{s||(s=!0,o.stop(),ox.delete(e))};return ox.set(e,{stop:c}),{stop:c,finished:o.then(()=>{s||(e.style.height=`auto`,e.style.opacity=`1`,e.style.overflow=`visible`,t.onComplete?.(),ox.delete(e))})}}function cx(e,t={}){if(ox.get(e)?.stop(),!ex(e)||tx())return e?.style&&(e.style.height=`0px`,e.style.opacity=`0`,e.style.overflow=`hidden`),t.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let n=e.offsetHeight;if(e.style.overflow=`hidden`,n<=0)return e.style.height=`0px`,e.style.opacity=`0`,t.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let r=(t.duration??200)/1e3,i=Qb(e,{height:[`${n}px`,`0px`],opacity:[1,0]},{duration:r,ease:[.16,1,.3,1]}),a=!1,o=()=>{a||(a=!0,i.stop(),ox.delete(e))};return ox.set(e,{stop:o}),{stop:o,finished:i.then(()=>{a||(e.style.height=`0px`,e.style.opacity=`0`,t.onComplete?.(),ox.delete(e))})}}function lx(e,t={}){let n=null,r=null,i=!1;function a(){n?.stop(),n=null}function o(){if(a(),!ex(e)||tx()){t.animate&&e?.style&&Object.assign(e.style,t.animate);return}if(t.initial&&e?.style&&Object.assign(e.style,t.initial),t.animate){let r=t.transition?.duration??.35,i=t.transition?.delay??0,a=t.transition?.ease??[.25,1,.5,1];n=Qb(e,t.animate,{duration:r,delay:i,ease:a})}}function s(){r?.disconnect(),r=null,a(),t.inView&&ex(e)&&!tx()&&typeof IntersectionObserver<`u`?(t.initial&&Object.assign(e.style,t.initial),r=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(r?.disconnect(),r=null,o())},{threshold:.1}),r.observe(e)):o()}return s(),{update(e){i||e===t||(t=e,s())},destroy(){i=!0,r?.disconnect(),r=null,a()}}}function ux(e,t={}){let n=e=>({initial:{opacity:`0`},animate:{opacity:`1`},transition:{duration:e.duration??.3,delay:e.delay??0},inView:e.inView}),r=lx(e,n(t));return{update:e=>r.update(n(e)),destroy:r.destroy}}function dx(e,t={}){let n=e=>{let t=e.direction??`up`,n=e.distance??16;return{initial:{opacity:`0`,transform:`translate3d(${t===`left`?`${n}px`:t===`right`?`-${n}px`:`0px`}, ${t===`up`?`${n}px`:t===`down`?`-${n}px`:`0px`}, 0)`},animate:{opacity:`1`,transform:`translate3d(0, 0, 0)`},transition:{duration:e.duration??.35,delay:e.delay??0},inView:e.inView}},r=lx(e,n(t));return{update:e=>r.update(n(e)),destroy:r.destroy}}function fx(e,t={}){let n=e=>({initial:{opacity:`0`,transform:`scale(${e.from??.94})`},animate:{opacity:`1`,transform:`scale(1)`},transition:{duration:e.duration??.3,delay:e.delay??0},inView:e.inView}),r=lx(e,n(t));return{update:e=>r.update(n(e)),destroy:r.destroy}}function px(e={}){let t=null;return n=>{if(t&&=(t(),null),n){let r=lx(n,e);t=()=>r.destroy()}}}function mx(e,t,n={}){let r=Array.from(e),i=n.staggerDelay??.05,a=n.delay??0;return r.map((e,r)=>rx(e,t,{duration:n.duration,ease:n.ease,delay:a+r*i}))}function hx(){if(typeof window>`u`)return null;let e=window;return typeof e.__DOCMEDOWN_STATIC_SLUG__==`string`?{base:typeof e.__DOCMEDOWN_STATIC_BASE__==`string`?e.__DOCMEDOWN_STATIC_BASE__:``,slug:e.__DOCMEDOWN_STATIC_SLUG__}:null}function gx(e){let t=tx();e.scrollIntoView({behavior:t?`auto`:`smooth`,block:`start`}),e.classList.remove(`dmd-heading-targeted`),e.offsetWidth,e.classList.add(`dmd-heading-targeted`),setTimeout(()=>{e.classList.remove(`dmd-heading-targeted`)},1600)}function _x(){return hx()!==null}function vx(e=`README.md`){return hx()?new Cx(e):new Sx(e)}function yx(e,t){let n=e.replace(/\/+$/,``);return n?`${n}/${t}`:t}function bx(e){try{return decodeURIComponent(e).replace(/index\.html?$/i,``)}catch{return e.replace(/index\.html?$/i,``)}}function xx(e,t){let n=bx(e),r=t===`README`?`/`:`/${t}/`;return n.endsWith(r)?n.slice(0,n.length-r.length).replace(/\/+$/,``):n.replace(/[^/]*$/,`/`).replace(/\/+$/,``)}var Sx=class{listeners=new Set;defaultDoc;constructor(e=`README.md`){this.defaultDoc=e,typeof window<`u`&&window.addEventListener(`hashchange`,this.handleHashChange)}destroy(){typeof window<`u`&&window.removeEventListener(`hashchange`,this.handleHashChange),this.listeners.clear()}setDefaultDoc(e){this.defaultDoc=e}getCurrentRoute(){return typeof window>`u`?this.parseHash(``):this.parseHash(window.location.hash)}parseHash(e){let t=e.replace(/^#\/?/,``).trim(),n=``,r=t.indexOf(`#`);r!==-1&&(n=t.substring(r+1),t=t.substring(0,r)),t=t.replace(/^\/+|\/+$/g,``);let i=t;return i=!i||i===`/`||i===`index`||i===`README`?this.normalizeDocSlug(this.defaultDoc):this.normalizeDocSlug(i),{slug:i,anchor:n,fullPath:`#/${i}${n?`#${n}`:``}`}}normalizeDocSlug(e){let t=e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``);return!t||t===`index`||t===`README`?`README`:t}navigate(e,t=``){if(typeof window>`u`)return;let n=`#/${this.normalizeDocSlug(e)}${t?`#${t}`:``}`;if(window.location.hash===n){t&&this.scrollToAnchor(t);return}window.location.hash=n}scrollToAnchor(e){if(typeof document>`u`)return;let t=decodeURIComponent(e).toLowerCase().replace(/^[#]/,``),n=document.getElementById(t);n&&gx(n)}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}emitRoute(e){this.listeners.forEach(t=>t(e))}handleHashChange=()=>{let e=this.getCurrentRoute();this.emitRoute(e),e.anchor&&setTimeout(()=>{this.scrollToAnchor(e.anchor)},100)};resolveLink(e,t){if(!e)return`#/`;if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`mailto:`))return e;if(e.startsWith(`#`))return`#/${t}${e}`;let n=``,r=e.indexOf(`#`);r!==-1&&(n=e.substring(r),e=e.substring(0,r));let i=[];if(e.startsWith(`/`))i=e.replace(/^\//,``).split(`/`);else{let n=t.includes(`/`)?t.split(`/`).slice(0,-1):[],r=e.split(`/`);for(let e of[...n,...r])!e||e===`.`||(e===`..`?i.pop():i.push(e))}let a=i.join(`/`);return`#/${this.normalizeDocSlug(a)}${n}`}},Cx=class extends Sx{urlBase;constructor(e=`README.md`){super(e);let t=hx();this.urlBase=typeof window>`u`?``:xx(window.location.pathname,t?.slug??this.normalizeDocSlug(e)),typeof window<`u`&&window.addEventListener(`popstate`,this.handlePopState)}destroy(){typeof window<`u`&&window.removeEventListener(`popstate`,this.handlePopState),super.destroy()}getCurrentRoute(){return typeof window>`u`?this.parseStaticPath(`/`,``):this.parseStaticPath(window.location.pathname,window.location.hash)}parseStaticPath(e,t){let n=bx(e);if(this.urlBase){let e=`${this.urlBase}/`;n===this.urlBase?n=`/`:n.startsWith(e)&&(n=n.slice(e.length-1))}let r=n.replace(/^\/+|\/+$/g,``),i=r?this.normalizeDocSlug(r):this.normalizeDocSlug(this.defaultDoc),a=this.parseStaticAnchor(t);return{slug:i,anchor:a,fullPath:`${this.urlForSlug(i)}${a?`#${a}`:``}`}}urlForSlug(e,t=``){let n=this.normalizeDocSlug(e),r=n===`README`?`/`:`/${n}/`,i=`${this.urlBase}${r}`;return t?`${i}#${t}`:i}navigate(e,t=``){if(typeof window>`u`)return;let n=this.normalizeDocSlug(e),r=this.urlForSlug(n),i=t?`${r}#${t}`:r;if(bx(window.location.pathname)===r&&window.location.hash===(t?`#${t}`:``)){t&&this.scrollToAnchor(t);return}try{window.history.pushState({},``,i)}catch{}this.emitRoute(this.getCurrentRoute()),t&&setTimeout(()=>this.scrollToAnchor(t),100)}scrollToAnchor(e){if(typeof document>`u`)return;let t=decodeURIComponent(e).toLowerCase().replace(/^[#]/,``),n=document.getElementById(t);n&&gx(n)}resolveLink(e,t){let n=super.resolveLink(e,t);if(!n.startsWith(`#/`))return n;let r=n.slice(2),i=``,a=r.indexOf(`#`);return a!==-1&&(i=r.slice(a+1),r=r.slice(0,a)),this.urlForSlug(this.normalizeDocSlug(r),i)}parseStaticAnchor(e){let t=e.replace(/^#/,``).trim();if(t.startsWith(`/`)){let e=t.slice(1),n=e.indexOf(`#`);t=n>=0?e.slice(n+1):``}return t}handlePopState=()=>{let e=this.getCurrentRoute();this.emitRoute(e),e.anchor&&setTimeout(()=>this.scrollToAnchor(e.anchor),100)}},wx=`ENTRIES`,Tx=`KEYS`,Ex=`VALUES`,Dx=``,Ox=class{constructor(e,t){let n=e._tree,r=Array.from(n.keys());this.set=e,this._type=t,this._path=r.length>0?[{node:n,keys:r}]:[]}next(){let e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:e,keys:t}=kx(this._path);if(kx(t)===Dx)return{done:!1,value:this.result()};let n=e.get(kx(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let e=kx(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>kx(e)).filter(e=>e!==Dx).join(``)}value(){return kx(this._path).node.get(Dx)}result(){switch(this._type){case Ex:return this.value();case Tx:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},kx=e=>e[e.length-1],Ax=(e,t,n)=>{let r=new Map;if(t===void 0)return r;let i=t.length+1,a=i+n,o=new Uint8Array(a*i).fill(n+1);for(let e=0;e<i;++e)o[e]=e;for(let e=1;e<a;++e)o[e*i]=e;return jx(e,t,n,r,o,1,i,``),r},jx=(e,t,n,r,i,a,o,s)=>{let c=a*o;key:for(let l of e.keys())if(l===Dx){let t=i[c-1];t<=n&&r.set(s,[e.get(l),t])}else{let c=a;for(let e=0;e<l.length;++e,++c){let r=l[e],a=o*c,s=a-o,u=i[a],d=Math.max(0,c-n-1),f=Math.min(o-1,c+n);for(let e=d;e<f;++e){let n=r!==t[e],o=i[s+e]+ +n,c=i[s+e+1]+1,l=i[a+e]+1,d=i[a+e+1]=Math.min(o,c,l);d<u&&(u=d)}if(u>n)continue key}jx(e.get(l),t,n,r,i,c,o,s+l)}},Mx=class e{constructor(e=new Map,t=``){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(t){if(!t.startsWith(this._prefix))throw Error(`Mismatched prefix`);let[n,r]=Nx(this._tree,t.slice(this._prefix.length));if(n===void 0){let[n,i]=zx(r);for(let r of n.keys())if(r!==Dx&&r.startsWith(i)){let a=new Map;return a.set(r.slice(i.length),n.get(r)),new e(a,t)}}return new e(n,t)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Ix(this._tree,e)}entries(){return new Ox(this,wx)}forEach(e){for(let[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return Ax(this._tree,e,t)}get(e){let t=Px(this._tree,e);return t===void 0?void 0:t.get(Dx)}has(e){let t=Px(this._tree,e);return t!==void 0&&t.has(Dx)}keys(){return new Ox(this,Tx)}set(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);return this._size=void 0,Fx(this._tree,e).set(Dx,t),this}get size(){if(this._size)return this._size;this._size=0;let e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);this._size=void 0;let n=Fx(this._tree,e);return n.set(Dx,t(n.get(Dx))),this}fetch(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);this._size=void 0;let n=Fx(this._tree,e),r=n.get(Dx);return r===void 0&&n.set(Dx,r=t()),r}values(){return new Ox(this,Ex)}[Symbol.iterator](){return this.entries()}static from(t){let n=new e;for(let[e,r]of t)n.set(e,r);return n}static fromObject(t){return e.from(Object.entries(t))}},Nx=(e,t,n=[])=>{if(t.length===0||e==null)return[e,n];for(let r of e.keys())if(r!==Dx&&t.startsWith(r))return n.push([e,r]),Nx(e.get(r),t.slice(r.length),n);return n.push([e,t]),Nx(void 0,``,n)},Px=(e,t)=>{if(t.length===0||e==null)return e;for(let n of e.keys())if(n!==Dx&&t.startsWith(n))return Px(e.get(n),t.slice(n.length))},Fx=(e,t)=>{let n=t.length;outer:for(let r=0;e&&r<n;){for(let i of e.keys())if(i!==Dx&&t[r]===i[0]){let a=Math.min(n-r,i.length),o=1;for(;o<a&&t[r+o]===i[o];)++o;let s=e.get(i);if(o===i.length)e=s;else{let n=new Map;n.set(i.slice(o),s),e.set(t.slice(r,r+o),n),e.delete(i),e=n}r+=o;continue outer}let i=new Map;return e.set(t.slice(r),i),i}return e},Ix=(e,t)=>{let[n,r]=Nx(e,t);if(n!==void 0){if(n.delete(Dx),n.size===0)Lx(r);else if(n.size===1){let[e,t]=n.entries().next().value;Rx(r,e,t)}}},Lx=e=>{if(e.length===0)return;let[t,n]=zx(e);if(t.delete(n),t.size===0)Lx(e.slice(0,-1));else if(t.size===1){let[n,r]=t.entries().next().value;n!==Dx&&Rx(e.slice(0,-1),n,r)}},Rx=(e,t,n)=>{if(e.length===0)return;let[r,i]=zx(e);r.set(i+t,n),r.delete(i)},zx=e=>e[e.length-1],Bx=`or`,Vx=`and`,Hx=`and_not`,Ux=class e{constructor(e){if(e?.fields==null)throw Error(`MiniSearch: option "fields" must be provided`);let t=e.autoVacuum==null||e.autoVacuum===!0?eS:e.autoVacuum;this._options={...Yx,...e,autoVacuum:t,searchOptions:{...Xx,...e.searchOptions||{}},autoSuggestOptions:{...Zx,...e.autoSuggestOptions||{}}},this._index=new Mx,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=$x,this.addFields(this._options.fields)}add(e){let{extractField:t,stringifyField:n,tokenize:r,processTerm:i,fields:a,idField:o}=this._options,s=t(e,o);if(s==null)throw Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(s))throw Error(`MiniSearch: duplicate ID ${s}`);let c=this.addDocumentId(s);this.saveStoredFields(c,e);for(let o of a){let a=t(e,o);if(a==null)continue;let s=r(n(a,o),o),l=this._fieldIds[o],u=new Set(s).size;this.addFieldLength(c,l,this._documentCount-1,u);for(let e of s){let t=i(e,o);if(Array.isArray(t))for(let e of t)this.addTerm(l,c,e);else t&&this.addTerm(l,c,t)}}}addAll(e){for(let t of e)this.add(t)}addAllAsync(e,t={}){let{chunkSize:n=10}=t,r={chunk:[],promise:Promise.resolve()},{chunk:i,promise:a}=e.reduce(({chunk:e,promise:t},r,i)=>(e.push(r),(i+1)%n===0?{chunk:[],promise:t.then(()=>new Promise(e=>setTimeout(e,0))).then(()=>this.addAll(e))}:{chunk:e,promise:t}),r);return a.then(()=>this.addAll(i))}remove(e){let{tokenize:t,processTerm:n,extractField:r,stringifyField:i,fields:a,idField:o}=this._options,s=r(e,o);if(s==null)throw Error(`MiniSearch: document does not have ID field "${o}"`);let c=this._idToShortId.get(s);if(c==null)throw Error(`MiniSearch: cannot remove document with ID ${s}: it is not in the index`);for(let o of a){let a=r(e,o);if(a==null)continue;let s=t(i(a,o),o),l=this._fieldIds[o],u=new Set(s).size;this.removeFieldLength(c,l,this._documentCount,u);for(let e of s){let t=n(e,o);if(Array.isArray(t))for(let e of t)this.removeTerm(l,c,e);else t&&this.removeTerm(l,c,t)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(s),this._fieldLength.delete(c),--this._documentCount}removeAll(e){if(e)for(let t of e)this.remove(t);else if(arguments.length>0)throw Error(`Expected documents to be present. Omit the argument to remove all documents.`);else this._index=new Mx,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}discard(e){let t=this._idToShortId.get(e);if(t==null)throw Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((e,n)=>{this.removeFieldLength(t,n,this._documentCount,e)}),this._fieldLength.delete(t),--this._documentCount,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:r}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:r},{minDirtCount:t,minDirtFactor:e})}discardAll(e){let t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let t of e)this.discard(t)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){let{idField:t,extractField:n}=this._options,r=n(e,t);this.discard(r),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum??=this._currentVacuum.then(()=>{let t=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=$x,this.performVacuuming(e,t)}),this._enqueuedVacuum):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){let n=this._dirtCount;if(this.vacuumConditionsMet(t)){let t=e.batchSize||Qx.batchSize,r=e.batchWait||Qx.batchWait,i=1;for(let[e,n]of this._index){for(let[e,t]of n)for(let[r]of t)this._documentIds.has(r)||(t.size<=1?n.delete(e):t.delete(r));this._index.get(e).size===0&&this._index.delete(e),i%t===0&&await new Promise(e=>setTimeout(e,r)),i+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t||=eS.minDirtCount,n||=eS.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){let t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(t,n={}){let{searchOptions:r}=this._options,i={...r,...n},a=this.executeQuery(t,n),o=[];for(let[e,{score:t,terms:n,match:r}]of a){let a=n.length||1,s={id:this._documentIds.get(e),score:t*a,terms:Object.keys(r),queryTerms:n,match:r};Object.assign(s,this._storedFields.get(e)),(i.filter==null||i.filter(s))&&o.push(s)}return t===e.wildcard&&i.boostDocument==null||o.sort(rS),o}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};let n=new Map;for(let{score:r,terms:i}of this.search(e,t)){let e=i.join(` `),t=n.get(e);t==null?n.set(e,{score:r,terms:i,count:1}):(t.score+=r,t.count+=1)}let r=[];for(let[e,{score:t,terms:i,count:a}]of n)r.push({suggestion:e,terms:i,score:t/a});return r.sort(rS),r}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw Error(`MiniSearch: loadJSON should be given the same options used when serializing the index`);return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw Error(`MiniSearch: loadJSON should be given the same options used when serializing the index`);return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(Yx.hasOwnProperty(e))return Wx(Yx,e);throw Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){let{index:n,documentIds:r,fieldLength:i,storedFields:a,serializationVersion:o}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=aS(r),s._fieldLength=aS(i),s._storedFields=aS(a);for(let[e,t]of s._documentIds)s._idToShortId.set(t,e);for(let[e,t]of n){let n=new Map;for(let e of Object.keys(t)){let r=t[e];o===1&&(r=r.ds),n.set(parseInt(e,10),aS(r))}s._index.set(e,n)}return s}static async loadJSAsync(e,t){let{index:n,documentIds:r,fieldLength:i,storedFields:a,serializationVersion:o}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=await oS(r),s._fieldLength=await oS(i),s._storedFields=await oS(a);for(let[e,t]of s._documentIds)s._idToShortId.set(t,e);let c=0;for(let[e,t]of n){let n=new Map;for(let e of Object.keys(t)){let r=t[e];o===1&&(r=r.ds),n.set(parseInt(e,10),await oS(r))}++c%1e3==0&&await sS(0),s._index.set(e,n)}return s}static instantiateMiniSearch(t,n){let{documentCount:r,nextId:i,fieldIds:a,averageFieldLength:o,dirtCount:s,serializationVersion:c}=t;if(c!==1&&c!==2)throw Error(`MiniSearch: cannot deserialize an index created with an incompatible version`);let l=new e(n);return l._documentCount=r,l._nextId=i,l._idToShortId=new Map,l._fieldIds=a,l._avgFieldLength=o,l._dirtCount=s||0,l._index=new Mx,l}executeQuery(t,n={}){if(t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!=`string`){let e={...n,...t,queries:void 0},r=t.queries.map(t=>this.executeQuery(t,e));return this.combineResults(r,e.combineWith)}let{tokenize:r,processTerm:i,searchOptions:a}=this._options,o={tokenize:r,processTerm:i,...a,...n},{tokenize:s,processTerm:c}=o,l=s(t).flatMap(e=>c(e)).filter(e=>!!e).map(Jx(o)).map(e=>this.executeQuerySpec(e,o));return this.combineResults(l,o.combineWith)}executeQuerySpec(e,t){let n={...this._options.searchOptions,...t},r=(n.fields||this._options.fields).reduce((e,t)=>({...e,[t]:Wx(n.boost,t)||1}),{}),{boostDocument:i,weights:a,maxFuzzy:o,bm25:s}=n,{fuzzy:c,prefix:l}={...Xx.weights,...a},u=this._index.get(e.term),d=this.termResults(e.term,e.term,1,e.termBoost,u,r,i,s),f,p;if(e.prefix&&(f=this._index.atPrefix(e.term)),e.fuzzy){let t=e.fuzzy===!0?.2:e.fuzzy,n=t<1?Math.min(o,Math.round(e.term.length*t)):t;n&&(p=this._index.fuzzyGet(e.term,n))}if(f)for(let[t,n]of f){let a=t.length-e.term.length;if(!a)continue;p?.delete(t);let o=l*t.length/(t.length+.3*a);this.termResults(e.term,t,o,e.termBoost,n,r,i,s,d)}if(p)for(let t of p.keys()){let[n,a]=p.get(t);if(!a)continue;let o=c*t.length/(t.length+a);this.termResults(e.term,t,o,e.termBoost,n,r,i,s,d)}return d}executeWildcardQuery(e){let t=new Map,n={...this._options.searchOptions,...e};for(let[e,r]of this._documentIds){let i=n.boostDocument?n.boostDocument(r,``,this._storedFields.get(e)):1;t.set(e,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Bx){if(e.length===0)return new Map;let n=Gx[t.toLowerCase()];if(!n)throw Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){let e=[];for(let[t,n]of this._index){let r={};for(let[e,t]of n)r[e]=Object.fromEntries(t);e.push([t,r])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,n,r,i,a,o,s,c=new Map){if(i==null)return c;for(let l of Object.keys(a)){let u=a[l],d=this._fieldIds[l],f=i.get(d);if(f==null)continue;let p=f.size,m=this._avgFieldLength[d];for(let i of f.keys()){if(!this._documentIds.has(i)){this.removeTerm(d,i,t),--p;continue}let a=o?o(this._documentIds.get(i),t,this._storedFields.get(i)):1;if(!a)continue;let h=f.get(i),g=this._fieldLength.get(i)[d],_=qx(h,p,this._documentCount,g,m,s),v=n*r*u*a*_,y=c.get(i);if(y){y.score+=v,tS(y.terms,e);let n=Wx(y.match,t);n?n.push(l):y.match[t]=[l]}else c.set(i,{score:v,terms:[e],match:{[t]:[l]}})}}return c}addTerm(e,t,n){let r=this._index.fetch(n,iS),i=r.get(e);if(i==null)i=new Map,i.set(t,1),r.set(e,i);else{let e=i.get(t);i.set(t,(e||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}let r=this._index.fetch(n,iS),i=r.get(e);i==null||i.get(t)==null?this.warnDocumentChanged(t,e,n):i.get(t)<=1?i.size<=1?r.delete(e):i.delete(t):i.set(t,i.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(let r of Object.keys(this._fieldIds))if(this._fieldIds[r]===t){this._options.logger(`warn`,`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${r}". Removing a document after it has changed can corrupt the index!`,`version_conflict`);return}}addDocumentId(e){let t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,n,r){let i=this._fieldLength.get(e);i??this._fieldLength.set(e,i=[]),i[t]=r;let a=(this._avgFieldLength[t]||0)*n+r;this._avgFieldLength[t]=a/(n+1)}removeFieldLength(e,t,n,r){if(n===1){this._avgFieldLength[t]=0;return}let i=this._avgFieldLength[t]*n-r;this._avgFieldLength[t]=i/(n-1)}saveStoredFields(e,t){let{storeFields:n,extractField:r}=this._options;if(n==null||n.length===0)return;let i=this._storedFields.get(e);i??this._storedFields.set(e,i={});for(let e of n){let n=r(t,e);n!==void 0&&(i[e]=n)}}};Ux.wildcard=Symbol(`*`);var Wx=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,Gx={[Bx]:(e,t)=>{for(let n of t.keys()){let r=e.get(n);if(r==null)e.set(n,t.get(n));else{let{score:e,terms:i,match:a}=t.get(n);r.score+=e,r.match=Object.assign(r.match,a),nS(r.terms,i)}}return e},[Vx]:(e,t)=>{let n=new Map;for(let r of t.keys()){let i=e.get(r);if(i==null)continue;let{score:a,terms:o,match:s}=t.get(r);nS(i.terms,o),n.set(r,{score:i.score+a,terms:i.terms,match:Object.assign(i.match,s)})}return n},[Hx]:(e,t)=>{for(let n of t.keys())e.delete(n);return e}},Kx={k:1.2,b:.7,d:.5},qx=(e,t,n,r,i,a)=>{let{k:o,b:s,d:c}=a;return Math.log(1+(n-t+.5)/(t+.5))*(c+e*(o+1)/(e+o*(1-s+s*r/i)))},Jx=e=>(t,n,r)=>({term:t,fuzzy:typeof e.fuzzy==`function`?e.fuzzy(t,n,r):e.fuzzy||!1,prefix:typeof e.prefix==`function`?e.prefix(t,n,r):e.prefix===!0,termBoost:typeof e.boostTerm==`function`?e.boostTerm(t,n,r):1}),Yx={idField:`id`,extractField:(e,t)=>e[t],stringifyField:(e,t)=>e.toString(),tokenize:e=>e.split(cS),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof(console==null?void 0:console[e])==`function`&&console[e](t)},autoVacuum:!0},Xx={combineWith:Bx,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Kx},Zx={combineWith:Vx,prefix:(e,t,n)=>t===n.length-1},Qx={batchSize:1e3,batchWait:10},$x={minDirtFactor:.1,minDirtCount:20},eS={...Qx,...$x},tS=(e,t)=>{e.includes(t)||e.push(t)},nS=(e,t)=>{for(let n of t)e.includes(n)||e.push(n)},rS=({score:e},{score:t})=>t-e,iS=()=>new Map,aS=e=>{let t=new Map;for(let n of Object.keys(e))t.set(parseInt(n,10),e[n]);return t},oS=async e=>{let t=new Map,n=0;for(let r of Object.keys(e))t.set(parseInt(r,10),e[r]),++n%1e3==0&&await sS(0);return t},sS=e=>new Promise(t=>setTimeout(t,e)),cS=/[\n\r\p{Z}\p{P}]+/u,lS=class{miniSearch;indexedDocs=new Map;constructor(){this.miniSearch=new Ux({fields:[`title`,`category`,`headingsText`,`content`],storeFields:[`title`,`slug`,`category`,`headingsText`,`snippet`],searchOptions:{boost:{title:3,headingsText:2,category:1.5,content:1},fuzzy:.2,prefix:!0}})}addDoc(e){if(this.indexedDocs.has(e.slug))return;this.indexedDocs.set(e.slug,e);let t=(e.headings||[]).map(e=>e.text).join(` `),n=(e.content||``).substring(0,160).replace(/[#*`_>]/g,``).trim();try{this.miniSearch.add({id:e.slug,slug:e.slug,title:e.title,category:e.category||``,headingsText:t,content:e.content||``,snippet:n})}catch{}}addDocs(e){for(let t of e)this.addDoc(t)}search(e,t=10){let n=e.trim();if(!n)return[];try{return this.miniSearch.search(n).slice(0,t).map(e=>({id:e.id,slug:e.slug||e.id,title:e.title||`Untitled`,category:e.category,snippet:e.snippet,score:e.score}))}catch(e){return console.warn(`[DocMeDown] Search error:`,e),[]}}};function uS(e){let t=globalThis.requestIdleCallback;typeof t==`function`?t(e,{timeout:2e3}):window.setTimeout(e,1)}var Q=new class{#e=E(null);get config(){return M(this.#e)}set config(e){D(this.#e,e,!0)}#t=E(``);get currentSlug(){return M(this.#t)}set currentSlug(e){D(this.#t,e,!0)}#n=E(null);get currentDoc(){return M(this.#n)}set currentDoc(e){D(this.#n,e,!0)}#r=E($r([]));get tree(){return M(this.#r)}set tree(e){D(this.#r,e,!0)}#i=E(!0);get isLoading(){return M(this.#i)}set isLoading(e){D(this.#i,e,!0)}#a=E(!1);get isNavigating(){return M(this.#a)}set isNavigating(e){D(this.#a,e,!0)}#o=E(null);get error(){return M(this.#o)}set error(e){D(this.#o,e,!0)}#s=E(!1);get isSearchOpen(){return M(this.#s)}set isSearchOpen(e){D(this.#s,e,!0)}#c=E(!1);get isMobileSidebarOpen(){return M(this.#c)}set isMobileSidebarOpen(e){D(this.#c,e,!0)}#l=E(!1);get isEditorOpen(){return M(this.#l)}set isEditorOpen(e){D(this.#l,e,!0)}#u=E(`production`);get serverMode(){return M(this.#u)}set serverMode(e){D(this.#u,e,!0)}#d=E(!1);get hasPreviewChanges(){return M(this.#d)}set hasPreviewChanges(e){D(this.#d,e,!0)}#f=E(!1);get isScrolled(){return M(this.#f)}set isScrolled(e){D(this.#f,e,!0)}#p=E(null);get activeTagModal(){return M(this.#p)}set activeTagModal(e){D(this.#p,e,!0)}#m=E($r([]));get allDocs(){return M(this.#m)}set allDocs(e){D(this.#m,e,!0)}openTagModal(e){this.activeTagModal=e.replace(/^#/,``).trim()}closeTagModal(){this.activeTagModal=null}getDocsWithTag(e){let t=e.replace(/^#/,``).toLowerCase().trim();return t?this.allDocs.filter(e=>e.frontmatter?.tags?.some(e=>e.toLowerCase().trim()===t)):[]}getAllTags(){let e=new Map;for(let t of this.allDocs)if(Array.isArray(t.frontmatter?.tags))for(let n of t.frontmatter.tags){let t=n.toLowerCase().trim();t&&e.set(t,(e.get(t)||0)+1)}return Array.from(e.entries()).map(([e,t])=>({tag:e,count:t})).sort((e,t)=>t.count-e.count)}getPossiblePaths(e,t){let n=[],r=new Set,i=(e,t,i,a)=>{r.has(e)||(r.add(e),n.push({slug:e,title:t,category:i,readingTimeMinutes:a}))};if(e===0){for(let e of this.allDocs)i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)i(e.slug,e.title);return n}let a=this.currentSlug.split(`/`).filter(Boolean),o=a.slice(0,e).join(`/`);if(o){for(let e of this.allDocs)(e.slug.startsWith(`${o}/`)||e.slug===o)&&i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)(e.slug.startsWith(`${o}/`)||e.slug===o)&&i(e.slug,e.title)}if(n.length<=1){let t=a.slice(0,Math.max(0,e-1)).join(`/`);if(t){for(let e of this.allDocs)(e.slug.startsWith(`${t}/`)||e.slug===t)&&i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)(e.slug.startsWith(`${t}/`)||e.slug===t)&&i(e.slug,e.title)}else{for(let e of this.allDocs)e.slug.includes(`/`)||i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)e.slug.includes(`/`)||i(e.slug,e.title);if(n.length<=1){for(let e of this.allDocs)i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)i(e.slug,e.title)}}}return n}#h=E(null);get originalHome(){return M(this.#h)}set originalHome(e){D(this.#h,e,!0)}#g=E($r([]));get docPaths(){return M(this.#g)}set docPaths(e){D(this.#g,e,!0)}basePath=``;router=null;searchIndex=new lS;localLoader=new xu;remoteGithub=null;remoteGitlab=null;unsubscribeRouter=null;homeCancelled=!1;epoch=0;parseCacheLimit=50;parseCache=new Map;remoteCache=new Map;#_=lr(()=>{let e=[],t=n=>{for(let r of n)!r.isCategory&&r.slug&&e.push({slug:r.slug,title:r.title}),r.children&&t(r.children)};return t(this.tree),e});get flatDocs(){return M(this.#_)}set flatDocs(e){D(this.#_,e)}#v=lr(()=>{let e=this.flatDocs.findIndex(e=>e.slug===this.currentSlug);return e<=0?null:this.flatDocs[e-1]});get prevDoc(){return M(this.#v)}set prevDoc(e){D(this.#v,e)}#y=lr(()=>{let e=this.flatDocs.findIndex(e=>e.slug===this.currentSlug);return e===-1||e>=this.flatDocs.length-1?null:this.flatDocs[e+1]});get nextDoc(){return M(this.#y)}set nextDoc(e){D(this.#y,e)}#b=lr(()=>this.originalHome??(this.config?hu(this.docPaths,this.config):null));get home(){return M(this.#b)}set home(e){D(this.#b,e)}navigate(e,t=``){this.router?.navigate(e,t)}destroy(){this.unsubscribeRouter?.(),this.unsubscribeRouter=null,this.router?.destroy(),this.router=null,this.homeCancelled=!0}async init(e,t=``){let n=++this.epoch;this.destroy(),this.config=e,this.basePath=t,this.currentDoc=null,this.tree=[],this.isLoading=!0,this.isNavigating=!1,this.error=null,this.isSearchOpen=!1,this.isMobileSidebarOpen=!1,this.originalHome=null,this.docPaths=[],this.homeCancelled=!1,this.parseCache.clear(),this.parseCacheLimit=50,this.remoteCache.clear(),this.remoteGithub=e.source?.type===`github`?new Su(e.source):null,this.remoteGitlab=e.source?.type===`gitlab`?new Cu(e.source):null,this.router=vx(e.rootDoc||`README.md`);let r=this.router.getCurrentRoute();this.currentSlug=r.slug,this.unsubscribeRouter=this.router.subscribe(e=>{if(n!==this.epoch)return;let t=e.slug!==this.currentSlug;this.currentSlug=e.slug,this.isMobileSidebarOpen=!1,t||!this.currentDoc?this.renderDocNow(e.slug,n)||this.loadDoc(e.slug,n):e.anchor&&setTimeout(()=>this.router?.scrollToAnchor(e.anchor),100)}),this.renderDocNow(r.slug,n)||await this.loadDoc(r.slug,n),typeof window<`u`&&(window.__DOCMEDOWN_STORE__=this),this.initTree(n),this.initHome(n),this.warmParseCache(n)}async initTree(e){let t=this.config?.sidebar;try{let n=await this.localLoader.fetchManifest(this.basePath);if(e!==this.epoch)return;if(n&&!this.remoteGithub&&!this.remoteGitlab){n.config&&(this.config={...this.config,...n.config}),n.tree&&(this.tree=n.tree),n.docs&&(this.allDocs=n.docs,this.searchIndex.addDocs(n.docs),this.docPaths=n.docs.map(e=>({slug:e.slug,path:e.path})));return}if(this.remoteGithub){let n=await this.remoteGithub.discoverFiles();if(e!==this.epoch)return;this.tree=vu(n,{},t),this.docPaths=n.map(e=>({path:e}));return}if(this.remoteGitlab){let n=await this.remoteGitlab.discoverFiles();if(e!==this.epoch)return;this.tree=vu(n,{},t),this.docPaths=n.map(e=>({path:e}));return}this.tree=vu([`README.md`],{},t),this.docPaths=[{path:`README.md`}]}catch{if(e!==this.epoch)return;this.tree=vu([`README.md`],{},t),this.docPaths=[{path:`README.md`}]}}parseMarkdownCached(e,t){let n=this.parseCache.get(t);if(n&&n.source===e)return this.parseCache.delete(t),this.parseCache.set(t,n),n.parsed;let r=tb(e,t);if(this.parseCache.set(t,{source:e,parsed:r}),this.parseCache.size>this.parseCacheLimit){let e=this.parseCache.keys().next().value;e!==void 0&&this.parseCache.delete(e)}return r}renderDoc(e,t){let n=this.parseMarkdownCached(e,t),r=n.frontmatter.title||n.headings[0]?.text||t;this.currentDoc={...n,slug:t,title:r,rawContent:e},this.error=null,this.isLoading=!1,this.isNavigating=!1,this.searchIndex.addDoc({slug:t,path:`${t}.md`,title:r,frontmatter:n.frontmatter,headings:n.headings,content:e}),this.allDocs.some(e=>e.slug===t)||this.allDocs.push({slug:t,path:`${t}.md`,title:r,frontmatter:n.frontmatter,headings:n.headings,readingTimeMinutes:n.readingTimeMinutes}),this.resetScroll()}toggleEditor(e){this.isEditorOpen=e===void 0?!this.isEditorOpen:e}updateDocContent(e,t=this.currentSlug,n=!1){if(this.localLoader.setDocContent(t,e),this.parseCache.delete(t),this.currentSlug===t){let r=tb(e,t),i=r.frontmatter.title||r.headings[0]?.text||t;this.currentDoc={...r,slug:t,title:i,rawContent:e},this.searchIndex.addDoc({slug:t,path:`${t}.md`,title:i,frontmatter:r.frontmatter,headings:r.headings,content:e}),n&&this.resetScroll()}}applyHmrUpdate(e,t){this.updateDocContent(t,e,!1),typeof console<`u`&&console.log(`[DocMeDown HMR] In-place update applied for ${e}`)}updateConfig(e){this.config&&={...this.config,...e}}resetScroll(){let e=this.router?.getCurrentRoute();e?.anchor?setTimeout(()=>this.router?.scrollToAnchor(e.anchor),100):typeof window<`u`&&window.scrollTo({top:0,behavior:`instant`})}renderDocNow(e,t){if(t!==this.epoch)return!0;let n=this.remoteCache.get(e);if(n!==void 0)return this.renderDoc(n,e),!0;if(this.remoteGithub||this.remoteGitlab)return!1;let r=this.localLoader.peekDocContent(e);return r!==void 0&&(this.renderDoc(r,e),!0)}async loadDoc(e,t){this.currentDoc?this.isNavigating=!0:this.isLoading=!0,this.error=null;try{let n=null;if(n=this.remoteGithub?await this.remoteGithub.fetchDocContent(e):this.remoteGitlab?await this.remoteGitlab.fetchDocContent(e):await this.localLoader.fetchDocContent(e,this.basePath),t!==this.epoch)return;if(n!==null)this.remoteCache.set(e,n),this.renderDoc(n,e);else{let t=this.remoteGithub?`GitHub`:this.remoteGitlab?`GitLab`:`this documentation site`;this.error=`Could not load “${e}” from ${t}.`,this.isLoading=!1,this.isNavigating=!1}}catch{if(t!==this.epoch)return;this.error=`The document source did not respond. Check the connection or try again.`,this.isLoading=!1,this.isNavigating=!1}}warmParseCache(e){if(this.remoteGithub||this.remoteGitlab||typeof window>`u`)return;let t=this.localLoader.embeddedDocSources();if(!t)return;let n=Object.entries(t);if(n.length<2)return;this.parseCacheLimit=Math.min(Math.max(n.length,50),200);let r=0,i=()=>{if(e!==this.epoch)return;let t=performance.now()+6;for(;r<n.length&&performance.now()<t;){let[e,t]=n[r++];this.parseMarkdownCached(t,e)}r<n.length&&uS(i)};uS(i)}initHome(e){this.config?.home||this.remoteGithub||this.remoteGitlab||typeof window>`u`||(window.location.protocol===`http:`||window.location.protocol===`https:`)&&gu(e=>fetch(e)).then(t=>{e===this.epoch&&!this.homeCancelled&&t&&(this.originalHome=t)}).catch(()=>void 0)}},dS=P(`<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg> <span>Docs</span>`,1),fS=P(`<span> </span>`),pS=P(`<span class="dmd-crumb-arrow" aria-hidden="true">▾</span>`),mS=P(`<span class="dmd-crumb-item-badge">Active</span>`),hS=P(`<span class="dmd-crumb-item-meta"> </span>`),gS=P(`<button type="button" role="menuitem"><span class="dmd-crumb-item-dot" aria-hidden="true"><!></span> <div class="dmd-crumb-item-info"><span class="dmd-crumb-item-title"> </span> <span class="dmd-crumb-item-slug"> </span></div> <!></button>`),_S=P(`<div class="dmd-crumb-popover" role="menu"><div class="dmd-crumb-popover-header"><span class="dmd-crumb-popover-scope"><!></span> <span class="dmd-crumb-popover-count"> </span></div> <div class="dmd-crumb-popover-list"></div></div>`),vS=P(`<div class="dmd-crumb-wrapper" role="none"><button type="button"><!> <!></button> <!></div>`);function yS(e,t){un(t,!0);let n=z(t,`isHome`,3,!1),r=z(t,`isLast`,3,!1),i=z(t,`isScrolled`,3,!1),a=E(!1),o,s,c=E(null),l=lr(()=>Q.getPossiblePaths(t.index,t.label));function u(){clearTimeout(o),M(l).length>0&&(s=setTimeout(()=>{D(a,!0)},140))}function d(){clearTimeout(s),o=setTimeout(()=>{D(a,!1)},200)}function f(e){let i=e.target;if(i.classList.contains(`dmd-crumb-arrow`)||i.closest(`.dmd-crumb-arrow`)){e.stopPropagation(),e.preventDefault(),M(l).length>0&&D(a,!M(a));return}if(n())Q.home?.kind===`href`&&Q.home.href?window.location.href=Q.home.href:Q.home?.kind===`route`&&Q.home.slug?Q.navigate(Q.home.slug):Q.navigate(`README`),D(a,!1);else if(r())M(l).length>0&&D(a,!M(a));else{let e=Q.currentSlug.split(`/`).filter(Boolean).slice(0,t.index).join(`/`);e&&Q.navigate(e),D(a,!1)}}function p(e){e.key===`Escape`?D(a,!1):e.key===`ArrowDown`&&!M(a)&&M(l).length>0&&(e.preventDefault(),D(a,!0))}Oi(()=>{if(!M(a))return;let e=e=>{M(c)&&!M(c).contains(e.target)&&D(a,!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)});var m=vS(),h=O(m);let g;var _=O(h),v=e=>{var t=dS();it(2),F(e,t)},y=e=>{var n=fS(),r=k(n,!0);j(e=>I(r,e),[()=>t.label.replace(/[-_]/g,` `)]),F(e,n)};L(_,e=>{n()?e(v):e(y,-1)});var b=A(_,2),x=e=>{F(e,pS())};L(b,e=>{M(l).length>1&&e(x)}),w(h);var S=A(h,2),ee=e=>{var i=_S(),o=O(i),s=O(o),c=O(s),u=e=>{F(e,jo(`Docs Overview`))},d=e=>{var n=jo();j(e=>I(n,`Related in ${e??``}`),[()=>t.label.replace(/[-_]/g,` `)]),F(e,n)},f=e=>{var n=jo();j(e=>I(n,`Section: ${e??``}`),[()=>t.label.replace(/[-_]/g,` `)]),F(e,n)};L(c,e=>{n()?e(u):r()?e(d,1):e(f,-1)}),w(s);var p=k(A(s,2));w(o);var m=A(o,2);ps(m,21,()=>M(l),e=>e.slug,(e,t)=>{var n=gS();let r;var i=O(n),o=O(i),s=e=>{F(e,jo(`●`))},c=e=>{F(e,jo(`○`))};L(o,e=>{M(t).slug===Q.currentSlug?e(s):e(c,-1)}),w(i);var l=A(i,2),u=O(l),d=k(u,!0),f=k(A(u,2),!0);w(l);var p=A(l,2),m=e=>{F(e,mS())},h=e=>{var n=hS(),r=k(n);j(()=>I(r,`${M(t).readingTimeMinutes??``}m`)),F(e,n)};L(p,e=>{M(t).slug===Q.currentSlug?e(m):M(t).readingTimeMinutes&&e(h,1)}),w(n),j(()=>{r=sc(n,1,`dmd-crumb-popover-item`,null,r,{selected:M(t).slug===Q.currentSlug}),I(d,M(t).title),I(f,M(t).slug)}),N(`click`,n,()=>{D(a,!1),Q.navigate(M(t).slug)}),F(e,n)}),w(m),w(i),j(()=>{R(i,`aria-label`,`Sections under ${t.label??``}`),I(p,`${M(l).length??``} ${M(l).length===1?`page`:`pages`}`)}),F(e,i)};L(S,e=>{M(a)&&M(l).length>0&&e(ee)}),w(m),yl(m,e=>D(c,e),()=>M(c)),j(()=>{g=sc(h,1,`dmd-nav-crumb dmd-crumb`,null,g,{current:r(),"has-paths":M(l).length>0,open:M(a)}),R(h,`aria-expanded`,M(a)),R(h,`aria-haspopup`,M(l).length>0?`menu`:void 0),R(h,`tabindex`,i()?0:-1),R(h,`title`,n()?`Documentation home`:t.label)}),fo(`mouseenter`,m,u),fo(`mouseleave`,m,d),N(`keydown`,m,p),N(`click`,h,f),F(e,m),dn()}po([`keydown`,`click`]);var bS=[`default`,`markdown`,`terminal`,`book`,`minimal`],xS={default:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#4f46e5"/><stop offset="100%" stop-color="#7c3aed"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-bg)"/><path d="M9 5h8.5l6.5 6.5V25a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z" fill="#ffffff" fill-opacity="0.16" stroke="#ffffff" stroke-width="1.8" stroke-linejoin="round"/><path d="M17.5 5v5a1.5 1.5 0 0 0 1.5 1.5h5" stroke="#ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" fill="none"/><path d="M16 12.5v9.5m-3.5-3.5 3.5 3.5 3.5-3.5" stroke="#ffffff" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,markdown:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-md" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#1e293b"/><stop offset="100%" stop-color="#0f172a"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-md)" stroke="#38bdf8" stroke-width="1.2" stroke-opacity="0.35"/><path d="M6.5 21V11h3l3 4.5 3-4.5h3v10" fill="none" stroke="#f8fafc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22.5 11v10m-3-3 3 3 3-3" fill="none" stroke="#38bdf8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,terminal:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-term" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#0f172a"/><stop offset="100%" stop-color="#020617"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-term)" stroke="#10b981" stroke-width="1.2" stroke-opacity="0.4"/><circle cx="8" cy="8" r="1.5" fill="#ef4444" opacity="0.85"/><circle cx="12.5" cy="8" r="1.5" fill="#f59e0b" opacity="0.85"/><circle cx="17" cy="8" r="1.5" fill="#10b981" opacity="0.85"/><path d="M8.5 15.5l5 4-5 4" fill="none" stroke="#10b981" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/><line x1="16.5" y1="23.5" x2="23.5" y2="23.5" stroke="#38bdf8" stroke-width="2.2" stroke-linecap="round"/></svg>`,book:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-book" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#2563eb"/><stop offset="100%" stop-color="#1d4ed8"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-book)"/><path d="M16 11.5c-2.8-1.8-6.5-1.8-9.5 0v11c3-1.4 6.7-1.4 9.5 0m0-11c2.8-1.8 6.5-1.8 9.5 0v11c-3-1.4-6.7-1.4-9.5 0M16 11.5v11" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 7.5v2.5" stroke="#93c5fd" stroke-width="2" stroke-linecap="round"/></svg>`,minimal:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-min-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#18181b"/><stop offset="100%" stop-color="#09090b"/></linearGradient><linearGradient id="dmd-fav-min-accent" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#38bdf8"/><stop offset="100%" stop-color="#818cf8"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-min-bg)" stroke="#27272a" stroke-width="1.2"/><polygon points="16,6 25,11.2 25,20.8 16,26 7,20.8 7,11.2" fill="none" stroke="url(#dmd-fav-min-accent)" stroke-width="2" stroke-linejoin="round"/><circle cx="16" cy="16" r="3.5" fill="url(#dmd-fav-min-accent)"/></svg>`};function SS(e){let t=e.replace(/\s+/g,` `).trim();return typeof Buffer<`u`?`data:image/svg+xml;base64,${Buffer.from(t,`utf-8`).toString(`base64`)}`:typeof btoa<`u`?`data:image/svg+xml;base64,${btoa(t)}`:`data:image/svg+xml;utf8,${encodeURIComponent(t)}`}var CS={default:SS(xS.default),markdown:SS(xS.markdown),terminal:SS(xS.terminal),book:SS(xS.book),minimal:SS(xS.minimal)},wS=CS.default;function TS(e){return typeof e==`string`&&bS.includes(e)}function ES(e){if(!e||e===`data:,`)return wS;let t=e.trim();return TS(t)?CS[t]:t}var DS=`dmd-splash`,OS=`dmd-splash-hidden`,kS=`dmd-splash-active`,AS=`__DOCMEDOWN_SPLASH_START__`;function jS(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}var MS=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;function NS(e){let t=e?.trim();return t&&MS.test(t)?t:void 0}function PS(e){let t=e?.trim();if(!t||t.length>512||/[<>"'`]/.test(t))return;let n=t.toLowerCase();if(!(n.startsWith(`javascript:`)||n.startsWith(`data:text/html`)||n.startsWith(`vbscript:`))&&(/^(https?:\/\/|data:image\/|\.\.?\/|#|\/[^/]|[^:/?#]+\/)/i.test(t)||/^[^:/?#\s]+\.[a-z0-9]+/i.test(t)||/^[\w\-.]+$/i.test(t)))return t}function FS(e,t){let n=NS(e),r=NS(t),i=[];return n&&i.push(`:root{--dmd-splash-accent:${n}}`),(n||r)&&i.push(`:root[data-theme=dark]{--dmd-splash-accent:${r??n}}`),i.length>0?`<style>${i.join(``)}</style>`:``}var IS=`<style>
|
|
375
|
+
`},l.code=({text:e,lang:t})=>Qf(e,t||``),l.table=e=>wf({header:e.header.map((t,n)=>({html:Vd.parseInline(t.text||``),align:t.align||e.align?.[n]||null})),rows:e.rows.map(t=>t.map((t,n)=>({html:Vd.parseInline(t.text||``),align:t.align||e.align?.[n]||null})))}),l.link=({href:e,title:n,text:r})=>{let i=e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`mailto:`),a=e;if(!i){if(/\.html(?:#.*)?$/i.test(e))return`<a href="${e}"${n?` title="${n}"`:``} class="dmd-link">${r}</a>`;if(e.startsWith(`#`))a=`#/${t}${e}`;else{let n=e.replace(/\.(md|mdx)$/i,``);if(n.startsWith(`./`)){let e=t.includes(`/`)?t.substring(0,t.lastIndexOf(`/`)):``;n=e?`${e}/${n.replace(/^\.\//,``)}`:n.replace(/^\.\//,``)}else if(!n.startsWith(`/`)){let e=t.includes(`/`)?t.substring(0,t.lastIndexOf(`/`)):``;n=e?`${e}/${n}`:n}a=`#/${n.replace(/^\//,``)}`}}let o=n?` title="${n}"`:``;return`<a href="${a}"${o}${i?` target="_blank" rel="noopener noreferrer"`:``} class="dmd-link">${r}${i?`<svg class="dmd-ext-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>`:``}</a>`},{frontmatter:n,html:Cp(vp(hp(Vd.parse(a,{renderer:l,gfm:!0,breaks:!1}),o.fences))),headings:s,readingTimeMinutes:i}}var rb={};function ib(e){let t;return()=>(t===void 0&&(t=e()),t)}var ab=e=>e,ob=e=>e*1e3,sb=e=>e/1e3,cb=e=>Array.isArray(e)&&typeof e[0]==`number`,lb=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ub(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var db=40;function fb(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=lb.reduce((e,t)=>(e[t]=ub(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=rb.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,db),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:lb.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<lb.length;t++)o[lb[t]].cancel(e)},state:i,steps:o}}var{schedule:pb,cancel:mb,state:hb,steps:gb}=fb(typeof requestAnimationFrame<`u`?requestAnimationFrame:ab,!0),_b;function vb(){_b=void 0}var yb={now:()=>(_b===void 0&&yb.set(hb.isProcessing||rb.useManualTiming?hb.timestamp:performance.now()),_b),set:e=>{_b=e,queueMicrotask(vb)}},bb=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},xb=e=>e!==null;function Sb(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(xb),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}function Cb(e,t){return{kind:e,animation:t,timestamp:yb.now(),frameTimestamp:hb.timestamp,frameIsProcessing:hb.isProcessing}}function wb(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Cb(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}var Tb=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}};function Eb(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Db=e=>e.startsWith(`--`);function Ob(e,t,n){Db(t)?e.style.setProperty(t,n):e.style[t]=n}var kb={};function Ab(e,t){let n=ib(e);return()=>kb[t]??n()}var jb=Ab(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Mb=Ab(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Nb=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Pb={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Nb([0,.65,.55,1]),circOut:Nb([.55,0,1,.45]),backIn:Nb([.31,.01,.66,-.59]),backOut:Nb([.33,1.53,.69,.99])};function Fb(e,t){if(e)return typeof e==`function`?Mb()?bb(e,t):`ease-out`:cb(e)?Nb(e):Array.isArray(e)?e.map(e=>Fb(e,t)||Pb.easeOut):Pb[e]}function Ib(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Fb(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Lb(e){return typeof e==`function`&&`applyToOptions`in e}function Rb({type:e,...t}){return Lb(e)&&Mb()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var zb=class extends Tb{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Rb(e);this.animation=Ib(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Sb(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Ob(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},wb(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return sb(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+sb(e)}get time(){return sb(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ob(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&jb()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),ab):r(this)}},Bb=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Vb(this.animations,`duration`)}get iterationDuration(){return Vb(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function Vb(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Hb=class extends Bb{then(e,t){return this.finished.finally(e).then(()=>{})}},Ub=new WeakMap,Wb=(e,t=``)=>`${e}:${t}`;function Gb(e){let t=Ub.get(e);return t||(t=new Map,Ub.set(e,t)),t}function Kb(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function qb(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Kb(n,e)}var Jb=new Set(`borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.width.maxWidth.height.maxHeight.top.right.bottom.left.inset.insetBlock.insetBlockStart.insetBlockEnd.insetInline.insetInlineStart.insetInlineEnd.padding.paddingTop.paddingRight.paddingBottom.paddingLeft.paddingBlock.paddingBlockStart.paddingBlockEnd.paddingInline.paddingInlineStart.paddingInlineEnd.margin.marginTop.marginRight.marginBottom.marginLeft.marginBlock.marginBlockStart.marginBlockEnd.marginInline.marginInlineStart.marginInlineEnd.fontSize.backgroundPositionX.backgroundPositionY`.split(`.`));function Yb(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&Jb.has(t)&&(e[n]=e[n]+`px`)}function Xb(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Zb(e,t){let n=window.getComputedStyle(e);return Db(t)?n.getPropertyValue(t):n[t]}function Qb(e,t,n,r){if(e==null)return[];let i=Xb(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...qb(s,e)};i.duration&&=ob(i.duration),i.delay&&=ob(i.delay);let a=Gb(r),c=Wb(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=Zb(r,i)),Eb(t),Yb(t,i),!a&&t.length<2&&t.unshift(Zb(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new zb(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var $b=(e=>{function t(t,n,r){return new Hb(Qb(t,n,r,e))}return t})(),ex=e.n({animate:()=>ix,animateRaw:()=>$b,collapse:()=>lx,expand:()=>cx,fade:()=>dx,getMotionOptions:()=>rx,isDOMElement:()=>tx,motion:()=>ux,prefersReducedMotion:()=>nx,scale:()=>px,slide:()=>fx,smoothScroll:()=>ox,stagger:()=>hx,useMotion:()=>mx});function tx(e){return typeof window>`u`||!e?!1:window.Element!==void 0&&e instanceof window.Element}function nx(){if(typeof window>`u`)return!1;let e=document.documentElement?.getAttribute(`data-dmd-motion`);if(e===`reduced`||e===`off`)return!0;if(e===`full`||e===`on`)return!1;try{let e=window.localStorage.getItem(`dmd-motion`);if(e===`reduced`||e===`off`)return!0;if(e===`full`||e===`on`)return!1}catch{}return window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1}function rx(e){return nx()?{...e,duration:0,delay:0}:e}function ix(e,t,n={}){if(!tx(e)){if(e&&typeof e==`object`&&`style`in e&&e.style)for(let[n,r]of Object.entries(t)){let t=Array.isArray(r)?r[r.length-1]:r;try{e.style[n]=String(t)}catch{}}let n=Promise.resolve();return n.stop=()=>{},n}return nx()&&(n={...n,duration:0,delay:0}),$b(e,t,n)}var ax=new WeakMap;function ox(e,t,n={}){ax.get(e)?.stop();let r=n.direction!==`y`,i=r?e.scrollLeft:e.scrollTop,a=t-i;if(Math.abs(a)<1||(n.duration??400)<=0||nx()||typeof requestAnimationFrame>`u`)return r?e.scrollLeft=t:e.scrollTop=t,n.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let o=n.duration??400,s=n.easing??(e=>1-(1-e)**3),c=null,l=0,u=!1,d,f=new Promise(e=>{d=e}),p=e.style.scrollSnapType;e.style.scrollSnapType=`none`;let m=()=>{e.style.scrollSnapType=p,e.removeEventListener(`wheel`,h),e.removeEventListener(`touchstart`,h),e.removeEventListener(`pointerdown`,h),e.removeEventListener(`keydown`,h)},h=()=>{u||(u=!0,l&&cancelAnimationFrame(l),m(),ax.delete(e),d())},g=f=>{if(u)return;c===null&&(c=f);let p=f-c,h=Math.min(1,p/o),_=s(h),v=i+a*_;r?e.scrollLeft=v:e.scrollTop=v,h<1?l=requestAnimationFrame(g):(u=!0,r?e.scrollLeft=t:e.scrollTop=t,m(),ax.delete(e),n.onComplete?.(),d())};return ax.set(e,{stop:h}),e.addEventListener(`wheel`,h,{passive:!0}),e.addEventListener(`touchstart`,h,{passive:!0}),e.addEventListener(`pointerdown`,h,{passive:!0}),e.addEventListener(`keydown`,h),l=requestAnimationFrame(g),{stop:h,finished:f}}var sx=new WeakMap;function cx(e,t={}){if(sx.get(e)?.stop(),!tx(e)||nx())return e?.style&&(e.style.height=`auto`,e.style.opacity=`1`,e.style.overflow=`visible`),t.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let n=e.offsetHeight;e.style.display=`block`,e.style.height=`auto`;let r=e.scrollHeight,i=n>0&&n<r?n:0;e.style.height=`${i}px`,e.style.opacity=n>0?String(Math.min(1,n/r)):`0`,e.style.overflow=`hidden`;let a=(t.duration??240)/1e3,o=$b(e,{height:[`${i}px`,`${r}px`],opacity:[Number(e.style.opacity)||0,1]},{duration:a,ease:[.16,1,.3,1]}),s=!1,c=()=>{s||(s=!0,o.stop(),sx.delete(e))};return sx.set(e,{stop:c}),{stop:c,finished:o.then(()=>{s||(e.style.height=`auto`,e.style.opacity=`1`,e.style.overflow=`visible`,t.onComplete?.(),sx.delete(e))})}}function lx(e,t={}){if(sx.get(e)?.stop(),!tx(e)||nx())return e?.style&&(e.style.height=`0px`,e.style.opacity=`0`,e.style.overflow=`hidden`),t.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let n=e.offsetHeight;if(e.style.overflow=`hidden`,n<=0)return e.style.height=`0px`,e.style.opacity=`0`,t.onComplete?.(),{stop:()=>{},finished:Promise.resolve()};let r=(t.duration??200)/1e3,i=$b(e,{height:[`${n}px`,`0px`],opacity:[1,0]},{duration:r,ease:[.16,1,.3,1]}),a=!1,o=()=>{a||(a=!0,i.stop(),sx.delete(e))};return sx.set(e,{stop:o}),{stop:o,finished:i.then(()=>{a||(e.style.height=`0px`,e.style.opacity=`0`,t.onComplete?.(),sx.delete(e))})}}function ux(e,t={}){let n=null,r=null,i=!1;function a(){n?.stop(),n=null}function o(){if(a(),!tx(e)||nx()){t.animate&&e?.style&&Object.assign(e.style,t.animate);return}if(t.initial&&e?.style&&Object.assign(e.style,t.initial),t.animate){let r=t.transition?.duration??.35,i=t.transition?.delay??0,a=t.transition?.ease??[.25,1,.5,1];n=$b(e,t.animate,{duration:r,delay:i,ease:a})}}function s(){r?.disconnect(),r=null,a(),t.inView&&tx(e)&&!nx()&&typeof IntersectionObserver<`u`?(t.initial&&Object.assign(e.style,t.initial),r=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(r?.disconnect(),r=null,o())},{threshold:.1}),r.observe(e)):o()}return s(),{update(e){i||e===t||(t=e,s())},destroy(){i=!0,r?.disconnect(),r=null,a()}}}function dx(e,t={}){let n=e=>({initial:{opacity:`0`},animate:{opacity:`1`},transition:{duration:e.duration??.3,delay:e.delay??0},inView:e.inView}),r=ux(e,n(t));return{update:e=>r.update(n(e)),destroy:r.destroy}}function fx(e,t={}){let n=e=>{let t=e.direction??`up`,n=e.distance??16;return{initial:{opacity:`0`,transform:`translate3d(${t===`left`?`${n}px`:t===`right`?`-${n}px`:`0px`}, ${t===`up`?`${n}px`:t===`down`?`-${n}px`:`0px`}, 0)`},animate:{opacity:`1`,transform:`translate3d(0, 0, 0)`},transition:{duration:e.duration??.35,delay:e.delay??0},inView:e.inView}},r=ux(e,n(t));return{update:e=>r.update(n(e)),destroy:r.destroy}}function px(e,t={}){let n=e=>({initial:{opacity:`0`,transform:`scale(${e.from??.94})`},animate:{opacity:`1`,transform:`scale(1)`},transition:{duration:e.duration??.3,delay:e.delay??0},inView:e.inView}),r=ux(e,n(t));return{update:e=>r.update(n(e)),destroy:r.destroy}}function mx(e={}){let t=null;return n=>{if(t&&=(t(),null),n){let r=ux(n,e);t=()=>r.destroy()}}}function hx(e,t,n={}){let r=Array.from(e),i=n.staggerDelay??.05,a=n.delay??0;return r.map((e,r)=>ix(e,t,{duration:n.duration,ease:n.ease,delay:a+r*i}))}function gx(){if(typeof window>`u`)return null;let e=window;return typeof e.__DOCMEDOWN_STATIC_SLUG__==`string`?{base:typeof e.__DOCMEDOWN_STATIC_BASE__==`string`?e.__DOCMEDOWN_STATIC_BASE__:``,slug:e.__DOCMEDOWN_STATIC_SLUG__}:null}function _x(e){let t=nx();e.scrollIntoView({behavior:t?`auto`:`smooth`,block:`start`}),e.classList.remove(`dmd-heading-targeted`),e.offsetWidth,e.classList.add(`dmd-heading-targeted`),setTimeout(()=>{e.classList.remove(`dmd-heading-targeted`)},1600)}function vx(){return gx()!==null}function yx(e=`README.md`){return gx()?new wx(e):new Cx(e)}function bx(e,t){let n=e.replace(/\/+$/,``);return n?`${n}/${t}`:t}function xx(e){try{return decodeURIComponent(e).replace(/index\.html?$/i,``)}catch{return e.replace(/index\.html?$/i,``)}}function Sx(e,t){let n=xx(e),r=t===`README`?`/`:`/${t}/`;return n.endsWith(r)?n.slice(0,n.length-r.length).replace(/\/+$/,``):n.replace(/[^/]*$/,`/`).replace(/\/+$/,``)}var Cx=class{listeners=new Set;defaultDoc;constructor(e=`README.md`){this.defaultDoc=e,typeof window<`u`&&window.addEventListener(`hashchange`,this.handleHashChange)}destroy(){typeof window<`u`&&window.removeEventListener(`hashchange`,this.handleHashChange),this.listeners.clear()}setDefaultDoc(e){this.defaultDoc=e}getCurrentRoute(){return typeof window>`u`?this.parseHash(``):this.parseHash(window.location.hash)}parseHash(e){let t=e.replace(/^#\/?/,``).trim(),n=``,r=t.indexOf(`#`);r!==-1&&(n=t.substring(r+1),t=t.substring(0,r)),t=t.replace(/^\/+|\/+$/g,``);let i=t;return i=!i||i===`/`||i===`index`||i===`README`?this.normalizeDocSlug(this.defaultDoc):this.normalizeDocSlug(i),{slug:i,anchor:n,fullPath:`#/${i}${n?`#${n}`:``}`}}normalizeDocSlug(e){let t=e.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``);return!t||t===`index`||t===`README`?`README`:t}navigate(e,t=``){if(typeof window>`u`)return;let n=`#/${this.normalizeDocSlug(e)}${t?`#${t}`:``}`;if(window.location.hash===n){t&&this.scrollToAnchor(t);return}window.location.hash=n}scrollToAnchor(e){if(typeof document>`u`)return;let t=decodeURIComponent(e).toLowerCase().replace(/^[#]/,``),n=document.getElementById(t);n&&_x(n)}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}emitRoute(e){this.listeners.forEach(t=>t(e))}handleHashChange=()=>{let e=this.getCurrentRoute();this.emitRoute(e),e.anchor&&setTimeout(()=>{this.scrollToAnchor(e.anchor)},100)};resolveLink(e,t){if(!e)return`#/`;if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`mailto:`))return e;if(e.startsWith(`#`))return`#/${t}${e}`;let n=``,r=e.indexOf(`#`);r!==-1&&(n=e.substring(r),e=e.substring(0,r));let i=[];if(e.startsWith(`/`))i=e.replace(/^\//,``).split(`/`);else{let n=t.includes(`/`)?t.split(`/`).slice(0,-1):[],r=e.split(`/`);for(let e of[...n,...r])!e||e===`.`||(e===`..`?i.pop():i.push(e))}let a=i.join(`/`);return`#/${this.normalizeDocSlug(a)}${n}`}},wx=class extends Cx{urlBase;constructor(e=`README.md`){super(e);let t=gx();this.urlBase=typeof window>`u`?``:Sx(window.location.pathname,t?.slug??this.normalizeDocSlug(e)),typeof window<`u`&&window.addEventListener(`popstate`,this.handlePopState)}destroy(){typeof window<`u`&&window.removeEventListener(`popstate`,this.handlePopState),super.destroy()}getCurrentRoute(){return typeof window>`u`?this.parseStaticPath(`/`,``):this.parseStaticPath(window.location.pathname,window.location.hash)}parseStaticPath(e,t){let n=xx(e);if(this.urlBase){let e=`${this.urlBase}/`;n===this.urlBase?n=`/`:n.startsWith(e)&&(n=n.slice(e.length-1))}let r=n.replace(/^\/+|\/+$/g,``),i=r?this.normalizeDocSlug(r):this.normalizeDocSlug(this.defaultDoc),a=this.parseStaticAnchor(t);return{slug:i,anchor:a,fullPath:`${this.urlForSlug(i)}${a?`#${a}`:``}`}}urlForSlug(e,t=``){let n=this.normalizeDocSlug(e),r=n===`README`?`/`:`/${n}/`,i=`${this.urlBase}${r}`;return t?`${i}#${t}`:i}navigate(e,t=``){if(typeof window>`u`)return;let n=this.normalizeDocSlug(e),r=this.urlForSlug(n),i=t?`${r}#${t}`:r;if(xx(window.location.pathname)===r&&window.location.hash===(t?`#${t}`:``)){t&&this.scrollToAnchor(t);return}try{window.history.pushState({},``,i)}catch{}this.emitRoute(this.getCurrentRoute()),t&&setTimeout(()=>this.scrollToAnchor(t),100)}scrollToAnchor(e){if(typeof document>`u`)return;let t=decodeURIComponent(e).toLowerCase().replace(/^[#]/,``),n=document.getElementById(t);n&&_x(n)}resolveLink(e,t){let n=super.resolveLink(e,t);if(!n.startsWith(`#/`))return n;let r=n.slice(2),i=``,a=r.indexOf(`#`);return a!==-1&&(i=r.slice(a+1),r=r.slice(0,a)),this.urlForSlug(this.normalizeDocSlug(r),i)}parseStaticAnchor(e){let t=e.replace(/^#/,``).trim();if(t.startsWith(`/`)){let e=t.slice(1),n=e.indexOf(`#`);t=n>=0?e.slice(n+1):``}return t}handlePopState=()=>{let e=this.getCurrentRoute();this.emitRoute(e),e.anchor&&setTimeout(()=>this.scrollToAnchor(e.anchor),100)}},Tx=`ENTRIES`,Ex=`KEYS`,Dx=`VALUES`,Ox=``,kx=class{constructor(e,t){let n=e._tree,r=Array.from(n.keys());this.set=e,this._type=t,this._path=r.length>0?[{node:n,keys:r}]:[]}next(){let e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:e,keys:t}=Ax(this._path);if(Ax(t)===Ox)return{done:!1,value:this.result()};let n=e.get(Ax(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let e=Ax(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>Ax(e)).filter(e=>e!==Ox).join(``)}value(){return Ax(this._path).node.get(Ox)}result(){switch(this._type){case Dx:return this.value();case Ex:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},Ax=e=>e[e.length-1],jx=(e,t,n)=>{let r=new Map;if(t===void 0)return r;let i=t.length+1,a=i+n,o=new Uint8Array(a*i).fill(n+1);for(let e=0;e<i;++e)o[e]=e;for(let e=1;e<a;++e)o[e*i]=e;return Mx(e,t,n,r,o,1,i,``),r},Mx=(e,t,n,r,i,a,o,s)=>{let c=a*o;key:for(let l of e.keys())if(l===Ox){let t=i[c-1];t<=n&&r.set(s,[e.get(l),t])}else{let c=a;for(let e=0;e<l.length;++e,++c){let r=l[e],a=o*c,s=a-o,u=i[a],d=Math.max(0,c-n-1),f=Math.min(o-1,c+n);for(let e=d;e<f;++e){let n=r!==t[e],o=i[s+e]+ +n,c=i[s+e+1]+1,l=i[a+e]+1,d=i[a+e+1]=Math.min(o,c,l);d<u&&(u=d)}if(u>n)continue key}Mx(e.get(l),t,n,r,i,c,o,s+l)}},Nx=class e{constructor(e=new Map,t=``){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(t){if(!t.startsWith(this._prefix))throw Error(`Mismatched prefix`);let[n,r]=Px(this._tree,t.slice(this._prefix.length));if(n===void 0){let[n,i]=Bx(r);for(let r of n.keys())if(r!==Ox&&r.startsWith(i)){let a=new Map;return a.set(r.slice(i.length),n.get(r)),new e(a,t)}}return new e(n,t)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Lx(this._tree,e)}entries(){return new kx(this,Tx)}forEach(e){for(let[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return jx(this._tree,e,t)}get(e){let t=Fx(this._tree,e);return t===void 0?void 0:t.get(Ox)}has(e){let t=Fx(this._tree,e);return t!==void 0&&t.has(Ox)}keys(){return new kx(this,Ex)}set(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);return this._size=void 0,Ix(this._tree,e).set(Ox,t),this}get size(){if(this._size)return this._size;this._size=0;let e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);this._size=void 0;let n=Ix(this._tree,e);return n.set(Ox,t(n.get(Ox))),this}fetch(e,t){if(typeof e!=`string`)throw Error(`key must be a string`);this._size=void 0;let n=Ix(this._tree,e),r=n.get(Ox);return r===void 0&&n.set(Ox,r=t()),r}values(){return new kx(this,Dx)}[Symbol.iterator](){return this.entries()}static from(t){let n=new e;for(let[e,r]of t)n.set(e,r);return n}static fromObject(t){return e.from(Object.entries(t))}},Px=(e,t,n=[])=>{if(t.length===0||e==null)return[e,n];for(let r of e.keys())if(r!==Ox&&t.startsWith(r))return n.push([e,r]),Px(e.get(r),t.slice(r.length),n);return n.push([e,t]),Px(void 0,``,n)},Fx=(e,t)=>{if(t.length===0||e==null)return e;for(let n of e.keys())if(n!==Ox&&t.startsWith(n))return Fx(e.get(n),t.slice(n.length))},Ix=(e,t)=>{let n=t.length;outer:for(let r=0;e&&r<n;){for(let i of e.keys())if(i!==Ox&&t[r]===i[0]){let a=Math.min(n-r,i.length),o=1;for(;o<a&&t[r+o]===i[o];)++o;let s=e.get(i);if(o===i.length)e=s;else{let n=new Map;n.set(i.slice(o),s),e.set(t.slice(r,r+o),n),e.delete(i),e=n}r+=o;continue outer}let i=new Map;return e.set(t.slice(r),i),i}return e},Lx=(e,t)=>{let[n,r]=Px(e,t);if(n!==void 0){if(n.delete(Ox),n.size===0)Rx(r);else if(n.size===1){let[e,t]=n.entries().next().value;zx(r,e,t)}}},Rx=e=>{if(e.length===0)return;let[t,n]=Bx(e);if(t.delete(n),t.size===0)Rx(e.slice(0,-1));else if(t.size===1){let[n,r]=t.entries().next().value;n!==Ox&&zx(e.slice(0,-1),n,r)}},zx=(e,t,n)=>{if(e.length===0)return;let[r,i]=Bx(e);r.set(i+t,n),r.delete(i)},Bx=e=>e[e.length-1],Vx=`or`,Hx=`and`,Ux=`and_not`,Wx=class e{constructor(e){if(e?.fields==null)throw Error(`MiniSearch: option "fields" must be provided`);let t=e.autoVacuum==null||e.autoVacuum===!0?tS:e.autoVacuum;this._options={...Xx,...e,autoVacuum:t,searchOptions:{...Zx,...e.searchOptions||{}},autoSuggestOptions:{...Qx,...e.autoSuggestOptions||{}}},this._index=new Nx,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=eS,this.addFields(this._options.fields)}add(e){let{extractField:t,stringifyField:n,tokenize:r,processTerm:i,fields:a,idField:o}=this._options,s=t(e,o);if(s==null)throw Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(s))throw Error(`MiniSearch: duplicate ID ${s}`);let c=this.addDocumentId(s);this.saveStoredFields(c,e);for(let o of a){let a=t(e,o);if(a==null)continue;let s=r(n(a,o),o),l=this._fieldIds[o],u=new Set(s).size;this.addFieldLength(c,l,this._documentCount-1,u);for(let e of s){let t=i(e,o);if(Array.isArray(t))for(let e of t)this.addTerm(l,c,e);else t&&this.addTerm(l,c,t)}}}addAll(e){for(let t of e)this.add(t)}addAllAsync(e,t={}){let{chunkSize:n=10}=t,r={chunk:[],promise:Promise.resolve()},{chunk:i,promise:a}=e.reduce(({chunk:e,promise:t},r,i)=>(e.push(r),(i+1)%n===0?{chunk:[],promise:t.then(()=>new Promise(e=>setTimeout(e,0))).then(()=>this.addAll(e))}:{chunk:e,promise:t}),r);return a.then(()=>this.addAll(i))}remove(e){let{tokenize:t,processTerm:n,extractField:r,stringifyField:i,fields:a,idField:o}=this._options,s=r(e,o);if(s==null)throw Error(`MiniSearch: document does not have ID field "${o}"`);let c=this._idToShortId.get(s);if(c==null)throw Error(`MiniSearch: cannot remove document with ID ${s}: it is not in the index`);for(let o of a){let a=r(e,o);if(a==null)continue;let s=t(i(a,o),o),l=this._fieldIds[o],u=new Set(s).size;this.removeFieldLength(c,l,this._documentCount,u);for(let e of s){let t=n(e,o);if(Array.isArray(t))for(let e of t)this.removeTerm(l,c,e);else t&&this.removeTerm(l,c,t)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(s),this._fieldLength.delete(c),--this._documentCount}removeAll(e){if(e)for(let t of e)this.remove(t);else if(arguments.length>0)throw Error(`Expected documents to be present. Omit the argument to remove all documents.`);else this._index=new Nx,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}discard(e){let t=this._idToShortId.get(e);if(t==null)throw Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((e,n)=>{this.removeFieldLength(t,n,this._documentCount,e)}),this._fieldLength.delete(t),--this._documentCount,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:r}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:r},{minDirtCount:t,minDirtFactor:e})}discardAll(e){let t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let t of e)this.discard(t)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){let{idField:t,extractField:n}=this._options,r=n(e,t);this.discard(r),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum??=this._currentVacuum.then(()=>{let t=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=eS,this.performVacuuming(e,t)}),this._enqueuedVacuum):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){let n=this._dirtCount;if(this.vacuumConditionsMet(t)){let t=e.batchSize||$x.batchSize,r=e.batchWait||$x.batchWait,i=1;for(let[e,n]of this._index){for(let[e,t]of n)for(let[r]of t)this._documentIds.has(r)||(t.size<=1?n.delete(e):t.delete(r));this._index.get(e).size===0&&this._index.delete(e),i%t===0&&await new Promise(e=>setTimeout(e,r)),i+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t||=tS.minDirtCount,n||=tS.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){let t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(t,n={}){let{searchOptions:r}=this._options,i={...r,...n},a=this.executeQuery(t,n),o=[];for(let[e,{score:t,terms:n,match:r}]of a){let a=n.length||1,s={id:this._documentIds.get(e),score:t*a,terms:Object.keys(r),queryTerms:n,match:r};Object.assign(s,this._storedFields.get(e)),(i.filter==null||i.filter(s))&&o.push(s)}return t===e.wildcard&&i.boostDocument==null||o.sort(iS),o}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};let n=new Map;for(let{score:r,terms:i}of this.search(e,t)){let e=i.join(` `),t=n.get(e);t==null?n.set(e,{score:r,terms:i,count:1}):(t.score+=r,t.count+=1)}let r=[];for(let[e,{score:t,terms:i,count:a}]of n)r.push({suggestion:e,terms:i,score:t/a});return r.sort(iS),r}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw Error(`MiniSearch: loadJSON should be given the same options used when serializing the index`);return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw Error(`MiniSearch: loadJSON should be given the same options used when serializing the index`);return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(Xx.hasOwnProperty(e))return Gx(Xx,e);throw Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){let{index:n,documentIds:r,fieldLength:i,storedFields:a,serializationVersion:o}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=oS(r),s._fieldLength=oS(i),s._storedFields=oS(a);for(let[e,t]of s._documentIds)s._idToShortId.set(t,e);for(let[e,t]of n){let n=new Map;for(let e of Object.keys(t)){let r=t[e];o===1&&(r=r.ds),n.set(parseInt(e,10),oS(r))}s._index.set(e,n)}return s}static async loadJSAsync(e,t){let{index:n,documentIds:r,fieldLength:i,storedFields:a,serializationVersion:o}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=await sS(r),s._fieldLength=await sS(i),s._storedFields=await sS(a);for(let[e,t]of s._documentIds)s._idToShortId.set(t,e);let c=0;for(let[e,t]of n){let n=new Map;for(let e of Object.keys(t)){let r=t[e];o===1&&(r=r.ds),n.set(parseInt(e,10),await sS(r))}++c%1e3==0&&await cS(0),s._index.set(e,n)}return s}static instantiateMiniSearch(t,n){let{documentCount:r,nextId:i,fieldIds:a,averageFieldLength:o,dirtCount:s,serializationVersion:c}=t;if(c!==1&&c!==2)throw Error(`MiniSearch: cannot deserialize an index created with an incompatible version`);let l=new e(n);return l._documentCount=r,l._nextId=i,l._idToShortId=new Map,l._fieldIds=a,l._avgFieldLength=o,l._dirtCount=s||0,l._index=new Nx,l}executeQuery(t,n={}){if(t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!=`string`){let e={...n,...t,queries:void 0},r=t.queries.map(t=>this.executeQuery(t,e));return this.combineResults(r,e.combineWith)}let{tokenize:r,processTerm:i,searchOptions:a}=this._options,o={tokenize:r,processTerm:i,...a,...n},{tokenize:s,processTerm:c}=o,l=s(t).flatMap(e=>c(e)).filter(e=>!!e).map(Yx(o)).map(e=>this.executeQuerySpec(e,o));return this.combineResults(l,o.combineWith)}executeQuerySpec(e,t){let n={...this._options.searchOptions,...t},r=(n.fields||this._options.fields).reduce((e,t)=>({...e,[t]:Gx(n.boost,t)||1}),{}),{boostDocument:i,weights:a,maxFuzzy:o,bm25:s}=n,{fuzzy:c,prefix:l}={...Zx.weights,...a},u=this._index.get(e.term),d=this.termResults(e.term,e.term,1,e.termBoost,u,r,i,s),f,p;if(e.prefix&&(f=this._index.atPrefix(e.term)),e.fuzzy){let t=e.fuzzy===!0?.2:e.fuzzy,n=t<1?Math.min(o,Math.round(e.term.length*t)):t;n&&(p=this._index.fuzzyGet(e.term,n))}if(f)for(let[t,n]of f){let a=t.length-e.term.length;if(!a)continue;p?.delete(t);let o=l*t.length/(t.length+.3*a);this.termResults(e.term,t,o,e.termBoost,n,r,i,s,d)}if(p)for(let t of p.keys()){let[n,a]=p.get(t);if(!a)continue;let o=c*t.length/(t.length+a);this.termResults(e.term,t,o,e.termBoost,n,r,i,s,d)}return d}executeWildcardQuery(e){let t=new Map,n={...this._options.searchOptions,...e};for(let[e,r]of this._documentIds){let i=n.boostDocument?n.boostDocument(r,``,this._storedFields.get(e)):1;t.set(e,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Vx){if(e.length===0)return new Map;let n=Kx[t.toLowerCase()];if(!n)throw Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){let e=[];for(let[t,n]of this._index){let r={};for(let[e,t]of n)r[e]=Object.fromEntries(t);e.push([t,r])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,n,r,i,a,o,s,c=new Map){if(i==null)return c;for(let l of Object.keys(a)){let u=a[l],d=this._fieldIds[l],f=i.get(d);if(f==null)continue;let p=f.size,m=this._avgFieldLength[d];for(let i of f.keys()){if(!this._documentIds.has(i)){this.removeTerm(d,i,t),--p;continue}let a=o?o(this._documentIds.get(i),t,this._storedFields.get(i)):1;if(!a)continue;let h=f.get(i),g=this._fieldLength.get(i)[d],_=Jx(h,p,this._documentCount,g,m,s),v=n*r*u*a*_,y=c.get(i);if(y){y.score+=v,nS(y.terms,e);let n=Gx(y.match,t);n?n.push(l):y.match[t]=[l]}else c.set(i,{score:v,terms:[e],match:{[t]:[l]}})}}return c}addTerm(e,t,n){let r=this._index.fetch(n,aS),i=r.get(e);if(i==null)i=new Map,i.set(t,1),r.set(e,i);else{let e=i.get(t);i.set(t,(e||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}let r=this._index.fetch(n,aS),i=r.get(e);i==null||i.get(t)==null?this.warnDocumentChanged(t,e,n):i.get(t)<=1?i.size<=1?r.delete(e):i.delete(t):i.set(t,i.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(let r of Object.keys(this._fieldIds))if(this._fieldIds[r]===t){this._options.logger(`warn`,`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${r}". Removing a document after it has changed can corrupt the index!`,`version_conflict`);return}}addDocumentId(e){let t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,n,r){let i=this._fieldLength.get(e);i??this._fieldLength.set(e,i=[]),i[t]=r;let a=(this._avgFieldLength[t]||0)*n+r;this._avgFieldLength[t]=a/(n+1)}removeFieldLength(e,t,n,r){if(n===1){this._avgFieldLength[t]=0;return}let i=this._avgFieldLength[t]*n-r;this._avgFieldLength[t]=i/(n-1)}saveStoredFields(e,t){let{storeFields:n,extractField:r}=this._options;if(n==null||n.length===0)return;let i=this._storedFields.get(e);i??this._storedFields.set(e,i={});for(let e of n){let n=r(t,e);n!==void 0&&(i[e]=n)}}};Wx.wildcard=Symbol(`*`);var Gx=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,Kx={[Vx]:(e,t)=>{for(let n of t.keys()){let r=e.get(n);if(r==null)e.set(n,t.get(n));else{let{score:e,terms:i,match:a}=t.get(n);r.score+=e,r.match=Object.assign(r.match,a),rS(r.terms,i)}}return e},[Hx]:(e,t)=>{let n=new Map;for(let r of t.keys()){let i=e.get(r);if(i==null)continue;let{score:a,terms:o,match:s}=t.get(r);rS(i.terms,o),n.set(r,{score:i.score+a,terms:i.terms,match:Object.assign(i.match,s)})}return n},[Ux]:(e,t)=>{for(let n of t.keys())e.delete(n);return e}},qx={k:1.2,b:.7,d:.5},Jx=(e,t,n,r,i,a)=>{let{k:o,b:s,d:c}=a;return Math.log(1+(n-t+.5)/(t+.5))*(c+e*(o+1)/(e+o*(1-s+s*r/i)))},Yx=e=>(t,n,r)=>({term:t,fuzzy:typeof e.fuzzy==`function`?e.fuzzy(t,n,r):e.fuzzy||!1,prefix:typeof e.prefix==`function`?e.prefix(t,n,r):e.prefix===!0,termBoost:typeof e.boostTerm==`function`?e.boostTerm(t,n,r):1}),Xx={idField:`id`,extractField:(e,t)=>e[t],stringifyField:(e,t)=>e.toString(),tokenize:e=>e.split(lS),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof(console==null?void 0:console[e])==`function`&&console[e](t)},autoVacuum:!0},Zx={combineWith:Vx,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:qx},Qx={combineWith:Hx,prefix:(e,t,n)=>t===n.length-1},$x={batchSize:1e3,batchWait:10},eS={minDirtFactor:.1,minDirtCount:20},tS={...$x,...eS},nS=(e,t)=>{e.includes(t)||e.push(t)},rS=(e,t)=>{for(let n of t)e.includes(n)||e.push(n)},iS=({score:e},{score:t})=>t-e,aS=()=>new Map,oS=e=>{let t=new Map;for(let n of Object.keys(e))t.set(parseInt(n,10),e[n]);return t},sS=async e=>{let t=new Map,n=0;for(let r of Object.keys(e))t.set(parseInt(r,10),e[r]),++n%1e3==0&&await cS(0);return t},cS=e=>new Promise(t=>setTimeout(t,e)),lS=/[\n\r\p{Z}\p{P}]+/u,uS=class{miniSearch;indexedDocs=new Map;constructor(){this.miniSearch=new Wx({fields:[`title`,`category`,`headingsText`,`content`],storeFields:[`title`,`slug`,`category`,`headingsText`,`snippet`],searchOptions:{boost:{title:3,headingsText:2,category:1.5,content:1},fuzzy:.2,prefix:!0}})}addDoc(e){if(this.indexedDocs.has(e.slug))return;this.indexedDocs.set(e.slug,e);let t=(e.headings||[]).map(e=>e.text).join(` `),n=(e.content||``).substring(0,160).replace(/[#*`_>]/g,``).trim();try{this.miniSearch.add({id:e.slug,slug:e.slug,title:e.title,category:e.category||``,headingsText:t,content:e.content||``,snippet:n})}catch{}}addDocs(e){for(let t of e)this.addDoc(t)}search(e,t=10){let n=e.trim();if(!n)return[];try{return this.miniSearch.search(n).slice(0,t).map(e=>({id:e.id,slug:e.slug||e.id,title:e.title||`Untitled`,category:e.category,snippet:e.snippet,score:e.score}))}catch(e){return console.warn(`[DocMeDown] Search error:`,e),[]}}};function dS(e){let t=globalThis.requestIdleCallback;typeof t==`function`?t(e,{timeout:2e3}):window.setTimeout(e,1)}var Q=new class{#e=E(null);get config(){return M(this.#e)}set config(e){D(this.#e,e,!0)}#t=E(``);get currentSlug(){return M(this.#t)}set currentSlug(e){D(this.#t,e,!0)}#n=E(null);get currentDoc(){return M(this.#n)}set currentDoc(e){D(this.#n,e,!0)}#r=E($r([]));get tree(){return M(this.#r)}set tree(e){D(this.#r,e,!0)}#i=E(!0);get isLoading(){return M(this.#i)}set isLoading(e){D(this.#i,e,!0)}#a=E(!1);get isNavigating(){return M(this.#a)}set isNavigating(e){D(this.#a,e,!0)}#o=E(null);get error(){return M(this.#o)}set error(e){D(this.#o,e,!0)}#s=E(!1);get isSearchOpen(){return M(this.#s)}set isSearchOpen(e){D(this.#s,e,!0)}#c=E(!1);get isMobileSidebarOpen(){return M(this.#c)}set isMobileSidebarOpen(e){D(this.#c,e,!0)}#l=E(!1);get isEditorOpen(){return M(this.#l)}set isEditorOpen(e){D(this.#l,e,!0)}#u=E(`production`);get serverMode(){return M(this.#u)}set serverMode(e){D(this.#u,e,!0)}#d=E(!1);get hasPreviewChanges(){return M(this.#d)}set hasPreviewChanges(e){D(this.#d,e,!0)}#f=E(!1);get isScrolled(){return M(this.#f)}set isScrolled(e){D(this.#f,e,!0)}#p=E(null);get activeTagModal(){return M(this.#p)}set activeTagModal(e){D(this.#p,e,!0)}#m=E($r([]));get allDocs(){return M(this.#m)}set allDocs(e){D(this.#m,e,!0)}openTagModal(e){this.activeTagModal=e.replace(/^#/,``).trim()}closeTagModal(){this.activeTagModal=null}getDocsWithTag(e){let t=e.replace(/^#/,``).toLowerCase().trim();return t?this.allDocs.filter(e=>e.frontmatter?.tags?.some(e=>e.toLowerCase().trim()===t)):[]}getAllTags(){let e=new Map;for(let t of this.allDocs)if(Array.isArray(t.frontmatter?.tags))for(let n of t.frontmatter.tags){let t=n.toLowerCase().trim();t&&e.set(t,(e.get(t)||0)+1)}return Array.from(e.entries()).map(([e,t])=>({tag:e,count:t})).sort((e,t)=>t.count-e.count)}getPossiblePaths(e,t){let n=[],r=new Set,i=(e,t,i,a)=>{r.has(e)||(r.add(e),n.push({slug:e,title:t,category:i,readingTimeMinutes:a}))};if(e===0){for(let e of this.allDocs)i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)i(e.slug,e.title);return n}let a=this.currentSlug.split(`/`).filter(Boolean),o=a.slice(0,e).join(`/`);if(o){for(let e of this.allDocs)(e.slug.startsWith(`${o}/`)||e.slug===o)&&i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)(e.slug.startsWith(`${o}/`)||e.slug===o)&&i(e.slug,e.title)}if(n.length<=1){let t=a.slice(0,Math.max(0,e-1)).join(`/`);if(t){for(let e of this.allDocs)(e.slug.startsWith(`${t}/`)||e.slug===t)&&i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)(e.slug.startsWith(`${t}/`)||e.slug===t)&&i(e.slug,e.title)}else{for(let e of this.allDocs)e.slug.includes(`/`)||i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)e.slug.includes(`/`)||i(e.slug,e.title);if(n.length<=1){for(let e of this.allDocs)i(e.slug,e.title||e.slug,e.category||e.frontmatter?.category,e.readingTimeMinutes);for(let e of this.flatDocs)i(e.slug,e.title)}}}return n}#h=E(null);get originalHome(){return M(this.#h)}set originalHome(e){D(this.#h,e,!0)}#g=E($r([]));get docPaths(){return M(this.#g)}set docPaths(e){D(this.#g,e,!0)}basePath=``;router=null;searchIndex=new uS;localLoader=new Su;remoteGithub=null;remoteGitlab=null;unsubscribeRouter=null;homeCancelled=!1;epoch=0;parseCacheLimit=50;parseCache=new Map;remoteCache=new Map;#_=lr(()=>{let e=[],t=n=>{for(let r of n)!r.isCategory&&r.slug&&e.push({slug:r.slug,title:r.title}),r.children&&t(r.children)};return t(this.tree),e});get flatDocs(){return M(this.#_)}set flatDocs(e){D(this.#_,e)}#v=lr(()=>{let e=this.flatDocs.findIndex(e=>e.slug===this.currentSlug);return e<=0?null:this.flatDocs[e-1]});get prevDoc(){return M(this.#v)}set prevDoc(e){D(this.#v,e)}#y=lr(()=>{let e=this.flatDocs.findIndex(e=>e.slug===this.currentSlug);return e===-1||e>=this.flatDocs.length-1?null:this.flatDocs[e+1]});get nextDoc(){return M(this.#y)}set nextDoc(e){D(this.#y,e)}#b=lr(()=>this.originalHome??(this.config?gu(this.docPaths,this.config):null));get home(){return M(this.#b)}set home(e){D(this.#b,e)}navigate(e,t=``){this.router?.navigate(e,t)}destroy(){this.unsubscribeRouter?.(),this.unsubscribeRouter=null,this.router?.destroy(),this.router=null,this.homeCancelled=!0}async init(e,t=``){let n=++this.epoch;this.destroy(),this.config=e,this.basePath=t,this.currentDoc=null,this.tree=[],this.isLoading=!0,this.isNavigating=!1,this.error=null,this.isSearchOpen=!1,this.isMobileSidebarOpen=!1,this.originalHome=null,this.docPaths=[],this.homeCancelled=!1,this.parseCache.clear(),this.parseCacheLimit=50,this.remoteCache.clear(),this.remoteGithub=e.source?.type===`github`?new Cu(e.source):null,this.remoteGitlab=e.source?.type===`gitlab`?new wu(e.source):null,this.router=yx(e.rootDoc||`README.md`);let r=this.router.getCurrentRoute();this.currentSlug=r.slug,this.unsubscribeRouter=this.router.subscribe(e=>{if(n!==this.epoch)return;let t=e.slug!==this.currentSlug;this.currentSlug=e.slug,this.isMobileSidebarOpen=!1,t||!this.currentDoc?this.renderDocNow(e.slug,n)||this.loadDoc(e.slug,n):e.anchor&&setTimeout(()=>this.router?.scrollToAnchor(e.anchor),100)}),this.renderDocNow(r.slug,n)||await this.loadDoc(r.slug,n),typeof window<`u`&&(window.__DOCMEDOWN_STORE__=this),this.initTree(n),this.initHome(n),this.warmParseCache(n)}async initTree(e){let t=this.config?.sidebar;try{let n=await this.localLoader.fetchManifest(this.basePath);if(e!==this.epoch)return;if(n&&!this.remoteGithub&&!this.remoteGitlab){n.config&&(this.config={...this.config,...n.config}),n.tree&&(this.tree=n.tree),n.docs&&(this.allDocs=n.docs,this.searchIndex.addDocs(n.docs),this.docPaths=n.docs.map(e=>({slug:e.slug,path:e.path})));return}if(this.remoteGithub){let n=await this.remoteGithub.discoverFiles();if(e!==this.epoch)return;this.tree=yu(n,{},t),this.docPaths=n.map(e=>({path:e}));return}if(this.remoteGitlab){let n=await this.remoteGitlab.discoverFiles();if(e!==this.epoch)return;this.tree=yu(n,{},t),this.docPaths=n.map(e=>({path:e}));return}this.tree=yu([`README.md`],{},t),this.docPaths=[{path:`README.md`}]}catch{if(e!==this.epoch)return;this.tree=yu([`README.md`],{},t),this.docPaths=[{path:`README.md`}]}}parseMarkdownCached(e,t){let n=this.parseCache.get(t);if(n&&n.source===e)return this.parseCache.delete(t),this.parseCache.set(t,n),n.parsed;let r=nb(e,t);if(this.parseCache.set(t,{source:e,parsed:r}),this.parseCache.size>this.parseCacheLimit){let e=this.parseCache.keys().next().value;e!==void 0&&this.parseCache.delete(e)}return r}renderDoc(e,t){let n=this.parseMarkdownCached(e,t),r=n.frontmatter.title||n.headings[0]?.text||t;this.currentDoc={...n,slug:t,title:r,rawContent:e},this.error=null,this.isLoading=!1,this.isNavigating=!1,this.searchIndex.addDoc({slug:t,path:`${t}.md`,title:r,frontmatter:n.frontmatter,headings:n.headings,content:e}),this.allDocs.some(e=>e.slug===t)||this.allDocs.push({slug:t,path:`${t}.md`,title:r,frontmatter:n.frontmatter,headings:n.headings,readingTimeMinutes:n.readingTimeMinutes}),this.resetScroll()}toggleEditor(e){this.isEditorOpen=e===void 0?!this.isEditorOpen:e}updateDocContent(e,t=this.currentSlug,n=!1){if(this.localLoader.setDocContent(t,e),this.parseCache.delete(t),this.currentSlug===t){let r=nb(e,t),i=r.frontmatter.title||r.headings[0]?.text||t;this.currentDoc={...r,slug:t,title:i,rawContent:e},this.searchIndex.addDoc({slug:t,path:`${t}.md`,title:i,frontmatter:r.frontmatter,headings:r.headings,content:e}),n&&this.resetScroll()}}applyHmrUpdate(e,t){this.updateDocContent(t,e,!1),typeof console<`u`&&console.log(`[DocMeDown HMR] In-place update applied for ${e}`)}updateConfig(e){this.config&&={...this.config,...e}}resetScroll(){let e=this.router?.getCurrentRoute();e?.anchor?setTimeout(()=>this.router?.scrollToAnchor(e.anchor),100):typeof window<`u`&&window.scrollTo({top:0,behavior:`instant`})}renderDocNow(e,t){if(t!==this.epoch)return!0;let n=this.remoteCache.get(e);if(n!==void 0)return this.renderDoc(n,e),!0;if(this.remoteGithub||this.remoteGitlab)return!1;let r=this.localLoader.peekDocContent(e);return r!==void 0&&(this.renderDoc(r,e),!0)}async loadDoc(e,t){this.currentDoc?this.isNavigating=!0:this.isLoading=!0,this.error=null;try{let n=null;if(n=this.remoteGithub?await this.remoteGithub.fetchDocContent(e):this.remoteGitlab?await this.remoteGitlab.fetchDocContent(e):await this.localLoader.fetchDocContent(e,this.basePath),t!==this.epoch)return;if(n!==null)this.remoteCache.set(e,n),this.renderDoc(n,e);else{let t=this.remoteGithub?`GitHub`:this.remoteGitlab?`GitLab`:`this documentation site`;this.error=`Could not load “${e}” from ${t}.`,this.isLoading=!1,this.isNavigating=!1}}catch{if(t!==this.epoch)return;this.error=`The document source did not respond. Check the connection or try again.`,this.isLoading=!1,this.isNavigating=!1}}warmParseCache(e){if(this.remoteGithub||this.remoteGitlab||typeof window>`u`)return;let t=this.localLoader.embeddedDocSources();if(!t)return;let n=Object.entries(t);if(n.length<2)return;this.parseCacheLimit=Math.min(Math.max(n.length,50),200);let r=0,i=()=>{if(e!==this.epoch)return;let t=performance.now()+6;for(;r<n.length&&performance.now()<t;){let[e,t]=n[r++];this.parseMarkdownCached(t,e)}r<n.length&&dS(i)};dS(i)}initHome(e){this.config?.home||this.remoteGithub||this.remoteGitlab||typeof window>`u`||(window.location.protocol===`http:`||window.location.protocol===`https:`)&&_u(e=>fetch(e)).then(t=>{e===this.epoch&&!this.homeCancelled&&t&&(this.originalHome=t)}).catch(()=>void 0)}},fS=P(`<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg> <span>Docs</span>`,1),pS=P(`<span> </span>`),mS=P(`<span class="dmd-crumb-arrow" aria-hidden="true">▾</span>`),hS=P(`<span class="dmd-crumb-item-badge">Active</span>`),gS=P(`<span class="dmd-crumb-item-meta"> </span>`),_S=P(`<button type="button" role="menuitem"><span class="dmd-crumb-item-dot" aria-hidden="true"><!></span> <div class="dmd-crumb-item-info"><span class="dmd-crumb-item-title"> </span> <span class="dmd-crumb-item-slug"> </span></div> <!></button>`),vS=P(`<div class="dmd-crumb-popover" role="menu"><div class="dmd-crumb-popover-header"><span class="dmd-crumb-popover-scope"><!></span> <span class="dmd-crumb-popover-count"> </span></div> <div class="dmd-crumb-popover-list"></div></div>`),yS=P(`<div class="dmd-crumb-wrapper" role="none"><button type="button"><!> <!></button> <!></div>`);function bS(e,t){un(t,!0);let n=z(t,`isHome`,3,!1),r=z(t,`isLast`,3,!1),i=z(t,`isScrolled`,3,!1),a=E(!1),o,s,c=E(null),l=lr(()=>Q.getPossiblePaths(t.index,t.label));function u(){clearTimeout(o),M(l).length>0&&(s=setTimeout(()=>{D(a,!0)},140))}function d(){clearTimeout(s),o=setTimeout(()=>{D(a,!1)},200)}function f(e){let i=e.target;if(i.classList.contains(`dmd-crumb-arrow`)||i.closest(`.dmd-crumb-arrow`)){e.stopPropagation(),e.preventDefault(),M(l).length>0&&D(a,!M(a));return}if(n())Q.home?.kind===`href`&&Q.home.href?window.location.href=Q.home.href:Q.home?.kind===`route`&&Q.home.slug?Q.navigate(Q.home.slug):Q.navigate(`README`),D(a,!1);else if(r())M(l).length>0&&D(a,!M(a));else{let e=Q.currentSlug.split(`/`).filter(Boolean).slice(0,t.index).join(`/`);e&&Q.navigate(e),D(a,!1)}}function p(e){e.key===`Escape`?D(a,!1):e.key===`ArrowDown`&&!M(a)&&M(l).length>0&&(e.preventDefault(),D(a,!0))}Oi(()=>{if(!M(a))return;let e=e=>{M(c)&&!M(c).contains(e.target)&&D(a,!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)});var m=yS(),h=O(m);let g;var _=O(h),v=e=>{var t=fS();it(2),F(e,t)},y=e=>{var n=pS(),r=k(n,!0);j(e=>I(r,e),[()=>t.label.replace(/[-_]/g,` `)]),F(e,n)};L(_,e=>{n()?e(v):e(y,-1)});var b=A(_,2),x=e=>{F(e,mS())};L(b,e=>{M(l).length>1&&e(x)}),w(h);var S=A(h,2),ee=e=>{var i=vS(),o=O(i),s=O(o),c=O(s),u=e=>{F(e,jo(`Docs Overview`))},d=e=>{var n=jo();j(e=>I(n,`Related in ${e??``}`),[()=>t.label.replace(/[-_]/g,` `)]),F(e,n)},f=e=>{var n=jo();j(e=>I(n,`Section: ${e??``}`),[()=>t.label.replace(/[-_]/g,` `)]),F(e,n)};L(c,e=>{n()?e(u):r()?e(d,1):e(f,-1)}),w(s);var p=k(A(s,2));w(o);var m=A(o,2);ps(m,21,()=>M(l),e=>e.slug,(e,t)=>{var n=_S();let r;var i=O(n),o=O(i),s=e=>{F(e,jo(`●`))},c=e=>{F(e,jo(`○`))};L(o,e=>{M(t).slug===Q.currentSlug?e(s):e(c,-1)}),w(i);var l=A(i,2),u=O(l),d=k(u,!0),f=k(A(u,2),!0);w(l);var p=A(l,2),m=e=>{F(e,hS())},h=e=>{var n=gS(),r=k(n);j(()=>I(r,`${M(t).readingTimeMinutes??``}m`)),F(e,n)};L(p,e=>{M(t).slug===Q.currentSlug?e(m):M(t).readingTimeMinutes&&e(h,1)}),w(n),j(()=>{r=sc(n,1,`dmd-crumb-popover-item`,null,r,{selected:M(t).slug===Q.currentSlug}),I(d,M(t).title),I(f,M(t).slug)}),N(`click`,n,()=>{D(a,!1),Q.navigate(M(t).slug)}),F(e,n)}),w(m),w(i),j(()=>{R(i,`aria-label`,`Sections under ${t.label??``}`),I(p,`${M(l).length??``} ${M(l).length===1?`page`:`pages`}`)}),F(e,i)};L(S,e=>{M(a)&&M(l).length>0&&e(ee)}),w(m),yl(m,e=>D(c,e),()=>M(c)),j(()=>{g=sc(h,1,`dmd-nav-crumb dmd-crumb`,null,g,{current:r(),"has-paths":M(l).length>0,open:M(a)}),R(h,`aria-expanded`,M(a)),R(h,`aria-haspopup`,M(l).length>0?`menu`:void 0),R(h,`tabindex`,i()?0:-1),R(h,`title`,n()?`Documentation home`:t.label)}),fo(`mouseenter`,m,u),fo(`mouseleave`,m,d),N(`keydown`,m,p),N(`click`,h,f),F(e,m),dn()}po([`keydown`,`click`]);var xS=[`default`,`markdown`,`terminal`,`book`,`minimal`],SS={default:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#4f46e5"/><stop offset="100%" stop-color="#7c3aed"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-bg)"/><path d="M9 5h8.5l6.5 6.5V25a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z" fill="#ffffff" fill-opacity="0.16" stroke="#ffffff" stroke-width="1.8" stroke-linejoin="round"/><path d="M17.5 5v5a1.5 1.5 0 0 0 1.5 1.5h5" stroke="#ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" fill="none"/><path d="M16 12.5v9.5m-3.5-3.5 3.5 3.5 3.5-3.5" stroke="#ffffff" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,markdown:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-md" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#1e293b"/><stop offset="100%" stop-color="#0f172a"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-md)" stroke="#38bdf8" stroke-width="1.2" stroke-opacity="0.35"/><path d="M6.5 21V11h3l3 4.5 3-4.5h3v10" fill="none" stroke="#f8fafc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22.5 11v10m-3-3 3 3 3-3" fill="none" stroke="#38bdf8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,terminal:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-term" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#0f172a"/><stop offset="100%" stop-color="#020617"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-term)" stroke="#10b981" stroke-width="1.2" stroke-opacity="0.4"/><circle cx="8" cy="8" r="1.5" fill="#ef4444" opacity="0.85"/><circle cx="12.5" cy="8" r="1.5" fill="#f59e0b" opacity="0.85"/><circle cx="17" cy="8" r="1.5" fill="#10b981" opacity="0.85"/><path d="M8.5 15.5l5 4-5 4" fill="none" stroke="#10b981" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/><line x1="16.5" y1="23.5" x2="23.5" y2="23.5" stroke="#38bdf8" stroke-width="2.2" stroke-linecap="round"/></svg>`,book:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-book" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#2563eb"/><stop offset="100%" stop-color="#1d4ed8"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-book)"/><path d="M16 11.5c-2.8-1.8-6.5-1.8-9.5 0v11c3-1.4 6.7-1.4 9.5 0m0-11c2.8-1.8 6.5-1.8 9.5 0v11c-3-1.4-6.7-1.4-9.5 0M16 11.5v11" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 7.5v2.5" stroke="#93c5fd" stroke-width="2" stroke-linecap="round"/></svg>`,minimal:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><linearGradient id="dmd-fav-min-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#18181b"/><stop offset="100%" stop-color="#09090b"/></linearGradient><linearGradient id="dmd-fav-min-accent" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#38bdf8"/><stop offset="100%" stop-color="#818cf8"/></linearGradient></defs><rect width="32" height="32" rx="7" fill="url(#dmd-fav-min-bg)" stroke="#27272a" stroke-width="1.2"/><polygon points="16,6 25,11.2 25,20.8 16,26 7,20.8 7,11.2" fill="none" stroke="url(#dmd-fav-min-accent)" stroke-width="2" stroke-linejoin="round"/><circle cx="16" cy="16" r="3.5" fill="url(#dmd-fav-min-accent)"/></svg>`};function CS(e){let t=e.replace(/\s+/g,` `).trim();return typeof Buffer<`u`?`data:image/svg+xml;base64,${Buffer.from(t,`utf-8`).toString(`base64`)}`:typeof btoa<`u`?`data:image/svg+xml;base64,${btoa(t)}`:`data:image/svg+xml;utf8,${encodeURIComponent(t)}`}var wS={default:CS(SS.default),markdown:CS(SS.markdown),terminal:CS(SS.terminal),book:CS(SS.book),minimal:CS(SS.minimal)},TS=wS.default;function ES(e){return typeof e==`string`&&xS.includes(e)}function DS(e){if(!e||e===`data:,`)return TS;let t=e.trim();return ES(t)?wS[t]:t}var OS=`dmd-splash`,kS=`dmd-splash-hidden`,AS=`dmd-splash-active`,jS=`__DOCMEDOWN_SPLASH_START__`,MS=450;function NS(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}var PS=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;function FS(e){let t=e?.trim();return t&&PS.test(t)?t:void 0}function IS(e){let t=e?.trim();if(!t||t.length>512||/[<>"'`]/.test(t))return;let n=t.toLowerCase();if(!(n.startsWith(`javascript:`)||n.startsWith(`data:text/html`)||n.startsWith(`vbscript:`))&&(/^(https?:\/\/|data:image\/|\.\.?\/|#|\/[^/]|[^:/?#]+\/)/i.test(t)||/^[^:/?#\s]+\.[a-z0-9]+/i.test(t)||/^[\w\-.]+$/i.test(t)))return t}function LS(e,t){let n=FS(e),r=FS(t),i=[];return n&&i.push(`:root{--dmd-splash-accent:${n}}`),(n||r)&&i.push(`:root[data-theme=dark]{--dmd-splash-accent:${r??n}}`),i.length>0?`<style>${i.join(``)}</style>`:``}var RS=`<style>
|
|
376
376
|
html.dmd-splash-active{overflow:hidden}
|
|
377
377
|
html,body{margin:0}
|
|
378
378
|
:root{--dmd-splash-bg:#f7f7f5;--dmd-splash-surface:#ffffff;--dmd-splash-line:#ddded8;--dmd-splash-ink:#1a1d21;--dmd-splash-muted:#788089;--dmd-splash-bone:#e4e6e3;--dmd-splash-shine:#ffffff;--dmd-splash-accent:#315cf5;--dmd-splash-code:#16181d;--dmd-splash-code-head:#101216;--dmd-splash-code-line:#262b33;--dmd-splash-navh:68px;--dmd-splash-radius:10px;--dmd-splash-radius-sm:6px}
|
|
@@ -488,17 +488,17 @@ html,body{margin:0}
|
|
|
488
488
|
:root[data-dmd-motion=reduced] #dmd-splash,:root[data-dmd-motion=off] #dmd-splash{transition:none}
|
|
489
489
|
:root[data-dmd-motion=reduced] .dmd-splash-bone::after,:root[data-dmd-motion=off] .dmd-splash-bone::after{display:none}
|
|
490
490
|
:root[data-dmd-motion=reduced] .dmd-splash-progress::after,:root[data-dmd-motion=off] .dmd-splash-progress::after{animation:none}
|
|
491
|
-
</style>`,LS=`<script>(function(){try{var h=document.documentElement,l=window.localStorage,m=l&&l.getItem("dmd-color-mode"),f=l&&l.getItem("dmd-theme-family"),n=l&&l.getItem("dmd-theme-density"),mot=l&&l.getItem("dmd-motion");if(m!=="light"&&m!=="dark"&&m!=="auto")m="auto";if(["atlas","blueprint","terminal","editorial"].indexOf(f)<0)f="atlas";if(n!=="comfortable"&&n!=="compact")n="comfortable";if(mot!=="reduced"&&mot!=="off")mot="full";var d=m==="dark"||(m==="auto"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches),v=d?"dark":"light";h.setAttribute("data-theme",v);h.setAttribute("data-dmd-mode",v);h.setAttribute("data-dmd-theme",f);h.setAttribute("data-dmd-density",n);h.setAttribute("data-dmd-motion",mot);h.style.colorScheme=v;var isMac=/^mac/i.test((navigator.userAgentData&&navigator.userAgentData.platform)||navigator.platform||navigator.userAgent||"");h.setAttribute("data-dmd-os",isMac?"mac":"other");h.className+=" ${kS}";window.${AS}=Date.now();window.setTimeout(function(){var s=document.getElementById("${DS}");if(!s)return;s.className+=" ${OS}";s.setAttribute("aria-hidden","true");h.className=h.className.replace(" ${kS}","");window.setTimeout(function(){s.parentNode&&s.parentNode.removeChild(s)},450)},9000)}catch(e){}})();<\/script>`;function RS(e={}){return`${IS}${FS(e.accent,e.accentDark)}${LS}<noscript><style>#${DS}{display:none!important}html.dmd-splash-active{overflow:auto!important}</style></noscript>`}function zS({name:e=`Documentation`,tagline:t,version:n,logo:r,logoDark:i,logoAlt:a,searchPlaceholder:o}={}){let s=e.trim()||`Documentation`,c=jS(s),l=PS(r),u=PS(i),d=jS((a??s).trim()||s),f=l?`<img class="dmd-splash-logo dmd-splash-logo-light" src="${jS(l)}" alt="${d}" decoding="async" />`+(u?`<img class="dmd-splash-logo dmd-splash-logo-dark" src="${jS(u)}" alt="${d}" decoding="async" />`:``):`<span class="dmd-splash-mark" aria-hidden="true"><svg viewBox="0 0 32 32" fill="none"><path d="M10 4.5h8.6c.4 0 .8.2 1.1.5l4.3 4.3c.3.3.5.7.5 1.1V25.5a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V6.5a2 2 0 0 1 2-2Z"/><path d="M18.7 4.7v3.6a2 2 0 0 0 2 2h3.6"/><path d="M12 15h8"/><path d="M12 19.5h8"/><path d="M12 24h5"/></svg></span>`,p=n?.trim().replace(/^v/i,``).slice(0,24)??``,m=p?`<span class="dmd-splash-version">v${jS(p)}</span>`:``,h=t?.trim().slice(0,220)??``,g=h?`<p class="dmd-splash-desc">${jS(h)}</p>`:`<span class="dmd-splash-bone w70"></span>`,_=o?.trim()||`Search docs…`;return`<div id="${DS}" role="status" aria-live="polite" aria-busy="true" aria-label="Loading ${c}"><div class="dmd-splash-bar"><div class="dmd-splash-brand">${f}<span class="dmd-splash-name">${c}</span>${m}</div><div class="dmd-splash-search" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg><span class="dmd-splash-search-mac">${jS(_.replace(/Ctrl\+?K/gi,`⌘K`))}</span><span class="dmd-splash-search-win">${jS(_.replace(/⌘K/g,`Ctrl K`).replace(/⌘/g,`Ctrl`))}</span><kbd></kbd></div><div class="dmd-splash-actions" aria-hidden="true"><i></i><i></i><i class="dmd-splash-action-pill"></i><i class="dmd-splash-action-pill"></i><i></i></div><span class="dmd-splash-progress" aria-hidden="true"></span></div><div class="dmd-splash-body" aria-hidden="true"><div class="dmd-splash-nav"><span class="dmd-splash-nav-label">Documentation</span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item dmd-splash-nav-active"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span></span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w50"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span></span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w40"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span></span></div><div class="dmd-splash-main-wrapper"><div class="dmd-splash-article"><div class="dmd-splash-crumb-row"><span class="dmd-splash-crumb" style="width:44px"></span><span class="dmd-splash-crumb-sep"></span><span class="dmd-splash-crumb current"></span></div><h1 class="dmd-splash-doc-title">${c}</h1>${g}<div class="dmd-splash-meta"><span class="dmd-splash-bone" style="width:72px"></span><span class="dmd-splash-bone" style="width:54px"></span></div><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w80"></span><span class="dmd-splash-bone w70"></span><div class="dmd-splash-callout"><span class="dmd-splash-bone w30"></span><span class="dmd-splash-bone w70"></span></div><span class="dmd-splash-h2" style="width:38%"></span><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w70"></span><div class="dmd-splash-code"><div class="dmd-splash-code-head"><i></i><i></i><i></i></div><div class="dmd-splash-code-body"><span class="dmd-splash-bone" style="width:45%"></span><span class="dmd-splash-bone" style="width:70%"></span><span class="dmd-splash-bone" style="width:55%"></span><span class="dmd-splash-bone" style="width:62%"></span></div></div></div><div class="dmd-splash-toc"><div class="dmd-splash-toc-header"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="8" x2="21" y1="6" y2="6"/><line x1="8" x2="21" y1="12" y2="12"/><line x1="8" x2="21" y1="18" y2="18"/><line x1="3" x2="3.01" y1="6" y2="6"/><line x1="3" x2="3.01" y1="12" y2="12"/><line x1="3" x2="3.01" y1="18" y2="18"/></svg><span class="dmd-splash-toc-label">On this page</span></div><div class="dmd-splash-toc-list"><span class="dmd-splash-bone dmd-splash-toc-active" style="width:72%"></span><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w70"></span><span class="dmd-splash-bone w80"></span><span class="dmd-splash-bone w60"></span></div></div></div></div><span class="dmd-splash-sr">Loading documentation…</span></div>`}var BS=null;function VS(){if(typeof document>`u`)return;let e=document.getElementById(DS);if(!e||e===BS||e.classList.contains(`dmd-splash-hidden`))return;BS=e;let t=window[AS],n=typeof t==`number`?Date.now()-t:950,r=Math.max(0,950-n);window.setTimeout(()=>{document.documentElement.classList.remove(kS),e.classList.add(OS),e.setAttribute(`aria-hidden`,`true`),window.setTimeout(()=>e.remove(),450)},r)}var HS=`data-docmedown-runtime`,US=`docmedown:offline-link-unavailable`;function WS(e){return`${e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`documentation`}-offline.html`}function GS(){return typeof window>`u`?!1:window.location.protocol===`file:`||!!window.__DOCMEDOWN_OFFLINE__}function KS(){return typeof window>`u`?!1:!!window.__DOCMEDOWN_OFFLINE__}function qS(e=`That link is unavailable in offline documentation.`){typeof window>`u`||window.dispatchEvent(new CustomEvent(US,{detail:e}))}function JS(e){let t=``,n=32768;for(let r=0;r<e.length;r+=n)t+=String.fromCharCode(...e.subarray(r,r+n));return btoa(t)}function YS(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}function XS(e,t,n={},r){let i=`(async()=>{try{const b=Uint8Array.from(atob(document.getElementById("d").textContent.trim()),c=>c.charCodeAt(0)),s=await new Response(new Blob([b]).stream().pipeThrough(new DecompressionStream("gzip"))).text(),e=JSON.parse(s);if(e.version!==2)throw new Error("Unsupported offline format");window.__DOCMEDOWN_OFFLINE__=true;window.__DOCMEDOWN_DATA__=e.data;window.__DOCMEDOWN_CONFIG__=e.data.manifest.config;const u=URL.createObjectURL(new Blob([e.runtime],{type:"text/javascript"}));window.__DOCMEDOWN_RUNTIME_URL__=u;const j=document.createElement("script");j.src=u;j.onerror=()=>{URL.revokeObjectURL(u);throw new Error("Runtime bootstrap failed")};document.head.appendChild(j)}catch(e){var p=document.getElementById("${DS}");if(p){p.className+=" ${OS}";p.setAttribute("aria-hidden","true");setTimeout(function(){p.parentNode&&p.parentNode.removeChild(p)},600)}var h=document.documentElement;h.className=h.className.replace(" ${kS}","");document.getElementById("dmd-app").textContent="Could not open this offline documentation copy: "+e.message}})();`,a=YS(ES(r)),o=` type="image/svg+xml"`;return a.startsWith(`data:image/png`)||/\.png($|\?)/i.test(a)?o=` type="image/png"`:(a.startsWith(`data:image/x-icon`)||/\.ico($|\?)/i.test(a))&&(o=` type="image/x-icon"`),`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon"${o} href="${a}"><title>${YS(t)}</title>${RS(n)}</head><body>${zS({name:t,...n})}<div id="dmd-app"></div><script id="d" type="application/octet-stream">${e}<\/script><script>${i}<\/script></body></html>`}async function ZS(e){if(typeof CompressionStream>`u`)throw Error(`This browser does not support local gzip compression.`);let t=new Blob([e]).stream().pipeThrough(new CompressionStream(`gzip`));return new Uint8Array(await new Response(t).arrayBuffer())}function QS(){return document.querySelector(`script[${HS}]`)||([...document.scripts].find(e=>/docmedown(?:\.iife)?\.js(?:[?#].*)?$/i.test(e.src))??null)}async function $S(e=!1){let t=QS();if(!t?.src)throw Error(`The current DocMeDown runtime script could not be located.`);let n=await fetch(t.src,{credentials:`same-origin`,cache:`force-cache`});if(!n.ok)throw Error(`Could not read the current DocMeDown runtime (${n.status}).`);let r=await n.text();if(e&&!r.includes(`DocMeDownMermaid`))try{let e=new URL(`docmedown-mermaid.js`,t.src).href,n=await fetch(e,{credentials:`same-origin`,cache:`force-cache`});if(n.ok){let e=await n.text();r=`${r}\n;${e}`}}catch{}return r}async function eC(){if(GS())throw Error(`This documentation is already an offline copy.`);let e=window.__DOCMEDOWN_DATA__;if(!e?.manifest||!e.docs)throw Error(`This site has no embedded documentation corpus to export. Run a DocMeDown build first.`);let t=await $S(Object.values(e.docs).some(e=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(e))||!!(e.nestedSites&&Object.values(e.nestedSites).some(e=>Object.values(e.docs).some(e=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(e))))),n=await ZS(JSON.stringify({version:2,data:e,runtime:t})),r=ES(e.manifest.config.theme?.favicon),i=XS(JS(n),e.manifest.config.name||`Documentation`,{tagline:e.manifest.config.tagline,version:e.manifest.config.version,logo:e.manifest.config.theme?.logo?.light,logoDark:e.manifest.config.theme?.logo?.dark,logoAlt:e.manifest.config.theme?.logo?.alt,accent:e.manifest.config.theme?.accentColor,accentDark:e.manifest.config.theme?.accentColorDark},r);return{blob:new Blob([i],{type:`text/html;charset=utf-8`}),filename:WS(e.manifest.config.name||`Documentation`)}}async function tC(){let{blob:e,filename:t}=await eC(),n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.hidden=!0,document.body.appendChild(r),r.click(),r.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),1e3)}function nC(){if(typeof window>`u`)return null;let e=window.__DOCMEDOWN_DATA__;return e?.nestedSites&&typeof e.nestedSites==`object`?e.nestedSites:null}function rC(e){if(!e)return!1;let t=e.trim().toLowerCase();return t.startsWith(`#`)||t.startsWith(`http://`)||t.startsWith(`https://`)||t.startsWith(`mailto:`)||t.startsWith(`blob:`)||t.startsWith(`data:`)||t.startsWith(`javascript:`)?!1:t.split(`#`)[0].split(`?`)[0].endsWith(`.html`)}function iC(e,t){if(!t)return null;let n=e.trim().replace(/^\.?\//,``).split(`#`)[0].split(`?`)[0].replace(/\/index\.html?$/i,``).replace(/\.html?$/i,``).replace(/\/+$/,``);return n?t[n]?n:Object.keys(t).find(e=>n.endsWith(`/${e}`))??null:null}var aC=new Map;async function oC(e,t){let n=nC()?.[e];if(!n)throw Error(`This offline copy does not embed the documentation site "${e}".`);let r=aC.get(e);if(!r){let t=window.__DOCMEDOWN_RUNTIME_URL__;if(!t)throw Error(`This offline copy predates nested site embedding. Rebuild it with the current DocMeDown version.`);let i=await(await fetch(t)).text(),a={version:2,data:{manifest:n.manifest,docs:n.docs,componentsSource:n.componentsSource},runtime:i},o=await ZS(JSON.stringify(a)),s=ES(n.manifest.config?.theme?.favicon),c=XS(JS(o),n.name||`Documentation`,{tagline:n.manifest.config?.tagline,version:n.manifest.config?.version,logo:n.manifest.config?.theme?.logo?.light,logoDark:n.manifest.config?.theme?.logo?.dark,logoAlt:n.manifest.config?.theme?.logo?.alt,accent:n.manifest.config?.theme?.accentColor,accentDark:n.manifest.config?.theme?.accentColorDark},s);r=URL.createObjectURL(new Blob([c],{type:`text/html;charset=utf-8`})),aC.set(e,r)}let i=t?t.indexOf(`#`):-1;window.location.href=i>=0?`${r}${t.substring(i)}`:r}function sC(e){if(e===null)return;if(e===``||e.toLowerCase()===`true`)return!0;if(e.toLowerCase()===`false`)return!1;if(e.toLowerCase()===`null`)return null;if(e.toLowerCase()===`undefined`)return;if(/^-?\d+(\.\d+)?$/.test(e.trim())){let t=Number(e.trim());if(!Number.isNaN(t))return t}let t=e.trim();if(t.startsWith(`{`)&&t.endsWith(`}`)||t.startsWith(`[`)&&t.endsWith(`]`))try{return JSON.parse(t)}catch{}return e}function cC(e){return e.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase())}async function lC(e){let t=typeof window<`u`?window:globalThis,n=t.__DOCMEDOWN_REACT__,r=e?.React||n?.React||t.React,i=e?.ReactDOM||n?.ReactDOM||t.ReactDOM;if(!r)try{r=await import(`react`)}catch{r=(await import(`react`)).default}if(!i)try{i=await import(`react-dom/client`)}catch{try{i=await import(`react-dom`)}catch{}}let a=e?.createRoot||i?.createRoot||n?.createRoot||(i?.default?i.default.createRoot:void 0),o=e?.createElement||r?.createElement||n?.createElement||(r?.default?r.default.createElement:void 0);if(!a||!o)throw Error(`[DocMeDown] ReactBridge: could not resolve React.createElement and ReactDOM.createRoot. Ensure React is available.`);return{React:r,ReactDOM:i,createRoot:a,createElement:o}}function uC(e,t={}){return class extends HTMLElement{_root=null;_container=null;_observer=null;_propsStore={};_mounted=!1;connectedCallback(){if(!this._mounted){if(this._mounted=!0,t.shadowRoot){let e=this.attachShadow({mode:`open`});this._container=document.createElement(`div`),this._container.className=`dmd-react-host`,e.appendChild(this._container)}else this._container=document.createElement(`div`),this._container.className=`dmd-react-host`,this.appendChild(this._container);this.mountPromise=this.mountReact(),typeof MutationObserver<`u`&&(this._observer=new MutationObserver(()=>{this.updatePropsAndRender()}),this._observer.observe(this,{attributes:!0}))}}mountPromise=null;disconnectedCallback(){if(this._mounted=!1,this._observer&&=(this._observer.disconnect(),null),this._root){try{this._root.unmount()}catch(e){console.warn(`[DocMeDown] Error unmounting React component:`,e)}this._root=null}}collectProps(){let e={...t.defaultProps||{},...this._propsStore};for(let t=0;t<this.attributes.length;t++){let n=this.attributes[t];if(n.name.startsWith(`data-dmd-`)||n.name===`class`||n.name===`style`||n.name===`id`)continue;let r=cC(n.name);this._propsStore[r]===void 0&&(e[r]=sC(n.value))}let n=(e,t)=>{let n=new CustomEvent(e,{detail:t,bubbles:!0,composed:!0});this.dispatchEvent(n)};for(let t of Object.keys(e))if(/^on[A-Z]/.test(t)&&typeof e[t]!=`function`){let r=t.slice(2).toLowerCase();e[t]=e=>n(r,e)}return e}async mountReact(){let n=this._container;if(n)try{let{createRoot:r,createElement:i}=await lC(t);if(!this._mounted)return;let a=r(n);this._root=a;let o=this.collectProps();a.render(i(e,o))}catch(e){console.error(`[DocMeDown] Failed to mount React component bridge:`,e),this._container&&(this._container.innerHTML=`<div style="color:var(--dmd-danger, #ef4444);font-size:0.875rem;padding:0.5rem;border:1px solid currentColor;border-radius:4px;">Failed to render React component: ${e instanceof Error?e.message:String(e)}</div>`)}}async updatePropsAndRender(){if(!(!this._root||!this._container))try{let{createElement:n}=await lC(t),r=this.collectProps();this._root.render(n(e,r))}catch(e){console.warn(`[DocMeDown] Error updating React component props:`,e)}}setProp(e,t){this._propsStore[e]=t,this.updatePropsAndRender()}getProp(e){return this._propsStore[e]}}}function dC(e,t={}){return class n extends e{connectedCallback(){let e=Object.getPrototypeOf(n.prototype);if(e&&typeof e.connectedCallback==`function`&&e.connectedCallback.call(this),this.syncAttributesToProperties(),t.bubbleEvents)for(let e of t.bubbleEvents)this.addEventListener(e,t=>{(!t.bubbles||!t.composed)&&(t.stopPropagation(),this.dispatchEvent(new CustomEvent(e,{detail:t.detail,bubbles:!0,composed:!0})))})}syncAttributesToProperties(){for(let e=0;e<this.attributes.length;e++){let t=this.attributes[e];if(t.name.startsWith(`data-dmd-`)||t.name===`class`||t.name===`style`||t.name===`id`)continue;let n=cC(t.name),r=sC(t.value);try{this[n]=r}catch{}}}}}function fC(e,t){return typeof window<`u`&&typeof customElements<`u`&&(customElements.get(e)||customElements.define(e,t)),e}function pC(e,t){if(t){if(/\.svelte$/i.test(t))return`svelte`;if(/\.(tsx|jsx)$/i.test(t))return`react`;if(/\.(lit\.ts|lit\.js|wc\.ts|wc\.js)$/i.test(t))return`element`}if(typeof e==`string`){let t=e;if(/<svelte:options|<script|<style|from\s+['"]svelte/i.test(t))return`svelte`;if(/from\s+['"]lit|extends\s+LitElement/i.test(t))return`element`;if(/from\s+['"]react['"]|<[A-Z][A-Za-z0-9_]*|\buseState\b|\buseEffect\b/i.test(t))return`react`}if(typeof e==`function`){let t=e;if(t.prototype&&(t.prototype instanceof(typeof HTMLElement<`u`?HTMLElement:Object)||typeof t.prototype.connectedCallback==`function`||typeof t.prototype.render==`function`)&&(t.styles!==void 0||t.properties!==void 0||typeof t.prototype.connectedCallback==`function`))return`element`;if(t.prototype&&(t.prototype.isReactComponent||t.prototype.isPureReactComponent)||t.$$typeof===Symbol.for(`react.element`)||t.$$typeof===Symbol.for(`react.memo`)||t.$$typeof===Symbol.for(`react.forward_ref`)||/^[A-Z]/.test(t.name))return`react`}return`svelte`}var mC=class e{static instance;tags=new Map;static getInstance(){return e.instance||=new e,e.instance}constructor(){if(typeof window<`u`){let e=window.__SMD_COMPONENTS__??window.__DMD_COMPONENTS__;e&&typeof e==`object`&&this.registerMultiple(e)}}register(e,t,r){typeof t==`string`&&!r&&(r=t,t=void 0);let i=r||n.r(e);return t&&typeof window<`u`&&typeof customElements<`u`&&(customElements.get(i)||customElements.define(i,t)),this.tags.set(e,i),this.tags.set(e.toLowerCase(),i),this.tags.set(i,i),i}registerReact(e,t,r){let i=r||n.r(e),a=uC(t);return this.register(e,a,i)}registerWebComponent(e,t,r){let i=r||n.r(e),a=dC(t);return this.register(e,a,i)}registerMultiple(e){for(let[t,n]of Object.entries(e))this.register(t,n)}resolveTag(e){let t=e.toLowerCase();return this.tags.get(e)??this.tags.get(t)??null}getAll(){return Object.fromEntries(this.tags)}async loadDmdDirectory(e=``){if(typeof window>`u`)return;let t=window;if(!t.__DOCMEDOWN_COMPONENTS_READY__&&t.__DOCMEDOWN_DATA__?.componentsSource){let{linkSveltePrimitives:e}=await Promise.resolve().then(()=>require("./svelte-runtime-Brc440dp.js")),n=t.__DOCMEDOWN_DATA__.componentsSource,r=e(n),i=new Blob([r],{type:`text/javascript`}),a=URL.createObjectURL(i);t.__DOCMEDOWN_COMPONENTS_READY__=import(a).then(e=>(setTimeout(()=>URL.revokeObjectURL(a),5e3),e.default||e)).catch(e=>{throw setTimeout(()=>URL.revokeObjectURL(a),5e3),console.error(`[DocMeDown] Error evaluating custom components module:`,e),e})}let n=t.__DOCMEDOWN_COMPONENTS_READY__;if(n&&typeof n.then==`function`)try{let e=await n;if(e&&typeof e==`object`){this.registerMultiple(e);return}}catch(e){console.warn(`[DocMeDown] Failed to load embedded custom components:`,e)}let r=e?`${e.replace(/\/$/,``)}/.dmd`:`.dmd`,i=t.__DOCMEDOWN_DATA__?.manifest?.customComponents||[];if(i.length>0){let{loadAndRegisterSvelteComponent:e}=await Promise.resolve().then(()=>require("./svelte-runtime-Brc440dp.js"));for(let t of i){let n=!1;try{if((await fetch(`${r}/${t}.svelte`)).ok){let i=await e(`${r}/${t}.svelte`,t);this.register(t,i),n=!0}}catch{}if(!n)for(let e of[`.tsx`,`.jsx`])try{let i=await fetch(`${r}/${t}${e}`);if(i.ok){let r=await i.text(),{compileTsx:a}=await Promise.resolve().then(()=>require("./ts-compiler-U7pTMJjY.js")),o=await a(r,{filename:`${t}${e}`}),s=new Blob([o],{type:`text/javascript`}),c=URL.createObjectURL(s);try{let e=await import(c),r=e.default||e[t]||e;this.registerReact(t,r),n=!0;break}finally{URL.revokeObjectURL(c)}}}catch(n){console.warn(`[DocMeDown] Could not dynamically load React component ${t}${e}:`,n)}if(!n)for(let e of[`.ts`,`.js`])try{let i=await import(`${r}/${t}${e}`);if(i){let e=i.default||i[t]||i;if(typeof e==`function`){this.registerWebComponent(t,e),n=!0;break}}}catch{}}}for(let e of[`${r}/setup.js`,`${r}/languages.js`,`${r}/components.js`,`${r}/index.js`])try{let t=await import(e);if(t){let e=t.default||t;if(e&&typeof e==`object`&&Object.keys(e).length>0){this.registerMultiple(e),console.log(`[DocMeDown] Loaded custom .dmd components:`,Object.keys(e));return}}}catch{}}};function hC(e,t,n){return mC.getInstance().register(e,t,n)}function gC(e,t,n){return mC.getInstance().registerReact(e,t,n)}function _C(e,t,n){return mC.getInstance().registerWebComponent(e,t,n)}var vC=P(`<div class="dmd-markdown-body" role="none"></div>`);function yC(e,t){un(t,!0);let n;function r(e){let t=mC.getInstance(),n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(let e=r.nextNode();e!==null;e=r.nextNode()){let r=e;if(r.closest?.(`.dmd-code-block-wrapper, pre, .dmd-diagram-host, .dmd-table-toolbar, .dmd-table-copy, .dmd-table-copy-menu`)||r.classList?.contains(`dmd-copy-btn`)||r.classList?.contains(`dmd-copy-selected-btn`)||r.classList?.contains(`dmd-table-copy-btn`)||r.classList?.contains(`dmd-table-copy-item`)||r.hasAttribute?.(`data-dmd-copy`)||r.hasAttribute?.(`data-dmd-copy-selected`)||r.hasAttribute?.(`data-dmd-table-toggle`)||r.hasAttribute?.(`data-dmd-table-copy`))continue;let i=t.resolveTag(r.tagName.toLowerCase());i&&n.push({el:r,tag:i})}for(let e=n.length-1;e>=0;e--){let{el:t,tag:r}=n[e];if(t.tagName.toLowerCase()===r)continue;let i=document.createElement(r);for(let e of Array.from(t.attributes)){let t=/^\{([^{}]*)\}$/.exec(e.value);if(t){let n=t[1].trim();if(/^(false|null|undefined)$/i.test(n))continue;let r=n.toLowerCase()===`true`?``:n;if(i.setAttribute(e.name,r),n!==``&&!Number.isNaN(Number(n)))try{i[e.name]=Number(n)}catch{}continue}if(i.setAttribute(e.name,e.value),e.value!==``&&!Number.isNaN(Number(e.value)))try{i[e.name]=Number(e.value)}catch{}}for(;t.firstChild;)i.appendChild(t.firstChild);t.replaceWith(i)}for(let t of Array.from(e.querySelectorAll(`.dmd-diagram-host`))){let e=t.getAttribute(`data-dmd-diagram`);if(!e)continue;let n=document.createElement(`dmd-mermaid`);n.setAttribute(`source`,e),t.replaceWith(n)}}function i(){if(!n||!t.html||!KS())return;let e=nC();n.querySelectorAll(`a[href]`).forEach(t=>{let n=t.getAttribute(`href`)||``;if(rC(n)){if(iC(n,e)){t.setAttribute(`data-dmd-embedded-link`,`true`);return}t.classList.add(`dmd-link-disabled`),t.setAttribute(`aria-disabled`,`true`),t.setAttribute(`title`,`Unavailable in offline documentation`)}})}let a=new WeakMap;async function o(e,t=!1){let n=e.closest(`.dmd-code-block-wrapper`);if(!n)return;let r=t?`.dmd-code-line-active`:`.dmd-code-line`,i=n.querySelectorAll(r);if(!i.length)return;let o=Array.from(i).map(e=>e.textContent??``).join(`
|
|
492
|
-
`),s=!1;try{if(navigator.clipboard?.writeText)await navigator.clipboard.writeText(o),s=!0;else throw Error(`Clipboard API unavailable`)}catch{let e=document.createElement(`textarea`);e.value=o,e.setAttribute(`readonly`,``),e.style.position=`fixed`,e.style.opacity=`0`,document.body.appendChild(e),e.select();try{s=document.execCommand(`copy`)}finally{e.remove()}}clearTimeout(a.get(e)),e.classList.toggle(`copied`,s),e.title=s?`Copied!`:`Failed`,a.set(e,setTimeout(()=>{e.classList.remove(`copied`),e.title=t?`Copy highlighted lines`:`Copy code`},2e3))}async function s(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return t.remove(),n}catch{return!1}}function c(){n&&(n.querySelectorAll(`[data-dmd-table-toggle]`).forEach(e=>{e.setAttribute(`aria-expanded`,`false`)}),n.querySelectorAll(`.dmd-table-copy-menu`).forEach(e=>{e.setAttribute(`hidden`,``)}))}function l(e){let t=e.closest(`.dmd-table-copy`)?.querySelector(`.dmd-table-copy-menu`);if(!t)return;let n=e.getAttribute(`aria-expanded`)===`true`;c(),n||(e.setAttribute(`aria-expanded`,`true`),t.removeAttribute(`hidden`),t.querySelector(`[role='menuitem']`)?.focus())}async function u(e,t){let n=e.closest(`[data-dmd-table]`),r=n?.querySelector(`table.dmd-table`),i=n?.querySelector(`[data-dmd-table-toggle]`);if(c(),!r||!i)return;i.focus();let o=await s(Lf(Rf(r),t)),l=i.querySelector(`.dmd-table-copy-label`),u=i.querySelector(`.dmd-table-copy-btn-text`);clearTimeout(a.get(i)),i.classList.toggle(`copied`,o),i.classList.toggle(`copy-failed`,!o),l&&(l.textContent=o?`Copied!`:`Try again`),u&&(u.textContent=o?`Copied!`:`Try again`);let d=n?.querySelector(`[data-dmd-table-status]`);d&&(d.textContent=o?`Table copied as ${t===`markdown`?`Markdown`:t.toUpperCase()}.`:`Could not copy table. Choose a format to try again.`),a.set(i,setTimeout(()=>{i.classList.remove(`copied`),i.classList.remove(`copy-failed`),l&&(l.textContent=`Copy table`),u&&(u.textContent=`Copy`),d&&(d.textContent=``)},2e3))}Oi(()=>{if(t.html,!n)return;r(n),i();let e=e=>{e.target.closest?.(`.dmd-table-copy`)||c()},a=e=>{let t=e.target,r=t.closest?.(`.dmd-table-copy`);if(!r||!n.contains(r))return;let i=r.querySelector(`[data-dmd-table-toggle]`),a=i?.getAttribute(`aria-expanded`)===`true`;if(e.key===`Escape`&&a)e.preventDefault(),c(),i?.focus();else if(e.key===`Tab`)a&&i?.focus(),c();else if([`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key)){e.preventDefault(),!a&&i&&l(i);let n=Array.from(r.querySelectorAll(`[role='menuitem']`)),o=n.indexOf(t);n[e.key===`Home`?0:e.key===`End`?n.length-1:o<0?e.key===`ArrowUp`?n.length-1:0:(o+(e.key===`ArrowUp`?-1:1)+n.length)%n.length]?.focus()}};return window.addEventListener(`click`,e),window.addEventListener(`keydown`,a),()=>{window.removeEventListener(`click`,e),window.removeEventListener(`keydown`,a)}});function d(e){let n=e.target,r=n.closest?.(`[data-dmd-table-toggle]`);if(r){e.preventDefault(),e.stopPropagation(),l(r);return}let i=n.closest?.(`[data-dmd-table-copy]`);if(i){e.preventDefault(),e.stopPropagation(),u(i,i.getAttribute(`data-dmd-table-copy`));return}if(n.closest?.(`[data-dmd-inline-edit]`)){e.preventDefault(),Q.isEditorOpen=!0;return}let a=n.closest?.(`[data-dmd-copy-selected]`);if(a){e.preventDefault(),o(a,!0);return}let s=n.closest?.(`[data-dmd-copy]`);if(s){e.preventDefault(),o(s,!1);return}let c=n.closest(`a`);if(!c)return;let d=c.getAttribute(`href`);if(d&&!(d.startsWith(`http://`)||d.startsWith(`https://`)||d.startsWith(`mailto:`))){if(KS()&&rC(d)){e.preventDefault();let t=iC(d,nC());if(t){oC(t,d).catch(()=>qS(`This nested documentation site could not be opened from the offline copy.`));return}qS();return}if(d.startsWith(`#/`)){e.preventDefault();let n=d.substring(2),r=n.indexOf(`#`),i=r===-1?n:n.substring(0,r),a=r===-1?``:n.substring(r+1);t.onNavigate?t.onNavigate(i,a):window.location.hash=d}else if(d.startsWith(`#`)){e.preventDefault();let n=d.substring(1);t.onNavigate?t.onNavigate(Q.currentSlug,n):Q.router?.scrollToAnchor(n)}}}var f=vC();ys(f,()=>t.html,!0),w(f),yl(f,e=>n=e,()=>n),N(`click`,f,d),N(`dblclick`,f,e=>{e.target?.closest(`h1, h2, h3, h4, h5, h6, .dmd-callout, .dmd-alert`)&&(Q.isEditorOpen=!0)}),N(`keydown`,f,e=>{e.key===`Enter`&&d(e)}),F(e,f),dn()}po([`click`,`dblclick`,`keydown`]);var bC=P(`<main class="dmd-main-content" id="dmd-main-content" tabindex="-1"><div class="dmd-loading-skeleton" aria-label="Loading document" aria-busy="true"><div class="dmd-skeleton-shimmer dmd-skeleton-header"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-title"></div> <div class="dmd-skeleton-meta"><div class="dmd-skeleton-shimmer dmd-skeleton-badge"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-badge"></div></div> <div class="dmd-skeleton-paragraph"><div class="dmd-skeleton-shimmer dmd-skeleton-line"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-90"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-80"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-60"></div></div> <div class="dmd-skeleton-shimmer dmd-skeleton-card"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-code"></div> <div class="dmd-skeleton-paragraph"><div class="dmd-skeleton-shimmer dmd-skeleton-line"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-90"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-40"></div></div></div></main>`),xC=P(`<main class="dmd-main-content" id="dmd-main-content" tabindex="-1"><div class="dmd-error-container"><div class="dmd-error-code">!</div> <h2 class="dmd-error-title"> </h2> <p class="dmd-error-desc">Return to the overview, then choose another page from the documentation index.</p> <button type="button" class="dmd-btn-primary">Return to Overview</button></div></main>`),SC=P(`<div class="dmd-nav-progress" role="progressbar" aria-label="Loading page"></div>`),CC=P(`<span class="dmd-crumb-sep">/</span> <!>`,1),wC=P(`<span class="dmd-meta-item"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> <span> </span></span>`),TC=P(`<span class="dmd-meta-item dmd-meta-category"> </span>`),EC=P(`<button type="button" class="dmd-meta-tag dmd-clickable-tag"> </button>`),DC=P(`<div class="dmd-edit-page-container"><a target="_blank" rel="noopener noreferrer" class="dmd-edit-link"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"></path><path d="m15 5 4 4"></path></svg> <span>Edit this page on GitHub</span></a></div>`),OC=P(`<button type="button" class="dmd-page-nav-card prev"><span class="dmd-page-nav-sub"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg> Previous</span> <span class="dmd-page-nav-title"> </span></button>`),kC=P(`<div></div>`),AC=P(`<button type="button" class="dmd-page-nav-card next"><span class="dmd-page-nav-sub">Next <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg></span> <span class="dmd-page-nav-title"> </span></button>`),jC=P(`<p class="dmd-footer-copy"> </p>`),MC=P(`<p class="dmd-footer-builtwith">Documented with <a href="https://github.com" target="_blank" rel="noreferrer">DocMeDown</a> ⚡</p>`),NC=P(`<!> <div class="dmd-progress-bar" aria-hidden="true"></div> <main class="dmd-main-content" id="dmd-main-content" tabindex="-1"><div><nav class="dmd-breadcrumbs" aria-label="Breadcrumb"><!> <!></nav> <div class="dmd-content-meta"><!> <!> <!> <button type="button" class="dmd-meta-edit-btn" title="Edit this document (Ctrl+E / ⌘E)" aria-label="Edit document in 2-way editor"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg> <span>Edit</span></button></div></div> <article class="dmd-article"><!></article> <!> <div class="dmd-page-nav"><!> <!></div> <footer class="dmd-footer"><!> <!></footer></main>`,1);function PC(e,t){un(t,!0);let n=E(null);Oi(()=>{let e=!1,t=!1,r=0,i=()=>{if(e=!1,!M(n))return;if(r<=0){M(n).style.setProperty(`--dmd-scroll-progress`,`0`);return}let t=Math.min(1,Math.max(0,window.scrollY/r));M(n).style.setProperty(`--dmd-scroll-progress`,String(t))},a=()=>{t=!1,r=document.documentElement.scrollHeight-window.innerHeight,i()},o=()=>{e||(e=!0,requestAnimationFrame(i))},s=()=>{t||(t=!0,requestAnimationFrame(a))};return a(),window.addEventListener(`scroll`,o,{passive:!0}),window.addEventListener(`resize`,s,{passive:!0}),()=>{window.removeEventListener(`scroll`,o),window.removeEventListener(`resize`,s)}});let r=lr(()=>Q.currentSlug.split(`/`).filter(Boolean)),i=lr(()=>Q.currentDoc),a=lr(()=>Q.config),o=lr(()=>{let e=Q.currentSlug,t=M(a)?.editUrl;if(!t&&M(a)?.source?.type===`github`&&M(a).source.repo){let n=M(a).source.branch||`main`,r=M(a).source.docsDir?`${M(a).source.docsDir.replace(/^\/+|\/+$/g,``)}/`:``;t=`https://github.com/${M(a).source.repo}/edit/${n}/${r}${e}.md`}return t});var s=Mo(),c=pi(s),l=e=>{F(e,bC())},u=e=>{var t=xC(),n=O(t),r=A(O(n),2),i=k(r,!0),a=A(r,4);w(n),w(t),j(()=>I(i,Q.error||`This page is unavailable.`)),N(`click`,a,()=>Q.navigate(`README`)),F(e,t)},d=e=>{var t=NC(),s=pi(t),c=e=>{F(e,SC())};L(s,e=>{Q.isNavigating&&e(c)});var l=A(s,2);yl(l,e=>D(n,e),()=>M(n));var u=A(l,2),d=O(u);let f;var p=O(d),m=O(p);{let e=lr(()=>!Q.isScrolled);yS(m,{label:`Docs`,index:0,isHome:!0,get isScrolled(){return M(e)}})}ps(A(m,2),17,()=>M(r),ls,(e,t,n)=>{var i=CC(),a=A(pi(i),2);{let e=lr(()=>n===M(r).length-1),i=lr(()=>!Q.isScrolled);yS(a,{get label(){return M(t)},index:n+1,get isLast(){return M(e)},get isScrolled(){return M(i)}})}F(e,i)}),w(p);var h=A(p,2),g=O(h),_=e=>{var t=wC(),n=k(A(O(t),2));w(t),j(()=>I(n,`${M(i).readingTimeMinutes??``} min read`)),F(e,t)};L(g,e=>{M(i).readingTimeMinutes&&e(_)});var v=A(g,2),y=e=>{var t=TC(),n=k(t,!0);j(()=>I(n,M(i).frontmatter.category)),F(e,t)};L(v,e=>{M(i).frontmatter?.category&&e(y)});var b=A(v,2),x=e=>{var t=Mo();ps(pi(t),16,()=>M(i).frontmatter.tags,e=>e,(e,t)=>{var n=EC(),r=k(n);j(()=>{R(n,`title`,`View documents tagged with #${t??``}`),R(n,`aria-label`,`View documents tagged with #${t??``}`),I(r,`#${t??``}`)}),N(`click`,n,()=>Q.openTagModal(t)),F(e,n)}),F(e,t)};L(b,e=>{M(i).frontmatter?.tags&&M(i).frontmatter.tags.length>0&&e(x)});var S=A(b,2);w(h),w(d);var ee=A(d,2);ss(O(ee),()=>M(i).slug,e=>{yC(e,{get html(){return M(i).html},onNavigate:(e,t)=>Q.navigate(e,t??``)})}),w(ee);var te=A(ee,2),ne=e=>{var t=DC(),n=k(t);j(()=>R(n,`href`,M(o))),F(e,t)};L(te,e=>{M(o)&&e(ne)});var re=A(te,2),ie=O(re),ae=e=>{var t=OC(),n=k(A(O(t),2),!0);w(t),j(()=>I(n,Q.prevDoc.title)),N(`click`,t,()=>Q.navigate(Q.prevDoc.slug)),F(e,t)},oe=e=>{F(e,kC())};L(ie,e=>{Q.prevDoc?e(ae):e(oe,-1)});var se=A(ie,2),ce=e=>{var t=AC(),n=k(A(O(t),2),!0);w(t),j(()=>I(n,Q.nextDoc.title)),N(`click`,t,()=>Q.navigate(Q.nextDoc.slug)),F(e,t)},le=e=>{F(e,kC())};L(se,e=>{Q.nextDoc?e(ce):e(le,-1)}),w(re);var ue=A(re,2),de=O(ue),fe=e=>{var t=jC(),n=k(t,!0);j(()=>I(n,M(a).footer.copyright)),F(e,t)};L(de,e=>{M(a)?.footer?.copyright&&e(fe)});var pe=A(de,2),me=e=>{F(e,MC())};L(pe,e=>{M(a)?.footer?.showBuiltWith!==!1&&e(me)}),w(ue),w(u),j(()=>f=sc(d,1,`dmd-content-header`,null,f,{"dmd-header-scrolled":Q.isScrolled})),N(`click`,S,()=>Q.isEditorOpen=!0),F(e,t)};L(c,e=>{Q.isLoading?e(l):Q.error||!M(i)?e(u,1):e(d,-1)}),F(e,s),dn()}po([`click`]);var FC=P(`<div class="dmd-editor-target-pill svelte-q838rt"><span class="dmd-editor-target-label svelte-q838rt">Target:</span> <button type="button">Source</button> <button type="button">.preview</button></div>`),IC=P(`<span class="dmd-badge-offline svelte-q838rt" title="Running in self-contained offline mode. Edits save to in-browser session & storage.">Offline Mode</span>`),LC=P(`<button type="button" class="dmd-badge-preview svelte-q838rt" title="Click to switch to Production mode">Preview Mode</button>`),RC=P(`<button type="button" class="dmd-badge-prod svelte-q838rt" title="Click to switch to Preview mode">Production Mode</button>`),zC=P(`<span class="dmd-mode-label svelte-q838rt">Server:</span> <!>`,1),BC=P(`<div class="dmd-editor-pane editor svelte-q838rt"><div class="dmd-editor-textarea-wrapper svelte-q838rt"><textarea class="dmd-editor-textarea svelte-q838rt" placeholder="Type markdown here..." spellcheck="false"></textarea></div></div>`),VC=P(`<div class="dmd-editor-pane frontmatter-pane svelte-q838rt"><div class="dmd-fm-form svelte-q838rt"><h3 class="dmd-pane-title svelte-q838rt">Frontmatter Metadata Form</h3> <p class="dmd-pane-subtitle svelte-q838rt">Directly edit document header metadata with live two-way synchronization.</p> <div class="dmd-fm-grid svelte-q838rt"><div class="dmd-fm-field svelte-q838rt"><label for="fm-title" class="svelte-q838rt">Document Title</label> <input id="fm-title" type="text" placeholder="e.g. Getting Started" class="svelte-q838rt"/></div> <div class="dmd-fm-field svelte-q838rt"><label for="fm-category" class="svelte-q838rt">Category / Section</label> <input id="fm-category" type="text" placeholder="e.g. Guides" class="svelte-q838rt"/></div> <div class="dmd-fm-field full svelte-q838rt"><label for="fm-desc" class="svelte-q838rt">Description (SEO / Social)</label> <input id="fm-desc" type="text" placeholder="Summary of this document..." class="svelte-q838rt"/></div> <div class="dmd-fm-field svelte-q838rt"><label for="fm-tags" class="svelte-q838rt">Tags (comma-separated)</label> <input id="fm-tags" type="text" placeholder="cli, svelte, hmr" class="svelte-q838rt"/></div> <div class="dmd-fm-field svelte-q838rt"><label for="fm-order" class="svelte-q838rt">Navigation Order</label> <input id="fm-order" type="number" placeholder="e.g. 1" class="svelte-q838rt"/></div> <div class="dmd-fm-field checkbox-field full svelte-q838rt"><label class="dmd-checkbox-label svelte-q838rt"><input type="checkbox" class="svelte-q838rt"/> <span>NoIndex (Exclude from Search & LLM indexing)</span></label></div></div></div></div>`),HC=P(`<th class="svelte-q838rt"><div class="dmd-th-cell svelte-q838rt"><input type="text" class="dmd-th-input svelte-q838rt"/> <select class="dmd-th-align svelte-q838rt"><option>Left</option><option>Center</option><option>Right</option></select> <button type="button" class="dmd-cell-del svelte-q838rt" title="Delete column">✕</button></div></th>`),UC=P(`<td class="svelte-q838rt"><input type="text" class="dmd-td-input svelte-q838rt"/></td>`),WC=P(`<tr><!><td class="dmd-td-actions svelte-q838rt"><button type="button" class="dmd-cell-del svelte-q838rt" title="Delete row">✕</button></td></tr>`),GC=P(`<div class="dmd-editor-pane table-pane svelte-q838rt"><div class="dmd-table-builder svelte-q838rt"><div class="dmd-table-toolbar svelte-q838rt"><div class="dmd-table-toolbar-left"><h3 class="dmd-pane-title svelte-q838rt">Table Assistant</h3> <span class="dmd-pane-subtitle svelte-q838rt"> </span></div> <div class="dmd-table-toolbar-actions svelte-q838rt"><button type="button" class="dmd-btn-xs svelte-q838rt">+ Add Column</button> <button type="button" class="dmd-btn-xs svelte-q838rt">+ Add Row</button> <button type="button" class="dmd-btn-primary dmd-btn-xs svelte-q838rt">Insert into Doc</button></div></div> <div class="dmd-table-scroll-wrapper svelte-q838rt"><table class="dmd-builder-table svelte-q838rt"><thead><tr><!><th class="dmd-th-actions svelte-q838rt"></th></tr></thead><tbody></tbody></table></div></div></div>`),KC=P(`<div class="dmd-editor-pane preview svelte-q838rt"><div class="dmd-editor-preview-header svelte-q838rt"><span>Live Render</span></div> <div class="dmd-editor-preview-content svelte-q838rt"><!></div></div>`),qC=P(`<button type="button" class="dmd-btn-warning svelte-q838rt" title="Copy all .preview files to production source">Publish Preview</button> <button type="button" class="dmd-btn-danger svelte-q838rt" title="Delete all staged preview files">Discard Preview</button>`,1),JC=P(`<!> <button type="button" class="dmd-btn-secondary svelte-q838rt">Save to .preview</button> <button type="button" class="dmd-btn-primary svelte-q838rt"> </button>`,1),YC=P(`<button type="button" class="dmd-btn-secondary svelte-q838rt" title="Download edited markdown file (.md) to your computer">Download .md</button> <button type="button" class="dmd-btn-primary svelte-q838rt" title="Save changes to in-memory session and browser storage"> </button>`,1),XC=P(`<div class="dmd-editor-backdrop svelte-q838rt" role="dialog" aria-modal="true" tabindex="-1" aria-label="2-Way Markdown Editor"><div class="dmd-editor-window svelte-q838rt"><div class="dmd-editor-header svelte-q838rt"><div class="dmd-editor-title-group svelte-q838rt"><span class="dmd-editor-icon">✏️</span> <span class="dmd-editor-title">2-Way Markdown Editor</span> <span class="dmd-editor-file-badge svelte-q838rt"> </span></div> <div class="dmd-editor-tab-group svelte-q838rt"><button type="button">Markdown</button> <button type="button">Frontmatter Form</button> <button type="button">Table Assistant</button></div> <div class="dmd-editor-header-controls svelte-q838rt"><!> <button type="button" title="Toggle Split Preview"> </button> <div class="dmd-editor-mode-toggle svelte-q838rt"><!></div> <button type="button" class="dmd-editor-close-btn svelte-q838rt" aria-label="Close Editor">✕</button></div></div> <div><!> <!></div> <div class="dmd-editor-footer svelte-q838rt"><div class="dmd-editor-status svelte-q838rt"><span class="dmd-status-text svelte-q838rt"> </span> <span class="dmd-status-lines"> </span></div> <div class="dmd-editor-actions svelte-q838rt"><!></div></div></div></div>`);function ZC(e,t){un(t,!0);let n=lr(GS),r=E(``),i=E(`source`),a=E(``),o=E(!1),s=E(!0),c=lr(()=>{if(!M(r))return``;try{return tb(M(r),Q.currentSlug).html}catch{return`<p><em>Rendering preview...</em></p>`}}),l=lr(()=>M(r).split(`
|
|
491
|
+
</style>`,zS=`<script>(function(){try{var h=document.documentElement,l=window.localStorage,m=l&&l.getItem("dmd-color-mode"),f=l&&l.getItem("dmd-theme-family"),n=l&&l.getItem("dmd-theme-density"),mot=l&&l.getItem("dmd-motion");if(m!=="light"&&m!=="dark"&&m!=="auto")m="auto";if(["atlas","blueprint","terminal","editorial"].indexOf(f)<0)f="atlas";if(n!=="comfortable"&&n!=="compact")n="comfortable";if(mot!=="reduced"&&mot!=="off")mot="full";var d=m==="dark"||(m==="auto"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches),v=d?"dark":"light";h.setAttribute("data-theme",v);h.setAttribute("data-dmd-mode",v);h.setAttribute("data-dmd-theme",f);h.setAttribute("data-dmd-density",n);h.setAttribute("data-dmd-motion",mot);h.style.colorScheme=v;var isMac=/^mac/i.test((navigator.userAgentData&&navigator.userAgentData.platform)||navigator.platform||navigator.userAgent||"");h.setAttribute("data-dmd-os",isMac?"mac":"other");h.className+=" ${AS}";window.${jS}=Date.now();window.setTimeout(function(){var s=document.getElementById("${OS}");if(!s)return;s.className+=" ${kS}";s.setAttribute("aria-hidden","true");h.className=h.className.replace(" ${AS}","");window.setTimeout(function(){s.parentNode&&s.parentNode.removeChild(s)},${MS})},9000)}catch(e){}})();<\/script>`;function BS(e={}){return`${RS}${LS(e.accent,e.accentDark)}${zS}<noscript><style>#${OS}{display:none!important}html.dmd-splash-active{overflow:auto!important}</style></noscript>`}function VS({name:e=`Documentation`,tagline:t,version:n,logo:r,logoDark:i,logoAlt:a,searchPlaceholder:o}={}){let s=e.trim()||`Documentation`,c=NS(s),l=IS(r),u=IS(i),d=NS((a??s).trim()||s),f=l?`<img class="dmd-splash-logo dmd-splash-logo-light" src="${NS(l)}" alt="${d}" decoding="async" />`+(u?`<img class="dmd-splash-logo dmd-splash-logo-dark" src="${NS(u)}" alt="${d}" decoding="async" />`:``):`<span class="dmd-splash-mark" aria-hidden="true"><svg viewBox="0 0 32 32" fill="none"><path d="M10 4.5h8.6c.4 0 .8.2 1.1.5l4.3 4.3c.3.3.5.7.5 1.1V25.5a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V6.5a2 2 0 0 1 2-2Z"/><path d="M18.7 4.7v3.6a2 2 0 0 0 2 2h3.6"/><path d="M12 15h8"/><path d="M12 19.5h8"/><path d="M12 24h5"/></svg></span>`,p=n?.trim().replace(/^v/i,``).slice(0,24)??``,m=p?`<span class="dmd-splash-version">v${NS(p)}</span>`:``,h=t?.trim().slice(0,220)??``,g=h?`<p class="dmd-splash-desc">${NS(h)}</p>`:`<span class="dmd-splash-bone w70"></span>`,_=o?.trim()||`Search docs…`;return`<div id="${OS}" role="status" aria-live="polite" aria-busy="true" aria-label="Loading ${c}"><div class="dmd-splash-bar"><div class="dmd-splash-brand">${f}<span class="dmd-splash-name">${c}</span>${m}</div><div class="dmd-splash-search" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg><span class="dmd-splash-search-mac">${NS(_.replace(/Ctrl\+?K/gi,`⌘K`))}</span><span class="dmd-splash-search-win">${NS(_.replace(/⌘K/g,`Ctrl K`).replace(/⌘/g,`Ctrl`))}</span><kbd></kbd></div><div class="dmd-splash-actions" aria-hidden="true"><i></i><i></i><i class="dmd-splash-action-pill"></i><i class="dmd-splash-action-pill"></i><i></i></div><span class="dmd-splash-progress" aria-hidden="true"></span></div><div class="dmd-splash-body" aria-hidden="true"><div class="dmd-splash-nav"><span class="dmd-splash-nav-label">Documentation</span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item dmd-splash-nav-active"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span></span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w50"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w80"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span></span><span class="dmd-splash-nav-group"><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w40"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w70"></span></span><span class="dmd-splash-nav-item"><span class="dmd-splash-bone w60"></span></span></span></div><div class="dmd-splash-main-wrapper"><div class="dmd-splash-article"><div class="dmd-splash-crumb-row"><span class="dmd-splash-crumb" style="width:44px"></span><span class="dmd-splash-crumb-sep"></span><span class="dmd-splash-crumb current"></span></div><h1 class="dmd-splash-doc-title">${c}</h1>${g}<div class="dmd-splash-meta"><span class="dmd-splash-bone" style="width:72px"></span><span class="dmd-splash-bone" style="width:54px"></span></div><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w80"></span><span class="dmd-splash-bone w70"></span><div class="dmd-splash-callout"><span class="dmd-splash-bone w30"></span><span class="dmd-splash-bone w70"></span></div><span class="dmd-splash-h2" style="width:38%"></span><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w70"></span><div class="dmd-splash-code"><div class="dmd-splash-code-head"><i></i><i></i><i></i></div><div class="dmd-splash-code-body"><span class="dmd-splash-bone" style="width:45%"></span><span class="dmd-splash-bone" style="width:70%"></span><span class="dmd-splash-bone" style="width:55%"></span><span class="dmd-splash-bone" style="width:62%"></span></div></div></div><div class="dmd-splash-toc"><div class="dmd-splash-toc-header"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="8" x2="21" y1="6" y2="6"/><line x1="8" x2="21" y1="12" y2="12"/><line x1="8" x2="21" y1="18" y2="18"/><line x1="3" x2="3.01" y1="6" y2="6"/><line x1="3" x2="3.01" y1="12" y2="12"/><line x1="3" x2="3.01" y1="18" y2="18"/></svg><span class="dmd-splash-toc-label">On this page</span></div><div class="dmd-splash-toc-list"><span class="dmd-splash-bone dmd-splash-toc-active" style="width:72%"></span><span class="dmd-splash-bone w90"></span><span class="dmd-splash-bone w70"></span><span class="dmd-splash-bone w80"></span><span class="dmd-splash-bone w60"></span></div></div></div></div><span class="dmd-splash-sr">Loading documentation…</span></div>`}var HS=null;function US(){if(typeof document>`u`)return;let e=document.getElementById(OS);if(!e||e===HS||e.classList.contains(`dmd-splash-hidden`))return;HS=e;let t=window[jS],n=typeof t==`number`?Date.now()-t:950,r=Math.max(0,950-n);window.setTimeout(()=>{document.documentElement.classList.remove(AS),e.classList.add(kS),e.setAttribute(`aria-hidden`,`true`),window.setTimeout(()=>e.remove(),MS)},r)}var WS=`data-docmedown-runtime`,GS=`docmedown:offline-link-unavailable`;function KS(e){return`${e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`documentation`}-offline.html`}function qS(){return typeof window>`u`?!1:window.location.protocol===`file:`||!!window.__DOCMEDOWN_OFFLINE__}function JS(){return typeof window>`u`?!1:!!window.__DOCMEDOWN_OFFLINE__}function YS(e=`That link is unavailable in offline documentation.`){typeof window>`u`||window.dispatchEvent(new CustomEvent(GS,{detail:e}))}function XS(e){let t=``,n=32768;for(let r=0;r<e.length;r+=n)t+=String.fromCharCode(...e.subarray(r,r+n));return btoa(t)}function ZS(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}function QS(e,t,n={},r){let i=`(async()=>{try{const b=Uint8Array.from(atob(document.getElementById("d").textContent.trim()),c=>c.charCodeAt(0)),s=await new Response(new Blob([b]).stream().pipeThrough(new DecompressionStream("gzip"))).text(),e=JSON.parse(s);if(e.version!==2)throw new Error("Unsupported offline format");window.__DOCMEDOWN_OFFLINE__=true;window.__DOCMEDOWN_DATA__=e.data;window.__DOCMEDOWN_CONFIG__=e.data.manifest.config;const u=URL.createObjectURL(new Blob([e.runtime],{type:"text/javascript"}));window.__DOCMEDOWN_RUNTIME_URL__=u;const j=document.createElement("script");j.src=u;j.onerror=()=>{URL.revokeObjectURL(u);throw new Error("Runtime bootstrap failed")};document.head.appendChild(j)}catch(e){var p=document.getElementById("${OS}");if(p){p.className+=" ${kS}";p.setAttribute("aria-hidden","true");setTimeout(function(){p.parentNode&&p.parentNode.removeChild(p)},600)}var h=document.documentElement;h.className=h.className.replace(" ${AS}","");document.getElementById("dmd-app").textContent="Could not open this offline documentation copy: "+e.message}})();`,a=ZS(DS(r)),o=` type="image/svg+xml"`;return a.startsWith(`data:image/png`)||/\.png($|\?)/i.test(a)?o=` type="image/png"`:(a.startsWith(`data:image/x-icon`)||/\.ico($|\?)/i.test(a))&&(o=` type="image/x-icon"`),`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon"${o} href="${a}"><title>${ZS(t)}</title>${BS(n)}</head><body>${VS({name:t,...n})}<div id="dmd-app"></div><script id="d" type="application/octet-stream">${e}<\/script><script>${i}<\/script></body></html>`}async function $S(e){if(typeof CompressionStream>`u`)throw Error(`This browser does not support local gzip compression.`);let t=new Blob([e]).stream().pipeThrough(new CompressionStream(`gzip`));return new Uint8Array(await new Response(t).arrayBuffer())}function eC(){return document.querySelector(`script[${WS}]`)||([...document.scripts].find(e=>/docmedown(?:\.iife)?\.js(?:[?#].*)?$/i.test(e.src))??null)}async function tC(e=!1){let t=eC();if(!t?.src)throw Error(`The current DocMeDown runtime script could not be located.`);let n=await fetch(t.src,{credentials:`same-origin`,cache:`force-cache`});if(!n.ok)throw Error(`Could not read the current DocMeDown runtime (${n.status}).`);let r=await n.text();if(e&&!r.includes(`DocMeDownMermaid`))try{let e=new URL(`docmedown-mermaid.js`,t.src).href,n=await fetch(e,{credentials:`same-origin`,cache:`force-cache`});if(n.ok){let e=await n.text();r=`${r}\n;${e}`}}catch{}return r}async function nC(){if(qS())throw Error(`This documentation is already an offline copy.`);let e=window.__DOCMEDOWN_DATA__;if(!e?.manifest||!e.docs)throw Error(`This site has no embedded documentation corpus to export. Run a DocMeDown build first.`);let t=await tC(Object.values(e.docs).some(e=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(e))||!!(e.nestedSites&&Object.values(e.nestedSites).some(e=>Object.values(e.docs).some(e=>/(?:^|\n)[ \t]*(?:`{3,}|~{3,})[ \t]*mermaid\b/i.test(e))))),n=await $S(JSON.stringify({version:2,data:e,runtime:t})),r=DS(e.manifest.config.theme?.favicon),i=QS(XS(n),e.manifest.config.name||`Documentation`,{tagline:e.manifest.config.tagline,version:e.manifest.config.version,logo:e.manifest.config.theme?.logo?.light,logoDark:e.manifest.config.theme?.logo?.dark,logoAlt:e.manifest.config.theme?.logo?.alt,accent:e.manifest.config.theme?.accentColor,accentDark:e.manifest.config.theme?.accentColorDark},r);return{blob:new Blob([i],{type:`text/html;charset=utf-8`}),filename:KS(e.manifest.config.name||`Documentation`)}}async function rC(){let{blob:e,filename:t}=await nC(),n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.hidden=!0,document.body.appendChild(r),r.click(),r.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),1e3)}function iC(){if(typeof window>`u`)return null;let e=window.__DOCMEDOWN_DATA__;return e?.nestedSites&&typeof e.nestedSites==`object`?e.nestedSites:null}function aC(e){if(!e)return!1;let t=e.trim().toLowerCase();return t.startsWith(`#`)||t.startsWith(`http://`)||t.startsWith(`https://`)||t.startsWith(`mailto:`)||t.startsWith(`blob:`)||t.startsWith(`data:`)||t.startsWith(`javascript:`)?!1:t.split(`#`)[0].split(`?`)[0].endsWith(`.html`)}function oC(e,t){if(!t)return null;let n=e.trim().replace(/^\.?\//,``).split(`#`)[0].split(`?`)[0].replace(/\/index\.html?$/i,``).replace(/\.html?$/i,``).replace(/\/+$/,``);return n?t[n]?n:Object.keys(t).find(e=>n.endsWith(`/${e}`))??null:null}var sC=new Map;async function cC(e,t){let n=iC()?.[e];if(!n)throw Error(`This offline copy does not embed the documentation site "${e}".`);let r=sC.get(e);if(!r){let t=window.__DOCMEDOWN_RUNTIME_URL__;if(!t)throw Error(`This offline copy predates nested site embedding. Rebuild it with the current DocMeDown version.`);let i=await(await fetch(t)).text(),a={version:2,data:{manifest:n.manifest,docs:n.docs,componentsSource:n.componentsSource},runtime:i},o=await $S(JSON.stringify(a)),s=DS(n.manifest.config?.theme?.favicon),c=QS(XS(o),n.name||`Documentation`,{tagline:n.manifest.config?.tagline,version:n.manifest.config?.version,logo:n.manifest.config?.theme?.logo?.light,logoDark:n.manifest.config?.theme?.logo?.dark,logoAlt:n.manifest.config?.theme?.logo?.alt,accent:n.manifest.config?.theme?.accentColor,accentDark:n.manifest.config?.theme?.accentColorDark},s);r=URL.createObjectURL(new Blob([c],{type:`text/html;charset=utf-8`})),sC.set(e,r)}let i=t?t.indexOf(`#`):-1;window.location.href=i>=0?`${r}${t.substring(i)}`:r}function lC(e){if(e===null)return;if(e===``||e.toLowerCase()===`true`)return!0;if(e.toLowerCase()===`false`)return!1;if(e.toLowerCase()===`null`)return null;if(e.toLowerCase()===`undefined`)return;if(/^-?\d+(\.\d+)?$/.test(e.trim())){let t=Number(e.trim());if(!Number.isNaN(t))return t}let t=e.trim();if(t.startsWith(`{`)&&t.endsWith(`}`)||t.startsWith(`[`)&&t.endsWith(`]`))try{return JSON.parse(t)}catch{}return e}function uC(e){return e.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase())}async function dC(e){let t=typeof window<`u`?window:globalThis,n=t.__DOCMEDOWN_REACT__,r=e?.React||n?.React||t.React,i=e?.ReactDOM||n?.ReactDOM||t.ReactDOM;if(!r)try{r=await import(`react`)}catch{r=(await import(`react`)).default}if(!i)try{i=await import(`react-dom/client`)}catch{try{i=await import(`react-dom`)}catch{}}let a=e?.createRoot||i?.createRoot||n?.createRoot||(i?.default?i.default.createRoot:void 0),o=e?.createElement||r?.createElement||n?.createElement||(r?.default?r.default.createElement:void 0);if(!a||!o)throw Error(`[DocMeDown] ReactBridge: could not resolve React.createElement and ReactDOM.createRoot. Ensure React is available.`);return{React:r,ReactDOM:i,createRoot:a,createElement:o}}function fC(e,t={}){return class extends HTMLElement{_root=null;_container=null;_observer=null;_propsStore={};_mounted=!1;connectedCallback(){if(!this._mounted){if(this._mounted=!0,t.shadowRoot){let e=this.attachShadow({mode:`open`});this._container=document.createElement(`div`),this._container.className=`dmd-react-host`,e.appendChild(this._container)}else this._container=document.createElement(`div`),this._container.className=`dmd-react-host`,this.appendChild(this._container);this.mountPromise=this.mountReact(),typeof MutationObserver<`u`&&(this._observer=new MutationObserver(()=>{this.updatePropsAndRender()}),this._observer.observe(this,{attributes:!0}))}}mountPromise=null;disconnectedCallback(){if(this._mounted=!1,this._observer&&=(this._observer.disconnect(),null),this._root){try{this._root.unmount()}catch(e){console.warn(`[DocMeDown] Error unmounting React component:`,e)}this._root=null}}collectProps(){let e={...t.defaultProps||{},...this._propsStore};for(let t=0;t<this.attributes.length;t++){let n=this.attributes[t];if(n.name.startsWith(`data-dmd-`)||n.name===`class`||n.name===`style`||n.name===`id`)continue;let r=uC(n.name);this._propsStore[r]===void 0&&(e[r]=lC(n.value))}let n=(e,t)=>{let n=new CustomEvent(e,{detail:t,bubbles:!0,composed:!0});this.dispatchEvent(n)};for(let t of Object.keys(e))if(/^on[A-Z]/.test(t)&&typeof e[t]!=`function`){let r=t.slice(2).toLowerCase();e[t]=e=>n(r,e)}return e}async mountReact(){let n=this._container;if(n)try{let{createRoot:r,createElement:i}=await dC(t);if(!this._mounted)return;let a=r(n);this._root=a;let o=this.collectProps();a.render(i(e,o))}catch(e){console.error(`[DocMeDown] Failed to mount React component bridge:`,e),this._container&&(this._container.innerHTML=`<div style="color:var(--dmd-danger, #ef4444);font-size:0.875rem;padding:0.5rem;border:1px solid currentColor;border-radius:4px;">Failed to render React component: ${e instanceof Error?e.message:String(e)}</div>`)}}async updatePropsAndRender(){if(!(!this._root||!this._container))try{let{createElement:n}=await dC(t),r=this.collectProps();this._root.render(n(e,r))}catch(e){console.warn(`[DocMeDown] Error updating React component props:`,e)}}setProp(e,t){this._propsStore[e]=t,this.updatePropsAndRender()}getProp(e){return this._propsStore[e]}}}function pC(e,t={}){return class n extends e{connectedCallback(){let e=Object.getPrototypeOf(n.prototype);if(e&&typeof e.connectedCallback==`function`&&e.connectedCallback.call(this),this.syncAttributesToProperties(),t.bubbleEvents)for(let e of t.bubbleEvents)this.addEventListener(e,t=>{(!t.bubbles||!t.composed)&&(t.stopPropagation(),this.dispatchEvent(new CustomEvent(e,{detail:t.detail,bubbles:!0,composed:!0})))})}syncAttributesToProperties(){for(let e=0;e<this.attributes.length;e++){let t=this.attributes[e];if(t.name.startsWith(`data-dmd-`)||t.name===`class`||t.name===`style`||t.name===`id`)continue;let n=uC(t.name),r=lC(t.value);try{this[n]=r}catch{}}}}}function mC(e,t){return typeof window<`u`&&typeof customElements<`u`&&(customElements.get(e)||customElements.define(e,t)),e}function hC(e,t){if(t){if(/\.svelte$/i.test(t))return`svelte`;if(/\.(tsx|jsx)$/i.test(t))return`react`;if(/\.(lit\.ts|lit\.js|wc\.ts|wc\.js)$/i.test(t))return`element`}if(typeof e==`string`){let t=e;if(/<svelte:options|<script|<style|from\s+['"]svelte/i.test(t))return`svelte`;if(/from\s+['"]lit|extends\s+LitElement/i.test(t))return`element`;if(/from\s+['"]react['"]|<[A-Z][A-Za-z0-9_]*|\buseState\b|\buseEffect\b/i.test(t))return`react`}if(typeof e==`function`){let t=e;if(t.prototype&&(t.prototype instanceof(typeof HTMLElement<`u`?HTMLElement:Object)||typeof t.prototype.connectedCallback==`function`||typeof t.prototype.render==`function`)&&(t.styles!==void 0||t.properties!==void 0||typeof t.prototype.connectedCallback==`function`))return`element`;if(t.prototype&&(t.prototype.isReactComponent||t.prototype.isPureReactComponent)||t.$$typeof===Symbol.for(`react.element`)||t.$$typeof===Symbol.for(`react.memo`)||t.$$typeof===Symbol.for(`react.forward_ref`)||/^[A-Z]/.test(t.name))return`react`}return`svelte`}var gC=class e{static instance;tags=new Map;static getInstance(){return e.instance||=new e,e.instance}constructor(){if(typeof window<`u`){let e=window.__SMD_COMPONENTS__??window.__DMD_COMPONENTS__;e&&typeof e==`object`&&this.registerMultiple(e)}}register(e,t,r){typeof t==`string`&&!r&&(r=t,t=void 0);let i=r||n.r(e);return t&&typeof window<`u`&&typeof customElements<`u`&&(customElements.get(i)||customElements.define(i,t)),this.tags.set(e,i),this.tags.set(e.toLowerCase(),i),this.tags.set(i,i),i}registerReact(e,t,r){let i=r||n.r(e),a=fC(t);return this.register(e,a,i)}registerWebComponent(e,t,r){let i=r||n.r(e),a=pC(t);return this.register(e,a,i)}registerMultiple(e){for(let[t,n]of Object.entries(e))this.register(t,n)}resolveTag(e){let t=e.toLowerCase();return this.tags.get(e)??this.tags.get(t)??null}getAll(){return Object.fromEntries(this.tags)}async loadDmdDirectory(e=``){if(typeof window>`u`)return;let t=window;if(!t.__DOCMEDOWN_COMPONENTS_READY__&&t.__DOCMEDOWN_DATA__?.componentsSource){let{linkSveltePrimitives:e}=await Promise.resolve().then(()=>require("./svelte-runtime-Brc440dp.js")),n=t.__DOCMEDOWN_DATA__.componentsSource,r=e(n),i=new Blob([r],{type:`text/javascript`}),a=URL.createObjectURL(i);t.__DOCMEDOWN_COMPONENTS_READY__=import(a).then(e=>(setTimeout(()=>URL.revokeObjectURL(a),5e3),e.default||e)).catch(e=>{throw setTimeout(()=>URL.revokeObjectURL(a),5e3),console.error(`[DocMeDown] Error evaluating custom components module:`,e),e})}let n=t.__DOCMEDOWN_COMPONENTS_READY__;if(n&&typeof n.then==`function`)try{let e=await n;if(e&&typeof e==`object`){this.registerMultiple(e);return}}catch(e){console.warn(`[DocMeDown] Failed to load embedded custom components:`,e)}let r=e?`${e.replace(/\/$/,``)}/.dmd`:`.dmd`,i=t.__DOCMEDOWN_DATA__?.manifest?.customComponents||[];if(i.length>0){let{loadAndRegisterSvelteComponent:e}=await Promise.resolve().then(()=>require("./svelte-runtime-Brc440dp.js"));for(let t of i){let n=!1;try{if((await fetch(`${r}/${t}.svelte`)).ok){let i=await e(`${r}/${t}.svelte`,t);this.register(t,i),n=!0}}catch{}if(!n)for(let e of[`.tsx`,`.jsx`])try{let i=await fetch(`${r}/${t}${e}`);if(i.ok){let r=await i.text(),{compileTsx:a}=await Promise.resolve().then(()=>require("./ts-compiler-U7pTMJjY.js")),o=await a(r,{filename:`${t}${e}`}),s=new Blob([o],{type:`text/javascript`}),c=URL.createObjectURL(s);try{let e=await import(c),r=e.default||e[t]||e;this.registerReact(t,r),n=!0;break}finally{URL.revokeObjectURL(c)}}}catch(n){console.warn(`[DocMeDown] Could not dynamically load React component ${t}${e}:`,n)}if(!n)for(let e of[`.ts`,`.js`])try{let i=await import(`${r}/${t}${e}`);if(i){let e=i.default||i[t]||i;if(typeof e==`function`){this.registerWebComponent(t,e),n=!0;break}}}catch{}}}for(let e of[`${r}/setup.js`,`${r}/languages.js`,`${r}/components.js`,`${r}/index.js`])try{let t=await import(e);if(t){let e=t.default||t;if(e&&typeof e==`object`&&Object.keys(e).length>0){this.registerMultiple(e),console.log(`[DocMeDown] Loaded custom .dmd components:`,Object.keys(e));return}}}catch{}}};function _C(e,t,n){return gC.getInstance().register(e,t,n)}function vC(e,t,n){return gC.getInstance().registerReact(e,t,n)}function yC(e,t,n){return gC.getInstance().registerWebComponent(e,t,n)}var bC=P(`<div class="dmd-markdown-body" role="none"></div>`);function xC(e,t){un(t,!0);let n;function r(e){let t=gC.getInstance(),n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(let e=r.nextNode();e!==null;e=r.nextNode()){let r=e;if(r.closest?.(`.dmd-code-block-wrapper, pre, .dmd-diagram-host, .dmd-table-toolbar, .dmd-table-copy, .dmd-table-copy-menu`)||r.classList?.contains(`dmd-copy-btn`)||r.classList?.contains(`dmd-copy-selected-btn`)||r.classList?.contains(`dmd-table-copy-btn`)||r.classList?.contains(`dmd-table-copy-item`)||r.hasAttribute?.(`data-dmd-copy`)||r.hasAttribute?.(`data-dmd-copy-selected`)||r.hasAttribute?.(`data-dmd-table-toggle`)||r.hasAttribute?.(`data-dmd-table-copy`))continue;let i=t.resolveTag(r.tagName.toLowerCase());i&&n.push({el:r,tag:i})}for(let e=n.length-1;e>=0;e--){let{el:t,tag:r}=n[e];if(t.tagName.toLowerCase()===r)continue;let i=document.createElement(r);for(let e of Array.from(t.attributes)){let t=/^\{([^{}]*)\}$/.exec(e.value);if(t){let n=t[1].trim();if(/^(false|null|undefined)$/i.test(n))continue;let r=n.toLowerCase()===`true`?``:n;if(i.setAttribute(e.name,r),n!==``&&!Number.isNaN(Number(n)))try{i[e.name]=Number(n)}catch{}continue}if(i.setAttribute(e.name,e.value),e.value!==``&&!Number.isNaN(Number(e.value)))try{i[e.name]=Number(e.value)}catch{}}for(;t.firstChild;)i.appendChild(t.firstChild);t.replaceWith(i)}for(let t of Array.from(e.querySelectorAll(`.dmd-diagram-host`))){let e=t.getAttribute(`data-dmd-diagram`);if(!e)continue;let n=document.createElement(`dmd-mermaid`);n.setAttribute(`source`,e),t.replaceWith(n)}}function i(){if(!n||!t.html||!JS())return;let e=iC();n.querySelectorAll(`a[href]`).forEach(t=>{let n=t.getAttribute(`href`)||``;if(aC(n)){if(oC(n,e)){t.setAttribute(`data-dmd-embedded-link`,`true`);return}t.classList.add(`dmd-link-disabled`),t.setAttribute(`aria-disabled`,`true`),t.setAttribute(`title`,`Unavailable in offline documentation`)}})}let a=new WeakMap;async function o(e,t=!1){let n=e.closest(`.dmd-code-block-wrapper`);if(!n)return;let r=t?`.dmd-code-line-active`:`.dmd-code-line`,i=n.querySelectorAll(r);if(!i.length)return;let o=Array.from(i).map(e=>e.textContent??``).join(`
|
|
492
|
+
`),s=!1;try{if(navigator.clipboard?.writeText)await navigator.clipboard.writeText(o),s=!0;else throw Error(`Clipboard API unavailable`)}catch{let e=document.createElement(`textarea`);e.value=o,e.setAttribute(`readonly`,``),e.style.position=`fixed`,e.style.opacity=`0`,document.body.appendChild(e),e.select();try{s=document.execCommand(`copy`)}finally{e.remove()}}clearTimeout(a.get(e)),e.classList.toggle(`copied`,s),e.title=s?`Copied!`:`Failed`,a.set(e,setTimeout(()=>{e.classList.remove(`copied`),e.title=t?`Copy highlighted lines`:`Copy code`},2e3))}async function s(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return t.remove(),n}catch{return!1}}function c(){n&&(n.querySelectorAll(`[data-dmd-table-toggle]`).forEach(e=>{e.setAttribute(`aria-expanded`,`false`)}),n.querySelectorAll(`.dmd-table-copy-menu`).forEach(e=>{e.setAttribute(`hidden`,``)}))}function l(e){let t=e.closest(`.dmd-table-copy`)?.querySelector(`.dmd-table-copy-menu`);if(!t)return;let n=e.getAttribute(`aria-expanded`)===`true`;c(),n||(e.setAttribute(`aria-expanded`,`true`),t.removeAttribute(`hidden`),t.querySelector(`[role='menuitem']`)?.focus())}async function u(e,t){let n=e.closest(`[data-dmd-table]`),r=n?.querySelector(`table.dmd-table`),i=n?.querySelector(`[data-dmd-table-toggle]`);if(c(),!r||!i)return;i.focus();let o=await s(Rf(zf(r),t)),l=i.querySelector(`.dmd-table-copy-label`),u=i.querySelector(`.dmd-table-copy-btn-text`);clearTimeout(a.get(i)),i.classList.toggle(`copied`,o),i.classList.toggle(`copy-failed`,!o),l&&(l.textContent=o?`Copied!`:`Try again`),u&&(u.textContent=o?`Copied!`:`Try again`);let d=n?.querySelector(`[data-dmd-table-status]`);d&&(d.textContent=o?`Table copied as ${t===`markdown`?`Markdown`:t.toUpperCase()}.`:`Could not copy table. Choose a format to try again.`),a.set(i,setTimeout(()=>{i.classList.remove(`copied`),i.classList.remove(`copy-failed`),l&&(l.textContent=`Copy table`),u&&(u.textContent=`Copy`),d&&(d.textContent=``)},2e3))}Oi(()=>{if(t.html,!n)return;r(n),i();let e=e=>{e.target.closest?.(`.dmd-table-copy`)||c()},a=e=>{let t=e.target,r=t.closest?.(`.dmd-table-copy`);if(!r||!n.contains(r))return;let i=r.querySelector(`[data-dmd-table-toggle]`),a=i?.getAttribute(`aria-expanded`)===`true`;if(e.key===`Escape`&&a)e.preventDefault(),c(),i?.focus();else if(e.key===`Tab`)a&&i?.focus(),c();else if([`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key)){e.preventDefault(),!a&&i&&l(i);let n=Array.from(r.querySelectorAll(`[role='menuitem']`)),o=n.indexOf(t);n[e.key===`Home`?0:e.key===`End`?n.length-1:o<0?e.key===`ArrowUp`?n.length-1:0:(o+(e.key===`ArrowUp`?-1:1)+n.length)%n.length]?.focus()}};return window.addEventListener(`click`,e),window.addEventListener(`keydown`,a),()=>{window.removeEventListener(`click`,e),window.removeEventListener(`keydown`,a)}});function d(e){let n=e.target,r=n.closest?.(`[data-dmd-table-toggle]`);if(r){e.preventDefault(),e.stopPropagation(),l(r);return}let i=n.closest?.(`[data-dmd-table-copy]`);if(i){e.preventDefault(),e.stopPropagation(),u(i,i.getAttribute(`data-dmd-table-copy`));return}if(n.closest?.(`[data-dmd-inline-edit]`)){e.preventDefault(),Q.isEditorOpen=!0;return}let a=n.closest?.(`[data-dmd-copy-selected]`);if(a){e.preventDefault(),o(a,!0);return}let s=n.closest?.(`[data-dmd-copy]`);if(s){e.preventDefault(),o(s,!1);return}let c=n.closest(`a`);if(!c)return;let d=c.getAttribute(`href`);if(d&&!(d.startsWith(`http://`)||d.startsWith(`https://`)||d.startsWith(`mailto:`))){if(JS()&&aC(d)){e.preventDefault();let t=oC(d,iC());if(t){cC(t,d).catch(()=>YS(`This nested documentation site could not be opened from the offline copy.`));return}YS();return}if(d.startsWith(`#/`)){e.preventDefault();let n=d.substring(2),r=n.indexOf(`#`),i=r===-1?n:n.substring(0,r),a=r===-1?``:n.substring(r+1);t.onNavigate?t.onNavigate(i,a):window.location.hash=d}else if(d.startsWith(`#`)){e.preventDefault();let n=d.substring(1);t.onNavigate?t.onNavigate(Q.currentSlug,n):Q.router?.scrollToAnchor(n)}}}var f=bC();ys(f,()=>t.html,!0),w(f),yl(f,e=>n=e,()=>n),N(`click`,f,d),N(`dblclick`,f,e=>{e.target?.closest(`h1, h2, h3, h4, h5, h6, .dmd-callout, .dmd-alert`)&&(Q.isEditorOpen=!0)}),N(`keydown`,f,e=>{e.key===`Enter`&&d(e)}),F(e,f),dn()}po([`click`,`dblclick`,`keydown`]);var SC=P(`<main class="dmd-main-content" id="dmd-main-content" tabindex="-1"><div class="dmd-loading-skeleton" aria-label="Loading document" aria-busy="true"><div class="dmd-skeleton-shimmer dmd-skeleton-header"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-title"></div> <div class="dmd-skeleton-meta"><div class="dmd-skeleton-shimmer dmd-skeleton-badge"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-badge"></div></div> <div class="dmd-skeleton-paragraph"><div class="dmd-skeleton-shimmer dmd-skeleton-line"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-90"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-80"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-60"></div></div> <div class="dmd-skeleton-shimmer dmd-skeleton-card"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-code"></div> <div class="dmd-skeleton-paragraph"><div class="dmd-skeleton-shimmer dmd-skeleton-line"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-90"></div> <div class="dmd-skeleton-shimmer dmd-skeleton-line w-40"></div></div></div></main>`),CC=P(`<main class="dmd-main-content" id="dmd-main-content" tabindex="-1"><div class="dmd-error-container"><div class="dmd-error-code">!</div> <h2 class="dmd-error-title"> </h2> <p class="dmd-error-desc">Return to the overview, then choose another page from the documentation index.</p> <button type="button" class="dmd-btn-primary">Return to Overview</button></div></main>`),wC=P(`<div class="dmd-nav-progress" role="progressbar" aria-label="Loading page"></div>`),TC=P(`<span class="dmd-crumb-sep">/</span> <!>`,1),EC=P(`<span class="dmd-meta-item"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> <span> </span></span>`),DC=P(`<span class="dmd-meta-item dmd-meta-category"> </span>`),OC=P(`<button type="button" class="dmd-meta-tag dmd-clickable-tag"> </button>`),kC=P(`<div class="dmd-edit-page-container"><a target="_blank" rel="noopener noreferrer" class="dmd-edit-link"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"></path><path d="m15 5 4 4"></path></svg> <span>Edit this page on GitHub</span></a></div>`),AC=P(`<button type="button" class="dmd-page-nav-card prev"><span class="dmd-page-nav-sub"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg> Previous</span> <span class="dmd-page-nav-title"> </span></button>`),jC=P(`<div></div>`),MC=P(`<button type="button" class="dmd-page-nav-card next"><span class="dmd-page-nav-sub">Next <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg></span> <span class="dmd-page-nav-title"> </span></button>`),NC=P(`<p class="dmd-footer-copy"> </p>`),PC=P(`<p class="dmd-footer-builtwith">Documented with <a href="https://github.com" target="_blank" rel="noreferrer">DocMeDown</a> ⚡</p>`),FC=P(`<!> <div class="dmd-progress-bar" aria-hidden="true"></div> <main class="dmd-main-content" id="dmd-main-content" tabindex="-1"><div><nav class="dmd-breadcrumbs" aria-label="Breadcrumb"><!> <!></nav> <div class="dmd-content-meta"><!> <!> <!> <button type="button" class="dmd-meta-edit-btn" title="Edit this document (Ctrl+E / ⌘E)" aria-label="Edit document in 2-way editor"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg> <span>Edit</span></button></div></div> <article class="dmd-article"><!></article> <!> <div class="dmd-page-nav"><!> <!></div> <footer class="dmd-footer"><!> <!></footer></main>`,1);function IC(e,t){un(t,!0);let n=E(null);Oi(()=>{let e=!1,t=!1,r=0,i=()=>{if(e=!1,!M(n))return;if(r<=0){M(n).style.setProperty(`--dmd-scroll-progress`,`0`);return}let t=Math.min(1,Math.max(0,window.scrollY/r));M(n).style.setProperty(`--dmd-scroll-progress`,String(t))},a=()=>{t=!1,r=document.documentElement.scrollHeight-window.innerHeight,i()},o=()=>{e||(e=!0,requestAnimationFrame(i))},s=()=>{t||(t=!0,requestAnimationFrame(a))};return a(),window.addEventListener(`scroll`,o,{passive:!0}),window.addEventListener(`resize`,s,{passive:!0}),()=>{window.removeEventListener(`scroll`,o),window.removeEventListener(`resize`,s)}});let r=lr(()=>Q.currentSlug.split(`/`).filter(Boolean)),i=lr(()=>Q.currentDoc),a=lr(()=>Q.config),o=lr(()=>{let e=Q.currentSlug,t=M(a)?.editUrl;if(!t&&M(a)?.source?.type===`github`&&M(a).source.repo){let n=M(a).source.branch||`main`,r=M(a).source.docsDir?`${M(a).source.docsDir.replace(/^\/+|\/+$/g,``)}/`:``;t=`https://github.com/${M(a).source.repo}/edit/${n}/${r}${e}.md`}return t});var s=Mo(),c=pi(s),l=e=>{F(e,SC())},u=e=>{var t=CC(),n=O(t),r=A(O(n),2),i=k(r,!0),a=A(r,4);w(n),w(t),j(()=>I(i,Q.error||`This page is unavailable.`)),N(`click`,a,()=>Q.navigate(`README`)),F(e,t)},d=e=>{var t=FC(),s=pi(t),c=e=>{F(e,wC())};L(s,e=>{Q.isNavigating&&e(c)});var l=A(s,2);yl(l,e=>D(n,e),()=>M(n));var u=A(l,2),d=O(u);let f;var p=O(d),m=O(p);{let e=lr(()=>!Q.isScrolled);bS(m,{label:`Docs`,index:0,isHome:!0,get isScrolled(){return M(e)}})}ps(A(m,2),17,()=>M(r),ls,(e,t,n)=>{var i=TC(),a=A(pi(i),2);{let e=lr(()=>n===M(r).length-1),i=lr(()=>!Q.isScrolled);bS(a,{get label(){return M(t)},index:n+1,get isLast(){return M(e)},get isScrolled(){return M(i)}})}F(e,i)}),w(p);var h=A(p,2),g=O(h),_=e=>{var t=EC(),n=k(A(O(t),2));w(t),j(()=>I(n,`${M(i).readingTimeMinutes??``} min read`)),F(e,t)};L(g,e=>{M(i).readingTimeMinutes&&e(_)});var v=A(g,2),y=e=>{var t=DC(),n=k(t,!0);j(()=>I(n,M(i).frontmatter.category)),F(e,t)};L(v,e=>{M(i).frontmatter?.category&&e(y)});var b=A(v,2),x=e=>{var t=Mo();ps(pi(t),16,()=>M(i).frontmatter.tags,e=>e,(e,t)=>{var n=OC(),r=k(n);j(()=>{R(n,`title`,`View documents tagged with #${t??``}`),R(n,`aria-label`,`View documents tagged with #${t??``}`),I(r,`#${t??``}`)}),N(`click`,n,()=>Q.openTagModal(t)),F(e,n)}),F(e,t)};L(b,e=>{M(i).frontmatter?.tags&&M(i).frontmatter.tags.length>0&&e(x)});var S=A(b,2);w(h),w(d);var ee=A(d,2);ss(O(ee),()=>M(i).slug,e=>{xC(e,{get html(){return M(i).html},onNavigate:(e,t)=>Q.navigate(e,t??``)})}),w(ee);var te=A(ee,2),ne=e=>{var t=kC(),n=k(t);j(()=>R(n,`href`,M(o))),F(e,t)};L(te,e=>{M(o)&&e(ne)});var re=A(te,2),ie=O(re),ae=e=>{var t=AC(),n=k(A(O(t),2),!0);w(t),j(()=>I(n,Q.prevDoc.title)),N(`click`,t,()=>Q.navigate(Q.prevDoc.slug)),F(e,t)},oe=e=>{F(e,jC())};L(ie,e=>{Q.prevDoc?e(ae):e(oe,-1)});var se=A(ie,2),ce=e=>{var t=MC(),n=k(A(O(t),2),!0);w(t),j(()=>I(n,Q.nextDoc.title)),N(`click`,t,()=>Q.navigate(Q.nextDoc.slug)),F(e,t)},le=e=>{F(e,jC())};L(se,e=>{Q.nextDoc?e(ce):e(le,-1)}),w(re);var ue=A(re,2),de=O(ue),fe=e=>{var t=NC(),n=k(t,!0);j(()=>I(n,M(a).footer.copyright)),F(e,t)};L(de,e=>{M(a)?.footer?.copyright&&e(fe)});var pe=A(de,2),me=e=>{F(e,PC())};L(pe,e=>{M(a)?.footer?.showBuiltWith!==!1&&e(me)}),w(ue),w(u),j(()=>f=sc(d,1,`dmd-content-header`,null,f,{"dmd-header-scrolled":Q.isScrolled})),N(`click`,S,()=>Q.isEditorOpen=!0),F(e,t)};L(c,e=>{Q.isLoading?e(l):Q.error||!M(i)?e(u,1):e(d,-1)}),F(e,s),dn()}po([`click`]);var LC=P(`<div class="dmd-editor-target-pill svelte-q838rt"><span class="dmd-editor-target-label svelte-q838rt">Target:</span> <button type="button">Source</button> <button type="button">.preview</button></div>`),RC=P(`<span class="dmd-badge-offline svelte-q838rt" title="Running in self-contained offline mode. Edits save to in-browser session & storage.">Offline Mode</span>`),zC=P(`<button type="button" class="dmd-badge-preview svelte-q838rt" title="Click to switch to Production mode">Preview Mode</button>`),BC=P(`<button type="button" class="dmd-badge-prod svelte-q838rt" title="Click to switch to Preview mode">Production Mode</button>`),VC=P(`<span class="dmd-mode-label svelte-q838rt">Server:</span> <!>`,1),HC=P(`<div class="dmd-editor-pane editor svelte-q838rt"><div class="dmd-editor-textarea-wrapper svelte-q838rt"><textarea class="dmd-editor-textarea svelte-q838rt" placeholder="Type markdown here..." spellcheck="false"></textarea></div></div>`),UC=P(`<div class="dmd-editor-pane frontmatter-pane svelte-q838rt"><div class="dmd-fm-form svelte-q838rt"><h3 class="dmd-pane-title svelte-q838rt">Frontmatter Metadata Form</h3> <p class="dmd-pane-subtitle svelte-q838rt">Directly edit document header metadata with live two-way synchronization.</p> <div class="dmd-fm-grid svelte-q838rt"><div class="dmd-fm-field svelte-q838rt"><label for="fm-title" class="svelte-q838rt">Document Title</label> <input id="fm-title" type="text" placeholder="e.g. Getting Started" class="svelte-q838rt"/></div> <div class="dmd-fm-field svelte-q838rt"><label for="fm-category" class="svelte-q838rt">Category / Section</label> <input id="fm-category" type="text" placeholder="e.g. Guides" class="svelte-q838rt"/></div> <div class="dmd-fm-field full svelte-q838rt"><label for="fm-desc" class="svelte-q838rt">Description (SEO / Social)</label> <input id="fm-desc" type="text" placeholder="Summary of this document..." class="svelte-q838rt"/></div> <div class="dmd-fm-field svelte-q838rt"><label for="fm-tags" class="svelte-q838rt">Tags (comma-separated)</label> <input id="fm-tags" type="text" placeholder="cli, svelte, hmr" class="svelte-q838rt"/></div> <div class="dmd-fm-field svelte-q838rt"><label for="fm-order" class="svelte-q838rt">Navigation Order</label> <input id="fm-order" type="number" placeholder="e.g. 1" class="svelte-q838rt"/></div> <div class="dmd-fm-field checkbox-field full svelte-q838rt"><label class="dmd-checkbox-label svelte-q838rt"><input type="checkbox" class="svelte-q838rt"/> <span>NoIndex (Exclude from Search & LLM indexing)</span></label></div></div></div></div>`),WC=P(`<th class="svelte-q838rt"><div class="dmd-th-cell svelte-q838rt"><input type="text" class="dmd-th-input svelte-q838rt"/> <select class="dmd-th-align svelte-q838rt"><option>Left</option><option>Center</option><option>Right</option></select> <button type="button" class="dmd-cell-del svelte-q838rt" title="Delete column">✕</button></div></th>`),GC=P(`<td class="svelte-q838rt"><input type="text" class="dmd-td-input svelte-q838rt"/></td>`),KC=P(`<tr><!><td class="dmd-td-actions svelte-q838rt"><button type="button" class="dmd-cell-del svelte-q838rt" title="Delete row">✕</button></td></tr>`),qC=P(`<div class="dmd-editor-pane table-pane svelte-q838rt"><div class="dmd-table-builder svelte-q838rt"><div class="dmd-table-toolbar svelte-q838rt"><div class="dmd-table-toolbar-left"><h3 class="dmd-pane-title svelte-q838rt">Table Assistant</h3> <span class="dmd-pane-subtitle svelte-q838rt"> </span></div> <div class="dmd-table-toolbar-actions svelte-q838rt"><button type="button" class="dmd-btn-xs svelte-q838rt">+ Add Column</button> <button type="button" class="dmd-btn-xs svelte-q838rt">+ Add Row</button> <button type="button" class="dmd-btn-primary dmd-btn-xs svelte-q838rt">Insert into Doc</button></div></div> <div class="dmd-table-scroll-wrapper svelte-q838rt"><table class="dmd-builder-table svelte-q838rt"><thead><tr><!><th class="dmd-th-actions svelte-q838rt"></th></tr></thead><tbody></tbody></table></div></div></div>`),JC=P(`<div class="dmd-editor-pane preview svelte-q838rt"><div class="dmd-editor-preview-header svelte-q838rt"><span>Live Render</span></div> <div class="dmd-editor-preview-content svelte-q838rt"><!></div></div>`),YC=P(`<button type="button" class="dmd-btn-warning svelte-q838rt" title="Copy all .preview files to production source">Publish Preview</button> <button type="button" class="dmd-btn-danger svelte-q838rt" title="Delete all staged preview files">Discard Preview</button>`,1),XC=P(`<!> <button type="button" class="dmd-btn-secondary svelte-q838rt">Save to .preview</button> <button type="button" class="dmd-btn-primary svelte-q838rt"> </button>`,1),ZC=P(`<button type="button" class="dmd-btn-secondary svelte-q838rt" title="Download edited markdown file (.md) to your computer">Download .md</button> <button type="button" class="dmd-btn-primary svelte-q838rt" title="Save changes to in-memory session and browser storage"> </button>`,1),QC=P(`<div class="dmd-editor-backdrop svelte-q838rt" role="dialog" aria-modal="true" tabindex="-1" aria-label="2-Way Markdown Editor"><div class="dmd-editor-window svelte-q838rt"><div class="dmd-editor-header svelte-q838rt"><div class="dmd-editor-title-group svelte-q838rt"><span class="dmd-editor-icon">✏️</span> <span class="dmd-editor-title">2-Way Markdown Editor</span> <span class="dmd-editor-file-badge svelte-q838rt"> </span></div> <div class="dmd-editor-tab-group svelte-q838rt"><button type="button">Markdown</button> <button type="button">Frontmatter Form</button> <button type="button">Table Assistant</button></div> <div class="dmd-editor-header-controls svelte-q838rt"><!> <button type="button" title="Toggle Split Preview"> </button> <div class="dmd-editor-mode-toggle svelte-q838rt"><!></div> <button type="button" class="dmd-editor-close-btn svelte-q838rt" aria-label="Close Editor">✕</button></div></div> <div><!> <!></div> <div class="dmd-editor-footer svelte-q838rt"><div class="dmd-editor-status svelte-q838rt"><span class="dmd-status-text svelte-q838rt"> </span> <span class="dmd-status-lines"> </span></div> <div class="dmd-editor-actions svelte-q838rt"><!></div></div></div></div>`);function $C(e,t){un(t,!0);let n=lr(qS),r=E(``),i=E(`source`),a=E(``),o=E(!1),s=E(!0),c=lr(()=>{if(!M(r))return``;try{return nb(M(r),Q.currentSlug).html}catch{return`<p><em>Rendering preview...</em></p>`}}),l=lr(()=>M(r).split(`
|
|
493
493
|
`).length),u=E(`editor`),d=E(``),f=E(``),p=E(``),m=E(``),h=E(``),g=E(!1);function _(){let e=M(r).match(/^---\r?\n([\s\S]*?)\r?\n---/);if(!e){D(d,Q.currentDoc?.title||``,!0),D(f,``),D(p,``),D(m,``),D(h,``),D(g,!1);return}let t=e[1].split(`
|
|
494
494
|
`);for(let e of t){let t=e.indexOf(`:`);if(t>0){let n=e.slice(0,t).trim(),r=e.slice(t+1).trim();(r.startsWith(`"`)&&r.endsWith(`"`)||r.startsWith(`'`)&&r.endsWith(`'`))&&(r=r.slice(1,-1)),n===`title`?D(d,r,!0):n===`description`?D(f,r,!0):n===`category`?D(p,r,!0):n===`tags`?D(m,r.replace(/^\[|\]$/g,``).replace(/["']/g,``).trim(),!0):n===`order`?D(h,r,!0):n===`noindex`&&D(g,r===`true`)}}}function v(){let e=M(r).match(/^---\r?\n([\s\S]*?)\r?\n---/),t=e?M(r).slice(e[0].length).replace(/^\r?\n/,``):M(r),n=[`---`];if(M(d).trim()&&n.push(`title: "${M(d).trim()}"`),M(f).trim()&&n.push(`description: "${M(f).trim()}"`),M(p).trim()&&n.push(`category: "${M(p).trim()}"`),M(m).trim()){let e=M(m).split(`,`).map(e=>e.trim()).filter(Boolean);n.push(`tags: [${e.map(e=>`"${e}"`).join(`, `)}]`)}M(h)!==``&&!isNaN(Number(M(h)))&&n.push(`order: ${Number(M(h))}`),M(g)&&n.push(`noindex: true`),n.push(`---`);let i=n.length>2?n.join(`
|
|
495
495
|
`)+`
|
|
496
496
|
|
|
497
497
|
`:``;D(r,`${i}${t}`),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`Frontmatter updated in document`)}let y=E($r([`Header 1`,`Header 2`,`Header 3`])),b=E($r([`left`,`left`,`left`])),x=E($r([[`Row 1 Col 1`,`Row 1 Col 2`,`Row 1 Col 3`],[`Row 2 Col 1`,`Row 2 Col 2`,`Row 2 Col 3`]]));function S(){let e=M(y).length+1;D(y,[...M(y),`Header ${e}`],!0),D(b,[...M(b),`left`],!0),D(x,M(x).map(t=>[...t,`Cell ${e}`]),!0)}function ee(e){M(y).length<=1||(D(y,M(y).filter((t,n)=>n!==e),!0),D(b,M(b).filter((t,n)=>n!==e),!0),D(x,M(x).map(t=>t.filter((t,n)=>n!==e)),!0))}function te(){let e=M(x).length+1,t=M(y).map((t,n)=>`Row ${e} Col ${n+1}`);D(x,[...M(x),t],!0)}function ne(e){M(x).length<=1||D(x,M(x).filter((t,n)=>n!==e),!0)}function re(){let e={left:`:---`,center:`:---:`,right:`---:`},t=`\n\n${`| ${M(y).join(` | `)} |`}\n${`| ${M(b).map(t=>e[t]||`:---`).join(` | `)} |`}\n${M(x).map(e=>`| ${e.join(` | `)} |`).join(`
|
|
498
|
-
`)}\n\n`;D(r,`${M(r).trimEnd()}${t}`),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`✔ Markdown table inserted at end of document`),D(u,`editor`)}Oi(()=>{if(Q.isEditorOpen&&Q.currentDoc){if(Q.currentDoc.rawContent)D(r,Q.currentDoc.rawContent,!0);else if(M(n)){let e=typeof window<`u`?window:null;D(r,e?.__DOCMEDOWN_DATA__?.docs?.[Q.currentSlug]||e?.__DOCMEDOWN_DOCS__?.[Q.currentSlug]||``,!0)}else fetch(`/__dmd_api__/raw?slug=${encodeURIComponent(Q.currentSlug)}`).then(e=>e.ok?e.text():``).then(e=>{e&&D(r,e,!0)}).catch(()=>{});_(),D(a,M(n)?`Ready to edit (Offline Mode)`:`Ready to edit`,!0)}});function ie(e){e.key===`Escape`?(e.preventDefault(),Q.isEditorOpen=!1):(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`&&(e.preventDefault(),se(M(n)?`source`:M(i)))}function ae(e){if(e.key===`Tab`){e.preventDefault();let t=e.currentTarget,n=t.selectionStart,i=t.selectionEnd;D(r,`${M(r).substring(0,n)} ${M(r).substring(i)}`),setTimeout(()=>{t.selectionStart=t.selectionEnd=n+2},0)}}function oe(e){let t=e.target;D(r,t.value,!0),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`Unsaved changes (live preview active)`)}async function se(e){if(M(o))return;if(D(o,!0),M(n)){try{if(Q.updateDocContent(M(r),Q.currentSlug,!1),typeof window<`u`){let e=window;e.__DOCMEDOWN_DATA__?.docs&&(e.__DOCMEDOWN_DATA__.docs[Q.currentSlug]=M(r));try{localStorage.setItem(`dmd-offline-doc-${Q.currentSlug}`,M(r))}catch{}}D(a,`✔ Saved to offline local session & browser storage at ${new Date().toLocaleTimeString()}`)}catch(e){D(a,`✖ Save error: ${e.message||`Failed to update offline document`}`)}finally{D(o,!1)}return}D(a,`Saving to ${e}...`);let t=Q.currentDoc?.path||`${Q.currentSlug===`README`?`README`:Q.currentSlug}.md`;try{let n=await fetch(`/__dmd_api__/save`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({file:t,slug:Q.currentSlug,content:M(r),target:e})});if(n.ok)await n.json(),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`✔ Saved to ${e} (${t}) at ${new Date().toLocaleTimeString()}`),e===`preview`&&(Q.hasPreviewChanges=!0);else{let e=await n.json().catch(()=>({}));D(a,`✖ Save failed: ${e.error||n.statusText}`)}}catch(e){D(a,`✖ Save error: ${e.message||`Dev server not reachable`}`)}finally{D(o,!1)}}function ce(){let e=(Q.currentDoc?.path||`${Q.currentSlug===`README`?`README`:Q.currentSlug}.md`).split(`/`).pop()||`document.md`,t=new Blob([M(r)],{type:`text/markdown;charset=utf-8`}),n=URL.createObjectURL(t),i=document.createElement(`a`);i.href=n,i.download=e,document.body.appendChild(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3),D(a,`✔ Downloaded ${e}`)}async function le(e){if(!M(n))try{(await fetch(`/__dmd_api__/mode`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({mode:e})})).ok&&(Q.serverMode=e,D(a,`Switched server to ${e} mode`))}catch{}}async function ue(){if(!M(n)&&confirm(`Publish all staged .preview changes directly to production source files?`))try{(await fetch(`/__dmd_api__/publish-preview`,{method:`POST`})).ok&&(Q.hasPreviewChanges=!1,D(a,`✔ Preview changes published to source!`))}catch(e){D(a,`✖ Error: ${e.message}`)}}async function de(){if(!M(n)&&confirm(`Discard all staged .preview changes? This cannot be undone.`))try{(await fetch(`/__dmd_api__/discard-preview`,{method:`POST`})).ok&&(Q.hasPreviewChanges=!1,D(a,`Preview staging discarded.`))}catch(e){D(a,`✖ Error: ${e.message}`)}}function fe(e,t){if(e===Q.currentSlug&&t){let e=decodeURIComponent(t).toLowerCase().replace(/^[#]/,``),n=document.querySelector(`.dmd-editor-preview-content #${e}`);if(n){n.scrollIntoView({behavior:`smooth`,block:`start`});return}}Q.navigate(e,t)}var pe=Mo();fo(`keydown`,ii,ie);var me=pi(pe),he=e=>{var t=XC(),pe=O(t),me=O(pe),he=O(me),ge=k(A(O(he),4));w(he);var _e=A(he,2),ve=O(_e),ye=A(ve,2),be=A(ye,2);w(_e);var xe=A(_e,2),Se=O(xe),Ce=e=>{var t=FC(),n=A(O(t),2),r=A(n,2);w(t),j(()=>{sc(n,1,`dmd-editor-pill-btn ${M(i)===`source`?`active`:``}`,`svelte-q838rt`),sc(r,1,`dmd-editor-pill-btn ${M(i)===`preview`?`active`:``}`,`svelte-q838rt`)}),N(`click`,n,()=>D(i,`source`)),N(`click`,r,()=>D(i,`preview`)),F(e,t)};L(Se,e=>{M(n)||e(Ce)});var we=A(Se,2),Te=k(we,!0),Ee=A(we,2),De=O(Ee),Oe=e=>{F(e,IC())},ke=e=>{var t=zC(),n=A(pi(t),2),r=e=>{var t=LC();N(`click`,t,()=>le(`production`)),F(e,t)},i=e=>{var t=RC();N(`click`,t,()=>le(`preview`)),F(e,t)};L(n,e=>{Q.serverMode===`preview`?e(r):e(i,-1)}),F(e,t)};L(De,e=>{M(n)?e(Oe):e(ke,-1)}),w(Ee);var Ae=A(Ee,2);w(xe),w(me);var je=A(me,2),Me=O(je),Ne=e=>{var t=BC(),n=O(t),i=O(n);Bn(i),w(n),w(t),j(()=>Oc(i,M(r))),N(`input`,i,oe),N(`keydown`,i,ae),F(e,t)},Pe=e=>{var t=VC(),n=O(t),r=A(O(n),4),i=O(r),a=A(O(i),2);Dc(a),w(i);var o=A(i,2),s=A(O(o),2);Dc(s),w(o);var c=A(o,2),l=A(O(c),2);Dc(l),w(c);var u=A(c,2),_=A(O(u),2);Dc(_),w(u);var y=A(u,2),b=A(O(y),2);Dc(b),w(y);var x=A(y,2),S=O(x),ee=O(S);Dc(ee),it(2),w(S),w(x),w(r),w(n),w(t),N(`input`,a,v),Wc(a,()=>M(d),e=>D(d,e)),N(`input`,s,v),Wc(s,()=>M(p),e=>D(p,e)),N(`input`,l,v),Wc(l,()=>M(f),e=>D(f,e)),N(`input`,_,v),Wc(_,()=>M(m),e=>D(m,e)),N(`input`,b,v),Wc(b,()=>M(h),e=>D(h,e)),N(`change`,ee,v),qc(ee,()=>M(g),e=>D(g,e)),F(e,t)},Fe=e=>{var t=GC(),n=O(t),r=O(n),i=O(r),a=k(A(O(i),2));w(i);var o=A(i,2),s=O(o),c=A(s,2),l=A(c,2);w(o),w(r);var u=A(r,2),d=O(u),f=O(d),p=O(f);ps(O(p),17,()=>M(y),ls,(e,t,n)=>{var r=HC(),i=O(r),a=O(i);Dc(a);var o=A(a,2),s=O(o);s.value=s.__value=`left`;var c=A(s);c.value=c.__value=`center`;var l=A(c);l.value=l.__value=`right`,w(o),mc(o);var u=A(o,2);w(i),w(r),Wc(a,()=>M(y)[n],e=>M(y)[n]=e),hc(o,()=>M(b)[n],e=>M(b)[n]=e),N(`click`,u,()=>ee(n)),F(e,r)}),it(),w(p),w(f);var m=A(f);ps(m,21,()=>M(x),ls,(e,t,n)=>{var r=WC(),i=O(r);ps(i,17,()=>M(t),ls,(e,t,r)=>{var i=UC(),a=O(i);Dc(a),w(i),Wc(a,()=>M(x)[n][r],e=>M(x)[n][r]=e),F(e,i)});var a=k(A(i));w(r),N(`click`,a,()=>ne(n)),F(e,r)}),w(m),w(d),w(u),w(n),w(t),j(()=>I(a,`${M(y).length??``} cols × ${M(x).length??``} rows`)),N(`click`,s,S),N(`click`,c,te),N(`click`,l,re),F(e,t)};L(Me,e=>{M(u)===`editor`?e(Ne):M(u)===`frontmatter`?e(Pe,1):M(u)===`table`&&e(Fe,2)});var Ie=A(Me,2),Le=e=>{var t=KC(),n=A(O(t),2);yC(O(n),{get html(){return M(c)},onNavigate:fe}),w(n),w(t),F(e,t)};L(Ie,e=>{M(s)&&e(Le)}),w(je);var Re=A(je,2),ze=O(Re),Be=O(ze),Ve=k(Be,!0),He=k(A(Be,2));w(ze);var Ue=A(ze,2),We=O(Ue),Ge=e=>{var t=JC(),n=pi(t),r=e=>{var t=qC(),n=pi(t),r=A(n,2);N(`click`,n,ue),N(`click`,r,de),F(e,t)};L(n,e=>{Q.hasPreviewChanges&&e(r)});var i=A(n,2),a=A(i,2),s=k(a,!0);j(()=>{i.disabled=M(o),a.disabled=M(o),I(s,M(o)?`Saving...`:`Save to Source`)}),N(`click`,i,()=>se(`preview`)),N(`click`,a,()=>se(`source`)),F(e,t)},Ke=e=>{var t=YC(),n=pi(t),r=A(n,2),i=k(r,!0);j(()=>{r.disabled=M(o),I(i,M(o)?`Saving...`:`Save to Session`)}),N(`click`,n,ce),N(`click`,r,()=>se(`source`)),F(e,t)};L(We,e=>{M(n)?e(Ke,-1):e(Ge)}),w(Ue),w(Re),w(pe),w(t),j(()=>{I(ge,`${Q.currentSlug??``}.md`),sc(ve,1,`dmd-editor-tab-btn ${M(u)===`editor`?`active`:``}`,`svelte-q838rt`),sc(ye,1,`dmd-editor-tab-btn ${M(u)===`frontmatter`?`active`:``}`,`svelte-q838rt`),sc(be,1,`dmd-editor-tab-btn ${M(u)===`table`?`active`:``}`,`svelte-q838rt`),sc(we,1,`dmd-editor-btn-secondary ${M(s)?`active`:``}`,`svelte-q838rt`),I(Te,M(s)?`Split: ON`:`Split: OFF`),sc(je,1,`dmd-editor-body ${M(s)?`split`:`full`}`,`svelte-q838rt`),I(Ve,M(a)),I(He,`${M(l)??``} lines`)}),N(`click`,t,e=>{e.target===e.currentTarget&&(Q.isEditorOpen=!1)}),N(`keydown`,t,ie),N(`click`,ve,()=>D(u,`editor`)),N(`click`,ye,()=>{_(),D(u,`frontmatter`)}),N(`click`,be,()=>D(u,`table`)),N(`click`,we,()=>D(s,!M(s))),N(`click`,Ae,()=>Q.isEditorOpen=!1),F(e,t)};L(me,e=>{Q.isEditorOpen&&e(he)}),F(e,pe),dn()}po([`click`,`keydown`,`input`,`change`]);var QC=[`atlas`,`blueprint`,`terminal`,`editorial`],$C=[`comfortable`,`compact`];function ew(e){try{if(typeof window>`u`)return null;let t=window.localStorage;return t?t.getItem(e):null}catch{return null}}function tw(e,t){try{if(typeof window>`u`)return;window.localStorage?.setItem(e,t)}catch{}}function nw(e,t){let n=ew(e);return n&&t.includes(n)?n:null}var rw=new class{#e=E(`auto`);get mode(){return M(this.#e)}set mode(e){D(this.#e,e,!0)}#t=E(`atlas`);get family(){return M(this.#t)}set family(e){D(this.#t,e,!0)}#n=E(`comfortable`);get density(){return M(this.#n)}set density(e){D(this.#n,e,!0)}#r=E(`full`);get motion(){return M(this.#r)}set motion(e){D(this.#r,e,!0)}#i=E(!1);get systemDark(){return M(this.#i)}set systemDark(e){D(this.#i,e,!0)}accentColor;accentColorDark;#a=lr(()=>this.mode===`auto`?this.systemDark?`dark`:`light`:this.mode);get resolvedMode(){return M(this.#a)}set resolvedMode(e){D(this.#a,e)}mediaQuery=null;mediaHandler=null;init(e={}){this.mode=nw(`dmd-color-mode`,[`light`,`dark`,`auto`])??e.defaultMode??`auto`,this.family=nw(`dmd-theme-family`,QC)??e.defaultFamily??`atlas`,this.density=nw(`dmd-theme-density`,$C)??e.defaultDensity??`comfortable`;let t=typeof document<`u`?document.documentElement?.getAttribute(`data-dmd-motion`):null,n=t===`reduced`||t===`off`?`reduced`:nw(`dmd-motion`,[`full`,`reduced`])??`full`;this.motion=n,this.accentColor=e.accentColor,this.accentColorDark=e.accentColorDark;try{typeof window<`u`&&(this.systemDark=window.matchMedia(`(prefers-color-scheme: dark)`).matches)}catch{}try{typeof window<`u`&&window.matchMedia&&(this.mediaQuery=window.matchMedia(`(prefers-color-scheme: dark)`),this.mediaHandler=e=>{this.systemDark=e.matches},this.mediaQuery.addEventListener(`change`,this.mediaHandler))}catch{}}setMode(e){this.mode=e,tw(`dmd-color-mode`,e)}setFamily(e){this.family=e,tw(`dmd-theme-family`,e)}setDensity(e){this.density=e,tw(`dmd-theme-density`,e)}setMotion(e){this.motion=e,tw(`dmd-motion`,e)}toggleMode(){this.setMode(this.resolvedMode===`dark`?`light`:`dark`)}destroy(){try{this.mediaQuery&&this.mediaHandler&&this.mediaQuery.removeEventListener(`change`,this.mediaHandler)}catch{}this.mediaQuery=null,this.mediaHandler=null}},iw=P(`<button type="button"><span aria-hidden="true"><span></span> <span></span> <span></span></span> <span class="dmd-theme-family-name"> </span> <span class="dmd-theme-family-description"> </span></button>`),aw=P(`<button type="button"> </button>`),ow=P(`<div class="dmd-appearance-panel" role="dialog" aria-label="Documentation appearance"><div class="dmd-appearance-heading"><span>Appearance</span> <button type="button" class="dmd-appearance-close" aria-label="Close appearance menu">×</button></div> <div class="dmd-appearance-section"><div class="dmd-appearance-label">Theme family</div> <div class="dmd-theme-family-grid"></div></div> <fieldset class="dmd-appearance-section"><legend class="dmd-appearance-label">Mode</legend> <div class="dmd-segmented-control"></div> <button type="button" class="dmd-appearance-quick-mode"> </button></fieldset> <fieldset class="dmd-appearance-section"><legend class="dmd-appearance-label">Reading density</legend> <div class="dmd-segmented-control"></div></fieldset> <fieldset class="dmd-appearance-section"><legend class="dmd-appearance-label">Animations</legend> <div class="dmd-segmented-control"><button type="button">Smooth</button> <button type="button">Reduced</button></div></fieldset></div>`),sw=P(`<div class="dmd-appearance"><button type="button" class="dmd-appearance-trigger" aria-haspopup="dialog"><span aria-hidden="true"></span> <span class="dmd-appearance-trigger-label">Appearance</span></button> <!></div>`);function cw(e,t){un(t,!0);let n=[{family:`atlas`,label:`Atlas`,description:`Editorial technical reference`},{family:`blueprint`,label:`Blueprint`,description:`Structured and schematic`},{family:`terminal`,label:`Terminal`,description:`Compact operational console`},{family:`editorial`,label:`Editorial`,description:`Spacious publication reading`}],r=E(!1),i=null;Oi(()=>{if(!M(r))return;let e=e=>{i?.contains(e.target)||D(r,!1)},t=e=>{e.key===`Escape`&&D(r,!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}});var a=sw(),o=O(a),s=O(o);it(2),w(o);var c=A(o,2),l=e=>{var t=ow(),i=O(t),a=A(O(i),2);w(i);var o=A(i,2),s=A(O(o),2);ps(s,21,()=>n,e=>e.family,(e,t)=>{var n=iw(),r=O(n),i=A(r,2),a=k(i,!0),o=k(A(i,2),!0);w(n),j(()=>{sc(n,1,`dmd-theme-family-card ${rw.family===M(t).family?`active`:``}`),R(n,`aria-pressed`,rw.family===M(t).family),sc(r,1,`dmd-theme-preview dmd-theme-preview-${M(t).family??``}`),I(a,M(t).label),I(o,M(t).description)}),N(`click`,n,()=>rw.setFamily(M(t).family)),F(e,n)}),w(s),w(o);var c=A(o,2),l=A(O(c),2);ps(l,20,()=>[`auto`,`light`,`dark`],e=>e,(e,t)=>{var n=aw(),r=k(n,!0);j(()=>{sc(n,1,tc(rw.mode===t?`active`:``)),I(r,t)}),N(`click`,n,()=>rw.setMode(t)),F(e,n)}),w(l);var u=A(l,2),d=k(u);w(c);var f=A(c,2),p=A(O(f),2);ps(p,20,()=>[`comfortable`,`compact`],e=>e,(e,t)=>{var n=aw(),r=k(n,!0);j(()=>{sc(n,1,tc(rw.density===t?`active`:``)),I(r,t)}),N(`click`,n,()=>rw.setDensity(t)),F(e,n)}),w(p),w(f);var m=A(f,2),h=A(O(m),2),g=O(h),_=A(g,2);w(h),w(m),w(t),j(()=>{I(d,`Use ${rw.resolvedMode===`dark`?`light`:`dark`} now`),sc(g,1,tc(rw.motion===`full`?`active`:``)),sc(_,1,tc(rw.motion===`reduced`?`active`:``))}),N(`click`,a,()=>D(r,!1)),N(`click`,u,()=>rw.toggleMode()),N(`click`,g,()=>rw.setMotion(`full`)),N(`click`,_,()=>rw.setMotion(`reduced`)),F(e,t)};L(c,e=>{M(r)&&e(l)}),w(a),yl(a,e=>i=e,()=>i),j(()=>{R(o,`aria-expanded`,M(r)),sc(s,1,`dmd-theme-mark dmd-theme-mark-${rw.family??``}`)}),N(`click`,o,()=>D(r,!M(r))),F(e,a),dn()}po([`click`]);var lw=P(`<div class="dmd-offline-download-error" role="alert"> </div>`),uw=P(`<div class="dmd-offline-download-wrap"><button type="button" class="dmd-offline-download-btn"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3v12"></path><path d="m7 10 5 5 5-5"></path><path d="M5 21h14"></path></svg> <span> </span></button> <!></div>`);function dw(e,t){un(t,!0);let n=GS(),r=E(`idle`),i=E(``);async function a(){if(!(n||M(r)===`compressing`)){D(r,`compressing`),D(i,``);try{await tC(),D(r,`idle`)}catch(e){D(r,`error`),D(i,e instanceof Error?e.message:String(e),!0)}}}let o=lr(()=>n?`Offline copy`:M(r)===`compressing`?`Compressing…`:`Download`),s=lr(()=>n?`This page is already a self-contained offline documentation copy.`:`Compress and download this documentation as a self-contained offline HTML file.`);var c=uw(),l=O(c),u=k(A(O(l),2),!0);w(l);var d=A(l,2),f=e=>{var t=lw(),n=k(t,!0);j(()=>I(n,M(i))),F(e,t)};L(d,e=>{M(i)&&e(f)}),w(c),j(()=>{l.disabled=n||M(r)===`compressing`,R(l,`aria-disabled`,n||M(r)===`compressing`),R(l,`title`,M(s)),I(u,M(o))}),N(`click`,l,a),F(e,c),dn()}po([`click`]);var fw=P(`<img class="dmd-brand-logo"/>`),pw=P(`<span class="dmd-brand-version"> </span>`),mw=P(`<button type="button" class="dmd-search-trigger"><svg class="dmd-search-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg> <span class="dmd-search-placeholder"> </span> <span class="dmd-search-shortcut"><kbd class="dmd-kbd"> </kbd></span></button>`),hw=P(`<span class="dmd-nav-crumb-sep">/</span> <!>`,1),gw=P(`<span class="dmd-nav-meta-item dmd-meta-item" title="Reading time"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> <span> </span></span>`),_w=P(`<span class="dmd-nav-meta-item dmd-meta-item dmd-meta-category"> </span>`),vw=P(`<button type="button" class="dmd-nav-meta-tag dmd-meta-tag dmd-clickable-tag"> </button>`),yw=P(`<button type="button" class="dmd-nav-meta-tag dmd-meta-tag dmd-clickable-tag dmd-nav-meta-tag-more"> </button>`),bw=P(`<!> <!>`,1),xw=P(`<div class="dmd-nav-meta"><!> <!> <!> <button type="button" class="dmd-meta-edit-btn" title="Edit this document (Ctrl+E / ⌘E)" aria-label="Edit document in 2-way editor"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg> <span>Edit</span></button></div>`),Sw=P(`<a class="dmd-social-btn dmd-home-btn"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg></a>`),Cw=To(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"></path><path d="M9 18c-4.51 2-5-2-7-2"></path></svg>`),ww=To(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.06 3.25a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z"></path></svg>`),Tw=To(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="12" r="1"></circle><circle cx="15" cy="12" r="1"></circle><path d="M7.5 7.5c3.5-1 5.5-1 9 0 1.5 2 2.5 5 2.5 8.5-2 1.5-4 1.5-5.5 1.5l-.5-1c1-.5 1.5-1 1.5-1-1.5 1-3.5 1-6 1s-4.5 0-6-1c0 0 .5.5 1.5 1l-.5 1c-1.5 0-3.5 0-5.5-1.5 0-3.5 1-6.5 2.5-8.5Z"></path></svg>`),Ew=To(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>`),Dw=P(`<a class="dmd-social-btn" target="_blank" rel="noopener noreferrer"><!></a>`),Ow=P(`<div class="dmd-social-links"></div>`),kw=To(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>`),Aw=To(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg>`),jw=P(`<header><div class="dmd-navbar-left"><button type="button" class="dmd-mobile-menu-btn" aria-controls="dmd-sidebar"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" x2="20" y1="12" y2="12"></line><line x1="4" x2="20" y1="6" y2="6"></line><line x1="4" x2="20" y1="18" y2="18"></line></svg></button> <a class="dmd-brand"><!> <span class="dmd-brand-title"> </span> <!></a></div> <div><div class="dmd-navbar-search-full"><!></div> <div class="dmd-navbar-route-bar"><nav class="dmd-nav-breadcrumbs" aria-label="Breadcrumb"><!> <!></nav> <!></div></div> <div class="dmd-navbar-right"><!> <!> <button type="button" class="dmd-social-btn dmd-edit-btn" title="Edit markdown (Ctrl+E / ⌘E)" aria-label="Edit markdown"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg></button> <!> <!> <button type="button" class="dmd-theme-toggle-btn"><!></button></div></header>`);function Mw(e,t){un(t,!0);let n=lr(()=>Q.home?Q.home.kind===`href`?Q.home.href??`#/`:`#/${Q.home.slug}`:`#/README`),r=lr(()=>Q.home?.via===`ancestor`?`Original documentation home`:`Documentation home`),i=lr(()=>Q.config),a=lr(()=>Q.isScrolled),o=lr(()=>{let e=Q.currentSlug;return e?e.split(`/`).filter(Boolean):[]}),s=E(null),c=E(null),l=null,u=!0,d=null,f=()=>{if(typeof navigator>`u`)return!1;let e=navigator,t=e.userAgentData?.platform||e.platform||``,n=e.userAgent||``;return/^mac/i.test(t)||/macintosh|mac os x/i.test(n)},p=E($r(f()));Oi(()=>{D(p,f(),!0)});let m=lr(()=>M(p)?`⌘K`:`Ctrl K`),h=lr(()=>{let e=M(i)?.search?.placeholder||`Search docs...`;return M(p)?e.replace(/Ctrl\+?K/gi,`⌘K`):e.replace(/⌘K/g,`Ctrl K`).replace(/⌘/g,`Ctrl`)}),g=lr(()=>{let e=M(h);return e.includes(M(m))?e:`${e} (${M(m)})`});Oi(()=>{let e=!1,t=50,n=()=>{let e=document.querySelector(`.dmd-content-header`),n=document.querySelector(`.dmd-navbar`),r=n?n.offsetHeight:56;if(e){let n=e.getBoundingClientRect().top+window.scrollY;t=Math.max(30,Math.round(n-r+8))}else{let e=document.querySelector(`.dmd-main-content`);if(e){let n=e.getBoundingClientRect().top+window.scrollY;t=Math.max(30,Math.round(n-r+8))}else t=50}},r=()=>{e=!1;let n=window.scrollY,r=Fa(()=>Q.isScrolled),i=r?n>=t-20:n>=t;r!==i&&(Q.isScrolled=i)},i=()=>{e||(e=!0,requestAnimationFrame(r))};return n(),r(),window.addEventListener(`scroll`,i,{passive:!0}),window.addEventListener(`resize`,n,{passive:!0}),()=>{window.removeEventListener(`scroll`,i),window.removeEventListener(`resize`,n)}}),Oi(()=>{Q.currentSlug,Q.isLoading,requestAnimationFrame(()=>{let e=document.querySelector(`.dmd-content-header`),t=document.querySelector(`.dmd-navbar`),n=t?t.offsetHeight:56,r=50;e&&(r=Math.max(30,Math.round(e.getBoundingClientRect().top+window.scrollY-n+8))),Q.isScrolled=window.scrollY>=r})}),Oi(()=>{let e=M(a)&&!!Q.currentDoc;if(!(!M(c)||!M(s))){if(u){u=!1,d=e,e?(M(c).style.transition=`none`,M(c).setAttribute(`data-visible`,`true`),M(c).style.opacity=`1`,M(c).style.clipPath=`inset(0 0% 0 0)`,M(c).style.pointerEvents=`auto`,requestAnimationFrame(()=>{M(c)&&M(c).style.removeProperty(`transition`)}),M(s).style.transition=`none`,M(s).setAttribute(`data-collapsed`,`true`),M(s).style.removeProperty(`max-width`),requestAnimationFrame(()=>{M(s)&&M(s).style.removeProperty(`transition`)})):(M(c).style.opacity=`0`,M(c).style.clipPath=`inset(0 100% 0 0)`,M(c).style.pointerEvents=`none`,M(c).removeAttribute(`data-visible`),M(s).removeAttribute(`data-collapsed`),M(s).style.removeProperty(`max-width`));return}if(e!==d)return d=e,l!==null&&(clearTimeout(l),l=null),e?(M(s).style.removeProperty(`max-width`),M(s).setAttribute(`data-collapsed`,`true`),M(c).style.pointerEvents=`auto`,M(c).removeAttribute(`data-visible`),M(c).style.removeProperty(`transition`),M(c).style.clipPath=`inset(0 0% 0 0)`,M(c).style.opacity=`1`,l=setTimeout(()=>{l=null,M(c)&&Q.isScrolled&&Q.currentDoc&&(M(c).setAttribute(`data-visible`,`true`),M(c).style.removeProperty(`clip-path`),M(c).style.removeProperty(`opacity`))},260)):(M(s).style.removeProperty(`max-width`),M(s).removeAttribute(`data-collapsed`),M(c).style.pointerEvents=`none`,M(c).removeAttribute(`data-visible`),M(c).style.removeProperty(`transition`),M(c).style.clipPath=`inset(0 100% 0 0)`,M(c).style.opacity=`0`,l=setTimeout(()=>{l=null,M(c)&&!Q.isScrolled&&(M(c).style.clipPath=`inset(0 100% 0 0)`,M(c).style.opacity=`0`)},260)),()=>{l!==null&&(clearTimeout(l),l=null)}}});var _=jw(),v=O(_),y=O(v),b=A(y,2),x=O(b),S=e=>{var t=fw();j(()=>{R(t,`src`,rw.resolvedMode===`dark`&&M(i).theme?.logo?.dark?M(i).theme.logo.dark:M(i).theme.logo.light),R(t,`alt`,M(i).theme?.logo?.alt||M(i).name)}),F(e,t)};L(x,e=>{M(i)?.theme?.logo?.light&&e(S)});var ee=A(x,2),te=k(ee,!0),ne=A(ee,2),re=e=>{var t=pw(),n=k(t);j(()=>I(n,`v${M(i).version??``}`)),F(e,t)};L(ne,e=>{M(i)?.version&&e(re)}),w(b),w(v);var ie=A(v,2);let ae;var oe=O(ie);R(oe,`aria-hidden`,!1);var se=O(oe),ce=e=>{var t=mw();R(t,`tabindex`,0);var n=A(O(t),2),r=k(n,!0),i=A(n,2),o=k(O(i),!0);w(i),w(t),j(()=>{R(t,`aria-label`,M(g)),R(t,`title`,M(a)&&Q.currentDoc?M(g):void 0),I(r,M(h)),I(o,M(m))}),N(`click`,t,()=>Q.isSearchOpen=!0),F(e,t)};L(se,e=>{M(i)?.search?.enabled!==!1&&e(ce)}),w(oe),yl(oe,e=>D(s,e),()=>M(s));var le=A(oe,2),ue=O(le),de=O(ue);yS(de,{label:`Docs`,index:0,isHome:!0,get isScrolled(){return M(a)}}),ps(A(de,2),17,()=>M(o),ls,(e,t,n)=>{var r=hw(),i=A(pi(r),2);{let e=lr(()=>n===M(o).length-1);yS(i,{get label(){return M(t)},index:n+1,get isLast(){return M(e)},get isScrolled(){return M(a)}})}F(e,r)}),w(ue);var fe=A(ue,2),pe=e=>{var t=xw(),n=O(t),r=e=>{var t=gw(),n=k(A(O(t),2));w(t),j(()=>I(n,`${Q.currentDoc.readingTimeMinutes??``} min read`)),F(e,t)};L(n,e=>{Q.currentDoc.readingTimeMinutes&&e(r)});var i=A(n,2),o=e=>{var t=_w(),n=k(t,!0);j(()=>I(n,Q.currentDoc.frontmatter.category)),F(e,t)};L(i,e=>{Q.currentDoc.frontmatter?.category&&e(o)});var s=A(i,2),c=e=>{let t=lr(()=>Q.currentDoc.frontmatter.tags),n=lr(()=>M(t).length>2?1:2),r=lr(()=>M(t).slice(0,M(n))),i=lr(()=>M(t).length-M(r).length);var o=bw(),s=pi(o);ps(s,16,()=>M(r),e=>e,(e,t)=>{var n=vw(),r=k(n);j(()=>{R(n,`tabindex`,M(a)?0:-1),R(n,`title`,`View documents tagged with #${t??``}`),R(n,`aria-label`,`View documents tagged with #${t??``}`),I(r,`#${t??``}`)}),N(`click`,n,()=>Q.openTagModal(t)),F(e,n)});var c=A(s,2),l=e=>{var n=yw(),r=k(n);j(()=>{R(n,`tabindex`,M(a)?0:-1),R(n,`title`,`View all ${M(t).length} tags for this document`),R(n,`aria-label`,`View ${M(i)} more tags`),I(r,`+${M(i)??``}`)}),N(`click`,n,()=>Q.openTagModal(M(t)[1]||M(t)[0])),F(e,n)};L(c,e=>{M(i)>0&&e(l)}),F(e,o)};L(s,e=>{Q.currentDoc.frontmatter?.tags&&Q.currentDoc.frontmatter.tags.length>0&&e(c)});var l=A(s,2);w(t),j(()=>R(l,`tabindex`,M(a)?0:-1)),N(`click`,l,()=>Q.isEditorOpen=!0),F(e,t)};L(fe,e=>{Q.currentDoc&&e(pe)}),w(le),yl(le,e=>D(c,e),()=>M(c)),w(ie);var me=A(ie,2),he=O(me),ge=e=>{var t=Sw();j(()=>{R(t,`href`,M(n)),R(t,`title`,M(r))}),F(e,t)};L(he,e=>{Q.home&&e(ge)});var _e=A(he,2),ve=e=>{var t=Ow();ps(t,21,()=>M(i).socials,e=>e.url,(e,t)=>{var n=Dw(),r=O(n),i=e=>{F(e,Cw())},a=e=>{F(e,ww())},o=e=>{F(e,Tw())},s=e=>{F(e,Ew())};L(r,e=>{M(t).type===`github`?e(i):M(t).type===`gitlab`?e(a,1):M(t).type===`discord`?e(o,2):e(s,-1)}),w(n),j(()=>{R(n,`href`,M(t).url),R(n,`title`,M(t).label||M(t).type)}),F(e,n)}),w(t),F(e,t)};L(_e,e=>{M(i)?.socials&&M(i).socials.length>0&&e(ve)});var ye=A(_e,2),be=A(ye,2);dw(be,{});var xe=A(be,2);cw(xe,{});var Se=A(xe,2),Ce=O(Se),we=e=>{F(e,kw())},Te=e=>{F(e,Aw())};L(Ce,e=>{rw.resolvedMode===`dark`?e(we):e(Te,-1)}),w(Se),w(me),w(_),j(()=>{sc(_,1,`dmd-navbar ${M(a)?`dmd-navbar-scrolled`:``}`),R(y,`aria-label`,Q.isMobileSidebarOpen?`Close documentation navigation`:`Open documentation navigation`),R(y,`aria-expanded`,Q.isMobileSidebarOpen),R(b,`href`,M(n)),I(te,M(i)?.name),ae=sc(ie,1,`dmd-navbar-center`,null,ae,{"has-route":M(a)&&Q.currentDoc}),R(le,`aria-hidden`,!M(a)||!Q.currentDoc),R(Se,`title`,`Switch to ${rw.resolvedMode===`dark`?`light`:`dark`} mode`),R(Se,`aria-label`,`Switch to ${rw.resolvedMode===`dark`?`light`:`dark`} mode`)}),N(`click`,y,()=>Q.isMobileSidebarOpen=!Q.isMobileSidebarOpen),N(`click`,ye,()=>Q.isEditorOpen=!0),N(`click`,Se,()=>rw.toggleMode()),F(e,_),dn()}po([`click`]);var Nw=P(`<div class="dmd-offline-toast" role="status"><span> </span> <button type="button" class="dmd-offline-toast-action">Learn more</button> <button type="button" class="dmd-offline-toast-dismiss" aria-label="Dismiss offline notice">×</button></div>`),Pw=P(`<li> </li>`),Fw=P(`<li>Links to other documentation files are disabled because nested sites were not embedded in this copy.</li>`),Iw=P(`<div class="dmd-modal-backdrop" role="dialog" aria-modal="true" tabindex="-1" aria-label="Offline documentation limitations"><section class="dmd-offline-modal"><div class="dmd-offline-modal-header"><span>About this offline copy</span> <button type="button" class="dmd-appearance-close" aria-label="Close offline notice">×</button></div> <ul class="dmd-offline-modal-list"><li>Every page, the search index, diagrams, themes, and the runtime are embedded in this single file.</li> <!> <li>Links to the internet, such as repository or social links, still require a connection and may not always
|
|
499
|
-
work as intended.</li> <li>This copy never checks for updates. It is required to rebuild the documentation to refresh its content.</li></ul> <div class="dmd-offline-modal-footer"><button type="button" class="dmd-btn-primary">Got it</button></div></section></div>`),Lw=P(`<!> <!>`,1);function Rw(e,t){un(t,!0);let n=`This offline copy has limited features.`,r=E(!1),i=E(n),a=E(!1),o=null,s=lr(()=>Object.keys(nC()??{}).length),c=lr(KS);function l(e){D(i,e,!0),D(r,!0),o!==null&&window.clearTimeout(o),o=window.setTimeout(()=>D(r,!1),12e3)}Oi(()=>{if(!M(c))return;l(n);let e=e=>{let t=e.detail;l(t||`That link is unavailable in offline documentation.`)};return window.addEventListener(US,e),()=>{window.removeEventListener(US,e),o!==null&&window.clearTimeout(o)}}),Oi(()=>{if(!M(a))return;let e=e=>{e.key===`Escape`&&D(a,!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});var u=Mo(),d=pi(u),f=e=>{var t=Lw(),n=pi(t),o=e=>{var t=Nw(),n=O(t),o=k(n,!0),s=A(n,2),c=A(s,2);w(t),j(()=>I(o,M(i))),N(`click`,s,()=>{D(r,!1),D(a,!0)}),N(`click`,c,()=>D(r,!1)),F(e,t)};L(n,e=>{M(r)&&e(o)});var c=A(n,2),l=e=>{var t=Iw(),n=O(t),r=O(n),i=A(O(r),2);w(r);var o=A(r,2),c=A(O(o),2),l=e=>{var t=Pw(),n=k(t,!0);j(()=>I(n,M(s)===1?`The nested documentation site opens directly from this file — no other files are needed.`:`${M(s)} nested documentation sites open directly from this file — no other files are needed.`)),F(e,t)},u=e=>{F(e,Fw())};L(c,e=>{M(s)>0?e(l):e(u,-1)}),it(4),w(o);var d=k(A(o,2));w(n),w(t),N(`click`,t,e=>{e.target===e.currentTarget&&D(a,!1)}),N(`keydown`,t,e=>{e.key===`Escape`&&D(a,!1)}),N(`click`,i,()=>D(a,!1)),N(`click`,d,()=>D(a,!1)),F(e,t)};L(c,e=>{M(a)&&e(l)}),F(e,t)};L(d,e=>{M(c)&&e(f)}),F(e,u),dn()}po([`click`,`keydown`]);var zw=P(`<button type="button" class="dmd-search-recent-chip"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> <span> </span></button>`),Bw=P(`<div class="dmd-search-recent"><div class="dmd-search-recent-header"><span class="dmd-search-recent-title">Recent Searches</span> <button type="button" class="dmd-search-recent-clear">Clear all</button></div> <div class="dmd-search-recent-tags"></div></div>`),Vw=P(`<div class="dmd-search-empty"> </div>`),Hw=P(`<span class="dmd-search-item-cat"> </span>`),Uw=P(`<p class="dmd-search-item-snippet"></p>`),Ww=P(`<button type="button"><div class="dmd-search-item-header"><span class="dmd-search-item-title"></span> <!></div> <!></button>`),Gw=P(`<div class="dmd-modal-backdrop" role="dialog" aria-modal="true" tabindex="-1" aria-label="Documentation search"><div class="dmd-search-modal"><div class="dmd-search-input-wrapper"><svg class="dmd-search-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg> <input type="text" class="dmd-search-input"/> <kbd class="dmd-search-escape dmd-kbd">ESC</kbd> <button type="button" class="dmd-search-close" aria-label="Close search"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" x2="6" y1="6" y2="18"></line><line x1="6" x2="18" y1="6" y2="18"></line></svg></button></div> <!> <div class="dmd-search-results"><!> <!></div> <div class="dmd-search-footer"><span><kbd class="dmd-kbd">↑</kbd> <kbd class="dmd-kbd">↓</kbd> Navigate</span> <span><kbd class="dmd-kbd">↵</kbd> Select</span> <span><kbd class="dmd-kbd">ESC</kbd> Close</span></div></div></div>`);function Kw(e,t){un(t,!0);let n=z(t,`placeholder`,3,`Search docs...`),r=E(``),i=E($r([])),a=E(0),o=E(null),s=E(null),c=null,l=()=>{if(typeof navigator>`u`)return!1;let e=navigator,t=e.userAgentData?.platform||e.platform||``,n=e.userAgent||``;return/^mac/i.test(t)||/macintosh|mac os x/i.test(n)},u=E($r(l()));Oi(()=>{D(u,l(),!0)});let d=lr(()=>{let e=n()||`Search documentation...`;return M(u)?e.replace(/Ctrl\+?K/gi,`⌘K`):e.replace(/⌘K/g,`Ctrl K`).replace(/⌘/g,`Ctrl`)}),f=`dmd:recent-searches`,p=E($r([]));function m(){try{let e=localStorage.getItem(f);D(p,e?JSON.parse(e):[],!0)}catch{D(p,[],!0)}}function h(e){let t=e.trim();if(t)try{let e=[t,...M(p).filter(e=>e.toLowerCase()!==t.toLowerCase())].slice(0,6);localStorage.setItem(f,JSON.stringify(e)),D(p,e,!0)}catch{}}function g(){try{localStorage.removeItem(f),D(p,[],!0)}catch{}}function _(e,t){if(!e||!t)return e;let n=t.trim(),r=n.split(/\s+/).filter(Boolean);if(r.length===0)return e;let i=[n,...r].sort((e,t)=>t.length-e.length).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),a=RegExp(`(${i})`,`gi`);return e.replace(a,`<mark class="dmd-search-highlight">$1</mark>`)}Oi(()=>{if(t.isOpen){c=document.activeElement||null,m();let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=window.setTimeout(()=>M(o)?.focus(),50);return D(a,0),()=>{window.clearTimeout(t),document.body.style.overflow=e,c&&typeof c.focus==`function`&&(c.focus(),c=null)}}D(r,``),D(i,[],!0)});let v=E(``);Oi(()=>{let e=M(r).trim();if(!e){D(v,``);return}let t=window.setTimeout(()=>{D(v,e,!0)},120);return()=>window.clearTimeout(t)}),Oi(()=>{if(!M(v)){D(i,[],!0);return}D(i,t.searchIndex.search(M(v)),!0),D(a,0)});function y(e){if(e.key===`Escape`)t.onClose();else if(e.key===`ArrowDown`)e.preventDefault(),D(a,M(i).length>0?(M(a)+1)%M(i).length:0,!0);else if(e.key===`ArrowUp`)e.preventDefault(),D(a,M(i).length>0?(M(a)-1+M(i).length)%M(i).length:0,!0);else if(e.key===`Enter`)e.preventDefault(),M(i)[M(a)]&&(h(M(r)),t.onSelect(M(i)[M(a)].slug),t.onClose());else if(e.key===`Tab`&&M(s)){let t=M(s).querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);if(t.length>0){let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())}}}function b(e){h(M(r)||e.title),t.onSelect(e.slug),t.onClose()}function x(e){D(r,e,!0),M(o)?.focus()}var S=Mo(),ee=pi(S),te=e=>{var n=Gw(),c=O(n),l=O(c),u=A(O(l),2);Dc(u),yl(u,e=>D(o,e),()=>M(o));var f=A(u,4);w(l);var m=A(l,2),h=e=>{var t=Bw(),n=O(t),r=A(O(n),2);w(n);var i=A(n,2);ps(i,20,()=>M(p),e=>e,(e,t)=>{var n=zw(),r=k(A(O(n),2),!0);w(n),j(()=>I(r,t)),N(`click`,n,()=>x(t)),F(e,n)}),w(i),w(t),N(`click`,r,g),F(e,t)};L(m,e=>{!M(v)&&M(p).length>0&&e(h)});var S=A(m,2),ee=O(S),te=e=>{var t=Vw(),n=k(t);j(()=>I(n,`No results found for “${M(v)??``}”`)),F(e,t)};L(ee,e=>{M(v)&&M(i).length===0&&e(te)}),ps(A(ee,2),19,()=>M(i),e=>e.id,(e,t,n)=>{var r=Ww(),i=O(r),o=O(i);ys(o,()=>_(M(t).title,M(v)),!0),w(o);var s=A(o,2),c=e=>{var n=Hw(),r=k(n,!0);j(()=>I(r,M(t).category)),F(e,n)};L(s,e=>{M(t).category&&e(c)}),w(i);var l=A(i,2),u=e=>{var n=Uw();ys(n,()=>_(M(t).snippet,M(v)),!0),w(n),F(e,n)};L(l,e=>{M(t).snippet&&e(u)}),w(r),j(()=>sc(r,1,`dmd-search-item ${M(n)===M(a)?`selected`:``}`)),N(`click`,r,()=>b(M(t))),fo(`mouseenter`,r,()=>D(a,M(n),!0)),F(e,r)}),w(S),it(2),w(c),yl(c,e=>D(s,e),()=>M(s)),w(n),j(()=>{R(u,`placeholder`,M(d)),R(u,`aria-label`,M(d))}),N(`click`,n,e=>{e.target===e.currentTarget&&t.onClose()}),N(`keydown`,n,y),Wc(u,()=>M(r),e=>D(r,e)),N(`click`,f,function(...e){t.onClose?.apply(this,e)}),F(e,n)};L(ee,e=>{t.isOpen&&e(te)}),F(e,S),dn()}po([`click`,`keydown`]);var qw=P(`<ul class="dmd-sidebar-sublist"></ul>`),Jw=P(`<li class="dmd-sidebar-category"><button type="button" class="dmd-category-header"><span class="dmd-category-title"> </span> <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg></button> <!></li>`),Yw=P(`<span> </span>`),Xw=P(`<li class="dmd-sidebar-item"><a><span class="dmd-item-icon" aria-hidden="true"><!></span> <span class="dmd-item-body"><span class="dmd-item-title"> </span> <!></span></a></li>`);function Zw(e,t){un(t,!0);let n=E(null),r=lr(()=>M(n)===null?t.node.collapsed??!1:M(n)),i=lr(()=>t.node.isCategory);Oi(()=>{t.node.id,D(n,null)});function a(){D(n,!M(r))}var o=Mo(),s=pi(o),c=e=>{var n=Jw(),i=O(n),o=O(i),s=k(o,!0),c=A(o,2);w(i);var l=A(i,2),u=e=>{var n=qw();ps(n,21,()=>t.node.children,e=>e.id,(e,n)=>{Zw(e,{get node(){return M(n)},get currentSlug(){return t.currentSlug},get onNavigate(){return t.onNavigate}})}),w(n),F(e,n)};L(l,e=>{!M(r)&&t.node.children&&e(u)}),w(n),j(()=>{R(i,`aria-expanded`,!M(r)),I(s,t.node.title),sc(c,0,`dmd-category-arrow ${M(r)?`collapsed`:``}`)}),N(`click`,i,a),F(e,n)},l=e=>{let n=lr(()=>t.currentSlug===t.node.slug||t.currentSlug===`README`&&t.node.slug===`README`);var r=Xw(),i=O(r),a=O(i),o=O(a),s=e=>{var n=jo();j(()=>I(n,t.node.icon)),F(e,n)};L(o,e=>{t.node.icon&&e(s)}),w(a);var c=A(a,2),l=O(c),u=k(l,!0),d=A(l,2),f=e=>{var n=Yw(),r=k(n,!0);j(()=>{sc(n,1,`dmd-badge dmd-badge-${(t.node.badgeType||`info`)??``}`),I(r,t.node.badge)}),F(e,n)};L(d,e=>{t.node.badge&&e(f)}),w(c),w(i),w(r),j(()=>{R(i,`href`,`#/${t.node.slug}`),sc(i,1,`dmd-sidebar-link ${M(n)?`active`:``}`),I(u,t.node.title)}),N(`click`,i,e=>{e.preventDefault(),t.node.slug&&t.onNavigate(t.node.slug)}),F(e,r)};L(s,e=>{M(i)?e(c):e(l,-1)}),F(e,o),dn()}po([`click`]);var Qw=P(`<button type="button" class="dmd-sidebar-backdrop" aria-label="Close documentation navigation"></button>`),$w=P(`<li class="dmd-sidebar-status">Loading pages…</li>`),eT=P(`<!> <aside id="dmd-sidebar" aria-label="Documentation navigation"><div class="dmd-sidebar-heading"><div class="dmd-sidebar-label">Documentation</div> <button type="button" class="dmd-sidebar-close" aria-label="Close documentation navigation"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" x2="6" y1="6" y2="18"></line><line x1="6" x2="18" y1="6" y2="18"></line></svg></button></div> <nav class="dmd-sidebar-nav"><ul class="dmd-sidebar-list"><!> <!></ul></nav></aside>`,1);function tT(e,t){un(t,!0);let n=E(null),r=null;Oi(()=>{if(!Q.isMobileSidebarOpen){r&&typeof r.focus==`function`&&(r.focus(),r=null);return}r=document.activeElement||null;let e=document.body.style.overflow;document.body.style.overflow=`hidden`,(M(n)?.querySelector(`.dmd-sidebar-close`))?.focus();let t=e=>{if(e.key===`Escape`){Q.isMobileSidebarOpen=!1;return}if(e.key===`Tab`&&M(n)){let t=M(n).querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);if(t.length>0){let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())}}};return window.addEventListener(`keydown`,t),()=>{document.body.style.overflow=e,window.removeEventListener(`keydown`,t)}}),Oi(()=>{let e=0,t=0,n=!1,r=r=>{r.touches.length===1&&(e=r.touches[0].clientX,t=r.touches[0].clientY,(Q.isMobileSidebarOpen||e<30)&&(n=!0))},i=r=>{if(!n||r.changedTouches.length!==1)return;n=!1;let i=r.changedTouches[0].clientX,a=r.changedTouches[0].clientY,o=i-e,s=a-t;Math.abs(s)>80||(Q.isMobileSidebarOpen&&o<-50?Q.isMobileSidebarOpen=!1:!Q.isMobileSidebarOpen&&e<30&&o>60&&(Q.isMobileSidebarOpen=!0))};return window.addEventListener(`touchstart`,r,{passive:!0}),window.addEventListener(`touchend`,i,{passive:!0}),()=>{window.removeEventListener(`touchstart`,r),window.removeEventListener(`touchend`,i)}});var i=eT(),a=pi(i),o=e=>{var t=Qw();N(`click`,t,()=>Q.isMobileSidebarOpen=!1),F(e,t)};L(a,e=>{Q.isMobileSidebarOpen&&e(o)});var s=A(a,2),c=O(s),l=A(O(c),2);w(c);var u=A(c,2),d=O(u),f=O(d),p=e=>{F(e,$w())};L(f,e=>{Q.tree.length===0&&Q.isLoading&&e(p)}),ps(A(f,2),17,()=>Q.tree,e=>e.id,(e,t)=>{Zw(e,{get node(){return M(t)},get currentSlug(){return Q.currentSlug},onNavigate:e=>Q.navigate(e)})}),w(d),w(u),w(s),yl(s,e=>D(n,e),()=>M(n)),j(()=>sc(s,1,`dmd-sidebar ${Q.isMobileSidebarOpen?`mobile-open`:``}`)),N(`click`,l,()=>Q.isMobileSidebarOpen=!1),F(e,i),dn()}po([`click`]);var nT=P(`<li><a><!></a></li>`),rT=P(`<aside><button type="button" class="dmd-toc-header" aria-controls="dmd-toc-list"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line></svg> <span>On this page</span> <svg class="dmd-toc-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"></polyline></svg></button> <ul class="dmd-toc-list" id="dmd-toc-list"></ul></aside>`);function iT(e,t){un(t,!0);let n=E(``),r=E(!1);Oi(()=>{if(t.headings.length===0)return;let e=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&t.target.id!==M(n)&&D(n,t.target.id,!0)},{rootMargin:`-80px 0% -60% 0%`,threshold:0});for(let n of t.headings){let t=document.getElementById(n.id);t&&e.observe(t)}return()=>e.disconnect()}),Oi(()=>{if(!M(n))return;let e=document.querySelector(`.dmd-toc-link[href*="#${M(n)}"]`);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`,behavior:`smooth`})});function i(e){let i=document.getElementById(e.id);if(i){gx(i);try{typeof window<`u`&&window.location.protocol===`file:`?window.location.hash=`#/${t.currentSlug}#${e.id}`:history.pushState(null,``,`#/${t.currentSlug}#${e.id}`)}catch{try{window.location.hash=`#/${t.currentSlug}#${e.id}`}catch{}}D(n,e.id,!0),D(r,!1)}}var a=rT(),o=O(a),s=A(o,2);ps(s,21,()=>t.headings,e=>e.id,(e,r)=>{var a=nT(),o=O(a),s=O(o),c=e=>{var t=Mo();ys(pi(t),()=>M(r).html.replace(/<a\b[^>]*>([\s\S]*?)<\/a>/gi,`$1`)),F(e,t)},l=e=>{var t=jo();j(()=>I(t,M(r).text)),F(e,t)};L(s,e=>{M(r).html?e(c):e(l,-1)}),w(o),w(a),j(()=>{sc(a,1,`dmd-toc-item dmd-toc-level-${M(r).level??``}`),R(o,`href`,`#/${t.currentSlug}#${M(r).id}`),sc(o,1,`dmd-toc-link ${M(n)===M(r).id?`active`:``}`)}),N(`click`,o,e=>{e.preventDefault(),i(M(r))}),F(e,a)}),w(s),w(a),j(()=>{sc(a,1,`dmd-toc ${M(r)?`is-open`:``}`),R(o,`aria-expanded`,M(r))}),N(`click`,o,()=>D(r,!M(r))),F(e,a),dn()}po([`click`]);var aT=P(`<div class="dmd-tag-filter-bar"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg> <input type="text" class="dmd-tag-filter-input" placeholder="Filter tagged documents..."/></div>`),oT=P(`<span class="dmd-tag-current-badge">Current Page</span>`),sT=P(`<span class="dmd-tag-card-time"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> </span>`),cT=P(`<span class="dmd-tag-card-cat"> </span>`),lT=P(`<button type="button"> </button>`),uT=P(`<div class="dmd-tag-card-tags"></div>`),dT=P(`<div role="button" tabindex="0"><div class="dmd-tag-card-head"><span class="dmd-tag-card-title"> </span> <!></div> <div class="dmd-tag-card-route"> </div> <div class="dmd-tag-card-meta"><!> <!></div> <!></div>`),fT=P(`<div class="dmd-tag-doc-grid"></div>`),pT=P(`<div class="dmd-tag-empty"><p> </p></div>`),mT=P(`<button type="button"> <span class="dmd-tag-count"> </span></button>`),hT=P(`<div class="dmd-tag-modal-footer"><span class="dmd-tag-footer-label">Explore related tags:</span> <div class="dmd-tag-chips-scroll"></div></div>`),gT=P(`<div class="dmd-modal-backdrop dmd-tag-modal-backdrop" role="dialog" aria-modal="true" tabindex="-1"><div class="dmd-tag-modal"><div class="dmd-tag-modal-header"><div class="dmd-tag-modal-title-wrap"><div class="dmd-tag-pill-large"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line></svg> <span> </span></div> <div><h2 class="dmd-tag-modal-title"> </h2> <p class="dmd-tag-modal-sub"> </p></div></div> <button type="button" class="dmd-tag-modal-close" aria-label="Close tag modal">×</button></div> <!> <div class="dmd-tag-modal-body"><!></div> <!></div></div>`);function _T(e,t){un(t,!0);let n=E(``),r=E(null),i=lr(()=>Q.activeTagModal||``),a=lr(()=>{if(!M(i))return[];let e=Q.getDocsWithTag(M(i));if(!M(n).trim())return e;let t=M(n).toLowerCase().trim();return e.filter(e=>e.title.toLowerCase().includes(t)||e.slug.toLowerCase().includes(t)||e.frontmatter?.tags?.some(e=>e.toLowerCase().includes(t)))}),o=lr(()=>Q.getAllTags());function s(){Q.closeTagModal(),D(n,``)}function c(e){e.key===`Escape`&&s()}function l(e){s(),Q.navigate(e)}function u(e){D(n,``),Q.openTagModal(e)}Oi(()=>{if(!Q.activeTagModal)return;let e=e=>{M(r)&&!M(r).contains(e.target)&&s()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)});var d=Mo(),f=pi(d),p=e=>{var t=gT(),d=O(t),f=O(d),p=O(f),m=O(p),h=k(A(O(m),2));w(m);var g=A(m,2),_=O(g),v=k(_),y=k(A(_,2));w(g),w(p);var b=A(p,2);w(f);var x=A(f,2),S=e=>{var t=aT(),r=A(O(t),2);Dc(r),w(t),Wc(r,()=>M(n),e=>D(n,e)),F(e,t)},ee=lr(()=>Q.getDocsWithTag(M(i)).length>3);L(x,e=>{M(ee)&&e(S)});var te=A(x,2),ne=O(te),re=e=>{var t=fT();ps(t,21,()=>M(a),e=>e.slug,(e,t)=>{var n=dT();let r;var a=O(n),o=O(a),s=k(o,!0),c=A(o,2),d=e=>{F(e,oT())};L(c,e=>{M(t).slug===Q.currentSlug&&e(d)}),w(a);var f=A(a,2),p=k(f,!0),m=A(f,2),h=O(m),g=e=>{var n=sT(),r=A(O(n));w(n),j(()=>I(r,` ${M(t).readingTimeMinutes??``} min read`)),F(e,n)};L(h,e=>{M(t).readingTimeMinutes&&e(g)});var _=A(h,2),v=e=>{var n=cT(),r=k(n,!0);j(()=>I(r,M(t).category||M(t).frontmatter?.category)),F(e,n)};L(_,e=>{(M(t).category||M(t).frontmatter?.category)&&e(v)}),w(m);var y=A(m,2),b=e=>{var n=uT();ps(n,20,()=>M(t).frontmatter.tags,e=>e,(e,t)=>{var n=lT();let r;var a=k(n);j(e=>{r=sc(n,1,`dmd-tag-card-chip`,null,r,{highlight:e}),R(n,`title`,`Explore documents tagged with #${t??``}`),I(a,`#${t??``}`)},[()=>t.toLowerCase()===M(i).toLowerCase()]),N(`click`,n,e=>{e.stopPropagation(),u(t)}),F(e,n)}),w(n),F(e,n)};L(y,e=>{M(t).frontmatter?.tags&&M(t).frontmatter.tags.length>0&&e(b)}),w(n),j(()=>{r=sc(n,1,`dmd-tag-doc-card`,null,r,{"is-current":M(t).slug===Q.currentSlug}),I(s,M(t).title),I(p,M(t).slug)}),N(`click`,n,()=>l(M(t).slug)),N(`keydown`,n,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),l(M(t).slug))}),F(e,n)}),w(t),F(e,t)},ie=e=>{var t=pT(),r=k(O(t));w(t),j(()=>I(r,`No documents found matching "${M(n)??``}" under #${M(i)??``}.`)),F(e,t)};L(ne,e=>{M(a).length>0?e(re):e(ie,-1)}),w(te);var ae=A(te,2),oe=e=>{var t=hT(),n=A(O(t),2);ps(n,21,()=>M(o).slice(0,12),e=>e.tag,(e,t)=>{var n=mT();let r;var a=O(n),o=k(A(a));w(n),j(e=>{r=sc(n,1,`dmd-tag-footer-chip`,null,r,{active:e}),I(a,`#${M(t).tag??``} `),I(o,`(${M(t).count??``})`)},[()=>M(t).tag.toLowerCase()===M(i).toLowerCase()]),N(`click`,n,()=>u(M(t).tag)),F(e,n)}),w(n),w(t),F(e,t)};L(ae,e=>{M(o).length>1&&e(oe)}),w(d),yl(d,e=>D(r,e),()=>M(r)),w(t),j(()=>{R(t,`aria-label`,`Documents tagged with #${M(i)??``}`),I(h,`#${M(i)??``}`),I(v,`Documents tagged with #${M(i)??``}`),I(y,`${M(a).length??``} ${M(a).length===1?`matching document`:`matching documents`} found`)}),N(`keydown`,t,c),N(`click`,b,s),F(e,t)};L(f,e=>{Q.activeTagModal&&e(p)}),F(e,d),dn()}po([`keydown`,`click`]);var vT=P(`<div class="dmd-root"><a href="#dmd-main-content" class="dmd-skip-to-content">Skip to content</a> <!> <div class="dmd-layout-body"><!> <div class="dmd-main-wrapper"><!> <!></div></div> <!> <!> <!> <!></div>`);function yT(e,t){un(t,!0),Oi(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`?(e.preventDefault(),Q.isSearchOpen=!Q.isSearchOpen):(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`e`&&(e.preventDefault(),Q.isEditorOpen=!Q.isEditorOpen)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});let n;Oi(()=>{let e=document.documentElement,t=(t,n)=>{e.getAttribute(t)!==n&&e.setAttribute(t,n)},r=(t,n)=>{n?e.style.getPropertyValue(t)!==n&&e.style.setProperty(t,n):e.style.getPropertyValue(t)&&e.style.removeProperty(t)},i=e.getAttribute(`data-dmd-mode`)!==rw.resolvedMode,a=e.getAttribute(`data-dmd-theme`)!==rw.family,o=rw.resolvedMode===`dark`&&rw.accentColorDark||rw.accentColor,s=(e.style.getPropertyValue(`--dmd-accent`)||void 0)!==o;(i||a||s)&&(e.classList.add(`dmd-theme-switching`),clearTimeout(n),n=setTimeout(()=>e.classList.remove(`dmd-theme-switching`),220)),t(`data-dmd-mode`,rw.resolvedMode),t(`data-dmd-theme`,rw.family),t(`data-dmd-density`,rw.density),t(`data-dmd-motion`,rw.motion),t(`data-theme`,rw.resolvedMode),r(`--dmd-accent`,o),r(`--dmd-accent-hover`,o)}),Oi(()=>{if(typeof document>`u`)return;let e=ES(Q.config?.theme?.favicon),t=document.querySelector(`link[rel~="icon"]`);t||(t=document.createElement(`link`),t.rel=`icon`,document.head.appendChild(t)),t.getAttribute(`href`)!==e&&t.setAttribute(`href`,e)}),Oi(()=>{(Q.currentDoc||Q.error)&&VS()});var r=vT(),i=A(O(r),2);Mw(i,{});var a=A(i,2),o=O(a);tT(o,{});var s=A(o,2),c=O(s);PC(c,{});var l=A(c,2),u=e=>{var t=Mo();ss(pi(t),()=>Q.currentSlug,e=>{iT(e,{get headings(){return Q.currentDoc.headings},get currentSlug(){return Q.currentSlug}})}),F(e,t)};L(l,e=>{Q.currentDoc&&Q.currentDoc.headings.length>0&&e(u)}),w(s),w(a);var d=A(a,2);{let e=lr(()=>Q.config?.search?.placeholder);Kw(d,{get isOpen(){return Q.isSearchOpen},onClose:()=>Q.isSearchOpen=!1,get searchIndex(){return Q.searchIndex},onSelect:e=>Q.navigate(e),get placeholder(){return M(e)}})}var f=A(d,2);ZC(f,{});var p=A(f,2);_T(p,{}),Rw(A(p,2),{}),w(r),F(e,r),dn()}var bT=To(`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="m5 12 4 4L19 6"></path></svg>`),xT=To(`<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="8" y="8" width="11" height="11" rx="2"></rect><path d="M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"></path></svg>`),ST=P(`<pre class="dmd-diagram-error"> </pre>`),CT=P(`<button type="button"><!></button>`),wT=P(`<div class="dmd-diagram-canvas"><div class="dmd-diagram-svg"></div> <!></div>`),TT=P(`<div class="dmd-diagram-loading">Rendering diagram…</div>`),ET=P(`<figure><div class="dmd-diagram-frame"><div class="dmd-diagram-toolbar"><button type="button" class="dmd-diagram-btn" aria-label="Zoom out">−</button> <span class="dmd-diagram-zoom-label" aria-live="polite"> </span> <button type="button" class="dmd-diagram-btn" aria-label="Zoom in">+</button> <button type="button" class="dmd-diagram-btn">Fit</button> <button type="button" class="dmd-diagram-btn">1:1</button> <span class="dmd-diagram-toolbar-spacer"></span> <button type="button"><!></button> <span class="dmd-diagram-toolbar-divider" aria-hidden="true"></span> <button type="button" class="dmd-diagram-btn">SVG</button> <button type="button" class="dmd-diagram-btn"> </button></div> <div role="application"><!></div> <div class="dmd-diagram-status" aria-live="polite"> </div></div></figure>`);function DT(e,t){un(t,!0);let n=.1,r=.1,i=e=>Math.min(3,Math.max(n,Math.round(e*100)/100));async function a(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);if(t.remove(),!n)throw Error(`Clipboard access is unavailable.`)}function o(e){return[...e.querySelectorAll(`.text-outer-tspan.row, text, tspan`)].map(e=>e.textContent?.replace(/\s+/g,` `).trim()).filter(Boolean)[0]||e.textContent?.replace(/\s+/g,` `).trim()||`Untitled subgraph`}let s=z(t,`source`,7),c=lr(()=>df(s())),l=E(null),u=E(null),d=E(null),f=E(1),p=E(1),m=E(!0),h=E(!1),g=E($r([])),_=E($r({x:0,y:0})),v=E(null),y=E(!1),b=E(null),x=E(null),S=E(null),ee=null,te={x:0,y:0},ne=null,re=lr(()=>M(u)?{width:Math.max(1,Math.round(M(u).width*M(f))),height:Math.max(1,Math.round(M(u).height*M(f)))}:null);Oi(()=>{M(c);let e=!1,t=null,n,r=()=>{let n=pf(),r=`${n.family}|${n.mode}|${n.tokens.accent}|${n.tokens.codeSurface}|${n.tokens.codeInk}`;r!==t&&(t=r,gf(M(c),n.family,n.mode,n.tokens).then(t=>{e||(D(l,t,!0),D(u,Zd(t),!0),D(d,null),D(m,!0))}).catch(t=>{e||(D(l,null),D(u,null),D(d,t instanceof Error?t.message:String(t),!0))}))};if(r(),typeof MutationObserver>`u`)return()=>{e=!0};let i=new MutationObserver(()=>{e||(clearTimeout(n),n=setTimeout(r,150))});return i.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dmd-theme`,`data-theme`,`style`]}),()=>{e=!0,clearTimeout(n),i.disconnect()}}),Oi(()=>{if(!M(l))return;let e=M(S)?.querySelector(`svg`);if(!e)return;let t=e.querySelector(`.cluster`)!==null,n=e.querySelectorAll(`:scope > g`),r=e.querySelector(`:scope > g.output, :scope > g[id^='flowchart-']`)??(n.length===1?n[0]:null);if(!(!t||!r||typeof r.getBBox!=`function`))try{let t=r.getBBox();if(t.width<=0||t.height<=0)return;let n={width:t.width+40,height:t.height+40};(!M(u)||n.height>M(u).height||n.width>M(u).width)&&(e.setAttribute(`viewBox`,`${t.x-20} ${t.y-20} ${n.width} ${n.height}`),e.removeAttribute(`width`),e.removeAttribute(`height`),D(u,n,!0))}catch{}}),Oi(()=>{if(!M(x)||!M(u))return;let e=()=>{let e=getComputedStyle(M(x)),t=Number.parseFloat(e.paddingLeft)+Number.parseFloat(e.paddingRight),n=Number.parseFloat(e.paddingTop)+Number.parseFloat(e.paddingBottom),r=Math.max(1,M(x).clientWidth-t),a=Math.max(1,M(x).clientHeight-n),o=M(h)?i(Qd(M(u),{width:r,height:a})):i(Math.min(1,r/M(u).width)),s=M(h)?null:Math.round(Math.min(560,Math.max(200,M(u).height*o+n)));D(b,s,!0);let c=Math.max(1,(s??M(x).clientHeight)-n);D(p,o,!0),M(m)&&(D(f,o,!0),D(_,{x:0,y:Math.max(0,(M(u).height*o-c)/2)},!0))};if(e(),typeof ResizeObserver>`u`)return;let t=new ResizeObserver(e);return t.observe(M(x)),()=>t.disconnect()}),Oi(()=>{let e=M(S),t=e?.querySelector(`svg`);if(!e||!t||!M(u)||M(f)<=0){D(g,[],!0);return}let n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect(),r=rf(M(c)),i=new Set(r.map((e,t)=>t)),a=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,``),s=[...t.querySelectorAll(`.cluster`)].map((e,t)=>{let s=e.getBoundingClientRect();if(s.width<=0||s.height<=0)return null;let l=o(e),u=a(l),d=r.findIndex((e,t)=>i.has(t)&&(a(e.label)===u||a(e.id)===u));d<0&&(d=r.findIndex((t,n)=>i.has(n)&&a(e.id).includes(a(t.id)))),d<0&&(d=[...i][0]??-1);let f=r[d];return f?(i.delete(d),{id:`subgraph-${f.id}-${t}`,label:f.label||l,markdown:af(M(c),f.source),left:s.right-n.left-8,top:s.top-n.top+8}):null}).filter(e=>e!==null);D(g,s,!0)});return()=>cancelAnimationFrame(n)}),Oi(()=>{if(!M(h))return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=e=>{e.key===`Escape`&&D(h,!1)};return window.addEventListener(`keydown`,t),()=>{document.body.style.overflow=e,window.removeEventListener(`keydown`,t)}}),Oi(()=>()=>{ne!==null&&window.clearTimeout(ne)});function ie(){if(!M(l))return;let e=new Blob([M(l)],{type:`image/svg+xml;charset=utf-8`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`diagram.svg`,n.click(),URL.revokeObjectURL(t)}function ae(e){D(m,!1),D(f,i(e),!0)}function oe(){D(m,!0),D(f,M(p),!0);let e=M(x);if(e&&M(u)){let t=getComputedStyle(e),n=Number.parseFloat(t.paddingTop)+Number.parseFloat(t.paddingBottom),r=Math.max(1,(M(b)??e.clientHeight)-n),i={x:0,y:Math.max(0,(M(u).height*M(p)-r)/2)};te=i,D(_,i,!0)}}function se(){let e=M(x);if(!e||!M(re))return{x:0,y:0};let t=getComputedStyle(e),n={width:Math.max(0,e.clientWidth-Number.parseFloat(t.paddingLeft)-Number.parseFloat(t.paddingRight)),height:Math.max(0,e.clientHeight-Number.parseFloat(t.paddingTop)-Number.parseFloat(t.paddingBottom))};return $d(M(re),n)}function ce(e){return ef({x:0,y:0},e,se()).camera}Oi(()=>{M(re),M(f);let e=ce(te);(e.x!==te.x||e.y!==te.y)&&(te=e,D(_,e,!0))});async function le(e,t){try{await a(e),D(v,t,!0),ne!==null&&window.clearTimeout(ne),ne=window.setTimeout(()=>D(v,null),1800)}catch{D(v,`error`)}}function ue(e){return e instanceof Element?!e.closest(`.node, text, .dmd-diagram-subgraph-copy, button, a`):!0}function de(e){let t=M(x);!t||e.pointerType===`mouse`&&e.button!==0||!ue(e.target)||(ee={pointerId:e.pointerId,lastX:e.clientX,lastY:e.clientY},t.setPointerCapture(e.pointerId),D(y,!0),e.preventDefault())}function fe(e){let t=ee;if(t?.pointerId===e.pointerId){let n={x:e.clientX-t.lastX,y:e.clientY-t.lastY},r=ef(te,n,se());t.lastX=e.clientX,t.lastY=e.clientY,te=r.camera,D(_,r.camera,!0),!M(h)&&r.remainder.y!==0&&window.scrollBy({top:-r.remainder.y,behavior:`instant`}),e.preventDefault()}}function pe(e){let t=M(x);ee?.pointerId===e.pointerId&&(ee=null,D(y,!1),t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId))}Oi(()=>{let e=M(x);if(!e)return;let t=t=>{if(!M(re))return;let n=t.deltaMode===1?16:t.deltaMode===2?e.clientHeight:1,r={x:-t.deltaX*n,y:-t.deltaY*n},i=ef(te,r,se()),a=i.camera.x!==te.x||i.camera.y!==te.y;!a&&(M(h)||i.remainder.y===0)||(t.preventDefault(),te=i.camera,a&&D(_,i.camera,!0),!M(h)&&i.remainder.y!==0&&window.scrollBy({top:-i.remainder.y,behavior:`instant`}))};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)});var me={get source(){return s()},set source(e){s(e),T()}},he=ET(),ge=O(he),_e=O(ge),ve=O(_e),ye=A(ve,2),be=k(ye),xe=A(ye,2),Se=A(xe,2),Ce=A(Se,2),we=A(Ce,4),Te=O(we),Ee=e=>{F(e,bT())},De=e=>{F(e,xT())};L(Te,e=>{M(v)===`graph`?e(Ee):e(De,-1)}),w(we);var Oe=A(we,4),ke=A(Oe,2),Ae=k(ke,!0);w(_e);var je=A(_e,2),Me=O(je),Ne=e=>{var t=ST(),n=k(t);j(()=>I(n,`Diagram syntax error: ${M(d)??``}`)),F(e,t)},Pe=e=>{var t=wT(),n=O(t);ys(n,()=>M(l),!0),w(n),ps(A(n,2),17,()=>M(g),e=>e.id,(e,t)=>{var n=CT(),r=O(n),i=e=>{F(e,bT())},a=e=>{F(e,xT())};L(r,e=>{M(v)===M(t).id?e(i):e(a,-1)}),w(n),j(()=>{sc(n,1,`dmd-diagram-subgraph-copy${M(v)===M(t).id?` copied`:``}`),lc(n,`left: ${M(t).left??``}px; top: ${M(t).top??``}px;`),R(n,`aria-label`,M(v)===M(t).id?`${M(t).label} subgraph Markdown copied`:`Copy ${M(t).label} subgraph Markdown`),R(n,`title`,M(v)===M(t).id?`Copied`:`Copy ${M(t).label} subgraph Markdown`)}),N(`click`,n,()=>le(M(t).markdown,M(t).id)),F(e,n)}),w(t),yl(t,e=>D(S,e),()=>M(S)),j((e,n,r,i)=>lc(t,`width: ${M(re).width??``}px; height: ${M(re).height??``}px; margin-left: ${e??``}px; margin-top: ${n??``}px; transform: translate(${r??``}px, ${i??``}px);`),[()=>-Math.round(M(re).width/2),()=>-Math.round(M(re).height/2),()=>Math.round(M(_).x),()=>Math.round(M(_).y)]),F(e,t)},Fe=e=>{F(e,TT())};L(Me,e=>{M(d)?e(Ne):M(l)&&M(re)?e(Pe,1):e(Fe,-1)}),w(je),yl(je,e=>D(x,e),()=>M(x));var Ie=k(A(je,2),!0);return w(ge),w(he),j(e=>{sc(he,1,`dmd-diagram-viewer${M(h)?` is-expanded`:``}`),ve.disabled=!M(l)||M(f)<=n,I(be,`${e??``}%`),xe.disabled=!M(l)||M(f)>=3,Se.disabled=!M(l)||M(m),Ce.disabled=!M(l)||M(f)===1,sc(we,1,`dmd-diagram-btn dmd-diagram-icon-btn dmd-diagram-copy-all${M(v)===`graph`?` copied`:``}`),we.disabled=!M(l),R(we,`aria-label`,M(v)===`graph`?`Graph Markdown copied`:`Copy graph Markdown`),R(we,`title`,M(v)===`graph`?`Copied`:`Copy graph Markdown`),Oe.disabled=!M(l),ke.disabled=!M(l),I(Ae,M(h)?`Close`:`Expand`),sc(je,1,`dmd-diagram-stage${M(y)?` is-panning`:``}`),lc(je,M(b)!==null&&!M(h)?`height: ${M(b)}px; aspect-ratio: auto;`:void 0),I(Ie,M(v)===`error`?`Clipboard unavailable. Select the diagram text manually.`:``)},[()=>Math.round(M(f)*100)]),N(`click`,ve,()=>ae(M(f)-r)),N(`click`,xe,()=>ae(M(f)+r)),N(`click`,Se,oe),N(`click`,Ce,()=>ae(1)),N(`click`,we,()=>le(tf(M(c)),`graph`)),N(`click`,Oe,ie),N(`click`,ke,()=>D(h,!M(h))),N(`pointerdown`,je,de),N(`pointermove`,je,fe),N(`pointerup`,je,pe),fo(`pointercancel`,je,pe),F(e,he),dn(me)}po([`click`,`pointerdown`,`pointermove`,`pointerup`]),customElements.define(`dmd-mermaid`,Zl(DT,{source:{}},[],[]));var OT;function $(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}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 kT=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},AT=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(OT=globalThis).__zod_globalConfig??(OT.__zod_globalConfig={});var jT=globalThis.__zod_globalConfig;function MT(e){return e&&Object.assign(jT,e),jT}function NT(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 PT(e,t){return typeof t==`bigint`?t.toString():t}function FT(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function IT(e){return e==null}function LT(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function RT(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var zT=Symbol(`evaluating`);function BT(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==zT)return r===void 0&&(r=zT,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function VT(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function HT(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function UT(e){return JSON.stringify(e)}function WT(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var GT=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function KT(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var qT=FT(()=>{if(jT.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function JT(e){if(KT(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return KT(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function YT(e){return JT(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var XT=new Set([`string`,`number`,`symbol`]);function ZT(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function QT(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function $T(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 eE(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var tE={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function nE(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return QT(e,HT(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return VT(this,`shape`,e),e},checks:[]}))}function rE(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return QT(e,HT(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return VT(this,`shape`,r),r},checks:[]}))}function iE(e,t){if(!JT(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return QT(e,HT(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return VT(this,`shape`,n),n}}))}function aE(e,t){if(!JT(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return QT(e,HT(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return VT(this,`shape`,n),n}}))}function oE(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return QT(e,HT(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return VT(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function sE(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return QT(t,HT(t._zod.def,{get shape(){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 VT(this,`shape`,i),i},checks:[]}))}function cE(e,t,n){return QT(t,HT(t._zod.def,{get shape(){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 VT(this,`shape`,i),i}}))}function lE(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function uE(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function dE(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function fE(e){return typeof e==`string`?e:e?.message}function pE(e,t,n){let r=e.message?e.message:fE(e.inst?._zod.def?.error?.(e))??fE(t?.error?.(e))??fE(n.customError?.(e))??fE(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function mE(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function hE(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var gE=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,PT,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},_E=$(`$ZodError`,gE),vE=$(`$ZodError`,gE,{Parent:Error});function yE(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 bE(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}var xE=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new kT;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>pE(e,a,MT())));throw GT(t,i?.callee),t}return o.value},SE=e=>async(t,n,r,i)=>{let a=r?{...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=>pE(e,a,MT())));throw GT(t,i?.callee),t}return o.value},CE=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 kT;return a.issues.length?{success:!1,error:new(e??_E)(a.issues.map(e=>pE(e,i,MT())))}:{success:!0,data:a.value}},wE=CE(vE),TE=e=>async(t,n,r)=>{let i=r?{...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=>pE(e,i,MT())))}:{success:!0,data:a.value}},EE=TE(vE),DE=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return xE(e)(t,n,i)},OE=e=>(t,n,r)=>xE(e)(t,n,r),kE=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return SE(e)(t,n,i)},AE=e=>async(t,n,r)=>SE(e)(t,n,r),jE=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return CE(e)(t,n,i)},ME=e=>(t,n,r)=>CE(e)(t,n,r),NE=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return TE(e)(t,n,i)},PE=e=>async(t,n,r)=>TE(e)(t,n,r),FE=/^[cC][0-9a-z]{6,}$/,IE=/^[0-9a-z]+$/,LE=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,RE=/^[0-9a-vA-V]{20}$/,zE=/^[A-Za-z0-9]{27}$/,BE=/^[a-zA-Z0-9_-]{21}$/,VE=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,HE=/^([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})$/,UE=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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,WE=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,GE=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function KE(){return new RegExp(GE,`u`)}var qE=/^(?:(?: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])$/,JE=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,YE=/^((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])$/,XE=/^(([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])$/,ZE=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,QE=/^[A-Za-z0-9_-]*$/,$E=/^https?$/,eD=/^\+[1-9]\d{6,14}$/,tD=`(?:(?:\\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])))`,nD=RegExp(`^${tD}$`);function rD(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 iD(e){return RegExp(`^${rD(e)}$`)}function aD(e){let t=rD({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${tD}T(?:${r})$`)}var oD=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},sD=/^-?\d+$/,cD=/^-?\d+(?:\.\d+)?$/,lD=/^(?:true|false)$/i,uD=/^[^A-Z]*$/,dD=/^[^a-z]*$/,fD=$(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),pD={number:`number`,bigint:`bigint`,object:`date`},mD=$(`$ZodCheckLessThan`,(e,t)=>{fD.init(e,t);let n=pD[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:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hD=$(`$ZodCheckGreaterThan`,(e,t)=>{fD.init(e,t);let n=pD[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:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),gD=$(`$ZodCheckMultipleOf`,(e,t)=>{fD.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):RT(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})}}),_D=$(`$ZodCheckNumberFormat`,(e,t)=>{fD.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=tE[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=sD)}),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`,continue:!1,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,inclusive:!0,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,inclusive:!0,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,inclusive:!0,inst:e,continue:!t.abort})}}),vD=$(`$ZodCheckMaxLength`,(e,t)=>{var n;fD.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!IT(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=mE(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),yD=$(`$ZodCheckMinLength`,(e,t)=>{var n;fD.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!IT(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=mE(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),bD=$(`$ZodCheckLengthEquals`,(e,t)=>{var n;fD.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!IT(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=mE(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})}}),xD=$(`$ZodCheckStringFormat`,(e,t)=>{var n,r;fD.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=()=>{})}),SD=$(`$ZodCheckRegex`,(e,t)=>{xD.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})}}),CD=$(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=uD,xD.init(e,t)}),wD=$(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=dD,xD.init(e,t)}),TD=$(`$ZodCheckIncludes`,(e,t)=>{fD.init(e,t);let n=ZT(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})}}),ED=$(`$ZodCheckStartsWith`,(e,t)=>{fD.init(e,t);let n=RegExp(`^${ZT(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})}}),DD=$(`$ZodCheckEndsWith`,(e,t)=>{fD.init(e,t);let n=RegExp(`.*${ZT(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})}}),OD=$(`$ZodCheckOverwrite`,(e,t)=>{fD.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),kD=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(`
|
|
498
|
+
`)}\n\n`;D(r,`${M(r).trimEnd()}${t}`),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`✔ Markdown table inserted at end of document`),D(u,`editor`)}Oi(()=>{if(Q.isEditorOpen&&Q.currentDoc){if(Q.currentDoc.rawContent)D(r,Q.currentDoc.rawContent,!0);else if(M(n)){let e=typeof window<`u`?window:null;D(r,e?.__DOCMEDOWN_DATA__?.docs?.[Q.currentSlug]||e?.__DOCMEDOWN_DOCS__?.[Q.currentSlug]||``,!0)}else fetch(`/__dmd_api__/raw?slug=${encodeURIComponent(Q.currentSlug)}`).then(e=>e.ok?e.text():``).then(e=>{e&&D(r,e,!0)}).catch(()=>{});_(),D(a,M(n)?`Ready to edit (Offline Mode)`:`Ready to edit`,!0)}});function ie(e){e.key===`Escape`?(e.preventDefault(),Q.isEditorOpen=!1):(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`s`&&(e.preventDefault(),se(M(n)?`source`:M(i)))}function ae(e){if(e.key===`Tab`){e.preventDefault();let t=e.currentTarget,n=t.selectionStart,i=t.selectionEnd;D(r,`${M(r).substring(0,n)} ${M(r).substring(i)}`),setTimeout(()=>{t.selectionStart=t.selectionEnd=n+2},0)}}function oe(e){let t=e.target;D(r,t.value,!0),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`Unsaved changes (live preview active)`)}async function se(e){if(M(o))return;if(D(o,!0),M(n)){try{if(Q.updateDocContent(M(r),Q.currentSlug,!1),typeof window<`u`){let e=window;e.__DOCMEDOWN_DATA__?.docs&&(e.__DOCMEDOWN_DATA__.docs[Q.currentSlug]=M(r));try{localStorage.setItem(`dmd-offline-doc-${Q.currentSlug}`,M(r))}catch{}}D(a,`✔ Saved to offline local session & browser storage at ${new Date().toLocaleTimeString()}`)}catch(e){D(a,`✖ Save error: ${e.message||`Failed to update offline document`}`)}finally{D(o,!1)}return}D(a,`Saving to ${e}...`);let t=Q.currentDoc?.path||`${Q.currentSlug===`README`?`README`:Q.currentSlug}.md`;try{let n=await fetch(`/__dmd_api__/save`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({file:t,slug:Q.currentSlug,content:M(r),target:e})});if(n.ok)await n.json(),Q.updateDocContent(M(r),Q.currentSlug,!1),D(a,`✔ Saved to ${e} (${t}) at ${new Date().toLocaleTimeString()}`),e===`preview`&&(Q.hasPreviewChanges=!0);else{let e=await n.json().catch(()=>({}));D(a,`✖ Save failed: ${e.error||n.statusText}`)}}catch(e){D(a,`✖ Save error: ${e.message||`Dev server not reachable`}`)}finally{D(o,!1)}}function ce(){let e=(Q.currentDoc?.path||`${Q.currentSlug===`README`?`README`:Q.currentSlug}.md`).split(`/`).pop()||`document.md`,t=new Blob([M(r)],{type:`text/markdown;charset=utf-8`}),n=URL.createObjectURL(t),i=document.createElement(`a`);i.href=n,i.download=e,document.body.appendChild(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3),D(a,`✔ Downloaded ${e}`)}async function le(e){if(!M(n))try{(await fetch(`/__dmd_api__/mode`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({mode:e})})).ok&&(Q.serverMode=e,D(a,`Switched server to ${e} mode`))}catch{}}async function ue(){if(!M(n)&&confirm(`Publish all staged .preview changes directly to production source files?`))try{(await fetch(`/__dmd_api__/publish-preview`,{method:`POST`})).ok&&(Q.hasPreviewChanges=!1,D(a,`✔ Preview changes published to source!`))}catch(e){D(a,`✖ Error: ${e.message}`)}}async function de(){if(!M(n)&&confirm(`Discard all staged .preview changes? This cannot be undone.`))try{(await fetch(`/__dmd_api__/discard-preview`,{method:`POST`})).ok&&(Q.hasPreviewChanges=!1,D(a,`Preview staging discarded.`))}catch(e){D(a,`✖ Error: ${e.message}`)}}function fe(e,t){if(e===Q.currentSlug&&t){let e=decodeURIComponent(t).toLowerCase().replace(/^[#]/,``),n=document.querySelector(`.dmd-editor-preview-content #${e}`);if(n){n.scrollIntoView({behavior:`smooth`,block:`start`});return}}Q.navigate(e,t)}var pe=Mo();fo(`keydown`,ii,ie);var me=pi(pe),he=e=>{var t=QC(),pe=O(t),me=O(pe),he=O(me),ge=k(A(O(he),4));w(he);var _e=A(he,2),ve=O(_e),ye=A(ve,2),be=A(ye,2);w(_e);var xe=A(_e,2),Se=O(xe),Ce=e=>{var t=LC(),n=A(O(t),2),r=A(n,2);w(t),j(()=>{sc(n,1,`dmd-editor-pill-btn ${M(i)===`source`?`active`:``}`,`svelte-q838rt`),sc(r,1,`dmd-editor-pill-btn ${M(i)===`preview`?`active`:``}`,`svelte-q838rt`)}),N(`click`,n,()=>D(i,`source`)),N(`click`,r,()=>D(i,`preview`)),F(e,t)};L(Se,e=>{M(n)||e(Ce)});var we=A(Se,2),Te=k(we,!0),Ee=A(we,2),De=O(Ee),Oe=e=>{F(e,RC())},ke=e=>{var t=VC(),n=A(pi(t),2),r=e=>{var t=zC();N(`click`,t,()=>le(`production`)),F(e,t)},i=e=>{var t=BC();N(`click`,t,()=>le(`preview`)),F(e,t)};L(n,e=>{Q.serverMode===`preview`?e(r):e(i,-1)}),F(e,t)};L(De,e=>{M(n)?e(Oe):e(ke,-1)}),w(Ee);var Ae=A(Ee,2);w(xe),w(me);var je=A(me,2),Me=O(je),Ne=e=>{var t=HC(),n=O(t),i=O(n);Bn(i),w(n),w(t),j(()=>Oc(i,M(r))),N(`input`,i,oe),N(`keydown`,i,ae),F(e,t)},Pe=e=>{var t=UC(),n=O(t),r=A(O(n),4),i=O(r),a=A(O(i),2);Dc(a),w(i);var o=A(i,2),s=A(O(o),2);Dc(s),w(o);var c=A(o,2),l=A(O(c),2);Dc(l),w(c);var u=A(c,2),_=A(O(u),2);Dc(_),w(u);var y=A(u,2),b=A(O(y),2);Dc(b),w(y);var x=A(y,2),S=O(x),ee=O(S);Dc(ee),it(2),w(S),w(x),w(r),w(n),w(t),N(`input`,a,v),Wc(a,()=>M(d),e=>D(d,e)),N(`input`,s,v),Wc(s,()=>M(p),e=>D(p,e)),N(`input`,l,v),Wc(l,()=>M(f),e=>D(f,e)),N(`input`,_,v),Wc(_,()=>M(m),e=>D(m,e)),N(`input`,b,v),Wc(b,()=>M(h),e=>D(h,e)),N(`change`,ee,v),qc(ee,()=>M(g),e=>D(g,e)),F(e,t)},Fe=e=>{var t=qC(),n=O(t),r=O(n),i=O(r),a=k(A(O(i),2));w(i);var o=A(i,2),s=O(o),c=A(s,2),l=A(c,2);w(o),w(r);var u=A(r,2),d=O(u),f=O(d),p=O(f);ps(O(p),17,()=>M(y),ls,(e,t,n)=>{var r=WC(),i=O(r),a=O(i);Dc(a);var o=A(a,2),s=O(o);s.value=s.__value=`left`;var c=A(s);c.value=c.__value=`center`;var l=A(c);l.value=l.__value=`right`,w(o),mc(o);var u=A(o,2);w(i),w(r),Wc(a,()=>M(y)[n],e=>M(y)[n]=e),hc(o,()=>M(b)[n],e=>M(b)[n]=e),N(`click`,u,()=>ee(n)),F(e,r)}),it(),w(p),w(f);var m=A(f);ps(m,21,()=>M(x),ls,(e,t,n)=>{var r=KC(),i=O(r);ps(i,17,()=>M(t),ls,(e,t,r)=>{var i=GC(),a=O(i);Dc(a),w(i),Wc(a,()=>M(x)[n][r],e=>M(x)[n][r]=e),F(e,i)});var a=k(A(i));w(r),N(`click`,a,()=>ne(n)),F(e,r)}),w(m),w(d),w(u),w(n),w(t),j(()=>I(a,`${M(y).length??``} cols × ${M(x).length??``} rows`)),N(`click`,s,S),N(`click`,c,te),N(`click`,l,re),F(e,t)};L(Me,e=>{M(u)===`editor`?e(Ne):M(u)===`frontmatter`?e(Pe,1):M(u)===`table`&&e(Fe,2)});var Ie=A(Me,2),Le=e=>{var t=JC(),n=A(O(t),2);xC(O(n),{get html(){return M(c)},onNavigate:fe}),w(n),w(t),F(e,t)};L(Ie,e=>{M(s)&&e(Le)}),w(je);var Re=A(je,2),ze=O(Re),Be=O(ze),Ve=k(Be,!0),He=k(A(Be,2));w(ze);var Ue=A(ze,2),We=O(Ue),Ge=e=>{var t=XC(),n=pi(t),r=e=>{var t=YC(),n=pi(t),r=A(n,2);N(`click`,n,ue),N(`click`,r,de),F(e,t)};L(n,e=>{Q.hasPreviewChanges&&e(r)});var i=A(n,2),a=A(i,2),s=k(a,!0);j(()=>{i.disabled=M(o),a.disabled=M(o),I(s,M(o)?`Saving...`:`Save to Source`)}),N(`click`,i,()=>se(`preview`)),N(`click`,a,()=>se(`source`)),F(e,t)},Ke=e=>{var t=ZC(),n=pi(t),r=A(n,2),i=k(r,!0);j(()=>{r.disabled=M(o),I(i,M(o)?`Saving...`:`Save to Session`)}),N(`click`,n,ce),N(`click`,r,()=>se(`source`)),F(e,t)};L(We,e=>{M(n)?e(Ke,-1):e(Ge)}),w(Ue),w(Re),w(pe),w(t),j(()=>{I(ge,`${Q.currentSlug??``}.md`),sc(ve,1,`dmd-editor-tab-btn ${M(u)===`editor`?`active`:``}`,`svelte-q838rt`),sc(ye,1,`dmd-editor-tab-btn ${M(u)===`frontmatter`?`active`:``}`,`svelte-q838rt`),sc(be,1,`dmd-editor-tab-btn ${M(u)===`table`?`active`:``}`,`svelte-q838rt`),sc(we,1,`dmd-editor-btn-secondary ${M(s)?`active`:``}`,`svelte-q838rt`),I(Te,M(s)?`Split: ON`:`Split: OFF`),sc(je,1,`dmd-editor-body ${M(s)?`split`:`full`}`,`svelte-q838rt`),I(Ve,M(a)),I(He,`${M(l)??``} lines`)}),N(`click`,t,e=>{e.target===e.currentTarget&&(Q.isEditorOpen=!1)}),N(`keydown`,t,ie),N(`click`,ve,()=>D(u,`editor`)),N(`click`,ye,()=>{_(),D(u,`frontmatter`)}),N(`click`,be,()=>D(u,`table`)),N(`click`,we,()=>D(s,!M(s))),N(`click`,Ae,()=>Q.isEditorOpen=!1),F(e,t)};L(me,e=>{Q.isEditorOpen&&e(he)}),F(e,pe),dn()}po([`click`,`keydown`,`input`,`change`]);var ew=[`atlas`,`blueprint`,`terminal`,`editorial`],tw=[`comfortable`,`compact`];function nw(e){try{if(typeof window>`u`)return null;let t=window.localStorage;return t?t.getItem(e):null}catch{return null}}function rw(e,t){try{if(typeof window>`u`)return;window.localStorage?.setItem(e,t)}catch{}}function iw(e,t){let n=nw(e);return n&&t.includes(n)?n:null}var aw=new class{#e=E(`auto`);get mode(){return M(this.#e)}set mode(e){D(this.#e,e,!0)}#t=E(`atlas`);get family(){return M(this.#t)}set family(e){D(this.#t,e,!0)}#n=E(`comfortable`);get density(){return M(this.#n)}set density(e){D(this.#n,e,!0)}#r=E(`full`);get motion(){return M(this.#r)}set motion(e){D(this.#r,e,!0)}#i=E(!1);get systemDark(){return M(this.#i)}set systemDark(e){D(this.#i,e,!0)}accentColor;accentColorDark;#a=lr(()=>this.mode===`auto`?this.systemDark?`dark`:`light`:this.mode);get resolvedMode(){return M(this.#a)}set resolvedMode(e){D(this.#a,e)}mediaQuery=null;mediaHandler=null;init(e={}){this.mode=iw(`dmd-color-mode`,[`light`,`dark`,`auto`])??e.defaultMode??`auto`,this.family=iw(`dmd-theme-family`,ew)??e.defaultFamily??`atlas`,this.density=iw(`dmd-theme-density`,tw)??e.defaultDensity??`comfortable`;let t=typeof document<`u`?document.documentElement?.getAttribute(`data-dmd-motion`):null,n=t===`reduced`||t===`off`?`reduced`:iw(`dmd-motion`,[`full`,`reduced`])??`full`;this.motion=n,this.accentColor=e.accentColor,this.accentColorDark=e.accentColorDark;try{typeof window<`u`&&(this.systemDark=window.matchMedia(`(prefers-color-scheme: dark)`).matches)}catch{}try{typeof window<`u`&&window.matchMedia&&(this.mediaQuery=window.matchMedia(`(prefers-color-scheme: dark)`),this.mediaHandler=e=>{this.systemDark=e.matches},this.mediaQuery.addEventListener(`change`,this.mediaHandler))}catch{}}setMode(e){this.mode=e,rw(`dmd-color-mode`,e)}setFamily(e){this.family=e,rw(`dmd-theme-family`,e)}setDensity(e){this.density=e,rw(`dmd-theme-density`,e)}setMotion(e){this.motion=e,rw(`dmd-motion`,e)}toggleMode(){this.setMode(this.resolvedMode===`dark`?`light`:`dark`)}destroy(){try{this.mediaQuery&&this.mediaHandler&&this.mediaQuery.removeEventListener(`change`,this.mediaHandler)}catch{}this.mediaQuery=null,this.mediaHandler=null}},ow=P(`<button type="button"><span aria-hidden="true"><span></span> <span></span> <span></span></span> <span class="dmd-theme-family-name"> </span> <span class="dmd-theme-family-description"> </span></button>`),sw=P(`<button type="button"> </button>`),cw=P(`<div class="dmd-appearance-panel" role="dialog" aria-label="Documentation appearance"><div class="dmd-appearance-heading"><span>Appearance</span> <button type="button" class="dmd-appearance-close" aria-label="Close appearance menu">×</button></div> <div class="dmd-appearance-section"><div class="dmd-appearance-label">Theme family</div> <div class="dmd-theme-family-grid"></div></div> <fieldset class="dmd-appearance-section"><legend class="dmd-appearance-label">Mode</legend> <div class="dmd-segmented-control"></div> <button type="button" class="dmd-appearance-quick-mode"> </button></fieldset> <fieldset class="dmd-appearance-section"><legend class="dmd-appearance-label">Reading density</legend> <div class="dmd-segmented-control"></div></fieldset> <fieldset class="dmd-appearance-section"><legend class="dmd-appearance-label">Animations</legend> <div class="dmd-segmented-control"><button type="button">Smooth</button> <button type="button">Reduced</button></div></fieldset></div>`),lw=P(`<div class="dmd-appearance"><button type="button" class="dmd-appearance-trigger" aria-haspopup="dialog"><span aria-hidden="true"></span> <span class="dmd-appearance-trigger-label">Appearance</span></button> <!></div>`);function uw(e,t){un(t,!0);let n=[{family:`atlas`,label:`Atlas`,description:`Editorial technical reference`},{family:`blueprint`,label:`Blueprint`,description:`Structured and schematic`},{family:`terminal`,label:`Terminal`,description:`Compact operational console`},{family:`editorial`,label:`Editorial`,description:`Spacious publication reading`}],r=E(!1),i=null;Oi(()=>{if(!M(r))return;let e=e=>{i?.contains(e.target)||D(r,!1)},t=e=>{e.key===`Escape`&&D(r,!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}});var a=lw(),o=O(a),s=O(o);it(2),w(o);var c=A(o,2),l=e=>{var t=cw(),i=O(t),a=A(O(i),2);w(i);var o=A(i,2),s=A(O(o),2);ps(s,21,()=>n,e=>e.family,(e,t)=>{var n=ow(),r=O(n),i=A(r,2),a=k(i,!0),o=k(A(i,2),!0);w(n),j(()=>{sc(n,1,`dmd-theme-family-card ${aw.family===M(t).family?`active`:``}`),R(n,`aria-pressed`,aw.family===M(t).family),sc(r,1,`dmd-theme-preview dmd-theme-preview-${M(t).family??``}`),I(a,M(t).label),I(o,M(t).description)}),N(`click`,n,()=>aw.setFamily(M(t).family)),F(e,n)}),w(s),w(o);var c=A(o,2),l=A(O(c),2);ps(l,20,()=>[`auto`,`light`,`dark`],e=>e,(e,t)=>{var n=sw(),r=k(n,!0);j(()=>{sc(n,1,tc(aw.mode===t?`active`:``)),I(r,t)}),N(`click`,n,()=>aw.setMode(t)),F(e,n)}),w(l);var u=A(l,2),d=k(u);w(c);var f=A(c,2),p=A(O(f),2);ps(p,20,()=>[`comfortable`,`compact`],e=>e,(e,t)=>{var n=sw(),r=k(n,!0);j(()=>{sc(n,1,tc(aw.density===t?`active`:``)),I(r,t)}),N(`click`,n,()=>aw.setDensity(t)),F(e,n)}),w(p),w(f);var m=A(f,2),h=A(O(m),2),g=O(h),_=A(g,2);w(h),w(m),w(t),j(()=>{I(d,`Use ${aw.resolvedMode===`dark`?`light`:`dark`} now`),sc(g,1,tc(aw.motion===`full`?`active`:``)),sc(_,1,tc(aw.motion===`reduced`?`active`:``))}),N(`click`,a,()=>D(r,!1)),N(`click`,u,()=>aw.toggleMode()),N(`click`,g,()=>aw.setMotion(`full`)),N(`click`,_,()=>aw.setMotion(`reduced`)),F(e,t)};L(c,e=>{M(r)&&e(l)}),w(a),yl(a,e=>i=e,()=>i),j(()=>{R(o,`aria-expanded`,M(r)),sc(s,1,`dmd-theme-mark dmd-theme-mark-${aw.family??``}`)}),N(`click`,o,()=>D(r,!M(r))),F(e,a),dn()}po([`click`]);var dw=P(`<div class="dmd-offline-download-error" role="alert"> </div>`),fw=P(`<div class="dmd-offline-download-wrap"><button type="button" class="dmd-offline-download-btn"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3v12"></path><path d="m7 10 5 5 5-5"></path><path d="M5 21h14"></path></svg> <span> </span></button> <!></div>`);function pw(e,t){un(t,!0);let n=qS(),r=E(`idle`),i=E(``);async function a(){if(!(n||M(r)===`compressing`)){D(r,`compressing`),D(i,``);try{await rC(),D(r,`idle`)}catch(e){D(r,`error`),D(i,e instanceof Error?e.message:String(e),!0)}}}let o=lr(()=>n?`Offline copy`:M(r)===`compressing`?`Compressing…`:`Download`),s=lr(()=>n?`This page is already a self-contained offline documentation copy.`:`Compress and download this documentation as a self-contained offline HTML file.`);var c=fw(),l=O(c),u=k(A(O(l),2),!0);w(l);var d=A(l,2),f=e=>{var t=dw(),n=k(t,!0);j(()=>I(n,M(i))),F(e,t)};L(d,e=>{M(i)&&e(f)}),w(c),j(()=>{l.disabled=n||M(r)===`compressing`,R(l,`aria-disabled`,n||M(r)===`compressing`),R(l,`title`,M(s)),I(u,M(o))}),N(`click`,l,a),F(e,c),dn()}po([`click`]);var mw=P(`<img class="dmd-brand-logo"/>`),hw=P(`<span class="dmd-brand-version"> </span>`),gw=P(`<button type="button" class="dmd-search-trigger"><svg class="dmd-search-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg> <span class="dmd-search-placeholder"> </span> <span class="dmd-search-shortcut"><kbd class="dmd-kbd"> </kbd></span></button>`),_w=P(`<span class="dmd-nav-crumb-sep">/</span> <!>`,1),vw=P(`<span class="dmd-nav-meta-item dmd-meta-item" title="Reading time"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> <span> </span></span>`),yw=P(`<span class="dmd-nav-meta-item dmd-meta-item dmd-meta-category"> </span>`),bw=P(`<button type="button" class="dmd-nav-meta-tag dmd-meta-tag dmd-clickable-tag"> </button>`),xw=P(`<button type="button" class="dmd-nav-meta-tag dmd-meta-tag dmd-clickable-tag dmd-nav-meta-tag-more"> </button>`),Sw=P(`<!> <!>`,1),Cw=P(`<div class="dmd-nav-meta"><!> <!> <!> <button type="button" class="dmd-meta-edit-btn" title="Edit this document (Ctrl+E / ⌘E)" aria-label="Edit document in 2-way editor"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg> <span>Edit</span></button></div>`),ww=P(`<a class="dmd-social-btn dmd-home-btn"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg></a>`),Tw=To(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"></path><path d="M9 18c-4.51 2-5-2-7-2"></path></svg>`),Ew=To(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.06 3.25a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z"></path></svg>`),Dw=To(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="12" r="1"></circle><circle cx="15" cy="12" r="1"></circle><path d="M7.5 7.5c3.5-1 5.5-1 9 0 1.5 2 2.5 5 2.5 8.5-2 1.5-4 1.5-5.5 1.5l-.5-1c1-.5 1.5-1 1.5-1-1.5 1-3.5 1-6 1s-4.5 0-6-1c0 0 .5.5 1.5 1l-.5 1c-1.5 0-3.5 0-5.5-1.5 0-3.5 1-6.5 2.5-8.5Z"></path></svg>`),Ow=To(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>`),kw=P(`<a class="dmd-social-btn" target="_blank" rel="noopener noreferrer"><!></a>`),Aw=P(`<div class="dmd-social-links"></div>`),jw=To(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>`),Mw=To(`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg>`),Nw=P(`<header><div class="dmd-navbar-left"><button type="button" class="dmd-mobile-menu-btn" aria-controls="dmd-sidebar"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" x2="20" y1="12" y2="12"></line><line x1="4" x2="20" y1="6" y2="6"></line><line x1="4" x2="20" y1="18" y2="18"></line></svg></button> <a class="dmd-brand"><!> <span class="dmd-brand-title"> </span> <!></a></div> <div><div class="dmd-navbar-search-full"><!></div> <div class="dmd-navbar-route-bar"><nav class="dmd-nav-breadcrumbs" aria-label="Breadcrumb"><!> <!></nav> <!></div></div> <div class="dmd-navbar-right"><!> <!> <button type="button" class="dmd-social-btn dmd-edit-btn" title="Edit markdown (Ctrl+E / ⌘E)" aria-label="Edit markdown"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg></button> <!> <!> <button type="button" class="dmd-theme-toggle-btn"><!></button></div></header>`);function Pw(e,t){un(t,!0);let n=lr(()=>Q.home?Q.home.kind===`href`?Q.home.href??`#/`:`#/${Q.home.slug}`:`#/README`),r=lr(()=>Q.home?.via===`ancestor`?`Original documentation home`:`Documentation home`),i=lr(()=>Q.config),a=lr(()=>Q.isScrolled),o=lr(()=>{let e=Q.currentSlug;return e?e.split(`/`).filter(Boolean):[]}),s=E(null),c=E(null),l=null,u=!0,d=null,f=()=>{if(typeof navigator>`u`)return!1;let e=navigator,t=e.userAgentData?.platform||e.platform||``,n=e.userAgent||``;return/^mac/i.test(t)||/macintosh|mac os x/i.test(n)},p=E($r(f()));Oi(()=>{D(p,f(),!0)});let m=lr(()=>M(p)?`⌘K`:`Ctrl K`),h=lr(()=>{let e=M(i)?.search?.placeholder||`Search docs...`;return M(p)?e.replace(/Ctrl\+?K/gi,`⌘K`):e.replace(/⌘K/g,`Ctrl K`).replace(/⌘/g,`Ctrl`)}),g=lr(()=>{let e=M(h);return e.includes(M(m))?e:`${e} (${M(m)})`});Oi(()=>{let e=!1,t=50,n=()=>{let e=document.querySelector(`.dmd-content-header`),n=document.querySelector(`.dmd-navbar`),r=n?n.offsetHeight:56;if(e){let n=e.getBoundingClientRect().top+window.scrollY;t=Math.max(30,Math.round(n-r+8))}else{let e=document.querySelector(`.dmd-main-content`);if(e){let n=e.getBoundingClientRect().top+window.scrollY;t=Math.max(30,Math.round(n-r+8))}else t=50}},r=()=>{e=!1;let n=window.scrollY,r=Fa(()=>Q.isScrolled),i=r?n>=t-20:n>=t;r!==i&&(Q.isScrolled=i)},i=()=>{e||(e=!0,requestAnimationFrame(r))};return n(),r(),window.addEventListener(`scroll`,i,{passive:!0}),window.addEventListener(`resize`,n,{passive:!0}),()=>{window.removeEventListener(`scroll`,i),window.removeEventListener(`resize`,n)}}),Oi(()=>{Q.currentSlug,Q.isLoading,requestAnimationFrame(()=>{let e=document.querySelector(`.dmd-content-header`),t=document.querySelector(`.dmd-navbar`),n=t?t.offsetHeight:56,r=50;e&&(r=Math.max(30,Math.round(e.getBoundingClientRect().top+window.scrollY-n+8))),Q.isScrolled=window.scrollY>=r})}),Oi(()=>{let e=M(a)&&!!Q.currentDoc;if(!(!M(c)||!M(s))){if(u){u=!1,d=e,e?(M(c).style.transition=`none`,M(c).setAttribute(`data-visible`,`true`),M(c).style.opacity=`1`,M(c).style.clipPath=`inset(0 0% 0 0)`,M(c).style.pointerEvents=`auto`,requestAnimationFrame(()=>{M(c)&&M(c).style.removeProperty(`transition`)}),M(s).style.transition=`none`,M(s).setAttribute(`data-collapsed`,`true`),M(s).style.removeProperty(`max-width`),requestAnimationFrame(()=>{M(s)&&M(s).style.removeProperty(`transition`)})):(M(c).style.opacity=`0`,M(c).style.clipPath=`inset(0 100% 0 0)`,M(c).style.pointerEvents=`none`,M(c).removeAttribute(`data-visible`),M(s).removeAttribute(`data-collapsed`),M(s).style.removeProperty(`max-width`));return}if(e!==d)return d=e,l!==null&&(clearTimeout(l),l=null),e?(M(s).style.removeProperty(`max-width`),M(s).setAttribute(`data-collapsed`,`true`),M(c).style.pointerEvents=`auto`,M(c).removeAttribute(`data-visible`),M(c).style.removeProperty(`transition`),M(c).style.clipPath=`inset(0 0% 0 0)`,M(c).style.opacity=`1`,l=setTimeout(()=>{l=null,M(c)&&Q.isScrolled&&Q.currentDoc&&(M(c).setAttribute(`data-visible`,`true`),M(c).style.removeProperty(`clip-path`),M(c).style.removeProperty(`opacity`))},260)):(M(s).style.removeProperty(`max-width`),M(s).removeAttribute(`data-collapsed`),M(c).style.pointerEvents=`none`,M(c).removeAttribute(`data-visible`),M(c).style.removeProperty(`transition`),M(c).style.clipPath=`inset(0 100% 0 0)`,M(c).style.opacity=`0`,l=setTimeout(()=>{l=null,M(c)&&!Q.isScrolled&&(M(c).style.clipPath=`inset(0 100% 0 0)`,M(c).style.opacity=`0`)},260)),()=>{l!==null&&(clearTimeout(l),l=null)}}});var _=Nw(),v=O(_),y=O(v),b=A(y,2),x=O(b),S=e=>{var t=mw();j(()=>{R(t,`src`,aw.resolvedMode===`dark`&&M(i).theme?.logo?.dark?M(i).theme.logo.dark:M(i).theme.logo.light),R(t,`alt`,M(i).theme?.logo?.alt||M(i).name)}),F(e,t)};L(x,e=>{M(i)?.theme?.logo?.light&&e(S)});var ee=A(x,2),te=k(ee,!0),ne=A(ee,2),re=e=>{var t=hw(),n=k(t);j(()=>I(n,`v${M(i).version??``}`)),F(e,t)};L(ne,e=>{M(i)?.version&&e(re)}),w(b),w(v);var ie=A(v,2);let ae;var oe=O(ie);R(oe,`aria-hidden`,!1);var se=O(oe),ce=e=>{var t=gw();R(t,`tabindex`,0);var n=A(O(t),2),r=k(n,!0),i=A(n,2),o=k(O(i),!0);w(i),w(t),j(()=>{R(t,`aria-label`,M(g)),R(t,`title`,M(a)&&Q.currentDoc?M(g):void 0),I(r,M(h)),I(o,M(m))}),N(`click`,t,()=>Q.isSearchOpen=!0),F(e,t)};L(se,e=>{M(i)?.search?.enabled!==!1&&e(ce)}),w(oe),yl(oe,e=>D(s,e),()=>M(s));var le=A(oe,2),ue=O(le),de=O(ue);bS(de,{label:`Docs`,index:0,isHome:!0,get isScrolled(){return M(a)}}),ps(A(de,2),17,()=>M(o),ls,(e,t,n)=>{var r=_w(),i=A(pi(r),2);{let e=lr(()=>n===M(o).length-1);bS(i,{get label(){return M(t)},index:n+1,get isLast(){return M(e)},get isScrolled(){return M(a)}})}F(e,r)}),w(ue);var fe=A(ue,2),pe=e=>{var t=Cw(),n=O(t),r=e=>{var t=vw(),n=k(A(O(t),2));w(t),j(()=>I(n,`${Q.currentDoc.readingTimeMinutes??``} min read`)),F(e,t)};L(n,e=>{Q.currentDoc.readingTimeMinutes&&e(r)});var i=A(n,2),o=e=>{var t=yw(),n=k(t,!0);j(()=>I(n,Q.currentDoc.frontmatter.category)),F(e,t)};L(i,e=>{Q.currentDoc.frontmatter?.category&&e(o)});var s=A(i,2),c=e=>{let t=lr(()=>Q.currentDoc.frontmatter.tags),n=lr(()=>M(t).length>2?1:2),r=lr(()=>M(t).slice(0,M(n))),i=lr(()=>M(t).length-M(r).length);var o=Sw(),s=pi(o);ps(s,16,()=>M(r),e=>e,(e,t)=>{var n=bw(),r=k(n);j(()=>{R(n,`tabindex`,M(a)?0:-1),R(n,`title`,`View documents tagged with #${t??``}`),R(n,`aria-label`,`View documents tagged with #${t??``}`),I(r,`#${t??``}`)}),N(`click`,n,()=>Q.openTagModal(t)),F(e,n)});var c=A(s,2),l=e=>{var n=xw(),r=k(n);j(()=>{R(n,`tabindex`,M(a)?0:-1),R(n,`title`,`View all ${M(t).length} tags for this document`),R(n,`aria-label`,`View ${M(i)} more tags`),I(r,`+${M(i)??``}`)}),N(`click`,n,()=>Q.openTagModal(M(t)[1]||M(t)[0])),F(e,n)};L(c,e=>{M(i)>0&&e(l)}),F(e,o)};L(s,e=>{Q.currentDoc.frontmatter?.tags&&Q.currentDoc.frontmatter.tags.length>0&&e(c)});var l=A(s,2);w(t),j(()=>R(l,`tabindex`,M(a)?0:-1)),N(`click`,l,()=>Q.isEditorOpen=!0),F(e,t)};L(fe,e=>{Q.currentDoc&&e(pe)}),w(le),yl(le,e=>D(c,e),()=>M(c)),w(ie);var me=A(ie,2),he=O(me),ge=e=>{var t=ww();j(()=>{R(t,`href`,M(n)),R(t,`title`,M(r))}),F(e,t)};L(he,e=>{Q.home&&e(ge)});var _e=A(he,2),ve=e=>{var t=Aw();ps(t,21,()=>M(i).socials,e=>e.url,(e,t)=>{var n=kw(),r=O(n),i=e=>{F(e,Tw())},a=e=>{F(e,Ew())},o=e=>{F(e,Dw())},s=e=>{F(e,Ow())};L(r,e=>{M(t).type===`github`?e(i):M(t).type===`gitlab`?e(a,1):M(t).type===`discord`?e(o,2):e(s,-1)}),w(n),j(()=>{R(n,`href`,M(t).url),R(n,`title`,M(t).label||M(t).type)}),F(e,n)}),w(t),F(e,t)};L(_e,e=>{M(i)?.socials&&M(i).socials.length>0&&e(ve)});var ye=A(_e,2),be=A(ye,2);pw(be,{});var xe=A(be,2);uw(xe,{});var Se=A(xe,2),Ce=O(Se),we=e=>{F(e,jw())},Te=e=>{F(e,Mw())};L(Ce,e=>{aw.resolvedMode===`dark`?e(we):e(Te,-1)}),w(Se),w(me),w(_),j(()=>{sc(_,1,`dmd-navbar ${M(a)?`dmd-navbar-scrolled`:``}`),R(y,`aria-label`,Q.isMobileSidebarOpen?`Close documentation navigation`:`Open documentation navigation`),R(y,`aria-expanded`,Q.isMobileSidebarOpen),R(b,`href`,M(n)),I(te,M(i)?.name),ae=sc(ie,1,`dmd-navbar-center`,null,ae,{"has-route":M(a)&&Q.currentDoc}),R(le,`aria-hidden`,!M(a)||!Q.currentDoc),R(Se,`title`,`Switch to ${aw.resolvedMode===`dark`?`light`:`dark`} mode`),R(Se,`aria-label`,`Switch to ${aw.resolvedMode===`dark`?`light`:`dark`} mode`)}),N(`click`,y,()=>Q.isMobileSidebarOpen=!Q.isMobileSidebarOpen),N(`click`,ye,()=>Q.isEditorOpen=!0),N(`click`,Se,()=>aw.toggleMode()),F(e,_),dn()}po([`click`]);var Fw=P(`<div class="dmd-offline-toast" role="status"><span> </span> <button type="button" class="dmd-offline-toast-action">Learn more</button> <button type="button" class="dmd-offline-toast-dismiss" aria-label="Dismiss offline notice">×</button></div>`),Iw=P(`<li> </li>`),Lw=P(`<li>Links to other documentation files are disabled because nested sites were not embedded in this copy.</li>`),Rw=P(`<div class="dmd-modal-backdrop" role="dialog" aria-modal="true" tabindex="-1" aria-label="Offline documentation limitations"><section class="dmd-offline-modal"><div class="dmd-offline-modal-header"><span>About this offline copy</span> <button type="button" class="dmd-appearance-close" aria-label="Close offline notice">×</button></div> <ul class="dmd-offline-modal-list"><li>Every page, the search index, diagrams, themes, and the runtime are embedded in this single file.</li> <!> <li>Links to the internet, such as repository or social links, still require a connection and may not always
|
|
499
|
+
work as intended.</li> <li>This copy never checks for updates. It is required to rebuild the documentation to refresh its content.</li></ul> <div class="dmd-offline-modal-footer"><button type="button" class="dmd-btn-primary">Got it</button></div></section></div>`),zw=P(`<!> <!>`,1);function Bw(e,t){un(t,!0);let n=`This offline copy has limited features.`,r=E(!1),i=E(n),a=E(!1),o=null,s=lr(()=>Object.keys(iC()??{}).length),c=lr(JS);function l(e){D(i,e,!0),D(r,!0),o!==null&&window.clearTimeout(o),o=window.setTimeout(()=>D(r,!1),12e3)}Oi(()=>{if(!M(c))return;l(n);let e=e=>{let t=e.detail;l(t||`That link is unavailable in offline documentation.`)};return window.addEventListener(GS,e),()=>{window.removeEventListener(GS,e),o!==null&&window.clearTimeout(o)}}),Oi(()=>{if(!M(a))return;let e=e=>{e.key===`Escape`&&D(a,!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});var u=Mo(),d=pi(u),f=e=>{var t=zw(),n=pi(t),o=e=>{var t=Fw(),n=O(t),o=k(n,!0),s=A(n,2),c=A(s,2);w(t),j(()=>I(o,M(i))),N(`click`,s,()=>{D(r,!1),D(a,!0)}),N(`click`,c,()=>D(r,!1)),F(e,t)};L(n,e=>{M(r)&&e(o)});var c=A(n,2),l=e=>{var t=Rw(),n=O(t),r=O(n),i=A(O(r),2);w(r);var o=A(r,2),c=A(O(o),2),l=e=>{var t=Iw(),n=k(t,!0);j(()=>I(n,M(s)===1?`The nested documentation site opens directly from this file — no other files are needed.`:`${M(s)} nested documentation sites open directly from this file — no other files are needed.`)),F(e,t)},u=e=>{F(e,Lw())};L(c,e=>{M(s)>0?e(l):e(u,-1)}),it(4),w(o);var d=k(A(o,2));w(n),w(t),N(`click`,t,e=>{e.target===e.currentTarget&&D(a,!1)}),N(`keydown`,t,e=>{e.key===`Escape`&&D(a,!1)}),N(`click`,i,()=>D(a,!1)),N(`click`,d,()=>D(a,!1)),F(e,t)};L(c,e=>{M(a)&&e(l)}),F(e,t)};L(d,e=>{M(c)&&e(f)}),F(e,u),dn()}po([`click`,`keydown`]);var Vw=P(`<button type="button" class="dmd-search-recent-chip"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> <span> </span></button>`),Hw=P(`<div class="dmd-search-recent"><div class="dmd-search-recent-header"><span class="dmd-search-recent-title">Recent Searches</span> <button type="button" class="dmd-search-recent-clear">Clear all</button></div> <div class="dmd-search-recent-tags"></div></div>`),Uw=P(`<div class="dmd-search-empty"> </div>`),Ww=P(`<span class="dmd-search-item-cat"> </span>`),Gw=P(`<p class="dmd-search-item-snippet"></p>`),Kw=P(`<button type="button"><div class="dmd-search-item-header"><span class="dmd-search-item-title"></span> <!></div> <!></button>`),qw=P(`<div class="dmd-modal-backdrop" role="dialog" aria-modal="true" tabindex="-1" aria-label="Documentation search"><div class="dmd-search-modal"><div class="dmd-search-input-wrapper"><svg class="dmd-search-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg> <input type="text" class="dmd-search-input"/> <kbd class="dmd-search-escape dmd-kbd">ESC</kbd> <button type="button" class="dmd-search-close" aria-label="Close search"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" x2="6" y1="6" y2="18"></line><line x1="6" x2="18" y1="6" y2="18"></line></svg></button></div> <!> <div class="dmd-search-results"><!> <!></div> <div class="dmd-search-footer"><span><kbd class="dmd-kbd">↑</kbd> <kbd class="dmd-kbd">↓</kbd> Navigate</span> <span><kbd class="dmd-kbd">↵</kbd> Select</span> <span><kbd class="dmd-kbd">ESC</kbd> Close</span></div></div></div>`);function Jw(e,t){un(t,!0);let n=z(t,`placeholder`,3,`Search docs...`),r=E(``),i=E($r([])),a=E(0),o=E(null),s=E(null),c=null,l=()=>{if(typeof navigator>`u`)return!1;let e=navigator,t=e.userAgentData?.platform||e.platform||``,n=e.userAgent||``;return/^mac/i.test(t)||/macintosh|mac os x/i.test(n)},u=E($r(l()));Oi(()=>{D(u,l(),!0)});let d=lr(()=>{let e=n()||`Search documentation...`;return M(u)?e.replace(/Ctrl\+?K/gi,`⌘K`):e.replace(/⌘K/g,`Ctrl K`).replace(/⌘/g,`Ctrl`)}),f=`dmd:recent-searches`,p=E($r([]));function m(){try{let e=localStorage.getItem(f);D(p,e?JSON.parse(e):[],!0)}catch{D(p,[],!0)}}function h(e){let t=e.trim();if(t)try{let e=[t,...M(p).filter(e=>e.toLowerCase()!==t.toLowerCase())].slice(0,6);localStorage.setItem(f,JSON.stringify(e)),D(p,e,!0)}catch{}}function g(){try{localStorage.removeItem(f),D(p,[],!0)}catch{}}function _(e,t){if(!e||!t)return e;let n=t.trim(),r=n.split(/\s+/).filter(Boolean);if(r.length===0)return e;let i=[n,...r].sort((e,t)=>t.length-e.length).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),a=RegExp(`(${i})`,`gi`);return e.replace(a,`<mark class="dmd-search-highlight">$1</mark>`)}Oi(()=>{if(t.isOpen){c=document.activeElement||null,m();let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=window.setTimeout(()=>M(o)?.focus(),50);return D(a,0),()=>{window.clearTimeout(t),document.body.style.overflow=e,c&&typeof c.focus==`function`&&(c.focus(),c=null)}}D(r,``),D(i,[],!0)});let v=E(``);Oi(()=>{let e=M(r).trim();if(!e){D(v,``);return}let t=window.setTimeout(()=>{D(v,e,!0)},120);return()=>window.clearTimeout(t)}),Oi(()=>{if(!M(v)){D(i,[],!0);return}D(i,t.searchIndex.search(M(v)),!0),D(a,0)});function y(e){if(e.key===`Escape`)t.onClose();else if(e.key===`ArrowDown`)e.preventDefault(),D(a,M(i).length>0?(M(a)+1)%M(i).length:0,!0);else if(e.key===`ArrowUp`)e.preventDefault(),D(a,M(i).length>0?(M(a)-1+M(i).length)%M(i).length:0,!0);else if(e.key===`Enter`)e.preventDefault(),M(i)[M(a)]&&(h(M(r)),t.onSelect(M(i)[M(a)].slug),t.onClose());else if(e.key===`Tab`&&M(s)){let t=M(s).querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);if(t.length>0){let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())}}}function b(e){h(M(r)||e.title),t.onSelect(e.slug),t.onClose()}function x(e){D(r,e,!0),M(o)?.focus()}var S=Mo(),ee=pi(S),te=e=>{var n=qw(),c=O(n),l=O(c),u=A(O(l),2);Dc(u),yl(u,e=>D(o,e),()=>M(o));var f=A(u,4);w(l);var m=A(l,2),h=e=>{var t=Hw(),n=O(t),r=A(O(n),2);w(n);var i=A(n,2);ps(i,20,()=>M(p),e=>e,(e,t)=>{var n=Vw(),r=k(A(O(n),2),!0);w(n),j(()=>I(r,t)),N(`click`,n,()=>x(t)),F(e,n)}),w(i),w(t),N(`click`,r,g),F(e,t)};L(m,e=>{!M(v)&&M(p).length>0&&e(h)});var S=A(m,2),ee=O(S),te=e=>{var t=Uw(),n=k(t);j(()=>I(n,`No results found for “${M(v)??``}”`)),F(e,t)};L(ee,e=>{M(v)&&M(i).length===0&&e(te)}),ps(A(ee,2),19,()=>M(i),e=>e.id,(e,t,n)=>{var r=Kw(),i=O(r),o=O(i);ys(o,()=>_(M(t).title,M(v)),!0),w(o);var s=A(o,2),c=e=>{var n=Ww(),r=k(n,!0);j(()=>I(r,M(t).category)),F(e,n)};L(s,e=>{M(t).category&&e(c)}),w(i);var l=A(i,2),u=e=>{var n=Gw();ys(n,()=>_(M(t).snippet,M(v)),!0),w(n),F(e,n)};L(l,e=>{M(t).snippet&&e(u)}),w(r),j(()=>sc(r,1,`dmd-search-item ${M(n)===M(a)?`selected`:``}`)),N(`click`,r,()=>b(M(t))),fo(`mouseenter`,r,()=>D(a,M(n),!0)),F(e,r)}),w(S),it(2),w(c),yl(c,e=>D(s,e),()=>M(s)),w(n),j(()=>{R(u,`placeholder`,M(d)),R(u,`aria-label`,M(d))}),N(`click`,n,e=>{e.target===e.currentTarget&&t.onClose()}),N(`keydown`,n,y),Wc(u,()=>M(r),e=>D(r,e)),N(`click`,f,function(...e){t.onClose?.apply(this,e)}),F(e,n)};L(ee,e=>{t.isOpen&&e(te)}),F(e,S),dn()}po([`click`,`keydown`]);var Yw=P(`<ul class="dmd-sidebar-sublist"></ul>`),Xw=P(`<li class="dmd-sidebar-category"><button type="button" class="dmd-category-header"><span class="dmd-category-title"> </span> <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg></button> <!></li>`),Zw=P(`<span> </span>`),Qw=P(`<li class="dmd-sidebar-item"><a><span class="dmd-item-icon" aria-hidden="true"><!></span> <span class="dmd-item-body"><span class="dmd-item-title"> </span> <!></span></a></li>`);function $w(e,t){un(t,!0);let n=E(null),r=lr(()=>M(n)===null?t.node.collapsed??!1:M(n)),i=lr(()=>t.node.isCategory);Oi(()=>{t.node.id,D(n,null)});function a(){D(n,!M(r))}var o=Mo(),s=pi(o),c=e=>{var n=Xw(),i=O(n),o=O(i),s=k(o,!0),c=A(o,2);w(i);var l=A(i,2),u=e=>{var n=Yw();ps(n,21,()=>t.node.children,e=>e.id,(e,n)=>{$w(e,{get node(){return M(n)},get currentSlug(){return t.currentSlug},get onNavigate(){return t.onNavigate}})}),w(n),F(e,n)};L(l,e=>{!M(r)&&t.node.children&&e(u)}),w(n),j(()=>{R(i,`aria-expanded`,!M(r)),I(s,t.node.title),sc(c,0,`dmd-category-arrow ${M(r)?`collapsed`:``}`)}),N(`click`,i,a),F(e,n)},l=e=>{let n=lr(()=>t.currentSlug===t.node.slug||t.currentSlug===`README`&&t.node.slug===`README`);var r=Qw(),i=O(r),a=O(i),o=O(a),s=e=>{var n=jo();j(()=>I(n,t.node.icon)),F(e,n)};L(o,e=>{t.node.icon&&e(s)}),w(a);var c=A(a,2),l=O(c),u=k(l,!0),d=A(l,2),f=e=>{var n=Zw(),r=k(n,!0);j(()=>{sc(n,1,`dmd-badge dmd-badge-${(t.node.badgeType||`info`)??``}`),I(r,t.node.badge)}),F(e,n)};L(d,e=>{t.node.badge&&e(f)}),w(c),w(i),w(r),j(()=>{R(i,`href`,`#/${t.node.slug}`),sc(i,1,`dmd-sidebar-link ${M(n)?`active`:``}`),I(u,t.node.title)}),N(`click`,i,e=>{e.preventDefault(),t.node.slug&&t.onNavigate(t.node.slug)}),F(e,r)};L(s,e=>{M(i)?e(c):e(l,-1)}),F(e,o),dn()}po([`click`]);var eT=P(`<button type="button" class="dmd-sidebar-backdrop" aria-label="Close documentation navigation"></button>`),tT=P(`<li class="dmd-sidebar-status">Loading pages…</li>`),nT=P(`<!> <aside id="dmd-sidebar" aria-label="Documentation navigation"><div class="dmd-sidebar-heading"><div class="dmd-sidebar-label">Documentation</div> <button type="button" class="dmd-sidebar-close" aria-label="Close documentation navigation"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" x2="6" y1="6" y2="18"></line><line x1="6" x2="18" y1="6" y2="18"></line></svg></button></div> <nav class="dmd-sidebar-nav"><ul class="dmd-sidebar-list"><!> <!></ul></nav></aside>`,1);function rT(e,t){un(t,!0);let n=E(null),r=null;Oi(()=>{if(!Q.isMobileSidebarOpen){r&&typeof r.focus==`function`&&(r.focus(),r=null);return}r=document.activeElement||null;let e=document.body.style.overflow;document.body.style.overflow=`hidden`,(M(n)?.querySelector(`.dmd-sidebar-close`))?.focus();let t=e=>{if(e.key===`Escape`){Q.isMobileSidebarOpen=!1;return}if(e.key===`Tab`&&M(n)){let t=M(n).querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);if(t.length>0){let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())}}};return window.addEventListener(`keydown`,t),()=>{document.body.style.overflow=e,window.removeEventListener(`keydown`,t)}}),Oi(()=>{let e=0,t=0,n=!1,r=r=>{r.touches.length===1&&(e=r.touches[0].clientX,t=r.touches[0].clientY,(Q.isMobileSidebarOpen||e<30)&&(n=!0))},i=r=>{if(!n||r.changedTouches.length!==1)return;n=!1;let i=r.changedTouches[0].clientX,a=r.changedTouches[0].clientY,o=i-e,s=a-t;Math.abs(s)>80||(Q.isMobileSidebarOpen&&o<-50?Q.isMobileSidebarOpen=!1:!Q.isMobileSidebarOpen&&e<30&&o>60&&(Q.isMobileSidebarOpen=!0))};return window.addEventListener(`touchstart`,r,{passive:!0}),window.addEventListener(`touchend`,i,{passive:!0}),()=>{window.removeEventListener(`touchstart`,r),window.removeEventListener(`touchend`,i)}});var i=nT(),a=pi(i),o=e=>{var t=eT();N(`click`,t,()=>Q.isMobileSidebarOpen=!1),F(e,t)};L(a,e=>{Q.isMobileSidebarOpen&&e(o)});var s=A(a,2),c=O(s),l=A(O(c),2);w(c);var u=A(c,2),d=O(u),f=O(d),p=e=>{F(e,tT())};L(f,e=>{Q.tree.length===0&&Q.isLoading&&e(p)}),ps(A(f,2),17,()=>Q.tree,e=>e.id,(e,t)=>{$w(e,{get node(){return M(t)},get currentSlug(){return Q.currentSlug},onNavigate:e=>Q.navigate(e)})}),w(d),w(u),w(s),yl(s,e=>D(n,e),()=>M(n)),j(()=>sc(s,1,`dmd-sidebar ${Q.isMobileSidebarOpen?`mobile-open`:``}`)),N(`click`,l,()=>Q.isMobileSidebarOpen=!1),F(e,i),dn()}po([`click`]);var iT=P(`<li><a><!></a></li>`),aT=P(`<aside><button type="button" class="dmd-toc-header" aria-controls="dmd-toc-list"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line></svg> <span>On this page</span> <svg class="dmd-toc-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"></polyline></svg></button> <ul class="dmd-toc-list" id="dmd-toc-list"></ul></aside>`);function oT(e,t){un(t,!0);let n=E(``),r=E(!1);Oi(()=>{if(t.headings.length===0)return;let e=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&t.target.id!==M(n)&&D(n,t.target.id,!0)},{rootMargin:`-80px 0% -60% 0%`,threshold:0});for(let n of t.headings){let t=document.getElementById(n.id);t&&e.observe(t)}return()=>e.disconnect()}),Oi(()=>{if(!M(n))return;let e=document.querySelector(`.dmd-toc-link[href*="#${M(n)}"]`);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`,behavior:`smooth`})});function i(e){let i=document.getElementById(e.id);if(i){_x(i);try{typeof window<`u`&&window.location.protocol===`file:`?window.location.hash=`#/${t.currentSlug}#${e.id}`:history.pushState(null,``,`#/${t.currentSlug}#${e.id}`)}catch{try{window.location.hash=`#/${t.currentSlug}#${e.id}`}catch{}}D(n,e.id,!0),D(r,!1)}}var a=aT(),o=O(a),s=A(o,2);ps(s,21,()=>t.headings,e=>e.id,(e,r)=>{var a=iT(),o=O(a),s=O(o),c=e=>{var t=Mo();ys(pi(t),()=>M(r).html.replace(/<a\b[^>]*>([\s\S]*?)<\/a>/gi,`$1`)),F(e,t)},l=e=>{var t=jo();j(()=>I(t,M(r).text)),F(e,t)};L(s,e=>{M(r).html?e(c):e(l,-1)}),w(o),w(a),j(()=>{sc(a,1,`dmd-toc-item dmd-toc-level-${M(r).level??``}`),R(o,`href`,`#/${t.currentSlug}#${M(r).id}`),sc(o,1,`dmd-toc-link ${M(n)===M(r).id?`active`:``}`)}),N(`click`,o,e=>{e.preventDefault(),i(M(r))}),F(e,a)}),w(s),w(a),j(()=>{sc(a,1,`dmd-toc ${M(r)?`is-open`:``}`),R(o,`aria-expanded`,M(r))}),N(`click`,o,()=>D(r,!M(r))),F(e,a),dn()}po([`click`]);var sT=P(`<div class="dmd-tag-filter-bar"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg> <input type="text" class="dmd-tag-filter-input" placeholder="Filter tagged documents..."/></div>`),cT=P(`<span class="dmd-tag-current-badge">Current Page</span>`),lT=P(`<span class="dmd-tag-card-time"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> </span>`),uT=P(`<span class="dmd-tag-card-cat"> </span>`),dT=P(`<button type="button"> </button>`),fT=P(`<div class="dmd-tag-card-tags"></div>`),pT=P(`<div role="button" tabindex="0"><div class="dmd-tag-card-head"><span class="dmd-tag-card-title"> </span> <!></div> <div class="dmd-tag-card-route"> </div> <div class="dmd-tag-card-meta"><!> <!></div> <!></div>`),mT=P(`<div class="dmd-tag-doc-grid"></div>`),hT=P(`<div class="dmd-tag-empty"><p> </p></div>`),gT=P(`<button type="button"> <span class="dmd-tag-count"> </span></button>`),_T=P(`<div class="dmd-tag-modal-footer"><span class="dmd-tag-footer-label">Explore related tags:</span> <div class="dmd-tag-chips-scroll"></div></div>`),vT=P(`<div class="dmd-modal-backdrop dmd-tag-modal-backdrop" role="dialog" aria-modal="true" tabindex="-1"><div class="dmd-tag-modal"><div class="dmd-tag-modal-header"><div class="dmd-tag-modal-title-wrap"><div class="dmd-tag-pill-large"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line></svg> <span> </span></div> <div><h2 class="dmd-tag-modal-title"> </h2> <p class="dmd-tag-modal-sub"> </p></div></div> <button type="button" class="dmd-tag-modal-close" aria-label="Close tag modal">×</button></div> <!> <div class="dmd-tag-modal-body"><!></div> <!></div></div>`);function yT(e,t){un(t,!0);let n=E(``),r=E(null),i=lr(()=>Q.activeTagModal||``),a=lr(()=>{if(!M(i))return[];let e=Q.getDocsWithTag(M(i));if(!M(n).trim())return e;let t=M(n).toLowerCase().trim();return e.filter(e=>e.title.toLowerCase().includes(t)||e.slug.toLowerCase().includes(t)||e.frontmatter?.tags?.some(e=>e.toLowerCase().includes(t)))}),o=lr(()=>Q.getAllTags());function s(){Q.closeTagModal(),D(n,``)}function c(e){e.key===`Escape`&&s()}function l(e){s(),Q.navigate(e)}function u(e){D(n,``),Q.openTagModal(e)}Oi(()=>{if(!Q.activeTagModal)return;let e=e=>{M(r)&&!M(r).contains(e.target)&&s()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)});var d=Mo(),f=pi(d),p=e=>{var t=vT(),d=O(t),f=O(d),p=O(f),m=O(p),h=k(A(O(m),2));w(m);var g=A(m,2),_=O(g),v=k(_),y=k(A(_,2));w(g),w(p);var b=A(p,2);w(f);var x=A(f,2),S=e=>{var t=sT(),r=A(O(t),2);Dc(r),w(t),Wc(r,()=>M(n),e=>D(n,e)),F(e,t)},ee=lr(()=>Q.getDocsWithTag(M(i)).length>3);L(x,e=>{M(ee)&&e(S)});var te=A(x,2),ne=O(te),re=e=>{var t=mT();ps(t,21,()=>M(a),e=>e.slug,(e,t)=>{var n=pT();let r;var a=O(n),o=O(a),s=k(o,!0),c=A(o,2),d=e=>{F(e,cT())};L(c,e=>{M(t).slug===Q.currentSlug&&e(d)}),w(a);var f=A(a,2),p=k(f,!0),m=A(f,2),h=O(m),g=e=>{var n=lT(),r=A(O(n));w(n),j(()=>I(r,` ${M(t).readingTimeMinutes??``} min read`)),F(e,n)};L(h,e=>{M(t).readingTimeMinutes&&e(g)});var _=A(h,2),v=e=>{var n=uT(),r=k(n,!0);j(()=>I(r,M(t).category||M(t).frontmatter?.category)),F(e,n)};L(_,e=>{(M(t).category||M(t).frontmatter?.category)&&e(v)}),w(m);var y=A(m,2),b=e=>{var n=fT();ps(n,20,()=>M(t).frontmatter.tags,e=>e,(e,t)=>{var n=dT();let r;var a=k(n);j(e=>{r=sc(n,1,`dmd-tag-card-chip`,null,r,{highlight:e}),R(n,`title`,`Explore documents tagged with #${t??``}`),I(a,`#${t??``}`)},[()=>t.toLowerCase()===M(i).toLowerCase()]),N(`click`,n,e=>{e.stopPropagation(),u(t)}),F(e,n)}),w(n),F(e,n)};L(y,e=>{M(t).frontmatter?.tags&&M(t).frontmatter.tags.length>0&&e(b)}),w(n),j(()=>{r=sc(n,1,`dmd-tag-doc-card`,null,r,{"is-current":M(t).slug===Q.currentSlug}),I(s,M(t).title),I(p,M(t).slug)}),N(`click`,n,()=>l(M(t).slug)),N(`keydown`,n,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),l(M(t).slug))}),F(e,n)}),w(t),F(e,t)},ie=e=>{var t=hT(),r=k(O(t));w(t),j(()=>I(r,`No documents found matching "${M(n)??``}" under #${M(i)??``}.`)),F(e,t)};L(ne,e=>{M(a).length>0?e(re):e(ie,-1)}),w(te);var ae=A(te,2),oe=e=>{var t=_T(),n=A(O(t),2);ps(n,21,()=>M(o).slice(0,12),e=>e.tag,(e,t)=>{var n=gT();let r;var a=O(n),o=k(A(a));w(n),j(e=>{r=sc(n,1,`dmd-tag-footer-chip`,null,r,{active:e}),I(a,`#${M(t).tag??``} `),I(o,`(${M(t).count??``})`)},[()=>M(t).tag.toLowerCase()===M(i).toLowerCase()]),N(`click`,n,()=>u(M(t).tag)),F(e,n)}),w(n),w(t),F(e,t)};L(ae,e=>{M(o).length>1&&e(oe)}),w(d),yl(d,e=>D(r,e),()=>M(r)),w(t),j(()=>{R(t,`aria-label`,`Documents tagged with #${M(i)??``}`),I(h,`#${M(i)??``}`),I(v,`Documents tagged with #${M(i)??``}`),I(y,`${M(a).length??``} ${M(a).length===1?`matching document`:`matching documents`} found`)}),N(`keydown`,t,c),N(`click`,b,s),F(e,t)};L(f,e=>{Q.activeTagModal&&e(p)}),F(e,d),dn()}po([`keydown`,`click`]);var bT=P(`<div class="dmd-root"><a href="#dmd-main-content" class="dmd-skip-to-content">Skip to content</a> <!> <div class="dmd-layout-body"><!> <div class="dmd-main-wrapper"><!> <!></div></div> <!> <!> <!> <!></div>`);function xT(e,t){un(t,!0),Oi(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`?(e.preventDefault(),Q.isSearchOpen=!Q.isSearchOpen):(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`e`&&(e.preventDefault(),Q.isEditorOpen=!Q.isEditorOpen)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)});let n;Oi(()=>{let e=document.documentElement,t=(t,n)=>{e.getAttribute(t)!==n&&e.setAttribute(t,n)},r=(t,n)=>{n?e.style.getPropertyValue(t)!==n&&e.style.setProperty(t,n):e.style.getPropertyValue(t)&&e.style.removeProperty(t)},i=e.getAttribute(`data-dmd-mode`)!==aw.resolvedMode,a=e.getAttribute(`data-dmd-theme`)!==aw.family,o=aw.resolvedMode===`dark`&&aw.accentColorDark||aw.accentColor,s=(e.style.getPropertyValue(`--dmd-accent`)||void 0)!==o;(i||a||s)&&(e.classList.add(`dmd-theme-switching`),clearTimeout(n),n=setTimeout(()=>e.classList.remove(`dmd-theme-switching`),220)),t(`data-dmd-mode`,aw.resolvedMode),t(`data-dmd-theme`,aw.family),t(`data-dmd-density`,aw.density),t(`data-dmd-motion`,aw.motion),t(`data-theme`,aw.resolvedMode),r(`--dmd-accent`,o),r(`--dmd-accent-hover`,o)}),Oi(()=>{if(typeof document>`u`)return;let e=DS(Q.config?.theme?.favicon),t=document.querySelector(`link[rel~="icon"]`);t||(t=document.createElement(`link`),t.rel=`icon`,document.head.appendChild(t)),t.getAttribute(`href`)!==e&&t.setAttribute(`href`,e)}),Oi(()=>{(Q.currentDoc||Q.error)&&US()});var r=bT(),i=A(O(r),2);Pw(i,{});var a=A(i,2),o=O(a);rT(o,{});var s=A(o,2),c=O(s);IC(c,{});var l=A(c,2),u=e=>{var t=Mo();ss(pi(t),()=>Q.currentSlug,e=>{oT(e,{get headings(){return Q.currentDoc.headings},get currentSlug(){return Q.currentSlug}})}),F(e,t)};L(l,e=>{Q.currentDoc&&Q.currentDoc.headings.length>0&&e(u)}),w(s),w(a);var d=A(a,2);{let e=lr(()=>Q.config?.search?.placeholder);Jw(d,{get isOpen(){return Q.isSearchOpen},onClose:()=>Q.isSearchOpen=!1,get searchIndex(){return Q.searchIndex},onSelect:e=>Q.navigate(e),get placeholder(){return M(e)}})}var f=A(d,2);$C(f,{});var p=A(f,2);yT(p,{}),Bw(A(p,2),{}),w(r),F(e,r),dn()}var ST=To(`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="m5 12 4 4L19 6"></path></svg>`),CT=To(`<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="8" y="8" width="11" height="11" rx="2"></rect><path d="M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"></path></svg>`),wT=P(`<pre class="dmd-diagram-error"> </pre>`),TT=P(`<button type="button"><!></button>`),ET=P(`<div class="dmd-diagram-canvas"><div class="dmd-diagram-svg"></div> <!></div>`),DT=P(`<div class="dmd-diagram-loading">Rendering diagram…</div>`),OT=P(`<figure><div class="dmd-diagram-frame"><div class="dmd-diagram-toolbar"><button type="button" class="dmd-diagram-btn" aria-label="Zoom out">−</button> <span class="dmd-diagram-zoom-label" aria-live="polite"> </span> <button type="button" class="dmd-diagram-btn" aria-label="Zoom in">+</button> <button type="button" class="dmd-diagram-btn">Fit</button> <button type="button" class="dmd-diagram-btn">1:1</button> <span class="dmd-diagram-toolbar-spacer"></span> <button type="button"><!></button> <span class="dmd-diagram-toolbar-divider" aria-hidden="true"></span> <button type="button" class="dmd-diagram-btn">SVG</button> <button type="button" class="dmd-diagram-btn"> </button></div> <div role="application"><!></div> <div class="dmd-diagram-status" aria-live="polite"> </div></div></figure>`);function kT(e,t){un(t,!0);let n=.1,r=.1,i=e=>Math.min(3,Math.max(n,Math.round(e*100)/100));async function a(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);if(t.remove(),!n)throw Error(`Clipboard access is unavailable.`)}function o(e){return[...e.querySelectorAll(`.text-outer-tspan.row, text, tspan`)].map(e=>e.textContent?.replace(/\s+/g,` `).trim()).filter(Boolean)[0]||e.textContent?.replace(/\s+/g,` `).trim()||`Untitled subgraph`}let s=z(t,`source`,7),c=lr(()=>ff(s())),l=E(null),u=E(null),d=E(null),f=E(1),p=E(1),m=E(!0),h=E(!1),g=E($r([])),_=E($r({x:0,y:0})),v=E(null),y=E(!1),b=E(null),x=E(null),S=E(null),ee=null,te={x:0,y:0},ne=null,re=lr(()=>M(u)?{width:Math.max(1,Math.round(M(u).width*M(f))),height:Math.max(1,Math.round(M(u).height*M(f)))}:null);Oi(()=>{M(c);let e=!1,t=null,n,r=()=>{let n=mf(),r=`${n.family}|${n.mode}|${n.tokens.accent}|${n.tokens.codeSurface}|${n.tokens.codeInk}`;r!==t&&(t=r,_f(M(c),n.family,n.mode,n.tokens).then(t=>{e||(D(l,t,!0),D(u,Qd(t),!0),D(d,null),D(m,!0))}).catch(t=>{e||(D(l,null),D(u,null),D(d,t instanceof Error?t.message:String(t),!0))}))};if(r(),typeof MutationObserver>`u`)return()=>{e=!0};let i=new MutationObserver(()=>{e||(clearTimeout(n),n=setTimeout(r,150))});return i.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-dmd-theme`,`data-theme`,`style`]}),()=>{e=!0,clearTimeout(n),i.disconnect()}}),Oi(()=>{if(!M(l))return;let e=M(S)?.querySelector(`svg`);if(!e)return;let t=e.querySelector(`.cluster`)!==null,n=e.querySelectorAll(`:scope > g`),r=e.querySelector(`:scope > g.output, :scope > g[id^='flowchart-']`)??(n.length===1?n[0]:null);if(!(!t||!r||typeof r.getBBox!=`function`))try{let t=r.getBBox();if(t.width<=0||t.height<=0)return;let n={width:t.width+40,height:t.height+40};(!M(u)||n.height>M(u).height||n.width>M(u).width)&&(e.setAttribute(`viewBox`,`${t.x-20} ${t.y-20} ${n.width} ${n.height}`),e.removeAttribute(`width`),e.removeAttribute(`height`),D(u,n,!0))}catch{}}),Oi(()=>{if(!M(x)||!M(u))return;let e=()=>{let e=getComputedStyle(M(x)),t=Number.parseFloat(e.paddingLeft)+Number.parseFloat(e.paddingRight),n=Number.parseFloat(e.paddingTop)+Number.parseFloat(e.paddingBottom),r=Math.max(1,M(x).clientWidth-t),a=Math.max(1,M(x).clientHeight-n),o=M(h)?i($d(M(u),{width:r,height:a})):i(Math.min(1,r/M(u).width)),s=M(h)?null:Math.round(Math.min(560,Math.max(200,M(u).height*o+n)));D(b,s,!0);let c=Math.max(1,(s??M(x).clientHeight)-n);D(p,o,!0),M(m)&&(D(f,o,!0),D(_,{x:0,y:Math.max(0,(M(u).height*o-c)/2)},!0))};if(e(),typeof ResizeObserver>`u`)return;let t=new ResizeObserver(e);return t.observe(M(x)),()=>t.disconnect()}),Oi(()=>{let e=M(S),t=e?.querySelector(`svg`);if(!e||!t||!M(u)||M(f)<=0){D(g,[],!0);return}let n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect(),r=af(M(c)),i=new Set(r.map((e,t)=>t)),a=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,``),s=[...t.querySelectorAll(`.cluster`)].map((e,t)=>{let s=e.getBoundingClientRect();if(s.width<=0||s.height<=0)return null;let l=o(e),u=a(l),d=r.findIndex((e,t)=>i.has(t)&&(a(e.label)===u||a(e.id)===u));d<0&&(d=r.findIndex((t,n)=>i.has(n)&&a(e.id).includes(a(t.id)))),d<0&&(d=[...i][0]??-1);let f=r[d];return f?(i.delete(d),{id:`subgraph-${f.id}-${t}`,label:f.label||l,markdown:of(M(c),f.source),left:s.right-n.left-8,top:s.top-n.top+8}):null}).filter(e=>e!==null);D(g,s,!0)});return()=>cancelAnimationFrame(n)}),Oi(()=>{if(!M(h))return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=e=>{e.key===`Escape`&&D(h,!1)};return window.addEventListener(`keydown`,t),()=>{document.body.style.overflow=e,window.removeEventListener(`keydown`,t)}}),Oi(()=>()=>{ne!==null&&window.clearTimeout(ne)});function ie(){if(!M(l))return;let e=new Blob([M(l)],{type:`image/svg+xml;charset=utf-8`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`diagram.svg`,n.click(),URL.revokeObjectURL(t)}function ae(e){D(m,!1),D(f,i(e),!0)}function oe(){D(m,!0),D(f,M(p),!0);let e=M(x);if(e&&M(u)){let t=getComputedStyle(e),n=Number.parseFloat(t.paddingTop)+Number.parseFloat(t.paddingBottom),r=Math.max(1,(M(b)??e.clientHeight)-n),i={x:0,y:Math.max(0,(M(u).height*M(p)-r)/2)};te=i,D(_,i,!0)}}function se(){let e=M(x);if(!e||!M(re))return{x:0,y:0};let t=getComputedStyle(e),n={width:Math.max(0,e.clientWidth-Number.parseFloat(t.paddingLeft)-Number.parseFloat(t.paddingRight)),height:Math.max(0,e.clientHeight-Number.parseFloat(t.paddingTop)-Number.parseFloat(t.paddingBottom))};return ef(M(re),n)}function ce(e){return tf({x:0,y:0},e,se()).camera}Oi(()=>{M(re),M(f);let e=ce(te);(e.x!==te.x||e.y!==te.y)&&(te=e,D(_,e,!0))});async function le(e,t){try{await a(e),D(v,t,!0),ne!==null&&window.clearTimeout(ne),ne=window.setTimeout(()=>D(v,null),1800)}catch{D(v,`error`)}}function ue(e){return e instanceof Element?!e.closest(`.node, text, .dmd-diagram-subgraph-copy, button, a`):!0}function de(e){let t=M(x);!t||e.pointerType===`mouse`&&e.button!==0||!ue(e.target)||(ee={pointerId:e.pointerId,lastX:e.clientX,lastY:e.clientY},t.setPointerCapture(e.pointerId),D(y,!0),e.preventDefault())}function fe(e){let t=ee;if(t?.pointerId===e.pointerId){let n={x:e.clientX-t.lastX,y:e.clientY-t.lastY},r=tf(te,n,se());t.lastX=e.clientX,t.lastY=e.clientY,te=r.camera,D(_,r.camera,!0),!M(h)&&r.remainder.y!==0&&window.scrollBy({top:-r.remainder.y,behavior:`instant`}),e.preventDefault()}}function pe(e){let t=M(x);ee?.pointerId===e.pointerId&&(ee=null,D(y,!1),t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId))}Oi(()=>{let e=M(x);if(!e)return;let t=t=>{if(!M(re))return;let n=t.deltaMode===1?16:t.deltaMode===2?e.clientHeight:1,r={x:-t.deltaX*n,y:-t.deltaY*n},i=tf(te,r,se()),a=i.camera.x!==te.x||i.camera.y!==te.y;!a&&(M(h)||i.remainder.y===0)||(t.preventDefault(),te=i.camera,a&&D(_,i.camera,!0),!M(h)&&i.remainder.y!==0&&window.scrollBy({top:-i.remainder.y,behavior:`instant`}))};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)});var me={get source(){return s()},set source(e){s(e),T()}},he=OT(),ge=O(he),_e=O(ge),ve=O(_e),ye=A(ve,2),be=k(ye),xe=A(ye,2),Se=A(xe,2),Ce=A(Se,2),we=A(Ce,4),Te=O(we),Ee=e=>{F(e,ST())},De=e=>{F(e,CT())};L(Te,e=>{M(v)===`graph`?e(Ee):e(De,-1)}),w(we);var Oe=A(we,4),ke=A(Oe,2),Ae=k(ke,!0);w(_e);var je=A(_e,2),Me=O(je),Ne=e=>{var t=wT(),n=k(t);j(()=>I(n,`Diagram syntax error: ${M(d)??``}`)),F(e,t)},Pe=e=>{var t=ET(),n=O(t);ys(n,()=>M(l),!0),w(n),ps(A(n,2),17,()=>M(g),e=>e.id,(e,t)=>{var n=TT(),r=O(n),i=e=>{F(e,ST())},a=e=>{F(e,CT())};L(r,e=>{M(v)===M(t).id?e(i):e(a,-1)}),w(n),j(()=>{sc(n,1,`dmd-diagram-subgraph-copy${M(v)===M(t).id?` copied`:``}`),lc(n,`left: ${M(t).left??``}px; top: ${M(t).top??``}px;`),R(n,`aria-label`,M(v)===M(t).id?`${M(t).label} subgraph Markdown copied`:`Copy ${M(t).label} subgraph Markdown`),R(n,`title`,M(v)===M(t).id?`Copied`:`Copy ${M(t).label} subgraph Markdown`)}),N(`click`,n,()=>le(M(t).markdown,M(t).id)),F(e,n)}),w(t),yl(t,e=>D(S,e),()=>M(S)),j((e,n,r,i)=>lc(t,`width: ${M(re).width??``}px; height: ${M(re).height??``}px; margin-left: ${e??``}px; margin-top: ${n??``}px; transform: translate(${r??``}px, ${i??``}px);`),[()=>-Math.round(M(re).width/2),()=>-Math.round(M(re).height/2),()=>Math.round(M(_).x),()=>Math.round(M(_).y)]),F(e,t)},Fe=e=>{F(e,DT())};L(Me,e=>{M(d)?e(Ne):M(l)&&M(re)?e(Pe,1):e(Fe,-1)}),w(je),yl(je,e=>D(x,e),()=>M(x));var Ie=k(A(je,2),!0);return w(ge),w(he),j(e=>{sc(he,1,`dmd-diagram-viewer${M(h)?` is-expanded`:``}`),ve.disabled=!M(l)||M(f)<=n,I(be,`${e??``}%`),xe.disabled=!M(l)||M(f)>=3,Se.disabled=!M(l)||M(m),Ce.disabled=!M(l)||M(f)===1,sc(we,1,`dmd-diagram-btn dmd-diagram-icon-btn dmd-diagram-copy-all${M(v)===`graph`?` copied`:``}`),we.disabled=!M(l),R(we,`aria-label`,M(v)===`graph`?`Graph Markdown copied`:`Copy graph Markdown`),R(we,`title`,M(v)===`graph`?`Copied`:`Copy graph Markdown`),Oe.disabled=!M(l),ke.disabled=!M(l),I(Ae,M(h)?`Close`:`Expand`),sc(je,1,`dmd-diagram-stage${M(y)?` is-panning`:``}`),lc(je,M(b)!==null&&!M(h)?`height: ${M(b)}px; aspect-ratio: auto;`:void 0),I(Ie,M(v)===`error`?`Clipboard unavailable. Select the diagram text manually.`:``)},[()=>Math.round(M(f)*100)]),N(`click`,ve,()=>ae(M(f)-r)),N(`click`,xe,()=>ae(M(f)+r)),N(`click`,Se,oe),N(`click`,Ce,()=>ae(1)),N(`click`,we,()=>le(nf(M(c)),`graph`)),N(`click`,Oe,ie),N(`click`,ke,()=>D(h,!M(h))),N(`pointerdown`,je,de),N(`pointermove`,je,fe),N(`pointerup`,je,pe),fo(`pointercancel`,je,pe),F(e,he),dn(me)}po([`click`,`pointerdown`,`pointermove`,`pointerup`]),customElements.define(`dmd-mermaid`,Zl(kT,{source:{}},[],[]));var AT;function $(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}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 jT=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},MT=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(AT=globalThis).__zod_globalConfig??(AT.__zod_globalConfig={});var NT=globalThis.__zod_globalConfig;function PT(e){return e&&Object.assign(NT,e),NT}function FT(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 IT(e,t){return typeof t==`bigint`?t.toString():t}function LT(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function RT(e){return e==null}function zT(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function BT(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var VT=Symbol(`evaluating`);function HT(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==VT)return r===void 0&&(r=VT,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function UT(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function WT(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function GT(e){return JSON.stringify(e)}function KT(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var qT=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function JT(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var YT=LT(()=>{if(NT.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function XT(e){if(JT(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return JT(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function ZT(e){return XT(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var QT=new Set([`string`,`number`,`symbol`]);function $T(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function eE(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function tE(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 nE(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var rE={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function iE(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return eE(e,WT(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return UT(this,`shape`,e),e},checks:[]}))}function aE(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return eE(e,WT(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return UT(this,`shape`,r),r},checks:[]}))}function oE(e,t){if(!XT(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return eE(e,WT(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return UT(this,`shape`,n),n}}))}function sE(e,t){if(!XT(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return eE(e,WT(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return UT(this,`shape`,n),n}}))}function cE(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return eE(e,WT(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return UT(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function lE(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return eE(t,WT(t._zod.def,{get shape(){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 UT(this,`shape`,i),i},checks:[]}))}function uE(e,t,n){return eE(t,WT(t._zod.def,{get shape(){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 UT(this,`shape`,i),i}}))}function dE(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function fE(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function pE(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function mE(e){return typeof e==`string`?e:e?.message}function hE(e,t,n){let r=e.message?e.message:mE(e.inst?._zod.def?.error?.(e))??mE(t?.error?.(e))??mE(n.customError?.(e))??mE(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function gE(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function _E(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var vE=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,IT,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},yE=$(`$ZodError`,vE),bE=$(`$ZodError`,vE,{Parent:Error});function xE(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 SE(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}var CE=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new jT;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>hE(e,a,PT())));throw qT(t,i?.callee),t}return o.value},wE=e=>async(t,n,r,i)=>{let a=r?{...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=>hE(e,a,PT())));throw qT(t,i?.callee),t}return o.value},TE=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 jT;return a.issues.length?{success:!1,error:new(e??yE)(a.issues.map(e=>hE(e,i,PT())))}:{success:!0,data:a.value}},EE=TE(bE),DE=e=>async(t,n,r)=>{let i=r?{...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=>hE(e,i,PT())))}:{success:!0,data:a.value}},OE=DE(bE),kE=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return CE(e)(t,n,i)},AE=e=>(t,n,r)=>CE(e)(t,n,r),jE=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return wE(e)(t,n,i)},ME=e=>async(t,n,r)=>wE(e)(t,n,r),NE=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return TE(e)(t,n,i)},PE=e=>(t,n,r)=>TE(e)(t,n,r),FE=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return DE(e)(t,n,i)},IE=e=>async(t,n,r)=>DE(e)(t,n,r),LE=/^[cC][0-9a-z]{6,}$/,RE=/^[0-9a-z]+$/,zE=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,BE=/^[0-9a-vA-V]{20}$/,VE=/^[A-Za-z0-9]{27}$/,HE=/^[a-zA-Z0-9_-]{21}$/,UE=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,WE=/^([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})$/,GE=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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,KE=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,qE=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function JE(){return new RegExp(qE,`u`)}var YE=/^(?:(?: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])$/,XE=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,ZE=/^((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])$/,QE=/^(([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])$/,$E=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,eD=/^[A-Za-z0-9_-]*$/,tD=/^https?$/,nD=/^\+[1-9]\d{6,14}$/,rD=`(?:(?:\\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])))`,iD=RegExp(`^${rD}$`);function aD(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 oD(e){return RegExp(`^${aD(e)}$`)}function sD(e){let t=aD({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${rD}T(?:${r})$`)}var cD=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},lD=/^-?\d+$/,uD=/^-?\d+(?:\.\d+)?$/,dD=/^(?:true|false)$/i,fD=/^[^A-Z]*$/,pD=/^[^a-z]*$/,mD=$(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),hD={number:`number`,bigint:`bigint`,object:`date`},gD=$(`$ZodCheckLessThan`,(e,t)=>{mD.init(e,t);let n=hD[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:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),_D=$(`$ZodCheckGreaterThan`,(e,t)=>{mD.init(e,t);let n=hD[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:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),vD=$(`$ZodCheckMultipleOf`,(e,t)=>{mD.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):BT(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})}}),yD=$(`$ZodCheckNumberFormat`,(e,t)=>{mD.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=rE[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=lD)}),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`,continue:!1,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,inclusive:!0,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,inclusive:!0,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,inclusive:!0,inst:e,continue:!t.abort})}}),bD=$(`$ZodCheckMaxLength`,(e,t)=>{var n;mD.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!RT(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=gE(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),xD=$(`$ZodCheckMinLength`,(e,t)=>{var n;mD.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!RT(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=gE(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),SD=$(`$ZodCheckLengthEquals`,(e,t)=>{var n;mD.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!RT(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=gE(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})}}),CD=$(`$ZodCheckStringFormat`,(e,t)=>{var n,r;mD.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=()=>{})}),wD=$(`$ZodCheckRegex`,(e,t)=>{CD.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})}}),TD=$(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=fD,CD.init(e,t)}),ED=$(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=pD,CD.init(e,t)}),DD=$(`$ZodCheckIncludes`,(e,t)=>{mD.init(e,t);let n=$T(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})}}),OD=$(`$ZodCheckStartsWith`,(e,t)=>{mD.init(e,t);let n=RegExp(`^${$T(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})}}),kD=$(`$ZodCheckEndsWith`,(e,t)=>{mD.init(e,t);let n=RegExp(`.*${$T(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})}}),AD=$(`$ZodCheckOverwrite`,(e,t)=>{mD.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),jD=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(`
|
|
500
500
|
`).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(`
|
|
501
|
-
`))}},
|
|
501
|
+
`))}},MD={major:4,minor:4,patch:3},ND=$(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=MD;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=dE(e),i;for(let a of t){if(a._zod.def.when){if(fE(e)||!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 jT;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=dE(e,t))});else{if(e.issues.length===t)continue;r||=dE(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(dE(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new jT;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new jT;return o.then(e=>t(e,r,a))}return t(o,r,a)}}HT(e,`~standard`,()=>({validate:t=>{try{let n=EE(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return OE(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),PD=$(`$ZodString`,(e,t)=>{ND.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??cD(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}}),FD=$(`$ZodStringFormat`,(e,t)=>{CD.init(e,t),PD.init(e,t)}),ID=$(`$ZodGUID`,(e,t)=>{t.pattern??=WE,FD.init(e,t)}),LD=$(`$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??=GE(e)}else t.pattern??=GE();FD.init(e,t)}),RD=$(`$ZodEmail`,(e,t)=>{t.pattern??=KE,FD.init(e,t)}),zD=$(`$ZodURL`,(e,t)=>{FD.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===tD.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.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})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),BD=$(`$ZodEmoji`,(e,t)=>{t.pattern??=JE(),FD.init(e,t)}),VD=$(`$ZodNanoID`,(e,t)=>{t.pattern??=HE,FD.init(e,t)}),HD=$(`$ZodCUID`,(e,t)=>{t.pattern??=LE,FD.init(e,t)}),UD=$(`$ZodCUID2`,(e,t)=>{t.pattern??=RE,FD.init(e,t)}),WD=$(`$ZodULID`,(e,t)=>{t.pattern??=zE,FD.init(e,t)}),GD=$(`$ZodXID`,(e,t)=>{t.pattern??=BE,FD.init(e,t)}),KD=$(`$ZodKSUID`,(e,t)=>{t.pattern??=VE,FD.init(e,t)}),qD=$(`$ZodISODateTime`,(e,t)=>{t.pattern??=sD(t),FD.init(e,t)}),JD=$(`$ZodISODate`,(e,t)=>{t.pattern??=iD,FD.init(e,t)}),YD=$(`$ZodISOTime`,(e,t)=>{t.pattern??=oD(t),FD.init(e,t)}),XD=$(`$ZodISODuration`,(e,t)=>{t.pattern??=UE,FD.init(e,t)}),ZD=$(`$ZodIPv4`,(e,t)=>{t.pattern??=YE,FD.init(e,t),e._zod.bag.format=`ipv4`}),QD=$(`$ZodIPv6`,(e,t)=>{t.pattern??=XE,FD.init(e,t),e._zod.bag.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})}}}),$D=$(`$ZodCIDRv4`,(e,t)=>{t.pattern??=ZE,FD.init(e,t)}),eO=$(`$ZodCIDRv6`,(e,t)=>{t.pattern??=QE,FD.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function tO(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var nO=$(`$ZodBase64`,(e,t)=>{t.pattern??=$E,FD.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{tO(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function rO(e){if(!eD.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return tO(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var iO=$(`$ZodBase64URL`,(e,t)=>{t.pattern??=eD,FD.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{rO(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),aO=$(`$ZodE164`,(e,t)=>{t.pattern??=nD,FD.init(e,t)});function oO(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 sO=$(`$ZodJWT`,(e,t)=>{FD.init(e,t),e._zod.check=n=>{oO(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),cO=$(`$ZodNumber`,(e,t)=>{ND.init(e,t),e._zod.pattern=e._zod.bag.pattern??uD,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}}),lO=$(`$ZodNumberFormat`,(e,t)=>{yD.init(e,t),cO.init(e,t)}),uO=$(`$ZodBoolean`,(e,t)=>{ND.init(e,t),e._zod.pattern=dD,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}}),dO=$(`$ZodUnknown`,(e,t)=>{ND.init(e,t),e._zod.parse=e=>e}),fO=$(`$ZodNever`,(e,t)=>{ND.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function pO(e,t,n){e.issues.length&&t.issues.push(...pE(n,e.issues)),t.value[n]=e.value}var mO=$(`$ZodArray`,(e,t)=>{ND.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=>pO(t,n,e))):pO(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function hO(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...pE(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function gO(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=nE(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function _O(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>hO(e,n,i,t,u,d))):hO(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var vO=$(`$ZodObject`,(e,t)=>{if(ND.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=LT(()=>gO(t));HT(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=JT,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>hO(n,t,e,s,r,i))):hO(a,t,e,s,r,i)}return i?_O(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),yO=$(`$ZodObjectJIT`,(e,t)=>{vO.init(e,t);let n=e._zod.parse,r=LT(()=>gO(t)),i=e=>{let t=new jD([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=GT(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 n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=GT(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
|
|
502
502
|
if (${n}.issues.length) {
|
|
503
503
|
if (${o} in input) {
|
|
504
504
|
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
@@ -557,10 +557,10 @@ html,body{margin:0}
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
|
|
560
|
-
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=KT,s=!jT.jitless,c=s&&qT.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?hO([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function vO(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!lE(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>pE(e,r,MT())))}),t)}var yO=$(`$ZodUnion`,(e,t)=>{jD.init(e,t),BT(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),BT(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),BT(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),BT(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=>LT(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>vO(t,r,e,i)):vO(o,r,e,i)}}),bO=$(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,yO.init(e,t);let n=e._zod.parse;BT(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=FT(()=>{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(!KT(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||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),xO=$(`$ZodIntersection`,(e,t)=>{jD.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])=>CO(e,t,n)):CO(e,i,a)}});function SO(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(JT(e)&&JT(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=SO(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=SO(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 CO(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),lE(e))return e;let o=SO(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var wO=$(`$ZodEnum`,(e,t)=>{jD.init(e,t);let n=NT(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>XT.has(typeof e)).map(e=>typeof e==`string`?ZT(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),TO=$(`$ZodLiteral`,(e,t)=>{if(jD.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?ZT(e):e?ZT(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),EO=$(`$ZodTransform`,(e,t)=>{jD.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new AT(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new kT;return n.value=i,n.fallback=!0,n}});function DO(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var OO=$(`$ZodOptional`,(e,t)=>{jD.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,BT(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),BT(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${LT(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>DO(e,r)):DO(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),kO=$(`$ZodExactOptional`,(e,t)=>{OO.init(e,t),BT(e._zod,`values`,()=>t.innerType._zod.values),BT(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),AO=$(`$ZodNullable`,(e,t)=>{jD.init(e,t),BT(e._zod,`optin`,()=>t.innerType._zod.optin),BT(e._zod,`optout`,()=>t.innerType._zod.optout),BT(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${LT(e.source)}|null)$`):void 0}),BT(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)}),jO=$(`$ZodDefault`,(e,t)=>{jD.init(e,t),e._zod.optin=`optional`,BT(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(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=>MO(e,t)):MO(r,t)}});function MO(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var NO=$(`$ZodPrefault`,(e,t)=>{jD.init(e,t),e._zod.optin=`optional`,BT(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),PO=$(`$ZodNonOptional`,(e,t)=>{jD.init(e,t),BT(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=>FO(t,e)):FO(i,e)}});function FO(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 IO=$(`$ZodCatch`,(e,t)=>{jD.init(e,t),e._zod.optin=`optional`,BT(e._zod,`optout`,()=>t.innerType._zod.optout),BT(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(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=>pE(e,n,MT()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>pE(e,n,MT()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),LO=$(`$ZodPipe`,(e,t)=>{jD.init(e,t),BT(e._zod,`values`,()=>t.in._zod.values),BT(e._zod,`optin`,()=>t.in._zod.optin),BT(e._zod,`optout`,()=>t.out._zod.optout),BT(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>RO(e,t.in,n)):RO(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>RO(e,t.out,n)):RO(r,t.out,n)}});function RO(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var zO=$(`$ZodReadonly`,(e,t)=>{jD.init(e,t),BT(e._zod,`propValues`,()=>t.innerType._zod.propValues),BT(e._zod,`values`,()=>t.innerType._zod.values),BT(e._zod,`optin`,()=>t.innerType?._zod?.optin),BT(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(BO):BO(r)}});function BO(e){return e.value=Object.freeze(e.value),e}var VO=$(`$ZodLazy`,(e,t)=>{jD.init(e,t),BT(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),BT(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),BT(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),BT(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),BT(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),HO=$(`$ZodCustom`,(e,t)=>{fD.init(e,t),jD.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=>UO(t,n,r,e));UO(i,n,r,e)}});function UO(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(hE(e))}}var WO,GO=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,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)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function KO(){return new GO}(WO=globalThis).__zod_globalRegistry??(WO.__zod_globalRegistry=KO());var qO=globalThis.__zod_globalRegistry;function JO(e,t){return new e({type:`string`,...$T(t)})}function YO(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...$T(t)})}function XO(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...$T(t)})}function ZO(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...$T(t)})}function QO(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...$T(t)})}function $O(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...$T(t)})}function ek(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...$T(t)})}function tk(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...$T(t)})}function nk(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...$T(t)})}function rk(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...$T(t)})}function ik(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...$T(t)})}function ak(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...$T(t)})}function ok(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...$T(t)})}function sk(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...$T(t)})}function ck(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...$T(t)})}function lk(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...$T(t)})}function uk(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...$T(t)})}function dk(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...$T(t)})}function fk(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...$T(t)})}function pk(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...$T(t)})}function mk(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...$T(t)})}function hk(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...$T(t)})}function gk(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...$T(t)})}function _k(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...$T(t)})}function vk(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...$T(t)})}function yk(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...$T(t)})}function bk(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...$T(t)})}function xk(e,t){return new e({type:`number`,checks:[],...$T(t)})}function Sk(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...$T(t)})}function Ck(e,t){return new e({type:`boolean`,...$T(t)})}function wk(e){return new e({type:`unknown`})}function Tk(e,t){return new e({type:`never`,...$T(t)})}function Ek(e,t){return new mD({check:`less_than`,...$T(t),value:e,inclusive:!1})}function Dk(e,t){return new mD({check:`less_than`,...$T(t),value:e,inclusive:!0})}function Ok(e,t){return new hD({check:`greater_than`,...$T(t),value:e,inclusive:!1})}function kk(e,t){return new hD({check:`greater_than`,...$T(t),value:e,inclusive:!0})}function Ak(e,t){return new gD({check:`multiple_of`,...$T(t),value:e})}function jk(e,t){return new vD({check:`max_length`,...$T(t),maximum:e})}function Mk(e,t){return new yD({check:`min_length`,...$T(t),minimum:e})}function Nk(e,t){return new bD({check:`length_equals`,...$T(t),length:e})}function Pk(e,t){return new SD({check:`string_format`,format:`regex`,...$T(t),pattern:e})}function Fk(e){return new CD({check:`string_format`,format:`lowercase`,...$T(e)})}function Ik(e){return new wD({check:`string_format`,format:`uppercase`,...$T(e)})}function Lk(e,t){return new TD({check:`string_format`,format:`includes`,...$T(t),includes:e})}function Rk(e,t){return new ED({check:`string_format`,format:`starts_with`,...$T(t),prefix:e})}function zk(e,t){return new DD({check:`string_format`,format:`ends_with`,...$T(t),suffix:e})}function Bk(e){return new OD({check:`overwrite`,tx:e})}function Vk(e){return Bk(t=>t.normalize(e))}function Hk(){return Bk(e=>e.trim())}function Uk(){return Bk(e=>e.toLowerCase())}function Wk(){return Bk(e=>e.toUpperCase())}function Gk(){return Bk(e=>WT(e))}function Kk(e,t,n){return new e({type:`array`,element:t,...$T(n)})}function qk(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...$T(n)})}function Jk(e,t){let n=Yk(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(hE(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(hE(r))}},e(t.value,t)),t);return n}function Yk(e,t){let n=new fD({check:`custom`,...$T(t)});return n._zod.check=e,n}function Xk(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??qO,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Zk(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Zk(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&eA(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Qk(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.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(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
560
|
+
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=JT,s=!NT.jitless,c=s&&YT.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?_O([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function bO(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!dE(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>hE(e,r,PT())))}),t)}var xO=$(`$ZodUnion`,(e,t)=>{ND.init(e,t),HT(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),HT(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),HT(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),HT(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=>zT(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>bO(t,r,e,i)):bO(o,r,e,i)}}),SO=$(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,xO.init(e,t);let n=e._zod.parse;HT(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=LT(()=>{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(!JT(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||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),CO=$(`$ZodIntersection`,(e,t)=>{ND.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])=>TO(e,t,n)):TO(e,i,a)}});function wO(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(XT(e)&&XT(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=wO(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=wO(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 TO(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),dE(e))return e;let o=wO(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var EO=$(`$ZodEnum`,(e,t)=>{ND.init(e,t);let n=FT(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>QT.has(typeof e)).map(e=>typeof e==`string`?$T(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),DO=$(`$ZodLiteral`,(e,t)=>{if(ND.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?$T(e):e?$T(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),OO=$(`$ZodTransform`,(e,t)=>{ND.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new MT(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new jT;return n.value=i,n.fallback=!0,n}});function kO(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var AO=$(`$ZodOptional`,(e,t)=>{ND.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,HT(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),HT(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${zT(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>kO(e,r)):kO(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),jO=$(`$ZodExactOptional`,(e,t)=>{AO.init(e,t),HT(e._zod,`values`,()=>t.innerType._zod.values),HT(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),MO=$(`$ZodNullable`,(e,t)=>{ND.init(e,t),HT(e._zod,`optin`,()=>t.innerType._zod.optin),HT(e._zod,`optout`,()=>t.innerType._zod.optout),HT(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${zT(e.source)}|null)$`):void 0}),HT(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)}),NO=$(`$ZodDefault`,(e,t)=>{ND.init(e,t),e._zod.optin=`optional`,HT(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(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=>PO(e,t)):PO(r,t)}});function PO(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var FO=$(`$ZodPrefault`,(e,t)=>{ND.init(e,t),e._zod.optin=`optional`,HT(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),IO=$(`$ZodNonOptional`,(e,t)=>{ND.init(e,t),HT(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=>LO(t,e)):LO(i,e)}});function LO(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 RO=$(`$ZodCatch`,(e,t)=>{ND.init(e,t),e._zod.optin=`optional`,HT(e._zod,`optout`,()=>t.innerType._zod.optout),HT(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(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=>hE(e,n,PT()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>hE(e,n,PT()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),zO=$(`$ZodPipe`,(e,t)=>{ND.init(e,t),HT(e._zod,`values`,()=>t.in._zod.values),HT(e._zod,`optin`,()=>t.in._zod.optin),HT(e._zod,`optout`,()=>t.out._zod.optout),HT(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>BO(e,t.in,n)):BO(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>BO(e,t.out,n)):BO(r,t.out,n)}});function BO(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var VO=$(`$ZodReadonly`,(e,t)=>{ND.init(e,t),HT(e._zod,`propValues`,()=>t.innerType._zod.propValues),HT(e._zod,`values`,()=>t.innerType._zod.values),HT(e._zod,`optin`,()=>t.innerType?._zod?.optin),HT(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(HO):HO(r)}});function HO(e){return e.value=Object.freeze(e.value),e}var UO=$(`$ZodLazy`,(e,t)=>{ND.init(e,t),HT(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),HT(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),HT(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),HT(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),HT(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),WO=$(`$ZodCustom`,(e,t)=>{mD.init(e,t),ND.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=>GO(t,n,r,e));GO(i,n,r,e)}});function GO(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(_E(e))}}var KO,qO=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,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)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function JO(){return new qO}(KO=globalThis).__zod_globalRegistry??(KO.__zod_globalRegistry=JO());var YO=globalThis.__zod_globalRegistry;function XO(e,t){return new e({type:`string`,...tE(t)})}function ZO(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...tE(t)})}function QO(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...tE(t)})}function $O(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...tE(t)})}function ek(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...tE(t)})}function tk(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...tE(t)})}function nk(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...tE(t)})}function rk(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...tE(t)})}function ik(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...tE(t)})}function ak(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...tE(t)})}function ok(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...tE(t)})}function sk(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...tE(t)})}function ck(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...tE(t)})}function lk(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...tE(t)})}function uk(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...tE(t)})}function dk(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...tE(t)})}function fk(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...tE(t)})}function pk(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...tE(t)})}function mk(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...tE(t)})}function hk(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...tE(t)})}function gk(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...tE(t)})}function _k(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...tE(t)})}function vk(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...tE(t)})}function yk(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...tE(t)})}function bk(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...tE(t)})}function xk(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...tE(t)})}function Sk(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...tE(t)})}function Ck(e,t){return new e({type:`number`,checks:[],...tE(t)})}function wk(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...tE(t)})}function Tk(e,t){return new e({type:`boolean`,...tE(t)})}function Ek(e){return new e({type:`unknown`})}function Dk(e,t){return new e({type:`never`,...tE(t)})}function Ok(e,t){return new gD({check:`less_than`,...tE(t),value:e,inclusive:!1})}function kk(e,t){return new gD({check:`less_than`,...tE(t),value:e,inclusive:!0})}function Ak(e,t){return new _D({check:`greater_than`,...tE(t),value:e,inclusive:!1})}function jk(e,t){return new _D({check:`greater_than`,...tE(t),value:e,inclusive:!0})}function Mk(e,t){return new vD({check:`multiple_of`,...tE(t),value:e})}function Nk(e,t){return new bD({check:`max_length`,...tE(t),maximum:e})}function Pk(e,t){return new xD({check:`min_length`,...tE(t),minimum:e})}function Fk(e,t){return new SD({check:`length_equals`,...tE(t),length:e})}function Ik(e,t){return new wD({check:`string_format`,format:`regex`,...tE(t),pattern:e})}function Lk(e){return new TD({check:`string_format`,format:`lowercase`,...tE(e)})}function Rk(e){return new ED({check:`string_format`,format:`uppercase`,...tE(e)})}function zk(e,t){return new DD({check:`string_format`,format:`includes`,...tE(t),includes:e})}function Bk(e,t){return new OD({check:`string_format`,format:`starts_with`,...tE(t),prefix:e})}function Vk(e,t){return new kD({check:`string_format`,format:`ends_with`,...tE(t),suffix:e})}function Hk(e){return new AD({check:`overwrite`,tx:e})}function Uk(e){return Hk(t=>t.normalize(e))}function Wk(){return Hk(e=>e.trim())}function Gk(){return Hk(e=>e.toLowerCase())}function Kk(){return Hk(e=>e.toUpperCase())}function qk(){return Hk(e=>KT(e))}function Jk(e,t,n){return new e({type:`array`,element:t,...tE(n)})}function Yk(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...tE(n)})}function Xk(e,t){let n=Zk(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(_E(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(_E(r))}},e(t.value,t)),t);return n}function Zk(e,t){let n=new mD({check:`custom`,...tE(t)});return n._zod.check=e,n}function Qk(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??YO,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function $k(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,$k(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&nA(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function eA(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.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(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
561
561
|
|
|
562
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function $k(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:nA(t,`input`,e.processors),output:nA(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function eA(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return eA(r.element,n);if(r.type===`set`)return eA(r.valueType,n);if(r.type===`lazy`)return eA(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return eA(r.innerType,n);if(r.type===`intersection`)return eA(r.left,n)||eA(r.right,n);if(r.type===`record`||r.type===`map`)return eA(r.keyType,n)||eA(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:eA(r.in,n)||eA(r.out,n);if(r.type===`object`){for(let e in r.shape)if(eA(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(eA(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(eA(e,n))return!0;return!!(r.rest&&eA(r.rest,n))}return!1}var tA=(e,t={})=>n=>{let r=Xk({...n,processors:t});return Zk(e,r),Qk(r,e),$k(r,e)},nA=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Xk({...i??{},target:a,io:t,processors:n});return Zk(e,o),Qk(o,e),$k(o,e)},rA={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},iA=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=rA[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},aA=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},oA=(e,t,n,r)=>{n.type=`boolean`},sA=(e,t,n,r)=>{n.not={}},cA=(e,t,n,r)=>{let i=e._zod.def,a=NT(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},lA=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},uA=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},dA=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},fA=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Zk(a.element,t,{...r,path:[...r.path,`items`]})},pA=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Zk(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Zk(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},mA=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Zk(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},hA=(e,t,n,r)=>{let i=e._zod.def,a=Zk(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Zk(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},gA=(e,t,n,r)=>{let i=e._zod.def,a=Zk(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},_A=(e,t,n,r)=>{let i=e._zod.def;Zk(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},vA=(e,t,n,r)=>{let i=e._zod.def;Zk(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},yA=(e,t,n,r)=>{let i=e._zod.def;Zk(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},bA=(e,t,n,r)=>{let i=e._zod.def;Zk(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},xA=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Zk(o,t,r);let s=t.seen.get(e);s.ref=o},SA=(e,t,n,r)=>{let i=e._zod.def;Zk(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},CA=(e,t,n,r)=>{let i=e._zod.def;Zk(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},wA=(e,t,n,r)=>{let i=e._zod.innerType;Zk(i,t,r);let a=t.seen.get(e);a.ref=i},TA=$(`ZodISODateTime`,(e,t)=>{GD.init(e,t),QA.init(e,t)});function EA(e){return _k(TA,e)}var DA=$(`ZodISODate`,(e,t)=>{KD.init(e,t),QA.init(e,t)});function OA(e){return vk(DA,e)}var kA=$(`ZodISOTime`,(e,t)=>{qD.init(e,t),QA.init(e,t)});function AA(e){return yk(kA,e)}var jA=$(`ZodISODuration`,(e,t)=>{JD.init(e,t),QA.init(e,t)});function MA(e){return bk(jA,e)}var NA=$(`ZodError`,(e,t)=>{_E.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>bE(e,t)},flatten:{value:t=>yE(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,PT,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,PT,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),PA=xE(NA),FA=SE(NA),IA=CE(NA),LA=TE(NA),RA=DE(NA),zA=OE(NA),BA=kE(NA),VA=AE(NA),HA=jE(NA),UA=ME(NA),WA=NE(NA),GA=PE(NA),KA=new WeakMap;function qA(e,t,n){let r=Object.getPrototypeOf(e),i=KA.get(r);if(i||(i=new Set,KA.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var JA=$(`ZodType`,(e,t)=>(jD.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:nA(e,`input`),output:nA(e,`output`)}}),e.toJSONSchema=tA(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>PA(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>IA(e,t,n),e.parseAsync=async(t,n)=>FA(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>LA(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>RA(e,t,n),e.decode=(t,n)=>zA(e,t,n),e.encodeAsync=async(t,n)=>BA(e,t,n),e.decodeAsync=async(t,n)=>VA(e,t,n),e.safeEncode=(t,n)=>HA(e,t,n),e.safeDecode=(t,n)=>UA(e,t,n),e.safeEncodeAsync=async(t,n)=>WA(e,t,n),e.safeDecodeAsync=async(t,n)=>GA(e,t,n),qA(e,`ZodType`,{check(...e){let t=this.def;return this.clone(HT(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return QT(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(dM(e,t))},superRefine(e,t){return this.check(fM(e,t))},overwrite(e){return this.check(Bk(e))},optional(){return Gj(this)},exactOptional(){return qj(this)},nullable(){return Yj(this)},nullish(){return Gj(Yj(this))},nonoptional(e){return tM(this,e)},array(){return kj(this)},or(e){return Nj([this,e])},and(e){return Lj(this,e)},transform(e){return aM(this,Uj(e))},default(e){return Zj(this,e)},prefault(e){return $j(this,e)},catch(e){return rM(this,e)},pipe(e){return aM(this,e)},readonly(){return sM(this)},describe(e){let t=this.clone();return qO.add(t,{description:e}),t},meta(...e){if(e.length===0)return qO.get(this);let t=this.clone();return qO.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return qO.get(e)?.description},configurable:!0}),e)),YA=$(`_ZodString`,(e,t)=>{MD.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iA(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,qA(e,`_ZodString`,{regex(...e){return this.check(Pk(...e))},includes(...e){return this.check(Lk(...e))},startsWith(...e){return this.check(Rk(...e))},endsWith(...e){return this.check(zk(...e))},min(...e){return this.check(Mk(...e))},max(...e){return this.check(jk(...e))},length(...e){return this.check(Nk(...e))},nonempty(...e){return this.check(Mk(1,...e))},lowercase(e){return this.check(Fk(e))},uppercase(e){return this.check(Ik(e))},trim(){return this.check(Hk())},normalize(...e){return this.check(Vk(...e))},toLowerCase(){return this.check(Uk())},toUpperCase(){return this.check(Wk())},slugify(){return this.check(Gk())}})}),XA=$(`ZodString`,(e,t)=>{MD.init(e,t),YA.init(e,t),e.email=t=>e.check(YO($A,t)),e.url=t=>e.check(tk(nj,t)),e.jwt=t=>e.check(gk(_j,t)),e.emoji=t=>e.check(nk(rj,t)),e.guid=t=>e.check(XO(ej,t)),e.uuid=t=>e.check(ZO(tj,t)),e.uuidv4=t=>e.check(QO(tj,t)),e.uuidv6=t=>e.check($O(tj,t)),e.uuidv7=t=>e.check(ek(tj,t)),e.nanoid=t=>e.check(rk(ij,t)),e.guid=t=>e.check(XO(ej,t)),e.cuid=t=>e.check(ik(aj,t)),e.cuid2=t=>e.check(ak(oj,t)),e.ulid=t=>e.check(ok(sj,t)),e.base64=t=>e.check(pk(mj,t)),e.base64url=t=>e.check(mk(hj,t)),e.xid=t=>e.check(sk(cj,t)),e.ksuid=t=>e.check(ck(lj,t)),e.ipv4=t=>e.check(lk(uj,t)),e.ipv6=t=>e.check(uk(dj,t)),e.cidrv4=t=>e.check(dk(fj,t)),e.cidrv6=t=>e.check(fk(pj,t)),e.e164=t=>e.check(hk(gj,t)),e.datetime=t=>e.check(EA(t)),e.date=t=>e.check(OA(t)),e.time=t=>e.check(AA(t)),e.duration=t=>e.check(MA(t))});function ZA(e){return JO(XA,e)}var QA=$(`ZodStringFormat`,(e,t)=>{ND.init(e,t),YA.init(e,t)}),$A=$(`ZodEmail`,(e,t)=>{ID.init(e,t),QA.init(e,t)}),ej=$(`ZodGUID`,(e,t)=>{PD.init(e,t),QA.init(e,t)}),tj=$(`ZodUUID`,(e,t)=>{FD.init(e,t),QA.init(e,t)}),nj=$(`ZodURL`,(e,t)=>{LD.init(e,t),QA.init(e,t)}),rj=$(`ZodEmoji`,(e,t)=>{RD.init(e,t),QA.init(e,t)}),ij=$(`ZodNanoID`,(e,t)=>{zD.init(e,t),QA.init(e,t)}),aj=$(`ZodCUID`,(e,t)=>{BD.init(e,t),QA.init(e,t)}),oj=$(`ZodCUID2`,(e,t)=>{VD.init(e,t),QA.init(e,t)}),sj=$(`ZodULID`,(e,t)=>{HD.init(e,t),QA.init(e,t)}),cj=$(`ZodXID`,(e,t)=>{UD.init(e,t),QA.init(e,t)}),lj=$(`ZodKSUID`,(e,t)=>{WD.init(e,t),QA.init(e,t)}),uj=$(`ZodIPv4`,(e,t)=>{YD.init(e,t),QA.init(e,t)}),dj=$(`ZodIPv6`,(e,t)=>{XD.init(e,t),QA.init(e,t)}),fj=$(`ZodCIDRv4`,(e,t)=>{ZD.init(e,t),QA.init(e,t)}),pj=$(`ZodCIDRv6`,(e,t)=>{QD.init(e,t),QA.init(e,t)}),mj=$(`ZodBase64`,(e,t)=>{eO.init(e,t),QA.init(e,t)}),hj=$(`ZodBase64URL`,(e,t)=>{nO.init(e,t),QA.init(e,t)}),gj=$(`ZodE164`,(e,t)=>{rO.init(e,t),QA.init(e,t)}),_j=$(`ZodJWT`,(e,t)=>{aO.init(e,t),QA.init(e,t)}),vj=$(`ZodNumber`,(e,t)=>{oO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aA(e,t,n,r),qA(e,`ZodNumber`,{gt(e,t){return this.check(Ok(e,t))},gte(e,t){return this.check(kk(e,t))},min(e,t){return this.check(kk(e,t))},lt(e,t){return this.check(Ek(e,t))},lte(e,t){return this.check(Dk(e,t))},max(e,t){return this.check(Dk(e,t))},int(e){return this.check(xj(e))},safe(e){return this.check(xj(e))},positive(e){return this.check(Ok(0,e))},nonnegative(e){return this.check(kk(0,e))},negative(e){return this.check(Ek(0,e))},nonpositive(e){return this.check(Dk(0,e))},multipleOf(e,t){return this.check(Ak(e,t))},step(e,t){return this.check(Ak(e,t))},finite(){return this}});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 yj(e){return xk(vj,e)}var bj=$(`ZodNumberFormat`,(e,t)=>{sO.init(e,t),vj.init(e,t)});function xj(e){return Sk(bj,e)}var Sj=$(`ZodBoolean`,(e,t)=>{cO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oA(e,t,n,r)});function Cj(e){return Ck(Sj,e)}var wj=$(`ZodUnknown`,(e,t)=>{lO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Tj(){return wk(wj)}var Ej=$(`ZodNever`,(e,t)=>{uO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sA(e,t,n,r)});function Dj(e){return Tk(Ej,e)}var Oj=$(`ZodArray`,(e,t)=>{fO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fA(e,t,n,r),e.element=t.element,qA(e,`ZodArray`,{min(e,t){return this.check(Mk(e,t))},nonempty(e){return this.check(Mk(1,e))},max(e,t){return this.check(jk(e,t))},length(e,t){return this.check(Nk(e,t))},unwrap(){return this.element}})});function kj(e,t){return Kk(Oj,e,t)}var Aj=$(`ZodObject`,(e,t)=>{_O.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pA(e,t,n,r),BT(e,`shape`,()=>t.shape),qA(e,`ZodObject`,{keyof(){return zj(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Tj()})},loose(){return this.clone({...this._zod.def,catchall:Tj()})},strict(){return this.clone({...this._zod.def,catchall:Dj()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return iE(this,e)},safeExtend(e){return aE(this,e)},merge(e){return oE(this,e)},pick(e){return nE(this,e)},omit(e){return rE(this,e)},partial(...e){return sE(Wj,this,e[0])},required(...e){return cE(eM,this,e[0])}})});function jj(e,t){return new Aj({type:`object`,shape:e??{},...$T(t)})}var Mj=$(`ZodUnion`,(e,t)=>{yO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mA(e,t,n,r),e.options=t.options});function Nj(e,t){return new Mj({type:`union`,options:e,...$T(t)})}var Pj=$(`ZodDiscriminatedUnion`,(e,t)=>{Mj.init(e,t),bO.init(e,t)});function Fj(e,t,n){return new Pj({type:`union`,options:t,discriminator:e,...$T(n)})}var Ij=$(`ZodIntersection`,(e,t)=>{xO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hA(e,t,n,r)});function Lj(e,t){return new Ij({type:`intersection`,left:e,right:t})}var Rj=$(`ZodEnum`,(e,t)=>{wO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cA(e,t,n,r),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 Rj({...t,checks:[],...$T(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 Rj({...t,checks:[],...$T(r),entries:i})}});function zj(e,t){return new Rj({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...$T(t)})}var Bj=$(`ZodLiteral`,(e,t)=>{TO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lA(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Vj(e,t){return new Bj({type:`literal`,values:Array.isArray(e)?e:[e],...$T(t)})}var Hj=$(`ZodTransform`,(e,t)=>{EO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dA(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new AT(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(hE(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(hE(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Uj(e){return new Hj({type:`transform`,transform:e})}var Wj=$(`ZodOptional`,(e,t)=>{OO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>CA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Gj(e){return new Wj({type:`optional`,innerType:e})}var Kj=$(`ZodExactOptional`,(e,t)=>{kO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>CA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qj(e){return new Kj({type:`optional`,innerType:e})}var Jj=$(`ZodNullable`,(e,t)=>{AO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Yj(e){return new Jj({type:`nullable`,innerType:e})}var Xj=$(`ZodDefault`,(e,t)=>{jO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Zj(e,t){return new Xj({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():YT(t)}})}var Qj=$(`ZodPrefault`,(e,t)=>{NO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $j(e,t){return new Qj({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():YT(t)}})}var eM=$(`ZodNonOptional`,(e,t)=>{PO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_A(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function tM(e,t){return new eM({type:`nonoptional`,innerType:e,...$T(t)})}var nM=$(`ZodCatch`,(e,t)=>{IO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function rM(e,t){return new nM({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var iM=$(`ZodPipe`,(e,t)=>{LO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xA(e,t,n,r),e.in=t.in,e.out=t.out});function aM(e,t){return new iM({type:`pipe`,in:e,out:t})}var oM=$(`ZodReadonly`,(e,t)=>{zO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>SA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function sM(e){return new oM({type:`readonly`,innerType:e})}var cM=$(`ZodLazy`,(e,t)=>{VO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wA(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function lM(e){return new cM({type:`lazy`,getter:e})}var uM=$(`ZodCustom`,(e,t)=>{HO.init(e,t),JA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uA(e,t,n,r)});function dM(e,t={}){return qk(uM,e,t)}function fM(e,t){return Jk(e,t)}var pM=ZA().trim().min(1,`Must not be empty.`),mM=zj([`indigo`,`emerald`,`sunset`,`violet`,`rose`,`slate`,`cyberpunk`]),hM=zj([`atlas`,`blueprint`,`terminal`,`editorial`]),gM=zj([`comfortable`,`compact`]),_M=zj([`light`,`dark`,`auto`]),vM=zj([`github`,`gitlab`,`twitter`,`x`,`discord`,`custom`]),yM=zj([`info`,`success`,`warning`,`new`]),bM=jj({label:pM,href:pM,external:Cj().optional(),icon:ZA().optional()}).strict(),xM=jj({type:vM,url:ZA().url(`Must be an absolute URL.`),label:ZA().optional(),icon:ZA().optional()}).strict(),SM=Fj(`type`,[jj({type:Vj(`github`),repo:pM.regex(/^[^/\s]+\/[^/\s]+$/,`Use the owner/repository format.`),branch:pM.optional(),docsDir:ZA().optional(),token:ZA().optional(),baseUrl:ZA().url(`Must be an absolute URL.`).optional()}).strict(),jj({type:Vj(`gitlab`),repo:pM.regex(/^[^/\s]+\/[^/\s]+$/,`Use the namespace/repository format.`),branch:pM.optional(),docsDir:ZA().optional(),token:ZA().optional(),baseUrl:ZA().url(`Must be an absolute URL.`).optional()}).strict(),jj({type:Vj(`raw`),baseUrl:ZA().url(`Must be an absolute URL.`),branch:pM.optional(),docsDir:ZA().optional(),token:ZA().optional()}).strict()]),CM=lM(()=>jj({title:ZA().optional(),path:ZA().optional(),slug:ZA().optional(),icon:ZA().optional(),badge:ZA().optional(),badgeType:yM.optional(),collapsed:Cj().optional(),children:kj(CM).optional()}).strict()),wM=jj({family:hM.optional(),density:gM.optional(),preset:mM.optional(),defaultMode:_M.optional(),accentColor:ZA().optional(),accentColorDark:ZA().optional(),fontFamily:ZA().optional(),codeTheme:zj([`github`,`dracula`,`one-dark`,`synthwave`]).optional(),logo:jj({light:ZA().optional(),dark:ZA().optional(),alt:ZA().optional(),text:ZA().optional()}).strict().optional(),favicon:ZA().optional()}).strict(),TM=jj({enabled:Cj().optional(),placeholder:ZA().optional(),maxResults:yj().int().positive().max(100).optional()}).strict(),EM=jj({embedNestedDocs:Cj().optional()}).strict(),DM=jj({$schema:ZA().url(`Must be an absolute URL.`).optional(),name:pM.optional(),tagline:ZA().optional(),description:ZA().optional(),url:ZA().url(`Must be an absolute URL.`).optional(),version:ZA().optional(),rootDoc:pM.optional(),home:pM.optional(),source:SM.optional(),theme:wM.optional(),nav:kj(bM).optional(),socials:kj(xM).optional(),sidebar:kj(CM).optional(),autoIndex:jj({enabled:Cj().optional(),exclude:kj(pM).optional(),sort:zj([`alphabetical`,`frontmatter`,`natural`]).optional(),defaultCollapsed:Cj().optional()}).strict().optional(),search:TM.optional(),offline:EM.optional(),footer:jj({copyright:ZA().optional(),links:kj(bM).optional(),showBuiltWith:Cj().optional()}).strict().optional(),componentsUrl:ZA().optional(),editUrl:ZA().optional()}).strict(),OM=DM.extend({name:pM});function kM(e){return e.issues.map(e=>`${e.path.length>0?e.path.join(`.`):`config`}: ${e.message}`).join(`
|
|
563
|
-
`)}function
|
|
562
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function tA(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:iA(t,`input`,e.processors),output:iA(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function nA(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return nA(r.element,n);if(r.type===`set`)return nA(r.valueType,n);if(r.type===`lazy`)return nA(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return nA(r.innerType,n);if(r.type===`intersection`)return nA(r.left,n)||nA(r.right,n);if(r.type===`record`||r.type===`map`)return nA(r.keyType,n)||nA(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:nA(r.in,n)||nA(r.out,n);if(r.type===`object`){for(let e in r.shape)if(nA(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(nA(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(nA(e,n))return!0;return!!(r.rest&&nA(r.rest,n))}return!1}var rA=(e,t={})=>n=>{let r=Qk({...n,processors:t});return $k(e,r),eA(r,e),tA(r,e)},iA=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Qk({...i??{},target:a,io:t,processors:n});return $k(e,o),eA(o,e),tA(o,e)},aA={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},oA=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=aA[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},sA=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},cA=(e,t,n,r)=>{n.type=`boolean`},lA=(e,t,n,r)=>{n.not={}},uA=(e,t,n,r)=>{let i=e._zod.def,a=FT(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},dA=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},fA=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},pA=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},mA=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=$k(a.element,t,{...r,path:[...r.path,`items`]})},hA=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=$k(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=$k(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},gA=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>$k(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},_A=(e,t,n,r)=>{let i=e._zod.def,a=$k(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=$k(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},vA=(e,t,n,r)=>{let i=e._zod.def,a=$k(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},yA=(e,t,n,r)=>{let i=e._zod.def;$k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},bA=(e,t,n,r)=>{let i=e._zod.def;$k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},xA=(e,t,n,r)=>{let i=e._zod.def;$k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},SA=(e,t,n,r)=>{let i=e._zod.def;$k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},CA=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;$k(o,t,r);let s=t.seen.get(e);s.ref=o},wA=(e,t,n,r)=>{let i=e._zod.def;$k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},TA=(e,t,n,r)=>{let i=e._zod.def;$k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},EA=(e,t,n,r)=>{let i=e._zod.innerType;$k(i,t,r);let a=t.seen.get(e);a.ref=i},DA=$(`ZodISODateTime`,(e,t)=>{qD.init(e,t),ej.init(e,t)});function OA(e){return yk(DA,e)}var kA=$(`ZodISODate`,(e,t)=>{JD.init(e,t),ej.init(e,t)});function AA(e){return bk(kA,e)}var jA=$(`ZodISOTime`,(e,t)=>{YD.init(e,t),ej.init(e,t)});function MA(e){return xk(jA,e)}var NA=$(`ZodISODuration`,(e,t)=>{XD.init(e,t),ej.init(e,t)});function PA(e){return Sk(NA,e)}var FA=$(`ZodError`,(e,t)=>{yE.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>SE(e,t)},flatten:{value:t=>xE(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,IT,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,IT,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),IA=CE(FA),LA=wE(FA),RA=TE(FA),zA=DE(FA),BA=kE(FA),VA=AE(FA),HA=jE(FA),UA=ME(FA),WA=NE(FA),GA=PE(FA),KA=FE(FA),qA=IE(FA),JA=new WeakMap;function YA(e,t,n){let r=Object.getPrototypeOf(e),i=JA.get(r);if(i||(i=new Set,JA.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var XA=$(`ZodType`,(e,t)=>(ND.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:iA(e,`input`),output:iA(e,`output`)}}),e.toJSONSchema=rA(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>IA(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>RA(e,t,n),e.parseAsync=async(t,n)=>LA(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>zA(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>BA(e,t,n),e.decode=(t,n)=>VA(e,t,n),e.encodeAsync=async(t,n)=>HA(e,t,n),e.decodeAsync=async(t,n)=>UA(e,t,n),e.safeEncode=(t,n)=>WA(e,t,n),e.safeDecode=(t,n)=>GA(e,t,n),e.safeEncodeAsync=async(t,n)=>KA(e,t,n),e.safeDecodeAsync=async(t,n)=>qA(e,t,n),YA(e,`ZodType`,{check(...e){let t=this.def;return this.clone(WT(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return eE(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(pM(e,t))},superRefine(e,t){return this.check(mM(e,t))},overwrite(e){return this.check(Hk(e))},optional(){return qj(this)},exactOptional(){return Yj(this)},nullable(){return Zj(this)},nullish(){return qj(Zj(this))},nonoptional(e){return rM(this,e)},array(){return jj(this)},or(e){return Fj([this,e])},and(e){return zj(this,e)},transform(e){return sM(this,Gj(e))},default(e){return $j(this,e)},prefault(e){return tM(this,e)},catch(e){return aM(this,e)},pipe(e){return sM(this,e)},readonly(){return lM(this)},describe(e){let t=this.clone();return YO.add(t,{description:e}),t},meta(...e){if(e.length===0)return YO.get(this);let t=this.clone();return YO.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return YO.get(e)?.description},configurable:!0}),e)),ZA=$(`_ZodString`,(e,t)=>{PD.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oA(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,YA(e,`_ZodString`,{regex(...e){return this.check(Ik(...e))},includes(...e){return this.check(zk(...e))},startsWith(...e){return this.check(Bk(...e))},endsWith(...e){return this.check(Vk(...e))},min(...e){return this.check(Pk(...e))},max(...e){return this.check(Nk(...e))},length(...e){return this.check(Fk(...e))},nonempty(...e){return this.check(Pk(1,...e))},lowercase(e){return this.check(Lk(e))},uppercase(e){return this.check(Rk(e))},trim(){return this.check(Wk())},normalize(...e){return this.check(Uk(...e))},toLowerCase(){return this.check(Gk())},toUpperCase(){return this.check(Kk())},slugify(){return this.check(qk())}})}),QA=$(`ZodString`,(e,t)=>{PD.init(e,t),ZA.init(e,t),e.email=t=>e.check(ZO(tj,t)),e.url=t=>e.check(rk(ij,t)),e.jwt=t=>e.check(vk(yj,t)),e.emoji=t=>e.check(ik(aj,t)),e.guid=t=>e.check(QO(nj,t)),e.uuid=t=>e.check($O(rj,t)),e.uuidv4=t=>e.check(ek(rj,t)),e.uuidv6=t=>e.check(tk(rj,t)),e.uuidv7=t=>e.check(nk(rj,t)),e.nanoid=t=>e.check(ak(oj,t)),e.guid=t=>e.check(QO(nj,t)),e.cuid=t=>e.check(ok(sj,t)),e.cuid2=t=>e.check(sk(cj,t)),e.ulid=t=>e.check(ck(lj,t)),e.base64=t=>e.check(hk(gj,t)),e.base64url=t=>e.check(gk(_j,t)),e.xid=t=>e.check(lk(uj,t)),e.ksuid=t=>e.check(uk(dj,t)),e.ipv4=t=>e.check(dk(fj,t)),e.ipv6=t=>e.check(fk(pj,t)),e.cidrv4=t=>e.check(pk(mj,t)),e.cidrv6=t=>e.check(mk(hj,t)),e.e164=t=>e.check(_k(vj,t)),e.datetime=t=>e.check(OA(t)),e.date=t=>e.check(AA(t)),e.time=t=>e.check(MA(t)),e.duration=t=>e.check(PA(t))});function $A(e){return XO(QA,e)}var ej=$(`ZodStringFormat`,(e,t)=>{FD.init(e,t),ZA.init(e,t)}),tj=$(`ZodEmail`,(e,t)=>{RD.init(e,t),ej.init(e,t)}),nj=$(`ZodGUID`,(e,t)=>{ID.init(e,t),ej.init(e,t)}),rj=$(`ZodUUID`,(e,t)=>{LD.init(e,t),ej.init(e,t)}),ij=$(`ZodURL`,(e,t)=>{zD.init(e,t),ej.init(e,t)}),aj=$(`ZodEmoji`,(e,t)=>{BD.init(e,t),ej.init(e,t)}),oj=$(`ZodNanoID`,(e,t)=>{VD.init(e,t),ej.init(e,t)}),sj=$(`ZodCUID`,(e,t)=>{HD.init(e,t),ej.init(e,t)}),cj=$(`ZodCUID2`,(e,t)=>{UD.init(e,t),ej.init(e,t)}),lj=$(`ZodULID`,(e,t)=>{WD.init(e,t),ej.init(e,t)}),uj=$(`ZodXID`,(e,t)=>{GD.init(e,t),ej.init(e,t)}),dj=$(`ZodKSUID`,(e,t)=>{KD.init(e,t),ej.init(e,t)}),fj=$(`ZodIPv4`,(e,t)=>{ZD.init(e,t),ej.init(e,t)}),pj=$(`ZodIPv6`,(e,t)=>{QD.init(e,t),ej.init(e,t)}),mj=$(`ZodCIDRv4`,(e,t)=>{$D.init(e,t),ej.init(e,t)}),hj=$(`ZodCIDRv6`,(e,t)=>{eO.init(e,t),ej.init(e,t)}),gj=$(`ZodBase64`,(e,t)=>{nO.init(e,t),ej.init(e,t)}),_j=$(`ZodBase64URL`,(e,t)=>{iO.init(e,t),ej.init(e,t)}),vj=$(`ZodE164`,(e,t)=>{aO.init(e,t),ej.init(e,t)}),yj=$(`ZodJWT`,(e,t)=>{sO.init(e,t),ej.init(e,t)}),bj=$(`ZodNumber`,(e,t)=>{cO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sA(e,t,n,r),YA(e,`ZodNumber`,{gt(e,t){return this.check(Ak(e,t))},gte(e,t){return this.check(jk(e,t))},min(e,t){return this.check(jk(e,t))},lt(e,t){return this.check(Ok(e,t))},lte(e,t){return this.check(kk(e,t))},max(e,t){return this.check(kk(e,t))},int(e){return this.check(Cj(e))},safe(e){return this.check(Cj(e))},positive(e){return this.check(Ak(0,e))},nonnegative(e){return this.check(jk(0,e))},negative(e){return this.check(Ok(0,e))},nonpositive(e){return this.check(kk(0,e))},multipleOf(e,t){return this.check(Mk(e,t))},step(e,t){return this.check(Mk(e,t))},finite(){return this}});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 xj(e){return Ck(bj,e)}var Sj=$(`ZodNumberFormat`,(e,t)=>{lO.init(e,t),bj.init(e,t)});function Cj(e){return wk(Sj,e)}var wj=$(`ZodBoolean`,(e,t)=>{uO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cA(e,t,n,r)});function Tj(e){return Tk(wj,e)}var Ej=$(`ZodUnknown`,(e,t)=>{dO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Dj(){return Ek(Ej)}var Oj=$(`ZodNever`,(e,t)=>{fO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lA(e,t,n,r)});function kj(e){return Dk(Oj,e)}var Aj=$(`ZodArray`,(e,t)=>{mO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mA(e,t,n,r),e.element=t.element,YA(e,`ZodArray`,{min(e,t){return this.check(Pk(e,t))},nonempty(e){return this.check(Pk(1,e))},max(e,t){return this.check(Nk(e,t))},length(e,t){return this.check(Fk(e,t))},unwrap(){return this.element}})});function jj(e,t){return Jk(Aj,e,t)}var Mj=$(`ZodObject`,(e,t)=>{yO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hA(e,t,n,r),HT(e,`shape`,()=>t.shape),YA(e,`ZodObject`,{keyof(){return Vj(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Dj()})},loose(){return this.clone({...this._zod.def,catchall:Dj()})},strict(){return this.clone({...this._zod.def,catchall:kj()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return oE(this,e)},safeExtend(e){return sE(this,e)},merge(e){return cE(this,e)},pick(e){return iE(this,e)},omit(e){return aE(this,e)},partial(...e){return lE(Kj,this,e[0])},required(...e){return uE(nM,this,e[0])}})});function Nj(e,t){return new Mj({type:`object`,shape:e??{},...tE(t)})}var Pj=$(`ZodUnion`,(e,t)=>{xO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gA(e,t,n,r),e.options=t.options});function Fj(e,t){return new Pj({type:`union`,options:e,...tE(t)})}var Ij=$(`ZodDiscriminatedUnion`,(e,t)=>{Pj.init(e,t),SO.init(e,t)});function Lj(e,t,n){return new Ij({type:`union`,options:t,discriminator:e,...tE(n)})}var Rj=$(`ZodIntersection`,(e,t)=>{CO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_A(e,t,n,r)});function zj(e,t){return new Rj({type:`intersection`,left:e,right:t})}var Bj=$(`ZodEnum`,(e,t)=>{EO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uA(e,t,n,r),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 Bj({...t,checks:[],...tE(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 Bj({...t,checks:[],...tE(r),entries:i})}});function Vj(e,t){return new Bj({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...tE(t)})}var Hj=$(`ZodLiteral`,(e,t)=>{DO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dA(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Uj(e,t){return new Hj({type:`literal`,values:Array.isArray(e)?e:[e],...tE(t)})}var Wj=$(`ZodTransform`,(e,t)=>{OO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pA(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new MT(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(_E(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(_E(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Gj(e){return new Wj({type:`transform`,transform:e})}var Kj=$(`ZodOptional`,(e,t)=>{AO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>TA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qj(e){return new Kj({type:`optional`,innerType:e})}var Jj=$(`ZodExactOptional`,(e,t)=>{jO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>TA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Yj(e){return new Jj({type:`optional`,innerType:e})}var Xj=$(`ZodNullable`,(e,t)=>{MO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Zj(e){return new Xj({type:`nullable`,innerType:e})}var Qj=$(`ZodDefault`,(e,t)=>{NO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function $j(e,t){return new Qj({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ZT(t)}})}var eM=$(`ZodPrefault`,(e,t)=>{FO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function tM(e,t){return new eM({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ZT(t)}})}var nM=$(`ZodNonOptional`,(e,t)=>{IO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rM(e,t){return new nM({type:`nonoptional`,innerType:e,...tE(t)})}var iM=$(`ZodCatch`,(e,t)=>{RO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>SA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function aM(e,t){return new iM({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var oM=$(`ZodPipe`,(e,t)=>{zO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>CA(e,t,n,r),e.in=t.in,e.out=t.out});function sM(e,t){return new oM({type:`pipe`,in:e,out:t})}var cM=$(`ZodReadonly`,(e,t)=>{VO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wA(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function lM(e){return new cM({type:`readonly`,innerType:e})}var uM=$(`ZodLazy`,(e,t)=>{UO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>EA(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function dM(e){return new uM({type:`lazy`,getter:e})}var fM=$(`ZodCustom`,(e,t)=>{WO.init(e,t),XA.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fA(e,t,n,r)});function pM(e,t={}){return Yk(fM,e,t)}function mM(e,t){return Xk(e,t)}var hM=$A().trim().min(1,`Must not be empty.`),gM=Vj([`indigo`,`emerald`,`sunset`,`violet`,`rose`,`slate`,`cyberpunk`]),_M=Vj([`atlas`,`blueprint`,`terminal`,`editorial`]),vM=Vj([`comfortable`,`compact`]),yM=Vj([`light`,`dark`,`auto`]),bM=Vj([`github`,`gitlab`,`twitter`,`x`,`discord`,`custom`]),xM=Vj([`info`,`success`,`warning`,`new`]),SM=Nj({label:hM,href:hM,external:Tj().optional(),icon:$A().optional()}).strict(),CM=Nj({type:bM,url:$A().url(`Must be an absolute URL.`),label:$A().optional(),icon:$A().optional()}).strict(),wM=Lj(`type`,[Nj({type:Uj(`github`),repo:hM.regex(/^[^/\s]+\/[^/\s]+$/,`Use the owner/repository format.`),branch:hM.optional(),docsDir:$A().optional(),token:$A().optional(),baseUrl:$A().url(`Must be an absolute URL.`).optional()}).strict(),Nj({type:Uj(`gitlab`),repo:hM.regex(/^[^/\s]+\/[^/\s]+$/,`Use the namespace/repository format.`),branch:hM.optional(),docsDir:$A().optional(),token:$A().optional(),baseUrl:$A().url(`Must be an absolute URL.`).optional()}).strict(),Nj({type:Uj(`raw`),baseUrl:$A().url(`Must be an absolute URL.`),branch:hM.optional(),docsDir:$A().optional(),token:$A().optional()}).strict()]),TM=dM(()=>Nj({title:$A().optional(),path:$A().optional(),slug:$A().optional(),icon:$A().optional(),badge:$A().optional(),badgeType:xM.optional(),collapsed:Tj().optional(),children:jj(TM).optional()}).strict()),EM=Nj({family:_M.optional(),density:vM.optional(),preset:gM.optional(),defaultMode:yM.optional(),accentColor:$A().optional(),accentColorDark:$A().optional(),fontFamily:$A().optional(),codeTheme:Vj([`github`,`dracula`,`one-dark`,`synthwave`]).optional(),logo:Nj({light:$A().optional(),dark:$A().optional(),alt:$A().optional(),text:$A().optional()}).strict().optional(),favicon:$A().optional()}).strict(),DM=Nj({enabled:Tj().optional(),placeholder:$A().optional(),maxResults:xj().int().positive().max(100).optional()}).strict(),OM=Nj({embedNestedDocs:Tj().optional()}).strict(),kM=Nj({$schema:$A().url(`Must be an absolute URL.`).optional(),name:hM.optional(),tagline:$A().optional(),description:$A().optional(),url:$A().url(`Must be an absolute URL.`).optional(),version:$A().optional(),rootDoc:hM.optional(),home:hM.optional(),source:wM.optional(),theme:EM.optional(),nav:jj(SM).optional(),socials:jj(CM).optional(),sidebar:jj(TM).optional(),autoIndex:Nj({enabled:Tj().optional(),exclude:jj(hM).optional(),sort:Vj([`alphabetical`,`frontmatter`,`natural`]).optional(),defaultCollapsed:Tj().optional()}).strict().optional(),search:DM.optional(),offline:OM.optional(),footer:Nj({copyright:$A().optional(),links:jj(SM).optional(),showBuiltWith:Tj().optional()}).strict().optional(),componentsUrl:$A().optional(),editUrl:$A().optional()}).strict(),AM=kM.extend({name:hM});function jM(e){return e.issues.map(e=>`${e.path.length>0?e.path.join(`.`):`config`}: ${e.message}`).join(`
|
|
563
|
+
`)}function MM(e){let t=kM.safeParse(e);if(t.success)return t.data;throw Error(`Invalid DocMeDown configuration:\n${jM(t.error)}`)}var NM={indigo:`atlas`,emerald:`atlas`,sunset:`editorial`,violet:`atlas`,rose:`editorial`,slate:`blueprint`,cyberpunk:`terminal`},PM={name:`DocMeDown`,tagline:`The simplest Markdown documenter yet`,description:`Instant documentation site powered by DocMeDown`,version:`1.0.0`,rootDoc:`README.md`,theme:{family:`atlas`,density:`comfortable`,defaultMode:`auto`,codeTheme:`github`},autoIndex:{enabled:!0,sort:`natural`,defaultCollapsed:!1,exclude:[`node_modules`,`.git`,`.dmd`,`dist`,`bin`,`package.json`,`tsconfig.json`]},search:{enabled:!0,placeholder:`Search documentation...`,maxResults:10},offline:{embedNestedDocs:!0},footer:{copyright:`© ${new Date().getFullYear()} DocMeDown. All rights reserved.`,showBuiltWith:!0}};function FM(e={}){let t=MM(e),n=t.theme?.preset,r=t.theme?.family||(n?NM[n]:PM.theme?.family),{preset:i,...a}=t.theme??{},o={...PM,...t,theme:{...PM.theme,...a,family:r,logo:{...PM.theme?.logo,...t.theme?.logo}},autoIndex:{...PM.autoIndex,...t.autoIndex},search:{...PM.search,...t.search},offline:{...PM.offline,...t.offline},footer:{...PM.footer,...t.footer}};return AM.parse(o)}function IM(e,t){try{return MM(JSON.parse(e))}catch(e){throw Error(`${t}: ${e instanceof Error?e.message:String(e)}`)}}async function LM(e=``){if(typeof window<`u`&&window.__DOCMEDOWN_CONFIG__)try{return FM(window.__DOCMEDOWN_CONFIG__)}catch(e){console.warn(`[DocMeDown] Invalid window.__DOCMEDOWN_CONFIG__:`,e)}if(typeof document<`u`){let e=document.getElementById(`dmd-config`);if(e?.textContent)try{return FM(IM(e.textContent.trim(),`Inline #dmd-config`))}catch(e){console.warn(`[DocMeDown] Failed to parse inline #dmd-config JSON:`,e)}}for(let t of[`docs.json`,`dmd.json`,`_manifest.json`])try{let n=e?`${e.replace(/\/$/,``)}/${t}`:t,r=await fetch(n);if(r.ok){let e=await r.json();return t===`_manifest.json`&&typeof e==`object`&&e&&`config`in e?FM(e.config):FM(e)}}catch(e){e instanceof Error&&e.message.includes(`Invalid DocMeDown configuration`)&&console.warn(`[DocMeDown] Ignoring invalid ${t}:\n${e.message}`)}return FM()}var RM=`@import './themes.css';
|
|
564
564
|
/* KaTeX base styles are imported as a module from App.svelte (before this
|
|
565
565
|
file) so the build can prune their legacy woff/ttf font sources. */
|
|
566
566
|
|
|
@@ -7617,5 +7617,5 @@ dmd-timeline-item {
|
|
|
7617
7617
|
animation-duration: 3s;
|
|
7618
7618
|
}`).replace(/@import\s+['"][^'"]*katex[^'"]*['"]\s*;?/,`/* katex: loaded globally for slotted content */`)+`
|
|
7619
7619
|
|
|
7620
|
-
:host { display: contents; }`,LM=null;function RM(){if(!LM&&typeof CSSStyleSheet<`u`)try{LM=new CSSStyleSheet,LM.replaceSync(IM)}catch{LM=null}return LM}function zM(e){if(!e||typeof ShadowRoot>`u`)return;let t=e.getRootNode();if(t instanceof ShadowRoot){let e=RM();e&&!t.adoptedStyleSheets.includes(e)&&(t.adoptedStyleSheets=[...t.adoptedStyleSheets,e])}}var BM=P(`<div class="dmd-accordion"><!></div>`);function VM(e,t){un(t,!0);let n=E(void 0);ru(()=>{zM(M(n))});var r=BM();bs(O(r),t,`default`,{},null),w(r),yl(r,e=>D(n,e),()=>M(n)),F(e,r),dn()}customElements.define(`dmd-accordion`,Zl(VM,{},[`default`],[],{mode:`open`}));var HM=P(`<div><button type="button" class="dmd-accordion-trigger"><span class="dmd-accordion-label"> </span> <span class="dmd-accordion-chevron" aria-hidden="true">▾</span></button> <div><div class="dmd-accordion-content"><!></div></div></div>`);function UM(e,t){un(t,!0);let n=z(t,`title`,7,``),r=z(t,`defaultopen`,7,!1),i=E(void 0),a=E(!1);function o(){D(a,!M(a))}ru(()=>{zM(M(i)),D(a,!!r(),!0)});var s={get title(){return n()},set title(e=``){n(e),T()},get defaultopen(){return r()},set defaultopen(e=!1){r(e),T()}},c=HM(),l=O(c),u=k(O(l),!0);it(2),w(l);var d=A(l,2),f=O(d);return bs(O(f),t,`default`,{},null),w(f),w(d),w(c),yl(c,e=>D(i,e),()=>M(i)),j(()=>{sc(c,1,`dmd-accordion-item${M(a)?` open`:``}`),R(l,`aria-expanded`,M(a)),I(u,n()),sc(d,1,`dmd-accordion-panel${M(a)?` open`:``}`)}),N(`click`,l,o),F(e,c),dn(s)}po([`click`]),customElements.define(`dmd-accordion-item`,Zl(UM,{title:{},defaultopen:{}},[`default`],[],{mode:`open`}));var WM=P(`<span class="dmd-alert-title"> </span>`),GM=P(`<div role="note"><div class="dmd-alert-head"><span class="dmd-alert-icon" aria-hidden="true"></span> <!></div> <div class="dmd-alert-body"><!></div></div>`);function KM(e,t){un(t,!0);let n={note:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,info:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>`,tip:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/></svg>`,important:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>`,warning:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>`,caution:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>`,success:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>`,danger:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`},r=z(t,`type`,7,`note`),i=z(t,`title`,7,``),a=E(void 0);ru(()=>{zM(M(a))});let o=lr(()=>n[r()]??n.note);var s={get type(){return r()},set type(e=`note`){r(e),T()},get title(){return i()},set title(e=``){i(e),T()}},c=GM(),l=O(c),u=O(l);ys(u,()=>M(o),!0),w(u);var d=A(u,2),f=e=>{var t=WM(),n=k(t,!0);j(()=>I(n,i())),F(e,t)};L(d,e=>{i()&&e(f)}),w(l);var p=A(l,2);return bs(O(p),t,`default`,{},null),w(p),w(c),yl(c,e=>D(a,e),()=>M(a)),j(()=>sc(c,1,`dmd-alert dmd-alert-${r()??``}`)),F(e,c),dn(s)}customElements.define(`dmd-alert`,Zl(KM,{type:{},title:{}},[`default`],[],{mode:`open`}));function qM(e,t){un(t,!0);let n=z(t,`type`,7,`note`),r=z(t,`title`,7,``);return KM(e,{get type(){return n()},get title(){return r()},children:(e,n)=>{var r=Mo();bs(pi(r),t,`default`,{},null),F(e,r)},$$slots:{default:!0}}),dn({get type(){return n()},set type(e=`note`){n(e),T()},get title(){return r()},set title(e=``){r(e),T()}})}customElements.define(`dmd-callout`,Zl(qM,{type:{},title:{}},[`default`],[],{mode:`open`}));var JM=P(`<span class="dmd-badge-pulse" aria-hidden="true"><span class="dmd-badge-pulse-ring"></span> <span class="dmd-badge-pulse-core"></span></span>`),YM=P(`<span><!> <span class="dmd-badge-label"><!></span></span>`);function XM(e,t){un(t,!0);let n=z(t,`type`,7,`info`),r=z(t,`pill`,7,!1),i=z(t,`dot`,7,!1),a=E(void 0);ru(()=>{zM(M(a))});var o={get type(){return n()},set type(e=`info`){n(e),T()},get pill(){return r()},set pill(e=!1){r(e),T()},get dot(){return i()},set dot(e=!1){i(e),T()}},s=YM(),c=O(s),l=e=>{F(e,JM())};L(c,e=>{i()&&e(l)});var u=A(c,2);return bs(O(u),t,`default`,{},null),w(u),w(s),yl(s,e=>D(a,e),()=>M(a)),j(()=>sc(s,1,`dmd-badge dmd-badge-${n()??``}${r()?` dmd-badge-pill`:``}${i()?` dmd-badge-dot`:``}`)),F(e,s),dn(o)}customElements.define(`dmd-badge`,Zl(XM,{type:{},pill:{},dot:{}},[`default`],[],{mode:`open`}));var ZM=P(`<span class="dmd-btn-spinner" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M21 12a9 9 0 1 1-6.2-8.56" stroke-linecap="round"></path></svg></span>`),QM=P(`<a><!> <span class="dmd-btn-label"><!></span></a>`),$M=P(`<button><!> <span class="dmd-btn-label"><!></span></button>`);function eN(e,t){un(t,!0);let n=z(t,`variant`,7,`primary`),r=z(t,`size`,7,`md`),i=z(t,`href`,7,``),a=z(t,`external`,7,!1),o=z(t,`block`,7,!1),s=z(t,`iconposition`,7,`left`),c=z(t,`loading`,7,!1),l=z(t,`disabled`,7,!1),u=z(t,`type`,7,`button`),d=E(void 0);ru(()=>{zM(M(d))});let f=lr(()=>`dmd-btn dmd-btn-${n()} dmd-btn-${r()}${o()?` dmd-btn-block`:``}${c()?` dmd-btn-loading`:``}`);var p={get variant(){return n()},set variant(e=`primary`){n(e),T()},get size(){return r()},set size(e=`md`){r(e),T()},get href(){return i()},set href(e=``){i(e),T()},get external(){return a()},set external(e=!1){a(e),T()},get block(){return o()},set block(e=!1){o(e),T()},get iconposition(){return s()},set iconposition(e=`left`){s(e),T()},get loading(){return c()},set loading(e=!1){c(e),T()},get disabled(){return l()},set disabled(e=!1){l(e),T()},get type(){return u()},set type(e=`button`){u(e),T()}},m=Mo(),h=pi(m),g=e=>{var n=QM(),r=O(n),o=e=>{F(e,ZM())};L(r,e=>{c()&&e(o)});var s=A(r,2);bs(O(s),t,`default`,{},null),w(s),w(n),yl(n,e=>D(d,e),()=>M(d)),j(()=>{R(n,`href`,i()),sc(n,1,tc(M(f))),R(n,`target`,a()?`_blank`:void 0),R(n,`rel`,a()?`noopener noreferrer`:void 0),R(n,`aria-disabled`,c()?`true`:void 0)}),F(e,n)},_=e=>{var n=$M(),r=O(n),i=e=>{F(e,ZM())};L(r,e=>{c()&&e(i)});var a=A(r,2);bs(O(a),t,`default`,{},null),w(a),w(n),yl(n,e=>D(d,e),()=>M(d)),j(()=>{R(n,`type`,u()),sc(n,1,tc(M(f))),n.disabled=l()||c()}),F(e,n)};return L(h,e=>{i()&&!l()?e(g):e(_,-1)}),F(e,m),dn(p)}customElements.define(`dmd-button`,Zl(eN,{variant:{},size:{},href:{},external:{},block:{},iconposition:{},loading:{},disabled:{},type:{}},[`default`],[],{mode:`open`}));var tN=2,nN=6,rN=/^H([1-6])$/;function iN(e){let t=rN.exec(e.tagName.toUpperCase());return t?Number(t[1]):0}function aN(e){return iN(e)>0||e.textContent===void 0&&e.childElementCount===void 0?!1:(e.textContent??``).trim()===``&&(e.childElementCount??0)===0}function oN(e){let t={},n=e.filter(e=>!aN(e)),r=n.find(e=>{let t=iN(e);return t>0&&t<=tN});if(r){t.title=r;let e=n[n.indexOf(r)+1];e&&iN(e)>iN(r)&&(t.description=e)}let i=n[n.length-1];return i&&i!==t.title&&i!==t.description&&(i.tagName.toUpperCase()===`BLOCKQUOTE`||iN(i)>=nN)&&(t.footer=i),t}var sN=P(`<div class="dmd-card-media"><img loading="lazy"/></div>`),cN=P(`<div class="dmd-card-icon"><span></span></div>`),lN=P(`<h3 class="dmd-card-title"> </h3>`),uN=P(`<h3 class="dmd-card-title"></h3>`),dN=P(`<span> </span>`),fN=P(`<div class="dmd-card-title-row"><!> <!></div>`),pN=P(`<p class="dmd-card-subtitle"> </p>`),mN=P(`<p class="dmd-card-subtitle"></p>`),hN=P(`<div class="dmd-card-header"><!> <div class="dmd-card-header-text"><!> <!></div></div>`),gN=P(`<div class="dmd-card-footer"> </div>`),_N=P(`<div class="dmd-card-footer"></div>`),vN=P(`<div><!> <!> <div class="dmd-card-body"><!> <!></div> <!></div>`),yN=P(`<a class="dmd-card-link"><!></a>`),bN=P(`<div style="display: contents;"><!></div>`);function xN(e,t){un(t,!0);let n=e=>{var n=vN(),r=O(n),i=e=>{var t=sN(),n=k(t);j(()=>{R(t,`aria-hidden`,p()?void 0:`true`),R(n,`src`,f()),R(n,`alt`,p()||``)}),F(e,t)};L(r,e=>{f()&&e(i)});var a=A(r,2),o=e=>{var t=hN(),n=O(t),r=e=>{var t=cN(),n=O(t);ys(n,d,!0),w(n),w(t),F(e,t)};L(n,e=>{d()&&e(r)});var i=A(n,2),a=O(i),o=e=>{var t=fN(),n=O(t),r=e=>{var t=lN(),n=k(t,!0);j(()=>I(n,s())),F(e,t)},i=e=>{var t=uN();ys(t,()=>M(y),!0),w(t),F(e,t)};L(n,e=>{s()?e(r):M(y)&&e(i,1)});var a=A(n,2),o=e=>{var t=dN(),n=k(t,!0);j(()=>{sc(t,1,`dmd-badge dmd-badge-${h()??``}`),I(n,m())}),F(e,t)};L(a,e=>{m()&&e(o)}),w(t),F(e,t)};L(a,e=>{(s()||M(y)||m())&&e(o)});var l=A(a,2),u=e=>{var t=pN(),n=k(t,!0);j(()=>I(n,c())),F(e,t)},f=e=>{var t=mN();ys(t,()=>M(b),!0),w(t),F(e,t)};L(l,e=>{c()?e(u):M(b)&&e(f,1)}),w(i),w(t),F(e,t)};L(a,e=>{M(se)&&e(o)});var l=A(a,2),u=O(l),_=e=>{var t=Mo();ys(pi(t),()=>M(ne)),F(e,t)};L(u,e=>{M(ne)&&e(_)}),bs(A(u,2),t,`default`,{onslotchange:ie},null),w(l),yl(l,e=>D(ee,e),()=>M(ee));var S=A(l,2),te=e=>{var t=gN(),n=k(t,!0);j(()=>I(n,g())),F(e,t)},re=e=>{var t=_N();ys(t,()=>M(x),!0),w(t),F(e,t)};L(S,e=>{g()?e(te):M(x)&&e(re,1)}),w(n),j(()=>{sc(n,1,`dmd-card${M(ae)??``}${v()?` dmd-card-shadow`:` dmd-card-flat`}`),lc(n,M(oe)||void 0)}),F(e,n)},r=new Set([`blue`,`green`,`violet`,`amber`,`red`,`neutral`]),i=new Map;function a(e){let t=e.trim();return!t||t.includes(`
|
|
7621
|
-
`)||t.includes(`\r`)||/^<[a-z0-9-]+[\s>]/i.test(t)||/^(#{1,6}\s|[-*+]\s|\d+\.\s|>\s|`{3,})/.test(t)?!1:!!(/^https?:\/\//i.test(t)||/\.(md|mdx|html)$/i.test(t)&&(t.includes(`/`)||t.includes(`.`)||!t.includes(` `)))}function o(e){if(typeof window>`u`)return;let t=e.trim(),n=[t,t.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``),t.replace(/^\.?\//,``)],r=window.__DOCMEDOWN_DATA__?.docs;if(r&&typeof r==`object`){for(let e of n)if(r[e]!==void 0)return r[e]}let i=window.__DOCMEDOWN_DOCS__;if(i&&typeof i==`object`){for(let e of n)if(i[e]!==void 0)return i[e]}let a=document.getElementById(`dmd-docs`);if(a?.textContent)try{let e=JSON.parse(a.textContent);for(let t of n)if(e[t]!==void 0)return e[t]}catch{}}let s=z(t,`title`,7,``),c=z(t,`description`,7,``),l=z(t,`content`,7,``),u=z(t,`href`,7,``),d=z(t,`icon`,7,``),f=z(t,`image`,7,``),p=z(t,`imagealt`,7,``),m=z(t,`badge`,7,``),h=z(t,`badgetype`,7,`info`),g=z(t,`footer`,7,``),_=z(t,`color`,7,``),v=z(t,`shadow`,7,!0),y=E(``),b=E(``),x=E(``),S=E(void 0),ee=E(void 0);function te(e){let t=e?.trim()||``;if(!t)return``;if(!a(t)){let e=tb(t);return!s()&&!M(y)&&e.frontmatter?.title&&D(y,String(e.frontmatter.title),!0),!c()&&!M(b)&&e.frontmatter?.description&&D(b,String(e.frontmatter.description),!0),e.html}let n=i.get(t);if(n!==void 0){let e=tb(n);return!s()&&!M(y)&&e.frontmatter?.title&&D(y,String(e.frontmatter.title),!0),!c()&&!M(b)&&e.frontmatter?.description&&D(b,String(e.frontmatter.description),!0),e.html}let r=o(t);if(r!==void 0){i.set(t,r);let e=tb(r);return!s()&&!M(y)&&e.frontmatter?.title&&D(y,String(e.frontmatter.title),!0),!c()&&!M(b)&&e.frontmatter?.description&&D(b,String(e.frontmatter.description),!0),e.html}return``}let ne=E(``);Oi(()=>{let e=l()?.trim()||``;if(!e){D(ne,``);return}let t=te(e);if(t){D(ne,t,!0);return}if(typeof window>`u`)return;let n=!0;return fetch(e).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.text()}).then(t=>{if(!n)return;i.set(e,t);let r=tb(t);!s()&&!M(y)&&r.frontmatter?.title&&D(y,String(r.frontmatter.title),!0),!c()&&!M(b)&&r.frontmatter?.description&&D(b,String(r.frontmatter.description),!0),D(ne,r.html,!0)}).catch(t=>{n&&(console.warn(`[DocMeDown] Failed to fetch card content from "${e}":`,t),D(ne,`<p class="dmd-card-error">Failed to load content: <code>${e}</code></p>`))}),()=>{n=!1}});function re(){if(!M(S))return null;let e=M(S).getRootNode();return e instanceof ShadowRoot?e.host:M(S).parentElement}function ie(){let e=re();if(!e)return;let t=oN(Array.from(e.children)),n=!s()&&!M(y),r=!c()&&!M(b);n&&t.title&&(D(y,t.title.innerHTML,!0),t.title.remove(),r&&t.description&&(D(b,t.description.innerHTML,!0),t.description.remove())),!g()&&!M(x)&&t.footer&&(D(x,t.footer.innerHTML,!0),t.footer.remove())}ru(()=>{zM(M(S)),ie();let e=re();e&&(e.cloneCard=()=>{let t=e.cloneNode(!0);return t._autoTitle=M(y),t._autoDescription=M(b),t._autoFooter=M(x),t},e._autoTitle&&D(y,e._autoTitle,!0),e._autoDescription&&D(b,e._autoDescription,!0),e._autoFooter&&D(x,e._autoFooter,!0))});let ae=lr(()=>_()?r.has(_())?` dmd-card-${_()}`:` dmd-card-accent`:``),oe=lr(()=>_()&&!r.has(_())?`--dmd-card-accent: ${_()};`:``),se=lr(()=>!!(s()||M(y)||m()||d()||c()||M(b)));var ce={get title(){return s()},set title(e=``){s(e),T()},get description(){return c()},set description(e=``){c(e),T()},get content(){return l()},set content(e=``){l(e),T()},get href(){return u()},set href(e=``){u(e),T()},get icon(){return d()},set icon(e=``){d(e),T()},get image(){return f()},set image(e=``){f(e),T()},get imagealt(){return p()},set imagealt(e=``){p(e),T()},get badge(){return m()},set badge(e=``){m(e),T()},get badgetype(){return h()},set badgetype(e=`info`){h(e),T()},get footer(){return g()},set footer(e=``){g(e),T()},get color(){return _()},set color(e=``){_(e),T()},get shadow(){return v()},set shadow(e=!0){v(e),T()}},le=bN(),ue=O(le),de=e=>{var t=yN(),r=O(t);n(r),w(t),j(()=>R(t,`href`,u())),F(e,t)},fe=e=>{n(e)};return L(ue,e=>{u()?e(de):e(fe,-1)}),w(le),yl(le,e=>D(S,e),()=>M(S)),F(e,le),dn(ce)}customElements.define(`dmd-card`,Zl(xN,{title:{},description:{},content:{},href:{},icon:{},image:{},imagealt:{},badge:{},badgetype:{},footer:{},color:{},shadow:{}},[`default`],[],{mode:`open`}));function SN(e,t){let n=typeof e==`number`&&Number.isFinite(e)?Math.floor(e):t;return n<1?1:n>4?4:n}function CN(e,t){let n=SN(e,2);if(!Number.isFinite(t)||t<=0)return n;let r=Math.floor((t+16)/276);return r<1?1:Math.min(n,r)}function wN(e,t,n){let r=Math.max(0,Math.floor(e)),i=Math.max(1,Math.floor(t)),a=Math.max(1,r-i+1),o=Number.isFinite(n)?Math.floor(n):0,s=Math.min(a-1,Math.max(0,o)),c=[];for(let e=0;e<Math.min(i,r);e++)c.push(s+e);return{positions:a,index:s,indices:c}}var TN=P(`<button type="button" role="tab"></button>`),EN=P(`<section aria-roledescription="carousel" tabindex="-1"><div class="dmd-carousel-viewport"><div class="dmd-carousel-track"><!></div></div> <div class="dmd-sr-only" aria-live="polite"> </div> <div class="dmd-carousel-controls"><button type="button" class="dmd-carousel-btn" aria-label="Previous cards"><span aria-hidden="true">‹</span></button> <div class="dmd-carousel-dots" role="tablist" aria-label="Choose card"></div> <button type="button" class="dmd-carousel-btn" aria-label="Next cards"><span aria-hidden="true">›</span></button></div></section>`),DN=P(`<div><!></div>`),ON=P(`<div style="display: contents;"><!></div>`);function kN(e,t){un(t,!0);let n=z(t,`cols`,7,2),r=z(t,`carouselcols`,7,0),i=E(void 0),a=E(void 0),o=E(0),s=E(2),c=E(0),l=[],u=[],d=``,f=0,p=null,m=null,h=0,g=E(void 0),_=null;function v(){if(!M(g))return;let e=M(g).querySelectorAll(`.dmd-carousel-slide`);if(!(e.length===M(o)&&M(o)>0)){e.forEach(e=>e.remove());for(let e=0;e<M(o);e++){let t=document.createElement(`div`);t.className=`dmd-carousel-slide`;let n=document.createElement(`slot`);n.name=`dmd-carousel-${e}`,t.appendChild(n),M(g).appendChild(t)}}}let y=!1,b=lr(()=>SN(Number(n())||2,2)),x=lr(()=>SN(Number(r())||Number(n())||2,2)),S=lr(()=>M(o)>M(b)),ee=lr(()=>wN(M(o),M(s),M(c)).positions),te=lr(()=>{let e=wN(M(o),M(s),M(c)).indices.map(e=>e+1);return e.length===0?`no cards`:e.length===1?`card ${e[0]}`:`cards ${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`});function ne(){if(!M(i))return null;let e=M(i).getRootNode();return e instanceof ShadowRoot?e.host:M(i).parentElement}function re(){let e=ne();return e?Array.from(e.children).filter(e=>e instanceof HTMLElement):[]}function ie(){let e=(M(g)||M(i)?.getRootNode())?.querySelectorAll(`.dmd-carousel-slide`);if(!e||e.length===0||!M(a))return;let t=`${e.length}:${M(s)}:${M(a).clientWidth}`;if(t===d&&u.length>0&&(e.length<=1||u[1]>0))return;let n=[...e].slice(0,M(o)).map(e=>e.offsetLeft);if(n.length>1&&n[1]===0){h||=requestAnimationFrame(()=>{h=0,ie()});return}d=t,u=n}function ae(){if(!M(a))return;p?.stop(),p=null,m=null;let e=CN(M(x),M(a).clientWidth);M(s)!==e&&D(s,e,!0),M(S)&&v(),ie(),_&&M(a)&&!y&&(_.observe(M(a)),y=!0)}function oe(e,t=`smooth`){if(!M(a))return;u.length===0&&ie();let n=u[e];if(n==null)return;p?.stop(),p=null,m=null,D(c,e,!0);let r=u[0]||0,i=Math.max(0,n-r);if(tx()||t===`instant`||t===`auto`){M(a).scrollLeft=i;return}m=e;let o=ax(M(a),i,{duration:320});p=o,o.finished.then(()=>{p===o&&(p=null,m=null,le())})}function se(){oe(Math.max(0,M(c)-1))}function ce(){oe(Math.min(M(ee)-1,M(c)+1))}function le(){f||=requestAnimationFrame(()=>{if(f=0,!M(a)||m!==null||(u.length===0&&ie(),u.length===0))return;let e=u[0]||0,t=M(a).scrollLeft,n=0,r=1/0;for(let i=0;i<Math.min(M(ee),u.length);i++){let a=Math.max(0,u[i]-e),o=Math.abs(a-t);o<r&&(r=o,n=i)}n!==M(c)&&D(c,n,!0)})}function ue(e){e.key===`ArrowLeft`?(e.preventDefault(),se()):e.key===`ArrowRight`&&(e.preventDefault(),ce())}function de(e){if(e.target.name)return;let t=re();if(t.length===0)return;let n=t.length===l.length&&t.every((e,t)=>e===l[t]);if(l=t,D(o,t.length,!0),n||(p?.stop(),p=null,m=null,d=``,u=[]),!M(S)){l.forEach(e=>e.removeAttribute(`slot`)),D(s,M(b),!0);return}l.forEach((e,t)=>e.setAttribute(`slot`,`dmd-carousel-${t}`)),ae()}Oi(()=>{if(l.length===0){let e=re();e.length>0&&(l=e,D(o,e.length,!0))}if(M(S)){if(M(g)&&M(a)&&M(o)>0){l.forEach((e,t)=>e.setAttribute(`slot`,`dmd-carousel-${t}`));let e=CN(M(x),M(a).clientWidth);M(s)!==e&&D(s,e,!0),v(),ie(),_&&!y&&(_.observe(M(a)),y=!0)}}else l.forEach(e=>e.removeAttribute(`slot`)),_&&y&&(_.disconnect(),y=!1)}),ru(()=>{zM(M(i));let e=ne();e&&e.addEventListener(`keydown`,ue),typeof ResizeObserver<`u`&&(_=new ResizeObserver(()=>ae()),M(a)&&M(S)&&!y&&(_.observe(M(a)),y=!0))}),iu(()=>{p?.stop(),h&&cancelAnimationFrame(h);let e=ne();e&&e.removeEventListener(`keydown`,ue),_&&_.disconnect(),f&&cancelAnimationFrame(f)});var fe={get cols(){return n()},set cols(e=2){n(e),T()},get carouselcols(){return r()},set carouselcols(e=0){r(e),T()}},pe=ON(),me=O(pe),he=e=>{var n=EN(),r=O(n),i=O(r);bs(O(i),t,`default`,{onslotchange:de,style:`display: contents;`},null),w(i),yl(i,e=>D(g,e),()=>M(g)),w(r),yl(r,e=>D(a,e),()=>M(a));var l=A(r,2),u=k(l),d=A(l,2),f=O(d),p=A(f,2);ps(p,21,()=>Array.from({length:M(ee)}),ls,(e,t,n)=>{var r=TN();R(r,`aria-label`,`Go to card ${n+1}`),j(()=>{sc(r,1,`dmd-carousel-dot${n===M(c)?` active`:``}`),R(r,`aria-selected`,n===M(c))}),N(`click`,r,()=>oe(n)),F(e,r)}),w(p);var m=A(p,2);w(d),w(n),j(()=>{sc(n,1,`dmd-card-carousel dmd-card-grid-${M(b)??``}`),R(n,`data-per-view`,M(s)),R(n,`aria-label`,`Card carousel, ${M(o)??``} cards`),lc(i,`--dmd-carousel-per-view: ${M(s)??``};`),I(u,`Showing ${M(te)??``} of ${M(o)??``}`),f.disabled=M(c)<=0,m.disabled=M(c)>=M(ee)-1}),fo(`scroll`,r,le),N(`click`,f,se),N(`click`,m,ce),F(e,n)},ge=e=>{var n=DN();bs(O(n),t,`default`,{onslotchange:de},null),w(n),j(()=>sc(n,1,`dmd-card-grid dmd-card-grid-${M(b)??``}`)),F(e,n)};return L(me,e=>{M(S)?e(he):e(ge,-1)}),w(pe),yl(pe,e=>D(i,e),()=>M(i)),F(e,pe),dn(fe)}po([`click`]),customElements.define(`dmd-card-grid`,Zl(kN,{cols:{},carouselcols:{}},[`default`],[],{mode:`open`}));var AN=P(`<div><!></div>`);function jN(e,t){un(t,!0);let n=z(t,`cols`,7,2),r=z(t,`type`,7,`normal`),i=E(void 0),a=lr(()=>{if(typeof n()==`number`)return Math.min(4,Math.max(1,n()));let e=Number.parseInt(String(n()).replace(/[{}'"\s]/g,``),10);return Number.isFinite(e)?Math.min(4,Math.max(1,e)):2});function o(){if(!M(i))return null;let e=M(i).getRootNode();return e instanceof ShadowRoot?e.host:M(i).parentElement}function s(){let e=o();if(e)for(let t of Array.from(e.children)){let e=t.tagName.toLowerCase();(e===`dmd-column`||e===`dmd-item`)&&t.setAttribute(`data-col-type`,r()||`normal`)}}Oi(()=>{r()&&s()}),ru(()=>{zM(M(i)),queueMicrotask(()=>s())});var c={get cols(){return n()},set cols(e=2){n(e),T()},get type(){return r()},set type(e=`normal`){r(e),T()}},l=AN();return bs(O(l),t,`default`,{onslotchange:s},null),w(l),yl(l,e=>D(i,e),()=>M(i)),j(()=>sc(l,1,`dmd-columns dmd-columns-${M(a)??``} dmd-columns-${r()??``}`)),F(e,l),dn(c)}customElements.define(`dmd-columns`,Zl(jN,{cols:{},type:{}},[`default`],[],{mode:`open`}));var MN=P(`<div><!></div>`);function NN(e,t){un(t,!0);let n=z(t,`colType`,7,``),r=E(void 0);ru(()=>{zM(M(r))});var i={get colType(){return n()},set colType(e=``){n(e),T()}},a=MN();return bs(O(a),t,`default`,{},null),w(a),yl(a,e=>D(r,e),()=>M(r)),j(()=>sc(a,1,`dmd-column${n()?` dmd-column-${n()}`:``}`)),F(e,a),dn(i)}customElements.define(`dmd-column`,Zl(NN,{colType:{}},[`default`],[],{mode:`open`}));var PN=P(`<div style="display: contents;"><details class="dmd-details"><summary class="dmd-details-summary"> </summary> <div class="dmd-details-body"><!></div></details></div>`);function FN(e,t){un(t,!0);let n=z(t,`summary`,7,``),r=z(t,`open`,7,!1),i=E(void 0);ru(()=>{zM(M(i))});var a={get summary(){return n()},set summary(e=``){n(e),T()},get open(){return r()},set open(e=!1){r(e),T()}},o=PN(),s=O(o),c=O(s),l=k(c,!0),u=A(c,2);return bs(O(u),t,`default`,{},null),w(u),w(s),w(o),yl(o,e=>D(i,e),()=>M(i)),j(()=>{s.open=r(),I(l,n())}),F(e,o),dn(a)}customElements.define(`dmd-details`,Zl(FN,{summary:{},open:{}},[`default`],[],{mode:`open`}));var IN=P(`<div class="dmd-timeline-subtitle"> </div>`),LN=P(`<div class="dmd-timeline-item"><div class="dmd-timeline-dot" aria-hidden="true"></div> <div class="dmd-timeline-content"><div class="dmd-timeline-title"> </div> <!> <div class="dmd-timeline-body"><!></div></div></div>`),RN=P(`<div><button type="button" class="dmd-accordion-trigger"><span class="dmd-accordion-label"> </span> <span class="dmd-accordion-chevron" aria-hidden="true">▾</span></button> <div><div class="dmd-accordion-content"><!></div></div></div>`),zN=P(`<div class="dmd-step-item"><div class="dmd-step-marker"> </div> <div class="dmd-step-content"><h4 class="dmd-step-title"> </h4> <div class="dmd-step-body"><!></div></div></div>`),BN=P(`<div><!></div>`),VN=P(`<div class="dmd-card-icon"><span></span></div>`),HN=P(`<h3 class="dmd-card-title"> </h3>`),UN=P(`<p class="dmd-card-subtitle"> </p>`),WN=P(`<div class="dmd-card-header"><!> <div class="dmd-card-header-text"><!> <!></div></div>`),GN=P(`<div class="dmd-card dmd-card-shadow"><!> <div class="dmd-card-body"><!></div></div>`),KN=P(`<div class="dmd-tab-content"><!></div>`),qN=P(`<li><!></li>`),JN=P(`<div style="display: contents;"><!></div>`);function YN(e,t){un(t,!0);let n=z(t,`title`,7,``),r=z(t,`subtitle`,7,``),i=z(t,`description`,7,``),a=z(t,`icon`,7,``),o=z(t,`label`,7,``),s=z(t,`value`,7,``),c=z(t,`step`,7,``),l=z(t,`defaultopen`,7,!1),u=z(t,`colType`,7,``),d=E(void 0),f=E(!1),p=E(`none`),m=E(``);function h(){if(!M(d))return null;let e=M(d).getRootNode();return e instanceof ShadowRoot?e.host:M(d).parentElement}function g(){let e=h();switch(e?.parentElement?.tagName?.toLowerCase()){case`dmd-timeline`:D(p,`timeline`);break;case`dmd-accordion`:D(p,`accordion`);break;case`dmd-columns`:D(p,`columns`);break;case`dmd-card-grid`:D(p,`cardgrid`);break;case`dmd-tabs`:D(p,`tabs`);break;case`dmd-steps`:{D(p,`steps`);let t=Array.from(e.parentElement.children).filter(e=>e.tagName.toLowerCase()===`dmd-item`||e.tagName.toLowerCase()===`dmd-step`);D(m,String(t.indexOf(e)+1),!0);break}default:D(p,`none`)}}function _(){D(f,!M(f))}ru(()=>{zM(M(d)),D(f,!!l(),!0),g()});var v={get title(){return n()},set title(e=``){n(e),T()},get subtitle(){return r()},set subtitle(e=``){r(e),T()},get description(){return i()},set description(e=``){i(e),T()},get icon(){return a()},set icon(e=``){a(e),T()},get label(){return o()},set label(e=``){o(e),T()},get value(){return s()},set value(e=``){s(e),T()},get step(){return c()},set step(e=``){c(e),T()},get defaultopen(){return l()},set defaultopen(e=!1){l(e),T()},get colType(){return u()},set colType(e=``){u(e),T()}},y=JN(),b=O(y),x=e=>{var i=LN(),a=A(O(i),2),o=O(a),s=k(o,!0),c=A(o,2),l=e=>{var t=IN(),n=k(t,!0);j(()=>I(n,r())),F(e,t)};L(c,e=>{r()&&e(l)});var u=A(c,2);bs(O(u),t,`default`,{},null),w(u),w(a),w(i),j(()=>I(s,n())),F(e,i)},S=e=>{var r=RN(),i=O(r),a=k(O(i),!0);it(2),w(i);var o=A(i,2),s=O(o);bs(O(s),t,`default`,{},null),w(s),w(o),w(r),j(()=>{sc(r,1,`dmd-accordion-item${M(f)?` open`:``}`),R(i,`aria-expanded`,M(f)),I(a,n()),sc(o,1,`dmd-accordion-panel${M(f)?` open`:``}`)}),N(`click`,i,_),F(e,r)},ee=e=>{var r=zN(),i=O(r),a=k(i,!0),o=A(i,2),s=O(o),l=k(s,!0),u=A(s,2);bs(O(u),t,`default`,{},null),w(u),w(o),w(r),j(()=>{I(a,c()||M(m)),I(l,n())}),F(e,r)},te=e=>{var n=BN();bs(O(n),t,`default`,{},null),w(n),j(()=>sc(n,1,`dmd-column${u()&&u()!==`normal`?` dmd-column-${u()}`:``}`)),F(e,n)},ne=e=>{var r=GN(),o=O(r),s=e=>{var t=WN(),r=O(t),o=e=>{var t=VN(),n=O(t);ys(n,a,!0),w(n),w(t),F(e,t)};L(r,e=>{a()&&e(o)});var s=A(r,2),c=O(s),l=e=>{var t=HN(),r=k(t,!0);j(()=>I(r,n())),F(e,t)};L(c,e=>{n()&&e(l)});var u=A(c,2),d=e=>{var t=UN(),n=k(t,!0);j(()=>I(n,i())),F(e,t)};L(u,e=>{i()&&e(d)}),w(s),w(t),F(e,t)};L(o,e=>{(n()||a()||i())&&e(s)});var c=A(o,2);bs(O(c),t,`default`,{},null),w(c),w(r),F(e,r)},re=e=>{var n=KN();bs(O(n),t,`default`,{},null),w(n),F(e,n)},ie=e=>{var n=qN();bs(O(n),t,`default`,{},null),w(n),F(e,n)};return L(b,e=>{M(p)===`timeline`?e(x):M(p)===`accordion`?e(S,1):M(p)===`steps`?e(ee,2):M(p)===`columns`?e(te,3):M(p)===`cardgrid`?e(ne,4):M(p)===`tabs`?e(re,5):e(ie,-1)}),w(y),yl(y,e=>D(d,e),()=>M(d)),F(e,y),dn(v)}po([`click`]),customElements.define(`dmd-item`,Zl(YN,{title:{},subtitle:{},description:{},icon:{},label:{},value:{},step:{},defaultopen:{},colType:{}},[`default`],[],{mode:`open`}));var XN=P(`<kbd class="dmd-kbd"><!></kbd>`);function ZN(e,t){un(t,!0);let n=E(void 0);ru(()=>{zM(M(n))});var r=XN();bs(O(r),t,`default`,{},null),w(r),yl(r,e=>D(n,e),()=>M(n)),F(e,r),dn()}customElements.define(`dmd-kbd`,Zl(ZN,{},[`default`],[],{mode:`open`}));var QN=P(`<div class="dmd-step-item"><div class="dmd-step-marker"> </div> <div class="dmd-step-content"><h4 class="dmd-step-title"> </h4> <div class="dmd-step-body"><!></div></div></div>`);function $N(e,t){un(t,!0);let n=z(t,`title`,7,``),r=z(t,`step`,7,``),i=E(void 0),a=E(``);function o(){if(!M(i))return null;let e=M(i).getRootNode();return e instanceof ShadowRoot?e.host:M(i).parentElement}function s(){let e=Number(r());if(r()&&Number.isFinite(e)&&String(e)!==``){D(a,String(e),!0);return}let t=o(),n=t?.parentElement;if(!n){D(a,``);return}let i=Array.from(n.children).filter(e=>e.tagName.toLowerCase()===`dmd-step`);D(a,String(i.indexOf(t)+1),!0)}ru(()=>{zM(M(i)),Promise.resolve().then(()=>{s()})});var c={get title(){return n()},set title(e=``){n(e),T()},get step(){return r()},set step(e=``){r(e),T()}},l=QN(),u=O(l),d=k(u,!0),f=A(u,2),p=O(f),m=k(p,!0),h=A(p,2);return bs(O(h),t,`default`,{},null),w(h),w(f),w(l),yl(l,e=>D(i,e),()=>M(i)),j(()=>{I(d,M(a)),I(m,n())}),F(e,l),dn(c)}customElements.define(`dmd-step`,Zl($N,{title:{},step:{}},[`default`],[],{mode:`open`}));var eP=P(`<div class="dmd-steps"><!></div>`);function tP(e,t){un(t,!0);let n=E(void 0);ru(()=>{zM(M(n))});var r=eP();bs(O(r),t,`default`,{},null),w(r),yl(r,e=>D(n,e),()=>M(n)),F(e,r),dn()}customElements.define(`dmd-steps`,Zl(tP,{},[`default`],[],{mode:`open`}));var nP=P(`<div class="dmd-tab-content"><!></div>`);function rP(e,t){un(t,!0);let n=z(t,`label`,7,``),r=z(t,`value`,7,``),i=z(t,`icon`,7,``),a=E(void 0);ru(()=>{zM(M(a))});var o={get label(){return n()},set label(e=``){n(e),T()},get value(){return r()},set value(e=``){r(e),T()},get icon(){return i()},set icon(e=``){i(e),T()}},s=nP();return bs(O(s),t,`default`,{},null),w(s),yl(s,e=>D(a,e),()=>M(a)),F(e,s),dn(o)}customElements.define(`dmd-tab`,Zl(rP,{label:{},value:{},icon:{}},[`default`],[],{mode:`open`}));var iP=P(`<span class="dmd-tab-icon" aria-hidden="true"></span>`),aP=P(`<span class="dmd-tab-label"> </span>`),oP=P(`<button type="button" role="tab"><!> <!></button>`),sP=P(`<div><div class="dmd-tabs-header" role="tablist" tabindex="0" aria-label="Content tabs"><span class="dmd-tab-indicator" aria-hidden="true"></span> <!></div> <div class="dmd-tabs-body dmd-tab-panel" role="tabpanel"><!></div></div>`);function cP(e,t){un(t,!0);let n=z(t,`defaultindex`,7,0),r=z(t,`groupid`,7,``),i=z(t,`type`,7,``),a=z(t,`variant`,7,``),o=E(void 0),s=E(void 0),c=E(void 0),l=E(void 0),u=E(0),d=E($r([])),f=!1,p=`dmd${Math.random().toString(36).slice(2,10)}`,m=null,h=0,g=null,_=null,v=null;function y(){if(!M(o))return null;let e=M(o).getRootNode();return e instanceof ShadowRoot?e.host:M(o).parentElement}function b(){let e=y();return e?Array.from(e.children).filter(e=>{let t=e.tagName.toLowerCase();return t===`dmd-tab`||t===`dmd-item`}):[]}function x(){let e=b();if(e.length===0)return;if(D(d,e.map((e,t)=>({label:e.getAttribute(`label`)||``,value:e.getAttribute(`value`)||e.getAttribute(`label`)||String(t),icon:e.getAttribute(`icon`)||``})),!0),r()&&typeof localStorage<`u`)try{let e=localStorage.getItem(`dmd-tabs-${r()}`);if(e){let t=M(d).findIndex(t=>t.value===e||t.label===e);if(t!==-1){D(u,t,!0),S(),f=!0;return}}}catch{}let t=Number(n())||0;D(u,Math.max(0,Math.min(t,Math.max(0,M(d).length-1))),!0),S(),f=!0}function S(){g?.stop(),g=null,b().forEach((e,t)=>{if(t===M(u)){if(e.style.display=``,e.removeAttribute(`hidden`),f&&M(l)&&!tx()){let e=M(l),t=rx(e,{opacity:[0,1],transform:[`translate3d(0, 8px, 0)`,`translate3d(0, 0, 0)`]},{duration:.22,ease:[.16,1,.3,1]});g=t,t.then(()=>{g===t&&(g=null,e.style.removeProperty(`transform`),e.style.removeProperty(`opacity`))})}}else e.style.display=`none`,e.removeAttribute(`hidden`)}),ne()}function ee(){return M(s)?Array.from(M(s).querySelectorAll(`.dmd-tab-btn`)):[]}function te(){if(!M(s))return;let e=ee()[M(u)];if(!e||e.offsetWidth===0)return;let t=e.offsetLeft,n=e.offsetWidth,r=v;if((r?.x!==t||r.width!==n)&&(_?.stop(),v={x:t,width:n},M(s).style.setProperty(`--dmd-tab-ind-x`,`${t}px`),M(s).style.setProperty(`--dmd-tab-ind-w`,`${n}px`),r&&M(c)&&M(se)!==`postit`&&!tx())){let e=rx(M(c),{transform:[`translateX(${r.x-t}px) scaleX(${r.width/n})`,`translateX(0) scaleX(1)`]},{duration:.26,ease:[.16,1,.3,1]});_=e,e.then(()=>{_===e&&(_=null,M(c).style.removeProperty(`transform`))})}}function ne(){h||=requestAnimationFrame(()=>{h=0,te()})}function re(e,t=!1){if(e===M(u)||e<0||e>=M(d).length)return;D(u,e,!0),S(),te(),t&&ee()[e]?.focus();let n=ee()[e];if(n&&typeof n.scrollIntoView==`function`&&n.scrollIntoView({behavior:tx()?`auto`:`smooth`,block:`nearest`,inline:`nearest`}),r()){let t=M(d)[e];if(typeof localStorage<`u`)try{localStorage.setItem(`dmd-tabs-${r()}`,t.value||t.label)}catch{}window.dispatchEvent(new CustomEvent(`dmd-tabs-change`,{detail:{groupId:r(),value:t.value,label:t.label}}))}}function ie(e){let t=e;if(!t.detail||t.detail.groupId!==r())return;let n=M(d).findIndex(e=>e.value===t.detail.value||e.label===t.detail.label);n!==-1&&n!==M(u)&&(D(u,n,!0),S(),te())}function ae(e){let t=ee();t.length!==0&&(e.key===`ArrowRight`||e.key===`ArrowDown`?(e.preventDefault(),re((M(u)+1)%t.length,!0)):e.key===`ArrowLeft`||e.key===`ArrowUp`?(e.preventDefault(),re((M(u)-1+t.length)%t.length,!0)):e.key===`Home`?(e.preventDefault(),re(0,!0)):e.key===`End`&&(e.preventDefault(),re(t.length-1,!0)))}function oe(){x()}let se=lr(()=>a()||(i()===`underline`||i()===`pills`||i()===`postit`?i():`recessed`)),ce=lr(()=>`dmd-tabs dmd-tabs-wrapper dmd-tabs-${M(se)}${r()?` dmd-tabs-grouped`:``}`);ru(()=>{zM(M(o)),window.addEventListener(`dmd-tabs-change`,ie),typeof ResizeObserver<`u`&&(m=new ResizeObserver(()=>ne()),M(s)&&m.observe(M(s))),Promise.resolve().then(async()=>{x(),await Aa(),te(),requestAnimationFrame(()=>te())})}),iu(()=>{g?.stop(),_?.stop(),typeof window<`u`&&window.removeEventListener(`dmd-tabs-change`,ie),m&&m.disconnect(),h&&cancelAnimationFrame(h)});var le={get defaultindex(){return n()},set defaultindex(e=0){n(e),T()},get groupid(){return r()},set groupid(e=``){r(e),T()},get type(){return i()},set type(e=``){i(e),T()},get variant(){return a()},set variant(e=``){a(e),T()}},ue=sP(),de=O(ue),fe=O(de);yl(fe,e=>D(c,e),()=>M(c)),ps(A(fe,2),17,()=>M(d),ls,(e,t,n)=>{let r=lr(()=>n===M(u)),i=lr(()=>M(t).value||M(t).label||`Tab ${n+1}`),a=lr(()=>!!M(t).label);var o=oP(),s=O(o),c=e=>{var n=iP();ys(n,()=>M(t).icon,!0),w(n),F(e,n)};L(s,e=>{M(t).icon&&e(c)});var l=A(s,2),d=e=>{var n=aP(),r=k(n,!0);j(()=>I(r,M(t).label)),F(e,n)};L(l,e=>{M(a)&&e(d)}),w(o),j(()=>{R(o,`id`,`${p}-tab-${n}`),sc(o,1,`dmd-tab-btn${M(r)?` active`:``}${M(a)?``:` dmd-tab-btn-icon`}`),R(o,`aria-selected`,M(r)),R(o,`aria-controls`,`${p}-panel-${n}`),R(o,`aria-label`,M(a)?void 0:M(i)),R(o,`tabindex`,M(r)?0:-1)}),N(`click`,o,()=>re(n)),F(e,o)}),w(de),yl(de,e=>D(s,e),()=>M(s));var pe=A(de,2);return bs(O(pe),t,`default`,{onslotchange:oe},null),w(pe),yl(pe,e=>D(l,e),()=>M(l)),w(ue),yl(ue,e=>D(o,e),()=>M(o)),j(()=>{sc(ue,1,tc(M(ce))),R(pe,`id`,`${p}-panel-${M(u)??``}`),R(pe,`aria-labelledby`,`${p}-tab-${M(u)??``}`)}),N(`keydown`,de,ae),F(e,ue),dn(le)}po([`keydown`,`click`]),customElements.define(`dmd-tabs`,Zl(cP,{defaultindex:{},groupid:{},type:{},variant:{}},[`default`],[],{mode:`open`}));var lP=P(`<div class="dmd-timeline"><!></div>`);function uP(e,t){un(t,!0);let n=E(void 0);ru(()=>{zM(M(n))});var r=lP();bs(O(r),t,`default`,{},null),w(r),yl(r,e=>D(n,e),()=>M(n)),F(e,r),dn()}customElements.define(`dmd-timeline`,Zl(uP,{},[`default`],[],{mode:`open`}));var dP=P(`<div class="dmd-timeline-subtitle"> </div>`),fP=P(`<div class="dmd-timeline-item"><div class="dmd-timeline-dot" aria-hidden="true"></div> <div class="dmd-timeline-content"><div class="dmd-timeline-title"> </div> <!> <div class="dmd-timeline-body"><!></div></div></div>`);function pP(e,t){un(t,!0);let n=z(t,`title`,7,``),r=z(t,`subtitle`,7,``),i=E(void 0);ru(()=>{zM(M(i))});var a={get title(){return n()},set title(e=``){n(e),T()},get subtitle(){return r()},set subtitle(e=``){r(e),T()}},o=fP(),s=A(O(o),2),c=O(s),l=k(c,!0),u=A(c,2),d=e=>{var t=dP(),n=k(t,!0);j(()=>I(n,r())),F(e,t)};L(u,e=>{r()&&e(d)});var f=A(u,2);return bs(O(f),t,`default`,{},null),w(f),w(s),w(o),yl(o,e=>D(i,e),()=>M(i)),j(()=>I(l,n())),F(e,o),dn(a)}customElements.define(`dmd-timeline-item`,Zl(pP,{title:{},subtitle:{}},[`default`],[],{mode:`open`}));var mP={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,webp:`image/webp`,gif:`image/gif`,avif:`image/avif`,bmp:`image/bmp`,ico:`image/x-icon`,cur:`image/x-icon`,tif:`image/tiff`,tiff:`image/tiff`,apng:`image/apng`,svg:`image/svg+xml`,svgz:`image/svg+xml`,mp4:`video/mp4`,m4v:`video/mp4`,webm:`video/webm`,ogv:`video/ogg`,mov:`video/quicktime`,avi:`video/x-msvideo`,mkv:`video/x-matroska`,wmv:`video/x-ms-wmv`,flv:`video/x-flv`,mp3:`audio/mpeg`,wav:`audio/wav`,wave:`audio/wav`,ogg:`audio/ogg`,oga:`audio/ogg`,opus:`audio/opus`,aac:`audio/aac`,m4a:`audio/mp4`,flac:`audio/flac`,weba:`audio/webm`,wma:`audio/x-ms-wma`,mid:`audio/midi`,midi:`audio/midi`};function hP(e){if(!e)return``;let t=e.trim().split(`#`)[0].split(`?`)[0],n=t.lastIndexOf(`.`);return n===-1||n===t.length-1?``:t.slice(n+1).toLowerCase()}function gP(e,t){if(t?.trim()){let e=t.trim().toLowerCase();if(e.includes(`/`))return e;if(mP[e])return mP[e]}if(vP(e)){let t=yP(e);if(t)return t.mimeType}let n=hP(e);return n&&mP[n]?mP[n]:`application/octet-stream`}function _P(e,t){let n=(t||``).trim().toLowerCase();if(n===`vector`||n===`svg`||n.includes(`svg`))return`vector`;if(n===`image`||n.startsWith(`image/`))return n.includes(`svg`)?`vector`:`image`;if(n===`video`||n.startsWith(`video/`))return`video`;if(n===`audio`||n.startsWith(`audio/`))return`audio`;let r=gP(e,t);if(r===`image/svg+xml`)return`vector`;if(r.startsWith(`image/`))return`image`;if(r.startsWith(`video/`))return`video`;if(r.startsWith(`audio/`))return`audio`;let i=hP(e);return[`png`,`jpg`,`jpeg`,`webp`,`gif`,`avif`,`bmp`,`ico`,`tif`,`tiff`,`apng`].includes(i)?`image`:[`svg`,`svgz`].includes(i)?`vector`:[`mp4`,`m4v`,`webm`,`ogv`,`mov`,`avi`,`mkv`].includes(i)?`video`:[`mp3`,`wav`,`ogg`,`oga`,`opus`,`aac`,`m4a`,`flac`,`weba`].includes(i)?`audio`:`unknown`}function vP(e){return e?/^data:([a-zA-Z0-9!#$&^_.+-]+\/[a-zA-Z0-9!#$&^_.+-]+)?(?:;charset=[a-zA-Z0-9-]+)?(?:;base64)?,/i.test(e.trim()):!1}function yP(e){if(!e)return null;let t=/^data:([^;,]+)?(?:;charset=[^;,]+)?(;base64)?,(.*)$/is.exec(e.trim());return t?{mimeType:t[1]||`text/plain`,isBase64:!!t[2],data:t[3]}:null}var bP=To(`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>`),xP=To(`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle></svg>`),SP=To(`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>`),CP=P(`<div class="dmd-media-fallback" role="alert"><span class="dmd-media-fallback-icon" aria-hidden="true"><!></span> <div class="dmd-media-fallback-content"><span class="dmd-media-fallback-text"> </span> <!></div></div>`),wP=P(`<source/>`),TP=P(`<video class="dmd-media-video"><!> <!> <p> </p></video>`,2),EP=P(`<audio class="dmd-media-audio"><!> <!> <p> </p></audio>`),DP=P(`<div class="dmd-media-svg-host"></div>`),OP=P(`<img class="dmd-media-image" loading="lazy"/>`),kP=P(`<figcaption> </figcaption>`),AP=P(`<figure><div><!></div> <!></figure>`);function jP(e,t){un(t,!0);let n=z(t,`src`,7,``),r=z(t,`type`,7,``),i=z(t,`format`,7,``),a=z(t,`fallback`,7,``),o=z(t,`fallbacktext`,7,``),s=z(t,`fallbackText`,7,``),c=z(t,`poster`,7,``),l=z(t,`alt`,7,``),u=z(t,`title`,7,``),d=z(t,`width`,7,``),f=z(t,`height`,7,``),p=z(t,`maxwidth`,7,``),m=z(t,`maxWidth`,7,``),h=z(t,`maxheight`,7,``),g=z(t,`maxHeight`,7,``),_=z(t,`aspectratio`,7,``),v=z(t,`aspectRatio`,7,``),y=z(t,`fit`,7,``),b=z(t,`objectfit`,7,``),x=z(t,`objectFit`,7,``),S=z(t,`align`,7,`center`),ee=z(t,`rounded`,7,``),te=z(t,`radius`,7,``),ne=z(t,`shadow`,7,``),re=z(t,`border`,7,``),ie=z(t,`caption`,7,``),ae=z(t,`captionalign`,7,`center`),oe=z(t,`captionAlign`,7,`center`),se=z(t,`controls`,7,!0),ce=z(t,`autoplay`,7,!1),le=z(t,`loop`,7,!1),ue=z(t,`muted`,7,!1),de=z(t,`playsinline`,7,!0),fe=z(t,`preload`,7,`metadata`),pe=z(t,`embed`,7,``),me=z(t,`zoomable`,7,!1),he=z(t,`class`,7,``),ge=z(t,`style`,7,``),_e=E(void 0),ve=E(!1),ye=E(!1),be=E(null),xe=E(!1);function Se(e){if(typeof window>`u`||!e)return;let t=e.trim(),n=t.replace(/^\.?\//,``),r=[t,n,`./${n}`,`/${n}`],i=window.__DOCMEDOWN_DATA__?.media;if(i&&typeof i==`object`){for(let e of r)if(i[e])return i[e]}let a=document.getElementById(`dmd-media-store`);if(a?.textContent)try{let e=JSON.parse(a.textContent);for(let t of r)if(e[t])return e[t]}catch{}}let Ce=lr(()=>s()||o()),we=lr(()=>m()||p()),Te=lr(()=>g()||h()),Ee=lr(()=>v()||_()),De=lr(()=>y()||x()||b()),Oe=lr(()=>oe()===`center`?ae():oe()),ke=lr(()=>r()||i()),Ae=lr(()=>n()?Se(n())||n():``),je=lr(()=>{if(c())return Se(c())||c()}),Me=lr(()=>{if(a())return Se(a())||a()}),Ne=E(``);Oi(()=>{D(Ne,M(Ae),!0),D(ve,!1),D(ye,!1),D(be,null)});let Pe=lr(()=>M(Ne)?_P(M(Ne),M(ke)):`unknown`),Fe=lr(()=>M(Ne)?gP(M(Ne),M(ke)):``);Oi(()=>{if(pe()!==`inline`&&pe()!==`svg`&&pe()!==!0||M(Pe)!==`vector`||!M(Ne)){D(be,null);return}if(M(Ne).trim().startsWith(`<svg`))D(be,M(Ne).trim(),!0);else if(vP(M(Ne))){let e=yP(M(Ne));if(e)try{e.isBase64?D(be,atob(e.data),!0):D(be,decodeURIComponent(e.data),!0)}catch{D(be,null)}}}),ru(()=>{zM(M(_e))});function Ie(e){if(e==null||e===``)return;let t=String(e).trim();if(t)return/^\d+(\.\d+)?$/.test(t)?`${t}px`:t}function Le(){!M(ye)&&M(Me)&&M(Me)!==M(Ne)?(D(ye,!0),D(Ne,M(Me),!0)):D(ve,!0)}function Re(){!me()||M(Pe)!==`image`||D(xe,!M(xe))}let ze=lr(()=>{let e=[],t=Ie(d()),n=Ie(f()),r=Ie(M(we)),i=Ie(M(Te));return t&&e.push(`width: ${t};`),n&&e.push(`height: ${n};`),r&&e.push(`max-width: ${r};`),i&&e.push(`max-height: ${i};`),M(Ee)&&e.push(`aspect-ratio: ${M(Ee)};`),M(De)&&e.push(`object-fit: ${M(De)};`),e.join(` `)}),Be=lr(()=>{let e=[],t=Ie(d()),n=Ie(M(we));t&&t!==`auto`&&e.push(`width: ${t};`),n&&e.push(`max-width: ${n};`);let r=ee()===``?te():ee();return r===!0||r===`md`?e.push(`border-radius: var(--dmd-radius-md, 8px);`):r===`sm`?e.push(`border-radius: var(--dmd-radius-sm, 4px);`):r===`lg`?e.push(`border-radius: var(--dmd-radius-lg, 12px);`):r===`full`?e.push(`border-radius: 9999px;`):r===`none`||r===!1?e.push(`border-radius: 0;`):typeof r==`string`&&r.trim()&&e.push(`border-radius: ${Ie(r)};`),ne()===!0||ne()===`md`?e.push(`box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);`):ne()===`sm`?e.push(`box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);`):ne()===`lg`?e.push(`box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.06);`):typeof ne()==`string`&&ne()!==`none`&&ne()!==`false`&&ne().trim()&&e.push(`box-shadow: ${ne()};`),re()===!0||re()===`true`?e.push(`border: 1px solid var(--dmd-border, #e2e8f0);`):typeof re()==`string`&&re()!==`none`&&re()!==`false`&&re().trim()&&e.push(`border: ${re().includes(` `)?re():`1px solid ${re()}`};`),ge()&&e.push(ge()),e.join(` `)}),Ve=lr(()=>{let e=[],t=Ie(M(we));return t&&e.push(`max-width: ${t};`),S()===`center`?e.push(`margin-left: auto; margin-right: auto; text-align: center;`):S()===`left`||S()===`start`?e.push(`margin-left: 0; margin-right: auto; text-align: left;`):(S()===`right`||S()===`end`)&&e.push(`margin-left: auto; margin-right: 0; text-align: right;`),e.join(` `)});var He={get src(){return n()},set src(e=``){n(e),T()},get type(){return r()},set type(e=``){r(e),T()},get format(){return i()},set format(e=``){i(e),T()},get fallback(){return a()},set fallback(e=``){a(e),T()},get fallbacktext(){return o()},set fallbacktext(e=``){o(e),T()},get fallbackText(){return s()},set fallbackText(e=``){s(e),T()},get poster(){return c()},set poster(e=``){c(e),T()},get alt(){return l()},set alt(e=``){l(e),T()},get title(){return u()},set title(e=``){u(e),T()},get width(){return d()},set width(e=``){d(e),T()},get height(){return f()},set height(e=``){f(e),T()},get maxwidth(){return p()},set maxwidth(e=``){p(e),T()},get maxWidth(){return m()},set maxWidth(e=``){m(e),T()},get maxheight(){return h()},set maxheight(e=``){h(e),T()},get maxHeight(){return g()},set maxHeight(e=``){g(e),T()},get aspectratio(){return _()},set aspectratio(e=``){_(e),T()},get aspectRatio(){return v()},set aspectRatio(e=``){v(e),T()},get fit(){return y()},set fit(e=``){y(e),T()},get objectfit(){return b()},set objectfit(e=``){b(e),T()},get objectFit(){return x()},set objectFit(e=``){x(e),T()},get align(){return S()},set align(e=`center`){S(e),T()},get rounded(){return ee()},set rounded(e=``){ee(e),T()},get radius(){return te()},set radius(e=``){te(e),T()},get shadow(){return ne()},set shadow(e=``){ne(e),T()},get border(){return re()},set border(e=``){re(e),T()},get caption(){return ie()},set caption(e=``){ie(e),T()},get captionalign(){return ae()},set captionalign(e=`center`){ae(e),T()},get captionAlign(){return oe()},set captionAlign(e=`center`){oe(e),T()},get controls(){return se()},set controls(e=!0){se(e),T()},get autoplay(){return ce()},set autoplay(e=!1){ce(e),T()},get loop(){return le()},set loop(e=!1){le(e),T()},get muted(){return ue()},set muted(e=!1){ue(e),T()},get playsinline(){return de()},set playsinline(e=!0){de(e),T()},get preload(){return fe()},set preload(e=`metadata`){fe(e),T()},get embed(){return pe()},set embed(e=``){pe(e),T()},get zoomable(){return me()},set zoomable(e=!1){me(e),T()},get class(){return he()},set class(e=``){he(e),T()},get style(){return ge()},set style(e=``){ge(e),T()}},Ue=AP(),We=O(Ue),Ge=O(We),Ke=e=>{var n=CP(),r=O(n),i=O(r),o=e=>{F(e,bP())},s=e=>{F(e,xP())},c=e=>{F(e,SP())};L(i,e=>{M(Pe)===`video`?e(o):M(Pe)===`audio`?e(s,1):e(c,-1)}),w(r);var u=A(r,2),d=O(u),f=k(d,!0);bs(A(d,2),t,`default`,{},null),w(u),w(n),j(()=>I(f,M(Ce)||(typeof a()==`string`&&!M(Me)?a():``)||(l()?`Media unavailable: ${l()}`:`Media unavailable`))),F(e,n)},qe=e=>{var t=TP(),n=O(t),r=e=>{var t=wP();j(()=>{R(t,`src`,M(Ne)),R(t,`type`,M(Fe))}),F(e,t)};L(n,e=>{M(Fe)&&e(r)});var i=A(n,2),a=e=>{var t=wP();j(()=>R(t,`src`,M(Me))),F(e,t)};L(i,e=>{M(Me)&&!M(ye)&&e(a)});var o=k(A(i,2),!0);w(t),j(()=>{R(t,`src`,M(Ne)),R(t,`poster`,M(je)),t.controls=se(),t.autoplay=ce(),t.loop=le(),t.muted=ue(),t.playsInline=de(),R(t,`preload`,fe()),lc(t,M(ze)),I(o,M(Ce)||l()||`Your browser does not support HTML5 video.`)}),fo(`error`,t,Le),F(e,t)},Je=e=>{var t=EP(),n=O(t),r=e=>{var t=wP();j(()=>{R(t,`src`,M(Ne)),R(t,`type`,M(Fe))}),F(e,t)};L(n,e=>{M(Fe)&&e(r)});var i=A(n,2),a=e=>{var t=wP();j(()=>R(t,`src`,M(Me))),F(e,t)};L(i,e=>{M(Me)&&!M(ye)&&e(a)});var o=k(A(i,2),!0);w(t),j(()=>{R(t,`src`,M(Ne)),t.controls=se(),t.autoplay=ce(),t.loop=le(),t.muted=ue(),R(t,`preload`,fe()),lc(t,M(ze)),I(o,M(Ce)||l()||`Your browser does not support HTML5 audio.`)}),fo(`error`,t,Le),F(e,t)},Ye=e=>{var t=DP();ys(t,()=>M(be),!0),w(t),j(()=>lc(t,M(ze))),F(e,t)},Xe=e=>{var t=OP();j(()=>{R(t,`src`,M(Ne)),R(t,`alt`,l()),R(t,`title`,u()),lc(t,M(ze))}),fo(`error`,t,Le),lo(t),F(e,t)};L(Ge,e=>{M(ve)?e(Ke):M(Pe)===`video`?e(qe,1):M(Pe)===`audio`?e(Je,2):M(Pe)===`vector`&&M(be)?e(Ye,3):e(Xe,-1)}),w(We);var Ze=A(We,2),Qe=e=>{var t=kP(),n=k(t,!0);j(()=>{sc(t,1,`dmd-media-caption dmd-media-caption-${M(Oe)??``}`),I(n,ie())}),F(e,t)};return L(Ze,e=>{ie()&&e(Qe)}),w(Ue),yl(Ue,e=>D(_e,e),()=>M(_e)),j(()=>{sc(Ue,1,`dmd-media dmd-media-${M(Pe)??``} dmd-media-align-${S()??``} ${he()??``}`),lc(Ue,M(Ve)),sc(We,1,`dmd-media-wrapper${me()?` dmd-media-zoomable`:``}${M(xe)?` dmd-media-zoomed`:``}`),lc(We,M(Be)),R(We,`role`,me()?`button`:void 0),R(We,`tabindex`,me()?0:void 0)}),N(`click`,We,Re),N(`keydown`,We,e=>{me()&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Re())}),F(e,Ue),dn(He)}po([`click`,`keydown`]),customElements.define(`dmd-media`,Zl(jP,{src:{},type:{},format:{},fallback:{},fallbacktext:{},fallbackText:{},poster:{},alt:{},title:{},width:{},height:{},maxwidth:{},maxWidth:{},maxheight:{},maxHeight:{},aspectratio:{},aspectRatio:{},fit:{},objectfit:{},objectFit:{},align:{},rounded:{},radius:{},shadow:{},border:{},caption:{},captionalign:{},captionAlign:{},controls:{},autoplay:{},loop:{},muted:{},playsinline:{},preload:{},embed:{},zoomable:{},class:{},style:{}},[`default`],[],{mode:`open`})),typeof window<`u`&&(window.__DOCMEDOWN_SVELTE__={...tu,client:$l,internal:{client:$l}},window.__DOCMEDOWN_MOTION__=$b),typeof globalThis<`u`&&!globalThis.__DOCMEDOWN_SVELTE__&&(globalThis.__DOCMEDOWN_SVELTE__={...tu,client:$l,internal:{client:$l}},globalThis.__DOCMEDOWN_MOTION__=$b);for(let e of[`Tabs`,`Tab`,`Card`,`CardGrid`,`Badge`,`Steps`,`Step`,`Alert`,`Callout`,`Button`,`Kbd`,`Details`,`Accordion`,`AccordionItem`,`Columns`,`Column`,`Timeline`,`TimelineItem`,`Item`,`Media`])mC.getInstance().register(e,n.r(e));var MP=new WeakMap;async function NP(e={}){Jd(e.basePath||``),n.t(e.basePath||``);let t=null;if(typeof e.el==`string`?t=document.querySelector(e.el):e.el instanceof HTMLElement?t=e.el:(t=document.getElementById(`dmd-app`),t||(t=document.createElement(`div`),t.id=`dmd-app`,document.body.appendChild(t))),!t)return console.error(`[DocMeDown] Could not find or create mount container element`),null;let r=NM({...await FM(e.basePath||``),...e.config});rw.init({defaultMode:r.theme?.defaultMode,defaultFamily:r.theme?.family,defaultDensity:r.theme?.density,accentColor:r.theme?.accentColor,accentColorDark:r.theme?.accentColorDark}),await mC.getInstance().loadDmdDirectory(e.basePath||``),await Q.init(r,e.basePath||``),MP.get(t)?.destroy(),t.innerHTML=``;let i=Vo(yT,{target:t}),a={element:t,destroy:()=>{Ko(i),Q.destroy(),t?.dispatchEvent(new CustomEvent(`docmedown:destroyed`))}};return MP.set(t,a),t.dispatchEvent(new CustomEvent(`docmedown:ready`,{detail:a})),a}if(typeof window<`u`&&(window.DocMeDown={init:NP,theme:rw,motion:$b,registerComponent:(e,t,n)=>hC(e,t,n),registerComponents:e=>mC.getInstance().registerMultiple(e),registerLanguage:Wf},!window.__DOCMEDOWN_NO_AUTO_INIT__&&!document.querySelector(`script[data-docmedown-auto-init="false"]`))){let e=hx()?.base??``,t=()=>void NP({basePath:e});document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,t,{once:!0}):t()}exports.ComponentRegistry=mC,exports.StaticRouter=Cx,exports.animate=rx,exports.collapse=cx,exports.createElementBridge=dC,exports.createOfflineDownload=eC,exports.createReactBridge=uC,exports.createRouter=vx,exports.defineDmd=hC,exports.defineReactDmd=gC,exports.defineWebComponentDmd=_C,exports.detectComponentKind=pC,exports.dmdTag=n.r,exports.doc=Q,exports.docConfigSchema=DM,exports.docSearchConfigSchema=TM,exports.docThemeConfigSchema=wM,exports.downloadOfflineCopy=tC,exports.expand=sx,exports.fade=ux,exports.formatConfigIssues=kM,exports.getMotionOptions=nx,exports.getStaticRuntimeContext=hx,exports.initDocMeDown=NP,exports.isOfflineDocumentation=GS,exports.isStaticRuntime=_x,exports.joinStaticBase=yx,exports.loadDocConfig=FM,exports.motion=lx,Object.defineProperty(exports,"motionLib",{enumerable:!0,get:function(){return $b}}),exports.navLinkSchema=bM,exports.normalizeConfig=NM,exports.normalizedDocConfigSchema=OM,exports.parseDocConfig=AM,exports.prefersReducedMotion=tx,exports.registerWebComponent=fC,exports.remoteSourceSchema=SM,exports.sanitizeDownloadName=WS,exports.scale=fx,exports.sidebarItemSchema=CM,exports.slide=dx,exports.smoothScroll=ax,exports.socialLinkSchema=xM,exports.stagger=mx,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Pp}}),exports.theme=rw,exports.useMotion=px;
|
|
7620
|
+
:host { display: contents; }`,zM=null;function BM(){if(!zM&&typeof CSSStyleSheet<`u`)try{zM=new CSSStyleSheet,zM.replaceSync(RM)}catch{zM=null}return zM}function VM(e){if(!e||typeof ShadowRoot>`u`)return;let t=e.getRootNode();if(t instanceof ShadowRoot){let e=BM();e&&!t.adoptedStyleSheets.includes(e)&&(t.adoptedStyleSheets=[...t.adoptedStyleSheets,e])}}var HM=P(`<div class="dmd-accordion"><!></div>`);function UM(e,t){un(t,!0);let n=E(void 0);ru(()=>{VM(M(n))});var r=HM();bs(O(r),t,`default`,{},null),w(r),yl(r,e=>D(n,e),()=>M(n)),F(e,r),dn()}customElements.define(`dmd-accordion`,Zl(UM,{},[`default`],[],{mode:`open`}));var WM=P(`<div><button type="button" class="dmd-accordion-trigger"><span class="dmd-accordion-label"> </span> <span class="dmd-accordion-chevron" aria-hidden="true">▾</span></button> <div><div class="dmd-accordion-content"><!></div></div></div>`);function GM(e,t){un(t,!0);let n=z(t,`title`,7,``),r=z(t,`defaultopen`,7,!1),i=E(void 0),a=E(!1);function o(){D(a,!M(a))}ru(()=>{VM(M(i)),D(a,!!r(),!0)});var s={get title(){return n()},set title(e=``){n(e),T()},get defaultopen(){return r()},set defaultopen(e=!1){r(e),T()}},c=WM(),l=O(c),u=k(O(l),!0);it(2),w(l);var d=A(l,2),f=O(d);return bs(O(f),t,`default`,{},null),w(f),w(d),w(c),yl(c,e=>D(i,e),()=>M(i)),j(()=>{sc(c,1,`dmd-accordion-item${M(a)?` open`:``}`),R(l,`aria-expanded`,M(a)),I(u,n()),sc(d,1,`dmd-accordion-panel${M(a)?` open`:``}`)}),N(`click`,l,o),F(e,c),dn(s)}po([`click`]),customElements.define(`dmd-accordion-item`,Zl(GM,{title:{},defaultopen:{}},[`default`],[],{mode:`open`}));var KM=P(`<span class="dmd-alert-title"> </span>`),qM=P(`<div role="note"><div class="dmd-alert-head"><span class="dmd-alert-icon" aria-hidden="true"></span> <!></div> <div class="dmd-alert-body"><!></div></div>`);function JM(e,t){un(t,!0);let n={note:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,info:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>`,tip:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/></svg>`,important:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>`,warning:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>`,caution:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>`,success:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>`,danger:`<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`},r=z(t,`type`,7,`note`),i=z(t,`title`,7,``),a=E(void 0);ru(()=>{VM(M(a))});let o=lr(()=>n[r()]??n.note);var s={get type(){return r()},set type(e=`note`){r(e),T()},get title(){return i()},set title(e=``){i(e),T()}},c=qM(),l=O(c),u=O(l);ys(u,()=>M(o),!0),w(u);var d=A(u,2),f=e=>{var t=KM(),n=k(t,!0);j(()=>I(n,i())),F(e,t)};L(d,e=>{i()&&e(f)}),w(l);var p=A(l,2);return bs(O(p),t,`default`,{},null),w(p),w(c),yl(c,e=>D(a,e),()=>M(a)),j(()=>sc(c,1,`dmd-alert dmd-alert-${r()??``}`)),F(e,c),dn(s)}customElements.define(`dmd-alert`,Zl(JM,{type:{},title:{}},[`default`],[],{mode:`open`}));function YM(e,t){un(t,!0);let n=z(t,`type`,7,`note`),r=z(t,`title`,7,``);return JM(e,{get type(){return n()},get title(){return r()},children:(e,n)=>{var r=Mo();bs(pi(r),t,`default`,{},null),F(e,r)},$$slots:{default:!0}}),dn({get type(){return n()},set type(e=`note`){n(e),T()},get title(){return r()},set title(e=``){r(e),T()}})}customElements.define(`dmd-callout`,Zl(YM,{type:{},title:{}},[`default`],[],{mode:`open`}));var XM=P(`<span class="dmd-badge-pulse" aria-hidden="true"><span class="dmd-badge-pulse-ring"></span> <span class="dmd-badge-pulse-core"></span></span>`),ZM=P(`<span><!> <span class="dmd-badge-label"><!></span></span>`);function QM(e,t){un(t,!0);let n=z(t,`type`,7,`info`),r=z(t,`pill`,7,!1),i=z(t,`dot`,7,!1),a=E(void 0);ru(()=>{VM(M(a))});var o={get type(){return n()},set type(e=`info`){n(e),T()},get pill(){return r()},set pill(e=!1){r(e),T()},get dot(){return i()},set dot(e=!1){i(e),T()}},s=ZM(),c=O(s),l=e=>{F(e,XM())};L(c,e=>{i()&&e(l)});var u=A(c,2);return bs(O(u),t,`default`,{},null),w(u),w(s),yl(s,e=>D(a,e),()=>M(a)),j(()=>sc(s,1,`dmd-badge dmd-badge-${n()??``}${r()?` dmd-badge-pill`:``}${i()?` dmd-badge-dot`:``}`)),F(e,s),dn(o)}customElements.define(`dmd-badge`,Zl(QM,{type:{},pill:{},dot:{}},[`default`],[],{mode:`open`}));var $M=P(`<span class="dmd-btn-spinner" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M21 12a9 9 0 1 1-6.2-8.56" stroke-linecap="round"></path></svg></span>`),eN=P(`<a><!> <span class="dmd-btn-label"><!></span></a>`),tN=P(`<button><!> <span class="dmd-btn-label"><!></span></button>`);function nN(e,t){un(t,!0);let n=z(t,`variant`,7,`primary`),r=z(t,`size`,7,`md`),i=z(t,`href`,7,``),a=z(t,`external`,7,!1),o=z(t,`block`,7,!1),s=z(t,`iconposition`,7,`left`),c=z(t,`loading`,7,!1),l=z(t,`disabled`,7,!1),u=z(t,`type`,7,`button`),d=E(void 0);ru(()=>{VM(M(d))});let f=lr(()=>`dmd-btn dmd-btn-${n()} dmd-btn-${r()}${o()?` dmd-btn-block`:``}${c()?` dmd-btn-loading`:``}`);var p={get variant(){return n()},set variant(e=`primary`){n(e),T()},get size(){return r()},set size(e=`md`){r(e),T()},get href(){return i()},set href(e=``){i(e),T()},get external(){return a()},set external(e=!1){a(e),T()},get block(){return o()},set block(e=!1){o(e),T()},get iconposition(){return s()},set iconposition(e=`left`){s(e),T()},get loading(){return c()},set loading(e=!1){c(e),T()},get disabled(){return l()},set disabled(e=!1){l(e),T()},get type(){return u()},set type(e=`button`){u(e),T()}},m=Mo(),h=pi(m),g=e=>{var n=eN(),r=O(n),o=e=>{F(e,$M())};L(r,e=>{c()&&e(o)});var s=A(r,2);bs(O(s),t,`default`,{},null),w(s),w(n),yl(n,e=>D(d,e),()=>M(d)),j(()=>{R(n,`href`,i()),sc(n,1,tc(M(f))),R(n,`target`,a()?`_blank`:void 0),R(n,`rel`,a()?`noopener noreferrer`:void 0),R(n,`aria-disabled`,c()?`true`:void 0)}),F(e,n)},_=e=>{var n=tN(),r=O(n),i=e=>{F(e,$M())};L(r,e=>{c()&&e(i)});var a=A(r,2);bs(O(a),t,`default`,{},null),w(a),w(n),yl(n,e=>D(d,e),()=>M(d)),j(()=>{R(n,`type`,u()),sc(n,1,tc(M(f))),n.disabled=l()||c()}),F(e,n)};return L(h,e=>{i()&&!l()?e(g):e(_,-1)}),F(e,m),dn(p)}customElements.define(`dmd-button`,Zl(nN,{variant:{},size:{},href:{},external:{},block:{},iconposition:{},loading:{},disabled:{},type:{}},[`default`],[],{mode:`open`}));var rN=2,iN=6,aN=/^H([1-6])$/;function oN(e){let t=aN.exec(e.tagName.toUpperCase());return t?Number(t[1]):0}function sN(e){return oN(e)>0||e.textContent===void 0&&e.childElementCount===void 0?!1:(e.textContent??``).trim()===``&&(e.childElementCount??0)===0}function cN(e){let t={},n=e.filter(e=>!sN(e)),r=n.find(e=>{let t=oN(e);return t>0&&t<=rN});if(r){t.title=r;let e=n[n.indexOf(r)+1];e&&oN(e)>oN(r)&&(t.description=e)}let i=n[n.length-1];return i&&i!==t.title&&i!==t.description&&(i.tagName.toUpperCase()===`BLOCKQUOTE`||oN(i)>=iN)&&(t.footer=i),t}var lN=P(`<div class="dmd-card-media"><img loading="lazy"/></div>`),uN=P(`<div class="dmd-card-icon"><span></span></div>`),dN=P(`<h3 class="dmd-card-title"> </h3>`),fN=P(`<h3 class="dmd-card-title"></h3>`),pN=P(`<span> </span>`),mN=P(`<div class="dmd-card-title-row"><!> <!></div>`),hN=P(`<p class="dmd-card-subtitle"> </p>`),gN=P(`<p class="dmd-card-subtitle"></p>`),_N=P(`<div class="dmd-card-header"><!> <div class="dmd-card-header-text"><!> <!></div></div>`),vN=P(`<div class="dmd-card-footer"> </div>`),yN=P(`<div class="dmd-card-footer"></div>`),bN=P(`<div><!> <!> <div class="dmd-card-body"><!> <!></div> <!></div>`),xN=P(`<a class="dmd-card-link"><!></a>`),SN=P(`<div style="display: contents;"><!></div>`);function CN(e,t){un(t,!0);let n=e=>{var n=bN(),r=O(n),i=e=>{var t=lN(),n=k(t);j(()=>{R(t,`aria-hidden`,p()?void 0:`true`),R(n,`src`,f()),R(n,`alt`,p()||``)}),F(e,t)};L(r,e=>{f()&&e(i)});var a=A(r,2),o=e=>{var t=_N(),n=O(t),r=e=>{var t=uN(),n=O(t);ys(n,d,!0),w(n),w(t),F(e,t)};L(n,e=>{d()&&e(r)});var i=A(n,2),a=O(i),o=e=>{var t=mN(),n=O(t),r=e=>{var t=dN(),n=k(t,!0);j(()=>I(n,s())),F(e,t)},i=e=>{var t=fN();ys(t,()=>M(y),!0),w(t),F(e,t)};L(n,e=>{s()?e(r):M(y)&&e(i,1)});var a=A(n,2),o=e=>{var t=pN(),n=k(t,!0);j(()=>{sc(t,1,`dmd-badge dmd-badge-${h()??``}`),I(n,m())}),F(e,t)};L(a,e=>{m()&&e(o)}),w(t),F(e,t)};L(a,e=>{(s()||M(y)||m())&&e(o)});var l=A(a,2),u=e=>{var t=hN(),n=k(t,!0);j(()=>I(n,c())),F(e,t)},f=e=>{var t=gN();ys(t,()=>M(b),!0),w(t),F(e,t)};L(l,e=>{c()?e(u):M(b)&&e(f,1)}),w(i),w(t),F(e,t)};L(a,e=>{M(se)&&e(o)});var l=A(a,2),u=O(l),_=e=>{var t=Mo();ys(pi(t),()=>M(ne)),F(e,t)};L(u,e=>{M(ne)&&e(_)}),bs(A(u,2),t,`default`,{onslotchange:ie},null),w(l),yl(l,e=>D(ee,e),()=>M(ee));var S=A(l,2),te=e=>{var t=vN(),n=k(t,!0);j(()=>I(n,g())),F(e,t)},re=e=>{var t=yN();ys(t,()=>M(x),!0),w(t),F(e,t)};L(S,e=>{g()?e(te):M(x)&&e(re,1)}),w(n),j(()=>{sc(n,1,`dmd-card${M(ae)??``}${v()?` dmd-card-shadow`:` dmd-card-flat`}`),lc(n,M(oe)||void 0)}),F(e,n)},r=new Set([`blue`,`green`,`violet`,`amber`,`red`,`neutral`]),i=new Map;function a(e){let t=e.trim();return!t||t.includes(`
|
|
7621
|
+
`)||t.includes(`\r`)||/^<[a-z0-9-]+[\s>]/i.test(t)||/^(#{1,6}\s|[-*+]\s|\d+\.\s|>\s|`{3,})/.test(t)?!1:!!(/^https?:\/\//i.test(t)||/\.(md|mdx|html)$/i.test(t)&&(t.includes(`/`)||t.includes(`.`)||!t.includes(` `)))}function o(e){if(typeof window>`u`)return;let t=e.trim(),n=[t,t.replace(/^\.?\//,``).replace(/\.(md|mdx|html)$/i,``),t.replace(/^\.?\//,``)],r=window.__DOCMEDOWN_DATA__?.docs;if(r&&typeof r==`object`){for(let e of n)if(r[e]!==void 0)return r[e]}let i=window.__DOCMEDOWN_DOCS__;if(i&&typeof i==`object`){for(let e of n)if(i[e]!==void 0)return i[e]}let a=document.getElementById(`dmd-docs`);if(a?.textContent)try{let e=JSON.parse(a.textContent);for(let t of n)if(e[t]!==void 0)return e[t]}catch{}}let s=z(t,`title`,7,``),c=z(t,`description`,7,``),l=z(t,`content`,7,``),u=z(t,`href`,7,``),d=z(t,`icon`,7,``),f=z(t,`image`,7,``),p=z(t,`imagealt`,7,``),m=z(t,`badge`,7,``),h=z(t,`badgetype`,7,`info`),g=z(t,`footer`,7,``),_=z(t,`color`,7,``),v=z(t,`shadow`,7,!0),y=E(``),b=E(``),x=E(``),S=E(void 0),ee=E(void 0);function te(e){let t=e?.trim()||``;if(!t)return``;if(!a(t)){let e=nb(t);return!s()&&!M(y)&&e.frontmatter?.title&&D(y,String(e.frontmatter.title),!0),!c()&&!M(b)&&e.frontmatter?.description&&D(b,String(e.frontmatter.description),!0),e.html}let n=i.get(t);if(n!==void 0){let e=nb(n);return!s()&&!M(y)&&e.frontmatter?.title&&D(y,String(e.frontmatter.title),!0),!c()&&!M(b)&&e.frontmatter?.description&&D(b,String(e.frontmatter.description),!0),e.html}let r=o(t);if(r!==void 0){i.set(t,r);let e=nb(r);return!s()&&!M(y)&&e.frontmatter?.title&&D(y,String(e.frontmatter.title),!0),!c()&&!M(b)&&e.frontmatter?.description&&D(b,String(e.frontmatter.description),!0),e.html}return``}let ne=E(``);Oi(()=>{let e=l()?.trim()||``;if(!e){D(ne,``);return}let t=te(e);if(t){D(ne,t,!0);return}if(typeof window>`u`)return;let n=!0;return fetch(e).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.text()}).then(t=>{if(!n)return;i.set(e,t);let r=nb(t);!s()&&!M(y)&&r.frontmatter?.title&&D(y,String(r.frontmatter.title),!0),!c()&&!M(b)&&r.frontmatter?.description&&D(b,String(r.frontmatter.description),!0),D(ne,r.html,!0)}).catch(t=>{n&&(console.warn(`[DocMeDown] Failed to fetch card content from "${e}":`,t),D(ne,`<p class="dmd-card-error">Failed to load content: <code>${e}</code></p>`))}),()=>{n=!1}});function re(){if(!M(S))return null;let e=M(S).getRootNode();return e instanceof ShadowRoot?e.host:M(S).parentElement}function ie(){let e=re();if(!e)return;let t=cN(Array.from(e.children)),n=!s()&&!M(y),r=!c()&&!M(b);n&&t.title&&(D(y,t.title.innerHTML,!0),t.title.remove(),r&&t.description&&(D(b,t.description.innerHTML,!0),t.description.remove())),!g()&&!M(x)&&t.footer&&(D(x,t.footer.innerHTML,!0),t.footer.remove())}ru(()=>{VM(M(S)),ie();let e=re();e&&(e.cloneCard=()=>{let t=e.cloneNode(!0);return t._autoTitle=M(y),t._autoDescription=M(b),t._autoFooter=M(x),t},e._autoTitle&&D(y,e._autoTitle,!0),e._autoDescription&&D(b,e._autoDescription,!0),e._autoFooter&&D(x,e._autoFooter,!0))});let ae=lr(()=>_()?r.has(_())?` dmd-card-${_()}`:` dmd-card-accent`:``),oe=lr(()=>_()&&!r.has(_())?`--dmd-card-accent: ${_()};`:``),se=lr(()=>!!(s()||M(y)||m()||d()||c()||M(b)));var ce={get title(){return s()},set title(e=``){s(e),T()},get description(){return c()},set description(e=``){c(e),T()},get content(){return l()},set content(e=``){l(e),T()},get href(){return u()},set href(e=``){u(e),T()},get icon(){return d()},set icon(e=``){d(e),T()},get image(){return f()},set image(e=``){f(e),T()},get imagealt(){return p()},set imagealt(e=``){p(e),T()},get badge(){return m()},set badge(e=``){m(e),T()},get badgetype(){return h()},set badgetype(e=`info`){h(e),T()},get footer(){return g()},set footer(e=``){g(e),T()},get color(){return _()},set color(e=``){_(e),T()},get shadow(){return v()},set shadow(e=!0){v(e),T()}},le=SN(),ue=O(le),de=e=>{var t=xN(),r=O(t);n(r),w(t),j(()=>R(t,`href`,u())),F(e,t)},fe=e=>{n(e)};return L(ue,e=>{u()?e(de):e(fe,-1)}),w(le),yl(le,e=>D(S,e),()=>M(S)),F(e,le),dn(ce)}customElements.define(`dmd-card`,Zl(CN,{title:{},description:{},content:{},href:{},icon:{},image:{},imagealt:{},badge:{},badgetype:{},footer:{},color:{},shadow:{}},[`default`],[],{mode:`open`}));function wN(e,t){let n=typeof e==`number`&&Number.isFinite(e)?Math.floor(e):t;return n<1?1:n>4?4:n}function TN(e,t){let n=wN(e,2);if(!Number.isFinite(t)||t<=0)return n;let r=Math.floor((t+16)/276);return r<1?1:Math.min(n,r)}function EN(e,t,n){let r=Math.max(0,Math.floor(e)),i=Math.max(1,Math.floor(t)),a=Math.max(1,r-i+1),o=Number.isFinite(n)?Math.floor(n):0,s=Math.min(a-1,Math.max(0,o)),c=[];for(let e=0;e<Math.min(i,r);e++)c.push(s+e);return{positions:a,index:s,indices:c}}var DN=P(`<button type="button" role="tab"></button>`),ON=P(`<section aria-roledescription="carousel" tabindex="-1"><div class="dmd-carousel-viewport"><div class="dmd-carousel-track"><!></div></div> <div class="dmd-sr-only" aria-live="polite"> </div> <div class="dmd-carousel-controls"><button type="button" class="dmd-carousel-btn" aria-label="Previous cards"><span aria-hidden="true">‹</span></button> <div class="dmd-carousel-dots" role="tablist" aria-label="Choose card"></div> <button type="button" class="dmd-carousel-btn" aria-label="Next cards"><span aria-hidden="true">›</span></button></div></section>`),kN=P(`<div><!></div>`),AN=P(`<div style="display: contents;"><!></div>`);function jN(e,t){un(t,!0);let n=z(t,`cols`,7,2),r=z(t,`carouselcols`,7,0),i=E(void 0),a=E(void 0),o=E(0),s=E(2),c=E(0),l=[],u=[],d=``,f=0,p=null,m=null,h=0,g=E(void 0),_=null;function v(){if(!M(g))return;let e=M(g).querySelectorAll(`.dmd-carousel-slide`);if(!(e.length===M(o)&&M(o)>0)){e.forEach(e=>e.remove());for(let e=0;e<M(o);e++){let t=document.createElement(`div`);t.className=`dmd-carousel-slide`;let n=document.createElement(`slot`);n.name=`dmd-carousel-${e}`,t.appendChild(n),M(g).appendChild(t)}}}let y=!1,b=lr(()=>wN(Number(n())||2,2)),x=lr(()=>wN(Number(r())||Number(n())||2,2)),S=lr(()=>M(o)>M(b)),ee=lr(()=>EN(M(o),M(s),M(c)).positions),te=lr(()=>{let e=EN(M(o),M(s),M(c)).indices.map(e=>e+1);return e.length===0?`no cards`:e.length===1?`card ${e[0]}`:`cards ${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`});function ne(){if(!M(i))return null;let e=M(i).getRootNode();return e instanceof ShadowRoot?e.host:M(i).parentElement}function re(){let e=ne();return e?Array.from(e.children).filter(e=>e instanceof HTMLElement):[]}function ie(){let e=(M(g)||M(i)?.getRootNode())?.querySelectorAll(`.dmd-carousel-slide`);if(!e||e.length===0||!M(a))return;let t=`${e.length}:${M(s)}:${M(a).clientWidth}`;if(t===d&&u.length>0&&(e.length<=1||u[1]>0))return;let n=[...e].slice(0,M(o)).map(e=>e.offsetLeft);if(n.length>1&&n[1]===0){h||=requestAnimationFrame(()=>{h=0,ie()});return}d=t,u=n}function ae(){if(!M(a))return;p?.stop(),p=null,m=null;let e=TN(M(x),M(a).clientWidth);M(s)!==e&&D(s,e,!0),M(S)&&v(),ie(),_&&M(a)&&!y&&(_.observe(M(a)),y=!0)}function oe(e,t=`smooth`){if(!M(a))return;u.length===0&&ie();let n=u[e];if(n==null)return;p?.stop(),p=null,m=null,D(c,e,!0);let r=u[0]||0,i=Math.max(0,n-r);if(nx()||t===`instant`||t===`auto`){M(a).scrollLeft=i;return}m=e;let o=ox(M(a),i,{duration:320});p=o,o.finished.then(()=>{p===o&&(p=null,m=null,le())})}function se(){oe(Math.max(0,M(c)-1))}function ce(){oe(Math.min(M(ee)-1,M(c)+1))}function le(){f||=requestAnimationFrame(()=>{if(f=0,!M(a)||m!==null||(u.length===0&&ie(),u.length===0))return;let e=u[0]||0,t=M(a).scrollLeft,n=0,r=1/0;for(let i=0;i<Math.min(M(ee),u.length);i++){let a=Math.max(0,u[i]-e),o=Math.abs(a-t);o<r&&(r=o,n=i)}n!==M(c)&&D(c,n,!0)})}function ue(e){e.key===`ArrowLeft`?(e.preventDefault(),se()):e.key===`ArrowRight`&&(e.preventDefault(),ce())}function de(e){if(e.target.name)return;let t=re();if(t.length===0)return;let n=t.length===l.length&&t.every((e,t)=>e===l[t]);if(l=t,D(o,t.length,!0),n||(p?.stop(),p=null,m=null,d=``,u=[]),!M(S)){l.forEach(e=>e.removeAttribute(`slot`)),D(s,M(b),!0);return}l.forEach((e,t)=>e.setAttribute(`slot`,`dmd-carousel-${t}`)),ae()}Oi(()=>{if(l.length===0){let e=re();e.length>0&&(l=e,D(o,e.length,!0))}if(M(S)){if(M(g)&&M(a)&&M(o)>0){l.forEach((e,t)=>e.setAttribute(`slot`,`dmd-carousel-${t}`));let e=TN(M(x),M(a).clientWidth);M(s)!==e&&D(s,e,!0),v(),ie(),_&&!y&&(_.observe(M(a)),y=!0)}}else l.forEach(e=>e.removeAttribute(`slot`)),_&&y&&(_.disconnect(),y=!1)}),ru(()=>{VM(M(i));let e=ne();e&&e.addEventListener(`keydown`,ue),typeof ResizeObserver<`u`&&(_=new ResizeObserver(()=>ae()),M(a)&&M(S)&&!y&&(_.observe(M(a)),y=!0))}),iu(()=>{p?.stop(),h&&cancelAnimationFrame(h);let e=ne();e&&e.removeEventListener(`keydown`,ue),_&&_.disconnect(),f&&cancelAnimationFrame(f)});var fe={get cols(){return n()},set cols(e=2){n(e),T()},get carouselcols(){return r()},set carouselcols(e=0){r(e),T()}},pe=AN(),me=O(pe),he=e=>{var n=ON(),r=O(n),i=O(r);bs(O(i),t,`default`,{onslotchange:de,style:`display: contents;`},null),w(i),yl(i,e=>D(g,e),()=>M(g)),w(r),yl(r,e=>D(a,e),()=>M(a));var l=A(r,2),u=k(l),d=A(l,2),f=O(d),p=A(f,2);ps(p,21,()=>Array.from({length:M(ee)}),ls,(e,t,n)=>{var r=DN();R(r,`aria-label`,`Go to card ${n+1}`),j(()=>{sc(r,1,`dmd-carousel-dot${n===M(c)?` active`:``}`),R(r,`aria-selected`,n===M(c))}),N(`click`,r,()=>oe(n)),F(e,r)}),w(p);var m=A(p,2);w(d),w(n),j(()=>{sc(n,1,`dmd-card-carousel dmd-card-grid-${M(b)??``}`),R(n,`data-per-view`,M(s)),R(n,`aria-label`,`Card carousel, ${M(o)??``} cards`),lc(i,`--dmd-carousel-per-view: ${M(s)??``};`),I(u,`Showing ${M(te)??``} of ${M(o)??``}`),f.disabled=M(c)<=0,m.disabled=M(c)>=M(ee)-1}),fo(`scroll`,r,le),N(`click`,f,se),N(`click`,m,ce),F(e,n)},ge=e=>{var n=kN();bs(O(n),t,`default`,{onslotchange:de},null),w(n),j(()=>sc(n,1,`dmd-card-grid dmd-card-grid-${M(b)??``}`)),F(e,n)};return L(me,e=>{M(S)?e(he):e(ge,-1)}),w(pe),yl(pe,e=>D(i,e),()=>M(i)),F(e,pe),dn(fe)}po([`click`]),customElements.define(`dmd-card-grid`,Zl(jN,{cols:{},carouselcols:{}},[`default`],[],{mode:`open`}));var MN=P(`<div><!></div>`);function NN(e,t){un(t,!0);let n=z(t,`cols`,7,2),r=z(t,`type`,7,`normal`),i=E(void 0),a=lr(()=>{if(typeof n()==`number`)return Math.min(4,Math.max(1,n()));let e=Number.parseInt(String(n()).replace(/[{}'"\s]/g,``),10);return Number.isFinite(e)?Math.min(4,Math.max(1,e)):2});function o(){if(!M(i))return null;let e=M(i).getRootNode();return e instanceof ShadowRoot?e.host:M(i).parentElement}function s(){let e=o();if(e)for(let t of Array.from(e.children)){let e=t.tagName.toLowerCase();(e===`dmd-column`||e===`dmd-item`)&&t.setAttribute(`data-col-type`,r()||`normal`)}}Oi(()=>{r()&&s()}),ru(()=>{VM(M(i)),queueMicrotask(()=>s())});var c={get cols(){return n()},set cols(e=2){n(e),T()},get type(){return r()},set type(e=`normal`){r(e),T()}},l=MN();return bs(O(l),t,`default`,{onslotchange:s},null),w(l),yl(l,e=>D(i,e),()=>M(i)),j(()=>sc(l,1,`dmd-columns dmd-columns-${M(a)??``} dmd-columns-${r()??``}`)),F(e,l),dn(c)}customElements.define(`dmd-columns`,Zl(NN,{cols:{},type:{}},[`default`],[],{mode:`open`}));var PN=P(`<div><!></div>`);function FN(e,t){un(t,!0);let n=z(t,`colType`,7,``),r=E(void 0);ru(()=>{VM(M(r))});var i={get colType(){return n()},set colType(e=``){n(e),T()}},a=PN();return bs(O(a),t,`default`,{},null),w(a),yl(a,e=>D(r,e),()=>M(r)),j(()=>sc(a,1,`dmd-column${n()?` dmd-column-${n()}`:``}`)),F(e,a),dn(i)}customElements.define(`dmd-column`,Zl(FN,{colType:{}},[`default`],[],{mode:`open`}));var IN=P(`<div style="display: contents;"><details class="dmd-details"><summary class="dmd-details-summary"> </summary> <div class="dmd-details-body"><!></div></details></div>`);function LN(e,t){un(t,!0);let n=z(t,`summary`,7,``),r=z(t,`open`,7,!1),i=E(void 0);ru(()=>{VM(M(i))});var a={get summary(){return n()},set summary(e=``){n(e),T()},get open(){return r()},set open(e=!1){r(e),T()}},o=IN(),s=O(o),c=O(s),l=k(c,!0),u=A(c,2);return bs(O(u),t,`default`,{},null),w(u),w(s),w(o),yl(o,e=>D(i,e),()=>M(i)),j(()=>{s.open=r(),I(l,n())}),F(e,o),dn(a)}customElements.define(`dmd-details`,Zl(LN,{summary:{},open:{}},[`default`],[],{mode:`open`}));var RN=P(`<div class="dmd-timeline-subtitle"> </div>`),zN=P(`<div class="dmd-timeline-item"><div class="dmd-timeline-dot" aria-hidden="true"></div> <div class="dmd-timeline-content"><div class="dmd-timeline-title"> </div> <!> <div class="dmd-timeline-body"><!></div></div></div>`),BN=P(`<div><button type="button" class="dmd-accordion-trigger"><span class="dmd-accordion-label"> </span> <span class="dmd-accordion-chevron" aria-hidden="true">▾</span></button> <div><div class="dmd-accordion-content"><!></div></div></div>`),VN=P(`<div class="dmd-step-item"><div class="dmd-step-marker"> </div> <div class="dmd-step-content"><h4 class="dmd-step-title"> </h4> <div class="dmd-step-body"><!></div></div></div>`),HN=P(`<div><!></div>`),UN=P(`<div class="dmd-card-icon"><span></span></div>`),WN=P(`<h3 class="dmd-card-title"> </h3>`),GN=P(`<p class="dmd-card-subtitle"> </p>`),KN=P(`<div class="dmd-card-header"><!> <div class="dmd-card-header-text"><!> <!></div></div>`),qN=P(`<div class="dmd-card dmd-card-shadow"><!> <div class="dmd-card-body"><!></div></div>`),JN=P(`<div class="dmd-tab-content"><!></div>`),YN=P(`<li><!></li>`),XN=P(`<div style="display: contents;"><!></div>`);function ZN(e,t){un(t,!0);let n=z(t,`title`,7,``),r=z(t,`subtitle`,7,``),i=z(t,`description`,7,``),a=z(t,`icon`,7,``),o=z(t,`label`,7,``),s=z(t,`value`,7,``),c=z(t,`step`,7,``),l=z(t,`defaultopen`,7,!1),u=z(t,`colType`,7,``),d=E(void 0),f=E(!1),p=E(`none`),m=E(``);function h(){if(!M(d))return null;let e=M(d).getRootNode();return e instanceof ShadowRoot?e.host:M(d).parentElement}function g(){let e=h();switch(e?.parentElement?.tagName?.toLowerCase()){case`dmd-timeline`:D(p,`timeline`);break;case`dmd-accordion`:D(p,`accordion`);break;case`dmd-columns`:D(p,`columns`);break;case`dmd-card-grid`:D(p,`cardgrid`);break;case`dmd-tabs`:D(p,`tabs`);break;case`dmd-steps`:{D(p,`steps`);let t=Array.from(e.parentElement.children).filter(e=>e.tagName.toLowerCase()===`dmd-item`||e.tagName.toLowerCase()===`dmd-step`);D(m,String(t.indexOf(e)+1),!0);break}default:D(p,`none`)}}function _(){D(f,!M(f))}ru(()=>{VM(M(d)),D(f,!!l(),!0),g()});var v={get title(){return n()},set title(e=``){n(e),T()},get subtitle(){return r()},set subtitle(e=``){r(e),T()},get description(){return i()},set description(e=``){i(e),T()},get icon(){return a()},set icon(e=``){a(e),T()},get label(){return o()},set label(e=``){o(e),T()},get value(){return s()},set value(e=``){s(e),T()},get step(){return c()},set step(e=``){c(e),T()},get defaultopen(){return l()},set defaultopen(e=!1){l(e),T()},get colType(){return u()},set colType(e=``){u(e),T()}},y=XN(),b=O(y),x=e=>{var i=zN(),a=A(O(i),2),o=O(a),s=k(o,!0),c=A(o,2),l=e=>{var t=RN(),n=k(t,!0);j(()=>I(n,r())),F(e,t)};L(c,e=>{r()&&e(l)});var u=A(c,2);bs(O(u),t,`default`,{},null),w(u),w(a),w(i),j(()=>I(s,n())),F(e,i)},S=e=>{var r=BN(),i=O(r),a=k(O(i),!0);it(2),w(i);var o=A(i,2),s=O(o);bs(O(s),t,`default`,{},null),w(s),w(o),w(r),j(()=>{sc(r,1,`dmd-accordion-item${M(f)?` open`:``}`),R(i,`aria-expanded`,M(f)),I(a,n()),sc(o,1,`dmd-accordion-panel${M(f)?` open`:``}`)}),N(`click`,i,_),F(e,r)},ee=e=>{var r=VN(),i=O(r),a=k(i,!0),o=A(i,2),s=O(o),l=k(s,!0),u=A(s,2);bs(O(u),t,`default`,{},null),w(u),w(o),w(r),j(()=>{I(a,c()||M(m)),I(l,n())}),F(e,r)},te=e=>{var n=HN();bs(O(n),t,`default`,{},null),w(n),j(()=>sc(n,1,`dmd-column${u()&&u()!==`normal`?` dmd-column-${u()}`:``}`)),F(e,n)},ne=e=>{var r=qN(),o=O(r),s=e=>{var t=KN(),r=O(t),o=e=>{var t=UN(),n=O(t);ys(n,a,!0),w(n),w(t),F(e,t)};L(r,e=>{a()&&e(o)});var s=A(r,2),c=O(s),l=e=>{var t=WN(),r=k(t,!0);j(()=>I(r,n())),F(e,t)};L(c,e=>{n()&&e(l)});var u=A(c,2),d=e=>{var t=GN(),n=k(t,!0);j(()=>I(n,i())),F(e,t)};L(u,e=>{i()&&e(d)}),w(s),w(t),F(e,t)};L(o,e=>{(n()||a()||i())&&e(s)});var c=A(o,2);bs(O(c),t,`default`,{},null),w(c),w(r),F(e,r)},re=e=>{var n=JN();bs(O(n),t,`default`,{},null),w(n),F(e,n)},ie=e=>{var n=YN();bs(O(n),t,`default`,{},null),w(n),F(e,n)};return L(b,e=>{M(p)===`timeline`?e(x):M(p)===`accordion`?e(S,1):M(p)===`steps`?e(ee,2):M(p)===`columns`?e(te,3):M(p)===`cardgrid`?e(ne,4):M(p)===`tabs`?e(re,5):e(ie,-1)}),w(y),yl(y,e=>D(d,e),()=>M(d)),F(e,y),dn(v)}po([`click`]),customElements.define(`dmd-item`,Zl(ZN,{title:{},subtitle:{},description:{},icon:{},label:{},value:{},step:{},defaultopen:{},colType:{}},[`default`],[],{mode:`open`}));var QN=P(`<kbd class="dmd-kbd"><!></kbd>`);function $N(e,t){un(t,!0);let n=E(void 0);ru(()=>{VM(M(n))});var r=QN();bs(O(r),t,`default`,{},null),w(r),yl(r,e=>D(n,e),()=>M(n)),F(e,r),dn()}customElements.define(`dmd-kbd`,Zl($N,{},[`default`],[],{mode:`open`}));var eP=P(`<div class="dmd-step-item"><div class="dmd-step-marker"> </div> <div class="dmd-step-content"><h4 class="dmd-step-title"> </h4> <div class="dmd-step-body"><!></div></div></div>`);function tP(e,t){un(t,!0);let n=z(t,`title`,7,``),r=z(t,`step`,7,``),i=E(void 0),a=E(``);function o(){if(!M(i))return null;let e=M(i).getRootNode();return e instanceof ShadowRoot?e.host:M(i).parentElement}function s(){let e=Number(r());if(r()&&Number.isFinite(e)&&String(e)!==``){D(a,String(e),!0);return}let t=o(),n=t?.parentElement;if(!n){D(a,``);return}let i=Array.from(n.children).filter(e=>e.tagName.toLowerCase()===`dmd-step`);D(a,String(i.indexOf(t)+1),!0)}ru(()=>{VM(M(i)),Promise.resolve().then(()=>{s()})});var c={get title(){return n()},set title(e=``){n(e),T()},get step(){return r()},set step(e=``){r(e),T()}},l=eP(),u=O(l),d=k(u,!0),f=A(u,2),p=O(f),m=k(p,!0),h=A(p,2);return bs(O(h),t,`default`,{},null),w(h),w(f),w(l),yl(l,e=>D(i,e),()=>M(i)),j(()=>{I(d,M(a)),I(m,n())}),F(e,l),dn(c)}customElements.define(`dmd-step`,Zl(tP,{title:{},step:{}},[`default`],[],{mode:`open`}));var nP=P(`<div class="dmd-steps"><!></div>`);function rP(e,t){un(t,!0);let n=E(void 0);ru(()=>{VM(M(n))});var r=nP();bs(O(r),t,`default`,{},null),w(r),yl(r,e=>D(n,e),()=>M(n)),F(e,r),dn()}customElements.define(`dmd-steps`,Zl(rP,{},[`default`],[],{mode:`open`}));var iP=P(`<div class="dmd-tab-content"><!></div>`);function aP(e,t){un(t,!0);let n=z(t,`label`,7,``),r=z(t,`value`,7,``),i=z(t,`icon`,7,``),a=E(void 0);ru(()=>{VM(M(a))});var o={get label(){return n()},set label(e=``){n(e),T()},get value(){return r()},set value(e=``){r(e),T()},get icon(){return i()},set icon(e=``){i(e),T()}},s=iP();return bs(O(s),t,`default`,{},null),w(s),yl(s,e=>D(a,e),()=>M(a)),F(e,s),dn(o)}customElements.define(`dmd-tab`,Zl(aP,{label:{},value:{},icon:{}},[`default`],[],{mode:`open`}));var oP=P(`<span class="dmd-tab-icon" aria-hidden="true"></span>`),sP=P(`<span class="dmd-tab-label"> </span>`),cP=P(`<button type="button" role="tab"><!> <!></button>`),lP=P(`<div><div class="dmd-tabs-header" role="tablist" tabindex="0" aria-label="Content tabs"><span class="dmd-tab-indicator" aria-hidden="true"></span> <!></div> <div class="dmd-tabs-body dmd-tab-panel" role="tabpanel"><!></div></div>`);function uP(e,t){un(t,!0);let n=z(t,`defaultindex`,7,0),r=z(t,`groupid`,7,``),i=z(t,`type`,7,``),a=z(t,`variant`,7,``),o=E(void 0),s=E(void 0),c=E(void 0),l=E(void 0),u=E(0),d=E($r([])),f=!1,p=`dmd${Math.random().toString(36).slice(2,10)}`,m=null,h=0,g=null,_=null,v=null;function y(){if(!M(o))return null;let e=M(o).getRootNode();return e instanceof ShadowRoot?e.host:M(o).parentElement}function b(){let e=y();return e?Array.from(e.children).filter(e=>{let t=e.tagName.toLowerCase();return t===`dmd-tab`||t===`dmd-item`}):[]}function x(){let e=b();if(e.length===0)return;if(D(d,e.map((e,t)=>({label:e.getAttribute(`label`)||``,value:e.getAttribute(`value`)||e.getAttribute(`label`)||String(t),icon:e.getAttribute(`icon`)||``})),!0),r()&&typeof localStorage<`u`)try{let e=localStorage.getItem(`dmd-tabs-${r()}`);if(e){let t=M(d).findIndex(t=>t.value===e||t.label===e);if(t!==-1){D(u,t,!0),S(),f=!0;return}}}catch{}let t=Number(n())||0;D(u,Math.max(0,Math.min(t,Math.max(0,M(d).length-1))),!0),S(),f=!0}function S(){g?.stop(),g=null,b().forEach((e,t)=>{if(t===M(u)){if(e.style.display=``,e.removeAttribute(`hidden`),f&&M(l)&&!nx()){let e=M(l),t=ix(e,{opacity:[0,1],transform:[`translate3d(0, 8px, 0)`,`translate3d(0, 0, 0)`]},{duration:.22,ease:[.16,1,.3,1]});g=t,t.then(()=>{g===t&&(g=null,e.style.removeProperty(`transform`),e.style.removeProperty(`opacity`))})}}else e.style.display=`none`,e.removeAttribute(`hidden`)}),ne()}function ee(){return M(s)?Array.from(M(s).querySelectorAll(`.dmd-tab-btn`)):[]}function te(){if(!M(s))return;let e=ee()[M(u)];if(!e||e.offsetWidth===0)return;let t=e.offsetLeft,n=e.offsetWidth,r=v;if((r?.x!==t||r.width!==n)&&(_?.stop(),v={x:t,width:n},M(s).style.setProperty(`--dmd-tab-ind-x`,`${t}px`),M(s).style.setProperty(`--dmd-tab-ind-w`,`${n}px`),r&&M(c)&&M(se)!==`postit`&&!nx())){let e=ix(M(c),{transform:[`translateX(${r.x-t}px) scaleX(${r.width/n})`,`translateX(0) scaleX(1)`]},{duration:.26,ease:[.16,1,.3,1]});_=e,e.then(()=>{_===e&&(_=null,M(c).style.removeProperty(`transform`))})}}function ne(){h||=requestAnimationFrame(()=>{h=0,te()})}function re(e,t=!1){if(e===M(u)||e<0||e>=M(d).length)return;D(u,e,!0),S(),te(),t&&ee()[e]?.focus();let n=ee()[e];if(n&&typeof n.scrollIntoView==`function`&&n.scrollIntoView({behavior:nx()?`auto`:`smooth`,block:`nearest`,inline:`nearest`}),r()){let t=M(d)[e];if(typeof localStorage<`u`)try{localStorage.setItem(`dmd-tabs-${r()}`,t.value||t.label)}catch{}window.dispatchEvent(new CustomEvent(`dmd-tabs-change`,{detail:{groupId:r(),value:t.value,label:t.label}}))}}function ie(e){let t=e;if(!t.detail||t.detail.groupId!==r())return;let n=M(d).findIndex(e=>e.value===t.detail.value||e.label===t.detail.label);n!==-1&&n!==M(u)&&(D(u,n,!0),S(),te())}function ae(e){let t=ee();t.length!==0&&(e.key===`ArrowRight`||e.key===`ArrowDown`?(e.preventDefault(),re((M(u)+1)%t.length,!0)):e.key===`ArrowLeft`||e.key===`ArrowUp`?(e.preventDefault(),re((M(u)-1+t.length)%t.length,!0)):e.key===`Home`?(e.preventDefault(),re(0,!0)):e.key===`End`&&(e.preventDefault(),re(t.length-1,!0)))}function oe(){x()}let se=lr(()=>a()||(i()===`underline`||i()===`pills`||i()===`postit`?i():`recessed`)),ce=lr(()=>`dmd-tabs dmd-tabs-wrapper dmd-tabs-${M(se)}${r()?` dmd-tabs-grouped`:``}`);ru(()=>{VM(M(o)),window.addEventListener(`dmd-tabs-change`,ie),typeof ResizeObserver<`u`&&(m=new ResizeObserver(()=>ne()),M(s)&&m.observe(M(s))),Promise.resolve().then(async()=>{x(),await Aa(),te(),requestAnimationFrame(()=>te())})}),iu(()=>{g?.stop(),_?.stop(),typeof window<`u`&&window.removeEventListener(`dmd-tabs-change`,ie),m&&m.disconnect(),h&&cancelAnimationFrame(h)});var le={get defaultindex(){return n()},set defaultindex(e=0){n(e),T()},get groupid(){return r()},set groupid(e=``){r(e),T()},get type(){return i()},set type(e=``){i(e),T()},get variant(){return a()},set variant(e=``){a(e),T()}},ue=lP(),de=O(ue),fe=O(de);yl(fe,e=>D(c,e),()=>M(c)),ps(A(fe,2),17,()=>M(d),ls,(e,t,n)=>{let r=lr(()=>n===M(u)),i=lr(()=>M(t).value||M(t).label||`Tab ${n+1}`),a=lr(()=>!!M(t).label);var o=cP(),s=O(o),c=e=>{var n=oP();ys(n,()=>M(t).icon,!0),w(n),F(e,n)};L(s,e=>{M(t).icon&&e(c)});var l=A(s,2),d=e=>{var n=sP(),r=k(n,!0);j(()=>I(r,M(t).label)),F(e,n)};L(l,e=>{M(a)&&e(d)}),w(o),j(()=>{R(o,`id`,`${p}-tab-${n}`),sc(o,1,`dmd-tab-btn${M(r)?` active`:``}${M(a)?``:` dmd-tab-btn-icon`}`),R(o,`aria-selected`,M(r)),R(o,`aria-controls`,`${p}-panel-${n}`),R(o,`aria-label`,M(a)?void 0:M(i)),R(o,`tabindex`,M(r)?0:-1)}),N(`click`,o,()=>re(n)),F(e,o)}),w(de),yl(de,e=>D(s,e),()=>M(s));var pe=A(de,2);return bs(O(pe),t,`default`,{onslotchange:oe},null),w(pe),yl(pe,e=>D(l,e),()=>M(l)),w(ue),yl(ue,e=>D(o,e),()=>M(o)),j(()=>{sc(ue,1,tc(M(ce))),R(pe,`id`,`${p}-panel-${M(u)??``}`),R(pe,`aria-labelledby`,`${p}-tab-${M(u)??``}`)}),N(`keydown`,de,ae),F(e,ue),dn(le)}po([`keydown`,`click`]),customElements.define(`dmd-tabs`,Zl(uP,{defaultindex:{},groupid:{},type:{},variant:{}},[`default`],[],{mode:`open`}));var dP=P(`<div class="dmd-timeline"><!></div>`);function fP(e,t){un(t,!0);let n=E(void 0);ru(()=>{VM(M(n))});var r=dP();bs(O(r),t,`default`,{},null),w(r),yl(r,e=>D(n,e),()=>M(n)),F(e,r),dn()}customElements.define(`dmd-timeline`,Zl(fP,{},[`default`],[],{mode:`open`}));var pP=P(`<div class="dmd-timeline-subtitle"> </div>`),mP=P(`<div class="dmd-timeline-item"><div class="dmd-timeline-dot" aria-hidden="true"></div> <div class="dmd-timeline-content"><div class="dmd-timeline-title"> </div> <!> <div class="dmd-timeline-body"><!></div></div></div>`);function hP(e,t){un(t,!0);let n=z(t,`title`,7,``),r=z(t,`subtitle`,7,``),i=E(void 0);ru(()=>{VM(M(i))});var a={get title(){return n()},set title(e=``){n(e),T()},get subtitle(){return r()},set subtitle(e=``){r(e),T()}},o=mP(),s=A(O(o),2),c=O(s),l=k(c,!0),u=A(c,2),d=e=>{var t=pP(),n=k(t,!0);j(()=>I(n,r())),F(e,t)};L(u,e=>{r()&&e(d)});var f=A(u,2);return bs(O(f),t,`default`,{},null),w(f),w(s),w(o),yl(o,e=>D(i,e),()=>M(i)),j(()=>I(l,n())),F(e,o),dn(a)}customElements.define(`dmd-timeline-item`,Zl(hP,{title:{},subtitle:{}},[`default`],[],{mode:`open`}));var gP={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,webp:`image/webp`,gif:`image/gif`,avif:`image/avif`,bmp:`image/bmp`,ico:`image/x-icon`,cur:`image/x-icon`,tif:`image/tiff`,tiff:`image/tiff`,apng:`image/apng`,svg:`image/svg+xml`,svgz:`image/svg+xml`,mp4:`video/mp4`,m4v:`video/mp4`,webm:`video/webm`,ogv:`video/ogg`,mov:`video/quicktime`,avi:`video/x-msvideo`,mkv:`video/x-matroska`,wmv:`video/x-ms-wmv`,flv:`video/x-flv`,mp3:`audio/mpeg`,wav:`audio/wav`,wave:`audio/wav`,ogg:`audio/ogg`,oga:`audio/ogg`,opus:`audio/opus`,aac:`audio/aac`,m4a:`audio/mp4`,flac:`audio/flac`,weba:`audio/webm`,wma:`audio/x-ms-wma`,mid:`audio/midi`,midi:`audio/midi`};function _P(e){if(!e)return``;let t=e.trim().split(`#`)[0].split(`?`)[0],n=t.lastIndexOf(`.`);return n===-1||n===t.length-1?``:t.slice(n+1).toLowerCase()}function vP(e,t){if(t?.trim()){let e=t.trim().toLowerCase();if(e.includes(`/`))return e;if(gP[e])return gP[e]}if(bP(e)){let t=xP(e);if(t)return t.mimeType}let n=_P(e);return n&&gP[n]?gP[n]:`application/octet-stream`}function yP(e,t){let n=(t||``).trim().toLowerCase();if(n===`vector`||n===`svg`||n.includes(`svg`))return`vector`;if(n===`image`||n.startsWith(`image/`))return n.includes(`svg`)?`vector`:`image`;if(n===`video`||n.startsWith(`video/`))return`video`;if(n===`audio`||n.startsWith(`audio/`))return`audio`;let r=vP(e,t);if(r===`image/svg+xml`)return`vector`;if(r.startsWith(`image/`))return`image`;if(r.startsWith(`video/`))return`video`;if(r.startsWith(`audio/`))return`audio`;let i=_P(e);return[`png`,`jpg`,`jpeg`,`webp`,`gif`,`avif`,`bmp`,`ico`,`tif`,`tiff`,`apng`].includes(i)?`image`:[`svg`,`svgz`].includes(i)?`vector`:[`mp4`,`m4v`,`webm`,`ogv`,`mov`,`avi`,`mkv`].includes(i)?`video`:[`mp3`,`wav`,`ogg`,`oga`,`opus`,`aac`,`m4a`,`flac`,`weba`].includes(i)?`audio`:`unknown`}function bP(e){return e?/^data:([a-zA-Z0-9!#$&^_.+-]+\/[a-zA-Z0-9!#$&^_.+-]+)?(?:;charset=[a-zA-Z0-9-]+)?(?:;base64)?,/i.test(e.trim()):!1}function xP(e){if(!e)return null;let t=/^data:([^;,]+)?(?:;charset=[^;,]+)?(;base64)?,(.*)$/is.exec(e.trim());return t?{mimeType:t[1]||`text/plain`,isBase64:!!t[2],data:t[3]}:null}var SP=To(`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>`),CP=To(`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle></svg>`),wP=To(`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>`),TP=P(`<div class="dmd-media-fallback" role="alert"><span class="dmd-media-fallback-icon" aria-hidden="true"><!></span> <div class="dmd-media-fallback-content"><span class="dmd-media-fallback-text"> </span> <!></div></div>`),EP=P(`<source/>`),DP=P(`<video class="dmd-media-video"><!> <!> <p> </p></video>`,2),OP=P(`<audio class="dmd-media-audio"><!> <!> <p> </p></audio>`),kP=P(`<div class="dmd-media-svg-host"></div>`),AP=P(`<img class="dmd-media-image" loading="lazy"/>`),jP=P(`<figcaption> </figcaption>`),MP=P(`<figure><div><!></div> <!></figure>`);function NP(e,t){un(t,!0);let n=z(t,`src`,7,``),r=z(t,`type`,7,``),i=z(t,`format`,7,``),a=z(t,`fallback`,7,``),o=z(t,`fallbacktext`,7,``),s=z(t,`fallbackText`,7,``),c=z(t,`poster`,7,``),l=z(t,`alt`,7,``),u=z(t,`title`,7,``),d=z(t,`width`,7,``),f=z(t,`height`,7,``),p=z(t,`maxwidth`,7,``),m=z(t,`maxWidth`,7,``),h=z(t,`maxheight`,7,``),g=z(t,`maxHeight`,7,``),_=z(t,`aspectratio`,7,``),v=z(t,`aspectRatio`,7,``),y=z(t,`fit`,7,``),b=z(t,`objectfit`,7,``),x=z(t,`objectFit`,7,``),S=z(t,`align`,7,`center`),ee=z(t,`rounded`,7,``),te=z(t,`radius`,7,``),ne=z(t,`shadow`,7,``),re=z(t,`border`,7,``),ie=z(t,`caption`,7,``),ae=z(t,`captionalign`,7,`center`),oe=z(t,`captionAlign`,7,`center`),se=z(t,`controls`,7,!0),ce=z(t,`autoplay`,7,!1),le=z(t,`loop`,7,!1),ue=z(t,`muted`,7,!1),de=z(t,`playsinline`,7,!0),fe=z(t,`preload`,7,`metadata`),pe=z(t,`embed`,7,``),me=z(t,`zoomable`,7,!1),he=z(t,`class`,7,``),ge=z(t,`style`,7,``),_e=E(void 0),ve=E(!1),ye=E(!1),be=E(null),xe=E(!1);function Se(e){if(typeof window>`u`||!e)return;let t=e.trim(),n=t.replace(/^\.?\//,``),r=[t,n,`./${n}`,`/${n}`],i=window.__DOCMEDOWN_DATA__?.media;if(i&&typeof i==`object`){for(let e of r)if(i[e])return i[e]}let a=document.getElementById(`dmd-media-store`);if(a?.textContent)try{let e=JSON.parse(a.textContent);for(let t of r)if(e[t])return e[t]}catch{}}let Ce=lr(()=>s()||o()),we=lr(()=>m()||p()),Te=lr(()=>g()||h()),Ee=lr(()=>v()||_()),De=lr(()=>y()||x()||b()),Oe=lr(()=>oe()===`center`?ae():oe()),ke=lr(()=>r()||i()),Ae=lr(()=>n()?Se(n())||n():``),je=lr(()=>{if(c())return Se(c())||c()}),Me=lr(()=>{if(a())return Se(a())||a()}),Ne=E(``);Oi(()=>{D(Ne,M(Ae),!0),D(ve,!1),D(ye,!1),D(be,null)});let Pe=lr(()=>M(Ne)?yP(M(Ne),M(ke)):`unknown`),Fe=lr(()=>M(Ne)?vP(M(Ne),M(ke)):``);Oi(()=>{if(pe()!==`inline`&&pe()!==`svg`&&pe()!==!0||M(Pe)!==`vector`||!M(Ne)){D(be,null);return}if(M(Ne).trim().startsWith(`<svg`))D(be,M(Ne).trim(),!0);else if(bP(M(Ne))){let e=xP(M(Ne));if(e)try{e.isBase64?D(be,atob(e.data),!0):D(be,decodeURIComponent(e.data),!0)}catch{D(be,null)}}}),ru(()=>{VM(M(_e))});function Ie(e){if(e==null||e===``)return;let t=String(e).trim();if(t)return/^\d+(\.\d+)?$/.test(t)?`${t}px`:t}function Le(){!M(ye)&&M(Me)&&M(Me)!==M(Ne)?(D(ye,!0),D(Ne,M(Me),!0)):D(ve,!0)}function Re(){!me()||M(Pe)!==`image`||D(xe,!M(xe))}let ze=lr(()=>{let e=[],t=Ie(d()),n=Ie(f()),r=Ie(M(we)),i=Ie(M(Te));return t&&e.push(`width: ${t};`),n&&e.push(`height: ${n};`),r&&e.push(`max-width: ${r};`),i&&e.push(`max-height: ${i};`),M(Ee)&&e.push(`aspect-ratio: ${M(Ee)};`),M(De)&&e.push(`object-fit: ${M(De)};`),e.join(` `)}),Be=lr(()=>{let e=[],t=Ie(d()),n=Ie(M(we));t&&t!==`auto`&&e.push(`width: ${t};`),n&&e.push(`max-width: ${n};`);let r=ee()===``?te():ee();return r===!0||r===`md`?e.push(`border-radius: var(--dmd-radius-md, 8px);`):r===`sm`?e.push(`border-radius: var(--dmd-radius-sm, 4px);`):r===`lg`?e.push(`border-radius: var(--dmd-radius-lg, 12px);`):r===`full`?e.push(`border-radius: 9999px;`):r===`none`||r===!1?e.push(`border-radius: 0;`):typeof r==`string`&&r.trim()&&e.push(`border-radius: ${Ie(r)};`),ne()===!0||ne()===`md`?e.push(`box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);`):ne()===`sm`?e.push(`box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);`):ne()===`lg`?e.push(`box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.06);`):typeof ne()==`string`&&ne()!==`none`&&ne()!==`false`&&ne().trim()&&e.push(`box-shadow: ${ne()};`),re()===!0||re()===`true`?e.push(`border: 1px solid var(--dmd-border, #e2e8f0);`):typeof re()==`string`&&re()!==`none`&&re()!==`false`&&re().trim()&&e.push(`border: ${re().includes(` `)?re():`1px solid ${re()}`};`),ge()&&e.push(ge()),e.join(` `)}),Ve=lr(()=>{let e=[],t=Ie(M(we));return t&&e.push(`max-width: ${t};`),S()===`center`?e.push(`margin-left: auto; margin-right: auto; text-align: center;`):S()===`left`||S()===`start`?e.push(`margin-left: 0; margin-right: auto; text-align: left;`):(S()===`right`||S()===`end`)&&e.push(`margin-left: auto; margin-right: 0; text-align: right;`),e.join(` `)});var He={get src(){return n()},set src(e=``){n(e),T()},get type(){return r()},set type(e=``){r(e),T()},get format(){return i()},set format(e=``){i(e),T()},get fallback(){return a()},set fallback(e=``){a(e),T()},get fallbacktext(){return o()},set fallbacktext(e=``){o(e),T()},get fallbackText(){return s()},set fallbackText(e=``){s(e),T()},get poster(){return c()},set poster(e=``){c(e),T()},get alt(){return l()},set alt(e=``){l(e),T()},get title(){return u()},set title(e=``){u(e),T()},get width(){return d()},set width(e=``){d(e),T()},get height(){return f()},set height(e=``){f(e),T()},get maxwidth(){return p()},set maxwidth(e=``){p(e),T()},get maxWidth(){return m()},set maxWidth(e=``){m(e),T()},get maxheight(){return h()},set maxheight(e=``){h(e),T()},get maxHeight(){return g()},set maxHeight(e=``){g(e),T()},get aspectratio(){return _()},set aspectratio(e=``){_(e),T()},get aspectRatio(){return v()},set aspectRatio(e=``){v(e),T()},get fit(){return y()},set fit(e=``){y(e),T()},get objectfit(){return b()},set objectfit(e=``){b(e),T()},get objectFit(){return x()},set objectFit(e=``){x(e),T()},get align(){return S()},set align(e=`center`){S(e),T()},get rounded(){return ee()},set rounded(e=``){ee(e),T()},get radius(){return te()},set radius(e=``){te(e),T()},get shadow(){return ne()},set shadow(e=``){ne(e),T()},get border(){return re()},set border(e=``){re(e),T()},get caption(){return ie()},set caption(e=``){ie(e),T()},get captionalign(){return ae()},set captionalign(e=`center`){ae(e),T()},get captionAlign(){return oe()},set captionAlign(e=`center`){oe(e),T()},get controls(){return se()},set controls(e=!0){se(e),T()},get autoplay(){return ce()},set autoplay(e=!1){ce(e),T()},get loop(){return le()},set loop(e=!1){le(e),T()},get muted(){return ue()},set muted(e=!1){ue(e),T()},get playsinline(){return de()},set playsinline(e=!0){de(e),T()},get preload(){return fe()},set preload(e=`metadata`){fe(e),T()},get embed(){return pe()},set embed(e=``){pe(e),T()},get zoomable(){return me()},set zoomable(e=!1){me(e),T()},get class(){return he()},set class(e=``){he(e),T()},get style(){return ge()},set style(e=``){ge(e),T()}},Ue=MP(),We=O(Ue),Ge=O(We),Ke=e=>{var n=TP(),r=O(n),i=O(r),o=e=>{F(e,SP())},s=e=>{F(e,CP())},c=e=>{F(e,wP())};L(i,e=>{M(Pe)===`video`?e(o):M(Pe)===`audio`?e(s,1):e(c,-1)}),w(r);var u=A(r,2),d=O(u),f=k(d,!0);bs(A(d,2),t,`default`,{},null),w(u),w(n),j(()=>I(f,M(Ce)||(typeof a()==`string`&&!M(Me)?a():``)||(l()?`Media unavailable: ${l()}`:`Media unavailable`))),F(e,n)},qe=e=>{var t=DP(),n=O(t),r=e=>{var t=EP();j(()=>{R(t,`src`,M(Ne)),R(t,`type`,M(Fe))}),F(e,t)};L(n,e=>{M(Fe)&&e(r)});var i=A(n,2),a=e=>{var t=EP();j(()=>R(t,`src`,M(Me))),F(e,t)};L(i,e=>{M(Me)&&!M(ye)&&e(a)});var o=k(A(i,2),!0);w(t),j(()=>{R(t,`src`,M(Ne)),R(t,`poster`,M(je)),t.controls=se(),t.autoplay=ce(),t.loop=le(),t.muted=ue(),t.playsInline=de(),R(t,`preload`,fe()),lc(t,M(ze)),I(o,M(Ce)||l()||`Your browser does not support HTML5 video.`)}),fo(`error`,t,Le),F(e,t)},Je=e=>{var t=OP(),n=O(t),r=e=>{var t=EP();j(()=>{R(t,`src`,M(Ne)),R(t,`type`,M(Fe))}),F(e,t)};L(n,e=>{M(Fe)&&e(r)});var i=A(n,2),a=e=>{var t=EP();j(()=>R(t,`src`,M(Me))),F(e,t)};L(i,e=>{M(Me)&&!M(ye)&&e(a)});var o=k(A(i,2),!0);w(t),j(()=>{R(t,`src`,M(Ne)),t.controls=se(),t.autoplay=ce(),t.loop=le(),t.muted=ue(),R(t,`preload`,fe()),lc(t,M(ze)),I(o,M(Ce)||l()||`Your browser does not support HTML5 audio.`)}),fo(`error`,t,Le),F(e,t)},Ye=e=>{var t=kP();ys(t,()=>M(be),!0),w(t),j(()=>lc(t,M(ze))),F(e,t)},Xe=e=>{var t=AP();j(()=>{R(t,`src`,M(Ne)),R(t,`alt`,l()),R(t,`title`,u()),lc(t,M(ze))}),fo(`error`,t,Le),lo(t),F(e,t)};L(Ge,e=>{M(ve)?e(Ke):M(Pe)===`video`?e(qe,1):M(Pe)===`audio`?e(Je,2):M(Pe)===`vector`&&M(be)?e(Ye,3):e(Xe,-1)}),w(We);var Ze=A(We,2),Qe=e=>{var t=jP(),n=k(t,!0);j(()=>{sc(t,1,`dmd-media-caption dmd-media-caption-${M(Oe)??``}`),I(n,ie())}),F(e,t)};return L(Ze,e=>{ie()&&e(Qe)}),w(Ue),yl(Ue,e=>D(_e,e),()=>M(_e)),j(()=>{sc(Ue,1,`dmd-media dmd-media-${M(Pe)??``} dmd-media-align-${S()??``} ${he()??``}`),lc(Ue,M(Ve)),sc(We,1,`dmd-media-wrapper${me()?` dmd-media-zoomable`:``}${M(xe)?` dmd-media-zoomed`:``}`),lc(We,M(Be)),R(We,`role`,me()?`button`:void 0),R(We,`tabindex`,me()?0:void 0)}),N(`click`,We,Re),N(`keydown`,We,e=>{me()&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Re())}),F(e,Ue),dn(He)}po([`click`,`keydown`]),customElements.define(`dmd-media`,Zl(NP,{src:{},type:{},format:{},fallback:{},fallbacktext:{},fallbackText:{},poster:{},alt:{},title:{},width:{},height:{},maxwidth:{},maxWidth:{},maxheight:{},maxHeight:{},aspectratio:{},aspectRatio:{},fit:{},objectfit:{},objectFit:{},align:{},rounded:{},radius:{},shadow:{},border:{},caption:{},captionalign:{},captionAlign:{},controls:{},autoplay:{},loop:{},muted:{},playsinline:{},preload:{},embed:{},zoomable:{},class:{},style:{}},[`default`],[],{mode:`open`})),typeof window<`u`&&(window.__DOCMEDOWN_SVELTE__={...tu,client:$l,internal:{client:$l}},window.__DOCMEDOWN_MOTION__=ex),typeof globalThis<`u`&&!globalThis.__DOCMEDOWN_SVELTE__&&(globalThis.__DOCMEDOWN_SVELTE__={...tu,client:$l,internal:{client:$l}},globalThis.__DOCMEDOWN_MOTION__=ex);for(let e of[`Tabs`,`Tab`,`Card`,`CardGrid`,`Badge`,`Steps`,`Step`,`Alert`,`Callout`,`Button`,`Kbd`,`Details`,`Accordion`,`AccordionItem`,`Columns`,`Column`,`Timeline`,`TimelineItem`,`Item`,`Media`])gC.getInstance().register(e,n.r(e));var PP=new WeakMap;async function FP(e={}){Yd(e.basePath||``),n.t(e.basePath||``);let t=null;if(typeof e.el==`string`?t=document.querySelector(e.el):e.el instanceof HTMLElement?t=e.el:(t=document.getElementById(`dmd-app`),t||(t=document.createElement(`div`),t.id=`dmd-app`,document.body.appendChild(t))),!t)return console.error(`[DocMeDown] Could not find or create mount container element`),null;let r=FM({...await LM(e.basePath||``),...e.config});aw.init({defaultMode:r.theme?.defaultMode,defaultFamily:r.theme?.family,defaultDensity:r.theme?.density,accentColor:r.theme?.accentColor,accentColorDark:r.theme?.accentColorDark}),await gC.getInstance().loadDmdDirectory(e.basePath||``),await Q.init(r,e.basePath||``),PP.get(t)?.destroy(),t.innerHTML=``;let i=Vo(xT,{target:t}),a={element:t,destroy:()=>{Ko(i),Q.destroy(),t?.dispatchEvent(new CustomEvent(`docmedown:destroyed`))}};return PP.set(t,a),t.dispatchEvent(new CustomEvent(`docmedown:ready`,{detail:a})),a}if(typeof window<`u`&&(window.DocMeDown={init:FP,theme:aw,motion:ex,registerComponent:(e,t,n)=>_C(e,t,n),registerComponents:e=>gC.getInstance().registerMultiple(e),registerLanguage:Gf},!window.__DOCMEDOWN_NO_AUTO_INIT__&&!document.querySelector(`script[data-docmedown-auto-init="false"]`))){let e=gx()?.base??``,t=()=>void FP({basePath:e});document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,t,{once:!0}):t()}exports.ComponentRegistry=gC,exports.StaticRouter=wx,exports.animate=ix,exports.collapse=lx,exports.createElementBridge=pC,exports.createOfflineDownload=nC,exports.createReactBridge=fC,exports.createRouter=yx,exports.defineDmd=_C,exports.defineReactDmd=vC,exports.defineWebComponentDmd=yC,exports.detectComponentKind=hC,exports.dmdTag=n.r,exports.doc=Q,exports.docConfigSchema=kM,exports.docSearchConfigSchema=DM,exports.docThemeConfigSchema=EM,exports.downloadOfflineCopy=rC,exports.expand=cx,exports.fade=dx,exports.formatConfigIssues=jM,exports.getMotionOptions=rx,exports.getStaticRuntimeContext=gx,exports.initDocMeDown=FP,exports.isOfflineDocumentation=qS,exports.isStaticRuntime=vx,exports.joinStaticBase=bx,exports.loadDocConfig=LM,exports.motion=ux,Object.defineProperty(exports,"motionLib",{enumerable:!0,get:function(){return ex}}),exports.navLinkSchema=SM,exports.normalizeConfig=FM,exports.normalizedDocConfigSchema=AM,exports.parseDocConfig=MM,exports.prefersReducedMotion=nx,exports.registerWebComponent=mC,exports.remoteSourceSchema=wM,exports.sanitizeDownloadName=KS,exports.scale=px,exports.sidebarItemSchema=TM,exports.slide=fx,exports.smoothScroll=ox,exports.socialLinkSchema=CM,exports.stagger=hx,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Fp}}),exports.theme=aw,exports.useMotion=mx;
|