@chatsystem/client 1.1.50 → 1.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +47 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.mjs +6544 -6538
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),k=require("react"),xn=require("react-dom"),yc=require("lottie-react"),Ac=require("@lottiefiles/dotlottie-react");function Sc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ne=Sc(k),Cc=e=>Ne.createElement("svg",{fill:"#000000",height:"800px",width:"800px",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 330 330",xmlSpace:"preserve",...e},Ne.createElement("path",{id:"XMLID_102_",d:"M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393 c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393 s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z"}));function Ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ot={},di;function _c(){if(di)return Ot;di=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.AgentDisplayFacetRoleType=Ot.AgentDisplayFacetModeType=void 0;var e;(function(n){n.SPRITESHEET="spritesheet",n.LOTTIE="lottie",n.IMAGE="image",n.SVG="svg",n.VIDEO="video"})(e||(Ot.AgentDisplayFacetModeType=e={}));var t;return(function(n){n.LAUNCHER="launcher",n.ASSISTANT="assistant",n.SEARCH="search"})(t||(Ot.AgentDisplayFacetRoleType=t={})),Ot}var je=_c();const Lr=e=>({mode:je.AgentDisplayFacetModeType.SVG,role:e}),Ic=()=>({agent:{display:{name:"",CSSRules:"",[je.AgentDisplayFacetRoleType.LAUNCHER]:Lr(je.AgentDisplayFacetRoleType.LAUNCHER),[je.AgentDisplayFacetRoleType.ASSISTANT]:Lr(je.AgentDisplayFacetRoleType.ASSISTANT),[je.AgentDisplayFacetRoleType.SEARCH]:Lr(je.AgentDisplayFacetRoleType.SEARCH)},text:{initialText:""}},api:{settings:{maxUserMessagesPerDiscussion:20}}}),Mn=k.createContext({companySettings:Ic(),setCompanySettings:()=>{}}),nn=globalThis;nn.__WIDGET_ASSET_CACHE__||(nn.__WIDGET_ASSET_CACHE__={svg:new Map,img:new Map,lot:new Map,spr:new Map});nn.__WIDGET_PRELOAD_KEYS__||(nn.__WIDGET_PRELOAD_KEYS__=new Set);const kr=nn.__WIDGET_PRELOAD_KEYS__,Ct=nn.__WIDGET_ASSET_CACHE__,Nc="widget-assets-v1";async function gr(e,t){try{const n=await caches.open(Nc),r=await n.match(e,{ignoreSearch:!1});if(r)return r.clone();const a=await fetch(e,{cache:"force-cache",mode:"cors",keepalive:!0,...t});if(!a.ok)throw new Error(`HTTP ${a.status} for ${e}`);return n.put(e,a.clone()),a}catch(n){return console.log("error while fetching",n),new Response(null,{status:520,statusText:"Error in client - Fetch failed"})}}async function Qs(e){const t=Ct.svg.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await gr(e)).text();if(typeof globalThis.DOMPurify<"u"&&typeof globalThis.DOMPurify.sanitize=="function")try{const s=new DOMParser().parseFromString(a,"image/svg+xml"),o=new XMLSerializer().serializeToString(s.documentElement);return{sanitized:globalThis.DOMPurify.sanitize(o,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}catch{return{sanitized:globalThis.DOMPurify.sanitize(a,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}else return{sanitized:a}})();return Ct.svg.set(e,{promise:n,ts:Date.now()}),n}function Ks(e){const t=Ct.img.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await gr(e)).blob();return{blobUrl:URL.createObjectURL(a)}})();return Ct.img.set(e,{promise:n,ts:Date.now()}),n}function Zs(e){const t=Ct.lot.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await gr(e)).arrayBuffer(),i=new Uint8Array(a);if(i.length>=4&&i[0]===80&&i[1]===75&&i[2]===3&&i[3]===4||e.endsWith(".lottie"))return{kind:"zip",blobUrl:URL.createObjectURL(new Blob([a],{type:"application/zip"}))};const o=new TextDecoder().decode(i);return{kind:"json",data:JSON.parse(o)}})();return Ct.lot.set(e,{promise:n,ts:Date.now()}),n}function Js(e){const t=Ct.spr.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await gr(e)).blob();let i=null;try{i=await createImageBitmap(a)}catch{i=null}const{imgEl:s,width:o,height:c}=await new Promise((l,d)=>{const f=URL.createObjectURL(a),h=new Image;h.crossOrigin="anonymous",h.onload=()=>{const m=h.naturalWidth,S=h.naturalHeight;l({imgEl:h,width:m,height:S})},h.onerror=()=>{URL.revokeObjectURL(f),d(new Error("Spritesheet image decode failed"))},h.src=f,h.decode?.().catch(()=>{})});return{imgEl:s,bitmap:i,width:o,height:c}})();return Ct.spr.set(e,{promise:n,ts:Date.now()}),n}function wc(e){e.images?.forEach(t=>void Ks(t)),e.svgs?.forEach(t=>void Qs(t)),e.lotties?.forEach(t=>void Zs(t)),e.sprites?.forEach(t=>void Js(t))}function vc(e){try{const t=document.createElement("link");t.rel="preconnect",t.href=e,t.crossOrigin="anonymous",document.head.appendChild(t);const n=document.createElement("link");n.rel="dns-prefetch",n.href=e,document.head.appendChild(n)}catch(t){console.log("error in injectPreconnect",t)}}function eu(e){return new URL(e,document.baseURI).toString()}function Lc(e,t){const n=document.head.querySelectorAll('link[rel="preload"]');for(const r of n)if((e?r.as===e||r.getAttribute("as")===e:!0)&&r.href===t)return!0;return!1}function Vn(e,t,n,r){const a=eu(n),i=`${e}|${t??""}|${a}`;if(kr.has(i))return;if(Lc(t,a)){kr.add(i);return}const s=document.createElement("link");s.rel=e,t&&(s.as=t),s.href=a,s.crossOrigin="anonymous",r&&(s.type=r),s.setAttribute("data-chatsystem-preload","1"),document.head.appendChild(s),kr.add(i)}function kc(e){const t=s=>Array.from(new Set((s??[]).map(eu))),n=t(e.images),r=t(e.svgs),a=t(e.lotties),i=t(e.sprites);n.forEach(s=>Vn("preload","image",s)),r.forEach(s=>Vn("preload","fetch",s,"image/svg+xml")),a.forEach(s=>Vn("preload","fetch",s,"application/zip")),i.forEach(s=>Vn("preload","fetch",s))}const Oc=({src:e})=>{const[t,n]=k.useState(null);return k.useEffect(()=>{let r=!1;return Ks(e).then(({blobUrl:a})=>{n(a)}).catch(()=>n(null)),()=>{t&&!r&&(URL.revokeObjectURL(t),r=!0)}},[e]),O.jsx("img",{src:t??e,decoding:"async",loading:"eager"})};function Rc(e){return!!e&&typeof e=="object"&&"blob"in e&&e.blob instanceof Blob}function Dc({src:e,autoplay:t=!0,loop:n=!0,className:r,style:a,placeholder:i,fallback:s,onLoaded:o,onError:c}){const[l,d]=k.useState({kind:"loading"});return k.useEffect(()=>{let f=null,h=!1;return d({kind:"loading"}),Zs(e).then(async m=>{if(!h)if(m.kind==="zip"){const S=Rc(m)?m.blob:await(await fetch(m.blobUrl)).blob();f=URL.createObjectURL(S),d({kind:"lottieZip",blobUrl:f}),o?.(f)}else d({kind:"json",data:m.data}),o?.(m.data)}).catch(m=>!h&&(d({kind:"error",err:m}),c?.(m))),()=>{h=!0,f&&URL.revokeObjectURL(f)}},[e]),l.kind==="loading"?O.jsx("div",{className:"flex items-center justify-center rounded-xl border border-dashed p-6 text-sm opacity-70 "+(r??""),style:{minHeight:96,...a},children:i??"Loading animation…"}):l.kind==="error"?O.jsx("div",{className:"flex items-center justify-center rounded-xl border p-6 text-sm text-red-600 "+(r??""),style:{minHeight:96,...a},children:s??"Failed to load animation"}):l.kind==="json"?O.jsx(yc,{animationData:l.data,loop:n,autoplay:t,className:r,style:a,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}}):O.jsx(Ac.DotLottieReact,{src:l.blobUrl,loop:n,autoplay:t,className:r,style:a})}async function Pc(e,t={}){const{minPeriod:n=8,maxPeriod:r=Math.floor(Math.min(e.width,e.height)/2),gutterSearchRadius:a=3,debug:i=!1}=t;if(e.width<n*2||e.height<n*2)return i&&console.warn("detectGrid: image too small"),null;const s=document.createElement("canvas");s.width=e.naturalWidth,s.height=e.naturalHeight;const o=s.getContext("2d");if(!o)return null;o.drawImage(e,0,0);const{data:c}=o.getImageData(0,0,s.width,s.height),l=s.width,d=s.height,f=new Uint8ClampedArray(l*d);for(let Y=0;Y<d;Y++){let oe=Y*l;for(let X=0;X<l;X++){const B=(oe+X)*4;f[oe+X]=.299*c[B]+.587*c[B+1]+.114*c[B+2]|0}}const h=new Float32Array(l),m=new Float32Array(d);for(let Y=1;Y<l-1;Y++){let oe=0;for(let X=0;X<d;X++){const B=X*l+Y,z=f[B+1]-f[B-1];oe+=Math.abs(z)}h[Y]=oe}for(let Y=1;Y<d-1;Y++){let oe=0;for(let X=0;X<l;X++){const B=Y*l+X,z=f[B+l]-f[B-l];oe+=Math.abs(z)}m[Y]=oe}const S=fi(h,n,Math.min(r,l/2)),C=fi(m,n,Math.min(r,d/2));if(!S||!C)return i&&console.warn("detectGrid: could not find periods"),null;const P=Math.max(1,Math.round(l/S)),N=Math.max(1,Math.round(d/C)),M=hi(h,S,P,a),D=hi(m,C,N,a),$=Math.max(1,S-M),I=Math.max(1,C-D);if($*P>l+2||I*N>d+2)return i&&console.warn("detectGrid: sanity check failed"),null;const R=sa(h,60),Q=sa(m,60),ae=Math.max(0,mi(h,R)),K=Math.max(0,mi(m,Q));return i&&console.log({periodX:S,periodY:C,columns:P,rows:N,gutterX:M,gutterY:D,frameWidth:$,frameHeight:I,originX:ae,originY:K}),{columns:P,rows:N,frameWidth:$,frameHeight:I,gutterX:M,gutterY:D,originX:ae,originY:K}}function fi(e,t,n){const r=tu(e);let a=0;for(let m=0;m<e.length;m++){const S=e[m]-r;a+=S*S}if(a===0)return null;const i=new Float32Array(n+1);let s=0,o=-1/0;for(let m=t;m<=n;m++){let S=0;for(let P=0;P+m<e.length;P++)S+=(e[P]-r)*(e[P+m]-r);const C=S/a;i[m]=C,C>o&&(o=C,s=m)}if(s<=t||s>=n)return s||null;const c=i[s-1],l=i[s],d=i[s+1],f=c-2*l+d,h=f===0?0:.5*(c-d)/f;return s+h}function hi(e,t,n,r){const a=[];for(let o=1;o<n;o++){const c=o*t;let l=1/0,d=c;for(let f=-r;f<=r;f++){const h=c+f;if(h<=0||h>=e.length)continue;const m=e[h];m<l&&(l=m,d=h)}a.push(d)}if(a.length<1)return 0;let i=[];for(const o of a){const c=e[o]*1.5+sa(e,10)*.5;let l=o,d=o;for(;l>1&&e[l-1]<=c;)l--;for(;d<e.length-2&&e[d+1]<=c;)d++;i.push(Math.max(0,d-l+1))}const s=Math.round(tu(i));return Math.max(0,Math.min(s,Math.floor(t/4)))}function tu(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function sa(e,t){const n=Array.from(e);n.sort((a,i)=>a-i);const r=Math.max(0,Math.min(n.length-1,Math.floor(t/100*n.length)));return n[r]}function mi(e,t){for(let n=0;n<e.length;n++)if(e[n]>t)return n;return 0}function Mc(e,t,n,r,a){const{data:i}=e.getImageData(t,n,r,a);let s=0;for(let o=3;o<i.length;o+=4)s+=i[o];return s/(255*(i.length/4))<.03}const Bc=k.forwardRef(function({src:t,frameWidth:n,frameHeight:r,columns:a,rows:i,gutterX:s=0,gutterY:o=0,frameCount:c,atlasFrames:l,fps:d=12,autoplay:f=!0,loop:h=!0,startFrame:m=0,direction:S="forward",scale:C=1,backgroundColor:P,className:N,style:M,pauseWhenHidden:D=!1,originX:$,originY:I,onLoad:R,onEnd:Q,onFrame:ae},K){const Y=k.useRef(null),oe=k.useRef(null),[X,B]=k.useState(null),[z,W]=k.useState(null),[ce,re]=k.useState(null),[pe,we]=k.useState(!1),[x,Ce]=k.useState(!!f),[le,y]=k.useState(m),_e=k.useRef(1),[Ae,Ge]=k.useState(null),Pe=Math.max(1,Math.floor(typeof window<"u"&&window.devicePixelRatio||1));k.useEffect(()=>{let Z=!1;return we(!1),Js(t).then(({imgEl:te,bitmap:ge})=>{Z||(B(te),W(ge),re({w:te.naturalWidth,h:te.naturalHeight}),we(!0),R?.())}).catch(()=>{}),()=>{Z=!0}},[t,R]),k.useEffect(()=>{let Z=!1;return(async()=>{if(!X)return;if(l&&l.length){Ge(null);return}if(!(!n||!r||!a||!i)){Ge(null);return}const ge=await Pc(X,{debug:!0});Z||(ge?Ge({frameWidth:ge.frameWidth,frameHeight:ge.frameHeight,columns:ge.columns,rows:ge.rows,gutterX:ge.gutterX,gutterY:ge.gutterY}):(Ge(null),console.warn("RemoteSpritesheet: auto-detect failed; please provide grid props.")))})(),()=>{Z=!0}},[X,l,n,r,a,i]);const fe=Ae?.frameWidth??n,Oe=Ae?.frameHeight??r,Me=Ae?.columns??a,at=Ae?.rows??i,ve=Ae?.gutterX??s,Xe=Ae?.gutterY??o,Ye=Ae?.originX??$??0,it=Ae?.originY??I??0,wt=k.useMemo(()=>{if(l&&l.length>0)return{cols:0,rows:0};if(!ce||!fe||!Oe)return{cols:0,rows:0};const Z=Me??Math.floor((ce.w+ve)/(fe+ve)),te=at??Math.floor((ce.h+Xe)/(Oe+Xe));return{cols:Math.max(0,Z),rows:Math.max(0,te)}},[l,ce,fe,Oe,Me,at,ve,Xe]),Be=k.useMemo(()=>{if(l?.length)return l;if(!fe||!Oe)return[];const{cols:Z,rows:te}=wt;if(!Z||!te)return[];const ge=Math.min(c??Z*te,Z*te),he=[];for(let ye=0;ye<ge;ye++){const w=ye%Z,v=Math.floor(ye/Z),j=Ye+w*(fe+ve),J=it+v*(Oe+Xe);he.push({x:j,y:J,w:fe,h:Oe})}if(X&&he.length){const ye=document.createElement("canvas");ye.width=X.naturalWidth,ye.height=X.naturalHeight;const w=ye.getContext("2d");if(w){w.drawImage(X,0,0);let v=he.length;for(;v>0&&Mc(w,he[v-1].x,he[v-1].y,he[v-1].w,he[v-1].h);)v--;return he.slice(0,v)}}return he},[l,wt,c,fe,Oe,ve,Xe,X,Ye,it]),vt=()=>{const Z=Y.current;if(!Z||Be.length===0)return;const te=Be[Math.max(0,Math.min(le,Be.length-1))],ge=Math.max(1,Math.round(te.w*C)),he=Math.max(1,Math.round(te.h*C));Z.style.width=ge+"px",Z.style.height=he+"px",Z.width=ge*Pe,Z.height=he*Pe};k.useEffect(()=>{vt()},[pe,C,Be.length,Pe,le]);const Lt=Z=>{const te=z??X??null,ge=Y.current;if(!ge||!te||Be.length===0)return;const he=ge.getContext("2d");if(!he)return;he.save(),he.setTransform(1,0,0,1,0,0),he.clearRect(0,0,ge.width,ge.height),P&&(he.fillStyle=P,he.fillRect(0,0,ge.width,ge.height));const ye=Be[Z];he.scale(Pe,Pe),he.drawImage(te,ye.x,ye.y,ye.w,ye.h,0,0,Math.round(ye.w*C),Math.round(ye.h*C)),he.restore()};return k.useEffect(()=>{if(!pe||Be.length===0)return;let Z=performance.now();const te=1e3/Math.max(1,Math.min(120,d)),ge=he=>{if(oe.current=requestAnimationFrame(ge),!x){Lt(le);return}const ye=he-Z;if(ye<te){Lt(le);return}Z=he-ye%te,y(w=>{const v=Be.length-1;let j=w;return S==="forward"?j=w+1:S==="backward"?j=w-1:((w>=v&&_e.current===1||w<=0&&_e.current===-1)&&(_e.current*=-1),j=w+_e.current),(j>v||j<0)&&(h?j=S==="backward"?v:0:(j=Math.max(0,Math.min(j,v)),Ce(!1),Q?.())),j})};return oe.current=requestAnimationFrame(ge),()=>{oe.current&&cancelAnimationFrame(oe.current)}},[pe,d,x,h,S,Be.length,le]),k.useEffect(()=>{Lt(le),ae?.(le)},[le,pe,C,Pe]),k.useEffect(()=>{if(!D)return;const Z=()=>{document.hidden&&Ce(!1)};return document.addEventListener("visibilitychange",Z),()=>document.removeEventListener("visibilitychange",Z)},[D]),k.useImperativeHandle(K,()=>({play:()=>Ce(!0),pause:()=>Ce(!1),toggle:()=>Ce(Z=>!Z),gotoFrame:Z=>y(()=>Math.max(0,Math.min(Z,Math.max(0,Be.length-1)))),isPlaying:()=>x,currentFrame:()=>le}),[x,le,Be.length]),O.jsx("div",{className:N,style:M,children:O.jsx("canvas",{ref:Y,"aria-label":"spritesheet animation"})})});function Fc({url:e,className:t}){const[n,r]=k.useState(""),[a,i]=k.useState(null);return k.useEffect(()=>{let s=!1;return Qs(e).then(({sanitized:o})=>{s||(r(o),i(null))}).catch(o=>!s&&i(o.message??"Failed to load")),()=>{s=!0}},[e]),a?O.jsxs("div",{className:t,role:"alert",children:["Couldn’t load SVG: ",a]}):n?O.jsx("div",{className:t,dangerouslySetInnerHTML:{__html:n}}):O.jsx("div",{className:t})}const Fa=({facet:e})=>{const{mode:t,assetUrl:n,spr_columns:r,spr_fps:a,spr_frameCount:i,spr_frameHeight:s,spr_frameWidth:o,spr_gutterX:c,spr_gutterY:l,spr_rows:d,spr_originX:f,spr_originY:h}=e;return O.jsxs("div",{className:"assetContainer",children:[t===je.AgentDisplayFacetModeType.LOTTIE&&O.jsx(Dc,{src:n,autoplay:!0,onError:m=>console.error(m)}),t===je.AgentDisplayFacetModeType.SVG&&O.jsx("div",{children:O.jsx(Fc,{url:n})}),t===je.AgentDisplayFacetModeType.IMAGE&&O.jsx(Oc,{src:n}),t===je.AgentDisplayFacetModeType.SPRITESHEET&&O.jsx(Bc,{src:n,frameCount:i,columns:r,rows:d,fps:a,frameHeight:s,frameWidth:o,gutterX:c,gutterY:l,originX:f,originY:h,autoplay:!0})]})},Hc=({isWidgetOpen:e,setIsWidgetOpen:t})=>{const{companySettings:n}=k.useContext(Mn);return O.jsxs("div",{className:`launcher
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),C=require("react"),bn=require("react-dom"),Il=require("lottie-react"),Nl=require("@lottiefiles/dotlottie-react");function vl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Pe=vl(C),wl=e=>Pe.createElement("svg",{fill:"#000000",height:"800px",width:"800px",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 330 330",xmlSpace:"preserve",...e},Pe.createElement("path",{id:"XMLID_102_",d:"M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393 c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393 s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z"}));function Ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wt={},fi;function Ol(){if(fi)return wt;fi=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.AgentDisplayFacetRoleType=wt.AgentDisplayFacetModeType=void 0;var e;(function(n){n.SPRITESHEET="spritesheet",n.LOTTIE="lottie",n.IMAGE="image",n.SVG="svg",n.VIDEO="video"})(e||(wt.AgentDisplayFacetModeType=e={}));var t;return(function(n){n.LAUNCHER="launcher",n.ASSISTANT="assistant",n.SEARCH="search"})(t||(wt.AgentDisplayFacetRoleType=t={})),wt}var ze=Ol();const wr=e=>({mode:ze.AgentDisplayFacetModeType.SVG,role:e}),Ll=()=>({agent:{display:{name:"",CSSRules:"",[ze.AgentDisplayFacetRoleType.LAUNCHER]:wr(ze.AgentDisplayFacetRoleType.LAUNCHER),[ze.AgentDisplayFacetRoleType.ASSISTANT]:wr(ze.AgentDisplayFacetRoleType.ASSISTANT),[ze.AgentDisplayFacetRoleType.SEARCH]:wr(ze.AgentDisplayFacetRoleType.SEARCH)},text:{initialText:""}},api:{settings:{maxUserMessagesPerDiscussion:20}}}),Rn=C.createContext({companySettings:Ll(),setCompanySettings:()=>{}}),Zt=globalThis;Zt.__WIDGET_ASSET_CACHE__||(Zt.__WIDGET_ASSET_CACHE__={svg:new Map,img:new Map,lot:new Map,spr:new Map});Zt.__WIDGET_PRELOAD_KEYS__||(Zt.__WIDGET_PRELOAD_KEYS__=new Set);const Or=Zt.__WIDGET_PRELOAD_KEYS__,xt=Zt.__WIDGET_ASSET_CACHE__,Rl="widget-assets-v1";async function pr(e,t){try{const n=await caches.open(Rl),r=await n.match(e,{ignoreSearch:!1});if(r)return r.clone();const a=await fetch(e,{cache:"force-cache",mode:"cors",keepalive:!0,...t});if(!a.ok)throw new Error(`HTTP ${a.status} for ${e}`);return n.put(e,a.clone()),a}catch(n){return console.log("error while fetching",n),new Response(null,{status:520,statusText:"Error in client - Fetch failed"})}}async function nu(e){const t=xt.svg.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await pr(e)).text();if(typeof globalThis.DOMPurify<"u"&&typeof globalThis.DOMPurify.sanitize=="function")try{const s=new DOMParser().parseFromString(a,"image/svg+xml"),o=new XMLSerializer().serializeToString(s.documentElement);return{sanitized:globalThis.DOMPurify.sanitize(o,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}catch{return{sanitized:globalThis.DOMPurify.sanitize(a,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}else return{sanitized:a}})();return xt.svg.set(e,{promise:n,ts:Date.now()}),n}function ru(e){const t=xt.img.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await pr(e)).blob();return{blobUrl:URL.createObjectURL(a)}})();return xt.img.set(e,{promise:n,ts:Date.now()}),n}function au(e){const t=xt.lot.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await pr(e)).arrayBuffer(),i=new Uint8Array(a);if(i.length>=4&&i[0]===80&&i[1]===75&&i[2]===3&&i[3]===4||e.endsWith(".lottie"))return{kind:"zip",blobUrl:URL.createObjectURL(new Blob([a],{type:"application/zip"}))};const o=new TextDecoder().decode(i);return{kind:"json",data:JSON.parse(o)}})();return xt.lot.set(e,{promise:n,ts:Date.now()}),n}function iu(e){const t=xt.spr.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await pr(e)).blob();let i=null;try{i=await createImageBitmap(a)}catch{i=null}const{imgEl:s,width:o,height:l}=await new Promise((c,d)=>{const f=URL.createObjectURL(a),m=new Image;m.crossOrigin="anonymous",m.onload=()=>{const h=m.naturalWidth,y=m.naturalHeight;c({imgEl:m,width:h,height:y})},m.onerror=()=>{URL.revokeObjectURL(f),d(new Error("Spritesheet image decode failed"))},m.src=f,m.decode?.().catch(()=>{})});return{imgEl:s,bitmap:i,width:o,height:l}})();return xt.spr.set(e,{promise:n,ts:Date.now()}),n}function Pl(e){e.images?.forEach(t=>void ru(t)),e.svgs?.forEach(t=>void nu(t)),e.lotties?.forEach(t=>void au(t)),e.sprites?.forEach(t=>void iu(t))}function Dl(e){try{const t=document.createElement("link");t.rel="preconnect",t.href=e,t.crossOrigin="anonymous",document.head.appendChild(t);const n=document.createElement("link");n.rel="dns-prefetch",n.href=e,document.head.appendChild(n)}catch(t){console.log("error in injectPreconnect",t)}}function su(e){return new URL(e,document.baseURI).toString()}function kl(e,t){const n=document.head.querySelectorAll('link[rel="preload"]');for(const r of n)if((e?r.as===e||r.getAttribute("as")===e:!0)&&r.href===t)return!0;return!1}function $n(e,t,n,r){const a=su(n),i=`${e}|${t??""}|${a}`;if(Or.has(i))return;if(kl(t,a)){Or.add(i);return}const s=document.createElement("link");s.rel=e,t&&(s.as=t),s.href=a,s.crossOrigin="anonymous",r&&(s.type=r),s.setAttribute("data-chatsystem-preload","1"),document.head.appendChild(s),Or.add(i)}function Ml(e){const t=s=>Array.from(new Set((s??[]).map(su))),n=t(e.images),r=t(e.svgs),a=t(e.lotties),i=t(e.sprites);n.forEach(s=>$n("preload","image",s)),r.forEach(s=>$n("preload","fetch",s,"image/svg+xml")),a.forEach(s=>$n("preload","fetch",s,"application/zip")),i.forEach(s=>$n("preload","fetch",s))}const Bl=({src:e})=>{const[t,n]=C.useState(null);return C.useEffect(()=>{let r=!1;return ru(e).then(({blobUrl:a})=>{n(a)}).catch(()=>n(null)),()=>{t&&!r&&(URL.revokeObjectURL(t),r=!0)}},[e]),N.jsx("img",{src:t??e,decoding:"async",loading:"eager"})};function Fl(e){return!!e&&typeof e=="object"&&"blob"in e&&e.blob instanceof Blob}function Hl({src:e,autoplay:t=!0,loop:n=!0,className:r,style:a,placeholder:i,fallback:s,onLoaded:o,onError:l}){const[c,d]=C.useState({kind:"loading"});return C.useEffect(()=>{let f=null,m=!1;return d({kind:"loading"}),au(e).then(async h=>{if(!m)if(h.kind==="zip"){const y=Fl(h)?h.blob:await(await fetch(h.blobUrl)).blob();f=URL.createObjectURL(y),d({kind:"lottieZip",blobUrl:f}),o?.(f)}else d({kind:"json",data:h.data}),o?.(h.data)}).catch(h=>!m&&(d({kind:"error",err:h}),l?.(h))),()=>{m=!0,f&&URL.revokeObjectURL(f)}},[e]),c.kind==="loading"?N.jsx("div",{className:"flex items-center justify-center rounded-xl border border-dashed p-6 text-sm opacity-70 "+(r??""),style:{minHeight:96,...a},children:i??"Loading animation…"}):c.kind==="error"?N.jsx("div",{className:"flex items-center justify-center rounded-xl border p-6 text-sm text-red-600 "+(r??""),style:{minHeight:96,...a},children:s??"Failed to load animation"}):c.kind==="json"?N.jsx(Il,{animationData:c.data,loop:n,autoplay:t,className:r,style:a,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}}):N.jsx(Nl.DotLottieReact,{src:c.blobUrl,loop:n,autoplay:t,className:r,style:a})}async function Ul(e,t={}){const{minPeriod:n=8,maxPeriod:r=Math.floor(Math.min(e.width,e.height)/2),gutterSearchRadius:a=3,debug:i=!1}=t;if(e.width<n*2||e.height<n*2)return i&&console.warn("detectGrid: image too small"),null;const s=document.createElement("canvas");s.width=e.naturalWidth,s.height=e.naturalHeight;const o=s.getContext("2d");if(!o)return null;o.drawImage(e,0,0);const{data:l}=o.getImageData(0,0,s.width,s.height),c=s.width,d=s.height,f=new Uint8ClampedArray(c*d);for(let G=0;G<d;G++){let j=G*c;for(let B=0;B<c;B++){const $=(j+B)*4;f[j+B]=.299*l[$]+.587*l[$+1]+.114*l[$+2]|0}}const m=new Float32Array(c),h=new Float32Array(d);for(let G=1;G<c-1;G++){let j=0;for(let B=0;B<d;B++){const $=B*c+G,z=f[$+1]-f[$-1];j+=Math.abs(z)}m[G]=j}for(let G=1;G<d-1;G++){let j=0;for(let B=0;B<c;B++){const $=G*c+B,z=f[$+c]-f[$-c];j+=Math.abs(z)}h[G]=j}const y=hi(m,n,Math.min(r,c/2)),x=hi(h,n,Math.min(r,d/2));if(!y||!x)return i&&console.warn("detectGrid: could not find periods"),null;const L=Math.max(1,Math.round(c/y)),_=Math.max(1,Math.round(d/x)),R=mi(m,y,L,a),O=mi(h,x,_,a),U=Math.max(1,y-R),S=Math.max(1,x-O);if(U*L>c+2||S*_>d+2)return i&&console.warn("detectGrid: sanity check failed"),null;const w=ua(m,60),Q=ua(h,60),fe=Math.max(0,pi(m,w)),re=Math.max(0,pi(h,Q));return i&&console.log({periodX:y,periodY:x,columns:L,rows:_,gutterX:R,gutterY:O,frameWidth:U,frameHeight:S,originX:fe,originY:re}),{columns:L,rows:_,frameWidth:U,frameHeight:S,gutterX:R,gutterY:O,originX:fe,originY:re}}function hi(e,t,n){const r=uu(e);let a=0;for(let h=0;h<e.length;h++){const y=e[h]-r;a+=y*y}if(a===0)return null;const i=new Float32Array(n+1);let s=0,o=-1/0;for(let h=t;h<=n;h++){let y=0;for(let L=0;L+h<e.length;L++)y+=(e[L]-r)*(e[L+h]-r);const x=y/a;i[h]=x,x>o&&(o=x,s=h)}if(s<=t||s>=n)return s||null;const l=i[s-1],c=i[s],d=i[s+1],f=l-2*c+d,m=f===0?0:.5*(l-d)/f;return s+m}function mi(e,t,n,r){const a=[];for(let o=1;o<n;o++){const l=o*t;let c=1/0,d=l;for(let f=-r;f<=r;f++){const m=l+f;if(m<=0||m>=e.length)continue;const h=e[m];h<c&&(c=h,d=m)}a.push(d)}if(a.length<1)return 0;let i=[];for(const o of a){const l=e[o]*1.5+ua(e,10)*.5;let c=o,d=o;for(;c>1&&e[c-1]<=l;)c--;for(;d<e.length-2&&e[d+1]<=l;)d++;i.push(Math.max(0,d-c+1))}const s=Math.round(uu(i));return Math.max(0,Math.min(s,Math.floor(t/4)))}function uu(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function ua(e,t){const n=Array.from(e);n.sort((a,i)=>a-i);const r=Math.max(0,Math.min(n.length-1,Math.floor(t/100*n.length)));return n[r]}function pi(e,t){for(let n=0;n<e.length;n++)if(e[n]>t)return n;return 0}function jl(e,t,n,r,a){const{data:i}=e.getImageData(t,n,r,a);let s=0;for(let o=3;o<i.length;o+=4)s+=i[o];return s/(255*(i.length/4))<.03}const $l=C.forwardRef(function({src:t,frameWidth:n,frameHeight:r,columns:a,rows:i,gutterX:s=0,gutterY:o=0,frameCount:l,atlasFrames:c,fps:d=12,autoplay:f=!0,loop:m=!0,startFrame:h=0,direction:y="forward",scale:x=1,backgroundColor:L,className:_,style:R,pauseWhenHidden:O=!1,originX:U,originY:S,onLoad:w,onEnd:Q,onFrame:fe},re){const G=C.useRef(null),j=C.useRef(null),[B,$]=C.useState(null),[z,Z]=C.useState(null),[he,ue]=C.useState(null),[be,we]=C.useState(!1),[p,F]=C.useState(!!f),[Y,g]=C.useState(h),W=C.useRef(1),[K,V]=C.useState(null),J=Math.max(1,Math.floor(typeof window<"u"&&window.devicePixelRatio||1));C.useEffect(()=>{let se=!1;return we(!1),iu(t).then(({imgEl:ce,bitmap:xe})=>{se||($(ce),Z(xe),ue({w:ce.naturalWidth,h:ce.naturalHeight}),we(!0),w?.())}).catch(()=>{}),()=>{se=!0}},[t,w]),C.useEffect(()=>{let se=!1;return(async()=>{if(!B)return;if(c&&c.length){V(null);return}if(!(!n||!r||!a||!i)){V(null);return}const xe=await Ul(B,{debug:!0});se||(xe?V({frameWidth:xe.frameWidth,frameHeight:xe.frameHeight,columns:xe.columns,rows:xe.rows,gutterX:xe.gutterX,gutterY:xe.gutterY}):(V(null),console.warn("RemoteSpritesheet: auto-detect failed; please provide grid props.")))})(),()=>{se=!0}},[B,c,n,r,a,i]);const ee=K?.frameWidth??n,te=K?.frameHeight??r,ae=K?.columns??a,ve=K?.rows??i,H=K?.gutterX??s,Oe=K?.gutterY??o,De=K?.originX??U??0,Ge=K?.originY??S??0,Ct=C.useMemo(()=>{if(c&&c.length>0)return{cols:0,rows:0};if(!he||!ee||!te)return{cols:0,rows:0};const se=ae??Math.floor((he.w+H)/(ee+H)),ce=ve??Math.floor((he.h+Oe)/(te+Oe));return{cols:Math.max(0,se),rows:Math.max(0,ce)}},[c,he,ee,te,ae,ve,H,Oe]),He=C.useMemo(()=>{if(c?.length)return c;if(!ee||!te)return[];const{cols:se,rows:ce}=Ct;if(!se||!ce)return[];const xe=Math.min(l??se*ce,se*ce),ge=[];for(let Ne=0;Ne<xe;Ne++){const v=Ne%se,D=Math.floor(Ne/se),X=De+v*(ee+H),le=Ge+D*(te+Oe);ge.push({x:X,y:le,w:ee,h:te})}if(B&&ge.length){const Ne=document.createElement("canvas");Ne.width=B.naturalWidth,Ne.height=B.naturalHeight;const v=Ne.getContext("2d");if(v){v.drawImage(B,0,0);let D=ge.length;for(;D>0&&jl(v,ge[D-1].x,ge[D-1].y,ge[D-1].w,ge[D-1].h);)D--;return ge.slice(0,D)}}return ge},[c,Ct,l,ee,te,H,Oe,B,De,Ge]),It=()=>{const se=G.current;if(!se||He.length===0)return;const ce=He[Math.max(0,Math.min(Y,He.length-1))],xe=Math.max(1,Math.round(ce.w*x)),ge=Math.max(1,Math.round(ce.h*x));se.style.width=xe+"px",se.style.height=ge+"px",se.width=xe*J,se.height=ge*J};C.useEffect(()=>{It()},[be,x,He.length,J,Y]);const Nt=se=>{const ce=z??B??null,xe=G.current;if(!xe||!ce||He.length===0)return;const ge=xe.getContext("2d");if(!ge)return;ge.save(),ge.setTransform(1,0,0,1,0,0),ge.clearRect(0,0,xe.width,xe.height),L&&(ge.fillStyle=L,ge.fillRect(0,0,xe.width,xe.height));const Ne=He[se];ge.scale(J,J),ge.drawImage(ce,Ne.x,Ne.y,Ne.w,Ne.h,0,0,Math.round(Ne.w*x),Math.round(Ne.h*x)),ge.restore()};return C.useEffect(()=>{if(!be||He.length===0)return;let se=performance.now();const ce=1e3/Math.max(1,Math.min(120,d)),xe=ge=>{if(j.current=requestAnimationFrame(xe),!p){Nt(Y);return}const Ne=ge-se;if(Ne<ce){Nt(Y);return}se=ge-Ne%ce,g(v=>{const D=He.length-1;let X=v;return y==="forward"?X=v+1:y==="backward"?X=v-1:((v>=D&&W.current===1||v<=0&&W.current===-1)&&(W.current*=-1),X=v+W.current),(X>D||X<0)&&(m?X=y==="backward"?D:0:(X=Math.max(0,Math.min(X,D)),F(!1),Q?.())),X})};return j.current=requestAnimationFrame(xe),()=>{j.current&&cancelAnimationFrame(j.current)}},[be,d,p,m,y,He.length,Y]),C.useEffect(()=>{Nt(Y),fe?.(Y)},[Y,be,x,J]),C.useEffect(()=>{if(!O)return;const se=()=>{document.hidden&&F(!1)};return document.addEventListener("visibilitychange",se),()=>document.removeEventListener("visibilitychange",se)},[O]),C.useImperativeHandle(re,()=>({play:()=>F(!0),pause:()=>F(!1),toggle:()=>F(se=>!se),gotoFrame:se=>g(()=>Math.max(0,Math.min(se,Math.max(0,He.length-1)))),isPlaying:()=>p,currentFrame:()=>Y}),[p,Y,He.length]),N.jsx("div",{className:_,style:R,children:N.jsx("canvas",{ref:G,"aria-label":"spritesheet animation"})})});function zl({url:e,className:t}){const[n,r]=C.useState(""),[a,i]=C.useState(null);return C.useEffect(()=>{let s=!1;return nu(e).then(({sanitized:o})=>{s||(r(o),i(null))}).catch(o=>!s&&i(o.message??"Failed to load")),()=>{s=!0}},[e]),a?N.jsxs("div",{className:t,role:"alert",children:["Couldn’t load SVG: ",a]}):n?N.jsx("div",{className:t,dangerouslySetInnerHTML:{__html:n}}):N.jsx("div",{className:t})}const Fa=({facet:e})=>{const{mode:t,assetUrl:n,spr_columns:r,spr_fps:a,spr_frameCount:i,spr_frameHeight:s,spr_frameWidth:o,spr_gutterX:l,spr_gutterY:c,spr_rows:d,spr_originX:f,spr_originY:m}=e;return N.jsxs("div",{className:"assetContainer",children:[t===ze.AgentDisplayFacetModeType.LOTTIE&&N.jsx(Hl,{src:n,autoplay:!0,onError:h=>console.error(h)}),t===ze.AgentDisplayFacetModeType.SVG&&N.jsx("div",{children:N.jsx(zl,{url:n})}),t===ze.AgentDisplayFacetModeType.IMAGE&&N.jsx(Bl,{src:n}),t===ze.AgentDisplayFacetModeType.SPRITESHEET&&N.jsx($l,{src:n,frameCount:i,columns:r,rows:d,fps:a,frameHeight:s,frameWidth:o,gutterX:l,gutterY:c,originX:f,originY:m,autoplay:!0})]})},Yl=({isWidgetOpen:e,setIsWidgetOpen:t})=>{const{companySettings:n}=C.useContext(Rn);return N.jsxs("div",{className:`launcher
|
|
2
2
|
fixed
|
|
3
3
|
z-[999999999]
|
|
4
4
|
transition
|
|
@@ -9,48 +9,56 @@
|
|
|
9
9
|
flex
|
|
10
10
|
justify-center
|
|
11
11
|
items-center
|
|
12
|
-
`,onClick:()=>t(!e),children:[!e&&
|
|
12
|
+
`,onClick:()=>t(!e),children:[!e&&N.jsx(Fa,{facet:n.agent.display[ze.AgentDisplayFacetRoleType.LAUNCHER]}),e&&N.jsx(wl,{className:"w-6 h-6",fill:"white"})]})};var oa=function(e,t){return oa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},oa(e,t)};function Je(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");oa(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var q=function(){return q=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},q.apply(this,arguments)};function br(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function ut(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var zn={exports:{}},Te={};/** @license React v16.13.1
|
|
13
13
|
* react-is.production.min.js
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var pi;function Uc(){if(pi)return me;pi=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,P=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function D(I){if(typeof I=="object"&&I!==null){var R=I.$$typeof;switch(R){case t:switch(I=I.type,I){case c:case l:case r:case i:case a:case f:return I;default:switch(I=I&&I.$$typeof,I){case o:case d:case S:case m:case s:return I;default:return R}}case n:return R}}}function $(I){return D(I)===l}return me.AsyncMode=c,me.ConcurrentMode=l,me.ContextConsumer=o,me.ContextProvider=s,me.Element=t,me.ForwardRef=d,me.Fragment=r,me.Lazy=S,me.Memo=m,me.Portal=n,me.Profiler=i,me.StrictMode=a,me.Suspense=f,me.isAsyncMode=function(I){return $(I)||D(I)===c},me.isConcurrentMode=$,me.isContextConsumer=function(I){return D(I)===o},me.isContextProvider=function(I){return D(I)===s},me.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},me.isForwardRef=function(I){return D(I)===d},me.isFragment=function(I){return D(I)===r},me.isLazy=function(I){return D(I)===S},me.isMemo=function(I){return D(I)===m},me.isPortal=function(I){return D(I)===n},me.isProfiler=function(I){return D(I)===i},me.isStrictMode=function(I){return D(I)===a},me.isSuspense=function(I){return D(I)===f},me.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===l||I===i||I===a||I===f||I===h||typeof I=="object"&&I!==null&&(I.$$typeof===S||I.$$typeof===m||I.$$typeof===s||I.$$typeof===o||I.$$typeof===d||I.$$typeof===P||I.$$typeof===N||I.$$typeof===M||I.$$typeof===C)},me.typeOf=D,me}var gi;function zc(){return gi||(gi=1,Or.exports=Uc()),Or.exports}var Rr,bi;function jc(){if(bi)return Rr;bi=1;var e=zc(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function s(S){return e.isMemo(S)?a:i[S.$$typeof]||t}var o=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function m(S,C,P){if(typeof C!="string"){if(h){var N=f(C);N&&N!==h&&m(S,N,P)}var M=c(C);l&&(M=M.concat(l(C)));for(var D=s(S),$=s(C),I=0;I<M.length;++I){var R=M[I];if(!n[R]&&!(P&&P[R])&&!($&&$[R])&&!(D&&D[R])){var Q=d(C,R);try{o(S,R,Q)}catch{}}}}return S}return Rr=m,Rr}jc();function nu(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var ie;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ie||(ie={}));var Te;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Te||(Te={}));var rn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(rn||(rn={}));function Ei(e){return e.type===Te.literal}function $c(e){return e.type===Te.argument}function ru(e){return e.type===Te.number}function au(e){return e.type===Te.date}function iu(e){return e.type===Te.time}function su(e){return e.type===Te.select}function uu(e){return e.type===Te.plural}function Gc(e){return e.type===Te.pound}function ou(e){return e.type===Te.tag}function cu(e){return!!(e&&typeof e=="object"&&e.type===rn.number)}function oa(e){return!!(e&&typeof e=="object"&&e.type===rn.dateTime)}var lu=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Yc=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Vc(e){var t={};return e.replace(Yc,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var qc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Wc(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(qc).filter(function(h){return h.length>0}),n=[],r=0,a=t;r<a.length;r++){var i=a[r],s=i.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var o=s[0],c=s.slice(1),l=0,d=c;l<d.length;l++){var f=d[l];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:o,options:c})}return n}function Xc(e){return e.replace(/^(.*?)-/,"")}var Ti=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,du=/^(@+)?(\+|#+)?[rs]?$/g,Qc=/(\*)(0+)|(#+)(0+)|(0+)/g,fu=/^(0+)$/;function xi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(du,function(n,r,a){return typeof a!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):a==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof a=="string"?a.length:0)),""}),t}function hu(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Kc(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!fu.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function yi(e){var t={},n=hu(e);return n||t}function Zc(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Xc(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=q(q(q({},t),{notation:"scientific"}),a.options.reduce(function(c,l){return q(q({},c),yi(l))},{}));continue;case"engineering":t=q(q(q({},t),{notation:"engineering"}),a.options.reduce(function(c,l){return q(q({},c),yi(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(Qc,function(c,l,d,f,h,m){if(l)t.minimumIntegerDigits=d.length;else{if(f&&h)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(fu.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(Ti.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(Ti,function(c,l,d,f,h,m){return d==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&m?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+m.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=a.options[0];i==="w"?t=q(q({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=q(q({},t),xi(i)));continue}if(du.test(a.stem)){t=q(q({},t),xi(a.stem));continue}var s=hu(a.stem);s&&(t=q(q({},t),s));var o=Kc(a.stem);o&&(t=q(q({},t),o))}return t}var qn={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Jc(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if(a==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===a;)i++,r++;var s=1+(i&1),o=i<2?1:3+(i>>1),c="a",l=el(t);for((l=="H"||l=="k")&&(o=0);o-- >0;)n+=c;for(;s-- >0;)n=l+n}else a==="J"?n+="H":n+=a}return n}function el(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var a=qn[r||""]||qn[n||""]||qn["".concat(n,"-001")]||qn["001"];return a[0]}var Dr,tl=new RegExp("^".concat(lu.source,"*")),nl=new RegExp("".concat(lu.source,"*$"));function se(e,t){return{start:e,end:t}}var rl=!!String.prototype.startsWith&&"_a".startsWith("a",1),al=!!String.fromCodePoint,il=!!Object.fromEntries,sl=!!String.prototype.codePointAt,ul=!!String.prototype.trimStart,ol=!!String.prototype.trimEnd,cl=!!Number.isSafeInteger,ll=cl?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ca=!0;try{var dl=pu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ca=((Dr=dl.exec("a"))===null||Dr===void 0?void 0:Dr[0])==="a"}catch{ca=!1}var Ai=rl?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},la=al?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",a=t.length,i=0,s;a>i;){if(s=t[i++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Si=il?Object.fromEntries:function(t){for(var n={},r=0,a=t;r<a.length;r++){var i=a[r],s=i[0],o=i[1];n[s]=o}return n},mu=sl?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var a=t.charCodeAt(n),i;return a<55296||a>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},fl=ul?function(t){return t.trimStart()}:function(t){return t.replace(tl,"")},hl=ol?function(t){return t.trimEnd()}:function(t){return t.replace(nl,"")};function pu(e,t){return new RegExp(e,t)}var da;if(ca){var Ci=pu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");da=function(t,n){var r;Ci.lastIndex=n;var a=Ci.exec(t);return(r=a[1])!==null&&r!==void 0?r:""}}else da=function(t,n){for(var r=[];;){var a=mu(t,n);if(a===void 0||gu(a)||bl(a))break;r.push(a),n+=a>=65536?2:1}return la.apply(void 0,r)};var ml=(function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var a=[];!this.isEOF();){var i=this.char();if(i===123){var s=this.parseArgument(t,r);if(s.err)return s;a.push(s.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var o=this.clonePosition();this.bump(),a.push({type:Te.pound,location:se(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ie.UNMATCHED_CLOSING_TAG,se(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&fa(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;a.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;a.push(s.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Te.literal,value:"<".concat(a,"/>"),location:se(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var s=i.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!fa(this.char()))return this.error(ie.INVALID_TAG,se(o,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return a!==l?this.error(ie.UNMATCHED_CLOSING_TAG,se(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Te.tag,value:a,children:s,location:se(r,this.clonePosition())},err:null}:this.error(ie.INVALID_TAG,se(o,this.clonePosition())))}else return this.error(ie.UNCLOSED_TAG,se(r,this.clonePosition()))}else return this.error(ie.INVALID_TAG,se(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&gl(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),a="";;){var i=this.tryParseQuote(n);if(i){a+=i;continue}var s=this.tryParseUnquoted(t,n);if(s){a+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){a+=o;continue}break}var c=se(r,this.clonePosition());return{val:{type:Te.literal,value:a,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!pl(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return la.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),la(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,se(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ie.EMPTY_ARGUMENT,se(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(ie.MALFORMED_ARGUMENT,se(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,se(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Te.argument,value:a,location:se(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,se(r,this.clonePosition())):this.parseArgumentOptions(t,n,a,r);default:return this.error(ie.MALFORMED_ARGUMENT,se(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=da(this.message,n),a=n+r.length;this.bumpTo(a);var i=this.clonePosition(),s=se(t,i);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,a){var i,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(o){case"":return this.error(ie.EXPECT_ARGUMENT_TYPE,se(s,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=hl(f.val);if(h.length===0)return this.error(ie.EXPECT_ARGUMENT_STYLE,se(this.clonePosition(),this.clonePosition()));var m=se(d,this.clonePosition());l={style:h,styleLocation:m}}var S=this.tryParseArgumentClose(a);if(S.err)return S;var C=se(a,this.clonePosition());if(l&&Ai(l?.style,"::",0)){var P=fl(l.style.slice(2));if(o==="number"){var f=this.parseNumberSkeletonFromString(P,l.styleLocation);return f.err?f:{val:{type:Te.number,value:r,location:C,style:f.val},err:null}}else{if(P.length===0)return this.error(ie.EXPECT_DATE_TIME_SKELETON,C);var N=P;this.locale&&(N=Jc(P,this.locale));var h={type:rn.dateTime,pattern:N,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Vc(N):{}},M=o==="date"?Te.date:Te.time;return{val:{type:M,value:r,location:C,style:h},err:null}}}return{val:{type:o==="number"?Te.number:o==="date"?Te.date:Te.time,value:r,location:C,style:(i=l?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var D=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ie.EXPECT_SELECT_ARGUMENT_OPTIONS,se(D,q({},D)));this.bumpSpace();var $=this.parseIdentifierIfPossible(),I=0;if(o!=="select"&&$.value==="offset"){if(!this.bumpIf(":"))return this.error(ie.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,se(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(ie.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ie.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),$=this.parseIdentifierIfPossible(),I=f.val}var R=this.tryParsePluralOrSelectOptions(t,o,n,$);if(R.err)return R;var S=this.tryParseArgumentClose(a);if(S.err)return S;var Q=se(a,this.clonePosition());return o==="select"?{val:{type:Te.select,value:r,options:Si(R.val),location:Q},err:null}:{val:{type:Te.plural,value:r,options:Si(R.val),offset:I,pluralType:o==="plural"?"cardinal":"ordinal",location:Q},err:null}}default:return this.error(ie.INVALID_ARGUMENT_TYPE,se(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,se(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ie.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,se(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Wc(t)}catch{return this.error(ie.INVALID_NUMBER_SKELETON,n)}return{val:{type:rn.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Zc(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,a){for(var i,s=!1,o=[],c=new Set,l=a.value,d=a.location;;){if(l.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(ie.EXPECT_PLURAL_ARGUMENT_SELECTOR,ie.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=se(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(c.has(l))return this.error(n==="select"?ie.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ie.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);l==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ie.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ie.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,se(this.clonePosition(),this.clonePosition()));var S=this.parseMessage(t+1,n,r);if(S.err)return S;var C=this.tryParseArgumentClose(m);if(C.err)return C;o.push([l,{value:S.val,location:se(m,this.clonePosition())}]),c.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,d=i.location}return o.length===0?this.error(n==="select"?ie.EXPECT_SELECT_ARGUMENT_SELECTOR:ie.EXPECT_PLURAL_ARGUMENT_SELECTOR,se(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ie.MISSING_OTHER_CLAUSE,se(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,s=s*10+(o-48),this.bump();else break}var c=se(a,this.clonePosition());return i?(s*=r,ll(s)?{val:s,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=mu(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ai(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&gu(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e})();function fa(e){return e>=97&&e<=122||e>=65&&e<=90}function pl(e){return fa(e)||e===47}function gl(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function gu(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function bl(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ha(e){e.forEach(function(t){if(delete t.location,su(t)||uu(t))for(var n in t.options)delete t.options[n].location,ha(t.options[n].value);else ru(t)&&cu(t.style)||(au(t)||iu(t))&&oa(t.style)?delete t.style.location:ou(t)&&ha(t.children)})}function El(e,t){t===void 0&&(t={}),t=q({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ml(e,t).parse();if(n.err){var r=SyntaxError(ie[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||ha(n.val),n.val}function ut(e,t){var n=t&&t.cache?t.cache:Cl,r=t&&t.serializer?t.serializer:Sl,a=t&&t.strategy?t.strategy:yl;return a(e,{cache:n,serializer:r})}function Tl(e){return e==null||typeof e=="number"||typeof e=="boolean"}function xl(e,t,n,r){var a=Tl(r)?r:n(r),i=t.get(a);return typeof i>"u"&&(i=e.call(this,r),t.set(a,i)),i}function bu(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),i=t.get(a);return typeof i>"u"&&(i=e.apply(this,r),t.set(a,i)),i}function Eu(e,t,n,r,a){return n.bind(t,e,r,a)}function yl(e,t){var n=e.length===1?xl:bu;return Eu(e,this,n,t.cache.create(),t.serializer)}function Al(e,t){return Eu(e,this,bu,t.cache.create(),t.serializer)}var Sl=function(){return JSON.stringify(arguments)};function Ha(){this.cache=Object.create(null)}Ha.prototype.get=function(e){return this.cache[e]};Ha.prototype.set=function(e,t){this.cache[e]=t};var Cl={create:function(){return new Ha}},ot={variadic:Al},ht;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ht||(ht={}));var _t=(function(e){et(t,e);function t(n,r,a){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=a,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),_i=(function(e){et(t,e);function t(n,r,a,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(a).join('", "'),'"'),ht.INVALID_VALUE,i)||this}return t})(_t),_l=(function(e){et(t,e);function t(n,r,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),ht.INVALID_VALUE,a)||this}return t})(_t),Il=(function(e){et(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),ht.MISSING_VALUE,r)||this}return t})(_t),Fe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Fe||(Fe={}));function Nl(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Fe.literal||n.type!==Fe.literal?t.push(n):r.value+=n.value,t},[])}function Tu(e){return typeof e=="function"}function nr(e,t,n,r,a,i,s){if(e.length===1&&Ei(e[0]))return[{type:Fe.literal,value:e[0].value}];for(var o=[],c=0,l=e;c<l.length;c++){var d=l[c];if(Ei(d)){o.push({type:Fe.literal,value:d.value});continue}if(Gc(d)){typeof i=="number"&&o.push({type:Fe.literal,value:n.getNumberFormat(t).format(i)});continue}var f=d.value;if(!(a&&f in a))throw new Il(f,s);var h=a[f];if($c(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),o.push({type:typeof h=="string"?Fe.literal:Fe.object,value:h});continue}if(au(d)){var m=typeof d.style=="string"?r.date[d.style]:oa(d.style)?d.style.parsedOptions:void 0;o.push({type:Fe.literal,value:n.getDateTimeFormat(t,m).format(h)});continue}if(iu(d)){var m=typeof d.style=="string"?r.time[d.style]:oa(d.style)?d.style.parsedOptions:r.time.medium;o.push({type:Fe.literal,value:n.getDateTimeFormat(t,m).format(h)});continue}if(ru(d)){var m=typeof d.style=="string"?r.number[d.style]:cu(d.style)?d.style.parsedOptions:void 0;m&&m.scale&&(h=h*(m.scale||1)),o.push({type:Fe.literal,value:n.getNumberFormat(t,m).format(h)});continue}if(ou(d)){var S=d.children,C=d.value,P=a[C];if(!Tu(P))throw new _l(C,"function",s);var N=nr(S,t,n,r,a,i),M=P(N.map(function(I){return I.value}));Array.isArray(M)||(M=[M]),o.push.apply(o,M.map(function(I){return{type:typeof I=="string"?Fe.literal:Fe.object,value:I}}))}if(su(d)){var D=d.options[h]||d.options.other;if(!D)throw new _i(d.value,h,Object.keys(d.options),s);o.push.apply(o,nr(D.value,t,n,r,a));continue}if(uu(d)){var D=d.options["=".concat(h)];if(!D){if(!Intl.PluralRules)throw new _t(`Intl.PluralRules is not available in this environment.
|
|
19
|
+
*/var bi;function Gl(){if(bi)return Te;bi=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function O(S){if(typeof S=="object"&&S!==null){var w=S.$$typeof;switch(w){case t:switch(S=S.type,S){case l:case c:case r:case i:case a:case f:return S;default:switch(S=S&&S.$$typeof,S){case o:case d:case y:case h:case s:return S;default:return w}}case n:return w}}}function U(S){return O(S)===c}return Te.AsyncMode=l,Te.ConcurrentMode=c,Te.ContextConsumer=o,Te.ContextProvider=s,Te.Element=t,Te.ForwardRef=d,Te.Fragment=r,Te.Lazy=y,Te.Memo=h,Te.Portal=n,Te.Profiler=i,Te.StrictMode=a,Te.Suspense=f,Te.isAsyncMode=function(S){return U(S)||O(S)===l},Te.isConcurrentMode=U,Te.isContextConsumer=function(S){return O(S)===o},Te.isContextProvider=function(S){return O(S)===s},Te.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Te.isForwardRef=function(S){return O(S)===d},Te.isFragment=function(S){return O(S)===r},Te.isLazy=function(S){return O(S)===y},Te.isMemo=function(S){return O(S)===h},Te.isPortal=function(S){return O(S)===n},Te.isProfiler=function(S){return O(S)===i},Te.isStrictMode=function(S){return O(S)===a},Te.isSuspense=function(S){return O(S)===f},Te.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===c||S===i||S===a||S===f||S===m||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===h||S.$$typeof===s||S.$$typeof===o||S.$$typeof===d||S.$$typeof===L||S.$$typeof===_||S.$$typeof===R||S.$$typeof===x)},Te.typeOf=O,Te}var ye={};/** @license React v16.13.1
|
|
20
|
+
* react-is.development.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var Ei;function Vl(){return Ei||(Ei=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function O(H){return typeof H=="string"||typeof H=="function"||H===r||H===c||H===i||H===a||H===f||H===m||typeof H=="object"&&H!==null&&(H.$$typeof===y||H.$$typeof===h||H.$$typeof===s||H.$$typeof===o||H.$$typeof===d||H.$$typeof===L||H.$$typeof===_||H.$$typeof===R||H.$$typeof===x)}function U(H){if(typeof H=="object"&&H!==null){var Oe=H.$$typeof;switch(Oe){case t:var De=H.type;switch(De){case l:case c:case r:case i:case a:case f:return De;default:var Ge=De&&De.$$typeof;switch(Ge){case o:case d:case y:case h:case s:return Ge;default:return Oe}}case n:return Oe}}}var S=l,w=c,Q=o,fe=s,re=t,G=d,j=r,B=y,$=h,z=n,Z=i,he=a,ue=f,be=!1;function we(H){return be||(be=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),p(H)||U(H)===l}function p(H){return U(H)===c}function F(H){return U(H)===o}function Y(H){return U(H)===s}function g(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function W(H){return U(H)===d}function K(H){return U(H)===r}function V(H){return U(H)===y}function J(H){return U(H)===h}function ee(H){return U(H)===n}function te(H){return U(H)===i}function ae(H){return U(H)===a}function ve(H){return U(H)===f}ye.AsyncMode=S,ye.ConcurrentMode=w,ye.ContextConsumer=Q,ye.ContextProvider=fe,ye.Element=re,ye.ForwardRef=G,ye.Fragment=j,ye.Lazy=B,ye.Memo=$,ye.Portal=z,ye.Profiler=Z,ye.StrictMode=he,ye.Suspense=ue,ye.isAsyncMode=we,ye.isConcurrentMode=p,ye.isContextConsumer=F,ye.isContextProvider=Y,ye.isElement=g,ye.isForwardRef=W,ye.isFragment=K,ye.isLazy=V,ye.isMemo=J,ye.isPortal=ee,ye.isProfiler=te,ye.isStrictMode=ae,ye.isSuspense=ve,ye.isValidElementType=O,ye.typeOf=U})()),ye}var gi;function Ha(){return gi||(gi=1,process.env.NODE_ENV==="production"?zn.exports=Gl():zn.exports=Vl()),zn.exports}var Lr,Ti;function ql(){if(Ti)return Lr;Ti=1;var e=Ha(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function s(y){return e.isMemo(y)?a:i[y.$$typeof]||t}var o=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;function h(y,x,L){if(typeof x!="string"){if(m){var _=f(x);_&&_!==m&&h(y,_,L)}var R=l(x);c&&(R=R.concat(c(x)));for(var O=s(y),U=s(x),S=0;S<R.length;++S){var w=R[S];if(!n[w]&&!(L&&L[w])&&!(U&&U[w])&&!(O&&O[w])){var Q=d(x,w);try{o(y,w,Q)}catch{}}}}return y}return Lr=h,Lr}ql();function ou(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var me;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(me||(me={}));var Ce;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ce||(Ce={}));var Jt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Jt||(Jt={}));function yi(e){return e.type===Ce.literal}function Wl(e){return e.type===Ce.argument}function lu(e){return e.type===Ce.number}function cu(e){return e.type===Ce.date}function du(e){return e.type===Ce.time}function fu(e){return e.type===Ce.select}function hu(e){return e.type===Ce.plural}function Xl(e){return e.type===Ce.pound}function mu(e){return e.type===Ce.tag}function pu(e){return!!(e&&typeof e=="object"&&e.type===Jt.number)}function la(e){return!!(e&&typeof e=="object"&&e.type===Jt.dateTime)}var bu=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ql=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Kl(e){var t={};return e.replace(Ql,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Zl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Jl(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Zl).filter(function(m){return m.length>0}),n=[],r=0,a=t;r<a.length;r++){var i=a[r],s=i.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var o=s[0],l=s.slice(1),c=0,d=l;c<d.length;c++){var f=d[c];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:o,options:l})}return n}function ec(e){return e.replace(/^(.*?)-/,"")}var xi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Eu=/^(@+)?(\+|#+)?[rs]?$/g,tc=/(\*)(0+)|(#+)(0+)|(0+)/g,gu=/^(0+)$/;function Ai(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Eu,function(n,r,a){return typeof a!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):a==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof a=="string"?a.length:0)),""}),t}function Tu(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function nc(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!gu.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function _i(e){var t={},n=Tu(e);return n||t}function rc(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ec(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=q(q(q({},t),{notation:"scientific"}),a.options.reduce(function(l,c){return q(q({},l),_i(c))},{}));continue;case"engineering":t=q(q(q({},t),{notation:"engineering"}),a.options.reduce(function(l,c){return q(q({},l),_i(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(tc,function(l,c,d,f,m,h){if(c)t.minimumIntegerDigits=d.length;else{if(f&&m)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(gu.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(xi.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(xi,function(l,c,d,f,m,h){return d==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:m&&h?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+h.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var i=a.options[0];i==="w"?t=q(q({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=q(q({},t),Ai(i)));continue}if(Eu.test(a.stem)){t=q(q({},t),Ai(a.stem));continue}var s=Tu(a.stem);s&&(t=q(q({},t),s));var o=nc(a.stem);o&&(t=q(q({},t),o))}return t}var Yn={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ac(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if(a==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===a;)i++,r++;var s=1+(i&1),o=i<2?1:3+(i>>1),l="a",c=ic(t);for((c=="H"||c=="k")&&(o=0);o-- >0;)n+=l;for(;s-- >0;)n=c+n}else a==="J"?n+="H":n+=a}return n}function ic(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var a=Yn[r||""]||Yn[n||""]||Yn["".concat(n,"-001")]||Yn["001"];return a[0]}var Rr,sc=new RegExp("^".concat(bu.source,"*")),uc=new RegExp("".concat(bu.source,"*$"));function pe(e,t){return{start:e,end:t}}var oc=!!String.prototype.startsWith&&"_a".startsWith("a",1),lc=!!String.fromCodePoint,cc=!!Object.fromEntries,dc=!!String.prototype.codePointAt,fc=!!String.prototype.trimStart,hc=!!String.prototype.trimEnd,mc=!!Number.isSafeInteger,pc=mc?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ca=!0;try{var bc=xu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ca=((Rr=bc.exec("a"))===null||Rr===void 0?void 0:Rr[0])==="a"}catch{ca=!1}var Si=oc?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},da=lc?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",a=t.length,i=0,s;a>i;){if(s=t[i++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Ci=cc?Object.fromEntries:function(t){for(var n={},r=0,a=t;r<a.length;r++){var i=a[r],s=i[0],o=i[1];n[s]=o}return n},yu=dc?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var a=t.charCodeAt(n),i;return a<55296||a>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},Ec=fc?function(t){return t.trimStart()}:function(t){return t.replace(sc,"")},gc=hc?function(t){return t.trimEnd()}:function(t){return t.replace(uc,"")};function xu(e,t){return new RegExp(e,t)}var fa;if(ca){var Ii=xu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fa=function(t,n){var r;Ii.lastIndex=n;var a=Ii.exec(t);return(r=a[1])!==null&&r!==void 0?r:""}}else fa=function(t,n){for(var r=[];;){var a=yu(t,n);if(a===void 0||Au(a)||Ac(a))break;r.push(a),n+=a>=65536?2:1}return da.apply(void 0,r)};var Tc=(function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var a=[];!this.isEOF();){var i=this.char();if(i===123){var s=this.parseArgument(t,r);if(s.err)return s;a.push(s.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var o=this.clonePosition();this.bump(),a.push({type:Ce.pound,location:pe(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(me.UNMATCHED_CLOSING_TAG,pe(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&ha(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;a.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;a.push(s.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ce.literal,value:"<".concat(a,"/>"),location:pe(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var s=i.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ha(this.char()))return this.error(me.INVALID_TAG,pe(o,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return a!==c?this.error(me.UNMATCHED_CLOSING_TAG,pe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ce.tag,value:a,children:s,location:pe(r,this.clonePosition())},err:null}:this.error(me.INVALID_TAG,pe(o,this.clonePosition())))}else return this.error(me.UNCLOSED_TAG,pe(r,this.clonePosition()))}else return this.error(me.INVALID_TAG,pe(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&xc(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),a="";;){var i=this.tryParseQuote(n);if(i){a+=i;continue}var s=this.tryParseUnquoted(t,n);if(s){a+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){a+=o;continue}break}var l=pe(r,this.clonePosition());return{val:{type:Ce.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!yc(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return da.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),da(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(me.EMPTY_ARGUMENT,pe(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(me.MALFORMED_ARGUMENT,pe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ce.argument,value:a,location:pe(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(r,this.clonePosition())):this.parseArgumentOptions(t,n,a,r);default:return this.error(me.MALFORMED_ARGUMENT,pe(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=fa(this.message,n),a=n+r.length;this.bumpTo(a);var i=this.clonePosition(),s=pe(t,i);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,a){var i,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(me.EXPECT_ARGUMENT_TYPE,pe(s,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var m=gc(f.val);if(m.length===0)return this.error(me.EXPECT_ARGUMENT_STYLE,pe(this.clonePosition(),this.clonePosition()));var h=pe(d,this.clonePosition());c={style:m,styleLocation:h}}var y=this.tryParseArgumentClose(a);if(y.err)return y;var x=pe(a,this.clonePosition());if(c&&Si(c?.style,"::",0)){var L=Ec(c.style.slice(2));if(o==="number"){var f=this.parseNumberSkeletonFromString(L,c.styleLocation);return f.err?f:{val:{type:Ce.number,value:r,location:x,style:f.val},err:null}}else{if(L.length===0)return this.error(me.EXPECT_DATE_TIME_SKELETON,x);var _=L;this.locale&&(_=ac(L,this.locale));var m={type:Jt.dateTime,pattern:_,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Kl(_):{}},R=o==="date"?Ce.date:Ce.time;return{val:{type:R,value:r,location:x,style:m},err:null}}}return{val:{type:o==="number"?Ce.number:o==="date"?Ce.date:Ce.time,value:r,location:x,style:(i=c?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var O=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(me.EXPECT_SELECT_ARGUMENT_OPTIONS,pe(O,q({},O)));this.bumpSpace();var U=this.parseIdentifierIfPossible(),S=0;if(o!=="select"&&U.value==="offset"){if(!this.bumpIf(":"))return this.error(me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,me.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),U=this.parseIdentifierIfPossible(),S=f.val}var w=this.tryParsePluralOrSelectOptions(t,o,n,U);if(w.err)return w;var y=this.tryParseArgumentClose(a);if(y.err)return y;var Q=pe(a,this.clonePosition());return o==="select"?{val:{type:Ce.select,value:r,options:Ci(w.val),location:Q},err:null}:{val:{type:Ce.plural,value:r,options:Ci(w.val),offset:S,pluralType:o==="plural"?"cardinal":"ordinal",location:Q},err:null}}default:return this.error(me.INVALID_ARGUMENT_TYPE,pe(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(me.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pe(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Jl(t)}catch{return this.error(me.INVALID_NUMBER_SKELETON,n)}return{val:{type:Jt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?rc(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,a){for(var i,s=!1,o=[],l=new Set,c=a.value,d=a.location;;){if(c.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(me.EXPECT_PLURAL_ARGUMENT_SELECTOR,me.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;d=pe(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?me.DUPLICATE_SELECT_ARGUMENT_SELECTOR:me.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);c==="other"&&(s=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?me.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:me.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pe(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,n,r);if(y.err)return y;var x=this.tryParseArgumentClose(h);if(x.err)return x;o.push([c,{value:y.val,location:pe(h,this.clonePosition())}]),l.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,d=i.location}return o.length===0?this.error(n==="select"?me.EXPECT_SELECT_ARGUMENT_SELECTOR:me.EXPECT_PLURAL_ARGUMENT_SELECTOR,pe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(me.MISSING_OTHER_CLAUSE,pe(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,s=s*10+(o-48),this.bump();else break}var l=pe(a,this.clonePosition());return i?(s*=r,pc(s)?{val:s,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=yu(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Si(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Au(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e})();function ha(e){return e>=97&&e<=122||e>=65&&e<=90}function yc(e){return ha(e)||e===47}function xc(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Au(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ac(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ma(e){e.forEach(function(t){if(delete t.location,fu(t)||hu(t))for(var n in t.options)delete t.options[n].location,ma(t.options[n].value);else lu(t)&&pu(t.style)||(cu(t)||du(t))&&la(t.style)?delete t.style.location:mu(t)&&ma(t.children)})}function _c(e,t){t===void 0&&(t={}),t=q({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Tc(e,t).parse();if(n.err){var r=SyntaxError(me[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||ma(n.val),n.val}function it(e,t){var n=t&&t.cache?t.cache:wc,r=t&&t.serializer?t.serializer:vc,a=t&&t.strategy?t.strategy:Ic;return a(e,{cache:n,serializer:r})}function Sc(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Cc(e,t,n,r){var a=Sc(r)?r:n(r),i=t.get(a);return typeof i>"u"&&(i=e.call(this,r),t.set(a,i)),i}function _u(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),i=t.get(a);return typeof i>"u"&&(i=e.apply(this,r),t.set(a,i)),i}function Su(e,t,n,r,a){return n.bind(t,e,r,a)}function Ic(e,t){var n=e.length===1?Cc:_u;return Su(e,this,n,t.cache.create(),t.serializer)}function Nc(e,t){return Su(e,this,_u,t.cache.create(),t.serializer)}var vc=function(){return JSON.stringify(arguments)};function Ua(){this.cache=Object.create(null)}Ua.prototype.get=function(e){return this.cache[e]};Ua.prototype.set=function(e,t){this.cache[e]=t};var wc={create:function(){return new Ua}},st={variadic:Nc},ct;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ct||(ct={}));var At=(function(e){Je(t,e);function t(n,r,a){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=a,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),Ni=(function(e){Je(t,e);function t(n,r,a,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(a).join('", "'),'"'),ct.INVALID_VALUE,i)||this}return t})(At),Oc=(function(e){Je(t,e);function t(n,r,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),ct.INVALID_VALUE,a)||this}return t})(At),Lc=(function(e){Je(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),ct.MISSING_VALUE,r)||this}return t})(At),Ue;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ue||(Ue={}));function Rc(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Ue.literal||n.type!==Ue.literal?t.push(n):r.value+=n.value,t},[])}function Cu(e){return typeof e=="function"}function Jn(e,t,n,r,a,i,s){if(e.length===1&&yi(e[0]))return[{type:Ue.literal,value:e[0].value}];for(var o=[],l=0,c=e;l<c.length;l++){var d=c[l];if(yi(d)){o.push({type:Ue.literal,value:d.value});continue}if(Xl(d)){typeof i=="number"&&o.push({type:Ue.literal,value:n.getNumberFormat(t).format(i)});continue}var f=d.value;if(!(a&&f in a))throw new Lc(f,s);var m=a[f];if(Wl(d)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),o.push({type:typeof m=="string"?Ue.literal:Ue.object,value:m});continue}if(cu(d)){var h=typeof d.style=="string"?r.date[d.style]:la(d.style)?d.style.parsedOptions:void 0;o.push({type:Ue.literal,value:n.getDateTimeFormat(t,h).format(m)});continue}if(du(d)){var h=typeof d.style=="string"?r.time[d.style]:la(d.style)?d.style.parsedOptions:r.time.medium;o.push({type:Ue.literal,value:n.getDateTimeFormat(t,h).format(m)});continue}if(lu(d)){var h=typeof d.style=="string"?r.number[d.style]:pu(d.style)?d.style.parsedOptions:void 0;h&&h.scale&&(m=m*(h.scale||1)),o.push({type:Ue.literal,value:n.getNumberFormat(t,h).format(m)});continue}if(mu(d)){var y=d.children,x=d.value,L=a[x];if(!Cu(L))throw new Oc(x,"function",s);var _=Jn(y,t,n,r,a,i),R=L(_.map(function(S){return S.value}));Array.isArray(R)||(R=[R]),o.push.apply(o,R.map(function(S){return{type:typeof S=="string"?Ue.literal:Ue.object,value:S}}))}if(fu(d)){var O=d.options[m]||d.options.other;if(!O)throw new Ni(d.value,m,Object.keys(d.options),s);o.push.apply(o,Jn(O.value,t,n,r,a));continue}if(hu(d)){var O=d.options["=".concat(m)];if(!O){if(!Intl.PluralRules)throw new At(`Intl.PluralRules is not available in this environment.
|
|
20
27
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
21
|
-
`,
|
|
28
|
+
`,ct.MISSING_INTL_API,s);var U=n.getPluralRules(t,{type:d.pluralType}).select(m-(d.offset||0));O=d.options[U]||d.options.other}if(!O)throw new Ni(d.value,m,Object.keys(d.options),s);o.push.apply(o,Jn(O.value,t,n,r,a,m-(d.offset||0)));continue}}return Rc(o)}function Pc(e,t){return t?q(q(q({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=q(q({},e[r]),t[r]||{}),n},{})):e}function Dc(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Pc(e[r],t[r]),n},q({},e)):e}function Pr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function kc(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:it(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,ut([void 0],n,!1)))},{cache:Pr(e.number),strategy:st.variadic}),getDateTimeFormat:it(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,ut([void 0],n,!1)))},{cache:Pr(e.dateTime),strategy:st.variadic}),getPluralRules:it(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,ut([void 0],n,!1)))},{cache:Pr(e.pluralRules),strategy:st.variadic})}}var Iu=(function(){function e(t,n,r,a){var i=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var c=i.formatToParts(l);if(c.length===1)return c[0].value;var d=c.reduce(function(f,m){return!f.length||m.type!==Ue.literal||typeof f[f.length-1]!="string"?f.push(m.value):f[f.length-1]+=m.value,f},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return Jn(i.ast,i.locales,i.formatters,i.formats,l,void 0,i.message)},this.resolvedOptions=function(){var l;return{locale:((l=i.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=a||{};s.formatters;var o=br(s,["formatters"]);this.ast=e.__parse(t,q(q({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Dc(e.formats,r),this.formatters=a&&a.formatters||kc(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=_c,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})(),Mt;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Mt||(Mt={}));var Pn=(function(e){Je(t,e);function t(n,r,a){var i=this,s=a?a instanceof Error?a:new Error(String(a)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
|
|
22
29
|
`).concat(s?`
|
|
23
30
|
`.concat(s.message,`
|
|
24
|
-
`).concat(s.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t})(Error),
|
|
31
|
+
`).concat(s.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t})(Error),Mc=(function(e){Je(t,e);function t(n,r){return e.call(this,Mt.UNSUPPORTED_FORMATTER,n,r)||this}return t})(Pn),Bc=(function(e){Je(t,e);function t(n,r){return e.call(this,Mt.INVALID_CONFIG,n,r)||this}return t})(Pn),vi=(function(e){Je(t,e);function t(n,r){return e.call(this,Mt.MISSING_DATA,n,r)||this}return t})(Pn),et=(function(e){Je(t,e);function t(n,r,a){var i=e.call(this,Mt.FORMAT_ERROR,"".concat(n,`
|
|
25
32
|
Locale: `).concat(r,`
|
|
26
|
-
`),a)||this;return i.locale=r,i}return t})(
|
|
33
|
+
`),a)||this;return i.locale=r,i}return t})(Pn),Dr=(function(e){Je(t,e);function t(n,r,a,i){var s=e.call(this,"".concat(n,`
|
|
27
34
|
MessageID: `).concat(a?.id,`
|
|
28
35
|
Default Message: `).concat(a?.defaultMessage,`
|
|
29
36
|
Description: `).concat(a?.description,`
|
|
30
|
-
`),r,i)||this;return s.descriptor=a,s.locale=r,s}return t})(
|
|
37
|
+
`),r,i)||this;return s.descriptor=a,s.locale=r,s}return t})(et),Fc=(function(e){Je(t,e);function t(n,r){var a=e.call(this,Mt.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var s;return(s=i.value)!==null&&s!==void 0?s:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return a.descriptor=n,a}return t})(Pn);function Ft(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,a){return a in e?r[a]=e[a]:a in n&&(r[a]=n[a]),r},{})}var Hc=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},Uc=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},Nu={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Hc,onWarn:Uc};function vu(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ot(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function jc(e){e===void 0&&(e=vu());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,a=it(function(){for(var o,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((o=Intl.DateTimeFormat).bind.apply(o,ut([void 0],l,!1)))},{cache:Ot(e.dateTime),strategy:st.variadic}),i=it(function(){for(var o,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((o=Intl.NumberFormat).bind.apply(o,ut([void 0],l,!1)))},{cache:Ot(e.number),strategy:st.variadic}),s=it(function(){for(var o,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((o=Intl.PluralRules).bind.apply(o,ut([void 0],l,!1)))},{cache:Ot(e.pluralRules),strategy:st.variadic});return{getDateTimeFormat:a,getNumberFormat:i,getMessageFormat:it(function(o,l,c,d){return new Iu(o,l,c,q({formatters:{getNumberFormat:i,getDateTimeFormat:a,getPluralRules:s}},d||{}))},{cache:Ot(e.message),strategy:st.variadic}),getRelativeTimeFormat:it(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(t.bind.apply(t,ut([void 0],o,!1)))},{cache:Ot(e.relativeTime),strategy:st.variadic}),getPluralRules:s,getListFormat:it(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(n.bind.apply(n,ut([void 0],o,!1)))},{cache:Ot(e.list),strategy:st.variadic}),getDisplayNames:it(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(r.bind.apply(r,ut([void 0],o,!1)))},{cache:Ot(e.displayNames),strategy:st.variadic})}}function ja(e,t,n,r){var a=e&&e[t],i;if(a&&(i=a[n]),i)return i;r(new Mc("No ".concat(t," format named: ").concat(n)))}function Gn(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=q({timeZone:t},e[r]),n},{})}function wi(e,t){var n=Object.keys(q(q({},e),t));return n.reduce(function(r,a){return r[a]=q(q({},e[a]||{}),t[a]||{}),r},{})}function Oi(e,t){if(!t)return e;var n=Iu.formats;return q(q(q({},n),e),{date:wi(Gn(n.date,t),Gn(e.date||{},t)),time:wi(Gn(n.time,t),Gn(e.time||{},t))})}var pa=function(e,t,n,r,a){var i=e.locale,s=e.formats,o=e.messages,l=e.defaultLocale,c=e.defaultFormats,d=e.fallbackOnEmptyString,f=e.onError,m=e.timeZone,h=e.defaultRichTextElements;n===void 0&&(n={id:""});var y=n.id,x=n.defaultMessage;ou(!!y,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var L=String(y),_=o&&Object.prototype.hasOwnProperty.call(o,L)&&o[L];if(Array.isArray(_)&&_.length===1&&_[0].type===Ce.literal)return _[0].value;if(!r&&_&&typeof _=="string"&&!h)return _.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=q(q({},h),r||{}),s=Oi(s,m),c=Oi(c,m),!_){if(d===!1&&_==="")return _;if((!x||i&&i.toLowerCase()!==l.toLowerCase())&&f(new Fc(n,i)),x)try{var R=t.getMessageFormat(x,l,c,a);return R.format(r)}catch(O){return f(new Dr('Error formatting default message for: "'.concat(L,'", rendering default message verbatim'),i,n,O)),typeof x=="string"?x:L}return L}try{var R=t.getMessageFormat(_,i,s,q({formatters:t},a||{}));return R.format(r)}catch(O){f(new Dr('Error formatting message: "'.concat(L,'", using ').concat(x?"default message":"id"," as fallback."),i,n,O))}if(x)try{var R=t.getMessageFormat(x,l,c,a);return R.format(r)}catch(O){f(new Dr('Error formatting the default message for: "'.concat(L,'", rendering message verbatim'),i,n,O))}return typeof _=="string"?_:typeof x=="string"?x:L},wu=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Er(e,t,n,r){var a=e.locale,i=e.formats,s=e.onError,o=e.timeZone;r===void 0&&(r={});var l=r.format,c=q(q({},o&&{timeZone:o}),l&&ja(i,t,l,s)),d=Ft(r,wu,c);return t==="time"&&!d.hour&&!d.minute&&!d.second&&!d.timeStyle&&!d.dateStyle&&(d=q(q({},d),{hour:"numeric",minute:"numeric"})),n(a,d)}function $c(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=i===void 0?{}:i,o=typeof a=="string"?new Date(a||0):a;try{return Er(e,"date",t,s).format(o)}catch(l){e.onError(new et("Error formatting date.",e.locale,l))}return String(o)}function zc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=i===void 0?{}:i,o=typeof a=="string"?new Date(a||0):a;try{return Er(e,"time",t,s).format(o)}catch(l){e.onError(new et("Error formatting time.",e.locale,l))}return String(o)}function Yc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=n[2],o=s===void 0?{}:s,l=e.timeZone,c=e.locale,d=e.onError,f=Ft(o,wu,l?{timeZone:l}:{});try{return t(c,f).formatRange(a,i)}catch(m){d(new et("Error formatting date time range.",e.locale,m))}return String(a)}function Gc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=i===void 0?{}:i,o=typeof a=="string"?new Date(a||0):a;try{return Er(e,"date",t,s).formatToParts(o)}catch(l){e.onError(new et("Error formatting date.",e.locale,l))}return[]}function Vc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],s=i===void 0?{}:i,o=typeof a=="string"?new Date(a||0):a;try{return Er(e,"time",t,s).formatToParts(o)}catch(l){e.onError(new et("Error formatting time.",e.locale,l))}return[]}var qc=["style","type","fallback","languageDisplay"];function Wc(e,t,n,r){var a=e.locale,i=e.onError,s=Intl.DisplayNames;s||i(new At(`Intl.DisplayNames is not available in this environment.
|
|
31
38
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
32
|
-
`,
|
|
39
|
+
`,ct.MISSING_INTL_API));var o=Ft(r,qc);try{return t(a,o).of(n)}catch(l){i(new et("Error formatting display name.",a,l))}}var Xc=["type","style"],Li=Date.now();function Qc(e){return"".concat(Li,"_").concat(e,"_").concat(Li)}function Kc(e,t,n,r){r===void 0&&(r={});var a=Ou(e,t,n,r).reduce(function(i,s){var o=s.value;return typeof o!="string"?i.push(o):typeof i[i.length-1]=="string"?i[i.length-1]+=o:i.push(o),i},[]);return a.length===1?a[0]:a.length===0?"":a}function Ou(e,t,n,r){var a=e.locale,i=e.onError;r===void 0&&(r={});var s=Intl.ListFormat;s||i(new At(`Intl.ListFormat is not available in this environment.
|
|
33
40
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
34
|
-
`,
|
|
41
|
+
`,ct.MISSING_INTL_API));var o=Ft(r,Xc);try{var l={},c=n.map(function(d,f){if(typeof d=="object"){var m=Qc(f);return l[m]=d,m}return String(d)});return t(a,o).formatToParts(c).map(function(d){return d.type==="literal"?d:q(q({},d),{value:l[d.value]||d.value})})}catch(d){i(new et("Error formatting list.",a,d))}return n}var Zc=["type"];function Jc(e,t,n,r){var a=e.locale,i=e.onError;r===void 0&&(r={}),Intl.PluralRules||i(new At(`Intl.PluralRules is not available in this environment.
|
|
35
42
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
36
|
-
`,
|
|
43
|
+
`,ct.MISSING_INTL_API));var s=Ft(r,Zc);try{return t(a,s).select(n)}catch(o){i(new et("Error formatting plural.",a,o))}return"other"}var ed=["numeric","style"];function td(e,t,n){var r=e.locale,a=e.formats,i=e.onError;n===void 0&&(n={});var s=n.format,o=!!s&&ja(a,"relative",s,i)||{},l=Ft(n,ed,o);return t(r,l)}function nd(e,t,n,r,a){a===void 0&&(a={}),r||(r="second");var i=Intl.RelativeTimeFormat;i||e.onError(new At(`Intl.RelativeTimeFormat is not available in this environment.
|
|
37
44
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
38
|
-
`,
|
|
45
|
+
`,ct.MISSING_INTL_API));try{return td(e,t,a).format(n,r)}catch(s){e.onError(new et("Error formatting relative time.",e.locale,s))}return String(n)}var rd=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Lu(e,t,n){var r=e.locale,a=e.formats,i=e.onError;n===void 0&&(n={});var s=n.format,o=s&&ja(a,"number",s,i)||{},l=Ft(n,rd,o);return t(r,l)}function ad(e,t,n,r){r===void 0&&(r={});try{return Lu(e,t,r).format(n)}catch(a){e.onError(new et("Error formatting number.",e.locale,a))}return String(n)}function id(e,t,n,r){r===void 0&&(r={});try{return Lu(e,t,r).formatToParts(n)}catch(a){e.onError(new et("Error formatting number.",e.locale,a))}return[]}function sd(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function ud(e){e.onWarn&&e.defaultRichTextElements&&sd(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
39
46
|
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
40
|
-
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function rd(e,t){var n=Ml(t),r=q(q({},yu),e),a=r.locale,i=r.defaultLocale,s=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&s?s(new Ii('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&s&&s(new Ii('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new Ol('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),nd(r),q(q({},r),{formatters:n,formatNumber:Jl.bind(null,r,n.getNumberFormat),formatNumberToParts:ed.bind(null,r,n.getNumberFormat),formatRelativeTime:Kl.bind(null,r,n.getRelativeTimeFormat),formatDate:Bl.bind(null,r,n.getDateTimeFormat),formatDateToParts:Ul.bind(null,r,n.getDateTimeFormat),formatTime:Fl.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:Hl.bind(null,r,n.getDateTimeFormat),formatTimeToParts:zl.bind(null,r,n.getDateTimeFormat),formatPlural:Wl.bind(null,r,n.getPluralRules),formatMessage:ma.bind(null,r,n),$t:ma.bind(null,r,n),formatList:Vl.bind(null,r,n.getListFormat),formatListToParts:Cu.bind(null,r,n.getListFormat),formatDisplayName:$l.bind(null,r,n.getDisplayNames)})}function Iu(e){nu(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Nu=q(q({},yu),{textComponent:Ne.Fragment});function ad(e){return function(t){return e(Ne.Children.toArray(t))}}function id(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var i=0;i<a;i++){var s=n[i];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var za=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Ne.createContext(null)):Ne.createContext(null);za.Consumer;var sd=za.Provider,ud=sd,od=za;function Fn(){var e=Ne.useContext(od);return Iu(e),e}var pa;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(pa||(pa={}));var ga;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(ga||(ga={}));function wu(e){var t=function(n){var r=Fn(),a=n.value,i=n.children,s=br(n,["value","children"]),o=typeof a=="string"?new Date(a||0):a,c=e==="formatDate"?r.formatDateToParts(o,s):r.formatTimeToParts(o,s);return i(c)};return t.displayName=ga[e],t}function Hn(e){var t=function(n){var r=Fn(),a=n.value,i=n.children,s=br(n,["value","children"]),o=r[e](a,s);if(typeof i=="function")return i(o);var c=r.textComponent||Ne.Fragment;return Ne.createElement(c,null,o)};return t.displayName=pa[e],t}function vu(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=Tu(r)?ad(r):r,t},{})}var Li=function(e,t,n,r){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var s=vu(r),o=ma.apply(void 0,lt([e,t,n,s],a,!1));return Array.isArray(o)?Ne.Children.toArray(o):o},ki=function(e,t){var n=e.defaultRichTextElements,r=br(e,["defaultRichTextElements"]),a=vu(n),i=rd(q(q(q({},Nu),r),{defaultRichTextElements:a}),t),s={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:a};return q(q({},i),{formatMessage:Li.bind(null,s,i.formatters),$t:Li.bind(null,s,i.formatters)})};function Br(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var cd=(function(e){et(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=Au(),n.state={cache:n.cache,intl:ki(Br(n.props),n.cache),prevConfig:Br(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var a=r.prevConfig,i=r.cache,s=Br(n);return id(a,s)?null:{intl:ki(s,i),prevConfig:s}},t.prototype.render=function(){return Iu(this.state.intl),Ne.createElement(ud,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Nu,t})(Ne.PureComponent);Hn("formatDate");Hn("formatTime");Hn("formatNumber");Hn("formatList");Hn("formatDisplayName");wu("formatDate");wu("formatTime");const ja=()=>{const e=Fn(),t=e.formatMessage({defaultMessage:"Message the assistant...",id:"chatbot.placeholder.content"}),n=e.formatMessage({defaultMessage:"You",id:"chatbot.chatline.label.user"}),r=e.formatMessage({defaultMessage:"Assistant",id:"chatbot.chatline.label.assistant"}),a=e.formatMessage({defaultMessage:"⏳ The chatbot is a little busy at the time. Please try again later.",id:"chatbot.error.api.429"}),i=e.formatMessage({defaultMessage:"Oops ! There has been an error. Please try again later.",id:"chatbot.error.api.500"}),s=e.formatMessage({defaultMessage:"Oups ! The discussion if full. Please start a new one.",id:"chatbot.error.api.409"});return{placeholderTranslation:t,chatlineLabelUserTranslation:n,chatlineLabelAssistantTranslation:r,tooManyRequestsTranslation:a,genericErrorTranslation:i,conflictErrorTranslation:s}},ld=({setDiscussionId:e,setConversation:t,companySettings:n})=>({resetDiscussion:()=>{e(null),t([{userType:"assistant",content:n?.agent?.text?.initialText}])}});class dd extends Error{name="Assertion";code="ERR_ASSERTION";constructor(t,n,r,a,i){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.actual=n,this.expected=r,this.generated=i,this.operator=a}}function A(e,t){Lu(!!e,!1,!0,"ok","Expected value to be truthy",t)}function Fr(e){Lu(!1,!1,!0,"ok","Unreachable",e)}function Lu(e,t,n,r,a,i){if(!e)throw i instanceof Error?i:new dd(i||a,t,n,r,!i)}function Oi(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const s=n.slice(a,r).trim();(s||!i)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function ku(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const fd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hd=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,md={};function Ri(e,t){return(md.jsx?hd:fd).test(e)}const pd=/[ \t\n\f\r]/g;function gd(e){return typeof e=="object"?e.type==="text"?Di(e.value):!1:Di(e)}function Di(e){return e.replace(pd,"")===""}class Un{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Un.prototype.property={};Un.prototype.normal={};Un.prototype.space=null;function Ou(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Un(n,r,t)}function On(e){return e.toLowerCase()}class nt{constructor(t,n){this.property=t,this.attribute=n}}nt.prototype.space=null;nt.prototype.boolean=!1;nt.prototype.booleanish=!1;nt.prototype.overloadedBoolean=!1;nt.prototype.number=!1;nt.prototype.commaSeparated=!1;nt.prototype.spaceSeparated=!1;nt.prototype.commaOrSpaceSeparated=!1;nt.prototype.mustUseProperty=!1;nt.prototype.defined=!1;let bd=0;const ee=$t(),Ie=$t(),Ru=$t(),U=$t(),be=$t(),en=$t(),qe=$t();function $t(){return 2**++bd}const ba=Object.freeze(Object.defineProperty({__proto__:null,boolean:ee,booleanish:Ie,commaOrSpaceSeparated:qe,commaSeparated:en,number:U,overloadedBoolean:Ru,spaceSeparated:be},Symbol.toStringTag,{value:"Module"})),Hr=Object.keys(ba);class $a extends nt{constructor(t,n,r,a){let i=-1;if(super(t,n),Pi(this,"space",a),typeof r=="number")for(;++i<Hr.length;){const s=Hr[i];Pi(this,Hr[i],(r&ba[s])===ba[s])}}}$a.prototype.defined=!0;function Pi(e,t,n){n&&(e[t]=n)}const Ed={}.hasOwnProperty;function on(e){const t={},n={};let r;for(r in e.properties)if(Ed.call(e.properties,r)){const a=e.properties[r],i=new $a(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[On(r)]=r,n[On(i.attribute)]=r}return new Un(t,n,e.space)}const Du=on({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Pu=on({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Mu(e,t){return t in e?e[t]:t}function Bu(e,t){return Mu(e,t.toLowerCase())}const Fu=on({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Bu,properties:{xmlns:null,xmlnsXLink:null}}),Hu=on({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ie,ariaAutoComplete:null,ariaBusy:Ie,ariaChecked:Ie,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:be,ariaCurrent:null,ariaDescribedBy:be,ariaDetails:null,ariaDisabled:Ie,ariaDropEffect:be,ariaErrorMessage:null,ariaExpanded:Ie,ariaFlowTo:be,ariaGrabbed:Ie,ariaHasPopup:null,ariaHidden:Ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:be,ariaLevel:U,ariaLive:null,ariaModal:Ie,ariaMultiLine:Ie,ariaMultiSelectable:Ie,ariaOrientation:null,ariaOwns:be,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:Ie,ariaReadOnly:Ie,ariaRelevant:null,ariaRequired:Ie,ariaRoleDescription:be,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:Ie,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null}}),Td=on({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Bu,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:en,acceptCharset:be,accessKey:be,action:null,allow:null,allowFullScreen:ee,allowPaymentRequest:ee,allowUserMedia:ee,alt:null,as:null,async:ee,autoCapitalize:null,autoComplete:be,autoFocus:ee,autoPlay:ee,blocking:be,capture:null,charSet:null,checked:ee,cite:null,className:be,cols:U,colSpan:null,content:null,contentEditable:Ie,controls:ee,controlsList:be,coords:U|en,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ee,defer:ee,dir:null,dirName:null,disabled:ee,download:Ru,draggable:Ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ee,formTarget:null,headers:be,height:U,hidden:ee,high:U,href:null,hrefLang:null,htmlFor:be,httpEquiv:be,id:null,imageSizes:null,imageSrcSet:null,inert:ee,inputMode:null,integrity:null,is:null,isMap:ee,itemId:null,itemProp:be,itemRef:be,itemScope:ee,itemType:be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ee,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:ee,muted:ee,name:null,nonce:null,noModule:ee,noValidate:ee,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:ee,optimum:U,pattern:null,ping:be,placeholder:null,playsInline:ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ee,referrerPolicy:null,rel:be,required:ee,reversed:ee,rows:U,rowSpan:U,sandbox:be,scope:null,scoped:ee,seamless:ee,selected:ee,shadowRootDelegatesFocus:ee,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:Ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:ee,useMap:null,value:Ie,width:U,wrap:null,align:null,aLink:null,archive:be,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ee,declare:ee,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:ee,noHref:ee,noShade:ee,noWrap:ee,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:Ie,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ee,disableRemotePlayback:ee,prefix:null,property:null,results:U,security:null,unselectable:null}}),xd=on({space:"svg",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",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"},transform:Mu,properties:{about:qe,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:be,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:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:en,g2:en,glyphName:en,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qe,rev:qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qe,requiredFeatures:qe,requiredFonts:qe,requiredFormats:qe,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),yd=/^data[-\w.:]+$/i,Mi=/-[a-z]/g,Ad=/[A-Z]/g;function Tr(e,t){const n=On(t);let r=t,a=nt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&yd.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Mi,Cd);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Mi.test(i)){let s=i.replace(Ad,Sd);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=$a}return new a(r,t)}function Sd(e){return"-"+e.toLowerCase()}function Cd(e){return e.charAt(1).toUpperCase()}const _d={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"},zn=Ou([Pu,Du,Fu,Hu,Td],"html"),It=Ou([Pu,Du,Fu,Hu,xd],"svg");function Bi(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Uu(e){return e.join(" ").trim()}var qt={},Ur,Fi;function Id(){if(Fi)return Ur;Fi=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,c=`
|
|
41
|
-
`,l="/",d="*",f="",h="comment",m="declaration";Ur=function(C,P){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];P=P||{};var N=1,M=1;function D(B){var z=B.match(t);z&&(N+=z.length);var W=B.lastIndexOf(c);M=~W?B.length-W:M+B.length}function $(){var B={line:N,column:M};return function(z){return z.position=new I(B),ae(),z}}function I(B){this.start=B,this.end={line:N,column:M},this.source=P.source}I.prototype.content=C;function R(B){var z=new Error(P.source+":"+N+":"+M+": "+B);if(z.reason=B,z.filename=P.source,z.line=N,z.column=M,z.source=C,!P.silent)throw z}function Q(B){var z=B.exec(C);if(z){var W=z[0];return D(W),C=C.slice(W.length),z}}function ae(){Q(n)}function K(B){var z;for(B=B||[];z=Y();)z!==!1&&B.push(z);return B}function Y(){var B=$();if(!(l!=C.charAt(0)||d!=C.charAt(1))){for(var z=2;f!=C.charAt(z)&&(d!=C.charAt(z)||l!=C.charAt(z+1));)++z;if(z+=2,f===C.charAt(z-1))return R("End of comment missing");var W=C.slice(2,z-2);return M+=2,D(W),C=C.slice(z),M+=2,B({type:h,comment:W})}}function oe(){var B=$(),z=Q(r);if(z){if(Y(),!Q(a))return R("property missing ':'");var W=Q(i),ce=B({type:m,property:S(z[0].replace(e,f)),value:W?S(W[0].replace(e,f)):f});return Q(s),ce}}function X(){var B=[];K(B);for(var z;z=oe();)z!==!1&&(B.push(z),K(B));return B}return ae(),X()};function S(C){return C?C.replace(o,f):f}return Ur}var Hi;function Nd(){if(Hi)return qt;Hi=1;var e=qt&&qt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qt,"__esModule",{value:!0});var t=e(Id());function n(r,a){var i=null;if(!r||typeof r!="string")return i;var s=(0,t.default)(r),o=typeof a=="function";return s.forEach(function(c){if(c.type==="declaration"){var l=c.property,d=c.value;o?a(l,d,c):d&&(i=i||{},i[l]=d)}}),i}return qt.default=n,qt}var wd=Nd();const Ui=Ba(wd),vd=Ui.default||Ui,xr=zu("end"),pt=zu("start");function zu(e){return t;function t(n){const r=n&&n.position&&n.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 Ld(e){const t=pt(e),n=xr(e);if(t&&n)return{start:t,end:n}}function Cn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?zi(e.position):"start"in e||"end"in e?zi(e):"line"in e||"column"in e?Ea(e):""}function Ea(e){return ji(e&&e.line)+":"+ji(e&&e.column)}function zi(e){return Ea(e&&e.start)+"-"+Ea(e&&e.end)}function ji(e){return e&&typeof e=="number"?e:1}class Re extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?i.ruleId=r:(i.source=r.slice(0,c),i.ruleId=r.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=o?o.line:void 0,this.name=Cn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Re.prototype.file="";Re.prototype.name="";Re.prototype.reason="";Re.prototype.message="";Re.prototype.stack="";Re.prototype.column=void 0;Re.prototype.line=void 0;Re.prototype.ancestors=void 0;Re.prototype.cause=void 0;Re.prototype.fatal=void 0;Re.prototype.place=void 0;Re.prototype.ruleId=void 0;Re.prototype.source=void 0;const Ga={}.hasOwnProperty,kd=new Map,Od=/[A-Z]/g,Rd=/-([a-z])/g,Dd=new Set(["table","tbody","thead","tfoot","tr"]),Pd=new Set(["td","th"]),ju="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Md(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Gd(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=$d(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?It:zn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=$u(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function $u(e,t,n){if(t.type==="element")return Bd(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Fd(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Ud(e,t,n);if(t.type==="mdxjsEsm")return Hd(e,t);if(t.type==="root")return zd(e,t,n);if(t.type==="text")return jd(e,t)}function Bd(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=It,e.schema=a),e.ancestors.push(t);const i=Yu(e,t.tagName,!1),s=Yd(e,t);let o=Va(e,t);return Dd.has(t.tagName)&&(o=o.filter(function(c){return typeof c=="string"?!gd(c):!0})),Gu(e,s,i,t),Ya(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function Fd(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return A(r.type==="ExpressionStatement"),e.evaluater.evaluateExpression(r.expression)}Rn(e,t.position)}function Hd(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Rn(e,t.position)}function Ud(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=It,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Yu(e,t.name,!0),s=Vd(e,t),o=Va(e,t);return Gu(e,s,i,t),Ya(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function zd(e,t,n){const r={};return Ya(r,Va(e,t)),e.create(t,e.Fragment,r,n)}function jd(e,t){return t.value}function Gu(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ya(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function $d(e,t,n){return r;function r(a,i,s,o){const l=Array.isArray(s.children)?n:t;return o?l(i,s,o):l(i,s)}}function Gd(e,t){return n;function n(r,a,i,s){const o=Array.isArray(i.children),c=pt(r);return t(a,i,s,o,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Yd(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Ga.call(t.properties,a)){const i=qd(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Pd.has(t.tagName)?r=o:n[s]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Vd(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];A(i.type==="ExpressionStatement");const s=i.expression;A(s.type==="ObjectExpression");const o=s.properties[0];A(o.type==="SpreadElement"),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Rn(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];A(o.type==="ExpressionStatement"),i=e.evaluater.evaluateExpression(o.expression)}else Rn(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Va(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:kd;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const c=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(c){const l=a.get(c)||0;s=c+"-"+l,a.set(c,l+1)}}const o=$u(e,i,s);o!==void 0&&n.push(o)}return n}function qd(e,t,n){const r=Tr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ku(n):Uu(n)),r.property==="style"){let a=typeof n=="object"?n:Wd(e,String(n));return e.stylePropertyNameCase==="css"&&(a=Xd(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?_d[r.property]||r.property:r.attribute,n]}}function Wd(e,t){const n={};try{vd(t,r)}catch(a){if(!e.ignoreInvalidStyle){const i=a,s=new Re("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=ju+"#cannot-parse-style-attribute",s}}return n;function r(a,i){let s=a;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(Rd,Kd)),n[s]=i}}function Yu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const o=Ri(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}A(s,"always a result"),r=s}else r=Ri(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Ga.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Rn(e)}function Rn(e,t){const n=new Re("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ju+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Xd(e){const t={};let n;for(n in e)Ga.call(e,n)&&(t[Qd(n)]=e[n]);return t}function Qd(e){let t=e.replace(Od,Zd);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Kd(e,t){return t.toUpperCase()}function Zd(e){return"-"+e.toLowerCase()}const zr={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"]},Jd={};function e0(e,t){const n=Jd,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Vu(e,r,a)}function Vu(e,t,n){if(t0(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return $i(e.children,t,n)}return Array.isArray(e)?$i(e,t,n):""}function $i(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Vu(e[a],t,n);return r.join("")}function t0(e){return!!(e&&typeof e=="object")}const Gi=document.createElement("i");function qa(e){const t="&"+e+";";Gi.innerHTML=t;const n=Gi.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const g={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,ht:9,lf:10,vt:11,cr:13,space:32,exclamationMark:33,quotationMark:34,numberSign:35,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseX:88,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseX:120,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},G={atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},p={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"},ct={ht:" ",lf:`
|
|
42
|
-
`,cr:"\r",space:" ",replacementCharacter:"�"};function mt(e,t,n,r){const a=e.length;let i=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<G.v8MaxSafeChunkSize)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+G.v8MaxSafeChunkSize),s.unshift(t,0),e.splice(...s),i+=G.v8MaxSafeChunkSize,t+=G.v8MaxSafeChunkSize}function Qe(e,t){return e.length>0?(mt(e,e.length,0,t),e):t}const Yi={}.hasOwnProperty;function n0(e){const t={};let n=-1;for(;++n<e.length;)r0(t,e[n]);return t}function r0(e,t){let n;for(n in t){const a=(Yi.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){Yi.call(a,s)||(a[s]=[]);const o=i[s];a0(a[s],Array.isArray(o)?o:o?[o]:[])}}}function a0(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);mt(e,0,0,r)}function qu(e,t){const n=Number.parseInt(e,t);return n<g.ht||n===g.vt||n>g.cr&&n<g.space||n>g.tilde&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?ct.replacementCharacter:String.fromCodePoint(n)}function tn(e){return e.replace(/[\t\n\r ]+/g,ct.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ft=Nt(/[A-Za-z]/),We=Nt(/[\dA-Za-z]/),i0=Nt(/[#-'*+\--9=?A-Z^-~]/);function Ta(e){return e!==null&&(e<g.space||e===g.del)}const xa=Nt(/\d/),s0=Nt(/[\dA-Fa-f]/),u0=Nt(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<g.horizontalTab}function $e(e){return e!==null&&(e<g.nul||e===g.space)}function ue(e){return e===g.horizontalTab||e===g.virtualSpace||e===g.space}const o0=Nt(new RegExp("\\p{P}|\\p{S}","u")),c0=Nt(/\s/);function Nt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function cn(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===g.percentSign&&We(e.charCodeAt(n+1))&&We(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),a=1):s=ct.replacementCharacter}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Ee(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(c){return ue(c)?(e.enter(n),o(c)):t(c)}function o(c){return ue(c)&&i++<a?(e.consume(c),o):(e.exit(n),t(c))}}const l0={tokenize:d0};function d0(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(A(o===g.eof||V(o),"expected eol or eof"),o===g.eof){e.consume(o);return}return e.enter(p.lineEnding),e.consume(o),e.exit(p.lineEnding),Ee(e,t,p.linePrefix)}function a(o){return A(o!==g.eof&&!V(o),"expected anything other than a line ending or EOF"),e.enter(p.paragraph),i(o)}function i(o){const c=e.enter(p.chunkText,{contentType:G.contentTypeText,previous:n});return n&&(n.next=c),n=c,s(o)}function s(o){if(o===g.eof){e.exit(p.chunkText),e.exit(p.paragraph),e.consume(o);return}return V(o)?(e.consume(o),e.exit(p.chunkText),i):(e.consume(o),s)}}const f0={tokenize:h0},Vi={tokenize:m0};function h0(e){const t=this,n=[];let r=0,a,i,s;return o;function o(D){if(r<n.length){const $=n[r];return t.containerState=$[1],A($[0].continuation,"expected `continuation` to be defined on container construct"),e.attempt($[0].continuation,c,l)(D)}return l(D)}function c(D){if(A(t.containerState,"expected `containerState` to be defined after continuation"),r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&M();const $=t.events.length;let I=$,R;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type===p.chunkFlow){R=t.events[I][1].end;break}A(R,"could not find previous flow chunk"),N(r);let Q=$;for(;Q<t.events.length;)t.events[Q][1].end=Object.assign({},R),Q++;return mt(t.events,I+1,0,t.events.slice($)),t.events.length=Q,l(D)}return o(D)}function l(D){if(r===n.length){if(!a)return h(D);if(a.currentConstruct&&a.currentConstruct.concrete)return S(D);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Vi,d,f)(D)}function d(D){return a&&M(),N(r),h(D)}function f(D){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,S(D)}function h(D){return t.containerState={},e.attempt(Vi,m,S)(D)}function m(D){return A(t.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),A(t.containerState,"expected `containerState` to be defined on tokenizer"),r++,n.push([t.currentConstruct,t.containerState]),h(D)}function S(D){if(D===g.eof){a&&M(),N(0),e.consume(D);return}return a=a||t.parser.flow(t.now()),e.enter(p.chunkFlow,{contentType:G.contentTypeFlow,previous:i,_tokenizer:a}),C(D)}function C(D){if(D===g.eof){P(e.exit(p.chunkFlow),!0),N(0),e.consume(D);return}return V(D)?(e.consume(D),P(e.exit(p.chunkFlow)),r=0,t.interrupt=void 0,o):(e.consume(D),C)}function P(D,$){A(a,"expected `childFlow` to be defined when continuing");const I=t.sliceStream(D);if($&&I.push(null),D.previous=i,i&&(i.next=D),i=D,a.defineSkip(D.start),a.write(I),t.parser.lazy[D.start.line]){let R=a.events.length;for(;R--;)if(a.events[R][1].start.offset<s&&(!a.events[R][1].end||a.events[R][1].end.offset>s))return;const Q=t.events.length;let ae=Q,K,Y;for(;ae--;)if(t.events[ae][0]==="exit"&&t.events[ae][1].type===p.chunkFlow){if(K){Y=t.events[ae][1].end;break}K=!0}for(A(Y,"could not find previous flow chunk"),N(r),R=Q;R<t.events.length;)t.events[R][1].end=Object.assign({},Y),R++;mt(t.events,ae+1,0,t.events.slice(Q)),t.events.length=R}}function N(D){let $=n.length;for(;$-- >D;){const I=n[$];t.containerState=I[1],A(I[0].exit,"expected `exit` to be defined on container construct"),I[0].exit.call(t,e)}n.length=D}function M(){A(t.containerState,"expected `containerState` to be defined when closing flow"),A(a,"expected `childFlow` to be defined when closing it"),a.write([g.eof]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function m0(e,t,n){return A(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),Ee(e,e.attempt(this.parser.constructs.document,t,n),p.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:G.tabSize)}function qi(e){if(e===g.eof||$e(e)||c0(e))return G.characterGroupWhitespace;if(o0(e))return G.characterGroupPunctuation}function Wa(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const ya={name:"attention",tokenize:g0,resolveAll:p0};function p0(e,t){let n=-1,r,a,i,s,o,c,l,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);Wi(f,-c),Wi(h,c),s={type:c>1?p.strongSequence:p.emphasisSequence,start:f,end:Object.assign({},e[r][1].end)},o={type:c>1?p.strongSequence:p.emphasisSequence,start:Object.assign({},e[n][1].start),end:h},i={type:c>1?p.strongText:p.emphasisText,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:c>1?p.strong:p.emphasis,start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Qe(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Qe(l,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),A(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),l=Qe(l,Wa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Qe(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,l=Qe(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,mt(e,r-1,n-r+3,l),n=r+l.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function g0(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=qi(r);let i;return s;function s(c){return A(c===g.asterisk||c===g.underscore,"expected asterisk or underscore"),i=c,e.enter("attentionSequence"),o(c)}function o(c){if(c===i)return e.consume(c),o;const l=e.exit("attentionSequence"),d=qi(c);A(n,"expected `attentionMarkers` to be populated");const f=!d||d===G.characterGroupPunctuation&&a||n.includes(c),h=!a||a===G.characterGroupPunctuation&&d||n.includes(r);return l._open=!!(i===g.asterisk?f:f&&(a||!h)),l._close=!!(i===g.asterisk?h:h&&(d||!f)),t(c)}}function Wi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const b0={name:"autolink",tokenize:E0};function E0(e,t,n){let r=0;return a;function a(m){return A(m===g.lessThan,"expected `<`"),e.enter(p.autolink),e.enter(p.autolinkMarker),e.consume(m),e.exit(p.autolinkMarker),e.enter(p.autolinkProtocol),i}function i(m){return ft(m)?(e.consume(m),s):l(m)}function s(m){return m===g.plusSign||m===g.dash||m===g.dot||We(m)?(r=1,o(m)):l(m)}function o(m){return m===g.colon?(e.consume(m),r=0,c):(m===g.plusSign||m===g.dash||m===g.dot||We(m))&&r++<G.autolinkSchemeSizeMax?(e.consume(m),o):(r=0,l(m))}function c(m){return m===g.greaterThan?(e.exit(p.autolinkProtocol),e.enter(p.autolinkMarker),e.consume(m),e.exit(p.autolinkMarker),e.exit(p.autolink),t):m===g.eof||m===g.space||m===g.lessThan||Ta(m)?n(m):(e.consume(m),c)}function l(m){return m===g.atSign?(e.consume(m),d):i0(m)?(e.consume(m),l):n(m)}function d(m){return We(m)?f(m):n(m)}function f(m){return m===g.dot?(e.consume(m),r=0,d):m===g.greaterThan?(e.exit(p.autolinkProtocol).type=p.autolinkEmail,e.enter(p.autolinkMarker),e.consume(m),e.exit(p.autolinkMarker),e.exit(p.autolink),t):h(m)}function h(m){if((m===g.dash||We(m))&&r++<G.autolinkDomainSizeMax){const S=m===g.dash?h:f;return e.consume(m),S}return n(m)}}const yr={tokenize:T0,partial:!0};function T0(e,t,n){return r;function r(i){return ue(i)?Ee(e,a,p.linePrefix)(i):a(i)}function a(i){return i===g.eof||V(i)?t(i):n(i)}}const Wu={name:"blockQuote",tokenize:x0,continuation:{tokenize:y0},exit:A0};function x0(e,t,n){const r=this;return a;function a(s){if(s===g.greaterThan){const o=r.containerState;return A(o,"expected `containerState` to be defined in container"),o.open||(e.enter(p.blockQuote,{_container:!0}),o.open=!0),e.enter(p.blockQuotePrefix),e.enter(p.blockQuoteMarker),e.consume(s),e.exit(p.blockQuoteMarker),i}return n(s)}function i(s){return ue(s)?(e.enter(p.blockQuotePrefixWhitespace),e.consume(s),e.exit(p.blockQuotePrefixWhitespace),e.exit(p.blockQuotePrefix),t):(e.exit(p.blockQuotePrefix),t(s))}}function y0(e,t,n){const r=this;return a;function a(s){return ue(s)?(A(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),Ee(e,i,p.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:G.tabSize)(s)):i(s)}function i(s){return e.attempt(Wu,t,n)(s)}}function A0(e){e.exit(p.blockQuote)}const Xu={name:"characterEscape",tokenize:S0};function S0(e,t,n){return r;function r(i){return A(i===g.backslash,"expected `\\`"),e.enter(p.characterEscape),e.enter(p.escapeMarker),e.consume(i),e.exit(p.escapeMarker),a}function a(i){return u0(i)?(e.enter(p.characterEscapeValue),e.consume(i),e.exit(p.characterEscapeValue),e.exit(p.characterEscape),t):n(i)}}const Qu={name:"characterReference",tokenize:C0};function C0(e,t,n){const r=this;let a=0,i,s;return o;function o(f){return A(f===g.ampersand,"expected `&`"),e.enter(p.characterReference),e.enter(p.characterReferenceMarker),e.consume(f),e.exit(p.characterReferenceMarker),c}function c(f){return f===g.numberSign?(e.enter(p.characterReferenceMarkerNumeric),e.consume(f),e.exit(p.characterReferenceMarkerNumeric),l):(e.enter(p.characterReferenceValue),i=G.characterReferenceNamedSizeMax,s=We,d(f))}function l(f){return f===g.uppercaseX||f===g.lowercaseX?(e.enter(p.characterReferenceMarkerHexadecimal),e.consume(f),e.exit(p.characterReferenceMarkerHexadecimal),e.enter(p.characterReferenceValue),i=G.characterReferenceHexadecimalSizeMax,s=s0,d):(e.enter(p.characterReferenceValue),i=G.characterReferenceDecimalSizeMax,s=xa,d(f))}function d(f){if(f===g.semicolon&&a){const h=e.exit(p.characterReferenceValue);return s===We&&!qa(r.sliceSerialize(h))?n(f):(e.enter(p.characterReferenceMarker),e.consume(f),e.exit(p.characterReferenceMarker),e.exit(p.characterReference),t)}return s(f)&&a++<i?(e.consume(f),d):n(f)}}const Xi={tokenize:I0,partial:!0},Qi={name:"codeFenced",tokenize:_0,concrete:!0};function _0(e,t,n){const r=this,a={tokenize:I,partial:!0};let i=0,s=0,o;return c;function c(R){return l(R)}function l(R){A(R===g.graveAccent||R===g.tilde,"expected `` ` `` or `~`");const Q=r.events[r.events.length-1];return i=Q&&Q[1].type===p.linePrefix?Q[2].sliceSerialize(Q[1],!0).length:0,o=R,e.enter(p.codeFenced),e.enter(p.codeFencedFence),e.enter(p.codeFencedFenceSequence),d(R)}function d(R){return R===o?(s++,e.consume(R),d):s<G.codeFencedSequenceSizeMin?n(R):(e.exit(p.codeFencedFenceSequence),ue(R)?Ee(e,f,p.whitespace)(R):f(R))}function f(R){return R===g.eof||V(R)?(e.exit(p.codeFencedFence),r.interrupt?t(R):e.check(Xi,C,$)(R)):(e.enter(p.codeFencedFenceInfo),e.enter(p.chunkString,{contentType:G.contentTypeString}),h(R))}function h(R){return R===g.eof||V(R)?(e.exit(p.chunkString),e.exit(p.codeFencedFenceInfo),f(R)):ue(R)?(e.exit(p.chunkString),e.exit(p.codeFencedFenceInfo),Ee(e,m,p.whitespace)(R)):R===g.graveAccent&&R===o?n(R):(e.consume(R),h)}function m(R){return R===g.eof||V(R)?f(R):(e.enter(p.codeFencedFenceMeta),e.enter(p.chunkString,{contentType:G.contentTypeString}),S(R))}function S(R){return R===g.eof||V(R)?(e.exit(p.chunkString),e.exit(p.codeFencedFenceMeta),f(R)):R===g.graveAccent&&R===o?n(R):(e.consume(R),S)}function C(R){return A(V(R),"expected eol"),e.attempt(a,$,P)(R)}function P(R){return A(V(R),"expected eol"),e.enter(p.lineEnding),e.consume(R),e.exit(p.lineEnding),N}function N(R){return i>0&&ue(R)?Ee(e,M,p.linePrefix,i+1)(R):M(R)}function M(R){return R===g.eof||V(R)?e.check(Xi,C,$)(R):(e.enter(p.codeFlowValue),D(R))}function D(R){return R===g.eof||V(R)?(e.exit(p.codeFlowValue),M(R)):(e.consume(R),D)}function $(R){return e.exit(p.codeFenced),t(R)}function I(R,Q,ae){let K=0;return Y;function Y(W){return A(V(W),"expected eol"),R.enter(p.lineEnding),R.consume(W),R.exit(p.lineEnding),oe}function oe(W){return A(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),R.enter(p.codeFencedFence),ue(W)?Ee(R,X,p.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:G.tabSize)(W):X(W)}function X(W){return W===o?(R.enter(p.codeFencedFenceSequence),B(W)):ae(W)}function B(W){return W===o?(K++,R.consume(W),B):K>=s?(R.exit(p.codeFencedFenceSequence),ue(W)?Ee(R,z,p.whitespace)(W):z(W)):ae(W)}function z(W){return W===g.eof||V(W)?(R.exit(p.codeFencedFence),Q(W)):ae(W)}}}function I0(e,t,n){const r=this;return a;function a(s){return s===g.eof?n(s):(A(V(s),"expected eol"),e.enter(p.lineEnding),e.consume(s),e.exit(p.lineEnding),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const jr={name:"codeIndented",tokenize:w0},N0={tokenize:v0,partial:!0};function w0(e,t,n){const r=this;return a;function a(l){return A(ue(l)),e.enter(p.codeIndented),Ee(e,i,p.linePrefix,G.tabSize+1)(l)}function i(l){const d=r.events[r.events.length-1];return d&&d[1].type===p.linePrefix&&d[2].sliceSerialize(d[1],!0).length>=G.tabSize?s(l):n(l)}function s(l){return l===g.eof?c(l):V(l)?e.attempt(N0,s,c)(l):(e.enter(p.codeFlowValue),o(l))}function o(l){return l===g.eof||V(l)?(e.exit(p.codeFlowValue),s(l)):(e.consume(l),o)}function c(l){return e.exit(p.codeIndented),t(l)}}function v0(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):V(s)?(e.enter(p.lineEnding),e.consume(s),e.exit(p.lineEnding),a):Ee(e,i,p.linePrefix,G.tabSize+1)(s)}function i(s){const o=r.events[r.events.length-1];return o&&o[1].type===p.linePrefix&&o[2].sliceSerialize(o[1],!0).length>=G.tabSize?t(s):V(s)?a(s):n(s)}}const L0={name:"codeText",tokenize:O0,resolve:k0,previous:Ku};function k0(e){let t=e.length-4,n=3,r,a;if((e[n][1].type===p.lineEnding||e[n][1].type==="space")&&(e[t][1].type===p.lineEnding||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type===p.codeTextData){e[n][1].type=p.codeTextPadding,e[t][1].type=p.codeTextPadding,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!==p.lineEnding&&(a=r):(r===t||e[r][1].type===p.lineEnding)&&(e[a][1].type=p.codeTextData,r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Ku(e){return e!==g.graveAccent||this.events[this.events.length-1][1].type===p.characterEscape}function O0(e,t,n){const r=this;let a=0,i,s;return o;function o(h){return A(h===g.graveAccent,"expected `` ` ``"),A(Ku.call(r,r.previous),"expected correct previous"),e.enter(p.codeText),e.enter(p.codeTextSequence),c(h)}function c(h){return h===g.graveAccent?(e.consume(h),a++,c):(e.exit(p.codeTextSequence),l(h))}function l(h){return h===g.eof?n(h):h===g.space?(e.enter("space"),e.consume(h),e.exit("space"),l):h===g.graveAccent?(s=e.enter(p.codeTextSequence),i=0,f(h)):V(h)?(e.enter(p.lineEnding),e.consume(h),e.exit(p.lineEnding),l):(e.enter(p.codeTextData),d(h))}function d(h){return h===g.eof||h===g.space||h===g.graveAccent||V(h)?(e.exit(p.codeTextData),l(h)):(e.consume(h),d)}function f(h){return h===g.graveAccent?(e.consume(h),i++,f):i===a?(e.exit(p.codeTextSequence),e.exit(p.codeText),t(h)):(s.type=p.codeTextData,d(h))}}function Zu(e){const t={};let n=-1,r,a,i,s,o,c,l;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type===p.chunkFlow&&e[n-1][1].type===p.listItemPrefix&&(A(r[1]._tokenizer,"expected `_tokenizer` on subtokens"),c=r[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type===p.lineEndingBlank&&(i+=2),i<c.length&&c[i][1].type===p.content))for(;++i<c.length&&c[i][1].type!==p.content;)c[i][1].type===p.chunkText&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,R0(e,n)),n=t[n],l=!0);else if(r[1]._container){for(i=n,a=void 0;i--&&(s=e[i],s[1].type===p.lineEnding||s[1].type===p.lineEndingBlank);)s[0]==="enter"&&(a&&(e[a][1].type=p.lineEndingBlank),s[1].type=p.lineEnding,a=i);a&&(r[1].end=Object.assign({},e[a][1].start),o=e.slice(a,n),o.unshift(r),mt(e,a,n-a+1,o))}}return!l}function R0(e,t){const n=e[t][1],r=e[t][2];let a=t-1;const i=[];A(n.contentType,"expected `contentType` on subtokens");const s=n._tokenizer||r.parser[n.contentType](n.start),o=s.events,c=[],l={};let d,f,h=-1,m=n,S=0,C=0;const P=[C];for(;m;){for(;e[++a][1]!==m;);A(!f||m.previous===f,"expected previous to match"),A(!f||f.next===m,"expected next to match"),i.push(a),m._tokenizer||(d=r.sliceStream(m),m.next||d.push(g.eof),f&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=m,m=m.next}for(m=n;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(A(m,"expected a current token"),C=h+1,P.push(C),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0,A(!m.next,"expected no next token")):P.pop(),h=P.length;h--;){const N=o.slice(P[h],P[h+1]),M=i.pop();A(M!==void 0,"expected a start position when splicing"),c.unshift([M,M+N.length-1]),mt(e,M,2,N)}for(h=-1;++h<c.length;)l[S+c[h][0]]=S+c[h][1],S+=c[h][1]-c[h][0]-1;return l}const D0={tokenize:B0,resolve:M0},P0={tokenize:F0,partial:!0};function M0(e){return Zu(e),e}function B0(e,t){let n;return r;function r(o){return A(o!==g.eof&&!V(o),"expected no eof or eol"),e.enter(p.content),n=e.enter(p.chunkContent,{contentType:G.contentTypeContent}),a(o)}function a(o){return o===g.eof?i(o):V(o)?e.check(P0,s,i)(o):(e.consume(o),a)}function i(o){return e.exit(p.chunkContent),e.exit(p.content),t(o)}function s(o){return A(V(o),"expected eol"),e.consume(o),e.exit(p.chunkContent),A(n,"expected previous token"),n.next=e.enter(p.chunkContent,{contentType:G.contentTypeContent,previous:n}),n=n.next,a}}function F0(e,t,n){const r=this;return a;function a(s){return A(V(s),"expected a line ending"),e.exit(p.chunkContent),e.enter(p.lineEnding),e.consume(s),e.exit(p.lineEnding),Ee(e,i,p.linePrefix)}function i(s){if(s===g.eof||V(s))return n(s);A(r.parser.constructs.disable.null,"expected `disable.null` to be populated");const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type===p.linePrefix&&o[2].sliceSerialize(o[1],!0).length>=G.tabSize?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Ju(e,t,n,r,a,i,s,o,c){const l=c||Number.POSITIVE_INFINITY;let d=0;return f;function f(N){return N===g.lessThan?(e.enter(r),e.enter(a),e.enter(i),e.consume(N),e.exit(i),h):N===g.eof||N===g.space||N===g.rightParenthesis||Ta(N)?n(N):(e.enter(r),e.enter(s),e.enter(o),e.enter(p.chunkString,{contentType:G.contentTypeString}),C(N))}function h(N){return N===g.greaterThan?(e.enter(i),e.consume(N),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter(p.chunkString,{contentType:G.contentTypeString}),m(N))}function m(N){return N===g.greaterThan?(e.exit(p.chunkString),e.exit(o),h(N)):N===g.eof||N===g.lessThan||V(N)?n(N):(e.consume(N),N===g.backslash?S:m)}function S(N){return N===g.lessThan||N===g.greaterThan||N===g.backslash?(e.consume(N),m):m(N)}function C(N){return!d&&(N===g.eof||N===g.rightParenthesis||$e(N))?(e.exit(p.chunkString),e.exit(o),e.exit(s),e.exit(r),t(N)):d<l&&N===g.leftParenthesis?(e.consume(N),d++,C):N===g.rightParenthesis?(e.consume(N),d--,C):N===g.eof||N===g.space||N===g.leftParenthesis||Ta(N)?n(N):(e.consume(N),N===g.backslash?P:C)}function P(N){return N===g.leftParenthesis||N===g.rightParenthesis||N===g.backslash?(e.consume(N),C):C(N)}}function eo(e,t,n,r,a,i){const s=this;let o=0,c;return l;function l(m){return A(m===g.leftSquareBracket,"expected `[`"),e.enter(r),e.enter(a),e.consume(m),e.exit(a),e.enter(i),d}function d(m){return o>G.linkReferenceSizeMax||m===g.eof||m===g.leftSquareBracket||m===g.rightSquareBracket&&!c||m===g.caret&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===g.rightSquareBracket?(e.exit(i),e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):V(m)?(e.enter(p.lineEnding),e.consume(m),e.exit(p.lineEnding),d):(e.enter(p.chunkString,{contentType:G.contentTypeString}),f(m))}function f(m){return m===g.eof||m===g.leftSquareBracket||m===g.rightSquareBracket||V(m)||o++>G.linkReferenceSizeMax?(e.exit(p.chunkString),d(m)):(e.consume(m),c||(c=!ue(m)),m===g.backslash?h:f)}function h(m){return m===g.leftSquareBracket||m===g.backslash||m===g.rightSquareBracket?(e.consume(m),o++,f):f(m)}}function to(e,t,n,r,a,i){let s;return o;function o(h){return h===g.quotationMark||h===g.apostrophe||h===g.leftParenthesis?(e.enter(r),e.enter(a),e.consume(h),e.exit(a),s=h===g.leftParenthesis?g.rightParenthesis:h,c):n(h)}function c(h){return h===s?(e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):(e.enter(i),l(h))}function l(h){return h===s?(e.exit(i),c(s)):h===g.eof?n(h):V(h)?(e.enter(p.lineEnding),e.consume(h),e.exit(p.lineEnding),Ee(e,l,p.linePrefix)):(e.enter(p.chunkString,{contentType:G.contentTypeString}),d(h))}function d(h){return h===s||h===g.eof||V(h)?(e.exit(p.chunkString),l(h)):(e.consume(h),h===g.backslash?f:d)}function f(h){return h===s||h===g.backslash?(e.consume(h),d):d(h)}}function _n(e,t){let n;return r;function r(a){return V(a)?(e.enter(p.lineEnding),e.consume(a),e.exit(p.lineEnding),n=!0,r):ue(a)?Ee(e,r,n?p.linePrefix:p.lineSuffix)(a):t(a)}}const H0={name:"definition",tokenize:z0},U0={tokenize:j0,partial:!0};function z0(e,t,n){const r=this;let a;return i;function i(m){return e.enter(p.definition),s(m)}function s(m){return A(m===g.leftSquareBracket,"expected `[`"),eo.call(r,e,o,n,p.definitionLabel,p.definitionLabelMarker,p.definitionLabelString)(m)}function o(m){return a=tn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===g.colon?(e.enter(p.definitionMarker),e.consume(m),e.exit(p.definitionMarker),c):n(m)}function c(m){return $e(m)?_n(e,l)(m):l(m)}function l(m){return Ju(e,d,n,p.definitionDestination,p.definitionDestinationLiteral,p.definitionDestinationLiteralMarker,p.definitionDestinationRaw,p.definitionDestinationString)(m)}function d(m){return e.attempt(U0,f,f)(m)}function f(m){return ue(m)?Ee(e,h,p.whitespace)(m):h(m)}function h(m){return m===g.eof||V(m)?(e.exit(p.definition),r.parser.defined.push(a),t(m)):n(m)}}function j0(e,t,n){return r;function r(o){return $e(o)?_n(e,a)(o):n(o)}function a(o){return to(e,i,n,p.definitionTitle,p.definitionTitleMarker,p.definitionTitleString)(o)}function i(o){return ue(o)?Ee(e,s,p.whitespace)(o):s(o)}function s(o){return o===g.eof||V(o)?t(o):n(o)}}const $0={name:"hardBreakEscape",tokenize:G0};function G0(e,t,n){return r;function r(i){return A(i===g.backslash,"expected `\\`"),e.enter(p.hardBreakEscape),e.consume(i),a}function a(i){return V(i)?(e.exit(p.hardBreakEscape),t(i)):n(i)}}const Y0={name:"headingAtx",tokenize:q0,resolve:V0};function V0(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type===p.whitespace&&(r+=2),n-2>r&&e[n][1].type===p.whitespace&&(n-=2),e[n][1].type===p.atxHeadingSequence&&(r===n-1||n-4>r&&e[n-2][1].type===p.whitespace)&&(n-=r+1===n?2:4),n>r&&(a={type:p.atxHeadingText,start:e[r][1].start,end:e[n][1].end},i={type:p.chunkText,start:e[r][1].start,end:e[n][1].end,contentType:G.contentTypeText},mt(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function q0(e,t,n){let r=0;return a;function a(d){return e.enter(p.atxHeading),i(d)}function i(d){return A(d===g.numberSign,"expected `#`"),e.enter(p.atxHeadingSequence),s(d)}function s(d){return d===g.numberSign&&r++<G.atxHeadingOpeningFenceSizeMax?(e.consume(d),s):d===g.eof||$e(d)?(e.exit(p.atxHeadingSequence),o(d)):n(d)}function o(d){return d===g.numberSign?(e.enter(p.atxHeadingSequence),c(d)):d===g.eof||V(d)?(e.exit(p.atxHeading),t(d)):ue(d)?Ee(e,o,p.whitespace)(d):(e.enter(p.atxHeadingText),l(d))}function c(d){return d===g.numberSign?(e.consume(d),c):(e.exit(p.atxHeadingSequence),o(d))}function l(d){return d===g.eof||d===g.numberSign||$e(d)?(e.exit(p.atxHeadingText),o(d)):(e.consume(d),l)}}const W0=["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"],Ki=["pre","script","style","textarea"],X0={name:"htmlFlow",tokenize:J0,resolveTo:Z0,concrete:!0},Q0={tokenize:tf,partial:!0},K0={tokenize:ef,partial:!0};function Z0(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type===p.htmlFlow););return t>1&&e[t-2][1].type===p.linePrefix&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function J0(e,t,n){const r=this;let a,i,s,o,c;return l;function l(y){return d(y)}function d(y){return A(y===g.lessThan,"expected `<`"),e.enter(p.htmlFlow),e.enter(p.htmlFlowData),e.consume(y),f}function f(y){return y===g.exclamationMark?(e.consume(y),h):y===g.slash?(e.consume(y),i=!0,C):y===g.questionMark?(e.consume(y),a=G.htmlInstruction,r.interrupt?t:x):ft(y)?(e.consume(y),s=String.fromCharCode(y),P):n(y)}function h(y){return y===g.dash?(e.consume(y),a=G.htmlComment,m):y===g.leftSquareBracket?(e.consume(y),a=G.htmlCdata,o=0,S):ft(y)?(e.consume(y),a=G.htmlDeclaration,r.interrupt?t:x):n(y)}function m(y){return y===g.dash?(e.consume(y),r.interrupt?t:x):n(y)}function S(y){const _e=G.cdataOpeningString;return y===_e.charCodeAt(o++)?(e.consume(y),o===_e.length?r.interrupt?t:X:S):n(y)}function C(y){return ft(y)?(e.consume(y),s=String.fromCharCode(y),P):n(y)}function P(y){if(y===g.eof||y===g.slash||y===g.greaterThan||$e(y)){const _e=y===g.slash,Ae=s.toLowerCase();return!_e&&!i&&Ki.includes(Ae)?(a=G.htmlRaw,r.interrupt?t(y):X(y)):W0.includes(s.toLowerCase())?(a=G.htmlBasic,_e?(e.consume(y),N):r.interrupt?t(y):X(y)):(a=G.htmlComplete,r.interrupt&&!r.parser.lazy[r.now().line]?n(y):i?M(y):D(y))}return y===g.dash||We(y)?(e.consume(y),s+=String.fromCharCode(y),P):n(y)}function N(y){return y===g.greaterThan?(e.consume(y),r.interrupt?t:X):n(y)}function M(y){return ue(y)?(e.consume(y),M):Y(y)}function D(y){return y===g.slash?(e.consume(y),Y):y===g.colon||y===g.underscore||ft(y)?(e.consume(y),$):ue(y)?(e.consume(y),D):Y(y)}function $(y){return y===g.dash||y===g.dot||y===g.colon||y===g.underscore||We(y)?(e.consume(y),$):I(y)}function I(y){return y===g.equalsTo?(e.consume(y),R):ue(y)?(e.consume(y),I):D(y)}function R(y){return y===g.eof||y===g.lessThan||y===g.equalsTo||y===g.greaterThan||y===g.graveAccent?n(y):y===g.quotationMark||y===g.apostrophe?(e.consume(y),c=y,Q):ue(y)?(e.consume(y),R):ae(y)}function Q(y){return y===c?(e.consume(y),c=null,K):y===g.eof||V(y)?n(y):(e.consume(y),Q)}function ae(y){return y===g.eof||y===g.quotationMark||y===g.apostrophe||y===g.slash||y===g.lessThan||y===g.equalsTo||y===g.greaterThan||y===g.graveAccent||$e(y)?I(y):(e.consume(y),ae)}function K(y){return y===g.slash||y===g.greaterThan||ue(y)?D(y):n(y)}function Y(y){return y===g.greaterThan?(e.consume(y),oe):n(y)}function oe(y){return y===g.eof||V(y)?X(y):ue(y)?(e.consume(y),oe):n(y)}function X(y){return y===g.dash&&a===G.htmlComment?(e.consume(y),ce):y===g.lessThan&&a===G.htmlRaw?(e.consume(y),re):y===g.greaterThan&&a===G.htmlDeclaration?(e.consume(y),Ce):y===g.questionMark&&a===G.htmlInstruction?(e.consume(y),x):y===g.rightSquareBracket&&a===G.htmlCdata?(e.consume(y),we):V(y)&&(a===G.htmlBasic||a===G.htmlComplete)?(e.exit(p.htmlFlowData),e.check(Q0,le,B)(y)):y===g.eof||V(y)?(e.exit(p.htmlFlowData),B(y)):(e.consume(y),X)}function B(y){return e.check(K0,z,le)(y)}function z(y){return A(V(y)),e.enter(p.lineEnding),e.consume(y),e.exit(p.lineEnding),W}function W(y){return y===g.eof||V(y)?B(y):(e.enter(p.htmlFlowData),X(y))}function ce(y){return y===g.dash?(e.consume(y),x):X(y)}function re(y){return y===g.slash?(e.consume(y),s="",pe):X(y)}function pe(y){if(y===g.greaterThan){const _e=s.toLowerCase();return Ki.includes(_e)?(e.consume(y),Ce):X(y)}return ft(y)&&s.length<G.htmlRawSizeMax?(e.consume(y),s+=String.fromCharCode(y),pe):X(y)}function we(y){return y===g.rightSquareBracket?(e.consume(y),x):X(y)}function x(y){return y===g.greaterThan?(e.consume(y),Ce):y===g.dash&&a===G.htmlComment?(e.consume(y),x):X(y)}function Ce(y){return y===g.eof||V(y)?(e.exit(p.htmlFlowData),le(y)):(e.consume(y),Ce)}function le(y){return e.exit(p.htmlFlow),t(y)}}function ef(e,t,n){const r=this;return a;function a(s){return V(s)?(e.enter(p.lineEnding),e.consume(s),e.exit(p.lineEnding),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function tf(e,t,n){return r;function r(a){return A(V(a),"expected a line ending"),e.enter(p.lineEnding),e.consume(a),e.exit(p.lineEnding),e.attempt(yr,t,n)}}const nf={name:"htmlText",tokenize:rf};function rf(e,t,n){const r=this;let a,i,s;return o;function o(x){return A(x===g.lessThan,"expected `<`"),e.enter(p.htmlText),e.enter(p.htmlTextData),e.consume(x),c}function c(x){return x===g.exclamationMark?(e.consume(x),l):x===g.slash?(e.consume(x),I):x===g.questionMark?(e.consume(x),D):ft(x)?(e.consume(x),ae):n(x)}function l(x){return x===g.dash?(e.consume(x),d):x===g.leftSquareBracket?(e.consume(x),i=0,S):ft(x)?(e.consume(x),M):n(x)}function d(x){return x===g.dash?(e.consume(x),m):n(x)}function f(x){return x===g.eof?n(x):x===g.dash?(e.consume(x),h):V(x)?(s=f,re(x)):(e.consume(x),f)}function h(x){return x===g.dash?(e.consume(x),m):f(x)}function m(x){return x===g.greaterThan?ce(x):x===g.dash?h(x):f(x)}function S(x){const Ce=G.cdataOpeningString;return x===Ce.charCodeAt(i++)?(e.consume(x),i===Ce.length?C:S):n(x)}function C(x){return x===g.eof?n(x):x===g.rightSquareBracket?(e.consume(x),P):V(x)?(s=C,re(x)):(e.consume(x),C)}function P(x){return x===g.rightSquareBracket?(e.consume(x),N):C(x)}function N(x){return x===g.greaterThan?ce(x):x===g.rightSquareBracket?(e.consume(x),N):C(x)}function M(x){return x===g.eof||x===g.greaterThan?ce(x):V(x)?(s=M,re(x)):(e.consume(x),M)}function D(x){return x===g.eof?n(x):x===g.questionMark?(e.consume(x),$):V(x)?(s=D,re(x)):(e.consume(x),D)}function $(x){return x===g.greaterThan?ce(x):D(x)}function I(x){return ft(x)?(e.consume(x),R):n(x)}function R(x){return x===g.dash||We(x)?(e.consume(x),R):Q(x)}function Q(x){return V(x)?(s=Q,re(x)):ue(x)?(e.consume(x),Q):ce(x)}function ae(x){return x===g.dash||We(x)?(e.consume(x),ae):x===g.slash||x===g.greaterThan||$e(x)?K(x):n(x)}function K(x){return x===g.slash?(e.consume(x),ce):x===g.colon||x===g.underscore||ft(x)?(e.consume(x),Y):V(x)?(s=K,re(x)):ue(x)?(e.consume(x),K):ce(x)}function Y(x){return x===g.dash||x===g.dot||x===g.colon||x===g.underscore||We(x)?(e.consume(x),Y):oe(x)}function oe(x){return x===g.equalsTo?(e.consume(x),X):V(x)?(s=oe,re(x)):ue(x)?(e.consume(x),oe):K(x)}function X(x){return x===g.eof||x===g.lessThan||x===g.equalsTo||x===g.greaterThan||x===g.graveAccent?n(x):x===g.quotationMark||x===g.apostrophe?(e.consume(x),a=x,B):V(x)?(s=X,re(x)):ue(x)?(e.consume(x),X):(e.consume(x),z)}function B(x){return x===a?(e.consume(x),a=void 0,W):x===g.eof?n(x):V(x)?(s=B,re(x)):(e.consume(x),B)}function z(x){return x===g.eof||x===g.quotationMark||x===g.apostrophe||x===g.lessThan||x===g.equalsTo||x===g.graveAccent?n(x):x===g.slash||x===g.greaterThan||$e(x)?K(x):(e.consume(x),z)}function W(x){return x===g.slash||x===g.greaterThan||$e(x)?K(x):n(x)}function ce(x){return x===g.greaterThan?(e.consume(x),e.exit(p.htmlTextData),e.exit(p.htmlText),t):n(x)}function re(x){return A(s,"expected return state"),A(V(x),"expected eol"),e.exit(p.htmlTextData),e.enter(p.lineEnding),e.consume(x),e.exit(p.lineEnding),pe}function pe(x){return A(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),ue(x)?Ee(e,we,p.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:G.tabSize)(x):we(x)}function we(x){return e.enter(p.htmlTextData),s(x)}}const Xa={name:"labelEnd",tokenize:lf,resolveTo:cf,resolveAll:of},af={tokenize:df},sf={tokenize:ff},uf={tokenize:hf};function of(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type===p.labelImage||n.type===p.labelLink||n.type===p.labelEnd)&&(e.splice(t+1,n.type===p.labelImage?4:2),n.type=p.data,t++)}return e}function cf(e,t){let n=e.length,r=0,a,i,s,o;for(;n--;)if(a=e[n][1],i){if(a.type===p.link||a.type===p.labelLink&&a._inactive)break;e[n][0]==="enter"&&a.type===p.labelLink&&(a._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(a.type===p.labelImage||a.type===p.labelLink)&&!a._balanced&&(i=n,a.type!==p.labelLink)){r=2;break}}else a.type===p.labelEnd&&(s=n);A(i!==void 0,"`open` is supposed to be found"),A(s!==void 0,"`close` is supposed to be found");const c={type:e[i][1].type===p.labelLink?p.link:p.image,start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:p.label,start:Object.assign({},e[i][1].start),end:Object.assign({},e[s][1].end)},d={type:p.labelText,start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[s-2][1].start)};return o=[["enter",c,t],["enter",l,t]],o=Qe(o,e.slice(i+1,i+r+3)),o=Qe(o,[["enter",d,t]]),A(t.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),o=Qe(o,Wa(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=Qe(o,[["exit",d,t],e[s-2],e[s-1],["exit",l,t]]),o=Qe(o,e.slice(s+1)),o=Qe(o,[["exit",c,t]]),mt(e,i,e.length,o),e}function lf(e,t,n){const r=this;let a=r.events.length,i,s;for(;a--;)if((r.events[a][1].type===p.labelImage||r.events[a][1].type===p.labelLink)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return o;function o(h){return A(h===g.rightSquareBracket,"expected `]`"),i?i._inactive?f(h):(s=r.parser.defined.includes(tn(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter(p.labelEnd),e.enter(p.labelMarker),e.consume(h),e.exit(p.labelMarker),e.exit(p.labelEnd),c):n(h)}function c(h){return h===g.leftParenthesis?e.attempt(af,d,s?d:f)(h):h===g.leftSquareBracket?e.attempt(sf,d,s?l:f)(h):s?d(h):f(h)}function l(h){return e.attempt(uf,d,f)(h)}function d(h){return t(h)}function f(h){return i._balanced=!0,n(h)}}function df(e,t,n){return r;function r(f){return A(f===g.leftParenthesis,"expected left paren"),e.enter(p.resource),e.enter(p.resourceMarker),e.consume(f),e.exit(p.resourceMarker),a}function a(f){return $e(f)?_n(e,i)(f):i(f)}function i(f){return f===g.rightParenthesis?d(f):Ju(e,s,o,p.resourceDestination,p.resourceDestinationLiteral,p.resourceDestinationLiteralMarker,p.resourceDestinationRaw,p.resourceDestinationString,G.linkResourceDestinationBalanceMax)(f)}function s(f){return $e(f)?_n(e,c)(f):d(f)}function o(f){return n(f)}function c(f){return f===g.quotationMark||f===g.apostrophe||f===g.leftParenthesis?to(e,l,n,p.resourceTitle,p.resourceTitleMarker,p.resourceTitleString)(f):d(f)}function l(f){return $e(f)?_n(e,d)(f):d(f)}function d(f){return f===g.rightParenthesis?(e.enter(p.resourceMarker),e.consume(f),e.exit(p.resourceMarker),e.exit(p.resource),t):n(f)}}function ff(e,t,n){const r=this;return a;function a(o){return A(o===g.leftSquareBracket,"expected left bracket"),eo.call(r,e,i,s,p.reference,p.referenceMarker,p.referenceString)(o)}function i(o){return r.parser.defined.includes(tn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function hf(e,t,n){return r;function r(i){return A(i===g.leftSquareBracket,"expected left bracket"),e.enter(p.reference),e.enter(p.referenceMarker),e.consume(i),e.exit(p.referenceMarker),a}function a(i){return i===g.rightSquareBracket?(e.enter(p.referenceMarker),e.consume(i),e.exit(p.referenceMarker),e.exit(p.reference),t):n(i)}}const mf={name:"labelStartImage",tokenize:pf,resolveAll:Xa.resolveAll};function pf(e,t,n){const r=this;return a;function a(o){return A(o===g.exclamationMark,"expected `!`"),e.enter(p.labelImage),e.enter(p.labelImageMarker),e.consume(o),e.exit(p.labelImageMarker),i}function i(o){return o===g.leftSquareBracket?(e.enter(p.labelMarker),e.consume(o),e.exit(p.labelMarker),e.exit(p.labelImage),s):n(o)}function s(o){return o===g.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const gf={name:"labelStartLink",tokenize:bf,resolveAll:Xa.resolveAll};function bf(e,t,n){const r=this;return a;function a(s){return A(s===g.leftSquareBracket,"expected `[`"),e.enter(p.labelLink),e.enter(p.labelMarker),e.consume(s),e.exit(p.labelMarker),e.exit(p.labelLink),i}function i(s){return s===g.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const $r={name:"lineEnding",tokenize:Ef};function Ef(e,t){return n;function n(r){return A(V(r),"expected eol"),e.enter(p.lineEnding),e.consume(r),e.exit(p.lineEnding),Ee(e,t,p.linePrefix)}}const rr={name:"thematicBreak",tokenize:Tf};function Tf(e,t,n){let r=0,a;return i;function i(l){return e.enter(p.thematicBreak),s(l)}function s(l){return A(l===g.asterisk||l===g.dash||l===g.underscore,"expected `*`, `-`, or `_`"),a=l,o(l)}function o(l){return l===a?(e.enter(p.thematicBreakSequence),c(l)):r>=G.thematicBreakMarkerCountMin&&(l===g.eof||V(l))?(e.exit(p.thematicBreak),t(l)):n(l)}function c(l){return l===a?(e.consume(l),r++,c):(e.exit(p.thematicBreakSequence),ue(l)?Ee(e,o,p.whitespace)(l):o(l))}}const ze={name:"list",tokenize:Af,continuation:{tokenize:Sf},exit:_f},xf={tokenize:If,partial:!0},yf={tokenize:Cf,partial:!0};function Af(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type===p.linePrefix?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(m){A(r.containerState,"expected state");const S=r.containerState.type||(m===g.asterisk||m===g.plusSign||m===g.dash?p.listUnordered:p.listOrdered);if(S===p.listUnordered?!r.containerState.marker||m===r.containerState.marker:xa(m)){if(r.containerState.type||(r.containerState.type=S,e.enter(S,{_container:!0})),S===p.listUnordered)return e.enter(p.listItemPrefix),m===g.asterisk||m===g.dash?e.check(rr,n,l)(m):l(m);if(!r.interrupt||m===g.digit1)return e.enter(p.listItemPrefix),e.enter(p.listItemValue),c(m)}return n(m)}function c(m){return A(r.containerState,"expected state"),xa(m)&&++s<G.listItemValueSizeMax?(e.consume(m),c):(!r.interrupt||s<2)&&(r.containerState.marker?m===r.containerState.marker:m===g.rightParenthesis||m===g.dot)?(e.exit(p.listItemValue),l(m)):n(m)}function l(m){return A(r.containerState,"expected state"),A(m!==g.eof,"eof (`null`) is not a marker"),e.enter(p.listItemMarker),e.consume(m),e.exit(p.listItemMarker),r.containerState.marker=r.containerState.marker||m,e.check(yr,r.interrupt?n:d,e.attempt(xf,h,f))}function d(m){return A(r.containerState,"expected state"),r.containerState.initialBlankLine=!0,i++,h(m)}function f(m){return ue(m)?(e.enter(p.listItemPrefixWhitespace),e.consume(m),e.exit(p.listItemPrefixWhitespace),h):n(m)}function h(m){return A(r.containerState,"expected state"),r.containerState.size=i+r.sliceSerialize(e.exit(p.listItemPrefix),!0).length,t(m)}}function Sf(e,t,n){const r=this;return A(r.containerState,"expected state"),r.containerState._closeFlow=void 0,e.check(yr,a,i);function a(o){return A(r.containerState,"expected state"),A(typeof r.containerState.size=="number","expected size"),r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ee(e,t,p.listItemIndent,r.containerState.size+1)(o)}function i(o){return A(r.containerState,"expected state"),r.containerState.furtherBlankLines||!ue(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(yf,t,s)(o))}function s(o){return A(r.containerState,"expected state"),r.containerState._closeFlow=!0,r.interrupt=void 0,A(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),Ee(e,e.attempt(ze,t,n),p.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:G.tabSize)(o)}}function Cf(e,t,n){const r=this;return A(r.containerState,"expected state"),A(typeof r.containerState.size=="number","expected size"),Ee(e,a,p.listItemIndent,r.containerState.size+1);function a(i){A(r.containerState,"expected state");const s=r.events[r.events.length-1];return s&&s[1].type===p.listItemIndent&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function _f(e){A(this.containerState,"expected state"),A(typeof this.containerState.type=="string","expected type"),e.exit(this.containerState.type)}function If(e,t,n){const r=this;return A(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),Ee(e,a,p.listItemPrefixWhitespace,r.parser.constructs.disable.null.includes("codeIndented")?void 0:G.tabSize+1);function a(i){const s=r.events[r.events.length-1];return!ue(i)&&s&&s[1].type===p.listItemPrefixWhitespace?t(i):n(i)}}const Zi={name:"setextUnderline",tokenize:wf,resolveTo:Nf};function Nf(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type===p.content){r=n;break}e[n][1].type===p.paragraph&&(a=n)}else e[n][1].type===p.content&&e.splice(n,1),!i&&e[n][1].type===p.definition&&(i=n);A(a!==void 0,"expected a `text` index to be found"),A(r!==void 0,"expected a `text` index to be found");const s={type:p.setextHeading,start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type=p.setextHeadingText,i?(e.splice(a,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function wf(e,t,n){const r=this;let a;return i;function i(l){let d=r.events.length,f;for(A(l===g.dash||l===g.equalsTo,"expected `=` or `-`");d--;)if(r.events[d][1].type!==p.lineEnding&&r.events[d][1].type!==p.linePrefix&&r.events[d][1].type!==p.content){f=r.events[d][1].type===p.paragraph;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter(p.setextHeadingLine),a=l,s(l)):n(l)}function s(l){return e.enter(p.setextHeadingLineSequence),o(l)}function o(l){return l===a?(e.consume(l),o):(e.exit(p.setextHeadingLineSequence),ue(l)?Ee(e,c,p.lineSuffix)(l):c(l))}function c(l){return l===g.eof||V(l)?(e.exit(p.setextHeadingLine),t(l)):n(l)}}const vf={tokenize:Lf};function Lf(e){const t=this,n=e.attempt(yr,r,e.attempt(this.parser.constructs.flowInitial,a,Ee(e,e.attempt(this.parser.constructs.flow,a,e.attempt(D0,a)),p.linePrefix)));return n;function r(i){if(A(i===g.eof||V(i),"expected eol or eof"),i===g.eof){e.consume(i);return}return e.enter(p.lineEndingBlank),e.consume(i),e.exit(p.lineEndingBlank),t.currentConstruct=void 0,n}function a(i){if(A(i===g.eof||V(i),"expected eol or eof"),i===g.eof){e.consume(i);return}return e.enter(p.lineEnding),e.consume(i),e.exit(p.lineEnding),t.currentConstruct=void 0,n}}const kf={resolveAll:ro()},Of=no("string"),Rf=no("text");function no(e){return{tokenize:t,resolveAll:ro(e==="text"?Df:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,s,o);return s;function s(d){return l(d)?i(d):o(d)}function o(d){if(d===g.eof){n.consume(d);return}return n.enter(p.data),n.consume(d),c}function c(d){return l(d)?(n.exit(p.data),i(d)):(n.consume(d),c)}function l(d){if(d===g.eof)return!0;const f=a[d];let h=-1;if(f)for(A(Array.isArray(f),"expected `disable.null` to be populated");++h<f.length;){const m=f[h];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function ro(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type===p.data&&(i=a,a++):(!n[a]||n[a][1].type!==p.data)&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function Df(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===p.lineEnding)&&e[n-1][1].type===p.data){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,s=-1,o=0,c;for(;i--;){const l=a[i];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===g.space;)o++,s--;if(s)break;s=-1}else if(l===g.horizontalTab)c=!0,o++;else if(l!==g.virtualSpace){i++;break}}if(o){const l={type:n===e.length||c||o<G.hardBreakPrefixSizeMin?p.lineSuffix:p.hardBreakTrailing,start:{line:r.end.line,column:r.end.column-o,offset:r.end.offset-o,_index:r.start._index+i,_bufferIndex:i?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},l.start),r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}var Xn={exports:{}},Gr,Ji;function Pf(){if(Ji)return Gr;Ji=1;var e=1e3,t=e*60,n=t*60,r=n*24,a=r*7,i=r*365.25;Gr=function(d,f){f=f||{};var h=typeof d;if(h==="string"&&d.length>0)return s(d);if(h==="number"&&isFinite(d))return f.long?c(d):o(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function s(d){if(d=String(d),!(d.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(f){var h=parseFloat(f[1]),m=(f[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return h*i;case"weeks":case"week":case"w":return h*a;case"days":case"day":case"d":return h*r;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function o(d){var f=Math.abs(d);return f>=r?Math.round(d/r)+"d":f>=n?Math.round(d/n)+"h":f>=t?Math.round(d/t)+"m":f>=e?Math.round(d/e)+"s":d+"ms"}function c(d){var f=Math.abs(d);return f>=r?l(d,f,r,"day"):f>=n?l(d,f,n,"hour"):f>=t?l(d,f,t,"minute"):f>=e?l(d,f,e,"second"):d+" ms"}function l(d,f,h,m){var S=f>=h*1.5;return Math.round(d/h)+" "+m+(S?"s":"")}return Gr}var Yr,es;function Mf(){if(es)return Yr;es=1;function e(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=i,r.enabled=c,r.humanize=Pf(),r.destroy=d,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function n(f){let h=0;for(let m=0;m<f.length;m++)h=(h<<5)-h+f.charCodeAt(m),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=n;function r(f){let h,m=null,S,C;function P(...N){if(!P.enabled)return;const M=P,D=Number(new Date),$=D-(h||D);M.diff=$,M.prev=h,M.curr=D,h=D,N[0]=r.coerce(N[0]),typeof N[0]!="string"&&N.unshift("%O");let I=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(Q,ae)=>{if(Q==="%%")return"%";I++;const K=r.formatters[ae];if(typeof K=="function"){const Y=N[I];Q=K.call(M,Y),N.splice(I,1),I--}return Q}),r.formatArgs.call(M,N),(M.log||r.log).apply(M,N)}return P.namespace=f,P.useColors=r.useColors(),P.color=r.selectColor(f),P.extend=a,P.destroy=r.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(S!==r.namespaces&&(S=r.namespaces,C=r.enabled(f)),C),set:N=>{m=N}}),typeof r.init=="function"&&r.init(P),P}function a(f,h){const m=r(this.namespace+(typeof h>"u"?":":h)+f);return m.log=this.log,m}function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];const h=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const m of h)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function s(f,h){let m=0,S=0,C=-1,P=0;for(;m<f.length;)if(S<h.length&&(h[S]===f[m]||h[S]==="*"))h[S]==="*"?(C=S,P=m,S++):(m++,S++);else if(C!==-1)S=C+1,P++,m=P;else return!1;for(;S<h.length&&h[S]==="*";)S++;return S===h.length}function o(){const f=[...r.names,...r.skips.map(h=>"-"+h)].join(",");return r.enable(""),f}function c(f){for(const h of r.skips)if(s(f,h))return!1;for(const h of r.names)if(s(f,h))return!0;return!1}function l(f){return f instanceof Error?f.stack||f.message:f}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return Yr=e,Yr}var ts;function Bf(){return ts||(ts=1,(function(e,t){var n={};t.formatArgs=a,t.save=i,t.load=s,t.useColors=r,t.storage=o(),t.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const d="color: "+this.color;l.splice(1,0,d,"color: inherit");let f=0,h=0;l[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(f++,m==="%c"&&(h=f))}),l.splice(h,0,d)}t.log=console.debug||console.log||(()=>{});function i(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug")}catch{}}function s(){let l;try{l=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=n.DEBUG),l}function o(){try{return localStorage}catch{}}e.exports=Mf()(t);const{formatters:c}=e.exports;c.j=function(l){try{return JSON.stringify(l)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}})(Xn,Xn.exports)),Xn.exports}var Ff=Bf();const Hf=Ba(Ff),Dt=Hf("micromark");function Uf(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const a={},i=[];let s=[],o=[],c=!0;const l={consume:$,enter:I,exit:R,attempt:K(Q),check:K(ae),interrupt:K(ae,{interrupt:!0})},d={previous:g.eof,code:g.eof,containerState:{},events:[],parser:e,sliceStream:C,sliceSerialize:S,now:P,defineSkip:N,write:m};let f=t.tokenize.call(d,l),h;return t.resolveAll&&i.push(t),d;function m(B){return s=Qe(s,B),M(),s[s.length-1]!==g.eof?[]:(Y(t,0),d.events=Wa(i,d.events,d),d.events)}function S(B,z){return jf(C(B),z)}function C(B){return zf(s,B)}function P(){const{line:B,column:z,offset:W,_index:ce,_bufferIndex:re}=r;return{line:B,column:z,offset:W,_index:ce,_bufferIndex:re}}function N(B){a[B.line]=B.column,X(),Dt("position: define skip: `%j`",r)}function M(){let B;for(;r._index<s.length;){const z=s[r._index];if(typeof z=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<z.length;)D(z.charCodeAt(r._bufferIndex));else D(z)}}function D(B){A(c===!0,"expected character to be consumed"),c=void 0,Dt("main: passing `%s` to %s",B,f&&f.name),h=B,A(typeof f=="function","expected state"),f=f(B)}function $(B){A(B===h,"expected given code to equal expected code"),Dt("consume: `%s`",B),A(c===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),A(B===null?d.events.length===0||d.events[d.events.length-1][0]==="exit":d.events[d.events.length-1][0]==="enter","expected last token to be open"),V(B)?(r.line++,r.column=1,r.offset+=B===g.carriageReturnLineFeed?2:1,X(),Dt("position: after eol: `%j`",r)):B!==g.virtualSpace&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=B,c=!0}function I(B,z){const W=z||{};return W.type=B,W.start=P(),A(typeof B=="string","expected string type"),A(B.length>0,"expected non-empty string"),Dt("enter: `%s`",B),d.events.push(["enter",W,d]),o.push(W),W}function R(B){A(typeof B=="string","expected string type"),A(B.length>0,"expected non-empty string");const z=o.pop();return A(z,"cannot close w/o open tokens"),z.end=P(),A(B===z.type,"expected exit token to match current token"),A(!(z.start._index===z.end._index&&z.start._bufferIndex===z.end._bufferIndex),"expected non-empty token (`"+B+"`)"),Dt("exit: `%s`",z.type),d.events.push(["exit",z,d]),z}function Q(B,z){Y(B,z.from)}function ae(B,z){z.restore()}function K(B,z){return W;function W(ce,re,pe){let we,x,Ce,le;return Array.isArray(ce)?_e(ce):"tokenize"in ce?_e([ce]):y(ce);function y(fe){return Oe;function Oe(Me){const at=Me!==null&&fe[Me],ve=Me!==null&&fe.null,Xe=[...Array.isArray(at)?at:at?[at]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return _e(Xe)(Me)}}function _e(fe){return we=fe,x=0,fe.length===0?(A(pe,"expected `bogusState` to be given"),pe):Ae(fe[x])}function Ae(fe){return Oe;function Oe(Me){return le=oe(),Ce=fe,fe.partial||(d.currentConstruct=fe),A(d.parser.constructs.disable.null,"expected `disable.null` to be populated"),fe.name&&d.parser.constructs.disable.null.includes(fe.name)?Pe(Me):fe.tokenize.call(z?Object.assign(Object.create(d),z):d,l,Ge,Pe)(Me)}}function Ge(fe){return A(fe===h,"expected code"),c=!0,B(Ce,le),re}function Pe(fe){return A(fe===h,"expected code"),c=!0,le.restore(),++x<we.length?Ae(we[x]):pe}}}function Y(B,z){B.resolveAll&&!i.includes(B)&&i.push(B),B.resolve&&mt(d.events,z,d.events.length-z,B.resolve(d.events.slice(z),d)),B.resolveTo&&(d.events=B.resolveTo(d.events,d)),A(B.partial||d.events.length===0||d.events[d.events.length-1][0]==="exit","expected last token to end")}function oe(){const B=P(),z=d.previous,W=d.currentConstruct,ce=d.events.length,re=Array.from(o);return{restore:pe,from:ce};function pe(){r=B,d.previous=z,d.currentConstruct=W,d.events.length=ce,o=re,X(),Dt("position: restore: `%j`",r)}}function X(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function zf(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(n===a)A(i>-1,"expected non-negative end buffer index"),A(r>-1,"expected non-negative start buffer index"),s=[e[n].slice(r,i)];else{if(s=e.slice(n,a),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):(A(r===0,"expected `startBufferIndex` to be `0`"),s.shift())}i>0&&s.push(e[a].slice(0,i))}return s}function jf(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case g.carriageReturn:{s=ct.cr;break}case g.lineFeed:{s=ct.lf;break}case g.carriageReturnLineFeed:{s=ct.cr+ct.lf;break}case g.horizontalTab:{s=t?ct.space:ct.ht;break}case g.virtualSpace:{if(!t&&a)continue;s=ct.space;break}default:A(typeof i=="number","expected number"),s=String.fromCharCode(i)}a=i===g.horizontalTab,r.push(s)}return r.join("")}const $f={[g.asterisk]:ze,[g.plusSign]:ze,[g.dash]:ze,[g.digit0]:ze,[g.digit1]:ze,[g.digit2]:ze,[g.digit3]:ze,[g.digit4]:ze,[g.digit5]:ze,[g.digit6]:ze,[g.digit7]:ze,[g.digit8]:ze,[g.digit9]:ze,[g.greaterThan]:Wu},Gf={[g.leftSquareBracket]:H0},Yf={[g.horizontalTab]:jr,[g.virtualSpace]:jr,[g.space]:jr},Vf={[g.numberSign]:Y0,[g.asterisk]:rr,[g.dash]:[Zi,rr],[g.lessThan]:X0,[g.equalsTo]:Zi,[g.underscore]:rr,[g.graveAccent]:Qi,[g.tilde]:Qi},qf={[g.ampersand]:Qu,[g.backslash]:Xu},Wf={[g.carriageReturn]:$r,[g.lineFeed]:$r,[g.carriageReturnLineFeed]:$r,[g.exclamationMark]:mf,[g.ampersand]:Qu,[g.asterisk]:ya,[g.lessThan]:[b0,nf],[g.leftSquareBracket]:gf,[g.backslash]:[$0,Xu],[g.rightSquareBracket]:Xa,[g.underscore]:ya,[g.graveAccent]:L0},Xf={null:[ya,kf]},Qf={null:[g.asterisk,g.underscore]},Kf={null:[]},Zf=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Qf,contentInitial:Gf,disable:Kf,document:$f,flow:Vf,flowInitial:Yf,insideSpan:Xf,string:qf,text:Wf},Symbol.toStringTag,{value:"Module"}));function Jf(e){const n=n0([Zf,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:a(l0),document:a(f0),flow:a(vf),string:a(Of),text:a(Rf)};return r;function a(i){return s;function s(o){return Uf(r,i,o)}}}function eh(e){for(;!Zu(e););return e}const ns=/[\0\t\n\r]/g;function th(){let e=1,t="",n=!0,r;return a;function a(i,s,o){const c=[];let l,d,f,h,m;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===g.byteOrderMarker&&f++,n=void 0);f<i.length;){if(ns.lastIndex=f,l=ns.exec(i),h=l&&l.index!==void 0?l.index:i.length,m=i.charCodeAt(h),!l){t=i.slice(f);break}if(m===g.lf&&f===h&&r)c.push(g.carriageReturnLineFeed),r=void 0;else switch(r&&(c.push(g.carriageReturn),r=void 0),f<h&&(c.push(i.slice(f,h)),e+=h-f),m){case g.nul:{c.push(g.replacementCharacter),e++;break}case g.ht:{for(d=Math.ceil(e/G.tabSize)*G.tabSize,c.push(g.horizontalTab);e++<d;)c.push(g.virtualSpace);break}case g.lf:{c.push(g.lineFeed),e=1;break}default:r=!0,e=1}f=h+1}return o&&(r&&c.push(g.carriageReturn),t&&c.push(t),c.push(g.eof)),c}}const nh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rh(e){return e.replace(nh,ah)}function ah(e,t,n){if(t)return t;if(n.charCodeAt(0)===g.numberSign){const a=n.charCodeAt(1),i=a===g.lowercaseX||a===g.uppercaseX;return qu(n.slice(i?2:1),i?G.numericBaseHexadecimal:G.numericBaseDecimal)}return qa(n)||e}const ao={}.hasOwnProperty;function ih(e,t,n){return typeof t!="string"&&(n=t,t=void 0),sh(n)(eh(Jf(n).document().write(th()(e,t,!0))))}function sh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(vt),autolinkProtocol:K,autolinkEmail:K,atxHeading:i(Ye),blockQuote:i(Oe),characterEscape:K,characterReference:K,codeFenced:i(Me),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(Me,s),codeText:i(at,s),codeTextData:K,data:K,codeFlowValue:K,definition:i(ve),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Xe),hardBreakEscape:i(it),hardBreakTrailing:i(it),htmlFlow:i(wt,s),htmlFlowData:K,htmlText:i(wt,s),htmlTextData:K,image:i(Be),label:s,link:i(vt),listItem:i(Z),listItemValue:h,listOrdered:i(Lt,f),listUnordered:i(Lt),paragraph:i(te),reference:y,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Ye),strong:i(ge),thematicBreak:i(ye)},exit:{atxHeading:c(),atxHeadingSequence:I,autolink:c(),autolinkEmail:fe,autolinkProtocol:Pe,blockQuote:c(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:Ae,characterReferenceMarkerNumeric:Ae,characterReferenceValue:Ge,codeFenced:c(P),codeFencedFence:C,codeFencedFenceInfo:m,codeFencedFenceMeta:S,codeFlowValue:Y,codeIndented:c(N),codeText:c(W),codeTextData:Y,data:Y,definition:c(),definitionDestinationString:$,definitionLabelString:M,definitionTitleString:D,emphasis:c(),hardBreakEscape:c(X),hardBreakTrailing:c(X),htmlFlow:c(B),htmlFlowData:Y,htmlText:c(z),htmlTextData:Y,image:c(re),label:we,labelText:pe,lineEnding:oe,link:c(ce),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:_e,resourceDestinationString:x,resourceTitleString:Ce,resource:le,setextHeading:c(ae),setextHeadingLineSequence:Q,setextHeadingText:R,strong:c(),thematicBreak:c()}};io(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(w){let v={type:"root",children:[]};const j={stack:[v],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:d,data:n},J=[];let de=-1;for(;++de<w.length;)if(w[de][1].type===p.listOrdered||w[de][1].type===p.listUnordered)if(w[de][0]==="enter")J.push(de);else{const He=J.pop();A(typeof He=="number","expected list ot be open"),de=a(w,He,de)}for(de=-1;++de<w.length;){const He=t[w[de][0]];ao.call(He,w[de][1].type)&&He[w[de][1].type].call(Object.assign({sliceSerialize:w[de][2].sliceSerialize},j),w[de][1])}if(j.tokenStack.length>0){const He=j.tokenStack[j.tokenStack.length-1];(He[1]||rs).call(j,void 0,He[0])}for(v.position={start:xt(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:xt(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},de=-1;++de<t.transforms.length;)v=t.transforms[de](v)||v;return v}function a(w,v,j){let J=v-1,de=-1,He=!1,kt,gt,mn,pn;for(;++J<=j;){const Ve=w[J];switch(Ve[1].type){case p.listUnordered:case p.listOrdered:case p.blockQuote:{Ve[0]==="enter"?de++:de--,pn=void 0;break}case p.lineEndingBlank:{Ve[0]==="enter"&&(kt&&!pn&&!de&&!mn&&(mn=J),pn=void 0);break}case p.linePrefix:case p.listItemValue:case p.listItemMarker:case p.listItemPrefix:case p.listItemPrefixWhitespace:break;default:pn=void 0}if(!de&&Ve[0]==="enter"&&Ve[1].type===p.listItemPrefix||de===-1&&Ve[0]==="exit"&&(Ve[1].type===p.listUnordered||Ve[1].type===p.listOrdered)){if(kt){let Vt=J;for(gt=void 0;Vt--;){const bt=w[Vt];if(bt[1].type===p.lineEnding||bt[1].type===p.lineEndingBlank){if(bt[0]==="exit")continue;gt&&(w[gt][1].type=p.lineEndingBlank,He=!0),bt[1].type=p.lineEnding,gt=Vt}else if(!(bt[1].type===p.linePrefix||bt[1].type===p.blockQuotePrefix||bt[1].type===p.blockQuotePrefixWhitespace||bt[1].type===p.blockQuoteMarker||bt[1].type===p.listItemIndent))break}mn&&(!gt||mn<gt)&&(kt._spread=!0),kt.end=Object.assign({},gt?w[gt][1].start:Ve[1].end),w.splice(gt||J,0,["exit",kt,Ve[2]]),J++,j++}if(Ve[1].type===p.listItemPrefix){const Vt={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};kt=Vt,w.splice(J,0,["enter",Vt,Ve[2]]),J++,j++,mn=void 0,pn=!0}}}return w[v][1]._spread=He,j}function i(w,v){return j;function j(J){o.call(this,w(J),J),v&&v.call(this,J)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(w,v,j){const J=this.stack[this.stack.length-1];A(J,"expected `parent`"),A("children"in J,"expected `parent`"),J.children.push(w),this.stack.push(w),this.tokenStack.push([v,j]),w.position={start:xt(v.start),end:void 0}}function c(w){return v;function v(j){w&&w.call(this,j),l.call(this,j)}}function l(w,v){const j=this.stack.pop();A(j,"expected `node`");const J=this.tokenStack.pop();if(J)J[0].type!==w.type&&(v?v.call(this,w,J[0]):(J[1]||rs).call(this,w,J[0]));else throw new Error("Cannot close `"+w.type+"` ("+Cn({start:w.start,end:w.end})+"): it’s not open");A(j.type!=="fragment","unexpected fragment `exit`ed"),A(j.position,"expected `position` to be defined"),j.position.end=xt(w.end)}function d(){return e0(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(w){if(this.data.expectingFirstListItemValue){const v=this.stack[this.stack.length-2];A(v,"expected nodes on stack"),A(v.type==="list","expected list on stack"),v.start=Number.parseInt(this.sliceSerialize(w),G.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function m(){const w=this.resume(),v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="code","expected code on stack"),v.lang=w}function S(){const w=this.resume(),v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="code","expected code on stack"),v.meta=w}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function P(){const w=this.resume(),v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="code","expected code on stack"),v.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const w=this.resume(),v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="code","expected code on stack"),v.value=w.replace(/(\r?\n|\r)$/g,"")}function M(w){const v=this.resume(),j=this.stack[this.stack.length-1];A(j,"expected node on stack"),A(j.type==="definition","expected definition on stack"),j.label=v,j.identifier=tn(this.sliceSerialize(w)).toLowerCase()}function D(){const w=this.resume(),v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="definition","expected definition on stack"),v.title=w}function $(){const w=this.resume(),v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="definition","expected definition on stack"),v.url=w}function I(w){const v=this.stack[this.stack.length-1];if(A(v,"expected node on stack"),A(v.type==="heading","expected heading on stack"),!v.depth){const j=this.sliceSerialize(w).length;A(j===1||j===2||j===3||j===4||j===5||j===6,"expected `depth` between `1` and `6`"),v.depth=j}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function Q(w){const v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="heading","expected heading on stack"),v.depth=this.sliceSerialize(w).codePointAt(0)===g.equalsTo?1:2}function ae(){this.data.setextHeadingSlurpLineEnding=void 0}function K(w){const v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A("children"in v,"expected parent on stack");const j=v.children;let J=j[j.length-1];(!J||J.type!=="text")&&(J=he(),J.position={start:xt(w.start),end:void 0},j.push(J)),this.stack.push(J)}function Y(w){const v=this.stack.pop();A(v,"expected a `node` to be on the stack"),A("value"in v,"expected a `literal` to be on the stack"),A(v.position,"expected `node` to have an open position"),v.value+=this.sliceSerialize(w),v.position.end=xt(w.end)}function oe(w){const v=this.stack[this.stack.length-1];if(A(v,"expected `node`"),this.data.atHardBreak){A("children"in v,"expected `parent`");const j=v.children[v.children.length-1];A(j.position,"expected tail to have a starting position"),j.position.end=xt(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(v.type)&&(K.call(this,w),Y.call(this,w))}function X(){this.data.atHardBreak=!0}function B(){const w=this.resume(),v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="html","expected html on stack"),v.value=w}function z(){const w=this.resume(),v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="html","expected html on stack"),v.value=w}function W(){const w=this.resume(),v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="inlineCode","expected inline code on stack"),v.value=w}function ce(){const w=this.stack[this.stack.length-1];if(A(w,"expected node on stack"),A(w.type==="link","expected link on stack"),this.data.inReference){const v=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=v,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function re(){const w=this.stack[this.stack.length-1];if(A(w,"expected node on stack"),A(w.type==="image","expected image on stack"),this.data.inReference){const v=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=v,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function pe(w){const v=this.sliceSerialize(w),j=this.stack[this.stack.length-2];A(j,"expected ancestor on stack"),A(j.type==="image"||j.type==="link","expected image or link on stack"),j.label=rh(v),j.identifier=tn(v).toLowerCase()}function we(){const w=this.stack[this.stack.length-1];A(w,"expected node on stack"),A(w.type==="fragment","expected fragment on stack");const v=this.resume(),j=this.stack[this.stack.length-1];if(A(j,"expected node on stack"),A(j.type==="image"||j.type==="link","expected image or link on stack"),this.data.inReference=!0,j.type==="link"){const J=w.children;j.children=J}else j.alt=v}function x(){const w=this.resume(),v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="image"||v.type==="link","expected image or link on stack"),v.url=w}function Ce(){const w=this.resume(),v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="image"||v.type==="link","expected image or link on stack"),v.title=w}function le(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function _e(w){const v=this.resume(),j=this.stack[this.stack.length-1];A(j,"expected node on stack"),A(j.type==="image"||j.type==="link","expected image reference or link reference on stack"),j.label=v,j.identifier=tn(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function Ae(w){A(w.type==="characterReferenceMarkerNumeric"||w.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=w.type}function Ge(w){const v=this.sliceSerialize(w),j=this.data.characterReferenceType;let J;if(j)J=qu(v,j===p.characterReferenceMarkerNumeric?G.numericBaseDecimal:G.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{const He=qa(v);A(He!==!1,"expected reference to decode"),J=He}const de=this.stack.pop();A(de,"expected `node`"),A(de.position,"expected `node.position`"),A("value"in de,"expected `node.value`"),de.value+=J,de.position.end=xt(w.end)}function Pe(w){Y.call(this,w);const v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="link","expected link on stack"),v.url=this.sliceSerialize(w)}function fe(w){Y.call(this,w);const v=this.stack[this.stack.length-1];A(v,"expected node on stack"),A(v.type==="link","expected link on stack"),v.url="mailto:"+this.sliceSerialize(w)}function Oe(){return{type:"blockquote",children:[]}}function Me(){return{type:"code",lang:null,meta:null,value:""}}function at(){return{type:"inlineCode",value:""}}function ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Xe(){return{type:"emphasis",children:[]}}function Ye(){return{type:"heading",depth:0,children:[]}}function it(){return{type:"break"}}function wt(){return{type:"html",value:""}}function Be(){return{type:"image",title:null,url:"",alt:null}}function vt(){return{type:"link",title:null,url:"",children:[]}}function Lt(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function Z(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function te(){return{type:"paragraph",children:[]}}function ge(){return{type:"strong",children:[]}}function he(){return{type:"text",value:""}}function ye(){return{type:"thematicBreak"}}}function xt(e){return{line:e.line,column:e.column,offset:e.offset}}function io(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?io(e,r):uh(e,r)}}function uh(e,t){let n;for(n in t)if(ao.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function rs(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Cn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Cn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Cn({start:t.start,end:t.end})+") is still open")}function oh(e){const t=this;t.parser=n;function n(r){return ih(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ch(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function lh(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
47
|
+
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function od(e,t){var n=jc(t),r=q(q({},Nu),e),a=r.locale,i=r.defaultLocale,s=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&s?s(new vi('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&s&&s(new vi('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new Bc('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),ud(r),q(q({},r),{formatters:n,formatNumber:ad.bind(null,r,n.getNumberFormat),formatNumberToParts:id.bind(null,r,n.getNumberFormat),formatRelativeTime:nd.bind(null,r,n.getRelativeTimeFormat),formatDate:$c.bind(null,r,n.getDateTimeFormat),formatDateToParts:Gc.bind(null,r,n.getDateTimeFormat),formatTime:zc.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:Yc.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Vc.bind(null,r,n.getDateTimeFormat),formatPlural:Jc.bind(null,r,n.getPluralRules),formatMessage:pa.bind(null,r,n),$t:pa.bind(null,r,n),formatList:Kc.bind(null,r,n.getListFormat),formatListToParts:Ou.bind(null,r,n.getListFormat),formatDisplayName:Wc.bind(null,r,n.getDisplayNames)})}function Ru(e){ou(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Pu=q(q({},Nu),{textComponent:Pe.Fragment});function ld(e){return function(t){return e(Pe.Children.toArray(t))}}function cd(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var i=0;i<a;i++){var s=n[i];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var $a=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Pe.createContext(null)):Pe.createContext(null);$a.Consumer;var dd=$a.Provider,fd=dd,hd=$a;function Dn(){var e=Pe.useContext(hd);return Ru(e),e}var ba;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(ba||(ba={}));var Ea;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Ea||(Ea={}));function Du(e){var t=function(n){var r=Dn(),a=n.value,i=n.children,s=br(n,["value","children"]),o=typeof a=="string"?new Date(a||0):a,l=e==="formatDate"?r.formatDateToParts(o,s):r.formatTimeToParts(o,s);return i(l)};return t.displayName=Ea[e],t}function kn(e){var t=function(n){var r=Dn(),a=n.value,i=n.children,s=br(n,["value","children"]),o=r[e](a,s);if(typeof i=="function")return i(o);var l=r.textComponent||Pe.Fragment;return Pe.createElement(l,null,o)};return t.displayName=ba[e],t}function ku(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=Cu(r)?ld(r):r,t},{})}var Ri=function(e,t,n,r){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var s=ku(r),o=pa.apply(void 0,ut([e,t,n,s],a,!1));return Array.isArray(o)?Pe.Children.toArray(o):o},Pi=function(e,t){var n=e.defaultRichTextElements,r=br(e,["defaultRichTextElements"]),a=ku(n),i=od(q(q(q({},Pu),r),{defaultRichTextElements:a}),t),s={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:a};return q(q({},i),{formatMessage:Ri.bind(null,s,i.formatters),$t:Ri.bind(null,s,i.formatters)})};function kr(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var md=(function(e){Je(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=vu(),n.state={cache:n.cache,intl:Pi(kr(n.props),n.cache),prevConfig:kr(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var a=r.prevConfig,i=r.cache,s=kr(n);return cd(a,s)?null:{intl:Pi(s,i),prevConfig:s}},t.prototype.render=function(){return Ru(this.state.intl),Pe.createElement(fd,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Pu,t})(Pe.PureComponent);kn("formatDate");kn("formatTime");kn("formatNumber");kn("formatList");kn("formatDisplayName");Du("formatDate");Du("formatTime");const za=()=>{const e=Dn(),t=e.formatMessage({defaultMessage:"Message the assistant...",id:"chatbot.placeholder.content"}),n=e.formatMessage({defaultMessage:"You",id:"chatbot.chatline.label.user"}),r=e.formatMessage({defaultMessage:"Assistant",id:"chatbot.chatline.label.assistant"}),a=e.formatMessage({defaultMessage:"⏳ The chatbot is a little busy at the time. Please try again later.",id:"chatbot.error.api.429"}),i=e.formatMessage({defaultMessage:"Oops ! There has been an error. Please try again later.",id:"chatbot.error.api.500"}),s=e.formatMessage({defaultMessage:"Oups ! The discussion if full. Please start a new one.",id:"chatbot.error.api.409"});return{placeholderTranslation:t,chatlineLabelUserTranslation:n,chatlineLabelAssistantTranslation:r,tooManyRequestsTranslation:a,genericErrorTranslation:i,conflictErrorTranslation:s}},pd=({setDiscussionId:e,setConversation:t,companySettings:n})=>({resetDiscussion:()=>{e(null),t([{userType:"assistant",content:n?.agent?.text?.initialText}])}});function Di(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const s=n.slice(a,r).trim();(s||!i)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function Mu(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const bd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ed=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gd={};function ki(e,t){return(gd.jsx?Ed:bd).test(e)}const Td=/[ \t\n\f\r]/g;function yd(e){return typeof e=="object"?e.type==="text"?Mi(e.value):!1:Mi(e)}function Mi(e){return e.replace(Td,"")===""}class Mn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Mn.prototype.property={};Mn.prototype.normal={};Mn.prototype.space=null;function Bu(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Mn(n,r,t)}function vn(e){return e.toLowerCase()}class tt{constructor(t,n){this.property=t,this.attribute=n}}tt.prototype.space=null;tt.prototype.boolean=!1;tt.prototype.booleanish=!1;tt.prototype.overloadedBoolean=!1;tt.prototype.number=!1;tt.prototype.commaSeparated=!1;tt.prototype.spaceSeparated=!1;tt.prototype.commaOrSpaceSeparated=!1;tt.prototype.mustUseProperty=!1;tt.prototype.defined=!1;let xd=0;const oe=Ht(),Re=Ht(),Fu=Ht(),M=Ht(),_e=Ht(),Qt=Ht(),qe=Ht();function Ht(){return 2**++xd}const ga=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Re,commaOrSpaceSeparated:qe,commaSeparated:Qt,number:M,overloadedBoolean:Fu,spaceSeparated:_e},Symbol.toStringTag,{value:"Module"})),Mr=Object.keys(ga);class Ya extends tt{constructor(t,n,r,a){let i=-1;if(super(t,n),Bi(this,"space",a),typeof r=="number")for(;++i<Mr.length;){const s=Mr[i];Bi(this,Mr[i],(r&ga[s])===ga[s])}}}Ya.prototype.defined=!0;function Bi(e,t,n){n&&(e[t]=n)}const Ad={}.hasOwnProperty;function rn(e){const t={},n={};let r;for(r in e.properties)if(Ad.call(e.properties,r)){const a=e.properties[r],i=new Ya(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[vn(r)]=r,n[vn(i.attribute)]=r}return new Mn(t,n,e.space)}const Hu=rn({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Uu=rn({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ju(e,t){return t in e?e[t]:t}function $u(e,t){return ju(e,t.toLowerCase())}const zu=rn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$u,properties:{xmlns:null,xmlnsXLink:null}}),Yu=rn({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Re,ariaAutoComplete:null,ariaBusy:Re,ariaChecked:Re,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:_e,ariaCurrent:null,ariaDescribedBy:_e,ariaDetails:null,ariaDisabled:Re,ariaDropEffect:_e,ariaErrorMessage:null,ariaExpanded:Re,ariaFlowTo:_e,ariaGrabbed:Re,ariaHasPopup:null,ariaHidden:Re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_e,ariaLevel:M,ariaLive:null,ariaModal:Re,ariaMultiLine:Re,ariaMultiSelectable:Re,ariaOrientation:null,ariaOwns:_e,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:Re,ariaReadOnly:Re,ariaRelevant:null,ariaRequired:Re,ariaRoleDescription:_e,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:Re,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null}}),_d=rn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$u,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qt,acceptCharset:_e,accessKey:_e,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:_e,autoFocus:oe,autoPlay:oe,blocking:_e,capture:null,charSet:null,checked:oe,cite:null,className:_e,cols:M,colSpan:null,content:null,contentEditable:Re,controls:oe,controlsList:_e,coords:M|Qt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:Fu,draggable:Re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:_e,height:M,hidden:oe,high:M,href:null,hrefLang:null,htmlFor:_e,httpEquiv:_e,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:_e,itemRef:_e,itemScope:oe,itemType:_e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,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:oe,optimum:M,pattern:null,ping:_e,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:_e,required:oe,reversed:oe,rows:M,rowSpan:M,sandbox:_e,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:Re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Re,width:M,wrap:null,align:null,aLink:null,archive:_e,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:Re,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:M,security:null,unselectable:null}}),Sd=rn({space:"svg",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",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"},transform:ju,properties:{about:qe,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:_e,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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:Qt,g2:Qt,glyphName:Qt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qe,rev:qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qe,requiredFeatures:qe,requiredFonts:qe,requiredFormats:qe,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Cd=/^data[-\w.:]+$/i,Fi=/-[a-z]/g,Id=/[A-Z]/g;function gr(e,t){const n=vn(t);let r=t,a=tt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Cd.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Fi,vd);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Fi.test(i)){let s=i.replace(Id,Nd);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Ya}return new a(r,t)}function Nd(e){return"-"+e.toLowerCase()}function vd(e){return e.charAt(1).toUpperCase()}const wd={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"},Bn=Bu([Uu,Hu,zu,Yu,_d],"html"),_t=Bu([Uu,Hu,zu,Yu,Sd],"svg");function Hi(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gu(e){return e.join(" ").trim()}var zt={},Br,Ui;function Od(){if(Ui)return Br;Ui=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
48
|
+
`,c="/",d="*",f="",m="comment",h="declaration";Br=function(x,L){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];L=L||{};var _=1,R=1;function O($){var z=$.match(t);z&&(_+=z.length);var Z=$.lastIndexOf(l);R=~Z?$.length-Z:R+$.length}function U(){var $={line:_,column:R};return function(z){return z.position=new S($),fe(),z}}function S($){this.start=$,this.end={line:_,column:R},this.source=L.source}S.prototype.content=x;function w($){var z=new Error(L.source+":"+_+":"+R+": "+$);if(z.reason=$,z.filename=L.source,z.line=_,z.column=R,z.source=x,!L.silent)throw z}function Q($){var z=$.exec(x);if(z){var Z=z[0];return O(Z),x=x.slice(Z.length),z}}function fe(){Q(n)}function re($){var z;for($=$||[];z=G();)z!==!1&&$.push(z);return $}function G(){var $=U();if(!(c!=x.charAt(0)||d!=x.charAt(1))){for(var z=2;f!=x.charAt(z)&&(d!=x.charAt(z)||c!=x.charAt(z+1));)++z;if(z+=2,f===x.charAt(z-1))return w("End of comment missing");var Z=x.slice(2,z-2);return R+=2,O(Z),x=x.slice(z),R+=2,$({type:m,comment:Z})}}function j(){var $=U(),z=Q(r);if(z){if(G(),!Q(a))return w("property missing ':'");var Z=Q(i),he=$({type:h,property:y(z[0].replace(e,f)),value:Z?y(Z[0].replace(e,f)):f});return Q(s),he}}function B(){var $=[];re($);for(var z;z=j();)z!==!1&&($.push(z),re($));return $}return fe(),B()};function y(x){return x?x.replace(o,f):f}return Br}var ji;function Ld(){if(ji)return zt;ji=1;var e=zt&&zt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(zt,"__esModule",{value:!0});var t=e(Od());function n(r,a){var i=null;if(!r||typeof r!="string")return i;var s=(0,t.default)(r),o=typeof a=="function";return s.forEach(function(l){if(l.type==="declaration"){var c=l.property,d=l.value;o?a(c,d,l):d&&(i=i||{},i[c]=d)}}),i}return zt.default=n,zt}var Rd=Ld();const $i=Ba(Rd),Pd=$i.default||$i,Tr=Vu("end"),ft=Vu("start");function Vu(e){return t;function t(n){const r=n&&n.position&&n.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 Dd(e){const t=ft(e),n=Tr(e);if(t&&n)return{start:t,end:n}}function yn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?zi(e.position):"start"in e||"end"in e?zi(e):"line"in e||"column"in e?Ta(e):""}function Ta(e){return Yi(e&&e.line)+":"+Yi(e&&e.column)}function zi(e){return Ta(e&&e.start)+"-"+Ta(e&&e.end)}function Yi(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=o?o.line:void 0,this.name=yn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Be.prototype.file="";Be.prototype.name="";Be.prototype.reason="";Be.prototype.message="";Be.prototype.stack="";Be.prototype.column=void 0;Be.prototype.line=void 0;Be.prototype.ancestors=void 0;Be.prototype.cause=void 0;Be.prototype.fatal=void 0;Be.prototype.place=void 0;Be.prototype.ruleId=void 0;Be.prototype.source=void 0;const Ga={}.hasOwnProperty,kd=new Map,Md=/[A-Z]/g,Bd=/-([a-z])/g,Fd=new Set(["table","tbody","thead","tfoot","tr"]),Hd=new Set(["td","th"]),qu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ud(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Wd(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=qd(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_t:Bn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Wu(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Wu(e,t,n){if(t.type==="element")return jd(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return $d(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Yd(e,t,n);if(t.type==="mdxjsEsm")return zd(e,t);if(t.type==="root")return Gd(e,t,n);if(t.type==="text")return Vd(e,t)}function jd(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=_t,e.schema=a),e.ancestors.push(t);const i=Qu(e,t.tagName,!1),s=Xd(e,t);let o=qa(e,t);return Fd.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!yd(l):!0})),Xu(e,s,i,t),Va(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function $d(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}wn(e,t.position)}function zd(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);wn(e,t.position)}function Yd(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=_t,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Qu(e,t.name,!0),s=Qd(e,t),o=qa(e,t);return Xu(e,s,i,t),Va(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function Gd(e,t,n){const r={};return Va(r,qa(e,t)),e.create(t,e.Fragment,r,n)}function Vd(e,t){return t.value}function Xu(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Va(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function qd(e,t,n){return r;function r(a,i,s,o){const c=Array.isArray(s.children)?n:t;return o?c(i,s,o):c(i,s)}}function Wd(e,t){return n;function n(r,a,i,s){const o=Array.isArray(i.children),l=ft(r);return t(a,i,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Xd(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Ga.call(t.properties,a)){const i=Kd(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Hd.has(t.tagName)?r=o:n[s]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Qd(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else wn(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else wn(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function qa(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:kd;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=a.get(l)||0;s=l+"-"+c,a.set(l,c+1)}}const o=Wu(e,i,s);o!==void 0&&n.push(o)}return n}function Kd(e,t,n){const r=gr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Mu(n):Gu(n)),r.property==="style"){let a=typeof n=="object"?n:Zd(e,String(n));return e.stylePropertyNameCase==="css"&&(a=Jd(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?wd[r.property]||r.property:r.attribute,n]}}function Zd(e,t){const n={};try{Pd(t,r)}catch(a){if(!e.ignoreInvalidStyle){const i=a,s=new Be("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=qu+"#cannot-parse-style-attribute",s}}return n;function r(a,i){let s=a;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(Bd,tf)),n[s]=i}}function Qu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const o=ki(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=s}else r=ki(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Ga.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);wn(e)}function wn(e,t){const n=new Be("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=qu+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Jd(e){const t={};let n;for(n in e)Ga.call(e,n)&&(t[ef(n)]=e[n]);return t}function ef(e){let t=e.replace(Md,nf);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function tf(e,t){return t.toUpperCase()}function nf(e){return"-"+e.toLowerCase()}const Fr={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"]},rf={};function af(e,t){const n=rf,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ku(e,r,a)}function Ku(e,t,n){if(sf(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Gi(e.children,t,n)}return Array.isArray(e)?Gi(e,t,n):""}function Gi(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Ku(e[a],t,n);return r.join("")}function sf(e){return!!(e&&typeof e=="object")}const Vi=document.createElement("i");function Wa(e){const t="&"+e+";";Vi.innerHTML=t;const n=Vi.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function dt(e,t,n,r){const a=e.length;let i=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function Xe(e,t){return e.length>0?(dt(e,e.length,0,t),e):t}const qi={}.hasOwnProperty;function uf(e){const t={};let n=-1;for(;++n<e.length;)of(t,e[n]);return t}function of(e,t){let n;for(n in t){const a=(qi.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){qi.call(a,s)||(a[s]=[]);const o=i[s];lf(a[s],Array.isArray(o)?o:o?[o]:[])}}}function lf(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);dt(e,0,0,r)}function Zu(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Kt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const lt=St(/[A-Za-z]/),We=St(/[\dA-Za-z]/),cf=St(/[#-'*+\--9=?A-Z^-~]/);function ya(e){return e!==null&&(e<32||e===127)}const xa=St(/\d/),df=St(/[\dA-Fa-f]/),ff=St(/[!-/:-@[-`{-~]/);function ne(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function Ee(e){return e===-2||e===-1||e===32}const hf=St(new RegExp("\\p{P}|\\p{S}","u")),mf=St(/\s/);function St(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function an(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&We(e.charCodeAt(n+1))&&We(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),a=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Se(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return Ee(l)?(e.enter(n),o(l)):t(l)}function o(l){return Ee(l)&&i++<a?(e.consume(l),o):(e.exit(n),t(l))}}const pf={tokenize:bf};function bf(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Se(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ne(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const Ef={tokenize:gf},Wi={tokenize:Tf};function gf(e){const t=this,n=[];let r=0,a,i,s;return o;function o(O){if(r<n.length){const U=n[r];return t.containerState=U[1],e.attempt(U[0].continuation,l,c)(O)}return c(O)}function l(O){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&R();const U=t.events.length;let S=U,w;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){w=t.events[S][1].end;break}_(r);let Q=U;for(;Q<t.events.length;)t.events[Q][1].end=Object.assign({},w),Q++;return dt(t.events,S+1,0,t.events.slice(U)),t.events.length=Q,c(O)}return o(O)}function c(O){if(r===n.length){if(!a)return m(O);if(a.currentConstruct&&a.currentConstruct.concrete)return y(O);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wi,d,f)(O)}function d(O){return a&&R(),_(r),m(O)}function f(O){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,y(O)}function m(O){return t.containerState={},e.attempt(Wi,h,y)(O)}function h(O){return r++,n.push([t.currentConstruct,t.containerState]),m(O)}function y(O){if(O===null){a&&R(),_(0),e.consume(O);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:a}),x(O)}function x(O){if(O===null){L(e.exit("chunkFlow"),!0),_(0),e.consume(O);return}return ne(O)?(e.consume(O),L(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(O),x)}function L(O,U){const S=t.sliceStream(O);if(U&&S.push(null),O.previous=i,i&&(i.next=O),i=O,a.defineSkip(O.start),a.write(S),t.parser.lazy[O.start.line]){let w=a.events.length;for(;w--;)if(a.events[w][1].start.offset<s&&(!a.events[w][1].end||a.events[w][1].end.offset>s))return;const Q=t.events.length;let fe=Q,re,G;for(;fe--;)if(t.events[fe][0]==="exit"&&t.events[fe][1].type==="chunkFlow"){if(re){G=t.events[fe][1].end;break}re=!0}for(_(r),w=Q;w<t.events.length;)t.events[w][1].end=Object.assign({},G),w++;dt(t.events,fe+1,0,t.events.slice(Q)),t.events.length=w}}function _(O){let U=n.length;for(;U-- >O;){const S=n[U];t.containerState=S[1],S[0].exit.call(t,e)}n.length=O}function R(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Tf(e,t,n){return Se(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xi(e){if(e===null||Ye(e)||mf(e))return 1;if(hf(e))return 2}function Xa(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Aa={name:"attention",tokenize:xf,resolveAll:yf};function yf(e,t){let n=-1,r,a,i,s,o,l,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);Qi(f,-l),Qi(m,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Xe(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Xe(c,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=Xe(c,Xa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Xe(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=Xe(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,dt(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function xf(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Xi(r);let i;return s;function s(l){return i=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===i)return e.consume(l),o;const c=e.exit("attentionSequence"),d=Xi(l),f=!d||d===2&&a||n.includes(l),m=!a||a===2&&d||n.includes(r);return c._open=!!(i===42?f:f&&(a||!m)),c._close=!!(i===42?m:m&&(d||!f)),t(l)}}function Qi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Af={name:"autolink",tokenize:_f};function _f(e,t,n){let r=0;return a;function a(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(h){return lt(h)?(e.consume(h),s):c(h)}function s(h){return h===43||h===45||h===46||We(h)?(r=1,o(h)):c(h)}function o(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||We(h))&&r++<32?(e.consume(h),o):(r=0,c(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||ya(h)?n(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),d):cf(h)?(e.consume(h),c):n(h)}function d(h){return We(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,d):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):m(h)}function m(h){if((h===45||We(h))&&r++<63){const y=h===45?m:f;return e.consume(h),y}return n(h)}}const yr={tokenize:Sf,partial:!0};function Sf(e,t,n){return r;function r(i){return Ee(i)?Se(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ne(i)?t(i):n(i)}}const Ju={name:"blockQuote",tokenize:Cf,continuation:{tokenize:If},exit:Nf};function Cf(e,t,n){const r=this;return a;function a(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return Ee(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function If(e,t,n){const r=this;return a;function a(s){return Ee(s)?Se(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(Ju,t,n)(s)}}function Nf(e){e.exit("blockQuote")}const eo={name:"characterEscape",tokenize:vf};function vf(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return ff(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const to={name:"characterReference",tokenize:wf};function wf(e,t,n){const r=this;let a=0,i,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,s=We,d(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=df,d):(e.enter("characterReferenceValue"),i=7,s=xa,d(f))}function d(f){if(f===59&&a){const m=e.exit("characterReferenceValue");return s===We&&!Wa(r.sliceSerialize(m))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&a++<i?(e.consume(f),d):n(f)}}const Ki={tokenize:Lf,partial:!0},Zi={name:"codeFenced",tokenize:Of,concrete:!0};function Of(e,t,n){const r=this,a={tokenize:S,partial:!0};let i=0,s=0,o;return l;function l(w){return c(w)}function c(w){const Q=r.events[r.events.length-1];return i=Q&&Q[1].type==="linePrefix"?Q[2].sliceSerialize(Q[1],!0).length:0,o=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(w)}function d(w){return w===o?(s++,e.consume(w),d):s<3?n(w):(e.exit("codeFencedFenceSequence"),Ee(w)?Se(e,f,"whitespace")(w):f(w))}function f(w){return w===null||ne(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Ki,x,U)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||ne(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(w)):Ee(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,h,"whitespace")(w)):w===96&&w===o?n(w):(e.consume(w),m)}function h(w){return w===null||ne(w)?f(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||ne(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(w)):w===96&&w===o?n(w):(e.consume(w),y)}function x(w){return e.attempt(a,U,L)(w)}function L(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),_}function _(w){return i>0&&Ee(w)?Se(e,R,"linePrefix",i+1)(w):R(w)}function R(w){return w===null||ne(w)?e.check(Ki,x,U)(w):(e.enter("codeFlowValue"),O(w))}function O(w){return w===null||ne(w)?(e.exit("codeFlowValue"),R(w)):(e.consume(w),O)}function U(w){return e.exit("codeFenced"),t(w)}function S(w,Q,fe){let re=0;return G;function G(Z){return w.enter("lineEnding"),w.consume(Z),w.exit("lineEnding"),j}function j(Z){return w.enter("codeFencedFence"),Ee(Z)?Se(w,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):B(Z)}function B(Z){return Z===o?(w.enter("codeFencedFenceSequence"),$(Z)):fe(Z)}function $(Z){return Z===o?(re++,w.consume(Z),$):re>=s?(w.exit("codeFencedFenceSequence"),Ee(Z)?Se(w,z,"whitespace")(Z):z(Z)):fe(Z)}function z(Z){return Z===null||ne(Z)?(w.exit("codeFencedFence"),Q(Z)):fe(Z)}}}function Lf(e,t,n){const r=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Hr={name:"codeIndented",tokenize:Pf},Rf={tokenize:Df,partial:!0};function Pf(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),Se(e,i,"linePrefix",5)(c)}function i(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?l(c):ne(c)?e.attempt(Rf,s,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||ne(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function Df(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):ne(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Se(e,i,"linePrefix",5)(s)}function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ne(s)?a(s):n(s)}}const kf={name:"codeText",tokenize:Ff,resolve:Mf,previous:Bf};function Mf(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Bf(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ff(e,t,n){let r=0,a,i;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),r++,o):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(i=e.enter("codeTextSequence"),a=0,d(f)):ne(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||ne(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),c)}function d(f){return f===96?(e.consume(f),a++,d):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",c(f))}}function no(e){const t={};let n=-1,r,a,i,s,o,l,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Hf(e,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,a=void 0;i--&&(s=e[i],s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(a&&(e[a][1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);a&&(r[1].end=Object.assign({},e[a][1].start),o=e.slice(a,n),o.unshift(r),dt(e,a,n-a+1,o))}}return!c}function Hf(e,t){const n=e[t][1],r=e[t][2];let a=t-1;const i=[],s=n._tokenizer||r.parser[n.contentType](n.start),o=s.events,l=[],c={};let d,f,m=-1,h=n,y=0,x=0;const L=[x];for(;h;){for(;e[++a][1]!==h;);i.push(a),h._tokenizer||(d=r.sliceStream(h),h.next||d.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(x=m+1,L.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):L.pop(),m=L.length;m--;){const _=o.slice(L[m],L[m+1]),R=i.pop();l.unshift([R,R+_.length-1]),dt(e,R,2,_)}for(m=-1;++m<l.length;)c[y+l[m][0]]=y+l[m][1],y+=l[m][1]-l[m][0]-1;return c}const Uf={tokenize:zf,resolve:$f},jf={tokenize:Yf,partial:!0};function $f(e){return no(e),e}function zf(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):ne(o)?e.check(jf,s,i)(o):(e.consume(o),a)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Yf(e,t,n){const r=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Se(e,i,"linePrefix")}function i(s){if(s===null||ne(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function ro(e,t,n,r,a,i,s,o,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return f;function f(_){return _===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(_),e.exit(i),m):_===null||_===32||_===41||ya(_)?n(_):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),x(_))}function m(_){return _===62?(e.enter(i),e.consume(_),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(_))}function h(_){return _===62?(e.exit("chunkString"),e.exit(o),m(_)):_===null||_===60||ne(_)?n(_):(e.consume(_),_===92?y:h)}function y(_){return _===60||_===62||_===92?(e.consume(_),h):h(_)}function x(_){return!d&&(_===null||_===41||Ye(_))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(_)):d<c&&_===40?(e.consume(_),d++,x):_===41?(e.consume(_),d--,x):_===null||_===32||_===40||ya(_)?n(_):(e.consume(_),_===92?L:x)}function L(_){return _===40||_===41||_===92?(e.consume(_),x):x(_)}}function ao(e,t,n,r,a,i){const s=this;let o=0,l;return c;function c(h){return e.enter(r),e.enter(a),e.consume(h),e.exit(a),e.enter(i),d}function d(h){return o>999||h===null||h===91||h===93&&!l||h===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):ne(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||ne(h)||o++>999?(e.exit("chunkString"),d(h)):(e.consume(h),l||(l=!Ee(h)),h===92?m:f)}function m(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}}function io(e,t,n,r,a,i){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(r),e.enter(a),e.consume(m),e.exit(a),s=m===40?41:m,l):n(m)}function l(m){return m===s?(e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):(e.enter(i),c(m))}function c(m){return m===s?(e.exit(i),l(s)):m===null?n(m):ne(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Se(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===s||m===null||ne(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:d)}function f(m){return m===s||m===92?(e.consume(m),d):d(m)}}function xn(e,t){let n;return r;function r(a){return ne(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Ee(a)?Se(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Gf={name:"definition",tokenize:qf},Vf={tokenize:Wf,partial:!0};function qf(e,t,n){const r=this;let a;return i;function i(h){return e.enter("definition"),s(h)}function s(h){return ao.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return a=Kt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Ye(h)?xn(e,c)(h):c(h)}function c(h){return ro(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function d(h){return e.attempt(Vf,f,f)(h)}function f(h){return Ee(h)?Se(e,m,"whitespace")(h):m(h)}function m(h){return h===null||ne(h)?(e.exit("definition"),r.parser.defined.push(a),t(h)):n(h)}}function Wf(e,t,n){return r;function r(o){return Ye(o)?xn(e,a)(o):n(o)}function a(o){return io(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return Ee(o)?Se(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ne(o)?t(o):n(o)}}const Xf={name:"hardBreakEscape",tokenize:Qf};function Qf(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ne(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const Kf={name:"headingAtx",tokenize:Jf,resolve:Zf};function Zf(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},dt(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Jf(e,t,n){let r=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||Ye(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||ne(d)?(e.exit("atxHeading"),t(d)):Ee(d)?Se(e,o,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),o(d))}function c(d){return d===null||d===35||Ye(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),c)}}const e0=["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"],Ji=["pre","script","style","textarea"],t0={name:"htmlFlow",tokenize:i0,resolveTo:a0,concrete:!0},n0={tokenize:u0,partial:!0},r0={tokenize:s0,partial:!0};function a0(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function i0(e,t,n){const r=this;let a,i,s,o,l;return c;function c(g){return d(g)}function d(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),m):g===47?(e.consume(g),i=!0,x):g===63?(e.consume(g),a=3,r.interrupt?t:p):lt(g)?(e.consume(g),s=String.fromCharCode(g),L):n(g)}function m(g){return g===45?(e.consume(g),a=2,h):g===91?(e.consume(g),a=5,o=0,y):lt(g)?(e.consume(g),a=4,r.interrupt?t:p):n(g)}function h(g){return g===45?(e.consume(g),r.interrupt?t:p):n(g)}function y(g){const W="CDATA[";return g===W.charCodeAt(o++)?(e.consume(g),o===W.length?r.interrupt?t:B:y):n(g)}function x(g){return lt(g)?(e.consume(g),s=String.fromCharCode(g),L):n(g)}function L(g){if(g===null||g===47||g===62||Ye(g)){const W=g===47,K=s.toLowerCase();return!W&&!i&&Ji.includes(K)?(a=1,r.interrupt?t(g):B(g)):e0.includes(s.toLowerCase())?(a=6,W?(e.consume(g),_):r.interrupt?t(g):B(g)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):i?R(g):O(g))}return g===45||We(g)?(e.consume(g),s+=String.fromCharCode(g),L):n(g)}function _(g){return g===62?(e.consume(g),r.interrupt?t:B):n(g)}function R(g){return Ee(g)?(e.consume(g),R):G(g)}function O(g){return g===47?(e.consume(g),G):g===58||g===95||lt(g)?(e.consume(g),U):Ee(g)?(e.consume(g),O):G(g)}function U(g){return g===45||g===46||g===58||g===95||We(g)?(e.consume(g),U):S(g)}function S(g){return g===61?(e.consume(g),w):Ee(g)?(e.consume(g),S):O(g)}function w(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),l=g,Q):Ee(g)?(e.consume(g),w):fe(g)}function Q(g){return g===l?(e.consume(g),l=null,re):g===null||ne(g)?n(g):(e.consume(g),Q)}function fe(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||Ye(g)?S(g):(e.consume(g),fe)}function re(g){return g===47||g===62||Ee(g)?O(g):n(g)}function G(g){return g===62?(e.consume(g),j):n(g)}function j(g){return g===null||ne(g)?B(g):Ee(g)?(e.consume(g),j):n(g)}function B(g){return g===45&&a===2?(e.consume(g),he):g===60&&a===1?(e.consume(g),ue):g===62&&a===4?(e.consume(g),F):g===63&&a===3?(e.consume(g),p):g===93&&a===5?(e.consume(g),we):ne(g)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(n0,Y,$)(g)):g===null||ne(g)?(e.exit("htmlFlowData"),$(g)):(e.consume(g),B)}function $(g){return e.check(r0,z,Y)(g)}function z(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),Z}function Z(g){return g===null||ne(g)?$(g):(e.enter("htmlFlowData"),B(g))}function he(g){return g===45?(e.consume(g),p):B(g)}function ue(g){return g===47?(e.consume(g),s="",be):B(g)}function be(g){if(g===62){const W=s.toLowerCase();return Ji.includes(W)?(e.consume(g),F):B(g)}return lt(g)&&s.length<8?(e.consume(g),s+=String.fromCharCode(g),be):B(g)}function we(g){return g===93?(e.consume(g),p):B(g)}function p(g){return g===62?(e.consume(g),F):g===45&&a===2?(e.consume(g),p):B(g)}function F(g){return g===null||ne(g)?(e.exit("htmlFlowData"),Y(g)):(e.consume(g),F)}function Y(g){return e.exit("htmlFlow"),t(g)}}function s0(e,t,n){const r=this;return a;function a(s){return ne(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function u0(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(yr,t,n)}}const o0={name:"htmlText",tokenize:l0};function l0(e,t,n){const r=this;let a,i,s;return o;function o(p){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(p),l}function l(p){return p===33?(e.consume(p),c):p===47?(e.consume(p),S):p===63?(e.consume(p),O):lt(p)?(e.consume(p),fe):n(p)}function c(p){return p===45?(e.consume(p),d):p===91?(e.consume(p),i=0,y):lt(p)?(e.consume(p),R):n(p)}function d(p){return p===45?(e.consume(p),h):n(p)}function f(p){return p===null?n(p):p===45?(e.consume(p),m):ne(p)?(s=f,ue(p)):(e.consume(p),f)}function m(p){return p===45?(e.consume(p),h):f(p)}function h(p){return p===62?he(p):p===45?m(p):f(p)}function y(p){const F="CDATA[";return p===F.charCodeAt(i++)?(e.consume(p),i===F.length?x:y):n(p)}function x(p){return p===null?n(p):p===93?(e.consume(p),L):ne(p)?(s=x,ue(p)):(e.consume(p),x)}function L(p){return p===93?(e.consume(p),_):x(p)}function _(p){return p===62?he(p):p===93?(e.consume(p),_):x(p)}function R(p){return p===null||p===62?he(p):ne(p)?(s=R,ue(p)):(e.consume(p),R)}function O(p){return p===null?n(p):p===63?(e.consume(p),U):ne(p)?(s=O,ue(p)):(e.consume(p),O)}function U(p){return p===62?he(p):O(p)}function S(p){return lt(p)?(e.consume(p),w):n(p)}function w(p){return p===45||We(p)?(e.consume(p),w):Q(p)}function Q(p){return ne(p)?(s=Q,ue(p)):Ee(p)?(e.consume(p),Q):he(p)}function fe(p){return p===45||We(p)?(e.consume(p),fe):p===47||p===62||Ye(p)?re(p):n(p)}function re(p){return p===47?(e.consume(p),he):p===58||p===95||lt(p)?(e.consume(p),G):ne(p)?(s=re,ue(p)):Ee(p)?(e.consume(p),re):he(p)}function G(p){return p===45||p===46||p===58||p===95||We(p)?(e.consume(p),G):j(p)}function j(p){return p===61?(e.consume(p),B):ne(p)?(s=j,ue(p)):Ee(p)?(e.consume(p),j):re(p)}function B(p){return p===null||p===60||p===61||p===62||p===96?n(p):p===34||p===39?(e.consume(p),a=p,$):ne(p)?(s=B,ue(p)):Ee(p)?(e.consume(p),B):(e.consume(p),z)}function $(p){return p===a?(e.consume(p),a=void 0,Z):p===null?n(p):ne(p)?(s=$,ue(p)):(e.consume(p),$)}function z(p){return p===null||p===34||p===39||p===60||p===61||p===96?n(p):p===47||p===62||Ye(p)?re(p):(e.consume(p),z)}function Z(p){return p===47||p===62||Ye(p)?re(p):n(p)}function he(p){return p===62?(e.consume(p),e.exit("htmlTextData"),e.exit("htmlText"),t):n(p)}function ue(p){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),be}function be(p){return Ee(p)?Se(e,we,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p):we(p)}function we(p){return e.enter("htmlTextData"),s(p)}}const Qa={name:"labelEnd",tokenize:p0,resolveTo:m0,resolveAll:h0},c0={tokenize:b0},d0={tokenize:E0},f0={tokenize:g0};function h0(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function m0(e,t){let n=e.length,r=0,a,i,s,o;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(s=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[s][1].end)},d={type:"labelText",start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[s-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=Xe(o,e.slice(i+1,i+r+3)),o=Xe(o,[["enter",d,t]]),o=Xe(o,Xa(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=Xe(o,[["exit",d,t],e[s-2],e[s-1],["exit",c,t]]),o=Xe(o,e.slice(s+1)),o=Xe(o,[["exit",l,t]]),dt(e,i,e.length,o),e}function p0(e,t,n){const r=this;let a=r.events.length,i,s;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return o;function o(m){return i?i._inactive?f(m):(s=r.parser.defined.includes(Kt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),l):n(m)}function l(m){return m===40?e.attempt(c0,d,s?d:f)(m):m===91?e.attempt(d0,d,s?c:f)(m):s?d(m):f(m)}function c(m){return e.attempt(f0,d,f)(m)}function d(m){return t(m)}function f(m){return i._balanced=!0,n(m)}}function b0(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),a}function a(f){return Ye(f)?xn(e,i)(f):i(f)}function i(f){return f===41?d(f):ro(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Ye(f)?xn(e,l)(f):d(f)}function o(f){return n(f)}function l(f){return f===34||f===39||f===40?io(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function c(f){return Ye(f)?xn(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function E0(e,t,n){const r=this;return a;function a(o){return ao.call(r,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(Kt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function g0(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const T0={name:"labelStartImage",tokenize:y0,resolveAll:Qa.resolveAll};function y0(e,t,n){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const x0={name:"labelStartLink",tokenize:A0,resolveAll:Qa.resolveAll};function A0(e,t,n){const r=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Ur={name:"lineEnding",tokenize:_0};function _0(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Se(e,t,"linePrefix")}}const er={name:"thematicBreak",tokenize:S0};function S0(e,t,n){let r=0,a;return i;function i(c){return e.enter("thematicBreak"),s(c)}function s(c){return a=c,o(c)}function o(c){return c===a?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||ne(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===a?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Ee(c)?Se(e,o,"whitespace")(c):o(c))}}const $e={name:"list",tokenize:N0,continuation:{tokenize:v0},exit:O0},C0={tokenize:L0,partial:!0},I0={tokenize:w0,partial:!0};function N0(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(h){const y=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:xa(h)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(er,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return xa(h)&&++s<10?(e.consume(h),l):(!r.interrupt||s<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(yr,r.interrupt?n:d,e.attempt(C0,m,f))}function d(h){return r.containerState.initialBlankLine=!0,i++,m(h)}function f(h){return Ee(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),m):n(h)}function m(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function v0(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(yr,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Se(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!Ee(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(I0,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Se(e,e.attempt($e,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function w0(e,t,n){const r=this;return Se(e,a,"listItemIndent",r.containerState.size+1);function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function O0(e){e.exit(this.containerState.type)}function L0(e,t,n){const r=this;return Se(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=r.events[r.events.length-1];return!Ee(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const es={name:"setextUnderline",tokenize:P0,resolveTo:R0};function R0(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function P0(e,t,n){const r=this;let a;return i;function i(c){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),a=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===a?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),Ee(c)?Se(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||ne(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const D0={tokenize:k0};function k0(e){const t=this,n=e.attempt(yr,r,e.attempt(this.parser.constructs.flowInitial,a,Se(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Uf,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const M0={resolveAll:uo()},B0=so("string"),F0=so("text");function so(e){return{tokenize:t,resolveAll:uo(e==="text"?H0:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,s,o);return s;function s(d){return c(d)?i(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),i(d)):(n.consume(d),l)}function c(d){if(d===null)return!0;const f=a[d];let m=-1;if(f)for(;++m<f.length;){const h=f[m];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function uo(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function H0(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,s=-1,o=0,l;for(;i--;){const c=a[i];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(c===-2)l=!0,o++;else if(c!==-1){i++;break}}if(o){const c={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-o,offset:r.end.offset-o,_index:r.start._index+i,_bufferIndex:i?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function U0(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const a={},i=[];let s=[],o=[];const l={consume:R,enter:O,exit:U,attempt:Q(S),check:Q(w),interrupt:Q(w,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:m,now:y,defineSkip:x,write:f};let d=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function f(j){return s=Xe(s,j),L(),s[s.length-1]!==null?[]:(fe(t,0),c.events=Xa(i,c.events,c),c.events)}function m(j,B){return $0(h(j),B)}function h(j){return j0(s,j)}function y(){const{line:j,column:B,offset:$,_index:z,_bufferIndex:Z}=r;return{line:j,column:B,offset:$,_index:z,_bufferIndex:Z}}function x(j){a[j.line]=j.column,G()}function L(){let j;for(;r._index<s.length;){const B=s[r._index];if(typeof B=="string")for(j=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===j&&r._bufferIndex<B.length;)_(B.charCodeAt(r._bufferIndex));else _(B)}}function _(j){d=d(j)}function R(j){ne(j)?(r.line++,r.column=1,r.offset+=j===-3?2:1,G()):j!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=j}function O(j,B){const $=B||{};return $.type=j,$.start=y(),c.events.push(["enter",$,c]),o.push($),$}function U(j){const B=o.pop();return B.end=y(),c.events.push(["exit",B,c]),B}function S(j,B){fe(j,B.from)}function w(j,B){B.restore()}function Q(j,B){return $;function $(z,Z,he){let ue,be,we,p;return Array.isArray(z)?Y(z):"tokenize"in z?Y([z]):F(z);function F(V){return J;function J(ee){const te=ee!==null&&V[ee],ae=ee!==null&&V.null,ve=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return Y(ve)(ee)}}function Y(V){return ue=V,be=0,V.length===0?he:g(V[be])}function g(V){return J;function J(ee){return p=re(),we=V,V.partial||(c.currentConstruct=V),V.name&&c.parser.constructs.disable.null.includes(V.name)?K():V.tokenize.call(B?Object.assign(Object.create(c),B):c,l,W,K)(ee)}}function W(V){return j(we,p),Z}function K(V){return p.restore(),++be<ue.length?g(ue[be]):he}}}function fe(j,B){j.resolveAll&&!i.includes(j)&&i.push(j),j.resolve&&dt(c.events,B,c.events.length-B,j.resolve(c.events.slice(B),c)),j.resolveTo&&(c.events=j.resolveTo(c.events,c))}function re(){const j=y(),B=c.previous,$=c.currentConstruct,z=c.events.length,Z=Array.from(o);return{restore:he,from:z};function he(){r=j,c.previous=B,c.currentConstruct=$,c.events.length=z,o=Z,G()}}function G(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function j0(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(r,i)];else{if(s=e.slice(n,a),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function $0(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
49
|
+
`;break}case-3:{s=`\r
|
|
50
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,r.push(s)}return r.join("")}const z0={42:$e,43:$e,45:$e,48:$e,49:$e,50:$e,51:$e,52:$e,53:$e,54:$e,55:$e,56:$e,57:$e,62:Ju},Y0={91:Gf},G0={[-2]:Hr,[-1]:Hr,32:Hr},V0={35:Kf,42:er,45:[es,er],60:t0,61:es,95:er,96:Zi,126:Zi},q0={38:to,92:eo},W0={[-5]:Ur,[-4]:Ur,[-3]:Ur,33:T0,38:to,42:Aa,60:[Af,o0],91:x0,92:[Xf,eo],93:Qa,95:Aa,96:kf},X0={null:[Aa,M0]},Q0={null:[42,95]},K0={null:[]},Z0=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Q0,contentInitial:Y0,disable:K0,document:z0,flow:V0,flowInitial:G0,insideSpan:X0,string:q0,text:W0},Symbol.toStringTag,{value:"Module"}));function J0(e){const n=uf([Z0,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:a(pf),document:a(Ef),flow:a(D0),string:a(B0),text:a(F0)};return r;function a(i){return s;function s(o){return U0(r,i,o)}}}function eh(e){for(;!no(e););return e}const ts=/[\0\t\n\r]/g;function th(){let e=1,t="",n=!0,r;return a;function a(i,s,o){const l=[];let c,d,f,m,h;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(ts.lastIndex=f,c=ts.exec(i),m=c&&c.index!==void 0?c.index:i.length,h=i.charCodeAt(m),!c){t=i.slice(f);break}if(h===10&&f===m&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<m&&(l.push(i.slice(f,m)),e+=m-f),h){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=m+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const nh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rh(e){return e.replace(nh,ah)}function ah(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return Zu(n.slice(i?2:1),i?16:10)}return Wa(n)||e}const oo={}.hasOwnProperty;function ih(e,t,n){return typeof t!="string"&&(n=t,t=void 0),sh(n)(eh(J0(n).document().write(th()(e,t,!0))))}function sh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(It),autolinkProtocol:re,autolinkEmail:re,atxHeading:i(De),blockQuote:i(te),characterEscape:re,characterReference:re,codeFenced:i(ae),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(ae,s),codeText:i(ve,s),codeTextData:re,data:re,codeFlowValue:re,definition:i(H),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Oe),hardBreakEscape:i(Ge),hardBreakTrailing:i(Ge),htmlFlow:i(Ct,s),htmlFlowData:re,htmlText:i(Ct,s),htmlTextData:re,image:i(He),label:s,link:i(It),listItem:i(se),listItemValue:m,listOrdered:i(Nt,f),listUnordered:i(Nt),paragraph:i(ce),reference:g,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(De),strong:i(xe),thematicBreak:i(Ne)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:ee,autolinkProtocol:J,blockQuote:l(),characterEscapeValue:G,characterReferenceMarkerHexadecimal:K,characterReferenceMarkerNumeric:K,characterReferenceValue:V,codeFenced:l(L),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:y,codeFlowValue:G,codeIndented:l(_),codeText:l(Z),codeTextData:G,data:G,definition:l(),definitionDestinationString:U,definitionLabelString:R,definitionTitleString:O,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l($),htmlFlowData:G,htmlText:l(z),htmlTextData:G,image:l(ue),label:we,labelText:be,lineEnding:j,link:l(he),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:W,resourceDestinationString:p,resourceTitleString:F,resource:Y,setextHeading:l(fe),setextHeadingLineSequence:Q,setextHeadingText:w,strong:l(),thematicBreak:l()}};lo(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(v){let D={type:"root",children:[]};const X={stack:[D],tokenStack:[],config:t,enter:o,exit:c,buffer:s,resume:d,data:n},le=[];let Ae=-1;for(;++Ae<v.length;)if(v[Ae][1].type==="listOrdered"||v[Ae][1].type==="listUnordered")if(v[Ae][0]==="enter")le.push(Ae);else{const nt=le.pop();Ae=a(v,nt,Ae)}for(Ae=-1;++Ae<v.length;){const nt=t[v[Ae][0]];oo.call(nt,v[Ae][1].type)&&nt[v[Ae][1].type].call(Object.assign({sliceSerialize:v[Ae][2].sliceSerialize},X),v[Ae][1])}if(X.tokenStack.length>0){const nt=X.tokenStack[X.tokenStack.length-1];(nt[1]||ns).call(X,void 0,nt[0])}for(D.position={start:Et(v.length>0?v[0][1].start:{line:1,column:1,offset:0}),end:Et(v.length>0?v[v.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae<t.transforms.length;)D=t.transforms[Ae](D)||D;return D}function a(v,D,X){let le=D-1,Ae=-1,nt=!1,vt,mt,cn,dn;for(;++le<=X;){const Ve=v[le];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?Ae++:Ae--,dn=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(vt&&!dn&&!Ae&&!cn&&(cn=le),dn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dn=void 0}if(!Ae&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||Ae===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(vt){let $t=le;for(mt=void 0;$t--;){const pt=v[$t];if(pt[1].type==="lineEnding"||pt[1].type==="lineEndingBlank"){if(pt[0]==="exit")continue;mt&&(v[mt][1].type="lineEndingBlank",nt=!0),pt[1].type="lineEnding",mt=$t}else if(!(pt[1].type==="linePrefix"||pt[1].type==="blockQuotePrefix"||pt[1].type==="blockQuotePrefixWhitespace"||pt[1].type==="blockQuoteMarker"||pt[1].type==="listItemIndent"))break}cn&&(!mt||cn<mt)&&(vt._spread=!0),vt.end=Object.assign({},mt?v[mt][1].start:Ve[1].end),v.splice(mt||le,0,["exit",vt,Ve[2]]),le++,X++}if(Ve[1].type==="listItemPrefix"){const $t={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};vt=$t,v.splice(le,0,["enter",$t,Ve[2]]),le++,X++,cn=void 0,dn=!0}}}return v[D][1]._spread=nt,X}function i(v,D){return X;function X(le){o.call(this,v(le),le),D&&D.call(this,le)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(v,D,X){this.stack[this.stack.length-1].children.push(v),this.stack.push(v),this.tokenStack.push([D,X]),v.position={start:Et(D.start),end:void 0}}function l(v){return D;function D(X){v&&v.call(this,X),c.call(this,X)}}function c(v,D){const X=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==v.type&&(D?D.call(this,v,le[0]):(le[1]||ns).call(this,v,le[0]));else throw new Error("Cannot close `"+v.type+"` ("+yn({start:v.start,end:v.end})+"): it’s not open");X.position.end=Et(v.end)}function d(){return af(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(v){if(this.data.expectingFirstListItemValue){const D=this.stack[this.stack.length-2];D.start=Number.parseInt(this.sliceSerialize(v),10),this.data.expectingFirstListItemValue=void 0}}function h(){const v=this.resume(),D=this.stack[this.stack.length-1];D.lang=v}function y(){const v=this.resume(),D=this.stack[this.stack.length-1];D.meta=v}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function L(){const v=this.resume(),D=this.stack[this.stack.length-1];D.value=v.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const v=this.resume(),D=this.stack[this.stack.length-1];D.value=v.replace(/(\r?\n|\r)$/g,"")}function R(v){const D=this.resume(),X=this.stack[this.stack.length-1];X.label=D,X.identifier=Kt(this.sliceSerialize(v)).toLowerCase()}function O(){const v=this.resume(),D=this.stack[this.stack.length-1];D.title=v}function U(){const v=this.resume(),D=this.stack[this.stack.length-1];D.url=v}function S(v){const D=this.stack[this.stack.length-1];if(!D.depth){const X=this.sliceSerialize(v).length;D.depth=X}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function Q(v){const D=this.stack[this.stack.length-1];D.depth=this.sliceSerialize(v).codePointAt(0)===61?1:2}function fe(){this.data.setextHeadingSlurpLineEnding=void 0}function re(v){const X=this.stack[this.stack.length-1].children;let le=X[X.length-1];(!le||le.type!=="text")&&(le=ge(),le.position={start:Et(v.start),end:void 0},X.push(le)),this.stack.push(le)}function G(v){const D=this.stack.pop();D.value+=this.sliceSerialize(v),D.position.end=Et(v.end)}function j(v){const D=this.stack[this.stack.length-1];if(this.data.atHardBreak){const X=D.children[D.children.length-1];X.position.end=Et(v.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(D.type)&&(re.call(this,v),G.call(this,v))}function B(){this.data.atHardBreak=!0}function $(){const v=this.resume(),D=this.stack[this.stack.length-1];D.value=v}function z(){const v=this.resume(),D=this.stack[this.stack.length-1];D.value=v}function Z(){const v=this.resume(),D=this.stack[this.stack.length-1];D.value=v}function he(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=D,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function ue(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=D,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function be(v){const D=this.sliceSerialize(v),X=this.stack[this.stack.length-2];X.label=rh(D),X.identifier=Kt(D).toLowerCase()}function we(){const v=this.stack[this.stack.length-1],D=this.resume(),X=this.stack[this.stack.length-1];if(this.data.inReference=!0,X.type==="link"){const le=v.children;X.children=le}else X.alt=D}function p(){const v=this.resume(),D=this.stack[this.stack.length-1];D.url=v}function F(){const v=this.resume(),D=this.stack[this.stack.length-1];D.title=v}function Y(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function W(v){const D=this.resume(),X=this.stack[this.stack.length-1];X.label=D,X.identifier=Kt(this.sliceSerialize(v)).toLowerCase(),this.data.referenceType="full"}function K(v){this.data.characterReferenceType=v.type}function V(v){const D=this.sliceSerialize(v),X=this.data.characterReferenceType;let le;X?(le=Zu(D,X==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=Wa(D);const Ae=this.stack.pop();Ae.value+=le,Ae.position.end=Et(v.end)}function J(v){G.call(this,v);const D=this.stack[this.stack.length-1];D.url=this.sliceSerialize(v)}function ee(v){G.call(this,v);const D=this.stack[this.stack.length-1];D.url="mailto:"+this.sliceSerialize(v)}function te(){return{type:"blockquote",children:[]}}function ae(){return{type:"code",lang:null,meta:null,value:""}}function ve(){return{type:"inlineCode",value:""}}function H(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Oe(){return{type:"emphasis",children:[]}}function De(){return{type:"heading",depth:0,children:[]}}function Ge(){return{type:"break"}}function Ct(){return{type:"html",value:""}}function He(){return{type:"image",title:null,url:"",alt:null}}function It(){return{type:"link",title:null,url:"",children:[]}}function Nt(v){return{type:"list",ordered:v.type==="listOrdered",start:null,spread:v._spread,children:[]}}function se(v){return{type:"listItem",spread:v._spread,checked:null,children:[]}}function ce(){return{type:"paragraph",children:[]}}function xe(){return{type:"strong",children:[]}}function ge(){return{type:"text",value:""}}function Ne(){return{type:"thematicBreak"}}}function Et(e){return{line:e.line,column:e.column,offset:e.offset}}function lo(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?lo(e,r):uh(e,r)}}function uh(e,t){let n;for(n in t)if(oo.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ns(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+yn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+yn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+yn({start:t.start,end:t.end})+") is still open")}function oh(e){const t=this;t.parser=n;function n(r){return ih(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function lh(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ch(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
43
51
|
`}]}function dh(e,t){const n=t.value?t.value+`
|
|
44
|
-
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function fh(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hh(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mh(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=
|
|
45
|
-
`}),d.type==="element"&&d.tagName==="p"&&!a?s.push(...d.children):s.push(d)}const
|
|
46
|
-
`});const
|
|
52
|
+
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function fh(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hh(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mh(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=an(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function ph(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bh(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function co(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=r:a.push({type:"text",value:r}),a}function Eh(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return co(e,t);const a={src:an(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function gh(e,t){const n={src:an(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Th(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function yh(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return co(e,t);const a={href:an(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function xh(e,t){const n={href:an(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ah(e,t,n){const r=e.all(t),a=n?_h(n):fo(t),i={},s=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const d=r[o];(a||o!==0||d.type!=="element"||d.tagName!=="p")&&s.push({type:"text",value:`
|
|
53
|
+
`}),d.type==="element"&&d.tagName==="p"&&!a?s.push(...d.children):s.push(d)}const l=r[r.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
54
|
+
`});const c={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,c),e.applyData(t,c)}function _h(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=fo(n[r])}return t}function fo(e){const t=e.spread;return t??e.children.length>1}function Sh(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const s=r[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function Ch(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ih(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Nh(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vh(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),a.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=ft(t.children[1]),l=Tr(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),a.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function wh(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const c=[];for(;++l<o;){const f=t.children[l],m={},h=s?s[l]:void 0;h&&(m.align=h);let y={type:"element",tagName:i,properties:m,children:[]};f&&(y.children=e.all(f),e.patch(f,y),y=e.applyData(f,y)),c.push(y)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,d),e.applyData(t,d)}function Oh(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const rs=9,as=32;function Lh(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(is(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(is(t.slice(a),a>0,!1)),i.join("")}function is(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===rs||i===as;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===rs||i===as;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function Rh(e,t){const n={type:"text",value:Lh(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ph(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Dh={blockquote:lh,break:ch,code:dh,delete:fh,emphasis:hh,footnoteReference:mh,heading:ph,html:bh,imageReference:Eh,image:gh,inlineCode:Th,linkReference:yh,link:xh,listItem:Ah,list:Sh,paragraph:Ch,root:Ih,strong:Nh,table:vh,tableCell:Oh,tableRow:wh,text:Rh,thematicBreak:Ph,toml:Vn,yaml:Vn,definition:Vn,footnoteDefinition:Vn};function Vn(){}const ho=-1,xr=0,rr=1,ar=2,Ka=3,Za=4,Ja=5,ei=6,mo=7,po=8,ss=typeof self=="object"?self:globalThis,kh=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,s]=t[a];switch(i){case xr:case ho:return n(s,a);case rr:{const o=n([],a);for(const l of s)o.push(r(l));return o}case ar:{const o=n({},a);for(const[l,c]of s)o[r(l)]=r(c);return o}case Ka:return n(new Date(s),a);case Za:{const{source:o,flags:l}=s;return n(new RegExp(o,l),a)}case Ja:{const o=n(new Map,a);for(const[l,c]of s)o.set(r(l),r(c));return o}case ei:{const o=n(new Set,a);for(const l of s)o.add(r(l));return o}case mo:{const{name:o,message:l}=s;return n(new ss[o](l),a)}case po:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a)}return n(new ss[i](s),a)};return r},us=e=>kh(new Map,e)(0),Yt="",{toString:Mh}={},{keys:Bh}=Object,fn=e=>{const t=typeof e;if(t!=="object"||!e)return[xr,t];const n=Mh.call(e).slice(8,-1);switch(n){case"Array":return[rr,Yt];case"Object":return[ar,Yt];case"Date":return[Ka,Yt];case"RegExp":return[Za,Yt];case"Map":return[Ja,Yt];case"Set":return[ei,Yt]}return n.includes("Array")?[rr,n]:n.includes("Error")?[mo,n]:[ar,n]},qn=([e,t])=>e===xr&&(t==="function"||t==="symbol"),Fh=(e,t,n,r)=>{const a=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},i=s=>{if(n.has(s))return n.get(s);let[o,l]=fn(s);switch(o){case xr:{let d=s;switch(l){case"bigint":o=po,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return a([ho],s)}return a([o,d],s)}case rr:{if(l)return a([l,[...s]],s);const d=[],f=a([o,d],s);for(const m of s)d.push(i(m));return f}case ar:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());const d=[],f=a([o,d],s);for(const m of Bh(s))(e||!qn(fn(s[m])))&&d.push([i(m),i(s[m])]);return f}case Ka:return a([o,s.toISOString()],s);case Za:{const{source:d,flags:f}=s;return a([o,{source:d,flags:f}],s)}case Ja:{const d=[],f=a([o,d],s);for(const[m,h]of s)(e||!(qn(fn(m))||qn(fn(h))))&&d.push([i(m),i(h)]);return f}case ei:{const d=[],f=a([o,d],s);for(const m of s)(e||!qn(fn(m)))&&d.push(i(m));return f}}const{message:c}=s;return a([o,{name:l,message:c}],s)};return i},os=(e,{json:t,lossy:n}={})=>{const r=[];return Fh(!(t||n),!!t,new Map,r)(e),r},en=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?us(os(e,t)):structuredClone(e):(e,t)=>us(os(e,t));function Hh(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Uh(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function jh(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Hh,r=e.options.footnoteBackLabel||Uh,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const d=e.all(c),f=String(c.identifier).toUpperCase(),m=an(f.toLowerCase());let h=0;const y=[],x=e.footnoteCounts.get(f);for(;x!==void 0&&++h<=x;){y.length>0&&y.push({type:"text",value:" "});let R=typeof n=="string"?n:n(l,h);typeof R=="string"&&(R={type:"text",value:R}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(R)?R:[R]})}const L=d[d.length-1];if(L&&L.type==="element"&&L.tagName==="p"){const R=L.children[L.children.length-1];R&&R.type==="text"?R.value+=" ":L.children.push({type:"text",value:" "}),L.children.push(...y)}else d.push(...y);const _={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(d,!0)};e.patch(c,_),o.push(_)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...en(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
47
55
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
48
|
-
`}]}}const
|
|
56
|
+
`}]}}const bo=(function(e){if(e==null)return Gh;if(typeof e=="function")return Ar(e);if(typeof e=="object")return Array.isArray(e)?$h(e):zh(e);if(typeof e=="string")return Yh(e);throw new Error("Expected function, string, or object as test")});function $h(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=bo(e[n]);return Ar(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function zh(e){const t=e;return Ar(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function Yh(e){return Ar(t);function t(n){return n&&n.type===e}}function Ar(e){return t;function t(n,r,a){return!!(Vh(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Gh(){return!0}function Vh(e){return e!==null&&typeof e=="object"&&"type"in e}const Eo=[],qh=!0,ls=!1,Wh="skip";function Xh(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=bo(a),s=r?-1:1;o(e,void 0,[])();function o(l,c,d){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return m;function m(){let h=Eo,y,x,L;if((!t||i(l,c,d[d.length-1]||void 0))&&(h=Qh(n(l,d)),h[0]===ls))return h;if("children"in l&&l.children){const _=l;if(_.children&&h[0]!==Wh)for(x=(r?_.children.length:-1)+s,L=d.concat(_);x>-1&&x<_.children.length;){const R=_.children[x];if(y=o(R,x,L)(),y[0]===ls)return y;x=typeof y[1]=="number"?y[1]:x+s}}return h}}}function Qh(e){return Array.isArray(e)?e:typeof e=="number"?[qh,e]:e==null?Eo:[e]}function ti(e,t,n,r){let a,i,s;typeof t=="function"&&typeof n!="function"?(i=void 0,s=t,a=n):(i=t,s=n,a=r),Xh(e,i,o,a);function o(l,c){const d=c[c.length-1],f=d?d.children.indexOf(l):void 0;return s(l,f,d)}}const _a={}.hasOwnProperty,Kh={};function Zh(e,t){const n=t||Kh,r=new Map,a=new Map,i=new Map,s={...Dh,...n.handlers},o={all:c,applyData:em,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:l,options:n,patch:Jh,wrap:nm};return ti(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:a,m=String(d.identifier).toUpperCase();f.has(m)||f.set(m,d)}}),o;function l(d,f){const m=d.type,h=o.handlers[m];if(_a.call(o.handlers,m)&&h)return h(o,d,f);if(o.options.passThrough&&o.options.passThrough.includes(m)){if("children"in d){const{children:x,...L}=d,_=en(L);return _.children=o.all(d),_}return en(d)}return(o.options.unknownHandler||tm)(o,d,f)}function c(d){const f=[];if("children"in d){const m=d.children;let h=-1;for(;++h<m.length;){const y=o.one(m[h],d);if(y){if(h&&m[h-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=cs(y.value)),!Array.isArray(y)&&y.type==="element")){const x=y.children[0];x&&x.type==="text"&&(x.value=cs(x.value))}Array.isArray(y)?f.push(...y):f.push(y)}}}return f}}function Jh(e,t){e.position&&(t.position=Dd(e))}function em(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&i&&Object.assign(n.properties,en(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function tm(e,t){const n=t.data||{},r="value"in t&&!(_a.call(n,"hProperties")||_a.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nm(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
49
57
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
50
58
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
51
|
-
`}),n}function
|
|
52
|
-
`},a)),i}function rm(e,t){return e&&"run"in e?async function(n,r){const a=fs(n,{file:r,...t});await e.run(a,r)}:function(n,r){return fs(n,{file:r,...t||e})}}function hs(e){if(e)throw e}var Vr,ms;function am(){if(ms)return Vr;ms=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},i=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var d=e.call(l,"constructor"),f=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!d&&!f)return!1;var h;for(h in l);return typeof h>"u"||e.call(l,h)},s=function(l,d){n&&d.name==="__proto__"?n(l,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):l[d.name]=d.newValue},o=function(l,d){if(d==="__proto__")if(e.call(l,d)){if(r)return r(l,d).value}else return;return l[d]};return Vr=function c(){var l,d,f,h,m,S,C=arguments[0],P=1,N=arguments.length,M=!1;for(typeof C=="boolean"&&(M=C,C=arguments[1]||{},P=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});P<N;++P)if(l=arguments[P],l!=null)for(d in l)f=o(C,d),h=o(l,d),C!==h&&(M&&h&&(i(h)||(m=a(h)))?(m?(m=!1,S=f&&a(f)?f:[]):S=f&&i(f)?f:{},s(C,{name:d,newValue:c(M,S,h)})):typeof h<"u"&&s(C,{name:d,newValue:h}));return C},Vr}var im=am();const qr=Ba(im);function Sa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function sm(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(c,...l){const d=e[++i];let f=-1;if(c){s(c);return}for(;++f<a.length;)(l[f]===null||l[f]===void 0)&&(l[f]=a[f]);a=l,d?um(d,o)(...l):s(null,...l)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function um(e,t){let n;return r;function r(...s){const o=e.length>s.length;let c;o&&s.push(a);try{c=e.apply(this,s)}catch(l){const d=l;if(o&&n)throw d;return a(d)}o||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(s,...o){n||(n=!0,t(s,...o))}function i(s){a(null,s)}}const st={basename:om,dirname:cm,extname:lm,join:dm,sep:"/"};function om(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');jn(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(r=a):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function cm(e){if(jn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function lm(e){jn(e);let t=e.length,n=-1,r=0,a=-1,i=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function dm(...e){let t=-1,n;for(;++t<e.length;)jn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":fm(n)}function fm(e){jn(e);const t=e.codePointAt(0)===47;let n=hm(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function hm(e,t){let n="",r=0,a=-1,i=0,s=-1,o,c;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",r=0,a=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),r=s-a-1;a=s,i=0}else o===46&&i>-1?i++:i=-1}return n}function jn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const mm={cwd:pm};function pm(){return"/"}function Ca(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function gm(e){if(typeof e=="string")e=new URL(e);else if(!Ca(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return bm(e)}function bm(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Wr=["history","path","basename","stem","extname","dirname"];class mo{constructor(t){let n;t?Ca(t)?n={path:t}:typeof t=="string"||Em(t)?n={value:t}:n=t:n={},this.cwd=mm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Wr.length;){const i=Wr[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)Wr.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?st.basename(this.path):void 0}set basename(t){Qr(t,"basename"),Xr(t,"basename"),this.path=st.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?st.dirname(this.path):void 0}set dirname(t){ps(this.basename,"dirname"),this.path=st.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?st.extname(this.path):void 0}set extname(t){if(Xr(t,"extname"),ps(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=st.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ca(t)&&(t=gm(t)),Qr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?st.basename(this.path,this.extname):void 0}set stem(t){Qr(t,"stem"),Xr(t,"stem"),this.path=st.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Re(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Xr(e,t){if(e&&e.includes(st.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+st.sep+"`")}function Qr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ps(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Em(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Tm=(function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};Object.setPrototypeOf(i,r);const s=Object.getOwnPropertyNames(a);for(const o of s){const c=Object.getOwnPropertyDescriptor(a,o);c&&Object.defineProperty(i,o,c)}return i}),xm={}.hasOwnProperty;class ti extends Tm{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=sm()}copy(){const t=new ti;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(qr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Jr("data",this.frozen),this.namespace[t]=n,this):xm.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Jr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Zn(t),r=this.parser||this.Parser;return Kr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Kr("process",this.parser||this.Parser),Zr("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const o=Zn(t),c=r.parse(o);r.run(c,o,function(d,f,h){if(d||!f||!h)return l(d);const m=f,S=r.stringify(m,h);Sm(S)?h.value=S:h.result=S,l(d,h)});function l(d,f){d||!f?s(d):i?i(f):(A(n,"`done` is defined if `resolve` is not"),n(void 0,f))}}}processSync(t){let n=!1,r;return this.freeze(),Kr("processSync",this.parser||this.Parser),Zr("processSync",this.compiler||this.Compiler),this.process(t,a),bs("processSync","process",n),A(r,"we either bailed on an error or have a tree"),r;function a(i,s){n=!0,hs(i),r=s}}run(t,n,r){gs(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,o){A(typeof n!="function","`file` can’t be a `done` anymore, we checked");const c=Zn(n);a.run(t,c,l);function l(d,f,h){const m=f||t;d?o(d):s?s(m):(A(r,"`done` is defined if `resolve` is not"),r(void 0,m,h))}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),bs("runSync","run",r),A(a,"we either bailed on an error or have a tree"),a;function i(s,o){hs(s),a=o,r=!0}}stringify(t,n){this.freeze();const r=Zn(n),a=this.compiler||this.Compiler;return Zr("stringify",a),gs(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Jr("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(l){if(typeof l=="function")c(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[d,...f]=l;c(d,f)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(l.plugins),l.settings&&(a.settings=qr(!0,a.settings,l.settings))}function o(l){let d=-1;if(l!=null)if(Array.isArray(l))for(;++d<l.length;){const f=l[d];i(f)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function c(l,d){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===l){h=f;break}if(h===-1)r.push([l,...d]);else if(d.length>0){let[m,...S]=d;const C=r[h][1];Sa(C)&&Sa(m)&&(m=qr(!0,C,m)),r[h]=[l,m,...S]}}}}const ym=new ti().freeze();function Kr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Zr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Jr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function gs(e){if(!Sa(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function bs(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zn(e){return Am(e)?e:new mo(e)}function Am(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Sm(e){return typeof e=="string"||Cm(e)}function Cm(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _m="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Es=[],Ts={allowDangerousHtml:!0},Im=/^(https?|ircs?|mailto|xmpp)$/i,Nm=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function po(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,s=e.disallowedElements,o=e.rehypePlugins||Es,c=e.remarkPlugins||Es,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ts}:Ts,d=e.skipHtml,f=e.unwrapDisallowed,h=e.urlTransform||wm,m=ym().use(oh).use(c).use(rm,l).use(o),S=new mo;typeof r=="string"?S.value=r:Fr("Unexpected value `"+r+"` for `children` prop, expected `string`"),t&&s&&Fr("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other");for(const M of Nm)Object.hasOwn(e,M.from)&&Fr("Unexpected `"+M.from+"` prop, "+(M.to?"use `"+M.to+"` instead":"remove it")+" (see <"+_m+"#"+M.id+"> for more info)");const C=m.parse(S);let P=m.runSync(C,S);return a&&(P={type:"element",tagName:"div",properties:{className:a},children:P.type==="root"?P.children:[P]}),ei(P,N),Md(P,{Fragment:O.Fragment,components:i,ignoreInvalidStyle:!0,jsx:O.jsx,jsxs:O.jsxs,passKeys:!0,passNode:!0});function N(M,D,$){if(M.type==="raw"&&$&&typeof D=="number")return d?$.children.splice(D,1):$.children[D]={type:"text",value:M.value},D;if(M.type==="element"){let I;for(I in zr)if(Object.hasOwn(zr,I)&&Object.hasOwn(M.properties,I)){const R=M.properties[I],Q=zr[I];(Q===null||Q.includes(M.tagName))&&(M.properties[I]=h(String(R||""),I,M))}}if(M.type==="element"){let I=t?!t.includes(M.tagName):s?s.includes(M.tagName):!1;if(!I&&n&&typeof D=="number"&&(I=!n(M,D,$)),I&&$&&typeof D=="number")return f&&M.children?$.children.splice(D,1,...M.children):$.children.splice(D,1),D}}}function wm(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||Im.test(e.slice(0,t))?e:""}const xs=/[#.]/g;function vm(e,t){const n=e||"",r={};let a=0,i,s;for(;a<n.length;){xs.lastIndex=a;const o=xs.exec(n),c=n.slice(a,o?o.index:n.length);c&&(i?i==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:s=c,a+=c.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}const Lm=new Set(["button","menu","reset","submit"]),_a={}.hasOwnProperty;function go(e,t,n){const r=n&&Dm(n);function a(i,s,...o){let c=-1,l;if(i==null){l={type:"root",children:[]};const d=s;o.unshift(d)}else if(l=vm(i,t),l.tagName=l.tagName.toLowerCase(),r&&_a.call(r,l.tagName)&&(l.tagName=r[l.tagName]),km(s,l.tagName)){let d;for(d in s)_a.call(s,d)&&Om(e,l.properties,d,s[d])}else o.unshift(s);for(;++c<o.length;)Ia(l.children,o[c]);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function km(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?Lm.has(e.type.toLowerCase()):!("value"in e)}function Om(e,t,n,r){const a=Tr(e,n);let i=-1,s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?a.spaceSeparated?s=Bi(r):a.commaSeparated?s=Oi(r):a.commaOrSpaceSeparated?s=Bi(Oi(r).join(" ")):s=ys(a,a.property,r):Array.isArray(r)?s=r.concat():s=a.property==="style"?Rm(r):String(r);if(Array.isArray(s)){const o=[];for(;++i<s.length;){const c=ys(a,a.property,s[i]);o[i]=c}s=o}if(a.property==="className"&&Array.isArray(t.className)){const o=s;s=t.className.concat(o)}t[a.property]=s}}function Ia(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Ia(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ia(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function ys(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||On(n)===On(t)))return!0}return n}function Rm(e){const t=[];let n;for(n in e)_a.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function Dm(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const Pm=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Mm=go(zn,"div"),Bm=go(It,"g",Pm);function Fm(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const c=As(t,n[s-1]);o=c===-1?t.length+1:c+1,n[s]=o}if(o>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],c=As(t,o),l=c===-1?t.length+1:c+1;if(o===l)break;n.push(l)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function As(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
53
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Bt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},bo={}.hasOwnProperty,Hm=Object.prototype;function Um(e,t){const n=t||{};return ni({file:n.file||void 0,location:!1,schema:n.space==="svg"?It:zn,verbose:n.verbose||!1},e)}function ni(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},ar(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Eo(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=Fm(i),o=s.toPoint(0),c=s.toPoint(i.length);A(o,"expected `start`"),A(c,"expected `end`"),n.position={start:o,end:c}}return n}case"#documentType":{const r=t;return n={type:"doctype"},ar(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},ar(e,r,n),n}default:return n=zm(e,t),n}}function Eo(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=ni(e,t[n]);r.push(a)}return r}function zm(e,t){const n=e.schema;e.schema=t.namespaceURI===Bt.svg?It:zn;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],c=(o.prefix?o.prefix+":":"")+o.name;bo.call(Hm,c)||(a[c]=o.value)}const s=(e.schema.space==="svg"?Bm:Mm)(t.tagName,a,Eo(e,t.childNodes));if(ar(e,t,s),s.tagName==="template"){const o=t,c=o.sourceCodeLocation,l=c&&c.startTag&&Jt(c.startTag),d=c&&c.endTag&&Jt(c.endTag),f=ni(e,o.content);l&&d&&e.file&&(f.position={start:l.end,end:d.start}),s.content=f}return e.schema=n,s}function ar(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=jm(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function jm(e,t,n){const r=Jt(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(n.attrs)for(s in n.attrs)bo.call(n.attrs,s)&&(i[Tr(e.schema,s).property]=Jt(n.attrs[s]));A(n.startTag,"a start tag should exist");const o=Jt(n.startTag),c=n.endTag?Jt(n.endTag):void 0,l={opening:o};c&&(l.closing=c),l.properties=i,t.data={position:l}}}return r}function Jt(e){const t=Ss({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Ss({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Ss(e){return e.line&&e.column?e:void 0}const Cs={}.hasOwnProperty;function To(e,t){const n=t||{};function r(a,...i){let s=r.invalid;const o=r.handlers;if(a&&Cs.call(a,e)){const c=String(a[e]);s=Cs.call(o,c)?o[c]:r.unknown}if(s)return s.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const $m={},Gm={}.hasOwnProperty,xo=To("type",{handlers:{root:Vm,element:Km,text:Xm,comment:Qm,doctype:Wm}});function Ym(e,t){const r=(t||$m).space;return xo(e,r==="svg"?It:zn)}function Vm(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ri(e.children,n,t),ln(e,n),n}function qm(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ri(e.children,n,t),ln(e,n),n}function Wm(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ln(e,t),t}function Xm(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ln(e,t),t}function Qm(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ln(e,t),t}function Km(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=It);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Gm.call(e.properties,i)){const c=Zm(r,i,e.properties[i]);c&&a.push(c)}}const s=r.space;A(s);const o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Bt[s],childNodes:[],parentNode:null};return o.childNodes=ri(e.children,o,r),ln(e,o),e.tagName==="template"&&e.content&&(o.content=qm(e.content,r)),o}function Zm(e,t,n){const r=Tr(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?ku(n):Uu(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Bt[r.space]}return a}function ri(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=xo(e[r],n);i.parentNode=t,a.push(i)}return a}function ln(e,t){const n=e.position;n&&n.start&&n.end&&(A(typeof n.start.offset=="number"),A(typeof n.end.offset=="number"),t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Jm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ep=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),xe="�";var b;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(b||(b={}));const Ue={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function yo(e){return e>=55296&&e<=57343}function tp(e){return e>=56320&&e<=57343}function np(e,t){return(e-55296)*1024+9216+t}function Ao(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function So(e){return e>=64976&&e<=65007||ep.has(e)}var L;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(L||(L={}));const rp=65536;class ap{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=rp,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,s=a+n,o=i+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(tp(n))return this.pos++,this._addGap(),np(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,b.EOF;return this._err(L.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,b.EOF;const r=this.html.charCodeAt(n);return r===b.CARRIAGE_RETURN?b.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,b.EOF;let t=this.html.charCodeAt(this.pos);return t===b.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,b.LINE_FEED):t===b.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,yo(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===b.LINE_FEED||t===b.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ao(t)?this._err(L.controlCharacterInInputStream):So(t)&&this._err(L.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ne;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(ne||(ne={}));function Co(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const _o=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ip=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var ea;const sp=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),up=(ea=String.fromCodePoint)!==null&&ea!==void 0?ea:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function op(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=sp.get(e))!==null&&t!==void 0?t:e}var ke;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ke||(ke={}));const cp=32;var St;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(St||(St={}));function Na(e){return e>=ke.ZERO&&e<=ke.NINE}function lp(e){return e>=ke.UPPER_A&&e<=ke.UPPER_F||e>=ke.LOWER_A&&e<=ke.LOWER_F}function dp(e){return e>=ke.UPPER_A&&e<=ke.UPPER_Z||e>=ke.LOWER_A&&e<=ke.LOWER_Z||Na(e)}function fp(e){return e===ke.EQUALS||dp(e)}var Le;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Le||(Le={}));var Et;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Et||(Et={}));class Io{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Le.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Et.Strict}startEntity(t){this.decodeMode=t,this.state=Le.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Le.EntityStart:return t.charCodeAt(n)===ke.NUM?(this.state=Le.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Le.NamedEntity,this.stateNamedEntity(t,n));case Le.NumericStart:return this.stateNumericStart(t,n);case Le.NumericDecimal:return this.stateNumericDecimal(t,n);case Le.NumericHex:return this.stateNumericHex(t,n);case Le.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|cp)===ke.LOWER_X?(this.state=Le.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Le.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Na(a)||lp(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Na(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ke.SEMI)this.consumed+=1;else if(this.decodeMode===Et.Strict)return 0;return this.emitCodePoint(op(this.result),this.consumed),this.errors&&(t!==ke.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&St.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=hp(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Et.Attribute&&(i===0||fp(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&St.VALUE_LENGTH)>>14,i!==0){if(s===ke.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Et.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&St.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~St.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Le.NamedEntity:return this.result!==0&&(this.decodeMode!==Et.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Le.NumericDecimal:return this.emitNumericEntity(0,2);case Le.NumericHex:return this.emitNumericEntity(0,3);case Le.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Le.EntityStart:return 0}}}function No(e){let t="";const n=new Io(e,r=>t+=up(r));return function(a,i){let s=0,o=0;for(;(o=a.indexOf("&",o))>=0;){t+=a.slice(s,o),n.startEntity(i);const l=n.write(a,o+1);if(l<0){s=o+n.end();break}s=o+l,o=l===0?s+1:s}const c=t+a.slice(s);return t="",c}}function hp(e,t,n,r){const a=(t&St.BRANCH_LENGTH)>>7,i=t&St.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const c=r-i;return c<0||c>=a?-1:e[n+c]-1}let s=n,o=s+a-1;for(;s<=o;){const c=s+o>>>1,l=e[c];if(l<r)s=c+1;else if(l>r)o=c-1;else return e[c+a]}return-1}No(_o);No(ip);var F;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(F||(F={}));var Ft;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ft||(Ft={}));var Ke;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ke||(Ke={}));var _;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(_||(_={}));var u;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(u||(u={}));const mp=new Map([[_.A,u.A],[_.ADDRESS,u.ADDRESS],[_.ANNOTATION_XML,u.ANNOTATION_XML],[_.APPLET,u.APPLET],[_.AREA,u.AREA],[_.ARTICLE,u.ARTICLE],[_.ASIDE,u.ASIDE],[_.B,u.B],[_.BASE,u.BASE],[_.BASEFONT,u.BASEFONT],[_.BGSOUND,u.BGSOUND],[_.BIG,u.BIG],[_.BLOCKQUOTE,u.BLOCKQUOTE],[_.BODY,u.BODY],[_.BR,u.BR],[_.BUTTON,u.BUTTON],[_.CAPTION,u.CAPTION],[_.CENTER,u.CENTER],[_.CODE,u.CODE],[_.COL,u.COL],[_.COLGROUP,u.COLGROUP],[_.DD,u.DD],[_.DESC,u.DESC],[_.DETAILS,u.DETAILS],[_.DIALOG,u.DIALOG],[_.DIR,u.DIR],[_.DIV,u.DIV],[_.DL,u.DL],[_.DT,u.DT],[_.EM,u.EM],[_.EMBED,u.EMBED],[_.FIELDSET,u.FIELDSET],[_.FIGCAPTION,u.FIGCAPTION],[_.FIGURE,u.FIGURE],[_.FONT,u.FONT],[_.FOOTER,u.FOOTER],[_.FOREIGN_OBJECT,u.FOREIGN_OBJECT],[_.FORM,u.FORM],[_.FRAME,u.FRAME],[_.FRAMESET,u.FRAMESET],[_.H1,u.H1],[_.H2,u.H2],[_.H3,u.H3],[_.H4,u.H4],[_.H5,u.H5],[_.H6,u.H6],[_.HEAD,u.HEAD],[_.HEADER,u.HEADER],[_.HGROUP,u.HGROUP],[_.HR,u.HR],[_.HTML,u.HTML],[_.I,u.I],[_.IMG,u.IMG],[_.IMAGE,u.IMAGE],[_.INPUT,u.INPUT],[_.IFRAME,u.IFRAME],[_.KEYGEN,u.KEYGEN],[_.LABEL,u.LABEL],[_.LI,u.LI],[_.LINK,u.LINK],[_.LISTING,u.LISTING],[_.MAIN,u.MAIN],[_.MALIGNMARK,u.MALIGNMARK],[_.MARQUEE,u.MARQUEE],[_.MATH,u.MATH],[_.MENU,u.MENU],[_.META,u.META],[_.MGLYPH,u.MGLYPH],[_.MI,u.MI],[_.MO,u.MO],[_.MN,u.MN],[_.MS,u.MS],[_.MTEXT,u.MTEXT],[_.NAV,u.NAV],[_.NOBR,u.NOBR],[_.NOFRAMES,u.NOFRAMES],[_.NOEMBED,u.NOEMBED],[_.NOSCRIPT,u.NOSCRIPT],[_.OBJECT,u.OBJECT],[_.OL,u.OL],[_.OPTGROUP,u.OPTGROUP],[_.OPTION,u.OPTION],[_.P,u.P],[_.PARAM,u.PARAM],[_.PLAINTEXT,u.PLAINTEXT],[_.PRE,u.PRE],[_.RB,u.RB],[_.RP,u.RP],[_.RT,u.RT],[_.RTC,u.RTC],[_.RUBY,u.RUBY],[_.S,u.S],[_.SCRIPT,u.SCRIPT],[_.SEARCH,u.SEARCH],[_.SECTION,u.SECTION],[_.SELECT,u.SELECT],[_.SOURCE,u.SOURCE],[_.SMALL,u.SMALL],[_.SPAN,u.SPAN],[_.STRIKE,u.STRIKE],[_.STRONG,u.STRONG],[_.STYLE,u.STYLE],[_.SUB,u.SUB],[_.SUMMARY,u.SUMMARY],[_.SUP,u.SUP],[_.TABLE,u.TABLE],[_.TBODY,u.TBODY],[_.TEMPLATE,u.TEMPLATE],[_.TEXTAREA,u.TEXTAREA],[_.TFOOT,u.TFOOT],[_.TD,u.TD],[_.TH,u.TH],[_.THEAD,u.THEAD],[_.TITLE,u.TITLE],[_.TR,u.TR],[_.TRACK,u.TRACK],[_.TT,u.TT],[_.U,u.U],[_.UL,u.UL],[_.SVG,u.SVG],[_.VAR,u.VAR],[_.WBR,u.WBR],[_.XMP,u.XMP]]);function dn(e){var t;return(t=mp.get(e))!==null&&t!==void 0?t:u.UNKNOWN}const H=u,pp={[F.HTML]:new Set([H.ADDRESS,H.APPLET,H.AREA,H.ARTICLE,H.ASIDE,H.BASE,H.BASEFONT,H.BGSOUND,H.BLOCKQUOTE,H.BODY,H.BR,H.BUTTON,H.CAPTION,H.CENTER,H.COL,H.COLGROUP,H.DD,H.DETAILS,H.DIR,H.DIV,H.DL,H.DT,H.EMBED,H.FIELDSET,H.FIGCAPTION,H.FIGURE,H.FOOTER,H.FORM,H.FRAME,H.FRAMESET,H.H1,H.H2,H.H3,H.H4,H.H5,H.H6,H.HEAD,H.HEADER,H.HGROUP,H.HR,H.HTML,H.IFRAME,H.IMG,H.INPUT,H.LI,H.LINK,H.LISTING,H.MAIN,H.MARQUEE,H.MENU,H.META,H.NAV,H.NOEMBED,H.NOFRAMES,H.NOSCRIPT,H.OBJECT,H.OL,H.P,H.PARAM,H.PLAINTEXT,H.PRE,H.SCRIPT,H.SECTION,H.SELECT,H.SOURCE,H.STYLE,H.SUMMARY,H.TABLE,H.TBODY,H.TD,H.TEMPLATE,H.TEXTAREA,H.TFOOT,H.TH,H.THEAD,H.TITLE,H.TR,H.TRACK,H.UL,H.WBR,H.XMP]),[F.MATHML]:new Set([H.MI,H.MO,H.MN,H.MS,H.MTEXT,H.ANNOTATION_XML]),[F.SVG]:new Set([H.TITLE,H.FOREIGN_OBJECT,H.DESC]),[F.XLINK]:new Set,[F.XML]:new Set,[F.XMLNS]:new Set},wa=new Set([H.H1,H.H2,H.H3,H.H4,H.H5,H.H6]);_.STYLE,_.SCRIPT,_.XMP,_.IFRAME,_.NOEMBED,_.NOFRAMES,_.PLAINTEXT;var E;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(E||(E={}));const Se={DATA:E.DATA,RCDATA:E.RCDATA,RAWTEXT:E.RAWTEXT,SCRIPT_DATA:E.SCRIPT_DATA,PLAINTEXT:E.PLAINTEXT,CDATA_SECTION:E.CDATA_SECTION};function gp(e){return e>=b.DIGIT_0&&e<=b.DIGIT_9}function yn(e){return e>=b.LATIN_CAPITAL_A&&e<=b.LATIN_CAPITAL_Z}function bp(e){return e>=b.LATIN_SMALL_A&&e<=b.LATIN_SMALL_Z}function yt(e){return bp(e)||yn(e)}function _s(e){return yt(e)||gp(e)}function Jn(e){return e+32}function wo(e){return e===b.SPACE||e===b.LINE_FEED||e===b.TABULATION||e===b.FORM_FEED}function Is(e){return wo(e)||e===b.SOLIDUS||e===b.GREATER_THAN_SIGN}function Ep(e){return e===b.NULL?L.nullCharacterReference:e>1114111?L.characterReferenceOutsideUnicodeRange:yo(e)?L.surrogateCharacterReference:So(e)?L.noncharacterCharacterReference:Ao(e)||e===b.CARRIAGE_RETURN?L.controlCharacterReference:null}class Tp{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=E.DATA,this.returnState=E.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ap(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Io(_o,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(L.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(L.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=Ep(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ne.START_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ne.END_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ne.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ne.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Co(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(L.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=dn(t.tagName),t.type===ne.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(L.endTagWithAttributes),t.selfClosing&&this._err(L.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case ne.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ne.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ne.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:ne.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=wo(t)?ne.WHITESPACE_CHARACTER:t===b.NULL?ne.NULL_CHARACTER:ne.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ne.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=E.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Et.Attribute:Et.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===E.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case E.DATA:{this._stateData(t);break}case E.RCDATA:{this._stateRcdata(t);break}case E.RAWTEXT:{this._stateRawtext(t);break}case E.SCRIPT_DATA:{this._stateScriptData(t);break}case E.PLAINTEXT:{this._statePlaintext(t);break}case E.TAG_OPEN:{this._stateTagOpen(t);break}case E.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case E.TAG_NAME:{this._stateTagName(t);break}case E.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case E.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case E.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case E.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case E.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case E.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case E.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case E.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case E.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case E.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case E.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case E.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case E.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case E.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case E.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case E.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case E.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case E.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case E.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case E.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case E.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case E.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case E.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case E.BOGUS_COMMENT:{this._stateBogusComment(t);break}case E.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case E.COMMENT_START:{this._stateCommentStart(t);break}case E.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case E.COMMENT:{this._stateComment(t);break}case E.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case E.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case E.COMMENT_END:{this._stateCommentEnd(t);break}case E.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case E.DOCTYPE:{this._stateDoctype(t);break}case E.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case E.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case E.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case E.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case E.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case E.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case E.CDATA_SECTION:{this._stateCdataSection(t);break}case E.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case E.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case E.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case E.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case b.LESS_THAN_SIGN:{this.state=E.TAG_OPEN;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(L.unexpectedNullCharacter),this._emitCodePoint(t);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case b.AMPERSAND:{this._startCharacterReference();break}case b.LESS_THAN_SIGN:{this.state=E.RCDATA_LESS_THAN_SIGN;break}case b.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(xe);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case b.LESS_THAN_SIGN:{this.state=E.RAWTEXT_LESS_THAN_SIGN;break}case b.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(xe);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_LESS_THAN_SIGN;break}case b.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(xe);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case b.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(xe);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(yt(t))this._createStartTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case b.EXCLAMATION_MARK:{this.state=E.MARKUP_DECLARATION_OPEN;break}case b.SOLIDUS:{this.state=E.END_TAG_OPEN;break}case b.QUESTION_MARK:{this._err(L.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t);break}case b.EOF:{this._err(L.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(L.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=E.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(yt(t))this._createEndTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case b.GREATER_THAN_SIGN:{this._err(L.missingEndTagName),this.state=E.DATA;break}case b.EOF:{this._err(L.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(L.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_ATTRIBUTE_NAME;break}case b.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case b.NULL:{this._err(L.unexpectedNullCharacter),n.tagName+=xe;break}case b.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(yn(t)?Jn(t):t)}}_stateRcdataLessThanSign(t){t===b.SOLIDUS?this.state=E.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){yt(t)?(this.state=E.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=E.BEFORE_ATTRIBUTE_NAME,!1;case b.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=E.SELF_CLOSING_START_TAG,!1;case b.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=E.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===b.SOLIDUS?this.state=E.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){yt(t)?(this.state=E.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case b.SOLIDUS:{this.state=E.SCRIPT_DATA_END_TAG_OPEN;break}case b.EXCLAMATION_MARK:{this.state=E.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=E.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){yt(t)?(this.state=E.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===b.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===b.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(xe);break}case b.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.NULL:{this._err(L.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(xe);break}case b.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case b.HYPHEN_MINUS:{this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case b.NULL:{this._err(L.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(xe);break}case b.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===b.SOLIDUS?this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:yt(t)?(this._emitChars("<"),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){yt(t)?(this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ue.SCRIPT,!1)&&Is(this.preprocessor.peek(Ue.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ue.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(xe);break}case b.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.NULL:{this._err(L.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xe);break}case b.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case b.HYPHEN_MINUS:{this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case b.NULL:{this._err(L.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xe);break}case b.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===b.SOLIDUS?(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ue.SCRIPT,!1)&&Is(this.preprocessor.peek(Ue.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ue.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.SOLIDUS:case b.GREATER_THAN_SIGN:case b.EOF:{this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case b.EQUALS_SIGN:{this._err(L.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=E.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:case b.SOLIDUS:case b.GREATER_THAN_SIGN:case b.EOF:{this._leaveAttrName(),this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case b.EQUALS_SIGN:{this._leaveAttrName(),this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case b.QUOTATION_MARK:case b.APOSTROPHE:case b.LESS_THAN_SIGN:{this._err(L.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case b.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.name+=xe;break}default:this.currentAttr.name+=String.fromCodePoint(yn(t)?Jn(t):t)}}_stateAfterAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case b.EQUALS_SIGN:{this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{this.state=E.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this.state=E.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(L.missingAttributeValue),this.state=E.DATA,this.emitCurrentTagToken();break}default:this.state=E.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case b.QUOTATION_MARK:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.value+=xe;break}case b.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case b.APOSTROPHE:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.value+=xe;break}case b.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case b.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.value+=xe;break}case b.QUOTATION_MARK:case b.APOSTROPHE:case b.LESS_THAN_SIGN:case b.EQUALS_SIGN:case b.GRAVE_ACCENT:{this._err(L.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case b.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case b.SOLIDUS:{this._leaveAttrValue(),this.state=E.SELF_CLOSING_START_TAG;break}case b.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this._err(L.missingWhitespaceBetweenAttributes),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case b.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=E.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this._err(L.unexpectedSolidusInTag),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case b.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case b.NULL:{this._err(L.unexpectedNullCharacter),n.data+=xe;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ue.DASH_DASH,!0)?(this._createCommentToken(Ue.DASH_DASH.length+1),this.state=E.COMMENT_START):this._consumeSequenceIfMatch(Ue.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ue.DOCTYPE.length+1),this.state=E.DOCTYPE):this._consumeSequenceIfMatch(Ue.CDATA_START,!0)?this.inForeignNode?this.state=E.CDATA_SECTION:(this._err(L.cdataInHtmlContent),this._createCommentToken(Ue.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=E.BOGUS_COMMENT):this._ensureHibernation()||(this._err(L.incorrectlyOpenedComment),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_START_DASH;break}case b.GREATER_THAN_SIGN:{this._err(L.abruptClosingOfEmptyComment),this.state=E.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case b.GREATER_THAN_SIGN:{this._err(L.abruptClosingOfEmptyComment),this.state=E.DATA,this.emitCurrentComment(n);break}case b.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_END_DASH;break}case b.LESS_THAN_SIGN:{n.data+="<",this.state=E.COMMENT_LESS_THAN_SIGN;break}case b.NULL:{this._err(L.unexpectedNullCharacter),n.data+=xe;break}case b.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case b.EXCLAMATION_MARK:{n.data+="!",this.state=E.COMMENT_LESS_THAN_SIGN_BANG;break}case b.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===b.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=E.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===b.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=E.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==b.GREATER_THAN_SIGN&&t!==b.EOF&&this._err(L.nestedComment),this.state=E.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case b.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case b.EXCLAMATION_MARK:{this.state=E.COMMENT_END_BANG;break}case b.HYPHEN_MINUS:{n.data+="-";break}case b.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{n.data+="--!",this.state=E.COMMENT_END_DASH;break}case b.GREATER_THAN_SIGN:{this._err(L.incorrectlyClosedComment),this.state=E.DATA,this.emitCurrentComment(n);break}case b.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=E.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case b.EOF:{this._err(L.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingWhitespaceBeforeDoctypeName),this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(yn(t))this._createDoctypeToken(String.fromCharCode(Jn(t))),this.state=E.DOCTYPE_NAME;else switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.NULL:{this._err(L.unexpectedNullCharacter),this._createDoctypeToken(xe),this.state=E.DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this._err(L.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(L.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=E.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.AFTER_DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.NULL:{this._err(L.unexpectedNullCharacter),n.name+=xe;break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(yn(t)?Jn(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ue.PUBLIC,!1)?this.state=E.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ue.SYSTEM,!1)?this.state=E.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(L.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.QUOTATION_MARK:{this._err(L.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(L.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(L.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(L.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case b.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.NULL:{this._err(L.unexpectedNullCharacter),n.publicId+=xe;break}case b.GREATER_THAN_SIGN:{this._err(L.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case b.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.NULL:{this._err(L.unexpectedNullCharacter),n.publicId+=xe;break}case b.GREATER_THAN_SIGN:{this._err(L.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.QUOTATION_MARK:{this._err(L.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(L.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.QUOTATION_MARK:{this._err(L.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(L.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(L.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(L.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case b.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.NULL:{this._err(L.unexpectedNullCharacter),n.systemId+=xe;break}case b.GREATER_THAN_SIGN:{this._err(L.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case b.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.NULL:{this._err(L.unexpectedNullCharacter),n.systemId+=xe;break}case b.GREATER_THAN_SIGN:{this._err(L.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.NULL:{this._err(L.unexpectedNullCharacter);break}case b.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case b.RIGHT_SQUARE_BRACKET:{this.state=E.CDATA_SECTION_BRACKET;break}case b.EOF:{this._err(L.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===b.RIGHT_SQUARE_BRACKET?this.state=E.CDATA_SECTION_END:(this._emitChars("]"),this.state=E.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case b.GREATER_THAN_SIGN:{this.state=E.DATA;break}case b.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=E.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(b.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&_s(this.preprocessor.peek(1))?E.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){_s(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===b.SEMICOLON&&this._err(L.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const vo=new Set([u.DD,u.DT,u.LI,u.OPTGROUP,u.OPTION,u.P,u.RB,u.RP,u.RT,u.RTC]),Ns=new Set([...vo,u.CAPTION,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]),or=new Set([u.APPLET,u.CAPTION,u.HTML,u.MARQUEE,u.OBJECT,u.TABLE,u.TD,u.TEMPLATE,u.TH]),xp=new Set([...or,u.OL,u.UL]),yp=new Set([...or,u.BUTTON]),ws=new Set([u.ANNOTATION_XML,u.MI,u.MN,u.MO,u.MS,u.MTEXT]),vs=new Set([u.DESC,u.FOREIGN_OBJECT,u.TITLE]),Ap=new Set([u.TR,u.TEMPLATE,u.HTML]),Sp=new Set([u.TBODY,u.TFOOT,u.THEAD,u.TEMPLATE,u.HTML]),Cp=new Set([u.TABLE,u.TEMPLATE,u.HTML]),_p=new Set([u.TD,u.TH]);class Ip{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=u.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===u.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===F.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==F.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(wa,F.HTML)}popUntilTableCellPopped(){this.popUntilPopped(_p,F.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Cp,F.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Sp,F.HTML)}clearBackToTableRowContext(){this.clearBackTo(Ap,F.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===u.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===u.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case F.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case F.SVG:{if(vs.has(a))return!1;break}case F.MATHML:{if(ws.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,or)}hasInListItemScope(t){return this.hasInDynamicScope(t,xp)}hasInButtonScope(t){return this.hasInDynamicScope(t,yp)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case F.HTML:{if(wa.has(n))return!0;if(or.has(n))return!1;break}case F.SVG:{if(vs.has(n))return!1;break}case F.MATHML:{if(ws.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===F.HTML)switch(this.tagIDs[n]){case t:return!0;case u.TABLE:case u.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===F.HTML)switch(this.tagIDs[t]){case u.TBODY:case u.THEAD:case u.TFOOT:return!0;case u.TABLE:case u.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===F.HTML)switch(this.tagIDs[n]){case t:return!0;case u.OPTION:case u.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;vo.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Ns.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Ns.has(this.currentTagId);)this.pop()}}const ta=3;var dt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(dt||(dt={}));const Ls={type:dt.Marker};class Np{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const c=this.entries[o];if(c.type===dt.Marker)break;const{element:l}=c;if(this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===s){const d=this.treeAdapter.getAttrList(l);d.length===a&&r.push({idx:o,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<ta)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<ta)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(c=>a.get(c.name)===c.value)&&(i+=1,i>=ta&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Ls)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:dt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:dt.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Ls);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===dt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===dt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===dt.Element&&n.element===t)}}const At={createDocument(){return{nodeName:"#document",mode:Ke.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};At.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(At.isTextNode(n)){n.value+=t;return}}At.appendChild(e,At.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&At.isTextNode(r)?r.value+=t:At.insertBefore(e,At.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Lo="html",wp="about:legacy-compat",vp="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ko=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Lp=[...ko,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],kp=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Oo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Op=[...Oo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function ks(e,t){return t.some(n=>e.startsWith(n))}function Rp(e){return e.name===Lo&&e.publicId===null&&(e.systemId===null||e.systemId===wp)}function Dp(e){if(e.name!==Lo)return Ke.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===vp)return Ke.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),kp.has(n))return Ke.QUIRKS;let r=t===null?Lp:ko;if(ks(n,r))return Ke.QUIRKS;if(r=t===null?Oo:Op,ks(n,r))return Ke.LIMITED_QUIRKS}return Ke.NO_QUIRKS}const Os={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Pp="definitionurl",Mp="definitionURL",Bp=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Fp=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:F.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:F.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:F.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:F.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:F.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:F.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:F.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:F.XML}],["xml:space",{prefix:"xml",name:"space",namespace:F.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:F.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:F.XMLNS}]]),Hp=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Up=new Set([u.B,u.BIG,u.BLOCKQUOTE,u.BODY,u.BR,u.CENTER,u.CODE,u.DD,u.DIV,u.DL,u.DT,u.EM,u.EMBED,u.H1,u.H2,u.H3,u.H4,u.H5,u.H6,u.HEAD,u.HR,u.I,u.IMG,u.LI,u.LISTING,u.MENU,u.META,u.NOBR,u.OL,u.P,u.PRE,u.RUBY,u.S,u.SMALL,u.SPAN,u.STRONG,u.STRIKE,u.SUB,u.SUP,u.TABLE,u.TT,u.U,u.UL,u.VAR]);function zp(e){const t=e.tagID;return t===u.FONT&&e.attrs.some(({name:r})=>r===Ft.COLOR||r===Ft.SIZE||r===Ft.FACE)||Up.has(t)}function Ro(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Pp){e.attrs[t].name=Mp;break}}function Do(e){for(let t=0;t<e.attrs.length;t++){const n=Bp.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function ai(e){for(let t=0;t<e.attrs.length;t++){const n=Fp.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function jp(e){const t=Hp.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=dn(e.tagName))}function $p(e,t){return t===F.MATHML&&(e===u.MI||e===u.MO||e===u.MN||e===u.MS||e===u.MTEXT)}function Gp(e,t,n){if(t===F.MATHML&&e===u.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Ft.ENCODING){const a=n[r].value.toLowerCase();return a===Os.TEXT_HTML||a===Os.APPLICATION_XML}}return t===F.SVG&&(e===u.FOREIGN_OBJECT||e===u.DESC||e===u.TITLE)}function Yp(e,t,n,r){return(!r||r===F.HTML)&&Gp(e,t,n)||(!r||r===F.MATHML)&&$p(e,t)}const Vp="hidden",qp=8,Wp=3;var T;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(T||(T={}));const Xp={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Po=new Set([u.TABLE,u.TBODY,u.TFOOT,u.THEAD,u.TR]),Rs={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:At,onParseError:null};class Ds{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=T.INITIAL,this.originalInsertionMode=T.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Rs,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Tp(this.options,this),this.activeFormattingElements=new Np(this.treeAdapter),this.fragmentContextID=r?dn(this.treeAdapter.getTagName(r)):u.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Ip(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Rs,...n};t??(t=r.treeAdapter.createElement(_.TEMPLATE,F.HTML,[]));const a=r.treeAdapter.createElement("documentmock",F.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===u.TEMPLATE&&i.tmplInsertionModeStack.unshift(T.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:Xp,s={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===F.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,F.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=T.TEXT}switchToPlaintextParsing(){this.insertionMode=T.TEXT,this.originalInsertionMode=T.IN_BODY,this.tokenizer.state=Se.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===_.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==F.HTML))switch(this.fragmentContextID){case u.TITLE:case u.TEXTAREA:{this.tokenizer.state=Se.RCDATA;break}case u.STYLE:case u.XMP:case u.IFRAME:case u.NOEMBED:case u.NOFRAMES:case u.NOSCRIPT:{this.tokenizer.state=Se.RAWTEXT;break}case u.SCRIPT:{this.tokenizer.state=Se.SCRIPT_DATA;break}case u.PLAINTEXT:{this.tokenizer.state=Se.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,F.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,F.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(_.HTML,F.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,u.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:l,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:l,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===ne.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===u.SVG&&this.treeAdapter.getTagName(n)===_.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===F.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===u.MGLYPH||t.tagID===u.MALIGNMARK)&&!this._isIntegrationPoint(r,n,F.HTML)}_processToken(t){switch(t.type){case ne.CHARACTER:{this.onCharacter(t);break}case ne.NULL_CHARACTER:{this.onNullCharacter(t);break}case ne.COMMENT:{this.onComment(t);break}case ne.DOCTYPE:{this.onDoctype(t);break}case ne.START_TAG:{this._processStartTag(t);break}case ne.END_TAG:{this.onEndTag(t);break}case ne.EOF:{this.onEof(t);break}case ne.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return Yp(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===dt.Marker||this.openElements.contains(a.element)),r=n<0?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=T.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(u.P),this.openElements.popUntilTagNamePopped(u.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case u.TR:{this.insertionMode=T.IN_ROW;return}case u.TBODY:case u.THEAD:case u.TFOOT:{this.insertionMode=T.IN_TABLE_BODY;return}case u.CAPTION:{this.insertionMode=T.IN_CAPTION;return}case u.COLGROUP:{this.insertionMode=T.IN_COLUMN_GROUP;return}case u.TABLE:{this.insertionMode=T.IN_TABLE;return}case u.BODY:{this.insertionMode=T.IN_BODY;return}case u.FRAMESET:{this.insertionMode=T.IN_FRAMESET;return}case u.SELECT:{this._resetInsertionModeForSelect(t);return}case u.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case u.HTML:{this.insertionMode=this.headElement?T.AFTER_HEAD:T.BEFORE_HEAD;return}case u.TD:case u.TH:{if(t>0){this.insertionMode=T.IN_CELL;return}break}case u.HEAD:{if(t>0){this.insertionMode=T.IN_HEAD;return}break}}this.insertionMode=T.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===u.TEMPLATE)break;if(r===u.TABLE){this.insertionMode=T.IN_SELECT_IN_TABLE;return}}this.insertionMode=T.IN_SELECT}_isElementCausesFosterParenting(t){return Po.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case u.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===F.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case u.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return pp[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){_1(this,t);return}switch(this.insertionMode){case T.INITIAL:{bn(this,t);break}case T.BEFORE_HTML:{In(this,t);break}case T.BEFORE_HEAD:{Nn(this,t);break}case T.IN_HEAD:{wn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{vn(this,t);break}case T.AFTER_HEAD:{Ln(this,t);break}case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:{Bo(this,t);break}case T.TEXT:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{na(this,t);break}case T.IN_TABLE_TEXT:{$o(this,t);break}case T.IN_COLUMN_GROUP:{cr(this,t);break}case T.AFTER_BODY:{lr(this,t);break}case T.AFTER_AFTER_BODY:{ir(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){C1(this,t);return}switch(this.insertionMode){case T.INITIAL:{bn(this,t);break}case T.BEFORE_HTML:{In(this,t);break}case T.BEFORE_HEAD:{Nn(this,t);break}case T.IN_HEAD:{wn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{vn(this,t);break}case T.AFTER_HEAD:{Ln(this,t);break}case T.TEXT:{this._insertCharacters(t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{na(this,t);break}case T.IN_COLUMN_GROUP:{cr(this,t);break}case T.AFTER_BODY:{lr(this,t);break}case T.AFTER_AFTER_BODY:{ir(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){va(this,t);return}switch(this.insertionMode){case T.INITIAL:case T.BEFORE_HTML:case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_TEMPLATE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:{va(this,t);break}case T.IN_TABLE_TEXT:{En(this,t);break}case T.AFTER_BODY:{ng(this,t);break}case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{rg(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case T.INITIAL:{ag(this,t);break}case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:{this._err(t,L.misplacedDoctype);break}case T.IN_TABLE_TEXT:{En(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,L.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?I1(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case T.INITIAL:{bn(this,t);break}case T.BEFORE_HTML:{ig(this,t);break}case T.BEFORE_HEAD:{ug(this,t);break}case T.IN_HEAD:{rt(this,t);break}case T.IN_HEAD_NO_SCRIPT:{lg(this,t);break}case T.AFTER_HEAD:{fg(this,t);break}case T.IN_BODY:{De(this,t);break}case T.IN_TABLE:{sn(this,t);break}case T.IN_TABLE_TEXT:{En(this,t);break}case T.IN_CAPTION:{o1(this,t);break}case T.IN_COLUMN_GROUP:{ui(this,t);break}case T.IN_TABLE_BODY:{Ir(this,t);break}case T.IN_ROW:{Nr(this,t);break}case T.IN_CELL:{d1(this,t);break}case T.IN_SELECT:{Vo(this,t);break}case T.IN_SELECT_IN_TABLE:{h1(this,t);break}case T.IN_TEMPLATE:{p1(this,t);break}case T.AFTER_BODY:{b1(this,t);break}case T.IN_FRAMESET:{E1(this,t);break}case T.AFTER_FRAMESET:{x1(this,t);break}case T.AFTER_AFTER_BODY:{A1(this,t);break}case T.AFTER_AFTER_FRAMESET:{S1(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?N1(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case T.INITIAL:{bn(this,t);break}case T.BEFORE_HTML:{sg(this,t);break}case T.BEFORE_HEAD:{og(this,t);break}case T.IN_HEAD:{cg(this,t);break}case T.IN_HEAD_NO_SCRIPT:{dg(this,t);break}case T.AFTER_HEAD:{hg(this,t);break}case T.IN_BODY:{_r(this,t);break}case T.TEXT:{Zg(this,t);break}case T.IN_TABLE:{Dn(this,t);break}case T.IN_TABLE_TEXT:{En(this,t);break}case T.IN_CAPTION:{c1(this,t);break}case T.IN_COLUMN_GROUP:{l1(this,t);break}case T.IN_TABLE_BODY:{La(this,t);break}case T.IN_ROW:{Yo(this,t);break}case T.IN_CELL:{f1(this,t);break}case T.IN_SELECT:{qo(this,t);break}case T.IN_SELECT_IN_TABLE:{m1(this,t);break}case T.IN_TEMPLATE:{g1(this,t);break}case T.AFTER_BODY:{Xo(this,t);break}case T.IN_FRAMESET:{T1(this,t);break}case T.AFTER_FRAMESET:{y1(this,t);break}case T.AFTER_AFTER_BODY:{ir(this,t);break}}}onEof(t){switch(this.insertionMode){case T.INITIAL:{bn(this,t);break}case T.BEFORE_HTML:{In(this,t);break}case T.BEFORE_HEAD:{Nn(this,t);break}case T.IN_HEAD:{wn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{vn(this,t);break}case T.AFTER_HEAD:{Ln(this,t);break}case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:{zo(this,t);break}case T.TEXT:{Jg(this,t);break}case T.IN_TABLE_TEXT:{En(this,t);break}case T.IN_TEMPLATE:{Wo(this,t);break}case T.AFTER_BODY:case T.IN_FRAMESET:case T.AFTER_FRAMESET:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{si(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===b.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.TEXT:case T.IN_COLUMN_GROUP:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:{this._insertCharacters(t);break}case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:case T.AFTER_BODY:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{Mo(this,t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{na(this,t);break}case T.IN_TABLE_TEXT:{jo(this,t);break}}}}function Qp(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Uo(e,t),n}function Kp(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Zp(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==n;i++,s=a){a=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),c=o&&i>=Wp;!o||c?(c&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Jp(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Jp(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function eg(e,t,n){const r=e.treeAdapter.getTagName(t),a=dn(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===u.TEMPLATE&&i===F.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function tg(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function ii(e,t){for(let n=0;n<qp;n++){const r=Qp(e,t);if(!r)break;const a=Kp(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=Zp(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),s&&eg(e,s,i),tg(e,a,r)}}function va(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function ng(e,t){e._appendCommentNode(t,e.openElements.items[0])}function rg(e,t){e._appendCommentNode(t,e.document)}function si(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,t)}}}}function ag(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ke.QUIRKS:Dp(t);Rp(t)||e._err(t,L.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=T.BEFORE_HTML}function bn(e,t){e._err(t,L.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ke.QUIRKS),e.insertionMode=T.BEFORE_HTML,e._processToken(t)}function ig(e,t){t.tagID===u.HTML?(e._insertElement(t,F.HTML),e.insertionMode=T.BEFORE_HEAD):In(e,t)}function sg(e,t){const n=t.tagID;(n===u.HTML||n===u.HEAD||n===u.BODY||n===u.BR)&&In(e,t)}function In(e,t){e._insertFakeRootElement(),e.insertionMode=T.BEFORE_HEAD,e._processToken(t)}function ug(e,t){switch(t.tagID){case u.HTML:{De(e,t);break}case u.HEAD:{e._insertElement(t,F.HTML),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD;break}default:Nn(e,t)}}function og(e,t){const n=t.tagID;n===u.HEAD||n===u.BODY||n===u.HTML||n===u.BR?Nn(e,t):e._err(t,L.endTagWithoutMatchingOpenElement)}function Nn(e,t){e._insertFakeElement(_.HEAD,u.HEAD),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD,e._processToken(t)}function rt(e,t){switch(t.tagID){case u.HTML:{De(e,t);break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:{e._appendElement(t,F.HTML),t.ackSelfClosing=!0;break}case u.TITLE:{e._switchToTextParsing(t,Se.RCDATA);break}case u.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Se.RAWTEXT):(e._insertElement(t,F.HTML),e.insertionMode=T.IN_HEAD_NO_SCRIPT);break}case u.NOFRAMES:case u.STYLE:{e._switchToTextParsing(t,Se.RAWTEXT);break}case u.SCRIPT:{e._switchToTextParsing(t,Se.SCRIPT_DATA);break}case u.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=T.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(T.IN_TEMPLATE);break}case u.HEAD:{e._err(t,L.misplacedStartTagForHeadElement);break}default:wn(e,t)}}function cg(e,t){switch(t.tagID){case u.HEAD:{e.openElements.pop(),e.insertionMode=T.AFTER_HEAD;break}case u.BODY:case u.BR:case u.HTML:{wn(e,t);break}case u.TEMPLATE:{Gt(e,t);break}default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function Gt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==u.TEMPLATE&&e._err(t,L.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,L.endTagWithoutMatchingOpenElement)}function wn(e,t){e.openElements.pop(),e.insertionMode=T.AFTER_HEAD,e._processToken(t)}function lg(e,t){switch(t.tagID){case u.HTML:{De(e,t);break}case u.BASEFONT:case u.BGSOUND:case u.HEAD:case u.LINK:case u.META:case u.NOFRAMES:case u.STYLE:{rt(e,t);break}case u.NOSCRIPT:{e._err(t,L.nestedNoscriptInHead);break}default:vn(e,t)}}function dg(e,t){switch(t.tagID){case u.NOSCRIPT:{e.openElements.pop(),e.insertionMode=T.IN_HEAD;break}case u.BR:{vn(e,t);break}default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function vn(e,t){const n=t.type===ne.EOF?L.openElementsLeftAfterEof:L.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=T.IN_HEAD,e._processToken(t)}function fg(e,t){switch(t.tagID){case u.HTML:{De(e,t);break}case u.BODY:{e._insertElement(t,F.HTML),e.framesetOk=!1,e.insertionMode=T.IN_BODY;break}case u.FRAMESET:{e._insertElement(t,F.HTML),e.insertionMode=T.IN_FRAMESET;break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{e._err(t,L.abandonedHeadElementChild),e.openElements.push(e.headElement,u.HEAD),rt(e,t),e.openElements.remove(e.headElement);break}case u.HEAD:{e._err(t,L.misplacedStartTagForHeadElement);break}default:Ln(e,t)}}function hg(e,t){switch(t.tagID){case u.BODY:case u.HTML:case u.BR:{Ln(e,t);break}case u.TEMPLATE:{Gt(e,t);break}default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function Ln(e,t){e._insertFakeElement(_.BODY,u.BODY),e.insertionMode=T.IN_BODY,Cr(e,t)}function Cr(e,t){switch(t.type){case ne.CHARACTER:{Bo(e,t);break}case ne.WHITESPACE_CHARACTER:{Mo(e,t);break}case ne.COMMENT:{va(e,t);break}case ne.START_TAG:{De(e,t);break}case ne.END_TAG:{_r(e,t);break}case ne.EOF:{zo(e,t);break}}}function Mo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Bo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function mg(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function pg(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function gg(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,F.HTML),e.insertionMode=T.IN_FRAMESET)}function bg(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,F.HTML)}function Eg(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),wa.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,F.HTML)}function Tg(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,F.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function xg(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,F.HTML),n||(e.formElement=e.openElements.current))}function yg(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===u.LI&&a===u.LI||(n===u.DD||n===u.DT)&&(a===u.DD||a===u.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==u.ADDRESS&&a!==u.DIV&&a!==u.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,F.HTML)}function Ag(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,F.HTML),e.tokenizer.state=Se.PLAINTEXT}function Sg(e,t){e.openElements.hasInScope(u.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.framesetOk=!1}function Cg(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);n&&(ii(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function _g(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ig(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(u.NOBR)&&(ii(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,F.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ng(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function wg(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ke.QUIRKS&&e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,F.HTML),e.framesetOk=!1,e.insertionMode=T.IN_TABLE}function Fo(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,F.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ho(e){const t=Co(e,Ft.TYPE);return t!=null&&t.toLowerCase()===Vp}function vg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,F.HTML),Ho(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Lg(e,t){e._appendElement(t,F.HTML),t.ackSelfClosing=!0}function kg(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._appendElement(t,F.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Og(e,t){t.tagName=_.IMG,t.tagID=u.IMG,Fo(e,t)}function Rg(e,t){e._insertElement(t,F.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Se.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=T.TEXT}function Dg(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Se.RAWTEXT)}function Pg(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Se.RAWTEXT)}function Ps(e,t){e._switchToTextParsing(t,Se.RAWTEXT)}function Mg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===T.IN_TABLE||e.insertionMode===T.IN_CAPTION||e.insertionMode===T.IN_TABLE_BODY||e.insertionMode===T.IN_ROW||e.insertionMode===T.IN_CELL?T.IN_SELECT_IN_TABLE:T.IN_SELECT}function Bg(e,t){e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML)}function Fg(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,F.HTML)}function Hg(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(u.RTC),e._insertElement(t,F.HTML)}function Ug(e,t){e._reconstructActiveFormattingElements(),Ro(t),ai(t),t.selfClosing?e._appendElement(t,F.MATHML):e._insertElement(t,F.MATHML),t.ackSelfClosing=!0}function zg(e,t){e._reconstructActiveFormattingElements(),Do(t),ai(t),t.selfClosing?e._appendElement(t,F.SVG):e._insertElement(t,F.SVG),t.ackSelfClosing=!0}function Ms(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML)}function De(e,t){switch(t.tagID){case u.I:case u.S:case u.B:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.SMALL:case u.STRIKE:case u.STRONG:{_g(e,t);break}case u.A:{Cg(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{Eg(e,t);break}case u.P:case u.DL:case u.OL:case u.UL:case u.DIV:case u.DIR:case u.NAV:case u.MAIN:case u.MENU:case u.ASIDE:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.DETAILS:case u.ADDRESS:case u.ARTICLE:case u.SEARCH:case u.SECTION:case u.SUMMARY:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{bg(e,t);break}case u.LI:case u.DD:case u.DT:{yg(e,t);break}case u.BR:case u.IMG:case u.WBR:case u.AREA:case u.EMBED:case u.KEYGEN:{Fo(e,t);break}case u.HR:{kg(e,t);break}case u.RB:case u.RTC:{Fg(e,t);break}case u.RT:case u.RP:{Hg(e,t);break}case u.PRE:case u.LISTING:{Tg(e,t);break}case u.XMP:{Dg(e,t);break}case u.SVG:{zg(e,t);break}case u.HTML:{mg(e,t);break}case u.BASE:case u.LINK:case u.META:case u.STYLE:case u.TITLE:case u.SCRIPT:case u.BGSOUND:case u.BASEFONT:case u.TEMPLATE:{rt(e,t);break}case u.BODY:{pg(e,t);break}case u.FORM:{xg(e,t);break}case u.NOBR:{Ig(e,t);break}case u.MATH:{Ug(e,t);break}case u.TABLE:{wg(e,t);break}case u.INPUT:{vg(e,t);break}case u.PARAM:case u.TRACK:case u.SOURCE:{Lg(e,t);break}case u.IMAGE:{Og(e,t);break}case u.BUTTON:{Sg(e,t);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{Ng(e,t);break}case u.IFRAME:{Pg(e,t);break}case u.SELECT:{Mg(e,t);break}case u.OPTION:case u.OPTGROUP:{Bg(e,t);break}case u.NOEMBED:case u.NOFRAMES:{Ps(e,t);break}case u.FRAMESET:{gg(e,t);break}case u.TEXTAREA:{Rg(e,t);break}case u.NOSCRIPT:{e.options.scriptingEnabled?Ps(e,t):Ms(e,t);break}case u.PLAINTEXT:{Ag(e,t);break}case u.COL:case u.TH:case u.TD:case u.TR:case u.HEAD:case u.FRAME:case u.TBODY:case u.TFOOT:case u.THEAD:case u.CAPTION:case u.COLGROUP:break;default:Ms(e,t)}}function jg(e,t){if(e.openElements.hasInScope(u.BODY)&&(e.insertionMode=T.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function $g(e,t){e.openElements.hasInScope(u.BODY)&&(e.insertionMode=T.AFTER_BODY,Xo(e,t))}function Gg(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Yg(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(u.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(u.FORM):n&&e.openElements.remove(n))}function Vg(e){e.openElements.hasInButtonScope(u.P)||e._insertFakeElement(_.P,u.P),e._closePElement()}function qg(e){e.openElements.hasInListItemScope(u.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(u.LI),e.openElements.popUntilTagNamePopped(u.LI))}function Wg(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Xg(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Qg(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Kg(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(_.BR,u.BR),e.openElements.pop(),e.framesetOk=!1}function Uo(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(r===s&&(r!==u.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function _r(e,t){switch(t.tagID){case u.A:case u.B:case u.I:case u.S:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.NOBR:case u.SMALL:case u.STRIKE:case u.STRONG:{ii(e,t);break}case u.P:{Vg(e);break}case u.DL:case u.UL:case u.OL:case u.DIR:case u.DIV:case u.NAV:case u.PRE:case u.MAIN:case u.MENU:case u.ASIDE:case u.BUTTON:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.ADDRESS:case u.ARTICLE:case u.DETAILS:case u.SEARCH:case u.SECTION:case u.SUMMARY:case u.LISTING:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{Gg(e,t);break}case u.LI:{qg(e);break}case u.DD:case u.DT:{Wg(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{Xg(e);break}case u.BR:{Kg(e);break}case u.BODY:{jg(e,t);break}case u.HTML:{$g(e,t);break}case u.FORM:{Yg(e);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{Qg(e,t);break}case u.TEMPLATE:{Gt(e,t);break}default:Uo(e,t)}}function zo(e,t){e.tmplInsertionModeStack.length>0?Wo(e,t):si(e,t)}function Zg(e,t){var n;t.tagID===u.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Jg(e,t){e._err(t,L.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function na(e,t){if(Po.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=T.IN_TABLE_TEXT,t.type){case ne.CHARACTER:{$o(e,t);break}case ne.WHITESPACE_CHARACTER:{jo(e,t);break}}else $n(e,t)}function e1(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,F.HTML),e.insertionMode=T.IN_CAPTION}function t1(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,F.HTML),e.insertionMode=T.IN_COLUMN_GROUP}function n1(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.COLGROUP,u.COLGROUP),e.insertionMode=T.IN_COLUMN_GROUP,ui(e,t)}function r1(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,F.HTML),e.insertionMode=T.IN_TABLE_BODY}function a1(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.TBODY,u.TBODY),e.insertionMode=T.IN_TABLE_BODY,Ir(e,t)}function i1(e,t){e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function s1(e,t){Ho(t)?e._appendElement(t,F.HTML):$n(e,t),t.ackSelfClosing=!0}function u1(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,F.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function sn(e,t){switch(t.tagID){case u.TD:case u.TH:case u.TR:{a1(e,t);break}case u.STYLE:case u.SCRIPT:case u.TEMPLATE:{rt(e,t);break}case u.COL:{n1(e,t);break}case u.FORM:{u1(e,t);break}case u.TABLE:{i1(e,t);break}case u.TBODY:case u.TFOOT:case u.THEAD:{r1(e,t);break}case u.INPUT:{s1(e,t);break}case u.CAPTION:{e1(e,t);break}case u.COLGROUP:{t1(e,t);break}default:$n(e,t)}}function Dn(e,t){switch(t.tagID){case u.TABLE:{e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode());break}case u.TEMPLATE:{Gt(e,t);break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:$n(e,t)}}function $n(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Cr(e,t),e.fosterParentingEnabled=n}function jo(e,t){e.pendingCharacterTokens.push(t)}function $o(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function En(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)$n(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Go=new Set([u.CAPTION,u.COL,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]);function o1(e,t){const n=t.tagID;Go.has(n)?e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_TABLE,sn(e,t)):De(e,t)}function c1(e,t){const n=t.tagID;switch(n){case u.CAPTION:case u.TABLE:{e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_TABLE,n===u.TABLE&&Dn(e,t));break}case u.BODY:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:_r(e,t)}}function ui(e,t){switch(t.tagID){case u.HTML:{De(e,t);break}case u.COL:{e._appendElement(t,F.HTML),t.ackSelfClosing=!0;break}case u.TEMPLATE:{rt(e,t);break}default:cr(e,t)}}function l1(e,t){switch(t.tagID){case u.COLGROUP:{e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=T.IN_TABLE);break}case u.TEMPLATE:{Gt(e,t);break}case u.COL:break;default:cr(e,t)}}function cr(e,t){e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=T.IN_TABLE,e._processToken(t))}function Ir(e,t){switch(t.tagID){case u.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,F.HTML),e.insertionMode=T.IN_ROW;break}case u.TH:case u.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(_.TR,u.TR),e.insertionMode=T.IN_ROW,Nr(e,t);break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE,sn(e,t));break}default:sn(e,t)}}function La(e,t){const n=t.tagID;switch(t.tagID){case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE);break}case u.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE,Dn(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:case u.TR:break;default:Dn(e,t)}}function Nr(e,t){switch(t.tagID){case u.TH:case u.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,F.HTML),e.insertionMode=T.IN_CELL,e.activeFormattingElements.insertMarker();break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,Ir(e,t));break}default:sn(e,t)}}function Yo(e,t){switch(t.tagID){case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY);break}case u.TABLE:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,La(e,t));break}case u.TBODY:case u.TFOOT:case u.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(u.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,La(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:break;default:Dn(e,t)}}function d1(e,t){const n=t.tagID;Go.has(n)?(e.openElements.hasInTableScope(u.TD)||e.openElements.hasInTableScope(u.TH))&&(e._closeTableCell(),Nr(e,t)):De(e,t)}function f1(e,t){const n=t.tagID;switch(n){case u.TD:case u.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_ROW);break}case u.TABLE:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Yo(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:break;default:_r(e,t)}}function Vo(e,t){switch(t.tagID){case u.HTML:{De(e,t);break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._insertElement(t,F.HTML);break}case u.OPTGROUP:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop(),e._insertElement(t,F.HTML);break}case u.HR:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop(),e._appendElement(t,F.HTML),t.ackSelfClosing=!0;break}case u.INPUT:case u.KEYGEN:case u.TEXTAREA:case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),t.tagID!==u.SELECT&&e._processStartTag(t));break}case u.SCRIPT:case u.TEMPLATE:{rt(e,t);break}}}function qo(e,t){switch(t.tagID){case u.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===u.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===u.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop();break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop();break}case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode());break}case u.TEMPLATE:{Gt(e,t);break}}}function h1(e,t){const n=t.tagID;n===u.CAPTION||n===u.TABLE||n===u.TBODY||n===u.TFOOT||n===u.THEAD||n===u.TR||n===u.TD||n===u.TH?(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Vo(e,t)}function m1(e,t){const n=t.tagID;n===u.CAPTION||n===u.TABLE||n===u.TBODY||n===u.TFOOT||n===u.THEAD||n===u.TR||n===u.TD||n===u.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e.onEndTag(t)):qo(e,t)}function p1(e,t){switch(t.tagID){case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{rt(e,t);break}case u.CAPTION:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.tmplInsertionModeStack[0]=T.IN_TABLE,e.insertionMode=T.IN_TABLE,sn(e,t);break}case u.COL:{e.tmplInsertionModeStack[0]=T.IN_COLUMN_GROUP,e.insertionMode=T.IN_COLUMN_GROUP,ui(e,t);break}case u.TR:{e.tmplInsertionModeStack[0]=T.IN_TABLE_BODY,e.insertionMode=T.IN_TABLE_BODY,Ir(e,t);break}case u.TD:case u.TH:{e.tmplInsertionModeStack[0]=T.IN_ROW,e.insertionMode=T.IN_ROW,Nr(e,t);break}default:e.tmplInsertionModeStack[0]=T.IN_BODY,e.insertionMode=T.IN_BODY,De(e,t)}}function g1(e,t){t.tagID===u.TEMPLATE&&Gt(e,t)}function Wo(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):si(e,t)}function b1(e,t){t.tagID===u.HTML?De(e,t):lr(e,t)}function Xo(e,t){var n;if(t.tagID===u.HTML){if(e.fragmentContext||(e.insertionMode=T.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===u.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else lr(e,t)}function lr(e,t){e.insertionMode=T.IN_BODY,Cr(e,t)}function E1(e,t){switch(t.tagID){case u.HTML:{De(e,t);break}case u.FRAMESET:{e._insertElement(t,F.HTML);break}case u.FRAME:{e._appendElement(t,F.HTML),t.ackSelfClosing=!0;break}case u.NOFRAMES:{rt(e,t);break}}}function T1(e,t){t.tagID===u.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==u.FRAMESET&&(e.insertionMode=T.AFTER_FRAMESET))}function x1(e,t){switch(t.tagID){case u.HTML:{De(e,t);break}case u.NOFRAMES:{rt(e,t);break}}}function y1(e,t){t.tagID===u.HTML&&(e.insertionMode=T.AFTER_AFTER_FRAMESET)}function A1(e,t){t.tagID===u.HTML?De(e,t):ir(e,t)}function ir(e,t){e.insertionMode=T.IN_BODY,Cr(e,t)}function S1(e,t){switch(t.tagID){case u.HTML:{De(e,t);break}case u.NOFRAMES:{rt(e,t);break}}}function C1(e,t){t.chars=xe,e._insertCharacters(t)}function _1(e,t){e._insertCharacters(t),e.framesetOk=!1}function Qo(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==F.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function I1(e,t){if(zp(t))Qo(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===F.MATHML?Ro(t):r===F.SVG&&(jp(t),Do(t)),ai(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function N1(e,t){if(t.tagID===u.P||t.tagID===u.BR){Qo(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===F.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}_.AREA,_.BASE,_.BASEFONT,_.BGSOUND,_.BR,_.COL,_.EMBED,_.FRAME,_.HR,_.IMG,_.INPUT,_.KEYGEN,_.LINK,_.META,_.PARAM,_.SOURCE,_.TRACK,_.WBR;const w1=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Bs={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ko(e,t){const n=F1(e),r=To("type",{handlers:{root:v1,element:L1,text:k1,comment:Jo,doctype:O1,raw:D1},unknown:P1}),a={parser:n?new Ds(Bs):Ds.getFragmentParser(void 0,Bs),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),fn(a,pt());const i=n?a.parser.document:a.parser.getFragment(),s=Um(i,{file:a.options.file});return a.stitches&&ei(s,"comment",function(o,c,l){const d=o;if(d.value.stitch&&l&&c!==void 0){const f=l.children;return f[c]=d.value.stitch,c}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Zo(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function v1(e,t){Zo(e.children,t)}function L1(e,t){M1(e,t),Zo(e.children,t),B1(e,t)}function k1(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:ne.CHARACTER,chars:e.value,location:Gn(e)};fn(t,pt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function O1(e,t){const n={type:ne.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Gn(e)};fn(t,pt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function R1(e,t){t.stitches=!0;const n=H1(e);if("children"in e&&"children"in n){const r=Ko({type:"root",children:e.children},t.options);n.children=r.children}Jo({type:"comment",value:{stitch:n}},t)}function Jo(e,t){const n=e.value,r={type:ne.COMMENT,data:n,location:Gn(e)};fn(t,pt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function D1(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,ec(t,pt(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function P1(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))R1(n,t);else{let r="";throw w1.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function fn(e,t){ec(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Se.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function ec(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function M1(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Se.PLAINTEXT)return;fn(t,pt(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Bt.html;a===Bt.html&&n==="svg"&&(a=Bt.svg);const i=Ym({...e,children:[]},{space:a===Bt.svg?"svg":"html"}),s={type:ne.START_TAG,tagName:n,tagID:dn(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Gn(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function B1(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Jm.includes(n)||t.parser.tokenizer.state===Se.PLAINTEXT)return;fn(t,xr(e));const r={type:ne.END_TAG,tagName:n,tagID:dn(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Gn(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Se.RCDATA||t.parser.tokenizer.state===Se.RAWTEXT||t.parser.tokenizer.state===Se.SCRIPT_DATA)&&(t.parser.tokenizer.state=Se.DATA)}function F1(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Gn(e){const t=pt(e)||{line:void 0,column:void 0,offset:void 0},n=xr(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function H1(e){return"children"in e?an({...e,children:[]}):an(e)}function tc(e){return function(t,n){return Ko(t,{...e,file:n})}}const U1=e=>Ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},Ne.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.95 7.95 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"})),z1=({content:e,metaData:t})=>{const{chatlineLabelUserTranslation:n}=ja();return O.jsxs("div",{className:"flex px-3 justify-between mt-8 bg-gray-200 rounded-lg",children:[O.jsx("div",{className:"w-10 mr-3 flex-col content-center",children:O.jsx("div",{children:O.jsx(U1,{fill:"#4564d6"})})}),O.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":" text-gray-800"}`,children:[O.jsx("p",{className:"font-bold",children:n}),O.jsx("div",{children:O.jsx(po,{rehypePlugins:[tc],children:e&&e})})]})]})},j1=({})=>{const{companySettings:e}=k.useContext(Mn);return O.jsx("div",{className:`assistant
|
|
59
|
+
`}),n}function cs(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ds(e,t){const n=Zh(e,t),r=n.one(e,void 0),a=jh(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
60
|
+
`},a),i}function rm(e,t){return e&&"run"in e?async function(n,r){const a=ds(n,{file:r,...t});await e.run(a,r)}:function(n,r){return ds(n,{file:r,...t||e})}}function fs(e){if(e)throw e}var jr,hs;function am(){if(hs)return jr;hs=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},i=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var d=e.call(c,"constructor"),f=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!f)return!1;var m;for(m in c);return typeof m>"u"||e.call(c,m)},s=function(c,d){n&&d.name==="__proto__"?n(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},o=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(r)return r(c,d).value}else return;return c[d]};return jr=function l(){var c,d,f,m,h,y,x=arguments[0],L=1,_=arguments.length,R=!1;for(typeof x=="boolean"&&(R=x,x=arguments[1]||{},L=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});L<_;++L)if(c=arguments[L],c!=null)for(d in c)f=o(x,d),m=o(c,d),x!==m&&(R&&m&&(i(m)||(h=a(m)))?(h?(h=!1,y=f&&a(f)?f:[]):y=f&&i(f)?f:{},s(x,{name:d,newValue:l(R,y,m)})):typeof m<"u"&&s(x,{name:d,newValue:m}));return x},jr}var im=am();const $r=Ba(im);function Sa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function sm(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(l,...c){const d=e[++i];let f=-1;if(l){s(l);return}for(;++f<a.length;)(c[f]===null||c[f]===void 0)&&(c[f]=a[f]);a=c,d?um(d,o)(...c):s(null,...c)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function um(e,t){let n;return r;function r(...s){const o=e.length>s.length;let l;o&&s.push(a);try{l=e.apply(this,s)}catch(c){const d=c;if(o&&n)throw d;return a(d)}o||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(s,...o){n||(n=!0,t(s,...o))}function i(s){a(null,s)}}const at={basename:om,dirname:lm,extname:cm,join:dm,sep:"/"};function om(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Fn(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(r=a):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function lm(e){if(Fn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function cm(e){Fn(e);let t=e.length,n=-1,r=0,a=-1,i=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function dm(...e){let t=-1,n;for(;++t<e.length;)Fn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":fm(n)}function fm(e){Fn(e);const t=e.codePointAt(0)===47;let n=hm(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function hm(e,t){let n="",r=0,a=-1,i=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",r=0,a=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),r=s-a-1;a=s,i=0}else o===46&&i>-1?i++:i=-1}return n}function Fn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const mm={cwd:pm};function pm(){return"/"}function Ca(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bm(e){if(typeof e=="string")e=new URL(e);else if(!Ca(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Em(e)}function Em(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const zr=["history","path","basename","stem","extname","dirname"];class go{constructor(t){let n;t?Ca(t)?n={path:t}:typeof t=="string"||gm(t)?n={value:t}:n=t:n={},this.cwd=mm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<zr.length;){const i=zr[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)zr.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?at.basename(this.path):void 0}set basename(t){Gr(t,"basename"),Yr(t,"basename"),this.path=at.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?at.dirname(this.path):void 0}set dirname(t){ms(this.basename,"dirname"),this.path=at.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?at.extname(this.path):void 0}set extname(t){if(Yr(t,"extname"),ms(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=at.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ca(t)&&(t=bm(t)),Gr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?at.basename(this.path,this.extname):void 0}set stem(t){Gr(t,"stem"),Yr(t,"stem"),this.path=at.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Be(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Yr(e,t){if(e&&e.includes(at.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+at.sep+"`")}function Gr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ms(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function gm(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Tm=(function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};Object.setPrototypeOf(i,r);const s=Object.getOwnPropertyNames(a);for(const o of s){const l=Object.getOwnPropertyDescriptor(a,o);l&&Object.defineProperty(i,o,l)}return i}),ym={}.hasOwnProperty;class ni extends Tm{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=sm()}copy(){const t=new ni;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data($r(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Wr("data",this.frozen),this.namespace[t]=n,this):ym.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Wr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Wn(t),r=this.parser||this.Parser;return Vr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Vr("process",this.parser||this.Parser),qr("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const o=Wn(t),l=r.parse(o);r.run(l,o,function(d,f,m){if(d||!f||!m)return c(d);const h=f,y=r.stringify(h,m);_m(y)?m.value=y:m.result=y,c(d,m)});function c(d,f){d||!f?s(d):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Vr("processSync",this.parser||this.Parser),qr("processSync",this.compiler||this.Compiler),this.process(t,a),bs("processSync","process",n),r;function a(i,s){n=!0,fs(i),r=s}}run(t,n,r){ps(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,o){const l=Wn(n);a.run(t,l,c);function c(d,f,m){const h=f||t;d?o(d):s?s(h):r(void 0,h,m)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),bs("runSync","run",r),a;function i(s,o){fs(s),a=o,r=!0}}stringify(t,n){this.freeze();const r=Wn(n),a=this.compiler||this.Compiler;return qr("stringify",a),ps(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Wr("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...f]=c;l(d,f)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(c.plugins),c.settings&&(a.settings=$r(!0,a.settings,c.settings))}function o(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const f=c[d];i(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,d){let f=-1,m=-1;for(;++f<r.length;)if(r[f][0]===c){m=f;break}if(m===-1)r.push([c,...d]);else if(d.length>0){let[h,...y]=d;const x=r[m][1];Sa(x)&&Sa(h)&&(h=$r(!0,x,h)),r[m]=[c,h,...y]}}}}const xm=new ni().freeze();function Vr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Wr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ps(e){if(!Sa(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function bs(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Wn(e){return Am(e)?e:new go(e)}function Am(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _m(e){return typeof e=="string"||Sm(e)}function Sm(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Cm="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Es=[],gs={allowDangerousHtml:!0},Im=/^(https?|ircs?|mailto|xmpp)$/i,Nm=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function To(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,s=e.disallowedElements,o=e.rehypePlugins||Es,l=e.remarkPlugins||Es,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...gs}:gs,d=e.skipHtml,f=e.unwrapDisallowed,m=e.urlTransform||vm,h=xm().use(oh).use(l).use(rm,c).use(o),y=new go;typeof r=="string"&&(y.value=r);for(const R of Nm)Object.hasOwn(e,R.from)&&(""+R.from+(R.to?"use `"+R.to+"` instead":"remove it")+Cm+R.id,void 0);const x=h.parse(y);let L=h.runSync(x,y);return a&&(L={type:"element",tagName:"div",properties:{className:a},children:L.type==="root"?L.children:[L]}),ti(L,_),Ud(L,{Fragment:N.Fragment,components:i,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function _(R,O,U){if(R.type==="raw"&&U&&typeof O=="number")return d?U.children.splice(O,1):U.children[O]={type:"text",value:R.value},O;if(R.type==="element"){let S;for(S in Fr)if(Object.hasOwn(Fr,S)&&Object.hasOwn(R.properties,S)){const w=R.properties[S],Q=Fr[S];(Q===null||Q.includes(R.tagName))&&(R.properties[S]=m(String(w||""),S,R))}}if(R.type==="element"){let S=t?!t.includes(R.tagName):s?s.includes(R.tagName):!1;if(!S&&n&&typeof O=="number"&&(S=!n(R,O,U)),S&&U&&typeof O=="number")return f&&R.children?U.children.splice(O,1,...R.children):U.children.splice(O,1),O}}}function vm(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||Im.test(e.slice(0,t))?e:""}const Ts=/[#.]/g;function wm(e,t){const n=e||"",r={};let a=0,i,s;for(;a<n.length;){Ts.lastIndex=a;const o=Ts.exec(n),l=n.slice(a,o?o.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,a+=l.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}const Om=new Set(["button","menu","reset","submit"]),Ia={}.hasOwnProperty;function yo(e,t,n){const r=n&&Dm(n);function a(i,s,...o){let l=-1,c;if(i==null){c={type:"root",children:[]};const d=s;o.unshift(d)}else if(c=wm(i,t),c.tagName=c.tagName.toLowerCase(),r&&Ia.call(r,c.tagName)&&(c.tagName=r[c.tagName]),Lm(s,c.tagName)){let d;for(d in s)Ia.call(s,d)&&Rm(e,c.properties,d,s[d])}else o.unshift(s);for(;++l<o.length;)Na(c.children,o[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function Lm(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?Om.has(e.type.toLowerCase()):!("value"in e)}function Rm(e,t,n,r){const a=gr(e,n);let i=-1,s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?a.spaceSeparated?s=Hi(r):a.commaSeparated?s=Di(r):a.commaOrSpaceSeparated?s=Hi(Di(r).join(" ")):s=ys(a,a.property,r):Array.isArray(r)?s=r.concat():s=a.property==="style"?Pm(r):String(r);if(Array.isArray(s)){const o=[];for(;++i<s.length;){const l=ys(a,a.property,s[i]);o[i]=l}s=o}if(a.property==="className"&&Array.isArray(t.className)){const o=s;s=t.className.concat(o)}t[a.property]=s}}function Na(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Na(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?Na(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function ys(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||vn(n)===vn(t)))return!0}return n}function Pm(e){const t=[];let n;for(n in e)Ia.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function Dm(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const km=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Mm=yo(Bn,"div"),Bm=yo(_t,"g",km);function Fm(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=xs(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],l=xs(t,o),c=l===-1?t.length+1:l+1;if(o===c)break;n.push(c)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function xs(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
61
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Pt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},xo={}.hasOwnProperty,Hm=Object.prototype;function Um(e,t){const n=t||{};return ri({file:n.file||void 0,location:!1,schema:n.space==="svg"?_t:Bn,verbose:n.verbose||!1},e)}function ri(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},tr(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Ao(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=Fm(i),o=s.toPoint(0),l=s.toPoint(i.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},tr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},tr(e,r,n),n}default:return n=jm(e,t),n}}function Ao(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=ri(e,t[n]);r.push(a)}return r}function jm(e,t){const n=e.schema;e.schema=t.namespaceURI===Pt.svg?_t:Bn;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;xo.call(Hm,l)||(a[l]=o.value)}const s=(e.schema.space==="svg"?Bm:Mm)(t.tagName,a,Ao(e,t.childNodes));if(tr(e,t,s),s.tagName==="template"){const o=t,l=o.sourceCodeLocation,c=l&&l.startTag&&Xt(l.startTag),d=l&&l.endTag&&Xt(l.endTag),f=ri(e,o.content);c&&d&&e.file&&(f.position={start:c.end,end:d.start}),s.content=f}return e.schema=n,s}function tr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=$m(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function $m(e,t,n){const r=Xt(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(n.attrs)for(s in n.attrs)xo.call(n.attrs,s)&&(i[gr(e.schema,s).property]=Xt(n.attrs[s]));n.startTag;const o=Xt(n.startTag),l=n.endTag?Xt(n.endTag):void 0,c={opening:o};l&&(c.closing=l),c.properties=i,t.data={position:c}}}return r}function Xt(e){const t=As({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=As({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function As(e){return e.line&&e.column?e:void 0}const _s={}.hasOwnProperty;function _o(e,t){const n=t||{};function r(a,...i){let s=r.invalid;const o=r.handlers;if(a&&_s.call(a,e)){const l=String(a[e]);s=_s.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const zm={},Ym={}.hasOwnProperty,So=_o("type",{handlers:{root:Vm,element:Km,text:Xm,comment:Qm,doctype:Wm}});function Gm(e,t){const r=(t||zm).space;return So(e,r==="svg"?_t:Bn)}function Vm(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ai(e.children,n,t),sn(e,n),n}function qm(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ai(e.children,n,t),sn(e,n),n}function Wm(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return sn(e,t),t}function Xm(e){const t={nodeName:"#text",value:e.value,parentNode:null};return sn(e,t),t}function Qm(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return sn(e,t),t}function Km(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=_t);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Ym.call(e.properties,i)){const l=Zm(r,i,e.properties[i]);l&&a.push(l)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Pt[s],childNodes:[],parentNode:null};return o.childNodes=ai(e.children,o,r),sn(e,o),e.tagName==="template"&&e.content&&(o.content=qm(e.content,r)),o}function Zm(e,t,n){const r=gr(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Mu(n):Gu(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Pt[r.space]}return a}function ai(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=So(e[r],n);i.parentNode=t,a.push(i)}return a}function sn(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Jm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ep=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ie="�";var b;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(b||(b={}));const je={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Co(e){return e>=55296&&e<=57343}function tp(e){return e>=56320&&e<=57343}function np(e,t){return(e-55296)*1024+9216+t}function Io(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function No(e){return e>=64976&&e<=65007||ep.has(e)}var I;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(I||(I={}));const rp=65536;class ap{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=rp,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,s=a+n,o=i+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(tp(n))return this.pos++,this._addGap(),np(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,b.EOF;return this._err(I.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,b.EOF;const r=this.html.charCodeAt(n);return r===b.CARRIAGE_RETURN?b.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,b.EOF;let t=this.html.charCodeAt(this.pos);return t===b.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,b.LINE_FEED):t===b.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Co(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===b.LINE_FEED||t===b.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Io(t)?this._err(I.controlCharacterInInputStream):No(t)&&this._err(I.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var de;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(de||(de={}));function vo(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const wo=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ip=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Xr;const sp=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),up=(Xr=String.fromCodePoint)!==null&&Xr!==void 0?Xr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function op(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=sp.get(e))!==null&&t!==void 0?t:e}var Me;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Me||(Me={}));const lp=32;var yt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(yt||(yt={}));function va(e){return e>=Me.ZERO&&e<=Me.NINE}function cp(e){return e>=Me.UPPER_A&&e<=Me.UPPER_F||e>=Me.LOWER_A&&e<=Me.LOWER_F}function dp(e){return e>=Me.UPPER_A&&e<=Me.UPPER_Z||e>=Me.LOWER_A&&e<=Me.LOWER_Z||va(e)}function fp(e){return e===Me.EQUALS||dp(e)}var ke;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ke||(ke={}));var bt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(bt||(bt={}));class Oo{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ke.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=bt.Strict}startEntity(t){this.decodeMode=t,this.state=ke.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ke.EntityStart:return t.charCodeAt(n)===Me.NUM?(this.state=ke.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ke.NamedEntity,this.stateNamedEntity(t,n));case ke.NumericStart:return this.stateNumericStart(t,n);case ke.NumericDecimal:return this.stateNumericDecimal(t,n);case ke.NumericHex:return this.stateNumericHex(t,n);case ke.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|lp)===Me.LOWER_X?(this.state=ke.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ke.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(va(a)||cp(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(va(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Me.SEMI)this.consumed+=1;else if(this.decodeMode===bt.Strict)return 0;return this.emitCodePoint(op(this.result),this.consumed),this.errors&&(t!==Me.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&yt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=hp(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===bt.Attribute&&(i===0||fp(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&yt.VALUE_LENGTH)>>14,i!==0){if(s===Me.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==bt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&yt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~yt.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case ke.NamedEntity:return this.result!==0&&(this.decodeMode!==bt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ke.NumericDecimal:return this.emitNumericEntity(0,2);case ke.NumericHex:return this.emitNumericEntity(0,3);case ke.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ke.EntityStart:return 0}}}function Lo(e){let t="";const n=new Oo(e,r=>t+=up(r));return function(a,i){let s=0,o=0;for(;(o=a.indexOf("&",o))>=0;){t+=a.slice(s,o),n.startEntity(i);const c=n.write(a,o+1);if(c<0){s=o+n.end();break}s=o+c,o=c===0?s+1:s}const l=t+a.slice(s);return t="",l}}function hp(e,t,n,r){const a=(t&yt.BRANCH_LENGTH)>>7,i=t&yt.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:e[n+l]-1}let s=n,o=s+a-1;for(;s<=o;){const l=s+o>>>1,c=e[l];if(c<r)s=l+1;else if(c>r)o=l-1;else return e[l+a]}return-1}Lo(wo);Lo(ip);var P;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(P||(P={}));var Dt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Dt||(Dt={}));var Qe;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Qe||(Qe={}));var A;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(A||(A={}));var u;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(u||(u={}));const mp=new Map([[A.A,u.A],[A.ADDRESS,u.ADDRESS],[A.ANNOTATION_XML,u.ANNOTATION_XML],[A.APPLET,u.APPLET],[A.AREA,u.AREA],[A.ARTICLE,u.ARTICLE],[A.ASIDE,u.ASIDE],[A.B,u.B],[A.BASE,u.BASE],[A.BASEFONT,u.BASEFONT],[A.BGSOUND,u.BGSOUND],[A.BIG,u.BIG],[A.BLOCKQUOTE,u.BLOCKQUOTE],[A.BODY,u.BODY],[A.BR,u.BR],[A.BUTTON,u.BUTTON],[A.CAPTION,u.CAPTION],[A.CENTER,u.CENTER],[A.CODE,u.CODE],[A.COL,u.COL],[A.COLGROUP,u.COLGROUP],[A.DD,u.DD],[A.DESC,u.DESC],[A.DETAILS,u.DETAILS],[A.DIALOG,u.DIALOG],[A.DIR,u.DIR],[A.DIV,u.DIV],[A.DL,u.DL],[A.DT,u.DT],[A.EM,u.EM],[A.EMBED,u.EMBED],[A.FIELDSET,u.FIELDSET],[A.FIGCAPTION,u.FIGCAPTION],[A.FIGURE,u.FIGURE],[A.FONT,u.FONT],[A.FOOTER,u.FOOTER],[A.FOREIGN_OBJECT,u.FOREIGN_OBJECT],[A.FORM,u.FORM],[A.FRAME,u.FRAME],[A.FRAMESET,u.FRAMESET],[A.H1,u.H1],[A.H2,u.H2],[A.H3,u.H3],[A.H4,u.H4],[A.H5,u.H5],[A.H6,u.H6],[A.HEAD,u.HEAD],[A.HEADER,u.HEADER],[A.HGROUP,u.HGROUP],[A.HR,u.HR],[A.HTML,u.HTML],[A.I,u.I],[A.IMG,u.IMG],[A.IMAGE,u.IMAGE],[A.INPUT,u.INPUT],[A.IFRAME,u.IFRAME],[A.KEYGEN,u.KEYGEN],[A.LABEL,u.LABEL],[A.LI,u.LI],[A.LINK,u.LINK],[A.LISTING,u.LISTING],[A.MAIN,u.MAIN],[A.MALIGNMARK,u.MALIGNMARK],[A.MARQUEE,u.MARQUEE],[A.MATH,u.MATH],[A.MENU,u.MENU],[A.META,u.META],[A.MGLYPH,u.MGLYPH],[A.MI,u.MI],[A.MO,u.MO],[A.MN,u.MN],[A.MS,u.MS],[A.MTEXT,u.MTEXT],[A.NAV,u.NAV],[A.NOBR,u.NOBR],[A.NOFRAMES,u.NOFRAMES],[A.NOEMBED,u.NOEMBED],[A.NOSCRIPT,u.NOSCRIPT],[A.OBJECT,u.OBJECT],[A.OL,u.OL],[A.OPTGROUP,u.OPTGROUP],[A.OPTION,u.OPTION],[A.P,u.P],[A.PARAM,u.PARAM],[A.PLAINTEXT,u.PLAINTEXT],[A.PRE,u.PRE],[A.RB,u.RB],[A.RP,u.RP],[A.RT,u.RT],[A.RTC,u.RTC],[A.RUBY,u.RUBY],[A.S,u.S],[A.SCRIPT,u.SCRIPT],[A.SEARCH,u.SEARCH],[A.SECTION,u.SECTION],[A.SELECT,u.SELECT],[A.SOURCE,u.SOURCE],[A.SMALL,u.SMALL],[A.SPAN,u.SPAN],[A.STRIKE,u.STRIKE],[A.STRONG,u.STRONG],[A.STYLE,u.STYLE],[A.SUB,u.SUB],[A.SUMMARY,u.SUMMARY],[A.SUP,u.SUP],[A.TABLE,u.TABLE],[A.TBODY,u.TBODY],[A.TEMPLATE,u.TEMPLATE],[A.TEXTAREA,u.TEXTAREA],[A.TFOOT,u.TFOOT],[A.TD,u.TD],[A.TH,u.TH],[A.THEAD,u.THEAD],[A.TITLE,u.TITLE],[A.TR,u.TR],[A.TRACK,u.TRACK],[A.TT,u.TT],[A.U,u.U],[A.UL,u.UL],[A.SVG,u.SVG],[A.VAR,u.VAR],[A.WBR,u.WBR],[A.XMP,u.XMP]]);function un(e){var t;return(t=mp.get(e))!==null&&t!==void 0?t:u.UNKNOWN}const k=u,pp={[P.HTML]:new Set([k.ADDRESS,k.APPLET,k.AREA,k.ARTICLE,k.ASIDE,k.BASE,k.BASEFONT,k.BGSOUND,k.BLOCKQUOTE,k.BODY,k.BR,k.BUTTON,k.CAPTION,k.CENTER,k.COL,k.COLGROUP,k.DD,k.DETAILS,k.DIR,k.DIV,k.DL,k.DT,k.EMBED,k.FIELDSET,k.FIGCAPTION,k.FIGURE,k.FOOTER,k.FORM,k.FRAME,k.FRAMESET,k.H1,k.H2,k.H3,k.H4,k.H5,k.H6,k.HEAD,k.HEADER,k.HGROUP,k.HR,k.HTML,k.IFRAME,k.IMG,k.INPUT,k.LI,k.LINK,k.LISTING,k.MAIN,k.MARQUEE,k.MENU,k.META,k.NAV,k.NOEMBED,k.NOFRAMES,k.NOSCRIPT,k.OBJECT,k.OL,k.P,k.PARAM,k.PLAINTEXT,k.PRE,k.SCRIPT,k.SECTION,k.SELECT,k.SOURCE,k.STYLE,k.SUMMARY,k.TABLE,k.TBODY,k.TD,k.TEMPLATE,k.TEXTAREA,k.TFOOT,k.TH,k.THEAD,k.TITLE,k.TR,k.TRACK,k.UL,k.WBR,k.XMP]),[P.MATHML]:new Set([k.MI,k.MO,k.MN,k.MS,k.MTEXT,k.ANNOTATION_XML]),[P.SVG]:new Set([k.TITLE,k.FOREIGN_OBJECT,k.DESC]),[P.XLINK]:new Set,[P.XML]:new Set,[P.XMLNS]:new Set},wa=new Set([k.H1,k.H2,k.H3,k.H4,k.H5,k.H6]);A.STYLE,A.SCRIPT,A.XMP,A.IFRAME,A.NOEMBED,A.NOFRAMES,A.PLAINTEXT;var E;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(E||(E={}));const Le={DATA:E.DATA,RCDATA:E.RCDATA,RAWTEXT:E.RAWTEXT,SCRIPT_DATA:E.SCRIPT_DATA,PLAINTEXT:E.PLAINTEXT,CDATA_SECTION:E.CDATA_SECTION};function bp(e){return e>=b.DIGIT_0&&e<=b.DIGIT_9}function En(e){return e>=b.LATIN_CAPITAL_A&&e<=b.LATIN_CAPITAL_Z}function Ep(e){return e>=b.LATIN_SMALL_A&&e<=b.LATIN_SMALL_Z}function gt(e){return Ep(e)||En(e)}function Ss(e){return gt(e)||bp(e)}function Xn(e){return e+32}function Ro(e){return e===b.SPACE||e===b.LINE_FEED||e===b.TABULATION||e===b.FORM_FEED}function Cs(e){return Ro(e)||e===b.SOLIDUS||e===b.GREATER_THAN_SIGN}function gp(e){return e===b.NULL?I.nullCharacterReference:e>1114111?I.characterReferenceOutsideUnicodeRange:Co(e)?I.surrogateCharacterReference:No(e)?I.noncharacterCharacterReference:Io(e)||e===b.CARRIAGE_RETURN?I.controlCharacterReference:null}class Tp{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=E.DATA,this.returnState=E.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ap(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Oo(wo,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(I.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(I.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=gp(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:de.START_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:de.END_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:de.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:de.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(vo(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(I.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=un(t.tagName),t.type===de.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(I.endTagWithAttributes),t.selfClosing&&this._err(I.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case de.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case de.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case de.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:de.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Ro(t)?de.WHITESPACE_CHARACTER:t===b.NULL?de.NULL_CHARACTER:de.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(de.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=E.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?bt.Attribute:bt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===E.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case E.DATA:{this._stateData(t);break}case E.RCDATA:{this._stateRcdata(t);break}case E.RAWTEXT:{this._stateRawtext(t);break}case E.SCRIPT_DATA:{this._stateScriptData(t);break}case E.PLAINTEXT:{this._statePlaintext(t);break}case E.TAG_OPEN:{this._stateTagOpen(t);break}case E.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case E.TAG_NAME:{this._stateTagName(t);break}case E.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case E.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case E.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case E.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case E.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case E.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case E.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case E.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case E.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case E.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case E.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case E.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case E.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case E.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case E.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case E.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case E.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case E.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case E.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case E.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case E.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case E.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case E.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case E.BOGUS_COMMENT:{this._stateBogusComment(t);break}case E.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case E.COMMENT_START:{this._stateCommentStart(t);break}case E.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case E.COMMENT:{this._stateComment(t);break}case E.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case E.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case E.COMMENT_END:{this._stateCommentEnd(t);break}case E.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case E.DOCTYPE:{this._stateDoctype(t);break}case E.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case E.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case E.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case E.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case E.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case E.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case E.CDATA_SECTION:{this._stateCdataSection(t);break}case E.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case E.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case E.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case E.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case b.LESS_THAN_SIGN:{this.state=E.TAG_OPEN;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(I.unexpectedNullCharacter),this._emitCodePoint(t);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case b.AMPERSAND:{this._startCharacterReference();break}case b.LESS_THAN_SIGN:{this.state=E.RCDATA_LESS_THAN_SIGN;break}case b.NULL:{this._err(I.unexpectedNullCharacter),this._emitChars(Ie);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case b.LESS_THAN_SIGN:{this.state=E.RAWTEXT_LESS_THAN_SIGN;break}case b.NULL:{this._err(I.unexpectedNullCharacter),this._emitChars(Ie);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_LESS_THAN_SIGN;break}case b.NULL:{this._err(I.unexpectedNullCharacter),this._emitChars(Ie);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case b.NULL:{this._err(I.unexpectedNullCharacter),this._emitChars(Ie);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(gt(t))this._createStartTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case b.EXCLAMATION_MARK:{this.state=E.MARKUP_DECLARATION_OPEN;break}case b.SOLIDUS:{this.state=E.END_TAG_OPEN;break}case b.QUESTION_MARK:{this._err(I.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t);break}case b.EOF:{this._err(I.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(I.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=E.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(gt(t))this._createEndTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case b.GREATER_THAN_SIGN:{this._err(I.missingEndTagName),this.state=E.DATA;break}case b.EOF:{this._err(I.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(I.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_ATTRIBUTE_NAME;break}case b.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case b.NULL:{this._err(I.unexpectedNullCharacter),n.tagName+=Ie;break}case b.EOF:{this._err(I.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(En(t)?Xn(t):t)}}_stateRcdataLessThanSign(t){t===b.SOLIDUS?this.state=E.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){gt(t)?(this.state=E.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=E.BEFORE_ATTRIBUTE_NAME,!1;case b.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=E.SELF_CLOSING_START_TAG,!1;case b.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=E.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===b.SOLIDUS?this.state=E.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){gt(t)?(this.state=E.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case b.SOLIDUS:{this.state=E.SCRIPT_DATA_END_TAG_OPEN;break}case b.EXCLAMATION_MARK:{this.state=E.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=E.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){gt(t)?(this.state=E.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===b.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===b.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.NULL:{this._err(I.unexpectedNullCharacter),this._emitChars(Ie);break}case b.EOF:{this._err(I.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.NULL:{this._err(I.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case b.EOF:{this._err(I.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case b.HYPHEN_MINUS:{this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case b.NULL:{this._err(I.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case b.EOF:{this._err(I.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===b.SOLIDUS?this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:gt(t)?(this._emitChars("<"),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){gt(t)?(this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(je.SCRIPT,!1)&&Cs(this.preprocessor.peek(je.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<je.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.NULL:{this._err(I.unexpectedNullCharacter),this._emitChars(Ie);break}case b.EOF:{this._err(I.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.NULL:{this._err(I.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case b.EOF:{this._err(I.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case b.HYPHEN_MINUS:{this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case b.NULL:{this._err(I.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case b.EOF:{this._err(I.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===b.SOLIDUS?(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(je.SCRIPT,!1)&&Cs(this.preprocessor.peek(je.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<je.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.SOLIDUS:case b.GREATER_THAN_SIGN:case b.EOF:{this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case b.EQUALS_SIGN:{this._err(I.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=E.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:case b.SOLIDUS:case b.GREATER_THAN_SIGN:case b.EOF:{this._leaveAttrName(),this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case b.EQUALS_SIGN:{this._leaveAttrName(),this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case b.QUOTATION_MARK:case b.APOSTROPHE:case b.LESS_THAN_SIGN:{this._err(I.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case b.NULL:{this._err(I.unexpectedNullCharacter),this.currentAttr.name+=Ie;break}default:this.currentAttr.name+=String.fromCodePoint(En(t)?Xn(t):t)}}_stateAfterAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case b.EQUALS_SIGN:{this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(I.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{this.state=E.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this.state=E.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(I.missingAttributeValue),this.state=E.DATA,this.emitCurrentTagToken();break}default:this.state=E.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case b.QUOTATION_MARK:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(I.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case b.EOF:{this._err(I.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case b.APOSTROPHE:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(I.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case b.EOF:{this._err(I.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case b.NULL:{this._err(I.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case b.QUOTATION_MARK:case b.APOSTROPHE:case b.LESS_THAN_SIGN:case b.EQUALS_SIGN:case b.GRAVE_ACCENT:{this._err(I.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case b.EOF:{this._err(I.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case b.SOLIDUS:{this._leaveAttrValue(),this.state=E.SELF_CLOSING_START_TAG;break}case b.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(I.eofInTag),this._emitEOFToken();break}default:this._err(I.missingWhitespaceBetweenAttributes),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case b.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=E.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(I.eofInTag),this._emitEOFToken();break}default:this._err(I.unexpectedSolidusInTag),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case b.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case b.NULL:{this._err(I.unexpectedNullCharacter),n.data+=Ie;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(je.DASH_DASH,!0)?(this._createCommentToken(je.DASH_DASH.length+1),this.state=E.COMMENT_START):this._consumeSequenceIfMatch(je.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(je.DOCTYPE.length+1),this.state=E.DOCTYPE):this._consumeSequenceIfMatch(je.CDATA_START,!0)?this.inForeignNode?this.state=E.CDATA_SECTION:(this._err(I.cdataInHtmlContent),this._createCommentToken(je.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=E.BOGUS_COMMENT):this._ensureHibernation()||(this._err(I.incorrectlyOpenedComment),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_START_DASH;break}case b.GREATER_THAN_SIGN:{this._err(I.abruptClosingOfEmptyComment),this.state=E.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case b.GREATER_THAN_SIGN:{this._err(I.abruptClosingOfEmptyComment),this.state=E.DATA,this.emitCurrentComment(n);break}case b.EOF:{this._err(I.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_END_DASH;break}case b.LESS_THAN_SIGN:{n.data+="<",this.state=E.COMMENT_LESS_THAN_SIGN;break}case b.NULL:{this._err(I.unexpectedNullCharacter),n.data+=Ie;break}case b.EOF:{this._err(I.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case b.EXCLAMATION_MARK:{n.data+="!",this.state=E.COMMENT_LESS_THAN_SIGN_BANG;break}case b.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===b.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=E.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===b.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=E.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==b.GREATER_THAN_SIGN&&t!==b.EOF&&this._err(I.nestedComment),this.state=E.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case b.EOF:{this._err(I.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case b.EXCLAMATION_MARK:{this.state=E.COMMENT_END_BANG;break}case b.HYPHEN_MINUS:{n.data+="-";break}case b.EOF:{this._err(I.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{n.data+="--!",this.state=E.COMMENT_END_DASH;break}case b.GREATER_THAN_SIGN:{this._err(I.incorrectlyClosedComment),this.state=E.DATA,this.emitCurrentComment(n);break}case b.EOF:{this._err(I.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=E.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case b.EOF:{this._err(I.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(I.missingWhitespaceBeforeDoctypeName),this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(En(t))this._createDoctypeToken(String.fromCharCode(Xn(t))),this.state=E.DOCTYPE_NAME;else switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.NULL:{this._err(I.unexpectedNullCharacter),this._createDoctypeToken(Ie),this.state=E.DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this._err(I.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(I.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=E.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.AFTER_DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.NULL:{this._err(I.unexpectedNullCharacter),n.name+=Ie;break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(En(t)?Xn(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(je.PUBLIC,!1)?this.state=E.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(je.SYSTEM,!1)?this.state=E.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(I.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.QUOTATION_MARK:{this._err(I.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(I.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(I.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(I.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(I.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(I.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case b.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.NULL:{this._err(I.unexpectedNullCharacter),n.publicId+=Ie;break}case b.GREATER_THAN_SIGN:{this._err(I.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case b.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.NULL:{this._err(I.unexpectedNullCharacter),n.publicId+=Ie;break}case b.GREATER_THAN_SIGN:{this._err(I.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.QUOTATION_MARK:{this._err(I.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(I.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(I.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(I.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.QUOTATION_MARK:{this._err(I.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(I.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(I.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(I.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(I.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(I.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case b.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.NULL:{this._err(I.unexpectedNullCharacter),n.systemId+=Ie;break}case b.GREATER_THAN_SIGN:{this._err(I.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case b.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.NULL:{this._err(I.unexpectedNullCharacter),n.systemId+=Ie;break}case b.GREATER_THAN_SIGN:{this._err(I.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(I.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(I.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.NULL:{this._err(I.unexpectedNullCharacter);break}case b.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case b.RIGHT_SQUARE_BRACKET:{this.state=E.CDATA_SECTION_BRACKET;break}case b.EOF:{this._err(I.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===b.RIGHT_SQUARE_BRACKET?this.state=E.CDATA_SECTION_END:(this._emitChars("]"),this.state=E.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case b.GREATER_THAN_SIGN:{this.state=E.DATA;break}case b.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=E.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(b.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ss(this.preprocessor.peek(1))?E.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ss(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===b.SEMICOLON&&this._err(I.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Po=new Set([u.DD,u.DT,u.LI,u.OPTGROUP,u.OPTION,u.P,u.RB,u.RP,u.RT,u.RTC]),Is=new Set([...Po,u.CAPTION,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]),ir=new Set([u.APPLET,u.CAPTION,u.HTML,u.MARQUEE,u.OBJECT,u.TABLE,u.TD,u.TEMPLATE,u.TH]),yp=new Set([...ir,u.OL,u.UL]),xp=new Set([...ir,u.BUTTON]),Ns=new Set([u.ANNOTATION_XML,u.MI,u.MN,u.MO,u.MS,u.MTEXT]),vs=new Set([u.DESC,u.FOREIGN_OBJECT,u.TITLE]),Ap=new Set([u.TR,u.TEMPLATE,u.HTML]),_p=new Set([u.TBODY,u.TFOOT,u.THEAD,u.TEMPLATE,u.HTML]),Sp=new Set([u.TABLE,u.TEMPLATE,u.HTML]),Cp=new Set([u.TD,u.TH]);class Ip{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=u.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===u.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===P.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==P.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(wa,P.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Cp,P.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Sp,P.HTML)}clearBackToTableBodyContext(){this.clearBackTo(_p,P.HTML)}clearBackToTableRowContext(){this.clearBackTo(Ap,P.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===u.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===u.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case P.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case P.SVG:{if(vs.has(a))return!1;break}case P.MATHML:{if(Ns.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,ir)}hasInListItemScope(t){return this.hasInDynamicScope(t,yp)}hasInButtonScope(t){return this.hasInDynamicScope(t,xp)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case P.HTML:{if(wa.has(n))return!0;if(ir.has(n))return!1;break}case P.SVG:{if(vs.has(n))return!1;break}case P.MATHML:{if(Ns.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===P.HTML)switch(this.tagIDs[n]){case t:return!0;case u.TABLE:case u.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===P.HTML)switch(this.tagIDs[t]){case u.TBODY:case u.THEAD:case u.TFOOT:return!0;case u.TABLE:case u.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===P.HTML)switch(this.tagIDs[n]){case t:return!0;case u.OPTION:case u.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Po.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Is.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Is.has(this.currentTagId);)this.pop()}}const Qr=3;var ot;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ot||(ot={}));const ws={type:ot.Marker};class Np{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===ot.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===s){const d=this.treeAdapter.getAttrList(c);d.length===a&&r.push({idx:o,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Qr)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Qr)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=Qr&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(ws)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ot.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ot.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(ws);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ot.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ot.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ot.Element&&n.element===t)}}const Tt={createDocument(){return{nodeName:"#document",mode:Qe.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Tt.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Tt.isTextNode(n)){n.value+=t;return}}Tt.appendChild(e,Tt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Tt.isTextNode(r)?r.value+=t:Tt.insertBefore(e,Tt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Do="html",vp="about:legacy-compat",wp="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ko=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Op=[...ko,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Lp=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Mo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Rp=[...Mo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Os(e,t){return t.some(n=>e.startsWith(n))}function Pp(e){return e.name===Do&&e.publicId===null&&(e.systemId===null||e.systemId===vp)}function Dp(e){if(e.name!==Do)return Qe.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===wp)return Qe.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Lp.has(n))return Qe.QUIRKS;let r=t===null?Op:ko;if(Os(n,r))return Qe.QUIRKS;if(r=t===null?Mo:Rp,Os(n,r))return Qe.LIMITED_QUIRKS}return Qe.NO_QUIRKS}const Ls={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},kp="definitionurl",Mp="definitionURL",Bp=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Fp=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:P.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:P.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:P.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:P.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:P.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:P.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:P.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:P.XML}],["xml:space",{prefix:"xml",name:"space",namespace:P.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:P.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:P.XMLNS}]]),Hp=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Up=new Set([u.B,u.BIG,u.BLOCKQUOTE,u.BODY,u.BR,u.CENTER,u.CODE,u.DD,u.DIV,u.DL,u.DT,u.EM,u.EMBED,u.H1,u.H2,u.H3,u.H4,u.H5,u.H6,u.HEAD,u.HR,u.I,u.IMG,u.LI,u.LISTING,u.MENU,u.META,u.NOBR,u.OL,u.P,u.PRE,u.RUBY,u.S,u.SMALL,u.SPAN,u.STRONG,u.STRIKE,u.SUB,u.SUP,u.TABLE,u.TT,u.U,u.UL,u.VAR]);function jp(e){const t=e.tagID;return t===u.FONT&&e.attrs.some(({name:r})=>r===Dt.COLOR||r===Dt.SIZE||r===Dt.FACE)||Up.has(t)}function Bo(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===kp){e.attrs[t].name=Mp;break}}function Fo(e){for(let t=0;t<e.attrs.length;t++){const n=Bp.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function ii(e){for(let t=0;t<e.attrs.length;t++){const n=Fp.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function $p(e){const t=Hp.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=un(e.tagName))}function zp(e,t){return t===P.MATHML&&(e===u.MI||e===u.MO||e===u.MN||e===u.MS||e===u.MTEXT)}function Yp(e,t,n){if(t===P.MATHML&&e===u.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Dt.ENCODING){const a=n[r].value.toLowerCase();return a===Ls.TEXT_HTML||a===Ls.APPLICATION_XML}}return t===P.SVG&&(e===u.FOREIGN_OBJECT||e===u.DESC||e===u.TITLE)}function Gp(e,t,n,r){return(!r||r===P.HTML)&&Yp(e,t,n)||(!r||r===P.MATHML)&&zp(e,t)}const Vp="hidden",qp=8,Wp=3;var T;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(T||(T={}));const Xp={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ho=new Set([u.TABLE,u.TBODY,u.TFOOT,u.THEAD,u.TR]),Rs={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Tt,onParseError:null};class Ps{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=T.INITIAL,this.originalInsertionMode=T.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Rs,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Tp(this.options,this),this.activeFormattingElements=new Np(this.treeAdapter),this.fragmentContextID=r?un(this.treeAdapter.getTagName(r)):u.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Ip(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Rs,...n};t??(t=r.treeAdapter.createElement(A.TEMPLATE,P.HTML,[]));const a=r.treeAdapter.createElement("documentmock",P.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===u.TEMPLATE&&i.tmplInsertionModeStack.unshift(T.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:Xp,s={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===P.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,P.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=T.TEXT}switchToPlaintextParsing(){this.insertionMode=T.TEXT,this.originalInsertionMode=T.IN_BODY,this.tokenizer.state=Le.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===A.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==P.HTML))switch(this.fragmentContextID){case u.TITLE:case u.TEXTAREA:{this.tokenizer.state=Le.RCDATA;break}case u.STYLE:case u.XMP:case u.IFRAME:case u.NOEMBED:case u.NOFRAMES:case u.NOSCRIPT:{this.tokenizer.state=Le.RAWTEXT;break}case u.SCRIPT:{this.tokenizer.state=Le.SCRIPT_DATA;break}case u.PLAINTEXT:{this.tokenizer.state=Le.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,P.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,P.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(A.HTML,P.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,u.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:c,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===de.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===u.SVG&&this.treeAdapter.getTagName(n)===A.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===P.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===u.MGLYPH||t.tagID===u.MALIGNMARK)&&!this._isIntegrationPoint(r,n,P.HTML)}_processToken(t){switch(t.type){case de.CHARACTER:{this.onCharacter(t);break}case de.NULL_CHARACTER:{this.onNullCharacter(t);break}case de.COMMENT:{this.onComment(t);break}case de.DOCTYPE:{this.onDoctype(t);break}case de.START_TAG:{this._processStartTag(t);break}case de.END_TAG:{this.onEndTag(t);break}case de.EOF:{this.onEof(t);break}case de.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return Gp(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ot.Marker||this.openElements.contains(a.element)),r=n<0?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=T.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(u.P),this.openElements.popUntilTagNamePopped(u.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case u.TR:{this.insertionMode=T.IN_ROW;return}case u.TBODY:case u.THEAD:case u.TFOOT:{this.insertionMode=T.IN_TABLE_BODY;return}case u.CAPTION:{this.insertionMode=T.IN_CAPTION;return}case u.COLGROUP:{this.insertionMode=T.IN_COLUMN_GROUP;return}case u.TABLE:{this.insertionMode=T.IN_TABLE;return}case u.BODY:{this.insertionMode=T.IN_BODY;return}case u.FRAMESET:{this.insertionMode=T.IN_FRAMESET;return}case u.SELECT:{this._resetInsertionModeForSelect(t);return}case u.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case u.HTML:{this.insertionMode=this.headElement?T.AFTER_HEAD:T.BEFORE_HEAD;return}case u.TD:case u.TH:{if(t>0){this.insertionMode=T.IN_CELL;return}break}case u.HEAD:{if(t>0){this.insertionMode=T.IN_HEAD;return}break}}this.insertionMode=T.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===u.TEMPLATE)break;if(r===u.TABLE){this.insertionMode=T.IN_SELECT_IN_TABLE;return}}this.insertionMode=T.IN_SELECT}_isElementCausesFosterParenting(t){return Ho.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case u.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===P.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case u.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return pp[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Cb(this,t);return}switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{An(this,t);break}case T.BEFORE_HEAD:{_n(this,t);break}case T.IN_HEAD:{Sn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{Cn(this,t);break}case T.AFTER_HEAD:{In(this,t);break}case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:{jo(this,t);break}case T.TEXT:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{Kr(this,t);break}case T.IN_TABLE_TEXT:{qo(this,t);break}case T.IN_COLUMN_GROUP:{sr(this,t);break}case T.AFTER_BODY:{ur(this,t);break}case T.AFTER_AFTER_BODY:{nr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Sb(this,t);return}switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{An(this,t);break}case T.BEFORE_HEAD:{_n(this,t);break}case T.IN_HEAD:{Sn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{Cn(this,t);break}case T.AFTER_HEAD:{In(this,t);break}case T.TEXT:{this._insertCharacters(t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{Kr(this,t);break}case T.IN_COLUMN_GROUP:{sr(this,t);break}case T.AFTER_BODY:{ur(this,t);break}case T.AFTER_AFTER_BODY:{nr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Oa(this,t);return}switch(this.insertionMode){case T.INITIAL:case T.BEFORE_HTML:case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_TEMPLATE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:{Oa(this,t);break}case T.IN_TABLE_TEXT:{mn(this,t);break}case T.AFTER_BODY:{n1(this,t);break}case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{r1(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case T.INITIAL:{a1(this,t);break}case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:{this._err(t,I.misplacedDoctype);break}case T.IN_TABLE_TEXT:{mn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,I.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Ib(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{i1(this,t);break}case T.BEFORE_HEAD:{u1(this,t);break}case T.IN_HEAD:{rt(this,t);break}case T.IN_HEAD_NO_SCRIPT:{c1(this,t);break}case T.AFTER_HEAD:{f1(this,t);break}case T.IN_BODY:{Fe(this,t);break}case T.IN_TABLE:{tn(this,t);break}case T.IN_TABLE_TEXT:{mn(this,t);break}case T.IN_CAPTION:{ob(this,t);break}case T.IN_COLUMN_GROUP:{oi(this,t);break}case T.IN_TABLE_BODY:{Cr(this,t);break}case T.IN_ROW:{Ir(this,t);break}case T.IN_CELL:{db(this,t);break}case T.IN_SELECT:{Qo(this,t);break}case T.IN_SELECT_IN_TABLE:{hb(this,t);break}case T.IN_TEMPLATE:{pb(this,t);break}case T.AFTER_BODY:{Eb(this,t);break}case T.IN_FRAMESET:{gb(this,t);break}case T.AFTER_FRAMESET:{yb(this,t);break}case T.AFTER_AFTER_BODY:{Ab(this,t);break}case T.AFTER_AFTER_FRAMESET:{_b(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Nb(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{s1(this,t);break}case T.BEFORE_HEAD:{o1(this,t);break}case T.IN_HEAD:{l1(this,t);break}case T.IN_HEAD_NO_SCRIPT:{d1(this,t);break}case T.AFTER_HEAD:{h1(this,t);break}case T.IN_BODY:{Sr(this,t);break}case T.TEXT:{Z1(this,t);break}case T.IN_TABLE:{On(this,t);break}case T.IN_TABLE_TEXT:{mn(this,t);break}case T.IN_CAPTION:{lb(this,t);break}case T.IN_COLUMN_GROUP:{cb(this,t);break}case T.IN_TABLE_BODY:{La(this,t);break}case T.IN_ROW:{Xo(this,t);break}case T.IN_CELL:{fb(this,t);break}case T.IN_SELECT:{Ko(this,t);break}case T.IN_SELECT_IN_TABLE:{mb(this,t);break}case T.IN_TEMPLATE:{bb(this,t);break}case T.AFTER_BODY:{Jo(this,t);break}case T.IN_FRAMESET:{Tb(this,t);break}case T.AFTER_FRAMESET:{xb(this,t);break}case T.AFTER_AFTER_BODY:{nr(this,t);break}}}onEof(t){switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{An(this,t);break}case T.BEFORE_HEAD:{_n(this,t);break}case T.IN_HEAD:{Sn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{Cn(this,t);break}case T.AFTER_HEAD:{In(this,t);break}case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:{Go(this,t);break}case T.TEXT:{J1(this,t);break}case T.IN_TABLE_TEXT:{mn(this,t);break}case T.IN_TEMPLATE:{Zo(this,t);break}case T.AFTER_BODY:case T.IN_FRAMESET:case T.AFTER_FRAMESET:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{ui(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===b.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.TEXT:case T.IN_COLUMN_GROUP:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:{this._insertCharacters(t);break}case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:case T.AFTER_BODY:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{Uo(this,t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{Kr(this,t);break}case T.IN_TABLE_TEXT:{Vo(this,t);break}}}}function Qp(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Yo(e,t),n}function Kp(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Zp(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==n;i++,s=a){a=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&i>=Wp;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Jp(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Jp(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function e1(e,t,n){const r=e.treeAdapter.getTagName(t),a=un(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===u.TEMPLATE&&i===P.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function t1(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function si(e,t){for(let n=0;n<qp;n++){const r=Qp(e,t);if(!r)break;const a=Kp(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=Zp(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),s&&e1(e,s,i),t1(e,a,r)}}function Oa(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function n1(e,t){e._appendCommentNode(t,e.openElements.items[0])}function r1(e,t){e._appendCommentNode(t,e.document)}function ui(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,t)}}}}function a1(e,t){e._setDocumentType(t);const n=t.forceQuirks?Qe.QUIRKS:Dp(t);Pp(t)||e._err(t,I.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=T.BEFORE_HTML}function hn(e,t){e._err(t,I.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Qe.QUIRKS),e.insertionMode=T.BEFORE_HTML,e._processToken(t)}function i1(e,t){t.tagID===u.HTML?(e._insertElement(t,P.HTML),e.insertionMode=T.BEFORE_HEAD):An(e,t)}function s1(e,t){const n=t.tagID;(n===u.HTML||n===u.HEAD||n===u.BODY||n===u.BR)&&An(e,t)}function An(e,t){e._insertFakeRootElement(),e.insertionMode=T.BEFORE_HEAD,e._processToken(t)}function u1(e,t){switch(t.tagID){case u.HTML:{Fe(e,t);break}case u.HEAD:{e._insertElement(t,P.HTML),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD;break}default:_n(e,t)}}function o1(e,t){const n=t.tagID;n===u.HEAD||n===u.BODY||n===u.HTML||n===u.BR?_n(e,t):e._err(t,I.endTagWithoutMatchingOpenElement)}function _n(e,t){e._insertFakeElement(A.HEAD,u.HEAD),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD,e._processToken(t)}function rt(e,t){switch(t.tagID){case u.HTML:{Fe(e,t);break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:{e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case u.TITLE:{e._switchToTextParsing(t,Le.RCDATA);break}case u.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Le.RAWTEXT):(e._insertElement(t,P.HTML),e.insertionMode=T.IN_HEAD_NO_SCRIPT);break}case u.NOFRAMES:case u.STYLE:{e._switchToTextParsing(t,Le.RAWTEXT);break}case u.SCRIPT:{e._switchToTextParsing(t,Le.SCRIPT_DATA);break}case u.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=T.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(T.IN_TEMPLATE);break}case u.HEAD:{e._err(t,I.misplacedStartTagForHeadElement);break}default:Sn(e,t)}}function l1(e,t){switch(t.tagID){case u.HEAD:{e.openElements.pop(),e.insertionMode=T.AFTER_HEAD;break}case u.BODY:case u.BR:case u.HTML:{Sn(e,t);break}case u.TEMPLATE:{Ut(e,t);break}default:e._err(t,I.endTagWithoutMatchingOpenElement)}}function Ut(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==u.TEMPLATE&&e._err(t,I.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,I.endTagWithoutMatchingOpenElement)}function Sn(e,t){e.openElements.pop(),e.insertionMode=T.AFTER_HEAD,e._processToken(t)}function c1(e,t){switch(t.tagID){case u.HTML:{Fe(e,t);break}case u.BASEFONT:case u.BGSOUND:case u.HEAD:case u.LINK:case u.META:case u.NOFRAMES:case u.STYLE:{rt(e,t);break}case u.NOSCRIPT:{e._err(t,I.nestedNoscriptInHead);break}default:Cn(e,t)}}function d1(e,t){switch(t.tagID){case u.NOSCRIPT:{e.openElements.pop(),e.insertionMode=T.IN_HEAD;break}case u.BR:{Cn(e,t);break}default:e._err(t,I.endTagWithoutMatchingOpenElement)}}function Cn(e,t){const n=t.type===de.EOF?I.openElementsLeftAfterEof:I.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=T.IN_HEAD,e._processToken(t)}function f1(e,t){switch(t.tagID){case u.HTML:{Fe(e,t);break}case u.BODY:{e._insertElement(t,P.HTML),e.framesetOk=!1,e.insertionMode=T.IN_BODY;break}case u.FRAMESET:{e._insertElement(t,P.HTML),e.insertionMode=T.IN_FRAMESET;break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{e._err(t,I.abandonedHeadElementChild),e.openElements.push(e.headElement,u.HEAD),rt(e,t),e.openElements.remove(e.headElement);break}case u.HEAD:{e._err(t,I.misplacedStartTagForHeadElement);break}default:In(e,t)}}function h1(e,t){switch(t.tagID){case u.BODY:case u.HTML:case u.BR:{In(e,t);break}case u.TEMPLATE:{Ut(e,t);break}default:e._err(t,I.endTagWithoutMatchingOpenElement)}}function In(e,t){e._insertFakeElement(A.BODY,u.BODY),e.insertionMode=T.IN_BODY,_r(e,t)}function _r(e,t){switch(t.type){case de.CHARACTER:{jo(e,t);break}case de.WHITESPACE_CHARACTER:{Uo(e,t);break}case de.COMMENT:{Oa(e,t);break}case de.START_TAG:{Fe(e,t);break}case de.END_TAG:{Sr(e,t);break}case de.EOF:{Go(e,t);break}}}function Uo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function jo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function m1(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function p1(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function b1(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,P.HTML),e.insertionMode=T.IN_FRAMESET)}function E1(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,P.HTML)}function g1(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),wa.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,P.HTML)}function T1(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,P.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function y1(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,P.HTML),n||(e.formElement=e.openElements.current))}function x1(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===u.LI&&a===u.LI||(n===u.DD||n===u.DT)&&(a===u.DD||a===u.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==u.ADDRESS&&a!==u.DIV&&a!==u.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,P.HTML)}function A1(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,P.HTML),e.tokenizer.state=Le.PLAINTEXT}function _1(e,t){e.openElements.hasInScope(u.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.framesetOk=!1}function S1(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(A.A);n&&(si(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function C1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function I1(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(u.NOBR)&&(si(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,P.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function N1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function v1(e,t){e.treeAdapter.getDocumentMode(e.document)!==Qe.QUIRKS&&e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,P.HTML),e.framesetOk=!1,e.insertionMode=T.IN_TABLE}function $o(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,P.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function zo(e){const t=vo(e,Dt.TYPE);return t!=null&&t.toLowerCase()===Vp}function w1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,P.HTML),zo(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function O1(e,t){e._appendElement(t,P.HTML),t.ackSelfClosing=!0}function L1(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._appendElement(t,P.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function R1(e,t){t.tagName=A.IMG,t.tagID=u.IMG,$o(e,t)}function P1(e,t){e._insertElement(t,P.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Le.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=T.TEXT}function D1(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Le.RAWTEXT)}function k1(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Le.RAWTEXT)}function Ds(e,t){e._switchToTextParsing(t,Le.RAWTEXT)}function M1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===T.IN_TABLE||e.insertionMode===T.IN_CAPTION||e.insertionMode===T.IN_TABLE_BODY||e.insertionMode===T.IN_ROW||e.insertionMode===T.IN_CELL?T.IN_SELECT_IN_TABLE:T.IN_SELECT}function B1(e,t){e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML)}function F1(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,P.HTML)}function H1(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(u.RTC),e._insertElement(t,P.HTML)}function U1(e,t){e._reconstructActiveFormattingElements(),Bo(t),ii(t),t.selfClosing?e._appendElement(t,P.MATHML):e._insertElement(t,P.MATHML),t.ackSelfClosing=!0}function j1(e,t){e._reconstructActiveFormattingElements(),Fo(t),ii(t),t.selfClosing?e._appendElement(t,P.SVG):e._insertElement(t,P.SVG),t.ackSelfClosing=!0}function ks(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML)}function Fe(e,t){switch(t.tagID){case u.I:case u.S:case u.B:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.SMALL:case u.STRIKE:case u.STRONG:{C1(e,t);break}case u.A:{S1(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{g1(e,t);break}case u.P:case u.DL:case u.OL:case u.UL:case u.DIV:case u.DIR:case u.NAV:case u.MAIN:case u.MENU:case u.ASIDE:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.DETAILS:case u.ADDRESS:case u.ARTICLE:case u.SEARCH:case u.SECTION:case u.SUMMARY:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{E1(e,t);break}case u.LI:case u.DD:case u.DT:{x1(e,t);break}case u.BR:case u.IMG:case u.WBR:case u.AREA:case u.EMBED:case u.KEYGEN:{$o(e,t);break}case u.HR:{L1(e,t);break}case u.RB:case u.RTC:{F1(e,t);break}case u.RT:case u.RP:{H1(e,t);break}case u.PRE:case u.LISTING:{T1(e,t);break}case u.XMP:{D1(e,t);break}case u.SVG:{j1(e,t);break}case u.HTML:{m1(e,t);break}case u.BASE:case u.LINK:case u.META:case u.STYLE:case u.TITLE:case u.SCRIPT:case u.BGSOUND:case u.BASEFONT:case u.TEMPLATE:{rt(e,t);break}case u.BODY:{p1(e,t);break}case u.FORM:{y1(e,t);break}case u.NOBR:{I1(e,t);break}case u.MATH:{U1(e,t);break}case u.TABLE:{v1(e,t);break}case u.INPUT:{w1(e,t);break}case u.PARAM:case u.TRACK:case u.SOURCE:{O1(e,t);break}case u.IMAGE:{R1(e,t);break}case u.BUTTON:{_1(e,t);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{N1(e,t);break}case u.IFRAME:{k1(e,t);break}case u.SELECT:{M1(e,t);break}case u.OPTION:case u.OPTGROUP:{B1(e,t);break}case u.NOEMBED:case u.NOFRAMES:{Ds(e,t);break}case u.FRAMESET:{b1(e,t);break}case u.TEXTAREA:{P1(e,t);break}case u.NOSCRIPT:{e.options.scriptingEnabled?Ds(e,t):ks(e,t);break}case u.PLAINTEXT:{A1(e,t);break}case u.COL:case u.TH:case u.TD:case u.TR:case u.HEAD:case u.FRAME:case u.TBODY:case u.TFOOT:case u.THEAD:case u.CAPTION:case u.COLGROUP:break;default:ks(e,t)}}function $1(e,t){if(e.openElements.hasInScope(u.BODY)&&(e.insertionMode=T.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function z1(e,t){e.openElements.hasInScope(u.BODY)&&(e.insertionMode=T.AFTER_BODY,Jo(e,t))}function Y1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function G1(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(u.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(u.FORM):n&&e.openElements.remove(n))}function V1(e){e.openElements.hasInButtonScope(u.P)||e._insertFakeElement(A.P,u.P),e._closePElement()}function q1(e){e.openElements.hasInListItemScope(u.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(u.LI),e.openElements.popUntilTagNamePopped(u.LI))}function W1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function X1(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Q1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function K1(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(A.BR,u.BR),e.openElements.pop(),e.framesetOk=!1}function Yo(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(r===s&&(r!==u.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function Sr(e,t){switch(t.tagID){case u.A:case u.B:case u.I:case u.S:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.NOBR:case u.SMALL:case u.STRIKE:case u.STRONG:{si(e,t);break}case u.P:{V1(e);break}case u.DL:case u.UL:case u.OL:case u.DIR:case u.DIV:case u.NAV:case u.PRE:case u.MAIN:case u.MENU:case u.ASIDE:case u.BUTTON:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.ADDRESS:case u.ARTICLE:case u.DETAILS:case u.SEARCH:case u.SECTION:case u.SUMMARY:case u.LISTING:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{Y1(e,t);break}case u.LI:{q1(e);break}case u.DD:case u.DT:{W1(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{X1(e);break}case u.BR:{K1(e);break}case u.BODY:{$1(e,t);break}case u.HTML:{z1(e,t);break}case u.FORM:{G1(e);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{Q1(e,t);break}case u.TEMPLATE:{Ut(e,t);break}default:Yo(e,t)}}function Go(e,t){e.tmplInsertionModeStack.length>0?Zo(e,t):ui(e,t)}function Z1(e,t){var n;t.tagID===u.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function J1(e,t){e._err(t,I.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Kr(e,t){if(Ho.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=T.IN_TABLE_TEXT,t.type){case de.CHARACTER:{qo(e,t);break}case de.WHITESPACE_CHARACTER:{Vo(e,t);break}}else Hn(e,t)}function eb(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,P.HTML),e.insertionMode=T.IN_CAPTION}function tb(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,P.HTML),e.insertionMode=T.IN_COLUMN_GROUP}function nb(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(A.COLGROUP,u.COLGROUP),e.insertionMode=T.IN_COLUMN_GROUP,oi(e,t)}function rb(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,P.HTML),e.insertionMode=T.IN_TABLE_BODY}function ab(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(A.TBODY,u.TBODY),e.insertionMode=T.IN_TABLE_BODY,Cr(e,t)}function ib(e,t){e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function sb(e,t){zo(t)?e._appendElement(t,P.HTML):Hn(e,t),t.ackSelfClosing=!0}function ub(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,P.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function tn(e,t){switch(t.tagID){case u.TD:case u.TH:case u.TR:{ab(e,t);break}case u.STYLE:case u.SCRIPT:case u.TEMPLATE:{rt(e,t);break}case u.COL:{nb(e,t);break}case u.FORM:{ub(e,t);break}case u.TABLE:{ib(e,t);break}case u.TBODY:case u.TFOOT:case u.THEAD:{rb(e,t);break}case u.INPUT:{sb(e,t);break}case u.CAPTION:{eb(e,t);break}case u.COLGROUP:{tb(e,t);break}default:Hn(e,t)}}function On(e,t){switch(t.tagID){case u.TABLE:{e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode());break}case u.TEMPLATE:{Ut(e,t);break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:Hn(e,t)}}function Hn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,_r(e,t),e.fosterParentingEnabled=n}function Vo(e,t){e.pendingCharacterTokens.push(t)}function qo(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function mn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Hn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Wo=new Set([u.CAPTION,u.COL,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]);function ob(e,t){const n=t.tagID;Wo.has(n)?e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_TABLE,tn(e,t)):Fe(e,t)}function lb(e,t){const n=t.tagID;switch(n){case u.CAPTION:case u.TABLE:{e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_TABLE,n===u.TABLE&&On(e,t));break}case u.BODY:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:Sr(e,t)}}function oi(e,t){switch(t.tagID){case u.HTML:{Fe(e,t);break}case u.COL:{e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case u.TEMPLATE:{rt(e,t);break}default:sr(e,t)}}function cb(e,t){switch(t.tagID){case u.COLGROUP:{e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=T.IN_TABLE);break}case u.TEMPLATE:{Ut(e,t);break}case u.COL:break;default:sr(e,t)}}function sr(e,t){e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=T.IN_TABLE,e._processToken(t))}function Cr(e,t){switch(t.tagID){case u.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,P.HTML),e.insertionMode=T.IN_ROW;break}case u.TH:case u.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(A.TR,u.TR),e.insertionMode=T.IN_ROW,Ir(e,t);break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE,tn(e,t));break}default:tn(e,t)}}function La(e,t){const n=t.tagID;switch(t.tagID){case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE);break}case u.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE,On(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:case u.TR:break;default:On(e,t)}}function Ir(e,t){switch(t.tagID){case u.TH:case u.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,P.HTML),e.insertionMode=T.IN_CELL,e.activeFormattingElements.insertMarker();break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,Cr(e,t));break}default:tn(e,t)}}function Xo(e,t){switch(t.tagID){case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY);break}case u.TABLE:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,La(e,t));break}case u.TBODY:case u.TFOOT:case u.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(u.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,La(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:break;default:On(e,t)}}function db(e,t){const n=t.tagID;Wo.has(n)?(e.openElements.hasInTableScope(u.TD)||e.openElements.hasInTableScope(u.TH))&&(e._closeTableCell(),Ir(e,t)):Fe(e,t)}function fb(e,t){const n=t.tagID;switch(n){case u.TD:case u.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_ROW);break}case u.TABLE:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Xo(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:break;default:Sr(e,t)}}function Qo(e,t){switch(t.tagID){case u.HTML:{Fe(e,t);break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._insertElement(t,P.HTML);break}case u.OPTGROUP:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop(),e._insertElement(t,P.HTML);break}case u.HR:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop(),e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case u.INPUT:case u.KEYGEN:case u.TEXTAREA:case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),t.tagID!==u.SELECT&&e._processStartTag(t));break}case u.SCRIPT:case u.TEMPLATE:{rt(e,t);break}}}function Ko(e,t){switch(t.tagID){case u.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===u.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===u.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop();break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop();break}case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode());break}case u.TEMPLATE:{Ut(e,t);break}}}function hb(e,t){const n=t.tagID;n===u.CAPTION||n===u.TABLE||n===u.TBODY||n===u.TFOOT||n===u.THEAD||n===u.TR||n===u.TD||n===u.TH?(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Qo(e,t)}function mb(e,t){const n=t.tagID;n===u.CAPTION||n===u.TABLE||n===u.TBODY||n===u.TFOOT||n===u.THEAD||n===u.TR||n===u.TD||n===u.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ko(e,t)}function pb(e,t){switch(t.tagID){case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{rt(e,t);break}case u.CAPTION:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.tmplInsertionModeStack[0]=T.IN_TABLE,e.insertionMode=T.IN_TABLE,tn(e,t);break}case u.COL:{e.tmplInsertionModeStack[0]=T.IN_COLUMN_GROUP,e.insertionMode=T.IN_COLUMN_GROUP,oi(e,t);break}case u.TR:{e.tmplInsertionModeStack[0]=T.IN_TABLE_BODY,e.insertionMode=T.IN_TABLE_BODY,Cr(e,t);break}case u.TD:case u.TH:{e.tmplInsertionModeStack[0]=T.IN_ROW,e.insertionMode=T.IN_ROW,Ir(e,t);break}default:e.tmplInsertionModeStack[0]=T.IN_BODY,e.insertionMode=T.IN_BODY,Fe(e,t)}}function bb(e,t){t.tagID===u.TEMPLATE&&Ut(e,t)}function Zo(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):ui(e,t)}function Eb(e,t){t.tagID===u.HTML?Fe(e,t):ur(e,t)}function Jo(e,t){var n;if(t.tagID===u.HTML){if(e.fragmentContext||(e.insertionMode=T.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===u.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else ur(e,t)}function ur(e,t){e.insertionMode=T.IN_BODY,_r(e,t)}function gb(e,t){switch(t.tagID){case u.HTML:{Fe(e,t);break}case u.FRAMESET:{e._insertElement(t,P.HTML);break}case u.FRAME:{e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case u.NOFRAMES:{rt(e,t);break}}}function Tb(e,t){t.tagID===u.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==u.FRAMESET&&(e.insertionMode=T.AFTER_FRAMESET))}function yb(e,t){switch(t.tagID){case u.HTML:{Fe(e,t);break}case u.NOFRAMES:{rt(e,t);break}}}function xb(e,t){t.tagID===u.HTML&&(e.insertionMode=T.AFTER_AFTER_FRAMESET)}function Ab(e,t){t.tagID===u.HTML?Fe(e,t):nr(e,t)}function nr(e,t){e.insertionMode=T.IN_BODY,_r(e,t)}function _b(e,t){switch(t.tagID){case u.HTML:{Fe(e,t);break}case u.NOFRAMES:{rt(e,t);break}}}function Sb(e,t){t.chars=Ie,e._insertCharacters(t)}function Cb(e,t){e._insertCharacters(t),e.framesetOk=!1}function el(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==P.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Ib(e,t){if(jp(t))el(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===P.MATHML?Bo(t):r===P.SVG&&($p(t),Fo(t)),ii(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Nb(e,t){if(t.tagID===u.P||t.tagID===u.BR){el(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===P.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}A.AREA,A.BASE,A.BASEFONT,A.BGSOUND,A.BR,A.COL,A.EMBED,A.FRAME,A.HR,A.IMG,A.INPUT,A.KEYGEN,A.LINK,A.META,A.PARAM,A.SOURCE,A.TRACK,A.WBR;const vb=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ms={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tl(e,t){const n=Fb(e),r=_o("type",{handlers:{root:wb,element:Ob,text:Lb,comment:rl,doctype:Rb,raw:Db},unknown:kb}),a={parser:n?new Ps(Ms):Ps.getFragmentParser(void 0,Ms),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),on(a,ft());const i=n?a.parser.document:a.parser.getFragment(),s=Um(i,{file:a.options.file});return a.stitches&&ti(s,"comment",function(o,l,c){const d=o;if(d.value.stitch&&c&&l!==void 0){const f=c.children;return f[l]=d.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function nl(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function wb(e,t){nl(e.children,t)}function Ob(e,t){Mb(e,t),nl(e.children,t),Bb(e,t)}function Lb(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:de.CHARACTER,chars:e.value,location:Un(e)};on(t,ft(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Rb(e,t){const n={type:de.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Un(e)};on(t,ft(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Pb(e,t){t.stitches=!0;const n=Hb(e);if("children"in e&&"children"in n){const r=tl({type:"root",children:e.children},t.options);n.children=r.children}rl({type:"comment",value:{stitch:n}},t)}function rl(e,t){const n=e.value,r={type:de.COMMENT,data:n,location:Un(e)};on(t,ft(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Db(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,al(t,ft(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function kb(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Pb(n,t);else{let r="";throw vb.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function on(e,t){al(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Le.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function al(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Mb(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Le.PLAINTEXT)return;on(t,ft(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Pt.html;a===Pt.html&&n==="svg"&&(a=Pt.svg);const i=Gm({...e,children:[]},{space:a===Pt.svg?"svg":"html"}),s={type:de.START_TAG,tagName:n,tagID:un(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Un(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Bb(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Jm.includes(n)||t.parser.tokenizer.state===Le.PLAINTEXT)return;on(t,Tr(e));const r={type:de.END_TAG,tagName:n,tagID:un(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Un(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Le.RCDATA||t.parser.tokenizer.state===Le.RAWTEXT||t.parser.tokenizer.state===Le.SCRIPT_DATA)&&(t.parser.tokenizer.state=Le.DATA)}function Fb(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Un(e){const t=ft(e)||{line:void 0,column:void 0,offset:void 0},n=Tr(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Hb(e){return"children"in e?en({...e,children:[]}):en(e)}function il(e){return function(t,n){return tl(t,{...e,file:n})}}const Ub=e=>Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},Pe.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.95 7.95 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"})),jb=({content:e,metaData:t})=>{const{chatlineLabelUserTranslation:n}=za();return N.jsxs("div",{className:"flex px-3 justify-between mt-8 bg-gray-200 rounded-lg",children:[N.jsx("div",{className:"w-10 mr-3 flex-col content-center",children:N.jsx("div",{children:N.jsx(Ub,{fill:"#4564d6"})})}),N.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":" text-gray-800"}`,children:[N.jsx("p",{className:"font-bold",children:n}),N.jsx("div",{children:N.jsx(To,{rehypePlugins:[il],children:e&&e})})]})]})},$b=({})=>{const{companySettings:e}=C.useContext(Rn);return N.jsx("div",{className:`assistant
|
|
54
62
|
transition
|
|
55
63
|
ease-in-out
|
|
56
64
|
delay-50
|
|
@@ -58,8 +66,8 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
|
|
|
58
66
|
flex
|
|
59
67
|
justify-center
|
|
60
68
|
items-center
|
|
61
|
-
`,children:O.jsx(Fa,{facet:e.agent.display[je.AgentDisplayFacetRoleType.ASSISTANT]})})},Fs=new Set;function $1(e){return Fs.has(e)?!1:(Fs.add(e),!0)}function G1(e,{root:t,rootSelector:n,rootMargin:r="0px",threshold:a=0,dedupeKey:i}={}){const s=k.useRef(!1),o=k.useRef();return k.useCallback(l=>{if(o.current?.(),o.current=void 0,!l||s.current)return;const d=t??(n?document.querySelector(n):null),f=()=>{i&&!$1(i)||(s.current=!0,e())};if(typeof window>"u"||!("IntersectionObserver"in window)){f();return}const h=new IntersectionObserver((m,S)=>{m[0]?.isIntersecting&&(S.disconnect(),f())},{root:d,rootMargin:r,threshold:a});h.observe(l),o.current=()=>h.disconnect()},[t,n,r,a,i,e])}class Pn{constructor(){}static getApiUrl=()=>"https://www.api.chatsystem.ai";static getHeaders=({contentType:t="text/plain"})=>({"Content-Type":t});static getFetchConfig=({contentType:t="text/plain",httpVerb:n="GET",body:r,options:a={}})=>{const i={method:n,headers:this.getHeaders({contentType:t}),...a};return r&&(i.body=JSON.stringify(r)),i}}function Y1({href:e="",children:t,context:n,onClick:r,seenRootEl:a,...i}){const s=e.startsWith("/")||typeof window<"u"&&e.startsWith(window.location.origin),o=Pn.getApiUrl(),c=()=>{const S=`${o}/tracking/clicked/${n.appToken}`,C={discussionId:n.discussionId,urlClicked:e};try{fetch(S,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(C),keepalive:!0,cache:"no-store",credentials:"omit",mode:"cors"}).catch(()=>{})}catch{}},l=()=>{const S=`${o}/tracking/displayed/${n.appToken}`,C={discussionId:n.discussionId,urlSeen:e};try{fetch(S,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(C),keepalive:!0,cache:"no-store",credentials:"omit",mode:"cors"}).catch(()=>{})}catch{}},d=k.useMemo(()=>`${n.appToken}::${n.discussionId}::${e}`,[n.appToken,n.discussionId,e]),f=G1(l,{root:a,threshold:0,rootMargin:"0px 0px -10% 0px",dedupeKey:d}),h=S=>{c(),r?.(S)},m=s?{}:{target:"_blank",rel:"noopener noreferrer"};return s?O.jsx("a",{ref:f,href:e,...i,onClick:h,className:"customLinkInternal",children:t}):O.jsx("a",{ref:f,href:e,...m,...i,onClick:h,className:"customLinkExternal",children:t})}const V1=({content:e,metaData:t,context:n,seenRootEl:r})=>{const{chatlineLabelAssistantTranslation:a}=ja();return O.jsxs("div",{className:"flex justify-between mt-8 px-3 chatLineAssistant",children:[O.jsx("div",{className:"w-10 mr-3 mt-6",children:O.jsx("div",{children:O.jsx(j1,{})})}),O.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":"bg-white text-gray-800"}`,children:[O.jsx("p",{className:"font-bold",children:a}),O.jsx("div",{children:O.jsx(po,{rehypePlugins:[tc],components:{a:({node:i,href:s,children:o,...c})=>O.jsx(Y1,{href:s??"",...c,context:n,seenRootEl:r,children:o})},children:e&&e})})]})]})},q1=({userType:e,content:t,metaData:n,context:r,seenRootEl:a})=>{const i=e==="user",s=e==="assistant";return O.jsxs(O.Fragment,{children:[i&&O.jsx(z1,{content:t,metaData:n}),s&&O.jsx(V1,{content:t,metaData:n,context:r,seenRootEl:a})]})};function W1(e,t,n){let[r,a]=k.useState(e||t),i=k.useRef(e!==void 0),s=e!==void 0;k.useEffect(()=>{let l=i.current;l!==s&&console.warn(`WARN: A component changed from ${l?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let o=s?e:r,c=k.useCallback((l,...d)=>{let f=(h,...m)=>{n&&(Object.is(o,h)||n(h,...m)),s||(o=h)};typeof l=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),a((m,...S)=>{let C=l(s?o:m,...S);return f(C,...d),s?m:C})):(s||a(l),f(l,...d))},[s,o,n]);return[o,c]}const oi={prefix:String(Math.round(Math.random()*1e10)),current:0},nc=k.createContext(oi),X1=k.createContext(!1);let Q1=!!(typeof window<"u"&&window.document&&window.document.createElement),ra=new WeakMap;function K1(e=!1){let t=k.useContext(nc),n=k.useRef(null);if(n.current===null&&!e){var r,a;let i=(a=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=ra.get(i);s==null?ra.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,ra.delete(i))}n.current=++t.current}return n.current}function Z1(e){let t=k.useContext(nc);t===oi&&!Q1&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=K1(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function J1(e){let t=k.useId(),[n]=k.useState(ab()),r=n?"react-aria":`react-aria${oi.prefix}`;return e||`${r}-${t}`}const eb=typeof k.useId=="function"?J1:Z1;function tb(){return!1}function nb(){return!0}function rb(e){return()=>{}}function ab(){return typeof k.useSyncExternalStore=="function"?k.useSyncExternalStore(rb,tb,nb):k.useContext(X1)}function rc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=rc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ib(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=rc(e))&&(r&&(r+=" "),r+=t);return r}const Yt=typeof document<"u"?k.useLayoutEffect:()=>{};function Ht(e){const t=k.useRef(null);return Yt(()=>{t.current=e},[e]),k.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function sb(e){let[t,n]=k.useState(e),r=k.useRef(null),a=Ht(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?a():n(s.value)});Yt(()=>{r.current&&a()});let i=Ht(s=>{r.current=s(t),a()});return[t,i]}let ub=!!(typeof window<"u"&&window.document&&window.document.createElement),dr=new Map;function fr(e){let[t,n]=k.useState(e),r=k.useRef(null),a=eb(t),i=k.useCallback(s=>{r.current=s},[]);return ub&&dr.set(a,i),Yt(()=>{let s=a;return()=>{dr.delete(s)}},[a]),k.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),a}function ob(e,t){if(e===t)return e;let n=dr.get(e);if(n)return n(t),t;let r=dr.get(t);return r?(r(e),e):t}function Hs(e=[]){let t=fr(),[n,r]=sb(t),a=k.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Yt(a,[t,a,...e]),n}function cb(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Yn=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},hr=e=>e&&"window"in e&&e.window===e?e:Yn(e).defaultView||window;function mr(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let i=t[a],s=r[a];typeof i=="function"&&typeof s=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=cb(i,s):(a==="className"||a==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[a]=ib(i,s):a==="id"&&i&&s?t.id=ob(i,s):t[a]=s!==void 0?s:i}}return t}const lb=new Set(["id"]),db=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),fb=new Set(["href","target","rel","download","ping","referrerPolicy"]),hb=/^(data-.*)$/;function mb(e,t={}){let{labelable:n,isLink:r,propNames:a}=t,i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(lb.has(s)||n&&db.has(s)||r&&fb.has(s)||a?.has(s)||hb.test(s))&&(i[s]=e[s]);return i}function Us(e){if(pb())e.focus({preventScroll:!0});else{let t=gb(e);e.focus(),bb(t)}}let er=null;function pb(){if(er==null){er=!1;try{document.createElement("div").focus({get preventScroll(){return er=!0,!0}})}catch{}}return er}function gb(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function bb(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Eb(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Tb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xb(){return Tb(/^Mac/i)}function yb(){return Eb(/Android/i)}let Kt=new Map,ka=new Set;function zs(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=Kt.get(r.target);a||(a=new Set,Kt.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=Kt.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),Kt.delete(r.target)),Kt.size===0)){for(let i of ka)i();ka.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?zs():document.addEventListener("DOMContentLoaded",zs));function Ab(e){requestAnimationFrame(()=>{Kt.size===0?e():ka.add(e)})}function Sb(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=fr(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function Cb(e,t){Yt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function _b(e){return e.mozInputSource===0&&e.isTrusted?!0:yb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ib(e,t,n){let r=k.useRef(t),a=Ht(()=>{n&&n(r.current)});k.useEffect(()=>{var i;let s=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return s?.addEventListener("reset",a),()=>{s?.removeEventListener("reset",a)}},[e,a])}const Nb=k.createContext({register:()=>{}});Nb.displayName="PressResponderContext";class wb{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function vb(e){let t=k.useRef({isFocused:!1,observer:null});Yt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ht(r=>{e?.(r)});return k.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target,i=s=>{t.current.isFocused=!1,a.disabled&&n(new wb("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Lb(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const i=k.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),a&&a(!1),!0},[r,a]),s=vb(i),o=k.useCallback(c=>{c.target===c.currentTarget&&document.activeElement===c.target&&(n&&n(c),a&&a(!0),s(c))},[a,n,s]);return{focusProps:{onFocus:!t&&(n||a||r)?o:void 0,onBlur:!t&&(r||a)?i:void 0}}}let hn=null,kb=new Set,kn=new Map,zt=!1,Oa=!1;function wr(e,t){for(let n of kb)n(e,t)}function Ob(e){return!(e.metaKey||!xb()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function pr(e){zt=!0,Ob(e)&&(hn="keyboard",wr("keyboard",e))}function Ze(e){hn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(zt=!0,wr("pointer",e))}function ac(e){_b(e)&&(zt=!0,hn="virtual")}function ic(e){e.target===window||e.target===document||(!zt&&!Oa&&(hn="virtual",wr("virtual",e)),zt=!1,Oa=!1)}function sc(){zt=!1,Oa=!0}function js(e){if(typeof window>"u"||kn.get(hr(e)))return;const t=hr(e),n=Yn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){zt=!0,r.apply(this,arguments)},n.addEventListener("keydown",pr,!0),n.addEventListener("keyup",pr,!0),n.addEventListener("click",ac,!0),t.addEventListener("focus",ic,!0),t.addEventListener("blur",sc,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ze,!0),n.addEventListener("pointermove",Ze,!0),n.addEventListener("pointerup",Ze,!0)):(n.addEventListener("mousedown",Ze,!0),n.addEventListener("mousemove",Ze,!0),n.addEventListener("mouseup",Ze,!0)),t.addEventListener("beforeunload",()=>{uc(e)},{once:!0}),kn.set(t,{focus:r})}const uc=(e,t)=>{const n=hr(e),r=Yn(e);t&&r.removeEventListener("DOMContentLoaded",t),kn.has(n)&&(n.HTMLElement.prototype.focus=kn.get(n).focus,r.removeEventListener("keydown",pr,!0),r.removeEventListener("keyup",pr,!0),r.removeEventListener("click",ac,!0),n.removeEventListener("focus",ic,!0),n.removeEventListener("blur",sc,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ze,!0),r.removeEventListener("pointermove",Ze,!0),r.removeEventListener("pointerup",Ze,!0)):(r.removeEventListener("mousedown",Ze,!0),r.removeEventListener("mousemove",Ze,!0),r.removeEventListener("mouseup",Ze,!0)),kn.delete(n))};function Rb(e){const t=Yn(e);let n;return t.readyState!=="loading"?js(e):(n=()=>{js(e)},t.addEventListener("DOMContentLoaded",n)),()=>uc(e,n)}typeof document<"u"&&Rb();function Db(){return hn}function Pb(e){hn=e,wr(e,null)}function $s(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function Mb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:$s(e.onKeyDown),onKeyUp:$s(e.onKeyUp)}}}function Bb(e){const t=Yn(e);if(Db()==="virtual"){let n=t.activeElement;Ab(()=>{t.activeElement===n&&e.isConnected&&Us(e)})}else Us(e)}function Fb(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}class ci{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let i=new Gs({scopeRef:t});a.addChild(i),i.parent=a,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Fb(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new ci;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Gs({scopeRef:null}),this.fastMap.set(null,this.root)}}class Gs{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new ci;let Hb=k.createContext(null);function Ub(e){let t=k.useContext(Hb)||{};Cb(t,e);let{ref:n,...r}=t;return r}function zb(e,t){let{focusProps:n}=Lb(e),{keyboardProps:r}=Mb(e),a=mr(n,r),i=Ub(t),s=e.isDisabled?{}:i,o=k.useRef(e.autoFocus);return k.useEffect(()=>{o.current&&t.current&&Bb(t.current),o.current=!1},[t]),{focusableProps:mr({...a,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function jb(e,t,n){let{validationBehavior:r,focus:a}=e;Yt(()=>{if(r==="native"&&n?.current){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Gb(n.current))}});let i=Ht(()=>{t.resetValidation()}),s=Ht(c=>{var l;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(l=n.current)===null||l===void 0?void 0:l.form;if(!c.defaultPrevented&&n&&d&&Yb(d)===n.current){var f;a?a():(f=n.current)===null||f===void 0||f.focus(),Pb("keyboard")}c.preventDefault()}),o=Ht(()=>{t.commitValidation()});k.useEffect(()=>{let c=n?.current;if(!c)return;let l=c.form;return c.addEventListener("invalid",s),c.addEventListener("change",o),l?.addEventListener("reset",i),()=>{c.removeEventListener("invalid",s),c.removeEventListener("change",o),l?.removeEventListener("reset",i)}},[n,s,o,i,r])}function $b(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Gb(e){return{isInvalid:!e.validity.valid,validationDetails:$b(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Yb(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const oc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},cc={...oc,customError:!0,valid:!1},Tn={isInvalid:!1,validationDetails:oc,validationErrors:[]},Vb=k.createContext({}),Ys="__formValidationState"+Date.now();function qb(e){if(e[Ys]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}=e[Ys];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}}return Wb(e)}function Wb(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:i,validate:s,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let c=t?{isInvalid:!0,validationErrors:[],validationDetails:cc}:null,l=k.useMemo(()=>Vs(Xb(s,a)),[s,a]);i?.validationDetails.valid&&(i=null);let d=k.useContext(Vb),f=k.useMemo(()=>r?Array.isArray(r)?r.flatMap(Y=>Ra(d[Y])):Ra(d[r]):[],[d,r]),[h,m]=k.useState(d),[S,C]=k.useState(!1);d!==h&&(m(d),C(!1));let P=k.useMemo(()=>Vs(S?[]:f),[S,f]),N=k.useRef(Tn),[M,D]=k.useState(Tn),$=k.useRef(Tn),I=()=>{if(!R)return;Q(!1);let Y=l||i||N.current;aa(Y,$.current)||($.current=Y,D(Y))},[R,Q]=k.useState(!1);return k.useEffect(I),{realtimeValidation:c||P||l||i||Tn,displayValidation:o==="native"?c||P||M:c||P||l||i||M,updateValidation(Y){o==="aria"&&!aa(M,Y)?D(Y):N.current=Y},resetValidation(){let Y=Tn;aa(Y,$.current)||($.current=Y,D(Y)),o==="native"&&Q(!1),C(!0)},commitValidation(){o==="native"&&Q(!0),C(!0)}}}function Ra(e){return e?Array.isArray(e)?e:[e]:[]}function Xb(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Ra(n)}return[]}function Vs(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:cc}:null}function aa(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Qb(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:i="label"}=e;t=fr(t);let s=fr(),o={};n?(r=r?`${s} ${r}`:s,o={id:s,htmlFor:i==="label"?t:void 0}):!r&&!a&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Sb({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:o,fieldProps:c}}function Kb(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:i,fieldProps:s}=Qb(e),o=Hs([!!t,!!n,r,a]),c=Hs([!!t,!!n,r,a]);return s=mr(s,{"aria-describedby":[o,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:o},errorMessageProps:{id:c}}}function Zb(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:i=!1,type:s="text",validationBehavior:o="aria"}=e,[c,l]=W1(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=zb(e,t),f=qb({...e,value:c}),{isInvalid:h,validationErrors:m,validationDetails:S}=f.displayValidation,{labelProps:C,fieldProps:P,descriptionProps:N,errorMessageProps:M}=Kb({...e,isInvalid:h,errorMessage:e.errorMessage||m}),D=mb(e,{labelable:!0});const $={type:s,pattern:e.pattern};return Ib(t,c,l),jb(e,f,t),k.useEffect(()=>{if(t.current instanceof hr(t.current).HTMLTextAreaElement){let I=t.current;Object.defineProperty(I,"defaultValue",{get:()=>I.value,set:()=>{},configurable:!0})}},[t]),{labelProps:C,inputProps:mr(D,n==="input"&&$,{disabled:r,readOnly:i,required:a&&o==="native","aria-required":a&&o==="aria"||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:I=>l(I.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...P}),descriptionProps:N,errorMessageProps:M,isInvalid:h,validationErrors:m,validationDetails:S}}const Jb=e=>e.charCodeAt(e.length-1)===10,eE=e=>{const[t,n]=k.useState(""),r=()=>{h.current&&(h.current.style.height=h.current.scrollHeight+"px")},a=()=>{h.current&&(h.current.style.height="48px")},i=I=>{n(I)};k.useEffect(r,[t]);let{label:s,SubmitComponent:o,onSubmit:c,isLoadingStream:l,LoadingComponent:d,onPressLoadingButton:f}=e,h=k.useRef(null),{labelProps:m,inputProps:S}=Zb({...e,inputElementType:"textarea"},h);const C=I=>{Jb(I.target.value)||i(I.target.value)},P=I=>{if(I.key==="Enter"||I.code==="Enter"||I.keyCode===13||I.code==="NumpadEnter"){if(I.shiftKey)i(t+`
|
|
62
|
-
`);else if(!
|
|
69
|
+
`,children:N.jsx(Fa,{facet:e.agent.display[ze.AgentDisplayFacetRoleType.ASSISTANT]})})},Bs=new Set;function zb(e){return Bs.has(e)?!1:(Bs.add(e),!0)}function Yb(e,{root:t,rootSelector:n,rootMargin:r="0px",threshold:a=0,dedupeKey:i}={}){const s=C.useRef(!1),o=C.useRef();return C.useCallback(c=>{if(o.current?.(),o.current=void 0,!c||s.current)return;const d=t??(n?document.querySelector(n):null),f=()=>{i&&!zb(i)||(s.current=!0,e())};if(typeof window>"u"||!("IntersectionObserver"in window)){f();return}const m=new IntersectionObserver((h,y)=>{h[0]?.isIntersecting&&(y.disconnect(),f())},{root:d,rootMargin:r,threshold:a});m.observe(c),o.current=()=>m.disconnect()},[t,n,r,a,i,e])}class Ln{constructor(){}static getApiUrl=()=>typeof document<"u"&&new URL(document.URL)?.hostname.includes("localhost")?"http://localhost:3001":"https://www.api.chatsystem.ai";static getHeaders=({contentType:t="text/plain"})=>({"Content-Type":t});static getFetchConfig=({contentType:t="text/plain",httpVerb:n="GET",body:r,options:a={}})=>{const i={method:n,headers:this.getHeaders({contentType:t}),...a};return r&&(i.body=JSON.stringify(r)),i}}function Gb({href:e="",children:t,context:n,onClick:r,seenRootEl:a,...i}){const s=e.startsWith("/")||typeof window<"u"&&e.startsWith(window.location.origin),o=Ln.getApiUrl(),l=()=>{const y=`${o}/tracking/clicked/${n.appToken}`,x={discussionId:n.discussionId,urlClicked:e};try{fetch(y,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(x),keepalive:!0,cache:"no-store",credentials:"omit",mode:"cors"}).catch(()=>{})}catch{}},c=()=>{const y=`${o}/tracking/displayed/${n.appToken}`,x={discussionId:n.discussionId,urlSeen:e};try{fetch(y,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(x),keepalive:!0,cache:"no-store",credentials:"omit",mode:"cors"}).catch(()=>{})}catch{}},d=C.useMemo(()=>`${n.appToken}::${n.discussionId}::${e}`,[n.appToken,n.discussionId,e]),f=Yb(c,{root:a,threshold:0,rootMargin:"0px 0px -10% 0px",dedupeKey:d}),m=y=>{l(),r?.(y)},h=s?{}:{target:"_blank",rel:"noopener noreferrer"};return s?N.jsx("a",{ref:f,href:e,...i,onClick:m,className:"customLinkInternal",children:t}):N.jsx("a",{ref:f,href:e,...h,...i,onClick:m,className:"customLinkExternal",children:t})}const Vb=({content:e,metaData:t,context:n,seenRootEl:r})=>{const{chatlineLabelAssistantTranslation:a}=za();return N.jsxs("div",{className:"flex justify-between mt-8 px-3 chatLineAssistant",children:[N.jsx("div",{className:"w-10 mr-3 mt-6",children:N.jsx("div",{children:N.jsx($b,{})})}),N.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":"bg-white text-gray-800"}`,children:[N.jsx("p",{className:"font-bold",children:a}),N.jsx("div",{children:N.jsx(To,{rehypePlugins:[il],components:{a:({node:i,href:s,children:o,...l})=>N.jsx(Gb,{href:s??"",...l,context:n,seenRootEl:r,children:o})},children:e&&e})})]})]})},qb=({userType:e,content:t,metaData:n,context:r,seenRootEl:a})=>{const i=e==="user",s=e==="assistant";return N.jsxs(N.Fragment,{children:[i&&N.jsx(jb,{content:t,metaData:n}),s&&N.jsx(Vb,{content:t,metaData:n,context:r,seenRootEl:a})]})};function Wb(e,t,n){let[r,a]=C.useState(e||t),i=C.useRef(e!==void 0),s=e!==void 0;C.useEffect(()=>{let c=i.current;c!==s&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let o=s?e:r,l=C.useCallback((c,...d)=>{let f=(m,...h)=>{n&&(Object.is(o,m)||n(m,...h)),s||(o=m)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),a((h,...y)=>{let x=c(s?o:h,...y);return f(x,...d),s?h:x})):(s||a(c),f(c,...d))},[s,o,n]);return[o,l]}const or={prefix:String(Math.round(Math.random()*1e10)),current:0},sl=C.createContext(or),Xb=C.createContext(!1);let Qb=!!(typeof window<"u"&&window.document&&window.document.createElement),Zr=new WeakMap;function Kb(e=!1){let t=C.useContext(sl),n=C.useRef(null);if(n.current===null&&!e){var r,a;let i=(a=C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=Zr.get(i);s==null?Zr.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Zr.delete(i))}n.current=++t.current}return n.current}function Zb(e){let t=C.useContext(sl);t===or&&!Qb&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Kb(!!e),r=t===or&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function Jb(e){let t=C.useId(),[n]=C.useState(aE()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${or.prefix}`;return e||`${r}-${t}`}const eE=typeof C.useId=="function"?Jb:Zb;function tE(){return!1}function nE(){return!0}function rE(e){return()=>{}}function aE(){return typeof C.useSyncExternalStore=="function"?C.useSyncExternalStore(rE,tE,nE):C.useContext(Xb)}function ul(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=ul(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function iE(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=ul(e))&&(r&&(r+=" "),r+=t);return r}const jt=typeof document<"u"?C.useLayoutEffect:()=>{};function kt(e){const t=C.useRef(null);return jt(()=>{t.current=e},[e]),C.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function sE(e){let[t,n]=C.useState(e),r=C.useRef(null),a=kt(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?a():n(s.value)});jt(()=>{r.current&&a()});let i=kt(s=>{r.current=s(t),a()});return[t,i]}let uE=!!(typeof window<"u"&&window.document&&window.document.createElement),lr=new Map;function cr(e){let[t,n]=C.useState(e),r=C.useRef(null),a=eE(t),i=C.useCallback(s=>{r.current=s},[]);return uE&&lr.set(a,i),jt(()=>{let s=a;return()=>{lr.delete(s)}},[a]),C.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),a}function oE(e,t){if(e===t)return e;let n=lr.get(e);if(n)return n(t),t;let r=lr.get(t);return r?(r(e),e):t}function Fs(e=[]){let t=cr(),[n,r]=sE(t),a=C.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return jt(a,[t,a,...e]),n}function lE(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const jn=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},dr=e=>e&&"window"in e&&e.window===e?e:jn(e).defaultView||window;function fr(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let i=t[a],s=r[a];typeof i=="function"&&typeof s=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=lE(i,s):(a==="className"||a==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[a]=iE(i,s):a==="id"&&i&&s?t.id=oE(i,s):t[a]=s!==void 0?s:i}}return t}const cE=new Set(["id"]),dE=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),fE=new Set(["href","target","rel","download","ping","referrerPolicy"]),hE=/^(data-.*)$/;function mE(e,t={}){let{labelable:n,isLink:r,propNames:a}=t,i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(cE.has(s)||n&&dE.has(s)||r&&fE.has(s)||a?.has(s)||hE.test(s))&&(i[s]=e[s]);return i}function Hs(e){if(pE())e.focus({preventScroll:!0});else{let t=bE(e);e.focus(),EE(t)}}let Qn=null;function pE(){if(Qn==null){Qn=!1;try{document.createElement("div").focus({get preventScroll(){return Qn=!0,!0}})}catch{}}return Qn}function bE(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function EE(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function gE(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function TE(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function yE(){return TE(/^Mac/i)}function xE(){return gE(/Android/i)}let qt=new Map,Ra=new Set;function Us(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=qt.get(r.target);a||(a=new Set,qt.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=qt.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),qt.delete(r.target)),qt.size===0)){for(let i of Ra)i();Ra.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Us():document.addEventListener("DOMContentLoaded",Us));function AE(e){requestAnimationFrame(()=>{qt.size===0?e():Ra.add(e)})}function _E(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=cr(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function SE(e,t){jt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function CE(e){return e.mozInputSource===0&&e.isTrusted?!0:xE()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function IE(e,t,n){let r=C.useRef(t),a=kt(()=>{n&&n(r.current)});C.useEffect(()=>{var i;let s=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return s?.addEventListener("reset",a),()=>{s?.removeEventListener("reset",a)}},[e,a])}const NE=C.createContext({register:()=>{}});NE.displayName="PressResponderContext";class vE{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function wE(e){let t=C.useRef({isFocused:!1,observer:null});jt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=kt(r=>{e?.(r)});return C.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target,i=s=>{t.current.isFocused=!1,a.disabled&&n(new vE("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function OE(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const i=C.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),a&&a(!1),!0},[r,a]),s=wE(i),o=C.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),a&&a(!0),s(l))},[a,n,s]);return{focusProps:{onFocus:!t&&(n||a||r)?o:void 0,onBlur:!t&&(r||a)?i:void 0}}}let ln=null,LE=new Set,Nn=new Map,Bt=!1,Pa=!1;function Nr(e,t){for(let n of LE)n(e,t)}function RE(e){return!(e.metaKey||!yE()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function hr(e){Bt=!0,RE(e)&&(ln="keyboard",Nr("keyboard",e))}function Ke(e){ln="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Bt=!0,Nr("pointer",e))}function ol(e){CE(e)&&(Bt=!0,ln="virtual")}function ll(e){e.target===window||e.target===document||(!Bt&&!Pa&&(ln="virtual",Nr("virtual",e)),Bt=!1,Pa=!1)}function cl(){Bt=!1,Pa=!0}function js(e){if(typeof window>"u"||Nn.get(dr(e)))return;const t=dr(e),n=jn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Bt=!0,r.apply(this,arguments)},n.addEventListener("keydown",hr,!0),n.addEventListener("keyup",hr,!0),n.addEventListener("click",ol,!0),t.addEventListener("focus",ll,!0),t.addEventListener("blur",cl,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ke,!0),n.addEventListener("pointermove",Ke,!0),n.addEventListener("pointerup",Ke,!0)):(n.addEventListener("mousedown",Ke,!0),n.addEventListener("mousemove",Ke,!0),n.addEventListener("mouseup",Ke,!0)),t.addEventListener("beforeunload",()=>{dl(e)},{once:!0}),Nn.set(t,{focus:r})}const dl=(e,t)=>{const n=dr(e),r=jn(e);t&&r.removeEventListener("DOMContentLoaded",t),Nn.has(n)&&(n.HTMLElement.prototype.focus=Nn.get(n).focus,r.removeEventListener("keydown",hr,!0),r.removeEventListener("keyup",hr,!0),r.removeEventListener("click",ol,!0),n.removeEventListener("focus",ll,!0),n.removeEventListener("blur",cl,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ke,!0),r.removeEventListener("pointermove",Ke,!0),r.removeEventListener("pointerup",Ke,!0)):(r.removeEventListener("mousedown",Ke,!0),r.removeEventListener("mousemove",Ke,!0),r.removeEventListener("mouseup",Ke,!0)),Nn.delete(n))};function PE(e){const t=jn(e);let n;return t.readyState!=="loading"?js(e):(n=()=>{js(e)},t.addEventListener("DOMContentLoaded",n)),()=>dl(e,n)}typeof document<"u"&&PE();function DE(){return ln}function kE(e){ln=e,Nr(e,null)}function $s(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function ME(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:$s(e.onKeyDown),onKeyUp:$s(e.onKeyUp)}}}function BE(e){const t=jn(e);if(DE()==="virtual"){let n=t.activeElement;AE(()=>{t.activeElement===n&&e.isConnected&&Hs(e)})}else Hs(e)}function FE(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}class li{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let i=new zs({scopeRef:t});a.addChild(i),i.parent=a,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&FE(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new li;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new zs({scopeRef:null}),this.fastMap.set(null,this.root)}}class zs{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new li;let HE=C.createContext(null);function UE(e){let t=C.useContext(HE)||{};SE(t,e);let{ref:n,...r}=t;return r}function jE(e,t){let{focusProps:n}=OE(e),{keyboardProps:r}=ME(e),a=fr(n,r),i=UE(t),s=e.isDisabled?{}:i,o=C.useRef(e.autoFocus);return C.useEffect(()=>{o.current&&t.current&&BE(t.current),o.current=!1},[t]),{focusableProps:fr({...a,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function $E(e,t,n){let{validationBehavior:r,focus:a}=e;jt(()=>{if(r==="native"&&n?.current){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(YE(n.current))}});let i=kt(()=>{t.resetValidation()}),s=kt(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&n&&d&&GE(d)===n.current){var f;a?a():(f=n.current)===null||f===void 0||f.focus(),kE("keyboard")}l.preventDefault()}),o=kt(()=>{t.commitValidation()});C.useEffect(()=>{let l=n?.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",s),l.addEventListener("change",o),c?.addEventListener("reset",i),()=>{l.removeEventListener("invalid",s),l.removeEventListener("change",o),c?.removeEventListener("reset",i)}},[n,s,o,i,r])}function zE(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function YE(e){return{isInvalid:!e.validity.valid,validationDetails:zE(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function GE(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const fl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},hl={...fl,customError:!0,valid:!1},pn={isInvalid:!1,validationDetails:fl,validationErrors:[]},VE=C.createContext({}),Ys="__formValidationState"+Date.now();function qE(e){if(e[Ys]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}=e[Ys];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}}return WE(e)}function WE(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:i,validate:s,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:hl}:null,c=C.useMemo(()=>Gs(XE(s,a)),[s,a]);i?.validationDetails.valid&&(i=null);let d=C.useContext(VE),f=C.useMemo(()=>r?Array.isArray(r)?r.flatMap(G=>Da(d[G])):Da(d[r]):[],[d,r]),[m,h]=C.useState(d),[y,x]=C.useState(!1);d!==m&&(h(d),x(!1));let L=C.useMemo(()=>Gs(y?[]:f),[y,f]),_=C.useRef(pn),[R,O]=C.useState(pn),U=C.useRef(pn),S=()=>{if(!w)return;Q(!1);let G=c||i||_.current;Jr(G,U.current)||(U.current=G,O(G))},[w,Q]=C.useState(!1);return C.useEffect(S),{realtimeValidation:l||L||c||i||pn,displayValidation:o==="native"?l||L||R:l||L||c||i||R,updateValidation(G){o==="aria"&&!Jr(R,G)?O(G):_.current=G},resetValidation(){let G=pn;Jr(G,U.current)||(U.current=G,O(G)),o==="native"&&Q(!1),x(!0)},commitValidation(){o==="native"&&Q(!0),x(!0)}}}function Da(e){return e?Array.isArray(e)?e:[e]:[]}function XE(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Da(n)}return[]}function Gs(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:hl}:null}function Jr(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function QE(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:i="label"}=e;t=cr(t);let s=cr(),o={};n?(r=r?`${s} ${r}`:s,o={id:s,htmlFor:i==="label"?t:void 0}):!r&&!a&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=_E({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:o,fieldProps:l}}function KE(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:i,fieldProps:s}=QE(e),o=Fs([!!t,!!n,r,a]),l=Fs([!!t,!!n,r,a]);return s=fr(s,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:o},errorMessageProps:{id:l}}}function ZE(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:i=!1,type:s="text",validationBehavior:o="aria"}=e,[l,c]=Wb(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=jE(e,t),f=qE({...e,value:l}),{isInvalid:m,validationErrors:h,validationDetails:y}=f.displayValidation,{labelProps:x,fieldProps:L,descriptionProps:_,errorMessageProps:R}=KE({...e,isInvalid:m,errorMessage:e.errorMessage||h}),O=mE(e,{labelable:!0});const U={type:s,pattern:e.pattern};return IE(t,l,c),$E(e,f,t),C.useEffect(()=>{if(t.current instanceof dr(t.current).HTMLTextAreaElement){let S=t.current;Object.defineProperty(S,"defaultValue",{get:()=>S.value,set:()=>{},configurable:!0})}},[t]),{labelProps:x,inputProps:fr(O,n==="input"&&U,{disabled:r,readOnly:i,required:a&&o==="native","aria-required":a&&o==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:S=>c(S.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...L}),descriptionProps:_,errorMessageProps:R,isInvalid:m,validationErrors:h,validationDetails:y}}const JE=e=>e.charCodeAt(e.length-1)===10,eg=e=>{const[t,n]=C.useState(""),r=()=>{m.current&&(m.current.style.height=m.current.scrollHeight+"px")},a=()=>{m.current&&(m.current.style.height="48px")},i=S=>{n(S)};C.useEffect(r,[t]);let{label:s,SubmitComponent:o,onSubmit:l,isLoadingStream:c,LoadingComponent:d,onPressLoadingButton:f}=e,m=C.useRef(null),{labelProps:h,inputProps:y}=ZE({...e,inputElementType:"textarea"},m);const x=S=>{JE(S.target.value)||i(S.target.value)},L=S=>{if(S.key==="Enter"||S.code==="Enter"||S.keyCode===13||S.code==="NumpadEnter"){if(S.shiftKey)i(t+`
|
|
70
|
+
`);else if(!S.shiftKey){S.preventDefault(),S.stopPropagation(),c||O();return}}},_=S=>{(S.key==="Enter"||S.code==="Enter"||S.keyCode===13||S.code==="NumpadEnter")&&(S.preventDefault(),S.stopPropagation())};let R=e.isDisabled;e.shouldDisableIfInputIsEmpty&&(R=e.isDisabled||t.length===0);const O=()=>{a(),l&&l(t),i("")},U=()=>{f&&f()};return N.jsxs("div",{style:{display:"flex",flexDirection:"column"},className:`${e.classNameContainer} w-full`,children:[N.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[N.jsx("label",{...h,className:e.classNameLabel,children:s}),N.jsx("textarea",{...y,ref:m,className:`${e.classNameTextarea} p-3`,onChange:x,value:t,rows:1,style:{overflow:"hidden",outlineColor:"#a8a8a8",border:"none",outline:"none",width:"calc(100% - 30px)",resize:"none"},onKeyDown:L,onKeyUp:_})]}),!c&&o&&N.jsx("div",{className:"relative",children:N.jsx(o,{onSubmitButton:O,isDisabled:R})}),c&&d&&N.jsx("div",{className:"relative",children:N.jsx(d,{onPressLoadingButton:U})})]})},tg=({onSubmitButton:e,isDisabled:t})=>N.jsx("div",{children:N.jsx("button",{className:`absolute
|
|
63
71
|
bg-black
|
|
64
72
|
md:bottom-2
|
|
65
73
|
md:right-3
|
|
@@ -75,20 +83,25 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
|
|
|
75
83
|
rounded-lg
|
|
76
84
|
dark:border-white
|
|
77
85
|
dark:bg-white
|
|
78
|
-
transition-colors`,"data-testid":"send-button",onClick:e,disabled:t,type:"button",children:O.jsx("span",{className:"","data-state":"closed",children:O.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-white dark:text-black",children:O.jsx("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})});var Je=(e=>(e.FRENCH="fr-FR",e.ENGLISH="en-US",e))(Je||{});const nE={"generic.language.english":"English","generic.language.french":"French","generic.connect.google":"Connect with Google","generic.button.title.save":"Save","page.login.button.login":"Login / Register","page.login.google.login":"Continue with Google","navbar.button.home":"Home","navbar.button.pricing":"Pricing","navbar.button.login":"Login","navbar.button.demo":"Demo","navbar.userMenu.logout":"Log out","navbar.userMenu.profile":"Profile","navbar.userMenu.backOffice":"Back-office","home.header.catchphase":"The catchphrase you wanted","home.header.subcatchphase":"Discover the new software that will change it all","home.header.CTA":"See more","home.section.bulletsPointParagraphe1.title":"Management","home.section.bulletsPointParagraphe1.text":"Take advantage of a complete solution to have a direct point of view on all of your units.","home.section.bulletsPointParagraphe2.title":"Automation","home.section.bulletsPointParagraphe2.text":"In just a few clicks, manage your entire fleet. Implement macros and synergies on your systems.","home.section.bulletsPointParagraphe3.title":"Reporting","home.section.bulletsPointParagraphe3.text":"With its BI module, our software allows you to monitor performance and optimize your costs.","home.realm.title":"See the root of your business in a few clicks","home.realm.text":"The security of your data is at the heart of our concerns. Our software was created in France, we are ISO 27001 certified and all our servers are located in Europe.","home.realm.cta":"Discover our solution","home.testimonials.title":"What our customers say","home.testimonials.1.text":"Since using the software, we have better control of the flow of goods and relevant performance monitoring.","home.testimonials.1.job":"Developer @Wordpress","home.testimonials.1.name":"Loic Martins","home.testimonials.2.text":"Putting the software solution into production allowed us to completely reorganize the teams.","home.testimonials.2.job":"Community Manager @Comet","home.testimonials.2.name":"Anna Wang","home.testimonials.3.text":"Mastery of the logistics subject is obvious with the software solution.","home.testimonials.3.job":"Product Owner @April","home.testimonials.3.name":"Louis Bachant","home.test.section.title":"Try it out now","home.test.section.CTA":"See our solution","pricing.CTA.pleaseLogin":"Login to buy","pricing.page.title":"Choose your plan","pricing.page.subtitle":"No obligation: cancel at any time with one click.","subscribe.paymentRecap.title":"Payment Summary","subscribe.paymentRecap.customerName":"Name","subscribe.paymentRecap.customerMail":"Email","subscribe.paymentRecap.additionnalMention":"Mention to add","subscribe.paymentRecap.totalAmount":"Total Amount","subscribe.paymentForm.title":"Bank card","subscribe.paymentForm.cardNumber":"Card number","subscribe.paymentForm.expiresAt":"Expires at","subscribe.paymentForm.CVCNumber":"CVC number","subscribe.paymentForm.CTA.loading":"Loading ...","subscribe.paymentForm.CTA.pay":"Pay now","subscribe.success.title":"Payment successful","subscribe.success.paragraph1":"Your payment has been processed successfully. You are now suscribed !","subscribe.success.paragraph2":"Your new options are now available.","myAccount.page.leftMenu.general":"General","myAccount.page.leftMenu.profile":"Profile","chatbot.placeholder.content":"Message the assistant...","chatbot.DiscussionLimitReached.title":"Discussion limit reached","chatbot.DiscussionLimitReached.explaination":"The discussion has reached its maximum number of messages. Please start a new one.","chatbot.DiscussionLimitReached.cta":"Restart","chatbot.error.api.409":"Oups ! The discussion if full. Please start a new one.","chatbot.error.api.429":"⏳ The chatbot is a little busy at the time. Please try again later.","chatbot.error.api.500":"Oops ! There has been an error. Please try again later.","chatbot.chatline.label.user":"You","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.genericSearchMessage":"I'm looking for products","chatbot.chatline.loading.function.search":"Search","chatbot.chatline.loading.function.extractProductName":"Looking into the cavern","chatbot.chatline.loading.function.suggestProductName":"Consulting the shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Looking for ziboublis","chatbot.chatline.loading.function.searchStock":"Searching Stock","chatbot.chatline.loading.function.step":"Step","chatbot.chatline.loading.cancel":"Cancel","footer.tab.title.general":"General","footer.tab.title.about":"About","footer.tab.title.resources":"Resources","footer.tab.title.legal":"Legal","footer.tab.title.social":"Social","footer.tab.search":"Search","footer.tab.pricing":"Pricing","footer.tab.termsAndConditions":"Terms and conditions","footer.tab.finalCopyright":"Copyright © 2023 Logiciel, Inc. All rights reserved."},rE={"generic.language.english":"Anglais","generic.language.french":"Français","generic.connect.google":"Se connecter avec Google","generic.button.title.save":"Sauvegarder","page.login.button.login":"Se connecter / S'inscrire","page.login.google.login":"Continuer avec Google","navbar.button.home":"Accueil","navbar.button.pricing":"Tarifs","navbar.button.login":"Se Connecter","navbar.button.demo":"Demo","navbar.userMenu.logout":"Déconnection","navbar.userMenu.profile":"Profil","navbar.userMenu.backOffice":"Back-office","home.header.catchphase":"Catchphrase de l'espace","home.header.subcatchphase":"Découvrez le logiciel qui met fin à vos problèmes","home.header.CTA":"Voir notre solution","home.section.bulletsPointParagraphe1.title":"Management","home.section.bulletsPointParagraphe1.text":"Profitez d'une solution complète pour avoir un point de vue direct sur l'ensemble de vos unités.","home.section.bulletsPointParagraphe2.title":"Automatisation","home.section.bulletsPointParagraphe2.text":"En quelques clicks, gérez l'ensemble de votre flotte. Mettez en place des macros et des synergies sur vos systèmes.","home.section.bulletsPointParagraphe3.title":"Reporting","home.section.bulletsPointParagraphe3.text":"Avec son module BI, notre logiciel vous permet de monitorer la performance et d'optimiser vos coûts. A l'euro prêt","home.realm.title":"Le coeur du métier en quelques clics","home.realm.text":"La sécurité de vos données est au cœur de nos préoccupations. Notre logiciel a été créé en France, nous sommes certifiés ISO 27001 et tous nos serveurs sont situés en Europe.","home.realm.cta":"Voir notre solution","home.testimonials.title":"Nos clients parlent de nous","home.testimonials.1.text":"Depuis notre utilisation du logiciel, nous avons un meilleur contrôle du flux de marchandises et un suivi de performance pertinent.","home.testimonials.1.job":"Developpeur @Wordpress","home.testimonials.1.name":"Loic Martins","home.testimonials.2.text":"La mise en production de la solution logicielle nous a permis de réorganiser complètement les équipes.","home.testimonials.2.job":"Community Manager @Comet","home.testimonials.2.name":"Anna Wang","home.testimonials.3.text":"La maitrise du sujet logistique est une évidence avec la solution logicielle.","home.testimonials.3.job":"Product Owner @April","home.testimonials.3.name":"Louis Bachant","home.test.section.title":"Testez dès maintenant","home.test.section.CTA":"Voir notre solution","pricing.CTA.pleaseLogin":"Connectez-vous","pricing.page.title":"Choisissez votre plan","pricing.page.subtitle":"Sans engagement : annulez à tout moment en un clic.","subscribe.paymentRecap.title":"Récapitulatif de paiement","subscribe.paymentRecap.customerName":"Nom","subscribe.paymentRecap.customerMail":"Email","subscribe.paymentRecap.additionnalMention":"Mention à ajouter","subscribe.paymentRecap.totalAmount":"Total","subscribe.paymentForm.title":"Carte bancaire","subscribe.paymentForm.cardNumber":"Numéro de carte","subscribe.paymentForm.expiresAt":"Expire le","subscribe.paymentForm.CVCNumber":"Numéro CVV","subscribe.paymentForm.CTA.loading":"Chargement ...","subscribe.paymentForm.CTA.pay":"S'abonner","subscribe.success.title":"Paiement effectué avec succès","subscribe.success.paragraph1":"Votre paiement a bien été accepté. Vous êtes désormais abonné !","subscribe.success.paragraph2":"Toutes vos options sont maintenant disponibles.","myAccount.page.leftMenu.general":"Général","myAccount.page.leftMenu.profile":"Profil","chatbot.placeholder.content":"Envoyez un message à l'assistant ...","chatbot.DiscussionLimitReached.title":"Maximum de messages envoyés atteint.","chatbot.DiscussionLimitReached.explaination":"Le robot est à son maximum et ne peut plus envoyer de message. Merci de relancer une conversation.","chatbot.DiscussionLimitReached.cta":"Relancer une nouvelle conversation","chatbot.error.api.409":"Oups ! La discussion est à son maximum. Merci d'en commencer une nouvelle.","chatbot.error.api.429":"⏳ Le robot est un peu occupé actuellement. Merci de réessayer plus tard.","chatbot.error.api.500":"Oups ! Une erreur est survenue. Merci de réessayer plus tard !","chatbot.chatline.label.user":"Vous","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.search":"Recherche","chatbot.chatline.loading.function.genericSearchMessage":"Je cherche des produits","chatbot.chatline.loading.function.extractProductName":"Recherche dans la caverne","chatbot.chatline.loading.function.suggestProductName":"Consultation des shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Recherche des ziboublis","chatbot.chatline.loading.function.searchStock":"Recherche en stock","chatbot.chatline.loading.function.step":"Etape","chatbot.chatline.loading.cancel":"Annuler","footer.tab.title.general":"Général","footer.tab.title.about":"A propos","footer.tab.title.resources":"Ressources","footer.tab.title.legal":"Mentions Légales","footer.tab.title.social":"Social","footer.tab.search":"Rechercher","footer.tab.pricing":"Tarifs","footer.tab.termsAndConditions":"Termes et conditions","footer.tab.finalCopyright":"Copyright © 2023 Logiciel, Inc. Tous droits réservés."},vr={[Je.ENGLISH]:{translatedText:nE,pictureName:Je.ENGLISH,langID:0,locale:Je.ENGLISH},[Je.FRENCH]:{translatedText:rE,pictureName:Je.FRENCH,langID:1,locale:Je.FRENCH}},aE=Object.keys(vr);aE.reduce((e,t)=>{const n=vr[t];return[...e,n]},[]);const iE="languageSettings",lc=k.createContext({appCurrentLang:vr[Je.ENGLISH],setAppCurrentLang:()=>{}}),sE=e=>/(\[.*|\!\[.*)$/.test(e),uE=e=>/\)/.test(e),oE=e=>e.filter(t=>t.userType==="user").length;var dc=(e=>(e.GET_DISCUSSION_ID="/id",e))(dc||{});const cE=e=>!!e.startsWith("/"),lE=(e,t)=>e===dc.GET_DISCUSSION_ID?t?`Votre ID de discussion est ${t}`:"Votre ID de discussion n'est pas encore défini. Envoyez un premier message pour que ce soit le cas.":`La commande ${e} n'est pas prise en compte.`;var An=(e=>(e.OUTPUT_STREAM_TEXT_TYPE="text",e.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE="number_of_steps",e.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE="current_step_number",e.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE="current_step_name",e))(An||{});class Xt{constructor(){}static transformStringifiedObjectIntoArrayOfObjects=t=>{const r=t.split("}").map(s=>s.startsWith("{")?s+="}":null),a=r.filter(s=>!!s);let i;try{i=a.map(s=>JSON.parse(s))}catch{console.warn("Could not parse the objects. Objects received :"),console.warn("Initial objects :",t),console.warn("objectsCompleted :",r),console.warn("objectsCleaned :",a)}return i};static isObjectOutputstreamTextDTO=t=>t.type===An.OUTPUT_STREAM_TEXT_TYPE;static isObjectOutputstreamLoadingNumberOfStepsDTO=t=>t.type===An.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE;static isObjectOutputstreamLoadingCurrentStepNumberDTO=t=>t.type===An.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE;static isObjectOutputstreamLoadingCurrentStepNameDTO=t=>t.type===An.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE;static containsObjectWithLastAnswerToTrue=t=>{for(const n of t)if(this.isObjectOutputstreamTextDTO(n)&&n.isLastAnswer)return!0;return!1}}const fc=()=>{const e=Fn(),t=e.formatMessage({defaultMessage:"Search",id:"chatbot.chatline.loading.function.search"}),n=e.formatMessage({defaultMessage:"Looking into the cavern",id:"chatbot.chatline.loading.function.extractProductName"}),r=e.formatMessage({defaultMessage:"Consulting the shadocks",id:"chatbot.chatline.loading.function.suggestProductName"}),a=e.formatMessage({defaultMessage:"Looking for ziboublis",id:"chatbot.chatline.loading.function.criteriaDefinition"}),i=e.formatMessage({defaultMessage:"Searching Stock",id:"chatbot.chatline.loading.function.searchStock"}),s=e.formatMessage({defaultMessage:"Step",id:"chatbot.chatline.loading.function.step"}),o=e.formatMessage({defaultMessage:"I'm looking for products",id:"chatbot.chatline.loading.function.genericSearchMessage"}),c=e.formatMessage({defaultMessage:"Cancel",id:"chatbot.chatline.loading.cancel"}),l=f=>f?f.includes("ExtractProductNames")?n:f.includes("SuggestProductNames")?r:f.includes("CreateCriteriasFromProductNames")||f.includes("CreateCriteriasOrProductNamesFromDiscussion")?a:f.includes("SearchStock")?i:"":t,d=l();return{searchTranslation:t,extractProductNameTranslation:n,criteriaDefinitionTranslation:a,searchStockTranslation:i,stepTranslation:s,getFunctionTranslated:l,defaultStartingStep:d,lookingForProductTranslation:o,cancelTranslation:c}},dE=({})=>{const{companySettings:e}=k.useContext(Mn);return O.jsx("div",{className:`search
|
|
86
|
+
transition-colors`,"data-testid":"send-button",onClick:e,disabled:t,type:"button",children:N.jsx("span",{className:"","data-state":"closed",children:N.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-white dark:text-black",children:N.jsx("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})});var Ze=(e=>(e.FRENCH="fr-FR",e.ENGLISH="en-US",e))(Ze||{});const ng={"generic.language.english":"English","generic.language.french":"French","generic.connect.google":"Connect with Google","generic.button.title.save":"Save","page.login.button.login":"Login / Register","page.login.google.login":"Continue with Google","navbar.button.home":"Home","navbar.button.pricing":"Pricing","navbar.button.login":"Login","navbar.button.demo":"Demo","navbar.userMenu.logout":"Log out","navbar.userMenu.profile":"Profile","navbar.userMenu.backOffice":"Back-office","home.header.catchphase":"The catchphrase you wanted","home.header.subcatchphase":"Discover the new software that will change it all","home.header.CTA":"See more","home.section.bulletsPointParagraphe1.title":"Management","home.section.bulletsPointParagraphe1.text":"Take advantage of a complete solution to have a direct point of view on all of your units.","home.section.bulletsPointParagraphe2.title":"Automation","home.section.bulletsPointParagraphe2.text":"In just a few clicks, manage your entire fleet. Implement macros and synergies on your systems.","home.section.bulletsPointParagraphe3.title":"Reporting","home.section.bulletsPointParagraphe3.text":"With its BI module, our software allows you to monitor performance and optimize your costs.","home.realm.title":"See the root of your business in a few clicks","home.realm.text":"The security of your data is at the heart of our concerns. Our software was created in France, we are ISO 27001 certified and all our servers are located in Europe.","home.realm.cta":"Discover our solution","home.testimonials.title":"What our customers say","home.testimonials.1.text":"Since using the software, we have better control of the flow of goods and relevant performance monitoring.","home.testimonials.1.job":"Developer @Wordpress","home.testimonials.1.name":"Loic Martins","home.testimonials.2.text":"Putting the software solution into production allowed us to completely reorganize the teams.","home.testimonials.2.job":"Community Manager @Comet","home.testimonials.2.name":"Anna Wang","home.testimonials.3.text":"Mastery of the logistics subject is obvious with the software solution.","home.testimonials.3.job":"Product Owner @April","home.testimonials.3.name":"Louis Bachant","home.test.section.title":"Try it out now","home.test.section.CTA":"See our solution","pricing.CTA.pleaseLogin":"Login to buy","pricing.page.title":"Choose your plan","pricing.page.subtitle":"No obligation: cancel at any time with one click.","subscribe.paymentRecap.title":"Payment Summary","subscribe.paymentRecap.customerName":"Name","subscribe.paymentRecap.customerMail":"Email","subscribe.paymentRecap.additionnalMention":"Mention to add","subscribe.paymentRecap.totalAmount":"Total Amount","subscribe.paymentForm.title":"Bank card","subscribe.paymentForm.cardNumber":"Card number","subscribe.paymentForm.expiresAt":"Expires at","subscribe.paymentForm.CVCNumber":"CVC number","subscribe.paymentForm.CTA.loading":"Loading ...","subscribe.paymentForm.CTA.pay":"Pay now","subscribe.success.title":"Payment successful","subscribe.success.paragraph1":"Your payment has been processed successfully. You are now suscribed !","subscribe.success.paragraph2":"Your new options are now available.","myAccount.page.leftMenu.general":"General","myAccount.page.leftMenu.profile":"Profile","chatbot.placeholder.content":"Message the assistant...","chatbot.DiscussionLimitReached.title":"Discussion limit reached","chatbot.DiscussionLimitReached.explaination":"The discussion has reached its maximum number of messages. Please start a new one.","chatbot.DiscussionLimitReached.cta":"Restart","chatbot.error.api.409":"Oups ! The discussion if full. Please start a new one.","chatbot.error.api.429":"⏳ The chatbot is a little busy at the time. Please try again later.","chatbot.error.api.500":"Oops ! There has been an error. Please try again later.","chatbot.chatline.label.user":"You","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.genericSearchMessage":"I'm looking for products","chatbot.chatline.loading.function.search":"Search","chatbot.chatline.loading.function.extractProductName":"Looking into the cavern","chatbot.chatline.loading.function.suggestProductName":"Consulting the shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Looking for ziboublis","chatbot.chatline.loading.function.searchStock":"Searching Stock","chatbot.chatline.loading.function.step":"Step","chatbot.chatline.loading.cancel":"Cancel","footer.tab.title.general":"General","footer.tab.title.about":"About","footer.tab.title.resources":"Resources","footer.tab.title.legal":"Legal","footer.tab.title.social":"Social","footer.tab.search":"Search","footer.tab.pricing":"Pricing","footer.tab.termsAndConditions":"Terms and conditions","footer.tab.finalCopyright":"Copyright © 2023 Logiciel, Inc. All rights reserved."},rg={"generic.language.english":"Anglais","generic.language.french":"Français","generic.connect.google":"Se connecter avec Google","generic.button.title.save":"Sauvegarder","page.login.button.login":"Se connecter / S'inscrire","page.login.google.login":"Continuer avec Google","navbar.button.home":"Accueil","navbar.button.pricing":"Tarifs","navbar.button.login":"Se Connecter","navbar.button.demo":"Demo","navbar.userMenu.logout":"Déconnection","navbar.userMenu.profile":"Profil","navbar.userMenu.backOffice":"Back-office","home.header.catchphase":"Catchphrase de l'espace","home.header.subcatchphase":"Découvrez le logiciel qui met fin à vos problèmes","home.header.CTA":"Voir notre solution","home.section.bulletsPointParagraphe1.title":"Management","home.section.bulletsPointParagraphe1.text":"Profitez d'une solution complète pour avoir un point de vue direct sur l'ensemble de vos unités.","home.section.bulletsPointParagraphe2.title":"Automatisation","home.section.bulletsPointParagraphe2.text":"En quelques clicks, gérez l'ensemble de votre flotte. Mettez en place des macros et des synergies sur vos systèmes.","home.section.bulletsPointParagraphe3.title":"Reporting","home.section.bulletsPointParagraphe3.text":"Avec son module BI, notre logiciel vous permet de monitorer la performance et d'optimiser vos coûts. A l'euro prêt","home.realm.title":"Le coeur du métier en quelques clics","home.realm.text":"La sécurité de vos données est au cœur de nos préoccupations. Notre logiciel a été créé en France, nous sommes certifiés ISO 27001 et tous nos serveurs sont situés en Europe.","home.realm.cta":"Voir notre solution","home.testimonials.title":"Nos clients parlent de nous","home.testimonials.1.text":"Depuis notre utilisation du logiciel, nous avons un meilleur contrôle du flux de marchandises et un suivi de performance pertinent.","home.testimonials.1.job":"Developpeur @Wordpress","home.testimonials.1.name":"Loic Martins","home.testimonials.2.text":"La mise en production de la solution logicielle nous a permis de réorganiser complètement les équipes.","home.testimonials.2.job":"Community Manager @Comet","home.testimonials.2.name":"Anna Wang","home.testimonials.3.text":"La maitrise du sujet logistique est une évidence avec la solution logicielle.","home.testimonials.3.job":"Product Owner @April","home.testimonials.3.name":"Louis Bachant","home.test.section.title":"Testez dès maintenant","home.test.section.CTA":"Voir notre solution","pricing.CTA.pleaseLogin":"Connectez-vous","pricing.page.title":"Choisissez votre plan","pricing.page.subtitle":"Sans engagement : annulez à tout moment en un clic.","subscribe.paymentRecap.title":"Récapitulatif de paiement","subscribe.paymentRecap.customerName":"Nom","subscribe.paymentRecap.customerMail":"Email","subscribe.paymentRecap.additionnalMention":"Mention à ajouter","subscribe.paymentRecap.totalAmount":"Total","subscribe.paymentForm.title":"Carte bancaire","subscribe.paymentForm.cardNumber":"Numéro de carte","subscribe.paymentForm.expiresAt":"Expire le","subscribe.paymentForm.CVCNumber":"Numéro CVV","subscribe.paymentForm.CTA.loading":"Chargement ...","subscribe.paymentForm.CTA.pay":"S'abonner","subscribe.success.title":"Paiement effectué avec succès","subscribe.success.paragraph1":"Votre paiement a bien été accepté. Vous êtes désormais abonné !","subscribe.success.paragraph2":"Toutes vos options sont maintenant disponibles.","myAccount.page.leftMenu.general":"Général","myAccount.page.leftMenu.profile":"Profil","chatbot.placeholder.content":"Envoyez un message à l'assistant ...","chatbot.DiscussionLimitReached.title":"Maximum de messages envoyés atteint.","chatbot.DiscussionLimitReached.explaination":"Le robot est à son maximum et ne peut plus envoyer de message. Merci de relancer une conversation.","chatbot.DiscussionLimitReached.cta":"Relancer une nouvelle conversation","chatbot.error.api.409":"Oups ! La discussion est à son maximum. Merci d'en commencer une nouvelle.","chatbot.error.api.429":"⏳ Le robot est un peu occupé actuellement. Merci de réessayer plus tard.","chatbot.error.api.500":"Oups ! Une erreur est survenue. Merci de réessayer plus tard !","chatbot.chatline.label.user":"Vous","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.search":"Recherche","chatbot.chatline.loading.function.genericSearchMessage":"Je cherche des produits","chatbot.chatline.loading.function.extractProductName":"Recherche dans la caverne","chatbot.chatline.loading.function.suggestProductName":"Consultation des shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Recherche des ziboublis","chatbot.chatline.loading.function.searchStock":"Recherche en stock","chatbot.chatline.loading.function.step":"Etape","chatbot.chatline.loading.cancel":"Annuler","footer.tab.title.general":"Général","footer.tab.title.about":"A propos","footer.tab.title.resources":"Ressources","footer.tab.title.legal":"Mentions Légales","footer.tab.title.social":"Social","footer.tab.search":"Rechercher","footer.tab.pricing":"Tarifs","footer.tab.termsAndConditions":"Termes et conditions","footer.tab.finalCopyright":"Copyright © 2023 Logiciel, Inc. Tous droits réservés."},vr={[Ze.ENGLISH]:{translatedText:ng,pictureName:Ze.ENGLISH,langID:0,locale:Ze.ENGLISH},[Ze.FRENCH]:{translatedText:rg,pictureName:Ze.FRENCH,langID:1,locale:Ze.FRENCH}},ag=Object.keys(vr);ag.reduce((e,t)=>{const n=vr[t];return[...e,n]},[]);const ig="languageSettings",ml=C.createContext({appCurrentLang:vr[Ze.ENGLISH],setAppCurrentLang:()=>{}}),sg=e=>/(\[.*|\!\[.*)$/.test(e),ug=e=>/\)/.test(e),og=e=>e.filter(t=>t.userType==="user").length;var pl=(e=>(e.GET_DISCUSSION_ID="/id",e))(pl||{});const lg=e=>!!e.startsWith("/"),cg=(e,t)=>e===pl.GET_DISCUSSION_ID?t?`Votre ID de discussion est ${t}`:"Votre ID de discussion n'est pas encore défini. Envoyez un premier message pour que ce soit le cas.":`La commande ${e} n'est pas prise en compte.`;var gn=(e=>(e.OUTPUT_STREAM_TEXT_TYPE="text",e.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE="number_of_steps",e.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE="current_step_number",e.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE="current_step_name",e))(gn||{});class Gt{constructor(){}static transformStringifiedObjectIntoArrayOfObjects=t=>{const r=t.split("}").map(s=>s.startsWith("{")?s+="}":null),a=r.filter(s=>!!s);let i;try{i=a.map(s=>JSON.parse(s))}catch{console.warn("Could not parse the objects. Objects received :"),console.warn("Initial objects :",t),console.warn("objectsCompleted :",r),console.warn("objectsCleaned :",a)}return i};static isObjectOutputstreamTextDTO=t=>t.type===gn.OUTPUT_STREAM_TEXT_TYPE;static isObjectOutputstreamLoadingNumberOfStepsDTO=t=>t.type===gn.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE;static isObjectOutputstreamLoadingCurrentStepNumberDTO=t=>t.type===gn.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE;static isObjectOutputstreamLoadingCurrentStepNameDTO=t=>t.type===gn.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE;static containsObjectWithLastAnswerToTrue=t=>{for(const n of t)if(this.isObjectOutputstreamTextDTO(n)&&n.isLastAnswer)return!0;return!1}}const bl=()=>{const e=Dn(),t=e.formatMessage({defaultMessage:"Search",id:"chatbot.chatline.loading.function.search"}),n=e.formatMessage({defaultMessage:"Looking into the cavern",id:"chatbot.chatline.loading.function.extractProductName"}),r=e.formatMessage({defaultMessage:"Consulting the shadocks",id:"chatbot.chatline.loading.function.suggestProductName"}),a=e.formatMessage({defaultMessage:"Looking for ziboublis",id:"chatbot.chatline.loading.function.criteriaDefinition"}),i=e.formatMessage({defaultMessage:"Searching Stock",id:"chatbot.chatline.loading.function.searchStock"}),s=e.formatMessage({defaultMessage:"Step",id:"chatbot.chatline.loading.function.step"}),o=e.formatMessage({defaultMessage:"I'm looking for products",id:"chatbot.chatline.loading.function.genericSearchMessage"}),l=e.formatMessage({defaultMessage:"Cancel",id:"chatbot.chatline.loading.cancel"}),c=f=>f?f.includes("ExtractProductNames")?n:f.includes("SuggestProductNames")?r:f.includes("CreateCriteriasFromProductNames")||f.includes("CreateCriteriasOrProductNamesFromDiscussion")?a:f.includes("SearchStock")?i:"":t,d=c();return{searchTranslation:t,extractProductNameTranslation:n,criteriaDefinitionTranslation:a,searchStockTranslation:i,stepTranslation:s,getFunctionTranslated:c,defaultStartingStep:d,lookingForProductTranslation:o,cancelTranslation:l}},dg=({})=>{const{companySettings:e}=C.useContext(Rn);return N.jsx("div",{className:`search
|
|
79
87
|
transition
|
|
80
88
|
ease-in-out
|
|
81
89
|
delay-50
|
|
82
90
|
flex
|
|
83
91
|
justify-center
|
|
84
92
|
items-center
|
|
85
|
-
`,children:
|
|
93
|
+
`,children:N.jsx(Fa,{facet:e.agent.display[ze.AgentDisplayFacetRoleType.SEARCH]})})},fg=({loadingStatus:e,currentStepName:t,currentStepNumber:n,numberOfSteps:r})=>{const{getFunctionTranslated:a,stepTranslation:i,lookingForProductTranslation:s}=bl();return N.jsx(N.Fragment,{children:e==="loadingIntermediaryStates"&&N.jsxs("div",{children:[N.jsxs("div",{children:[N.jsxs("p",{className:"text-center my-2 text-lg",children:[s,"..."]}),N.jsx("p",{className:"text-center my-1 text-md",children:t&&`${a(t)}`}),n&&N.jsxs("p",{className:"text-center my-2",children:[i,N.jsx("span",{children:" "}),n,"/",r]})]}),N.jsx("div",{className:"flex justify-center",children:N.jsx(dg,{})})]})})},hg=({onPressLoadingButton:e})=>N.jsx("div",{children:N.jsx("button",{className:"absolute bg-white md:bottom-2 md:right-3 dark:hover:bg-white right-2 bottom-1.5 disabled:opacity-10 disabled:text-gray-400 enabled:bg-white text-white p-0.5 border border-white rounded-lg dark:border-white dark:bg-white transition-colors","data-testid":"send-button",onClick:e,type:"button",style:{outline:"none"},tabIndex:-1,onMouseDown:t=>t.preventDefault(),onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&t.preventDefault()},onKeyUp:t=>{(t.key==="Enter"||t.key===" ")&&t.preventDefault()},children:N.jsx("span",{className:"","data-state":"closed",children:N.jsxs("svg",{fill:"#000000",height:"24",width:"24",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 297 297",children:[N.jsx("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),N.jsx("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),N.jsxs("g",{id:"SVGRepo_iconCarrier",children:[" ",N.jsx("path",{d:"M148.5,0C66.486,0,0,66.486,0,148.5S66.486,297,148.5,297S297,230.514,297,148.5S230.514,0,148.5,0z M213.292,190.121 c0,12.912-10.467,23.379-23.378,23.379H106.67c-12.911,0-23.378-10.467-23.378-23.379v-83.242c0-12.912,10.467-23.379,23.378-23.379 h83.244c12.911,0,23.378,10.467,23.378,23.379V190.121z"})," "]})]})})})}),El=C.createContext({conversation:[],setConversation:()=>{},discussionId:null,setDiscussionId:()=>{}}),mg=e=>{const t=C.useRef(null),[n,r]=C.useState(!1),a=C.useRef(!0),i=C.useRef(!1),s=C.useRef(0),o=()=>{const d=t.current,f=4;if(d){d.scrollTop<s.current-1&&(i.current=!1);const h=d.scrollHeight>d.clientHeight,y=d.scrollHeight-d.scrollTop<=d.clientHeight+f;r(h&&!y),a.current=y,s.current=d.scrollTop}},l=({smooth:d=!1,sticky:f=!1})=>{const m=t.current;f?(i.current=!0,a.current=!0):m&&m.scrollTo({top:m.scrollHeight,behavior:d?"smooth":"auto"}),m&&i.current&&m.scrollTo({top:m.scrollHeight,behavior:d?"smooth":"auto"})};return C.useEffect(()=>{o()},[e]),C.useEffect(()=>{const d=t.current;if(d)return d.addEventListener("scroll",o),o(),()=>{d.removeEventListener("scroll",o)}},[]),C.useLayoutEffect(()=>{i.current&&l({smooth:!1})},[e]),{scrollToBottom:l,removeStickyNess:()=>{i.current=!1},messagesContainerRef:t,showScrollButton:n}},pg=()=>{const e=Dn(),t=e.formatMessage({defaultMessage:"Discussion limit reached",id:"chatbot.DiscussionLimitReached.title"}),n=e.formatMessage({defaultMessage:"The discussion has reached its maximum number of messages. Please start a new one.",id:"chatbot.DiscussionLimitReached.explaination"}),r=e.formatMessage({defaultMessage:"Restart",id:"chatbot.DiscussionLimitReached.cta"});return{DiscussionLimitReachedTitleTranslation:t,DiscussionLimitReachedExplainationTranslation:n,DiscussionLimitReachedCtaTranslation:r}},bg=e=>Pe.createElement("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Pe.createElement("g",{clipPath:"url(#clip0_1276_7761)"},Pe.createElement("path",{d:"M19.7285 10.9288C20.4413 13.5978 19.7507 16.5635 17.6569 18.6573C15.1798 21.1344 11.4826 21.6475 8.5 20.1966M18.364 8.05071L17.6569 7.3436C14.5327 4.21941 9.46736 4.21941 6.34316 7.3436C3.42964 10.2571 3.23318 14.8588 5.75376 18M18.364 8.05071H14.1213M18.364 8.05071V3.80807",stroke:"#1C274C",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Pe.createElement("defs",null,Pe.createElement("clipPath",{id:"clip0_1276_7761"},Pe.createElement("rect",{width:24,height:24,fill:"white"})))),Eg=({resetDiscussion:e})=>{const{DiscussionLimitReachedCtaTranslation:t,DiscussionLimitReachedExplainationTranslation:n,DiscussionLimitReachedTitleTranslation:r}=pg();return N.jsx(N.Fragment,{children:N.jsx("div",{className:"px-3 mt-4",children:N.jsxs("div",{role:"status","aria-live":"polite",className:"info-banner not-prose flex items-start gap-3 rounded-lg bg-blue-50 border-l-4 border-blue-500 p-4 shadow-sm",children:[N.jsx("div",{className:"flex flex-col justify-center items-center mx-3",children:N.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:"!w-5 !h-5 mt-0.5 flex-shrink-0 pointer-events-none",children:N.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16Zm.75-11.5a.75.75 0 10-1.5 0 .75.75 0 001.5 0ZM9 8.75A.75.75 0 019.75 8h.5a.75.75 0 01.75.75v5a.75.75 0 01-.75.75h-.5A.75.75 0 019 13.75v-5Z",clipRule:"evenodd"})})}),N.jsxs("div",{className:"flex-1 min-w-0",children:[N.jsx("p",{className:"font-semibold",children:r}),N.jsx("p",{className:"text-sm break-words",children:n}),N.jsx("div",{className:"my-2",children:N.jsxs("button",{type:"button",onClick:e,title:t,"aria-label":t,className:`group inline-flex items-center gap-2 rounded-full px-3 py-1.5
|
|
86
94
|
font-medium text-blue-700 dark:text-blue-300
|
|
87
95
|
bg-blue-50/70 hover:bg-blue-100 dark:bg-blue-900/20 dark:hover:bg-blue-900/30
|
|
88
96
|
ring-1 ring-inset ring-blue-600/20 hover:ring-blue-600/30
|
|
89
97
|
shadow-sm transition-all duration-200
|
|
90
98
|
focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/50
|
|
91
|
-
active:scale-[0.98]`,children:[O.jsx(gE,{"aria-hidden":"true",className:"w-5 h-5 transition-transform duration-200 group-hover:rotate-180"}),O.jsx("span",{children:t})]})})]})]})})})};let tr=new AbortController;const mc=({appToken:e,containerClassName:t})=>{e||console.log("Dev - Admin settings");const n=k.useRef(null),{placeholderTranslation:r,genericErrorTranslation:a,tooManyRequestsTranslation:i,conflictErrorTranslation:s}=ja(),{conversation:o,setConversation:c,discussionId:l,setDiscussionId:d}=k.useContext(hc),[f,h]=k.useState("notLoading"),{defaultStartingStep:m}=fc(),[S,C]=k.useState(null),[P,N]=k.useState(m),[M,D]=k.useState(null),{companySettings:$}=k.useContext(Mn),{appCurrentLang:I}=k.useContext(lc),Q={...f!=="notLoading"||(o?.length??0)>0?{maxHeight:"100vh"}:{height:"250px"}},ae=oE(o)>=$?.api?.settings?.maxUserMessagesPerDiscussion,{scrollToBottom:K,showScrollButton:Y,messagesContainerRef:oe,removeStickyNess:X}=mE(o),B=(re,pe,we)=>{c(x=>[...x,{content:re,userType:pe,metaData:we}])},z=()=>{tr.abort("Cancelling stream on purpose."),console.log("Stream request aborted"),h("notLoading"),c(re=>re.filter(pe=>!(pe.content?.length===0&&pe.userType==="assistant")))},{resetDiscussion:W}=ld({companySettings:$,setConversation:c,setDiscussionId:d}),ce=async re=>{h("loadingIntermediaryStates");const pe=Pn.getApiUrl(),we={query:re,language:I.locale};c(le=>[...le,{userType:"assistant",content:""}]),requestAnimationFrame(()=>K({smooth:!1,sticky:!1})),l&&(we.discussionId=l);const x=tr.signal,Ce=Pn.getFetchConfig({httpVerb:"POST",body:we,contentType:"application/json",options:{signal:x}});fetch(`${pe}/ai/prompt/${e}`,Ce).then(async le=>{const y=le?.body?.getReader(),_e=new TextDecoder;let Ae="",Ge="",Pe=!1,fe=!1,Oe=null;const Me=le.headers.get("discussionId");d(parseInt(Me,10)),await new ReadableStream({start(ve){return Xe();async function Xe(){if(!le.ok){h("notLoading");let Ye=a;le.status===409?Ye=s:le.status===429?Ye=i:(le.status,Ye=a),c(it=>(it.pop(),it)),B(Ye,"assistant",{isErrorMessage:!0}),tr=new AbortController;return}return y?.read().then(Ye=>{const{done:it,value:wt}=Ye,Be=_e.decode(wt),vt=Xt.transformStringifiedObjectIntoArrayOfObjects(Be);Xt.containsObjectWithLastAnswerToTrue(vt)&&h("loadingFinalAnswer");for(const Z of vt)if(Xt.isObjectOutputstreamTextDTO(Z)){const{content:te,isLastAnswer:ge,streamSourceUuid:he,shouldStopStream:ye}=Z;Oe&&Oe!==he&&(Ae+='<span style="display:block;height:1rem;"></span>'),Oe=he,(ge||ye)&&(fe=!0),ve.enqueue(te),uE(te)?(Ge+=te,Ae+=Ge,Ge="",Pe=!1):Pe||sE(te)?(Ge+=te,Pe=!0):Ae+=te,c(w=>{const v=[...w],j=v.length-1,J=v[j];return v[j]={...J,content:J.content=Ae,metaData:{isErrorMessage:ye}},[...v]})}else if(Xt.isObjectOutputstreamLoadingCurrentStepNumberDTO(Z)){const{content:te}=Z;ve.enqueue(te),D(te)}else if(Xt.isObjectOutputstreamLoadingCurrentStepNameDTO(Z)){const{content:te}=Z;ve.enqueue(te),N(te)}else if(Xt.isObjectOutputstreamLoadingNumberOfStepsDTO(Z)){const{content:te}=Z;ve.enqueue(te),C(te)}else console.warn(`Object not handled - ${Z}`);if(it&&fe){ve.close(),h("notLoading"),N(m),D(null);return}return Xe()})}}}).pipeTo(new WritableStream)}).catch(le=>{console.error(le),console.log("Cancelling stream"),h("notLoading"),tr=new AbortController})};return O.jsxs("div",{className:["relative p-2","flex flex-col min-h-0 overflow-hidden","h-auto",t??"max-w-[90%] mx-auto"].join(" "),ref:n,style:Q,children:[O.jsxs("div",{className:"flex-1 overflow-y-auto min-h-0 messagesContainer",ref:oe,children:[o.map((re,pe)=>O.jsx(q1,{content:re.content,userType:re.userType,metaData:re.metaData,context:{discussionId:l,messageIndex:pe,appToken:e},seenRootEl:oe.current},pe)),O.jsx(fE,{currentStepName:P,currentStepNumber:M,loadingStatus:f,numberOfSteps:S})]}),Y&&O.jsx("button",{onClick:()=>K({smooth:!0,sticky:!0}),className:"absolute bottom-[120px] right-4 bg-blue-500 hover:bg-blue-600 text-white p-3 rounded-full shadow-lg transition-all duration-300 z-10","aria-label":"Scroll to bottom",children:O.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M12 16L6 10L7.4 8.6L12 13.2L16.6 8.6L18 10L12 16Z",fill:"currentColor"})})}),ae&&O.jsx(bE,{resetDiscussion:W}),O.jsx("div",{className:"flex-shrink-0",children:O.jsx(eE,{classNameTextarea:"",classNameContainer:"relative mt-6 mt-3 border-slate-400 border-[1px] rounded-lg p-1",SubmitComponent:tE,isDisabled:f!=="notLoading"||ae,shouldDisableIfInputIsEmpty:!0,"aria-label":"TextArea For Bot Conversation",onSubmit:re=>{if(cE(re)){const pe=lE(re,l);B(pe,"user"),X(),K({smooth:!0,sticky:!1})}else B(re,"user"),X(),K({smooth:!0,sticky:!1}),ce(re)},placeholder:r,autoFocus:!0,isLoadingStream:f==="loadingFinalAnswer"||f==="loadingIntermediaryStates",LoadingComponent:hE,onPressLoadingButton:z})})]})};function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Da.apply(this,arguments)}function pc(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Pa(e,t){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Pa(e,t)}function gc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pa(e,t)}function EE(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function TE(e,t){e.classList?e.classList.add(t):EE(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function qs(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function xE(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=qs(e.className,t):e.setAttribute("class",qs(e.className&&e.className.baseVal||"",t))}const Ws={disabled:!1},bc=k.createContext(null);var Ec=function(t){return t.scrollTop},Sn="unmounted",Pt="exited",Mt="entering",Zt="entered",Ma="exiting",Tt=(function(e){gc(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var s=a,o=s&&!s.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?o?(c=Pt,i.appearStatus=Mt):c=Zt:r.unmountOnExit||r.mountOnEnter?c=Sn:c=Pt,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var s=a.in;return s&&i.status===Sn?{status:Pt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==Mt&&s!==Zt&&(i=Mt):(s===Mt||s===Zt)&&(i=Ma)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,s,o;return i=s=o=a,a!=null&&typeof a!="number"&&(i=a.exit,s=a.enter,o=a.appear!==void 0?a.appear:s),{exit:i,enter:s,appear:o}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Mt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:xn.findDOMNode(this);s&&Ec(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pt&&this.setState({status:Sn})},n.performEnter=function(a){var i=this,s=this.props.enter,o=this.context?this.context.isMounting:a,c=this.props.nodeRef?[o]:[xn.findDOMNode(this),o],l=c[0],d=c[1],f=this.getTimeouts(),h=o?f.appear:f.enter;if(!a&&!s||Ws.disabled){this.safeSetState({status:Zt},function(){i.props.onEntered(l)});return}this.props.onEnter(l,d),this.safeSetState({status:Mt},function(){i.props.onEntering(l,d),i.onTransitionEnd(h,function(){i.safeSetState({status:Zt},function(){i.props.onEntered(l,d)})})})},n.performExit=function(){var a=this,i=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:xn.findDOMNode(this);if(!i||Ws.disabled){this.safeSetState({status:Pt},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Ma},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:Pt},function(){a.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,i.nextCallback=null,a(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:xn.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=c[0],d=c[1];this.props.addEndListener(l,d)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===Sn)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=pc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return k.createElement(bc.Provider,{value:null},typeof s=="function"?s(a,o):k.cloneElement(k.Children.only(s),o))},t})(k.Component);Tt.contextType=bc;Tt.propTypes={};function Qt(){}Tt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qt,onEntering:Qt,onEntered:Qt,onExit:Qt,onExiting:Qt,onExited:Qt};Tt.UNMOUNTED=Sn;Tt.EXITED=Pt;Tt.ENTERING=Mt;Tt.ENTERED=Zt;Tt.EXITING=Ma;var yE=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return TE(t,r)})},ia=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return xE(t,r)})},li=(function(e){gc(t,e);function t(){for(var r,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(o,c){var l=r.resolveArguments(o,c),d=l[0],f=l[1];r.removeClasses(d,"exit"),r.addClass(d,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(o,c)},r.onEntering=function(o,c){var l=r.resolveArguments(o,c),d=l[0],f=l[1],h=f?"appear":"enter";r.addClass(d,h,"active"),r.props.onEntering&&r.props.onEntering(o,c)},r.onEntered=function(o,c){var l=r.resolveArguments(o,c),d=l[0],f=l[1],h=f?"appear":"enter";r.removeClasses(d,h),r.addClass(d,h,"done"),r.props.onEntered&&r.props.onEntered(o,c)},r.onExit=function(o){var c=r.resolveArguments(o),l=c[0];r.removeClasses(l,"appear"),r.removeClasses(l,"enter"),r.addClass(l,"exit","base"),r.props.onExit&&r.props.onExit(o)},r.onExiting=function(o){var c=r.resolveArguments(o),l=c[0];r.addClass(l,"exit","active"),r.props.onExiting&&r.props.onExiting(o)},r.onExited=function(o){var c=r.resolveArguments(o),l=c[0];r.removeClasses(l,"exit"),r.addClass(l,"exit","done"),r.props.onExited&&r.props.onExited(o)},r.resolveArguments=function(o,c){return r.props.nodeRef?[r.props.nodeRef.current,o]:[o,c]},r.getClassNames=function(o){var c=r.props.classNames,l=typeof c=="string",d=l&&c?c+"-":"",f=l?""+d+o:c[o],h=l?f+"-active":c[o+"Active"],m=l?f+"-done":c[o+"Done"];return{baseClassName:f,activeClassName:h,doneClassName:m}},r}var n=t.prototype;return n.addClass=function(a,i,s){var o=this.getClassNames(i)[s+"ClassName"],c=this.getClassNames("enter"),l=c.doneClassName;i==="appear"&&s==="done"&&l&&(o+=" "+l),s==="active"&&a&&Ec(a),o&&(this.appliedClasses[i][s]=o,yE(a,o))},n.removeClasses=function(a,i){var s=this.appliedClasses[i],o=s.base,c=s.active,l=s.done;this.appliedClasses[i]={},o&&ia(a,o),c&&ia(a,c),l&&ia(a,l)},n.render=function(){var a=this.props;a.classNames;var i=pc(a,["classNames"]);return k.createElement(Tt,Da({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(k.Component);li.defaultProps={classNames:""};li.propTypes={};const AE=k.forwardRef(({props:e},t)=>O.jsxs("div",{ref:t,className:`chatBox
|
|
99
|
+
active:scale-[0.98]`,children:[N.jsx(bg,{"aria-hidden":"true",className:"w-5 h-5 transition-transform duration-200 group-hover:rotate-180"}),N.jsx("span",{children:t})]})})]})]})})})};let Kn=new AbortController;const gl=({appToken:e,containerClassName:t})=>{e||console.log("Dev - Admin settings");const n=C.useRef(null),{placeholderTranslation:r,genericErrorTranslation:a,tooManyRequestsTranslation:i,conflictErrorTranslation:s}=za(),{conversation:o,setConversation:l,discussionId:c,setDiscussionId:d}=C.useContext(El),[f,m]=C.useState("notLoading"),{defaultStartingStep:h}=bl(),[y,x]=C.useState(null),[L,_]=C.useState(h),[R,O]=C.useState(null),{companySettings:U}=C.useContext(Rn),{appCurrentLang:S}=C.useContext(ml),Q={...f!=="notLoading"||(o?.length??0)>0?{maxHeight:"100vh"}:{height:"250px"}},fe=og(o)>=U?.api?.settings?.maxUserMessagesPerDiscussion,{scrollToBottom:re,showScrollButton:G,messagesContainerRef:j,removeStickyNess:B}=mg(o),$=(ue,be,we)=>{l(p=>[...p,{content:ue,userType:be,metaData:we}])},z=()=>{Kn.abort("Cancelling stream on purpose."),console.log("Stream request aborted"),m("notLoading"),l(ue=>ue.filter(be=>!(be.content?.length===0&&be.userType==="assistant")))},{resetDiscussion:Z}=pd({companySettings:U,setConversation:l,setDiscussionId:d}),he=async ue=>{m("loadingIntermediaryStates");const be=Ln.getApiUrl(),we={query:ue,language:S.locale};l(Y=>[...Y,{userType:"assistant",content:""}]),requestAnimationFrame(()=>re({smooth:!1,sticky:!1})),c&&(we.discussionId=c);const p=Kn.signal,F=Ln.getFetchConfig({httpVerb:"POST",body:we,contentType:"application/json",options:{signal:p}});fetch(`${be}/ai/prompt/${e}`,F).then(async Y=>{const g=Y?.body?.getReader(),W=new TextDecoder;let K="",V="",J=!1,ee=!1,te=null;const ae=Y.headers.get("discussionId");d(parseInt(ae,10)),await new ReadableStream({start(H){return Oe();async function Oe(){if(!Y.ok){m("notLoading");let De=a;Y.status===409?De=s:Y.status===429?De=i:(Y.status,De=a),l(Ge=>(Ge.pop(),Ge)),$(De,"assistant",{isErrorMessage:!0}),Kn=new AbortController;return}return g?.read().then(De=>{const{done:Ge,value:Ct}=De,He=W.decode(Ct),It=Gt.transformStringifiedObjectIntoArrayOfObjects(He);Gt.containsObjectWithLastAnswerToTrue(It)&&m("loadingFinalAnswer");for(const se of It)if(Gt.isObjectOutputstreamTextDTO(se)){const{content:ce,isLastAnswer:xe,streamSourceUuid:ge,shouldStopStream:Ne}=se;te&&te!==ge&&(K+='<span style="display:block;height:1rem;"></span>'),te=ge,(xe||Ne)&&(ee=!0),H.enqueue(ce),ug(ce)?(V+=ce,K+=V,V="",J=!1):J||sg(ce)?(V+=ce,J=!0):K+=ce,l(v=>{const D=[...v],X=D.length-1,le=D[X];return D[X]={...le,content:le.content=K,metaData:{isErrorMessage:Ne}},[...D]})}else if(Gt.isObjectOutputstreamLoadingCurrentStepNumberDTO(se)){const{content:ce}=se;H.enqueue(ce),O(ce)}else if(Gt.isObjectOutputstreamLoadingCurrentStepNameDTO(se)){const{content:ce}=se;H.enqueue(ce),_(ce)}else if(Gt.isObjectOutputstreamLoadingNumberOfStepsDTO(se)){const{content:ce}=se;H.enqueue(ce),x(ce)}else console.warn(`Object not handled - ${se}`);if(Ge&&ee){H.close(),m("notLoading"),_(h),O(null);return}return Oe()})}}}).pipeTo(new WritableStream)}).catch(Y=>{console.error(Y),console.log("Cancelling stream"),m("notLoading"),Kn=new AbortController})};return N.jsxs("div",{className:["relative p-2","flex flex-col min-h-0 overflow-hidden","h-auto",t??"max-w-[90%] mx-auto"].join(" "),ref:n,style:Q,children:[N.jsxs("div",{className:"flex-1 overflow-y-auto min-h-0 messagesContainer",ref:j,children:[o.map((ue,be)=>N.jsx(qb,{content:ue.content,userType:ue.userType,metaData:ue.metaData,context:{discussionId:c,messageIndex:be,appToken:e},seenRootEl:j.current},be)),N.jsx(fg,{currentStepName:L,currentStepNumber:R,loadingStatus:f,numberOfSteps:y})]}),G&&N.jsx("button",{onClick:()=>re({smooth:!0,sticky:!0}),className:"absolute bottom-[120px] right-4 bg-blue-500 hover:bg-blue-600 text-white p-3 rounded-full shadow-lg transition-all duration-300 z-10","aria-label":"Scroll to bottom",children:N.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{d:"M12 16L6 10L7.4 8.6L12 13.2L16.6 8.6L18 10L12 16Z",fill:"currentColor"})})}),fe&&N.jsx(Eg,{resetDiscussion:Z}),N.jsx("div",{className:"flex-shrink-0",children:N.jsx(eg,{classNameTextarea:"",classNameContainer:"relative mt-6 mt-3 border-slate-400 border-[1px] rounded-lg p-1",SubmitComponent:tg,isDisabled:f!=="notLoading"||fe,shouldDisableIfInputIsEmpty:!0,"aria-label":"TextArea For Bot Conversation",onSubmit:ue=>{if(lg(ue)){const be=cg(ue,c);$(be,"user"),B(),re({smooth:!0,sticky:!1})}else $(ue,"user"),B(),re({smooth:!0,sticky:!1}),he(ue)},placeholder:r,autoFocus:!0,isLoadingStream:f==="loadingFinalAnswer"||f==="loadingIntermediaryStates",LoadingComponent:hg,onPressLoadingButton:z})})]})};function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(this,arguments)}function Tl(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function ka(e,t){return ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ka(e,t)}function yl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ka(e,t)}var Zn={exports:{}};/*
|
|
100
|
+
object-assign
|
|
101
|
+
(c) Sindre Sorhus
|
|
102
|
+
@license MIT
|
|
103
|
+
*/var ea,Vs;function gg(){if(Vs)return ea;Vs=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(s).map(function(d){return s[d]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ea=a()?Object.assign:function(i,s){for(var o,l=r(i),c,d=1;d<arguments.length;d++){o=Object(arguments[d]);for(var f in o)t.call(o,f)&&(l[f]=o[f]);if(e){c=e(o);for(var m=0;m<c.length;m++)n.call(o,c[m])&&(l[c[m]]=o[c[m]])}}return l},ea}var ta,qs;function ci(){if(qs)return ta;qs=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ta=e,ta}var na,Ws;function xl(){return Ws||(Ws=1,na=Function.call.bind(Object.prototype.hasOwnProperty)),na}var ra,Xs;function Tg(){if(Xs)return ra;Xs=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ci(),n={},r=xl();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(i,s,o,l,c){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var f;try{if(typeof i[d]!="function"){var m=Error((l||"React class")+": "+o+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=i[d](s,d,l,o,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=c?c():"";e("Failed "+o+" type: "+f.message+(h??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ra=a,ra}var aa,Qs;function yg(){if(Qs)return aa;Qs=1;var e=Ha(),t=gg(),n=ci(),r=xl(),a=Tg(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return aa=function(o,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(p){var F=p&&(c&&p[c]||p[d]);if(typeof F=="function")return F}var m="<<anonymous>>",h={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:R(),arrayOf:O,element:U(),elementType:S(),instanceOf:w,node:G(),objectOf:fe,oneOf:Q,oneOfType:re,shape:B,exact:$};function y(p,F){return p===F?p!==0||1/p===1/F:p!==p&&F!==F}function x(p,F){this.message=p,this.data=F&&typeof F=="object"?F:{},this.stack=""}x.prototype=Error.prototype;function L(p){if(process.env.NODE_ENV!=="production")var F={},Y=0;function g(K,V,J,ee,te,ae,ve){if(ee=ee||m,ae=ae||J,ve!==n){if(l){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Oe=ee+":"+J;!F[Oe]&&Y<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ae+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),F[Oe]=!0,Y++)}}return V[J]==null?K?V[J]===null?new x("The "+te+" `"+ae+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new x("The "+te+" `"+ae+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:p(V,J,ee,te,ae)}var W=g.bind(null,!1);return W.isRequired=g.bind(null,!0),W}function _(p){function F(Y,g,W,K,V,J){var ee=Y[g],te=he(ee);if(te!==p){var ae=ue(ee);return new x("Invalid "+K+" `"+V+"` of type "+("`"+ae+"` supplied to `"+W+"`, expected ")+("`"+p+"`."),{expectedType:p})}return null}return L(F)}function R(){return L(s)}function O(p){function F(Y,g,W,K,V){if(typeof p!="function")return new x("Property `"+V+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var J=Y[g];if(!Array.isArray(J)){var ee=he(J);return new x("Invalid "+K+" `"+V+"` of type "+("`"+ee+"` supplied to `"+W+"`, expected an array."))}for(var te=0;te<J.length;te++){var ae=p(J,te,W,K,V+"["+te+"]",n);if(ae instanceof Error)return ae}return null}return L(F)}function U(){function p(F,Y,g,W,K){var V=F[Y];if(!o(V)){var J=he(V);return new x("Invalid "+W+" `"+K+"` of type "+("`"+J+"` supplied to `"+g+"`, expected a single ReactElement."))}return null}return L(p)}function S(){function p(F,Y,g,W,K){var V=F[Y];if(!e.isValidElementType(V)){var J=he(V);return new x("Invalid "+W+" `"+K+"` of type "+("`"+J+"` supplied to `"+g+"`, expected a single ReactElement type."))}return null}return L(p)}function w(p){function F(Y,g,W,K,V){if(!(Y[g]instanceof p)){var J=p.name||m,ee=we(Y[g]);return new x("Invalid "+K+" `"+V+"` of type "+("`"+ee+"` supplied to `"+W+"`, expected ")+("instance of `"+J+"`."))}return null}return L(F)}function Q(p){if(!Array.isArray(p))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function F(Y,g,W,K,V){for(var J=Y[g],ee=0;ee<p.length;ee++)if(y(J,p[ee]))return null;var te=JSON.stringify(p,function(ve,H){var Oe=ue(H);return Oe==="symbol"?String(H):H});return new x("Invalid "+K+" `"+V+"` of value `"+String(J)+"` "+("supplied to `"+W+"`, expected one of "+te+"."))}return L(F)}function fe(p){function F(Y,g,W,K,V){if(typeof p!="function")return new x("Property `"+V+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var J=Y[g],ee=he(J);if(ee!=="object")return new x("Invalid "+K+" `"+V+"` of type "+("`"+ee+"` supplied to `"+W+"`, expected an object."));for(var te in J)if(r(J,te)){var ae=p(J,te,W,K,V+"."+te,n);if(ae instanceof Error)return ae}return null}return L(F)}function re(p){if(!Array.isArray(p))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var F=0;F<p.length;F++){var Y=p[F];if(typeof Y!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+be(Y)+" at index "+F+"."),s}function g(W,K,V,J,ee){for(var te=[],ae=0;ae<p.length;ae++){var ve=p[ae],H=ve(W,K,V,J,ee,n);if(H==null)return null;H.data&&r(H.data,"expectedType")&&te.push(H.data.expectedType)}var Oe=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new x("Invalid "+J+" `"+ee+"` supplied to "+("`"+V+"`"+Oe+"."))}return L(g)}function G(){function p(F,Y,g,W,K){return z(F[Y])?null:new x("Invalid "+W+" `"+K+"` supplied to "+("`"+g+"`, expected a ReactNode."))}return L(p)}function j(p,F,Y,g,W){return new x((p||"React class")+": "+F+" type `"+Y+"."+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function B(p){function F(Y,g,W,K,V){var J=Y[g],ee=he(J);if(ee!=="object")return new x("Invalid "+K+" `"+V+"` of type `"+ee+"` "+("supplied to `"+W+"`, expected `object`."));for(var te in p){var ae=p[te];if(typeof ae!="function")return j(W,K,V,te,ue(ae));var ve=ae(J,te,W,K,V+"."+te,n);if(ve)return ve}return null}return L(F)}function $(p){function F(Y,g,W,K,V){var J=Y[g],ee=he(J);if(ee!=="object")return new x("Invalid "+K+" `"+V+"` of type `"+ee+"` "+("supplied to `"+W+"`, expected `object`."));var te=t({},Y[g],p);for(var ae in te){var ve=p[ae];if(r(p,ae)&&typeof ve!="function")return j(W,K,V,ae,ue(ve));if(!ve)return new x("Invalid "+K+" `"+V+"` key `"+ae+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(Y[g],null," ")+`
|
|
104
|
+
Valid keys: `+JSON.stringify(Object.keys(p),null," "));var H=ve(J,ae,W,K,V+"."+ae,n);if(H)return H}return null}return L(F)}function z(p){switch(typeof p){case"number":case"string":case"undefined":return!0;case"boolean":return!p;case"object":if(Array.isArray(p))return p.every(z);if(p===null||o(p))return!0;var F=f(p);if(F){var Y=F.call(p),g;if(F!==p.entries){for(;!(g=Y.next()).done;)if(!z(g.value))return!1}else for(;!(g=Y.next()).done;){var W=g.value;if(W&&!z(W[1]))return!1}}else return!1;return!0;default:return!1}}function Z(p,F){return p==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function he(p){var F=typeof p;return Array.isArray(p)?"array":p instanceof RegExp?"object":Z(F,p)?"symbol":F}function ue(p){if(typeof p>"u"||p===null)return""+p;var F=he(p);if(F==="object"){if(p instanceof Date)return"date";if(p instanceof RegExp)return"regexp"}return F}function be(p){var F=ue(p);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function we(p){return!p.constructor||!p.constructor.name?m:p.constructor.name}return h.checkPropTypes=a,h.resetWarningCache=a.resetWarningCache,h.PropTypes=h,h},aa}var ia,Ks;function xg(){if(Ks)return ia;Ks=1;var e=ci();function t(){}function n(){}return n.resetWarningCache=t,ia=function(){function r(s,o,l,c,d,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ia}var Zs;function Ag(){if(Zs)return Zn.exports;if(Zs=1,process.env.NODE_ENV!=="production"){var e=Ha(),t=!0;Zn.exports=yg()(e.isElement,t)}else Zn.exports=xg()();return Zn.exports}var _g=Ag();const ie=Ba(_g);function Sg(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Cg(e,t){e.classList?e.classList.add(t):Sg(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Js(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Ig(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Js(e.className,t):e.setAttribute("class",Js(e.className&&e.className.baseVal||"",t))}const eu={disabled:!1};var Ng=process.env.NODE_ENV!=="production"?ie.oneOfType([ie.number,ie.shape({enter:ie.number,exit:ie.number,appear:ie.number}).isRequired]):null,vg=process.env.NODE_ENV!=="production"?ie.oneOfType([ie.string,ie.shape({enter:ie.string,exit:ie.string,active:ie.string}),ie.shape({enter:ie.string,enterDone:ie.string,enterActive:ie.string,exit:ie.string,exitDone:ie.string,exitActive:ie.string})]):null;const Al=C.createContext(null);var _l=function(t){return t.scrollTop},Tn="unmounted",Lt="exited",Rt="entering",Wt="entered",Ma="exiting",ht=(function(e){yl(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var s=a,o=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?o?(l=Lt,i.appearStatus=Rt):l=Wt:r.unmountOnExit||r.mountOnEnter?l=Tn:l=Lt,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var s=a.in;return s&&i.status===Tn?{status:Lt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==Rt&&s!==Wt&&(i=Rt):(s===Rt||s===Wt)&&(i=Ma)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,s,o;return i=s=o=a,a!=null&&typeof a!="number"&&(i=a.exit,s=a.enter,o=a.appear!==void 0?a.appear:s),{exit:i,enter:s,appear:o}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Rt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:bn.findDOMNode(this);s&&_l(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Lt&&this.setState({status:Tn})},n.performEnter=function(a){var i=this,s=this.props.enter,o=this.context?this.context.isMounting:a,l=this.props.nodeRef?[o]:[bn.findDOMNode(this),o],c=l[0],d=l[1],f=this.getTimeouts(),m=o?f.appear:f.enter;if(!a&&!s||eu.disabled){this.safeSetState({status:Wt},function(){i.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Rt},function(){i.props.onEntering(c,d),i.onTransitionEnd(m,function(){i.safeSetState({status:Wt},function(){i.props.onEntered(c,d)})})})},n.performExit=function(){var a=this,i=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:bn.findDOMNode(this);if(!i||eu.disabled){this.safeSetState({status:Lt},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Ma},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:Lt},function(){a.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,i.nextCallback=null,a(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:bn.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===Tn)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=Tl(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return C.createElement(Al.Provider,{value:null},typeof s=="function"?s(a,o):C.cloneElement(C.Children.only(s),o))},t})(C.Component);ht.contextType=Al;ht.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:ie.shape({current:typeof Element>"u"?ie.any:function(e,t,n,r,a,i){var s=e[t];return ie.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:ie.oneOfType([ie.func.isRequired,ie.element.isRequired]).isRequired,in:ie.bool,mountOnEnter:ie.bool,unmountOnExit:ie.bool,appear:ie.bool,enter:ie.bool,exit:ie.bool,timeout:function(t){var n=Ng;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:ie.func,onEnter:ie.func,onEntering:ie.func,onEntered:ie.func,onExit:ie.func,onExiting:ie.func,onExited:ie.func}:{};function Vt(){}ht.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vt,onEntering:Vt,onEntered:Vt,onExit:Vt,onExiting:Vt,onExited:Vt};ht.UNMOUNTED=Tn;ht.EXITED=Lt;ht.ENTERING=Rt;ht.ENTERED=Wt;ht.EXITING=Ma;var wg=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Cg(t,r)})},sa=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Ig(t,r)})},di=(function(e){yl(t,e);function t(){for(var r,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(o,l){var c=r.resolveArguments(o,l),d=c[0],f=c[1];r.removeClasses(d,"exit"),r.addClass(d,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(o,l)},r.onEntering=function(o,l){var c=r.resolveArguments(o,l),d=c[0],f=c[1],m=f?"appear":"enter";r.addClass(d,m,"active"),r.props.onEntering&&r.props.onEntering(o,l)},r.onEntered=function(o,l){var c=r.resolveArguments(o,l),d=c[0],f=c[1],m=f?"appear":"enter";r.removeClasses(d,m),r.addClass(d,m,"done"),r.props.onEntered&&r.props.onEntered(o,l)},r.onExit=function(o){var l=r.resolveArguments(o),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(o)},r.onExiting=function(o){var l=r.resolveArguments(o),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(o)},r.onExited=function(o){var l=r.resolveArguments(o),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(o)},r.resolveArguments=function(o,l){return r.props.nodeRef?[r.props.nodeRef.current,o]:[o,l]},r.getClassNames=function(o){var l=r.props.classNames,c=typeof l=="string",d=c&&l?l+"-":"",f=c?""+d+o:l[o],m=c?f+"-active":l[o+"Active"],h=c?f+"-done":l[o+"Done"];return{baseClassName:f,activeClassName:m,doneClassName:h}},r}var n=t.prototype;return n.addClass=function(a,i,s){var o=this.getClassNames(i)[s+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&s==="done"&&c&&(o+=" "+c),s==="active"&&a&&_l(a),o&&(this.appliedClasses[i][s]=o,wg(a,o))},n.removeClasses=function(a,i){var s=this.appliedClasses[i],o=s.base,l=s.active,c=s.done;this.appliedClasses[i]={},o&&sa(a,o),l&&sa(a,l),c&&sa(a,c)},n.render=function(){var a=this.props;a.classNames;var i=Tl(a,["classNames"]);return C.createElement(ht,mr({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(C.Component);di.defaultProps={classNames:""};di.propTypes=process.env.NODE_ENV!=="production"?mr({},ht.propTypes,{classNames:vg,onEnter:ie.func,onEntering:ie.func,onEntered:ie.func,onExit:ie.func,onExiting:ie.func,onExited:ie.func}):{};const Og=C.forwardRef(({props:e},t)=>N.jsxs("div",{ref:t,className:`chatBox
|
|
92
105
|
fixed
|
|
93
106
|
z-[99999999]
|
|
94
107
|
md:bottom-[110px]
|
|
@@ -108,7 +121,7 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
|
|
|
108
121
|
shadow-lg
|
|
109
122
|
pb-2
|
|
110
123
|
bg-white
|
|
111
|
-
`,children:[
|
|
124
|
+
`,children:[N.jsx("div",{className:"bg-violet-700 py-2 text-white text-center flex justify-center items-center",children:"Assistant"}),N.jsx(gl,{appToken:e.appToken})]})),Lg=({isWidgetOpen:e,appToken:t})=>{const n=C.useRef(null);return N.jsx("div",{children:N.jsx(di,{nodeRef:n,in:e,timeout:200,classNames:"menuTransition",unmountOnExit:!0,children:N.jsx(Og,{ref:n,props:{appToken:t}})})})},Sl=()=>({hasFetchedSettings:!1,hasDisplayedCSS:!1}),Rg=()=>{const[e,t]=C.useState(Sl());return{appInternalContext:e,setAppInternalContext:t,setHasFetchedSettings:()=>{t(a=>({...a,hasFetchedSettings:!0}))},setHasDisplayedCss:()=>{t(a=>({...a,hasDisplayedCSS:!0}))}}},Cl=C.createContext({appInternalContext:Sl(),setAppInternalContext:()=>{},setHasFetchedSettings:()=>{}}),Pg=({displayMode:e,appToken:t})=>{const[n,r]=C.useState(!1),{appInternalContext:a}=C.useContext(Cl);return N.jsxs(N.Fragment,{children:[e===nn.LAUNCHER&&a.hasFetchedSettings&&N.jsxs(N.Fragment,{children:[N.jsx(Yl,{isWidgetOpen:n,setIsWidgetOpen:r}),N.jsx(Lg,{isWidgetOpen:n,appToken:t})]}),e===nn.CHATBOX&&a.hasFetchedSettings&&N.jsx("div",{className:"chatBox",children:N.jsx(gl,{appToken:t})})]})},Dg=e=>Object.values(nn).includes(e),kg=e=>Dg(e)?e:(console.warn(`Display mode not valid. Using ${nn.LAUNCHER} as default.`),nn.LAUNCHER),Mg=(e,t)=>{let n,r;return typeof window<"u"&&(r=window.localStorage.getItem(ig)),r&&e?.[r]!==void 0?n=e[r]:(n=e[t],n.isDefault=!0),n},Bg=(e,t)=>{const[n,r]=C.useState(e[t]),a=i=>{Object.keys(e).includes(i?.locale)?r(i):r(e[Ze.ENGLISH])};return C.useEffect(()=>{let i=Mg(e,t);i.locale!==t&&r(e[i.locale])},[]),{appCurrentLang:n,handleSetContextCurrentLang:a}},Fg=e=>Object.values(Ze).includes(e),Hg=e=>Fg(e)?e:(console.log(`Language ${e} not handled for now. Using ${Ze.ENGLISH}.`),Ze.ENGLISH),Ug=({agentId:e,appToken:t,onFetched:n})=>{const[r,a]=C.useState({}),i={companySettings:r,setCompanySettings:a},[s,o]=C.useState([]),[l,c]=C.useState(null),d={conversation:s,setConversation:o,discussionId:l,setDiscussionId:c};return C.useEffect(()=>{const f=Ln.getApiUrl(),m=Ln.getFetchConfig({httpVerb:"GET",contentType:"application/json"});fetch(`${f}/company/settings/${t}/${e}`,m).then(async h=>{const y=await h.json();a(y),o([{userType:"assistant",content:y.agent.text.initialText}]),n?.()}).catch(h=>console.log("error in settings fetch",h))},[t,e]),{contextCompanySettings:i,contextInitialChatbotStartingText:d}};function jg(e,t={},n,r){const{id:a,nonce:i,target:s,disableConstructable:o}=t,l=s,c=C.useRef(null),d=C.useRef(null);C.useEffect(()=>{if(!s)return;if(!e){n&&(console.log("No custom css found."),r?.());return}if(!o&&"adoptedStyleSheets"in l&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype)return c.current||(c.current=new CSSStyleSheet,l.adoptedStyleSheets=[...l.adoptedStyleSheets,c.current]),c.current.replaceSync(e),console.log("Loading custom css via stylesheet."),r?.(),()=>{const m=l.adoptedStyleSheets||[],h=m.indexOf(c.current);if(h>=0){const y=m.slice();y.splice(h,1),l.adoptedStyleSheets=y}c.current=null};if(!d.current){const m=document.createElement("style");m.type="text/css",a&&(m.id=a),i&&(m.nonce=i),(l instanceof Document&&l.head||l).appendChild(m),d.current=m}return d.current.textContent=e,console.log("Loading custom css via style tag."),r?.(),()=>{d.current?.parentNode?.removeChild(d.current),d.current=null}},[e,a,i,s,o])}function $g(e){const{manifest:t,origins:n}=zg(e);n.forEach(Dl),Ml(t),Pl(t)}function zg(e){const t=Yg(e),n=new Set,r=new Set,a=new Set,i=new Set;for(const{url:l,mode:c}of t)switch(Gg(c,l)){case"svg":r.add(l);break;case"lottie":a.add(l);break;case"spritesheet":i.add(l);break;case"image":n.add(l);break}const s={images:Array.from(n),svgs:Array.from(r),lotties:Array.from(a),sprites:Array.from(i)},o=Vg(s);return{manifest:s,origins:o}}function Yg(e){if(!e?.agent?.display)return[];const t=e.agent.display,n=[t.launcher,t.assistant,t.search].filter(Boolean),r=[];for(const a of n)a?.assetUrl&&r.push({url:a.assetUrl,mode:a.mode});return r}function Gg(e,t){if(e)switch(e){case"svg":return"svg";case"lottie":return"lottie";case"spritesheet":return"spritesheet";case"image":return"image";case"video":return"video"}try{const r=new URL(t,document.baseURI).pathname.toLowerCase();if(r.endsWith(".svg"))return"svg";if(r.endsWith(".lottie")||r.endsWith(".zip")||r.endsWith(".json"))return r.endsWith(".json"),"lottie";if(/\.(png|webp|jpg|jpeg|gif|avi,ef)$/.test(r))return"image";if(/\.(mp4|webm|mov|m4v|ogg)$/.test(r))return"video"}catch(n){console.log("error in normalizeKind:",n)}return"unknown"}function Vg(e){const t=new Set,n=r=>{if(r)try{const a=new URL(r,document.baseURI);t.add(`${a.protocol}//${a.host}`)}catch(a){console.log("error in uniqueOriginsFromManifest",a)}};return(e.images??[]).forEach(n),(e.svgs??[]).forEach(n),(e.lotties??[]).forEach(n),(e.sprites??[]).forEach(n),Array.from(t)}const qg=({children:e,appToken:t,agentId:n,appRoot:r})=>{var a=navigator.language;console.log("Brower language",a);const i=Hg(a),{appCurrentLang:s,handleSetContextCurrentLang:o}=Bg(vr,i),l={appCurrentLang:s,setAppCurrentLang:o},c=Rg(),{contextCompanySettings:d,contextInitialChatbotStartingText:f}=Ug({agentId:n,appToken:t,onFetched:c.setHasFetchedSettings});return $g(d.companySettings),jg(d.companySettings?.agent?.display?.CSSRules,{id:`${n}`,target:r},c.appInternalContext.hasFetchedSettings,c.setHasDisplayedCss),N.jsx(N.Fragment,{children:N.jsx(md,{locale:s?.locale,messages:s?.translatedText,children:N.jsx(ml.Provider,{value:l,children:N.jsx(Cl.Provider,{value:c,children:N.jsx(Rn.Provider,{value:d,children:N.jsx(El.Provider,{value:f,children:c.appInternalContext.hasDisplayedCSS&&e})})})})})})};var nn=(e=>(e.LAUNCHER="launcher",e.CHATBOX="chatbox",e))(nn||{});function Wg({appToken:e,displayMode:t="launcher",agentId:n,appRoot:r}){e||console.warn("appToken not defined in ai-client. Please see the documentation at URL_ERROR_IN_DOC");const a=kg(t);return console.log(`App boot in ${a} mode.`),N.jsx("div",{className:"chatSystemWidget app-root",id:"chatSystemWidget",children:N.jsx(qg,{appToken:e,agentId:n,appRoot:r,children:N.jsx(Pg,{displayMode:a,appToken:e})})})}const Xg=`*, ::before, ::after {
|
|
112
125
|
--tw-border-spacing-x: 0;
|
|
113
126
|
--tw-border-spacing-y: 0;
|
|
114
127
|
--tw-translate-x: 0;
|
|
@@ -1505,7 +1518,7 @@ video {
|
|
|
1505
1518
|
width: 400px;
|
|
1506
1519
|
}
|
|
1507
1520
|
}
|
|
1508
|
-
`,
|
|
1521
|
+
`,Qg=`
|
|
1509
1522
|
.chatBox {
|
|
1510
1523
|
overflow-x: hidden; /* Hide horizontal scrollbar */
|
|
1511
1524
|
}
|
|
@@ -1546,7 +1559,7 @@ video {
|
|
|
1546
1559
|
.chatBox hr {
|
|
1547
1560
|
margin: 1.5rem 0;
|
|
1548
1561
|
}
|
|
1549
|
-
|
|
1562
|
+
`,Kg=`/* React-Css Transitions */
|
|
1550
1563
|
.menuTransition-enter {
|
|
1551
1564
|
opacity: 0;
|
|
1552
1565
|
transform: scale(0.9) translateX(200px);
|
|
@@ -1609,7 +1622,7 @@ textarea::placeholder {
|
|
|
1609
1622
|
|
|
1610
1623
|
.messagesContainer {
|
|
1611
1624
|
outline:none
|
|
1612
|
-
}`,
|
|
1625
|
+
}`,Zg=`/* 1) Remove UA outline on the shadow host */
|
|
1613
1626
|
:host(:focus),
|
|
1614
1627
|
:host(:focus-visible) { outline: none; }
|
|
1615
1628
|
|
|
@@ -1621,8 +1634,8 @@ textarea::placeholder {
|
|
|
1621
1634
|
|
|
1622
1635
|
/* Ensure the wrapper itself doesn't get a default outline either */
|
|
1623
1636
|
.app-root:focus { outline: none; }
|
|
1624
|
-
`,
|
|
1625
|
-
${
|
|
1626
|
-
${
|
|
1627
|
-
${
|
|
1637
|
+
`,tu=`${Xg}
|
|
1638
|
+
${Qg}
|
|
1639
|
+
${Kg}
|
|
1640
|
+
${Zg}`;function Jg({cssHref:e,appToken:t,agentId:n,displayMode:r,...a}){const i=r==="launcher"?"body":"inline",s=C.useRef(null),o=C.useRef(null),[l,c]=C.useState(null),[d,f]=C.useState(null);return C.useEffect(()=>{if(typeof document>"u")return;const m=i==="inline"?s.current:document.body;if(!m)return;const h=document.createElement("div");m.appendChild(h),o.current=h;const y=h.attachShadow({mode:"open",delegatesFocus:!0});f(y);let x=!1;try{if("adoptedStyleSheets"in y&&!e){const _=new CSSStyleSheet;_.replaceSync(tu),y.adoptedStyleSheets=[...y.adoptedStyleSheets??[],_],x=!0}}catch{}if(!x)if(e){const _=document.createElement("link");_.rel="stylesheet",_.href=e,y.appendChild(_)}else{const _=document.createElement("style");_.textContent=tu,y.appendChild(_)}const L=document.createElement("div");return y.appendChild(L),c(L),()=>{c(null),h.remove(),o.current=null}},[i,e]),N.jsxs(N.Fragment,{children:[i==="inline"&&N.jsx("div",{ref:s})," ",l&&bn.createPortal(N.jsx(Wg,{...a,appToken:t,agentId:n,displayMode:r,appRoot:d}),l)]})}exports.App=Jg;
|
|
1628
1641
|
//# sourceMappingURL=index.cjs.map
|