@openparachute/app 0.22.15-rc.7 → 0.22.15-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/.parachute/info +1 -1
  2. package/dist/assets/{Account-DVrOc5d2.js → Account-nwhgv70-.js} +1 -1
  3. package/dist/assets/{Activity-0hs_ikJM.js → Activity-nrXpsQcr.js} +1 -1
  4. package/dist/assets/{AddVault-BB-AFOmL.js → AddVault-Ber89Wqa.js} +1 -1
  5. package/dist/assets/{AddVaultChooser-n8eLZ11X.js → AddVaultChooser-DanK5s3b.js} +1 -1
  6. package/dist/assets/{AddVaultCreate-BVyIpnXh.js → AddVaultCreate-9M159HyG.js} +1 -1
  7. package/dist/assets/{AttachmentDropZone-TqaFTJWk.js → AttachmentDropZone-DCx4BmUB.js} +1 -1
  8. package/dist/assets/{Calendar-BFFWBFvP.js → Calendar-IN2_LWdR.js} +1 -1
  9. package/dist/assets/{CheckEmail-PgQKYluA.js → CheckEmail-TDlZFsMB.js} +1 -1
  10. package/dist/assets/{CodeMirrorEditor-DxXQL_Yv.js → CodeMirrorEditor-BFbrH8SS.js} +1 -1
  11. package/dist/assets/{ConnectAI-DvGvVaFL.js → ConnectAI-CgmKvizd.js} +1 -1
  12. package/dist/assets/{DayView-DckpX5OB.js → DayView-BJNKXaVZ.js} +1 -1
  13. package/dist/assets/{Export-nog6GkVZ.js → Export-wDmogiyF.js} +1 -1
  14. package/dist/assets/{Import-kMnqJ0Zy.js → Import-CXf9uGsq.js} +1 -1
  15. package/dist/assets/NoteEditor-Bysn6eCI.js +1 -0
  16. package/dist/assets/NoteNew-Cj3YJXU6.js +8 -0
  17. package/dist/assets/{NoteView-BkwjWffV.js → NoteView-2aKk-OPF.js} +2 -2
  18. package/dist/assets/{OAuthCallback-Bqwbh5dE.js → OAuthCallback-I9Prty3a.js} +1 -1
  19. package/dist/assets/{PinArchiveButtons-6XVGmX0l.js → PinArchiveButtons-PVL_MlIF.js} +1 -1
  20. package/dist/assets/{Settings-B44TjE-J.js → Settings-yCqoLy9Q.js} +1 -1
  21. package/dist/assets/{TagPage-BvHAtmih.js → TagPage-M-1Z3Lf7.js} +1 -1
  22. package/dist/assets/{TagSchemaEditor-Bv9OJXDP.js → TagSchemaEditor-BK0vcpyB.js} +1 -1
  23. package/dist/assets/{Tags-XxPefjNE.js → Tags-Bof4tsk7.js} +1 -1
  24. package/dist/assets/{VaultGraph-B8m-aKEP.js → VaultGraph-WE9ZHl_X.js} +2 -2
  25. package/dist/assets/{Vaults-PLbdO3kQ.js → Vaults-DvoRumEG.js} +1 -1
  26. package/dist/assets/{ViewNew-WUgtqEUn.js → ViewNew-CAfjs7mP.js} +1 -1
  27. package/dist/assets/{ViewSurface-B3tMmOMq.js → ViewSurface-wMkEz45K.js} +1 -1
  28. package/dist/assets/{Welcome-Bncj2rBF.js → Welcome-BA0CZ6MF.js} +1 -1
  29. package/dist/assets/{WizardShell-Cp46Sjm6.js → WizardShell-CA6wAaXi.js} +1 -1
  30. package/dist/assets/{attachment-upload-DML2Fh0E.js → attachment-upload-eLoB3B2Y.js} +1 -1
  31. package/dist/assets/{history-DeQhlq0x.js → history-BQ4lTS0J.js} +1 -1
  32. package/dist/assets/index-N8p5fKHh.js +66 -0
  33. package/dist/assets/{provenance-D_yuCkJz.js → provenance-CD9K2aIh.js} +1 -1
  34. package/dist/assets/{react-force-graph-2d-iGY_edo3.js → react-force-graph-2d-CzhNMQ2p.js} +1 -1
  35. package/dist/assets/{transcribe-default-Cz5r46Dt.js → transcribe-default-LQWMPSGB.js} +1 -1
  36. package/dist/assets/{useAttachmentUploader-CR8KEhCu.js → useAttachmentUploader-FuXMSo6s.js} +1 -1
  37. package/dist/index.html +1 -1
  38. package/dist/sw.js +1 -1
  39. package/meta.json +1 -1
  40. package/package.json +1 -1
  41. package/dist/assets/NoteEditor-DJJzL6og.js +0 -1
  42. package/dist/assets/NoteNew-CNO1wteU.js +0 -8
  43. package/dist/assets/index-BwG_4Oup.js +0 -66
@@ -1 +1 @@
1
- import{aa as u}from"./index-BwG_4Oup.js";function a(){return"Cloud"}function o(t){if(!t)return null;try{return new URL(t).host}catch{return null}}function l(t){if(u(t.clientId))return{kind:"cloud",label:a()};const n=o(t.issuer)??o(t.url)??"your server";return{kind:"self-hosted",host:n,label:`Self-hosted · ${n}`}}function i(t){if(!Number.isFinite(t)||t<=0)return null;const n=t/1024,r=n/1024,e=r/1024;return e>=1?`${e<10?e.toFixed(1):Math.round(e)} GB`:r>=1?`${r<10?r.toFixed(1):Math.round(r)} MB`:`${Math.max(1,Math.round(n))} KB`}function f(t){return t?i((t.notes_bytes??0)+(t.attachment_bytes??0)):null}export{i as a,f,l as v};
1
+ import{aa as u}from"./index-N8p5fKHh.js";function a(){return"Cloud"}function o(t){if(!t)return null;try{return new URL(t).host}catch{return null}}function l(t){if(u(t.clientId))return{kind:"cloud",label:a()};const n=o(t.issuer)??o(t.url)??"your server";return{kind:"self-hosted",host:n,label:`Self-hosted · ${n}`}}function i(t){if(!Number.isFinite(t)||t<=0)return null;const n=t/1024,r=n/1024,e=r/1024;return e>=1?`${e<10?e.toFixed(1):Math.round(e)} GB`:r>=1?`${r<10?r.toFixed(1):Math.round(r)} MB`:`${Math.max(1,Math.round(n))} KB`}function f(t){return t?i((t.notes_bytes??0)+(t.attachment_bytes??0)):null}export{i as a,f,l as v};
@@ -1,4 +1,4 @@
1
- import{r as at,cE as _o,aq as vo}from"./index-BwG_4Oup.js";function mo(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,u=[],l=!0,f=!1;try{if(a=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=a.call(r)).done)&&(u.push(i.value),u.length!==n);l=!0);}catch(c){f=!0,o=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw o}}return u}}function xo(e,n,r){return n=To(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Kn(e,n){return ko(e)||mo(e,n)||oi(e,n)||So()}function bo(e){return wo(e)||Ao(e)||oi(e)||Co()}function wo(e){if(Array.isArray(e))return gn(e)}function ko(e){if(Array.isArray(e))return e}function Ao(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oi(e,n){if(e){if(typeof e=="string")return gn(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gn(e,n)}}function gn(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function Co(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{r as at,cE as _o,aq as vo}from"./index-N8p5fKHh.js";function mo(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,u=[],l=!0,f=!1;try{if(a=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=a.call(r)).done)&&(u.push(i.value),u.length!==n);l=!0);}catch(c){f=!0,o=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw o}}return u}}function xo(e,n,r){return n=To(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Kn(e,n){return ko(e)||mo(e,n)||oi(e,n)||So()}function bo(e){return wo(e)||Ao(e)||oi(e)||Co()}function wo(e){if(Array.isArray(e))return gn(e)}function ko(e){if(Array.isArray(e))return e}function Ao(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oi(e,n){if(e){if(typeof e=="string")return gn(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gn(e,n)}}function gn(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function Co(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function So(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mo(e,n){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function To(e){var n=Mo(e,"string");return typeof n=="symbol"?n:String(n)}var Po=function(n,r){var i=new Set(r);return Object.assign.apply(Object,[{}].concat(bo(Object.entries(n).filter(function(o){var a=Kn(o,1),s=a[0];return!i.has(s)}).map(function(o){var a=Kn(o,2),s=a[0],u=a[1];return xo({},s,u)}))))};function Oo(e,{wrapperElementType:n="div",nodeMapper:r=a=>a,methodNames:i=[],initPropNames:o=[]}={}){return at.forwardRef((a,s)=>{const u=at.useRef(),l=at.useMemo(()=>{const h=Object.fromEntries(o.filter(d=>a.hasOwnProperty(d)).map(d=>[d,a[d]]));return e(h)},[]);Qn(()=>{l(r(u.current))},at.useLayoutEffect),Qn(()=>l._destructor instanceof Function?l._destructor:void 0);const f=at.useCallback((h,...d)=>l[h]instanceof Function?l[h](...d):void 0,[l]),c=at.useRef({});return Object.keys(Po(a,[...i,...o])).filter(h=>c.current[h]!==a[h]).forEach(h=>f(h,a[h])),c.current=a,at.useImperativeHandle(s,()=>Object.fromEntries(i.map(h=>[h,(...d)=>f(h,...d)])),[f]),_o.createElement(n,{ref:u})})}function Qn(e,n=at.useEffect){const r=at.useRef(),i=at.useRef(!1),o=at.useRef(!1),[a,s]=at.useState(0);i.current&&(o.current=!0),n(()=>(i.current||(r.current=e(),i.current=!0),s(u=>u+1),()=>{o.current&&(r.current&&r.current(),r.current=void 0,i.current=!1,o.current=!1)}),[])}var yn="http://www.w3.org/1999/xhtml";const Jn={svg:"http://www.w3.org/2000/svg",xhtml:yn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Be(e){var n=e+="",r=n.indexOf(":");return r>=0&&(n=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Jn.hasOwnProperty(n)?{space:Jn[n],local:e}:e}function Eo(e){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===yn&&n.documentElement.namespaceURI===yn?n.createElement(e):n.createElementNS(r,e)}}function zo(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ai(e){var n=Be(e);return(n.local?zo:Eo)(n)}function Ro(){}function Nn(e){return e==null?Ro:function(){return this.querySelector(e)}}function No(e){typeof e!="function"&&(e=Nn(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a=n[o],s=a.length,u=i[o]=new Array(s),l,f,c=0;c<s;++c)(l=a[c])&&(f=e.call(l,l.__data__,c,a))&&("__data__"in l&&(f.__data__=l.__data__),u[c]=f);return new rt(i,this._parents)}function Io(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Do(){return[]}function si(e){return e==null?Do:function(){return this.querySelectorAll(e)}}function $o(e){return function(){return Io(e.apply(this,arguments))}}function jo(e){typeof e=="function"?e=$o(e):e=si(e);for(var n=this._groups,r=n.length,i=[],o=[],a=0;a<r;++a)for(var s=n[a],u=s.length,l,f=0;f<u;++f)(l=s[f])&&(i.push(e.call(l,l.__data__,f,s)),o.push(l));return new rt(i,o)}function ui(e){return function(){return this.matches(e)}}function li(e){return function(n){return n.matches(e)}}var Fo=Array.prototype.find;function Uo(e){return function(){return Fo.call(this.children,e)}}function Lo(){return this.firstElementChild}function qo(e){return this.select(e==null?Lo:Uo(typeof e=="function"?e:li(e)))}var Ho=Array.prototype.filter;function Go(){return Array.from(this.children)}function Vo(e){return function(){return Ho.call(this.children,e)}}function Wo(e){return this.selectAll(e==null?Go:Vo(typeof e=="function"?e:li(e)))}function Bo(e){typeof e!="function"&&(e=ui(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a=n[o],s=a.length,u=i[o]=[],l,f=0;f<s;++f)(l=a[f])&&e.call(l,l.__data__,f,a)&&u.push(l);return new rt(i,this._parents)}function fi(e){return new Array(e.length)}function Xo(){return new rt(this._enter||this._groups.map(fi),this._parents)}function Re(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}Re.prototype={constructor:Re,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Yo(e){return function(){return e}}function Zo(e,n,r,i,o,a){for(var s=0,u,l=n.length,f=a.length;s<f;++s)(u=n[s])?(u.__data__=a[s],i[s]=u):r[s]=new Re(e,a[s]);for(;s<l;++s)(u=n[s])&&(o[s]=u)}function Ko(e,n,r,i,o,a,s){var u,l,f=new Map,c=n.length,h=a.length,d=new Array(c),p;for(u=0;u<c;++u)(l=n[u])&&(d[u]=p=s.call(l,l.__data__,u,n)+"",f.has(p)?o[u]=l:f.set(p,l));for(u=0;u<h;++u)p=s.call(e,a[u],u,a)+"",(l=f.get(p))?(i[u]=l,l.__data__=a[u],f.delete(p)):r[u]=new Re(e,a[u]);for(u=0;u<c;++u)(l=n[u])&&f.get(d[u])===l&&(o[u]=l)}function Qo(e){return e.__data__}function Jo(e,n){if(!arguments.length)return Array.from(this,Qo);var r=n?Ko:Zo,i=this._parents,o=this._groups;typeof e!="function"&&(e=Yo(e));for(var a=o.length,s=new Array(a),u=new Array(a),l=new Array(a),f=0;f<a;++f){var c=i[f],h=o[f],d=h.length,p=ta(e.call(c,c&&c.__data__,f,i)),y=p.length,x=u[f]=new Array(y),_=s[f]=new Array(y),g=l[f]=new Array(d);r(c,h,x,_,g,p,n);for(var w=0,S=0,b,m;w<y;++w)if(b=x[w]){for(w>=S&&(S=w+1);!(m=_[S])&&++S<y;);b._next=m||null}}return s=new rt(s,i),s._enter=u,s._exit=l,s}function ta(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ea(){return new rt(this._exit||this._groups.map(fi),this._parents)}function na(e,n,r){var i=this.enter(),o=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),n!=null&&(o=n(o),o&&(o=o.selection())),r==null?a.remove():r(a),i&&o?i.merge(o).order():o}function ra(e){for(var n=e.selection?e.selection():e,r=this._groups,i=n._groups,o=r.length,a=i.length,s=Math.min(o,a),u=new Array(o),l=0;l<s;++l)for(var f=r[l],c=i[l],h=f.length,d=u[l]=new Array(h),p,y=0;y<h;++y)(p=f[y]||c[y])&&(d[y]=p);for(;l<o;++l)u[l]=r[l];return new rt(u,this._parents)}function ia(){for(var e=this._groups,n=-1,r=e.length;++n<r;)for(var i=e[n],o=i.length-1,a=i[o],s;--o>=0;)(s=i[o])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function oa(e){e||(e=aa);function n(h,d){return h&&d?e(h.__data__,d.__data__):!h-!d}for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a){for(var s=r[a],u=s.length,l=o[a]=new Array(u),f,c=0;c<u;++c)(f=s[c])&&(l[c]=f);l.sort(n)}return new rt(o,this._parents).order()}function aa(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function sa(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function ua(){return Array.from(this)}function la(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null}function fa(){let e=0;for(const n of this)++e;return e}function ca(){return!this.node()}function ha(e){for(var n=this._groups,r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length,u;a<s;++a)(u=o[a])&&e.call(u,u.__data__,a,o);return this}function da(e){return function(){this.removeAttribute(e)}}function pa(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ga(e,n){return function(){this.setAttribute(e,n)}}function ya(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function _a(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function va(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function ma(e,n){var r=Be(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((n==null?r.local?pa:da:typeof n=="function"?r.local?va:_a:r.local?ya:ga)(r,n))}function ci(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function xa(e){return function(){this.style.removeProperty(e)}}function ba(e,n,r){return function(){this.style.setProperty(e,n,r)}}function wa(e,n,r){return function(){var i=n.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function ka(e,n,r){return arguments.length>1?this.each((n==null?xa:typeof n=="function"?wa:ba)(e,n,r??"")):Vt(this.node(),e)}function Vt(e,n){return e.style.getPropertyValue(n)||ci(e).getComputedStyle(e,null).getPropertyValue(n)}function Aa(e){return function(){delete this[e]}}function Ca(e,n){return function(){this[e]=n}}function Sa(e,n){return function(){var r=n.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Ma(e,n){return arguments.length>1?this.each((n==null?Aa:typeof n=="function"?Sa:Ca)(e,n)):this.node()[e]}function hi(e){return e.trim().split(/^|\s+/)}function In(e){return e.classList||new di(e)}function di(e){this._node=e,this._names=hi(e.getAttribute("class")||"")}di.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function pi(e,n){for(var r=In(e),i=-1,o=n.length;++i<o;)r.add(n[i])}function gi(e,n){for(var r=In(e),i=-1,o=n.length;++i<o;)r.remove(n[i])}function Ta(e){return function(){pi(this,e)}}function Pa(e){return function(){gi(this,e)}}function Oa(e,n){return function(){(n.apply(this,arguments)?pi:gi)(this,e)}}function Ea(e,n){var r=hi(e+"");if(arguments.length<2){for(var i=In(this.node()),o=-1,a=r.length;++o<a;)if(!i.contains(r[o]))return!1;return!0}return this.each((typeof n=="function"?Oa:n?Ta:Pa)(r,n))}function za(){this.textContent=""}function Ra(e){return function(){this.textContent=e}}function Na(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function Ia(e){return arguments.length?this.each(e==null?za:(typeof e=="function"?Na:Ra)(e)):this.node().textContent}function Da(){this.innerHTML=""}function $a(e){return function(){this.innerHTML=e}}function ja(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function Fa(e){return arguments.length?this.each(e==null?Da:(typeof e=="function"?ja:$a)(e)):this.node().innerHTML}function Ua(){this.nextSibling&&this.parentNode.appendChild(this)}function La(){return this.each(Ua)}function qa(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ha(){return this.each(qa)}function Ga(e){var n=typeof e=="function"?e:ai(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Va(){return null}function Wa(e,n){var r=typeof e=="function"?e:ai(e),i=n==null?Va:typeof n=="function"?n:Nn(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Ba(){var e=this.parentNode;e&&e.removeChild(this)}function Xa(){return this.each(Ba)}function Ya(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function Za(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function Ka(e){return this.select(e?Za:Ya)}function Qa(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Ja(e){return function(n){e.call(this,n,this.__data__)}}function ts(e){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");return i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),{type:n,name:r}})}function es(e){return function(){var n=this.__on;if(n){for(var r=0,i=-1,o=n.length,a;r<o;++r)a=n[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):n[++i]=a;++i?n.length=i:delete this.__on}}}function ns(e,n,r){return function(){var i=this.__on,o,a=Ja(n);if(i){for(var s=0,u=i.length;s<u;++s)if((o=i[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=r),o.value=n;return}}this.addEventListener(e.type,a,r),o={type:e.type,name:e.name,value:n,listener:a,options:r},i?i.push(o):this.__on=[o]}}function rs(e,n,r){var i=ts(e+""),o,a=i.length,s;if(arguments.length<2){var u=this.node().__on;if(u){for(var l=0,f=u.length,c;l<f;++l)for(o=0,c=u[l];o<a;++o)if((s=i[o]).type===c.type&&s.name===c.name)return c.value}return}for(u=n?ns:es,o=0;o<a;++o)this.each(u(i[o],n,r));return this}function yi(e,n,r){var i=ci(e),o=i.CustomEvent;typeof o=="function"?o=new o(n,r):(o=i.document.createEvent("Event"),r?(o.initEvent(n,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(n,!1,!1)),e.dispatchEvent(o)}function is(e,n){return function(){return yi(this,e,n)}}function os(e,n){return function(){return yi(this,e,n.apply(this,arguments))}}function as(e,n){return this.each((typeof n=="function"?os:is)(e,n))}function*ss(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&(yield s)}var _i=[null];function rt(e,n){this._groups=e,this._parents=n}function ye(){return new rt([[document.documentElement]],_i)}function us(){return this}rt.prototype=ye.prototype={constructor:rt,select:No,selectAll:jo,selectChild:qo,selectChildren:Wo,filter:Bo,data:Jo,enter:Xo,exit:ea,join:na,merge:ra,selection:us,order:ia,sort:oa,call:sa,nodes:ua,node:la,size:fa,empty:ca,each:ha,attr:ma,style:ka,property:Ma,classed:Ea,text:Ia,html:Fa,raise:La,lower:Ha,append:Ga,insert:Wa,remove:Xa,clone:Ka,datum:Qa,on:rs,dispatch:as,[Symbol.iterator]:ss};function st(e){return typeof e=="string"?new rt([[document.querySelector(e)]],[document.documentElement]):new rt([[e]],_i)}function ls(e){let n;for(;n=e.sourceEvent;)e=n;return e}function yt(e,n){if(e=ls(e),n===void 0&&(n=e.currentTarget),n){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var i=r.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]}if(n.getBoundingClientRect){var o=n.getBoundingClientRect();return[e.clientX-o.left-n.clientLeft,e.clientY-o.top-n.clientTop]}}return[e.pageX,e.pageY]}var fs={value:()=>{}};function _e(){for(var e=0,n=arguments.length,r={},i;e<n;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new Me(r)}function Me(e){this._=e}function cs(e,n){return e.trim().split(/^|\s+/).map(function(r){var i="",o=r.indexOf(".");if(o>=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}Me.prototype=_e.prototype={constructor:Me,on:function(e,n){var r=this._,i=cs(e+"",r),o,a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((o=(e=i[a]).type)&&(o=hs(r[o],e.name)))return o;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++a<s;)if(o=(e=i[a]).type)r[o]=tr(r[o],e.name,n);else if(n==null)for(o in r)r[o]=tr(r[o],e.name,null);return this},copy:function(){var e={},n=this._;for(var r in n)e[r]=n[r].slice();return new Me(e)},call:function(e,n){if((o=arguments.length-2)>0)for(var r=new Array(o),i=0,o,a;i<o;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,o=a.length;i<o;++i)a[i].value.apply(n,r)},apply:function(e,n,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,a=i.length;o<a;++o)i[o].value.apply(n,r)}};function hs(e,n){for(var r=0,i=e.length,o;r<i;++r)if((o=e[r]).name===n)return o.value}function tr(e,n,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===n){e[i]=fs,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:n,value:r}),e}const ds={passive:!1},fe={capture:!0,passive:!1};function en(e){e.stopImmediatePropagation()}function Ht(e){e.preventDefault(),e.stopImmediatePropagation()}function vi(e){var n=e.document.documentElement,r=st(e).on("dragstart.drag",Ht,fe);"onselectstart"in n?r.on("selectstart.drag",Ht,fe):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function mi(e,n){var r=e.document.documentElement,i=st(e).on("dragstart.drag",null);n&&(i.on("click.drag",Ht,fe),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const xe=e=>()=>e;function _n(e,{sourceEvent:n,subject:r,target:i,identifier:o,active:a,x:s,y:u,dx:l,dy:f,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:c}})}_n.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function ps(e){return!e.ctrlKey&&!e.button}function gs(){return this.parentNode}function ys(e,n){return n??{x:e.x,y:e.y}}function _s(){return navigator.maxTouchPoints||"ontouchstart"in this}function vs(){var e=ps,n=gs,r=ys,i=_s,o={},a=_e("start","drag","end"),s=0,u,l,f,c,h=0;function d(b){b.on("mousedown.drag",p).filter(i).on("touchstart.drag",_).on("touchmove.drag",g,ds).on("touchend.drag touchcancel.drag",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(b,m){if(!(c||!e.call(this,b,m))){var A=S(this,n.call(this,b,m),b,m,"mouse");A&&(st(b.view).on("mousemove.drag",y,fe).on("mouseup.drag",x,fe),vi(b.view),en(b),f=!1,u=b.clientX,l=b.clientY,A("start",b))}}function y(b){if(Ht(b),!f){var m=b.clientX-u,A=b.clientY-l;f=m*m+A*A>h}o.mouse("drag",b)}function x(b){st(b.view).on("mousemove.drag mouseup.drag",null),mi(b.view,f),Ht(b),o.mouse("end",b)}function _(b,m){if(e.call(this,b,m)){var A=b.changedTouches,C=n.call(this,b,m),M=A.length,z,P;for(z=0;z<M;++z)(P=S(this,C,b,m,A[z].identifier,A[z]))&&(en(b),P("start",b,A[z]))}}function g(b){var m=b.changedTouches,A=m.length,C,M;for(C=0;C<A;++C)(M=o[m[C].identifier])&&(Ht(b),M("drag",b,m[C]))}function w(b){var m=b.changedTouches,A=m.length,C,M;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),C=0;C<A;++C)(M=o[m[C].identifier])&&(en(b),M("end",b,m[C]))}function S(b,m,A,C,M,z){var P=a.copy(),R=yt(z||A,m),N,j,k;if((k=r.call(b,new _n("beforestart",{sourceEvent:A,target:d,identifier:M,active:s,x:R[0],y:R[1],dx:0,dy:0,dispatch:P}),C))!=null)return N=k.x-R[0]||0,j=k.y-R[1]||0,function E(T,I,$){var F=R,U;switch(T){case"start":o[M]=E,U=s++;break;case"end":delete o[M],--s;case"drag":R=yt($||I,m),U=s;break}P.call(T,b,new _n(T,{sourceEvent:I,subject:k,target:d,identifier:M,active:U,x:R[0]+N,y:R[1]+j,dx:R[0]-F[0],dy:R[1]-F[1],dispatch:P}),C)}}return d.filter=function(b){return arguments.length?(e=typeof b=="function"?b:xe(!!b),d):e},d.container=function(b){return arguments.length?(n=typeof b=="function"?b:xe(b),d):n},d.subject=function(b){return arguments.length?(r=typeof b=="function"?b:xe(b),d):r},d.touchable=function(b){return arguments.length?(i=typeof b=="function"?b:xe(!!b),d):i},d.on=function(){var b=a.on.apply(a,arguments);return b===a?d:b},d.clickDistance=function(b){return arguments.length?(h=(b=+b)*b,d):Math.sqrt(h)},d}function Dn(e,n,r){e.prototype=n.prototype=r,r.constructor=e}function xi(e,n){var r=Object.create(e.prototype);for(var i in n)r[i]=n[i];return r}function ve(){}var ce=.7,Ne=1/ce,Gt="\\s*([+-]?\\d+)\\s*",he="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ms=/^#([0-9a-f]{3,8})$/,xs=new RegExp(`^rgb\\(${Gt},${Gt},${Gt}\\)$`),bs=new RegExp(`^rgb\\(${vt},${vt},${vt}\\)$`),ws=new RegExp(`^rgba\\(${Gt},${Gt},${Gt},${he}\\)$`),ks=new RegExp(`^rgba\\(${vt},${vt},${vt},${he}\\)$`),As=new RegExp(`^hsl\\(${he},${vt},${vt}\\)$`),Cs=new RegExp(`^hsla\\(${he},${vt},${vt},${he}\\)$`),er={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Dn(ve,de,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nr,formatHex:nr,formatHex8:Ss,formatHsl:Ms,formatRgb:rr,toString:rr});function nr(){return this.rgb().formatHex()}function Ss(){return this.rgb().formatHex8()}function Ms(){return bi(this).formatHsl()}function rr(){return this.rgb().formatRgb()}function de(e){var n,r;return e=(e+"").trim().toLowerCase(),(n=ms.exec(e))?(r=n[1].length,n=parseInt(n[1],16),r===6?ir(n):r===3?new tt(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?be(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?be(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=xs.exec(e))?new tt(n[1],n[2],n[3],1):(n=bs.exec(e))?new tt(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=ws.exec(e))?be(n[1],n[2],n[3],n[4]):(n=ks.exec(e))?be(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=As.exec(e))?sr(n[1],n[2]/100,n[3]/100,1):(n=Cs.exec(e))?sr(n[1],n[2]/100,n[3]/100,n[4]):er.hasOwnProperty(e)?ir(er[e]):e==="transparent"?new tt(NaN,NaN,NaN,0):null}function ir(e){return new tt(e>>16&255,e>>8&255,e&255,1)}function be(e,n,r,i){return i<=0&&(e=n=r=NaN),new tt(e,n,r,i)}function Ts(e){return e instanceof ve||(e=de(e)),e?(e=e.rgb(),new tt(e.r,e.g,e.b,e.opacity)):new tt}function vn(e,n,r,i){return arguments.length===1?Ts(e):new tt(e,n,r,i??1)}function tt(e,n,r,i){this.r=+e,this.g=+n,this.b=+r,this.opacity=+i}Dn(tt,vn,xi(ve,{brighter(e){return e=e==null?Ne:Math.pow(Ne,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ce:Math.pow(ce,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tt(jt(this.r),jt(this.g),jt(this.b),Ie(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:or,formatHex:or,formatHex8:Ps,formatRgb:ar,toString:ar}));function or(){return`#${$t(this.r)}${$t(this.g)}${$t(this.b)}`}function Ps(){return`#${$t(this.r)}${$t(this.g)}${$t(this.b)}${$t((isNaN(this.opacity)?1:this.opacity)*255)}`}function ar(){const e=Ie(this.opacity);return`${e===1?"rgb(":"rgba("}${jt(this.r)}, ${jt(this.g)}, ${jt(this.b)}${e===1?")":`, ${e})`}`}function Ie(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function jt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $t(e){return e=jt(e),(e<16?"0":"")+e.toString(16)}function sr(e,n,r,i){return i<=0?e=n=r=NaN:r<=0||r>=1?e=n=NaN:n<=0&&(e=NaN),new ht(e,n,r,i)}function bi(e){if(e instanceof ht)return new ht(e.h,e.s,e.l,e.opacity);if(e instanceof ve||(e=de(e)),!e)return new ht;if(e instanceof ht)return e;e=e.rgb();var n=e.r/255,r=e.g/255,i=e.b/255,o=Math.min(n,r,i),a=Math.max(n,r,i),s=NaN,u=a-o,l=(a+o)/2;return u?(n===a?s=(r-i)/u+(r<i)*6:r===a?s=(i-n)/u+2:s=(n-r)/u+4,u/=l<.5?a+o:2-a-o,s*=60):u=l>0&&l<1?0:s,new ht(s,u,l,e.opacity)}function Os(e,n,r,i){return arguments.length===1?bi(e):new ht(e,n,r,i??1)}function ht(e,n,r,i){this.h=+e,this.s=+n,this.l=+r,this.opacity=+i}Dn(ht,Os,xi(ve,{brighter(e){return e=e==null?Ne:Math.pow(Ne,e),new ht(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ce:Math.pow(ce,e),new ht(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*n,o=2*r-i;return new tt(nn(e>=240?e-240:e+120,o,i),nn(e,o,i),nn(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new ht(ur(this.h),we(this.s),we(this.l),Ie(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ie(this.opacity);return`${e===1?"hsl(":"hsla("}${ur(this.h)}, ${we(this.s)*100}%, ${we(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ur(e){return e=(e||0)%360,e<0?e+360:e}function we(e){return Math.max(0,Math.min(1,e||0))}function nn(e,n,r){return(e<60?n+(r-n)*e/60:e<180?r:e<240?n+(r-n)*(240-e)/60:n)*255}const wi=e=>()=>e;function Es(e,n){return function(r){return e+r*n}}function zs(e,n,r){return e=Math.pow(e,r),n=Math.pow(n,r)-e,r=1/r,function(i){return Math.pow(e+i*n,r)}}function Rs(e){return(e=+e)==1?ki:function(n,r){return r-n?zs(n,r,e):wi(isNaN(n)?r:n)}}function ki(e,n){var r=n-e;return r?Es(e,r):wi(isNaN(e)?n:e)}const lr=(function e(n){var r=Rs(n);function i(o,a){var s=r((o=vn(o)).r,(a=vn(a)).r),u=r(o.g,a.g),l=r(o.b,a.b),f=ki(o.opacity,a.opacity);return function(c){return o.r=s(c),o.g=u(c),o.b=l(c),o.opacity=f(c),o+""}}return i.gamma=e,i})(1);function Nt(e,n){return e=+e,n=+n,function(r){return e*(1-r)+n*r}}var mn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rn=new RegExp(mn.source,"g");function Ns(e){return function(){return e}}function Is(e){return function(n){return e(n)+""}}function Ds(e,n){var r=mn.lastIndex=rn.lastIndex=0,i,o,a,s=-1,u=[],l=[];for(e=e+"",n=n+"";(i=mn.exec(e))&&(o=rn.exec(n));)(a=o.index)>r&&(a=n.slice(r,a),u[s]?u[s]+=a:u[++s]=a),(i=i[0])===(o=o[0])?u[s]?u[s]+=o:u[++s]=o:(u[++s]=null,l.push({i:s,x:Nt(i,o)})),r=rn.lastIndex;return r<n.length&&(a=n.slice(r),u[s]?u[s]+=a:u[++s]=a),u.length<2?l[0]?Is(l[0].x):Ns(n):(n=l.length,function(f){for(var c=0,h;c<n;++c)u[(h=l[c]).i]=h.x(f);return u.join("")})}var fr=180/Math.PI,xn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ai(e,n,r,i,o,a){var s,u,l;return(s=Math.sqrt(e*e+n*n))&&(e/=s,n/=s),(l=e*r+n*i)&&(r-=e*l,i-=n*l),(u=Math.sqrt(r*r+i*i))&&(r/=u,i/=u,l/=u),e*i<n*r&&(e=-e,n=-n,l=-l,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(n,e)*fr,skewX:Math.atan(l)*fr,scaleX:s,scaleY:u}}var ke;function $s(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?xn:Ai(n.a,n.b,n.c,n.d,n.e,n.f)}function js(e){return e==null||(ke||(ke=document.createElementNS("http://www.w3.org/2000/svg","g")),ke.setAttribute("transform",e),!(e=ke.transform.baseVal.consolidate()))?xn:(e=e.matrix,Ai(e.a,e.b,e.c,e.d,e.e,e.f))}function Ci(e,n,r,i){function o(f){return f.length?f.pop()+" ":""}function a(f,c,h,d,p,y){if(f!==h||c!==d){var x=p.push("translate(",null,n,null,r);y.push({i:x-4,x:Nt(f,h)},{i:x-2,x:Nt(c,d)})}else(h||d)&&p.push("translate("+h+n+d+r)}function s(f,c,h,d){f!==c?(f-c>180?c+=360:c-f>180&&(f+=360),d.push({i:h.push(o(h)+"rotate(",null,i)-2,x:Nt(f,c)})):c&&h.push(o(h)+"rotate("+c+i)}function u(f,c,h,d){f!==c?d.push({i:h.push(o(h)+"skewX(",null,i)-2,x:Nt(f,c)}):c&&h.push(o(h)+"skewX("+c+i)}function l(f,c,h,d,p,y){if(f!==h||c!==d){var x=p.push(o(p)+"scale(",null,",",null,")");y.push({i:x-4,x:Nt(f,h)},{i:x-2,x:Nt(c,d)})}else(h!==1||d!==1)&&p.push(o(p)+"scale("+h+","+d+")")}return function(f,c){var h=[],d=[];return f=e(f),c=e(c),a(f.translateX,f.translateY,c.translateX,c.translateY,h,d),s(f.rotate,c.rotate,h,d),u(f.skewX,c.skewX,h,d),l(f.scaleX,f.scaleY,c.scaleX,c.scaleY,h,d),f=c=null,function(p){for(var y=-1,x=d.length,_;++y<x;)h[(_=d[y]).i]=_.x(p);return h.join("")}}}var Fs=Ci($s,"px, ","px)","deg)"),Us=Ci(js,", ",")",")"),Ls=1e-12;function cr(e){return((e=Math.exp(e))+1/e)/2}function qs(e){return((e=Math.exp(e))-1/e)/2}function Hs(e){return((e=Math.exp(2*e))-1)/(e+1)}const Gs=(function e(n,r,i){function o(a,s){var u=a[0],l=a[1],f=a[2],c=s[0],h=s[1],d=s[2],p=c-u,y=h-l,x=p*p+y*y,_,g;if(x<Ls)g=Math.log(d/f)/n,_=function(C){return[u+C*p,l+C*y,f*Math.exp(n*C*g)]};else{var w=Math.sqrt(x),S=(d*d-f*f+i*x)/(2*f*r*w),b=(d*d-f*f-i*x)/(2*d*r*w),m=Math.log(Math.sqrt(S*S+1)-S),A=Math.log(Math.sqrt(b*b+1)-b);g=(A-m)/n,_=function(C){var M=C*g,z=cr(m),P=f/(r*w)*(z*Hs(n*M+m)-qs(m));return[u+P*p,l+P*y,f*z/cr(n*M+m)]}}return _.duration=g*1e3*n/Math.SQRT2,_}return o.rho=function(a){var s=Math.max(.001,+a),u=s*s,l=u*u;return e(s,u,l)},o})(Math.SQRT2,2,4);var Wt=0,ne=0,Xt=0,Si=1e3,De,re,$e=0,Ut=0,Xe=0,pe=typeof performance=="object"&&performance.now?performance:Date,Mi=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function $n(){return Ut||(Mi(Vs),Ut=pe.now()+Xe)}function Vs(){Ut=0}function je(){this._call=this._time=this._next=null}je.prototype=jn.prototype={constructor:je,restart:function(e,n,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?$n():+r)+(n==null?0:+n),!this._next&&re!==this&&(re?re._next=this:De=this,re=this),this._call=e,this._time=r,bn()},stop:function(){this._call&&(this._call=null,this._time=1/0,bn())}};function jn(e,n,r){var i=new je;return i.restart(e,n,r),i}function Ws(){$n(),++Wt;for(var e=De,n;e;)(n=Ut-e._time)>=0&&e._call.call(void 0,n),e=e._next;--Wt}function hr(){Ut=($e=pe.now())+Xe,Wt=ne=0;try{Ws()}finally{Wt=0,Xs(),Ut=0}}function Bs(){var e=pe.now(),n=e-$e;n>Si&&(Xe-=n,$e=e)}function Xs(){for(var e,n=De,r,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(r=n._next,n._next=null,n=e?e._next=r:De=r);re=e,bn(i)}function bn(e){if(!Wt){ne&&(ne=clearTimeout(ne));var n=e-Ut;n>24?(e<1/0&&(ne=setTimeout(hr,e-pe.now()-Xe)),Xt&&(Xt=clearInterval(Xt))):(Xt||($e=pe.now(),Xt=setInterval(Bs,Si)),Wt=1,Mi(hr))}}function dr(e,n,r){var i=new je;return n=n==null?0:+n,i.restart(o=>{i.stop(),e(o+n)},n,r),i}var Ys=_e("start","end","cancel","interrupt"),Zs=[],Ti=0,pr=1,wn=2,Te=3,gr=4,kn=5,Pe=6;function Ye(e,n,r,i,o,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;Ks(e,r,{name:n,index:i,group:o,on:Ys,tween:Zs,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Ti})}function Fn(e,n){var r=pt(e,n);if(r.state>Ti)throw new Error("too late; already scheduled");return r}function xt(e,n){var r=pt(e,n);if(r.state>Te)throw new Error("too late; already running");return r}function pt(e,n){var r=e.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function Ks(e,n,r){var i=e.__transition,o;i[n]=r,r.timer=jn(a,0,r.time);function a(f){r.state=pr,r.timer.restart(s,r.delay,r.time),r.delay<=f&&s(f-r.delay)}function s(f){var c,h,d,p;if(r.state!==pr)return l();for(c in i)if(p=i[c],p.name===r.name){if(p.state===Te)return dr(s);p.state===gr?(p.state=Pe,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete i[c]):+c<n&&(p.state=Pe,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete i[c])}if(dr(function(){r.state===Te&&(r.state=gr,r.timer.restart(u,r.delay,r.time),u(f))}),r.state=wn,r.on.call("start",e,e.__data__,r.index,r.group),r.state===wn){for(r.state=Te,o=new Array(d=r.tween.length),c=0,h=-1;c<d;++c)(p=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(o[++h]=p);o.length=h+1}}function u(f){for(var c=f<r.duration?r.ease.call(null,f/r.duration):(r.timer.restart(l),r.state=kn,1),h=-1,d=o.length;++h<d;)o[h].call(e,c);r.state===kn&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=Pe,r.timer.stop(),delete i[n];for(var f in i)return;delete e.__transition}}function Oe(e,n){var r=e.__transition,i,o,a=!0,s;if(r){n=n==null?null:n+"";for(s in r){if((i=r[s]).name!==n){a=!1;continue}o=i.state>wn&&i.state<kn,i.state=Pe,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[s]}a&&delete e.__transition}}function Qs(e){return this.each(function(){Oe(this,e)})}function Js(e,n){var r,i;return function(){var o=xt(this,e),a=o.tween;if(a!==r){i=r=a;for(var s=0,u=i.length;s<u;++s)if(i[s].name===n){i=i.slice(),i.splice(s,1);break}}o.tween=i}}function tu(e,n,r){var i,o;if(typeof r!="function")throw new Error;return function(){var a=xt(this,e),s=a.tween;if(s!==i){o=(i=s).slice();for(var u={name:n,value:r},l=0,f=o.length;l<f;++l)if(o[l].name===n){o[l]=u;break}l===f&&o.push(u)}a.tween=o}}function eu(e,n){var r=this._id;if(e+="",arguments.length<2){for(var i=pt(this.node(),r).tween,o=0,a=i.length,s;o<a;++o)if((s=i[o]).name===e)return s.value;return null}return this.each((n==null?Js:tu)(r,e,n))}function Un(e,n,r){var i=e._id;return e.each(function(){var o=xt(this,i);(o.value||(o.value={}))[n]=r.apply(this,arguments)}),function(o){return pt(o,i).value[n]}}function Pi(e,n){var r;return(typeof n=="number"?Nt:n instanceof de?lr:(r=de(n))?(n=r,lr):Ds)(e,n)}function nu(e){return function(){this.removeAttribute(e)}}function ru(e){return function(){this.removeAttributeNS(e.space,e.local)}}function iu(e,n,r){var i,o=r+"",a;return function(){var s=this.getAttribute(e);return s===o?null:s===i?a:a=n(i=s,r)}}function ou(e,n,r){var i,o=r+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===i?a:a=n(i=s,r)}}function au(e,n,r){var i,o,a;return function(){var s,u=r(this),l;return u==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=u+"",s===l?null:s===i&&l===o?a:(o=l,a=n(i=s,u)))}}function su(e,n,r){var i,o,a;return function(){var s,u=r(this),l;return u==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=u+"",s===l?null:s===i&&l===o?a:(o=l,a=n(i=s,u)))}}function uu(e,n){var r=Be(e),i=r==="transform"?Us:Pi;return this.attrTween(e,typeof n=="function"?(r.local?su:au)(r,i,Un(this,"attr."+e,n)):n==null?(r.local?ru:nu)(r):(r.local?ou:iu)(r,i,n))}function lu(e,n){return function(r){this.setAttribute(e,n.call(this,r))}}function fu(e,n){return function(r){this.setAttributeNS(e.space,e.local,n.call(this,r))}}function cu(e,n){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&fu(e,a)),r}return o._value=n,o}function hu(e,n){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&lu(e,a)),r}return o._value=n,o}function du(e,n){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;var i=Be(e);return this.tween(r,(i.local?cu:hu)(i,n))}function pu(e,n){return function(){Fn(this,e).delay=+n.apply(this,arguments)}}function gu(e,n){return n=+n,function(){Fn(this,e).delay=n}}function yu(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?pu:gu)(n,e)):pt(this.node(),n).delay}function _u(e,n){return function(){xt(this,e).duration=+n.apply(this,arguments)}}function vu(e,n){return n=+n,function(){xt(this,e).duration=n}}function mu(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?_u:vu)(n,e)):pt(this.node(),n).duration}function xu(e,n){if(typeof n!="function")throw new Error;return function(){xt(this,e).ease=n}}function bu(e){var n=this._id;return arguments.length?this.each(xu(n,e)):pt(this.node(),n).ease}function wu(e,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;xt(this,e).ease=r}}function ku(e){if(typeof e!="function")throw new Error;return this.each(wu(this._id,e))}function Au(e){typeof e!="function"&&(e=ui(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a=n[o],s=a.length,u=i[o]=[],l,f=0;f<s;++f)(l=a[f])&&e.call(l,l.__data__,f,a)&&u.push(l);return new Et(i,this._parents,this._name,this._id)}function Cu(e){if(e._id!==this._id)throw new Error;for(var n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var l=n[u],f=r[u],c=l.length,h=s[u]=new Array(c),d,p=0;p<c;++p)(d=l[p]||f[p])&&(h[p]=d);for(;u<i;++u)s[u]=n[u];return new Et(s,this._parents,this._name,this._id)}function Su(e){return(e+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||n==="start"})}function Mu(e,n,r){var i,o,a=Su(n)?Fn:xt;return function(){var s=a(this,e),u=s.on;u!==i&&(o=(i=u).copy()).on(n,r),s.on=o}}function Tu(e,n){var r=this._id;return arguments.length<2?pt(this.node(),r).on.on(e):this.each(Mu(r,e,n))}function Pu(e){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==e)return;n&&n.removeChild(this)}}function Ou(){return this.on("end.remove",Pu(this._id))}function Eu(e){var n=this._name,r=this._id;typeof e!="function"&&(e=Nn(e));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var u=i[s],l=u.length,f=a[s]=new Array(l),c,h,d=0;d<l;++d)(c=u[d])&&(h=e.call(c,c.__data__,d,u))&&("__data__"in c&&(h.__data__=c.__data__),f[d]=h,Ye(f[d],n,r,d,f,pt(c,r)));return new Et(a,this._parents,n,r)}function zu(e){var n=this._name,r=this._id;typeof e!="function"&&(e=si(e));for(var i=this._groups,o=i.length,a=[],s=[],u=0;u<o;++u)for(var l=i[u],f=l.length,c,h=0;h<f;++h)if(c=l[h]){for(var d=e.call(c,c.__data__,h,l),p,y=pt(c,r),x=0,_=d.length;x<_;++x)(p=d[x])&&Ye(p,n,r,x,d,y);a.push(d),s.push(c)}return new Et(a,s,n,r)}var Ru=ye.prototype.constructor;function Nu(){return new Ru(this._groups,this._parents)}function Iu(e,n){var r,i,o;return function(){var a=Vt(this,e),s=(this.style.removeProperty(e),Vt(this,e));return a===s?null:a===r&&s===i?o:o=n(r=a,i=s)}}function Oi(e){return function(){this.style.removeProperty(e)}}function Du(e,n,r){var i,o=r+"",a;return function(){var s=Vt(this,e);return s===o?null:s===i?a:a=n(i=s,r)}}function $u(e,n,r){var i,o,a;return function(){var s=Vt(this,e),u=r(this),l=u+"";return u==null&&(l=u=(this.style.removeProperty(e),Vt(this,e))),s===l?null:s===i&&l===o?a:(o=l,a=n(i=s,u))}}function ju(e,n){var r,i,o,a="style."+n,s="end."+a,u;return function(){var l=xt(this,e),f=l.on,c=l.value[a]==null?u||(u=Oi(n)):void 0;(f!==r||o!==c)&&(i=(r=f).copy()).on(s,o=c),l.on=i}}function Fu(e,n,r){var i=(e+="")=="transform"?Fs:Pi;return n==null?this.styleTween(e,Iu(e,i)).on("end.style."+e,Oi(e)):typeof n=="function"?this.styleTween(e,$u(e,i,Un(this,"style."+e,n))).each(ju(this._id,e)):this.styleTween(e,Du(e,i,n),r).on("end.style."+e,null)}function Uu(e,n,r){return function(i){this.style.setProperty(e,n.call(this,i),r)}}function Lu(e,n,r){var i,o;function a(){var s=n.apply(this,arguments);return s!==o&&(i=(o=s)&&Uu(e,s,r)),i}return a._value=n,a}function qu(e,n,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;return this.tween(i,Lu(e,n,r??""))}function Hu(e){return function(){this.textContent=e}}function Gu(e){return function(){var n=e(this);this.textContent=n??""}}function Vu(e){return this.tween("text",typeof e=="function"?Gu(Un(this,"text",e)):Hu(e==null?"":e+""))}function Wu(e){return function(n){this.textContent=e.call(this,n)}}function Bu(e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&Wu(o)),n}return i._value=e,i}function Xu(e){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,Bu(e))}function Yu(){for(var e=this._name,n=this._id,r=Ei(),i=this._groups,o=i.length,a=0;a<o;++a)for(var s=i[a],u=s.length,l,f=0;f<u;++f)if(l=s[f]){var c=pt(l,n);Ye(l,e,r,f,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Et(i,this._parents,e,r)}function Zu(){var e,n,r=this,i=r._id,o=r.size();return new Promise(function(a,s){var u={value:s},l={value:function(){--o===0&&a()}};r.each(function(){var f=xt(this,i),c=f.on;c!==e&&(n=(e=c).copy(),n._.cancel.push(u),n._.interrupt.push(u),n._.end.push(l)),f.on=n}),o===0&&a()})}var Ku=0;function Et(e,n,r,i){this._groups=e,this._parents=n,this._name=r,this._id=i}function Ei(){return++Ku}var kt=ye.prototype;Et.prototype={constructor:Et,select:Eu,selectAll:zu,selectChild:kt.selectChild,selectChildren:kt.selectChildren,filter:Au,merge:Cu,selection:Nu,transition:Yu,call:kt.call,nodes:kt.nodes,node:kt.node,size:kt.size,empty:kt.empty,each:kt.each,on:Tu,attr:uu,attrTween:du,style:Fu,styleTween:qu,text:Vu,textTween:Xu,remove:Ou,tween:eu,delay:yu,duration:mu,ease:bu,easeVarying:ku,end:Zu,[Symbol.iterator]:kt[Symbol.iterator]};function Qu(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Ju={time:null,delay:0,duration:250,ease:Qu};function tl(e,n){for(var r;!(r=e.__transition)||!(r=r[n]);)if(!(e=e.parentNode))throw new Error(`transition ${n} not found`);return r}function el(e){var n,r;e instanceof Et?(n=e._id,e=e._name):(n=Ei(),(r=Ju).time=$n(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var s=i[a],u=s.length,l,f=0;f<u;++f)(l=s[f])&&Ye(l,e,n,f,s,r||tl(l,n));return new Et(i,this._parents,e,n)}ye.prototype.interrupt=Qs;ye.prototype.transition=el;const Ae=e=>()=>e;function nl(e,{sourceEvent:n,target:r,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function Tt(e,n,r){this.k=e,this.x=n,this.y=r}Tt.prototype={constructor:Tt,scale:function(e){return e===1?this:new Tt(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new Tt(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ln=new Tt(1,0,0);gt.prototype=Tt.prototype;function gt(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ln;return e.__zoom}function on(e){e.stopImmediatePropagation()}function Yt(e){e.preventDefault(),e.stopImmediatePropagation()}function rl(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function il(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function yr(){return this.__zoom||Ln}function ol(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function al(){return navigator.maxTouchPoints||"ontouchstart"in this}function sl(e,n,r){var i=e.invertX(n[0][0])-r[0][0],o=e.invertX(n[1][0])-r[1][0],a=e.invertY(n[0][1])-r[0][1],s=e.invertY(n[1][1])-r[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function ul(){var e=rl,n=il,r=sl,i=ol,o=al,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],u=250,l=Gs,f=_e("start","zoom","end"),c,h,d,p=500,y=150,x=0,_=10;function g(k){k.property("__zoom",yr).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",z).on("dblclick.zoom",P).filter(o).on("touchstart.zoom",R).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}g.transform=function(k,E,T,I){var $=k.selection?k.selection():k;$.property("__zoom",yr),k!==$?m(k,E,T,I):$.interrupt().each(function(){A(this,arguments).event(I).start().zoom(null,typeof E=="function"?E.apply(this,arguments):E).end()})},g.scaleBy=function(k,E,T,I){g.scaleTo(k,function(){var $=this.__zoom.k,F=typeof E=="function"?E.apply(this,arguments):E;return $*F},T,I)},g.scaleTo=function(k,E,T,I){g.transform(k,function(){var $=n.apply(this,arguments),F=this.__zoom,U=T==null?b($):typeof T=="function"?T.apply(this,arguments):T,L=F.invert(U),q=typeof E=="function"?E.apply(this,arguments):E;return r(S(w(F,q),U,L),$,s)},T,I)},g.translateBy=function(k,E,T,I){g.transform(k,function(){return r(this.__zoom.translate(typeof E=="function"?E.apply(this,arguments):E,typeof T=="function"?T.apply(this,arguments):T),n.apply(this,arguments),s)},null,I)},g.translateTo=function(k,E,T,I,$){g.transform(k,function(){var F=n.apply(this,arguments),U=this.__zoom,L=I==null?b(F):typeof I=="function"?I.apply(this,arguments):I;return r(Ln.translate(L[0],L[1]).scale(U.k).translate(typeof E=="function"?-E.apply(this,arguments):-E,typeof T=="function"?-T.apply(this,arguments):-T),F,s)},I,$)};function w(k,E){return E=Math.max(a[0],Math.min(a[1],E)),E===k.k?k:new Tt(E,k.x,k.y)}function S(k,E,T){var I=E[0]-T[0]*k.k,$=E[1]-T[1]*k.k;return I===k.x&&$===k.y?k:new Tt(k.k,I,$)}function b(k){return[(+k[0][0]+ +k[1][0])/2,(+k[0][1]+ +k[1][1])/2]}function m(k,E,T,I){k.on("start.zoom",function(){A(this,arguments).event(I).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(I).end()}).tween("zoom",function(){var $=this,F=arguments,U=A($,F).event(I),L=n.apply($,F),q=T==null?b(L):typeof T=="function"?T.apply($,F):T,Y=Math.max(L[1][0]-L[0][0],L[1][1]-L[0][1]),X=$.__zoom,lt=typeof E=="function"?E.apply($,F):E,bt=l(X.invert(q).concat(Y/X.k),lt.invert(q).concat(Y/lt.k));return function(ft){if(ft===1)ft=lt;else{var wt=bt(ft),tn=Y/wt[2];ft=new Tt(tn,q[0]-wt[0]*tn,q[1]-wt[1]*tn)}U.zoom(null,ft)}})}function A(k,E,T){return!T&&k.__zooming||new C(k,E)}function C(k,E){this.that=k,this.args=E,this.active=0,this.sourceEvent=null,this.extent=n.apply(k,E),this.taps=0}C.prototype={event:function(k){return k&&(this.sourceEvent=k),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(k,E){return this.mouse&&k!=="mouse"&&(this.mouse[1]=E.invert(this.mouse[0])),this.touch0&&k!=="touch"&&(this.touch0[1]=E.invert(this.touch0[0])),this.touch1&&k!=="touch"&&(this.touch1[1]=E.invert(this.touch1[0])),this.that.__zoom=E,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(k){var E=st(this.that).datum();f.call(k,this.that,new nl(k,{sourceEvent:this.sourceEvent,target:g,transform:this.that.__zoom,dispatch:f}),E)}};function M(k,...E){if(!e.apply(this,arguments))return;var T=A(this,E).event(k),I=this.__zoom,$=Math.max(a[0],Math.min(a[1],I.k*Math.pow(2,i.apply(this,arguments)))),F=yt(k);if(T.wheel)(T.mouse[0][0]!==F[0]||T.mouse[0][1]!==F[1])&&(T.mouse[1]=I.invert(T.mouse[0]=F)),clearTimeout(T.wheel);else{if(I.k===$)return;T.mouse=[F,I.invert(F)],Oe(this),T.start()}Yt(k),T.wheel=setTimeout(U,y),T.zoom("mouse",r(S(w(I,$),T.mouse[0],T.mouse[1]),T.extent,s));function U(){T.wheel=null,T.end()}}function z(k,...E){if(d||!e.apply(this,arguments))return;var T=k.currentTarget,I=A(this,E,!0).event(k),$=st(k.view).on("mousemove.zoom",q,!0).on("mouseup.zoom",Y,!0),F=yt(k,T),U=k.clientX,L=k.clientY;vi(k.view),on(k),I.mouse=[F,this.__zoom.invert(F)],Oe(this),I.start();function q(X){if(Yt(X),!I.moved){var lt=X.clientX-U,bt=X.clientY-L;I.moved=lt*lt+bt*bt>x}I.event(X).zoom("mouse",r(S(I.that.__zoom,I.mouse[0]=yt(X,T),I.mouse[1]),I.extent,s))}function Y(X){$.on("mousemove.zoom mouseup.zoom",null),mi(X.view,I.moved),Yt(X),I.event(X).end()}}function P(k,...E){if(e.apply(this,arguments)){var T=this.__zoom,I=yt(k.changedTouches?k.changedTouches[0]:k,this),$=T.invert(I),F=T.k*(k.shiftKey?.5:2),U=r(S(w(T,F),I,$),n.apply(this,E),s);Yt(k),u>0?st(this).transition().duration(u).call(m,U,I,k):st(this).call(g.transform,U,I,k)}}function R(k,...E){if(e.apply(this,arguments)){var T=k.touches,I=T.length,$=A(this,E,k.changedTouches.length===I).event(k),F,U,L,q;for(on(k),U=0;U<I;++U)L=T[U],q=yt(L,this),q=[q,this.__zoom.invert(q),L.identifier],$.touch0?!$.touch1&&$.touch0[2]!==q[2]&&($.touch1=q,$.taps=0):($.touch0=q,F=!0,$.taps=1+!!c);c&&(c=clearTimeout(c)),F&&($.taps<2&&(h=q[0],c=setTimeout(function(){c=null},p)),Oe(this),$.start())}}function N(k,...E){if(this.__zooming){var T=A(this,E).event(k),I=k.changedTouches,$=I.length,F,U,L,q;for(Yt(k),F=0;F<$;++F)U=I[F],L=yt(U,this),T.touch0&&T.touch0[2]===U.identifier?T.touch0[0]=L:T.touch1&&T.touch1[2]===U.identifier&&(T.touch1[0]=L);if(U=T.that.__zoom,T.touch1){var Y=T.touch0[0],X=T.touch0[1],lt=T.touch1[0],bt=T.touch1[1],ft=(ft=lt[0]-Y[0])*ft+(ft=lt[1]-Y[1])*ft,wt=(wt=bt[0]-X[0])*wt+(wt=bt[1]-X[1])*wt;U=w(U,Math.sqrt(ft/wt)),L=[(Y[0]+lt[0])/2,(Y[1]+lt[1])/2],q=[(X[0]+bt[0])/2,(X[1]+bt[1])/2]}else if(T.touch0)L=T.touch0[0],q=T.touch0[1];else return;T.zoom("touch",r(S(U,L,q),T.extent,s))}}function j(k,...E){if(this.__zooming){var T=A(this,E).event(k),I=k.changedTouches,$=I.length,F,U;for(on(k),d&&clearTimeout(d),d=setTimeout(function(){d=null},p),F=0;F<$;++F)U=I[F],T.touch0&&T.touch0[2]===U.identifier?delete T.touch0:T.touch1&&T.touch1[2]===U.identifier&&delete T.touch1;if(T.touch1&&!T.touch0&&(T.touch0=T.touch1,delete T.touch1),T.touch0)T.touch0[1]=this.__zoom.invert(T.touch0[0]);else if(T.end(),T.taps===2&&(U=yt(U,this),Math.hypot(h[0]-U[0],h[1]-U[1])<_)){var L=st(this).on("dblclick.zoom");L&&L.apply(this,arguments)}}}return g.wheelDelta=function(k){return arguments.length?(i=typeof k=="function"?k:Ae(+k),g):i},g.filter=function(k){return arguments.length?(e=typeof k=="function"?k:Ae(!!k),g):e},g.touchable=function(k){return arguments.length?(o=typeof k=="function"?k:Ae(!!k),g):o},g.extent=function(k){return arguments.length?(n=typeof k=="function"?k:Ae([[+k[0][0],+k[0][1]],[+k[1][0],+k[1][1]]]),g):n},g.scaleExtent=function(k){return arguments.length?(a[0]=+k[0],a[1]=+k[1],g):[a[0],a[1]]},g.translateExtent=function(k){return arguments.length?(s[0][0]=+k[0][0],s[1][0]=+k[1][0],s[0][1]=+k[0][1],s[1][1]=+k[1][1],g):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},g.constrain=function(k){return arguments.length?(r=k,g):r},g.duration=function(k){return arguments.length?(u=+k,g):u},g.interpolate=function(k){return arguments.length?(l=k,g):l},g.on=function(){var k=f.on.apply(f,arguments);return k===f?g:k},g.clickDistance=function(k){return arguments.length?(x=(k=+k)*k,g):Math.sqrt(x)},g.tapDistance=function(k){return arguments.length?(_=+k,g):_},g}class _r extends Map{constructor(n,r=cl){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),n!=null)for(const[i,o]of n)this.set(i,o)}get(n){return super.get(vr(this,n))}has(n){return super.has(vr(this,n))}set(n,r){return super.set(ll(this,n),r)}delete(n){return super.delete(fl(this,n))}}function vr({_intern:e,_key:n},r){const i=n(r);return e.has(i)?e.get(i):r}function ll({_intern:e,_key:n},r){const i=n(r);return e.has(i)?e.get(i):(e.set(i,r),r)}function fl({_intern:e,_key:n},r){const i=n(r);return e.has(i)&&(r=e.get(i),e.delete(i)),r}function cl(e){return e!==null&&typeof e=="object"?e.valueOf():e}function mr(e,n){let r;if(n===void 0)for(const i of e)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of e)(o=n(o,++i,e))!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}return r}function xr(e,n){let r;if(n===void 0)for(const i of e)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of e)(o=n(o,++i,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function hl(e,n){let r=0;for(let i of e)(i=+i)&&(r+=i);return r}var dl=typeof global=="object"&&global&&global.Object===Object&&global,pl=typeof self=="object"&&self&&self.Object===Object&&self,zi=dl||pl||Function("return this")(),Fe=zi.Symbol,Ri=Object.prototype,gl=Ri.hasOwnProperty,yl=Ri.toString,Zt=Fe?Fe.toStringTag:void 0;function _l(e){var n=gl.call(e,Zt),r=e[Zt];try{e[Zt]=void 0;var i=!0}catch{}var o=yl.call(e);return i&&(n?e[Zt]=r:delete e[Zt]),o}var vl=Object.prototype,ml=vl.toString;function xl(e){return ml.call(e)}var bl="[object Null]",wl="[object Undefined]",br=Fe?Fe.toStringTag:void 0;function kl(e){return e==null?e===void 0?wl:bl:br&&br in Object(e)?_l(e):xl(e)}function Al(e){return e!=null&&typeof e=="object"}var Cl="[object Symbol]";function Sl(e){return typeof e=="symbol"||Al(e)&&kl(e)==Cl}var Ml=/\s/;function Tl(e){for(var n=e.length;n--&&Ml.test(e.charAt(n)););return n}var Pl=/^\s+/;function Ol(e){return e&&e.slice(0,Tl(e)+1).replace(Pl,"")}function Ue(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var wr=NaN,El=/^[-+]0x[0-9a-f]+$/i,zl=/^0b[01]+$/i,Rl=/^0o[0-7]+$/i,Nl=parseInt;function kr(e){if(typeof e=="number")return e;if(Sl(e))return wr;if(Ue(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Ue(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Ol(e);var r=zl.test(e);return r||Rl.test(e)?Nl(e.slice(2),r?2:8):El.test(e)?wr:+e}var an=function(){return zi.Date.now()},Il="Expected a function",Dl=Math.max,$l=Math.min;function Ni(e,n,r){var i,o,a,s,u,l,f=0,c=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(Il);n=kr(n)||0,Ue(r)&&(c=!!r.leading,h="maxWait"in r,a=h?Dl(kr(r.maxWait)||0,n):a,d="trailing"in r?!!r.trailing:d);function p(A){var C=i,M=o;return i=o=void 0,f=A,s=e.apply(M,C),s}function y(A){return f=A,u=setTimeout(g,n),c?p(A):s}function x(A){var C=A-l,M=A-f,z=n-C;return h?$l(z,a-M):z}function _(A){var C=A-l,M=A-f;return l===void 0||C>=n||C<0||h&&M>=a}function g(){var A=an();if(_(A))return w(A);u=setTimeout(g,x(A))}function w(A){return u=void 0,d&&i?p(A):(i=o=void 0,s)}function S(){u!==void 0&&clearTimeout(u),f=0,i=l=o=u=void 0}function b(){return u===void 0?s:w(an())}function m(){var A=an(),C=_(A);if(i=arguments,o=this,l=A,C){if(u===void 0)return y(l);if(h)return clearTimeout(u),u=setTimeout(g,n),p(l)}return u===void 0&&(u=setTimeout(g,n)),s}return m.cancel=S,m.flush=b,m}var jl="Expected a function";function Fl(e,n,r){var i=!0,o=!0;if(typeof e!="function")throw new TypeError(jl);return Ue(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Ni(e,n,{leading:i,maxWait:n,trailing:o})}var Ft=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return e},Out:function(e){return e},InOut:function(e){return e}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(e){var n=1.70158;return e===1?1:e*e*((n+1)*e-n)},Out:function(e){var n=1.70158;return e===0?0:--e*e*((n+1)*e+n)+1},InOut:function(e){var n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}}),Bounce:Object.freeze({In:function(e){return 1-Ft.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?Ft.Bounce.In(e*2)*.5:Ft.Bounce.Out(e*2-1)*.5+.5}}),generatePow:function(e){return e===void 0&&(e=4),e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(n){return Math.pow(n,e)},Out:function(n){return 1-Math.pow(1-n,e)},InOut:function(n){return n<.5?Math.pow(n*2,e)/2:(1-Math.pow(2-n*2,e))/2+.5}}}}),ie=function(){return performance.now()},Ii=(function(){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,n)}return e.prototype.getAll=function(){var n=this;return Object.keys(this._tweens).map(function(r){return n._tweens[r]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];(n=s._group)===null||n===void 0||n.remove(s),s._group=this,this._tweens[s.getId()]=s,this._tweensAddedDuringUpdate[s.getId()]=s}},e.prototype.remove=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];a._group=void 0,delete this._tweens[a.getId()],delete this._tweensAddedDuringUpdate[a.getId()]}},e.prototype.allStopped=function(){return this.getAll().every(function(n){return!n.isPlaying()})},e.prototype.update=function(n,r){n===void 0&&(n=ie()),r===void 0&&(r=!0);var i=Object.keys(this._tweens);if(i.length!==0)for(;i.length>0;){this._tweensAddedDuringUpdate={};for(var o=0;o<i.length;o++){var a=this._tweens[i[o]],s=!r;a&&a.update(n,s)===!1&&!r&&this.remove(a)}i=Object.keys(this._tweensAddedDuringUpdate)}},e})(),An={Linear:function(e,n){var r=e.length-1,i=r*n,o=Math.floor(i),a=An.Utils.Linear;return n<0?a(e[0],e[1],i):n>1?a(e[r],e[r-1],r-i):a(e[o],e[o+1>r?r:o+1],i-o)},Utils:{Linear:function(e,n,r){return(n-e)*r+e}}},Di=(function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e})(),Cn=new Ii,Ar=(function(){function e(n,r){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Ft.Linear.None,this._interpolationFunction=An.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=Di.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=n,typeof r=="object"?(this._group=r,r.add(this)):r===!0&&(this._group=Cn,Cn.add(this))}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.getDuration=function(){return this._duration},e.prototype.to=function(n,r){if(r===void 0&&(r=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=n,this._propertiesAreSetUp=!1,this._duration=r<0?0:r,this},e.prototype.duration=function(n){return n===void 0&&(n=1e3),this._duration=n<0?0:n,this},e.prototype.dynamic=function(n){return n===void 0&&(n=!1),this._isDynamic=n,this},e.prototype.start=function(n,r){if(n===void 0&&(n=ie()),r===void 0&&(r=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var i in this._valuesStartRepeat)this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n,this._startTime+=this._delayTime,!this._propertiesAreSetUp||r){if(this._propertiesAreSetUp=!0,!this._isDynamic){var o={};for(var a in this._valuesEnd)o[a]=this._valuesEnd[a];this._valuesEnd=o}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,r)}return this},e.prototype.startFromCurrentValues=function(n){return this.start(n,!0)},e.prototype._setupProperties=function(n,r,i,o,a){for(var s in i){var u=n[s],l=Array.isArray(u),f=l?"array":typeof u,c=!l&&Array.isArray(i[s]);if(!(f==="undefined"||f==="function")){if(c){var h=i[s];if(h.length===0)continue;for(var d=[u],p=0,y=h.length;p<y;p+=1){var x=this._handleRelativeValue(u,h[p]);if(isNaN(x)){c=!1,console.warn("Found invalid interpolation list. Skipping.");break}d.push(x)}c&&(i[s]=d)}if((f==="object"||l)&&u&&!c){r[s]=l?[]:{};var _=u;for(var g in _)r[s][g]=_[g];o[s]=l?[]:{};var h=i[s];if(!this._isDynamic){var w={};for(var g in h)w[g]=h[g];i[s]=h=w}this._setupProperties(_,r[s],h,o[s],a)}else(typeof r[s]>"u"||a)&&(r[s]=u),l||(r[s]*=1),c?o[s]=i[s].slice().reverse():o[s]=r[s]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},e.prototype.pause=function(n){return n===void 0&&(n=ie()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this)},e.prototype.resume=function(n){return n===void 0&&(n=ie()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStart,this._pauseStart=0,this)},e.prototype.stopChainedTweens=function(){for(var n=0,r=this._chainedTweens.length;n<r;n++)this._chainedTweens[n].stop();return this},e.prototype.group=function(n){return n?(n.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},e.prototype.remove=function(){var n;return(n=this._group)===null||n===void 0||n.remove(this),this},e.prototype.delay=function(n){return n===void 0&&(n=0),this._delayTime=n,this},e.prototype.repeat=function(n){return n===void 0&&(n=0),this._initialRepeat=n,this._repeat=n,this},e.prototype.repeatDelay=function(n){return this._repeatDelayTime=n,this},e.prototype.yoyo=function(n){return n===void 0&&(n=!1),this._yoyo=n,this},e.prototype.easing=function(n){return n===void 0&&(n=Ft.Linear.None),this._easingFunction=n,this},e.prototype.interpolation=function(n){return n===void 0&&(n=An.Linear),this._interpolationFunction=n,this},e.prototype.chain=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return this._chainedTweens=n,this},e.prototype.onStart=function(n){return this._onStartCallback=n,this},e.prototype.onEveryStart=function(n){return this._onEveryStartCallback=n,this},e.prototype.onUpdate=function(n){return this._onUpdateCallback=n,this},e.prototype.onRepeat=function(n){return this._onRepeatCallback=n,this},e.prototype.onComplete=function(n){return this._onCompleteCallback=n,this},e.prototype.onStop=function(n){return this._onStopCallback=n,this},e.prototype.update=function(n,r){var i=this,o;if(n===void 0&&(n=ie()),r===void 0&&(r=e.autoStartOnUpdate),this._isPaused)return!0;var a;if(!this._goToEnd&&!this._isPlaying)if(r)this.start(n,!0);else return!1;if(this._goToEnd=!1,n<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var s=n-this._startTime,u=this._duration+((o=this._repeatDelayTime)!==null&&o!==void 0?o:this._delayTime),l=this._duration+this._repeat*u,f=function(){if(i._duration===0||s>l)return 1;var x=Math.trunc(s/u),_=s-x*u,g=Math.min(_/i._duration,1);return g===0&&s===i._duration?1:g},c=f(),h=this._easingFunction(c);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,h),this._onUpdateCallback&&this._onUpdateCallback(this._object,c),this._duration===0||s>=this._duration)if(this._repeat>0){var d=Math.min(Math.trunc((s-this._duration)/u)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=d);for(a in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[a]=="string"&&(this._valuesStartRepeat[a]=this._valuesStartRepeat[a]+parseFloat(this._valuesEnd[a])),this._yoyo&&this._swapEndStartRepeatValues(a),this._valuesStart[a]=this._valuesStartRepeat[a];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=u*d,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var p=0,y=this._chainedTweens.length;p<y;p++)this._chainedTweens[p].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(n,r,i,o){for(var a in i)if(r[a]!==void 0){var s=r[a]||0,u=i[a],l=Array.isArray(n[a]),f=Array.isArray(u),c=!l&&f;c?n[a]=this._interpolationFunction(u,o):typeof u=="object"&&u?this._updateProperties(n[a],s,u,o):(u=this._handleRelativeValue(s,u),typeof u=="number"&&(n[a]=s+(u-s)*o))}},e.prototype._handleRelativeValue=function(n,r){return typeof r!="string"?r:r.charAt(0)==="+"||r.charAt(0)==="-"?n+parseFloat(r):parseFloat(r)},e.prototype._swapEndStartRepeatValues=function(n){var r=this._valuesStartRepeat[n],i=this._valuesEnd[n];typeof i=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(i):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=r},e.autoStartOnUpdate=!1,e})();Di.nextId;var mt=Cn;mt.getAll.bind(mt);mt.removeAll.bind(mt);mt.add.bind(mt);mt.remove.bind(mt);mt.update.bind(mt);function Cr(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}function Ul(e){if(Array.isArray(e))return e}function Ll(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function ql(e,n,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Hl(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,u=[],l=!0,f=!1;try{if(a=(r=r.call(e)).next,n!==0)for(;!(l=(i=a.call(r)).done)&&(u.push(i.value),u.length!==n);l=!0);}catch(c){f=!0,o=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw o}}return u}}function Gl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vl(e,n){return Ul(e)||Hl(e,n)||Wl(e,n)||Gl()}function Wl(e,n){if(e){if(typeof e=="string")return Cr(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cr(e,n):void 0}}var Bl=ql(function e(n,r){var i=r.default,o=i===void 0?null:i,a=r.triggerUpdate,s=a===void 0?!0:a,u=r.onChange,l=u===void 0?function(f,c){}:u;Ll(this,e),this.name=n,this.defaultVal=o,this.triggerUpdate=s,this.onChange=l});function qn(e){var n=e.stateInit,r=n===void 0?function(){return{}}:n,i=e.props,o=i===void 0?{}:i,a=e.methods,s=a===void 0?{}:a,u=e.aliases,l=u===void 0?{}:u,f=e.init,c=f===void 0?function(){}:f,h=e.update,d=h===void 0?function(){}:h,p=Object.keys(o).map(function(y){return new Bl(y,o[y])});return function y(){for(var x=arguments.length,_=new Array(x),g=0;g<x;g++)_[g]=arguments[g];var w=!!(this instanceof y&&this.constructor),S=w?_.shift():void 0,b=_[0],m=b===void 0?{}:b,A=Object.assign({},r instanceof Function?r(m):r,{initialised:!1}),C={};function M(R){return z(R,m),P(),M}var z=function(N,j){c.call(M,N,A,j),A.initialised=!0},P=Ni(function(){A.initialised&&(d.call(M,A,C),C={})},1);return p.forEach(function(R){M[R.name]=N(R);function N(j){var k=j.name,E=j.triggerUpdate,T=E===void 0?!1:E,I=j.onChange,$=I===void 0?function(L,q){}:I,F=j.defaultVal,U=F===void 0?null:F;return function(L){var q=A[k];if(!arguments.length)return q;var Y=L===void 0?U:L;return A[k]=Y,$.call(M,Y,A,q),!C.hasOwnProperty(k)&&(C[k]=q),T&&P(),M}}}),Object.keys(s).forEach(function(R){M[R]=function(){for(var N,j=arguments.length,k=new Array(j),E=0;E<j;E++)k[E]=arguments[E];return(N=s[R]).call.apply(N,[M,A].concat(k))}}),Object.entries(l).forEach(function(R){var N=Vl(R,2),j=N[0],k=N[1];return M[j]=M[k]}),M.resetProps=function(){return p.forEach(function(R){M[R.name](R.defaultVal)}),M},M.resetProps(),A._rerender=P,w&&S&&M(S),M}}var H=(function(e){return typeof e=="function"?e:typeof e=="string"?function(n){return n[e]}:function(n){return e}});function Le(e){"@babel/helpers - typeof";return Le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Le(e)}var Xl=/^\s+/,Yl=/\s+$/;function D(e,n){if(e=e||"",n=n||{},e instanceof D)return e;if(!(this instanceof D))return new D(e,n);var r=Zl(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||r.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}D.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),r,i,o,a,s,u;return r=n.r/255,i=n.g/255,o=n.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),o<=.03928?u=o/12.92:u=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*s+.0722*u},setAlpha:function(n){return this._a=$i(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=Mr(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=Mr(this._r,this._g,this._b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.v*100);return this._a==1?"hsv("+r+", "+i+"%, "+o+"%)":"hsva("+r+", "+i+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var n=Sr(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=Sr(this._r,this._g,this._b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.l*100);return this._a==1?"hsl("+r+", "+i+"%, "+o+"%)":"hsla("+r+", "+i+"%, "+o+"%, "+this._roundA+")"},toHex:function(n){return Tr(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return tf(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(W(this._r,255)*100)+"%",g:Math.round(W(this._g,255)*100)+"%",b:Math.round(W(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(W(this._r,255)*100)+"%, "+Math.round(W(this._g,255)*100)+"%, "+Math.round(W(this._b,255)*100)+"%)":"rgba("+Math.round(W(this._r,255)*100)+"%, "+Math.round(W(this._g,255)*100)+"%, "+Math.round(W(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:df[Tr(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var r="#"+Pr(this._r,this._g,this._b,this._a),i=r,o=this._gradientType?"GradientType = 1, ":"";if(n){var a=D(n);i="#"+Pr(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+i+")"},toString:function(n){var r=!!n;n=n||this._format;var i=!1,o=this._a<1&&this._a>=0,a=!r&&o&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return a?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(i=this.toRgbString()),n==="prgb"&&(i=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(i=this.toHexString()),n==="hex3"&&(i=this.toHexString(!0)),n==="hex4"&&(i=this.toHex8String(!0)),n==="hex8"&&(i=this.toHex8String()),n==="name"&&(i=this.toName()),n==="hsl"&&(i=this.toHslString()),n==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return D(this.toString())},_applyModification:function(n,r){var i=n.apply(null,[this].concat([].slice.call(r)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(of,arguments)},brighten:function(){return this._applyModification(af,arguments)},darken:function(){return this._applyModification(sf,arguments)},desaturate:function(){return this._applyModification(ef,arguments)},saturate:function(){return this._applyModification(nf,arguments)},greyscale:function(){return this._applyModification(rf,arguments)},spin:function(){return this._applyModification(uf,arguments)},_applyCombination:function(n,r){return n.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(cf,arguments)},complement:function(){return this._applyCombination(lf,arguments)},monochromatic:function(){return this._applyCombination(hf,arguments)},splitcomplement:function(){return this._applyCombination(ff,arguments)},triad:function(){return this._applyCombination(Or,[3])},tetrad:function(){return this._applyCombination(Or,[4])}};D.fromRatio=function(e,n){if(Le(e)=="object"){var r={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?r[i]=e[i]:r[i]=oe(e[i]));e=r}return D(e,n)};function Zl(e){var n={r:0,g:0,b:0},r=1,i=null,o=null,a=null,s=!1,u=!1;return typeof e=="string"&&(e=_f(e)),Le(e)=="object"&&(At(e.r)&&At(e.g)&&At(e.b)?(n=Kl(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):At(e.h)&&At(e.s)&&At(e.v)?(i=oe(e.s),o=oe(e.v),n=Jl(e.h,i,o),s=!0,u="hsv"):At(e.h)&&At(e.s)&&At(e.l)&&(i=oe(e.s),a=oe(e.l),n=Ql(e.h,i,a),s=!0,u="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=$i(r),{ok:s,format:e.format||u,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function Kl(e,n,r){return{r:W(e,255)*255,g:W(n,255)*255,b:W(r,255)*255}}function Sr(e,n,r){e=W(e,255),n=W(n,255),r=W(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a,s,u=(i+o)/2;if(i==o)a=s=0;else{var l=i-o;switch(s=u>.5?l/(2-i-o):l/(i+o),i){case e:a=(n-r)/l+(n<r?6:0);break;case n:a=(r-e)/l+2;break;case r:a=(e-n)/l+4;break}a/=6}return{h:a,s,l:u}}function Ql(e,n,r){var i,o,a;e=W(e,360),n=W(n,100),r=W(r,100);function s(f,c,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?f+(c-f)*6*h:h<1/2?c:h<2/3?f+(c-f)*(2/3-h)*6:f}if(n===0)i=o=a=r;else{var u=r<.5?r*(1+n):r+n-r*n,l=2*r-u;i=s(l,u,e+1/3),o=s(l,u,e),a=s(l,u,e-1/3)}return{r:i*255,g:o*255,b:a*255}}function Mr(e,n,r){e=W(e,255),n=W(n,255),r=W(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a,s,u=i,l=i-o;if(s=i===0?0:l/i,i==o)a=0;else{switch(i){case e:a=(n-r)/l+(n<r?6:0);break;case n:a=(r-e)/l+2;break;case r:a=(e-n)/l+4;break}a/=6}return{h:a,s,v:u}}function Jl(e,n,r){e=W(e,360)*6,n=W(n,100),r=W(r,100);var i=Math.floor(e),o=e-i,a=r*(1-n),s=r*(1-o*n),u=r*(1-(1-o)*n),l=i%6,f=[r,s,a,a,u,r][l],c=[u,r,r,s,a,a][l],h=[a,a,u,r,r,s][l];return{r:f*255,g:c*255,b:h*255}}function Tr(e,n,r,i){var o=[dt(Math.round(e).toString(16)),dt(Math.round(n).toString(16)),dt(Math.round(r).toString(16))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function tf(e,n,r,i,o){var a=[dt(Math.round(e).toString(16)),dt(Math.round(n).toString(16)),dt(Math.round(r).toString(16)),dt(ji(i))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Pr(e,n,r,i){var o=[dt(ji(i)),dt(Math.round(e).toString(16)),dt(Math.round(n).toString(16)),dt(Math.round(r).toString(16))];return o.join("")}D.equals=function(e,n){return!e||!n?!1:D(e).toRgbString()==D(n).toRgbString()};D.random=function(){return D.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function ef(e,n){n=n===0?0:n||10;var r=D(e).toHsl();return r.s-=n/100,r.s=Ze(r.s),D(r)}function nf(e,n){n=n===0?0:n||10;var r=D(e).toHsl();return r.s+=n/100,r.s=Ze(r.s),D(r)}function rf(e){return D(e).desaturate(100)}function of(e,n){n=n===0?0:n||10;var r=D(e).toHsl();return r.l+=n/100,r.l=Ze(r.l),D(r)}function af(e,n){n=n===0?0:n||10;var r=D(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),D(r)}function sf(e,n){n=n===0?0:n||10;var r=D(e).toHsl();return r.l-=n/100,r.l=Ze(r.l),D(r)}function uf(e,n){var r=D(e).toHsl(),i=(r.h+n)%360;return r.h=i<0?360+i:i,D(r)}function lf(e){var n=D(e).toHsl();return n.h=(n.h+180)%360,D(n)}function Or(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var r=D(e).toHsl(),i=[D(e)],o=360/n,a=1;a<n;a++)i.push(D({h:(r.h+a*o)%360,s:r.s,l:r.l}));return i}function ff(e){var n=D(e).toHsl(),r=n.h;return[D(e),D({h:(r+72)%360,s:n.s,l:n.l}),D({h:(r+216)%360,s:n.s,l:n.l})]}function cf(e,n,r){n=n||6,r=r||30;var i=D(e).toHsl(),o=360/r,a=[D(e)];for(i.h=(i.h-(o*n>>1)+720)%360;--n;)i.h=(i.h+o)%360,a.push(D(i));return a}function hf(e,n){n=n||6;for(var r=D(e).toHsv(),i=r.h,o=r.s,a=r.v,s=[],u=1/n;n--;)s.push(D({h:i,s:o,v:a})),a=(a+u)%1;return s}D.mix=function(e,n,r){r=r===0?0:r||50;var i=D(e).toRgb(),o=D(n).toRgb(),a=r/100,s={r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a};return D(s)};D.readability=function(e,n){var r=D(e),i=D(n);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)};D.isReadable=function(e,n,r){var i=D.readability(e,n),o,a;switch(a=!1,o=vf(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7;break}return a};D.mostReadable=function(e,n,r){var i=null,o=0,a,s,u,l;r=r||{},s=r.includeFallbackColors,u=r.level,l=r.size;for(var f=0;f<n.length;f++)a=D.readability(e,n[f]),a>o&&(o=a,i=D(n[f]));return D.isReadable(e,i,{level:u,size:l})||!s?i:(r.includeFallbackColors=!1,D.mostReadable(e,["#fff","#000"],r))};var Sn=D.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},df=D.hexNames=pf(Sn);function pf(e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[e[r]]=r);return n}function $i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function W(e,n){gf(e)&&(e="100%");var r=yf(e);return e=Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function Ze(e){return Math.min(1,Math.max(0,e))}function nt(e){return parseInt(e,16)}function gf(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function yf(e){return typeof e=="string"&&e.indexOf("%")!=-1}function dt(e){return e.length==1?"0"+e:""+e}function oe(e){return e<=1&&(e=e*100+"%"),e}function ji(e){return Math.round(parseFloat(e)*255).toString(16)}function Er(e){return nt(e)/255}var ct=(function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",r="(?:"+n+")|(?:"+e+")",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function At(e){return!!ct.CSS_UNIT.exec(e)}function _f(e){e=e.replace(Xl,"").replace(Yl,"").toLowerCase();var n=!1;if(Sn[e])e=Sn[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ct.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=ct.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ct.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=ct.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ct.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=ct.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ct.hex8.exec(e))?{r:nt(r[1]),g:nt(r[2]),b:nt(r[3]),a:Er(r[4]),format:n?"name":"hex8"}:(r=ct.hex6.exec(e))?{r:nt(r[1]),g:nt(r[2]),b:nt(r[3]),format:n?"name":"hex"}:(r=ct.hex4.exec(e))?{r:nt(r[1]+""+r[1]),g:nt(r[2]+""+r[2]),b:nt(r[3]+""+r[3]),a:Er(r[4]+""+r[4]),format:n?"name":"hex8"}:(r=ct.hex3.exec(e))?{r:nt(r[1]+""+r[1]),g:nt(r[2]+""+r[2]),b:nt(r[3]+""+r[3]),format:n?"name":"hex"}:!1}function vf(e){var n,r;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:n,size:r}}function Mn(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}function mf(e){if(Array.isArray(e))return Mn(e)}function Fi(e,n,r){if(typeof e=="function"?e===n:e.has(n))return arguments.length<3?n:r;throw new TypeError("Private element is not present on this object")}function xf(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bf(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function it(e,n){return e.get(Fi(e,n))}function zr(e,n,r){xf(e,n),n.set(e,r)}function Rr(e,n,r){return e.set(Fi(e,n),r),r}function wf(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Tf(i.key),i)}}function kf(e,n,r){return n&&wf(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Af(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cf(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -1 +1 @@
1
- import{bQ as g,aj as S,b as E,aK as b,b5 as h,r as s}from"./index-BwG_4Oup.js";import{i as p}from"./types-BaJkUfo6.js";const y="keep",m="lens:audio-retention-choice:";function f(e){return m+e}function c(e){try{return localStorage.getItem(f(e))!==null}catch{return!1}}function R(e){try{localStorage.setItem(f(e),JSON.stringify({chosenAt:new Date().toISOString()}))}catch{}}function C(e){const[t,n]=s.useState(()=>e?c(e):!1);s.useEffect(()=>{n(e?c(e):!1)},[e]);const r=s.useCallback(()=>{e&&(R(e),n(!0))},[e]);return{made:t,markMade:r}}function _(){var n,r,o;const e=g(),t=(r=(n=e.data)==null?void 0:n.config)==null?void 0:r.audio_retention;return{value:p(t)?t:y,supported:e.isSuccess&&((o=e.data)==null?void 0:o.config)!==void 0,isLoading:e.isPending,isError:e.isError}}function w(){const e=S(),t=E(r=>r.activeVaultId),n=b();return h({mutationFn:async r=>{var i;if(!e)throw new Error("No active vault");const o=await e.patchVault({config:{audio_retention:r}});if(((i=o.config)==null?void 0:i.audio_retention)!==r)throw new Error("This vault doesn't support changing voice retention yet.");return o},onSuccess:r=>{n.setQueryData(["vaultInfo",t],o=>o&&{...o,config:r.config})}})}const a=!0,T="lens:transcribe-default:";function l(e){return T+e}function u(e){try{const t=localStorage.getItem(l(e));if(!t)return a;const n=JSON.parse(t);return typeof n.transcribe=="boolean"?n.transcribe:a}catch{return a}}function A(e,t){try{localStorage.setItem(l(e),JSON.stringify({transcribe:t}))}catch{}}function F(e){const[t,n]=s.useState(()=>e?u(e):a);s.useEffect(()=>{n(e?u(e):a)},[e]);const r=s.useCallback(o=>{e&&(A(e,o),n(o))},[e]);return{transcribeDefault:t,setTranscribeDefault:r}}export{w as a,C as b,F as c,u as l,_ as u};
1
+ import{bQ as g,aj as S,b as E,aK as b,b5 as h,r as s}from"./index-N8p5fKHh.js";import{i as p}from"./types-BaJkUfo6.js";const y="keep",m="lens:audio-retention-choice:";function f(e){return m+e}function c(e){try{return localStorage.getItem(f(e))!==null}catch{return!1}}function R(e){try{localStorage.setItem(f(e),JSON.stringify({chosenAt:new Date().toISOString()}))}catch{}}function C(e){const[t,n]=s.useState(()=>e?c(e):!1);s.useEffect(()=>{n(e?c(e):!1)},[e]);const r=s.useCallback(()=>{e&&(R(e),n(!0))},[e]);return{made:t,markMade:r}}function _(){var n,r,o;const e=g(),t=(r=(n=e.data)==null?void 0:n.config)==null?void 0:r.audio_retention;return{value:p(t)?t:y,supported:e.isSuccess&&((o=e.data)==null?void 0:o.config)!==void 0,isLoading:e.isPending,isError:e.isError}}function w(){const e=S(),t=E(r=>r.activeVaultId),n=b();return h({mutationFn:async r=>{var i;if(!e)throw new Error("No active vault");const o=await e.patchVault({config:{audio_retention:r}});if(((i=o.config)==null?void 0:i.audio_retention)!==r)throw new Error("This vault doesn't support changing voice retention yet.");return o},onSuccess:r=>{n.setQueryData(["vaultInfo",t],o=>o&&{...o,config:r.config})}})}const a=!0,T="lens:transcribe-default:";function l(e){return T+e}function u(e){try{const t=localStorage.getItem(l(e));if(!t)return a;const n=JSON.parse(t);return typeof n.transcribe=="boolean"?n.transcribe:a}catch{return a}}function A(e,t){try{localStorage.setItem(l(e),JSON.stringify({transcribe:t}))}catch{}}function F(e){const[t,n]=s.useState(()=>e?u(e):a);s.useEffect(()=>{n(e?u(e):a)},[e]);const r=s.useCallback(o=>{e&&(A(e,o),n(o))},[e]);return{transcribeDefault:t,setTranscribeDefault:r}}export{w as a,C as b,F as c,u as l,_ as u};
@@ -1,4 +1,4 @@
1
- import{r as Te,j as L,aq as fr,aj as is,L as Wr,_ as as,bo as os,aJ as ss}from"./index-BwG_4Oup.js";import{v as ls,m as cs}from"./attachment-upload-DML2Fh0E.js";const us="image/png,image/jpeg,image/gif,image/webp,audio/wav,audio/mpeg,audio/mp4,audio/ogg,audio/webm,video/webm,.wav,.mp3,.m4a,.ogg,.webm,.png,.jpg,.jpeg,.gif,.webp",Km=Te.forwardRef(function({onPickFiles:n,label:t="Attach files…",className:r},i){const o=Te.useRef(null);return Te.useImperativeHandle(i,()=>({open:()=>{var a;return(a=o.current)==null?void 0:a.click()}}),[]),L.jsxs(L.Fragment,{children:[L.jsx("button",{type:"button",onClick:()=>{var a;return(a=o.current)==null?void 0:a.click()},className:r??"min-h-11 rounded-lg border border-border bg-card px-3 py-1.5 text-sm text-fg-muted hover:text-accent",title:"Upload an attachment",children:t}),L.jsx("input",{ref:o,type:"file",multiple:!0,accept:us,className:"hidden",onChange:a=>{const s=Array.from(a.target.files??[]);s.length>0&&n(s),a.target.value=""}})]})});function qm({uploads:e,onCancel:n,onDismiss:t}){return e.length===0?null:L.jsx("ul",{className:"space-y-2",children:e.map(r=>L.jsxs("li",{className:"rounded-md border border-border bg-card/60 px-3 py-2 text-xs text-fg-muted",children:[L.jsxs("div",{className:"flex items-center justify-between gap-2",children:[L.jsx("span",{className:"truncate font-mono",title:r.filename,children:r.filename}),L.jsx("span",{className:"shrink-0",children:ds(r)})]}),r.status==="uploading"?L.jsx("div",{className:"mt-1 h-1 w-full overflow-hidden rounded bg-border/40",children:L.jsx("div",{className:"h-full bg-accent transition-[width]",style:{width:`${Qi(r)}%`}})}):null,r.status==="error"&&r.error?L.jsx("p",{className:"mt-1 text-red-400",children:r.error}):null,L.jsx("div",{className:"mt-1 flex justify-end gap-2 text-xs",children:r.status==="uploading"||r.status==="linking"?L.jsx("button",{type:"button",onClick:()=>n(r.id),className:"text-fg-dim hover:text-fg",children:"Cancel"}):L.jsx("button",{type:"button",onClick:()=>t(r.id),className:"text-fg-dim hover:text-fg",children:"Dismiss"})})]},r.id))})}function Qi(e){return e.size===0?0:Math.min(100,Math.round(e.loaded/e.size*100))}function ds(e){switch(e.status){case"uploading":return`${Qi(e)}%`;case"linking":return"Linking…";case"done":return"Done";case"cancelled":return"Cancelled";case"error":return"Error"}}function ps(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const fs=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gs=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ms={};function Vr(e,n){return(ms.jsx?gs:fs).test(e)}const hs=/[ \t\n\f\r]/g;function bs(e){return typeof e=="object"?e.type==="text"?Yr(e.value):!1:Yr(e)}function Yr(e){return e.replace(hs,"")===""}class jn{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}jn.prototype.normal={};jn.prototype.property={};jn.prototype.space=void 0;function Ji(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new jn(t,r,n)}function nr(e){return e.toLowerCase()}class De{constructor(n,t){this.attribute=t,this.property=n}}De.prototype.attribute="";De.prototype.booleanish=!1;De.prototype.boolean=!1;De.prototype.commaOrSpaceSeparated=!1;De.prototype.commaSeparated=!1;De.prototype.defined=!1;De.prototype.mustUseProperty=!1;De.prototype.number=!1;De.prototype.overloadedBoolean=!1;De.prototype.property="";De.prototype.spaceSeparated=!1;De.prototype.space=void 0;let Es=0;const j=xn(),xe=xn(),tr=xn(),v=xn(),ge=xn(),yn=xn(),$e=xn();function xn(){return 2**++Es}const rr=Object.freeze(Object.defineProperty({__proto__:null,boolean:j,booleanish:xe,commaOrSpaceSeparated:$e,commaSeparated:yn,number:v,overloadedBoolean:tr,spaceSeparated:ge},Symbol.toStringTag,{value:"Module"})),Dt=Object.keys(rr);class gr extends De{constructor(n,t,r,i){let o=-1;if(super(n,t),jr(this,"space",i),typeof r=="number")for(;++o<Dt.length;){const a=Dt[o];jr(this,Dt[o],(r&rr[a])===rr[a])}}}gr.prototype.defined=!0;function jr(e,n,t){t&&(e[n]=t)}function Rn(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new gr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[nr(r)]=r,t[nr(o.attribute)]=r}return new jn(n,t,e.space)}const ea=Rn({properties:{ariaActiveDescendant:null,ariaAtomic:xe,ariaAutoComplete:null,ariaBusy:xe,ariaChecked:xe,ariaColCount:v,ariaColIndex:v,ariaColSpan:v,ariaControls:ge,ariaCurrent:null,ariaDescribedBy:ge,ariaDetails:null,ariaDisabled:xe,ariaDropEffect:ge,ariaErrorMessage:null,ariaExpanded:xe,ariaFlowTo:ge,ariaGrabbed:xe,ariaHasPopup:null,ariaHidden:xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ge,ariaLevel:v,ariaLive:null,ariaModal:xe,ariaMultiLine:xe,ariaMultiSelectable:xe,ariaOrientation:null,ariaOwns:ge,ariaPlaceholder:null,ariaPosInSet:v,ariaPressed:xe,ariaReadOnly:xe,ariaRelevant:null,ariaRequired:xe,ariaRoleDescription:ge,ariaRowCount:v,ariaRowIndex:v,ariaRowSpan:v,ariaSelected:xe,ariaSetSize:v,ariaSort:null,ariaValueMax:v,ariaValueMin:v,ariaValueNow:v,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function na(e,n){return n in e?e[n]:n}function ta(e,n){return na(e,n.toLowerCase())}const _s=Rn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yn,acceptCharset:ge,accessKey:ge,action:null,allow:null,allowFullScreen:j,allowPaymentRequest:j,allowUserMedia:j,alpha:j,alt:null,as:null,async:j,autoCapitalize:null,autoComplete:ge,autoFocus:j,autoPlay:j,blocking:ge,capture:null,charSet:null,checked:j,cite:null,className:ge,closedBy:null,colorSpace:null,cols:v,colSpan:v,command:null,commandFor:null,content:null,contentEditable:xe,controls:j,controlsList:ge,coords:v|yn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:j,defer:j,dir:null,dirName:null,disabled:j,download:tr,draggable:xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:j,formTarget:null,headers:ge,height:v,hidden:tr,high:v,href:null,hrefLang:null,htmlFor:ge,httpEquiv:ge,id:null,imageSizes:null,imageSrcSet:null,inert:j,inputMode:null,integrity:null,is:null,isMap:j,itemId:null,itemProp:ge,itemRef:ge,itemScope:j,itemType:ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:j,low:v,manifest:null,max:null,maxLength:v,media:null,method:null,min:null,minLength:v,multiple:j,muted:j,name:null,nonce:null,noModule:j,noValidate:j,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:j,optimum:v,pattern:null,ping:ge,placeholder:null,playsInline:j,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:j,referrerPolicy:null,rel:ge,required:j,reversed:j,rows:v,rowSpan:v,sandbox:ge,scope:null,scoped:j,seamless:j,selected:j,shadowRootClonable:j,shadowRootCustomElementRegistry:j,shadowRootDelegatesFocus:j,shadowRootMode:null,shadowRootSerializable:j,shape:null,size:v,sizes:null,slot:null,span:v,spellCheck:xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:v,step:null,style:null,tabIndex:v,target:null,title:null,translate:null,type:null,typeMustMatch:j,useMap:null,value:xe,width:v,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ge,axis:null,background:null,bgColor:null,border:v,borderColor:null,bottomMargin:v,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:j,declare:j,event:null,face:null,frame:null,frameBorder:null,hSpace:v,leftMargin:v,link:null,longDesc:null,lowSrc:null,marginHeight:v,marginWidth:v,noResize:j,noHref:j,noShade:j,noWrap:j,object:null,profile:null,prompt:null,rev:null,rightMargin:v,rules:null,scheme:null,scrolling:xe,standby:null,summary:null,text:null,topMargin:v,valueType:null,version:null,vAlign:null,vLink:null,vSpace:v,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:j,disablePictureInPicture:j,disableRemotePlayback:j,exportParts:yn,part:ge,prefix:null,property:null,results:v,security:null,unselectable:null},space:"html",transform:ta}),ys=Rn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:$e,accentHeight:v,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:v,amplitude:v,arabicForm:null,ascent:v,attributeName:null,attributeType:null,azimuth:v,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:v,by:null,calcMode:null,capHeight:v,className:ge,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:v,diffuseConstant:v,direction:null,display:null,dur:null,divisor:v,dominantBaseline:null,download:j,dx:null,dy:null,edgeMode:null,editable:null,elevation:v,enableBackground:null,end:null,event:null,exponent:v,externalResourcesRequired:null,fill:null,fillOpacity:v,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:yn,g2:yn,glyphName:yn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:v,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:v,horizOriginX:v,horizOriginY:v,id:null,ideographic:v,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:v,k:v,k1:v,k2:v,k3:v,k4:v,kernelMatrix:$e,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:v,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:v,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:v,overlineThickness:v,paintOrder:null,panose1:null,path:null,pathLength:v,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:v,pointsAtY:v,pointsAtZ:v,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$e,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$e,rev:$e,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$e,requiredFeatures:$e,requiredFonts:$e,requiredFormats:$e,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:v,specularExponent:v,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:v,strikethroughThickness:v,string:null,stroke:null,strokeDashArray:$e,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:v,strokeOpacity:v,strokeWidth:null,style:null,surfaceScale:v,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$e,tabIndex:v,tableValues:null,target:null,targetX:v,targetY:v,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$e,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:v,underlineThickness:v,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:v,values:null,vAlphabetic:v,vMathematical:v,vectorEffect:null,vHanging:v,vIdeographic:v,version:null,vertAdvY:v,vertOriginX:v,vertOriginY:v,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:v,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:na}),ra=Rn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),ia=Rn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ta}),aa=Rn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),ks={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},xs=/[A-Z]/g,Zr=/-[a-z]/g,ws=/^data[-\w.:]+$/i;function Ss(e,n){const t=nr(n);let r=n,i=De;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ws.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(Zr,Ts);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!Zr.test(o)){let a=o.replace(xs,Ns);a.charAt(0)!=="-"&&(a="-"+a),n="data"+a}}i=gr}return new i(r,n)}function Ns(e){return"-"+e.toLowerCase()}function Ts(e){return e.charAt(1).toUpperCase()}const As=Ji([ea,_s,ra,ia,aa],"html"),mr=Ji([ea,ys,ra,ia,aa],"svg");function vs(e){return e.join(" ").trim()}var An={},Pt,Xr;function Cs(){if(Xr)return Pt;Xr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
1
+ import{r as Te,j as L,aq as fr,aj as is,L as Wr,_ as as,bo as os,aJ as ss}from"./index-N8p5fKHh.js";import{v as ls,m as cs}from"./attachment-upload-eLoB3B2Y.js";const us="image/png,image/jpeg,image/gif,image/webp,audio/wav,audio/mpeg,audio/mp4,audio/ogg,audio/webm,video/webm,.wav,.mp3,.m4a,.ogg,.webm,.png,.jpg,.jpeg,.gif,.webp",Km=Te.forwardRef(function({onPickFiles:n,label:t="Attach files…",className:r},i){const o=Te.useRef(null);return Te.useImperativeHandle(i,()=>({open:()=>{var a;return(a=o.current)==null?void 0:a.click()}}),[]),L.jsxs(L.Fragment,{children:[L.jsx("button",{type:"button",onClick:()=>{var a;return(a=o.current)==null?void 0:a.click()},className:r??"min-h-11 rounded-lg border border-border bg-card px-3 py-1.5 text-sm text-fg-muted hover:text-accent",title:"Upload an attachment",children:t}),L.jsx("input",{ref:o,type:"file",multiple:!0,accept:us,className:"hidden",onChange:a=>{const s=Array.from(a.target.files??[]);s.length>0&&n(s),a.target.value=""}})]})});function qm({uploads:e,onCancel:n,onDismiss:t}){return e.length===0?null:L.jsx("ul",{className:"space-y-2",children:e.map(r=>L.jsxs("li",{className:"rounded-md border border-border bg-card/60 px-3 py-2 text-xs text-fg-muted",children:[L.jsxs("div",{className:"flex items-center justify-between gap-2",children:[L.jsx("span",{className:"truncate font-mono",title:r.filename,children:r.filename}),L.jsx("span",{className:"shrink-0",children:ds(r)})]}),r.status==="uploading"?L.jsx("div",{className:"mt-1 h-1 w-full overflow-hidden rounded bg-border/40",children:L.jsx("div",{className:"h-full bg-accent transition-[width]",style:{width:`${Qi(r)}%`}})}):null,r.status==="error"&&r.error?L.jsx("p",{className:"mt-1 text-red-400",children:r.error}):null,L.jsx("div",{className:"mt-1 flex justify-end gap-2 text-xs",children:r.status==="uploading"||r.status==="linking"?L.jsx("button",{type:"button",onClick:()=>n(r.id),className:"text-fg-dim hover:text-fg",children:"Cancel"}):L.jsx("button",{type:"button",onClick:()=>t(r.id),className:"text-fg-dim hover:text-fg",children:"Dismiss"})})]},r.id))})}function Qi(e){return e.size===0?0:Math.min(100,Math.round(e.loaded/e.size*100))}function ds(e){switch(e.status){case"uploading":return`${Qi(e)}%`;case"linking":return"Linking…";case"done":return"Done";case"cancelled":return"Cancelled";case"error":return"Error"}}function ps(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const fs=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gs=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ms={};function Vr(e,n){return(ms.jsx?gs:fs).test(e)}const hs=/[ \t\n\f\r]/g;function bs(e){return typeof e=="object"?e.type==="text"?Yr(e.value):!1:Yr(e)}function Yr(e){return e.replace(hs,"")===""}class jn{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}jn.prototype.normal={};jn.prototype.property={};jn.prototype.space=void 0;function Ji(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new jn(t,r,n)}function nr(e){return e.toLowerCase()}class De{constructor(n,t){this.attribute=t,this.property=n}}De.prototype.attribute="";De.prototype.booleanish=!1;De.prototype.boolean=!1;De.prototype.commaOrSpaceSeparated=!1;De.prototype.commaSeparated=!1;De.prototype.defined=!1;De.prototype.mustUseProperty=!1;De.prototype.number=!1;De.prototype.overloadedBoolean=!1;De.prototype.property="";De.prototype.spaceSeparated=!1;De.prototype.space=void 0;let Es=0;const j=xn(),xe=xn(),tr=xn(),v=xn(),ge=xn(),yn=xn(),$e=xn();function xn(){return 2**++Es}const rr=Object.freeze(Object.defineProperty({__proto__:null,boolean:j,booleanish:xe,commaOrSpaceSeparated:$e,commaSeparated:yn,number:v,overloadedBoolean:tr,spaceSeparated:ge},Symbol.toStringTag,{value:"Module"})),Dt=Object.keys(rr);class gr extends De{constructor(n,t,r,i){let o=-1;if(super(n,t),jr(this,"space",i),typeof r=="number")for(;++o<Dt.length;){const a=Dt[o];jr(this,Dt[o],(r&rr[a])===rr[a])}}}gr.prototype.defined=!0;function jr(e,n,t){t&&(e[n]=t)}function Rn(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new gr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[nr(r)]=r,t[nr(o.attribute)]=r}return new jn(n,t,e.space)}const ea=Rn({properties:{ariaActiveDescendant:null,ariaAtomic:xe,ariaAutoComplete:null,ariaBusy:xe,ariaChecked:xe,ariaColCount:v,ariaColIndex:v,ariaColSpan:v,ariaControls:ge,ariaCurrent:null,ariaDescribedBy:ge,ariaDetails:null,ariaDisabled:xe,ariaDropEffect:ge,ariaErrorMessage:null,ariaExpanded:xe,ariaFlowTo:ge,ariaGrabbed:xe,ariaHasPopup:null,ariaHidden:xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ge,ariaLevel:v,ariaLive:null,ariaModal:xe,ariaMultiLine:xe,ariaMultiSelectable:xe,ariaOrientation:null,ariaOwns:ge,ariaPlaceholder:null,ariaPosInSet:v,ariaPressed:xe,ariaReadOnly:xe,ariaRelevant:null,ariaRequired:xe,ariaRoleDescription:ge,ariaRowCount:v,ariaRowIndex:v,ariaRowSpan:v,ariaSelected:xe,ariaSetSize:v,ariaSort:null,ariaValueMax:v,ariaValueMin:v,ariaValueNow:v,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function na(e,n){return n in e?e[n]:n}function ta(e,n){return na(e,n.toLowerCase())}const _s=Rn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yn,acceptCharset:ge,accessKey:ge,action:null,allow:null,allowFullScreen:j,allowPaymentRequest:j,allowUserMedia:j,alpha:j,alt:null,as:null,async:j,autoCapitalize:null,autoComplete:ge,autoFocus:j,autoPlay:j,blocking:ge,capture:null,charSet:null,checked:j,cite:null,className:ge,closedBy:null,colorSpace:null,cols:v,colSpan:v,command:null,commandFor:null,content:null,contentEditable:xe,controls:j,controlsList:ge,coords:v|yn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:j,defer:j,dir:null,dirName:null,disabled:j,download:tr,draggable:xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:j,formTarget:null,headers:ge,height:v,hidden:tr,high:v,href:null,hrefLang:null,htmlFor:ge,httpEquiv:ge,id:null,imageSizes:null,imageSrcSet:null,inert:j,inputMode:null,integrity:null,is:null,isMap:j,itemId:null,itemProp:ge,itemRef:ge,itemScope:j,itemType:ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:j,low:v,manifest:null,max:null,maxLength:v,media:null,method:null,min:null,minLength:v,multiple:j,muted:j,name:null,nonce:null,noModule:j,noValidate:j,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:j,optimum:v,pattern:null,ping:ge,placeholder:null,playsInline:j,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:j,referrerPolicy:null,rel:ge,required:j,reversed:j,rows:v,rowSpan:v,sandbox:ge,scope:null,scoped:j,seamless:j,selected:j,shadowRootClonable:j,shadowRootCustomElementRegistry:j,shadowRootDelegatesFocus:j,shadowRootMode:null,shadowRootSerializable:j,shape:null,size:v,sizes:null,slot:null,span:v,spellCheck:xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:v,step:null,style:null,tabIndex:v,target:null,title:null,translate:null,type:null,typeMustMatch:j,useMap:null,value:xe,width:v,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ge,axis:null,background:null,bgColor:null,border:v,borderColor:null,bottomMargin:v,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:j,declare:j,event:null,face:null,frame:null,frameBorder:null,hSpace:v,leftMargin:v,link:null,longDesc:null,lowSrc:null,marginHeight:v,marginWidth:v,noResize:j,noHref:j,noShade:j,noWrap:j,object:null,profile:null,prompt:null,rev:null,rightMargin:v,rules:null,scheme:null,scrolling:xe,standby:null,summary:null,text:null,topMargin:v,valueType:null,version:null,vAlign:null,vLink:null,vSpace:v,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:j,disablePictureInPicture:j,disableRemotePlayback:j,exportParts:yn,part:ge,prefix:null,property:null,results:v,security:null,unselectable:null},space:"html",transform:ta}),ys=Rn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:$e,accentHeight:v,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:v,amplitude:v,arabicForm:null,ascent:v,attributeName:null,attributeType:null,azimuth:v,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:v,by:null,calcMode:null,capHeight:v,className:ge,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:v,diffuseConstant:v,direction:null,display:null,dur:null,divisor:v,dominantBaseline:null,download:j,dx:null,dy:null,edgeMode:null,editable:null,elevation:v,enableBackground:null,end:null,event:null,exponent:v,externalResourcesRequired:null,fill:null,fillOpacity:v,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:yn,g2:yn,glyphName:yn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:v,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:v,horizOriginX:v,horizOriginY:v,id:null,ideographic:v,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:v,k:v,k1:v,k2:v,k3:v,k4:v,kernelMatrix:$e,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:v,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:v,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:v,overlineThickness:v,paintOrder:null,panose1:null,path:null,pathLength:v,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:v,pointsAtY:v,pointsAtZ:v,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$e,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$e,rev:$e,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$e,requiredFeatures:$e,requiredFonts:$e,requiredFormats:$e,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:v,specularExponent:v,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:v,strikethroughThickness:v,string:null,stroke:null,strokeDashArray:$e,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:v,strokeOpacity:v,strokeWidth:null,style:null,surfaceScale:v,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$e,tabIndex:v,tableValues:null,target:null,targetX:v,targetY:v,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$e,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:v,underlineThickness:v,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:v,values:null,vAlphabetic:v,vMathematical:v,vectorEffect:null,vHanging:v,vIdeographic:v,version:null,vertAdvY:v,vertOriginX:v,vertOriginY:v,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:v,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:na}),ra=Rn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),ia=Rn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ta}),aa=Rn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),ks={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},xs=/[A-Z]/g,Zr=/-[a-z]/g,ws=/^data[-\w.:]+$/i;function Ss(e,n){const t=nr(n);let r=n,i=De;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ws.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(Zr,Ts);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!Zr.test(o)){let a=o.replace(xs,Ns);a.charAt(0)!=="-"&&(a="-"+a),n="data"+a}}i=gr}return new i(r,n)}function Ns(e){return"-"+e.toLowerCase()}function Ts(e){return e.charAt(1).toUpperCase()}const As=Ji([ea,_s,ra,ia,aa],"html"),mr=Ji([ea,ys,ra,ia,aa],"svg");function vs(e){return e.join(" ").trim()}var An={},Pt,Xr;function Cs(){if(Xr)return Pt;Xr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
2
2
  `,c="/",u="*",d="",f="comment",p="declaration";function g(y,E){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];E=E||{};var S=1,w=1;function A(D){var C=D.match(n);C&&(S+=C.length);var Z=D.lastIndexOf(l);w=~Z?D.length-Z:w+D.length}function O(){var D={line:S,column:w};return function(C){return C.position=new k(D),G(),C}}function k(D){this.start=D,this.end={line:S,column:w},this.source=E.source}k.prototype.content=y;function U(D){var C=new Error(E.source+":"+S+":"+w+": "+D);if(C.reason=D,C.filename=E.source,C.line=S,C.column=w,C.source=y,!E.silent)throw C}function H(D){var C=D.exec(y);if(C){var Z=C[0];return A(Z),y=y.slice(Z.length),C}}function G(){H(t)}function x(D){var C;for(D=D||[];C=B();)C!==!1&&D.push(C);return D}function B(){var D=O();if(!(c!=y.charAt(0)||u!=y.charAt(1))){for(var C=2;d!=y.charAt(C)&&(u!=y.charAt(C)||c!=y.charAt(C+1));)++C;if(C+=2,d===y.charAt(C-1))return U("End of comment missing");var Z=y.slice(2,C-2);return w+=2,A(Z),y=y.slice(C),w+=2,D({type:f,comment:Z})}}function F(){var D=O(),C=H(r);if(C){if(B(),!H(i))return U("property missing ':'");var Z=H(o),se=D({type:p,property:_(C[0].replace(e,d)),value:Z?_(Z[0].replace(e,d)):d});return H(a),se}}function ee(){var D=[];x(D);for(var C;C=F();)C!==!1&&(D.push(C),x(D));return D}return G(),ee()}function _(y){return y?y.replace(s,d):d}return Pt=g,Pt}var Qr;function Is(){if(Qr)return An;Qr=1;var e=An&&An.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(An,"__esModule",{value:!0}),An.default=t;const n=e(Cs());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const a=(0,n.default)(r),s=typeof i=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:u}=l;s?i(c,u,l):u&&(o=o||{},o[c]=u)}),o}return An}var zn={},Jr;function Os(){if(Jr)return zn;Jr=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(c){return!c||t.test(c)||e.test(c)},a=function(c,u){return u.toUpperCase()},s=function(c,u){return"".concat(u,"-")},l=function(c,u){return u===void 0&&(u={}),o(c)?c:(c=c.toLowerCase(),u.reactCompat?c=c.replace(i,s):c=c.replace(r,s),c.replace(n,a))};return zn.camelCase=l,zn}var Un,ei;function Rs(){if(ei)return Un;ei=1;var e=Un&&Un.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(Is()),t=Os();function r(i,o){var a={};return!i||typeof i!="string"||(0,n.default)(i,function(s,l){s&&l&&(a[(0,t.camelCase)(s,o)]=l)}),a}return r.default=r,Un=r,Un}var Ms=Rs();const Ls=fr(Ms),oa=sa("end"),hr=sa("start");function sa(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Ds(e){const n=hr(e),t=oa(e);if(n&&t)return{start:n,end:t}}function Kn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ni(e.position):"start"in e||"end"in e?ni(e):"line"in e||"column"in e?ir(e):""}function ir(e){return ti(e&&e.line)+":"+ti(e&&e.column)}function ni(e){return ir(e&&e.start)+"-"+ir(e&&e.end)}function ti(e){return e&&typeof e=="number"?e:1}class Ce extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},a=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(a=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Kn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ce.prototype.file="";Ce.prototype.name="";Ce.prototype.reason="";Ce.prototype.message="";Ce.prototype.stack="";Ce.prototype.column=void 0;Ce.prototype.line=void 0;Ce.prototype.ancestors=void 0;Ce.prototype.cause=void 0;Ce.prototype.fatal=void 0;Ce.prototype.place=void 0;Ce.prototype.ruleId=void 0;Ce.prototype.source=void 0;const br={}.hasOwnProperty,Ps=new Map,Bs=/[A-Z]/g,Fs=new Set(["table","tbody","thead","tfoot","tr"]),zs=new Set(["td","th"]),la="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Us(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ys(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Vs(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?mr:As,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=ca(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function ca(e,n,t){if(n.type==="element")return $s(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Hs(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Ks(e,n,t);if(n.type==="mdxjsEsm")return Gs(e,n);if(n.type==="root")return qs(e,n,t);if(n.type==="text")return Ws(e,n)}function $s(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=mr,e.schema=i),e.ancestors.push(n);const o=da(e,n.tagName,!1),a=js(e,n);let s=_r(e,n);return Fs.has(n.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!bs(l):!0})),ua(e,a,o,n),Er(a,s),e.ancestors.pop(),e.schema=r,e.create(n,o,a,t)}function Hs(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Vn(e,n.position)}function Gs(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Vn(e,n.position)}function Ks(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=mr,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:da(e,n.name,!0),a=Zs(e,n),s=_r(e,n);return ua(e,a,o,n),Er(a,s),e.ancestors.pop(),e.schema=r,e.create(n,o,a,t)}function qs(e,n,t){const r={};return Er(r,_r(e,n)),e.create(n,e.Fragment,r,t)}function Ws(e,n){return n.value}function ua(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Er(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Vs(e,n,t){return r;function r(i,o,a,s){const c=Array.isArray(a.children)?t:n;return s?c(o,a,s):c(o,a)}}function Ys(e,n){return t;function t(r,i,o,a){const s=Array.isArray(o.children),l=hr(r);return n(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function js(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&br.call(n.properties,i)){const o=Xs(e,i,n.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&zs.has(n.tagName)?r=s:t[a]=s}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Zs(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(t,e.evaluater.evaluateExpression(s.argument))}else Vn(e,n.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else Vn(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function _r(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Ps;for(;++r<n.children.length;){const o=n.children[r];let a;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=i.get(l)||0;a=l+"-"+c,i.set(l,c+1)}}const s=ca(e,o,a);s!==void 0&&t.push(s)}return t}function Xs(e,n,t){const r=Ss(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?ps(t):vs(t)),r.property==="style"){let i=typeof t=="object"?t:Qs(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Js(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ks[r.property]||r.property:r.attribute,t]}}function Qs(e,n){try{return Ls(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Ce("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=la+"#cannot-parse-style-attribute",i}}function da(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,a;for(;++o<i.length;){const s=Vr(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=a}else r=Vr(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return br.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Vn(e)}function Vn(e,n){const t=new Ce("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=la+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Js(e){const n={};let t;for(t in e)br.call(e,t)&&(n[el(t)]=e[t]);return n}function el(e){let n=e.replace(Bs,nl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function nl(e){return"-"+e.toLowerCase()}const Bt={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},tl={};function yr(e,n){const t=tl,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return pa(e,r,i)}function pa(e,n,t){if(rl(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ri(e.children,n,t)}return Array.isArray(e)?ri(e,n,t):""}function ri(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=pa(e[i],n,t);return r.join("")}function rl(e){return!!(e&&typeof e=="object")}const ii=document.createElement("i");function kr(e){const n="&"+e+";";ii.innerHTML=n;const t=ii.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function He(e,n,t,r){const i=e.length;let o=0,a;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)a=Array.from(r),a.unshift(n,t),e.splice(...a);else for(t&&e.splice(n,t);o<r.length;)a=r.slice(o,o+1e4),a.unshift(n,0),e.splice(...a),o+=1e4,n+=1e4}function Ke(e,n){return e.length>0?(He(e,e.length,0,n),e):n}const ai={}.hasOwnProperty;function fa(e){const n={};let t=-1;for(;++t<e.length;)il(n,e[t]);return n}function il(e,n){let t;for(t in n){const i=(ai.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let a;if(o)for(a in o){ai.call(i,a)||(i[a]=[]);const s=o[a];al(i[a],Array.isArray(s)?s:s?[s]:[])}}}function al(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);He(e,0,0,r)}function ga(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Ye(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Me=mn(/[A-Za-z]/),ve=mn(/[\dA-Za-z]/),ol=mn(/[#-'*+\--9=?A-Z^-~]/);function ht(e){return e!==null&&(e<32||e===127)}const ar=mn(/\d/),sl=mn(/[\dA-Fa-f]/),ll=mn(/[!-/:-@[-`{-~]/);function W(e){return e!==null&&e<-2}function me(e){return e!==null&&(e<0||e===32)}function re(e){return e===-2||e===-1||e===32}const xt=mn(new RegExp("\\p{P}|\\p{S}","u")),kn=mn(/\s/);function mn(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Mn(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let a="";if(o===37&&ve(e.charCodeAt(t+1))&&ve(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(t+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(n.push(e.slice(r,t),encodeURIComponent(a)),r=t+i+1,a=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function ae(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return re(l)?(e.enter(t),s(l)):n(l)}function s(l){return re(l)&&o++<i?(e.consume(l),s):(e.exit(t),n(l))}}const cl={tokenize:ul};function ul(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ae(e,n,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=l),t=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return W(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const dl={tokenize:pl},oi={tokenize:fl};function pl(e){const n=this,t=[];let r=0,i,o,a;return s;function s(w){if(r<t.length){const A=t[r];return n.containerState=A[1],e.attempt(A[0].continuation,l,c)(w)}return c(w)}function l(w){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&S();const A=n.events.length;let O=A,k;for(;O--;)if(n.events[O][0]==="exit"&&n.events[O][1].type==="chunkFlow"){k=n.events[O][1].end;break}E(r);let U=A;for(;U<n.events.length;)n.events[U][1].end={...k},U++;return He(n.events,O+1,0,n.events.slice(A)),n.events.length=U,c(w)}return s(w)}function c(w){if(r===t.length){if(!i)return f(w);if(i.currentConstruct&&i.currentConstruct.concrete)return g(w);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(oi,u,d)(w)}function u(w){return i&&S(),E(r),f(w)}function d(w){return n.parser.lazy[n.now().line]=r!==t.length,a=n.now().offset,g(w)}function f(w){return n.containerState={},e.attempt(oi,p,g)(w)}function p(w){return r++,t.push([n.currentConstruct,n.containerState]),f(w)}function g(w){if(w===null){i&&S(),E(0),e.consume(w);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),_(w)}function _(w){if(w===null){y(e.exit("chunkFlow"),!0),E(0),e.consume(w);return}return W(w)?(e.consume(w),y(e.exit("chunkFlow")),r=0,n.interrupt=void 0,s):(e.consume(w),_)}function y(w,A){const O=n.sliceStream(w);if(A&&O.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(O),n.parser.lazy[w.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<a&&(!i.events[k][1].end||i.events[k][1].end.offset>a))return;const U=n.events.length;let H=U,G,x;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){if(G){x=n.events[H][1].end;break}G=!0}for(E(r),k=U;k<n.events.length;)n.events[k][1].end={...x},k++;He(n.events,H+1,0,n.events.slice(U)),n.events.length=k}}function E(w){let A=t.length;for(;A-- >w;){const O=t[A];n.containerState=O[1],O[0].exit.call(n,e)}t.length=w}function S(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function fl(e,n,t){return ae(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function On(e){if(e===null||me(e)||kn(e))return 1;if(xt(e))return 2}function wt(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const or={name:"attention",resolveAll:gl,tokenize:ml};function gl(e,n){let t=-1,r,i,o,a,s,l,c,u;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[t][1].start};si(d,-l),si(f,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[t][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Ke(c,[["enter",e[r][1],n],["exit",e[r][1],n]])),c=Ke(c,[["enter",i,n],["enter",a,n],["exit",a,n],["enter",o,n]]),c=Ke(c,wt(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),c=Ke(c,[["exit",o,n],["enter",s,n],["exit",s,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(u=2,c=Ke(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):u=0,He(e,r-1,t-r+3,c),t=r+c.length-u-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function ml(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=On(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),u=On(l),d=!u||u===2&&i||t.includes(l),f=!i||i===2&&u||t.includes(r);return c._open=!!(o===42?d:d&&(i||!f)),c._close=!!(o===42?f:f&&(u||!d)),n(l)}}function si(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const hl={name:"autolink",tokenize:bl};function bl(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return Me(p)?(e.consume(p),a):p===64?t(p):c(p)}function a(p){return p===43||p===45||p===46||ve(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||ve(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||ht(p)?t(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),u):ol(p)?(e.consume(p),c):t(p)}function u(p){return ve(p)?d(p):t(p)}function d(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):f(p)}function f(p){if((p===45||ve(p))&&r++<63){const g=p===45?f:d;return e.consume(p),g}return t(p)}}const Zn={partial:!0,tokenize:El};function El(e,n,t){return r;function r(o){return re(o)?ae(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||W(o)?n(o):t(o)}}const ma={continuation:{tokenize:yl},exit:kl,name:"blockQuote",tokenize:_l};function _l(e,n,t){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return t(a)}function o(a){return re(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(a))}}function yl(e,n,t){const r=this;return i;function i(a){return re(a)?ae(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(ma,n,t)(a)}}function kl(e){e.exit("blockQuote")}const ha={name:"characterEscape",tokenize:xl};function xl(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return ll(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const ba={name:"characterReference",tokenize:wl};function wl(e,n,t){const r=this;let i=0,o,a;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=ve,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=sl,u):(e.enter("characterReferenceValue"),o=7,a=ar,u(d))}function u(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return a===ve&&!kr(r.sliceSerialize(f))?t(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return a(d)&&i++<o?(e.consume(d),u):t(d)}}const li={partial:!0,tokenize:Nl},ci={concrete:!0,name:"codeFenced",tokenize:Sl};function Sl(e,n,t){const r=this,i={partial:!0,tokenize:O};let o=0,a=0,s;return l;function l(k){return c(k)}function c(k){const U=r.events[r.events.length-1];return o=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,s=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(k)}function u(k){return k===s?(a++,e.consume(k),u):a<3?t(k):(e.exit("codeFencedFenceSequence"),re(k)?ae(e,d,"whitespace")(k):d(k))}function d(k){return k===null||W(k)?(e.exit("codeFencedFence"),r.interrupt?n(k):e.check(li,_,A)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||W(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(k)):re(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ae(e,p,"whitespace")(k)):k===96&&k===s?t(k):(e.consume(k),f)}function p(k){return k===null||W(k)?d(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||W(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(k)):k===96&&k===s?t(k):(e.consume(k),g)}function _(k){return e.attempt(i,A,y)(k)}function y(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),E}function E(k){return o>0&&re(k)?ae(e,S,"linePrefix",o+1)(k):S(k)}function S(k){return k===null||W(k)?e.check(li,_,A)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||W(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),w)}function A(k){return e.exit("codeFenced"),n(k)}function O(k,U,H){let G=0;return x;function x(C){return k.enter("lineEnding"),k.consume(C),k.exit("lineEnding"),B}function B(C){return k.enter("codeFencedFence"),re(C)?ae(k,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):F(C)}function F(C){return C===s?(k.enter("codeFencedFenceSequence"),ee(C)):H(C)}function ee(C){return C===s?(G++,k.consume(C),ee):G>=a?(k.exit("codeFencedFenceSequence"),re(C)?ae(k,D,"whitespace")(C):D(C)):H(C)}function D(C){return C===null||W(C)?(k.exit("codeFencedFence"),U(C)):H(C)}}}function Nl(e,n,t){const r=this;return i;function i(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?t(a):n(a)}}const Ft={name:"codeIndented",tokenize:Al},Tl={partial:!0,tokenize:vl};function Al(e,n,t){const r=this;return i;function i(c){return e.enter("codeIndented"),ae(e,o,"linePrefix",5)(c)}function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):t(c)}function a(c){return c===null?l(c):W(c)?e.attempt(Tl,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||W(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),n(c)}}function vl(e,n,t){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?t(a):W(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):ae(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?n(a):W(a)?i(a):t(a)}}const Cl={name:"codeText",previous:Ol,resolve:Il,tokenize:Rl};function Il(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Ol(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Rl(e,n,t){let r=0,i,o;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?t(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(o=e.enter("codeTextSequence"),i=0,u(d)):W(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||W(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(d)):(o.type="codeTextData",c(d))}}class Ml{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&$n(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),$n(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),$n(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);$n(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);$n(this.left,t.reverse())}}}function $n(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Ea(e){const n={};let t=-1,r,i,o,a,s,l,c;const u=new Ml(e);for(;++t<u.length;){for(;t in n;)t=n[t];if(r=u.get(t),t&&r[1].type==="chunkFlow"&&u.get(t-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Ll(u,t)),t=n[t],c=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(a=u.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,t),s.unshift(r),u.splice(i,t-i+1,s))}}return He(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function Ll(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let a=t._tokenizer;a||(a=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let u,d,f=-1,p=t,g=0,_=0;const y=[_];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=t;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(_=f+1,y.push(_),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),f=y.length;f--;){const E=s.slice(y[f],y[f+1]),S=o.pop();l.push([S,S+E.length-1]),e.splice(S,2,E)}for(l.reverse(),f=-1;++f<l.length;)c[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return c}const Dl={resolve:Bl,tokenize:Fl},Pl={partial:!0,tokenize:zl};function Bl(e){return Ea(e),e}function Fl(e,n){let t;return r;function r(s){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):W(s)?e.check(Pl,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),n(s)}function a(s){return e.consume(s),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function zl(e,n,t){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ae(e,o,"linePrefix")}function o(a){if(a===null||W(a))return t(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?n(a):e.interrupt(r.parser.constructs.flow,t,n)(a)}}function _a(e,n,t,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(E){return E===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(E),e.exit(o),f):E===null||E===32||E===41||ht(E)?t(E):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),_(E))}function f(E){return E===62?(e.enter(o),e.consume(E),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===62?(e.exit("chunkString"),e.exit(s),f(E)):E===null||E===60||W(E)?t(E):(e.consume(E),E===92?g:p)}function g(E){return E===60||E===62||E===92?(e.consume(E),p):p(E)}function _(E){return!u&&(E===null||E===41||me(E))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),n(E)):u<c&&E===40?(e.consume(E),u++,_):E===41?(e.consume(E),u--,_):E===null||E===32||E===40||ht(E)?t(E):(e.consume(E),E===92?y:_)}function y(E){return E===40||E===41||E===92?(e.consume(E),_):_(E)}}function ya(e,n,t,r,i,o){const a=this;let s=0,l;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),u}function u(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?t(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):W(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||W(p)||s++>999?(e.exit("chunkString"),u(p)):(e.consume(p),l||(l=!re(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function ka(e,n,t,r,i,o){let a;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l):t(f)}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):(e.enter(o),c(f))}function c(f){return f===a?(e.exit(o),l(a)):f===null?t(f):W(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ae(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===a||f===null||W(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:u)}function d(f){return f===a||f===92?(e.consume(f),u):u(f)}}function qn(e,n){let t;return r;function r(i){return W(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):re(i)?ae(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ul={name:"definition",tokenize:Hl},$l={partial:!0,tokenize:Gl};function Hl(e,n,t){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return ya.call(r,e,s,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=Ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):t(p)}function l(p){return me(p)?qn(e,c)(p):c(p)}function c(p){return _a(e,u,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt($l,d,d)(p)}function d(p){return re(p)?ae(e,f,"whitespace")(p):f(p)}function f(p){return p===null||W(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Gl(e,n,t){return r;function r(s){return me(s)?qn(e,i)(s):t(s)}function i(s){return ka(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return re(s)?ae(e,a,"whitespace")(s):a(s)}function a(s){return s===null||W(s)?n(s):t(s)}}const Kl={name:"hardBreakEscape",tokenize:ql};function ql(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return W(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const Wl={name:"headingAtx",resolve:Vl,tokenize:Yl};function Vl(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},He(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function Yl(e,n,t){let r=0;return i;function i(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&r++<6?(e.consume(u),a):u===null||me(u)?(e.exit("atxHeadingSequence"),s(u)):t(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||W(u)?(e.exit("atxHeading"),n(u)):re(u)?ae(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||me(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const jl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ui=["pre","script","style","textarea"],Zl={concrete:!0,name:"htmlFlow",resolveTo:Jl,tokenize:ec},Xl={partial:!0,tokenize:tc},Ql={partial:!0,tokenize:nc};function Jl(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function ec(e,n,t){const r=this;let i,o,a,s,l;return c;function c(b){return u(b)}function u(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),d}function d(b){return b===33?(e.consume(b),f):b===47?(e.consume(b),o=!0,_):b===63?(e.consume(b),i=3,r.interrupt?n:m):Me(b)?(e.consume(b),a=String.fromCharCode(b),y):t(b)}function f(b){return b===45?(e.consume(b),i=2,p):b===91?(e.consume(b),i=5,s=0,g):Me(b)?(e.consume(b),i=4,r.interrupt?n:m):t(b)}function p(b){return b===45?(e.consume(b),r.interrupt?n:m):t(b)}function g(b){const Ie="CDATA[";return b===Ie.charCodeAt(s++)?(e.consume(b),s===Ie.length?r.interrupt?n:F:g):t(b)}function _(b){return Me(b)?(e.consume(b),a=String.fromCharCode(b),y):t(b)}function y(b){if(b===null||b===47||b===62||me(b)){const Ie=b===47,Ge=a.toLowerCase();return!Ie&&!o&&ui.includes(Ge)?(i=1,r.interrupt?n(b):F(b)):jl.includes(a.toLowerCase())?(i=6,Ie?(e.consume(b),E):r.interrupt?n(b):F(b)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(b):o?S(b):w(b))}return b===45||ve(b)?(e.consume(b),a+=String.fromCharCode(b),y):t(b)}function E(b){return b===62?(e.consume(b),r.interrupt?n:F):t(b)}function S(b){return re(b)?(e.consume(b),S):x(b)}function w(b){return b===47?(e.consume(b),x):b===58||b===95||Me(b)?(e.consume(b),A):re(b)?(e.consume(b),w):x(b)}function A(b){return b===45||b===46||b===58||b===95||ve(b)?(e.consume(b),A):O(b)}function O(b){return b===61?(e.consume(b),k):re(b)?(e.consume(b),O):w(b)}function k(b){return b===null||b===60||b===61||b===62||b===96?t(b):b===34||b===39?(e.consume(b),l=b,U):re(b)?(e.consume(b),k):H(b)}function U(b){return b===l?(e.consume(b),l=null,G):b===null||W(b)?t(b):(e.consume(b),U)}function H(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||me(b)?O(b):(e.consume(b),H)}function G(b){return b===47||b===62||re(b)?w(b):t(b)}function x(b){return b===62?(e.consume(b),B):t(b)}function B(b){return b===null||W(b)?F(b):re(b)?(e.consume(b),B):t(b)}function F(b){return b===45&&i===2?(e.consume(b),Z):b===60&&i===1?(e.consume(b),se):b===62&&i===4?(e.consume(b),ue):b===63&&i===3?(e.consume(b),m):b===93&&i===5?(e.consume(b),pe):W(b)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Xl,fe,ee)(b)):b===null||W(b)?(e.exit("htmlFlowData"),ee(b)):(e.consume(b),F)}function ee(b){return e.check(Ql,D,fe)(b)}function D(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),C}function C(b){return b===null||W(b)?ee(b):(e.enter("htmlFlowData"),F(b))}function Z(b){return b===45?(e.consume(b),m):F(b)}function se(b){return b===47?(e.consume(b),a="",X):F(b)}function X(b){if(b===62){const Ie=a.toLowerCase();return ui.includes(Ie)?(e.consume(b),ue):F(b)}return Me(b)&&a.length<8?(e.consume(b),a+=String.fromCharCode(b),X):F(b)}function pe(b){return b===93?(e.consume(b),m):F(b)}function m(b){return b===62?(e.consume(b),ue):b===45&&i===2?(e.consume(b),m):F(b)}function ue(b){return b===null||W(b)?(e.exit("htmlFlowData"),fe(b)):(e.consume(b),ue)}function fe(b){return e.exit("htmlFlow"),n(b)}}function nc(e,n,t){const r=this;return i;function i(a){return W(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):t(a)}function o(a){return r.parser.lazy[r.now().line]?t(a):n(a)}}function tc(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Zn,n,t)}}const rc={name:"htmlText",tokenize:ic};function ic(e,n,t){const r=this;let i,o,a;return s;function s(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),l}function l(m){return m===33?(e.consume(m),c):m===47?(e.consume(m),O):m===63?(e.consume(m),w):Me(m)?(e.consume(m),H):t(m)}function c(m){return m===45?(e.consume(m),u):m===91?(e.consume(m),o=0,g):Me(m)?(e.consume(m),S):t(m)}function u(m){return m===45?(e.consume(m),p):t(m)}function d(m){return m===null?t(m):m===45?(e.consume(m),f):W(m)?(a=d,se(m)):(e.consume(m),d)}function f(m){return m===45?(e.consume(m),p):d(m)}function p(m){return m===62?Z(m):m===45?f(m):d(m)}function g(m){const ue="CDATA[";return m===ue.charCodeAt(o++)?(e.consume(m),o===ue.length?_:g):t(m)}function _(m){return m===null?t(m):m===93?(e.consume(m),y):W(m)?(a=_,se(m)):(e.consume(m),_)}function y(m){return m===93?(e.consume(m),E):_(m)}function E(m){return m===62?Z(m):m===93?(e.consume(m),E):_(m)}function S(m){return m===null||m===62?Z(m):W(m)?(a=S,se(m)):(e.consume(m),S)}function w(m){return m===null?t(m):m===63?(e.consume(m),A):W(m)?(a=w,se(m)):(e.consume(m),w)}function A(m){return m===62?Z(m):w(m)}function O(m){return Me(m)?(e.consume(m),k):t(m)}function k(m){return m===45||ve(m)?(e.consume(m),k):U(m)}function U(m){return W(m)?(a=U,se(m)):re(m)?(e.consume(m),U):Z(m)}function H(m){return m===45||ve(m)?(e.consume(m),H):m===47||m===62||me(m)?G(m):t(m)}function G(m){return m===47?(e.consume(m),Z):m===58||m===95||Me(m)?(e.consume(m),x):W(m)?(a=G,se(m)):re(m)?(e.consume(m),G):Z(m)}function x(m){return m===45||m===46||m===58||m===95||ve(m)?(e.consume(m),x):B(m)}function B(m){return m===61?(e.consume(m),F):W(m)?(a=B,se(m)):re(m)?(e.consume(m),B):G(m)}function F(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,ee):W(m)?(a=F,se(m)):re(m)?(e.consume(m),F):(e.consume(m),D)}function ee(m){return m===i?(e.consume(m),i=void 0,C):m===null?t(m):W(m)?(a=ee,se(m)):(e.consume(m),ee)}function D(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||me(m)?G(m):(e.consume(m),D)}function C(m){return m===47||m===62||me(m)?G(m):t(m)}function Z(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function se(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),X}function X(m){return re(m)?ae(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):pe(m)}function pe(m){return e.enter("htmlTextData"),a(m)}}const xr={name:"labelEnd",resolveAll:lc,resolveTo:cc,tokenize:uc},ac={tokenize:dc},oc={tokenize:pc},sc={tokenize:fc};function lc(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&He(e,0,e.length,t),e}function cc(e,n){let t=e.length,r=0,i,o,a,s;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=t);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,n],["enter",c,n]],s=Ke(s,e.slice(o+1,o+r+3)),s=Ke(s,[["enter",u,n]]),s=Ke(s,wt(n.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),n)),s=Ke(s,[["exit",u,n],e[a-2],e[a-1],["exit",c,n]]),s=Ke(s,e.slice(a+1)),s=Ke(s,[["exit",l,n]]),He(e,o,e.length,s),e}function uc(e,n,t){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(f){return o?o._inactive?d(f):(a=r.parser.defined.includes(Ye(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):t(f)}function l(f){return f===40?e.attempt(ac,u,a?u:d)(f):f===91?e.attempt(oc,u,a?c:d)(f):a?u(f):d(f)}function c(f){return e.attempt(sc,u,d)(f)}function u(f){return n(f)}function d(f){return o._balanced=!0,t(f)}}function dc(e,n,t){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return me(d)?qn(e,o)(d):o(d)}function o(d){return d===41?u(d):_a(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return me(d)?qn(e,l)(d):u(d)}function s(d){return t(d)}function l(d){return d===34||d===39||d===40?ka(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return me(d)?qn(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),n):t(d)}}function pc(e,n,t){const r=this;return i;function i(s){return ya.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(Ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(s):t(s)}function a(s){return t(s)}}function fc(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const gc={name:"labelStartImage",resolveAll:xr.resolveAll,tokenize:mc};function mc(e,n,t){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):t(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(s):n(s)}}const hc={name:"labelStartLink",resolveAll:xr.resolveAll,tokenize:bc};function bc(e,n,t){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const zt={name:"lineEnding",tokenize:Ec};function Ec(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ae(e,n,"linePrefix")}}const mt={name:"thematicBreak",tokenize:_c};function _c(e,n,t){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||W(c))?(e.exit("thematicBreak"),n(c)):t(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),re(c)?ae(e,s,"whitespace")(c):s(c))}}const Le={continuation:{tokenize:wc},exit:Nc,name:"list",tokenize:xc},yc={partial:!0,tokenize:Tc},kc={partial:!0,tokenize:Sc};function xc(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ar(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(mt,t,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return t(p)}function l(p){return ar(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):t(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Zn,r.interrupt?t:u,e.attempt(yc,f,d))}function u(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return re(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):t(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function wc(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Zn,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ae(e,n,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!re(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(kc,n,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ae(e,e.attempt(Le,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Sc(e,n,t){const r=this;return ae(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?n(o):t(o)}}function Nc(e){e.exit(this.containerState.type)}function Tc(e,n,t){const r=this;return ae(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!re(o)&&a&&a[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const di={name:"setextUnderline",resolveTo:Ac,tokenize:vc};function Ac(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,n]),e}function vc(e,n,t){const r=this;let i;return o;function o(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,a(c)):t(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),re(c)?ae(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||W(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}const Cc={tokenize:Ic};function Ic(e){const n=this,t=e.attempt(Zn,r,e.attempt(this.parser.constructs.flowInitial,i,ae(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Dl,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Oc={resolveAll:wa()},Rc=xa("string"),Mc=xa("text");function xa(e){return{resolveAll:wa(e==="text"?Lc:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,a,s);return a;function a(u){return c(u)?o(u):s(u)}function s(u){if(u===null){t.consume(u);return}return t.enter("data"),t.consume(u),l}function l(u){return c(u)?(t.exit("data"),o(u)):(t.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function wa(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function Lc(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(s=0),s){const c={type:t===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}const Dc={42:Le,43:Le,45:Le,48:Le,49:Le,50:Le,51:Le,52:Le,53:Le,54:Le,55:Le,56:Le,57:Le,62:ma},Pc={91:Ul},Bc={[-2]:Ft,[-1]:Ft,32:Ft},Fc={35:Wl,42:mt,45:[di,mt],60:Zl,61:di,95:mt,96:ci,126:ci},zc={38:ba,92:ha},Uc={[-5]:zt,[-4]:zt,[-3]:zt,33:gc,38:ba,42:or,60:[hl,rc],91:hc,92:[Kl,ha],93:xr,95:or,96:Cl},$c={null:[or,Oc]},Hc={null:[42,95]},Gc={null:[]},Kc=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Hc,contentInitial:Pc,disable:Gc,document:Dc,flow:Fc,flowInitial:Bc,insideSpan:$c,string:zc,text:Uc},Symbol.toStringTag,{value:"Module"}));function qc(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:U(O),check:U(k),consume:S,enter:w,exit:A,interrupt:U(k,{interrupt:!0})},c={code:null,containerState:{},defineSkip:_,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let u=n.tokenize.call(c,l);return n.resolveAll&&o.push(n),c;function d(B){return a=Ke(a,B),y(),a[a.length-1]!==null?[]:(H(n,0),c.events=wt(o,c.events,c),c.events)}function f(B,F){return Vc(p(B),F)}function p(B){return Wc(a,B)}function g(){const{_bufferIndex:B,_index:F,line:ee,column:D,offset:C}=r;return{_bufferIndex:B,_index:F,line:ee,column:D,offset:C}}function _(B){i[B.line]=B.column,x()}function y(){let B;for(;r._index<a.length;){const F=a[r._index];if(typeof F=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<F.length;)E(F.charCodeAt(r._bufferIndex));else E(F)}}function E(B){u=u(B)}function S(B){W(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,x()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=B}function w(B,F){const ee=F||{};return ee.type=B,ee.start=g(),c.events.push(["enter",ee,c]),s.push(ee),ee}function A(B){const F=s.pop();return F.end=g(),c.events.push(["exit",F,c]),F}function O(B,F){H(B,F.from)}function k(B,F){F.restore()}function U(B,F){return ee;function ee(D,C,Z){let se,X,pe,m;return Array.isArray(D)?fe(D):"tokenize"in D?fe([D]):ue(D);function ue(Ee){return en;function en(Pe){const nn=Pe!==null&&Ee[Pe],Be=Pe!==null&&Ee.null,cn=[...Array.isArray(nn)?nn:nn?[nn]:[],...Array.isArray(Be)?Be:Be?[Be]:[]];return fe(cn)(Pe)}}function fe(Ee){return se=Ee,X=0,Ee.length===0?Z:b(Ee[X])}function b(Ee){return en;function en(Pe){return m=G(),pe=Ee,Ee.partial||(c.currentConstruct=Ee),Ee.name&&c.parser.constructs.disable.null.includes(Ee.name)?Ge():Ee.tokenize.call(F?Object.assign(Object.create(c),F):c,l,Ie,Ge)(Pe)}}function Ie(Ee){return B(pe,m),C}function Ge(Ee){return m.restore(),++X<se.length?b(se[X]):Z}}}function H(B,F){B.resolveAll&&!o.includes(B)&&o.push(B),B.resolve&&He(c.events,F,c.events.length-F,B.resolve(c.events.slice(F),c)),B.resolveTo&&(c.events=B.resolveTo(c.events,c))}function G(){const B=g(),F=c.previous,ee=c.currentConstruct,D=c.events.length,C=Array.from(s);return{from:D,restore:Z};function Z(){r=B,c.previous=F,c.currentConstruct=ee,c.events.length=D,s=C,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Wc(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let a;if(t===i)a=[e[t].slice(r,o)];else{if(a=e.slice(t,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function Vc(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
3
3
  `;break}case-3:{a=`\r
4
4
  `;break}case-2:{a=n?" ":" ";break}case-1:{if(!n&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function Yc(e){const r={constructs:fa([Kc,...(e||{}).extensions||[]]),content:i(cl),defined:[],document:i(dl),flow:i(Cc),lazy:{},string:i(Rc),text:i(Mc)};return r;function i(o){return a;function a(s){return qc(r,o,s)}}}function jc(e){for(;!Ea(e););return e}const pi=/[\0\t\n\r]/g;function Zc(){let e=1,n="",t=!0,r;return i;function i(o,a,s){const l=[];let c,u,d,f,p;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),d=0,n="",t&&(o.charCodeAt(0)===65279&&d++,t=void 0);d<o.length;){if(pi.lastIndex=d,c=pi.exec(o),f=c&&c.index!==void 0?c.index:o.length,p=o.charCodeAt(f),!c){n=o.slice(d);break}if(p===10&&d===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<f&&(l.push(o.slice(d,f)),e+=f-d),p){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return s&&(r&&l.push(-5),n&&l.push(n),l.push(null)),l}}const Xc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Qc(e){return e.replace(Xc,Jc)}function Jc(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return ga(t.slice(o?2:1),o?16:10)}return kr(t)||e}const Sa={}.hasOwnProperty;function eu(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),nu(t)(jc(Yc(t).document().write(Zc()(e,n,!0))))}function nu(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Nn),autolinkProtocol:G,autolinkEmail:G,atxHeading:o(Sn),blockQuote:o(Be),characterEscape:G,characterReference:G,codeFenced:o(cn),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(cn,a),codeText:o(Ln,a),codeTextData:G,data:G,codeFlowValue:G,definition:o(Dn),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(Pn),hardBreakEscape:o(oe),hardBreakTrailing:o(oe),htmlFlow:o(tn,a),htmlFlowData:G,htmlText:o(tn,a),htmlTextData:G,image:o(rn),label:a,link:o(Nn),listItem:o(At),listItemValue:f,listOrdered:o(Bn,d),listUnordered:o(Bn),paragraph:o(vt),reference:b,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(Sn),strong:o(Jn),thematicBreak:o(et)},exit:{atxHeading:l(),atxHeadingSequence:O,autolink:l(),autolinkEmail:nn,autolinkProtocol:Pe,blockQuote:l(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:Ge,characterReferenceMarkerNumeric:Ge,characterReferenceValue:Ee,characterReference:en,codeFenced:l(y),codeFencedFence:_,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:x,codeIndented:l(E),codeText:l(C),codeTextData:x,data:x,definition:l(),definitionDestinationString:A,definitionLabelString:S,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(F),hardBreakTrailing:l(F),htmlFlow:l(ee),htmlFlowData:x,htmlText:l(D),htmlTextData:x,image:l(se),label:pe,labelText:X,lineEnding:B,link:l(Z),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Ie,resourceDestinationString:m,resourceTitleString:ue,resource:fe,setextHeading:l(H),setextHeadingLineSequence:U,setextHeadingText:k,strong:l(),thematicBreak:l()}};Na(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(N){let R={type:"root",children:[]};const V={stack:[R],tokenStack:[],config:n,enter:s,exit:c,buffer:a,resume:u,data:t},te=[];let le=-1;for(;++le<N.length;)if(N[le][1].type==="listOrdered"||N[le][1].type==="listUnordered")if(N[le][0]==="enter")te.push(le);else{const Fe=te.pop();le=i(N,Fe,le)}for(le=-1;++le<N.length;){const Fe=n[N[le][0]];Sa.call(Fe,N[le][1].type)&&Fe[N[le][1].type].call(Object.assign({sliceSerialize:N[le][2].sliceSerialize},V),N[le][1])}if(V.tokenStack.length>0){const Fe=V.tokenStack[V.tokenStack.length-1];(Fe[1]||fi).call(V,void 0,Fe[0])}for(R.position={start:gn(N.length>0?N[0][1].start:{line:1,column:1,offset:0}),end:gn(N.length>0?N[N.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le<n.transforms.length;)R=n.transforms[le](R)||R;return R}function i(N,R,V){let te=R-1,le=-1,Fe=!1,on,qe,un,hn;for(;++te<=V;){const Oe=N[te];switch(Oe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Oe[0]==="enter"?le++:le--,hn=void 0;break}case"lineEndingBlank":{Oe[0]==="enter"&&(on&&!hn&&!le&&!un&&(un=te),hn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:hn=void 0}if(!le&&Oe[0]==="enter"&&Oe[1].type==="listItemPrefix"||le===-1&&Oe[0]==="exit"&&(Oe[1].type==="listUnordered"||Oe[1].type==="listOrdered")){if(on){let dn=te;for(qe=void 0;dn--;){const ze=N[dn];if(ze[1].type==="lineEnding"||ze[1].type==="lineEndingBlank"){if(ze[0]==="exit")continue;qe&&(N[qe][1].type="lineEndingBlank",Fe=!0),ze[1].type="lineEnding",qe=dn}else if(!(ze[1].type==="linePrefix"||ze[1].type==="blockQuotePrefix"||ze[1].type==="blockQuotePrefixWhitespace"||ze[1].type==="blockQuoteMarker"||ze[1].type==="listItemIndent"))break}un&&(!qe||un<qe)&&(on._spread=!0),on.end=Object.assign({},qe?N[qe][1].start:Oe[1].end),N.splice(qe||te,0,["exit",on,Oe[2]]),te++,V++}if(Oe[1].type==="listItemPrefix"){const dn={type:"listItem",_spread:!1,start:Object.assign({},Oe[1].start),end:void 0};on=dn,N.splice(te,0,["enter",dn,Oe[2]]),te++,V++,un=void 0,hn=!0}}}return N[R][1]._spread=Fe,V}function o(N,R){return V;function V(te){s.call(this,N(te),te),R&&R.call(this,te)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(N,R,V){this.stack[this.stack.length-1].children.push(N),this.stack.push(N),this.tokenStack.push([R,V||void 0]),N.position={start:gn(R.start),end:void 0}}function l(N){return R;function R(V){N&&N.call(this,V),c.call(this,V)}}function c(N,R){const V=this.stack.pop(),te=this.tokenStack.pop();if(te)te[0].type!==N.type&&(R?R.call(this,N,te[0]):(te[1]||fi).call(this,N,te[0]));else throw new Error("Cannot close `"+N.type+"` ("+Kn({start:N.start,end:N.end})+"): it’s not open");V.position.end=gn(N.end)}function u(){return yr(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(N){if(this.data.expectingFirstListItemValue){const R=this.stack[this.stack.length-2];R.start=Number.parseInt(this.sliceSerialize(N),10),this.data.expectingFirstListItemValue=void 0}}function p(){const N=this.resume(),R=this.stack[this.stack.length-1];R.lang=N}function g(){const N=this.resume(),R=this.stack[this.stack.length-1];R.meta=N}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const N=this.resume(),R=this.stack[this.stack.length-1];R.value=N.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const N=this.resume(),R=this.stack[this.stack.length-1];R.value=N.replace(/(\r?\n|\r)$/g,"")}function S(N){const R=this.resume(),V=this.stack[this.stack.length-1];V.label=R,V.identifier=Ye(this.sliceSerialize(N)).toLowerCase()}function w(){const N=this.resume(),R=this.stack[this.stack.length-1];R.title=N}function A(){const N=this.resume(),R=this.stack[this.stack.length-1];R.url=N}function O(N){const R=this.stack[this.stack.length-1];if(!R.depth){const V=this.sliceSerialize(N).length;R.depth=V}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function U(N){const R=this.stack[this.stack.length-1];R.depth=this.sliceSerialize(N).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function G(N){const V=this.stack[this.stack.length-1].children;let te=V[V.length-1];(!te||te.type!=="text")&&(te=an(),te.position={start:gn(N.start),end:void 0},V.push(te)),this.stack.push(te)}function x(N){const R=this.stack.pop();R.value+=this.sliceSerialize(N),R.position.end=gn(N.end)}function B(N){const R=this.stack[this.stack.length-1];if(this.data.atHardBreak){const V=R.children[R.children.length-1];V.position.end=gn(N.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(R.type)&&(G.call(this,N),x.call(this,N))}function F(){this.data.atHardBreak=!0}function ee(){const N=this.resume(),R=this.stack[this.stack.length-1];R.value=N}function D(){const N=this.resume(),R=this.stack[this.stack.length-1];R.value=N}function C(){const N=this.resume(),R=this.stack[this.stack.length-1];R.value=N}function Z(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const R=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=R,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function se(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const R=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=R,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function X(N){const R=this.sliceSerialize(N),V=this.stack[this.stack.length-2];V.label=Qc(R),V.identifier=Ye(R).toLowerCase()}function pe(){const N=this.stack[this.stack.length-1],R=this.resume(),V=this.stack[this.stack.length-1];if(this.data.inReference=!0,V.type==="link"){const te=N.children;V.children=te}else V.alt=R}function m(){const N=this.resume(),R=this.stack[this.stack.length-1];R.url=N}function ue(){const N=this.resume(),R=this.stack[this.stack.length-1];R.title=N}function fe(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function Ie(N){const R=this.resume(),V=this.stack[this.stack.length-1];V.label=R,V.identifier=Ye(this.sliceSerialize(N)).toLowerCase(),this.data.referenceType="full"}function Ge(N){this.data.characterReferenceType=N.type}function Ee(N){const R=this.sliceSerialize(N),V=this.data.characterReferenceType;let te;V?(te=ga(R,V==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):te=kr(R);const le=this.stack[this.stack.length-1];le.value+=te}function en(N){const R=this.stack.pop();R.position.end=gn(N.end)}function Pe(N){x.call(this,N);const R=this.stack[this.stack.length-1];R.url=this.sliceSerialize(N)}function nn(N){x.call(this,N);const R=this.stack[this.stack.length-1];R.url="mailto:"+this.sliceSerialize(N)}function Be(){return{type:"blockquote",children:[]}}function cn(){return{type:"code",lang:null,meta:null,value:""}}function Ln(){return{type:"inlineCode",value:""}}function Dn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pn(){return{type:"emphasis",children:[]}}function Sn(){return{type:"heading",depth:0,children:[]}}function oe(){return{type:"break"}}function tn(){return{type:"html",value:""}}function rn(){return{type:"image",title:null,url:"",alt:null}}function Nn(){return{type:"link",title:null,url:"",children:[]}}function Bn(N){return{type:"list",ordered:N.type==="listOrdered",start:null,spread:N._spread,children:[]}}function At(N){return{type:"listItem",spread:N._spread,checked:null,children:[]}}function vt(){return{type:"paragraph",children:[]}}function Jn(){return{type:"strong",children:[]}}function an(){return{type:"text",value:""}}function et(){return{type:"thematicBreak"}}}function gn(e){return{line:e.line,column:e.column,offset:e.offset}}function Na(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Na(e,r):tu(e,r)}}function tu(e,n){let t;for(t in n)if(Sa.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function fi(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Kn({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Kn({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Kn({start:n.start,end:n.end})+") is still open")}function ru(e){const n=this;n.parser=t;function t(r){return eu(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function iu(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function au(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
package/dist/index.html CHANGED
@@ -22,7 +22,7 @@
22
22
  } catch (e) {}
23
23
  })();
24
24
  </script>
25
- <script type="module" crossorigin src="/assets/index-BwG_4Oup.js"></script>
25
+ <script type="module" crossorigin src="/assets/index-N8p5fKHh.js"></script>
26
26
  <link rel="stylesheet" crossorigin href="/assets/index-eHCCOf4I.css">
27
27
  <link rel="manifest" href="/manifest.webmanifest"></head>
28
28
  <body>