@n8n/chat 0.1.0 → 0.1.2

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/chat.umd.js CHANGED
@@ -1,29 +1,18 @@
1
- (function(me,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(me=typeof globalThis<"u"?globalThis:me||self,u(me.N8nChat={},me.Vue))})(this,function(me,u){"use strict";const $l="";var dn=!1;function Je(t,e,n){return Array.isArray(t)?(t.length=Math.max(t.length,e),t.splice(e,1,n),n):(t[e]=n,n)}function vt(t,e){if(Array.isArray(t)){t.splice(e,1);return}delete t[e]}function xo(){return gn().__VUE_DEVTOOLS_GLOBAL_HOOK__}function gn(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Eo=typeof Proxy=="function",vo="devtools-plugin:setup",Ao="plugin:settings:set";let Se,At;function Co(){var t;return Se!==void 0||(typeof window<"u"&&window.performance?(Se=!0,At=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(Se=!0,At=global.perf_hooks.performance):Se=!1),Se}function So(){return Co()?At.now():Date.now()}class Do{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const c in e.settings){const i=e.settings[c];r[c]=i.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let s=Object.assign({},r);try{const c=localStorage.getItem(o),i=JSON.parse(c);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(c){try{localStorage.setItem(o,JSON.stringify(c))}catch{}s=c},now(){return So()}},n&&n.on(Ao,(c,i)=>{c===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(c,i)=>this.target?this.target.on[i]:(...a)=>{this.onQueue.push({method:i,args:a})}}),this.proxiedTarget=new Proxy({},{get:(c,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...a)=>(this.targetQueue.push({method:i,args:a,resolve:()=>{}}),this.fallbacks[i](...a)):(...a)=>new Promise(l=>{this.targetQueue.push({method:i,args:a,resolve:l})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function mn(t,e){const n=t,r=gn(),o=xo(),s=Eo&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))o.emit(vo,t,e);else{const c=s?new Do(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:c}),c&&e(c.proxiedTarget)}}/*!
2
- * pinia v2.1.6
3
- * (c) 2023 Eduardo San Martin Morote
4
- * @license MIT
5
- */let Be;const Fe=t=>Be=t,bn=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function be(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var se;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(se||(se={}));const Ke=typeof window<"u",Pe=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&Ke,_n=(()=>typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null})();function qo(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}function Ct(t,e,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){wn(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function kn(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Ye(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const Qe=typeof navigator=="object"?navigator:{userAgent:""},yn=(()=>/Macintosh/.test(Qe.userAgent)&&/AppleWebKit/.test(Qe.userAgent)&&!/Safari/.test(Qe.userAgent))(),wn=Ke?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!yn?To:"msSaveOrOpenBlob"in Qe?Ro:No:()=>{};function To(t,e="download",n){const r=document.createElement("a");r.download=e,r.rel="noopener",typeof t=="string"?(r.href=t,r.origin!==location.origin?kn(r.href)?Ct(t,e,n):(r.target="_blank",Ye(r)):Ye(r)):(r.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Ye(r)},0))}function Ro(t,e="download",n){if(typeof t=="string")if(kn(t))Ct(t,e,n);else{const r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Ye(r)})}else navigator.msSaveOrOpenBlob(qo(t,n),e)}function No(t,e,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Ct(t,e,n);const o=t.type==="application/octet-stream",s=/constructor/i.test(String(_n.HTMLElement))||"safari"in _n,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&s||yn)&&typeof FileReader<"u"){const i=new FileReader;i.onloadend=function(){let a=i.result;if(typeof a!="string")throw r=null,new Error("Wrong reader.result type");a=c?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=a:location.assign(a),r=null},i.readAsDataURL(t)}else{const i=URL.createObjectURL(t);r?r.location.assign(i):location.href=i,r=null,setTimeout(function(){URL.revokeObjectURL(i)},4e4)}}function j(t,e){const n="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,e):e==="error"?console.error(n):e==="warn"?console.warn(n):console.log(n)}function St(t){return"_a"in t&&"install"in t}function xn(){if(!("clipboard"in navigator))return j("Your browser doesn't support the Clipboard API","error"),!0}function En(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(j('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Lo(t){if(!xn())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),j("Global state copied to clipboard.")}catch(e){if(En(e))return;j("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function Oo(t){if(!xn())try{vn(t,JSON.parse(await navigator.clipboard.readText())),j("Global state pasted from clipboard.")}catch(e){if(En(e))return;j("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function Io(t){try{wn(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){j("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let pe;function Mo(){pe||(pe=document.createElement("input"),pe.type="file",pe.accept=".json");function t(){return new Promise((e,n)=>{pe.onchange=async()=>{const r=pe.files;if(!r)return e(null);const o=r.item(0);return e(o?{text:await o.text(),file:o}:null)},pe.oncancel=()=>e(null),pe.onerror=n,pe.click()})}return t}async function Bo(t){try{const n=await Mo()();if(!n)return;const{text:r,file:o}=n;vn(t,JSON.parse(r)),j(`Global state imported from "${o.name}".`)}catch(e){j("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function vn(t,e){for(const n in e){const r=t.state.value[n];r&&Object.assign(r,e[n])}}function ne(t){return{_custom:{display:t}}}const An="🍍 Pinia (root)",Dt="_root";function Fo(t){return St(t)?{id:Dt,label:An}:{id:t.$id,label:t.$id}}function Po(t){if(St(t)){const n=Array.from(t._s.keys()),r=t._s;return{state:n.map(s=>({editable:!0,key:s,value:t.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const c=r.get(s);return{editable:!1,key:s,value:c._getters.reduce((i,a)=>(i[a]=c[a],i),{})}})}}const e={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),e}function Uo(t){return t?Array.isArray(t)?t.reduce((e,n)=>(e.keys.push(n.key),e.operations.push(n.type),e.oldValue[n.key]=n.oldValue,e.newValue[n.key]=n.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:ne(t.type),key:ne(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function Vo(t){switch(t){case se.direct:return"mutation";case se.patchFunction:return"$patch";case se.patchObject:return"$patch";default:return"unknown"}}let De=!0;const Xe=[],_e="pinia:mutations",J="pinia",{assign:$o}=Object,et=t=>"🍍 "+t;function zo(t,e){mn({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Xe,app:t},n=>{typeof n.now!="function"&&j("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:_e,label:"Pinia 🍍",color:15064968}),n.addInspector({id:J,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Lo(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Oo(e),n.sendInspectorTree(J),n.sendInspectorState(J)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Io(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Bo(e),n.sendInspectorTree(J),n.sendInspectorState(J)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=e._s.get(r);o?typeof o.$reset!="function"?j(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),j(`Store "${r}" reset.`)):j(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,o)=>{const s=r.componentInstance&&r.componentInstance.proxy;if(s&&s._pStores){const c=r.componentInstance.proxy._pStores;Object.values(c).forEach(i=>{r.instanceData.state.push({type:et(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:u.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((a,l)=>(a[l]=i.$state[l],a),{})}),i._getters&&i._getters.length&&r.instanceData.state.push({type:et(i.$id),key:"getters",editable:!1,value:i._getters.reduce((a,l)=>{try{a[l]=i[l]}catch(f){a[l]=f}return a},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===t&&r.inspectorId===J){let o=[e];o=o.concat(Array.from(e._s.values())),r.rootNodes=(r.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):An.toLowerCase().includes(r.filter.toLowerCase())):o).map(Fo)}}),n.on.getInspectorState(r=>{if(r.app===t&&r.inspectorId===J){const o=r.nodeId===Dt?e:e._s.get(r.nodeId);if(!o)return;o&&(r.state=Po(o))}}),n.on.editInspectorState((r,o)=>{if(r.app===t&&r.inspectorId===J){const s=r.nodeId===Dt?e:e._s.get(r.nodeId);if(!s)return j(`store "${r.nodeId}" not found`,"error");const{path:c}=r;St(s)?c.unshift("state"):(c.length!==1||!s._customProperties.has(c[0])||c[0]in s.$state)&&c.unshift("$state"),De=!1,r.set(s,c,r.state.value),De=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),s=e._s.get(o);if(!s)return j(`store "${o}" not found`,"error");const{path:c}=r;if(c[0]!=="state")return j(`Invalid path for store "${o}":
6
- ${c}
7
- Only state can be modified.`);c[0]="$state",De=!1,r.set(s,c,r.state.value),De=!0}})})}function Go(t,e){Xe.includes(et(e.$id))||Xe.push(et(e.$id)),mn({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Xe,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;e.$onAction(({after:c,onError:i,name:a,args:l})=>{const f=Cn++;n.addTimelineEvent({layerId:_e,event:{time:r(),title:"đŸ›« "+a,subtitle:"start",data:{store:ne(e.$id),action:ne(a),args:l},groupId:f}}),c(p=>{de=void 0,n.addTimelineEvent({layerId:_e,event:{time:r(),title:"🛬 "+a,subtitle:"end",data:{store:ne(e.$id),action:ne(a),args:l,result:p},groupId:f}})}),i(p=>{de=void 0,n.addTimelineEvent({layerId:_e,event:{time:r(),logType:"error",title:"đŸ’„ "+a,subtitle:"end",data:{store:ne(e.$id),action:ne(a),args:l,error:p},groupId:f}})})},!0),e._customProperties.forEach(c=>{u.watch(()=>u.unref(e[c]),(i,a)=>{n.notifyComponentUpdate(),n.sendInspectorState(J),De&&n.addTimelineEvent({layerId:_e,event:{time:r(),title:"Change",subtitle:c,data:{newValue:i,oldValue:a},groupId:de}})},{deep:!0})}),e.$subscribe(({events:c,type:i},a)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(J),!De)return;const l={time:r(),title:Vo(i),data:$o({store:ne(e.$id)},Uo(c)),groupId:de};i===se.patchFunction?l.subtitle="—":i===se.patchObject?l.subtitle="đŸ§©":c&&!Array.isArray(c)&&(l.subtitle=c.type),c&&(l.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),n.addTimelineEvent({layerId:_e,event:l})},{detached:!0,flush:"sync"});const o=e._hotUpdate;e._hotUpdate=u.markRaw(c=>{o(c),n.addTimelineEvent({layerId:_e,event:{time:r(),title:"đŸ”„ "+e.$id,subtitle:"HMR update",data:{store:ne(e.$id),info:ne("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(J),n.sendInspectorState(J)});const{$dispose:s}=e;e.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(J),n.sendInspectorState(J),n.getSettings().logStoreChanges&&j(`Disposed "${e.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(J),n.sendInspectorState(J),n.getSettings().logStoreChanges&&j(`"${e.$id}" store installed 🆕`)})}let Cn=0,de;function Sn(t,e,n){const r=e.reduce((o,s)=>(o[s]=u.toRaw(t)[s],o),{});for(const o in r)t[o]=function(){const s=Cn,c=n?new Proxy(t,{get(...a){return de=s,Reflect.get(...a)},set(...a){return de=s,Reflect.set(...a)}}):t;de=s;const i=r[o].apply(c,arguments);return de=void 0,i}}function Ho({app:t,store:e,options:n}){if(e.$id.startsWith("__hot:"))return;e._isOptionsAPI=!!n.state,Sn(e,Object.keys(n.actions),e._isOptionsAPI);const r=e._hotUpdate;u.toRaw(e)._hotUpdate=function(o){r.apply(this,arguments),Sn(e,Object.keys(o._hmrPayload.actions),!!e._isOptionsAPI)},Go(t,e)}function jo(){const t=u.effectScope(!0),e=t.run(()=>u.ref({}));let n=[],r=[];const o=u.markRaw({install(s){Fe(o),o._a=s,s.provide(bn,o),s.config.globalProperties.$pinia=o,Pe&&zo(s,o),r.forEach(c=>n.push(c)),r=[]},use(s){return!this._a&&!dn?r.push(s):n.push(s),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return Pe&&typeof Proxy<"u"&&o.use(Ho),o}function Dn(t,e){for(const n in e){const r=e[n];if(!(n in t))continue;const o=t[n];be(o)&&be(r)&&!u.isRef(r)&&!u.isReactive(r)?t[n]=Dn(o,r):t[n]=r}return t}const qn=()=>{};function Tn(t,e,n,r=qn){t.push(e);const o=()=>{const s=t.indexOf(e);s>-1&&(t.splice(s,1),r())};return!n&&u.getCurrentScope()&&u.onScopeDispose(o),o}function qe(t,...e){t.slice().forEach(n=>{n(...e)})}const Zo=t=>t();function qt(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],o=t[n];be(o)&&be(r)&&t.hasOwnProperty(n)&&!u.isRef(r)&&!u.isReactive(r)?t[n]=qt(o,r):t[n]=r}return t}const Wo=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Jo(t){return!be(t)||!t.hasOwnProperty(Wo)}const{assign:X}=Object;function Rn(t){return!!(u.isRef(t)&&t.effect)}function Nn(t,e,n,r){const{state:o,actions:s,getters:c}=e,i=n.state.value[t];let a;function l(){!i&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[t]=o?o():{});const f=process.env.NODE_ENV!=="production"&&r?u.toRefs(u.ref(o?o():{}).value):u.toRefs(n.state.value[t]);return X(f,s,Object.keys(c||{}).reduce((p,h)=>(process.env.NODE_ENV!=="production"&&h in f&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${t}".`),p[h]=u.markRaw(u.computed(()=>{Fe(n);const d=n._s.get(t);return c[h].call(d,d)})),p),{}))}return a=Tt(t,l,e,n,r,!0),a}function Tt(t,e,n={},r,o,s){let c;const i=X({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const a={deep:!0};process.env.NODE_ENV!=="production"&&!dn&&(a.onTrigger=m=>{l?d=m:l==!1&&!v._hotUpdating&&(Array.isArray(d)?d.push(m):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let l,f,p=[],h=[],d;const y=r.state.value[t];!s&&!y&&(process.env.NODE_ENV==="production"||!o)&&(r.state.value[t]={});const E=u.ref({});let D;function C(m){let b;l=f=!1,process.env.NODE_ENV!=="production"&&(d=[]),typeof m=="function"?(m(r.state.value[t]),b={type:se.patchFunction,storeId:t,events:d}):(qt(r.state.value[t],m),b={type:se.patchObject,payload:m,storeId:t,events:d});const M=D=Symbol();u.nextTick().then(()=>{D===M&&(l=!0)}),f=!0,qe(p,b,r.state.value[t])}const w=s?function(){const{state:b}=n,M=b?b():{};this.$patch(G=>{X(G,M)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:qn;function S(){c.stop(),p=[],h=[],r._s.delete(t)}function T(m,b){return function(){Fe(r);const M=Array.from(arguments),G=[],_=[];function P(k){G.push(k)}function I(k){_.push(k)}qe(h,{args:M,name:m,store:v,after:P,onError:I});let g;try{g=b.apply(this&&this.$id===t?this:v,M)}catch(k){throw qe(_,k),k}return g instanceof Promise?g.then(k=>(qe(G,k),k)).catch(k=>(qe(_,k),Promise.reject(k))):(qe(G,g),g)}}const R=u.markRaw({actions:{},getters:{},state:[],hotState:E}),x={_p:r,$id:t,$onAction:Tn.bind(null,h),$patch:C,$reset:w,$subscribe(m,b={}){const M=Tn(p,m,b.detached,()=>G()),G=c.run(()=>u.watch(()=>r.state.value[t],_=>{(b.flush==="sync"?f:l)&&m({storeId:t,type:se.direct,events:d},_)},X({},a,b)));return M},$dispose:S},v=u.reactive(process.env.NODE_ENV!=="production"||Pe?X({_hmrPayload:R,_customProperties:u.markRaw(new Set)},x):x);r._s.set(t,v);const V=r._a&&r._a.runWithContext||Zo,$=r._e.run(()=>(c=u.effectScope(),V(()=>c.run(e))));for(const m in $){const b=$[m];if(u.isRef(b)&&!Rn(b)||u.isReactive(b))process.env.NODE_ENV!=="production"&&o?Je(E.value,m,u.toRef($,m)):s||(y&&Jo(b)&&(u.isRef(b)?b.value=y[m]:qt(b,y[m])),r.state.value[t][m]=b),process.env.NODE_ENV!=="production"&&R.state.push(m);else if(typeof b=="function"){const M=process.env.NODE_ENV!=="production"&&o?b:T(m,b);$[m]=M,process.env.NODE_ENV!=="production"&&(R.actions[m]=b),i.actions[m]=b}else process.env.NODE_ENV!=="production"&&Rn(b)&&(R.getters[m]=s?n.getters[m]:b,Ke&&($._getters||($._getters=u.markRaw([]))).push(m))}if(X(v,$),X(u.toRaw(v),$),Object.defineProperty(v,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?E.value:r.state.value[t],set:m=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");C(b=>{X(b,m)})}}),process.env.NODE_ENV!=="production"&&(v._hotUpdate=u.markRaw(m=>{v._hotUpdating=!0,m._hmrPayload.state.forEach(b=>{if(b in v.$state){const M=m.$state[b],G=v.$state[b];typeof M=="object"&&be(M)&&be(G)?Dn(M,G):m.$state[b]=G}Je(v,b,u.toRef(m.$state,b))}),Object.keys(v.$state).forEach(b=>{b in m.$state||vt(v,b)}),l=!1,f=!1,r.state.value[t]=u.toRef(m._hmrPayload,"hotState"),f=!0,u.nextTick().then(()=>{l=!0});for(const b in m._hmrPayload.actions){const M=m[b];Je(v,b,T(b,M))}for(const b in m._hmrPayload.getters){const M=m._hmrPayload.getters[b],G=s?u.computed(()=>(Fe(r),M.call(v,v))):M;Je(v,b,G)}Object.keys(v._hmrPayload.getters).forEach(b=>{b in m._hmrPayload.getters||vt(v,b)}),Object.keys(v._hmrPayload.actions).forEach(b=>{b in m._hmrPayload.actions||vt(v,b)}),v._hmrPayload=m._hmrPayload,v._getters=m._getters,v._hotUpdating=!1})),Pe){const m={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(b=>{Object.defineProperty(v,b,X({value:v[b]},m))})}return r._p.forEach(m=>{if(Pe){const b=c.run(()=>m({store:v,app:r._a,pinia:r,options:i}));Object.keys(b||{}).forEach(M=>v._customProperties.add(M)),X(v,b)}else X(v,c.run(()=>m({store:v,app:r._a,pinia:r,options:i})))}),process.env.NODE_ENV!=="production"&&v.$state&&typeof v.$state=="object"&&typeof v.$state.constructor=="function"&&!v.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
8
- state: () => new MyClass()
9
- Found in store "${v.$id}".`),y&&s&&n.hydrate&&n.hydrate(v.$state,y),l=!0,f=!0,v}function Ko(t,e,n){let r,o;const s=typeof e=="function";if(typeof t=="string")r=t,o=s?n:e;else if(o=t,r=t.id,process.env.NODE_ENV!=="production"&&typeof r!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function c(i,a){const l=u.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&Be&&Be._testing?null:i)||(l?u.inject(bn,null):null),i&&Fe(i),process.env.NODE_ENV!=="production"&&!Be)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
10
- const pinia = createPinia()
11
- app.use(pinia)
12
- This will fail in production.`);i=Be,i._s.has(r)||(s?Tt(r,e,o,i):Nn(r,o,i),process.env.NODE_ENV!=="production"&&(c._pinia=i));const f=i._s.get(r);if(process.env.NODE_ENV!=="production"&&a){const p="__hot:"+r,h=s?Tt(p,e,o,i,!0):Nn(p,X({},o),i,!0);a._hotUpdate(h),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&Ke){const p=u.getCurrentInstance();if(p&&p.proxy&&!a){const h=p.proxy,d="_pStores"in h?h._pStores:h._pStores={};d[r]=f}}return f}return c.$id=r,c}function Ln(t){{t=u.toRaw(t);const e={};for(const n in t){const r=t[n];(u.isRef(r)||u.isReactive(r))&&(e[n]=u.toRef(t,n))}return e}}const zl="",On=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Yo={},Qo={class:"chat-button"};function Xo(t,e){return u.openBlock(),u.createElementBlock("button",Qo,[u.renderSlot(t.$slots,"default")])}const es=On(Yo,[["render",Xo]]);function ts(){const t=new Map;function e(o,s){const c=t.get(o);c&&c.splice(c.indexOf(s)>>>0,1)}function n(o,s){let c=t.get(o);return c?c.push(s):c=[s],t.set(o,c),()=>e(o,s)}function r(o,s){const c=t.get(o);c&&c.slice().forEach(async i=>{await i(s)})}return{on:n,off:e,emit:r}}function ns(t){if(!document.querySelector(t)){const n=document.createElement("div");t.startsWith("#")&&(n.id=t.replace("#","")),t.startsWith(".")&&n.classList.add(t.replace(".","")),document.body.appendChild(n)}}const ke=ts(),rs={class:"chat-layout"},os={key:0,class:"chat-header"},ss={key:2,class:"chat-footer"},cs=u.defineComponent({__name:"Layout",setup(t){const e=u.ref(null);function n(){const r=e.value;r&&(r.scrollTop=r.scrollHeight)}return u.onMounted(()=>{ke.on("scrollToBottom",n),window.addEventListener("resize",n)}),u.onBeforeUnmount(()=>{ke.off("scrollToBottom",n),window.removeEventListener("resize",n)}),(r,o)=>(u.openBlock(),u.createElementBlock("main",rs,[r.$slots.header?(u.openBlock(),u.createElementBlock("div",os,[u.renderSlot(r.$slots,"header")])):u.createCommentVNode("",!0),r.$slots.default?(u.openBlock(),u.createElementBlock("div",{key:1,class:"chat-body",ref_key:"chatBodyRef",ref:e},[u.renderSlot(r.$slots,"default")],512)):u.createCommentVNode("",!0),r.$slots.footer?(u.openBlock(),u.createElementBlock("div",ss,[u.renderSlot(r.$slots,"footer")])):u.createCommentVNode("",!0)]))}}),Gl="",Ue={webhookUrl:"http://localhost:5678",webhookConfig:{method:"POST",headers:{}},target:"#n8n-chat",mode:"window",defaultLanguage:"en",initialMessages:["Hi there! 👋","My name is Nathan. How can I assist you today?"],i18n:{en:{title:"Hi there! 👋",subtitle:"Start a chat. We're here to help you 24/7.",footer:"",getStarted:"New Conversation",inputPlaceholder:"Type your question.."}},theme:{},poweredBy:!0},is="#n8n-chat",In="n8n-chat/sessionId",Mn=Symbol("ChatOptions");function Ve(){return{options:u.inject(Mn)}}function tt(){const{options:t}=Ve(),e=(t==null?void 0:t.defaultLanguage)??"en";function n(o){var s,c;return((c=(s=t==null?void 0:t.i18n)==null?void 0:s[e])==null?void 0:c[o])??o}function r(o){var s,c;return!!((c=(s=t==null?void 0:t.i18n)==null?void 0:s[e])!=null&&c[o])}return{t:n,te:r}}const as={class:"chat-get-started"},ls=u.defineComponent({__name:"GetStarted",setup(t){const{t:e}=tt();return(n,r)=>(u.openBlock(),u.createElementBlock("div",as,[u.createVNode(es,{onClick:r[0]||(r[0]=o=>n.$emit("click:button"))},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(e)("getStarted")),1)]),_:1})]))}}),jl="",Zl="",us={},fs={class:"chat-powered-by"},ps=u.createElementVNode("a",{href:"https://n8n.io?utm_source=n8n-external&utm_medium=widget-powered-by"},"n8n",-1);function hs(t,e){return u.openBlock(),u.createElementBlock("div",fs,[u.createTextVNode(" Powered by "),ps])}const ds=On(us,[["render",hs]]),gs={class:"chat-get-started-footer"},ms={key:0},bs=u.defineComponent({__name:"GetStartedFooter",setup(t){const{options:e}=Ve(),{t:n,te:r}=tt();return(o,s)=>(u.openBlock(),u.createElementBlock("div",gs,[u.unref(r)("footer")?(u.openBlock(),u.createElementBlock("div",ms,u.toDisplayString(u.unref(n)("footer")),1)):u.createCommentVNode("",!0),u.unref(e).poweredBy?(u.openBlock(),u.createBlock(ds,{key:1})):u.createCommentVNode("",!0)]))}}),Wl="";function Bn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _s(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var F={},Fn={Aacute:"Á",aacute:"ĂĄ",Abreve:"Ă",abreve:"ă",ac:"∟",acd:"∿",acE:"âˆŸÌł",Acirc:"Â",acirc:"Ăą",acute:"ÂŽ",Acy:"А",acy:"а",AElig:"Æ",aelig:"ĂŠ",af:"⁥",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"Ă ",alefsym:"â„”",aleph:"â„”",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"âšż",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⊀",angle:"∠",angmsdaa:"⊚",angmsdab:"⊩",angmsdac:"âŠȘ",angmsdad:"⊫",angmsdae:"⊏",angmsdaf:"⊭",angmsdag:"⊟",angmsdah:"⊯",angmsd:"∥",angrt:"∟",angrtvb:"⊟",angrtvbd:"⊝",angsph:"∹",angst:"Å",angzarr:"⍌",Aogon:"Ą",aogon:"ą",Aopf:"𝔾",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"â©°",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁥",approx:"≈",approxeq:"≊",Aring:"Å",aring:"Ă„",Ascr:"𝒜",ascr:"đ’¶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ĂŁ",Auml:"Ä",auml:"Ă€",awconint:"∳",awint:"⹑",backcong:"≌",backepsilon:"϶",backprime:"—",backsim:"∜",backsimeq:"⋍",Backslash:"∖",Barv:"â«§",barvee:"⊜",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎔",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∔",because:"∔",Because:"∔",bemptyv:"⊰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"ÎČ",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⹀",bigoplus:"⚁",bigotimes:"⹂",bigsqcup:"⹆",bigstar:"★",bigtriangledown:"â–œ",bigtriangleup:"△",biguplus:"⹄",bigvee:"⋁",bigwedge:"⋀",bkarow:"‍",blacklozenge:"â§«",blacksquare:"â–Ș",blacktriangle:"▮",blacktriangledown:"â–Ÿ",blacktriangleleft:"◂",blacktriangleright:"▾",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃄",bnequiv:"â‰Ąâƒ„",bNot:"â«­",bnot:"⌐",Bopf:"đ”č",bopf:"𝕓",bot:"⊄",bottom:"⊄",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"â•€",boxhD:"â•„",boxHD:"╩",boxhu:"┮",boxHu:"╧",boxhU:"╹",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┌",boxvH:"â•Ș",boxVh:"╫",boxVH:"╬",boxvl:"─",boxvL:"╡",boxVl:"╱",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"—",breve:"˘",Breve:"˘",brvbar:"Š",bscr:"đ’·",Bscr:"ℬ",bsemi:"⁏",bsim:"∜",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"‱",bullet:"‱",bump:"≎",bumpE:"âȘź",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"ž",Cedilla:"ž",cemptyv:"âŠČ",cent:"Âą",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"â†ș",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"Âź",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⚐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"âˆČ",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩎",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"â©­",Congruent:"≡",conint:"∟",Conint:"∯",ContourIntegral:"∟",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↔",cross:"✗",Cross:"⚯",Cscr:"𝒞",cscr:"𝒾",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"„",cudarrr:"—",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"“",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"âˆȘ",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"âˆȘ",curarr:"↷",curarrm:"‌",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"€",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"âˆČ",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℾ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"â«€",dashv:"⊣",dbkarow:"‏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"ĐŽ",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"‑",ddotseq:"â©·",deg:"°",Del:"∇",Delta:"Δ",delta:"ÎŽ",demptyv:"⊱",dfisht:"ℿ",Dfr:"𝔇",dfr:"𝔡",dHar:"â„„",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"ÂŽ",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♩",diams:"♩",die:"š",DifferentialD:"ⅆ",digamma:"ϝ",disin:"â‹Č",div:"Ă·",divide:"Ă·",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"đ”»",dopf:"𝕕",Dot:"š",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∞",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"š",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"â«€",DoubleLongLeftArrow:"⟾",DoubleLongLeftRightArrow:"âŸș",DoubleLongRightArrow:"âŸč",DoubleRightArrow:"⇒",DoubleRightTee:"⊹",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∄",DownArrowBar:"–",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇔",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"ℐ",DownLeftTeeVector:"℞",DownLeftVectorBar:"â„–",DownLeftVector:"↜",DownRightTeeVector:"℟",DownRightVectorBar:"â„—",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊀",drbkarow:"‐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"đ’č",DScy:"Ѕ",dscy:"ѕ",dsol:"â§¶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"â–Ÿ",duarr:"⇔",duhar:"ℯ",dwangle:"⊊",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"Ă©",easter:"⩟",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ĂȘ",ecir:"≖",ecolon:"≕",Ecy:"Đ­",ecy:"э",eDDot:"â©·",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔱",eg:"âȘš",Egrave:"È",egrave:"Ăš",egs:"âȘ–",egsdot:"âȘ˜",el:"âȘ™",Element:"∈",elinters:"⏧",ell:"ℓ",els:"âȘ•",elsdot:"âȘ—",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ê",eng:"Ƌ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"đ”Œ",eopf:"𝕖",epar:"⋕",eparsl:"â§Ł",eplus:"⩱",epsi:"Δ",Epsilon:"Ε",epsilon:"Δ",epsiv:"Ï”",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"âȘ–",eqslantless:"âȘ•",Equal:"â©”",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩞",eqvparsl:"â§„",erarr:"ℱ",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"Ă«",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Đ€",fcy:"ф",female:"♀",ffilig:"ïŹƒ",fflig:"ïŹ€",ffllig:"ïŹ„",Ffr:"𝔉",ffr:"𝔣",filig:"ïŹ",FilledSmallSquare:"â—Œ",FilledVerySmallSquare:"â–Ș",fjlig:"fj",flat:"♭",fllig:"ïŹ‚",fltns:"▱",fnof:"ƒ",Fopf:"đ”œ",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⚍",frac12:"œ",frac13:"⅓",frac14:"ÂŒ",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"Ÿ",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌱",fscr:"đ’»",Fscr:"ℱ",gacute:"Ç”",Gamma:"Γ",gamma:"Îł",Gammad:"Ϝ",gammad:"ϝ",gap:"âȘ†",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Äą",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"Đł",Gdot:"Ä ",gdot:"ÄĄ",ge:"≄",gE:"≧",gEl:"âȘŒ",gel:"⋛",geq:"≄",geqq:"≧",geqslant:"⩟",gescc:"âȘ©",ges:"⩟",gesdot:"âȘ€",gesdoto:"âȘ‚",gesdotol:"âȘ„",gesl:"⋛",gesles:"âȘ”",Gfr:"𝔊",gfr:"đ”€",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"âȘ„",gl:"≷",glE:"âȘ’",glj:"âȘ€",gnap:"âȘŠ",gnapprox:"âȘŠ",gne:"âȘˆ",gnE:"≩",gneq:"âȘˆ",gneqq:"≩",gnsim:"⋧",Gopf:"đ”Ÿ",gopf:"𝕘",grave:"`",GreaterEqual:"≄",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"âȘą",GreaterLess:"≷",GreaterSlantEqual:"⩟",GreaterTilde:"≳",Gscr:"𝒱",gscr:"ℊ",gsim:"≳",gsime:"âȘŽ",gsiml:"âȘ",gtcc:"âȘ§",gtcir:"â©ș",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⩕",gtquest:"⩌",gtrapprox:"âȘ†",gtrarr:"℞",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"âȘŒ",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩",gvnE:"≩",Hacek:"ˇ",hairsp:" ",half:"œ",hamilt:"ℋ",HARDcy:"ĐȘ",hardcy:"ъ",harrcir:"℈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ä€",hcirc:"Ä„",hearts:"♄",heartsuit:"♄",hellip:"
",hercon:"âŠč",hfr:"đ”„",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:" ",hkswarow:" ",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"â†Ș",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"đ’œ",Hscr:"ℋ",hslash:"ℏ",Hstrok:"ÄŠ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"Ă­",ic:"⁣",Icirc:"Î",icirc:"Ăź",Icy:"И",icy:"Đž",Idot:"İ",IEcy:"Е",iecy:"Đ”",iexcl:"ÂĄ",iff:"⇔",ifr:"𝔩",Ifr:"ℑ",Igrave:"Ì",igrave:"ĂŹ",ii:"ⅈ",iiiint:"⹌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"ÄČ",ijlig:"Äł",Imacr:"ÄȘ",imacr:"Ä«",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Æ”",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"âŠș",int:"∫",Int:"∏",integers:"â„€",Integral:"∫",intercal:"âŠș",Intersection:"⋂",intlarhk:"⹗",intprod:"⚌",InvisibleComma:"⁣",InvisibleTimes:"⁹",IOcy:"Ё",iocy:"ё",Iogon:"Äź",iogon:"ÄŻ",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"Îč",iprod:"⚌",iquest:"Âż",iscr:"đ’Ÿ",Iscr:"ℐ",isin:"∈",isindot:"â‹”",isinE:"â‹č",isins:"⋮",isinsv:"⋳",isinv:"∈",it:"⁹",Itilde:"Äš",itilde:"Ä©",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ĂŻ",Jcirc:"ÄŽ",jcirc:"Ä”",Jcy:"Й",jcy:"Đč",Jfr:"𝔍",jfr:"𝔧",jmath:"È·",Jopf:"𝕁",jopf:"𝕛",Jscr:"đ’„",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"Îș",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"К",kcy:"Đș",Kfr:"𝔎",kfr:"𝔹",kgreen:"Äž",KHcy:"Đ„",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒩",kscr:"𝓀",lAarr:"⇚",Lacute:"Äč",lacute:"Äș",laemptyv:"⊎",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟹",Lang:"âŸȘ",langd:"⩑",langle:"⟹",lap:"âȘ…",Laplacetrf:"ℒ",laquo:"«",larrb:"⇀",larrbfs:"‟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"”",larrhk:"↩",larrlp:"↫",larrpl:"â€č",larrsim:"ℳ",larrtl:"↱",latail:"’",lAtail:"‛",lat:"âȘ«",late:"âȘ­",lates:"âȘ­ïž€",lbarr:"‌",lBarr:"‎",lbbrk:"âČ",lbrace:"{",lbrack:"[",lbrke:"⩋",lbrksld:"⊏",lbrkslu:"⊍",Lcaron:"Äœ",lcaron:"ÄŸ",Lcedil:"Ä»",lcedil:"ÄŒ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"Đ»",ldca:"‶",ldquo:"“",ldquor:"„",ldrdhar:"â„§",ldrushar:"â„‹",ldsh:"â†Č",le:"≀",lE:"≩",LeftAngleBracket:"⟹",LeftArrowBar:"⇀",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↱",LeftCeiling:"⌈",LeftDoubleBracket:"⟩",LeftDownTeeVector:"℥",LeftDownVectorBar:"â„™",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↜",leftharpoonup:"↌",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"ℎ",LeftTeeArrow:"ↀ",LeftTee:"⊣",LeftTeeVector:"ℚ",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"âŠČ",LeftTriangleEqual:"⊮",LeftUpDownVector:"â„‘",LeftUpTeeVector:"â„ ",LeftUpVectorBar:"℘",LeftUpVector:"↿",LeftVectorBar:"â„’",LeftVector:"↌",lEg:"âȘ‹",leg:"⋚",leq:"≀",leqq:"≩",leqslant:"⩜",lescc:"âȘš",les:"⩜",lesdot:"⩿",lesdoto:"âȘ",lesdotor:"âȘƒ",lesg:"⋚",lesges:"âȘ“",lessapprox:"âȘ…",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"âȘ‹",LessEqualGreater:"⋚",LessFullEqual:"≩",LessGreater:"≶",lessgtr:"≶",LessLess:"âȘĄ",lesssim:"â‰Č",LessSlantEqual:"⩜",LessTilde:"â‰Č",lfisht:"ℌ",lfloor:"⌊",Lfr:"𝔏",lfr:"đ”©",lg:"≶",lgE:"âȘ‘",lHar:"ℹ",lhard:"↜",lharu:"↌",lharul:"â„Ș",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"â‰Ș",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"â„«",lltri:"â—ș",Lmidot:"Äż",lmidot:"ƀ",lmoustache:"⎰",lmoust:"⎰",lnap:"âȘ‰",lnapprox:"âȘ‰",lne:"âȘ‡",lnE:"≹",lneq:"âȘ‡",lneqq:"≹",lnsim:"⋩",loang:"⟬",loarr:"⇜",lobrk:"⟩",longleftarrow:"⟔",LongLeftArrow:"⟔",Longleftarrow:"⟾",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"âŸș",longmapsto:"⟌",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"âŸč",looparrowleft:"↫",looparrowright:"↬",lopar:"⩅",Lopf:"𝕃",lopf:"𝕝",loplus:"âš­",lotimes:"⚎",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"â§«",lpar:"(",lparlt:"⩓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"â„­",lrm:"‎",lrtri:"⊿",lsaquo:"â€č",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"â‰Č",lsime:"âȘ",lsimg:"âȘ",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ɓ",lstrok:"Ƃ",ltcc:"âȘŠ",ltcir:"â©č",lt:"<",LT:"<",Lt:"â‰Ș",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"â„¶",ltquest:"â©»",ltri:"◃",ltrie:"⊮",ltrif:"◂",ltrPar:"⩖",lurdshar:"ℊ",luruhar:"ℊ",lvertneqq:"≚",lvnE:"≚",macr:"ÂŻ",male:"♂",malt:"✠",maltese:"✠",Map:" ",map:"↩",mapsto:"↩",mapstodown:"↧",mapstoleft:"ↀ",mapstoup:"ↄ",marker:"▼",mcomma:"âš©",Mcy:"М",mcy:"ĐŒ",mdash:"—",mDDot:"âˆș",measuredangle:"∥",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"đ”Ș",mho:"℧",micro:"”",midast:"*",midcir:"â«°",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∞",minusdu:"âšȘ",MinusPlus:"∓",mlcp:"⫛",mldr:"
",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∟",Mu:"Μ",mu:"ÎŒ",multimap:"⊾",mumap:"⊾",nabla:"∇",Nacute:"ƃ",nacute:"Ƅ",nang:"∠⃒",nap:"≉",napE:"â©°Ìž",napid:"≋̞",napos:"Ɖ",napprox:"≉",natural:"♼",naturals:"ℕ",natur:"♼",nbsp:" ",nbump:"≎̞",nbumpe:"≏̞",ncap:"⩃",Ncaron:"Ƈ",ncaron:"ƈ",Ncedil:"ƅ",ncedil:"Ɔ",ncong:"≇",ncongdot:"â©­Ìž",ncup:"⩂",Ncy:"Н",ncy:"Đœ",ndash:"–",nearhk:" ",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̞",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≱",nesear:"‚",nesim:"≂̞",NestedGreaterGreater:"≫",NestedLessLess:"â‰Ș",NewLine:`
13
- `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"đ”«",ngE:"≧̞",nge:"≱",ngeq:"≱",ngeqq:"≧̞",ngeqslant:"⩟̞",nges:"⩟̞",nGg:"⋙̞",ngsim:"≔",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̞",nharr:"↼",nhArr:"⇎",nhpar:"â«Č",ni:"∋",nis:"⋌",nisd:"â‹ș",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:" ",nlE:"≊̞",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↼",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≊̞",nleqslant:"⩜̞",nles:"⩜̞",nless:"≼",nLl:"⋘̞",nlsim:"≮",nLt:"â‰Ș⃒",nlt:"≼",nltri:"â‹Ș",nltrie:"⋬",nLtv:"â‰ȘÌž",nmid:"∀",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫏",not:"ÂŹ",NotCongruent:"≱",NotCupCap:"≭",NotDoubleVerticalBar:"∊",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̞",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̞",NotGreaterGreater:"≫̞",NotGreaterLess:"â‰č",NotGreaterSlantEqual:"⩟̞",NotGreaterTilde:"≔",NotHumpDownHump:"≎̞",NotHumpEqual:"≏̞",notin:"∉",notindot:"⋔̞",notinE:"â‹čÌž",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̞",NotLeftTriangle:"â‹Ș",NotLeftTriangleEqual:"⋬",NotLess:"≼",NotLessEqual:"≰",NotLessGreater:"≾",NotLessLess:"â‰ȘÌž",NotLessSlantEqual:"⩜̞",NotLessTilde:"≮",NotNestedGreaterGreater:"âȘąÌž",NotNestedLessLess:"âȘĄÌž",notni:"∌",notniva:"∌",notnivb:"⋟",notnivc:"⋜",NotPrecedes:"⊀",NotPrecedesEqual:"âȘŻÌž",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̞",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̞",NotSquareSubsetEqual:"⋱",NotSquareSuperset:"⊐̞",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"âȘ°Ìž",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"â‰żÌž",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∀",nparallel:"∊",npar:"∊",nparsl:"⫝̸⃄",npart:"∂̞",npolint:"⹔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"âȘŻÌž",npre:"âȘŻÌž",nrarrc:"â€łÌž",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̞",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"âȘ°Ìž",Nscr:"đ’©",nscr:"𝓃",nshortmid:"∀",nshortparallel:"∊",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∀",nspar:"∊",nsqsube:"⋱",nsqsupe:"⋣",nsub:"⊄",nsubE:"â«…Ìž",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"â«…Ìž",nsucc:"⊁",nsucceq:"âȘ°Ìž",nsup:"⊅",nsupE:"⫆̞",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̞",ntgl:"â‰č",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≾",ntriangleleft:"â‹Ș",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"Μ",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊼",nVDash:"⊯",nvge:"≄⃒",nvgt:">⃒",nvHarr:" ",nvinfin:"⧞",nvlArr:" ",nvle:"≀⃒",nvlt:"<⃒",nvltrie:"⊮⃒",nvrArr:" ",nvrtrie:"⊔⃒",nvsim:"∌⃒",nwarhk:"‣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"‧",Oacute:"Ó",oacute:"Ăł",oast:"⊛",Ocirc:"Ô",ocirc:"ĂŽ",ocir:"⊚",Ocy:"О",ocy:"ĐŸ",odash:"⊝",Odblac:"Ɛ",odblac:"Ƒ",odiv:"âšž",odot:"⊙",odsold:"⊌",OElig:"ƒ",oelig:"Ɠ",ofcir:"⊿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ĂČ",ogt:"⧁",ohbar:"⊔",ohm:"Ω",oint:"∟",olarr:"â†ș",olcir:"⊟",olcross:"⊻",oline:"‟",olt:"⧀",Omacr:"Ì",omacr:"ƍ",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"Îż",omid:"⊶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⊷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"âŠč",oplus:"⊕",orarr:"↻",Or:"⩔",or:"√",ord:"⩝",order:"℮",orderof:"℮",ordf:"ÂȘ",ordm:"Âș",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"đ’Ș",oscr:"℮",Oslash:"Ø",oslash:"Ăž",osol:"⊘",Otilde:"Õ",otilde:"Ă”",otimesas:"âš¶",Otimes:"âš·",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌜",OverBar:"‟",OverBrace:"⏞",OverBracket:"⎮",OverParenthesis:"⏜",para:"¶",parallel:"∄",par:"∄",parsim:"⫳",parsl:"⫝̸",part:"∂",PartialD:"∂",Pcy:"П",pcy:"Đż",percnt:"%",period:".",permil:"‰",perp:"⊄",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Ί",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⚣",plusb:"⊞",pluscir:"âšą",plus:"+",plusdo:"∔",plusdu:"âš„",pluse:"â©Č",PlusMinus:"±",plusmn:"±",plussim:"⚊",plustwo:"âš§",pm:"±",Poincareplane:"ℌ",pointint:"⹕",popf:"𝕡",Popf:"ℙ",pound:"ÂŁ",prap:"âȘ·",Pr:"âȘ»",pr:"â‰ș",prcue:"≌",precapprox:"âȘ·",prec:"â‰ș",preccurlyeq:"≌",Precedes:"â‰ș",PrecedesEqual:"âȘŻ",PrecedesSlantEqual:"≌",PrecedesTilde:"≟",preceq:"âȘŻ",precnapprox:"âȘč",precneqq:"âȘ”",precnsim:"⋹",pre:"âȘŻ",prE:"âȘł",precsim:"≟",prime:"â€Č",Prime:"″",primes:"ℙ",prnap:"âȘč",prnE:"âȘ”",prnsim:"⋹",prod:"∏",Product:"∏",profalar:"⌼",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≟",prurel:"⊰",Pscr:"đ’«",pscr:"𝓅",Psi:"Κ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔼",qint:"⹌",qopf:"𝕱",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⹖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∜̱",Racute:"Ɣ",racute:"ƕ",radic:"√",raemptyv:"⊳",rang:"⟩",Rang:"⟫",rangd:"⩒",range:"⊄",rangle:"⟩",raquo:"»",rarrap:"â„”",rarrb:"⇄",rarrbfs:"†",rarrc:"″",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"„",rarrhk:"â†Ș",rarrlp:"↬",rarrpl:"â„…",rarrsim:"ℎ",Rarrtl:"‖",rarrtl:"↣",rarrw:"↝",ratail:"‚",rAtail:"“",ratio:"∶",rationals:"ℚ",rbarr:"‍",rBarr:"‏",RBarr:"‐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⩌",rbrksld:"⊎",rbrkslu:"⊐",Rcaron:"Ƙ",rcaron:"ƙ",Rcedil:"Ɩ",rcedil:"Ɨ",rceil:"⌉",rcub:"}",Rcy:"Đ ",rcy:"р",rdca:"‷",rdldhar:"â„©",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"Âź",REG:"Âź",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"ℯ",rfisht:"ℜ",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"â„€",rhard:"⇁",rharu:"⇀",rharul:"ℏ",Rho:"ÎĄ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇄",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"ℝ",RightDownVectorBar:"â„•",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↩",RightTee:"⊱",RightTeeVector:"â„›",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊔",RightUpDownVector:"ℏ",RightUpTeeVector:"ℜ",RightUpVectorBar:"â„”",RightUpVector:"↟",RightVectorBar:"â„“",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫟",roang:"⟭",roarr:"⇟",robrk:"⟧",ropar:"⩆",ropf:"𝕣",Ropf:"ℝ",roplus:"âšź",rotimes:"âš”",RoundImplies:"â„°",rpar:")",rpargt:"⩔",rppolint:"⹒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"â€ș",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"â–č",rtrie:"⊔",rtrif:"▾",rtriltri:"⧎",RuleDelayed:"â§Ž",ruluhar:"ℚ",rx:"℞",Sacute:"Ú",sacute:"ƛ",sbquo:"‚",scap:"âȘž",Scaron:"Ć ",scaron:"ĆĄ",Sc:"âȘŒ",sc:"≻",sccue:"≜",sce:"âȘ°",scE:"âȘŽ",Scedil:"ƞ",scedil:"ß",Scirc:"Ü",scirc:"Ɲ",scnap:"âȘș",scnE:"âȘ¶",scnsim:"⋩",scpolint:"⹓",scsim:"≿",Scy:"ĐĄ",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩊",searhk:" ",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"
",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌱",sharp:"♯",SHCHcy:"Đ©",shchcy:"щ",SHcy:"Đš",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∄",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"ÎŁ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∌",simdot:"â©Ș",sime:"≃",simeq:"≃",simg:"âȘž",simgE:"âȘ ",siml:"âȘ",simlE:"âȘŸ",simne:"≆",simplus:"⚀",simrarr:"â„Č",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"âšł",smeparsl:"â§€",smid:"∣",smile:"⌣",smt:"âȘȘ",smte:"âȘŹ",smtes:"âȘŹïž€",SOFTcy:"ĐŹ",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"đ•€",spades:"♠",spadesuit:"♠",spar:"∄",sqcap:"⊓",sqcaps:"⊓",sqcup:"⊔",sqcups:"⊔",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"â–Ș",squ:"□",squf:"â–Ș",srarr:"→",Sscr:"𝒼",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"Ï”",straightphi:"ϕ",strns:"ÂŻ",sub:"⊂",Sub:"⋐",subdot:"âȘœ",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"âȘż",subrarr:"â„č",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"âȘž",succ:"≻",succcurlyeq:"≜",Succeeds:"≻",SucceedsEqual:"âȘ°",SucceedsSlantEqual:"≜",SucceedsTilde:"≿",succeq:"âȘ°",succnapprox:"âȘș",succneqq:"âȘ¶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"â™Ș",sup1:"Âč",sup2:"ÂČ",sup3:"Âł",sup:"⊃",Sup:"⋑",supdot:"âȘŸ",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"â„»",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:" ",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"â€Ș",szlig:"ß",Tab:" ",target:"⌖",Tau:"΀",tau:"τ",tbrk:"⎮",Tcaron:"Ć€",tcaron:"Ć„",Tcedil:"Ćą",tcedil:"ĆŁ",Tcy:"Đą",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"đ”±",there4:"∎",therefore:"∎",Therefore:"∎",Theta:"Θ",theta:"Ξ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∌",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∌",THORN:"Þ",thorn:"ĂŸ",tilde:"˜",Tilde:"∌",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"âš±",timesb:"⊠",times:"×",timesd:"âš°",tint:"∭",toea:"‚",topbot:"⌶",topcir:"⫱",top:"⊀",Topf:"𝕋",topf:"đ•„",topfork:"⫚",tosa:"
",tprime:"‮",trade:"ℱ",TRADE:"ℱ",triangle:"â–”",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊮",triangleq:"≜",triangleright:"â–č",trianglerighteq:"⊔",tridot:"◬",trie:"≜",triminus:"âšș",TripleDot:"⃛",triplus:"âšč",trisb:"⧍",tritime:"âš»",trpezium:"⏱",Tscr:"𝒯",tscr:"𝓉",TScy:"ĐŠ",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"ĆŠ",tstrok:"Ƨ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"Ăș",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"℉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"ĆŹ",ubreve:"Ć­",Ucirc:"Û",ucirc:"Ă»",Ucy:"ĐŁ",ucy:"у",udarr:"⇅",Udblac:"ư",udblac:"Ʊ",udhar:"℟",ufisht:"℟",Ufr:"𝔘",ufr:"đ”Č",Ugrave:"Ù",ugrave:"Ăč",uHar:"℣",uharl:"↿",uharr:"↟",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◾",Umacr:"ĆȘ",umacr:"Ć«",uml:"š",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎔",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"ĆČ",uogon:"Ćł",Uopf:"𝕌",uopf:"𝕩",UpArrowBar:"‒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"℟",upharpoonleft:"↿",upharpoonright:"↟",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"΄",upsilon:"υ",UpTeeArrow:"ↄ",UpTee:"⊄",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ćź",uring:"ĆŻ",urtri:"â—č",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ćš",utilde:"Ć©",utri:"â–”",utrif:"▮",uuarr:"⇈",Uuml:"Ü",uuml:"ĂŒ",uwangle:"⊧",vangrt:"⩜",varepsilon:"Ï”",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊",varsubsetneqq:"⫋",varsupsetneq:"⊋",varsupsetneqq:"⫌",vartheta:"ϑ",vartriangleleft:"âŠČ",vartriangleright:"⊳",vBar:"⫚",Vbar:"â««",vBarv:"â«©",Vcy:"В",vcy:"ĐČ",vdash:"⊱",vDash:"⊹",Vdash:"⊩",VDash:"⊫",Vdashl:"⫊",veebar:"⊻",vee:"√",Vee:"⋁",veeeq:"≚",vellip:"⋼",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"âŠČ",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"đ’±",vscr:"𝓋",vsubnE:"⫋",vsubne:"⊊",vsupnE:"⫌",vsupne:"⊋",Vvdash:"âŠȘ",vzigzag:"⩚",Wcirc:"ĆŽ",wcirc:"Ć”",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔮",Wopf:"𝕎",wopf:"𝕹",wp:"℘",wr:"≀",wreath:"≀",Wscr:"đ’Č",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"â–œ",Xfr:"𝔛",xfr:"đ””",xharr:"⟷",xhArr:"âŸș",Xi:"Ξ",xi:"Ο",xlarr:"⟔",xlArr:"⟾",xmap:"⟌",xnis:"⋻",xodot:"⹀",Xopf:"𝕏",xopf:"đ•©",xoplus:"⚁",xotime:"⹂",xrarr:"⟶",xrArr:"âŸč",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⹆",xuplus:"⹄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"Ăœ",YAcy:"ĐŻ",yacy:"я",Ycirc:"ƶ",ycirc:"Ć·",Ycy:"Đ«",ycy:"ы",yen:"„",Yfr:"𝔜",yfr:"đ”¶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"đ•Ș",Yscr:"𝒮",yscr:"𝓎",YUcy:"Đź",yucy:"ю",yuml:"Ăż",Yuml:"Ćž",Zacute:"Ćč",zacute:"Ćș",Zcaron:"Ćœ",zcaron:"ĆŸ",Zcy:"З",zcy:"Đ·",Zdot:"Ć»",zdot:"ĆŒ",zeetrf:"ℹ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"đ”·",Zfr:"ℹ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"đ•«",Zopf:"â„€",Zscr:"đ’”",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Rt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Te={},Pn={};function ks(t){var e,n,r=Pn[t];if(r)return r;for(r=Pn[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)r[t.charCodeAt(e)]=t[e];return r}function nt(t,e,n){var r,o,s,c,i,a="";for(typeof e!="string"&&(n=e,e=nt.defaultChars),typeof n>"u"&&(n=!0),i=ks(e),r=0,o=t.length;r<o;r++){if(s=t.charCodeAt(r),n&&s===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(t.slice(r+1,r+3))){a+=t.slice(r,r+3),r+=2;continue}if(s<128){a+=i[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1<o&&(c=t.charCodeAt(r+1),c>=56320&&c<=57343)){a+=encodeURIComponent(t[r]+t[r+1]),r++;continue}a+="%EF%BF%BD";continue}a+=encodeURIComponent(t[r])}return a}nt.defaultChars=";/?:@&=+$,-_.!~*'()#",nt.componentChars="-_.!~*'()";var ys=nt,Un={};function ws(t){var e,n,r=Un[t];if(r)return r;for(r=Un[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),r.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function rt(t,e){var n;return typeof e!="string"&&(e=rt.defaultChars),n=ws(e),t.replace(/(%[a-f0-9]{2})+/gi,function(r){var o,s,c,i,a,l,f,p="";for(o=0,s=r.length;o<s;o+=3){if(c=parseInt(r.slice(o+1,o+3),16),c<128){p+=n[c];continue}if((c&224)===192&&o+3<s&&(i=parseInt(r.slice(o+4,o+6),16),(i&192)===128)){f=c<<6&1984|i&63,f<128?p+="ïżœïżœ":p+=String.fromCharCode(f),o+=3;continue}if((c&240)===224&&o+6<s&&(i=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16),(i&192)===128&&(a&192)===128)){f=c<<12&61440|i<<6&4032|a&63,f<2048||f>=55296&&f<=57343?p+="ïżœïżœïżœ":p+=String.fromCharCode(f),o+=6;continue}if((c&248)===240&&o+9<s&&(i=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16),l=parseInt(r.slice(o+10,o+12),16),(i&192)===128&&(a&192)===128&&(l&192)===128)){f=c<<18&1835008|i<<12&258048|a<<6&4032|l&63,f<65536||f>1114111?p+="ïżœïżœïżœïżœ":(f-=65536,p+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),o+=9;continue}p+="ïżœ"}return p})}rt.defaultChars=";/?:@&=+$,#",rt.componentChars="";var xs=rt,Es=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function ot(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var vs=/^([a-z0-9.+-]+:)/i,As=/:[0-9]*$/,Cs=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ss=["<",">",'"',"`"," ","\r",`
14
- `," "],Ds=["{","}","|","\\","^","`"].concat(Ss),qs=["'"].concat(Ds),Vn=["%","/","?",";","#"].concat(qs),$n=["/","?","#"],Ts=255,zn=/^[+a-z0-9A-Z_-]{0,63}$/,Rs=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Gn={javascript:!0,"javascript:":!0},Hn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ns(t,e){if(t&&t instanceof ot)return t;var n=new ot;return n.parse(t,e),n}ot.prototype.parse=function(t,e){var n,r,o,s,c,i=t;if(i=i.trim(),!e&&t.split("#").length===1){var a=Cs.exec(i);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}var l=vs.exec(i);if(l&&(l=l[0],o=l.toLowerCase(),this.protocol=l,i=i.substr(l.length)),(e||l||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(c=i.substr(0,2)==="//",c&&!(l&&Gn[l])&&(i=i.substr(2),this.slashes=!0)),!Gn[l]&&(c||l&&!Hn[l])){var f=-1;for(n=0;n<$n.length;n++)s=i.indexOf($n[n]),s!==-1&&(f===-1||s<f)&&(f=s);var p,h;for(f===-1?h=i.lastIndexOf("@"):h=i.lastIndexOf("@",f),h!==-1&&(p=i.slice(0,h),i=i.slice(h+1),this.auth=p),f=-1,n=0;n<Vn.length;n++)s=i.indexOf(Vn[n]),s!==-1&&(f===-1||s<f)&&(f=s);f===-1&&(f=i.length),i[f-1]===":"&&f--;var d=i.slice(0,f);i=i.slice(f),this.parseHost(d),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){var E=this.hostname.split(/\./);for(n=0,r=E.length;n<r;n++){var D=E[n];if(D&&!D.match(zn)){for(var C="",w=0,S=D.length;w<S;w++)D.charCodeAt(w)>127?C+="x":C+=D[w];if(!C.match(zn)){var T=E.slice(0,n),R=E.slice(n+1),x=D.match(Rs);x&&(T.push(x[1]),R.unshift(x[2])),R.length&&(i=R.join(".")+i),this.hostname=T.join(".");break}}}}this.hostname.length>Ts&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var v=i.indexOf("#");v!==-1&&(this.hash=i.substr(v),i=i.slice(0,v));var V=i.indexOf("?");return V!==-1&&(this.search=i.substr(V),i=i.slice(0,V)),i&&(this.pathname=i),Hn[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},ot.prototype.parseHost=function(t){var e=As.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Ls=Ns;Te.encode=ys,Te.decode=xs,Te.format=Es,Te.parse=Ls;var ye={},Nt,jn;function Zn(){return jn||(jn=1,Nt=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Nt}var Lt,Wn;function Jn(){return Wn||(Wn=1,Lt=/[\0-\x1F\x7F-\x9F]/),Lt}var Ot,Kn;function Os(){return Kn||(Kn=1,Ot=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Ot}var It,Yn;function Qn(){return Yn||(Yn=1,It=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),It}var Xn;function Is(){return Xn||(Xn=1,ye.Any=Zn(),ye.Cc=Jn(),ye.Cf=Os(),ye.P=Rt,ye.Z=Qn()),ye}(function(t){function e(_){return Object.prototype.toString.call(_)}function n(_){return e(_)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(_,P){return r.call(_,P)}function s(_){var P=Array.prototype.slice.call(arguments,1);return P.forEach(function(I){if(I){if(typeof I!="object")throw new TypeError(I+"must be object");Object.keys(I).forEach(function(g){_[g]=I[g]})}}),_}function c(_,P,I){return[].concat(_.slice(0,P),I,_.slice(P+1))}function i(_){return!(_>=55296&&_<=57343||_>=64976&&_<=65007||(_&65535)===65535||(_&65535)===65534||_>=0&&_<=8||_===11||_>=14&&_<=31||_>=127&&_<=159||_>1114111)}function a(_){if(_>65535){_-=65536;var P=55296+(_>>10),I=56320+(_&1023);return String.fromCharCode(P,I)}return String.fromCharCode(_)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,f=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(l.source+"|"+f.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=Fn;function y(_,P){var I=0;return o(d,P)?d[P]:P.charCodeAt(0)===35&&h.test(P)&&(I=P[1].toLowerCase()==="x"?parseInt(P.slice(2),16):parseInt(P.slice(1),10),i(I))?a(I):_}function E(_){return _.indexOf("\\")<0?_:_.replace(l,"$1")}function D(_){return _.indexOf("\\")<0&&_.indexOf("&")<0?_:_.replace(p,function(P,I,g){return I||y(P,g)})}var C=/[&<>"]/,w=/[&<>"]/g,S={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function T(_){return S[_]}function R(_){return C.test(_)?_.replace(w,T):_}var x=/[.?*+^$[\]\\(){}|-]/g;function v(_){return _.replace(x,"\\$&")}function V(_){switch(_){case 9:case 32:return!0}return!1}function $(_){if(_>=8192&&_<=8202)return!0;switch(_){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var m=Rt;function b(_){return m.test(_)}function M(_){switch(_){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function G(_){return _=_.trim().replace(/\s+/g," "),"áșž".toLowerCase()==="áčŸ"&&(_=_.replace(/áșž/g,"ß")),_.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Te,t.lib.ucmicro=Is(),t.assign=s,t.isString=n,t.has=o,t.unescapeMd=E,t.unescapeAll=D,t.isValidEntityCode=i,t.fromCodePoint=a,t.escapeHtml=R,t.arrayReplaceAt=c,t.isSpace=V,t.isWhiteSpace=$,t.isMdAsciiPunct=M,t.isPunctChar=b,t.escapeRE=v,t.normalizeReference=G})(F);var st={},Ms=function(e,n,r){var o,s,c,i,a=-1,l=e.posMax,f=e.pos;for(e.pos=n+1,o=1;e.pos<l;){if(c=e.src.charCodeAt(e.pos),c===93&&(o--,o===0)){s=!0;break}if(i=e.pos,e.md.inline.skipToken(e),c===91){if(i===e.pos-1)o++;else if(r)return e.pos=f,-1}}return s&&(a=e.pos),e.pos=f,a},er=F.unescapeAll,Bs=function(e,n,r){var o,s,c=0,i=n,a={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<r;){if(o=e.charCodeAt(n),o===10||o===60)return a;if(o===62)return a.pos=n+1,a.str=er(e.slice(i+1,n)),a.ok=!0,a;if(o===92&&n+1<r){n+=2;continue}n++}return a}for(s=0;n<r&&(o=e.charCodeAt(n),!(o===32||o<32||o===127));){if(o===92&&n+1<r){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(o===40&&(s++,s>32))return a;if(o===41){if(s===0)break;s--}n++}return i===n||s!==0||(a.str=er(e.slice(i,n)),a.lines=c,a.pos=n,a.ok=!0),a},Fs=F.unescapeAll,Ps=function(e,n,r){var o,s,c=0,i=n,a={ok:!1,pos:0,lines:0,str:""};if(n>=r||(s=e.charCodeAt(n),s!==34&&s!==39&&s!==40))return a;for(n++,s===40&&(s=41);n<r;){if(o=e.charCodeAt(n),o===s)return a.pos=n+1,a.lines=c,a.str=Fs(e.slice(i+1,n)),a.ok=!0,a;if(o===40&&s===41)return a;o===10?c++:o===92&&n+1<r&&(n++,e.charCodeAt(n)===10&&c++),n++}return a};st.parseLinkLabel=Ms,st.parseLinkDestination=Bs,st.parseLinkTitle=Ps;var Us=F.assign,Vs=F.unescapeAll,we=F.escapeHtml,ce={};ce.code_inline=function(t,e,n,r,o){var s=t[e];return"<code"+o.renderAttrs(s)+">"+we(t[e].content)+"</code>"},ce.code_block=function(t,e,n,r,o){var s=t[e];return"<pre"+o.renderAttrs(s)+"><code>"+we(t[e].content)+`</code></pre>
15
- `},ce.fence=function(t,e,n,r,o){var s=t[e],c=s.info?Vs(s.info).trim():"",i="",a="",l,f,p,h,d;return c&&(p=c.split(/(\s+)/g),i=p[0],a=p.slice(2).join("")),n.highlight?l=n.highlight(s.content,i,a)||we(s.content):l=we(s.content),l.indexOf("<pre")===0?l+`
16
- `:c?(f=s.attrIndex("class"),h=s.attrs?s.attrs.slice():[],f<0?h.push(["class",n.langPrefix+i]):(h[f]=h[f].slice(),h[f][1]+=" "+n.langPrefix+i),d={attrs:h},"<pre><code"+o.renderAttrs(d)+">"+l+`</code></pre>
1
+ (function(le,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],p):(le=typeof globalThis<"u"?globalThis:le||self,p(le.N8nChat={},le.Vue))})(this,function(le,p){"use strict";const ya="",wa="",Pt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Sr={},Dr={class:"chat-button"};function Tr(t,e){return p.openBlock(),p.createElementBlock("button",Dr,[p.renderSlot(t.$slots,"default")])}const Rr=Pt(Sr,[["render",Tr]]);function Nr(){const t=new Map;function e(o,s){const c=t.get(o);c&&c.splice(c.indexOf(s)>>>0,1)}function n(o,s){let c=t.get(o);return c?c.push(s):c=[s],t.set(o,c),()=>e(o,s)}function r(o,s){const c=t.get(o);c&&c.slice().forEach(async i=>{await i(s)})}return{on:n,off:e,emit:r}}function Lr(t){if(!document.querySelector(t)){const n=document.createElement("div");t.startsWith("#")&&(n.id=t.replace("#","")),t.startsWith(".")&&n.classList.add(t.replace(".","")),document.body.appendChild(n)}}const ue=Nr(),Br={class:"chat-layout"},Mr={key:0,class:"chat-header"},Ir={key:2,class:"chat-footer"},Fr=p.defineComponent({__name:"Layout",setup(t){const e=p.ref(null);function n(){const r=e.value;r&&(r.scrollTop=r.scrollHeight)}return p.onMounted(()=>{ue.on("scrollToBottom",n),window.addEventListener("resize",n)}),p.onBeforeUnmount(()=>{ue.off("scrollToBottom",n),window.removeEventListener("resize",n)}),(r,o)=>(p.openBlock(),p.createElementBlock("main",Br,[r.$slots.header?(p.openBlock(),p.createElementBlock("div",Mr,[p.renderSlot(r.$slots,"header")])):p.createCommentVNode("",!0),r.$slots.default?(p.openBlock(),p.createElementBlock("div",{key:1,class:"chat-body",ref_key:"chatBodyRef",ref:e},[p.renderSlot(r.$slots,"default")],512)):p.createCommentVNode("",!0),r.$slots.footer?(p.openBlock(),p.createElementBlock("div",Ir,[p.renderSlot(r.$slots,"footer")])):p.createCommentVNode("",!0)]))}}),va="",Ae={webhookUrl:"http://localhost:5678",webhookConfig:{method:"POST",headers:{}},target:"#n8n-chat",mode:"window",defaultLanguage:"en",initialMessages:["Hi there! 👋","My name is Nathan. How can I assist you today?"],i18n:{en:{title:"Hi there! 👋",subtitle:"Start a chat. We're here to help you 24/7.",footer:"",getStarted:"New Conversation",inputPlaceholder:"Type your question.."}},theme:{}},Or="#n8n-chat",zt="n8n-chat/sessionId",Ut="Chat",Vt="ChatOptions";function nt(){return p.inject(Ut)}function rt(){return{options:p.inject(Vt)}}function Le(){const{options:t}=rt(),e=(t==null?void 0:t.defaultLanguage)??"en";function n(o){var s,c;return((c=(s=t==null?void 0:t.i18n)==null?void 0:s[e])==null?void 0:c[o])??o}function r(o){var s,c;return!!((c=(s=t==null?void 0:t.i18n)==null?void 0:s[e])!=null&&c[o])}return{t:n,te:r}}const Pr={class:"chat-get-started"},zr=p.defineComponent({__name:"GetStarted",setup(t){const{t:e}=Le();return(n,r)=>(p.openBlock(),p.createElementBlock("div",Pr,[p.createVNode(Rr,{onClick:r[0]||(r[0]=o=>n.$emit("click:button"))},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(e)("getStarted")),1)]),_:1})]))}}),Aa="",Ca="",Ur={},Vr={class:"chat-powered-by"},$r=p.createElementVNode("a",{href:"https://n8n.io?utm_source=n8n-external&utm_medium=widget-powered-by"},"n8n",-1);function Gr(t,e){return p.openBlock(),p.createElementBlock("div",Vr,[p.createTextVNode(" Powered by "),$r])}const Hr=Pt(Ur,[["render",Gr]]),jr={class:"chat-get-started-footer"},Zr={key:0},Wr=p.defineComponent({__name:"GetStartedFooter",setup(t){rt();const{t:e,te:n}=Le();return(r,o)=>(p.openBlock(),p.createElementBlock("div",jr,[p.unref(n)("footer")?(p.openBlock(),p.createElementBlock("div",Zr,p.toDisplayString(p.unref(e)("footer")),1)):p.createCommentVNode("",!0),p.createVNode(Hr)]))}}),qa="";function $t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Kr(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var I={},Gt={Aacute:"Á",aacute:"ĂĄ",Abreve:"Ă",abreve:"ă",ac:"∟",acd:"∿",acE:"âˆŸÌł",Acirc:"Â",acirc:"Ăą",acute:"ÂŽ",Acy:"А",acy:"а",AElig:"Æ",aelig:"ĂŠ",af:"⁥",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"Ă ",alefsym:"â„”",aleph:"â„”",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"âšż",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⊀",angle:"∠",angmsdaa:"⊚",angmsdab:"⊩",angmsdac:"âŠȘ",angmsdad:"⊫",angmsdae:"⊏",angmsdaf:"⊭",angmsdag:"⊟",angmsdah:"⊯",angmsd:"∥",angrt:"∟",angrtvb:"⊟",angrtvbd:"⊝",angsph:"∹",angst:"Å",angzarr:"⍌",Aogon:"Ą",aogon:"ą",Aopf:"𝔾",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"â©°",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁥",approx:"≈",approxeq:"≊",Aring:"Å",aring:"Ă„",Ascr:"𝒜",ascr:"đ’¶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ĂŁ",Auml:"Ä",auml:"Ă€",awconint:"∳",awint:"⹑",backcong:"≌",backepsilon:"϶",backprime:"—",backsim:"∜",backsimeq:"⋍",Backslash:"∖",Barv:"â«§",barvee:"⊜",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎔",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∔",because:"∔",Because:"∔",bemptyv:"⊰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"ÎČ",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⹀",bigoplus:"⚁",bigotimes:"⹂",bigsqcup:"⹆",bigstar:"★",bigtriangledown:"â–œ",bigtriangleup:"△",biguplus:"⹄",bigvee:"⋁",bigwedge:"⋀",bkarow:"‍",blacklozenge:"â§«",blacksquare:"â–Ș",blacktriangle:"▮",blacktriangledown:"â–Ÿ",blacktriangleleft:"◂",blacktriangleright:"▾",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃄",bnequiv:"â‰Ąâƒ„",bNot:"â«­",bnot:"⌐",Bopf:"đ”č",bopf:"𝕓",bot:"⊄",bottom:"⊄",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"â•€",boxhD:"â•„",boxHD:"╩",boxhu:"┮",boxHu:"╧",boxhU:"╹",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┌",boxvH:"â•Ș",boxVh:"╫",boxVH:"╬",boxvl:"─",boxvL:"╡",boxVl:"╱",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"—",breve:"˘",Breve:"˘",brvbar:"Š",bscr:"đ’·",Bscr:"ℬ",bsemi:"⁏",bsim:"∜",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"‱",bullet:"‱",bump:"≎",bumpE:"âȘź",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"ž",Cedilla:"ž",cemptyv:"âŠČ",cent:"Âą",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"â†ș",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"Âź",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⚐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"âˆČ",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩎",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"â©­",Congruent:"≡",conint:"∟",Conint:"∯",ContourIntegral:"∟",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↔",cross:"✗",Cross:"⚯",Cscr:"𝒞",cscr:"𝒾",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"„",cudarrr:"—",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"“",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"âˆȘ",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"âˆȘ",curarr:"↷",curarrm:"‌",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"€",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"âˆČ",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℾ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"â«€",dashv:"⊣",dbkarow:"‏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"ĐŽ",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"‑",ddotseq:"â©·",deg:"°",Del:"∇",Delta:"Δ",delta:"ÎŽ",demptyv:"⊱",dfisht:"ℿ",Dfr:"𝔇",dfr:"𝔡",dHar:"â„„",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"ÂŽ",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♩",diams:"♩",die:"š",DifferentialD:"ⅆ",digamma:"ϝ",disin:"â‹Č",div:"Ă·",divide:"Ă·",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"đ”»",dopf:"𝕕",Dot:"š",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∞",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"š",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"â«€",DoubleLongLeftArrow:"⟾",DoubleLongLeftRightArrow:"âŸș",DoubleLongRightArrow:"âŸč",DoubleRightArrow:"⇒",DoubleRightTee:"⊹",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∄",DownArrowBar:"–",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇔",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"ℐ",DownLeftTeeVector:"℞",DownLeftVectorBar:"â„–",DownLeftVector:"↜",DownRightTeeVector:"℟",DownRightVectorBar:"â„—",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊀",drbkarow:"‐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"đ’č",DScy:"Ѕ",dscy:"ѕ",dsol:"â§¶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"â–Ÿ",duarr:"⇔",duhar:"ℯ",dwangle:"⊊",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"Ă©",easter:"⩟",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ĂȘ",ecir:"≖",ecolon:"≕",Ecy:"Đ­",ecy:"э",eDDot:"â©·",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔱",eg:"âȘš",Egrave:"È",egrave:"Ăš",egs:"âȘ–",egsdot:"âȘ˜",el:"âȘ™",Element:"∈",elinters:"⏧",ell:"ℓ",els:"âȘ•",elsdot:"âȘ—",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ê",eng:"Ƌ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"đ”Œ",eopf:"𝕖",epar:"⋕",eparsl:"â§Ł",eplus:"⩱",epsi:"Δ",Epsilon:"Ε",epsilon:"Δ",epsiv:"Ï”",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"âȘ–",eqslantless:"âȘ•",Equal:"â©”",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩞",eqvparsl:"â§„",erarr:"ℱ",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"Ă«",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Đ€",fcy:"ф",female:"♀",ffilig:"ïŹƒ",fflig:"ïŹ€",ffllig:"ïŹ„",Ffr:"𝔉",ffr:"𝔣",filig:"ïŹ",FilledSmallSquare:"â—Œ",FilledVerySmallSquare:"â–Ș",fjlig:"fj",flat:"♭",fllig:"ïŹ‚",fltns:"▱",fnof:"ƒ",Fopf:"đ”œ",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⚍",frac12:"œ",frac13:"⅓",frac14:"ÂŒ",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"Ÿ",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌱",fscr:"đ’»",Fscr:"ℱ",gacute:"Ç”",Gamma:"Γ",gamma:"Îł",Gammad:"Ϝ",gammad:"ϝ",gap:"âȘ†",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Äą",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"Đł",Gdot:"Ä ",gdot:"ÄĄ",ge:"≄",gE:"≧",gEl:"âȘŒ",gel:"⋛",geq:"≄",geqq:"≧",geqslant:"⩟",gescc:"âȘ©",ges:"⩟",gesdot:"âȘ€",gesdoto:"âȘ‚",gesdotol:"âȘ„",gesl:"⋛",gesles:"âȘ”",Gfr:"𝔊",gfr:"đ”€",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"âȘ„",gl:"≷",glE:"âȘ’",glj:"âȘ€",gnap:"âȘŠ",gnapprox:"âȘŠ",gne:"âȘˆ",gnE:"≩",gneq:"âȘˆ",gneqq:"≩",gnsim:"⋧",Gopf:"đ”Ÿ",gopf:"𝕘",grave:"`",GreaterEqual:"≄",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"âȘą",GreaterLess:"≷",GreaterSlantEqual:"⩟",GreaterTilde:"≳",Gscr:"𝒱",gscr:"ℊ",gsim:"≳",gsime:"âȘŽ",gsiml:"âȘ",gtcc:"âȘ§",gtcir:"â©ș",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⩕",gtquest:"⩌",gtrapprox:"âȘ†",gtrarr:"℞",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"âȘŒ",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩",gvnE:"≩",Hacek:"ˇ",hairsp:" ",half:"œ",hamilt:"ℋ",HARDcy:"ĐȘ",hardcy:"ъ",harrcir:"℈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ä€",hcirc:"Ä„",hearts:"♄",heartsuit:"♄",hellip:"
",hercon:"âŠč",hfr:"đ”„",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:" ",hkswarow:" ",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"â†Ș",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"đ’œ",Hscr:"ℋ",hslash:"ℏ",Hstrok:"ÄŠ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"Ă­",ic:"⁣",Icirc:"Î",icirc:"Ăź",Icy:"И",icy:"Đž",Idot:"İ",IEcy:"Е",iecy:"Đ”",iexcl:"ÂĄ",iff:"⇔",ifr:"𝔩",Ifr:"ℑ",Igrave:"Ì",igrave:"ĂŹ",ii:"ⅈ",iiiint:"⹌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"ÄČ",ijlig:"Äł",Imacr:"ÄȘ",imacr:"Ä«",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Æ”",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"âŠș",int:"∫",Int:"∏",integers:"â„€",Integral:"∫",intercal:"âŠș",Intersection:"⋂",intlarhk:"⹗",intprod:"⚌",InvisibleComma:"⁣",InvisibleTimes:"⁹",IOcy:"Ё",iocy:"ё",Iogon:"Äź",iogon:"ÄŻ",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"Îč",iprod:"⚌",iquest:"Âż",iscr:"đ’Ÿ",Iscr:"ℐ",isin:"∈",isindot:"â‹”",isinE:"â‹č",isins:"⋮",isinsv:"⋳",isinv:"∈",it:"⁹",Itilde:"Äš",itilde:"Ä©",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ĂŻ",Jcirc:"ÄŽ",jcirc:"Ä”",Jcy:"Й",jcy:"Đč",Jfr:"𝔍",jfr:"𝔧",jmath:"È·",Jopf:"𝕁",jopf:"𝕛",Jscr:"đ’„",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"Îș",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"К",kcy:"Đș",Kfr:"𝔎",kfr:"𝔹",kgreen:"Äž",KHcy:"Đ„",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒩",kscr:"𝓀",lAarr:"⇚",Lacute:"Äč",lacute:"Äș",laemptyv:"⊎",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟹",Lang:"âŸȘ",langd:"⩑",langle:"⟹",lap:"âȘ…",Laplacetrf:"ℒ",laquo:"«",larrb:"⇀",larrbfs:"‟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"”",larrhk:"↩",larrlp:"↫",larrpl:"â€č",larrsim:"ℳ",larrtl:"↱",latail:"’",lAtail:"‛",lat:"âȘ«",late:"âȘ­",lates:"âȘ­ïž€",lbarr:"‌",lBarr:"‎",lbbrk:"âČ",lbrace:"{",lbrack:"[",lbrke:"⩋",lbrksld:"⊏",lbrkslu:"⊍",Lcaron:"Äœ",lcaron:"ÄŸ",Lcedil:"Ä»",lcedil:"ÄŒ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"Đ»",ldca:"‶",ldquo:"“",ldquor:"„",ldrdhar:"â„§",ldrushar:"â„‹",ldsh:"â†Č",le:"≀",lE:"≩",LeftAngleBracket:"⟹",LeftArrowBar:"⇀",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↱",LeftCeiling:"⌈",LeftDoubleBracket:"⟩",LeftDownTeeVector:"℥",LeftDownVectorBar:"â„™",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↜",leftharpoonup:"↌",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"ℎ",LeftTeeArrow:"ↀ",LeftTee:"⊣",LeftTeeVector:"ℚ",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"âŠČ",LeftTriangleEqual:"⊮",LeftUpDownVector:"â„‘",LeftUpTeeVector:"â„ ",LeftUpVectorBar:"℘",LeftUpVector:"↿",LeftVectorBar:"â„’",LeftVector:"↌",lEg:"âȘ‹",leg:"⋚",leq:"≀",leqq:"≩",leqslant:"⩜",lescc:"âȘš",les:"⩜",lesdot:"⩿",lesdoto:"âȘ",lesdotor:"âȘƒ",lesg:"⋚",lesges:"âȘ“",lessapprox:"âȘ…",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"âȘ‹",LessEqualGreater:"⋚",LessFullEqual:"≩",LessGreater:"≶",lessgtr:"≶",LessLess:"âȘĄ",lesssim:"â‰Č",LessSlantEqual:"⩜",LessTilde:"â‰Č",lfisht:"ℌ",lfloor:"⌊",Lfr:"𝔏",lfr:"đ”©",lg:"≶",lgE:"âȘ‘",lHar:"ℹ",lhard:"↜",lharu:"↌",lharul:"â„Ș",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"â‰Ș",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"â„«",lltri:"â—ș",Lmidot:"Äż",lmidot:"ƀ",lmoustache:"⎰",lmoust:"⎰",lnap:"âȘ‰",lnapprox:"âȘ‰",lne:"âȘ‡",lnE:"≹",lneq:"âȘ‡",lneqq:"≹",lnsim:"⋩",loang:"⟬",loarr:"⇜",lobrk:"⟩",longleftarrow:"⟔",LongLeftArrow:"⟔",Longleftarrow:"⟾",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"âŸș",longmapsto:"⟌",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"âŸč",looparrowleft:"↫",looparrowright:"↬",lopar:"⩅",Lopf:"𝕃",lopf:"𝕝",loplus:"âš­",lotimes:"⚎",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"â§«",lpar:"(",lparlt:"⩓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"â„­",lrm:"‎",lrtri:"⊿",lsaquo:"â€č",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"â‰Č",lsime:"âȘ",lsimg:"âȘ",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ɓ",lstrok:"Ƃ",ltcc:"âȘŠ",ltcir:"â©č",lt:"<",LT:"<",Lt:"â‰Ș",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"â„¶",ltquest:"â©»",ltri:"◃",ltrie:"⊮",ltrif:"◂",ltrPar:"⩖",lurdshar:"ℊ",luruhar:"ℊ",lvertneqq:"≚",lvnE:"≚",macr:"ÂŻ",male:"♂",malt:"✠",maltese:"✠",Map:" ",map:"↩",mapsto:"↩",mapstodown:"↧",mapstoleft:"ↀ",mapstoup:"ↄ",marker:"▼",mcomma:"âš©",Mcy:"М",mcy:"ĐŒ",mdash:"—",mDDot:"âˆș",measuredangle:"∥",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"đ”Ș",mho:"℧",micro:"”",midast:"*",midcir:"â«°",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∞",minusdu:"âšȘ",MinusPlus:"∓",mlcp:"⫛",mldr:"
",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∟",Mu:"Μ",mu:"ÎŒ",multimap:"⊾",mumap:"⊾",nabla:"∇",Nacute:"ƃ",nacute:"Ƅ",nang:"∠⃒",nap:"≉",napE:"â©°Ìž",napid:"≋̞",napos:"Ɖ",napprox:"≉",natural:"♼",naturals:"ℕ",natur:"♼",nbsp:" ",nbump:"≎̞",nbumpe:"≏̞",ncap:"⩃",Ncaron:"Ƈ",ncaron:"ƈ",Ncedil:"ƅ",ncedil:"Ɔ",ncong:"≇",ncongdot:"â©­Ìž",ncup:"⩂",Ncy:"Н",ncy:"Đœ",ndash:"–",nearhk:" ",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̞",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≱",nesear:"‚",nesim:"≂̞",NestedGreaterGreater:"≫",NestedLessLess:"â‰Ș",NewLine:`
2
+ `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"đ”«",ngE:"≧̞",nge:"≱",ngeq:"≱",ngeqq:"≧̞",ngeqslant:"⩟̞",nges:"⩟̞",nGg:"⋙̞",ngsim:"≔",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̞",nharr:"↼",nhArr:"⇎",nhpar:"â«Č",ni:"∋",nis:"⋌",nisd:"â‹ș",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:" ",nlE:"≊̞",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↼",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≊̞",nleqslant:"⩜̞",nles:"⩜̞",nless:"≼",nLl:"⋘̞",nlsim:"≮",nLt:"â‰Ș⃒",nlt:"≼",nltri:"â‹Ș",nltrie:"⋬",nLtv:"â‰ȘÌž",nmid:"∀",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫏",not:"ÂŹ",NotCongruent:"≱",NotCupCap:"≭",NotDoubleVerticalBar:"∊",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̞",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̞",NotGreaterGreater:"≫̞",NotGreaterLess:"â‰č",NotGreaterSlantEqual:"⩟̞",NotGreaterTilde:"≔",NotHumpDownHump:"≎̞",NotHumpEqual:"≏̞",notin:"∉",notindot:"⋔̞",notinE:"â‹čÌž",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̞",NotLeftTriangle:"â‹Ș",NotLeftTriangleEqual:"⋬",NotLess:"≼",NotLessEqual:"≰",NotLessGreater:"≾",NotLessLess:"â‰ȘÌž",NotLessSlantEqual:"⩜̞",NotLessTilde:"≮",NotNestedGreaterGreater:"âȘąÌž",NotNestedLessLess:"âȘĄÌž",notni:"∌",notniva:"∌",notnivb:"⋟",notnivc:"⋜",NotPrecedes:"⊀",NotPrecedesEqual:"âȘŻÌž",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̞",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̞",NotSquareSubsetEqual:"⋱",NotSquareSuperset:"⊐̞",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"âȘ°Ìž",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"â‰żÌž",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∀",nparallel:"∊",npar:"∊",nparsl:"⫝̸⃄",npart:"∂̞",npolint:"⹔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"âȘŻÌž",npre:"âȘŻÌž",nrarrc:"â€łÌž",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̞",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"âȘ°Ìž",Nscr:"đ’©",nscr:"𝓃",nshortmid:"∀",nshortparallel:"∊",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∀",nspar:"∊",nsqsube:"⋱",nsqsupe:"⋣",nsub:"⊄",nsubE:"â«…Ìž",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"â«…Ìž",nsucc:"⊁",nsucceq:"âȘ°Ìž",nsup:"⊅",nsupE:"⫆̞",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̞",ntgl:"â‰č",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≾",ntriangleleft:"â‹Ș",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"Μ",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊼",nVDash:"⊯",nvge:"≄⃒",nvgt:">⃒",nvHarr:" ",nvinfin:"⧞",nvlArr:" ",nvle:"≀⃒",nvlt:"<⃒",nvltrie:"⊮⃒",nvrArr:" ",nvrtrie:"⊔⃒",nvsim:"∌⃒",nwarhk:"‣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"‧",Oacute:"Ó",oacute:"Ăł",oast:"⊛",Ocirc:"Ô",ocirc:"ĂŽ",ocir:"⊚",Ocy:"О",ocy:"ĐŸ",odash:"⊝",Odblac:"Ɛ",odblac:"Ƒ",odiv:"âšž",odot:"⊙",odsold:"⊌",OElig:"ƒ",oelig:"Ɠ",ofcir:"⊿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ĂČ",ogt:"⧁",ohbar:"⊔",ohm:"Ω",oint:"∟",olarr:"â†ș",olcir:"⊟",olcross:"⊻",oline:"‟",olt:"⧀",Omacr:"Ì",omacr:"ƍ",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"Îż",omid:"⊶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⊷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"âŠč",oplus:"⊕",orarr:"↻",Or:"⩔",or:"√",ord:"⩝",order:"℮",orderof:"℮",ordf:"ÂȘ",ordm:"Âș",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"đ’Ș",oscr:"℮",Oslash:"Ø",oslash:"Ăž",osol:"⊘",Otilde:"Õ",otilde:"Ă”",otimesas:"âš¶",Otimes:"âš·",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌜",OverBar:"‟",OverBrace:"⏞",OverBracket:"⎮",OverParenthesis:"⏜",para:"¶",parallel:"∄",par:"∄",parsim:"⫳",parsl:"⫝̸",part:"∂",PartialD:"∂",Pcy:"П",pcy:"Đż",percnt:"%",period:".",permil:"‰",perp:"⊄",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Ί",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⚣",plusb:"⊞",pluscir:"âšą",plus:"+",plusdo:"∔",plusdu:"âš„",pluse:"â©Č",PlusMinus:"±",plusmn:"±",plussim:"⚊",plustwo:"âš§",pm:"±",Poincareplane:"ℌ",pointint:"⹕",popf:"𝕡",Popf:"ℙ",pound:"ÂŁ",prap:"âȘ·",Pr:"âȘ»",pr:"â‰ș",prcue:"≌",precapprox:"âȘ·",prec:"â‰ș",preccurlyeq:"≌",Precedes:"â‰ș",PrecedesEqual:"âȘŻ",PrecedesSlantEqual:"≌",PrecedesTilde:"≟",preceq:"âȘŻ",precnapprox:"âȘč",precneqq:"âȘ”",precnsim:"⋹",pre:"âȘŻ",prE:"âȘł",precsim:"≟",prime:"â€Č",Prime:"″",primes:"ℙ",prnap:"âȘč",prnE:"âȘ”",prnsim:"⋹",prod:"∏",Product:"∏",profalar:"⌼",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≟",prurel:"⊰",Pscr:"đ’«",pscr:"𝓅",Psi:"Κ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔼",qint:"⹌",qopf:"𝕱",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⹖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∜̱",Racute:"Ɣ",racute:"ƕ",radic:"√",raemptyv:"⊳",rang:"⟩",Rang:"⟫",rangd:"⩒",range:"⊄",rangle:"⟩",raquo:"»",rarrap:"â„”",rarrb:"⇄",rarrbfs:"†",rarrc:"″",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"„",rarrhk:"â†Ș",rarrlp:"↬",rarrpl:"â„…",rarrsim:"ℎ",Rarrtl:"‖",rarrtl:"↣",rarrw:"↝",ratail:"‚",rAtail:"“",ratio:"∶",rationals:"ℚ",rbarr:"‍",rBarr:"‏",RBarr:"‐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⩌",rbrksld:"⊎",rbrkslu:"⊐",Rcaron:"Ƙ",rcaron:"ƙ",Rcedil:"Ɩ",rcedil:"Ɨ",rceil:"⌉",rcub:"}",Rcy:"Đ ",rcy:"р",rdca:"‷",rdldhar:"â„©",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"Âź",REG:"Âź",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"ℯ",rfisht:"ℜ",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"â„€",rhard:"⇁",rharu:"⇀",rharul:"ℏ",Rho:"ÎĄ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇄",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"ℝ",RightDownVectorBar:"â„•",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↩",RightTee:"⊱",RightTeeVector:"â„›",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊔",RightUpDownVector:"ℏ",RightUpTeeVector:"ℜ",RightUpVectorBar:"â„”",RightUpVector:"↟",RightVectorBar:"â„“",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫟",roang:"⟭",roarr:"⇟",robrk:"⟧",ropar:"⩆",ropf:"𝕣",Ropf:"ℝ",roplus:"âšź",rotimes:"âš”",RoundImplies:"â„°",rpar:")",rpargt:"⩔",rppolint:"⹒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"â€ș",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"â–č",rtrie:"⊔",rtrif:"▾",rtriltri:"⧎",RuleDelayed:"â§Ž",ruluhar:"ℚ",rx:"℞",Sacute:"Ú",sacute:"ƛ",sbquo:"‚",scap:"âȘž",Scaron:"Ć ",scaron:"ĆĄ",Sc:"âȘŒ",sc:"≻",sccue:"≜",sce:"âȘ°",scE:"âȘŽ",Scedil:"ƞ",scedil:"ß",Scirc:"Ü",scirc:"Ɲ",scnap:"âȘș",scnE:"âȘ¶",scnsim:"⋩",scpolint:"⹓",scsim:"≿",Scy:"ĐĄ",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩊",searhk:" ",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"
",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌱",sharp:"♯",SHCHcy:"Đ©",shchcy:"щ",SHcy:"Đš",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∄",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"ÎŁ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∌",simdot:"â©Ș",sime:"≃",simeq:"≃",simg:"âȘž",simgE:"âȘ ",siml:"âȘ",simlE:"âȘŸ",simne:"≆",simplus:"⚀",simrarr:"â„Č",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"âšł",smeparsl:"â§€",smid:"∣",smile:"⌣",smt:"âȘȘ",smte:"âȘŹ",smtes:"âȘŹïž€",SOFTcy:"ĐŹ",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"đ•€",spades:"♠",spadesuit:"♠",spar:"∄",sqcap:"⊓",sqcaps:"⊓",sqcup:"⊔",sqcups:"⊔",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"â–Ș",squ:"□",squf:"â–Ș",srarr:"→",Sscr:"𝒼",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"Ï”",straightphi:"ϕ",strns:"ÂŻ",sub:"⊂",Sub:"⋐",subdot:"âȘœ",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"âȘż",subrarr:"â„č",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"âȘž",succ:"≻",succcurlyeq:"≜",Succeeds:"≻",SucceedsEqual:"âȘ°",SucceedsSlantEqual:"≜",SucceedsTilde:"≿",succeq:"âȘ°",succnapprox:"âȘș",succneqq:"âȘ¶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"â™Ș",sup1:"Âč",sup2:"ÂČ",sup3:"Âł",sup:"⊃",Sup:"⋑",supdot:"âȘŸ",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"â„»",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:" ",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"â€Ș",szlig:"ß",Tab:" ",target:"⌖",Tau:"΀",tau:"τ",tbrk:"⎮",Tcaron:"Ć€",tcaron:"Ć„",Tcedil:"Ćą",tcedil:"ĆŁ",Tcy:"Đą",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"đ”±",there4:"∎",therefore:"∎",Therefore:"∎",Theta:"Θ",theta:"Ξ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∌",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∌",THORN:"Þ",thorn:"ĂŸ",tilde:"˜",Tilde:"∌",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"âš±",timesb:"⊠",times:"×",timesd:"âš°",tint:"∭",toea:"‚",topbot:"⌶",topcir:"⫱",top:"⊀",Topf:"𝕋",topf:"đ•„",topfork:"⫚",tosa:"
",tprime:"‮",trade:"ℱ",TRADE:"ℱ",triangle:"â–”",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊮",triangleq:"≜",triangleright:"â–č",trianglerighteq:"⊔",tridot:"◬",trie:"≜",triminus:"âšș",TripleDot:"⃛",triplus:"âšč",trisb:"⧍",tritime:"âš»",trpezium:"⏱",Tscr:"𝒯",tscr:"𝓉",TScy:"ĐŠ",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"ĆŠ",tstrok:"Ƨ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"Ăș",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"℉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"ĆŹ",ubreve:"Ć­",Ucirc:"Û",ucirc:"Ă»",Ucy:"ĐŁ",ucy:"у",udarr:"⇅",Udblac:"ư",udblac:"Ʊ",udhar:"℟",ufisht:"℟",Ufr:"𝔘",ufr:"đ”Č",Ugrave:"Ù",ugrave:"Ăč",uHar:"℣",uharl:"↿",uharr:"↟",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◾",Umacr:"ĆȘ",umacr:"Ć«",uml:"š",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎔",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"ĆČ",uogon:"Ćł",Uopf:"𝕌",uopf:"𝕩",UpArrowBar:"‒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"℟",upharpoonleft:"↿",upharpoonright:"↟",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"΄",upsilon:"υ",UpTeeArrow:"ↄ",UpTee:"⊄",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ćź",uring:"ĆŻ",urtri:"â—č",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ćš",utilde:"Ć©",utri:"â–”",utrif:"▮",uuarr:"⇈",Uuml:"Ü",uuml:"ĂŒ",uwangle:"⊧",vangrt:"⩜",varepsilon:"Ï”",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊",varsubsetneqq:"⫋",varsupsetneq:"⊋",varsupsetneqq:"⫌",vartheta:"ϑ",vartriangleleft:"âŠČ",vartriangleright:"⊳",vBar:"⫚",Vbar:"â««",vBarv:"â«©",Vcy:"В",vcy:"ĐČ",vdash:"⊱",vDash:"⊹",Vdash:"⊩",VDash:"⊫",Vdashl:"⫊",veebar:"⊻",vee:"√",Vee:"⋁",veeeq:"≚",vellip:"⋼",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"âŠČ",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"đ’±",vscr:"𝓋",vsubnE:"⫋",vsubne:"⊊",vsupnE:"⫌",vsupne:"⊋",Vvdash:"âŠȘ",vzigzag:"⩚",Wcirc:"ĆŽ",wcirc:"Ć”",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔮",Wopf:"𝕎",wopf:"𝕹",wp:"℘",wr:"≀",wreath:"≀",Wscr:"đ’Č",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"â–œ",Xfr:"𝔛",xfr:"đ””",xharr:"⟷",xhArr:"âŸș",Xi:"Ξ",xi:"Ο",xlarr:"⟔",xlArr:"⟾",xmap:"⟌",xnis:"⋻",xodot:"⹀",Xopf:"𝕏",xopf:"đ•©",xoplus:"⚁",xotime:"⹂",xrarr:"⟶",xrArr:"âŸč",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⹆",xuplus:"⹄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"Ăœ",YAcy:"ĐŻ",yacy:"я",Ycirc:"ƶ",ycirc:"Ć·",Ycy:"Đ«",ycy:"ы",yen:"„",Yfr:"𝔜",yfr:"đ”¶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"đ•Ș",Yscr:"𝒮",yscr:"𝓎",YUcy:"Đź",yucy:"ю",yuml:"Ăż",Yuml:"Ćž",Zacute:"Ćč",zacute:"Ćș",Zcaron:"Ćœ",zcaron:"ĆŸ",Zcy:"З",zcy:"Đ·",Zdot:"Ć»",zdot:"ĆŒ",zeetrf:"ℹ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"đ”·",Zfr:"ℹ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"đ•«",Zopf:"â„€",Zscr:"đ’”",zscr:"𝓏",zwj:"‍",zwnj:"‌"},ot=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,_e={},Ht={};function Jr(t){var e,n,r=Ht[t];if(r)return r;for(r=Ht[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)r[t.charCodeAt(e)]=t[e];return r}function Be(t,e,n){var r,o,s,c,i,a="";for(typeof e!="string"&&(n=e,e=Be.defaultChars),typeof n>"u"&&(n=!0),i=Jr(e),r=0,o=t.length;r<o;r++){if(s=t.charCodeAt(r),n&&s===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(t.slice(r+1,r+3))){a+=t.slice(r,r+3),r+=2;continue}if(s<128){a+=i[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1<o&&(c=t.charCodeAt(r+1),c>=56320&&c<=57343)){a+=encodeURIComponent(t[r]+t[r+1]),r++;continue}a+="%EF%BF%BD";continue}a+=encodeURIComponent(t[r])}return a}Be.defaultChars=";/?:@&=+$,-_.!~*'()#",Be.componentChars="-_.!~*'()";var Yr=Be,jt={};function Xr(t){var e,n,r=jt[t];if(r)return r;for(r=jt[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),r.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function Me(t,e){var n;return typeof e!="string"&&(e=Me.defaultChars),n=Xr(e),t.replace(/(%[a-f0-9]{2})+/gi,function(r){var o,s,c,i,a,l,u,h="";for(o=0,s=r.length;o<s;o+=3){if(c=parseInt(r.slice(o+1,o+3),16),c<128){h+=n[c];continue}if((c&224)===192&&o+3<s&&(i=parseInt(r.slice(o+4,o+6),16),(i&192)===128)){u=c<<6&1984|i&63,u<128?h+="ïżœïżœ":h+=String.fromCharCode(u),o+=3;continue}if((c&240)===224&&o+6<s&&(i=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16),(i&192)===128&&(a&192)===128)){u=c<<12&61440|i<<6&4032|a&63,u<2048||u>=55296&&u<=57343?h+="ïżœïżœïżœ":h+=String.fromCharCode(u),o+=6;continue}if((c&248)===240&&o+9<s&&(i=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16),l=parseInt(r.slice(o+10,o+12),16),(i&192)===128&&(a&192)===128&&(l&192)===128)){u=c<<18&1835008|i<<12&258048|a<<6&4032|l&63,u<65536||u>1114111?h+="ïżœïżœïżœïżœ":(u-=65536,h+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),o+=9;continue}h+="ïżœ"}return h})}Me.defaultChars=";/?:@&=+$,#",Me.componentChars="";var Qr=Me,eo=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function Ie(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var to=/^([a-z0-9.+-]+:)/i,no=/:[0-9]*$/,ro=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,oo=["<",">",'"',"`"," ","\r",`
3
+ `," "],so=["{","}","|","\\","^","`"].concat(oo),co=["'"].concat(so),Zt=["%","/","?",";","#"].concat(co),Wt=["/","?","#"],io=255,Kt=/^[+a-z0-9A-Z_-]{0,63}$/,ao=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Jt={javascript:!0,"javascript:":!0},Yt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function lo(t,e){if(t&&t instanceof Ie)return t;var n=new Ie;return n.parse(t,e),n}Ie.prototype.parse=function(t,e){var n,r,o,s,c,i=t;if(i=i.trim(),!e&&t.split("#").length===1){var a=ro.exec(i);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}var l=to.exec(i);if(l&&(l=l[0],o=l.toLowerCase(),this.protocol=l,i=i.substr(l.length)),(e||l||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(c=i.substr(0,2)==="//",c&&!(l&&Jt[l])&&(i=i.substr(2),this.slashes=!0)),!Jt[l]&&(c||l&&!Yt[l])){var u=-1;for(n=0;n<Wt.length;n++)s=i.indexOf(Wt[n]),s!==-1&&(u===-1||s<u)&&(u=s);var h,f;for(u===-1?f=i.lastIndexOf("@"):f=i.lastIndexOf("@",u),f!==-1&&(h=i.slice(0,f),i=i.slice(f+1),this.auth=h),u=-1,n=0;n<Zt.length;n++)s=i.indexOf(Zt[n]),s!==-1&&(u===-1||s<u)&&(u=s);u===-1&&(u=i.length),i[u-1]===":"&&u--;var d=i.slice(0,u);i=i.slice(u),this.parseHost(d),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){var x=this.hostname.split(/\./);for(n=0,r=x.length;n<r;n++){var C=x[n];if(C&&!C.match(Kt)){for(var v="",m=0,E=C.length;m<E;m++)C.charCodeAt(m)>127?v+="x":v+=C[m];if(!v.match(Kt)){var q=x.slice(0,n),T=x.slice(n+1),_=C.match(ao);_&&(q.push(_[1]),T.unshift(_[2])),T.length&&(i=T.join(".")+i),this.hostname=q.join(".");break}}}}this.hostname.length>io&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var B=i.indexOf("#");B!==-1&&(this.hash=i.substr(B),i=i.slice(0,B));var U=i.indexOf("?");return U!==-1&&(this.search=i.substr(U),i=i.slice(0,U)),i&&(this.pathname=i),Yt[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Ie.prototype.parseHost=function(t){var e=no.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var uo=lo;_e.encode=Yr,_e.decode=Qr,_e.format=eo,_e.parse=uo;var pe={},st,Xt;function Qt(){return Xt||(Xt=1,st=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),st}var ct,en;function tn(){return en||(en=1,ct=/[\0-\x1F\x7F-\x9F]/),ct}var it,nn;function po(){return nn||(nn=1,it=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),it}var at,rn;function on(){return rn||(rn=1,at=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),at}var sn;function fo(){return sn||(sn=1,pe.Any=Qt(),pe.Cc=tn(),pe.Cf=po(),pe.P=ot,pe.Z=on()),pe}(function(t){function e(b){return Object.prototype.toString.call(b)}function n(b){return e(b)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(b,F){return r.call(b,F)}function s(b){var F=Array.prototype.slice.call(arguments,1);return F.forEach(function(L){if(L){if(typeof L!="object")throw new TypeError(L+"must be object");Object.keys(L).forEach(function(g){b[g]=L[g]})}}),b}function c(b,F,L){return[].concat(b.slice(0,F),L,b.slice(F+1))}function i(b){return!(b>=55296&&b<=57343||b>=64976&&b<=65007||(b&65535)===65535||(b&65535)===65534||b>=0&&b<=8||b===11||b>=14&&b<=31||b>=127&&b<=159||b>1114111)}function a(b){if(b>65535){b-=65536;var F=55296+(b>>10),L=56320+(b&1023);return String.fromCharCode(F,L)}return String.fromCharCode(b)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(l.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=Gt;function y(b,F){var L=0;return o(d,F)?d[F]:F.charCodeAt(0)===35&&f.test(F)&&(L=F[1].toLowerCase()==="x"?parseInt(F.slice(2),16):parseInt(F.slice(1),10),i(L))?a(L):b}function x(b){return b.indexOf("\\")<0?b:b.replace(l,"$1")}function C(b){return b.indexOf("\\")<0&&b.indexOf("&")<0?b:b.replace(h,function(F,L,g){return L||y(F,g)})}var v=/[&<>"]/,m=/[&<>"]/g,E={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function q(b){return E[b]}function T(b){return v.test(b)?b.replace(m,q):b}var _=/[.?*+^$[\]\\(){}|-]/g;function B(b){return b.replace(_,"\\$&")}function U(b){switch(b){case 9:case 32:return!0}return!1}function G(b){if(b>=8192&&b<=8202)return!0;switch(b){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var N=ot;function P(b){return N.test(b)}function ce(b){switch(b){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function re(b){return b=b.trim().replace(/\s+/g," "),"áșž".toLowerCase()==="áčŸ"&&(b=b.replace(/áșž/g,"ß")),b.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=_e,t.lib.ucmicro=fo(),t.assign=s,t.isString=n,t.has=o,t.unescapeMd=x,t.unescapeAll=C,t.isValidEntityCode=i,t.fromCodePoint=a,t.escapeHtml=T,t.arrayReplaceAt=c,t.isSpace=U,t.isWhiteSpace=G,t.isMdAsciiPunct=ce,t.isPunctChar=P,t.escapeRE=B,t.normalizeReference=re})(I);var Fe={},ho=function(e,n,r){var o,s,c,i,a=-1,l=e.posMax,u=e.pos;for(e.pos=n+1,o=1;e.pos<l;){if(c=e.src.charCodeAt(e.pos),c===93&&(o--,o===0)){s=!0;break}if(i=e.pos,e.md.inline.skipToken(e),c===91){if(i===e.pos-1)o++;else if(r)return e.pos=u,-1}}return s&&(a=e.pos),e.pos=u,a},cn=I.unescapeAll,go=function(e,n,r){var o,s,c=0,i=n,a={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<r;){if(o=e.charCodeAt(n),o===10||o===60)return a;if(o===62)return a.pos=n+1,a.str=cn(e.slice(i+1,n)),a.ok=!0,a;if(o===92&&n+1<r){n+=2;continue}n++}return a}for(s=0;n<r&&(o=e.charCodeAt(n),!(o===32||o<32||o===127));){if(o===92&&n+1<r){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(o===40&&(s++,s>32))return a;if(o===41){if(s===0)break;s--}n++}return i===n||s!==0||(a.str=cn(e.slice(i,n)),a.lines=c,a.pos=n,a.ok=!0),a},mo=I.unescapeAll,bo=function(e,n,r){var o,s,c=0,i=n,a={ok:!1,pos:0,lines:0,str:""};if(n>=r||(s=e.charCodeAt(n),s!==34&&s!==39&&s!==40))return a;for(n++,s===40&&(s=41);n<r;){if(o=e.charCodeAt(n),o===s)return a.pos=n+1,a.lines=c,a.str=mo(e.slice(i+1,n)),a.ok=!0,a;if(o===40&&s===41)return a;o===10?c++:o===92&&n+1<r&&(n++,e.charCodeAt(n)===10&&c++),n++}return a};Fe.parseLinkLabel=ho,Fe.parseLinkDestination=go,Fe.parseLinkTitle=bo;var _o=I.assign,ko=I.unescapeAll,fe=I.escapeHtml,Q={};Q.code_inline=function(t,e,n,r,o){var s=t[e];return"<code"+o.renderAttrs(s)+">"+fe(t[e].content)+"</code>"},Q.code_block=function(t,e,n,r,o){var s=t[e];return"<pre"+o.renderAttrs(s)+"><code>"+fe(t[e].content)+`</code></pre>
4
+ `},Q.fence=function(t,e,n,r,o){var s=t[e],c=s.info?ko(s.info).trim():"",i="",a="",l,u,h,f,d;return c&&(h=c.split(/(\s+)/g),i=h[0],a=h.slice(2).join("")),n.highlight?l=n.highlight(s.content,i,a)||fe(s.content):l=fe(s.content),l.indexOf("<pre")===0?l+`
5
+ `:c?(u=s.attrIndex("class"),f=s.attrs?s.attrs.slice():[],u<0?f.push(["class",n.langPrefix+i]):(f[u]=f[u].slice(),f[u][1]+=" "+n.langPrefix+i),d={attrs:f},"<pre><code"+o.renderAttrs(d)+">"+l+`</code></pre>
17
6
  `):"<pre><code"+o.renderAttrs(s)+">"+l+`</code></pre>
18
- `},ce.image=function(t,e,n,r,o){var s=t[e];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,r),o.renderToken(t,e,n)},ce.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
7
+ `},Q.image=function(t,e,n,r,o){var s=t[e];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,r),o.renderToken(t,e,n)},Q.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
19
8
  `:`<br>
20
- `},ce.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
9
+ `},Q.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
21
10
  `:`<br>
22
11
  `:`
23
- `},ce.text=function(t,e){return we(t[e].content)},ce.html_block=function(t,e){return t[e].content},ce.html_inline=function(t,e){return t[e].content};function Re(){this.rules=Us({},ce)}Re.prototype.renderAttrs=function(e){var n,r,o;if(!e.attrs)return"";for(o="",n=0,r=e.attrs.length;n<r;n++)o+=" "+we(e.attrs[n][0])+'="'+we(e.attrs[n][1])+'"';return o},Re.prototype.renderToken=function(e,n,r){var o,s="",c=!1,i=e[n];return i.hidden?"":(i.block&&i.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
12
+ `},Q.text=function(t,e){return fe(t[e].content)},Q.html_block=function(t,e){return t[e].content},Q.html_inline=function(t,e){return t[e].content};function ke(){this.rules=_o({},Q)}ke.prototype.renderAttrs=function(e){var n,r,o;if(!e.attrs)return"";for(o="",n=0,r=e.attrs.length;n<r;n++)o+=" "+fe(e.attrs[n][0])+'="'+fe(e.attrs[n][1])+'"';return o},ke.prototype.renderToken=function(e,n,r){var o,s="",c=!1,i=e[n];return i.hidden?"":(i.block&&i.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
24
13
  `),s+=(i.nesting===-1?"</":"<")+i.tag,s+=this.renderAttrs(i),i.nesting===0&&r.xhtmlOut&&(s+=" /"),i.block&&(c=!0,i.nesting===1&&n+1<e.length&&(o=e[n+1],(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===i.tag)&&(c=!1))),s+=c?`>
25
- `:">",s)},Re.prototype.renderInline=function(t,e,n){for(var r,o="",s=this.rules,c=0,i=t.length;c<i;c++)r=t[c].type,typeof s[r]<"u"?o+=s[r](t,c,e,n,this):o+=this.renderToken(t,c,e);return o},Re.prototype.renderInlineAsText=function(t,e,n){for(var r="",o=0,s=t.length;o<s;o++)t[o].type==="text"?r+=t[o].content:t[o].type==="image"?r+=this.renderInlineAsText(t[o].children,e,n):t[o].type==="softbreak"&&(r+=`
26
- `);return r},Re.prototype.render=function(t,e,n){var r,o,s,c="",i=this.rules;for(r=0,o=t.length;r<o;r++)s=t[r].type,s==="inline"?c+=this.renderInline(t[r].children,e,n):typeof i[s]<"u"?c+=i[t[r].type](t,r,e,n,this):c+=this.renderToken(t,r,e,n);return c};var $s=Re;function re(){this.__rules__=[],this.__cache__=null}re.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},re.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})},re.prototype.at=function(t,e,n){var r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=o.alt||[],this.__cache__=null},re.prototype.before=function(t,e,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},re.prototype.after=function(t,e,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},re.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},re.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n},re.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)},re.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n},re.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var Mt=re,zs=/\r\n?|\n/g,Gs=/\0/g,Hs=function(e){var n;n=e.src.replace(zs,`
27
- `),n=n.replace(Gs,"ïżœ"),e.src=n},js=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Zs=function(e){var n=e.tokens,r,o,s;for(o=0,s=n.length;o<s;o++)r=n[o],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},Ws=F.arrayReplaceAt;function Js(t){return/^<a[>\s]/i.test(t)}function Ks(t){return/^<\/a\s*>/i.test(t)}var Ys=function(e){var n,r,o,s,c,i,a,l,f,p,h,d,y,E,D,C,w=e.tokens,S;if(e.md.options.linkify){for(r=0,o=w.length;r<o;r++)if(!(w[r].type!=="inline"||!e.md.linkify.pretest(w[r].content)))for(s=w[r].children,y=0,n=s.length-1;n>=0;n--){if(i=s[n],i.type==="link_close"){for(n--;s[n].level!==i.level&&s[n].type!=="link_open";)n--;continue}if(i.type==="html_inline"&&(Js(i.content)&&y>0&&y--,Ks(i.content)&&y++),!(y>0)&&i.type==="text"&&e.md.linkify.test(i.content)){for(f=i.content,S=e.md.linkify.match(f),a=[],d=i.level,h=0,l=0;l<S.length;l++)E=S[l].url,D=e.md.normalizeLink(E),e.md.validateLink(D)&&(C=S[l].text,S[l].schema?S[l].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,""),p=S[l].index,p>h&&(c=new e.Token("text","",0),c.content=f.slice(h,p),c.level=d,a.push(c)),c=new e.Token("link_open","a",1),c.attrs=[["href",D]],c.level=d++,c.markup="linkify",c.info="auto",a.push(c),c=new e.Token("text","",0),c.content=C,c.level=d,a.push(c),c=new e.Token("link_close","a",-1),c.level=--d,c.markup="linkify",c.info="auto",a.push(c),h=S[l].lastIndex);h<f.length&&(c=new e.Token("text","",0),c.content=f.slice(h),c.level=d,a.push(c)),w[r].children=s=Ws(s,n,a)}}}},tr=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Qs=/\((c|tm|r|p)\)/i,Xs=/\((c|tm|r|p)\)/ig,ec={c:"©",r:"Âź",p:"§",tm:"ℱ"};function tc(t,e){return ec[e.toLowerCase()]}function nc(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&(n.content=n.content.replace(Xs,tc)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function rc(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&tr.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"
").replace(/([?!])
/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var oc=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Qs.test(e.tokens[n].content)&&nc(e.tokens[n].children),tr.test(e.tokens[n].content)&&rc(e.tokens[n].children))},nr=F.isWhiteSpace,rr=F.isPunctChar,or=F.isMdAsciiPunct,sc=/['"]/,sr=/['"]/g,cr="’";function ct(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function cc(t,e){var n,r,o,s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R,x;for(T=[],n=0;n<t.length;n++){for(r=t[n],a=t[n].level,w=T.length-1;w>=0&&!(T[w].level<=a);w--);if(T.length=w+1,r.type==="text"){o=r.content,c=0,i=o.length;e:for(;c<i&&(sr.lastIndex=c,s=sr.exec(o),!!s);){if(D=C=!0,c=s.index+1,S=s[0]==="'",f=32,s.index-1>=0)f=o.charCodeAt(s.index-1);else for(w=n-1;w>=0&&!(t[w].type==="softbreak"||t[w].type==="hardbreak");w--)if(t[w].content){f=t[w].content.charCodeAt(t[w].content.length-1);break}if(p=32,c<i)p=o.charCodeAt(c);else for(w=n+1;w<t.length&&!(t[w].type==="softbreak"||t[w].type==="hardbreak");w++)if(t[w].content){p=t[w].content.charCodeAt(0);break}if(h=or(f)||rr(String.fromCharCode(f)),d=or(p)||rr(String.fromCharCode(p)),y=nr(f),E=nr(p),E?D=!1:d&&(y||h||(D=!1)),y?C=!1:h&&(E||d||(C=!1)),p===34&&s[0]==='"'&&f>=48&&f<=57&&(C=D=!1),D&&C&&(D=h,C=d),!D&&!C){S&&(r.content=ct(r.content,s.index,cr));continue}if(C){for(w=T.length-1;w>=0&&(l=T[w],!(T[w].level<a));w--)if(l.single===S&&T[w].level===a){l=T[w],S?(R=e.md.options.quotes[2],x=e.md.options.quotes[3]):(R=e.md.options.quotes[0],x=e.md.options.quotes[1]),r.content=ct(r.content,s.index,x),t[l.token].content=ct(t[l.token].content,l.pos,R),c+=x.length-1,l.token===n&&(c+=R.length-1),o=r.content,i=o.length,T.length=w;continue e}}D?T.push({token:n,pos:s.index,single:S,level:a}):C&&S&&(r.content=ct(r.content,s.index,cr))}}}}var ic=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!sc.test(e.tokens[n].content)||cc(e.tokens[n].children,e)};function Ne(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Ne.prototype.attrIndex=function(e){var n,r,o;if(!this.attrs)return-1;for(n=this.attrs,r=0,o=n.length;r<o;r++)if(n[r][0]===e)return r;return-1},Ne.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Ne.prototype.attrSet=function(e,n){var r=this.attrIndex(e),o=[e,n];r<0?this.attrPush(o):this.attrs[r]=o},Ne.prototype.attrGet=function(e){var n=this.attrIndex(e),r=null;return n>=0&&(r=this.attrs[n][1]),r},Ne.prototype.attrJoin=function(e,n){var r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};var Bt=Ne,ac=Bt;function ir(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}ir.prototype.Token=ac;var lc=ir,uc=Mt,Ft=[["normalize",Hs],["block",js],["inline",Zs],["linkify",Ys],["replacements",oc],["smartquotes",ic]];function Pt(){this.ruler=new uc;for(var t=0;t<Ft.length;t++)this.ruler.push(Ft[t][0],Ft[t][1])}Pt.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)},Pt.prototype.State=lc;var fc=Pt,Ut=F.isSpace;function Vt(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.substr(n,r-n)}function ar(t){var e=[],n=0,r=t.length,o,s=!1,c=0,i="";for(o=t.charCodeAt(n);n<r;)o===124&&(s?(i+=t.substring(c,n-1),c=n):(e.push(i+t.substring(c,n)),i="",c=n+1)),s=o===92,n++,o=t.charCodeAt(n);return e.push(i+t.substring(c)),e}var pc=function(e,n,r,o){var s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R,x;if(n+2>r||(f=n+1,e.sCount[f]<e.blkIndent)||e.sCount[f]-e.blkIndent>=4||(i=e.bMarks[f]+e.tShift[f],i>=e.eMarks[f])||(R=e.src.charCodeAt(i++),R!==124&&R!==45&&R!==58)||i>=e.eMarks[f]||(x=e.src.charCodeAt(i++),x!==124&&x!==45&&x!==58&&!Ut(x))||R===45&&Ut(x))return!1;for(;i<e.eMarks[f];){if(s=e.src.charCodeAt(i),s!==124&&s!==45&&s!==58&&!Ut(s))return!1;i++}for(c=Vt(e,n+1),p=c.split("|"),y=[],a=0;a<p.length;a++){if(E=p[a].trim(),!E){if(a===0||a===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(E))return!1;E.charCodeAt(E.length-1)===58?y.push(E.charCodeAt(0)===58?"center":"right"):E.charCodeAt(0)===58?y.push("left"):y.push("")}if(c=Vt(e,n).trim(),c.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(p=ar(c),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),h=p.length,h===0||h!==y.length))return!1;if(o)return!0;for(w=e.parentType,e.parentType="table",T=e.md.block.ruler.getRules("blockquote"),d=e.push("table_open","table",1),d.map=D=[n,0],d=e.push("thead_open","thead",1),d.map=[n,n+1],d=e.push("tr_open","tr",1),d.map=[n,n+1],a=0;a<p.length;a++)d=e.push("th_open","th",1),y[a]&&(d.attrs=[["style","text-align:"+y[a]]]),d=e.push("inline","",0),d.content=p[a].trim(),d.children=[],d=e.push("th_close","th",-1);for(d=e.push("tr_close","tr",-1),d=e.push("thead_close","thead",-1),f=n+2;f<r&&!(e.sCount[f]<e.blkIndent);f++){for(S=!1,a=0,l=T.length;a<l;a++)if(T[a](e,f,r,!0)){S=!0;break}if(S||(c=Vt(e,f).trim(),!c)||e.sCount[f]-e.blkIndent>=4)break;for(p=ar(c),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),f===n+2&&(d=e.push("tbody_open","tbody",1),d.map=C=[n+2,0]),d=e.push("tr_open","tr",1),d.map=[f,f+1],a=0;a<h;a++)d=e.push("td_open","td",1),y[a]&&(d.attrs=[["style","text-align:"+y[a]]]),d=e.push("inline","",0),d.content=p[a]?p[a].trim():"",d.children=[],d=e.push("td_close","td",-1);d=e.push("tr_close","tr",-1)}return C&&(d=e.push("tbody_close","tbody",-1),C[1]=f),d=e.push("table_close","table",-1),D[1]=f,e.parentType=w,e.line=f,!0},hc=function(e,n,r){var o,s,c;if(e.sCount[n]-e.blkIndent<4)return!1;for(s=o=n+1;o<r;){if(e.isEmpty(o)){o++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,s=o;continue}break}return e.line=s,c=e.push("code_block","code",0),c.content=e.getLines(n,s,4+e.blkIndent,!1)+`
28
- `,c.map=[n,e.line],!0},dc=function(e,n,r,o){var s,c,i,a,l,f,p,h=!1,d=e.bMarks[n]+e.tShift[n],y=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||d+3>y||(s=e.src.charCodeAt(d),s!==126&&s!==96)||(l=d,d=e.skipChars(d,s),c=d-l,c<3)||(p=e.src.slice(l,d),i=e.src.slice(d,y),s===96&&i.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(a=n;a++,!(a>=r||(d=l=e.bMarks[a]+e.tShift[a],y=e.eMarks[a],d<y&&e.sCount[a]<e.blkIndent));)if(e.src.charCodeAt(d)===s&&!(e.sCount[a]-e.blkIndent>=4)&&(d=e.skipChars(d,s),!(d-l<c)&&(d=e.skipSpaces(d),!(d<y)))){h=!0;break}return c=e.sCount[n],e.line=a+(h?1:0),f=e.push("fence","code",0),f.info=i,f.content=e.getLines(n+1,a,c,!0),f.markup=p,f.map=[n,e.line],!0},lr=F.isSpace,gc=function(e,n,r,o){var s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R,x,v,V,$=e.lineMax,m=e.bMarks[n]+e.tShift[n],b=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(m++)!==62)return!1;if(o)return!0;for(a=d=e.sCount[n]+1,e.src.charCodeAt(m)===32?(m++,a++,d++,s=!1,T=!0):e.src.charCodeAt(m)===9?(T=!0,(e.bsCount[n]+d)%4===3?(m++,a++,d++,s=!1):s=!0):T=!1,y=[e.bMarks[n]],e.bMarks[n]=m;m<b&&(c=e.src.charCodeAt(m),lr(c));){c===9?d+=4-(d+e.bsCount[n]+(s?1:0))%4:d++;m++}for(E=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(T?1:0),f=m>=b,w=[e.sCount[n]],e.sCount[n]=d-a,S=[e.tShift[n]],e.tShift[n]=m-e.bMarks[n],x=e.md.block.ruler.getRules("blockquote"),C=e.parentType,e.parentType="blockquote",h=n+1;h<r&&(V=e.sCount[h]<e.blkIndent,m=e.bMarks[h]+e.tShift[h],b=e.eMarks[h],!(m>=b));h++){if(e.src.charCodeAt(m++)===62&&!V){for(a=d=e.sCount[h]+1,e.src.charCodeAt(m)===32?(m++,a++,d++,s=!1,T=!0):e.src.charCodeAt(m)===9?(T=!0,(e.bsCount[h]+d)%4===3?(m++,a++,d++,s=!1):s=!0):T=!1,y.push(e.bMarks[h]),e.bMarks[h]=m;m<b&&(c=e.src.charCodeAt(m),lr(c));){c===9?d+=4-(d+e.bsCount[h]+(s?1:0))%4:d++;m++}f=m>=b,E.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(T?1:0),w.push(e.sCount[h]),e.sCount[h]=d-a,S.push(e.tShift[h]),e.tShift[h]=m-e.bMarks[h];continue}if(f)break;for(R=!1,i=0,l=x.length;i<l;i++)if(x[i](e,h,r,!0)){R=!0;break}if(R){e.lineMax=h,e.blkIndent!==0&&(y.push(e.bMarks[h]),E.push(e.bsCount[h]),S.push(e.tShift[h]),w.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}y.push(e.bMarks[h]),E.push(e.bsCount[h]),S.push(e.tShift[h]),w.push(e.sCount[h]),e.sCount[h]=-1}for(D=e.blkIndent,e.blkIndent=0,v=e.push("blockquote_open","blockquote",1),v.markup=">",v.map=p=[n,0],e.md.block.tokenize(e,n,h),v=e.push("blockquote_close","blockquote",-1),v.markup=">",e.lineMax=$,e.parentType=C,p[1]=e.line,i=0;i<S.length;i++)e.bMarks[i+n]=y[i],e.tShift[i+n]=S[i],e.sCount[i+n]=w[i],e.bsCount[i+n]=E[i];return e.blkIndent=D,!0},mc=F.isSpace,bc=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],f=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(l++),s!==42&&s!==45&&s!==95))return!1;for(c=1;l<f;){if(i=e.src.charCodeAt(l++),i!==s&&!mc(i))return!1;i===s&&c++}return c<3?!1:(o||(e.line=n+1,a=e.push("hr","hr",0),a.map=[n,e.line],a.markup=Array(c+1).join(String.fromCharCode(s))),!0)},ur=F.isSpace;function fr(t,e){var n,r,o,s;return r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<o&&(s=t.src.charCodeAt(r),!ur(s))?-1:r}function pr(t,e){var n,r=t.bMarks[e]+t.tShift[e],o=r,s=t.eMarks[e];if(o+1>=s||(n=t.src.charCodeAt(o++),n<48||n>57))return-1;for(;;){if(o>=s)return-1;if(n=t.src.charCodeAt(o++),n>=48&&n<=57){if(o-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return o<s&&(n=t.src.charCodeAt(o),!ur(n))?-1:o}function _c(t,e){var n,r,o=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===o&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var kc=function(e,n,r,o){var s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R,x,v,V,$,m,b,M,G,_,P,I,g=!1,k=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(g=!0),(b=pr(e,n))>=0){if(p=!0,G=e.bMarks[n]+e.tShift[n],C=Number(e.src.slice(G,b-1)),g&&C!==1)return!1}else if((b=fr(e,n))>=0)p=!1;else return!1;if(g&&e.skipSpaces(b)>=e.eMarks[n])return!1;if(D=e.src.charCodeAt(b-1),o)return!0;for(E=e.tokens.length,p?(I=e.push("ordered_list_open","ol",1),C!==1&&(I.attrs=[["start",C]])):I=e.push("bullet_list_open","ul",1),I.map=y=[n,0],I.markup=String.fromCharCode(D),S=n,M=!1,P=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";S<r;){for(m=b,w=e.eMarks[S],f=T=e.sCount[S]+b-(e.bMarks[n]+e.tShift[n]);m<w;){if(s=e.src.charCodeAt(m),s===9)T+=4-(T+e.bsCount[S])%4;else if(s===32)T++;else break;m++}if(c=m,c>=w?l=1:l=T-f,l>4&&(l=1),a=f+l,I=e.push("list_item_open","li",1),I.markup=String.fromCharCode(D),I.map=h=[n,0],p&&(I.info=e.src.slice(G,b-1)),$=e.tight,V=e.tShift[n],v=e.sCount[n],R=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=a,e.tight=!0,e.tShift[n]=c-e.bMarks[n],e.sCount[n]=T,c>=w&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,n,r,!0),(!e.tight||M)&&(k=!1),M=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=R,e.tShift[n]=V,e.sCount[n]=v,e.tight=$,I=e.push("list_item_close","li",-1),I.markup=String.fromCharCode(D),S=n=e.line,h[1]=S,c=e.bMarks[n],S>=r||e.sCount[S]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(_=!1,i=0,d=P.length;i<d;i++)if(P[i](e,S,r,!0)){_=!0;break}if(_)break;if(p){if(b=pr(e,S),b<0)break;G=e.bMarks[S]+e.tShift[S]}else if(b=fr(e,S),b<0)break;if(D!==e.src.charCodeAt(b-1))break}return p?I=e.push("ordered_list_close","ol",-1):I=e.push("bullet_list_close","ul",-1),I.markup=String.fromCharCode(D),y[1]=S,e.line=S,e.parentType=x,k&&_c(e,E),!0},yc=F.normalizeReference,it=F.isSpace,wc=function(e,n,r,o){var s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R=0,x=e.bMarks[n]+e.tShift[n],v=e.eMarks[n],V=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(x)!==91)return!1;for(;++x<v;)if(e.src.charCodeAt(x)===93&&e.src.charCodeAt(x-1)!==92){if(x+1===v||e.src.charCodeAt(x+1)!==58)return!1;break}for(a=e.lineMax,S=e.md.block.ruler.getRules("reference"),y=e.parentType,e.parentType="reference";V<a&&!e.isEmpty(V);V++)if(!(e.sCount[V]-e.blkIndent>3)&&!(e.sCount[V]<0)){for(w=!1,f=0,p=S.length;f<p;f++)if(S[f](e,V,a,!0)){w=!0;break}if(w)break}for(C=e.getLines(n,V,e.blkIndent,!1).trim(),v=C.length,x=1;x<v;x++){if(s=C.charCodeAt(x),s===91)return!1;if(s===93){d=x;break}else s===10?R++:s===92&&(x++,x<v&&C.charCodeAt(x)===10&&R++)}if(d<0||C.charCodeAt(d+1)!==58)return!1;for(x=d+2;x<v;x++)if(s=C.charCodeAt(x),s===10)R++;else if(!it(s))break;if(E=e.md.helpers.parseLinkDestination(C,x,v),!E.ok||(l=e.md.normalizeLink(E.str),!e.md.validateLink(l)))return!1;for(x=E.pos,R+=E.lines,c=x,i=R,D=x;x<v;x++)if(s=C.charCodeAt(x),s===10)R++;else if(!it(s))break;for(E=e.md.helpers.parseLinkTitle(C,x,v),x<v&&D!==x&&E.ok?(T=E.str,x=E.pos,R+=E.lines):(T="",x=c,R=i);x<v&&(s=C.charCodeAt(x),!!it(s));)x++;if(x<v&&C.charCodeAt(x)!==10&&T)for(T="",x=c,R=i;x<v&&(s=C.charCodeAt(x),!!it(s));)x++;return x<v&&C.charCodeAt(x)!==10||(h=yc(C.slice(1,d)),!h)?!1:(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[h]>"u"&&(e.env.references[h]={title:T,href:l}),e.parentType=y,e.line=n+R+1),!0)},xc=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],at={},Ec="[a-zA-Z_:][a-zA-Z0-9:._-]*",vc="[^\"'=<>`\\x00-\\x20]+",Ac="'[^']*'",Cc='"[^"]*"',Sc="(?:"+vc+"|"+Ac+"|"+Cc+")",Dc="(?:\\s+"+Ec+"(?:\\s*=\\s*"+Sc+")?)",hr="<[A-Za-z][A-Za-z0-9\\-]*"+Dc+"*\\s*\\/?>",dr="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",qc="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Tc="<[?][\\s\\S]*?[?]>",Rc="<![A-Z]+\\s+[^>]*>",Nc="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Lc=new RegExp("^(?:"+hr+"|"+dr+"|"+qc+"|"+Tc+"|"+Rc+"|"+Nc+")"),Oc=new RegExp("^(?:"+hr+"|"+dr+")");at.HTML_TAG_RE=Lc,at.HTML_OPEN_CLOSE_TAG_RE=Oc;var Ic=xc,Mc=at.HTML_OPEN_CLOSE_TAG_RE,Le=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Ic.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Mc.source+"\\s*$"),/^$/,!1]],Bc=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],f=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(l)!==60)return!1;for(a=e.src.slice(l,f),s=0;s<Le.length&&!Le[s][0].test(a);s++);if(s===Le.length)return!1;if(o)return Le[s][2];if(c=n+1,!Le[s][1].test(a)){for(;c<r&&!(e.sCount[c]<e.blkIndent);c++)if(l=e.bMarks[c]+e.tShift[c],f=e.eMarks[c],a=e.src.slice(l,f),Le[s][1].test(a)){a.length!==0&&c++;break}}return e.line=c,i=e.push("html_block","",0),i.map=[n,c],i.content=e.getLines(n,c,e.blkIndent,!0),!0},gr=F.isSpace,Fc=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],f=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(l),s!==35||l>=f))return!1;for(c=1,s=e.src.charCodeAt(++l);s===35&&l<f&&c<=6;)c++,s=e.src.charCodeAt(++l);return c>6||l<f&&!gr(s)?!1:(o||(f=e.skipSpacesBack(f,l),i=e.skipCharsBack(f,35,l),i>l&&gr(e.src.charCodeAt(i-1))&&(f=i),e.line=n+1,a=e.push("heading_open","h"+String(c),1),a.markup="########".slice(0,c),a.map=[n,e.line],a=e.push("inline","",0),a.content=e.src.slice(l,f).trim(),a.map=[n,e.line],a.children=[],a=e.push("heading_close","h"+String(c),-1),a.markup="########".slice(0,c)),!0)},Pc=function(e,n,r){var o,s,c,i,a,l,f,p,h,d=n+1,y,E=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(y=e.parentType,e.parentType="paragraph";d<r&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(l=e.bMarks[d]+e.tShift[d],f=e.eMarks[d],l<f&&(h=e.src.charCodeAt(l),(h===45||h===61)&&(l=e.skipChars(l,h),l=e.skipSpaces(l),l>=f)))){p=h===61?1:2;break}if(!(e.sCount[d]<0)){for(s=!1,c=0,i=E.length;c<i;c++)if(E[c](e,d,r,!0)){s=!0;break}if(s)break}}return p?(o=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d+1,a=e.push("heading_open","h"+String(p),1),a.markup=String.fromCharCode(h),a.map=[n,e.line],a=e.push("inline","",0),a.content=o,a.map=[n,e.line-1],a.children=[],a=e.push("heading_close","h"+String(p),-1),a.markup=String.fromCharCode(h),e.parentType=y,!0):!1},Uc=function(e,n){var r,o,s,c,i,a,l=n+1,f=e.md.block.ruler.getRules("paragraph"),p=e.lineMax;for(a=e.parentType,e.parentType="paragraph";l<p&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3)&&!(e.sCount[l]<0)){for(o=!1,s=0,c=f.length;s<c;s++)if(f[s](e,l,p,!0)){o=!0;break}if(o)break}return r=e.getLines(n,l,e.blkIndent,!1).trim(),e.line=l,i=e.push("paragraph_open","p",1),i.map=[n,e.line],i=e.push("inline","",0),i.content=r,i.map=[n,e.line],i.children=[],i=e.push("paragraph_close","p",-1),e.parentType=a,!0},mr=Bt,lt=F.isSpace;function ie(t,e,n,r){var o,s,c,i,a,l,f,p;for(this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,p=!1,c=i=l=f=0,a=s.length;i<a;i++){if(o=s.charCodeAt(i),!p)if(lt(o)){l++,o===9?f+=4-f%4:f++;continue}else p=!0;(o===10||i===a-1)&&(o!==10&&i++,this.bMarks.push(c),this.eMarks.push(i),this.tShift.push(l),this.sCount.push(f),this.bsCount.push(0),p=!1,l=0,f=0,c=i+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ie.prototype.push=function(t,e,n){var r=new mr(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},ie.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},ie.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},ie.prototype.skipSpaces=function(e){for(var n,r=this.src.length;e<r&&(n=this.src.charCodeAt(e),!!lt(n));e++);return e},ie.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!lt(this.src.charCodeAt(--e)))return e+1;return e},ie.prototype.skipChars=function(e,n){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e},ie.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e},ie.prototype.getLines=function(e,n,r,o){var s,c,i,a,l,f,p,h=e;if(e>=n)return"";for(f=new Array(n-e),s=0;h<n;h++,s++){for(c=0,p=a=this.bMarks[h],h+1<n||o?l=this.eMarks[h]+1:l=this.eMarks[h];a<l&&c<r;){if(i=this.src.charCodeAt(a),lt(i))i===9?c+=4-(c+this.bsCount[h])%4:c++;else if(a-p<this.tShift[h])c++;else break;a++}c>r?f[s]=new Array(c-r+1).join(" ")+this.src.slice(a,l):f[s]=this.src.slice(a,l)}return f.join("")},ie.prototype.Token=mr;var Vc=ie,$c=Mt,ut=[["table",pc,["paragraph","reference"]],["code",hc],["fence",dc,["paragraph","reference","blockquote","list"]],["blockquote",gc,["paragraph","reference","blockquote","list"]],["hr",bc,["paragraph","reference","blockquote","list"]],["list",kc,["paragraph","reference","blockquote"]],["reference",wc],["html_block",Bc,["paragraph","reference","blockquote"]],["heading",Fc,["paragraph","reference","blockquote"]],["lheading",Pc],["paragraph",Uc]];function ft(){this.ruler=new $c;for(var t=0;t<ut.length;t++)this.ruler.push(ut[t][0],ut[t][1],{alt:(ut[t][2]||[]).slice()})}ft.prototype.tokenize=function(t,e,n){for(var r,o,s=this.ruler.getRules(""),c=s.length,i=e,a=!1,l=t.md.options.maxNesting;i<n&&(t.line=i=t.skipEmptyLines(i),!(i>=n||t.sCount[i]<t.blkIndent));){if(t.level>=l){t.line=n;break}for(o=0;o<c&&(r=s[o](t,i,n,!1),!r);o++);t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),i=t.line,i<n&&t.isEmpty(i)&&(a=!0,i++,t.line=i)}},ft.prototype.parse=function(t,e,n,r){var o;t&&(o=new this.State(t,e,n,r),this.tokenize(o,o.line,o.lineMax))},ft.prototype.State=Vc;var zc=ft;function Gc(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var Hc=function(e,n){for(var r=e.pos;r<e.posMax&&!Gc(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},jc=F.isSpace,Zc=function(e,n){var r,o,s,c=e.pos;if(e.src.charCodeAt(c)!==10)return!1;if(r=e.pending.length-1,o=e.posMax,!n)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(s=r-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(c++;c<o&&jc(e.src.charCodeAt(c));)c++;return e.pos=c,!0},Wc=F.isSpace,$t=[],br=0;br<256;br++)$t.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){$t[t.charCodeAt(0)]=1});var Jc=function(e,n){var r,o=e.pos,s=e.posMax;if(e.src.charCodeAt(o)!==92)return!1;if(o++,o<s){if(r=e.src.charCodeAt(o),r<256&&$t[r]!==0)return n||(e.pending+=e.src[o]),e.pos+=2,!0;if(r===10){for(n||e.push("hardbreak","br",0),o++;o<s&&(r=e.src.charCodeAt(o),!!Wc(r));)o++;return e.pos=o,!0}}return n||(e.pending+="\\"),e.pos++,!0},Kc=function(e,n){var r,o,s,c,i,a,l,f,p=e.pos,h=e.src.charCodeAt(p);if(h!==96)return!1;for(r=p,p++,o=e.posMax;p<o&&e.src.charCodeAt(p)===96;)p++;if(s=e.src.slice(r,p),l=s.length,e.backticksScanned&&(e.backticks[l]||0)<=r)return n||(e.pending+=s),e.pos+=l,!0;for(i=a=p;(i=e.src.indexOf("`",a))!==-1;){for(a=i+1;a<o&&e.src.charCodeAt(a)===96;)a++;if(f=a-i,f===l)return n||(c=e.push("code_inline","code",0),c.markup=s,c.content=e.src.slice(p,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[f]=i}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=l,!0},pt={};pt.tokenize=function(e,n){var r,o,s,c,i,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==126||(o=e.scanDelims(e.pos,!0),c=o.length,i=String.fromCharCode(l),c<2))return!1;for(c%2&&(s=e.push("text","",0),s.content=i,c--),r=0;r<c;r+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:l,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function _r(t,e){var n,r,o,s,c,i=[],a=e.length;for(n=0;n<a;n++)o=e[n],o.marker===126&&o.end!==-1&&(s=e[o.end],c=t.tokens[o.token],c.type="s_open",c.tag="s",c.nesting=1,c.markup="~~",c.content="",c=t.tokens[s.token],c.type="s_close",c.tag="s",c.nesting=-1,c.markup="~~",c.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&i.push(s.token-1));for(;i.length;){for(n=i.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(c=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=c)}}pt.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(_r(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&_r(e,r[n].delimiters)};var ht={};ht.tokenize=function(e,n){var r,o,s,c=e.pos,i=e.src.charCodeAt(c);if(n||i!==95&&i!==42)return!1;for(o=e.scanDelims(e.pos,i===42),r=0;r<o.length;r++)s=e.push("text","",0),s.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function kr(t,e){var n,r,o,s,c,i,a=e.length;for(n=a-1;n>=0;n--)r=e[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(o=e[r.end],i=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===o.token+1,c=String.fromCharCode(r.marker),s=t.tokens[r.token],s.type=i?"strong_open":"em_open",s.tag=i?"strong":"em",s.nesting=1,s.markup=i?c+c:c,s.content="",s=t.tokens[o.token],s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?c+c:c,s.content="",i&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}ht.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(kr(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&kr(e,r[n].delimiters)};var Yc=F.normalizeReference,zt=F.isSpace,Qc=function(e,n){var r,o,s,c,i,a,l,f,p,h="",d="",y=e.pos,E=e.posMax,D=e.pos,C=!0;if(e.src.charCodeAt(e.pos)!==91||(i=e.pos+1,c=e.md.helpers.parseLinkLabel(e,e.pos,!0),c<0))return!1;if(a=c+1,a<E&&e.src.charCodeAt(a)===40){for(C=!1,a++;a<E&&(o=e.src.charCodeAt(a),!(!zt(o)&&o!==10));a++);if(a>=E)return!1;if(D=a,l=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),l.ok){for(h=e.md.normalizeLink(l.str),e.md.validateLink(h)?a=l.pos:h="",D=a;a<E&&(o=e.src.charCodeAt(a),!(!zt(o)&&o!==10));a++);if(l=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<E&&D!==a&&l.ok)for(d=l.str,a=l.pos;a<E&&(o=e.src.charCodeAt(a),!(!zt(o)&&o!==10));a++);}(a>=E||e.src.charCodeAt(a)!==41)&&(C=!0),a++}if(C){if(typeof e.env.references>"u")return!1;if(a<E&&e.src.charCodeAt(a)===91?(D=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?s=e.src.slice(D,a++):a=c+1):a=c+1,s||(s=e.src.slice(i,c)),f=e.env.references[Yc(s)],!f)return e.pos=y,!1;h=f.href,d=f.title}return n||(e.pos=i,e.posMax=c,p=e.push("link_open","a",1),p.attrs=r=[["href",h]],d&&r.push(["title",d]),e.md.inline.tokenize(e),p=e.push("link_close","a",-1)),e.pos=a,e.posMax=E,!0},Xc=F.normalizeReference,Gt=F.isSpace,ei=function(e,n){var r,o,s,c,i,a,l,f,p,h,d,y,E,D="",C=e.pos,w=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,i=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),i<0))return!1;if(l=i+1,l<w&&e.src.charCodeAt(l)===40){for(l++;l<w&&(o=e.src.charCodeAt(l),!(!Gt(o)&&o!==10));l++);if(l>=w)return!1;for(E=l,p=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),p.ok&&(D=e.md.normalizeLink(p.str),e.md.validateLink(D)?l=p.pos:D=""),E=l;l<w&&(o=e.src.charCodeAt(l),!(!Gt(o)&&o!==10));l++);if(p=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<w&&E!==l&&p.ok)for(h=p.str,l=p.pos;l<w&&(o=e.src.charCodeAt(l),!(!Gt(o)&&o!==10));l++);else h="";if(l>=w||e.src.charCodeAt(l)!==41)return e.pos=C,!1;l++}else{if(typeof e.env.references>"u")return!1;if(l<w&&e.src.charCodeAt(l)===91?(E=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?c=e.src.slice(E,l++):l=i+1):l=i+1,c||(c=e.src.slice(a,i)),f=e.env.references[Xc(c)],!f)return e.pos=C,!1;D=f.href,h=f.title}return n||(s=e.src.slice(a,i),e.md.inline.parse(s,e.md,e.env,y=[]),d=e.push("image","img",0),d.attrs=r=[["src",D],["alt",""]],d.children=y,d.content=s,h&&r.push(["title",h])),e.pos=l,e.posMax=w,!0},ti=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,ni=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,ri=function(e,n){var r,o,s,c,i,a,l=e.pos;if(e.src.charCodeAt(l)!==60)return!1;for(i=e.pos,a=e.posMax;;){if(++l>=a||(c=e.src.charCodeAt(l),c===60))return!1;if(c===62)break}return r=e.src.slice(i+1,l),ni.test(r)?(o=e.md.normalizeLink(r),e.md.validateLink(o)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):ti.test(r)?(o=e.md.normalizeLink("mailto:"+r),e.md.validateLink(o)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):!1},oi=at.HTML_TAG_RE;function si(t){var e=t|32;return e>=97&&e<=122}var ci=function(e,n){var r,o,s,c,i=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(i)!==60||i+2>=s)||(r=e.src.charCodeAt(i+1),r!==33&&r!==63&&r!==47&&!si(r))||(o=e.src.slice(i).match(oi),!o)?!1:(n||(c=e.push("html_inline","",0),c.content=e.src.slice(i,i+o[0].length)),e.pos+=o[0].length,!0)},yr=Fn,ii=F.has,ai=F.isValidEntityCode,wr=F.fromCodePoint,li=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ui=/^&([a-z][a-z0-9]{1,31});/i,fi=function(e,n){var r,o,s,c=e.pos,i=e.posMax;if(e.src.charCodeAt(c)!==38)return!1;if(c+1<i){if(r=e.src.charCodeAt(c+1),r===35){if(s=e.src.slice(c).match(li),s)return n||(o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),e.pending+=ai(o)?wr(o):wr(65533)),e.pos+=s[0].length,!0}else if(s=e.src.slice(c).match(ui),s&&ii(yr,s[1]))return n||(e.pending+=yr[s[1]]),e.pos+=s[0].length,!0}return n||(e.pending+="&"),e.pos++,!0};function xr(t,e){var n,r,o,s,c,i,a,l,f={},p=e.length;if(p){var h=0,d=-2,y=[];for(n=0;n<p;n++)if(o=e[n],y.push(0),(e[h].marker!==o.marker||d!==o.token-1)&&(h=n),d=o.token,o.length=o.length||0,!!o.close){for(f.hasOwnProperty(o.marker)||(f[o.marker]=[-1,-1,-1,-1,-1,-1]),c=f[o.marker][(o.open?3:0)+o.length%3],r=h-y[h]-1,i=r;r>c;r-=y[r]+1)if(s=e[r],s.marker===o.marker&&s.open&&s.end<0&&(a=!1,(s.close||o.open)&&(s.length+o.length)%3===0&&(s.length%3!==0||o.length%3!==0)&&(a=!0),!a)){l=r>0&&!e[r-1].open?y[r-1]+1:0,y[n]=n-r+l,y[r]=l,o.open=!1,s.end=n,s.close=!1,i=-1,d=-2;break}i!==-1&&(f[o.marker][(o.open?3:0)+(o.length||0)%3]=i)}}}var pi=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(xr(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&xr(e,r[n].delimiters)},hi=function(e){var n,r,o=0,s=e.tokens,c=e.tokens.length;for(n=r=0;n<c;n++)s[n].nesting<0&&o--,s[n].level=o,s[n].nesting>0&&o++,s[n].type==="text"&&n+1<c&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==r&&(s[r]=s[n]),r++);n!==r&&(s.length=r)},Ht=Bt,Er=F.isWhiteSpace,vr=F.isPunctChar,Ar=F.isMdAsciiPunct;function $e(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}$e.prototype.pushPending=function(){var t=new Ht("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},$e.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new Ht(t,e,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},$e.prototype.scanDelims=function(t,e){var n=t,r,o,s,c,i,a,l,f,p,h=!0,d=!0,y=this.posMax,E=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;n<y&&this.src.charCodeAt(n)===E;)n++;return s=n-t,o=n<y?this.src.charCodeAt(n):32,l=Ar(r)||vr(String.fromCharCode(r)),p=Ar(o)||vr(String.fromCharCode(o)),a=Er(r),f=Er(o),f?h=!1:p&&(a||l||(h=!1)),a?d=!1:l&&(f||p||(d=!1)),e?(c=h,i=d):(c=h&&(!d||l),i=d&&(!h||p)),{can_open:c,can_close:i,length:s}},$e.prototype.Token=Ht;var di=$e,Cr=Mt,jt=[["text",Hc],["newline",Zc],["escape",Jc],["backticks",Kc],["strikethrough",pt.tokenize],["emphasis",ht.tokenize],["link",Qc],["image",ei],["autolink",ri],["html_inline",ci],["entity",fi]],Zt=[["balance_pairs",pi],["strikethrough",pt.postProcess],["emphasis",ht.postProcess],["text_collapse",hi]];function ze(){var t;for(this.ruler=new Cr,t=0;t<jt.length;t++)this.ruler.push(jt[t][0],jt[t][1]);for(this.ruler2=new Cr,t=0;t<Zt.length;t++)this.ruler2.push(Zt[t][0],Zt[t][1])}ze.prototype.skipToken=function(t){var e,n,r=t.pos,o=this.ruler.getRules(""),s=o.length,c=t.md.options.maxNesting,i=t.cache;if(typeof i[r]<"u"){t.pos=i[r];return}if(t.level<c)for(n=0;n<s&&(t.level++,e=o[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,i[r]=t.pos},ze.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),o=r.length,s=t.posMax,c=t.md.options.maxNesting;t.pos<s;){if(t.level<c)for(n=0;n<o&&(e=r[n](t,!1),!e);n++);if(e){if(t.pos>=s)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},ze.prototype.parse=function(t,e,n,r){var o,s,c,i=new this.State(t,e,n,r);for(this.tokenize(i),s=this.ruler2.getRules(""),c=s.length,o=0;o<c;o++)s[o](i)},ze.prototype.State=di;var gi=ze,Wt,Sr;function mi(){return Sr||(Sr=1,Wt=function(t){var e={};e.src_Any=Zn().source,e.src_Cc=Jn().source,e.src_Z=Qn().source,e.src_P=Rt.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+e.src_ZPCc+"))((?![$+<=>^`|])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+e.src_ZPCc+"))((?![$+<=>^`|])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Wt}function Jt(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function dt(t){return Object.prototype.toString.call(t)}function bi(t){return dt(t)==="[object String]"}function _i(t){return dt(t)==="[object Object]"}function ki(t){return dt(t)==="[object RegExp]"}function Dr(t){return dt(t)==="[object Function]"}function yi(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var qr={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function wi(t){return Object.keys(t||{}).reduce(function(e,n){return e||qr.hasOwnProperty(n)},!1)}var xi={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Ei="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",vi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Ai(t){t.__index__=-1,t.__text_cache__=""}function Ci(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Tr(){return function(t,e){e.normalize(t)}}function gt(t){var e=t.re=mi()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Ei),n.push(e.src_xn),e.src_tlds=n.join("|");function r(i){return i.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var o=[];t.__compiled__={};function s(i,a){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+a)}Object.keys(t.__schemas__).forEach(function(i){var a=t.__schemas__[i];if(a!==null){var l={validate:null,link:null};if(t.__compiled__[i]=l,_i(a)){ki(a.validate)?l.validate=Ci(a.validate):Dr(a.validate)?l.validate=a.validate:s(i,a),Dr(a.normalize)?l.normalize=a.normalize:a.normalize?s(i,a):l.normalize=Tr();return}if(bi(a)){o.push(i);return}s(i,a)}}),o.forEach(function(i){t.__compiled__[t.__schemas__[i]]&&(t.__compiled__[i].validate=t.__compiled__[t.__schemas__[i]].validate,t.__compiled__[i].normalize=t.__compiled__[t.__schemas__[i]].normalize)}),t.__compiled__[""]={validate:null,normalize:Tr()};var c=Object.keys(t.__compiled__).filter(function(i){return i.length>0&&t.__compiled__[i]}).map(yi).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><]|"+e.src_ZPCc+"))("+c+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><]|"+e.src_ZPCc+"))("+c+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Ai(t)}function Si(t,e){var n=t.__index__,r=t.__last_index__,o=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=o,this.text=o,this.url=o}function Rr(t,e){var n=new Si(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function ee(t,e){if(!(this instanceof ee))return new ee(t,e);e||wi(t)&&(e=t,t={}),this.__opts__=Jt({},qr,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Jt({},xi,t),this.__compiled__={},this.__tlds__=vi,this.__tlds_replaced__=!1,this.re={},gt(this)}ee.prototype.add=function(e,n){return this.__schemas__[e]=n,gt(this),this},ee.prototype.set=function(e){return this.__opts__=Jt(this.__opts__,e),this},ee.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,r,o,s,c,i,a,l,f;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(n=a.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],a.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(c=r.index+r[1].length,(this.__index__<0||c<this.__index__)&&(this.__schema__="",this.__index__=c,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=e.indexOf("@"),f>=0&&(o=e.match(this.re.email_fuzzy))!==null&&(c=o.index+o[1].length,i=o.index+o[0].length,(this.__index__<0||c<this.__index__||c===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=c,this.__last_index__=i))),this.__index__>=0},ee.prototype.pretest=function(e){return this.re.pretest.test(e)},ee.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0},ee.prototype.match=function(e){var n=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(Rr(this,n)),n=this.__last_index__);for(var o=n?e.slice(n):e;this.test(o);)r.push(Rr(this,n)),o=o.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},ee.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,o,s){return r!==s[o-1]}).reverse(),gt(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,gt(this),this)},ee.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},ee.prototype.onCompile=function(){};var Di=ee;const Oe=2147483647,ae=36,Kt=1,Ge=26,qi=38,Ti=700,Nr=72,Lr=128,Or="-",Ri=/^xn--/,Ni=/[^\0-\x7E]/,Li=/[\x2E\u3002\uFF0E\uFF61]/g,Oi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Yt=ae-Kt,le=Math.floor,Qt=String.fromCharCode;function xe(t){throw new RangeError(Oi[t])}function Ii(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Ir(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(Li,".");const o=t.split("."),s=Ii(o,e).join(".");return r+s}function Xt(t){const e=[];let n=0;const r=t.length;for(;n<r;){const o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((o&1023)<<10)+(s&1023)+65536):(e.push(o),n--)}else e.push(o)}return e}const Mr=t=>String.fromCodePoint(...t),Mi=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:ae},Br=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Fr=function(t,e,n){let r=0;for(t=n?le(t/Ti):t>>1,t+=le(t/e);t>Yt*Ge>>1;r+=ae)t=le(t/Yt);return le(r+(Yt+1)*t/(t+qi))},en=function(t){const e=[],n=t.length;let r=0,o=Lr,s=Nr,c=t.lastIndexOf(Or);c<0&&(c=0);for(let i=0;i<c;++i)t.charCodeAt(i)>=128&&xe("not-basic"),e.push(t.charCodeAt(i));for(let i=c>0?c+1:0;i<n;){let a=r;for(let f=1,p=ae;;p+=ae){i>=n&&xe("invalid-input");const h=Mi(t.charCodeAt(i++));(h>=ae||h>le((Oe-r)/f))&&xe("overflow"),r+=h*f;const d=p<=s?Kt:p>=s+Ge?Ge:p-s;if(h<d)break;const y=ae-d;f>le(Oe/y)&&xe("overflow"),f*=y}const l=e.length+1;s=Fr(r-a,l,a==0),le(r/l)>Oe-o&&xe("overflow"),o+=le(r/l),r%=l,e.splice(r++,0,o)}return String.fromCodePoint(...e)},tn=function(t){const e=[];t=Xt(t);let n=t.length,r=Lr,o=0,s=Nr;for(const a of t)a<128&&e.push(Qt(a));let c=e.length,i=c;for(c&&e.push(Or);i<n;){let a=Oe;for(const f of t)f>=r&&f<a&&(a=f);const l=i+1;a-r>le((Oe-o)/l)&&xe("overflow"),o+=(a-r)*l,r=a;for(const f of t)if(f<r&&++o>Oe&&xe("overflow"),f===r){let p=o;for(let h=ae;;h+=ae){const d=h<=s?Kt:h>=s+Ge?Ge:h-s;if(p<d)break;const y=p-d,E=ae-d;e.push(Qt(Br(d+y%E,0))),p=le(y/E)}e.push(Qt(Br(p,0))),s=Fr(o,l,i===c),o=0,++i}++o,++r}return e.join("")},Pr=function(t){return Ir(t,function(e){return Ri.test(e)?en(e.slice(4).toLowerCase()):e})},Ur=function(t){return Ir(t,function(e){return Ni.test(e)?"xn--"+tn(e):e})},Bi=_s(Object.freeze(Object.defineProperty({__proto__:null,decode:en,default:{version:"2.1.0",ucs2:{decode:Xt,encode:Mr},decode:en,encode:tn,toASCII:Ur,toUnicode:Pr},encode:tn,toASCII:Ur,toUnicode:Pr,ucs2decode:Xt,ucs2encode:Mr},Symbol.toStringTag,{value:"Module"})));var Fi={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Pi={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},Ui={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}},He=F,Vi=st,$i=$s,zi=fc,Gi=zc,Hi=gi,ji=Di,Ee=Te,Vr=Bi,Zi={default:Fi,zero:Pi,commonmark:Ui},Wi=/^(vbscript|javascript|file|data):/,Ji=/^data:image\/(gif|png|jpeg|webp);/;function Ki(t){var e=t.trim().toLowerCase();return Wi.test(e)?!!Ji.test(e):!0}var $r=["http:","https:","mailto:"];function Yi(t){var e=Ee.parse(t,!0);if(e.hostname&&(!e.protocol||$r.indexOf(e.protocol)>=0))try{e.hostname=Vr.toASCII(e.hostname)}catch{}return Ee.encode(Ee.format(e))}function Qi(t){var e=Ee.parse(t,!0);if(e.hostname&&(!e.protocol||$r.indexOf(e.protocol)>=0))try{e.hostname=Vr.toUnicode(e.hostname)}catch{}return Ee.decode(Ee.format(e),Ee.decode.defaultChars+"%")}function te(t,e){if(!(this instanceof te))return new te(t,e);e||He.isString(t)||(e=t||{},t="default"),this.inline=new Hi,this.block=new Gi,this.core=new zi,this.renderer=new $i,this.linkify=new ji,this.validateLink=Ki,this.normalizeLink=Yi,this.normalizeLinkText=Qi,this.utils=He,this.helpers=He.assign({},Vi),this.options={},this.configure(t),e&&this.set(e)}te.prototype.set=function(t){return He.assign(this.options,t),this},te.prototype.configure=function(t){var e=this,n;if(He.isString(t)&&(n=t,t=Zi[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enableOnly(t.components[r].rules),t.components[r].rules2&&e[r].ruler2.enableOnly(t.components[r].rules2)}),this},te.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(o){return n.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},te.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(o){return n.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},te.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},te.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},te.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},te.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},te.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Xi=te,ea=Xi;const ta=Bn(ea);var na=u.defineComponent({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,required:!1}},data:function(){return{md:null}},computed:{content:function(){var t,e=this.source;return(t=this.md)===null||t===void 0?void 0:t.render(e)}},created:function(){var t;this.md=new ta((t=this.options)!==null&&t!==void 0?t:{})},render:function(){return u.h("div",{innerHTML:this.content})}});const ra=na;function zr(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&zr(n)}),t}class Gr{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Hr(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function ge(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const o in r)n[o]=r[o]}),n}const oa="</span>",jr=t=>!!t.scope,sa=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${e}${t}`};class ca{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Hr(e)}openNode(e){if(!jr(e))return;const n=sa(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){jr(e)&&(this.buffer+=oa)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Zr=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class nn{constructor(){this.rootNode=Zr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=Zr({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{nn._collapse(n)}))}}class ia extends nn{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new ca(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function je(t){return t?typeof t=="string"?t:t.source:null}function Wr(t){return ve("(?=",t,")")}function aa(t){return ve("(?:",t,")*")}function la(t){return ve("(?:",t,")?")}function ve(...t){return t.map(n=>je(n)).join("")}function ua(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function rn(...t){return"("+(ua(t).capture?"":"?:")+t.map(r=>je(r)).join("|")+")"}function Jr(t){return new RegExp(t.toString()+"|").exec("").length-1}function fa(t,e){const n=t&&t.exec(e);return n&&n.index===0}const pa=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function on(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const o=n;let s=je(r),c="";for(;s.length>0;){const i=pa.exec(s);if(!i){c+=s;break}c+=s.substring(0,i.index),s=s.substring(i.index+i[0].length),i[0][0]==="\\"&&i[1]?c+="\\"+String(Number(i[1])+o):(c+=i[0],i[0]==="("&&n++)}return c}).map(r=>`(${r})`).join(e)}const ha=/\b\B/,Kr="[a-zA-Z]\\w*",sn="[a-zA-Z_]\\w*",Yr="\\b\\d+(\\.\\d+)?",Qr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Xr="\\b(0b[01]+)",da="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ga=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=ve(e,/.*\b/,t.binary,/\b.*/)),ge({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},Ze={begin:"\\\\[\\s\\S]",relevance:0},ma={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ze]},ba={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ze]},_a={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},mt=function(t,e,n={}){const r=ge({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=rn("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:ve(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},ka=mt("//","$"),ya=mt("/\\*","\\*/"),wa=mt("#","$"),xa={scope:"number",begin:Yr,relevance:0},Ea={scope:"number",begin:Qr,relevance:0},va={scope:"number",begin:Xr,relevance:0},Aa={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Ze,{begin:/\[/,end:/\]/,relevance:0,contains:[Ze]}]}]},Ca={scope:"title",begin:Kr,relevance:0},Sa={scope:"title",begin:sn,relevance:0},Da={begin:"\\.\\s*"+sn,relevance:0};var bt=Object.freeze({__proto__:null,MATCH_NOTHING_RE:ha,IDENT_RE:Kr,UNDERSCORE_IDENT_RE:sn,NUMBER_RE:Yr,C_NUMBER_RE:Qr,BINARY_NUMBER_RE:Xr,RE_STARTERS_RE:da,SHEBANG:ga,BACKSLASH_ESCAPE:Ze,APOS_STRING_MODE:ma,QUOTE_STRING_MODE:ba,PHRASAL_WORDS_MODE:_a,COMMENT:mt,C_LINE_COMMENT_MODE:ka,C_BLOCK_COMMENT_MODE:ya,HASH_COMMENT_MODE:wa,NUMBER_MODE:xa,C_NUMBER_MODE:Ea,BINARY_NUMBER_MODE:va,REGEXP_MODE:Aa,TITLE_MODE:Ca,UNDERSCORE_TITLE_MODE:Sa,METHOD_GUARD:Da,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}});function qa(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function Ta(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function Ra(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=qa,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function Na(t,e){Array.isArray(t.illegal)&&(t.illegal=rn(...t.illegal))}function La(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function Oa(t,e){t.relevance===void 0&&(t.relevance=1)}const Ia=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=ve(n.beforeMatch,Wr(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},Ma=["of","and","for","in","not","or","if","then","parent","list","value"],Ba="keyword";function eo(t,e,n=Ba){const r=Object.create(null);return typeof t=="string"?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach(function(s){Object.assign(r,eo(t[s],e,s))}),r;function o(s,c){e&&(c=c.map(i=>i.toLowerCase())),c.forEach(function(i){const a=i.split("|");r[a[0]]=[s,Fa(a[0],a[1])]})}}function Fa(t,e){return e?Number(e):Pa(t)?0:1}function Pa(t){return Ma.includes(t.toLowerCase())}const to={},Ae=t=>{console.error(t)},no=(t,...e)=>{console.log(`WARN: ${t}`,...e)},Ie=(t,e)=>{to[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),to[`${t}/${e}`]=!0)},_t=new Error;function ro(t,e,{key:n}){let r=0;const o=t[n],s={},c={};for(let i=1;i<=e.length;i++)c[i+r]=o[i],s[i+r]=!0,r+=Jr(e[i-1]);t[n]=c,t[n]._emit=s,t[n]._multi=!0}function Ua(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),_t;if(typeof t.beginScope!="object"||t.beginScope===null)throw Ae("beginScope must be object"),_t;ro(t,t.begin,{key:"beginScope"}),t.begin=on(t.begin,{joinWith:""})}}function Va(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"),_t;if(typeof t.endScope!="object"||t.endScope===null)throw Ae("endScope must be object"),_t;ro(t,t.end,{key:"endScope"}),t.end=on(t.end,{joinWith:""})}}function $a(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function za(t){$a(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),Ua(t),Va(t)}function Ga(t){function e(c,i){return new RegExp(je(c),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(i?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(i,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,i]),this.matchAt+=Jr(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const i=this.regexes.map(a=>a[1]);this.matcherRe=e(on(i,{joinWith:"|"}),!0),this.lastIndex=0}exec(i){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(i);if(!a)return null;const l=a.findIndex((p,h)=>h>0&&p!==void 0),f=this.matchIndexes[l];return a.splice(0,l),Object.assign(a,f)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(i){if(this.multiRegexes[i])return this.multiRegexes[i];const a=new n;return this.rules.slice(i).forEach(([l,f])=>a.addRule(l,f)),a.compile(),this.multiRegexes[i]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(i,a){this.rules.push([i,a]),a.type==="begin"&&this.count++}exec(i){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let l=a.exec(i);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){const f=this.getMatcher(0);f.lastIndex=this.lastIndex+1,l=f.exec(i)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function o(c){const i=new r;return c.contains.forEach(a=>i.addRule(a.begin,{rule:a,type:"begin"})),c.terminatorEnd&&i.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&i.addRule(c.illegal,{type:"illegal"}),i}function s(c,i){const a=c;if(c.isCompiled)return a;[Ta,La,za,Ia].forEach(f=>f(c,i)),t.compilerExtensions.forEach(f=>f(c,i)),c.__beforeBegin=null,[Ra,Na,Oa].forEach(f=>f(c,i)),c.isCompiled=!0;let l=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),l=c.keywords.$pattern,delete c.keywords.$pattern),l=l||/\w+/,c.keywords&&(c.keywords=eo(c.keywords,t.case_insensitive)),a.keywordPatternRe=e(l,!0),i&&(c.begin||(c.begin=/\B|\b/),a.beginRe=e(a.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(a.endRe=e(a.end)),a.terminatorEnd=je(a.end)||"",c.endsWithParent&&i.terminatorEnd&&(a.terminatorEnd+=(c.end?"|":"")+i.terminatorEnd)),c.illegal&&(a.illegalRe=e(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(f){return Ha(f==="self"?c:f)})),c.contains.forEach(function(f){s(f,a)}),c.starts&&s(c.starts,i),a.matcher=o(a),a}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=ge(t.classNameAliases||{}),s(t)}function oo(t){return t?t.endsWithParent||oo(t.starts):!1}function Ha(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return ge(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:oo(t)?ge(t,{starts:t.starts?ge(t.starts):null}):Object.isFrozen(t)?ge(t):t}var ja="11.8.0";class Za extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const cn=Hr,so=ge,co=Symbol("nomatch"),Wa=7,io=function(t){const e=Object.create(null),n=Object.create(null),r=[];let o=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let i={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ia};function a(g){return i.noHighlightRe.test(g)}function l(g){let k=g.className+" ";k+=g.parentNode?g.parentNode.className:"";const L=i.languageDetectRe.exec(k);if(L){const B=$(L[1]);return B||(no(s.replace("{}",L[1])),no("Falling back to no-highlight mode for this block.",g)),B?L[1]:"no-highlight"}return k.split(/\s+/).find(B=>a(B)||$(B))}function f(g,k,L){let B="",H="";typeof k=="object"?(B=g,L=k.ignoreIllegals,H=k.language):(Ie("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ie("10.7.0",`Please use highlight(code, options) instead.
29
- https://github.com/highlightjs/highlight.js/issues/2277`),H=g,B=k),L===void 0&&(L=!0);const Y={code:B,language:H};P("before:highlight",Y);const oe=Y.result?Y.result:p(Y.language,Y.code,L);return oe.code=Y.code,P("after:highlight",oe),oe}function p(g,k,L,B){const H=Object.create(null);function Y(A,q){return A.keywords[q]}function oe(){if(!N.keywords){W.addText(z);return}let A=0;N.keywordPatternRe.lastIndex=0;let q=N.keywordPatternRe.exec(z),O="";for(;q;){O+=z.substring(A,q.index);const U=fe.case_insensitive?q[0].toLowerCase():q[0],K=Y(N,U);if(K){const[he,Ul]=K;if(W.addText(O),O="",H[U]=(H[U]||0)+1,H[U]<=Wa&&(Et+=Ul),he.startsWith("_"))O+=q[0];else{const Vl=fe.classNameAliases[he]||he;ue(q[0],Vl)}}else O+=q[0];A=N.keywordPatternRe.lastIndex,q=N.keywordPatternRe.exec(z)}O+=z.substring(A),W.addText(O)}function wt(){if(z==="")return;let A=null;if(typeof N.subLanguage=="string"){if(!e[N.subLanguage]){W.addText(z);return}A=p(N.subLanguage,z,!0,wo[N.subLanguage]),wo[N.subLanguage]=A._top}else A=d(z,N.subLanguage.length?N.subLanguage:null);N.relevance>0&&(Et+=A.relevance),W.__addSublanguage(A._emitter,A.language)}function Q(){N.subLanguage!=null?wt():oe(),z=""}function ue(A,q){A!==""&&(W.startScope(q),W.addText(A),W.endScope())}function bo(A,q){let O=1;const U=q.length-1;for(;O<=U;){if(!A._emit[O]){O++;continue}const K=fe.classNameAliases[A[O]]||A[O],he=q[O];K?ue(he,K):(z=he,oe(),z=""),O++}}function _o(A,q){return A.scope&&typeof A.scope=="string"&&W.openNode(fe.classNameAliases[A.scope]||A.scope),A.beginScope&&(A.beginScope._wrap?(ue(z,fe.classNameAliases[A.beginScope._wrap]||A.beginScope._wrap),z=""):A.beginScope._multi&&(bo(A.beginScope,q),z="")),N=Object.create(A,{parent:{value:N}}),N}function ko(A,q,O){let U=fa(A.endRe,O);if(U){if(A["on:end"]){const K=new Gr(A);A["on:end"](q,K),K.isMatchIgnored&&(U=!1)}if(U){for(;A.endsParent&&A.parent;)A=A.parent;return A}}if(A.endsWithParent)return ko(A.parent,q,O)}function Il(A){return N.matcher.regexIndex===0?(z+=A[0],1):(hn=!0,0)}function Ml(A){const q=A[0],O=A.rule,U=new Gr(O),K=[O.__beforeBegin,O["on:begin"]];for(const he of K)if(he&&(he(A,U),U.isMatchIgnored))return Il(q);return O.skip?z+=q:(O.excludeBegin&&(z+=q),Q(),!O.returnBegin&&!O.excludeBegin&&(z=q)),_o(O,A),O.returnBegin?0:q.length}function Bl(A){const q=A[0],O=k.substring(A.index),U=ko(N,A,O);if(!U)return co;const K=N;N.endScope&&N.endScope._wrap?(Q(),ue(q,N.endScope._wrap)):N.endScope&&N.endScope._multi?(Q(),bo(N.endScope,A)):K.skip?z+=q:(K.returnEnd||K.excludeEnd||(z+=q),Q(),K.excludeEnd&&(z=q));do N.scope&&W.closeNode(),!N.skip&&!N.subLanguage&&(Et+=N.relevance),N=N.parent;while(N!==U.parent);return U.starts&&_o(U.starts,A),K.returnEnd?0:q.length}function Fl(){const A=[];for(let q=N;q!==fe;q=q.parent)q.scope&&A.unshift(q.scope);A.forEach(q=>W.openNode(q))}let xt={};function yo(A,q){const O=q&&q[0];if(z+=A,O==null)return Q(),0;if(xt.type==="begin"&&q.type==="end"&&xt.index===q.index&&O===""){if(z+=k.slice(q.index,q.index+1),!o){const U=new Error(`0 width match regex (${g})`);throw U.languageName=g,U.badRule=xt.rule,U}return 1}if(xt=q,q.type==="begin")return Ml(q);if(q.type==="illegal"&&!L){const U=new Error('Illegal lexeme "'+O+'" for mode "'+(N.scope||"<unnamed>")+'"');throw U.mode=N,U}else if(q.type==="end"){const U=Bl(q);if(U!==co)return U}if(q.type==="illegal"&&O==="")return 1;if(pn>1e5&&pn>q.index*3)throw new Error("potential infinite loop, way more iterations than matches");return z+=O,O.length}const fe=$(g);if(!fe)throw Ae(s.replace("{}",g)),new Error('Unknown language: "'+g+'"');const Pl=Ga(fe);let fn="",N=B||Pl;const wo={},W=new i.__emitter(i);Fl();let z="",Et=0,Ce=0,pn=0,hn=!1;try{if(fe.__emitTokens)fe.__emitTokens(k,W);else{for(N.matcher.considerAll();;){pn++,hn?hn=!1:N.matcher.considerAll(),N.matcher.lastIndex=Ce;const A=N.matcher.exec(k);if(!A)break;const q=k.substring(Ce,A.index),O=yo(q,A);Ce=A.index+O}yo(k.substring(Ce))}return W.finalize(),fn=W.toHTML(),{language:g,value:fn,relevance:Et,illegal:!1,_emitter:W,_top:N}}catch(A){if(A.message&&A.message.includes("Illegal"))return{language:g,value:cn(k),illegal:!0,relevance:0,_illegalBy:{message:A.message,index:Ce,context:k.slice(Ce-100,Ce+100),mode:A.mode,resultSoFar:fn},_emitter:W};if(o)return{language:g,value:cn(k),illegal:!1,relevance:0,errorRaised:A,_emitter:W,_top:N};throw A}}function h(g){const k={value:cn(g),illegal:!1,relevance:0,_top:c,_emitter:new i.__emitter(i)};return k._emitter.addText(g),k}function d(g,k){k=k||i.languages||Object.keys(e);const L=h(g),B=k.filter($).filter(b).map(Q=>p(Q,g,!1));B.unshift(L);const H=B.sort((Q,ue)=>{if(Q.relevance!==ue.relevance)return ue.relevance-Q.relevance;if(Q.language&&ue.language){if($(Q.language).supersetOf===ue.language)return 1;if($(ue.language).supersetOf===Q.language)return-1}return 0}),[Y,oe]=H,wt=Y;return wt.secondBest=oe,wt}function y(g,k,L){const B=k&&n[k]||L;g.classList.add("hljs"),g.classList.add(`language-${B}`)}function E(g){let k=null;const L=l(g);if(a(L))return;if(P("before:highlightElement",{el:g,language:L}),g.children.length>0&&(i.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(g)),i.throwUnescapedHTML))throw new Za("One of your code blocks includes unescaped HTML.",g.innerHTML);k=g;const B=k.textContent,H=L?f(B,{language:L,ignoreIllegals:!0}):d(B);g.innerHTML=H.value,y(g,L,H.language),g.result={language:H.language,re:H.relevance,relevance:H.relevance},H.secondBest&&(g.secondBest={language:H.secondBest.language,relevance:H.secondBest.relevance}),P("after:highlightElement",{el:g,result:H,text:B})}function D(g){i=so(i,g)}const C=()=>{T(),Ie("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function w(){T(),Ie("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let S=!1;function T(){if(document.readyState==="loading"){S=!0;return}document.querySelectorAll(i.cssSelector).forEach(E)}function R(){S&&T()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function x(g,k){let L=null;try{L=k(t)}catch(B){if(Ae("Language definition for '{}' could not be registered.".replace("{}",g)),o)Ae(B);else throw B;L=c}L.name||(L.name=g),e[g]=L,L.rawDefinition=k.bind(null,t),L.aliases&&m(L.aliases,{languageName:g})}function v(g){delete e[g];for(const k of Object.keys(n))n[k]===g&&delete n[k]}function V(){return Object.keys(e)}function $(g){return g=(g||"").toLowerCase(),e[g]||e[n[g]]}function m(g,{languageName:k}){typeof g=="string"&&(g=[g]),g.forEach(L=>{n[L.toLowerCase()]=k})}function b(g){const k=$(g);return k&&!k.disableAutodetect}function M(g){g["before:highlightBlock"]&&!g["before:highlightElement"]&&(g["before:highlightElement"]=k=>{g["before:highlightBlock"](Object.assign({block:k.el},k))}),g["after:highlightBlock"]&&!g["after:highlightElement"]&&(g["after:highlightElement"]=k=>{g["after:highlightBlock"](Object.assign({block:k.el},k))})}function G(g){M(g),r.push(g)}function _(g){const k=r.indexOf(g);k!==-1&&r.splice(k,1)}function P(g,k){const L=g;r.forEach(function(B){B[L]&&B[L](k)})}function I(g){return Ie("10.7.0","highlightBlock will be removed entirely in v12.0"),Ie("10.7.0","Please use highlightElement now."),E(g)}Object.assign(t,{highlight:f,highlightAuto:d,highlightAll:T,highlightElement:E,highlightBlock:I,configure:D,initHighlighting:C,initHighlightingOnLoad:w,registerLanguage:x,unregisterLanguage:v,listLanguages:V,getLanguage:$,registerAliases:m,autoDetection:b,inherit:so,addPlugin:G,removePlugin:_}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=ja,t.regex={concat:ve,lookahead:Wr,either:rn,optional:la,anyNumberOfTimes:aa};for(const g in bt)typeof bt[g]=="object"&&zr(bt[g]);return Object.assign(t,bt),t},Me=io({});Me.newInstance=()=>io({});var Ja=Me;Me.HighlightJS=Me,Me.default=Me;const kt=Bn(Ja),an=u.defineComponent({__name:"Message",props:{message:{type:Object,required:!0}},setup(t){const e=t,{message:n}=u.toRefs(e),r=u.computed(()=>({"chat-message-from-user":n.value.sender==="user","chat-message-from-bot":n.value.sender==="bot"})),o={highlight(s,c){if(c&&kt.getLanguage(c))try{return kt.highlight(s,{language:c}).value}catch{}return""}};return(s,c)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["chat-message",r.value])},[u.renderSlot(s.$slots,"default",{},()=>[u.createVNode(u.unref(ra),{class:"chat-message-markdown",source:u.unref(n).text,options:o},null,8,["source"])])],2))}}),bH="",Ka=u.createElementVNode("div",{class:"chat-message-typing-body"},[u.createElementVNode("span",{class:"chat-message-typing-circle"}),u.createElementVNode("span",{class:"chat-message-typing-circle"}),u.createElementVNode("span",{class:"chat-message-typing-circle"})],-1),Ya=u.defineComponent({__name:"MessageTyping",props:{animation:{type:String,default:"bouncing"}},setup(t){const e=t,n={id:"typing",text:"",sender:"bot",createdAt:""},r=u.computed(()=>({"chat-message-typing":!0,[`chat-message-typing-animation-${e.animation}`]:!0}));return(o,s)=>(u.openBlock(),u.createBlock(u.unref(an),{class:u.normalizeClass(r.value),message:n},{default:u.withCtx(()=>[Ka]),_:1},8,["class"]))}}),_H="";var yt,Qa=new Uint8Array(16);function Xa(){if(!yt&&(yt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!yt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yt(Qa)}const el=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function tl(t){return typeof t=="string"&&el.test(t)}for(var Z=[],ln=0;ln<256;++ln)Z.push((ln+256).toString(16).substr(1));function nl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Z[t[e+0]]+Z[t[e+1]]+Z[t[e+2]]+Z[t[e+3]]+"-"+Z[t[e+4]]+Z[t[e+5]]+"-"+Z[t[e+6]]+Z[t[e+7]]+"-"+Z[t[e+8]]+Z[t[e+9]]+"-"+Z[t[e+10]]+Z[t[e+11]]+Z[t[e+12]]+Z[t[e+13]]+Z[t[e+14]]+Z[t[e+15]]).toLowerCase();if(!tl(n))throw TypeError("Stringified UUID is invalid");return n}function We(t,e,n){t=t||{};var r=t.random||(t.rng||Xa)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return nl(r)}async function rl(){return""}async function ao(...t){var r;const e=await rl();return await(await fetch(t[0],{...t[1],mode:"cors",cache:"no-cache",headers:{...e?{authorization:`Bearer ${e}`}:{},...(r=t[1])==null?void 0:r.headers}})).json()}async function lo(t,e={},n={}){let r=t;return Object.keys(e).length>0&&(r=`${r}?${new URLSearchParams(e).toString()}`),ao(r,{...n,method:"GET"})}async function uo(t,e={},n={}){return ao(t,{...n,method:"POST",body:JSON.stringify(e)})}async function ol(t,e){var r,o;return(((r=e.webhookConfig)==null?void 0:r.method)==="POST"?uo:lo)(`${e.webhookUrl}`,{action:"loadPreviousSession",sessionId:t},{headers:(o=e.webhookConfig)==null?void 0:o.headers})}async function sl(t,e,n){var o,s;return(((o=n.webhookConfig)==null?void 0:o.method)==="POST"?uo:lo)(`${n.webhookUrl}`,{action:"sendMessage",sessionId:e,message:t},{headers:(s=n.webhookConfig)==null?void 0:s.headers})}const un=Ko("chat",()=>{const{options:t}=Ve(),e=u.ref([]),n=u.ref(null),r=u.ref(!1),o=u.computed(()=>(t.initialMessages??[]).map(a=>({id:We(),text:a,sender:"bot",createdAt:new Date().toISOString()})));async function s(a){const l={id:We(),text:a,sender:"user",createdAt:new Date().toISOString()};e.value.push(l),r.value=!0,u.nextTick(()=>{ke.emit("scrollToBottom")});const f=await sl(a,n.value,t),p={id:We(),text:f.output,sender:"bot",createdAt:new Date().toISOString()};e.value.push(p),r.value=!1,u.nextTick(()=>{ke.emit("scrollToBottom")})}async function c(){const a=localStorage.getItem(In)??We(),l=await ol(a,t),f=new Date().toISOString();return e.value=((l==null?void 0:l.data)||[]).map((p,h)=>({id:`${h}`,text:p.kwargs.content,sender:p.id.includes("HumanMessage")?"user":"bot",createdAt:f})),e.value.length&&(n.value=a),a}async function i(){n.value=We(),localStorage.setItem(In,n.value)}return{initialMessages:o,messages:e,currentSessionId:n,waitingForResponse:r,loadPreviousSession:c,startNewSession:i,sendMessage:s}}),cl={class:"chat-messages-list"},il=u.defineComponent({__name:"MessagesList",props:{messages:{type:Array,required:!0}},setup(t){const e=un(),{initialMessages:n,waitingForResponse:r}=Ln(e);return(o,s)=>(u.openBlock(),u.createElementBlock("div",cl,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(n),c=>(u.openBlock(),u.createBlock(an,{key:c.id,message:c},null,8,["message"]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.messages,c=>(u.openBlock(),u.createBlock(an,{key:c.id,message:c},null,8,["message"]))),128)),u.unref(r)?(u.openBlock(),u.createBlock(Ya,{key:0})):u.createCommentVNode("",!0)]))}}),kH="",al={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ll=[u.createElementVNode("path",{fill:"currentColor",d:"m2 21l21-9L2 3v7l15 2l-15 2v7Z"},null,-1)];function ul(t,e){return u.openBlock(),u.createElementBlock("svg",al,ll)}const fl={name:"mdi-send",render:ul},pl={class:"chat-input"},hl=["placeholder","onKeydown"],dl=["disabled"],gl=u.defineComponent({__name:"Input",setup(t){const e=un(),{waitingForResponse:n}=Ln(e),{t:r}=tt(),o=u.ref(""),s=u.computed(()=>o.value===""||n.value);async function c(a){if(a.preventDefault(),s.value)return;const l=o.value;o.value="",await e.sendMessage(l)}async function i(a){a.shiftKey||await c(a)}return(a,l)=>(u.openBlock(),u.createElementBlock("div",pl,[u.withDirectives(u.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=f=>o.value=f),rows:"1",placeholder:u.unref(r)("inputPlaceholder"),onKeydown:u.withKeys(i,["enter"])},null,40,hl),[[u.vModelText,o.value]]),u.createElementVNode("button",{disabled:s.value,class:"chat-input-send-button",onClick:c},[u.createVNode(u.unref(fl),{height:"32",width:"32"})],8,dl)]))}}),wH="",fo=u.defineComponent({__name:"Chat",setup(t){const{options:e}=Ve(),{t:n,te:r}=tt(),o=un(),{messages:s,currentSessionId:c}=u.toRefs(o),i=u.computed(()=>!!e.poweredBy||r("footer")||!!c.value);async function a(){await o.loadPreviousSession(),u.nextTick(()=>{ke.emit("scrollToBottom")})}async function l(){o.startNewSession(),u.nextTick(()=>{ke.emit("scrollToBottom")})}return u.onMounted(()=>{a()}),(f,p)=>(u.openBlock(),u.createBlock(cs,{class:"chat-wrapper"},u.createSlots({default:u.withCtx(()=>[u.unref(c)?(u.openBlock(),u.createBlock(il,{key:1,messages:u.unref(s)},null,8,["messages"])):(u.openBlock(),u.createBlock(ls,{key:0,"onClick:button":l}))]),_:2},[u.unref(c)?void 0:{name:"header",fn:u.withCtx(()=>[u.createElementVNode("h1",null,u.toDisplayString(u.unref(n)("title")),1),u.createElementVNode("p",null,u.toDisplayString(u.unref(n)("subtitle")),1)]),key:"0"},i.value?{name:"footer",fn:u.withCtx(()=>[u.unref(c)?(u.openBlock(),u.createBlock(gl,{key:0})):(u.openBlock(),u.createBlock(bs,{key:1}))]),key:"1"}:void 0]),1024))}}),ml={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bl=[u.createElementVNode("path",{fill:"currentColor",d:"M12 3c5.5 0 10 3.58 10 8s-4.5 8-10 8c-1.24 0-2.43-.18-3.53-.5C5.55 21 2 21 2 21c2.33-2.33 2.7-3.9 2.75-4.5C3.05 15.07 2 13.13 2 11c0-4.42 4.5-8 10-8Z"},null,-1)];function _l(t,e){return u.openBlock(),u.createElementBlock("svg",ml,bl)}const kl={name:"mdi-chat",render:_l},yl={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},wl=[u.createElementVNode("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"},null,-1)];function xl(t,e){return u.openBlock(),u.createElementBlock("svg",yl,wl)}const El={name:"mdi-chevron-down",render:xl},vl={class:"chat-window-wrapper"},Al={class:"chat-window"},Cl=u.defineComponent({__name:"ChatWindow",setup(t){const e=u.ref(!1);function n(){e.value=!e.value,e.value&&u.nextTick(()=>{ke.emit("scrollToBottom")})}return(r,o)=>(u.openBlock(),u.createElementBlock("div",vl,[u.createVNode(u.Transition,{name:"chat-window-transition"},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("div",Al,[u.createVNode(fo)],512),[[u.vShow,e.value]])]),_:1}),u.createElementVNode("div",{class:"chat-window-toggle",onClick:n},[u.createVNode(u.Transition,{name:"chat-window-toggle-transition",mode:"out-in"},{default:u.withCtx(()=>[e.value?(u.openBlock(),u.createBlock(u.unref(El),{key:1,height:"32",width:"32"})):(u.openBlock(),u.createBlock(u.unref(kl),{key:0,height:"32",width:"32"}))]),_:1})])]))}}),vH="";function Sl(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=t.inherit(s,{begin:/\(/,end:/\)/}),i=t.inherit(t.APOS_STRING_MODE,{className:"string"}),a=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,a,i,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,c,a,i]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const po="[A-Za-z$_][0-9A-Za-z$_]*",Dl=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],ql=["true","false","null","undefined","NaN","Infinity"],ho=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],go=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mo=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Tl=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Rl=[].concat(mo,ho,go);function Nl(t){const e=t.regex,n=(k,{after:L})=>{const B="</"+k[0].slice(1);return k.input.indexOf(B,L)!==-1},r=po,o={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(k,L)=>{const B=k[0].length+k.index,H=k.input[B];if(H==="<"||H===","){L.ignoreMatch();return}H===">"&&(n(k,{after:B})||L.ignoreMatch());let Y;const oe=k.input.substring(B);if(Y=oe.match(/^\s*=/)){L.ignoreMatch();return}if((Y=oe.match(/^\s+extends\s+/))&&Y.index===0){L.ignoreMatch();return}}},i={$pattern:po,keyword:Dl,literal:ql,built_in:Rl,"variable.language":Tl},a="[0-9](_?[0-9])*",l=`\\.(${a})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${f})((${l})|\\.)?|(${l}))[eE][+-]?(${a})\\b`},{begin:`\\b(${f})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"css"}},E={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},D={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,h]},w={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},S=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,y,E,D,{match:/\$\d+/},p];h.contains=S.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(S)});const T=[].concat(w,h.contains),R=T.concat([{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(T)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:R},v={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},V={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...ho,...go]}},$={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},m={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},b={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function M(k){return e.concat("(?!",k.join("|"),")")}const G={match:e.concat(/\b/,M([...mo,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},_={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},P={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},I="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",g={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(I)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:V},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),$,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,y,E,D,w,{match:/\$\d+/},p,V,{className:"attr",begin:r+e.lookahead(":"),relevance:0},g,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[w,t.REGEXP_MODE,{className:"function",begin:I,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:s},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},m,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},_,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},G,b,v,P,{match:/\$[(.]/}]}}const Ll=u.defineComponent({__name:"App",props:{},setup(t){const{options:e}=Ve(),n=u.computed(()=>e.mode==="fullscreen");return u.onMounted(()=>{kt.registerLanguage("xml",Sl),kt.registerLanguage("javascript",Nl)}),(r,o)=>n.value?(u.openBlock(),u.createBlock(u.unref(fo),{key:0,class:"n8n-chat"})):(u.openBlock(),u.createBlock(u.unref(Cl),{key:1,class:"n8n-chat"}))}});function Ol(t){var o,s;const e={...Ue,...t,webhookConfig:{...Ue.webhookConfig,...t==null?void 0:t.webhookConfig},i18n:{...Ue.i18n,...t==null?void 0:t.i18n,en:{...(o=Ue.i18n)==null?void 0:o.en,...(s=t==null?void 0:t.i18n)==null?void 0:s.en}},theme:{...Ue.theme,...t==null?void 0:t.theme}},n=e.target??is;typeof n=="string"&&ns(n);const r=u.createApp(Ll);return r.use(jo()),r.provide(Mn,e),r.mount(n),r}me.createChat=Ol,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})});
14
+ `:">",s)},ke.prototype.renderInline=function(t,e,n){for(var r,o="",s=this.rules,c=0,i=t.length;c<i;c++)r=t[c].type,typeof s[r]<"u"?o+=s[r](t,c,e,n,this):o+=this.renderToken(t,c,e);return o},ke.prototype.renderInlineAsText=function(t,e,n){for(var r="",o=0,s=t.length;o<s;o++)t[o].type==="text"?r+=t[o].content:t[o].type==="image"?r+=this.renderInlineAsText(t[o].children,e,n):t[o].type==="softbreak"&&(r+=`
15
+ `);return r},ke.prototype.render=function(t,e,n){var r,o,s,c="",i=this.rules;for(r=0,o=t.length;r<o;r++)s=t[r].type,s==="inline"?c+=this.renderInline(t[r].children,e,n):typeof i[s]<"u"?c+=i[t[r].type](t,r,e,n,this):c+=this.renderToken(t,r,e,n);return c};var xo=ke;function Y(){this.__rules__=[],this.__cache__=null}Y.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},Y.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})},Y.prototype.at=function(t,e,n){var r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=o.alt||[],this.__cache__=null},Y.prototype.before=function(t,e,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},Y.prototype.after=function(t,e,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},Y.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},Y.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n},Y.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)},Y.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n},Y.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var lt=Y,yo=/\r\n?|\n/g,wo=/\0/g,vo=function(e){var n;n=e.src.replace(yo,`
16
+ `),n=n.replace(wo,"ïżœ"),e.src=n},Eo=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Ao=function(e){var n=e.tokens,r,o,s;for(o=0,s=n.length;o<s;o++)r=n[o],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},Co=I.arrayReplaceAt;function qo(t){return/^<a[>\s]/i.test(t)}function So(t){return/^<\/a\s*>/i.test(t)}var Do=function(e){var n,r,o,s,c,i,a,l,u,h,f,d,y,x,C,v,m=e.tokens,E;if(e.md.options.linkify){for(r=0,o=m.length;r<o;r++)if(!(m[r].type!=="inline"||!e.md.linkify.pretest(m[r].content)))for(s=m[r].children,y=0,n=s.length-1;n>=0;n--){if(i=s[n],i.type==="link_close"){for(n--;s[n].level!==i.level&&s[n].type!=="link_open";)n--;continue}if(i.type==="html_inline"&&(qo(i.content)&&y>0&&y--,So(i.content)&&y++),!(y>0)&&i.type==="text"&&e.md.linkify.test(i.content)){for(u=i.content,E=e.md.linkify.match(u),a=[],d=i.level,f=0,l=0;l<E.length;l++)x=E[l].url,C=e.md.normalizeLink(x),e.md.validateLink(C)&&(v=E[l].text,E[l].schema?E[l].schema==="mailto:"&&!/^mailto:/i.test(v)?v=e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=e.md.normalizeLinkText(v):v=e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),h=E[l].index,h>f&&(c=new e.Token("text","",0),c.content=u.slice(f,h),c.level=d,a.push(c)),c=new e.Token("link_open","a",1),c.attrs=[["href",C]],c.level=d++,c.markup="linkify",c.info="auto",a.push(c),c=new e.Token("text","",0),c.content=v,c.level=d,a.push(c),c=new e.Token("link_close","a",-1),c.level=--d,c.markup="linkify",c.info="auto",a.push(c),f=E[l].lastIndex);f<u.length&&(c=new e.Token("text","",0),c.content=u.slice(f),c.level=d,a.push(c)),m[r].children=s=Co(s,n,a)}}}},an=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,To=/\((c|tm|r|p)\)/i,Ro=/\((c|tm|r|p)\)/ig,No={c:"©",r:"Âź",p:"§",tm:"ℱ"};function Lo(t,e){return No[e.toLowerCase()]}function Bo(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&(n.content=n.content.replace(Ro,Lo)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function Mo(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&an.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"
").replace(/([?!])
/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var Io=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(To.test(e.tokens[n].content)&&Bo(e.tokens[n].children),an.test(e.tokens[n].content)&&Mo(e.tokens[n].children))},ln=I.isWhiteSpace,un=I.isPunctChar,pn=I.isMdAsciiPunct,Fo=/['"]/,fn=/['"]/g,hn="’";function Oe(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function Oo(t,e){var n,r,o,s,c,i,a,l,u,h,f,d,y,x,C,v,m,E,q,T,_;for(q=[],n=0;n<t.length;n++){for(r=t[n],a=t[n].level,m=q.length-1;m>=0&&!(q[m].level<=a);m--);if(q.length=m+1,r.type==="text"){o=r.content,c=0,i=o.length;e:for(;c<i&&(fn.lastIndex=c,s=fn.exec(o),!!s);){if(C=v=!0,c=s.index+1,E=s[0]==="'",u=32,s.index-1>=0)u=o.charCodeAt(s.index-1);else for(m=n-1;m>=0&&!(t[m].type==="softbreak"||t[m].type==="hardbreak");m--)if(t[m].content){u=t[m].content.charCodeAt(t[m].content.length-1);break}if(h=32,c<i)h=o.charCodeAt(c);else for(m=n+1;m<t.length&&!(t[m].type==="softbreak"||t[m].type==="hardbreak");m++)if(t[m].content){h=t[m].content.charCodeAt(0);break}if(f=pn(u)||un(String.fromCharCode(u)),d=pn(h)||un(String.fromCharCode(h)),y=ln(u),x=ln(h),x?C=!1:d&&(y||f||(C=!1)),y?v=!1:f&&(x||d||(v=!1)),h===34&&s[0]==='"'&&u>=48&&u<=57&&(v=C=!1),C&&v&&(C=f,v=d),!C&&!v){E&&(r.content=Oe(r.content,s.index,hn));continue}if(v){for(m=q.length-1;m>=0&&(l=q[m],!(q[m].level<a));m--)if(l.single===E&&q[m].level===a){l=q[m],E?(T=e.md.options.quotes[2],_=e.md.options.quotes[3]):(T=e.md.options.quotes[0],_=e.md.options.quotes[1]),r.content=Oe(r.content,s.index,_),t[l.token].content=Oe(t[l.token].content,l.pos,T),c+=_.length-1,l.token===n&&(c+=T.length-1),o=r.content,i=o.length,q.length=m;continue e}}C?q.push({token:n,pos:s.index,single:E,level:a}):v&&E&&(r.content=Oe(r.content,s.index,hn))}}}}var Po=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!Fo.test(e.tokens[n].content)||Oo(e.tokens[n].children,e)};function xe(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}xe.prototype.attrIndex=function(e){var n,r,o;if(!this.attrs)return-1;for(n=this.attrs,r=0,o=n.length;r<o;r++)if(n[r][0]===e)return r;return-1},xe.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},xe.prototype.attrSet=function(e,n){var r=this.attrIndex(e),o=[e,n];r<0?this.attrPush(o):this.attrs[r]=o},xe.prototype.attrGet=function(e){var n=this.attrIndex(e),r=null;return n>=0&&(r=this.attrs[n][1]),r},xe.prototype.attrJoin=function(e,n){var r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};var ut=xe,zo=ut;function dn(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}dn.prototype.Token=zo;var Uo=dn,Vo=lt,pt=[["normalize",vo],["block",Eo],["inline",Ao],["linkify",Do],["replacements",Io],["smartquotes",Po]];function ft(){this.ruler=new Vo;for(var t=0;t<pt.length;t++)this.ruler.push(pt[t][0],pt[t][1])}ft.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)},ft.prototype.State=Uo;var $o=ft,ht=I.isSpace;function dt(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.substr(n,r-n)}function gn(t){var e=[],n=0,r=t.length,o,s=!1,c=0,i="";for(o=t.charCodeAt(n);n<r;)o===124&&(s?(i+=t.substring(c,n-1),c=n):(e.push(i+t.substring(c,n)),i="",c=n+1)),s=o===92,n++,o=t.charCodeAt(n);return e.push(i+t.substring(c)),e}var Go=function(e,n,r,o){var s,c,i,a,l,u,h,f,d,y,x,C,v,m,E,q,T,_;if(n+2>r||(u=n+1,e.sCount[u]<e.blkIndent)||e.sCount[u]-e.blkIndent>=4||(i=e.bMarks[u]+e.tShift[u],i>=e.eMarks[u])||(T=e.src.charCodeAt(i++),T!==124&&T!==45&&T!==58)||i>=e.eMarks[u]||(_=e.src.charCodeAt(i++),_!==124&&_!==45&&_!==58&&!ht(_))||T===45&&ht(_))return!1;for(;i<e.eMarks[u];){if(s=e.src.charCodeAt(i),s!==124&&s!==45&&s!==58&&!ht(s))return!1;i++}for(c=dt(e,n+1),h=c.split("|"),y=[],a=0;a<h.length;a++){if(x=h[a].trim(),!x){if(a===0||a===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(x))return!1;x.charCodeAt(x.length-1)===58?y.push(x.charCodeAt(0)===58?"center":"right"):x.charCodeAt(0)===58?y.push("left"):y.push("")}if(c=dt(e,n).trim(),c.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(h=gn(c),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),f=h.length,f===0||f!==y.length))return!1;if(o)return!0;for(m=e.parentType,e.parentType="table",q=e.md.block.ruler.getRules("blockquote"),d=e.push("table_open","table",1),d.map=C=[n,0],d=e.push("thead_open","thead",1),d.map=[n,n+1],d=e.push("tr_open","tr",1),d.map=[n,n+1],a=0;a<h.length;a++)d=e.push("th_open","th",1),y[a]&&(d.attrs=[["style","text-align:"+y[a]]]),d=e.push("inline","",0),d.content=h[a].trim(),d.children=[],d=e.push("th_close","th",-1);for(d=e.push("tr_close","tr",-1),d=e.push("thead_close","thead",-1),u=n+2;u<r&&!(e.sCount[u]<e.blkIndent);u++){for(E=!1,a=0,l=q.length;a<l;a++)if(q[a](e,u,r,!0)){E=!0;break}if(E||(c=dt(e,u).trim(),!c)||e.sCount[u]-e.blkIndent>=4)break;for(h=gn(c),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),u===n+2&&(d=e.push("tbody_open","tbody",1),d.map=v=[n+2,0]),d=e.push("tr_open","tr",1),d.map=[u,u+1],a=0;a<f;a++)d=e.push("td_open","td",1),y[a]&&(d.attrs=[["style","text-align:"+y[a]]]),d=e.push("inline","",0),d.content=h[a]?h[a].trim():"",d.children=[],d=e.push("td_close","td",-1);d=e.push("tr_close","tr",-1)}return v&&(d=e.push("tbody_close","tbody",-1),v[1]=u),d=e.push("table_close","table",-1),C[1]=u,e.parentType=m,e.line=u,!0},Ho=function(e,n,r){var o,s,c;if(e.sCount[n]-e.blkIndent<4)return!1;for(s=o=n+1;o<r;){if(e.isEmpty(o)){o++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,s=o;continue}break}return e.line=s,c=e.push("code_block","code",0),c.content=e.getLines(n,s,4+e.blkIndent,!1)+`
17
+ `,c.map=[n,e.line],!0},jo=function(e,n,r,o){var s,c,i,a,l,u,h,f=!1,d=e.bMarks[n]+e.tShift[n],y=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||d+3>y||(s=e.src.charCodeAt(d),s!==126&&s!==96)||(l=d,d=e.skipChars(d,s),c=d-l,c<3)||(h=e.src.slice(l,d),i=e.src.slice(d,y),s===96&&i.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(a=n;a++,!(a>=r||(d=l=e.bMarks[a]+e.tShift[a],y=e.eMarks[a],d<y&&e.sCount[a]<e.blkIndent));)if(e.src.charCodeAt(d)===s&&!(e.sCount[a]-e.blkIndent>=4)&&(d=e.skipChars(d,s),!(d-l<c)&&(d=e.skipSpaces(d),!(d<y)))){f=!0;break}return c=e.sCount[n],e.line=a+(f?1:0),u=e.push("fence","code",0),u.info=i,u.content=e.getLines(n+1,a,c,!0),u.markup=h,u.map=[n,e.line],!0},mn=I.isSpace,Zo=function(e,n,r,o){var s,c,i,a,l,u,h,f,d,y,x,C,v,m,E,q,T,_,B,U,G=e.lineMax,N=e.bMarks[n]+e.tShift[n],P=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(N++)!==62)return!1;if(o)return!0;for(a=d=e.sCount[n]+1,e.src.charCodeAt(N)===32?(N++,a++,d++,s=!1,q=!0):e.src.charCodeAt(N)===9?(q=!0,(e.bsCount[n]+d)%4===3?(N++,a++,d++,s=!1):s=!0):q=!1,y=[e.bMarks[n]],e.bMarks[n]=N;N<P&&(c=e.src.charCodeAt(N),mn(c));){c===9?d+=4-(d+e.bsCount[n]+(s?1:0))%4:d++;N++}for(x=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(q?1:0),u=N>=P,m=[e.sCount[n]],e.sCount[n]=d-a,E=[e.tShift[n]],e.tShift[n]=N-e.bMarks[n],_=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",f=n+1;f<r&&(U=e.sCount[f]<e.blkIndent,N=e.bMarks[f]+e.tShift[f],P=e.eMarks[f],!(N>=P));f++){if(e.src.charCodeAt(N++)===62&&!U){for(a=d=e.sCount[f]+1,e.src.charCodeAt(N)===32?(N++,a++,d++,s=!1,q=!0):e.src.charCodeAt(N)===9?(q=!0,(e.bsCount[f]+d)%4===3?(N++,a++,d++,s=!1):s=!0):q=!1,y.push(e.bMarks[f]),e.bMarks[f]=N;N<P&&(c=e.src.charCodeAt(N),mn(c));){c===9?d+=4-(d+e.bsCount[f]+(s?1:0))%4:d++;N++}u=N>=P,x.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(q?1:0),m.push(e.sCount[f]),e.sCount[f]=d-a,E.push(e.tShift[f]),e.tShift[f]=N-e.bMarks[f];continue}if(u)break;for(T=!1,i=0,l=_.length;i<l;i++)if(_[i](e,f,r,!0)){T=!0;break}if(T){e.lineMax=f,e.blkIndent!==0&&(y.push(e.bMarks[f]),x.push(e.bsCount[f]),E.push(e.tShift[f]),m.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}y.push(e.bMarks[f]),x.push(e.bsCount[f]),E.push(e.tShift[f]),m.push(e.sCount[f]),e.sCount[f]=-1}for(C=e.blkIndent,e.blkIndent=0,B=e.push("blockquote_open","blockquote",1),B.markup=">",B.map=h=[n,0],e.md.block.tokenize(e,n,f),B=e.push("blockquote_close","blockquote",-1),B.markup=">",e.lineMax=G,e.parentType=v,h[1]=e.line,i=0;i<E.length;i++)e.bMarks[i+n]=y[i],e.tShift[i+n]=E[i],e.sCount[i+n]=m[i],e.bsCount[i+n]=x[i];return e.blkIndent=C,!0},Wo=I.isSpace,Ko=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(l++),s!==42&&s!==45&&s!==95))return!1;for(c=1;l<u;){if(i=e.src.charCodeAt(l++),i!==s&&!Wo(i))return!1;i===s&&c++}return c<3?!1:(o||(e.line=n+1,a=e.push("hr","hr",0),a.map=[n,e.line],a.markup=Array(c+1).join(String.fromCharCode(s))),!0)},bn=I.isSpace;function _n(t,e){var n,r,o,s;return r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<o&&(s=t.src.charCodeAt(r),!bn(s))?-1:r}function kn(t,e){var n,r=t.bMarks[e]+t.tShift[e],o=r,s=t.eMarks[e];if(o+1>=s||(n=t.src.charCodeAt(o++),n<48||n>57))return-1;for(;;){if(o>=s)return-1;if(n=t.src.charCodeAt(o++),n>=48&&n<=57){if(o-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return o<s&&(n=t.src.charCodeAt(o),!bn(n))?-1:o}function Jo(t,e){var n,r,o=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===o&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var Yo=function(e,n,r,o){var s,c,i,a,l,u,h,f,d,y,x,C,v,m,E,q,T,_,B,U,G,N,P,ce,re,b,F,L,g=!1,w=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(g=!0),(P=kn(e,n))>=0){if(h=!0,re=e.bMarks[n]+e.tShift[n],v=Number(e.src.slice(re,P-1)),g&&v!==1)return!1}else if((P=_n(e,n))>=0)h=!1;else return!1;if(g&&e.skipSpaces(P)>=e.eMarks[n])return!1;if(C=e.src.charCodeAt(P-1),o)return!0;for(x=e.tokens.length,h?(L=e.push("ordered_list_open","ol",1),v!==1&&(L.attrs=[["start",v]])):L=e.push("bullet_list_open","ul",1),L.map=y=[n,0],L.markup=String.fromCharCode(C),E=n,ce=!1,F=e.md.block.ruler.getRules("list"),_=e.parentType,e.parentType="list";E<r;){for(N=P,m=e.eMarks[E],u=q=e.sCount[E]+P-(e.bMarks[n]+e.tShift[n]);N<m;){if(s=e.src.charCodeAt(N),s===9)q+=4-(q+e.bsCount[E])%4;else if(s===32)q++;else break;N++}if(c=N,c>=m?l=1:l=q-u,l>4&&(l=1),a=u+l,L=e.push("list_item_open","li",1),L.markup=String.fromCharCode(C),L.map=f=[n,0],h&&(L.info=e.src.slice(re,P-1)),G=e.tight,U=e.tShift[n],B=e.sCount[n],T=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=a,e.tight=!0,e.tShift[n]=c-e.bMarks[n],e.sCount[n]=q,c>=m&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,n,r,!0),(!e.tight||ce)&&(w=!1),ce=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=T,e.tShift[n]=U,e.sCount[n]=B,e.tight=G,L=e.push("list_item_close","li",-1),L.markup=String.fromCharCode(C),E=n=e.line,f[1]=E,c=e.bMarks[n],E>=r||e.sCount[E]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(b=!1,i=0,d=F.length;i<d;i++)if(F[i](e,E,r,!0)){b=!0;break}if(b)break;if(h){if(P=kn(e,E),P<0)break;re=e.bMarks[E]+e.tShift[E]}else if(P=_n(e,E),P<0)break;if(C!==e.src.charCodeAt(P-1))break}return h?L=e.push("ordered_list_close","ol",-1):L=e.push("bullet_list_close","ul",-1),L.markup=String.fromCharCode(C),y[1]=E,e.line=E,e.parentType=_,w&&Jo(e,x),!0},Xo=I.normalizeReference,Pe=I.isSpace,Qo=function(e,n,r,o){var s,c,i,a,l,u,h,f,d,y,x,C,v,m,E,q,T=0,_=e.bMarks[n]+e.tShift[n],B=e.eMarks[n],U=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(_)!==91)return!1;for(;++_<B;)if(e.src.charCodeAt(_)===93&&e.src.charCodeAt(_-1)!==92){if(_+1===B||e.src.charCodeAt(_+1)!==58)return!1;break}for(a=e.lineMax,E=e.md.block.ruler.getRules("reference"),y=e.parentType,e.parentType="reference";U<a&&!e.isEmpty(U);U++)if(!(e.sCount[U]-e.blkIndent>3)&&!(e.sCount[U]<0)){for(m=!1,u=0,h=E.length;u<h;u++)if(E[u](e,U,a,!0)){m=!0;break}if(m)break}for(v=e.getLines(n,U,e.blkIndent,!1).trim(),B=v.length,_=1;_<B;_++){if(s=v.charCodeAt(_),s===91)return!1;if(s===93){d=_;break}else s===10?T++:s===92&&(_++,_<B&&v.charCodeAt(_)===10&&T++)}if(d<0||v.charCodeAt(d+1)!==58)return!1;for(_=d+2;_<B;_++)if(s=v.charCodeAt(_),s===10)T++;else if(!Pe(s))break;if(x=e.md.helpers.parseLinkDestination(v,_,B),!x.ok||(l=e.md.normalizeLink(x.str),!e.md.validateLink(l)))return!1;for(_=x.pos,T+=x.lines,c=_,i=T,C=_;_<B;_++)if(s=v.charCodeAt(_),s===10)T++;else if(!Pe(s))break;for(x=e.md.helpers.parseLinkTitle(v,_,B),_<B&&C!==_&&x.ok?(q=x.str,_=x.pos,T+=x.lines):(q="",_=c,T=i);_<B&&(s=v.charCodeAt(_),!!Pe(s));)_++;if(_<B&&v.charCodeAt(_)!==10&&q)for(q="",_=c,T=i;_<B&&(s=v.charCodeAt(_),!!Pe(s));)_++;return _<B&&v.charCodeAt(_)!==10||(f=Xo(v.slice(1,d)),!f)?!1:(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:q,href:l}),e.parentType=y,e.line=n+T+1),!0)},es=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ze={},ts="[a-zA-Z_:][a-zA-Z0-9:._-]*",ns="[^\"'=<>`\\x00-\\x20]+",rs="'[^']*'",os='"[^"]*"',ss="(?:"+ns+"|"+rs+"|"+os+")",cs="(?:\\s+"+ts+"(?:\\s*=\\s*"+ss+")?)",xn="<[A-Za-z][A-Za-z0-9\\-]*"+cs+"*\\s*\\/?>",yn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",is="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",as="<[?][\\s\\S]*?[?]>",ls="<![A-Z]+\\s+[^>]*>",us="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",ps=new RegExp("^(?:"+xn+"|"+yn+"|"+is+"|"+as+"|"+ls+"|"+us+")"),fs=new RegExp("^(?:"+xn+"|"+yn+")");ze.HTML_TAG_RE=ps,ze.HTML_OPEN_CLOSE_TAG_RE=fs;var hs=es,ds=ze.HTML_OPEN_CLOSE_TAG_RE,ye=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+hs.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(ds.source+"\\s*$"),/^$/,!1]],gs=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(l)!==60)return!1;for(a=e.src.slice(l,u),s=0;s<ye.length&&!ye[s][0].test(a);s++);if(s===ye.length)return!1;if(o)return ye[s][2];if(c=n+1,!ye[s][1].test(a)){for(;c<r&&!(e.sCount[c]<e.blkIndent);c++)if(l=e.bMarks[c]+e.tShift[c],u=e.eMarks[c],a=e.src.slice(l,u),ye[s][1].test(a)){a.length!==0&&c++;break}}return e.line=c,i=e.push("html_block","",0),i.map=[n,c],i.content=e.getLines(n,c,e.blkIndent,!0),!0},wn=I.isSpace,ms=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(l),s!==35||l>=u))return!1;for(c=1,s=e.src.charCodeAt(++l);s===35&&l<u&&c<=6;)c++,s=e.src.charCodeAt(++l);return c>6||l<u&&!wn(s)?!1:(o||(u=e.skipSpacesBack(u,l),i=e.skipCharsBack(u,35,l),i>l&&wn(e.src.charCodeAt(i-1))&&(u=i),e.line=n+1,a=e.push("heading_open","h"+String(c),1),a.markup="########".slice(0,c),a.map=[n,e.line],a=e.push("inline","",0),a.content=e.src.slice(l,u).trim(),a.map=[n,e.line],a.children=[],a=e.push("heading_close","h"+String(c),-1),a.markup="########".slice(0,c)),!0)},bs=function(e,n,r){var o,s,c,i,a,l,u,h,f,d=n+1,y,x=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(y=e.parentType,e.parentType="paragraph";d<r&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(l=e.bMarks[d]+e.tShift[d],u=e.eMarks[d],l<u&&(f=e.src.charCodeAt(l),(f===45||f===61)&&(l=e.skipChars(l,f),l=e.skipSpaces(l),l>=u)))){h=f===61?1:2;break}if(!(e.sCount[d]<0)){for(s=!1,c=0,i=x.length;c<i;c++)if(x[c](e,d,r,!0)){s=!0;break}if(s)break}}return h?(o=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d+1,a=e.push("heading_open","h"+String(h),1),a.markup=String.fromCharCode(f),a.map=[n,e.line],a=e.push("inline","",0),a.content=o,a.map=[n,e.line-1],a.children=[],a=e.push("heading_close","h"+String(h),-1),a.markup=String.fromCharCode(f),e.parentType=y,!0):!1},_s=function(e,n){var r,o,s,c,i,a,l=n+1,u=e.md.block.ruler.getRules("paragraph"),h=e.lineMax;for(a=e.parentType,e.parentType="paragraph";l<h&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3)&&!(e.sCount[l]<0)){for(o=!1,s=0,c=u.length;s<c;s++)if(u[s](e,l,h,!0)){o=!0;break}if(o)break}return r=e.getLines(n,l,e.blkIndent,!1).trim(),e.line=l,i=e.push("paragraph_open","p",1),i.map=[n,e.line],i=e.push("inline","",0),i.content=r,i.map=[n,e.line],i.children=[],i=e.push("paragraph_close","p",-1),e.parentType=a,!0},vn=ut,Ue=I.isSpace;function ee(t,e,n,r){var o,s,c,i,a,l,u,h;for(this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,h=!1,c=i=l=u=0,a=s.length;i<a;i++){if(o=s.charCodeAt(i),!h)if(Ue(o)){l++,o===9?u+=4-u%4:u++;continue}else h=!0;(o===10||i===a-1)&&(o!==10&&i++,this.bMarks.push(c),this.eMarks.push(i),this.tShift.push(l),this.sCount.push(u),this.bsCount.push(0),h=!1,l=0,u=0,c=i+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ee.prototype.push=function(t,e,n){var r=new vn(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},ee.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},ee.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},ee.prototype.skipSpaces=function(e){for(var n,r=this.src.length;e<r&&(n=this.src.charCodeAt(e),!!Ue(n));e++);return e},ee.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Ue(this.src.charCodeAt(--e)))return e+1;return e},ee.prototype.skipChars=function(e,n){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e},ee.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e},ee.prototype.getLines=function(e,n,r,o){var s,c,i,a,l,u,h,f=e;if(e>=n)return"";for(u=new Array(n-e),s=0;f<n;f++,s++){for(c=0,h=a=this.bMarks[f],f+1<n||o?l=this.eMarks[f]+1:l=this.eMarks[f];a<l&&c<r;){if(i=this.src.charCodeAt(a),Ue(i))i===9?c+=4-(c+this.bsCount[f])%4:c++;else if(a-h<this.tShift[f])c++;else break;a++}c>r?u[s]=new Array(c-r+1).join(" ")+this.src.slice(a,l):u[s]=this.src.slice(a,l)}return u.join("")},ee.prototype.Token=vn;var ks=ee,xs=lt,Ve=[["table",Go,["paragraph","reference"]],["code",Ho],["fence",jo,["paragraph","reference","blockquote","list"]],["blockquote",Zo,["paragraph","reference","blockquote","list"]],["hr",Ko,["paragraph","reference","blockquote","list"]],["list",Yo,["paragraph","reference","blockquote"]],["reference",Qo],["html_block",gs,["paragraph","reference","blockquote"]],["heading",ms,["paragraph","reference","blockquote"]],["lheading",bs],["paragraph",_s]];function $e(){this.ruler=new xs;for(var t=0;t<Ve.length;t++)this.ruler.push(Ve[t][0],Ve[t][1],{alt:(Ve[t][2]||[]).slice()})}$e.prototype.tokenize=function(t,e,n){for(var r,o,s=this.ruler.getRules(""),c=s.length,i=e,a=!1,l=t.md.options.maxNesting;i<n&&(t.line=i=t.skipEmptyLines(i),!(i>=n||t.sCount[i]<t.blkIndent));){if(t.level>=l){t.line=n;break}for(o=0;o<c&&(r=s[o](t,i,n,!1),!r);o++);t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),i=t.line,i<n&&t.isEmpty(i)&&(a=!0,i++,t.line=i)}},$e.prototype.parse=function(t,e,n,r){var o;t&&(o=new this.State(t,e,n,r),this.tokenize(o,o.line,o.lineMax))},$e.prototype.State=ks;var ys=$e;function ws(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var vs=function(e,n){for(var r=e.pos;r<e.posMax&&!ws(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},Es=I.isSpace,As=function(e,n){var r,o,s,c=e.pos;if(e.src.charCodeAt(c)!==10)return!1;if(r=e.pending.length-1,o=e.posMax,!n)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(s=r-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(c++;c<o&&Es(e.src.charCodeAt(c));)c++;return e.pos=c,!0},Cs=I.isSpace,gt=[],En=0;En<256;En++)gt.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){gt[t.charCodeAt(0)]=1});var qs=function(e,n){var r,o=e.pos,s=e.posMax;if(e.src.charCodeAt(o)!==92)return!1;if(o++,o<s){if(r=e.src.charCodeAt(o),r<256&&gt[r]!==0)return n||(e.pending+=e.src[o]),e.pos+=2,!0;if(r===10){for(n||e.push("hardbreak","br",0),o++;o<s&&(r=e.src.charCodeAt(o),!!Cs(r));)o++;return e.pos=o,!0}}return n||(e.pending+="\\"),e.pos++,!0},Ss=function(e,n){var r,o,s,c,i,a,l,u,h=e.pos,f=e.src.charCodeAt(h);if(f!==96)return!1;for(r=h,h++,o=e.posMax;h<o&&e.src.charCodeAt(h)===96;)h++;if(s=e.src.slice(r,h),l=s.length,e.backticksScanned&&(e.backticks[l]||0)<=r)return n||(e.pending+=s),e.pos+=l,!0;for(i=a=h;(i=e.src.indexOf("`",a))!==-1;){for(a=i+1;a<o&&e.src.charCodeAt(a)===96;)a++;if(u=a-i,u===l)return n||(c=e.push("code_inline","code",0),c.markup=s,c.content=e.src.slice(h,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[u]=i}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=l,!0},Ge={};Ge.tokenize=function(e,n){var r,o,s,c,i,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==126||(o=e.scanDelims(e.pos,!0),c=o.length,i=String.fromCharCode(l),c<2))return!1;for(c%2&&(s=e.push("text","",0),s.content=i,c--),r=0;r<c;r+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:l,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function An(t,e){var n,r,o,s,c,i=[],a=e.length;for(n=0;n<a;n++)o=e[n],o.marker===126&&o.end!==-1&&(s=e[o.end],c=t.tokens[o.token],c.type="s_open",c.tag="s",c.nesting=1,c.markup="~~",c.content="",c=t.tokens[s.token],c.type="s_close",c.tag="s",c.nesting=-1,c.markup="~~",c.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&i.push(s.token-1));for(;i.length;){for(n=i.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(c=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=c)}}Ge.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(An(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&An(e,r[n].delimiters)};var He={};He.tokenize=function(e,n){var r,o,s,c=e.pos,i=e.src.charCodeAt(c);if(n||i!==95&&i!==42)return!1;for(o=e.scanDelims(e.pos,i===42),r=0;r<o.length;r++)s=e.push("text","",0),s.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function Cn(t,e){var n,r,o,s,c,i,a=e.length;for(n=a-1;n>=0;n--)r=e[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(o=e[r.end],i=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===o.token+1,c=String.fromCharCode(r.marker),s=t.tokens[r.token],s.type=i?"strong_open":"em_open",s.tag=i?"strong":"em",s.nesting=1,s.markup=i?c+c:c,s.content="",s=t.tokens[o.token],s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?c+c:c,s.content="",i&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}He.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(Cn(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&Cn(e,r[n].delimiters)};var Ds=I.normalizeReference,mt=I.isSpace,Ts=function(e,n){var r,o,s,c,i,a,l,u,h,f="",d="",y=e.pos,x=e.posMax,C=e.pos,v=!0;if(e.src.charCodeAt(e.pos)!==91||(i=e.pos+1,c=e.md.helpers.parseLinkLabel(e,e.pos,!0),c<0))return!1;if(a=c+1,a<x&&e.src.charCodeAt(a)===40){for(v=!1,a++;a<x&&(o=e.src.charCodeAt(a),!(!mt(o)&&o!==10));a++);if(a>=x)return!1;if(C=a,l=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),l.ok){for(f=e.md.normalizeLink(l.str),e.md.validateLink(f)?a=l.pos:f="",C=a;a<x&&(o=e.src.charCodeAt(a),!(!mt(o)&&o!==10));a++);if(l=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<x&&C!==a&&l.ok)for(d=l.str,a=l.pos;a<x&&(o=e.src.charCodeAt(a),!(!mt(o)&&o!==10));a++);}(a>=x||e.src.charCodeAt(a)!==41)&&(v=!0),a++}if(v){if(typeof e.env.references>"u")return!1;if(a<x&&e.src.charCodeAt(a)===91?(C=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?s=e.src.slice(C,a++):a=c+1):a=c+1,s||(s=e.src.slice(i,c)),u=e.env.references[Ds(s)],!u)return e.pos=y,!1;f=u.href,d=u.title}return n||(e.pos=i,e.posMax=c,h=e.push("link_open","a",1),h.attrs=r=[["href",f]],d&&r.push(["title",d]),e.md.inline.tokenize(e),h=e.push("link_close","a",-1)),e.pos=a,e.posMax=x,!0},Rs=I.normalizeReference,bt=I.isSpace,Ns=function(e,n){var r,o,s,c,i,a,l,u,h,f,d,y,x,C="",v=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,i=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),i<0))return!1;if(l=i+1,l<m&&e.src.charCodeAt(l)===40){for(l++;l<m&&(o=e.src.charCodeAt(l),!(!bt(o)&&o!==10));l++);if(l>=m)return!1;for(x=l,h=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),h.ok&&(C=e.md.normalizeLink(h.str),e.md.validateLink(C)?l=h.pos:C=""),x=l;l<m&&(o=e.src.charCodeAt(l),!(!bt(o)&&o!==10));l++);if(h=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<m&&x!==l&&h.ok)for(f=h.str,l=h.pos;l<m&&(o=e.src.charCodeAt(l),!(!bt(o)&&o!==10));l++);else f="";if(l>=m||e.src.charCodeAt(l)!==41)return e.pos=v,!1;l++}else{if(typeof e.env.references>"u")return!1;if(l<m&&e.src.charCodeAt(l)===91?(x=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?c=e.src.slice(x,l++):l=i+1):l=i+1,c||(c=e.src.slice(a,i)),u=e.env.references[Rs(c)],!u)return e.pos=v,!1;C=u.href,f=u.title}return n||(s=e.src.slice(a,i),e.md.inline.parse(s,e.md,e.env,y=[]),d=e.push("image","img",0),d.attrs=r=[["src",C],["alt",""]],d.children=y,d.content=s,f&&r.push(["title",f])),e.pos=l,e.posMax=m,!0},Ls=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Bs=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Ms=function(e,n){var r,o,s,c,i,a,l=e.pos;if(e.src.charCodeAt(l)!==60)return!1;for(i=e.pos,a=e.posMax;;){if(++l>=a||(c=e.src.charCodeAt(l),c===60))return!1;if(c===62)break}return r=e.src.slice(i+1,l),Bs.test(r)?(o=e.md.normalizeLink(r),e.md.validateLink(o)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):Ls.test(r)?(o=e.md.normalizeLink("mailto:"+r),e.md.validateLink(o)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):!1},Is=ze.HTML_TAG_RE;function Fs(t){var e=t|32;return e>=97&&e<=122}var Os=function(e,n){var r,o,s,c,i=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(i)!==60||i+2>=s)||(r=e.src.charCodeAt(i+1),r!==33&&r!==63&&r!==47&&!Fs(r))||(o=e.src.slice(i).match(Is),!o)?!1:(n||(c=e.push("html_inline","",0),c.content=e.src.slice(i,i+o[0].length)),e.pos+=o[0].length,!0)},qn=Gt,Ps=I.has,zs=I.isValidEntityCode,Sn=I.fromCodePoint,Us=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Vs=/^&([a-z][a-z0-9]{1,31});/i,$s=function(e,n){var r,o,s,c=e.pos,i=e.posMax;if(e.src.charCodeAt(c)!==38)return!1;if(c+1<i){if(r=e.src.charCodeAt(c+1),r===35){if(s=e.src.slice(c).match(Us),s)return n||(o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),e.pending+=zs(o)?Sn(o):Sn(65533)),e.pos+=s[0].length,!0}else if(s=e.src.slice(c).match(Vs),s&&Ps(qn,s[1]))return n||(e.pending+=qn[s[1]]),e.pos+=s[0].length,!0}return n||(e.pending+="&"),e.pos++,!0};function Dn(t,e){var n,r,o,s,c,i,a,l,u={},h=e.length;if(h){var f=0,d=-2,y=[];for(n=0;n<h;n++)if(o=e[n],y.push(0),(e[f].marker!==o.marker||d!==o.token-1)&&(f=n),d=o.token,o.length=o.length||0,!!o.close){for(u.hasOwnProperty(o.marker)||(u[o.marker]=[-1,-1,-1,-1,-1,-1]),c=u[o.marker][(o.open?3:0)+o.length%3],r=f-y[f]-1,i=r;r>c;r-=y[r]+1)if(s=e[r],s.marker===o.marker&&s.open&&s.end<0&&(a=!1,(s.close||o.open)&&(s.length+o.length)%3===0&&(s.length%3!==0||o.length%3!==0)&&(a=!0),!a)){l=r>0&&!e[r-1].open?y[r-1]+1:0,y[n]=n-r+l,y[r]=l,o.open=!1,s.end=n,s.close=!1,i=-1,d=-2;break}i!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=i)}}}var Gs=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(Dn(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&Dn(e,r[n].delimiters)},Hs=function(e){var n,r,o=0,s=e.tokens,c=e.tokens.length;for(n=r=0;n<c;n++)s[n].nesting<0&&o--,s[n].level=o,s[n].nesting>0&&o++,s[n].type==="text"&&n+1<c&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==r&&(s[r]=s[n]),r++);n!==r&&(s.length=r)},_t=ut,Tn=I.isWhiteSpace,Rn=I.isPunctChar,Nn=I.isMdAsciiPunct;function Ce(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}Ce.prototype.pushPending=function(){var t=new _t("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},Ce.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new _t(t,e,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},Ce.prototype.scanDelims=function(t,e){var n=t,r,o,s,c,i,a,l,u,h,f=!0,d=!0,y=this.posMax,x=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;n<y&&this.src.charCodeAt(n)===x;)n++;return s=n-t,o=n<y?this.src.charCodeAt(n):32,l=Nn(r)||Rn(String.fromCharCode(r)),h=Nn(o)||Rn(String.fromCharCode(o)),a=Tn(r),u=Tn(o),u?f=!1:h&&(a||l||(f=!1)),a?d=!1:l&&(u||h||(d=!1)),e?(c=f,i=d):(c=f&&(!d||l),i=d&&(!f||h)),{can_open:c,can_close:i,length:s}},Ce.prototype.Token=_t;var js=Ce,Ln=lt,kt=[["text",vs],["newline",As],["escape",qs],["backticks",Ss],["strikethrough",Ge.tokenize],["emphasis",He.tokenize],["link",Ts],["image",Ns],["autolink",Ms],["html_inline",Os],["entity",$s]],xt=[["balance_pairs",Gs],["strikethrough",Ge.postProcess],["emphasis",He.postProcess],["text_collapse",Hs]];function qe(){var t;for(this.ruler=new Ln,t=0;t<kt.length;t++)this.ruler.push(kt[t][0],kt[t][1]);for(this.ruler2=new Ln,t=0;t<xt.length;t++)this.ruler2.push(xt[t][0],xt[t][1])}qe.prototype.skipToken=function(t){var e,n,r=t.pos,o=this.ruler.getRules(""),s=o.length,c=t.md.options.maxNesting,i=t.cache;if(typeof i[r]<"u"){t.pos=i[r];return}if(t.level<c)for(n=0;n<s&&(t.level++,e=o[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,i[r]=t.pos},qe.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),o=r.length,s=t.posMax,c=t.md.options.maxNesting;t.pos<s;){if(t.level<c)for(n=0;n<o&&(e=r[n](t,!1),!e);n++);if(e){if(t.pos>=s)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},qe.prototype.parse=function(t,e,n,r){var o,s,c,i=new this.State(t,e,n,r);for(this.tokenize(i),s=this.ruler2.getRules(""),c=s.length,o=0;o<c;o++)s[o](i)},qe.prototype.State=js;var Zs=qe,yt,Bn;function Ws(){return Bn||(Bn=1,yt=function(t){var e={};e.src_Any=Qt().source,e.src_Cc=tn().source,e.src_Z=on().source,e.src_P=ot.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+e.src_ZPCc+"))((?![$+<=>^`|])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+e.src_ZPCc+"))((?![$+<=>^`|])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),yt}function wt(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function je(t){return Object.prototype.toString.call(t)}function Ks(t){return je(t)==="[object String]"}function Js(t){return je(t)==="[object Object]"}function Ys(t){return je(t)==="[object RegExp]"}function Mn(t){return je(t)==="[object Function]"}function Xs(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var In={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Qs(t){return Object.keys(t||{}).reduce(function(e,n){return e||In.hasOwnProperty(n)},!1)}var ec={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},tc="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",nc="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function rc(t){t.__index__=-1,t.__text_cache__=""}function oc(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Fn(){return function(t,e){e.normalize(t)}}function Ze(t){var e=t.re=Ws()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(tc),n.push(e.src_xn),e.src_tlds=n.join("|");function r(i){return i.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var o=[];t.__compiled__={};function s(i,a){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+a)}Object.keys(t.__schemas__).forEach(function(i){var a=t.__schemas__[i];if(a!==null){var l={validate:null,link:null};if(t.__compiled__[i]=l,Js(a)){Ys(a.validate)?l.validate=oc(a.validate):Mn(a.validate)?l.validate=a.validate:s(i,a),Mn(a.normalize)?l.normalize=a.normalize:a.normalize?s(i,a):l.normalize=Fn();return}if(Ks(a)){o.push(i);return}s(i,a)}}),o.forEach(function(i){t.__compiled__[t.__schemas__[i]]&&(t.__compiled__[i].validate=t.__compiled__[t.__schemas__[i]].validate,t.__compiled__[i].normalize=t.__compiled__[t.__schemas__[i]].normalize)}),t.__compiled__[""]={validate:null,normalize:Fn()};var c=Object.keys(t.__compiled__).filter(function(i){return i.length>0&&t.__compiled__[i]}).map(Xs).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><]|"+e.src_ZPCc+"))("+c+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><]|"+e.src_ZPCc+"))("+c+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),rc(t)}function sc(t,e){var n=t.__index__,r=t.__last_index__,o=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=o,this.text=o,this.url=o}function On(t,e){var n=new sc(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function K(t,e){if(!(this instanceof K))return new K(t,e);e||Qs(t)&&(e=t,t={}),this.__opts__=wt({},In,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=wt({},ec,t),this.__compiled__={},this.__tlds__=nc,this.__tlds_replaced__=!1,this.re={},Ze(this)}K.prototype.add=function(e,n){return this.__schemas__[e]=n,Ze(this),this},K.prototype.set=function(e){return this.__opts__=wt(this.__opts__,e),this},K.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,r,o,s,c,i,a,l,u;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(n=a.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],a.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(c=r.index+r[1].length,(this.__index__<0||c<this.__index__)&&(this.__schema__="",this.__index__=c,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=e.indexOf("@"),u>=0&&(o=e.match(this.re.email_fuzzy))!==null&&(c=o.index+o[1].length,i=o.index+o[0].length,(this.__index__<0||c<this.__index__||c===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=c,this.__last_index__=i))),this.__index__>=0},K.prototype.pretest=function(e){return this.re.pretest.test(e)},K.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0},K.prototype.match=function(e){var n=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(On(this,n)),n=this.__last_index__);for(var o=n?e.slice(n):e;this.test(o);)r.push(On(this,n)),o=o.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},K.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,o,s){return r!==s[o-1]}).reverse(),Ze(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Ze(this),this)},K.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},K.prototype.onCompile=function(){};var cc=K;const we=2147483647,te=36,vt=1,Se=26,ic=38,ac=700,Pn=72,zn=128,Un="-",lc=/^xn--/,uc=/[^\0-\x7E]/,pc=/[\x2E\u3002\uFF0E\uFF61]/g,fc={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Et=te-vt,ne=Math.floor,At=String.fromCharCode;function he(t){throw new RangeError(fc[t])}function hc(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Vn(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(pc,".");const o=t.split("."),s=hc(o,e).join(".");return r+s}function Ct(t){const e=[];let n=0;const r=t.length;for(;n<r;){const o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((o&1023)<<10)+(s&1023)+65536):(e.push(o),n--)}else e.push(o)}return e}const $n=t=>String.fromCodePoint(...t),dc=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:te},Gn=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Hn=function(t,e,n){let r=0;for(t=n?ne(t/ac):t>>1,t+=ne(t/e);t>Et*Se>>1;r+=te)t=ne(t/Et);return ne(r+(Et+1)*t/(t+ic))},qt=function(t){const e=[],n=t.length;let r=0,o=zn,s=Pn,c=t.lastIndexOf(Un);c<0&&(c=0);for(let i=0;i<c;++i)t.charCodeAt(i)>=128&&he("not-basic"),e.push(t.charCodeAt(i));for(let i=c>0?c+1:0;i<n;){let a=r;for(let u=1,h=te;;h+=te){i>=n&&he("invalid-input");const f=dc(t.charCodeAt(i++));(f>=te||f>ne((we-r)/u))&&he("overflow"),r+=f*u;const d=h<=s?vt:h>=s+Se?Se:h-s;if(f<d)break;const y=te-d;u>ne(we/y)&&he("overflow"),u*=y}const l=e.length+1;s=Hn(r-a,l,a==0),ne(r/l)>we-o&&he("overflow"),o+=ne(r/l),r%=l,e.splice(r++,0,o)}return String.fromCodePoint(...e)},St=function(t){const e=[];t=Ct(t);let n=t.length,r=zn,o=0,s=Pn;for(const a of t)a<128&&e.push(At(a));let c=e.length,i=c;for(c&&e.push(Un);i<n;){let a=we;for(const u of t)u>=r&&u<a&&(a=u);const l=i+1;a-r>ne((we-o)/l)&&he("overflow"),o+=(a-r)*l,r=a;for(const u of t)if(u<r&&++o>we&&he("overflow"),u===r){let h=o;for(let f=te;;f+=te){const d=f<=s?vt:f>=s+Se?Se:f-s;if(h<d)break;const y=h-d,x=te-d;e.push(At(Gn(d+y%x,0))),h=ne(y/x)}e.push(At(Gn(h,0))),s=Hn(o,l,i===c),o=0,++i}++o,++r}return e.join("")},jn=function(t){return Vn(t,function(e){return lc.test(e)?qt(e.slice(4).toLowerCase()):e})},Zn=function(t){return Vn(t,function(e){return uc.test(e)?"xn--"+St(e):e})},gc=Kr(Object.freeze(Object.defineProperty({__proto__:null,decode:qt,default:{version:"2.1.0",ucs2:{decode:Ct,encode:$n},decode:qt,encode:St,toASCII:Zn,toUnicode:jn},encode:St,toASCII:Zn,toUnicode:jn,ucs2decode:Ct,ucs2encode:$n},Symbol.toStringTag,{value:"Module"})));var mc={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},bc={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},_c={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}},De=I,kc=Fe,xc=xo,yc=$o,wc=ys,vc=Zs,Ec=cc,de=_e,Wn=gc,Ac={default:mc,zero:bc,commonmark:_c},Cc=/^(vbscript|javascript|file|data):/,qc=/^data:image\/(gif|png|jpeg|webp);/;function Sc(t){var e=t.trim().toLowerCase();return Cc.test(e)?!!qc.test(e):!0}var Kn=["http:","https:","mailto:"];function Dc(t){var e=de.parse(t,!0);if(e.hostname&&(!e.protocol||Kn.indexOf(e.protocol)>=0))try{e.hostname=Wn.toASCII(e.hostname)}catch{}return de.encode(de.format(e))}function Tc(t){var e=de.parse(t,!0);if(e.hostname&&(!e.protocol||Kn.indexOf(e.protocol)>=0))try{e.hostname=Wn.toUnicode(e.hostname)}catch{}return de.decode(de.format(e),de.decode.defaultChars+"%")}function J(t,e){if(!(this instanceof J))return new J(t,e);e||De.isString(t)||(e=t||{},t="default"),this.inline=new vc,this.block=new wc,this.core=new yc,this.renderer=new xc,this.linkify=new Ec,this.validateLink=Sc,this.normalizeLink=Dc,this.normalizeLinkText=Tc,this.utils=De,this.helpers=De.assign({},kc),this.options={},this.configure(t),e&&this.set(e)}J.prototype.set=function(t){return De.assign(this.options,t),this},J.prototype.configure=function(t){var e=this,n;if(De.isString(t)&&(n=t,t=Ac[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enableOnly(t.components[r].rules),t.components[r].rules2&&e[r].ruler2.enableOnly(t.components[r].rules2)}),this},J.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(o){return n.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},J.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(o){return n.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},J.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},J.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},J.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},J.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},J.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Rc=J,Nc=Rc;const Lc=$t(Nc);var Bc=p.defineComponent({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,required:!1}},data:function(){return{md:null}},computed:{content:function(){var t,e=this.source;return(t=this.md)===null||t===void 0?void 0:t.render(e)}},created:function(){var t;this.md=new Lc((t=this.options)!==null&&t!==void 0?t:{})},render:function(){return p.h("div",{innerHTML:this.content})}});const Mc=Bc;function Jn(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Jn(n)}),t}class Yn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Xn(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function ae(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const o in r)n[o]=r[o]}),n}const Ic="</span>",Qn=t=>!!t.scope,Fc=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${e}${t}`};class Oc{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Xn(e)}openNode(e){if(!Qn(e))return;const n=Fc(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){Qn(e)&&(this.buffer+=Ic)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const er=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class Dt{constructor(){this.rootNode=er(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=er({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{Dt._collapse(n)}))}}class Pc extends Dt{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new Oc(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Te(t){return t?typeof t=="string"?t:t.source:null}function tr(t){return ge("(?=",t,")")}function zc(t){return ge("(?:",t,")*")}function Uc(t){return ge("(?:",t,")?")}function ge(...t){return t.map(n=>Te(n)).join("")}function Vc(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Tt(...t){return"("+(Vc(t).capture?"":"?:")+t.map(r=>Te(r)).join("|")+")"}function nr(t){return new RegExp(t.toString()+"|").exec("").length-1}function $c(t,e){const n=t&&t.exec(e);return n&&n.index===0}const Gc=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Rt(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const o=n;let s=Te(r),c="";for(;s.length>0;){const i=Gc.exec(s);if(!i){c+=s;break}c+=s.substring(0,i.index),s=s.substring(i.index+i[0].length),i[0][0]==="\\"&&i[1]?c+="\\"+String(Number(i[1])+o):(c+=i[0],i[0]==="("&&n++)}return c}).map(r=>`(${r})`).join(e)}const Hc=/\b\B/,rr="[a-zA-Z]\\w*",Nt="[a-zA-Z_]\\w*",or="\\b\\d+(\\.\\d+)?",sr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",cr="\\b(0b[01]+)",jc="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Zc=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=ge(e,/.*\b/,t.binary,/\b.*/)),ae({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},Re={begin:"\\\\[\\s\\S]",relevance:0},Wc={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Re]},Kc={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Re]},Jc={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},We=function(t,e,n={}){const r=ae({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=Tt("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:ge(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Yc=We("//","$"),Xc=We("/\\*","\\*/"),Qc=We("#","$"),ei={scope:"number",begin:or,relevance:0},ti={scope:"number",begin:sr,relevance:0},ni={scope:"number",begin:cr,relevance:0},ri={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Re,{begin:/\[/,end:/\]/,relevance:0,contains:[Re]}]}]},oi={scope:"title",begin:rr,relevance:0},si={scope:"title",begin:Nt,relevance:0},ci={begin:"\\.\\s*"+Nt,relevance:0};var Ke=Object.freeze({__proto__:null,MATCH_NOTHING_RE:Hc,IDENT_RE:rr,UNDERSCORE_IDENT_RE:Nt,NUMBER_RE:or,C_NUMBER_RE:sr,BINARY_NUMBER_RE:cr,RE_STARTERS_RE:jc,SHEBANG:Zc,BACKSLASH_ESCAPE:Re,APOS_STRING_MODE:Wc,QUOTE_STRING_MODE:Kc,PHRASAL_WORDS_MODE:Jc,COMMENT:We,C_LINE_COMMENT_MODE:Yc,C_BLOCK_COMMENT_MODE:Xc,HASH_COMMENT_MODE:Qc,NUMBER_MODE:ei,C_NUMBER_MODE:ti,BINARY_NUMBER_MODE:ni,REGEXP_MODE:ri,TITLE_MODE:oi,UNDERSCORE_TITLE_MODE:si,METHOD_GUARD:ci,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}});function ii(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function ai(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function li(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=ii,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function ui(t,e){Array.isArray(t.illegal)&&(t.illegal=Tt(...t.illegal))}function pi(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function fi(t,e){t.relevance===void 0&&(t.relevance=1)}const hi=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=ge(n.beforeMatch,tr(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},di=["of","and","for","in","not","or","if","then","parent","list","value"],gi="keyword";function ir(t,e,n=gi){const r=Object.create(null);return typeof t=="string"?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach(function(s){Object.assign(r,ir(t[s],e,s))}),r;function o(s,c){e&&(c=c.map(i=>i.toLowerCase())),c.forEach(function(i){const a=i.split("|");r[a[0]]=[s,mi(a[0],a[1])]})}}function mi(t,e){return e?Number(e):bi(t)?0:1}function bi(t){return di.includes(t.toLowerCase())}const ar={},me=t=>{console.error(t)},lr=(t,...e)=>{console.log(`WARN: ${t}`,...e)},ve=(t,e)=>{ar[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),ar[`${t}/${e}`]=!0)},Je=new Error;function ur(t,e,{key:n}){let r=0;const o=t[n],s={},c={};for(let i=1;i<=e.length;i++)c[i+r]=o[i],s[i+r]=!0,r+=nr(e[i-1]);t[n]=c,t[n]._emit=s,t[n]._multi=!0}function _i(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw me("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Je;if(typeof t.beginScope!="object"||t.beginScope===null)throw me("beginScope must be object"),Je;ur(t,t.begin,{key:"beginScope"}),t.begin=Rt(t.begin,{joinWith:""})}}function ki(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw me("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Je;if(typeof t.endScope!="object"||t.endScope===null)throw me("endScope must be object"),Je;ur(t,t.end,{key:"endScope"}),t.end=Rt(t.end,{joinWith:""})}}function xi(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function yi(t){xi(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),_i(t),ki(t)}function wi(t){function e(c,i){return new RegExp(Te(c),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(i?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(i,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,i]),this.matchAt+=nr(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const i=this.regexes.map(a=>a[1]);this.matcherRe=e(Rt(i,{joinWith:"|"}),!0),this.lastIndex=0}exec(i){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(i);if(!a)return null;const l=a.findIndex((h,f)=>f>0&&h!==void 0),u=this.matchIndexes[l];return a.splice(0,l),Object.assign(a,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(i){if(this.multiRegexes[i])return this.multiRegexes[i];const a=new n;return this.rules.slice(i).forEach(([l,u])=>a.addRule(l,u)),a.compile(),this.multiRegexes[i]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(i,a){this.rules.push([i,a]),a.type==="begin"&&this.count++}exec(i){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let l=a.exec(i);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,l=u.exec(i)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function o(c){const i=new r;return c.contains.forEach(a=>i.addRule(a.begin,{rule:a,type:"begin"})),c.terminatorEnd&&i.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&i.addRule(c.illegal,{type:"illegal"}),i}function s(c,i){const a=c;if(c.isCompiled)return a;[ai,pi,yi,hi].forEach(u=>u(c,i)),t.compilerExtensions.forEach(u=>u(c,i)),c.__beforeBegin=null,[li,ui,fi].forEach(u=>u(c,i)),c.isCompiled=!0;let l=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),l=c.keywords.$pattern,delete c.keywords.$pattern),l=l||/\w+/,c.keywords&&(c.keywords=ir(c.keywords,t.case_insensitive)),a.keywordPatternRe=e(l,!0),i&&(c.begin||(c.begin=/\B|\b/),a.beginRe=e(a.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(a.endRe=e(a.end)),a.terminatorEnd=Te(a.end)||"",c.endsWithParent&&i.terminatorEnd&&(a.terminatorEnd+=(c.end?"|":"")+i.terminatorEnd)),c.illegal&&(a.illegalRe=e(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(u){return vi(u==="self"?c:u)})),c.contains.forEach(function(u){s(u,a)}),c.starts&&s(c.starts,i),a.matcher=o(a),a}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=ae(t.classNameAliases||{}),s(t)}function pr(t){return t?t.endsWithParent||pr(t.starts):!1}function vi(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return ae(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:pr(t)?ae(t,{starts:t.starts?ae(t.starts):null}):Object.isFrozen(t)?ae(t):t}var Ei="11.8.0";class Ai extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Lt=Xn,fr=ae,hr=Symbol("nomatch"),Ci=7,dr=function(t){const e=Object.create(null),n=Object.create(null),r=[];let o=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let i={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Pc};function a(g){return i.noHighlightRe.test(g)}function l(g){let w=g.className+" ";w+=g.parentNode?g.parentNode.className:"";const D=i.languageDetectRe.exec(w);if(D){const M=G(D[1]);return M||(lr(s.replace("{}",D[1])),lr("Falling back to no-highlight mode for this block.",g)),M?D[1]:"no-highlight"}return w.split(/\s+/).find(M=>a(M)||G(M))}function u(g,w,D){let M="",V="";typeof w=="object"?(M=g,D=w.ignoreIllegals,V=w.language):(ve("10.7.0","highlight(lang, code, ...args) has been deprecated."),ve("10.7.0",`Please use highlight(code, options) instead.
18
+ https://github.com/highlightjs/highlight.js/issues/2277`),V=g,M=w),D===void 0&&(D=!0);const Z={code:M,language:V};F("before:highlight",Z);const X=Z.result?Z.result:h(Z.language,Z.code,D);return X.code=Z.code,F("after:highlight",X),X}function h(g,w,D,M){const V=Object.create(null);function Z(k,A){return k.keywords[A]}function X(){if(!S.keywords){H.addText(z);return}let k=0;S.keywordPatternRe.lastIndex=0;let A=S.keywordPatternRe.exec(z),R="";for(;A;){R+=z.substring(k,A.index);const O=se.case_insensitive?A[0].toLowerCase():A[0],j=Z(S,O);if(j){const[ie,ka]=j;if(H.addText(R),R="",V[O]=(V[O]||0)+1,V[O]<=Ci&&(tt+=ka),ie.startsWith("_"))R+=A[0];else{const xa=se.classNameAliases[ie]||ie;oe(A[0],xa)}}else R+=A[0];k=S.keywordPatternRe.lastIndex,A=S.keywordPatternRe.exec(z)}R+=z.substring(k),H.addText(R)}function Qe(){if(z==="")return;let k=null;if(typeof S.subLanguage=="string"){if(!e[S.subLanguage]){H.addText(z);return}k=h(S.subLanguage,z,!0,qr[S.subLanguage]),qr[S.subLanguage]=k._top}else k=d(z,S.subLanguage.length?S.subLanguage:null);S.relevance>0&&(tt+=k.relevance),H.__addSublanguage(k._emitter,k.language)}function W(){S.subLanguage!=null?Qe():X(),z=""}function oe(k,A){k!==""&&(H.startScope(A),H.addText(k),H.endScope())}function vr(k,A){let R=1;const O=A.length-1;for(;R<=O;){if(!k._emit[R]){R++;continue}const j=se.classNameAliases[k[R]]||k[R],ie=A[R];j?oe(ie,j):(z=ie,X(),z=""),R++}}function Er(k,A){return k.scope&&typeof k.scope=="string"&&H.openNode(se.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(oe(z,se.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),z=""):k.beginScope._multi&&(vr(k.beginScope,A),z="")),S=Object.create(k,{parent:{value:S}}),S}function Ar(k,A,R){let O=$c(k.endRe,R);if(O){if(k["on:end"]){const j=new Yn(k);k["on:end"](A,j),j.isMatchIgnored&&(O=!1)}if(O){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Ar(k.parent,A,R)}function da(k){return S.matcher.regexIndex===0?(z+=k[0],1):(Ot=!0,0)}function ga(k){const A=k[0],R=k.rule,O=new Yn(R),j=[R.__beforeBegin,R["on:begin"]];for(const ie of j)if(ie&&(ie(k,O),O.isMatchIgnored))return da(A);return R.skip?z+=A:(R.excludeBegin&&(z+=A),W(),!R.returnBegin&&!R.excludeBegin&&(z=A)),Er(R,k),R.returnBegin?0:A.length}function ma(k){const A=k[0],R=w.substring(k.index),O=Ar(S,k,R);if(!O)return hr;const j=S;S.endScope&&S.endScope._wrap?(W(),oe(A,S.endScope._wrap)):S.endScope&&S.endScope._multi?(W(),vr(S.endScope,k)):j.skip?z+=A:(j.returnEnd||j.excludeEnd||(z+=A),W(),j.excludeEnd&&(z=A));do S.scope&&H.closeNode(),!S.skip&&!S.subLanguage&&(tt+=S.relevance),S=S.parent;while(S!==O.parent);return O.starts&&Er(O.starts,k),j.returnEnd?0:A.length}function ba(){const k=[];for(let A=S;A!==se;A=A.parent)A.scope&&k.unshift(A.scope);k.forEach(A=>H.openNode(A))}let et={};function Cr(k,A){const R=A&&A[0];if(z+=k,R==null)return W(),0;if(et.type==="begin"&&A.type==="end"&&et.index===A.index&&R===""){if(z+=w.slice(A.index,A.index+1),!o){const O=new Error(`0 width match regex (${g})`);throw O.languageName=g,O.badRule=et.rule,O}return 1}if(et=A,A.type==="begin")return ga(A);if(A.type==="illegal"&&!D){const O=new Error('Illegal lexeme "'+R+'" for mode "'+(S.scope||"<unnamed>")+'"');throw O.mode=S,O}else if(A.type==="end"){const O=ma(A);if(O!==hr)return O}if(A.type==="illegal"&&R==="")return 1;if(Ft>1e5&&Ft>A.index*3)throw new Error("potential infinite loop, way more iterations than matches");return z+=R,R.length}const se=G(g);if(!se)throw me(s.replace("{}",g)),new Error('Unknown language: "'+g+'"');const _a=wi(se);let It="",S=M||_a;const qr={},H=new i.__emitter(i);ba();let z="",tt=0,be=0,Ft=0,Ot=!1;try{if(se.__emitTokens)se.__emitTokens(w,H);else{for(S.matcher.considerAll();;){Ft++,Ot?Ot=!1:S.matcher.considerAll(),S.matcher.lastIndex=be;const k=S.matcher.exec(w);if(!k)break;const A=w.substring(be,k.index),R=Cr(A,k);be=k.index+R}Cr(w.substring(be))}return H.finalize(),It=H.toHTML(),{language:g,value:It,relevance:tt,illegal:!1,_emitter:H,_top:S}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:g,value:Lt(w),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:be,context:w.slice(be-100,be+100),mode:k.mode,resultSoFar:It},_emitter:H};if(o)return{language:g,value:Lt(w),illegal:!1,relevance:0,errorRaised:k,_emitter:H,_top:S};throw k}}function f(g){const w={value:Lt(g),illegal:!1,relevance:0,_top:c,_emitter:new i.__emitter(i)};return w._emitter.addText(g),w}function d(g,w){w=w||i.languages||Object.keys(e);const D=f(g),M=w.filter(G).filter(P).map(W=>h(W,g,!1));M.unshift(D);const V=M.sort((W,oe)=>{if(W.relevance!==oe.relevance)return oe.relevance-W.relevance;if(W.language&&oe.language){if(G(W.language).supersetOf===oe.language)return 1;if(G(oe.language).supersetOf===W.language)return-1}return 0}),[Z,X]=V,Qe=Z;return Qe.secondBest=X,Qe}function y(g,w,D){const M=w&&n[w]||D;g.classList.add("hljs"),g.classList.add(`language-${M}`)}function x(g){let w=null;const D=l(g);if(a(D))return;if(F("before:highlightElement",{el:g,language:D}),g.children.length>0&&(i.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(g)),i.throwUnescapedHTML))throw new Ai("One of your code blocks includes unescaped HTML.",g.innerHTML);w=g;const M=w.textContent,V=D?u(M,{language:D,ignoreIllegals:!0}):d(M);g.innerHTML=V.value,y(g,D,V.language),g.result={language:V.language,re:V.relevance,relevance:V.relevance},V.secondBest&&(g.secondBest={language:V.secondBest.language,relevance:V.secondBest.relevance}),F("after:highlightElement",{el:g,result:V,text:M})}function C(g){i=fr(i,g)}const v=()=>{q(),ve("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function m(){q(),ve("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let E=!1;function q(){if(document.readyState==="loading"){E=!0;return}document.querySelectorAll(i.cssSelector).forEach(x)}function T(){E&&q()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",T,!1);function _(g,w){let D=null;try{D=w(t)}catch(M){if(me("Language definition for '{}' could not be registered.".replace("{}",g)),o)me(M);else throw M;D=c}D.name||(D.name=g),e[g]=D,D.rawDefinition=w.bind(null,t),D.aliases&&N(D.aliases,{languageName:g})}function B(g){delete e[g];for(const w of Object.keys(n))n[w]===g&&delete n[w]}function U(){return Object.keys(e)}function G(g){return g=(g||"").toLowerCase(),e[g]||e[n[g]]}function N(g,{languageName:w}){typeof g=="string"&&(g=[g]),g.forEach(D=>{n[D.toLowerCase()]=w})}function P(g){const w=G(g);return w&&!w.disableAutodetect}function ce(g){g["before:highlightBlock"]&&!g["before:highlightElement"]&&(g["before:highlightElement"]=w=>{g["before:highlightBlock"](Object.assign({block:w.el},w))}),g["after:highlightBlock"]&&!g["after:highlightElement"]&&(g["after:highlightElement"]=w=>{g["after:highlightBlock"](Object.assign({block:w.el},w))})}function re(g){ce(g),r.push(g)}function b(g){const w=r.indexOf(g);w!==-1&&r.splice(w,1)}function F(g,w){const D=g;r.forEach(function(M){M[D]&&M[D](w)})}function L(g){return ve("10.7.0","highlightBlock will be removed entirely in v12.0"),ve("10.7.0","Please use highlightElement now."),x(g)}Object.assign(t,{highlight:u,highlightAuto:d,highlightAll:q,highlightElement:x,highlightBlock:L,configure:C,initHighlighting:v,initHighlightingOnLoad:m,registerLanguage:_,unregisterLanguage:B,listLanguages:U,getLanguage:G,registerAliases:N,autoDetection:P,inherit:fr,addPlugin:re,removePlugin:b}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=Ei,t.regex={concat:ge,lookahead:tr,either:Tt,optional:Uc,anyNumberOfTimes:zc};for(const g in Ke)typeof Ke[g]=="object"&&Jn(Ke[g]);return Object.assign(t,Ke),t},Ee=dr({});Ee.newInstance=()=>dr({});var qi=Ee;Ee.HighlightJS=Ee,Ee.default=Ee;const Ye=$t(qi),Bt=p.defineComponent({__name:"Message",props:{message:{type:Object,required:!0}},setup(t){const e=t,{message:n}=p.toRefs(e),r=p.computed(()=>({"chat-message-from-user":n.value.sender==="user","chat-message-from-bot":n.value.sender==="bot"})),o={highlight(s,c){if(c&&Ye.getLanguage(c))try{return Ye.highlight(s,{language:c}).value}catch{}return""}};return(s,c)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["chat-message",r.value])},[p.renderSlot(s.$slots,"default",{},()=>[p.createVNode(p.unref(Mc),{class:"chat-message-markdown",source:p.unref(n).text,options:o},null,8,["source"])])],2))}}),J$="",Si=p.createElementVNode("div",{class:"chat-message-typing-body"},[p.createElementVNode("span",{class:"chat-message-typing-circle"}),p.createElementVNode("span",{class:"chat-message-typing-circle"}),p.createElementVNode("span",{class:"chat-message-typing-circle"})],-1),Di=p.defineComponent({__name:"MessageTyping",props:{animation:{type:String,default:"bouncing"}},setup(t){const e=t,n={id:"typing",text:"",sender:"bot",createdAt:""},r=p.computed(()=>({"chat-message-typing":!0,[`chat-message-typing-animation-${e.animation}`]:!0}));return(o,s)=>(p.openBlock(),p.createBlock(p.unref(Bt),{class:p.normalizeClass(r.value),message:n},{default:p.withCtx(()=>[Si]),_:1},8,["class"]))}}),Y$="",Ti={class:"chat-messages-list"},Ri=p.defineComponent({__name:"MessagesList",props:{messages:{type:Array,required:!0}},setup(t){const e=nt(),{initialMessages:n,waitingForResponse:r}=e;return(o,s)=>(p.openBlock(),p.createElementBlock("div",Ti,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(n),c=>(p.openBlock(),p.createBlock(Bt,{key:c.id,message:c},null,8,["message"]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.messages,c=>(p.openBlock(),p.createBlock(Bt,{key:c.id,message:c},null,8,["message"]))),128)),p.unref(r)?(p.openBlock(),p.createBlock(Di,{key:0})):p.createCommentVNode("",!0)]))}}),X$="",Ni={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Li=[p.createElementVNode("path",{fill:"currentColor",d:"m2 21l21-9L2 3v7l15 2l-15 2v7Z"},null,-1)];function Bi(t,e){return p.openBlock(),p.createElementBlock("svg",Ni,Li)}const Mi={name:"mdi-send",render:Bi},Ii={class:"chat-input"},Fi=["placeholder","onKeydown"],Oi=["disabled"],Pi=p.defineComponent({__name:"Input",setup(t){const e=nt(),{waitingForResponse:n}=e,{t:r}=Le(),o=p.ref(""),s=p.computed(()=>o.value===""||n.value);async function c(a){if(a.preventDefault(),s.value)return;const l=o.value;o.value="",await e.sendMessage(l)}async function i(a){a.shiftKey||await c(a)}return(a,l)=>(p.openBlock(),p.createElementBlock("div",Ii,[p.withDirectives(p.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=u=>o.value=u),rows:"1",placeholder:p.unref(r)("inputPlaceholder"),onKeydown:p.withKeys(i,["enter"])},null,40,Fi),[[p.vModelText,o.value]]),p.createElementVNode("button",{disabled:s.value,class:"chat-input-send-button",onClick:c},[p.createVNode(p.unref(Mi),{height:"32",width:"32"})],8,Oi)]))}}),eG="",gr=p.defineComponent({__name:"Chat",setup(t){const{t:e}=Le(),n=nt(),{messages:r,currentSessionId:o}=n;async function s(){await n.loadPreviousSession(),p.nextTick(()=>{ue.emit("scrollToBottom")})}async function c(){n.startNewSession(),p.nextTick(()=>{ue.emit("scrollToBottom")})}return p.onMounted(()=>{s()}),(i,a)=>(p.openBlock(),p.createBlock(Fr,{class:"chat-wrapper"},p.createSlots({footer:p.withCtx(()=>[p.unref(o)?(p.openBlock(),p.createBlock(Pi,{key:0})):(p.openBlock(),p.createBlock(Wr,{key:1}))]),default:p.withCtx(()=>[p.unref(o)?(p.openBlock(),p.createBlock(Ri,{key:1,messages:p.unref(r)},null,8,["messages"])):(p.openBlock(),p.createBlock(zr,{key:0,"onClick:button":c}))]),_:2},[p.unref(o)?void 0:{name:"header",fn:p.withCtx(()=>[p.createElementVNode("h1",null,p.toDisplayString(p.unref(e)("title")),1),p.createElementVNode("p",null,p.toDisplayString(p.unref(e)("subtitle")),1)]),key:"0"}]),1024))}}),zi={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ui=[p.createElementVNode("path",{fill:"currentColor",d:"M12 3c5.5 0 10 3.58 10 8s-4.5 8-10 8c-1.24 0-2.43-.18-3.53-.5C5.55 21 2 21 2 21c2.33-2.33 2.7-3.9 2.75-4.5C3.05 15.07 2 13.13 2 11c0-4.42 4.5-8 10-8Z"},null,-1)];function Vi(t,e){return p.openBlock(),p.createElementBlock("svg",zi,Ui)}const $i={name:"mdi-chat",render:Vi},Gi={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Hi=[p.createElementVNode("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"},null,-1)];function ji(t,e){return p.openBlock(),p.createElementBlock("svg",Gi,Hi)}const Zi={name:"mdi-chevron-down",render:ji},Wi={class:"chat-window-wrapper"},Ki={class:"chat-window"},Ji=p.defineComponent({__name:"ChatWindow",setup(t){const e=p.ref(!1);function n(){e.value=!e.value,e.value&&p.nextTick(()=>{ue.emit("scrollToBottom")})}return(r,o)=>(p.openBlock(),p.createElementBlock("div",Wi,[p.createVNode(p.Transition,{name:"chat-window-transition"},{default:p.withCtx(()=>[p.withDirectives(p.createElementVNode("div",Ki,[p.createVNode(gr)],512),[[p.vShow,e.value]])]),_:1}),p.createElementVNode("div",{class:"chat-window-toggle",onClick:n},[p.createVNode(p.Transition,{name:"chat-window-toggle-transition",mode:"out-in"},{default:p.withCtx(()=>[e.value?(p.openBlock(),p.createBlock(p.unref(Zi),{key:1,height:"32",width:"32"})):(p.openBlock(),p.createBlock(p.unref($i),{key:0,height:"32",width:"32"}))]),_:1})])]))}}),rG="";function Yi(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=t.inherit(s,{begin:/\(/,end:/\)/}),i=t.inherit(t.APOS_STRING_MODE,{className:"string"}),a=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,a,i,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,c,a,i]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const mr="[A-Za-z$_][0-9A-Za-z$_]*",Xi=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Qi=["true","false","null","undefined","NaN","Infinity"],br=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],_r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],kr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],ea=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ta=[].concat(kr,br,_r);function na(t){const e=t.regex,n=(w,{after:D})=>{const M="</"+w[0].slice(1);return w.input.indexOf(M,D)!==-1},r=mr,o={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(w,D)=>{const M=w[0].length+w.index,V=w.input[M];if(V==="<"||V===","){D.ignoreMatch();return}V===">"&&(n(w,{after:M})||D.ignoreMatch());let Z;const X=w.input.substring(M);if(Z=X.match(/^\s*=/)){D.ignoreMatch();return}if((Z=X.match(/^\s+extends\s+/))&&Z.index===0){D.ignoreMatch();return}}},i={$pattern:mr,keyword:Xi,literal:Qi,built_in:ta,"variable.language":ea},a="[0-9](_?[0-9])*",l=`\\.(${a})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${a})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"css"}},x={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,f]},m={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},E=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,y,x,C,{match:/\$\d+/},h];f.contains=E.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(E)});const q=[].concat(m,f.contains),T=q.concat([{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(q)}]),_={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:T},B={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},U={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...br,..._r]}},G={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},N={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ce(w){return e.concat("(?!",w.join("|"),")")}const re={match:e.concat(/\b/,ce([...kr,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},b={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_]},L="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",g={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(L)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:U},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),G,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,y,x,C,m,{match:/\$\d+/},h,U,{className:"attr",begin:r+e.lookahead(":"),relevance:0},g,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[m,t.REGEXP_MODE,{className:"function",begin:L,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:s},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},N,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},b,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_]},re,P,B,F,{match:/\$[(.]/}]}}const ra=p.defineComponent({__name:"App",props:{},setup(t){const{options:e}=rt(),n=p.computed(()=>e.mode==="fullscreen");return p.onMounted(()=>{Ye.registerLanguage("xml",Yi),Ye.registerLanguage("javascript",na)}),(r,o)=>n.value?(p.openBlock(),p.createBlock(p.unref(gr),{key:0,class:"n8n-chat"})):(p.openBlock(),p.createBlock(p.unref(Ji),{key:1,class:"n8n-chat"}))}});var Xe,oa=new Uint8Array(16);function sa(){if(!Xe&&(Xe=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Xe))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xe(oa)}const ca=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ia(t){return typeof t=="string"&&ca.test(t)}for(var $=[],Mt=0;Mt<256;++Mt)$.push((Mt+256).toString(16).substr(1));function aa(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=($[t[e+0]]+$[t[e+1]]+$[t[e+2]]+$[t[e+3]]+"-"+$[t[e+4]]+$[t[e+5]]+"-"+$[t[e+6]]+$[t[e+7]]+"-"+$[t[e+8]]+$[t[e+9]]+"-"+$[t[e+10]]+$[t[e+11]]+$[t[e+12]]+$[t[e+13]]+$[t[e+14]]+$[t[e+15]]).toLowerCase();if(!ia(n))throw TypeError("Stringified UUID is invalid");return n}function Ne(t,e,n){t=t||{};var r=t.random||(t.rng||sa)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return aa(r)}async function la(){return""}async function xr(...t){var r;const e=await la();return await(await fetch(t[0],{...t[1],mode:"cors",cache:"no-cache",headers:{...e?{authorization:`Bearer ${e}`}:{},...(r=t[1])==null?void 0:r.headers}})).json()}async function yr(t,e={},n={}){let r=t;return Object.keys(e).length>0&&(r=`${r}?${new URLSearchParams(e).toString()}`),xr(r,{...n,method:"GET"})}async function wr(t,e={},n={}){return xr(t,{...n,method:"POST",body:JSON.stringify(e)})}async function ua(t,e){var r,o;return(((r=e.webhookConfig)==null?void 0:r.method)==="POST"?wr:yr)(`${e.webhookUrl}`,{action:"loadPreviousSession",sessionId:t},{headers:(o=e.webhookConfig)==null?void 0:o.headers})}async function pa(t,e,n){var o,s;return(((o=n.webhookConfig)==null?void 0:o.method)==="POST"?wr:yr)(`${n.webhookUrl}`,{action:"sendMessage",sessionId:e,message:t},{headers:(s=n.webhookConfig)==null?void 0:s.headers})}const fa={install(t,e){t.provide(Vt,e);const n=p.ref([]),r=p.ref(null),o=p.ref(!1),s=p.computed(()=>(e.initialMessages??[]).map(l=>({id:Ne(),text:l,sender:"bot",createdAt:new Date().toISOString()})));async function c(l){const u={id:Ne(),text:l,sender:"user",createdAt:new Date().toISOString()};n.value.push(u),o.value=!0,p.nextTick(()=>{ue.emit("scrollToBottom")});const h=await pa(l,r.value,e),f={id:Ne(),text:h.output,sender:"bot",createdAt:new Date().toISOString()};n.value.push(f),o.value=!1,p.nextTick(()=>{ue.emit("scrollToBottom")})}async function i(){const l=localStorage.getItem(zt)??Ne(),u=await ua(l,e),h=new Date().toISOString();return n.value=((u==null?void 0:u.data)||[]).map((f,d)=>({id:`${d}`,text:f.kwargs.content,sender:f.id.includes("HumanMessage")?"user":"bot",createdAt:h})),n.value.length&&(r.value=l),l}async function a(){r.value=Ne(),localStorage.setItem(zt,r.value)}t.provide(Ut,{initialMessages:s,messages:n,currentSessionId:r,waitingForResponse:o,loadPreviousSession:i,startNewSession:a,sendMessage:c})}};function ha(t){var o,s;const e={...Ae,...t,webhookConfig:{...Ae.webhookConfig,...t==null?void 0:t.webhookConfig},i18n:{...Ae.i18n,...t==null?void 0:t.i18n,en:{...(o=Ae.i18n)==null?void 0:o.en,...(s=t==null?void 0:t.i18n)==null?void 0:s.en}},theme:{...Ae.theme,...t==null?void 0:t.theme}},n=e.target??Or;typeof n=="string"&&Lr(n);const r=p.createApp(ra);return r.use(fa,e),r.mount(n),r}le.createChat=ha,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})});