vvplot 0.1.3 → 0.3.0

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.
@@ -0,0 +1,25 @@
1
+ var VVPlot=(function(lt,o){"use strict";function bs(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function vs(t){if(!o.isRef(t))return o.reactive(t);const e=new Proxy({},{get(n,r,i){return o.unref(Reflect.get(t.value,r,i))},set(n,r,i){return o.isRef(t.value[r])&&!o.isRef(i)?t.value[r].value=i:t.value[r]=i,!0},deleteProperty(n,r){return Reflect.deleteProperty(t.value,r)},has(n,r){return Reflect.has(t.value,r)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return o.reactive(e)}function ue(t){return vs(o.computed(t))}const ws=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ks=ws?window:void 0;function Tr(t){var e;const n=o.toValue(t);return(e=n?.$el)!=null?e:n}function Ns(){const t=o.shallowRef(!1),e=o.getCurrentInstance();return e&&o.onMounted(()=>{t.value=!0},e),t}function As(t){const e=Ns();return o.computed(()=>(e.value,!!t()))}function Cr(t,e,n={}){const{window:r=ks,...i}=n;let s;const a=As(()=>r&&"ResizeObserver"in r),c=()=>{s&&(s.disconnect(),s=void 0)},u=o.computed(()=>{const d=o.toValue(t);return Array.isArray(d)?d.map(m=>Tr(m)):[Tr(d)]}),l=o.watch(u,d=>{if(c(),a.value&&r){s=new ResizeObserver(e);for(const m of d)m&&s.observe(m,i)}},{immediate:!0,flush:"post"}),h=()=>{c(),l()};return bs(h),{isSupported:a,stop:h}}const cn=()=>!1,l1=Object.assign,Es=Symbol(""),Ss=Symbol(""),Ts=Symbol(""),Cs=Symbol(""),Mr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Ms(t,e=""){return{type:0,source:e,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Mr}}function a1(t,e=!1,n=Mr,r=0){return{type:4,loc:n,content:t,isStatic:e,constType:e?3:r}}const Br=new Uint8Array([123,123]),Lr=new Uint8Array([125,125]);function $r(t){return t>=97&&t<=122||t>=65&&t<=90}function It(t){return t===32||t===10||t===9||t===12||t===13}function he(t){return t===47||t===62||It(t)}function un(t){const e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}const Lt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Bs{constructor(e,n){this.stack=e,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Br,this.delimiterClose=Lr,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Br,this.delimiterClose=Lr}getPos(e){let n=1,r=e+1;const i=this.newlines.length;let s=-1;if(i>100){let a=-1,c=i;for(;a+1<c;){const u=a+c>>>1;this.newlines[u]<e?a=u:c=u}s=a}else for(let a=i-1;a>=0;a--)if(e>this.newlines[a]){s=a;break}return s>=0&&(n=s+2,r=e-this.newlines[s]),{column:r,line:n,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?he(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||It(e)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(e),this.inRCDATA=!1;return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Lt.TitleEnd||this.currentSequence===Lt.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===60)}stateCDATASequence(e){e===Lt.Cdata[this.sequenceIndex]?++this.sequenceIndex===Lt.Cdata.length&&(this.state=28,this.currentSequence=Lt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Lt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,n){this.enterRCDATA(e,n),this.state=31}enterRCDATA(e,n){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=n}stateBeforeTagName(e){e===33?(this.state=22,this.sectionStart=this.index+1):e===63?(this.state=24,this.sectionStart=this.index+1):$r(e)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:e===116?this.state=30:this.state=e===115?29:6):e===47?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){he(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(he(e)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(un("</"+n),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){It(e)||(e===62?(this.state=1,this.sectionStart=this.index+1):(this.state=$r(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(e===62||It(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){e===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){e===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):e===47?this.state=7:e===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):It(e)||this.handleAttrStart(e)}handleAttrStart(e){e===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):e===46||e===58||e===64||e===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):It(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(e===61||he(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){e===61||he(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):e===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){e===61||he(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===91?this.state=15:e===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){e===93?this.state=14:(e===61||he(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){e===61||he(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){e===61?this.state=18:e===47||e===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):It(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){e===34?(this.state=19,this.sectionStart=this.index+1):e===39?(this.state=20,this.sectionStart=this.index+1):It(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,n){(e===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){It(e)||e===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):(e===39||e===60||e===61||e===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){e===91?(this.state=26,this.sequenceIndex=0):this.state=e===45?25:23}stateInDeclaration(e){(e===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){e===45?(this.state=28,this.currentSequence=Lt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(e===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===Lt.ScriptEnd[3]?this.startSpecial(Lt.ScriptEnd,4):e===Lt.StyleEnd[3]?this.startSpecial(Lt.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===Lt.TitleEnd[3]?this.startSpecial(Lt.TitleEnd,4):e===Lt.TextareaEnd[3]?this.startSpecial(Lt.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(this.state===28?this.currentSequence===Lt.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,n){}}function qr(t,{compatConfig:e}){const n=e&&e[t];return t==="MODE"?n||3:n}function Or(t,e){const n=qr("MODE",e),r=qr(t,e);return n===3?r===!0:r!==!1}function hn(t,e,n,...r){return Or(t,e)}function Ls(t){throw t}function $s(t){}function qs(t,e,n,r){const i=`https://vuejs.org/error-reference/#compiler-${t}`,s=new SyntaxError(String(i));return s.code=t,s.loc=e,s}const Os=t=>t.type===4&&t.isStatic;function Ps(t){switch(t){case"Teleport":case"teleport":return Es;case"Suspense":case"suspense":return Ss;case"KeepAlive":case"keep-alive":return Ts;case"BaseTransition":case"base-transition":return Cs}}function Ds(t,e){return!!(t&&Os(t)&&t.content===e)}function Pr(t){return t.type===7&&t.name==="pre"}const Vs=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function js(t){for(let e=0;e<t.length;e++)if(!It(t.charCodeAt(e)))return!1;return!0}const Dr={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:cn,isPreTag:cn,isIgnoreNewlineTag:cn,isCustomElement:cn,onError:Ls,onWarn:$s,comments:!1,prefixIdentifiers:!1};let mt=Dr,Ye=null,ee="",$t=null,at=null,Vt="",ne=-1,pe=-1,c1=0,fe=!1,u1=null;const pt=[],xt=new Bs(pt,{onerr:re,ontext(t,e){fn(Tt(t,e),t,e)},ontextentity(t,e,n){fn(t,e,n)},oninterpolation(t,e){if(fe)return fn(Tt(t,e),t,e);let n=t+xt.delimiterOpen.length,r=e-xt.delimiterClose.length;for(;It(ee.charCodeAt(n));)n++;for(;It(ee.charCodeAt(r-1));)r--;let i=Tt(n,r);i.includes("&")&&(i=mt.decodeEntities(i,!1)),h1({type:5,content:dn(i,!1,kt(n,r)),loc:kt(t,e)})},onopentagname(t,e){const n=Tt(t,e);$t={type:1,tag:n,ns:mt.getNamespace(n,pt[0],mt.ns),tagType:0,props:[],children:[],loc:kt(t-1,e),codegenNode:void 0}},onopentagend(t){jr(t)},onclosetag(t,e){const n=Tt(t,e);if(!mt.isVoidTag(n)){let r=!1;for(let i=0;i<pt.length;i++)if(pt[i].tag.toLowerCase()===n.toLowerCase()){r=!0,i>0&&re(24,pt[0].loc.start.offset);for(let a=0;a<=i;a++){const c=pt.shift();mn(c,e,a<i)}break}r||re(23,Rr(t,60))}},onselfclosingtag(t){const e=$t.tag;$t.isSelfClosing=!0,jr(t),pt[0]&&pt[0].tag===e&&mn(pt.shift(),t)},onattribname(t,e){at={type:6,name:Tt(t,e),nameLoc:kt(t,e),value:void 0,loc:kt(t)}},ondirname(t,e){const n=Tt(t,e),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!fe&&r===""&&re(26,t),fe||r==="")at={type:6,name:n,nameLoc:kt(t,e),value:void 0,loc:kt(t)};else if(at={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[a1("prop")]:[],loc:kt(t)},r==="pre"){fe=xt.inVPre=!0,u1=$t;const i=$t.props;for(let s=0;s<i.length;s++)i[s].type===7&&(i[s]=Gs(i[s]))}},ondirarg(t,e){if(t===e)return;const n=Tt(t,e);if(fe&&!Pr(at))at.name+=n,ye(at.nameLoc,e);else{const r=n[0]!=="[";at.arg=dn(r?n:n.slice(1,-1),r,kt(t,e),r?3:0)}},ondirmodifier(t,e){const n=Tt(t,e);if(fe&&!Pr(at))at.name+="."+n,ye(at.nameLoc,e);else if(at.name==="slot"){const r=at.arg;r&&(r.content+="."+n,ye(r.loc,e))}else{const r=a1(n,!0,kt(t,e));at.modifiers.push(r)}},onattribdata(t,e){Vt+=Tt(t,e),ne<0&&(ne=t),pe=e},onattribentity(t,e,n){Vt+=t,ne<0&&(ne=e),pe=n},onattribnameend(t){const e=at.loc.start.offset,n=Tt(e,t);at.type===7&&(at.rawName=n),$t.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&re(2,e)},onattribend(t,e){if($t&&at){if(ye(at.loc,e),t!==0)if(Vt.includes("&")&&(Vt=mt.decodeEntities(Vt,!0)),at.type===6)at.name==="class"&&(Vt=Fr(Vt).trim()),t===1&&!Vt&&re(13,e),at.value={type:2,content:Vt,loc:t===1?kt(ne,pe):kt(ne-1,pe+1)},xt.inSFCRoot&&$t.tag==="template"&&at.name==="lang"&&Vt&&Vt!=="html"&&xt.enterRCDATA(un("</template"),0);else{let n=0;at.exp=dn(Vt,!1,kt(ne,pe),0,n),at.name==="for"&&(at.forParseResult=Is(at.exp));let r=-1;at.name==="bind"&&(r=at.modifiers.findIndex(i=>i.content==="sync"))>-1&&hn("COMPILER_V_BIND_SYNC",mt,at.loc,at.arg.loc.source)&&(at.name="model",at.modifiers.splice(r,1))}(at.type!==7||at.name!=="pre")&&$t.props.push(at)}Vt="",ne=pe=-1},oncomment(t,e){mt.comments&&h1({type:3,content:Tt(t,e),loc:kt(t-4,e+3)})},onend(){const t=ee.length;for(let e=0;e<pt.length;e++)mn(pt[e],t-1),re(24,pt[e].loc.start.offset)},oncdata(t,e){pt[0].ns!==0?fn(Tt(t,e),t,e):re(1,t-9)},onprocessinginstruction(t){(pt[0]?pt[0].ns:mt.ns)===0&&re(21,t-1)}}),Vr=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Rs=/^\(|\)$/g;function Is(t){const e=t.loc,n=t.content,r=n.match(Vs);if(!r)return;const[,i,s]=r,a=(d,m,f=!1)=>{const p=e.start.offset+m,y=p+d.length;return dn(d,!1,kt(p,y),0,f?1:0)},c={source:a(s.trim(),n.indexOf(s,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let u=i.trim().replace(Rs,"").trim();const l=i.indexOf(u),h=u.match(Vr);if(h){u=u.replace(Vr,"").trim();const d=h[1].trim();let m;if(d&&(m=n.indexOf(d,l+u.length),c.key=a(d,m,!0)),h[2]){const f=h[2].trim();f&&(c.index=a(f,n.indexOf(f,c.key?m+d.length:l+u.length),!0))}}return u&&(c.value=a(u,l,!0)),c}function Tt(t,e){return ee.slice(t,e)}function jr(t){xt.inSFCRoot&&($t.innerLoc=kt(t+1,t+1)),h1($t);const{tag:e,ns:n}=$t;n===0&&mt.isPreTag(e)&&c1++,mt.isVoidTag(e)?mn($t,t):(pt.unshift($t),(n===1||n===2)&&(xt.inXML=!0)),$t=null}function fn(t,e,n){{const s=pt[0]&&pt[0].tag;s!=="script"&&s!=="style"&&t.includes("&")&&(t=mt.decodeEntities(t,!1))}const r=pt[0]||Ye,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=t,ye(i.loc,n)):r.children.push({type:2,content:t,loc:kt(e,n)})}function mn(t,e,n=!1){n?ye(t.loc,Rr(e,60)):ye(t.loc,Hs(e,62)+1),xt.inSFCRoot&&(t.children.length?t.innerLoc.end=l1({},t.children[t.children.length-1].loc.end):t.innerLoc.end=l1({},t.innerLoc.start),t.innerLoc.source=Tt(t.innerLoc.start.offset,t.innerLoc.end.offset));const{tag:r,ns:i,children:s}=t;if(fe||(r==="slot"?t.tagType=2:Ir(t)?t.tagType=3:Us(t)&&(t.tagType=1)),xt.inRCDATA||(t.children=Hr(s)),i===0&&mt.isIgnoreNewlineTag(r)){const a=s[0];a&&a.type===2&&(a.content=a.content.replace(/^\r?\n/,""))}i===0&&mt.isPreTag(r)&&c1--,u1===t&&(fe=xt.inVPre=!1,u1=null),xt.inXML&&(pt[0]?pt[0].ns:mt.ns)===0&&(xt.inXML=!1);{const a=t.props;if(!xt.inSFCRoot&&Or("COMPILER_NATIVE_TEMPLATE",mt)&&t.tag==="template"&&!Ir(t)){const u=pt[0]||Ye,l=u.children.indexOf(t);u.children.splice(l,1,...t.children)}const c=a.find(u=>u.type===6&&u.name==="inline-template");c&&hn("COMPILER_INLINE_TEMPLATE",mt,c.loc)&&t.children.length&&(c.value={type:2,content:Tt(t.children[0].loc.start.offset,t.children[t.children.length-1].loc.end.offset),loc:c.loc})}}function Hs(t,e){let n=t;for(;ee.charCodeAt(n)!==e&&n<ee.length-1;)n++;return n}function Rr(t,e){let n=t;for(;ee.charCodeAt(n)!==e&&n>=0;)n--;return n}const Fs=new Set(["if","else","else-if","for","slot"]);function Ir({tag:t,props:e}){if(t==="template"){for(let n=0;n<e.length;n++)if(e[n].type===7&&Fs.has(e[n].name))return!0}return!1}function Us({tag:t,props:e}){if(mt.isCustomElement(t))return!1;if(t==="component"||zs(t.charCodeAt(0))||Ps(t)||mt.isBuiltInComponent&&mt.isBuiltInComponent(t)||mt.isNativeTag&&!mt.isNativeTag(t))return!0;for(let n=0;n<e.length;n++){const r=e[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(hn("COMPILER_IS_ON_ELEMENT",mt,r.loc))return!0}}else if(r.name==="bind"&&Ds(r.arg,"is")&&hn("COMPILER_IS_ON_ELEMENT",mt,r.loc))return!0}return!1}function zs(t){return t>64&&t<91}const Xs=/\r\n/g;function Hr(t){const e=mt.whitespace!=="preserve";let n=!1;for(let r=0;r<t.length;r++){const i=t[r];if(i.type===2)if(c1)i.content=i.content.replace(Xs,`
2
+ `);else if(js(i.content)){const s=t[r-1]&&t[r-1].type,a=t[r+1]&&t[r+1].type;!s||!a||e&&(s===3&&(a===3||a===1)||s===1&&(a===3||a===1&&Ys(i.content)))?(n=!0,t[r]=null):i.content=" "}else e&&(i.content=Fr(i.content))}return n?t.filter(Boolean):t}function Ys(t){for(let e=0;e<t.length;e++){const n=t.charCodeAt(e);if(n===10||n===13)return!0}return!1}function Fr(t){let e="",n=!1;for(let r=0;r<t.length;r++)It(t.charCodeAt(r))?n||(e+=" ",n=!0):(e+=t[r],n=!1);return e}function h1(t){(pt[0]||Ye).children.push(t)}function kt(t,e){return{start:xt.getPos(t),end:e==null?e:xt.getPos(e),source:e==null?e:Tt(t,e)}}function ye(t,e){t.end=xt.getPos(e),t.source=Tt(t.start.offset,e)}function Gs(t){const e={type:6,name:t.rawName,nameLoc:kt(t.loc.start.offset,t.loc.start.offset+t.rawName.length),value:void 0,loc:t.loc};if(t.exp){const n=t.exp.loc;n.end.offset<t.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),e.value={type:2,content:t.exp.content,loc:n}}return e}function dn(t,e=!1,n,r=0,i=0){return a1(t,e,n,r)}function re(t,e,n){mt.onError(qs(t,kt(e,e)))}function Ws(){xt.reset(),$t=null,at=null,Vt="",ne=-1,pe=-1,pt.length=0}function _s(t,e){if(Ws(),ee=t,mt=l1({},Dr),e){let i;for(i in e)e[i]!=null&&(mt[i]=e[i])}xt.mode=mt.parseMode==="html"?1:mt.parseMode==="sfc"?2:0,xt.inXML=mt.ns===1||mt.ns===2;const n=e&&e.delimiters;n&&(xt.delimiterOpen=un(n[0]),xt.delimiterClose=un(n[1]));const r=Ye=Ms([],t);return xt.parse(ee),r.loc=kt(0,t.length),r.children=Hr(r.children),Ye=null,r}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");class Ur{constructor(e,n,r){this.label=e,this.value=n,this.level=r}toString(){return this.label}valueOf(){return this.value}toJSON(){return this.label}}class Me extends Array{static from(e){if(e instanceof this)return e;if(e[Symbol.iterator]){let n=Ge(Array.from(e).map(r=>String(r))).sort((r,i)=>zr(r,i,{numeric:!0}));return new this(...n)}else if(typeof e=="object"){let n=Object.keys(e).map(r=>String(r)).sort((r,i)=>zr(e[r],e[i]));return new this(...n)}throw new Error(`Invalid level values: ${e}`)}constructor(...e){return e=e.map((n,r)=>new Ur(String(n),r)),e.forEach(n=>n.level=e),e.mapping=Object.fromEntries(e.map(n=>[n,n])),Object.setPrototypeOf(e,Me.prototype),e}getItem(e){return typeof e=="number"||e instanceof Number?this[e]:this.mapping[e]}apply(e){let n=e.map(r=>this.mapping[r]);return n.level=this,n}}function Be(t){return typeof t=="number"||t instanceof Number||t instanceof Date}function st(t,e=0){return e==0||t==null?t:t instanceof Date?new t.constructor(+t+e):+t+e}const Ct={min(t,{na_rm:e=!0,infinity_rm:n=!0}={}){return e&&(t=t.filter(Be)),n&&(t=t.filter(r=>isFinite(r))),Array.from(t).reduce((r,i)=>r<i?r:i,1/0)},max(t,{na_rm:e=!0,infinity_rm:n=!0}={}){return e&&(t=t.filter(Be)),n&&(t=t.filter(r=>isFinite(r))),Array.from(t).reduce((r,i)=>r>i?r:i,-1/0)},mean(t,{na_rm:e=!0,infinity_rm:n=!0}={}){return e&&(t=t.filter(Be)),n&&(t=t.filter(r=>isFinite(r))),t.length==0?NaN:Array.from(t).reduce((r,i)=>r+i,0)/t.length},sd(t,{na_rm:e=!0,infinity_rm:n=!0}={}){if(e&&(t=t.filter(Be)),n&&(t=t.filter(i=>isFinite(i))),t.length<=1)return NaN;let r=Array.from(t).reduce((i,s)=>i+s,0)/t.length;return Math.sqrt(Array.from(t).reduce((i,s)=>i+(s-r)**2,0)/(t.length-1))},quantile(t,e,{na_rm:n=!0,infinity_rm:r=!0}={}){if(n&&(t=t.filter(Be)),r&&(t=t.filter(c=>isFinite(c))),t.length==0)return NaN;t=Array.from(t).sort((c,u)=>c-u);let i=(t.length-1)*e,s=Math.floor(i),a=Math.ceil(i);return s==a?t[s]:t[s]*(a-i)+t[a]*(i-s)},extent(t,{na_rm:e=!0,infinity_rm:n=!0}={}){if(e&&(t=t.filter(Be)),n&&(t=t.filter(s=>isFinite(s))),t.length==0)return new Array(2);let r=Array.from(t).reduce((s,a)=>s<a?s:a,1/0),i=Array.from(t).reduce((s,a)=>s>a?s:a,-1/0);return Object.assign([r,i],{min:r,max:i})}},wt={sum(...t){if(t.some(r=>r==null))return null;if(t.some(r=>!Array.isArray(r)&&typeof r!="number"))throw new Error("Arguments must be numbers or arrays");let e=t.filter(r=>!Array.isArray(r)).reduce((r,i)=>+i+r,0);if(t=t.filter(r=>Array.isArray(r)),t.length==0)return[e];if(t.some(r=>r.length==0))return[];let n=t[0].length;if(t.some(r=>r.length!=n))throw new Error("Arrays must have the same length");return Array.from({length:n},(r,i)=>t.reduce((s,a)=>+a[i]+s,e))},opposite(t){if(t==null)return null;if(!Array.isArray(t)&&typeof t!="number")throw new Error("Arguments must be numbers or arrays");return Array.isArray(t)?t.map(e=>e==null?e:-e):-t},concat(...t){if(t.some(r=>r==null))return null;let e=t.filter(r=>Array.isArray(r));if(e.length==0)return[t.join("")];if(t.some(r=>r.length==0))return[];let n=e[0].length;if(e.some(r=>r.length!=n))throw new Error("Arrays must have the same length");return Array.from({length:n},(r,i)=>t.map(s=>Array.isArray(s)?s[i]:s).join(""))},apply(t,...e){if(e.some(i=>i==null))return null;let n=e.filter(i=>Array.isArray(i));if(n.length==0)return[t(...e)];if(e.some(i=>i.length==0))return[];let r=n[0].length;if(n.some(i=>i.length!=r))throw new Error("Arrays must have the same length");return Array.from({length:r},(i,s)=>t(...e.map(a=>Array.isArray(a)?a[s]:a)))}};function bt(...t){if(t=t.filter(e=>e!==void 0),t.length!=0)return t=t.slice(t.findIndex(e=>e==null)+1),t.length==0?null:t.reduce((e,n)=>{for(let r in n)n[r]===null&&delete e[r],n[r]!=null&&(e[r]=n[r]);return e},{})}function me(...t){if(!t.some(e=>e===void 0))return t.some(e=>e===null)?null:t.join("")}function Ge(t,e=null){let n=new Map;for(let r in t){let i=e?e(t[r]):t[r];n.has(i)||n.set(i,t[r])}return Array.from(n.values())}function zr(t,e,{numeric:n=!1}={}){return typeof t!="number"||typeof e!="number"?String(t).localeCompare(String(e),void 0,{numeric:n}):t-e}function xe(t,...e){return Array.isArray(t)?(t=t.filter(n=>typeof n=="function"),t.length===0?!1:(t.forEach(n=>n(...e)),!0)):typeof t!="function"?!1:(t(...e),!0)}function de(t,{min:e,max:n}){return t<e||t>n?NaN:t}function ut(t,{min:e,max:n}){return t<e?e:t>n?n:t}function f1(t,{min:e,max:n}){return t==-1/0?e:t==1/0?n:t}function Mt(t){return typeof t!="object"||t==null?t:Object.fromEntries(Object.entries(t).filter(([e,n])=>n!=null))}function Xr(t,e){if(t===e)return!0;if(typeof t!="object"||typeof e!="object"||t==null||e==null)return!1;let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i of n)if(!Xr(t[i],e[i]))return!1;return!0}function Ks(t){if(!Array.isArray(t))throw new Error("Argument must be an array");let e=[],n=[];for(let r=0;r<t.length;r++){let i=t[r],s=e.findIndex(a=>Xr(a,i));s===-1&&(e.push(i),s=e.length-1),n.push(s)}return n.categories=e,n}function Zs(...t){if(t.length==0)return null;let e=t.filter(i=>Array.isArray(i)).reduce((i,s)=>{if(Array.isArray(s)){if(i==null)return s.length;if(i!=s.length)throw new Error("Arrays must have the same length")}return i},null)??0,n=[],r=[];for(let i=0;i<e;i++){let s=t.map(c=>Array.isArray(c)?c[i]:c),a=n.findIndex(c=>c.every((u,l)=>u===s[l]));a===-1&&(n.push(s),a=n.length-1),r.push(a)}return r.categories=n,r}function jt(t){if(Object.keys(t).length==0)return null;let e=Object.values(t).filter(s=>Array.isArray(s)).reduce((s,a)=>{if(Array.isArray(a)){if(s==null)return a.length;if(s!=a.length)throw new Error("Arrays must have the same length")}return s},null)??0,n=Object.keys(t),r=[],i=[];for(let s=0;s<e;s++){let a=Object.fromEntries(n.map(u=>[u,Array.isArray(t[u])?t[u][s]:t[u]])),c=r.findIndex(u=>n.every(l=>u[l]===a[l]));c===-1&&(r.push(a),c=r.length-1),i.push(c)}return i.categories=r,i}function m1(t){if(Object.keys(t).length==0)return[];let e=Object.values(t).filter(n=>Array.isArray(n)).reduce((n,r)=>{if(Array.isArray(r)){if(n==null)return r.length;if(n!=r.length)throw new Error("Arrays must have the same length")}return n},null)??0;return Array.from({length:e},(n,r)=>Object.fromEntries(Object.keys(t).map(i=>[i,Array.isArray(t[i])?t[i][r]:t[i]])))}function At(t){return t==null?[]:Array.isArray(t)?t:t==="solid"?[]:t==="dashed"?[4,4]:t==="dotted"?[1,3]:t==="dotdash"?[1,3,4,3]:t==="longdash"?[8,4]:t==="twodash"?[2,2,6,2]:t.includes(" ")?t.split(" ").map(e=>+e):t.split("").map(e=>+("0x"+e))}function Qs(t){if(!(t instanceof SVGElement))return null;function e(a){let c=a.childNodes.length;for(;c--;){const u=a.childNodes[c];u.nodeType===Node.COMMENT_NODE?a.removeChild(u):u.nodeType===Node.ELEMENT_NODE&&(e(u),u.getAttribute("style")==""&&u.removeAttribute("style"),u.getAttribute("class")==""&&u.removeAttribute("class"))}}let n=t.cloneNode(!0),r=Array.from(t.querySelectorAll("foreignObject")),i=Array.from(n.querySelectorAll("foreignObject"));for(let a=0;a<r.length;a++){let c=r[a],u=i[a],l=r[a].querySelector("canvas");if(!l)continue;let h=n.ownerDocument.createElementNS("http://www.w3.org/2000/svg","image");h.setAttribute("href",l.toDataURL()),h.setAttribute("x",c.getAttribute("x")),h.setAttribute("y",c.getAttribute("y")),h.setAttribute("width",c.getAttribute("width")),h.setAttribute("height",c.getAttribute("height")),u.parentNode.replaceChild(h,u)}for(let a of n.querySelectorAll(".vvplot-interactive"))a.remove();return e(n),n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),n.setAttribute("version","1.1"),n.setAttribute("width",t.scrollWidth),n.setAttribute("height",t.scrollHeight),n.setAttribute("viewBox",`0 0 ${t.scrollWidth} ${t.scrollHeight}`),new XMLSerializer().serializeToString(n)}const Yr={axis:{line_width:1,tick_width:1,tick_length:5,label_size:12,title_size:18},axis_h:{title_offset:20},axis_v:{title_offset:30,title_angle:90},axis_left:{tick_position:"left",title_position:"left"},axis_right:{tick_position:"right",title_position:"right"},axis_top:{tick_position:"top",title_position:"top"},axis_bottom:{tick_position:"bottom",title_position:"bottom"},grid:{line_width:1,line_width_major:2},plot:{margin:20,padding_h:50,padding_v:20},legend:{spacing:4},selection:{background:"#00000020"}},Gr={axis:{line_color:"black",tick_color:"black",label_color:"black",title_color:"black"},grid:{line_color:"#eeeeee"}},Js={axis:{line_color:"gray",tick_color:"gray",label_color:"gray",title_color:"gray"},grid:{line_color:"#eeeeee"}},tl={axis:{tick_color:"black",label_color:"black",title_color:"black"},grid:{line_color:"white"},plot:{background:"#eeeeee"}},el={axis:{tick_color:"#333333",label_color:"#555555",title_color:"black"},grid:{line_color:"#666666"},plot:{background:"#888888"}},nl={axis:{line_color:"black",tick_color:"black",label_color:"black",title_color:"black"},grid:{line_color:"black",line_width_major:1,line_width_minor:.5}},rl={axis:{line_color:"black",tick_color:"black",label_color:"black",title_color:"black"},grid:null},il={axis:null,grid:null};function ol(...t){return t.reduce((e,n)=>{for(let r in n)n[r]===null?e[r]=null:e[r]=bt(e[r],n[r]);return e??void 0},{})}function sl(t,e=!1){let{axis_h:n,axis_v:r,axis_x:i,axis_y:s,grid_h:a,grid_v:c,grid_x:u,grid_y:l,plot:{margin_x:h,margin_y:d,margin_h:m,margin_v:f,padding_x:p,padding_y:y,padding_h:b,padding_v:w,...C}={},...A}=t;return e?(n=bt(n,s),r=bt(r,i),a=bt(a,u),c=bt(c,l),C.margin_h=d===void 0?m:d,C.margin_v=h===void 0?f:h,C.padding_h=y===void 0?b:y,C.padding_v=p===void 0?w:p):(n=bt(n,i),r=bt(r,s),a=bt(a,l),c=bt(c,u),C.margin_h=h===void 0?m:h,C.margin_v=d===void 0?f:d,C.padding_h=p===void 0?b:p,C.padding_v=y===void 0?w:y),{axis_h:n,axis_v:r,grid_h:a,grid_v:c,plot:C,...A}}function ll(t){function e(n){return{line_color_major:["line_color","line_color_major"].map(r=>n?.[r]).findLast(r=>r!==void 0),line_color_minor:["line_color","line_color_minor"].map(r=>n?.[r]).findLast(r=>r!==void 0),line_width_major:["line_width","line_width_major"].map(r=>n?.[r]).findLast(r=>r!==void 0),line_width_minor:["line_width","line_width_minor"].map(r=>n?.[r]).findLast(r=>r!==void 0)}}return{axis:{h:bt(...["axis","axis_h"].map(n=>t?.[n])),v:bt(...["axis","axis_v"].map(n=>t?.[n])),left:bt(...["axis","axis_v","axis_left"].map(n=>t?.[n])),right:bt(...["axis","axis_v","axis_right"].map(n=>t?.[n])),top:bt(...["axis","axis_h","axis_top"].map(n=>t?.[n])),bottom:bt(...["axis","axis_h","axis_bottom"].map(n=>t?.[n]))},grid:{h:e(bt(...["grid","grid_h"].map(n=>t?.[n]))),v:e(bt(...["grid","grid_v"].map(n=>t?.[n])))},plot:{margin:{left:["margin","margin_h","margin_left"].map(n=>t?.plot?.[n]).findLast(n=>n!==void 0)??0,right:["margin","margin_h","margin_right"].map(n=>t?.plot?.[n]).findLast(n=>n!==void 0)??0,top:["margin","margin_v","margin_top"].map(n=>t?.plot?.[n]).findLast(n=>n!==void 0)??0,bottom:["margin","margin_v","margin_bottom"].map(n=>t?.plot?.[n]).findLast(n=>n!==void 0)??0},padding:{left:["padding","padding_h","padding_left"].map(n=>t?.plot?.[n]).findLast(n=>n!==void 0)??0,right:["padding","padding_h","padding_right"].map(n=>t?.plot?.[n]).findLast(n=>n!==void 0)??0,top:["padding","padding_v","padding_top"].map(n=>t?.plot?.[n]).findLast(n=>n!==void 0)??0,bottom:["padding","padding_v","padding_bottom"].map(n=>t?.plot?.[n]).findLast(n=>n!==void 0)??0},background:t?.plot?.background},selection:t?.selection??{},legend:{spacing:t?.legend?.spacing??0}}}const al={base:Yr,default:Gr,light:Js,classic:rl,gray:tl,dark:el,linedraw:nl,void:il},cl={scale_attrs:[],coord_scale(t,e){return null},get_range(t,e){if(e=="x")return t.x??[];if(e=="y")return t.y??[]},validate(t){return null}};let vt=wt.sum;const ul={scale_attrs:["fill","color","linewidth","linetype","alpha"],coord_scale(t,e){let n=t.xnudge??0,r=t.ynudge??0;if(t.x){let i=vt(e.x?.apply?.(t.x)??t.x,n),s=vt(i,t.width?.map?.(y=>-y/2)??-.5,n),a=vt(i,t.width?.map?.(y=>+y/2)??.5,n),c=vt(t.lwisker,r),u=vt(t.Q1,r),l=vt(t.median,r),h=vt(t.Q3,r),d=vt(t.uwisker,r),m=wt.apply((y,{y:b,$raw:w},C)=>vt(b,C).map((A,L)=>({x:y,y:A,$raw:w[L]})),i,t.outliers??[],r),f=vt(t.min,r),p=vt(t.max,r);return{x:i,xmin:s,xmax:a,lwisker:c,Q1:u,median:l,Q3:h,uwisker:d,outliers:m,$xmin:s,$xmax:a,$ymin:f,$ymax:p}}else if(t.y){let i=vt(e.y?.apply?.(t.y)??t.y,r),s=vt(i,t.height?.map?.(y=>-y/2)??-.5,r),a=vt(i,t.height?.map?.(y=>+y/2)??.5,r),c=vt(t.lwisker,n),u=vt(t.Q1,n),l=vt(t.median,n),h=vt(t.Q3,n),d=vt(t.uwisker,n),m=wt.apply((y,{x:b,$raw:w},C)=>vt(b,C).map((A,L)=>({x:A,y,$raw:w[L]})),i,t.outliers??[],n),f=vt(t.xmin,n),p=vt(t.xmax,n);return{y:i,ymin:s,ymax:a,lwisker:c,Q1:u,median:l,Q3:h,uwisker:d,outliers:m,$xmin:f,$xmax:p,$ymin:s,$ymax:a}}return{}},get_range(t,e){if(e=="x")return t.x||(t.min??[]).concat(t.max??[]);if(e=="y")return t.y||(t.min??[]).concat(t.max??[])},validate(t){return[t.$xmin,t.$xmax,t.$ymin,t.$ymax].some(e=>isNaN(e))?null:t}},hl={scale_attrs:["fill","color","linewidth","linetype","alpha"],coord_scale(t,e){let n=t.xnudge?.map(s=>+s),r=t.ynudge?.map(s=>+s);return{points:t.points.map((s,a)=>s.map(c=>{let u=n?.[a]??0,l=r?.[a]??0;return{x:+(e?.x?.[c.x]??c.x)+u,y:+(e?.y?.[c.y]??c.y)+l}}))}},get_range(t,e){if(e=="x")return(t.points??[]).flatMap(n=>n.map(r=>r.x));if(e=="y")return(t.points??[]).flatMap(n=>n.map(r=>r.y))},validate(t){return Array.isArray(t.points)?t:null}};let Le=wt.sum;const fl={scale_attrs:["fill","color","linewidth","linetype","alpha"],coord_scale(t,e){let{A:n,B:r,C:i}=t,s=t.xnudge??0,a=t.ynudge??0,c=Le(e.x?.apply?.(t.cx)??t.cx,s),u=Le(e.y?.apply?.(t.cy)??t.cy,a);return{cx:c,cy:u,A:n,B:r,C:i}},get_range(t,e){if(e=="x"){let n=wt.apply((r,i,s)=>Math.sqrt(s/(r*s-i*i)),t.A??[],t.B??[],t.C??[]);return Le(t.cx??[],n).concat(Le(t.cx??[],wt.opposite(n))??[])}if(e=="y"){let n=wt.apply((r,i,s)=>Math.sqrt(r/(r*s-i*i)),t.A??[],t.B??[],t.C??[]);return Le(t.cy??[],n).concat(Le(t.cy??[],wt.opposite(n))??[])}},validate(t){return isNaN(t.cx)||isNaN(t.cy)||isNaN(t.A)||isNaN(t.B)||isNaN(t.C)||!(t.A*t.C>t.B*t.B)?null:t}};let gn=wt.sum;const ml={scale_attrs:["color","linewidth","linetype","alpha"],coord_scale(t,e){let n=t.xnudge??0,r=t.ynudge??0,i=gn(e.x?.apply?.(t.x)??t.x,n),s=gn(e.y?.apply?.(t.y)??t.y,r),a=gn(e.x?.apply?.(t.xend)??t.xend,n),c=gn(e.y?.apply?.(t.yend)??t.yend,r);return{x:i,y:s,xend:a,yend:c}},get_range(t,e){if(e=="x")return(t.x??[]).concat(t.xend??[]);if(e=="y")return(t.y??[]).concat(t.yend??[])},validate(t){return isNaN(t.x)||isNaN(t.y)||isNaN(t.xend)||isNaN(t.yend)?null:t}};let Wr=wt.sum;const dl={scale_attrs:["size","color","stroke","linewidth","linetype","alpha"],coord_scale(t,e){let n=t.xnudge??0,r=t.ynudge??0,i=Wr(e.x?.apply?.(t.x)??t.x,n),s=Wr(e.y?.apply?.(t.y)??t.y,r);return{x:i,y:s}},get_range(t,e){if(e=="x")return t.x??[];if(e=="y")return t.y??[]},validate(t){return isNaN(t.x)||isNaN(t.y)?null:t}};let pn=wt.sum;const gl={scale_attrs:["size","color","stroke","linewidth","linetype","alpha"],coord_scale(t,e){let n=t.xnudge??0,r=t.ynudge??0,i=pn(e.x?.apply?.(t.x)??t.x,n),s=pn(e.y?.apply?.(t.y)??t.y,r),a=pn(e.x?.apply?.(t.xend)??t.xend,n),c=pn(e.y?.apply?.(t.yend)??t.yend,r);return{x:i,y:s,xend:a,yend:c}},get_range(t,e){if(e=="x")return(t.x??[]).concat(t.xend??[]);if(e=="y")return(t.y??[]).concat(t.yend??[])},validate(t){return isNaN(t.x)||isNaN(t.xend)||isNaN(t.y)||isNaN(t.yend)?null:t}};let _r=wt.sum;const pl={scale_attrs:["shape","size","color","stroke","linewidth","linetype","alpha"],coord_scale(t,e){let n=t.xnudge??0,r=t.ynudge??0,i=_r(e.x?.apply?.(t.x)??t.x,n),s=_r(e.y?.apply?.(t.y)??t.y,r);return{x:i,y:s}},get_range(t,e){if(e=="x")return t.x??[];if(e=="y")return t.y??[]},validate(t){return isNaN(t.x)||isNaN(t.y)?null:t}},yl={scale_attrs:["fill","color","linewidth","linetype","alpha"],coord_scale(t,e){let n=t.xnudge?.map(s=>+s),r=t.ynudge?.map(s=>+s);return{points:t.points.map((s,a)=>s.map(c=>{let u=n?.[a]??0,l=r?.[a]??0;return{x:+(e?.x?.[c.x]??c.x)+u,y:+(e?.y?.[c.y]??c.y)+l}}))}},get_range(t,e){if(e=="x")return(t.points??[]).flatMap(n=>n.map(r=>r.x));if(e=="y")return(t.points??[]).flatMap(n=>n.map(r=>r.y))},validate(t){return Array.isArray(t.points)?t:null}};let yn=wt.sum;const xl={scale_attrs:["fill","color","linewidth","linetype","alpha"],coord_scale(t,e){let n=t.xnudge??0,r=t.ynudge??0,i=yn(e.x?.apply?.(t.xmin)??t.xmin,n),s=yn(e.x?.apply?.(t.xmax)??t.xmax,n),a=yn(e.y?.apply?.(t.ymin)??t.ymin,r),c=yn(e.y?.apply?.(t.ymax)??t.ymax,r);return{xmin:i,xmax:s,ymin:a,ymax:c}},get_range(t,e){if(e=="x")return(t.xmin??[]).concat(t.xmax??[]);if(e=="y")return(t.ymin??[]).concat(t.ymax??[])},validate(t){return isNaN(t.xmin)||isNaN(t.ymin)||isNaN(t.xmax)||isNaN(t.ymax)?null:t}};let $e=wt.sum;const bl={scale_attrs:["color","linewidth","linetype","alpha"],coord_scale(t,e){let n=t.xnudge??0,r=t.ynudge??0,i=$e(e.x?.apply?.(t.x)??t.x,n),s=$e(e.y?.apply?.(t.y)??t.y,r),a=$e(i,t.dx),c=$e(s,t.dy);return{x:i,y:s,xend:a,yend:c}},get_values(t,e){if(e=="x")return t.x??[];if(e=="y")return t.y??[]},get_range(t,e){if(e=="x")return(t.x??[]).concat($e(t.x??[],t.dx??0)??[]);if(e=="y")return(t.y??[]).concat($e(t.y??[],t.dy??0)??[])},validate(t){return isNaN(t.x)||isNaN(t.y)||isNaN(t.xend)||isNaN(t.yend)?null:t}};let Kr=wt.sum;const vl={scale_attrs:["size","color","stroke","linewidth","linetype","alpha"],coord_scale(t,e){let n=t.xnudge??0,r=t.ynudge??0,i=Kr(e.x?.apply?.(t.x)??t.x,n),s=Kr(e.y?.apply?.(t.y)??t.y,r);return{x:i,y:s}},get_range(t,e){if(e=="x")return t.x??[];if(e=="y")return t.y??[]},validate(t){return isNaN(t.x)||isNaN(t.y)?null:t}};let xn=wt.sum;const wl={scale_attrs:["size","color","stroke","linewidth","linetype","alpha"],coord_scale(t,e){let n=t.xnudge??0,r=t.ynudge??0,i=xn(e.x?.apply?.(t.x)??t.x,n),s=xn(e.y?.apply?.(t.y)??t.y,r),a=xn(e.x?.apply?.(t.xend)??t.xend,n),c=xn(e.y?.apply?.(t.yend)??t.yend,r);return{x:i,y:s,xend:a,yend:c}},get_range(t,e){if(e=="x")return(t.x??[]).concat(t.xend??[]);if(e=="y")return(t.y??[]).concat(t.yend??[])},validate(t){return isNaN(t.x)||isNaN(t.xend)||isNaN(t.y)||isNaN(t.yend)?null:t}};let bn=wt.sum;const ge=Object.freeze(Object.defineProperty({__proto__:null,blank:cl,boxplot:ul,curve:hl,ellipse:fl,line:ml,markdown:dl,markdownsegment:gl,point:pl,polygon:yl,rect:xl,stick:bl,text:vl,textsegment:wl,tile:{scale_attrs:["fill","color","linewidth","linetype","alpha"],coord_scale(t,e){let n=t.xnudge??0,r=t.ynudge??0,i=e.x?.apply?.(t.x)??t.x,s=e.y?.apply?.(t.y)??t.y,a=bn(i,t.width?.map?.(h=>-h/2)??-.5,n),c=bn(i,t.width?.map?.(h=>+h/2)??.5,n),u=bn(s,t.height?.map?.(h=>-h/2)??-.5,r),l=bn(s,t.height?.map?.(h=>+h/2)??.5,r);return{xmin:a,xmax:c,ymin:u,ymax:l}},get_values(t,e){if(e=="x")return t.x;if(e=="y")return t.y},get_range(t,e){if(e=="x"){let n=wt.apply((i,s)=>+i-s/2,t.x??[],t.width??[]),r=wt.apply((i,s)=>+i+s/2,t.x??[],t.width??[]);return n.concat(r)}if(e=="y"){let n=wt.apply((i,s)=>+i-s/2,t.y??[],t.height??[]),r=wt.apply((i,s)=>+i+s/2,t.y??[],t.height??[]);return n.concat(r)}},validate(t){return isNaN(t.xmin)||isNaN(t.ymin)||isNaN(t.xmax)||isNaN(t.ymax)?null:t}}},Symbol.toStringTag,{value:"Module"})),kl=Object.assign(function(t){if(t.x!=null&&t.y!=null)throw new Error('"StatBar" only supports "x" or "y", not both');let e=t.x??t.y;if(e==null)throw new Error('Missing aesthetics for "StatBar": "x" or "y"');if(e.some(l=>typeof l=="number"))throw new Error('"StatBar" requires a discrete aesthetic');let n=Object.keys(t).filter(l=>!["x","y"].includes(l)&&!l.startsWith("$")),r=jt(Object.fromEntries(n.map(l=>[l,t[l]]))),i=jt({group:r??0,value:e}),s=Map.groupBy(t.$raw,(l,h)=>i.categories[i[h]]),a=Array.from(s.values()),c=Array.from(s.keys()),u={$raw:a,count:a.map(l=>l.length),$group:c.map(l=>l.group),value:c.map(l=>l.value)};for(let l of n)u[l]=c.map(h=>h.group).map(h=>r.categories[h][l]);return t.x?(({value:l,count:h,...d})=>({x:l,y:h.map(m=>m/2),height:h,...d}))(u):(({value:l,count:h,...d})=>({y:l,x:h.map(m=>m/2),width:h,...d}))(u)},{core_attrs:["x","y","xnudge","ynudge"]}),Nl=Object.assign(function(t,{}){let e=["x","y"].filter(v=>t[v]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatBoxplot": "${e.join('", "')}"`);let n=t.x.some(v=>typeof v!="number"),r=t.y.some(v=>typeof v!="number");if(n&&r)throw new Error('Both "x" and "y" are discrete, "StatBoxplot" requires one continuous and one discrete aesthetic');if(!n&&!r)throw new Error('Both "x" and "y" are continuous, "StatBoxplot" requires one continuous and one discrete aesthetic');let[i,s]=n?["y","x"]:["x","y"],a=Object.keys(t).filter(v=>v!=i&&!v.startsWith("$")),c=jt(Object.fromEntries(a.map(v=>[v,t[v]]))),u=jt({group:c??0,cate:t[s]}),l=Map.groupBy(u.map((v,g)=>g),(v,g)=>u.categories[u[g]]),h=Array.from(l.keys()),d=Array.from(l.values()).map(v=>v.map(g=>t.$raw[g])),m=Array.from(l.values()).map(v=>v.map(g=>t[i][g])),f=m.map(v=>Ct.min(v)),p=m.map(v=>Ct.quantile(v,.25)),y=m.map(v=>Ct.quantile(v,.5)),b=m.map(v=>Ct.quantile(v,.75)),w=m.map(v=>Ct.max(v)),C=m.map((v,g)=>b[g]-p[g]),A=m.map((v,g)=>Math.max(f[g],p[g]-1.5*C[g])),L=m.map((v,g)=>Math.min(w[g],b[g]+1.5*C[g])),q=Array.from(l.values()).map((v,g)=>{let k=v.filter(N=>t[i][N]<A[g]||t[i][N]>L[g]);return{[i]:k.map(N=>t[i][N]),$raw:k.map(N=>t.$raw[N])}}),P={$raw:d,$group:h.map(v=>v.group),min:f,lwisker:A,Q1:p,median:y,Q3:b,uwisker:L,max:w,outliers:q};for(let v of a)P[v]=h.map(g=>g.group).map(g=>c.categories[g][v]);return P},{core_attrs:["x","y","xnudge","ynudge"]}),Al=Object.assign(function(t){if(t.points!=null)return t;let e=["x","y"].filter(h=>t[h]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatCurve": "${e.join('", "')}" or "points"`);let n=Object.keys(t).filter(h=>!["x","y"].includes(h)&&!h.startsWith("$")),r=jt(Object.fromEntries(n.map(h=>[h,t[h]]))),i=jt({group:r??new Array(t.x.length).fill(0)}).map((h,d,m)=>m.categories[h]),s=Map.groupBy(t.$raw,(h,d)=>i[d]),a=Array.from(s.values()),c=Array.from(s.keys()),u=Array.from(Map.groupBy(m1({x:t.x,y:t.y}),(h,d)=>i[d]).values()),l={$raw:a,points:u};for(let h of n)l[h]=c.map(d=>d.group).map(d=>r.categories[d][h]);return l},{core_attrs:["x","y","xnudge","ynudge"]}),El=Object.assign(function(t,{n:e=512,kernel:n="gaussian"}={}){if(t.x!=null&&t.y!=null)throw new Error('"StatDensity" only supports "x" or "y", not both');let r=t.x??t.y;if(r==null)throw new Error('Missing aesthetics for "StatDensity": "x" or "y"');if(r.some(f=>typeof f!="number"))throw new Error('"StatDensity" requires a continuous aesthetic');if(n=Zr[n],!n)throw new Error(`kernel must be one of ${Object.keys(Zr).map(f=>`"${f}"`).join(", ")}`);let i=Object.keys(t).filter(f=>!["x","y"].includes(f)&&!f.startsWith("$")),s=jt(Object.fromEntries(i.map(f=>[f,t[f]]))),a=jt({group:s??new Array(r.length).fill(0)}).map((f,p,y)=>y.categories[f]),c=Map.groupBy(t.$raw,(f,p)=>a[p]),u=Array.from(c.values()),l=Array.from(c.keys()),h=Array.from(Map.groupBy(r,(f,p)=>a[p]).values()),d={$raw:u,$group:l.map(f=>f.group)},m=h.map(f=>{let p=Sl.nrd0(f),{min:y,max:b}=Ct.extent(f);y-=3*p,b+=3*p;let w=(b-y)/(e-1);return Array.from({length:e},(A,L)=>y+L*w).map(A=>[A,Ct.mean(f.map(L=>n((A-L)/p)))/p])});for(let f of i)d[f]=l.map(p=>s.categories[p.group][f]);return t.x?d.points=m.map(f=>f.map(([p,y])=>({x:p,y}))):d.points=m.map(f=>f.map(([p,y])=>({x:y,y:p}))),d},{core_attrs:["x","y","xnudge","ynudge"]}),Sl={nrd0:function(t){t=t.filter(i=>(typeof i=="number"||i instanceof Date)&&isFinite(i));let e=Ct.sd(t),n=Ct.quantile(t,.75)-Ct.quantile(t,.25);return .9*(Math.min(e,n/1.34)||1)*t.length**-.2},nrd:function(t){t=t.filter(i=>(typeof i=="number"||i instanceof Date)&&isFinite(i));let e=Ct.sd(t),n=Ct.quantile(t,.75)-Ct.quantile(t,.25);return 1.06*(Math.min(e,n/1.34)||1)*t.length**-.2}},Zr={uniform:t=>Math.abs(t)<=1?.5:0,triangular:t=>Math.abs(t)<=1?1-Math.abs(t):0,epanechnikov:t=>Math.abs(t)<=1?.75*(1-t**2):0,biweight:t=>Math.abs(t)<=1?15/16*(1-t**2)**2:0,triweight:t=>Math.abs(t)<=1?35/32*(1-t**2)**3:0,tricube:t=>Math.abs(t)<=1?70/81*(1-Math.abs(t)**3)**3:0,gaussian:t=>Math.exp(-.5*t**2)/Math.sqrt(2*Math.PI),cosine:t=>Math.abs(t)<=1?Math.PI/4*Math.cos(Math.PI/2*t):0,logistic:t=>1/Math.cosh(t)**2/Math.PI,sigmoid:t=>2/(Math.exp(t)+Math.exp(-t))**2/Math.PI},Tl=Object.assign(function(t,{CI:e=.95}={}){let n=["x","y"].filter(m=>t[m]==null);if(n.length>0)throw new Error(`Missing aesthetics for "StatEllipse": "${n.join('", "')}" or "points"`);let r=Object.keys(t).filter(m=>!["x","y"].includes(m)&&!m.startsWith("$")),i=jt(Object.fromEntries(r.map(m=>[m,t[m]]))),s=jt({group:i??new Array(t.x.length).fill(0)}).map((m,f,p)=>p.categories[m]),a=Map.groupBy(t.$raw,(m,f)=>s[f]),c=Array.from(a.values()),u=Array.from(a.keys()),l=-2*Math.log(1-e),h=Array.from(Map.groupBy(m1({x:t.x,y:t.y}),(m,f)=>s[f]).values()).map(m=>{const f=m.length;let p=m.reduce((L,q)=>L+q.x,0)/f,y=m.reduce((L,q)=>L+q.y,0)/f;if(f<2)return{};let b=m.reduce((L,q)=>L+(q.x-p)**2,0)/(f-1),w=m.reduce((L,q)=>L+(q.x-p)*(q.y-y),0)/(f-1),C=m.reduce((L,q)=>L+(q.y-y)**2,0)/(f-1),A=(b*C-w*w)*l;return{cx:p,cy:y,A:C/A,B:-w/A,C:b/A}}),d={$raw:c,cx:h.map(m=>m.cx??0),cy:h.map(m=>m.cy??0),A:h.map(m=>m.A??0),B:h.map(m=>m.B??0),C:h.map(m=>m.C??0)};for(let m of r)d[m]=u.map(f=>f.group).map(f=>i.categories[f][m]);return d},{core_attrs:["x","y","xnudge","ynudge"]}),Cl=Object.assign(function(t,{bins:e=30,binwidth:n,breaks:r}={}){if(t.x!=null&&t.y!=null)throw new Error('"StatHistogram" only supports "x" or "y", not both');let i=t.x??t.y;if(i==null)throw new Error('Missing aesthetics for "StatHistogram": "x" or "y"');if(i.some(m=>typeof m!="number"))throw new Error('"StatHistogram" requires a continuous aesthetic');if(r)r.sort((m,f)=>m-f);else{let{min:m,max:f}=Ct.extent(i);n||(n=(f-m)/(e-1)),r=Array.from({length:e+1},(p,y)=>m+(y-.5)*n)}e=r.length-1;let s=Object.keys(t).filter(m=>!["x","y"].includes(m)&&!m.startsWith("$")),a=jt(Object.fromEntries(s.map(m=>[m,t[m]]))),c=jt({group:a??new Array(i.length).fill(0),upper:i.map(m=>r.findLast(f=>f<=m)??r[0]),lower:i.map(m=>r.find(f=>f>m)??r[e])}).map((m,f,p)=>p.categories[m]),u=Map.groupBy(t.$raw,(m,f)=>c[f]),l=Array.from(u.values()),h=Array.from(u.keys()),d={$raw:l,count:l.map(m=>m.length),$group:h.map(m=>m.group),upper:h.map(m=>m.upper),lower:h.map(m=>m.lower)};for(let m of s)d[m]=h.map(f=>a.categories[f.group][m]);return t.x?(({upper:m,lower:f,count:p,ymin:y=l.map(()=>0),...b})=>({xmin:m,xmax:f,ymin:y,ymax:p,...b}))(d):(({upper:m,lower:f,count:p,xmin:y=l.map(()=>0),...b})=>({xmin:y,xmax:p,ymin:m,ymax:f,...b}))(d)},{core_attrs:["x","y","xnudge","ynudge"]}),Ml=Object.assign(function(t){return t},{core_attrs:["x","y","xnudge","ynudge"]}),Bl=Object.assign(function(t,{orientation:e="x"}={}){let n=["x","y"].filter(l=>t[l]==null);if(n.length>0)throw new Error(`Missing aesthetics for "StatLine": "${n.join('", "')}"`);let r=t.group??new Array(t.x.length).fill(null),s=Object.values(r.reduce((l,h,d)=>(l[h]??=[],l[h].push(d),l),{})).map(l=>l.map((h,d)=>[t[e][h],d]).sort((h,d)=>h[0]-d[0]).map((h,d)=>l[h[1]])),a=s.map(l=>l.slice(0,-1).concat(NaN)).reduce((l,h)=>l.concat(h),[]).filter(l=>!isNaN(l)),c=s.map(l=>l.slice(1).concat(NaN)).reduce((l,h)=>l.concat(h),[]).filter(l=>!isNaN(l)),u={};for(let l in t)u[l]=a.map(h=>t[l][h]);return u.xend=c.map(l=>t.x[l]),u.yend=c.map(l=>t.y[l]),u},{core_attrs:["x","y","xnudge","ynudge"]}),Ll=Object.assign(function(t){if(t.x!=null){let e=["x","ymin","ymax"].filter(n=>t[n]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatLinerange": "${e.join('", "')}"`);return(({x:n,ymin:r,ymax:i,...s})=>({x:n,xend:n,y:r,yend:i,...s}))(t)}else if(t.y!=null){let e=["y","xmin","xmax"].filter(n=>t[n]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatLinerange": "${e.join('", "')}"`);return(({y:n,xmin:r,xmax:i,...s})=>({y:n,yend:n,x:r,xend:i,...s}))(t)}else throw new Error('Missing aesthetics for "StatLinerange": x,ymin,ymax or y,xmin,xmax')},{core_attrs:["x","y","xmin","xmax","ymin","ymax","xnudge","ynudge"]}),$l=Object.assign(function(t){let e=["x","y"].filter(u=>t[u]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatPath": "${e.join('", "')}"`);let n=t.group??new Array(t.x.length).fill(null),i=Object.values(n.reduce((u,l,h)=>(u[l]??=[],u[l].push(h),u),{})).map(u=>u.map((l,h)=>u[h])),s=i.map(u=>u.slice(0,-1).concat(NaN)).reduce((u,l)=>u.concat(l),[]).filter(u=>!isNaN(u)),a=i.map(u=>u.slice(1).concat(NaN)).reduce((u,l)=>u.concat(l),[]).filter(u=>!isNaN(u)),c={};for(let u in t)c[u]=s.map(l=>t[u][l]);return c.xend=a.map(u=>t.x[u]),c.yend=a.map(u=>t.y[u]),c},{core_attrs:["x","y","xnudge","ynudge"]}),ql=Object.assign(function(t){let e=["x","y"].filter(n=>t[n]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatPoint": "${e.join('", "')}"`);return t},{core_attrs:["x","y","xnudge","ynudge"]}),Ol=Object.assign(function(t){if(t.points!=null)return t;let e=["x","y"].filter(h=>t[h]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatPolygon": "${e.join('", "')}" or "points"`);let n=Object.keys(t).filter(h=>!["x","y"].includes(h)&&!h.startsWith("$")),r=jt(Object.fromEntries(n.map(h=>[h,t[h]]))),i=jt({group:r??new Array(t.x.length).fill(0)}).map((h,d,m)=>m.categories[h]),s=Map.groupBy(t.$raw,(h,d)=>i[d]),a=Array.from(s.values()),c=Array.from(s.keys()),u=Array.from(Map.groupBy(m1({x:t.x,y:t.y}),(h,d)=>i[d]).values()),l={$raw:a,points:u};for(let h of n)l[h]=c.map(d=>d.group).map(d=>r.categories[d][h]);return l},{core_attrs:["points","xnudge","ynudge"]}),Pl=Object.assign(function(t){let e=["xmin","xmax","ymin","ymax"].filter(n=>t[n]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatRect": "${e.join('", "')}"`);return t},{core_attrs:["xmin","xmax","ymin","ymax","xnudge","ynudge"]}),Dl=Object.assign(function(t){t.xend==null&&(t.xend=t.x),t.yend==null&&(t.yend=t.y);let e=["x","y","xend","yend"].filter(n=>t[n]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatSegment": "${e.join('", "')}"`);return t},{core_attrs:["x","y","xend","yend","xnudge","ynudge"]}),Vl=Object.assign(function(t){t.dx==null&&(t.dx=Array(t.x.length).fill(0)),t.dy==null&&(t.dy=Array(t.y.length).fill(0));let e=["x","y","dx","dy"].filter(n=>t[n]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatStick": "${e.join('", "')}"`);return t},{core_attrs:["x","y","dx","dy","xnudge","ynudge"]}),jl=Object.assign(function(t){let e=["x","y","label"].filter(n=>t[n]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatText": "${e.join('", "')}"`);return t},{core_attrs:["x","y","xnudge","ynudge","label","text-length"]}),Rl=Object.assign(function(t){t.xend==null&&(t.xend=t.x),t.yend==null&&(t.yend=t.y);let e=["x","y","xend","yend","label"].filter(n=>t[n]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatTextsegment": "${e.join('", "')}"`);return t},{core_attrs:["x","y","xend","yend","xnudge","ynudge","label"]}),Il=Object.assign(function(t){t.width==null&&t.x.some(n=>typeof n=="string")&&(t.width=Array(t.x.length).fill(1)),t.height==null&&t.y.some(n=>typeof n=="string")&&(t.height=Array(t.y.length).fill(1));let e=["x","y","width","height"].filter(n=>t[n]==null);if(e.length>0)throw new Error(`Missing aesthetics for "StatTile": "${e.join('", "')}"`);return t},{core_attrs:["x","y","width","height","xnudge","ynudge"]}),Hl=Object.freeze(Object.defineProperty({__proto__:null,bar:kl,boxplot:Nl,curve:Al,density:El,ellipse:Tl,histogram:Cl,identity:Ml,line:Bl,linerange:Ll,path:$l,point:ql,polygon:Ol,rect:Pl,segment:Dl,stick:Vl,text:jl,textsegment:Rl,tile:Il},Symbol.toStringTag,{value:"Module"}));function vn(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Fl(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Qr(t){let e,n,r;t.length!==2?(e=vn,n=(c,u)=>vn(t(c),u),r=(c,u)=>t(c)-u):(e=t===vn||t===Fl?t:Ul,n=t,r=t);function i(c,u,l=0,h=c.length){if(l<h){if(e(u,u)!==0)return h;do{const d=l+h>>>1;n(c[d],u)<0?l=d+1:h=d}while(l<h)}return l}function s(c,u,l=0,h=c.length){if(l<h){if(e(u,u)!==0)return h;do{const d=l+h>>>1;n(c[d],u)<=0?l=d+1:h=d}while(l<h)}return l}function a(c,u,l=0,h=c.length){const d=i(c,u,l,h-1);return d>l&&r(c[d-1],u)>-r(c[d],u)?d-1:d}return{left:i,center:a,right:s}}function Ul(){return 0}function zl(t){return t===null?NaN:+t}const Xl=Qr(vn).right;Qr(zl).center;const Yl=Math.sqrt(50),Gl=Math.sqrt(10),Wl=Math.sqrt(2);function wn(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),a=s>=Yl?10:s>=Gl?5:s>=Wl?2:1;let c,u,l;return i<0?(l=Math.pow(10,-i)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,i)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=n&&n<2?wn(t,e,n*2):[c,u,l]}function _l(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,s,a]=r?wn(e,t,n):wn(t,e,n);if(!(s>=i))return[];const c=s-i+1,u=new Array(c);if(r)if(a<0)for(let l=0;l<c;++l)u[l]=(s-l)/-a;else for(let l=0;l<c;++l)u[l]=(s-l)*a;else if(a<0)for(let l=0;l<c;++l)u[l]=(i+l)/-a;else for(let l=0;l<c;++l)u[l]=(i+l)*a;return u}function d1(t,e,n){return e=+e,t=+t,n=+n,wn(t,e,n)[2]}function Kl(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?d1(e,t,n):d1(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}var Zl={value:()=>{}};function Jr(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new kn(n)}function kn(t){this._=t}function Ql(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}kn.prototype=Jr.prototype={constructor:kn,on:function(t,e){var n=this._,r=Ql(t+"",n),i,s=-1,a=r.length;if(arguments.length<2){for(;++s<a;)if((i=(t=r[s]).type)&&(i=Jl(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<a;)if(i=(t=r[s]).type)n[i]=ti(n[i],t.name,e);else if(e==null)for(i in n)n[i]=ti(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new kn(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,i=s.length;r<i;++r)s[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,s=r.length;i<s;++i)r[i].value.apply(e,n)}};function Jl(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function ti(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Zl,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var g1="http://www.w3.org/1999/xhtml";const ei={svg:"http://www.w3.org/2000/svg",xhtml:g1,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Nn(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),ei.hasOwnProperty(e)?{space:ei[e],local:t}:t}function ta(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===g1&&e.documentElement.namespaceURI===g1?e.createElement(t):e.createElementNS(n,t)}}function ea(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ni(t){var e=Nn(t);return(e.local?ea:ta)(e)}function na(){}function p1(t){return t==null?na:function(){return this.querySelector(t)}}function ra(t){typeof t!="function"&&(t=p1(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],a=s.length,c=r[i]=new Array(a),u,l,h=0;h<a;++h)(u=s[h])&&(l=t.call(u,u.__data__,h,s))&&("__data__"in u&&(l.__data__=u.__data__),c[h]=l);return new zt(r,this._parents)}function ia(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function oa(){return[]}function ri(t){return t==null?oa:function(){return this.querySelectorAll(t)}}function sa(t){return function(){return ia(t.apply(this,arguments))}}function la(t){typeof t=="function"?t=sa(t):t=ri(t);for(var e=this._groups,n=e.length,r=[],i=[],s=0;s<n;++s)for(var a=e[s],c=a.length,u,l=0;l<c;++l)(u=a[l])&&(r.push(t.call(u,u.__data__,l,a)),i.push(u));return new zt(r,i)}function ii(t){return function(){return this.matches(t)}}function oi(t){return function(e){return e.matches(t)}}var aa=Array.prototype.find;function ca(t){return function(){return aa.call(this.children,t)}}function ua(){return this.firstElementChild}function ha(t){return this.select(t==null?ua:ca(typeof t=="function"?t:oi(t)))}var fa=Array.prototype.filter;function ma(){return Array.from(this.children)}function da(t){return function(){return fa.call(this.children,t)}}function ga(t){return this.selectAll(t==null?ma:da(typeof t=="function"?t:oi(t)))}function pa(t){typeof t!="function"&&(t=ii(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],a=s.length,c=r[i]=[],u,l=0;l<a;++l)(u=s[l])&&t.call(u,u.__data__,l,s)&&c.push(u);return new zt(r,this._parents)}function si(t){return new Array(t.length)}function ya(){return new zt(this._enter||this._groups.map(si),this._parents)}function An(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}An.prototype={constructor:An,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function xa(t){return function(){return t}}function ba(t,e,n,r,i,s){for(var a=0,c,u=e.length,l=s.length;a<l;++a)(c=e[a])?(c.__data__=s[a],r[a]=c):n[a]=new An(t,s[a]);for(;a<u;++a)(c=e[a])&&(i[a]=c)}function va(t,e,n,r,i,s,a){var c,u,l=new Map,h=e.length,d=s.length,m=new Array(h),f;for(c=0;c<h;++c)(u=e[c])&&(m[c]=f=a.call(u,u.__data__,c,e)+"",l.has(f)?i[c]=u:l.set(f,u));for(c=0;c<d;++c)f=a.call(t,s[c],c,s)+"",(u=l.get(f))?(r[c]=u,u.__data__=s[c],l.delete(f)):n[c]=new An(t,s[c]);for(c=0;c<h;++c)(u=e[c])&&l.get(m[c])===u&&(i[c]=u)}function wa(t){return t.__data__}function ka(t,e){if(!arguments.length)return Array.from(this,wa);var n=e?va:ba,r=this._parents,i=this._groups;typeof t!="function"&&(t=xa(t));for(var s=i.length,a=new Array(s),c=new Array(s),u=new Array(s),l=0;l<s;++l){var h=r[l],d=i[l],m=d.length,f=Na(t.call(h,h&&h.__data__,l,r)),p=f.length,y=c[l]=new Array(p),b=a[l]=new Array(p),w=u[l]=new Array(m);n(h,d,y,b,w,f,e);for(var C=0,A=0,L,q;C<p;++C)if(L=y[C]){for(C>=A&&(A=C+1);!(q=b[A])&&++A<p;);L._next=q||null}}return a=new zt(a,r),a._enter=c,a._exit=u,a}function Na(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Aa(){return new zt(this._exit||this._groups.map(si),this._parents)}function Ea(t,e,n){var r=this.enter(),i=this,s=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function Sa(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,s=r.length,a=Math.min(i,s),c=new Array(i),u=0;u<a;++u)for(var l=n[u],h=r[u],d=l.length,m=c[u]=new Array(d),f,p=0;p<d;++p)(f=l[p]||h[p])&&(m[p]=f);for(;u<i;++u)c[u]=n[u];return new zt(c,this._parents)}function Ta(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,s=r[i],a;--i>=0;)(a=r[i])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function Ca(t){t||(t=Ma);function e(d,m){return d&&m?t(d.__data__,m.__data__):!d-!m}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var a=n[s],c=a.length,u=i[s]=new Array(c),l,h=0;h<c;++h)(l=a[h])&&(u[h]=l);u.sort(e)}return new zt(i,this._parents).order()}function Ma(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Ba(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function La(){return Array.from(this)}function $a(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length;i<s;++i){var a=r[i];if(a)return a}return null}function qa(){let t=0;for(const e of this)++t;return t}function Oa(){return!this.node()}function Pa(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],s=0,a=i.length,c;s<a;++s)(c=i[s])&&t.call(c,c.__data__,s,i);return this}function Da(t){return function(){this.removeAttribute(t)}}function Va(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ja(t,e){return function(){this.setAttribute(t,e)}}function Ra(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ia(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Ha(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Fa(t,e){var n=Nn(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Va:Da:typeof e=="function"?n.local?Ha:Ia:n.local?Ra:ja)(n,e))}function li(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ua(t){return function(){this.style.removeProperty(t)}}function za(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Xa(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ya(t,e,n){return arguments.length>1?this.each((e==null?Ua:typeof e=="function"?Xa:za)(t,e,n??"")):qe(this.node(),t)}function qe(t,e){return t.style.getPropertyValue(e)||li(t).getComputedStyle(t,null).getPropertyValue(e)}function Ga(t){return function(){delete this[t]}}function Wa(t,e){return function(){this[t]=e}}function _a(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ka(t,e){return arguments.length>1?this.each((e==null?Ga:typeof e=="function"?_a:Wa)(t,e)):this.node()[t]}function ai(t){return t.trim().split(/^|\s+/)}function y1(t){return t.classList||new ci(t)}function ci(t){this._node=t,this._names=ai(t.getAttribute("class")||"")}ci.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function ui(t,e){for(var n=y1(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function hi(t,e){for(var n=y1(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Za(t){return function(){ui(this,t)}}function Qa(t){return function(){hi(this,t)}}function Ja(t,e){return function(){(e.apply(this,arguments)?ui:hi)(this,t)}}function tc(t,e){var n=ai(t+"");if(arguments.length<2){for(var r=y1(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Ja:e?Za:Qa)(n,e))}function ec(){this.textContent=""}function nc(t){return function(){this.textContent=t}}function rc(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function ic(t){return arguments.length?this.each(t==null?ec:(typeof t=="function"?rc:nc)(t)):this.node().textContent}function oc(){this.innerHTML=""}function sc(t){return function(){this.innerHTML=t}}function lc(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function ac(t){return arguments.length?this.each(t==null?oc:(typeof t=="function"?lc:sc)(t)):this.node().innerHTML}function cc(){this.nextSibling&&this.parentNode.appendChild(this)}function uc(){return this.each(cc)}function hc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fc(){return this.each(hc)}function mc(t){var e=typeof t=="function"?t:ni(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function dc(){return null}function gc(t,e){var n=typeof t=="function"?t:ni(t),r=e==null?dc:typeof e=="function"?e:p1(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function pc(){var t=this.parentNode;t&&t.removeChild(this)}function yc(){return this.each(pc)}function xc(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function bc(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function vc(t){return this.select(t?bc:xc)}function wc(t){return arguments.length?this.property("__data__",t):this.node().__data__}function kc(t){return function(e){t.call(this,e,this.__data__)}}function Nc(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function Ac(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,s;n<i;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++r]=s;++r?e.length=r:delete this.__on}}}function Ec(t,e,n){return function(){var r=this.__on,i,s=kc(e);if(r){for(var a=0,c=r.length;a<c;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=e;return}}this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},r?r.push(i):this.__on=[i]}}function Sc(t,e,n){var r=Nc(t+""),i,s=r.length,a;if(arguments.length<2){var c=this.node().__on;if(c){for(var u=0,l=c.length,h;u<l;++u)for(i=0,h=c[u];i<s;++i)if((a=r[i]).type===h.type&&a.name===h.name)return h.value}return}for(c=e?Ec:Ac,i=0;i<s;++i)this.each(c(r[i],e,n));return this}function fi(t,e,n){var r=li(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Tc(t,e){return function(){return fi(this,t,e)}}function Cc(t,e){return function(){return fi(this,t,e.apply(this,arguments))}}function Mc(t,e){return this.each((typeof e=="function"?Cc:Tc)(t,e))}function*Bc(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length,a;i<s;++i)(a=r[i])&&(yield a)}var Lc=[null];function zt(t,e){this._groups=t,this._parents=e}function We(){return new zt([[document.documentElement]],Lc)}function $c(){return this}zt.prototype=We.prototype={constructor:zt,select:ra,selectAll:la,selectChild:ha,selectChildren:ga,filter:pa,data:ka,enter:ya,exit:Aa,join:Ea,merge:Sa,selection:$c,order:Ta,sort:Ca,call:Ba,nodes:La,node:$a,size:qa,empty:Oa,each:Pa,attr:Fa,style:Ya,property:Ka,classed:tc,text:ic,html:ac,raise:uc,lower:fc,append:mc,insert:gc,remove:yc,clone:vc,datum:wc,on:Sc,dispatch:Mc,[Symbol.iterator]:Bc};function _e(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function En(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function be(){}var Ke=.7,Sn=1/Ke,Oe="\\s*([+-]?\\d+)\\s*",Ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_t="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qc=/^#([0-9a-f]{3,8})$/,Oc=new RegExp(`^rgb\\(${Oe},${Oe},${Oe}\\)$`),Pc=new RegExp(`^rgb\\(${_t},${_t},${_t}\\)$`),Dc=new RegExp(`^rgba\\(${Oe},${Oe},${Oe},${Ze}\\)$`),Vc=new RegExp(`^rgba\\(${_t},${_t},${_t},${Ze}\\)$`),jc=new RegExp(`^hsl\\(${Ze},${_t},${_t}\\)$`),Rc=new RegExp(`^hsla\\(${Ze},${_t},${_t},${Ze}\\)$`),mi={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};_e(be,ve,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:di,formatHex:di,formatHex8:Ic,formatHsl:Hc,formatRgb:gi,toString:gi});function di(){return this.rgb().formatHex()}function Ic(){return this.rgb().formatHex8()}function Hc(){return wi(this).formatHsl()}function gi(){return this.rgb().formatRgb()}function ve(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=qc.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?pi(e):n===3?new qt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Tn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Tn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Oc.exec(t))?new qt(e[1],e[2],e[3],1):(e=Pc.exec(t))?new qt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Dc.exec(t))?Tn(e[1],e[2],e[3],e[4]):(e=Vc.exec(t))?Tn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=jc.exec(t))?vi(e[1],e[2]/100,e[3]/100,1):(e=Rc.exec(t))?vi(e[1],e[2]/100,e[3]/100,e[4]):mi.hasOwnProperty(t)?pi(mi[t]):t==="transparent"?new qt(NaN,NaN,NaN,0):null}function pi(t){return new qt(t>>16&255,t>>8&255,t&255,1)}function Tn(t,e,n,r){return r<=0&&(t=e=n=NaN),new qt(t,e,n,r)}function yi(t){return t instanceof be||(t=ve(t)),t?(t=t.rgb(),new qt(t.r,t.g,t.b,t.opacity)):new qt}function x1(t,e,n,r){return arguments.length===1?yi(t):new qt(t,e,n,r??1)}function qt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}_e(qt,x1,En(be,{brighter(t){return t=t==null?Sn:Math.pow(Sn,t),new qt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ke:Math.pow(Ke,t),new qt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new qt(we(this.r),we(this.g),we(this.b),Cn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xi,formatHex:xi,formatHex8:Fc,formatRgb:bi,toString:bi}));function xi(){return`#${ke(this.r)}${ke(this.g)}${ke(this.b)}`}function Fc(){return`#${ke(this.r)}${ke(this.g)}${ke(this.b)}${ke((isNaN(this.opacity)?1:this.opacity)*255)}`}function bi(){const t=Cn(this.opacity);return`${t===1?"rgb(":"rgba("}${we(this.r)}, ${we(this.g)}, ${we(this.b)}${t===1?")":`, ${t})`}`}function Cn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function we(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ke(t){return t=we(t),(t<16?"0":"")+t.toString(16)}function vi(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Xt(t,e,n,r)}function wi(t){if(t instanceof Xt)return new Xt(t.h,t.s,t.l,t.opacity);if(t instanceof be||(t=ve(t)),!t)return new Xt;if(t instanceof Xt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),a=NaN,c=s-i,u=(s+i)/2;return c?(e===s?a=(n-r)/c+(n<r)*6:n===s?a=(r-e)/c+2:a=(e-n)/c+4,c/=u<.5?s+i:2-s-i,a*=60):c=u>0&&u<1?0:a,new Xt(a,c,u,t.opacity)}function Uc(t,e,n,r){return arguments.length===1?wi(t):new Xt(t,e,n,r??1)}function Xt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}_e(Xt,Uc,En(be,{brighter(t){return t=t==null?Sn:Math.pow(Sn,t),new Xt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ke:Math.pow(Ke,t),new Xt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new qt(b1(t>=240?t-240:t+120,i,r),b1(t,i,r),b1(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Xt(ki(this.h),Mn(this.s),Mn(this.l),Cn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Cn(this.opacity);return`${t===1?"hsl(":"hsla("}${ki(this.h)}, ${Mn(this.s)*100}%, ${Mn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ki(t){return t=(t||0)%360,t<0?t+360:t}function Mn(t){return Math.max(0,Math.min(1,t||0))}function b1(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const zc=Math.PI/180,Xc=180/Math.PI,Bn=18,Ni=.96422,Ai=1,Ei=.82521,Si=4/29,Pe=6/29,Ti=3*Pe*Pe,Yc=Pe*Pe*Pe;function Ci(t){if(t instanceof Kt)return new Kt(t.l,t.a,t.b,t.opacity);if(t instanceof ie)return Bi(t);t instanceof qt||(t=yi(t));var e=A1(t.r),n=A1(t.g),r=A1(t.b),i=w1((.2225045*e+.7168786*n+.0606169*r)/Ai),s,a;return e===n&&n===r?s=a=i:(s=w1((.4360747*e+.3850649*n+.1430804*r)/Ni),a=w1((.0139322*e+.0971045*n+.7141733*r)/Ei)),new Kt(116*i-16,500*(s-i),200*(i-a),t.opacity)}function v1(t,e,n,r){return arguments.length===1?Ci(t):new Kt(t,e,n,r??1)}function Kt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}_e(Kt,v1,En(be,{brighter(t){return new Kt(this.l+Bn*(t??1),this.a,this.b,this.opacity)},darker(t){return new Kt(this.l-Bn*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Ni*k1(e),t=Ai*k1(t),n=Ei*k1(n),new qt(N1(3.1338561*e-1.6168667*t-.4906146*n),N1(-.9787684*e+1.9161415*t+.033454*n),N1(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function w1(t){return t>Yc?Math.pow(t,.3333333333333333):t/Ti+Si}function k1(t){return t>Pe?t*t*t:Ti*(t-Si)}function N1(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,.4166666666666667)-.055)}function A1(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Gc(t){if(t instanceof ie)return new ie(t.h,t.c,t.l,t.opacity);if(t instanceof Kt||(t=Ci(t)),t.a===0&&t.b===0)return new ie(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Xc;return new ie(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Mi(t,e,n,r){return arguments.length===1?Gc(t):new ie(t,e,n,r??1)}function ie(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Bi(t){if(isNaN(t.h))return new Kt(t.l,0,0,t.opacity);var e=t.h*zc;return new Kt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}_e(ie,Mi,En(be,{brighter(t){return new ie(this.h,this.c,this.l+Bn*(t??1),this.opacity)},darker(t){return new ie(this.h,this.c,this.l-Bn*(t??1),this.opacity)},rgb(){return Bi(this).rgb()}}));const E1=t=>()=>t;function Wc(t,e){return function(n){return t+n*e}}function _c(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Kc(t){return(t=+t)==1?De:function(e,n){return n-e?_c(e,n,t):E1(isNaN(e)?n:e)}}function De(t,e){var n=e-t;return n?Wc(t,n):E1(isNaN(t)?e:t)}const Ln=(function t(e){var n=Kc(e);function r(i,s){var a=n((i=x1(i)).r,(s=x1(s)).r),c=n(i.g,s.g),u=n(i.b,s.b),l=De(i.opacity,s.opacity);return function(h){return i.r=a(h),i.g=c(h),i.b=u(h),i.opacity=l(h),i+""}}return r.gamma=t,r})(1);function Zc(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=t[i]*(1-s)+e[i]*s;return r}}function Qc(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Jc(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),s=new Array(n),a;for(a=0;a<r;++a)i[a]=C1(t[a],e[a]);for(;a<n;++a)s[a]=e[a];return function(c){for(a=0;a<r;++a)s[a]=i[a](c);return s}}function t0(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Yt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function e0(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=C1(t[i],e[i]):r[i]=e[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var S1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,T1=new RegExp(S1.source,"g");function n0(t){return function(){return t}}function r0(t){return function(e){return t(e)+""}}function Li(t,e){var n=S1.lastIndex=T1.lastIndex=0,r,i,s,a=-1,c=[],u=[];for(t=t+"",e=e+"";(r=S1.exec(t))&&(i=T1.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),c[a]?c[a]+=s:c[++a]=s),(r=r[0])===(i=i[0])?c[a]?c[a]+=i:c[++a]=i:(c[++a]=null,u.push({i:a,x:Yt(r,i)})),n=T1.lastIndex;return n<e.length&&(s=e.slice(n),c[a]?c[a]+=s:c[++a]=s),c.length<2?u[0]?r0(u[0].x):n0(e):(e=u.length,function(l){for(var h=0,d;h<e;++h)c[(d=u[h]).i]=d.x(l);return c.join("")})}function C1(t,e){var n=typeof e,r;return e==null||n==="boolean"?E1(e):(n==="number"?Yt:n==="string"?(r=ve(e))?(e=r,Ln):Li:e instanceof ve?Ln:e instanceof Date?t0:Qc(e)?Zc:Array.isArray(e)?Jc:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?e0:Yt)(t,e)}function i0(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var $i=180/Math.PI,M1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qi(t,e,n,r,i,s){var a,c,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(c=Math.sqrt(n*n+r*r))&&(n/=c,r/=c,u/=c),t*r<e*n&&(t=-t,e=-e,u=-u,a=-a),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*$i,skewX:Math.atan(u)*$i,scaleX:a,scaleY:c}}var $n;function o0(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?M1:qi(e.a,e.b,e.c,e.d,e.e,e.f)}function s0(t){return t==null||($n||($n=document.createElementNS("http://www.w3.org/2000/svg","g")),$n.setAttribute("transform",t),!(t=$n.transform.baseVal.consolidate()))?M1:(t=t.matrix,qi(t.a,t.b,t.c,t.d,t.e,t.f))}function Oi(t,e,n,r){function i(l){return l.length?l.pop()+" ":""}function s(l,h,d,m,f,p){if(l!==d||h!==m){var y=f.push("translate(",null,e,null,n);p.push({i:y-4,x:Yt(l,d)},{i:y-2,x:Yt(h,m)})}else(d||m)&&f.push("translate("+d+e+m+n)}function a(l,h,d,m){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),m.push({i:d.push(i(d)+"rotate(",null,r)-2,x:Yt(l,h)})):h&&d.push(i(d)+"rotate("+h+r)}function c(l,h,d,m){l!==h?m.push({i:d.push(i(d)+"skewX(",null,r)-2,x:Yt(l,h)}):h&&d.push(i(d)+"skewX("+h+r)}function u(l,h,d,m,f,p){if(l!==d||h!==m){var y=f.push(i(f)+"scale(",null,",",null,")");p.push({i:y-4,x:Yt(l,d)},{i:y-2,x:Yt(h,m)})}else(d!==1||m!==1)&&f.push(i(f)+"scale("+d+","+m+")")}return function(l,h){var d=[],m=[];return l=t(l),h=t(h),s(l.translateX,l.translateY,h.translateX,h.translateY,d,m),a(l.rotate,h.rotate,d,m),c(l.skewX,h.skewX,d,m),u(l.scaleX,l.scaleY,h.scaleX,h.scaleY,d,m),l=h=null,function(f){for(var p=-1,y=m.length,b;++p<y;)d[(b=m[p]).i]=b.x(f);return d.join("")}}}var l0=Oi(o0,"px, ","px)","deg)"),a0=Oi(s0,", ",")",")");function B1(t,e){var n=De((t=v1(t)).l,(e=v1(e)).l),r=De(t.a,e.a),i=De(t.b,e.b),s=De(t.opacity,e.opacity);return function(a){return t.l=n(a),t.a=r(a),t.b=i(a),t.opacity=s(a),t+""}}var Ve=0,Qe=0,Je=0,Pi=1e3,qn,tn,On=0,Ne=0,Pn=0,en=typeof performance=="object"&&performance.now?performance:Date,Di=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function L1(){return Ne||(Di(c0),Ne=en.now()+Pn)}function c0(){Ne=0}function Dn(){this._call=this._time=this._next=null}Dn.prototype=Vi.prototype={constructor:Dn,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?L1():+n)+(e==null?0:+e),!this._next&&tn!==this&&(tn?tn._next=this:qn=this,tn=this),this._call=t,this._time=n,$1()},stop:function(){this._call&&(this._call=null,this._time=1/0,$1())}};function Vi(t,e,n){var r=new Dn;return r.restart(t,e,n),r}function u0(){L1(),++Ve;for(var t=qn,e;t;)(e=Ne-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Ve}function ji(){Ne=(On=en.now())+Pn,Ve=Qe=0;try{u0()}finally{Ve=0,f0(),Ne=0}}function h0(){var t=en.now(),e=t-On;e>Pi&&(Pn-=e,On=t)}function f0(){for(var t,e=qn,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:qn=n);tn=t,$1(r)}function $1(t){if(!Ve){Qe&&(Qe=clearTimeout(Qe));var e=t-Ne;e>24?(t<1/0&&(Qe=setTimeout(ji,t-en.now()-Pn)),Je&&(Je=clearInterval(Je))):(Je||(On=en.now(),Je=setInterval(h0,Pi)),Ve=1,Di(ji))}}function Ri(t,e,n){var r=new Dn;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var m0=Jr("start","end","cancel","interrupt"),d0=[],Ii=0,Hi=1,q1=2,Vn=3,Fi=4,O1=5,jn=6;function Rn(t,e,n,r,i,s){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;g0(t,n,{name:e,index:r,group:i,on:m0,tween:d0,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Ii})}function P1(t,e){var n=Gt(t,e);if(n.state>Ii)throw new Error("too late; already scheduled");return n}function Zt(t,e){var n=Gt(t,e);if(n.state>Vn)throw new Error("too late; already running");return n}function Gt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function g0(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Vi(s,0,n.time);function s(l){n.state=Hi,n.timer.restart(a,n.delay,n.time),n.delay<=l&&a(l-n.delay)}function a(l){var h,d,m,f;if(n.state!==Hi)return u();for(h in r)if(f=r[h],f.name===n.name){if(f.state===Vn)return Ri(a);f.state===Fi?(f.state=jn,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[h]):+h<e&&(f.state=jn,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[h])}if(Ri(function(){n.state===Vn&&(n.state=Fi,n.timer.restart(c,n.delay,n.time),c(l))}),n.state=q1,n.on.call("start",t,t.__data__,n.index,n.group),n.state===q1){for(n.state=Vn,i=new Array(m=n.tween.length),h=0,d=-1;h<m;++h)(f=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=f);i.length=d+1}}function c(l){for(var h=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(u),n.state=O1,1),d=-1,m=i.length;++d<m;)i[d].call(t,h);n.state===O1&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){n.state=jn,n.timer.stop(),delete r[e];for(var l in r)return;delete t.__transition}}function p0(t,e){var n=t.__transition,r,i,s=!0,a;if(n){e=e==null?null:e+"";for(a in n){if((r=n[a]).name!==e){s=!1;continue}i=r.state>q1&&r.state<O1,r.state=jn,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]}s&&delete t.__transition}}function y0(t){return this.each(function(){p0(this,t)})}function x0(t,e){var n,r;return function(){var i=Zt(this,t),s=i.tween;if(s!==n){r=n=s;for(var a=0,c=r.length;a<c;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function b0(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=Zt(this,t),a=s.tween;if(a!==r){i=(r=a).slice();for(var c={name:e,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===e){i[u]=c;break}u===l&&i.push(c)}s.tween=i}}function v0(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=Gt(this.node(),n).tween,i=0,s=r.length,a;i<s;++i)if((a=r[i]).name===t)return a.value;return null}return this.each((e==null?x0:b0)(n,t,e))}function D1(t,e,n){var r=t._id;return t.each(function(){var i=Zt(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return Gt(i,r).value[e]}}function Ui(t,e){var n;return(typeof e=="number"?Yt:e instanceof ve?Ln:(n=ve(e))?(e=n,Ln):Li)(t,e)}function w0(t){return function(){this.removeAttribute(t)}}function k0(t){return function(){this.removeAttributeNS(t.space,t.local)}}function N0(t,e,n){var r,i=n+"",s;return function(){var a=this.getAttribute(t);return a===i?null:a===r?s:s=e(r=a,n)}}function A0(t,e,n){var r,i=n+"",s;return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?s:s=e(r=a,n)}}function E0(t,e,n){var r,i,s;return function(){var a,c=n(this),u;return c==null?void this.removeAttribute(t):(a=this.getAttribute(t),u=c+"",a===u?null:a===r&&u===i?s:(i=u,s=e(r=a,c)))}}function S0(t,e,n){var r,i,s;return function(){var a,c=n(this),u;return c==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),u=c+"",a===u?null:a===r&&u===i?s:(i=u,s=e(r=a,c)))}}function T0(t,e){var n=Nn(t),r=n==="transform"?a0:Ui;return this.attrTween(t,typeof e=="function"?(n.local?S0:E0)(n,r,D1(this,"attr."+t,e)):e==null?(n.local?k0:w0)(n):(n.local?A0:N0)(n,r,e))}function C0(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function M0(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function B0(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&M0(t,s)),n}return i._value=e,i}function L0(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&C0(t,s)),n}return i._value=e,i}function $0(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Nn(t);return this.tween(n,(r.local?B0:L0)(r,e))}function q0(t,e){return function(){P1(this,t).delay=+e.apply(this,arguments)}}function O0(t,e){return e=+e,function(){P1(this,t).delay=e}}function P0(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?q0:O0)(e,t)):Gt(this.node(),e).delay}function D0(t,e){return function(){Zt(this,t).duration=+e.apply(this,arguments)}}function V0(t,e){return e=+e,function(){Zt(this,t).duration=e}}function j0(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?D0:V0)(e,t)):Gt(this.node(),e).duration}function R0(t,e){if(typeof e!="function")throw new Error;return function(){Zt(this,t).ease=e}}function I0(t){var e=this._id;return arguments.length?this.each(R0(e,t)):Gt(this.node(),e).ease}function H0(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Zt(this,t).ease=n}}function F0(t){if(typeof t!="function")throw new Error;return this.each(H0(this._id,t))}function U0(t){typeof t!="function"&&(t=ii(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],a=s.length,c=r[i]=[],u,l=0;l<a;++l)(u=s[l])&&t.call(u,u.__data__,l,s)&&c.push(u);return new oe(r,this._parents,this._name,this._id)}function z0(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,s=Math.min(r,i),a=new Array(r),c=0;c<s;++c)for(var u=e[c],l=n[c],h=u.length,d=a[c]=new Array(h),m,f=0;f<h;++f)(m=u[f]||l[f])&&(d[f]=m);for(;c<r;++c)a[c]=e[c];return new oe(a,this._parents,this._name,this._id)}function X0(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Y0(t,e,n){var r,i,s=X0(e)?P1:Zt;return function(){var a=s(this,t),c=a.on;c!==r&&(i=(r=c).copy()).on(e,n),a.on=i}}function G0(t,e){var n=this._id;return arguments.length<2?Gt(this.node(),n).on.on(t):this.each(Y0(n,t,e))}function W0(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function _0(){return this.on("end.remove",W0(this._id))}function K0(t){var e=this._name,n=this._id;typeof t!="function"&&(t=p1(t));for(var r=this._groups,i=r.length,s=new Array(i),a=0;a<i;++a)for(var c=r[a],u=c.length,l=s[a]=new Array(u),h,d,m=0;m<u;++m)(h=c[m])&&(d=t.call(h,h.__data__,m,c))&&("__data__"in h&&(d.__data__=h.__data__),l[m]=d,Rn(l[m],e,n,m,l,Gt(h,n)));return new oe(s,this._parents,e,n)}function Z0(t){var e=this._name,n=this._id;typeof t!="function"&&(t=ri(t));for(var r=this._groups,i=r.length,s=[],a=[],c=0;c<i;++c)for(var u=r[c],l=u.length,h,d=0;d<l;++d)if(h=u[d]){for(var m=t.call(h,h.__data__,d,u),f,p=Gt(h,n),y=0,b=m.length;y<b;++y)(f=m[y])&&Rn(f,e,n,y,m,p);s.push(m),a.push(h)}return new oe(s,a,e,n)}var Q0=We.prototype.constructor;function J0(){return new Q0(this._groups,this._parents)}function tu(t,e){var n,r,i;return function(){var s=qe(this,t),a=(this.style.removeProperty(t),qe(this,t));return s===a?null:s===n&&a===r?i:i=e(n=s,r=a)}}function zi(t){return function(){this.style.removeProperty(t)}}function eu(t,e,n){var r,i=n+"",s;return function(){var a=qe(this,t);return a===i?null:a===r?s:s=e(r=a,n)}}function nu(t,e,n){var r,i,s;return function(){var a=qe(this,t),c=n(this),u=c+"";return c==null&&(u=c=(this.style.removeProperty(t),qe(this,t))),a===u?null:a===r&&u===i?s:(i=u,s=e(r=a,c))}}function ru(t,e){var n,r,i,s="style."+e,a="end."+s,c;return function(){var u=Zt(this,t),l=u.on,h=u.value[s]==null?c||(c=zi(e)):void 0;(l!==n||i!==h)&&(r=(n=l).copy()).on(a,i=h),u.on=r}}function iu(t,e,n){var r=(t+="")=="transform"?l0:Ui;return e==null?this.styleTween(t,tu(t,r)).on("end.style."+t,zi(t)):typeof e=="function"?this.styleTween(t,nu(t,r,D1(this,"style."+t,e))).each(ru(this._id,t)):this.styleTween(t,eu(t,r,e),n).on("end.style."+t,null)}function ou(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function su(t,e,n){var r,i;function s(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&ou(t,a,n)),r}return s._value=e,s}function lu(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,su(t,e,n??""))}function au(t){return function(){this.textContent=t}}function cu(t){return function(){var e=t(this);this.textContent=e??""}}function uu(t){return this.tween("text",typeof t=="function"?cu(D1(this,"text",t)):au(t==null?"":t+""))}function hu(t){return function(e){this.textContent=t.call(this,e)}}function fu(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&hu(i)),e}return r._value=t,r}function mu(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,fu(t))}function du(){for(var t=this._name,e=this._id,n=Xi(),r=this._groups,i=r.length,s=0;s<i;++s)for(var a=r[s],c=a.length,u,l=0;l<c;++l)if(u=a[l]){var h=Gt(u,e);Rn(u,t,n,l,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new oe(r,this._parents,t,n)}function gu(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(s,a){var c={value:a},u={value:function(){--i===0&&s()}};n.each(function(){var l=Zt(this,r),h=l.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(c),e._.interrupt.push(c),e._.end.push(u)),l.on=e}),i===0&&s()})}var pu=0;function oe(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Xi(){return++pu}var se=We.prototype;oe.prototype={constructor:oe,select:K0,selectAll:Z0,selectChild:se.selectChild,selectChildren:se.selectChildren,filter:U0,merge:z0,selection:J0,transition:du,call:se.call,nodes:se.nodes,node:se.node,size:se.size,empty:se.empty,each:se.each,on:G0,attr:T0,attrTween:$0,style:iu,styleTween:lu,text:uu,textTween:mu,remove:_0,tween:v0,delay:P0,duration:j0,ease:I0,easeVarying:F0,end:gu,[Symbol.iterator]:se[Symbol.iterator]};function yu(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var xu={time:null,delay:0,duration:250,ease:yu};function bu(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function vu(t){var e,n;t instanceof oe?(e=t._id,t=t._name):(e=Xi(),(n=xu).time=L1(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var a=r[s],c=a.length,u,l=0;l<c;++l)(u=a[l])&&Rn(u,t,e,l,a,n||bu(u,e));return new oe(r,this._parents,t,e)}We.prototype.interrupt=y0,We.prototype.transition=vu;const V1=Math.PI,j1=2*V1,Ae=1e-6,wu=j1-Ae;function Yi(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function ku(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Yi;const n=10**e;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class Nu{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Yi:ku(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,s,a){this._append`C${+e},${+n},${+r},${+i},${this._x1=+s},${this._y1=+a}`}arcTo(e,n,r,i,s){if(e=+e,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,c=this._y1,u=r-e,l=i-n,h=a-e,d=c-n,m=h*h+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(m>Ae)if(!(Math.abs(d*u-l*h)>Ae)||!s)this._append`L${this._x1=e},${this._y1=n}`;else{let f=r-a,p=i-c,y=u*u+l*l,b=f*f+p*p,w=Math.sqrt(y),C=Math.sqrt(m),A=s*Math.tan((V1-Math.acos((y+m-b)/(2*w*C)))/2),L=A/C,q=A/w;Math.abs(L-1)>Ae&&this._append`L${e+L*h},${n+L*d}`,this._append`A${s},${s},0,0,${+(d*f>h*p)},${this._x1=e+q*u},${this._y1=n+q*l}`}}arc(e,n,r,i,s,a){if(e=+e,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(i),u=r*Math.sin(i),l=e+c,h=n+u,d=1^a,m=a?i-s:s-i;this._x1===null?this._append`M${l},${h}`:(Math.abs(this._x1-l)>Ae||Math.abs(this._y1-h)>Ae)&&this._append`L${l},${h}`,r&&(m<0&&(m=m%j1+j1),m>wu?this._append`A${r},${r},0,1,${d},${e-c},${n-u}A${r},${r},0,1,${d},${this._x1=l},${this._y1=h}`:m>Ae&&this._append`A${r},${r},0,${+(m>=V1)},${d},${this._x1=e+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Au(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function In(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function je(t){return t=In(Math.abs(t)),t?t[1]:NaN}function Eu(t,e){return function(n,r){for(var i=n.length,s=[],a=0,c=t[0],u=0;i>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),s.push(n.substring(i-=c,i+c)),!((u+=c+1)>r));)c=t[a=(a+1)%t.length];return s.reverse().join(e)}}function Su(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Tu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Hn(t){if(!(e=Tu.exec(t)))throw new Error("invalid format: "+t);var e;return new R1({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Hn.prototype=R1.prototype;function R1(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}R1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Cu(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var Fn;function Mu(t,e){var n=In(t,e);if(!n)return Fn=void 0,t.toPrecision(e);var r=n[0],i=n[1],s=i-(Fn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return s===a?r:s>a?r+new Array(s-a+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+In(t,Math.max(0,e+s-1))[0]}function Gi(t,e){var n=In(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Wi={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Au,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Gi(t*100,e),r:Gi,s:Mu,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function _i(t){return t}var Ki=Array.prototype.map,Zi=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Bu(t){var e=t.grouping===void 0||t.thousands===void 0?_i:Eu(Ki.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?_i:Su(Ki.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",c=t.minus===void 0?"\u2212":t.minus+"",u=t.nan===void 0?"NaN":t.nan+"";function l(d,m){d=Hn(d);var f=d.fill,p=d.align,y=d.sign,b=d.symbol,w=d.zero,C=d.width,A=d.comma,L=d.precision,q=d.trim,P=d.type;P==="n"?(A=!0,P="g"):Wi[P]||(L===void 0&&(L=12),q=!0,P="g"),(w||f==="0"&&p==="=")&&(w=!0,f="0",p="=");var v=(m&&m.prefix!==void 0?m.prefix:"")+(b==="$"?n:b==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():""),g=(b==="$"?r:/[%p]/.test(P)?a:"")+(m&&m.suffix!==void 0?m.suffix:""),k=Wi[P],N=/[defgprs%]/.test(P);L=L===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,L)):Math.max(0,Math.min(20,L));function T(S){var R=v,D=g,F,I,H;if(P==="c")D=k(S)+D,S="";else{S=+S;var j=S<0||1/S<0;if(S=isNaN(S)?u:k(Math.abs(S),L),q&&(S=Cu(S)),j&&+S==0&&y!=="+"&&(j=!1),R=(j?y==="("?y:c:y==="-"||y==="("?"":y)+R,D=(P==="s"&&!isNaN(S)&&Fn!==void 0?Zi[8+Fn/3]:"")+D+(j&&y==="("?")":""),N){for(F=-1,I=S.length;++F<I;)if(H=S.charCodeAt(F),48>H||H>57){D=(H===46?i+S.slice(F+1):S.slice(F))+D,S=S.slice(0,F);break}}}A&&!w&&(S=e(S,1/0));var U=R.length+S.length+D.length,z=U<C?new Array(C-U+1).join(f):"";switch(A&&w&&(S=e(z+S,z.length?C-D.length:1/0),z=""),p){case"<":S=R+S+D+z;break;case"=":S=R+z+S+D;break;case"^":S=z.slice(0,U=z.length>>1)+R+S+D+z.slice(U);break;default:S=z+R+S+D;break}return s(S)}return T.toString=function(){return d+""},T}function h(d,m){var f=Math.max(-8,Math.min(8,Math.floor(je(m)/3)))*3,p=Math.pow(10,-f),y=l((d=Hn(d),d.type="f",d),{suffix:Zi[8+f/3]});return function(b){return y(p*b)}}return{format:l,formatPrefix:h}}var Un,Qi,Ji;Lu({thousands:",",grouping:[3],currency:["$",""]});function Lu(t){return Un=Bu(t),Qi=Un.format,Ji=Un.formatPrefix,Un}function $u(t){return Math.max(0,-je(Math.abs(t)))}function qu(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(je(e)/3)))*3-je(Math.abs(t)))}function Ou(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,je(e)-je(t))+1}function Pu(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Du(t){return function(){return t}}function Vu(t){return+t}var to=[0,1];function Re(t){return t}function I1(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Du(isNaN(e)?NaN:.5)}function ju(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Ru(t,e,n){var r=t[0],i=t[1],s=e[0],a=e[1];return i<r?(r=I1(i,r),s=n(a,s)):(r=I1(r,i),s=n(s,a)),function(c){return s(r(c))}}function Iu(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),s=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=I1(t[a],t[a+1]),s[a]=n(e[a],e[a+1]);return function(c){var u=Xl(t,c,1,r)-1;return s[u](i[u](c))}}function Hu(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Fu(){var t=to,e=to,n=C1,r,i,s,a=Re,c,u,l;function h(){var m=Math.min(t.length,e.length);return a!==Re&&(a=ju(t[0],t[m-1])),c=m>2?Iu:Ru,u=l=null,d}function d(m){return m==null||isNaN(m=+m)?s:(u||(u=c(t.map(r),e,n)))(r(a(m)))}return d.invert=function(m){return a(i((l||(l=c(e,t.map(r),Yt)))(m)))},d.domain=function(m){return arguments.length?(t=Array.from(m,Vu),h()):t.slice()},d.range=function(m){return arguments.length?(e=Array.from(m),h()):e.slice()},d.rangeRound=function(m){return e=Array.from(m),n=i0,h()},d.clamp=function(m){return arguments.length?(a=m?!0:Re,h()):a!==Re},d.interpolate=function(m){return arguments.length?(n=m,h()):n},d.unknown=function(m){return arguments.length?(s=m,d):s},function(m,f){return r=m,i=f,h()}}function Uu(){return Fu()(Re,Re)}function zu(t,e,n,r){var i=Kl(t,e,n),s;switch(r=Hn(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(s=qu(i,a))&&(r.precision=s),Ji(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=Ou(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=$u(i))&&(r.precision=s-(r.type==="%")*2);break}}return Qi(r)}function Xu(t){var e=t.domain;return t.ticks=function(n){var r=e();return _l(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return zu(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,s=r.length-1,a=r[i],c=r[s],u,l,h=10;for(c<a&&(l=a,a=c,c=l,l=i,i=s,s=l);h-- >0;){if(l=d1(a,c,n),l===u)return r[i]=a,r[s]=c,e(r);if(l>0)a=Math.floor(a/l)*l,c=Math.ceil(c/l)*l;else if(l<0)a=Math.ceil(a*l)/l,c=Math.floor(c*l)/l;else break;u=l}return t},t}function eo(){var t=Uu();return t.copy=function(){return Hu(t,eo())},Pu.apply(t,arguments),Xu(t)}function Ie(t){return function(){return t}}const no=1e-12;function Yu(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new Nu(e)}function Gu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ro(t){this._context=t}ro.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function H1(t){return new ro(t)}function Wu(t){return t[0]}function _u(t){return t[1]}function Ku(t,e){var n=Ie(!0),r=null,i=H1,s=null,a=Yu(c);t=typeof t=="function"?t:t===void 0?Wu:Ie(t),e=typeof e=="function"?e:e===void 0?_u:Ie(e);function c(u){var l,h=(u=Gu(u)).length,d,m=!1,f;for(r==null&&(s=i(f=a())),l=0;l<=h;++l)!(l<h&&n(d=u[l],l,u))===m&&((m=!m)?s.lineStart():s.lineEnd()),m&&s.point(+t(d,l,u),+e(d,l,u));if(f)return s=null,f+""||null}return c.x=function(u){return arguments.length?(t=typeof u=="function"?u:Ie(+u),c):t},c.y=function(u){return arguments.length?(e=typeof u=="function"?u:Ie(+u),c):e},c.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Ie(!!u),c):n},c.curve=function(u){return arguments.length?(i=u,r!=null&&(s=i(r)),c):i},c.context=function(u){return arguments.length?(u==null?r=s=null:s=i(r=u),c):r},c}function io(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function F1(t,e){this._context=t,this._k=(1-e)/6}F1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:io(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:io(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const oo=(function t(e){function n(r){return new F1(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Zu(t,e,n){var r=t._x1,i=t._y1,s=t._x2,a=t._y2;if(t._l01_a>no){var c=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*c-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*c-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>no){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*l+t._x1*t._l23_2a-e*t._l12_2a)/h,a=(a*l+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(r,i,s,a,t._x2,t._y2)}function so(t,e){this._context=t,this._alpha=e}so.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Zu(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const lo=(function t(e){function n(r){return e?new so(r,e):new F1(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function ao(t){this._context=t}ao.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=co(t),i=co(e),s=0,a=1;a<n;++s,++a)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],t[a],e[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function co(t){var e,n=t.length-1,r,i=new Array(n),s=new Array(n),a=new Array(n);for(i[0]=0,s[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,s[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,s[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/s[e-1],s[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/s[n-1],e=n-2;e>=0;--e)i[e]=(a[e]-i[e+1])/s[e];for(s[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)s[e]=2*t[e+1]-i[e+1];return[i,s]}function zn(t){return new ao(t)}function nn(t,e,n){this.k=t,this.x=e,this.y=n}nn.prototype={constructor:nn,scale:function(t){return t===1?this:new nn(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new nn(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},nn.prototype;const Qu={censor:de,squish(t,{min:e,max:n}){return isFinite(t)?t<e?e:t>n?n:t:t},squish_any:ut,squish_infinite:f1,discard(t,{min:e,max:n}){return t<e||t>n?null:t}};function He(t,{title:e,...n}={}){return Object.assign(function(r){return r.map(t)},{title:e},n)}function uo({values:t={},na_value:e=null,title:n,...r}={}){let i;return Array.isArray(t)?i=function(s){return s.map(a=>t[+a]??e)}:i=function(s){return s.map(a=>t[a]??e)},Object.assign(i,{title:n},r)}function Fe({limits:t,oob:e=de,range:n=[0,1],na_value:r=null,null_value:i=null,title:s,...a}={}){return Object.assign(function(u){let l=this?.limits?.min??this?.limits?.[0]??u.extent?.[0],h=this?.limits?.max??this?.limits?.[1]??u.extent?.[1],d=h-l,m=n?.min??n[0],f=n?.max??n[1],p=f-m;return u.map(y=>(y=this.oob(y,{min:l,max:h}),y===null?i:isNaN(y)?r:m+(y-l)/d*p))},{title:s,limits:t,oob:e},a)}function ho({title:t,...e}={}){return Object.assign(function(n){return n.map(r=>+r)},{asis:!0,title:t},e)}function U1({title:t,...e}={}){return Object.assign(function(n){return n.map(r=>String(r??""))},{asis:!0,title:t},e)}function Xn({h:t=[15,375],c:e=100,l:n=65,h_start:r=0,direction:i=1,limits:s,oob:a=de,na_value:c="#7f7f7f",null_value:u=null,title:l,...h}={}){return Object.assign(function(m){let f=this?.limits?.min??this?.limits?.[0]??m.extent?.[0],p=this?.limits?.max??this?.limits?.[1]??m.extent?.[1],y=p-f,b=t?.min??t[0],w=t?.max??t[1],C=w-b;return m.map(A=>(A=this.oob(A,{min:f,max:p}),A===null?u:isNaN(A)?c:Mi(r+b+C*(A-f)/y*i,e,n).toString()))},{title:l,limits:s,oob:a},h)}function Ju({values:t,na_value:e="#7f7f7f",title:n,...r}={}){return uo({values:t,na_value:e,title:n,...r})}function Yn({low:t="#132B43",high:e="#56B1F7",limits:n,oob:r=de,na_value:i="#7f7f7f",null_value:s=null,title:a,...c}={}){return Object.assign(function(l){let h=this?.limits?.min??this?.limits?.[0]??l.extent?.[0],d=this?.limits?.max??this?.limits?.[1]??l.extent?.[1],m=B1(t,e);return l.map(f=>(f=this.oob(f,{min:h,max:d}),f===null?s:isNaN(f)?i:h===d?m(.5):f>d?e:f<h?t:m((f-h)/(d-h))))},{title:a,limits:n,oob:r},c)}function t2({low:t="#832424",mid:e="white",high:n="#3A3A98",midpoint:r=0,limits:i,oob:s=de,na_value:a="#7f7f7f",null_value:c=null,title:u,...l}={}){return Object.assign(function(d){let m=this?.limits?.min??this?.limits?.[0]??d.extent?.[0],f=this?.limits?.max??this?.limits?.[1]??d.extent?.[1],p=r??(m+f)/2,y=B1(t,e),b=B1(e,n);return d.map(w=>(w=this.oob(w,{min:m,max:f}),w===null?c:isNaN(w)?a:w<p?y((w-m)/(p-m)):b((w-p)/(f-p))))},{title:u,limits:i,oob:s},l)}function e2({colors:t=[],values:e,anchors:n,limits:r,oob:i=de,na_value:s="#7f7f7f",null_value:a=null,title:c,...u}={}){return Object.assign(function(h){let d=this?.limits?.min??this?.limits?.[0]??h.extent?.[0],m=this?.limits?.max??this?.limits?.[1]??h.extent?.[1],f=e??n?.map?.(y=>d+(m-d)*y);f??=Array(t.length).fill(0).map((y,b)=>d+(m-d)*b/(t.length-1)),t=t.filter((y,b)=>!isNaN(f[b])),f=f.filter(y=>!isNaN(y));let p=eo(f,t);return h.map(y=>(y=this.oob(y,{min:d,max:m}),y===null?a:isNaN(y)?s:p(y)))},{title:c,limits:r,oob:i},u)}function fo({limits:t,oob:e=de,title:n,...r}={}){let i=Xn(),s=Yn();return Object.assign(function(c){return c.level!=null?i.call(this,c):s.call(this,c)},{title:n,limits:t,oob:e},r)}function n2({discrete:t,continuous:e,limits:n,oob:r=de,title:i,...s}={}){return t??=Xn(),e??=Yn(),Object.assign(function(c){return c.level!=null?t.call(this,c):e.call(this,c)},{title:i,limits:n,oob:r},s)}function mo({title:t,...e}={}){let n=["circle","square","triangle","diamond","plus"];return Object.assign(function(i){return i.map(s=>n[+s])},{title:t},e)}function go({title:t,...e}={}){let n=["solid","22","42","44","13","1343","73","2262","12223242","F282","F4448444","224282F2","F1"];return Object.assign(function(i){return i.map(s=>n[+s])},{title:t},e)}const z1={identity:({title:t,...e}={})=>U1({legend:!1,title:t,...e}),discrete:Xn,hue:Xn,manual:Ju,continuous:Yn,gradient:Yn,gradient2:t2,gradientn:e2,dynamic:n2,auto:fo,custom:He,default:fo},po={color:z1,stroke:z1,fill:z1,alpha:{continuous:Fe,custom:He,default:({title:t,...e}={})=>Fe({range:[.1,1],title:t,...e})},size:{identity:({title:t,...e}={})=>ho({legend:!1,title:t,...e}),continuous:Fe,custom:He,default:({title:t,...e}={})=>Fe({range:[1,6],title:t,...e})},linewidth:{identity:({title:t,...e}={})=>ho({legend:!1,title:t,...e}),continuous:Fe,manual:uo,custom:He,default:({title:t,...e}={})=>Fe({range:[1,6],title:t,...e})},linetype:{identity:({title:t,...e}={})=>U1({legend:!1,title:t,...e}),discrete:go,default:go,custom:He},shape:{identity:({title:t,...e}={})=>U1({legend:!1,title:t,...e}),discrete:mo,default:mo,custom:He}};function r2({step:t,minor:e=!1}={}){return function({min:n,max:r,minor:i=e}={}){let s=r-n,a=t;if(isNaN(s)||s<0)return[];if(s==0)return[n];let c=10**Math.floor(Math.log10(s)-1),u=s/c;a==null&&(a=([5,10,20].find(d=>d*5>u)??20)*c),i&&(a/=2);let l=Math.ceil(n/a),h=Math.floor(r/a);return new Array(h-l+1).fill(null).map((d,m)=>(l+m)*a)}}function i2(){return function({min:t,max:e}={}){let n=e-t;if(isNaN(n)||n<0)return[];if(n==0)return[new Date(t)];let r=new Date(t),i=new Date(e),s=r.getUTCFullYear(),a=r.getUTCMonth(),c=r.getUTCDate(),u=r.getUTCHours(),l=r.getUTCMinutes(),h=r.getUTCSeconds(),d=[];if(n>94608e6){let m=n/31536e6,f=10**Math.floor(Math.log10(m)-1),p=m/f,y=Math.max((p>50?10:p>25?5:2)*f,1);r=new Date(Date.UTC(Math.ceil(s/y)*y));do d.push(new Date(r));while(r.setUTCFullYear(r.getUTCFullYear()+y)<i)}else if(n>7776e6){let m=n/2592e6,f=[2,3,6].findLast(p=>p*3<=m)||1;r=new Date(Date.UTC(s,Math.ceil(a/f)*f));do d.push(new Date(r));while(r.setUTCMonth(r.getUTCMonth()+f)<i)}else if(n>18144e5){r=new Date(Date.UTC(s,a,c+(7-r.getUTCDay())%7));do d.push(new Date(r));while(r.setUTCDate(r.getUTCDate()+7)<i)}else if(n>2592e5){let m=n/864e5,f=[2,3].findLast(p=>p*3<=m)||1;r=new Date(Date.UTC(s,a,Math.ceil(c)));do d.push(new Date(r));while(r.setUTCDate(r.getUTCDate()+f)<i)}else if(n>108e5){let m=n/36e5,f=[2,3,6].findLast(p=>p*3<=m)||1;r=new Date(Date.UTC(s,a,c,Math.ceil(u/f)*f));do d.push(new Date(r));while(r.setUTCHours(r.getUTCHours()+f)<i)}else if(n>18e4){let m=n/6e4,f=[2,5,10,30].findLast(p=>p*3<=m)||1;r=new Date(Date.UTC(s,a,c,u,Math.ceil(l/f)*f));do d.push(new Date(r));while(r.setUTCMinutes(r.getUTCMinutes()+f)<i)}else if(n>3e3){let m=n/1e3,f=[2,5,10,30].findLast(p=>p*3<=m)||1;r=new Date(Date.UTC(s,a,c,u,l,Math.ceil(h/f)*f));do d.push(new Date(r));while(r.setUTCSeconds(r.getUTCSeconds()+f)<i)}else{let m=10**Math.floor(Math.log10(n)-1),f=n/m,p=(f>50?20:f>25?10:5)*m,y=Math.ceil(t/p),b=Math.floor(e/p);return new Array(b-y+1).fill(null).map((w,C)=>new Date((y+C)*p))}return d}}const Gn={number:r2,datetime:i2};let o2={y:t=>t.getUTCFullYear(),M:t=>t.getUTCMonth()+1,d:t=>t.getUTCDate(),h:t=>t.getUTCHours(),m:t=>t.getUTCMinutes(),s:t=>t.getUTCSeconds()};function X1(t,e="yyyy-MM-dd hh:mm:ss"){return e.replace(/(y|M|d|h|m|s)\1*/g,(n,r)=>{let i=String(o2[r](t)),s=n.length;return r=="y"?i.slice(-s):i.padStart(s,"0")})}const yo={default:{"":1,k:1e3,M:1e6,G:1e9,T:1e12,P:1e15,E:1e18,Z:1e21,Y:1e24},si:{y:1e-24,z:1e-21,a:1e-18,f:1e-15,p:1e-12,n:1e-9,\u03BC:1e-6,m:.001,"":1,k:1e3,M:1e6,G:1e9,T:1e12,P:1e15,E:1e18,Z:1e21,Y:1e24},binary:{"":1,Ki:1024,Mi:1024**2,Gi:1024**3,Ti:1024**4,Pi:1024**5,Ei:1024**6,Zi:1024**7,Yi:1024**8},time:{ns:1e-9,\u03BCs:1e-6,ms:.001,s:1,m:60,h:3600,d:86400,w:604800,M:2592e3,y:31536e3}};function s2(){return function(t){return t==null?"":t instanceof Date?X1(t):String(t)}}function xo({accuracy:t,scale:e=1,prefix:n="",suffix:r="",big_mark:i=" ",style_positive:s="none",style_negative:a="hyphen",scale_cut:c={"":1}}={}){let u={plus:"+",space:" "}[s]??"",l={hyphen:"-",minus:"\u2212",parens:"("}[a]??"";return function(h,d,m=[h]){let f;if(t)f=t;else if(m.length>1){let A=m.filter(q=>isFinite(q)).sort((q,P)=>q-P);f=A.slice(1).map((q,P)=>q-A[P]).reduce((q,P)=>q<P?q:P)*e}else f=h||1;let p=Object.entries(c).sort((A,L)=>L[1]-A[1]).find(A=>A[1]<=f)?.[0]??"",y=(p==""?"":" ")+p+r;f=f/(c[p]??1);let b=Math.max(0,Math.ceil(-Math.log10(f))),w=Math.round(h*e/(c[p]??1)/f)*f,C=n+(w>0?u:w<0?l:"");return w<0&&a=="parens"&&(y=")"+y),w=Math.abs(w).toFixed(b).replace(new RegExp("(?<!\\..*)(\\d)(?=(?:\\d{3})+(?:\\.|$))","g"),"$1"+i),C+w+y}}function Y1({format:t}={}){let e={y:31536e3,M:2678400,d:86400,h:3600,m:60,s:1},n={y:0,M:5,d:8,h:11,m:14,s:17},r={y:4,M:7,d:10,h:13,m:16,s:19};return function(i,s,a=[i]){if(a.length<=1)return X1(new Date(i),t);if(t==null){let c=Array.from(a).sort((m,f)=>m-f),u=c.slice(1).map((m,f)=>m-c[f]).reduce((m,f)=>m<f?m:f)/1e3,l=(c[c.length-1]-c[0])/1e3,h=["y","M","d","m","s"].find(m=>e[m]<=u),d=l>2678400?"y":l>86400?"M":"h";t="yyyy-MM-dd hh:mm:ss".slice(n[d],r[h])}return X1(new Date(i),t)}}function bo(t){let e=xo(t),n=Y1(t);return function(r,i,s=[r]){return r instanceof Ur?String(r):r instanceof Date?n(r,i,s):e(r,i,s)}}const G1={number:xo,datetime:Y1,timestamp:Y1,asis:s2,auto:bo,default:function(t){return bo({scale_cut:yo.default,...t})}};function l2(t,e){return t==null?{}:Object.fromEntries(Object.entries(t).map(([n,r])=>[n,e(n,r)]))}class a2{constructor(e,n){let{data:r=[],aes:i,extendX:s,extendY:a}=n,{geom:c,stat:u,data:l,aes:h,levels:d={},scales:m={},attrs:f,args:p,vBind:y,extendX:b,extendY:w}=e;if(!ge[c]){console.error(`Invalid geom "${c}"`,"in layer",e,", plot",n);return}let C=typeof u=="function"?u:Hl[u];if(C==null){console.error(`Invalid stat "${u}"`,"in layer",e,", plot",n);return}this.geom=c,this.vBind=Object.assign(y,{extendX:b??s??0,extendY:w??a??0}),this.scales={},typeof l=="function"&&(l=l(r)),l==null&&(l=r),h={...i,...h};let A={},L={};for(const v in h)L[v]=String(h[v]),A[v]=l.map(h[v]);A.$raw=l;let q=C?.core_attrs??["x","y","xnudge","ynudge"],P=l.length;P==0&&(P=q.map(v=>f[v]).filter(v=>v!=null).reduce((v,g)=>Math.max(Array.isArray(g)?g.length:1,v),0));for(const v in f)if(q.includes(v))if(Array.isArray(f[v])){if(f[v].length!=P)throw new Error(`Attribute "${v}" must have the same length as data (${P})`);A[v]=f[v]}else{if(f[v]==null)continue;A[v]=new Array(P).fill(f[v])}try{if(A=C(A,p||{}),A.$group??=A.group,A.$group==null){let v=Object.values(A).filter(g=>Array.isArray(g)).reduce((g,k)=>Math.max(g,k.length),0);A.$group=new Array(v).fill(null)}}catch(v){console.error("Error",v,"in layer",e,", plot",n);return}this.localScales=new Set([...Object.keys(d).filter(v=>d[v]!=null),...Object.keys(m).filter(v=>m[v]!=null)]),this.aes=new Set([...this.localScales,...ge[c]?.scale_attrs??[]]),this.$data=A,this.$fns=L,this.data={...A};for(const v in A)if(m[v]!=null){let g=new Wn(m[v]);g.aesthetics=v,g.title===void 0&&(g.title=L[v]);let k=this.$data[v];if(!k?.length)continue;g.asis||(d?.[v]!=null?g.level=d[v]:k.some(N=>typeof N=="string")?g.level=Me.from(k):g.extent=Ct.extent(k)),this.applyScale(v,g)}this.attrs={};for(const v in f)if(!q.includes(v))if(Array.isArray(f[v])){if(f[v].length!=P)throw new Error(`Attribute "${v}" must have the same length as data (${P})`);this.data[v]=f[v]}else this.attrs[v]=f[v],f[v]!=null&&(this.data[v]=new Array(P).fill(f[v]))}applyScale(e,n){let r=this.$data[e];r!=null&&(n.level&&(r=n.level.apply(r)),n.limits&&(r.extent=n.limits),n.aes=e,this.data[e]=n(r),this.scales[e]=n)}applyCoordScale(e){try{Object.assign(this.data,ge[this.geom]?.coord_scale?.(this.$data,e))}catch(n){console.error(n)}}}class c2{constructor(e,n){this.levels={},this.extents={},this.layers=[],this.coordScales={};for(let r in n)this.layers.push(new a2(n[r],e));this.layers=this.layers.filter(r=>r.$data!=null),this.aes=new Set(this.layers.flatMap(r=>Array.from(r.aes))),this.scales=new Map}useScales(e,n){this.scales=new Map;for(const r of this.aes){let i=this.layers.filter(s=>!s.localScales.has(r)).flatMap(s=>s.$data[r]??[]);if(i.length!=0){let s=new Wn(e?.[r]??po[r].default());s.aesthetics=r,s.asis||(n?.[r]!=null?s.level=n[r]:i.some(a=>typeof a=="string")?s.level=Me.from(i):s.extent=Ct.extent(i)),s.title==null&&(s.title=this.layers.map(a=>a.$fns?.[r]).find(a=>a!=null));for(const a of this.layers)a.localScales.has(r)||a.applyScale(r,s)}for(const s of this.layers){let a=s.scales?.[r];if(a!=null&&!a.asis){this.scales.has(a)||this.scales.set(a,{});let c=this.scales.get(a);c[s.geom]==null&&(c[s.geom]={});for(let u of ge[s.geom]?.scale_attrs)s.attrs[u]!=null&&(c[s.geom][u]=s.attrs[u])}}}return this}useCoordLevels(e={}){for(const n of["x","y"])if(e[n])this.levels[n]=new Me(...e[n]);else{let r=this.layers.flatMap(i=>(ge[i.geom].get_values??ge[i.geom].get_range)?.(i.$data,n));r.some(i=>typeof i=="string")?this.levels[n]=Me.from(r):(r=this.layers.flatMap(i=>ge[i.geom].get_range?.(i.$data,n)).filter(i=>!isNaN(i)),this.extents[n]=Ct.extent(r))}for(const n of this.layers)n.applyCoordScale(this.levels);return this}getComputedLayers(){return this.layers.map(e=>({data:Object.values(Object.groupBy(e.data.$group.map((r,i)=>ge[e.geom].validate(l2(e.data,(s,a)=>a?.[i]))).filter(r=>r!=null),r=>r.$group)),geom:e.geom,vBind:e.vBind}))}getCoordScales(e,n,r){let i={};if(this._range=e,this.levels.x){let s=+(e?.xmin??-.5)-(+n.x?.min||0),a=+(e?.xmax??this.levels.x.length-.5)+(+n.x?.max||0);i.x=new _n(this.levels.x,{min:s,max:a})}else{let s=e?.xmin??this.extents.x?.min??0,a=e?.xmax??this.extents.x?.max??0,c=st(s,-n.x?.min||0),u=st(a,+n.x?.max||0),l=r?.x??1;if(u-c<l)if(e?.xmax==null&&e?.xmin!=null)u=st(c,+l);else if(e?.xmax!=null&&e?.xmin==null)c=st(u,-l);else{let h=u-c;u=st(u,-h/2+l/2),c=st(u,-l)}c instanceof Date||u instanceof Date?i.x=new Kn({min:c,max:u}):i.x=new rn({min:c,max:u})}if(this.levels.y){let s=+(e?.ymin??-.5)-(+n.y?.min||0),a=+(e?.ymax??this.levels.y.length-.5)+(+n.y?.max||0);i.y=new _n(this.levels.y,{min:s,max:a})}else{let s=e?.ymin??this.extents.y?.min??0,a=e?.ymax??this.extents.y?.max??0,c=st(s,-n.y?.min),u=st(a,+n.y?.max||0),l=r?.y??1;if(u-c<l)if(e?.ymax==null&&e?.ymin!=null)u=st(c,+l);else if(e?.ymax!=null&&e?.ymin==null)c=st(u,-l);else{let h=u-c;u=st(u,-h/2+l/2),c=st(u,-l)}c instanceof Date||u instanceof Date?i.y=new Kn({min:c,max:u}):i.y=new rn({min:c,max:u})}return i}render(e,n,r){let i=this.getCoordScales(e,n,r);return{layers:this.getComputedLayers(),coordScales:i,scales:this.scales}}}class Wn extends Function{constructor(e){let n=e._fn??e;function r(){return n.apply(r,arguments)}return Object.setPrototypeOf(r,Wn.prototype),Object.assign(r,e),r._fn=n,r}set extent({min:e,max:n,0:r,1:i}={}){e??=r,n??=i,this._limits={0:e,1:n,length:2,min:e,max:n}}get extent(){return this.limits}set limits({min:e,max:n,0:r,1:i}={}){e??=r,n??=i,this.$limits={0:e,1:n,length:2,min:e,max:n}}get limits(){let e=this.$limits?.min??(this.level?0:this._limits?.min),n=this.$limits?.max??this.level?.length??this._limits?.max;return{0:e,1:n,length:2,min:e,max:n}}}class _n extends Function{constructor(e,{min:n,max:r}={}){const i=n==r?s=>0:s=>(+s-n)/(r-n);return i.range={min:n,max:r},i.level=e,Object.setPrototypeOf(i,_n.prototype),i}invert(e){let{min:n,max:r}=this.range;return e*(r-n)+n}get breaks(){return Array.from(this.level)}get minorBreaks(){return[]}}class rn extends Function{constructor(e){let{min:n,max:r}=e;const i=n==r?s=>isFinite(s)?.5:s:s=>(+s-n)/(r-n);return i.range={min:n,max:r},Object.setPrototypeOf(i,rn.prototype),i}invert(e){let{min:n,max:r}=this.range;return st(n,e*(r-n))}get breaks(){return Gn.number()}}class Kn extends rn{constructor(e){let n=super(e);return Object.setPrototypeOf(n,Kn.prototype),n}get breaks(){return Gn.datetime()}get minorBreaks(){return[]}}class u2{constructor(e,{breaks:n,labels:r,minorBreaks:i,titles:s}={}){this.scale=e,this.range=e?.range,this.breaks=n??e.breaks,this.labels=r??G1.auto(),this.titles=s??G1.asis(),this.minorBreaks=i??n??e.minorBreaks??e.breaks}getBindings({range:e,expandMult:n}={}){let r=this.breaks,i=this.minorBreaks,s=this.labels,a=this.titles,c=e?.min??this?.range?.min,u=e?.max??this?.range?.max,l=u-c||0;c=c==null?c:st(c,-(n?.min??0)*l),u=u==null?u:st(u,+(n?.max??0)*l);function h(m){return m.position!=null?m:{position:m}}typeof r=="function"&&(r=r({min:c,max:u})),r=Array.isArray(r)?r.map(h):[];let d=r.map(m=>m.position);if(typeof i=="function"&&(i=i({min:c,max:u,minor:!0})),i=Array.isArray(i)?i.map(h):[],typeof s=="function"&&(s=d.map(s)),!Array.isArray(s))s=[];else if(s.length!=d.length)throw new Error("Length of labels must be the same as breaks");if(typeof a=="function"&&(a=d.map(a)),!Array.isArray(a))a=[];else if(a.length!=d.length)throw new Error("Length of titles must be the same as breaks");return{majorBreaks:r,minorBreaks:i,ticks:d.map((m,f)=>({position:m,label:s[f],title:a[f]}))}}}const h2=["font-size"],f2={key:0},Ue={__name:"CoreText",props:{x:{type:Number,default:0},y:{type:Number,default:0},text:null,title:null,size:Number,color:String,stroke:String,linewidth:Number,linetype:String,alpha:{type:Number,default:1},angle:{type:Number,default:0},translateX:{type:Number,default:0},translateY:{type:Number,default:0},anchorX:Number,anchorY:Number,dockX:Number,dockY:Number,fontFamily:String,fontSize:Number,textLength:Number,textAnchor:{type:String,default:"middle"}},setup(t){const e=o.useTemplateRef("ele"),n=o.reactive({width:0,height:0});o.watch([e,()=>t.fontSize,()=>t.size,()=>t.text,()=>t.textLength,()=>t.fontFamily],async([i])=>{if(!i)return;await o.nextTick();let{width:s,height:a}=i.getBBox();n.width=s,n.height=a});const r=o.computed(()=>{let{width:i,height:s}=n,a=[],c=({start:-.5,end:.5}[t.textAnchor]??0)*i;if(t.dockX!=null||t.dockY!=null){let u={left:0,center:.5,right:1}[t.dockX]??+(t.dockX??.5),l={bottom:0,center:.5,top:1}[t.dockY]??+(t.dockY??.5);isNaN(u)&&(u=.5),isNaN(l)&&(l=.5);let h=i*Math.abs(Math.cos(t.angle*Math.PI/180))+s*Math.abs(Math.sin(t.angle*Math.PI/180)),d=i*Math.abs(Math.sin(t.angle*Math.PI/180))+s*Math.abs(Math.cos(t.angle*Math.PI/180)),m=t.translateX,f=t.translateY;a.push(`translate(${h*(.5-u)+m},${d*(l-.5)+f})`),t.angle&&a.push(`rotate(${t.angle})`),a.push(`translate(${c},0)`)}else{let u={left:0,center:.5,right:1}[t.anchorX]??+(t.anchorX??.5),l={bottom:0,center:.5,top:1}[t.anchorY]??+(t.anchorY??.5);isNaN(u)&&(u=.5),isNaN(l)&&(l=.5);let h=i,d=s,m=t.translateX*Math.cos(t.angle*Math.PI/180)+t.translateY*Math.sin(t.angle*Math.PI/180),f=t.translateY*Math.cos(t.angle*Math.PI/180)-t.translateX*Math.sin(t.angle*Math.PI/180);t.angle&&a.push(`rotate(${t.angle})`),a.push(`translate(${h*(.5-u)+m+c},${d*(l-.5)+f})`)}return{x:t.x,y:t.y,fill:t.color||null,"fill-opacity":t.alpha==1?null:t.alpha,stroke:t.stroke||null,"stroke-width":t.linewidth,"stroke-dasharray":At(t.linetype).join(" ")||null,"stroke-opacity":t.alpha==1?null:t.alpha,transform:a.join(" ")||null,"font-family":t.fontFamily||null,textLength:t.textLength,lengthAdjust:t.textLength?"spacingAndGlyphs":null,"transform-origin":`${t.x} ${t.y}`,"text-anchor":t.textAnchor,"dominant-baseline":"central"}});return(i,s)=>(o.openBlock(),o.createElementBlock("text",o.mergeProps({ref_key:"ele",ref:e},r.value,{"font-size":(t.fontSize??t.size*4)||null}),[o.renderSlot(i.$slots,"default",{},()=>[t.title?(o.openBlock(),o.createElementBlock("title",f2,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(t.text.replace(/ /g,"\xA0")),1)])],16,h2))}};function vo(t){switch(t._type){case"document":case"block_quote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"link":case"image":case"custom_inline":case"custom_block":return!0;default:return!1}}var m2=function(t,e){this.current=t,this.entering=e===!0},d2=function(){var t=this.current,e=this.entering;if(t===null)return null;var n=vo(t);return e&&n?t._firstChild?(this.current=t._firstChild,this.entering=!0):this.entering=!1:t===this.root?this.current=null:t._next===null?(this.current=t._parent,this.entering=!1):(this.current=t._next,this.entering=!0),{entering:e,node:t}},g2=function(t){return{current:t,root:t,entering:!0,next:d2,resumeAt:m2}},Nt=function(t,e){this._type=t,this._parent=null,this._firstChild=null,this._lastChild=null,this._prev=null,this._next=null,this._sourcepos=e,this._open=!0,this._string_content=null,this._literal=null,this._listData={},this._info=null,this._destination=null,this._title=null,this._isFenced=!1,this._fenceChar=null,this._fenceLength=0,this._fenceOffset=null,this._level=null,this._onEnter=null,this._onExit=null},Et=Nt.prototype;Object.defineProperty(Et,"isContainer",{get:function(){return vo(this)}}),Object.defineProperty(Et,"type",{get:function(){return this._type}}),Object.defineProperty(Et,"firstChild",{get:function(){return this._firstChild}}),Object.defineProperty(Et,"lastChild",{get:function(){return this._lastChild}}),Object.defineProperty(Et,"next",{get:function(){return this._next}}),Object.defineProperty(Et,"prev",{get:function(){return this._prev}}),Object.defineProperty(Et,"parent",{get:function(){return this._parent}}),Object.defineProperty(Et,"sourcepos",{get:function(){return this._sourcepos}}),Object.defineProperty(Et,"literal",{get:function(){return this._literal},set:function(t){this._literal=t}}),Object.defineProperty(Et,"destination",{get:function(){return this._destination},set:function(t){this._destination=t}}),Object.defineProperty(Et,"title",{get:function(){return this._title},set:function(t){this._title=t}}),Object.defineProperty(Et,"info",{get:function(){return this._info},set:function(t){this._info=t}}),Object.defineProperty(Et,"level",{get:function(){return this._level},set:function(t){this._level=t}}),Object.defineProperty(Et,"listType",{get:function(){return this._listData.type},set:function(t){this._listData.type=t}}),Object.defineProperty(Et,"listTight",{get:function(){return this._listData.tight},set:function(t){this._listData.tight=t}}),Object.defineProperty(Et,"listStart",{get:function(){return this._listData.start},set:function(t){this._listData.start=t}}),Object.defineProperty(Et,"listDelimiter",{get:function(){return this._listData.delimiter},set:function(t){this._listData.delimiter=t}}),Object.defineProperty(Et,"onEnter",{get:function(){return this._onEnter},set:function(t){this._onEnter=t}}),Object.defineProperty(Et,"onExit",{get:function(){return this._onExit},set:function(t){this._onExit=t}}),Nt.prototype.appendChild=function(t){t.unlink(),t._parent=this,this._lastChild?(this._lastChild._next=t,t._prev=this._lastChild,this._lastChild=t):(this._firstChild=t,this._lastChild=t)},Nt.prototype.prependChild=function(t){t.unlink(),t._parent=this,this._firstChild?(this._firstChild._prev=t,t._next=this._firstChild,this._firstChild=t):(this._firstChild=t,this._lastChild=t)},Nt.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next),this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev),this._parent=null,this._next=null,this._prev=null},Nt.prototype.insertAfter=function(t){t.unlink(),t._next=this._next,t._next&&(t._next._prev=t),t._prev=this,this._next=t,t._parent=this._parent,t._next||(t._parent._lastChild=t)},Nt.prototype.insertBefore=function(t){t.unlink(),t._prev=this._prev,t._prev&&(t._prev._next=t),t._next=this,this._prev=t,t._parent=this._parent,t._prev||(t._parent._firstChild=t)},Nt.prototype.walker=function(){var t=new g2(this);return t};function p2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var W1,wo;function y2(){if(wo)return W1;wo=1;var t={};function e(r){var i,s,a=t[r];if(a)return a;for(a=t[r]=[],i=0;i<128;i++)s=String.fromCharCode(i),/^[0-9a-z]$/i.test(s)?a.push(s):a.push("%"+("0"+i.toString(16).toUpperCase()).slice(-2));for(i=0;i<r.length;i++)a[r.charCodeAt(i)]=r[i];return a}function n(r,i,s){var a,c,u,l,h,d="";for(typeof i!="string"&&(s=i,i=n.defaultChars),typeof s>"u"&&(s=!0),h=e(i),a=0,c=r.length;a<c;a++){if(u=r.charCodeAt(a),s&&u===37&&a+2<c&&/^[0-9a-f]{2}$/i.test(r.slice(a+1,a+3))){d+=r.slice(a,a+3),a+=2;continue}if(u<128){d+=h[u];continue}if(u>=55296&&u<=57343){if(u>=55296&&u<=56319&&a+1<c&&(l=r.charCodeAt(a+1),l>=56320&&l<=57343)){d+=encodeURIComponent(r[a]+r[a+1]),a++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(r[a])}return d}return n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",W1=n,W1}var x2=y2();const b2=p2(x2);var _1={},on={},Zn={},ko;function v2(){return ko||(ko=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.default=new Uint16Array([14866,60,237,340,721,1312,1562,1654,1838,1957,2183,2239,2301,2958,3037,3893,4123,4298,4330,4801,5191,5395,5752,5903,5943,5972,6050,0,0,0,0,0,0,6135,6565,7422,8183,8738,9242,9503,9938,10189,10573,10637,10715,11950,12246,13539,13950,14445,14533,15364,16514,16980,17390,17763,17849,18036,18125,4096,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,92,100,106,115,122,137,142,151,157,163,167,182,196,204,220,229,108,105,103,33024,198,59,32768,198,80,33024,38,59,32768,38,99,117,116,101,33024,193,59,32768,193,114,101,118,101,59,32768,258,512,105,121,127,134,114,99,33024,194,59,32768,194,59,32768,1040,114,59,32896,55349,56580,114,97,118,101,33024,192,59,32768,192,112,104,97,59,32768,913,97,99,114,59,32768,256,100,59,32768,10835,512,103,112,172,177,111,110,59,32768,260,102,59,32896,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,32768,8289,105,110,103,33024,197,59,32768,197,512,99,115,209,214,114,59,32896,55349,56476,105,103,110,59,32768,8788,105,108,100,101,33024,195,59,32768,195,109,108,33024,196,59,32768,196,2048,97,99,101,102,111,114,115,117,253,278,282,310,315,321,327,332,512,99,114,258,267,107,115,108,97,115,104,59,32768,8726,583,271,274,59,32768,10983,101,100,59,32768,8966,121,59,32768,1041,768,99,114,116,289,296,306,97,117,115,101,59,32768,8757,110,111,117,108,108,105,115,59,32768,8492,97,59,32768,914,114,59,32896,55349,56581,112,102,59,32896,55349,56633,101,118,101,59,32768,728,99,114,59,32768,8492,109,112,101,113,59,32768,8782,3584,72,79,97,99,100,101,102,104,105,108,111,114,115,117,368,373,380,426,461,466,487,491,495,533,593,695,701,707,99,121,59,32768,1063,80,89,33024,169,59,32768,169,768,99,112,121,387,393,419,117,116,101,59,32768,262,512,59,105,398,400,32768,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,32768,8517,108,101,121,115,59,32768,8493,1024,97,101,105,111,435,441,449,454,114,111,110,59,32768,268,100,105,108,33024,199,59,32768,199,114,99,59,32768,264,110,105,110,116,59,32768,8752,111,116,59,32768,266,512,100,110,471,478,105,108,108,97,59,32768,184,116,101,114,68,111,116,59,32768,183,114,59,32768,8493,105,59,32768,935,114,99,108,101,1024,68,77,80,84,508,513,520,526,111,116,59,32768,8857,105,110,117,115,59,32768,8854,108,117,115,59,32768,8853,105,109,101,115,59,32768,8855,111,512,99,115,539,562,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,32768,8754,101,67,117,114,108,121,512,68,81,573,586,111,117,98,108,101,81,117,111,116,101,59,32768,8221,117,111,116,101,59,32768,8217,1024,108,110,112,117,602,614,648,664,111,110,512,59,101,609,611,32768,8759,59,32768,10868,768,103,105,116,621,629,634,114,117,101,110,116,59,32768,8801,110,116,59,32768,8751,111,117,114,73,110,116,101,103,114,97,108,59,32768,8750,512,102,114,653,656,59,32768,8450,111,100,117,99,116,59,32768,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,32768,8755,111,115,115,59,32768,10799,99,114,59,32896,55349,56478,112,512,59,67,713,715,32768,8915,97,112,59,32768,8781,2816,68,74,83,90,97,99,101,102,105,111,115,743,758,763,768,773,795,809,821,826,910,1295,512,59,111,748,750,32768,8517,116,114,97,104,100,59,32768,10513,99,121,59,32768,1026,99,121,59,32768,1029,99,121,59,32768,1039,768,103,114,115,780,786,790,103,101,114,59,32768,8225,114,59,32768,8609,104,118,59,32768,10980,512,97,121,800,806,114,111,110,59,32768,270,59,32768,1044,108,512,59,116,815,817,32768,8711,97,59,32768,916,114,59,32896,55349,56583,512,97,102,831,897,512,99,109,836,891,114,105,116,105,99,97,108,1024,65,68,71,84,852,859,877,884,99,117,116,101,59,32768,180,111,581,864,867,59,32768,729,98,108,101,65,99,117,116,101,59,32768,733,114,97,118,101,59,32768,96,105,108,100,101,59,32768,732,111,110,100,59,32768,8900,102,101,114,101,110,116,105,97,108,68,59,32768,8518,2113,920,0,0,0,925,946,0,1139,102,59,32896,55349,56635,768,59,68,69,931,933,938,32768,168,111,116,59,32768,8412,113,117,97,108,59,32768,8784,98,108,101,1536,67,68,76,82,85,86,961,978,996,1080,1101,1125,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,32768,8751,111,1093,985,0,0,988,59,32768,168,110,65,114,114,111,119,59,32768,8659,512,101,111,1001,1034,102,116,768,65,82,84,1010,1017,1029,114,114,111,119,59,32768,8656,105,103,104,116,65,114,114,111,119,59,32768,8660,101,101,59,32768,10980,110,103,512,76,82,1041,1068,101,102,116,512,65,82,1049,1056,114,114,111,119,59,32768,10232,105,103,104,116,65,114,114,111,119,59,32768,10234,105,103,104,116,65,114,114,111,119,59,32768,10233,105,103,104,116,512,65,84,1089,1096,114,114,111,119,59,32768,8658,101,101,59,32768,8872,112,1042,1108,0,0,1115,114,114,111,119,59,32768,8657,111,119,110,65,114,114,111,119,59,32768,8661,101,114,116,105,99,97,108,66,97,114,59,32768,8741,110,1536,65,66,76,82,84,97,1152,1179,1186,1236,1272,1288,114,114,111,119,768,59,66,85,1163,1165,1170,32768,8595,97,114,59,32768,10515,112,65,114,114,111,119,59,32768,8693,114,101,118,101,59,32768,785,101,102,116,1315,1196,0,1209,0,1220,105,103,104,116,86,101,99,116,111,114,59,32768,10576,101,101,86,101,99,116,111,114,59,32768,10590,101,99,116,111,114,512,59,66,1229,1231,32768,8637,97,114,59,32768,10582,105,103,104,116,805,1245,0,1256,101,101,86,101,99,116,111,114,59,32768,10591,101,99,116,111,114,512,59,66,1265,1267,32768,8641,97,114,59,32768,10583,101,101,512,59,65,1279,1281,32768,8868,114,114,111,119,59,32768,8615,114,114,111,119,59,32768,8659,512,99,116,1300,1305,114,59,32896,55349,56479,114,111,107,59,32768,272,4096,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1344,1348,1354,1363,1386,1391,1396,1405,1413,1460,1475,1483,1514,1527,1531,1538,71,59,32768,330,72,33024,208,59,32768,208,99,117,116,101,33024,201,59,32768,201,768,97,105,121,1370,1376,1383,114,111,110,59,32768,282,114,99,33024,202,59,32768,202,59,32768,1069,111,116,59,32768,278,114,59,32896,55349,56584,114,97,118,101,33024,200,59,32768,200,101,109,101,110,116,59,32768,8712,512,97,112,1418,1423,99,114,59,32768,274,116,121,1060,1431,0,0,1444,109,97,108,108,83,113,117,97,114,101,59,32768,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,32768,9643,512,103,112,1465,1470,111,110,59,32768,280,102,59,32896,55349,56636,115,105,108,111,110,59,32768,917,117,512,97,105,1489,1504,108,512,59,84,1495,1497,32768,10869,105,108,100,101,59,32768,8770,108,105,98,114,105,117,109,59,32768,8652,512,99,105,1519,1523,114,59,32768,8496,109,59,32768,10867,97,59,32768,919,109,108,33024,203,59,32768,203,512,105,112,1543,1549,115,116,115,59,32768,8707,111,110,101,110,116,105,97,108,69,59,32768,8519,1280,99,102,105,111,115,1572,1576,1581,1620,1648,121,59,32768,1060,114,59,32896,55349,56585,108,108,101,100,1060,1591,0,0,1604,109,97,108,108,83,113,117,97,114,101,59,32768,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,32768,9642,1601,1628,0,1633,0,0,1639,102,59,32896,55349,56637,65,108,108,59,32768,8704,114,105,101,114,116,114,102,59,32768,8497,99,114,59,32768,8497,3072,74,84,97,98,99,100,102,103,111,114,115,116,1678,1683,1688,1701,1708,1729,1734,1739,1742,1748,1828,1834,99,121,59,32768,1027,33024,62,59,32768,62,109,109,97,512,59,100,1696,1698,32768,915,59,32768,988,114,101,118,101,59,32768,286,768,101,105,121,1715,1721,1726,100,105,108,59,32768,290,114,99,59,32768,284,59,32768,1043,111,116,59,32768,288,114,59,32896,55349,56586,59,32768,8921,112,102,59,32896,55349,56638,101,97,116,101,114,1536,69,70,71,76,83,84,1766,1783,1794,1803,1809,1821,113,117,97,108,512,59,76,1775,1777,32768,8805,101,115,115,59,32768,8923,117,108,108,69,113,117,97,108,59,32768,8807,114,101,97,116,101,114,59,32768,10914,101,115,115,59,32768,8823,108,97,110,116,69,113,117,97,108,59,32768,10878,105,108,100,101,59,32768,8819,99,114,59,32896,55349,56482,59,32768,8811,2048,65,97,99,102,105,111,115,117,1854,1861,1874,1880,1884,1897,1919,1934,82,68,99,121,59,32768,1066,512,99,116,1866,1871,101,107,59,32768,711,59,32768,94,105,114,99,59,32768,292,114,59,32768,8460,108,98,101,114,116,83,112,97,99,101,59,32768,8459,833,1902,0,1906,102,59,32768,8461,105,122,111,110,116,97,108,76,105,110,101,59,32768,9472,512,99,116,1924,1928,114,59,32768,8459,114,111,107,59,32768,294,109,112,533,1940,1950,111,119,110,72,117,109,112,59,32768,8782,113,117,97,108,59,32768,8783,3584,69,74,79,97,99,100,102,103,109,110,111,115,116,117,1985,1990,1996,2001,2010,2025,2030,2034,2043,2077,2134,2155,2160,2167,99,121,59,32768,1045,108,105,103,59,32768,306,99,121,59,32768,1025,99,117,116,101,33024,205,59,32768,205,512,105,121,2015,2022,114,99,33024,206,59,32768,206,59,32768,1048,111,116,59,32768,304,114,59,32768,8465,114,97,118,101,33024,204,59,32768,204,768,59,97,112,2050,2052,2070,32768,8465,512,99,103,2057,2061,114,59,32768,298,105,110,97,114,121,73,59,32768,8520,108,105,101,115,59,32768,8658,837,2082,0,2110,512,59,101,2086,2088,32768,8748,512,103,114,2093,2099,114,97,108,59,32768,8747,115,101,99,116,105,111,110,59,32768,8898,105,115,105,98,108,101,512,67,84,2120,2127,111,109,109,97,59,32768,8291,105,109,101,115,59,32768,8290,768,103,112,116,2141,2146,2151,111,110,59,32768,302,102,59,32896,55349,56640,97,59,32768,921,99,114,59,32768,8464,105,108,100,101,59,32768,296,828,2172,0,2177,99,121,59,32768,1030,108,33024,207,59,32768,207,1280,99,102,111,115,117,2193,2206,2211,2217,2232,512,105,121,2198,2203,114,99,59,32768,308,59,32768,1049,114,59,32896,55349,56589,112,102,59,32896,55349,56641,820,2222,0,2227,114,59,32896,55349,56485,114,99,121,59,32768,1032,107,99,121,59,32768,1028,1792,72,74,97,99,102,111,115,2253,2258,2263,2269,2283,2288,2294,99,121,59,32768,1061,99,121,59,32768,1036,112,112,97,59,32768,922,512,101,121,2274,2280,100,105,108,59,32768,310,59,32768,1050,114,59,32896,55349,56590,112,102,59,32896,55349,56642,99,114,59,32896,55349,56486,2816,74,84,97,99,101,102,108,109,111,115,116,2323,2328,2333,2374,2396,2775,2780,2797,2804,2934,2954,99,121,59,32768,1033,33024,60,59,32768,60,1280,99,109,110,112,114,2344,2350,2356,2360,2370,117,116,101,59,32768,313,98,100,97,59,32768,923,103,59,32768,10218,108,97,99,101,116,114,102,59,32768,8466,114,59,32768,8606,768,97,101,121,2381,2387,2393,114,111,110,59,32768,317,100,105,108,59,32768,315,59,32768,1051,512,102,115,2401,2702,116,2560,65,67,68,70,82,84,85,86,97,114,2423,2470,2479,2530,2537,2561,2618,2666,2683,2690,512,110,114,2428,2441,103,108,101,66,114,97,99,107,101,116,59,32768,10216,114,111,119,768,59,66,82,2451,2453,2458,32768,8592,97,114,59,32768,8676,105,103,104,116,65,114,114,111,119,59,32768,8646,101,105,108,105,110,103,59,32768,8968,111,838,2485,0,2498,98,108,101,66,114,97,99,107,101,116,59,32768,10214,110,805,2503,0,2514,101,101,86,101,99,116,111,114,59,32768,10593,101,99,116,111,114,512,59,66,2523,2525,32768,8643,97,114,59,32768,10585,108,111,111,114,59,32768,8970,105,103,104,116,512,65,86,2546,2553,114,114,111,119,59,32768,8596,101,99,116,111,114,59,32768,10574,512,101,114,2566,2591,101,768,59,65,86,2574,2576,2583,32768,8867,114,114,111,119,59,32768,8612,101,99,116,111,114,59,32768,10586,105,97,110,103,108,101,768,59,66,69,2604,2606,2611,32768,8882,97,114,59,32768,10703,113,117,97,108,59,32768,8884,112,768,68,84,86,2626,2638,2649,111,119,110,86,101,99,116,111,114,59,32768,10577,101,101,86,101,99,116,111,114,59,32768,10592,101,99,116,111,114,512,59,66,2659,2661,32768,8639,97,114,59,32768,10584,101,99,116,111,114,512,59,66,2676,2678,32768,8636,97,114,59,32768,10578,114,114,111,119,59,32768,8656,105,103,104,116,97,114,114,111,119,59,32768,8660,115,1536,69,70,71,76,83,84,2716,2730,2741,2750,2756,2768,113,117,97,108,71,114,101,97,116,101,114,59,32768,8922,117,108,108,69,113,117,97,108,59,32768,8806,114,101,97,116,101,114,59,32768,8822,101,115,115,59,32768,10913,108,97,110,116,69,113,117,97,108,59,32768,10877,105,108,100,101,59,32768,8818,114,59,32896,55349,56591,512,59,101,2785,2787,32768,8920,102,116,97,114,114,111,119,59,32768,8666,105,100,111,116,59,32768,319,768,110,112,119,2811,2899,2904,103,1024,76,82,108,114,2821,2848,2860,2887,101,102,116,512,65,82,2829,2836,114,114,111,119,59,32768,10229,105,103,104,116,65,114,114,111,119,59,32768,10231,105,103,104,116,65,114,114,111,119,59,32768,10230,101,102,116,512,97,114,2868,2875,114,114,111,119,59,32768,10232,105,103,104,116,97,114,114,111,119,59,32768,10234,105,103,104,116,97,114,114,111,119,59,32768,10233,102,59,32896,55349,56643,101,114,512,76,82,2911,2922,101,102,116,65,114,114,111,119,59,32768,8601,105,103,104,116,65,114,114,111,119,59,32768,8600,768,99,104,116,2941,2945,2948,114,59,32768,8466,59,32768,8624,114,111,107,59,32768,321,59,32768,8810,2048,97,99,101,102,105,111,115,117,2974,2978,2982,3007,3012,3022,3028,3033,112,59,32768,10501,121,59,32768,1052,512,100,108,2987,2998,105,117,109,83,112,97,99,101,59,32768,8287,108,105,110,116,114,102,59,32768,8499,114,59,32896,55349,56592,110,117,115,80,108,117,115,59,32768,8723,112,102,59,32896,55349,56644,99,114,59,32768,8499,59,32768,924,2304,74,97,99,101,102,111,115,116,117,3055,3060,3067,3089,3201,3206,3874,3880,3889,99,121,59,32768,1034,99,117,116,101,59,32768,323,768,97,101,121,3074,3080,3086,114,111,110,59,32768,327,100,105,108,59,32768,325,59,32768,1053,768,103,115,119,3096,3160,3194,97,116,105,118,101,768,77,84,86,3108,3121,3145,101,100,105,117,109,83,112,97,99,101,59,32768,8203,104,105,512,99,110,3128,3137,107,83,112,97,99,101,59,32768,8203,83,112,97,99,101,59,32768,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,32768,8203,116,101,100,512,71,76,3168,3184,114,101,97,116,101,114,71,114,101,97,116,101,114,59,32768,8811,101,115,115,76,101,115,115,59,32768,8810,76,105,110,101,59,32768,10,114,59,32896,55349,56593,1024,66,110,112,116,3215,3222,3238,3242,114,101,97,107,59,32768,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,32768,160,102,59,32768,8469,3328,59,67,68,69,71,72,76,78,80,82,83,84,86,3269,3271,3293,3312,3352,3430,3455,3551,3589,3625,3678,3821,3861,32768,10988,512,111,117,3276,3286,110,103,114,117,101,110,116,59,32768,8802,112,67,97,112,59,32768,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,32768,8742,768,108,113,120,3319,3327,3345,101,109,101,110,116,59,32768,8713,117,97,108,512,59,84,3335,3337,32768,8800,105,108,100,101,59,32896,8770,824,105,115,116,115,59,32768,8708,114,101,97,116,101,114,1792,59,69,70,71,76,83,84,3373,3375,3382,3394,3404,3410,3423,32768,8815,113,117,97,108,59,32768,8817,117,108,108,69,113,117,97,108,59,32896,8807,824,114,101,97,116,101,114,59,32896,8811,824,101,115,115,59,32768,8825,108,97,110,116,69,113,117,97,108,59,32896,10878,824,105,108,100,101,59,32768,8821,117,109,112,533,3437,3448,111,119,110,72,117,109,112,59,32896,8782,824,113,117,97,108,59,32896,8783,824,101,512,102,115,3461,3492,116,84,114,105,97,110,103,108,101,768,59,66,69,3477,3479,3485,32768,8938,97,114,59,32896,10703,824,113,117,97,108,59,32768,8940,115,1536,59,69,71,76,83,84,3506,3508,3515,3524,3531,3544,32768,8814,113,117,97,108,59,32768,8816,114,101,97,116,101,114,59,32768,8824,101,115,115,59,32896,8810,824,108,97,110,116,69,113,117,97,108,59,32896,10877,824,105,108,100,101,59,32768,8820,101,115,116,101,100,512,71,76,3561,3578,114,101,97,116,101,114,71,114,101,97,116,101,114,59,32896,10914,824,101,115,115,76,101,115,115,59,32896,10913,824,114,101,99,101,100,101,115,768,59,69,83,3603,3605,3613,32768,8832,113,117,97,108,59,32896,10927,824,108,97,110,116,69,113,117,97,108,59,32768,8928,512,101,105,3630,3645,118,101,114,115,101,69,108,101,109,101,110,116,59,32768,8716,103,104,116,84,114,105,97,110,103,108,101,768,59,66,69,3663,3665,3671,32768,8939,97,114,59,32896,10704,824,113,117,97,108,59,32768,8941,512,113,117,3683,3732,117,97,114,101,83,117,512,98,112,3694,3712,115,101,116,512,59,69,3702,3705,32896,8847,824,113,117,97,108,59,32768,8930,101,114,115,101,116,512,59,69,3722,3725,32896,8848,824,113,117,97,108,59,32768,8931,768,98,99,112,3739,3757,3801,115,101,116,512,59,69,3747,3750,32896,8834,8402,113,117,97,108,59,32768,8840,99,101,101,100,115,1024,59,69,83,84,3771,3773,3781,3793,32768,8833,113,117,97,108,59,32896,10928,824,108,97,110,116,69,113,117,97,108,59,32768,8929,105,108,100,101,59,32896,8831,824,101,114,115,101,116,512,59,69,3811,3814,32896,8835,8402,113,117,97,108,59,32768,8841,105,108,100,101,1024,59,69,70,84,3834,3836,3843,3854,32768,8769,113,117,97,108,59,32768,8772,117,108,108,69,113,117,97,108,59,32768,8775,105,108,100,101,59,32768,8777,101,114,116,105,99,97,108,66,97,114,59,32768,8740,99,114,59,32896,55349,56489,105,108,100,101,33024,209,59,32768,209,59,32768,925,3584,69,97,99,100,102,103,109,111,112,114,115,116,117,118,3921,3927,3936,3951,3958,3963,3972,3996,4002,4034,4037,4055,4071,4078,108,105,103,59,32768,338,99,117,116,101,33024,211,59,32768,211,512,105,121,3941,3948,114,99,33024,212,59,32768,212,59,32768,1054,98,108,97,99,59,32768,336,114,59,32896,55349,56594,114,97,118,101,33024,210,59,32768,210,768,97,101,105,3979,3984,3989,99,114,59,32768,332,103,97,59,32768,937,99,114,111,110,59,32768,927,112,102,59,32896,55349,56646,101,110,67,117,114,108,121,512,68,81,4014,4027,111,117,98,108,101,81,117,111,116,101,59,32768,8220,117,111,116,101,59,32768,8216,59,32768,10836,512,99,108,4042,4047,114,59,32896,55349,56490,97,115,104,33024,216,59,32768,216,105,573,4060,4067,100,101,33024,213,59,32768,213,101,115,59,32768,10807,109,108,33024,214,59,32768,214,101,114,512,66,80,4085,4109,512,97,114,4090,4094,114,59,32768,8254,97,99,512,101,107,4101,4104,59,32768,9182,101,116,59,32768,9140,97,114,101,110,116,104,101,115,105,115,59,32768,9180,2304,97,99,102,104,105,108,111,114,115,4141,4150,4154,4159,4163,4166,4176,4198,4284,114,116,105,97,108,68,59,32768,8706,121,59,32768,1055,114,59,32896,55349,56595,105,59,32768,934,59,32768,928,117,115,77,105,110,117,115,59,32768,177,512,105,112,4181,4194,110,99,97,114,101,112,108,97,110,101,59,32768,8460,102,59,32768,8473,1024,59,101,105,111,4207,4209,4251,4256,32768,10939,99,101,100,101,115,1024,59,69,83,84,4223,4225,4232,4244,32768,8826,113,117,97,108,59,32768,10927,108,97,110,116,69,113,117,97,108,59,32768,8828,105,108,100,101,59,32768,8830,109,101,59,32768,8243,512,100,112,4261,4267,117,99,116,59,32768,8719,111,114,116,105,111,110,512,59,97,4278,4280,32768,8759,108,59,32768,8733,512,99,105,4289,4294,114,59,32896,55349,56491,59,32768,936,1024,85,102,111,115,4306,4313,4318,4323,79,84,33024,34,59,32768,34,114,59,32896,55349,56596,112,102,59,32768,8474,99,114,59,32896,55349,56492,3072,66,69,97,99,101,102,104,105,111,114,115,117,4354,4360,4366,4395,4417,4473,4477,4481,4743,4764,4776,4788,97,114,114,59,32768,10512,71,33024,174,59,32768,174,768,99,110,114,4373,4379,4383,117,116,101,59,32768,340,103,59,32768,10219,114,512,59,116,4389,4391,32768,8608,108,59,32768,10518,768,97,101,121,4402,4408,4414,114,111,110,59,32768,344,100,105,108,59,32768,342,59,32768,1056,512,59,118,4422,4424,32768,8476,101,114,115,101,512,69,85,4433,4458,512,108,113,4438,4446,101,109,101,110,116,59,32768,8715,117,105,108,105,98,114,105,117,109,59,32768,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,32768,10607,114,59,32768,8476,111,59,32768,929,103,104,116,2048,65,67,68,70,84,85,86,97,4501,4547,4556,4607,4614,4671,4719,4736,512,110,114,4506,4519,103,108,101,66,114,97,99,107,101,116,59,32768,10217,114,111,119,768,59,66,76,4529,4531,4536,32768,8594,97,114,59,32768,8677,101,102,116,65,114,114,111,119,59,32768,8644,101,105,108,105,110,103,59,32768,8969,111,838,4562,0,4575,98,108,101,66,114,97,99,107,101,116,59,32768,10215,110,805,4580,0,4591,101,101,86,101,99,116,111,114,59,32768,10589,101,99,116,111,114,512,59,66,4600,4602,32768,8642,97,114,59,32768,10581,108,111,111,114,59,32768,8971,512,101,114,4619,4644,101,768,59,65,86,4627,4629,4636,32768,8866,114,114,111,119,59,32768,8614,101,99,116,111,114,59,32768,10587,105,97,110,103,108,101,768,59,66,69,4657,4659,4664,32768,8883,97,114,59,32768,10704,113,117,97,108,59,32768,8885,112,768,68,84,86,4679,4691,4702,111,119,110,86,101,99,116,111,114,59,32768,10575,101,101,86,101,99,116,111,114,59,32768,10588,101,99,116,111,114,512,59,66,4712,4714,32768,8638,97,114,59,32768,10580,101,99,116,111,114,512,59,66,4729,4731,32768,8640,97,114,59,32768,10579,114,114,111,119,59,32768,8658,512,112,117,4748,4752,102,59,32768,8477,110,100,73,109,112,108,105,101,115,59,32768,10608,105,103,104,116,97,114,114,111,119,59,32768,8667,512,99,104,4781,4785,114,59,32768,8475,59,32768,8625,108,101,68,101,108,97,121,101,100,59,32768,10740,3328,72,79,97,99,102,104,105,109,111,113,115,116,117,4827,4842,4849,4856,4889,4894,4949,4955,4967,4973,5059,5065,5070,512,67,99,4832,4838,72,99,121,59,32768,1065,121,59,32768,1064,70,84,99,121,59,32768,1068,99,117,116,101,59,32768,346,1280,59,97,101,105,121,4867,4869,4875,4881,4886,32768,10940,114,111,110,59,32768,352,100,105,108,59,32768,350,114,99,59,32768,348,59,32768,1057,114,59,32896,55349,56598,111,114,116,1024,68,76,82,85,4906,4917,4928,4940,111,119,110,65,114,114,111,119,59,32768,8595,101,102,116,65,114,114,111,119,59,32768,8592,105,103,104,116,65,114,114,111,119,59,32768,8594,112,65,114,114,111,119,59,32768,8593,103,109,97,59,32768,931,97,108,108,67,105,114,99,108,101,59,32768,8728,112,102,59,32896,55349,56650,1091,4979,0,0,4983,116,59,32768,8730,97,114,101,1024,59,73,83,85,4994,4996,5010,5052,32768,9633,110,116,101,114,115,101,99,116,105,111,110,59,32768,8851,117,512,98,112,5016,5033,115,101,116,512,59,69,5024,5026,32768,8847,113,117,97,108,59,32768,8849,101,114,115,101,116,512,59,69,5043,5045,32768,8848,113,117,97,108,59,32768,8850,110,105,111,110,59,32768,8852,99,114,59,32896,55349,56494,97,114,59,32768,8902,1024,98,99,109,112,5079,5102,5155,5158,512,59,115,5084,5086,32768,8912,101,116,512,59,69,5093,5095,32768,8912,113,117,97,108,59,32768,8838,512,99,104,5107,5148,101,101,100,115,1024,59,69,83,84,5120,5122,5129,5141,32768,8827,113,117,97,108,59,32768,10928,108,97,110,116,69,113,117,97,108,59,32768,8829,105,108,100,101,59,32768,8831,84,104,97,116,59,32768,8715,59,32768,8721,768,59,101,115,5165,5167,5185,32768,8913,114,115,101,116,512,59,69,5176,5178,32768,8835,113,117,97,108,59,32768,8839,101,116,59,32768,8913,2816,72,82,83,97,99,102,104,105,111,114,115,5213,5221,5227,5241,5252,5274,5279,5323,5362,5368,5378,79,82,78,33024,222,59,32768,222,65,68,69,59,32768,8482,512,72,99,5232,5237,99,121,59,32768,1035,121,59,32768,1062,512,98,117,5246,5249,59,32768,9,59,32768,932,768,97,101,121,5259,5265,5271,114,111,110,59,32768,356,100,105,108,59,32768,354,59,32768,1058,114,59,32896,55349,56599,512,101,105,5284,5300,835,5289,0,5297,101,102,111,114,101,59,32768,8756,97,59,32768,920,512,99,110,5305,5315,107,83,112,97,99,101,59,32896,8287,8202,83,112,97,99,101,59,32768,8201,108,100,101,1024,59,69,70,84,5335,5337,5344,5355,32768,8764,113,117,97,108,59,32768,8771,117,108,108,69,113,117,97,108,59,32768,8773,105,108,100,101,59,32768,8776,112,102,59,32896,55349,56651,105,112,108,101,68,111,116,59,32768,8411,512,99,116,5383,5388,114,59,32896,55349,56495,114,111,107,59,32768,358,5426,5417,5444,5458,5473,0,5480,5485,0,0,0,0,0,5494,5500,5564,5579,0,5726,5732,5738,5745,512,99,114,5421,5429,117,116,101,33024,218,59,32768,218,114,512,59,111,5435,5437,32768,8607,99,105,114,59,32768,10569,114,820,5449,0,5453,121,59,32768,1038,118,101,59,32768,364,512,105,121,5462,5469,114,99,33024,219,59,32768,219,59,32768,1059,98,108,97,99,59,32768,368,114,59,32896,55349,56600,114,97,118,101,33024,217,59,32768,217,97,99,114,59,32768,362,512,100,105,5504,5548,101,114,512,66,80,5511,5535,512,97,114,5516,5520,114,59,32768,95,97,99,512,101,107,5527,5530,59,32768,9183,101,116,59,32768,9141,97,114,101,110,116,104,101,115,105,115,59,32768,9181,111,110,512,59,80,5555,5557,32768,8899,108,117,115,59,32768,8846,512,103,112,5568,5573,111,110,59,32768,370,102,59,32896,55349,56652,2048,65,68,69,84,97,100,112,115,5595,5624,5635,5648,5664,5671,5682,5712,114,114,111,119,768,59,66,68,5606,5608,5613,32768,8593,97,114,59,32768,10514,111,119,110,65,114,114,111,119,59,32768,8645,111,119,110,65,114,114,111,119,59,32768,8597,113,117,105,108,105,98,114,105,117,109,59,32768,10606,101,101,512,59,65,5655,5657,32768,8869,114,114,111,119,59,32768,8613,114,114,111,119,59,32768,8657,111,119,110,97,114,114,111,119,59,32768,8661,101,114,512,76,82,5689,5700,101,102,116,65,114,114,111,119,59,32768,8598,105,103,104,116,65,114,114,111,119,59,32768,8599,105,512,59,108,5718,5720,32768,978,111,110,59,32768,933,105,110,103,59,32768,366,99,114,59,32896,55349,56496,105,108,100,101,59,32768,360,109,108,33024,220,59,32768,220,2304,68,98,99,100,101,102,111,115,118,5770,5776,5781,5785,5798,5878,5883,5889,5895,97,115,104,59,32768,8875,97,114,59,32768,10987,121,59,32768,1042,97,115,104,512,59,108,5793,5795,32768,8873,59,32768,10982,512,101,114,5803,5806,59,32768,8897,768,98,116,121,5813,5818,5866,97,114,59,32768,8214,512,59,105,5823,5825,32768,8214,99,97,108,1024,66,76,83,84,5837,5842,5848,5859,97,114,59,32768,8739,105,110,101,59,32768,124,101,112,97,114,97,116,111,114,59,32768,10072,105,108,100,101,59,32768,8768,84,104,105,110,83,112,97,99,101,59,32768,8202,114,59,32896,55349,56601,112,102,59,32896,55349,56653,99,114,59,32896,55349,56497,100,97,115,104,59,32768,8874,1280,99,101,102,111,115,5913,5919,5925,5930,5936,105,114,99,59,32768,372,100,103,101,59,32768,8896,114,59,32896,55349,56602,112,102,59,32896,55349,56654,99,114,59,32896,55349,56498,1024,102,105,111,115,5951,5956,5959,5965,114,59,32896,55349,56603,59,32768,926,112,102,59,32896,55349,56655,99,114,59,32896,55349,56499,2304,65,73,85,97,99,102,111,115,117,5990,5995,6e3,6005,6014,6027,6032,6038,6044,99,121,59,32768,1071,99,121,59,32768,1031,99,121,59,32768,1070,99,117,116,101,33024,221,59,32768,221,512,105,121,6019,6024,114,99,59,32768,374,59,32768,1067,114,59,32896,55349,56604,112,102,59,32896,55349,56656,99,114,59,32896,55349,56500,109,108,59,32768,376,2048,72,97,99,100,101,102,111,115,6066,6071,6078,6092,6097,6119,6123,6128,99,121,59,32768,1046,99,117,116,101,59,32768,377,512,97,121,6083,6089,114,111,110,59,32768,381,59,32768,1047,111,116,59,32768,379,835,6102,0,6116,111,87,105,100,116,104,83,112,97,99,101,59,32768,8203,97,59,32768,918,114,59,32768,8488,112,102,59,32768,8484,99,114,59,32896,55349,56501,5938,6159,6168,6175,0,6214,6222,6233,0,0,0,0,6242,6267,6290,6429,6444,0,6495,6503,6531,6540,0,6547,99,117,116,101,33024,225,59,32768,225,114,101,118,101,59,32768,259,1536,59,69,100,105,117,121,6187,6189,6193,6196,6203,6210,32768,8766,59,32896,8766,819,59,32768,8767,114,99,33024,226,59,32768,226,116,101,33024,180,59,32768,180,59,32768,1072,108,105,103,33024,230,59,32768,230,512,59,114,6226,6228,32768,8289,59,32896,55349,56606,114,97,118,101,33024,224,59,32768,224,512,101,112,6246,6261,512,102,112,6251,6257,115,121,109,59,32768,8501,104,59,32768,8501,104,97,59,32768,945,512,97,112,6271,6284,512,99,108,6276,6280,114,59,32768,257,103,59,32768,10815,33024,38,59,32768,38,1077,6295,0,0,6326,1280,59,97,100,115,118,6305,6307,6312,6315,6322,32768,8743,110,100,59,32768,10837,59,32768,10844,108,111,112,101,59,32768,10840,59,32768,10842,1792,59,101,108,109,114,115,122,6340,6342,6345,6349,6391,6410,6422,32768,8736,59,32768,10660,101,59,32768,8736,115,100,512,59,97,6356,6358,32768,8737,2098,6368,6371,6374,6377,6380,6383,6386,6389,59,32768,10664,59,32768,10665,59,32768,10666,59,32768,10667,59,32768,10668,59,32768,10669,59,32768,10670,59,32768,10671,116,512,59,118,6397,6399,32768,8735,98,512,59,100,6405,6407,32768,8894,59,32768,10653,512,112,116,6415,6419,104,59,32768,8738,59,32768,197,97,114,114,59,32768,9084,512,103,112,6433,6438,111,110,59,32768,261,102,59,32896,55349,56658,1792,59,69,97,101,105,111,112,6458,6460,6463,6469,6472,6476,6480,32768,8776,59,32768,10864,99,105,114,59,32768,10863,59,32768,8778,100,59,32768,8779,115,59,32768,39,114,111,120,512,59,101,6488,6490,32768,8776,113,59,32768,8778,105,110,103,33024,229,59,32768,229,768,99,116,121,6509,6514,6517,114,59,32896,55349,56502,59,32768,42,109,112,512,59,101,6524,6526,32768,8776,113,59,32768,8781,105,108,100,101,33024,227,59,32768,227,109,108,33024,228,59,32768,228,512,99,105,6551,6559,111,110,105,110,116,59,32768,8755,110,116,59,32768,10769,4096,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,6597,6602,6673,6688,6701,6707,6768,6773,6891,6898,6999,7023,7309,7316,7334,7383,111,116,59,32768,10989,512,99,114,6607,6652,107,1024,99,101,112,115,6617,6623,6632,6639,111,110,103,59,32768,8780,112,115,105,108,111,110,59,32768,1014,114,105,109,101,59,32768,8245,105,109,512,59,101,6646,6648,32768,8765,113,59,32768,8909,583,6656,6661,101,101,59,32768,8893,101,100,512,59,103,6667,6669,32768,8965,101,59,32768,8965,114,107,512,59,116,6680,6682,32768,9141,98,114,107,59,32768,9142,512,111,121,6693,6698,110,103,59,32768,8780,59,32768,1073,113,117,111,59,32768,8222,1280,99,109,112,114,116,6718,6731,6738,6743,6749,97,117,115,512,59,101,6726,6728,32768,8757,59,32768,8757,112,116,121,118,59,32768,10672,115,105,59,32768,1014,110,111,117,59,32768,8492,768,97,104,119,6756,6759,6762,59,32768,946,59,32768,8502,101,101,110,59,32768,8812,114,59,32896,55349,56607,103,1792,99,111,115,116,117,118,119,6789,6809,6834,6850,6872,6879,6884,768,97,105,117,6796,6800,6805,112,59,32768,8898,114,99,59,32768,9711,112,59,32768,8899,768,100,112,116,6816,6821,6827,111,116,59,32768,10752,108,117,115,59,32768,10753,105,109,101,115,59,32768,10754,1090,6840,0,0,6846,99,117,112,59,32768,10758,97,114,59,32768,9733,114,105,97,110,103,108,101,512,100,117,6862,6868,111,119,110,59,32768,9661,112,59,32768,9651,112,108,117,115,59,32768,10756,101,101,59,32768,8897,101,100,103,101,59,32768,8896,97,114,111,119,59,32768,10509,768,97,107,111,6905,6976,6994,512,99,110,6910,6972,107,768,108,115,116,6918,6927,6935,111,122,101,110,103,101,59,32768,10731,113,117,97,114,101,59,32768,9642,114,105,97,110,103,108,101,1024,59,100,108,114,6951,6953,6959,6965,32768,9652,111,119,110,59,32768,9662,101,102,116,59,32768,9666,105,103,104,116,59,32768,9656,107,59,32768,9251,770,6981,0,6991,771,6985,0,6988,59,32768,9618,59,32768,9617,52,59,32768,9619,99,107,59,32768,9608,512,101,111,7004,7019,512,59,113,7009,7012,32896,61,8421,117,105,118,59,32896,8801,8421,116,59,32768,8976,1024,112,116,119,120,7032,7037,7049,7055,102,59,32896,55349,56659,512,59,116,7042,7044,32768,8869,111,109,59,32768,8869,116,105,101,59,32768,8904,3072,68,72,85,86,98,100,104,109,112,116,117,118,7080,7101,7126,7147,7182,7187,7208,7233,7240,7246,7253,7274,1024,76,82,108,114,7089,7092,7095,7098,59,32768,9559,59,32768,9556,59,32768,9558,59,32768,9555,1280,59,68,85,100,117,7112,7114,7117,7120,7123,32768,9552,59,32768,9574,59,32768,9577,59,32768,9572,59,32768,9575,1024,76,82,108,114,7135,7138,7141,7144,59,32768,9565,59,32768,9562,59,32768,9564,59,32768,9561,1792,59,72,76,82,104,108,114,7162,7164,7167,7170,7173,7176,7179,32768,9553,59,32768,9580,59,32768,9571,59,32768,9568,59,32768,9579,59,32768,9570,59,32768,9567,111,120,59,32768,10697,1024,76,82,108,114,7196,7199,7202,7205,59,32768,9557,59,32768,9554,59,32768,9488,59,32768,9484,1280,59,68,85,100,117,7219,7221,7224,7227,7230,32768,9472,59,32768,9573,59,32768,9576,59,32768,9516,59,32768,9524,105,110,117,115,59,32768,8863,108,117,115,59,32768,8862,105,109,101,115,59,32768,8864,1024,76,82,108,114,7262,7265,7268,7271,59,32768,9563,59,32768,9560,59,32768,9496,59,32768,9492,1792,59,72,76,82,104,108,114,7289,7291,7294,7297,7300,7303,7306,32768,9474,59,32768,9578,59,32768,9569,59,32768,9566,59,32768,9532,59,32768,9508,59,32768,9500,114,105,109,101,59,32768,8245,512,101,118,7321,7326,118,101,59,32768,728,98,97,114,33024,166,59,32768,166,1024,99,101,105,111,7343,7348,7353,7364,114,59,32896,55349,56503,109,105,59,32768,8271,109,512,59,101,7359,7361,32768,8765,59,32768,8909,108,768,59,98,104,7372,7374,7377,32768,92,59,32768,10693,115,117,98,59,32768,10184,573,7387,7399,108,512,59,101,7392,7394,32768,8226,116,59,32768,8226,112,768,59,69,101,7406,7408,7411,32768,8782,59,32768,10926,512,59,113,7416,7418,32768,8783,59,32768,8783,6450,7448,0,7523,7571,7576,7613,0,7618,7647,0,0,7764,0,0,7779,0,0,7899,7914,7949,7955,0,8158,0,8176,768,99,112,114,7454,7460,7509,117,116,101,59,32768,263,1536,59,97,98,99,100,115,7473,7475,7480,7487,7500,7505,32768,8745,110,100,59,32768,10820,114,99,117,112,59,32768,10825,512,97,117,7492,7496,112,59,32768,10827,112,59,32768,10823,111,116,59,32768,10816,59,32896,8745,65024,512,101,111,7514,7518,116,59,32768,8257,110,59,32768,711,1024,97,101,105,117,7531,7544,7552,7557,833,7536,0,7540,115,59,32768,10829,111,110,59,32768,269,100,105,108,33024,231,59,32768,231,114,99,59,32768,265,112,115,512,59,115,7564,7566,32768,10828,109,59,32768,10832,111,116,59,32768,267,768,100,109,110,7582,7589,7596,105,108,33024,184,59,32768,184,112,116,121,118,59,32768,10674,116,33280,162,59,101,7603,7605,32768,162,114,100,111,116,59,32768,183,114,59,32896,55349,56608,768,99,101,105,7624,7628,7643,121,59,32768,1095,99,107,512,59,109,7635,7637,32768,10003,97,114,107,59,32768,10003,59,32768,967,114,1792,59,69,99,101,102,109,115,7662,7664,7667,7742,7745,7752,7757,32768,9675,59,32768,10691,768,59,101,108,7674,7676,7680,32768,710,113,59,32768,8791,101,1074,7687,0,0,7709,114,114,111,119,512,108,114,7695,7701,101,102,116,59,32768,8634,105,103,104,116,59,32768,8635,1280,82,83,97,99,100,7719,7722,7725,7730,7736,59,32768,174,59,32768,9416,115,116,59,32768,8859,105,114,99,59,32768,8858,97,115,104,59,32768,8861,59,32768,8791,110,105,110,116,59,32768,10768,105,100,59,32768,10991,99,105,114,59,32768,10690,117,98,115,512,59,117,7771,7773,32768,9827,105,116,59,32768,9827,1341,7785,7804,7850,0,7871,111,110,512,59,101,7791,7793,32768,58,512,59,113,7798,7800,32768,8788,59,32768,8788,1086,7809,0,0,7820,97,512,59,116,7814,7816,32768,44,59,32768,64,768,59,102,108,7826,7828,7832,32768,8705,110,59,32768,8728,101,512,109,120,7838,7844,101,110,116,59,32768,8705,101,115,59,32768,8450,824,7854,0,7866,512,59,100,7858,7860,32768,8773,111,116,59,32768,10861,110,116,59,32768,8750,768,102,114,121,7877,7881,7886,59,32896,55349,56660,111,100,59,32768,8720,33280,169,59,115,7892,7894,32768,169,114,59,32768,8471,512,97,111,7903,7908,114,114,59,32768,8629,115,115,59,32768,10007,512,99,117,7918,7923,114,59,32896,55349,56504,512,98,112,7928,7938,512,59,101,7933,7935,32768,10959,59,32768,10961,512,59,101,7943,7945,32768,10960,59,32768,10962,100,111,116,59,32768,8943,1792,100,101,108,112,114,118,119,7969,7983,7996,8009,8057,8147,8152,97,114,114,512,108,114,7977,7980,59,32768,10552,59,32768,10549,1089,7989,0,0,7993,114,59,32768,8926,99,59,32768,8927,97,114,114,512,59,112,8004,8006,32768,8630,59,32768,10557,1536,59,98,99,100,111,115,8022,8024,8031,8044,8049,8053,32768,8746,114,99,97,112,59,32768,10824,512,97,117,8036,8040,112,59,32768,10822,112,59,32768,10826,111,116,59,32768,8845,114,59,32768,10821,59,32896,8746,65024,1024,97,108,114,118,8066,8078,8116,8123,114,114,512,59,109,8073,8075,32768,8631,59,32768,10556,121,768,101,118,119,8086,8104,8109,113,1089,8093,0,0,8099,114,101,99,59,32768,8926,117,99,99,59,32768,8927,101,101,59,32768,8910,101,100,103,101,59,32768,8911,101,110,33024,164,59,32768,164,101,97,114,114,111,119,512,108,114,8134,8140,101,102,116,59,32768,8630,105,103,104,116,59,32768,8631,101,101,59,32768,8910,101,100,59,32768,8911,512,99,105,8162,8170,111,110,105,110,116,59,32768,8754,110,116,59,32768,8753,108,99,116,121,59,32768,9005,4864,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8221,8226,8231,8267,8282,8296,8327,8351,8366,8379,8466,8471,8487,8621,8647,8676,8697,8712,8720,114,114,59,32768,8659,97,114,59,32768,10597,1024,103,108,114,115,8240,8246,8252,8256,103,101,114,59,32768,8224,101,116,104,59,32768,8504,114,59,32768,8595,104,512,59,118,8262,8264,32768,8208,59,32768,8867,572,8271,8278,97,114,111,119,59,32768,10511,97,99,59,32768,733,512,97,121,8287,8293,114,111,110,59,32768,271,59,32768,1076,768,59,97,111,8303,8305,8320,32768,8518,512,103,114,8310,8316,103,101,114,59,32768,8225,114,59,32768,8650,116,115,101,113,59,32768,10871,768,103,108,109,8334,8339,8344,33024,176,59,32768,176,116,97,59,32768,948,112,116,121,118,59,32768,10673,512,105,114,8356,8362,115,104,116,59,32768,10623,59,32896,55349,56609,97,114,512,108,114,8373,8376,59,32768,8643,59,32768,8642,1280,97,101,103,115,118,8390,8418,8421,8428,8433,109,768,59,111,115,8398,8400,8415,32768,8900,110,100,512,59,115,8407,8409,32768,8900,117,105,116,59,32768,9830,59,32768,9830,59,32768,168,97,109,109,97,59,32768,989,105,110,59,32768,8946,768,59,105,111,8440,8442,8461,32768,247,100,101,33280,247,59,111,8450,8452,32768,247,110,116,105,109,101,115,59,32768,8903,110,120,59,32768,8903,99,121,59,32768,1106,99,1088,8478,0,0,8483,114,110,59,32768,8990,111,112,59,32768,8973,1280,108,112,116,117,119,8498,8504,8509,8556,8570,108,97,114,59,32768,36,102,59,32896,55349,56661,1280,59,101,109,112,115,8520,8522,8535,8542,8548,32768,729,113,512,59,100,8528,8530,32768,8784,111,116,59,32768,8785,105,110,117,115,59,32768,8760,108,117,115,59,32768,8724,113,117,97,114,101,59,32768,8865,98,108,101,98,97,114,119,101,100,103,101,59,32768,8966,110,768,97,100,104,8578,8585,8597,114,114,111,119,59,32768,8595,111,119,110,97,114,114,111,119,115,59,32768,8650,97,114,112,111,111,110,512,108,114,8608,8614,101,102,116,59,32768,8643,105,103,104,116,59,32768,8642,563,8625,8633,107,97,114,111,119,59,32768,10512,1088,8638,0,0,8643,114,110,59,32768,8991,111,112,59,32768,8972,768,99,111,116,8654,8666,8670,512,114,121,8659,8663,59,32896,55349,56505,59,32768,1109,108,59,32768,10742,114,111,107,59,32768,273,512,100,114,8681,8686,111,116,59,32768,8945,105,512,59,102,8692,8694,32768,9663,59,32768,9662,512,97,104,8702,8707,114,114,59,32768,8693,97,114,59,32768,10607,97,110,103,108,101,59,32768,10662,512,99,105,8725,8729,121,59,32768,1119,103,114,97,114,114,59,32768,10239,4608,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,8774,8788,8807,8844,8849,8852,8866,8895,8929,8977,8989,9004,9046,9136,9151,9171,9184,9199,512,68,111,8779,8784,111,116,59,32768,10871,116,59,32768,8785,512,99,115,8793,8801,117,116,101,33024,233,59,32768,233,116,101,114,59,32768,10862,1024,97,105,111,121,8816,8822,8835,8841,114,111,110,59,32768,283,114,512,59,99,8828,8830,32768,8790,33024,234,59,32768,234,108,111,110,59,32768,8789,59,32768,1101,111,116,59,32768,279,59,32768,8519,512,68,114,8857,8862,111,116,59,32768,8786,59,32896,55349,56610,768,59,114,115,8873,8875,8883,32768,10906,97,118,101,33024,232,59,32768,232,512,59,100,8888,8890,32768,10902,111,116,59,32768,10904,1024,59,105,108,115,8904,8906,8914,8917,32768,10905,110,116,101,114,115,59,32768,9191,59,32768,8467,512,59,100,8922,8924,32768,10901,111,116,59,32768,10903,768,97,112,115,8936,8941,8960,99,114,59,32768,275,116,121,768,59,115,118,8950,8952,8957,32768,8709,101,116,59,32768,8709,59,32768,8709,112,512,49,59,8966,8975,516,8970,8973,59,32768,8196,59,32768,8197,32768,8195,512,103,115,8982,8985,59,32768,331,112,59,32768,8194,512,103,112,8994,8999,111,110,59,32768,281,102,59,32896,55349,56662,768,97,108,115,9011,9023,9028,114,512,59,115,9017,9019,32768,8917,108,59,32768,10723,117,115,59,32768,10865,105,768,59,108,118,9036,9038,9043,32768,949,111,110,59,32768,949,59,32768,1013,1024,99,115,117,118,9055,9071,9099,9128,512,105,111,9060,9065,114,99,59,32768,8790,108,111,110,59,32768,8789,1082,9077,0,0,9081,109,59,32768,8770,97,110,116,512,103,108,9088,9093,116,114,59,32768,10902,101,115,115,59,32768,10901,768,97,101,105,9106,9111,9116,108,115,59,32768,61,115,116,59,32768,8799,118,512,59,68,9122,9124,32768,8801,68,59,32768,10872,112,97,114,115,108,59,32768,10725,512,68,97,9141,9146,111,116,59,32768,8787,114,114,59,32768,10609,768,99,100,105,9158,9162,9167,114,59,32768,8495,111,116,59,32768,8784,109,59,32768,8770,512,97,104,9176,9179,59,32768,951,33024,240,59,32768,240,512,109,114,9189,9195,108,33024,235,59,32768,235,111,59,32768,8364,768,99,105,112,9206,9210,9215,108,59,32768,33,115,116,59,32768,8707,512,101,111,9220,9230,99,116,97,116,105,111,110,59,32768,8496,110,101,110,116,105,97,108,101,59,32768,8519,4914,9262,0,9276,0,9280,9287,0,0,9318,9324,0,9331,0,9352,9357,9386,0,9395,9497,108,108,105,110,103,100,111,116,115,101,113,59,32768,8786,121,59,32768,1092,109,97,108,101,59,32768,9792,768,105,108,114,9293,9299,9313,108,105,103,59,32768,64259,1082,9305,0,0,9309,103,59,32768,64256,105,103,59,32768,64260,59,32896,55349,56611,108,105,103,59,32768,64257,108,105,103,59,32896,102,106,768,97,108,116,9337,9341,9346,116,59,32768,9837,105,103,59,32768,64258,110,115,59,32768,9649,111,102,59,32768,402,833,9361,0,9366,102,59,32896,55349,56663,512,97,107,9370,9375,108,108,59,32768,8704,512,59,118,9380,9382,32768,8916,59,32768,10969,97,114,116,105,110,116,59,32768,10765,512,97,111,9399,9491,512,99,115,9404,9487,1794,9413,9443,9453,9470,9474,0,9484,1795,9421,9426,9429,9434,9437,0,9440,33024,189,59,32768,189,59,32768,8531,33024,188,59,32768,188,59,32768,8533,59,32768,8537,59,32768,8539,772,9447,0,9450,59,32768,8532,59,32768,8534,1285,9459,9464,0,0,9467,33024,190,59,32768,190,59,32768,8535,59,32768,8540,53,59,32768,8536,775,9478,0,9481,59,32768,8538,59,32768,8541,56,59,32768,8542,108,59,32768,8260,119,110,59,32768,8994,99,114,59,32896,55349,56507,4352,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,9537,9547,9575,9582,9595,9600,9679,9684,9694,9700,9705,9725,9773,9779,9785,9810,9917,512,59,108,9542,9544,32768,8807,59,32768,10892,768,99,109,112,9554,9560,9572,117,116,101,59,32768,501,109,97,512,59,100,9567,9569,32768,947,59,32768,989,59,32768,10886,114,101,118,101,59,32768,287,512,105,121,9587,9592,114,99,59,32768,285,59,32768,1075,111,116,59,32768,289,1024,59,108,113,115,9609,9611,9614,9633,32768,8805,59,32768,8923,768,59,113,115,9621,9623,9626,32768,8805,59,32768,8807,108,97,110,116,59,32768,10878,1024,59,99,100,108,9642,9644,9648,9667,32768,10878,99,59,32768,10921,111,116,512,59,111,9655,9657,32768,10880,512,59,108,9662,9664,32768,10882,59,32768,10884,512,59,101,9672,9675,32896,8923,65024,115,59,32768,10900,114,59,32896,55349,56612,512,59,103,9689,9691,32768,8811,59,32768,8921,109,101,108,59,32768,8503,99,121,59,32768,1107,1024,59,69,97,106,9714,9716,9719,9722,32768,8823,59,32768,10898,59,32768,10917,59,32768,10916,1024,69,97,101,115,9734,9737,9751,9768,59,32768,8809,112,512,59,112,9743,9745,32768,10890,114,111,120,59,32768,10890,512,59,113,9756,9758,32768,10888,512,59,113,9763,9765,32768,10888,59,32768,8809,105,109,59,32768,8935,112,102,59,32896,55349,56664,97,118,101,59,32768,96,512,99,105,9790,9794,114,59,32768,8458,109,768,59,101,108,9802,9804,9807,32768,8819,59,32768,10894,59,32768,10896,34304,62,59,99,100,108,113,114,9824,9826,9838,9843,9849,9856,32768,62,512,99,105,9831,9834,59,32768,10919,114,59,32768,10874,111,116,59,32768,8919,80,97,114,59,32768,10645,117,101,115,116,59,32768,10876,1280,97,100,101,108,115,9867,9882,9887,9906,9912,833,9872,0,9879,112,114,111,120,59,32768,10886,114,59,32768,10616,111,116,59,32768,8919,113,512,108,113,9893,9899,101,115,115,59,32768,8923,108,101,115,115,59,32768,10892,101,115,115,59,32768,8823,105,109,59,32768,8819,512,101,110,9922,9932,114,116,110,101,113,113,59,32896,8809,65024,69,59,32896,8809,65024,2560,65,97,98,99,101,102,107,111,115,121,9958,9963,10015,10020,10026,10060,10065,10085,10147,10171,114,114,59,32768,8660,1024,105,108,109,114,9972,9978,9982,9988,114,115,112,59,32768,8202,102,59,32768,189,105,108,116,59,32768,8459,512,100,114,9993,9998,99,121,59,32768,1098,768,59,99,119,10005,10007,10012,32768,8596,105,114,59,32768,10568,59,32768,8621,97,114,59,32768,8463,105,114,99,59,32768,293,768,97,108,114,10033,10048,10054,114,116,115,512,59,117,10041,10043,32768,9829,105,116,59,32768,9829,108,105,112,59,32768,8230,99,111,110,59,32768,8889,114,59,32896,55349,56613,115,512,101,119,10071,10078,97,114,111,119,59,32768,10533,97,114,111,119,59,32768,10534,1280,97,109,111,112,114,10096,10101,10107,10136,10141,114,114,59,32768,8703,116,104,116,59,32768,8763,107,512,108,114,10113,10124,101,102,116,97,114,114,111,119,59,32768,8617,105,103,104,116,97,114,114,111,119,59,32768,8618,102,59,32896,55349,56665,98,97,114,59,32768,8213,768,99,108,116,10154,10159,10165,114,59,32896,55349,56509,97,115,104,59,32768,8463,114,111,107,59,32768,295,512,98,112,10176,10182,117,108,108,59,32768,8259,104,101,110,59,32768,8208,5426,10211,0,10220,0,10239,10255,10267,0,10276,10312,0,0,10318,10371,10458,10485,10491,0,10500,10545,10558,99,117,116,101,33024,237,59,32768,237,768,59,105,121,10226,10228,10235,32768,8291,114,99,33024,238,59,32768,238,59,32768,1080,512,99,120,10243,10247,121,59,32768,1077,99,108,33024,161,59,32768,161,512,102,114,10259,10262,59,32768,8660,59,32896,55349,56614,114,97,118,101,33024,236,59,32768,236,1024,59,105,110,111,10284,10286,10300,10306,32768,8520,512,105,110,10291,10296,110,116,59,32768,10764,116,59,32768,8749,102,105,110,59,32768,10716,116,97,59,32768,8489,108,105,103,59,32768,307,768,97,111,112,10324,10361,10365,768,99,103,116,10331,10335,10357,114,59,32768,299,768,101,108,112,10342,10345,10351,59,32768,8465,105,110,101,59,32768,8464,97,114,116,59,32768,8465,104,59,32768,305,102,59,32768,8887,101,100,59,32768,437,1280,59,99,102,111,116,10381,10383,10389,10403,10409,32768,8712,97,114,101,59,32768,8453,105,110,512,59,116,10396,10398,32768,8734,105,101,59,32768,10717,100,111,116,59,32768,305,1280,59,99,101,108,112,10420,10422,10427,10444,10451,32768,8747,97,108,59,32768,8890,512,103,114,10432,10438,101,114,115,59,32768,8484,99,97,108,59,32768,8890,97,114,104,107,59,32768,10775,114,111,100,59,32768,10812,1024,99,103,112,116,10466,10470,10475,10480,121,59,32768,1105,111,110,59,32768,303,102,59,32896,55349,56666,97,59,32768,953,114,111,100,59,32768,10812,117,101,115,116,33024,191,59,32768,191,512,99,105,10504,10509,114,59,32896,55349,56510,110,1280,59,69,100,115,118,10521,10523,10526,10531,10541,32768,8712,59,32768,8953,111,116,59,32768,8949,512,59,118,10536,10538,32768,8948,59,32768,8947,59,32768,8712,512,59,105,10549,10551,32768,8290,108,100,101,59,32768,297,828,10562,0,10567,99,121,59,32768,1110,108,33024,239,59,32768,239,1536,99,102,109,111,115,117,10585,10598,10603,10609,10615,10630,512,105,121,10590,10595,114,99,59,32768,309,59,32768,1081,114,59,32896,55349,56615,97,116,104,59,32768,567,112,102,59,32896,55349,56667,820,10620,0,10625,114,59,32896,55349,56511,114,99,121,59,32768,1112,107,99,121,59,32768,1108,2048,97,99,102,103,104,106,111,115,10653,10666,10680,10685,10692,10697,10702,10708,112,112,97,512,59,118,10661,10663,32768,954,59,32768,1008,512,101,121,10671,10677,100,105,108,59,32768,311,59,32768,1082,114,59,32896,55349,56616,114,101,101,110,59,32768,312,99,121,59,32768,1093,99,121,59,32768,1116,112,102,59,32896,55349,56668,99,114,59,32896,55349,56512,5888,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,10761,10783,10789,10799,10804,10957,11011,11047,11094,11349,11372,11382,11409,11414,11451,11478,11526,11698,11711,11755,11823,11910,11929,768,97,114,116,10768,10773,10777,114,114,59,32768,8666,114,59,32768,8656,97,105,108,59,32768,10523,97,114,114,59,32768,10510,512,59,103,10794,10796,32768,8806,59,32768,10891,97,114,59,32768,10594,4660,10824,0,10830,0,10838,0,0,0,0,0,10844,10850,0,10867,10870,10877,0,10933,117,116,101,59,32768,314,109,112,116,121,118,59,32768,10676,114,97,110,59,32768,8466,98,100,97,59,32768,955,103,768,59,100,108,10857,10859,10862,32768,10216,59,32768,10641,101,59,32768,10216,59,32768,10885,117,111,33024,171,59,32768,171,114,2048,59,98,102,104,108,112,115,116,10894,10896,10907,10911,10915,10919,10923,10928,32768,8592,512,59,102,10901,10903,32768,8676,115,59,32768,10527,115,59,32768,10525,107,59,32768,8617,112,59,32768,8619,108,59,32768,10553,105,109,59,32768,10611,108,59,32768,8610,768,59,97,101,10939,10941,10946,32768,10923,105,108,59,32768,10521,512,59,115,10951,10953,32768,10925,59,32896,10925,65024,768,97,98,114,10964,10969,10974,114,114,59,32768,10508,114,107,59,32768,10098,512,97,107,10979,10991,99,512,101,107,10985,10988,59,32768,123,59,32768,91,512,101,115,10996,10999,59,32768,10635,108,512,100,117,11005,11008,59,32768,10639,59,32768,10637,1024,97,101,117,121,11020,11026,11040,11044,114,111,110,59,32768,318,512,100,105,11031,11036,105,108,59,32768,316,108,59,32768,8968,98,59,32768,123,59,32768,1083,1024,99,113,114,115,11056,11060,11072,11090,97,59,32768,10550,117,111,512,59,114,11067,11069,32768,8220,59,32768,8222,512,100,117,11077,11083,104,97,114,59,32768,10599,115,104,97,114,59,32768,10571,104,59,32768,8626,1280,59,102,103,113,115,11105,11107,11228,11231,11250,32768,8804,116,1280,97,104,108,114,116,11119,11136,11157,11169,11216,114,114,111,119,512,59,116,11128,11130,32768,8592,97,105,108,59,32768,8610,97,114,112,111,111,110,512,100,117,11147,11153,111,119,110,59,32768,8637,112,59,32768,8636,101,102,116,97,114,114,111,119,115,59,32768,8647,105,103,104,116,768,97,104,115,11180,11194,11204,114,114,111,119,512,59,115,11189,11191,32768,8596,59,32768,8646,97,114,112,111,111,110,115,59,32768,8651,113,117,105,103,97,114,114,111,119,59,32768,8621,104,114,101,101,116,105,109,101,115,59,32768,8907,59,32768,8922,768,59,113,115,11238,11240,11243,32768,8804,59,32768,8806,108,97,110,116,59,32768,10877,1280,59,99,100,103,115,11261,11263,11267,11286,11298,32768,10877,99,59,32768,10920,111,116,512,59,111,11274,11276,32768,10879,512,59,114,11281,11283,32768,10881,59,32768,10883,512,59,101,11291,11294,32896,8922,65024,115,59,32768,10899,1280,97,100,101,103,115,11309,11317,11322,11339,11344,112,112,114,111,120,59,32768,10885,111,116,59,32768,8918,113,512,103,113,11328,11333,116,114,59,32768,8922,103,116,114,59,32768,10891,116,114,59,32768,8822,105,109,59,32768,8818,768,105,108,114,11356,11362,11368,115,104,116,59,32768,10620,111,111,114,59,32768,8970,59,32896,55349,56617,512,59,69,11377,11379,32768,8822,59,32768,10897,562,11386,11405,114,512,100,117,11391,11394,59,32768,8637,512,59,108,11399,11401,32768,8636,59,32768,10602,108,107,59,32768,9604,99,121,59,32768,1113,1280,59,97,99,104,116,11425,11427,11432,11440,11446,32768,8810,114,114,59,32768,8647,111,114,110,101,114,59,32768,8990,97,114,100,59,32768,10603,114,105,59,32768,9722,512,105,111,11456,11462,100,111,116,59,32768,320,117,115,116,512,59,97,11470,11472,32768,9136,99,104,101,59,32768,9136,1024,69,97,101,115,11487,11490,11504,11521,59,32768,8808,112,512,59,112,11496,11498,32768,10889,114,111,120,59,32768,10889,512,59,113,11509,11511,32768,10887,512,59,113,11516,11518,32768,10887,59,32768,8808,105,109,59,32768,8934,2048,97,98,110,111,112,116,119,122,11543,11556,11561,11616,11640,11660,11667,11680,512,110,114,11548,11552,103,59,32768,10220,114,59,32768,8701,114,107,59,32768,10214,103,768,108,109,114,11569,11596,11604,101,102,116,512,97,114,11577,11584,114,114,111,119,59,32768,10229,105,103,104,116,97,114,114,111,119,59,32768,10231,97,112,115,116,111,59,32768,10236,105,103,104,116,97,114,114,111,119,59,32768,10230,112,97,114,114,111,119,512,108,114,11627,11633,101,102,116,59,32768,8619,105,103,104,116,59,32768,8620,768,97,102,108,11647,11651,11655,114,59,32768,10629,59,32896,55349,56669,117,115,59,32768,10797,105,109,101,115,59,32768,10804,562,11671,11676,115,116,59,32768,8727,97,114,59,32768,95,768,59,101,102,11687,11689,11695,32768,9674,110,103,101,59,32768,9674,59,32768,10731,97,114,512,59,108,11705,11707,32768,40,116,59,32768,10643,1280,97,99,104,109,116,11722,11727,11735,11747,11750,114,114,59,32768,8646,111,114,110,101,114,59,32768,8991,97,114,512,59,100,11742,11744,32768,8651,59,32768,10605,59,32768,8206,114,105,59,32768,8895,1536,97,99,104,105,113,116,11768,11774,11779,11782,11798,11817,113,117,111,59,32768,8249,114,59,32896,55349,56513,59,32768,8624,109,768,59,101,103,11790,11792,11795,32768,8818,59,32768,10893,59,32768,10895,512,98,117,11803,11806,59,32768,91,111,512,59,114,11812,11814,32768,8216,59,32768,8218,114,111,107,59,32768,322,34816,60,59,99,100,104,105,108,113,114,11841,11843,11855,11860,11866,11872,11878,11885,32768,60,512,99,105,11848,11851,59,32768,10918,114,59,32768,10873,111,116,59,32768,8918,114,101,101,59,32768,8907,109,101,115,59,32768,8905,97,114,114,59,32768,10614,117,101,115,116,59,32768,10875,512,80,105,11890,11895,97,114,59,32768,10646,768,59,101,102,11902,11904,11907,32768,9667,59,32768,8884,59,32768,9666,114,512,100,117,11916,11923,115,104,97,114,59,32768,10570,104,97,114,59,32768,10598,512,101,110,11934,11944,114,116,110,101,113,113,59,32896,8808,65024,69,59,32896,8808,65024,3584,68,97,99,100,101,102,104,105,108,110,111,112,115,117,11978,11984,12061,12075,12081,12095,12100,12104,12170,12181,12188,12204,12207,12223,68,111,116,59,32768,8762,1024,99,108,112,114,11993,11999,12019,12055,114,33024,175,59,32768,175,512,101,116,12004,12007,59,32768,9794,512,59,101,12012,12014,32768,10016,115,101,59,32768,10016,512,59,115,12024,12026,32768,8614,116,111,1024,59,100,108,117,12037,12039,12045,12051,32768,8614,111,119,110,59,32768,8615,101,102,116,59,32768,8612,112,59,32768,8613,107,101,114,59,32768,9646,512,111,121,12066,12072,109,109,97,59,32768,10793,59,32768,1084,97,115,104,59,32768,8212,97,115,117,114,101,100,97,110,103,108,101,59,32768,8737,114,59,32896,55349,56618,111,59,32768,8487,768,99,100,110,12111,12118,12146,114,111,33024,181,59,32768,181,1024,59,97,99,100,12127,12129,12134,12139,32768,8739,115,116,59,32768,42,105,114,59,32768,10992,111,116,33024,183,59,32768,183,117,115,768,59,98,100,12155,12157,12160,32768,8722,59,32768,8863,512,59,117,12165,12167,32768,8760,59,32768,10794,564,12174,12178,112,59,32768,10971,114,59,32768,8230,112,108,117,115,59,32768,8723,512,100,112,12193,12199,101,108,115,59,32768,8871,102,59,32896,55349,56670,59,32768,8723,512,99,116,12212,12217,114,59,32896,55349,56514,112,111,115,59,32768,8766,768,59,108,109,12230,12232,12240,32768,956,116,105,109,97,112,59,32768,8888,97,112,59,32768,8888,6144,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,12294,12315,12364,12376,12393,12472,12496,12547,12553,12636,12641,12703,12725,12747,12752,12876,12881,12957,13033,13089,13294,13359,13384,13499,512,103,116,12299,12303,59,32896,8921,824,512,59,118,12308,12311,32896,8811,8402,59,32896,8811,824,768,101,108,116,12322,12348,12352,102,116,512,97,114,12329,12336,114,114,111,119,59,32768,8653,105,103,104,116,97,114,114,111,119,59,32768,8654,59,32896,8920,824,512,59,118,12357,12360,32896,8810,8402,59,32896,8810,824,105,103,104,116,97,114,114,111,119,59,32768,8655,512,68,100,12381,12387,97,115,104,59,32768,8879,97,115,104,59,32768,8878,1280,98,99,110,112,116,12404,12409,12415,12420,12452,108,97,59,32768,8711,117,116,101,59,32768,324,103,59,32896,8736,8402,1280,59,69,105,111,112,12431,12433,12437,12442,12446,32768,8777,59,32896,10864,824,100,59,32896,8779,824,115,59,32768,329,114,111,120,59,32768,8777,117,114,512,59,97,12459,12461,32768,9838,108,512,59,115,12467,12469,32768,9838,59,32768,8469,836,12477,0,12483,112,33024,160,59,32768,160,109,112,512,59,101,12489,12492,32896,8782,824,59,32896,8783,824,1280,97,101,111,117,121,12507,12519,12525,12540,12544,833,12512,0,12515,59,32768,10819,111,110,59,32768,328,100,105,108,59,32768,326,110,103,512,59,100,12532,12534,32768,8775,111,116,59,32896,10861,824,112,59,32768,10818,59,32768,1085,97,115,104,59,32768,8211,1792,59,65,97,100,113,115,120,12568,12570,12575,12596,12602,12608,12623,32768,8800,114,114,59,32768,8663,114,512,104,114,12581,12585,107,59,32768,10532,512,59,111,12590,12592,32768,8599,119,59,32768,8599,111,116,59,32896,8784,824,117,105,118,59,32768,8802,512,101,105,12613,12618,97,114,59,32768,10536,109,59,32896,8770,824,105,115,116,512,59,115,12631,12633,32768,8708,59,32768,8708,114,59,32896,55349,56619,1024,69,101,115,116,12650,12654,12688,12693,59,32896,8807,824,768,59,113,115,12661,12663,12684,32768,8817,768,59,113,115,12670,12672,12676,32768,8817,59,32896,8807,824,108,97,110,116,59,32896,10878,824,59,32896,10878,824,105,109,59,32768,8821,512,59,114,12698,12700,32768,8815,59,32768,8815,768,65,97,112,12710,12715,12720,114,114,59,32768,8654,114,114,59,32768,8622,97,114,59,32768,10994,768,59,115,118,12732,12734,12744,32768,8715,512,59,100,12739,12741,32768,8956,59,32768,8954,59,32768,8715,99,121,59,32768,1114,1792,65,69,97,100,101,115,116,12767,12772,12776,12781,12785,12853,12858,114,114,59,32768,8653,59,32896,8806,824,114,114,59,32768,8602,114,59,32768,8229,1024,59,102,113,115,12794,12796,12821,12842,32768,8816,116,512,97,114,12802,12809,114,114,111,119,59,32768,8602,105,103,104,116,97,114,114,111,119,59,32768,8622,768,59,113,115,12828,12830,12834,32768,8816,59,32896,8806,824,108,97,110,116,59,32896,10877,824,512,59,115,12847,12850,32896,10877,824,59,32768,8814,105,109,59,32768,8820,512,59,114,12863,12865,32768,8814,105,512,59,101,12871,12873,32768,8938,59,32768,8940,105,100,59,32768,8740,512,112,116,12886,12891,102,59,32896,55349,56671,33536,172,59,105,110,12899,12901,12936,32768,172,110,1024,59,69,100,118,12911,12913,12917,12923,32768,8713,59,32896,8953,824,111,116,59,32896,8949,824,818,12928,12931,12934,59,32768,8713,59,32768,8951,59,32768,8950,105,512,59,118,12942,12944,32768,8716,818,12949,12952,12955,59,32768,8716,59,32768,8958,59,32768,8957,768,97,111,114,12964,12992,12999,114,1024,59,97,115,116,12974,12976,12983,12988,32768,8742,108,108,101,108,59,32768,8742,108,59,32896,11005,8421,59,32896,8706,824,108,105,110,116,59,32768,10772,768,59,99,101,13006,13008,13013,32768,8832,117,101,59,32768,8928,512,59,99,13018,13021,32896,10927,824,512,59,101,13026,13028,32768,8832,113,59,32896,10927,824,1024,65,97,105,116,13042,13047,13066,13077,114,114,59,32768,8655,114,114,768,59,99,119,13056,13058,13062,32768,8603,59,32896,10547,824,59,32896,8605,824,103,104,116,97,114,114,111,119,59,32768,8603,114,105,512,59,101,13084,13086,32768,8939,59,32768,8941,1792,99,104,105,109,112,113,117,13104,13128,13151,13169,13174,13179,13194,1024,59,99,101,114,13113,13115,13120,13124,32768,8833,117,101,59,32768,8929,59,32896,10928,824,59,32896,55349,56515,111,114,116,1086,13137,0,0,13142,105,100,59,32768,8740,97,114,97,108,108,101,108,59,32768,8742,109,512,59,101,13157,13159,32768,8769,512,59,113,13164,13166,32768,8772,59,32768,8772,105,100,59,32768,8740,97,114,59,32768,8742,115,117,512,98,112,13186,13190,101,59,32768,8930,101,59,32768,8931,768,98,99,112,13201,13241,13254,1024,59,69,101,115,13210,13212,13216,13219,32768,8836,59,32896,10949,824,59,32768,8840,101,116,512,59,101,13226,13229,32896,8834,8402,113,512,59,113,13235,13237,32768,8840,59,32896,10949,824,99,512,59,101,13247,13249,32768,8833,113,59,32896,10928,824,1024,59,69,101,115,13263,13265,13269,13272,32768,8837,59,32896,10950,824,59,32768,8841,101,116,512,59,101,13279,13282,32896,8835,8402,113,512,59,113,13288,13290,32768,8841,59,32896,10950,824,1024,103,105,108,114,13303,13307,13315,13319,108,59,32768,8825,108,100,101,33024,241,59,32768,241,103,59,32768,8824,105,97,110,103,108,101,512,108,114,13330,13344,101,102,116,512,59,101,13338,13340,32768,8938,113,59,32768,8940,105,103,104,116,512,59,101,13353,13355,32768,8939,113,59,32768,8941,512,59,109,13364,13366,32768,957,768,59,101,115,13373,13375,13380,32768,35,114,111,59,32768,8470,112,59,32768,8199,2304,68,72,97,100,103,105,108,114,115,13403,13409,13415,13420,13426,13439,13446,13476,13493,97,115,104,59,32768,8877,97,114,114,59,32768,10500,112,59,32896,8781,8402,97,115,104,59,32768,8876,512,101,116,13431,13435,59,32896,8805,8402,59,32896,62,8402,110,102,105,110,59,32768,10718,768,65,101,116,13453,13458,13462,114,114,59,32768,10498,59,32896,8804,8402,512,59,114,13467,13470,32896,60,8402,105,101,59,32896,8884,8402,512,65,116,13481,13486,114,114,59,32768,10499,114,105,101,59,32896,8885,8402,105,109,59,32896,8764,8402,768,65,97,110,13506,13511,13532,114,114,59,32768,8662,114,512,104,114,13517,13521,107,59,32768,10531,512,59,111,13526,13528,32768,8598,119,59,32768,8598,101,97,114,59,32768,10535,9252,13576,0,0,0,0,0,0,0,0,0,0,0,0,0,13579,0,13596,13617,13653,13659,13673,13695,13708,0,0,13713,13750,0,13788,13794,0,13815,13890,13913,13937,13944,59,32768,9416,512,99,115,13583,13591,117,116,101,33024,243,59,32768,243,116,59,32768,8859,512,105,121,13600,13613,114,512,59,99,13606,13608,32768,8858,33024,244,59,32768,244,59,32768,1086,1280,97,98,105,111,115,13627,13632,13638,13642,13646,115,104,59,32768,8861,108,97,99,59,32768,337,118,59,32768,10808,116,59,32768,8857,111,108,100,59,32768,10684,108,105,103,59,32768,339,512,99,114,13663,13668,105,114,59,32768,10687,59,32896,55349,56620,1600,13680,0,0,13684,0,13692,110,59,32768,731,97,118,101,33024,242,59,32768,242,59,32768,10689,512,98,109,13699,13704,97,114,59,32768,10677,59,32768,937,110,116,59,32768,8750,1024,97,99,105,116,13721,13726,13741,13746,114,114,59,32768,8634,512,105,114,13731,13735,114,59,32768,10686,111,115,115,59,32768,10683,110,101,59,32768,8254,59,32768,10688,768,97,101,105,13756,13761,13766,99,114,59,32768,333,103,97,59,32768,969,768,99,100,110,13773,13779,13782,114,111,110,59,32768,959,59,32768,10678,117,115,59,32768,8854,112,102,59,32896,55349,56672,768,97,101,108,13800,13804,13809,114,59,32768,10679,114,112,59,32768,10681,117,115,59,32768,8853,1792,59,97,100,105,111,115,118,13829,13831,13836,13869,13875,13879,13886,32768,8744,114,114,59,32768,8635,1024,59,101,102,109,13845,13847,13859,13864,32768,10845,114,512,59,111,13853,13855,32768,8500,102,59,32768,8500,33024,170,59,32768,170,33024,186,59,32768,186,103,111,102,59,32768,8886,114,59,32768,10838,108,111,112,101,59,32768,10839,59,32768,10843,768,99,108,111,13896,13900,13908,114,59,32768,8500,97,115,104,33024,248,59,32768,248,108,59,32768,8856,105,573,13917,13924,100,101,33024,245,59,32768,245,101,115,512,59,97,13930,13932,32768,8855,115,59,32768,10806,109,108,33024,246,59,32768,246,98,97,114,59,32768,9021,5426,13972,0,14013,0,14017,14053,0,14058,14086,0,0,14107,14199,0,14202,0,0,14229,14425,0,14438,114,1024,59,97,115,116,13981,13983,13997,14009,32768,8741,33280,182,59,108,13989,13991,32768,182,108,101,108,59,32768,8741,1082,14003,0,0,14007,109,59,32768,10995,59,32768,11005,59,32768,8706,121,59,32768,1087,114,1280,99,105,109,112,116,14028,14033,14038,14043,14046,110,116,59,32768,37,111,100,59,32768,46,105,108,59,32768,8240,59,32768,8869,101,110,107,59,32768,8241,114,59,32896,55349,56621,768,105,109,111,14064,14074,14080,512,59,118,14069,14071,32768,966,59,32768,981,109,97,116,59,32768,8499,110,101,59,32768,9742,768,59,116,118,14092,14094,14103,32768,960,99,104,102,111,114,107,59,32768,8916,59,32768,982,512,97,117,14111,14132,110,512,99,107,14117,14128,107,512,59,104,14123,14125,32768,8463,59,32768,8462,118,59,32768,8463,115,2304,59,97,98,99,100,101,109,115,116,14152,14154,14160,14163,14168,14179,14182,14188,14193,32768,43,99,105,114,59,32768,10787,59,32768,8862,105,114,59,32768,10786,512,111,117,14173,14176,59,32768,8724,59,32768,10789,59,32768,10866,110,33024,177,59,32768,177,105,109,59,32768,10790,119,111,59,32768,10791,59,32768,177,768,105,112,117,14208,14216,14221,110,116,105,110,116,59,32768,10773,102,59,32896,55349,56673,110,100,33024,163,59,32768,163,2560,59,69,97,99,101,105,110,111,115,117,14249,14251,14254,14258,14263,14336,14348,14367,14413,14418,32768,8826,59,32768,10931,112,59,32768,10935,117,101,59,32768,8828,512,59,99,14268,14270,32768,10927,1536,59,97,99,101,110,115,14283,14285,14293,14302,14306,14331,32768,8826,112,112,114,111,120,59,32768,10935,117,114,108,121,101,113,59,32768,8828,113,59,32768,10927,768,97,101,115,14313,14321,14326,112,112,114,111,120,59,32768,10937,113,113,59,32768,10933,105,109,59,32768,8936,105,109,59,32768,8830,109,101,512,59,115,14343,14345,32768,8242,59,32768,8473,768,69,97,115,14355,14358,14362,59,32768,10933,112,59,32768,10937,105,109,59,32768,8936,768,100,102,112,14374,14377,14402,59,32768,8719,768,97,108,115,14384,14390,14396,108,97,114,59,32768,9006,105,110,101,59,32768,8978,117,114,102,59,32768,8979,512,59,116,14407,14409,32768,8733,111,59,32768,8733,105,109,59,32768,8830,114,101,108,59,32768,8880,512,99,105,14429,14434,114,59,32896,55349,56517,59,32768,968,110,99,115,112,59,32768,8200,1536,102,105,111,112,115,117,14457,14462,14467,14473,14480,14486,114,59,32896,55349,56622,110,116,59,32768,10764,112,102,59,32896,55349,56674,114,105,109,101,59,32768,8279,99,114,59,32896,55349,56518,768,97,101,111,14493,14513,14526,116,512,101,105,14499,14508,114,110,105,111,110,115,59,32768,8461,110,116,59,32768,10774,115,116,512,59,101,14520,14522,32768,63,113,59,32768,8799,116,33024,34,59,32768,34,5376,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,14575,14597,14603,14608,14775,14829,14865,14901,14943,14966,15e3,15139,15159,15176,15182,15236,15261,15267,15309,15352,15360,768,97,114,116,14582,14587,14591,114,114,59,32768,8667,114,59,32768,8658,97,105,108,59,32768,10524,97,114,114,59,32768,10511,97,114,59,32768,10596,1792,99,100,101,110,113,114,116,14623,14637,14642,14650,14672,14679,14751,512,101,117,14628,14632,59,32896,8765,817,116,101,59,32768,341,105,99,59,32768,8730,109,112,116,121,118,59,32768,10675,103,1024,59,100,101,108,14660,14662,14665,14668,32768,10217,59,32768,10642,59,32768,10661,101,59,32768,10217,117,111,33024,187,59,32768,187,114,2816,59,97,98,99,102,104,108,112,115,116,119,14703,14705,14709,14720,14723,14727,14731,14735,14739,14744,14748,32768,8594,112,59,32768,10613,512,59,102,14714,14716,32768,8677,115,59,32768,10528,59,32768,10547,115,59,32768,10526,107,59,32768,8618,112,59,32768,8620,108,59,32768,10565,105,109,59,32768,10612,108,59,32768,8611,59,32768,8605,512,97,105,14756,14761,105,108,59,32768,10522,111,512,59,110,14767,14769,32768,8758,97,108,115,59,32768,8474,768,97,98,114,14782,14787,14792,114,114,59,32768,10509,114,107,59,32768,10099,512,97,107,14797,14809,99,512,101,107,14803,14806,59,32768,125,59,32768,93,512,101,115,14814,14817,59,32768,10636,108,512,100,117,14823,14826,59,32768,10638,59,32768,10640,1024,97,101,117,121,14838,14844,14858,14862,114,111,110,59,32768,345,512,100,105,14849,14854,105,108,59,32768,343,108,59,32768,8969,98,59,32768,125,59,32768,1088,1024,99,108,113,115,14874,14878,14885,14897,97,59,32768,10551,100,104,97,114,59,32768,10601,117,111,512,59,114,14892,14894,32768,8221,59,32768,8221,104,59,32768,8627,768,97,99,103,14908,14934,14938,108,1024,59,105,112,115,14918,14920,14925,14931,32768,8476,110,101,59,32768,8475,97,114,116,59,32768,8476,59,32768,8477,116,59,32768,9645,33024,174,59,32768,174,768,105,108,114,14950,14956,14962,115,104,116,59,32768,10621,111,111,114,59,32768,8971,59,32896,55349,56623,512,97,111,14971,14990,114,512,100,117,14977,14980,59,32768,8641,512,59,108,14985,14987,32768,8640,59,32768,10604,512,59,118,14995,14997,32768,961,59,32768,1009,768,103,110,115,15007,15123,15127,104,116,1536,97,104,108,114,115,116,15022,15039,15060,15086,15099,15111,114,114,111,119,512,59,116,15031,15033,32768,8594,97,105,108,59,32768,8611,97,114,112,111,111,110,512,100,117,15050,15056,111,119,110,59,32768,8641,112,59,32768,8640,101,102,116,512,97,104,15068,15076,114,114,111,119,115,59,32768,8644,97,114,112,111,111,110,115,59,32768,8652,105,103,104,116,97,114,114,111,119,115,59,32768,8649,113,117,105,103,97,114,114,111,119,59,32768,8605,104,114,101,101,116,105,109,101,115,59,32768,8908,103,59,32768,730,105,110,103,100,111,116,115,101,113,59,32768,8787,768,97,104,109,15146,15151,15156,114,114,59,32768,8644,97,114,59,32768,8652,59,32768,8207,111,117,115,116,512,59,97,15168,15170,32768,9137,99,104,101,59,32768,9137,109,105,100,59,32768,10990,1024,97,98,112,116,15191,15204,15209,15229,512,110,114,15196,15200,103,59,32768,10221,114,59,32768,8702,114,107,59,32768,10215,768,97,102,108,15216,15220,15224,114,59,32768,10630,59,32896,55349,56675,117,115,59,32768,10798,105,109,101,115,59,32768,10805,512,97,112,15241,15253,114,512,59,103,15247,15249,32768,41,116,59,32768,10644,111,108,105,110,116,59,32768,10770,97,114,114,59,32768,8649,1024,97,99,104,113,15276,15282,15287,15290,113,117,111,59,32768,8250,114,59,32896,55349,56519,59,32768,8625,512,98,117,15295,15298,59,32768,93,111,512,59,114,15304,15306,32768,8217,59,32768,8217,768,104,105,114,15316,15322,15328,114,101,101,59,32768,8908,109,101,115,59,32768,8906,105,1024,59,101,102,108,15338,15340,15343,15346,32768,9657,59,32768,8885,59,32768,9656,116,114,105,59,32768,10702,108,117,104,97,114,59,32768,10600,59,32768,8478,6706,15391,15398,15404,15499,15516,15592,0,15606,15660,0,0,15752,15758,0,15827,15863,15886,16e3,16006,16038,16086,0,16467,0,0,16506,99,117,116,101,59,32768,347,113,117,111,59,32768,8218,2560,59,69,97,99,101,105,110,112,115,121,15424,15426,15429,15441,15446,15458,15463,15482,15490,15495,32768,8827,59,32768,10932,833,15434,0,15437,59,32768,10936,111,110,59,32768,353,117,101,59,32768,8829,512,59,100,15451,15453,32768,10928,105,108,59,32768,351,114,99,59,32768,349,768,69,97,115,15470,15473,15477,59,32768,10934,112,59,32768,10938,105,109,59,32768,8937,111,108,105,110,116,59,32768,10771,105,109,59,32768,8831,59,32768,1089,111,116,768,59,98,101,15507,15509,15512,32768,8901,59,32768,8865,59,32768,10854,1792,65,97,99,109,115,116,120,15530,15535,15556,15562,15566,15572,15587,114,114,59,32768,8664,114,512,104,114,15541,15545,107,59,32768,10533,512,59,111,15550,15552,32768,8600,119,59,32768,8600,116,33024,167,59,32768,167,105,59,32768,59,119,97,114,59,32768,10537,109,512,105,110,15578,15584,110,117,115,59,32768,8726,59,32768,8726,116,59,32768,10038,114,512,59,111,15597,15600,32896,55349,56624,119,110,59,32768,8994,1024,97,99,111,121,15614,15619,15632,15654,114,112,59,32768,9839,512,104,121,15624,15629,99,121,59,32768,1097,59,32768,1096,114,116,1086,15640,0,0,15645,105,100,59,32768,8739,97,114,97,108,108,101,108,59,32768,8741,33024,173,59,32768,173,512,103,109,15664,15681,109,97,768,59,102,118,15673,15675,15678,32768,963,59,32768,962,59,32768,962,2048,59,100,101,103,108,110,112,114,15698,15700,15705,15715,15725,15735,15739,15745,32768,8764,111,116,59,32768,10858,512,59,113,15710,15712,32768,8771,59,32768,8771,512,59,69,15720,15722,32768,10910,59,32768,10912,512,59,69,15730,15732,32768,10909,59,32768,10911,101,59,32768,8774,108,117,115,59,32768,10788,97,114,114,59,32768,10610,97,114,114,59,32768,8592,1024,97,101,105,116,15766,15788,15796,15808,512,108,115,15771,15783,108,115,101,116,109,105,110,117,115,59,32768,8726,104,112,59,32768,10803,112,97,114,115,108,59,32768,10724,512,100,108,15801,15804,59,32768,8739,101,59,32768,8995,512,59,101,15813,15815,32768,10922,512,59,115,15820,15822,32768,10924,59,32896,10924,65024,768,102,108,112,15833,15839,15857,116,99,121,59,32768,1100,512,59,98,15844,15846,32768,47,512,59,97,15851,15853,32768,10692,114,59,32768,9023,102,59,32896,55349,56676,97,512,100,114,15868,15882,101,115,512,59,117,15875,15877,32768,9824,105,116,59,32768,9824,59,32768,8741,768,99,115,117,15892,15921,15977,512,97,117,15897,15909,112,512,59,115,15903,15905,32768,8851,59,32896,8851,65024,112,512,59,115,15915,15917,32768,8852,59,32896,8852,65024,117,512,98,112,15927,15952,768,59,101,115,15934,15936,15939,32768,8847,59,32768,8849,101,116,512,59,101,15946,15948,32768,8847,113,59,32768,8849,768,59,101,115,15959,15961,15964,32768,8848,59,32768,8850,101,116,512,59,101,15971,15973,32768,8848,113,59,32768,8850,768,59,97,102,15984,15986,15996,32768,9633,114,566,15991,15994,59,32768,9633,59,32768,9642,59,32768,9642,97,114,114,59,32768,8594,1024,99,101,109,116,16014,16019,16025,16031,114,59,32896,55349,56520,116,109,110,59,32768,8726,105,108,101,59,32768,8995,97,114,102,59,32768,8902,512,97,114,16042,16053,114,512,59,102,16048,16050,32768,9734,59,32768,9733,512,97,110,16058,16081,105,103,104,116,512,101,112,16067,16076,112,115,105,108,111,110,59,32768,1013,104,105,59,32768,981,115,59,32768,175,1280,98,99,109,110,112,16096,16221,16288,16291,16295,2304,59,69,100,101,109,110,112,114,115,16115,16117,16120,16125,16137,16143,16154,16160,16166,32768,8834,59,32768,10949,111,116,59,32768,10941,512,59,100,16130,16132,32768,8838,111,116,59,32768,10947,117,108,116,59,32768,10945,512,69,101,16148,16151,59,32768,10955,59,32768,8842,108,117,115,59,32768,10943,97,114,114,59,32768,10617,768,101,105,117,16173,16206,16210,116,768,59,101,110,16181,16183,16194,32768,8834,113,512,59,113,16189,16191,32768,8838,59,32768,10949,101,113,512,59,113,16201,16203,32768,8842,59,32768,10955,109,59,32768,10951,512,98,112,16215,16218,59,32768,10965,59,32768,10963,99,1536,59,97,99,101,110,115,16235,16237,16245,16254,16258,16283,32768,8827,112,112,114,111,120,59,32768,10936,117,114,108,121,101,113,59,32768,8829,113,59,32768,10928,768,97,101,115,16265,16273,16278,112,112,114,111,120,59,32768,10938,113,113,59,32768,10934,105,109,59,32768,8937,105,109,59,32768,8831,59,32768,8721,103,59,32768,9834,3328,49,50,51,59,69,100,101,104,108,109,110,112,115,16322,16327,16332,16337,16339,16342,16356,16368,16382,16388,16394,16405,16411,33024,185,59,32768,185,33024,178,59,32768,178,33024,179,59,32768,179,32768,8835,59,32768,10950,512,111,115,16347,16351,116,59,32768,10942,117,98,59,32768,10968,512,59,100,16361,16363,32768,8839,111,116,59,32768,10948,115,512,111,117,16374,16378,108,59,32768,10185,98,59,32768,10967,97,114,114,59,32768,10619,117,108,116,59,32768,10946,512,69,101,16399,16402,59,32768,10956,59,32768,8843,108,117,115,59,32768,10944,768,101,105,117,16418,16451,16455,116,768,59,101,110,16426,16428,16439,32768,8835,113,512,59,113,16434,16436,32768,8839,59,32768,10950,101,113,512,59,113,16446,16448,32768,8843,59,32768,10956,109,59,32768,10952,512,98,112,16460,16463,59,32768,10964,59,32768,10966,768,65,97,110,16473,16478,16499,114,114,59,32768,8665,114,512,104,114,16484,16488,107,59,32768,10534,512,59,111,16493,16495,32768,8601,119,59,32768,8601,119,97,114,59,32768,10538,108,105,103,33024,223,59,32768,223,5938,16538,16552,16557,16579,16584,16591,0,16596,16692,0,0,0,0,0,16731,16780,0,16787,16908,0,0,0,16938,1091,16543,0,0,16549,103,101,116,59,32768,8982,59,32768,964,114,107,59,32768,9140,768,97,101,121,16563,16569,16575,114,111,110,59,32768,357,100,105,108,59,32768,355,59,32768,1090,111,116,59,32768,8411,108,114,101,99,59,32768,8981,114,59,32896,55349,56625,1024,101,105,107,111,16604,16641,16670,16684,835,16609,0,16624,101,512,52,102,16614,16617,59,32768,8756,111,114,101,59,32768,8756,97,768,59,115,118,16631,16633,16638,32768,952,121,109,59,32768,977,59,32768,977,512,99,110,16646,16665,107,512,97,115,16652,16660,112,112,114,111,120,59,32768,8776,105,109,59,32768,8764,115,112,59,32768,8201,512,97,115,16675,16679,112,59,32768,8776,105,109,59,32768,8764,114,110,33024,254,59,32768,254,829,16696,16701,16727,100,101,59,32768,732,101,115,33536,215,59,98,100,16710,16712,16723,32768,215,512,59,97,16717,16719,32768,8864,114,59,32768,10801,59,32768,10800,116,59,32768,8749,768,101,112,115,16737,16741,16775,97,59,32768,10536,1024,59,98,99,102,16750,16752,16757,16762,32768,8868,111,116,59,32768,9014,105,114,59,32768,10993,512,59,111,16767,16770,32896,55349,56677,114,107,59,32768,10970,97,59,32768,10537,114,105,109,101,59,32768,8244,768,97,105,112,16793,16798,16899,100,101,59,32768,8482,1792,97,100,101,109,112,115,116,16813,16868,16873,16876,16883,16889,16893,110,103,108,101,1280,59,100,108,113,114,16828,16830,16836,16850,16853,32768,9653,111,119,110,59,32768,9663,101,102,116,512,59,101,16844,16846,32768,9667,113,59,32768,8884,59,32768,8796,105,103,104,116,512,59,101,16862,16864,32768,9657,113,59,32768,8885,111,116,59,32768,9708,59,32768,8796,105,110,117,115,59,32768,10810,108,117,115,59,32768,10809,98,59,32768,10701,105,109,101,59,32768,10811,101,122,105,117,109,59,32768,9186,768,99,104,116,16914,16926,16931,512,114,121,16919,16923,59,32896,55349,56521,59,32768,1094,99,121,59,32768,1115,114,111,107,59,32768,359,512,105,111,16942,16947,120,116,59,32768,8812,104,101,97,100,512,108,114,16956,16967,101,102,116,97,114,114,111,119,59,32768,8606,105,103,104,116,97,114,114,111,119,59,32768,8608,4608,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,17016,17021,17026,17043,17057,17072,17095,17110,17119,17139,17172,17187,17202,17290,17330,17336,17365,17381,114,114,59,32768,8657,97,114,59,32768,10595,512,99,114,17031,17039,117,116,101,33024,250,59,32768,250,114,59,32768,8593,114,820,17049,0,17053,121,59,32768,1118,118,101,59,32768,365,512,105,121,17062,17069,114,99,33024,251,59,32768,251,59,32768,1091,768,97,98,104,17079,17084,17090,114,114,59,32768,8645,108,97,99,59,32768,369,97,114,59,32768,10606,512,105,114,17100,17106,115,104,116,59,32768,10622,59,32896,55349,56626,114,97,118,101,33024,249,59,32768,249,562,17123,17135,114,512,108,114,17128,17131,59,32768,8639,59,32768,8638,108,107,59,32768,9600,512,99,116,17144,17167,1088,17150,0,0,17163,114,110,512,59,101,17156,17158,32768,8988,114,59,32768,8988,111,112,59,32768,8975,114,105,59,32768,9720,512,97,108,17177,17182,99,114,59,32768,363,33024,168,59,32768,168,512,103,112,17192,17197,111,110,59,32768,371,102,59,32896,55349,56678,1536,97,100,104,108,115,117,17215,17222,17233,17257,17262,17280,114,114,111,119,59,32768,8593,111,119,110,97,114,114,111,119,59,32768,8597,97,114,112,111,111,110,512,108,114,17244,17250,101,102,116,59,32768,8639,105,103,104,116,59,32768,8638,117,115,59,32768,8846,105,768,59,104,108,17270,17272,17275,32768,965,59,32768,978,111,110,59,32768,965,112,97,114,114,111,119,115,59,32768,8648,768,99,105,116,17297,17320,17325,1088,17303,0,0,17316,114,110,512,59,101,17309,17311,32768,8989,114,59,32768,8989,111,112,59,32768,8974,110,103,59,32768,367,114,105,59,32768,9721,99,114,59,32896,55349,56522,768,100,105,114,17343,17348,17354,111,116,59,32768,8944,108,100,101,59,32768,361,105,512,59,102,17360,17362,32768,9653,59,32768,9652,512,97,109,17370,17375,114,114,59,32768,8648,108,33024,252,59,32768,252,97,110,103,108,101,59,32768,10663,3840,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,17420,17425,17437,17443,17613,17617,17623,17667,17672,17678,17693,17699,17705,17711,17754,114,114,59,32768,8661,97,114,512,59,118,17432,17434,32768,10984,59,32768,10985,97,115,104,59,32768,8872,512,110,114,17448,17454,103,114,116,59,32768,10652,1792,101,107,110,112,114,115,116,17469,17478,17485,17494,17515,17526,17578,112,115,105,108,111,110,59,32768,1013,97,112,112,97,59,32768,1008,111,116,104,105,110,103,59,32768,8709,768,104,105,114,17501,17505,17508,105,59,32768,981,59,32768,982,111,112,116,111,59,32768,8733,512,59,104,17520,17522,32768,8597,111,59,32768,1009,512,105,117,17531,17537,103,109,97,59,32768,962,512,98,112,17542,17560,115,101,116,110,101,113,512,59,113,17553,17556,32896,8842,65024,59,32896,10955,65024,115,101,116,110,101,113,512,59,113,17571,17574,32896,8843,65024,59,32896,10956,65024,512,104,114,17583,17589,101,116,97,59,32768,977,105,97,110,103,108,101,512,108,114,17600,17606,101,102,116,59,32768,8882,105,103,104,116,59,32768,8883,121,59,32768,1074,97,115,104,59,32768,8866,768,101,108,114,17630,17648,17654,768,59,98,101,17637,17639,17644,32768,8744,97,114,59,32768,8891,113,59,32768,8794,108,105,112,59,32768,8942,512,98,116,17659,17664,97,114,59,32768,124,59,32768,124,114,59,32896,55349,56627,116,114,105,59,32768,8882,115,117,512,98,112,17685,17689,59,32896,8834,8402,59,32896,8835,8402,112,102,59,32896,55349,56679,114,111,112,59,32768,8733,116,114,105,59,32768,8883,512,99,117,17716,17721,114,59,32896,55349,56523,512,98,112,17726,17740,110,512,69,101,17732,17736,59,32896,10955,65024,59,32896,8842,65024,110,512,69,101,17746,17750,59,32896,10956,65024,59,32896,8843,65024,105,103,122,97,103,59,32768,10650,1792,99,101,102,111,112,114,115,17777,17783,17815,17820,17826,17829,17842,105,114,99,59,32768,373,512,100,105,17788,17809,512,98,103,17793,17798,97,114,59,32768,10847,101,512,59,113,17804,17806,32768,8743,59,32768,8793,101,114,112,59,32768,8472,114,59,32896,55349,56628,112,102,59,32896,55349,56680,59,32768,8472,512,59,101,17834,17836,32768,8768,97,116,104,59,32768,8768,99,114,59,32896,55349,56524,5428,17871,17891,0,17897,0,17902,17917,0,0,17920,17935,17940,17945,0,0,17977,17992,0,18008,18024,18029,768,97,105,117,17877,17881,17886,112,59,32768,8898,114,99,59,32768,9711,112,59,32768,8899,116,114,105,59,32768,9661,114,59,32896,55349,56629,512,65,97,17906,17911,114,114,59,32768,10234,114,114,59,32768,10231,59,32768,958,512,65,97,17924,17929,114,114,59,32768,10232,114,114,59,32768,10229,97,112,59,32768,10236,105,115,59,32768,8955,768,100,112,116,17951,17956,17970,111,116,59,32768,10752,512,102,108,17961,17965,59,32896,55349,56681,117,115,59,32768,10753,105,109,101,59,32768,10754,512,65,97,17981,17986,114,114,59,32768,10233,114,114,59,32768,10230,512,99,113,17996,18001,114,59,32896,55349,56525,99,117,112,59,32768,10758,512,112,116,18012,18018,108,117,115,59,32768,10756,114,105,59,32768,9651,101,101,59,32768,8897,101,100,103,101,59,32768,8896,2048,97,99,101,102,105,111,115,117,18052,18068,18081,18087,18092,18097,18103,18109,99,512,117,121,18058,18065,116,101,33024,253,59,32768,253,59,32768,1103,512,105,121,18073,18078,114,99,59,32768,375,59,32768,1099,110,33024,165,59,32768,165,114,59,32896,55349,56630,99,121,59,32768,1111,112,102,59,32896,55349,56682,99,114,59,32896,55349,56526,512,99,109,18114,18118,121,59,32768,1102,108,33024,255,59,32768,255,2560,97,99,100,101,102,104,105,111,115,119,18145,18152,18166,18171,18186,18191,18196,18204,18210,18216,99,117,116,101,59,32768,378,512,97,121,18157,18163,114,111,110,59,32768,382,59,32768,1079,111,116,59,32768,380,512,101,116,18176,18182,116,114,102,59,32768,8488,97,59,32768,950,114,59,32896,55349,56631,99,121,59,32768,1078,103,114,97,114,114,59,32768,8669,112,102,59,32896,55349,56683,99,114,59,32896,55349,56527,512,106,110,18221,18224,59,32768,8205,106,59,32768,8204])),Zn}var Qn={},No;function w2(){return No||(No=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.default=new Uint16Array([1024,97,103,108,113,9,23,27,31,1086,15,0,0,19,112,59,32768,38,111,115,59,32768,39,116,59,32768,62,116,59,32768,60,117,111,116,59,32768,34])),Qn}var Jn={},Ao;function k2(){if(Ao)return Jn;Ao=1,Object.defineProperty(Jn,"__esModule",{value:!0});var t=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),e=String.fromCodePoint||function(r){var i="";return r>65535&&(r-=65536,i+=String.fromCharCode(r>>>10&1023|55296),r=56320|r&1023),i+=String.fromCharCode(r),i};function n(r){var i;return r>=55296&&r<=57343||r>1114111?"\uFFFD":e((i=t.get(r))!==null&&i!==void 0?i:r)}return Jn.default=n,Jn}var Eo;function So(){return Eo||(Eo=1,(function(t){var e=on&&on.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTML=t.determineBranch=t.JUMP_OFFSET_BASE=t.BinTrieFlags=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var n=e(v2());t.htmlDecodeTree=n.default;var r=e(w2());t.xmlDecodeTree=r.default;var i=e(k2()),s;(function(f){f[f.HAS_VALUE=32768]="HAS_VALUE",f[f.BRANCH_LENGTH=32512]="BRANCH_LENGTH",f[f.MULTI_BYTE=128]="MULTI_BYTE",f[f.JUMP_TABLE=127]="JUMP_TABLE"})(s=t.BinTrieFlags||(t.BinTrieFlags={})),t.JUMP_OFFSET_BASE=47;function a(f){return function(y,b){for(var w="",C=0,A=0;(A=y.indexOf("&",A))>=0;){if(w+=y.slice(C,A),C=A,A+=1,y.charCodeAt(A)===35){var L=A+1,q=10,P=y.charCodeAt(L);for((P|32)===120&&(q=16,A+=1,L+=1);(P=y.charCodeAt(++A))>=48&&P<=57||q===16&&(P|32)>=97&&(P|32)<=102;);if(L!==A){var v=y.substring(L,A),g=parseInt(v,q);if(y.charCodeAt(A)===59)A+=1;else if(b)continue;w+=i.default(g),C=A}continue}for(var k=null,N=1,T=0,S=f[T];A<y.length&&(T=c(f,S,T+1,y.charCodeAt(A)),!(T<0));A++,N++)S=f[T],S&s.HAS_VALUE&&(b&&y.charCodeAt(A)!==59?T+=1:(k=S&s.MULTI_BYTE?String.fromCharCode(f[++T],f[++T]):String.fromCharCode(f[++T]),N=0));k!=null&&(w+=k,C=A-N+1)}return w+y.slice(C)}}function c(f,p,y,b){if(p<=128)return b===p?y:-1;var w=(p&s.BRANCH_LENGTH)>>8;if(w===0)return-1;if(w===1)return b===f[y]?y+1:-1;var C=p&s.JUMP_TABLE;if(C){var A=b-t.JUMP_OFFSET_BASE-C;return A<0||A>w?-1:f[y+A]-1}for(var L=y,q=L+w-1;L<=q;){var P=L+q>>>1,v=f[P];if(v<b)L=P+1;else if(v>b)q=P-1;else return f[P+w]}return-1}t.determineBranch=c;var u=a(n.default),l=a(r.default);function h(f){return u(f,!1)}t.decodeHTML=h;function d(f){return u(f,!0)}t.decodeHTMLStrict=d;function m(f){return l(f,!0)}t.decodeXML=m})(on)),on}var Dt={};const N2={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};var sn={};const To={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
3
+ `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var Co;function A2(){return Co||(Co=1,(function(t){var e=sn&&sn.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0}),t.getTrie=t.encodeHTMLTrieRe=t.getCodePoint=void 0;var n=e(To);function r(c){return(c&64512)===55296}t.getCodePoint=String.prototype.codePointAt!=null?function(c,u){return c.codePointAt(u)}:(function(c,u){return r(c.charCodeAt(u))?(c.charCodeAt(u)-55296)*1024+c.charCodeAt(u+1)-56320+65536:c.charCodeAt(u)});var i=a(n.default);function s(c,u){for(var l,h="",d=0,m;(m=c.exec(u))!==null;){var f=m.index,p=u.charCodeAt(f),y=i.get(p);if(y){if(y.next!=null&&f+1<u.length){var b=(l=y.next.get(u.charCodeAt(f+1)))===null||l===void 0?void 0:l.value;if(b!=null){h+=u.substring(d,f)+b,c.lastIndex+=1,d=f+2;continue}}h+=u.substring(d,f)+y.value,d=f+1}else h+=u.substring(d,f)+"&#x"+t.getCodePoint(u,f).toString(16)+";",d=c.lastIndex+=Number(r(p))}return h+u.substr(d)}t.encodeHTMLTrieRe=s;function a(c){for(var u,l,h,d,m=new Map,f=0,p=Object.keys(c);f<p.length;f++){for(var y=p[f],b=c[y],w=m,C=0;C<b.length-1;C++){var A=b.charCodeAt(C),L=(u=w.get(A))!==null&&u!==void 0?u:{};w.set(A,L),w=(l=L.next)!==null&&l!==void 0?l:L.next=new Map}var q=(h=w.get(b.charCodeAt(b.length-1)))!==null&&h!==void 0?h:{};(d=q.value)!==null&&d!==void 0||(q.value="&"+y+";"),w.set(b.charCodeAt(b.length-1),q)}return m}t.getTrie=a})(sn)),sn}var Mo;function Bo(){if(Mo)return Dt;Mo=1;var t=Dt&&Dt.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.escapeUTF8=Dt.escape=Dt.encodeNonAsciiHTML=Dt.encodeHTML=Dt.encodeXML=void 0;var e=t(N2),n=A2(),r=t(To),i=d(r.default,!0),s=d(e.default,!0),a=d(e.default,!1),c=new Map(Object.keys(e.default).map(function(f){return[e.default[f].charCodeAt(0),"&"+f+";"]}));function u(f){for(var p="",y=0,b;(b=s.exec(f))!==null;){var w=b.index,C=f.charCodeAt(w),A=c.get(C);A?(p+=f.substring(y,w)+A,y=w+1):(p+=f.substring(y,w)+"&#x"+n.getCodePoint(f,w).toString(16)+";",y=s.lastIndex+=+((C&65408)===55296))}return p+f.substr(y)}Dt.encodeXML=u;function l(f){return n.encodeHTMLTrieRe(i,f)}Dt.encodeHTML=l;function h(f){return n.encodeHTMLTrieRe(s,f)}Dt.encodeNonAsciiHTML=h;function d(f,p){for(var y=Object.keys(f).map(function(A){return"\\"+f[A].charAt(0)}).filter(function(A){return!p||A.charCodeAt(1)<128}).sort(function(A,L){return A.charCodeAt(1)-L.charCodeAt(1)}).filter(function(A,L,q){return A!==q[L+1]}),b=0;b<y.length-1;b++){for(var w=b;w<y.length-1&&y[w].charCodeAt(1)+1===y[w+1].charCodeAt(1);)w+=1;var C=1+w-b;C<3||y.splice(b,C,y[b]+"-"+y[w])}return new RegExp("["+y.join("")+(p?"\\x80-\\uFFFF":"")+"]","g")}Dt.escape=u;function m(f){for(var p,y=0,b="";p=a.exec(f);)y!==p.index&&(b+=f.substring(y,p.index)),b+=c.get(p[0].charCodeAt(0)),y=p.index+1;return b+f.substring(y)}return Dt.escapeUTF8=m,Dt}var Lo;function E2(){return Lo||(Lo=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.DecodingMode=t.EntityLevel=void 0;var e=So(),n=Bo(),r;(function(d){d[d.XML=0]="XML",d[d.HTML=1]="HTML"})(r=t.EntityLevel||(t.EntityLevel={}));var i;(function(d){d[d.Legacy=0]="Legacy",d[d.Strict=1]="Strict"})(i=t.DecodingMode||(t.DecodingMode={}));var s;(function(d){d[d.UTF8=0]="UTF8",d[d.ASCII=1]="ASCII",d[d.Extensive=2]="Extensive"})(s=t.EncodingMode||(t.EncodingMode={}));function a(d,m){m===void 0&&(m=r.XML);var f=typeof m=="number"?{level:m}:m;return f.level===r.HTML?f.mode===i.Strict?e.decodeHTMLStrict(d):e.decodeHTML(d):e.decodeXML(d)}t.decode=a;function c(d,m){m===void 0&&(m=r.XML);var f=typeof m=="number"?{level:m}:m;return f.level===r.HTML?f.mode===i.Legacy?e.decodeHTML(d):e.decodeHTMLStrict(d):e.decodeXML(d)}t.decodeStrict=c;function u(d,m){m===void 0&&(m=r.XML);var f=typeof m=="number"?{level:m}:m;return f.mode===s.UTF8?n.escapeUTF8(d):f.level===r.HTML?f.mode===s.ASCII?n.encodeNonAsciiHTML(d):n.encodeHTML(d):n.encodeXML(d)}t.encode=u;var l=Bo();Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return l.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return l.encodeHTML}});var h=So();Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(_1)),_1}var $o=E2(),S2=92,qo="&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});",Oo="[A-Za-z][A-Za-z0-9-]*",T2="[a-zA-Z_:][a-zA-Z0-9:._-]*",C2="[^\"'=<>`\\x00-\\x20]+",M2="'[^']*'",B2='"[^"]*"',L2="(?:"+C2+"|"+M2+"|"+B2+")",$2="(?:\\s*=\\s*"+L2+")",q2="(?:\\s+"+T2+$2+"?)",Po="<"+Oo+q2+"*\\s*/?>",Do="</"+Oo+"\\s*[>]",O2="<!-->|<!--->|<!--[\\s\\S]*?-->",P2="[<][?][\\s\\S]*?[?][>]",D2="<![A-Za-z]+[^>]*>",V2="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",j2="(?:"+Po+"|"+Do+"|"+O2+"|"+P2+"|"+D2+"|"+V2+")",R2=new RegExp("^"+j2),I2=/[\\&]/,Vo="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",H2=new RegExp("\\\\"+Vo+"|"+qo,"gi"),F2='[&<>"]',jo=new RegExp(F2,"g"),U2=function(t){return t.charCodeAt(0)===S2?t.charAt(1):$o.decodeHTMLStrict(t)},Ro=function(t){return I2.test(t)?t.replace(H2,U2):t},z2=function(t){try{return b2(t)}catch{return t}},X2=function(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return t}},t1=function(t){return jo.test(t)?t.replace(jo,X2):t},K1;function Z1(t){return K1(t)}if(String.fromCodePoint)K1=function(t){try{return String.fromCodePoint(t)}catch(e){if(e instanceof RangeError)return"\uFFFD";throw e}};else{var Y2=String.fromCharCode,G2=Math.floor;K1=function(){var t=16384,e=[],n,r,i=-1,s=arguments.length;if(!s)return"";for(var a="";++i<s;){var c=Number(arguments[i]);if(!isFinite(c)||c<0||c>1114111||G2(c)!==c)return"\uFFFD";c<=65535?e.push(c):(c-=65536,n=(c>>10)+55296,r=c%1024+56320,e.push(n,r)),(i+1===s||e.length>t)&&(a+=Y2.apply(null,e),e.length=0)}return a}}var e1=z2,Q1=Ro,Io=10,J1=42,n1=95,W2=96,Ho=91,_2=93,Fo=60,K2=33,Uo=92,Z2=38,zo=40,tr=41,Q2=58,Ee=39,Se=34,Xo=Vo,er="\\\\"+Xo,J2=qo,t9=R2,Yo=new RegExp(/^[!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~\p{P}\p{S}]/u),e9=new RegExp('^(?:"('+er+`|\\\\[^\\\\]|[^\\\\"\\x00])*"|'(`+er+"|\\\\[^\\\\]|[^\\\\'\\x00])*'|\\(("+er+"|\\\\[^\\\\]|[^\\\\()\\x00])*\\))"),n9=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,Go=new RegExp("^"+Xo),r9=new RegExp("^"+J2,"i"),i9=/`+/,o9=/^`+/,s9=/\.\.\./g,l9=/--+/g,a9=/^<([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])?)*)>/,c9=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,u9=/^ *(?:\n *)?/,Wo=/^[ \t\n\x0b\x0c\x0d]/,_o=/^\s/,h9=/ *$/,f9=/^ */,Ko=/^ *(?:\n|$)/,m9=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/s,d9=/^[^\n`\[\]\\!<&*_'"]+/m,Ot=function(t){var e=new Nt("text");return e._literal=t,e},Zo=function(t){return t.slice(1,t.length-1).trim().replace(/[ \t\r\n]+/g," ").toLowerCase().toUpperCase()},g9=function(t){var e=t.exec(this.subject.slice(this.pos));return e===null?null:(this.pos+=e.index+e[0].length,e[0])},p9=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1},y9=function(){return this.match(u9),!0},x9=function(t){var e=this.match(o9);if(e===null)return!1;for(var n=this.pos,r,i,s;(r=this.match(i9))!==null;)if(r===e)return i=new Nt("code"),s=this.subject.slice(n,this.pos-e.length).replace(/\n/gm," "),s.length>0&&s.match(/[^ ]/)!==null&&s[0]==" "&&s[s.length-1]==" "?i._literal=s.slice(1,s.length-1):i._literal=s,t.appendChild(i),!0;return this.pos=n,t.appendChild(Ot(e)),!0},b9=function(t){var e=this.subject,n;return this.pos+=1,this.peek()===Io?(this.pos+=1,n=new Nt("linebreak"),t.appendChild(n)):Go.test(e.charAt(this.pos))?(t.appendChild(Ot(e.charAt(this.pos))),this.pos+=1):t.appendChild(Ot("\\")),!0},v9=function(t){var e,n,r;return(e=this.match(a9))?(n=e.slice(1,e.length-1),r=new Nt("link"),r._destination=e1("mailto:"+n),r._title="",r.appendChild(Ot(n)),t.appendChild(r),!0):(e=this.match(c9))?(n=e.slice(1,e.length-1),r=new Nt("link"),r._destination=e1(n),r._title="",r.appendChild(Ot(n)),t.appendChild(r),!0):!1},w9=function(t){var e=this.match(t9);if(e===null)return!1;var n=new Nt("html_inline");return n._literal=e,t.appendChild(n),!0},k9=function(t){var e=0,n,r,i,s=this.pos,a,c,u,l,h,d,m,f;if(t===Ee||t===Se)e++,this.pos++;else for(;this.peek()===t;)e++,this.pos++;return e===0?null:(n=s===0?`
4
+ `:this.subject.charAt(s-1),i=this.peek(),i===-1?r=`
5
+ `:r=Z1(i),h=_o.test(r),d=Yo.test(r),m=_o.test(n),f=Yo.test(n),a=!h&&(!d||m||f),c=!m&&(!f||h||d),t===n1?(u=a&&(!c||f),l=c&&(!a||d)):t===Ee||t===Se?(u=a&&!c,l=c):(u=a,l=c),this.pos=s,{numdelims:e,can_open:u,can_close:l})},N9=function(t,e){var n=this.scanDelims(t);if(!n)return!1;var r=n.numdelims,i=this.pos,s;this.pos+=r,t===Ee?s="\u2019":t===Se?s="\u201C":s=this.subject.slice(i,this.pos);var a=Ot(s);return e.appendChild(a),(n.can_open||n.can_close)&&(this.options.smart||t!==Ee&&t!==Se)&&(this.delimiters={cc:t,numdelims:r,origdelims:r,node:a,previous:this.delimiters,next:null,can_open:n.can_open,can_close:n.can_close},this.delimiters.previous!==null&&(this.delimiters.previous.next=this.delimiters)),!0},A9=function(t){t.previous!==null&&(t.previous.next=t.next),t.next===null?this.delimiters=t.previous:t.next.previous=t.previous},E9=function(t,e){t.next!==e&&(t.next=e,e.previous=t)},S9=function(t){for(var e,n,r,i,s,a,c,u,l,h,d=[],m,f=!1,p=0;p<14;p++)d[p]=t;for(n=this.delimiters;n!==null&&n.previous!==t;)n=n.previous;for(;n!==null;){var y=n.cc;if(!n.can_close)n=n.next;else{switch(e=n.previous,h=!1,y){case Ee:m=0;break;case Se:m=1;break;case n1:m=2+(n.can_open?3:0)+n.origdelims%3;break;case J1:m=8+(n.can_open?3:0)+n.origdelims%3;break}for(;e!==null&&e!==t&&e!==d[m];){if(f=(n.can_open||e.can_close)&&n.origdelims%3!==0&&(e.origdelims+n.origdelims)%3===0,e.cc===n.cc&&e.can_open&&!f){h=!0;break}e=e.previous}if(r=n,y===J1||y===n1)if(!h)n=n.next;else{c=n.numdelims>=2&&e.numdelims>=2?2:1,i=e.node,s=n.node,e.numdelims-=c,n.numdelims-=c,i._literal=i._literal.slice(0,i._literal.length-c),s._literal=s._literal.slice(0,s._literal.length-c);var b=new Nt(c===1?"emph":"strong");for(u=i._next;u&&u!==s;)l=u._next,u.unlink(),b.appendChild(u),u=l;i.insertAfter(b),E9(e,n),e.numdelims===0&&(i.unlink(),this.removeDelimiter(e)),n.numdelims===0&&(s.unlink(),a=n.next,this.removeDelimiter(n),n=a)}else y===Ee?(n.node._literal="\u2019",h&&(e.node._literal="\u2018"),n=n.next):y===Se&&(n.node._literal="\u201D",h&&(e.node.literal="\u201C"),n=n.next);h||(d[m]=r.previous,r.can_open||this.removeDelimiter(r))}}for(;this.delimiters!==null&&this.delimiters!==t;)this.removeDelimiter(this.delimiters)},T9=function(){var t=this.match(e9);return t===null?null:Q1(t.slice(1,-1))},C9=function(){var t=this.match(n9);if(t===null){if(this.peek()===Fo)return null;for(var e=this.pos,n=0,r;(r=this.peek())!==-1;)if(r===Uo&&Go.test(this.subject.charAt(this.pos+1)))this.pos+=1,this.peek()!==-1&&(this.pos+=1);else if(r===zo)this.pos+=1,n+=1;else if(r===tr){if(n<1)break;this.pos+=1,n-=1}else{if(Wo.exec(Z1(r))!==null)break;this.pos+=1}return this.pos===e&&r!==tr||n!==0?null:(t=this.subject.slice(e,this.pos),e1(Q1(t)))}else return e1(Q1(t.slice(1,-1)))},M9=function(){var t=this.match(m9);return t===null||t.length>1001?0:t.length},B9=function(t){var e=this.pos;this.pos+=1;var n=Ot("[");return t.appendChild(n),this.addBracket(n,e,!1),!0},L9=function(t){var e=this.pos;if(this.pos+=1,this.peek()===Ho){this.pos+=1;var n=Ot("![");t.appendChild(n),this.addBracket(n,e+1,!0)}else t.appendChild(Ot("!"));return!0},$9=function(t){var e,n,r,i,s=!1,a,c;if(this.pos+=1,e=this.pos,c=this.brackets,c===null)return t.appendChild(Ot("]")),!0;if(!c.active)return t.appendChild(Ot("]")),this.removeBracket(),!0;n=c.image;var u=this.pos;if(this.peek()===zo&&(this.pos++,this.spnl()&&(r=this.parseLinkDestination())!==null&&this.spnl()&&(Wo.test(this.subject.charAt(this.pos-1))&&(i=this.parseLinkTitle())||!0)&&this.spnl()&&this.peek()===tr?(this.pos+=1,s=!0):this.pos=u),!s){var l=this.pos,h=this.parseLinkLabel();if(h>2?a=this.subject.slice(l,l+h):c.bracketAfter||(a=this.subject.slice(c.index,e)),h===0&&(this.pos=u),a){var d=this.refmap[Zo(a)];d&&(r=d.destination,i=d.title,s=!0)}}if(s){var m=new Nt(n?"image":"link");m._destination=r,m._title=i||"";var f,p;for(f=c.node._next;f;)p=f._next,f.unlink(),m.appendChild(f),f=p;if(t.appendChild(m),this.processEmphasis(c.previousDelimiter),this.removeBracket(),c.node.unlink(),!n)for(c=this.brackets;c!==null;)c.image||(c.active=!1),c=c.previous;return!0}else return this.removeBracket(),this.pos=e,t.appendChild(Ot("]")),!0},q9=function(t,e,n){this.brackets!==null&&(this.brackets.bracketAfter=!0),this.brackets={node:t,previous:this.brackets,previousDelimiter:this.delimiters,index:e,image:n,active:!0}},O9=function(){this.brackets=this.brackets.previous},P9=function(t){var e;return(e=this.match(r9))?(t.appendChild(Ot($o.decodeHTMLStrict(e))),!0):!1},D9=function(t){var e;return(e=this.match(d9))?(this.options.smart?t.appendChild(Ot(e.replace(s9,"\u2026").replace(l9,function(n){var r=0,i=0;return n.length%3===0?i=n.length/3:n.length%2===0?r=n.length/2:n.length%3===2?(r=1,i=(n.length-2)/3):(r=2,i=(n.length-4)/3),"\u2014".repeat(i)+"\u2013".repeat(r)}))):t.appendChild(Ot(e)),!0):!1},V9=function(t){this.pos+=1;var e=t._lastChild;if(e&&e.type==="text"&&e._literal[e._literal.length-1]===" "){var n=e._literal[e._literal.length-2]===" ";e._literal=e._literal.replace(h9,""),t.appendChild(new Nt(n?"linebreak":"softbreak"))}else t.appendChild(new Nt("softbreak"));return this.match(f9),!0},j9=function(t,e){this.subject=t,this.pos=0;var n,r,i,s,a=this.pos;if(s=this.parseLinkLabel(),s===0)return 0;if(n=this.subject.slice(0,s),this.peek()===Q2)this.pos++;else return this.pos=a,0;if(this.spnl(),r=this.parseLinkDestination(),r===null)return this.pos=a,0;var c=this.pos;this.spnl(),this.pos!==c&&(i=this.parseLinkTitle()),i===null&&(this.pos=c);var u=!0;if(this.match(Ko)===null&&(i===null?u=!1:(i=null,this.pos=c,u=this.match(Ko)!==null)),!u)return this.pos=a,0;var l=Zo(n);return l===""?(this.pos=a,0):(e[l]||(e[l]={destination:r,title:i===null?"":i}),this.pos-a)},R9=function(t){var e=!1,n=this.peek();if(n===-1)return!1;switch(n){case Io:e=this.parseNewline(t);break;case Uo:e=this.parseBackslash(t);break;case W2:e=this.parseBackticks(t);break;case J1:case n1:e=this.handleDelim(n,t);break;case Ee:case Se:e=this.options.smart&&this.handleDelim(n,t);break;case Ho:e=this.parseOpenBracket(t);break;case K2:e=this.parseBang(t);break;case _2:e=this.parseCloseBracket(t);break;case Fo:e=this.parseAutolink(t)||this.parseHtmlTag(t);break;case Z2:e=this.parseEntity(t);break;default:e=this.parseString(t);break}return e||(this.pos+=1,t.appendChild(Ot(Z1(n)))),!0},I9=function(t){for(this.subject=t._string_content.trim(),this.pos=0,this.delimiters=null,this.brackets=null;this.parseInline(t););t._string_content=null,this.processEmphasis(null)};function H9(t){return{subject:"",delimiters:null,brackets:null,pos:0,refmap:{},match:g9,peek:p9,spnl:y9,parseBackticks:x9,parseBackslash:b9,parseAutolink:v9,parseHtmlTag:w9,scanDelims:k9,handleDelim:N9,parseLinkTitle:T9,parseLinkDestination:C9,parseLinkLabel:M9,parseOpenBracket:B9,parseBang:L9,parseCloseBracket:$9,addBracket:q9,removeBracket:O9,parseEntity:P9,parseString:D9,parseNewline:V9,parseReference:j9,parseInline:R9,processEmphasis:S9,removeDelimiter:A9,options:t||{},parse:I9}}var r1=4,Qo=9,F9=10,Jo=62,U9=60,ts=32,es=91,z9=[/./,/^<(?:script|pre|textarea|style)(?:\s|>|$)/i,/^<!--/,/^<[?]/,/^<![A-Za-z]/,/^<!\[CDATA\[/,/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|search|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i,new RegExp("^(?:"+Po+"|"+Do+")\\s*$","i")],X9=[/./,/<\/(?:script|pre|textarea|style)>/i,/-->/,/\?>/,/>/,/\]\]>/],Y9=/^(?:\*[ \t]*){3,}$|^(?:_[ \t]*){3,}$|^(?:-[ \t]*){3,}$/,G9=/^[#`~*+_=<>0-9-]/,ns=/[^ \t\f\v\r\n]/,W9=/^[*+-]/,_9=/^(\d{1,9})([.)])/,K9=/^#{1,6}(?:[ \t]+|$)/,Z9=/^`{3,}(?!.*`)|^~{3,}/,Q9=/^(?:`{3,}|~{3,})(?=[ \t]*$)/,J9=/^(?:=+|-+)[ \t]*$/,t8=/\r\n|\n|\r/,e8=function(t){return!ns.test(t)},ln=function(t){return t===ts||t===Qo},Ft=function(t,e){return e<t.length?t.charCodeAt(e):-1},rs=function(t){return t.next&&t.sourcepos[1][0]!==t.next.sourcepos[0][0]-1},n8=function(){if(this.partiallyConsumedTab){this.offset+=1;var t=4-this.column%4;this.tip._string_content+=" ".repeat(t)}this.tip._string_content+=this.currentLine.slice(this.offset)+`
6
+ `},r8=function(t,e){for(;!this.blocks[this.tip.type].canContain(t);)this.finalize(this.tip,this.lineNumber-1);var n=e+1,r=new Nt(t,[[this.lineNumber,n],[0,0]]);return r._string_content="",this.tip.appendChild(r),this.tip=r,r},i8=function(t,e){var n=t.currentLine.slice(t.nextNonspace),r,i,s,a,c={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:t.indent};if(t.indent>=4)return null;if(r=n.match(W9))c.type="bullet",c.bulletChar=r[0][0];else if((r=n.match(_9))&&(e.type!=="paragraph"||r[1]==1))c.type="ordered",c.start=parseInt(r[1]),c.delimiter=r[2];else return null;if(i=Ft(t.currentLine,t.nextNonspace+r[0].length),!(i===-1||i===Qo||i===ts)||e.type==="paragraph"&&!t.currentLine.slice(t.nextNonspace+r[0].length).match(ns))return null;t.advanceNextNonspace(),t.advanceOffset(r[0].length,!0),s=t.column,a=t.offset;do t.advanceOffset(1,!0),i=Ft(t.currentLine,t.offset);while(t.column-s<5&&ln(i));var u=Ft(t.currentLine,t.offset)===-1,l=t.column-s;return l>=5||l<1||u?(c.padding=r[0].length+1,t.column=s,t.offset=a,ln(Ft(t.currentLine,t.offset))&&t.advanceOffset(1,!0)):c.padding=r[0].length+l,c},o8=function(t,e){return t.type===e.type&&t.delimiter===e.delimiter&&t.bulletChar===e.bulletChar},s8=function(){if(!this.allClosed){for(;this.oldtip!==this.lastMatchedContainer;){var t=this.oldtip._parent;this.finalize(this.oldtip,this.lineNumber-1),this.oldtip=t}this.allClosed=!0}},l8=function(t,e){for(var n,r,i=e.walker(),s=[];n=i.next();)if(r=n.node,n.entering&&r.type==="paragraph"){for(var a,c=!1;Ft(r._string_content,0)===es&&(a=t.inlineParser.parseReference(r._string_content,t.refmap));){const u=r._string_content.slice(0,a);r._string_content=r._string_content.slice(a),c=!0;const l=u.split(`
7
+ `);r.sourcepos[0][0]+=l.length-1}c&&e8(r._string_content)&&s.push(r)}for(r of s)r.unlink()},is={document:{continue:function(){return 0},finalize:function(t,e){l8(t,e)},canContain:function(t){return t!=="item"},acceptsLines:!1},list:{continue:function(){return 0},finalize:function(t,e){for(var n=e._firstChild;n;){if(n._next&&rs(n)){e._listData.tight=!1;break}for(var r=n._firstChild;r;){if(r._next&&rs(r)){e._listData.tight=!1;break}r=r._next}n=n._next}e.sourcepos[1]=e._lastChild.sourcepos[1]},canContain:function(t){return t==="item"},acceptsLines:!1},block_quote:{continue:function(t){var e=t.currentLine;if(!t.indented&&Ft(e,t.nextNonspace)===Jo)t.advanceNextNonspace(),t.advanceOffset(1,!1),ln(Ft(e,t.offset))&&t.advanceOffset(1,!0);else return 1;return 0},finalize:function(){},canContain:function(t){return t!=="item"},acceptsLines:!1},item:{continue:function(t,e){if(t.blank){if(e._firstChild==null)return 1;t.advanceNextNonspace()}else if(t.indent>=e._listData.markerOffset+e._listData.padding)t.advanceOffset(e._listData.markerOffset+e._listData.padding,!0);else return 1;return 0},finalize:function(t,e){e._lastChild?e.sourcepos[1]=e._lastChild.sourcepos[1]:(e.sourcepos[1][0]=e.sourcepos[0][0],e.sourcepos[1][1]=e._listData.markerOffset+e._listData.padding)},canContain:function(t){return t!=="item"},acceptsLines:!1},heading:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},thematic_break:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},code_block:{continue:function(t,e){var n=t.currentLine,r=t.indent;if(e._isFenced){var i=r<=3&&n.charAt(t.nextNonspace)===e._fenceChar&&n.slice(t.nextNonspace).match(Q9);if(i&&i[0].length>=e._fenceLength)return t.lastLineLength=t.offset+r+i[0].length,t.finalize(e,t.lineNumber),2;for(var s=e._fenceOffset;s>0&&ln(Ft(n,t.offset));)t.advanceOffset(1,!0),s--}else if(r>=r1)t.advanceOffset(r1,!0);else if(t.blank)t.advanceNextNonspace();else return 1;return 0},finalize:function(t,e){if(e._isFenced){var n=e._string_content,r=n.indexOf(`
8
+ `),i=n.slice(0,r),s=n.slice(r+1);e.info=Ro(i.trim()),e._literal=s}else{for(var a=e._string_content.split(`
9
+ `);/^[ \t]*$/.test(a[a.length-1]);)a.pop();e._literal=a.join(`
10
+ `)+`
11
+ `,e.sourcepos[1][0]=e.sourcepos[0][0]+a.length-1,e.sourcepos[1][1]=e.sourcepos[0][1]+a[a.length-1].length-1}e._string_content=null},canContain:function(){return!1},acceptsLines:!0},html_block:{continue:function(t,e){return t.blank&&(e._htmlBlockType===6||e._htmlBlockType===7)?1:0},finalize:function(t,e){e._literal=e._string_content.replace(/\n$/,""),e._string_content=null},canContain:function(){return!1},acceptsLines:!0},paragraph:{continue:function(t){return t.blank?1:0},finalize:function(){},canContain:function(){return!1},acceptsLines:!0}},a8=[function(t){return!t.indented&&Ft(t.currentLine,t.nextNonspace)===Jo?(t.advanceNextNonspace(),t.advanceOffset(1,!1),ln(Ft(t.currentLine,t.offset))&&t.advanceOffset(1,!0),t.closeUnmatchedBlocks(),t.addChild("block_quote",t.nextNonspace),1):0},function(t){var e;if(!t.indented&&(e=t.currentLine.slice(t.nextNonspace).match(K9))){t.advanceNextNonspace(),t.advanceOffset(e[0].length,!1),t.closeUnmatchedBlocks();var n=t.addChild("heading",t.nextNonspace);return n.level=e[0].trim().length,n._string_content=t.currentLine.slice(t.offset).replace(/^[ \t]*#+[ \t]*$/,"").replace(/[ \t]+#+[ \t]*$/,""),t.advanceOffset(t.currentLine.length-t.offset),2}else return 0},function(t){var e;if(!t.indented&&(e=t.currentLine.slice(t.nextNonspace).match(Z9))){var n=e[0].length;t.closeUnmatchedBlocks();var r=t.addChild("code_block",t.nextNonspace);return r._isFenced=!0,r._fenceLength=n,r._fenceChar=e[0][0],r._fenceOffset=t.indent,t.advanceNextNonspace(),t.advanceOffset(n,!1),2}else return 0},function(t,e){if(!t.indented&&Ft(t.currentLine,t.nextNonspace)===U9){var n=t.currentLine.slice(t.nextNonspace),r;for(r=1;r<=7;r++)if(z9[r].test(n)&&(r<7||e.type!=="paragraph"&&!(!t.allClosed&&!t.blank&&t.tip.type==="paragraph"))){t.closeUnmatchedBlocks();var i=t.addChild("html_block",t.offset);return i._htmlBlockType=r,2}}return 0},function(t,e){var n;if(!t.indented&&e.type==="paragraph"&&(n=t.currentLine.slice(t.nextNonspace).match(J9))){t.closeUnmatchedBlocks();for(var r;Ft(e._string_content,0)===es&&(r=t.inlineParser.parseReference(e._string_content,t.refmap));)e._string_content=e._string_content.slice(r);if(e._string_content.length>0){var i=new Nt("heading",e.sourcepos);return i.level=n[0][0]==="="?1:2,i._string_content=e._string_content,e.insertAfter(i),e.unlink(),t.tip=i,t.advanceOffset(t.currentLine.length-t.offset,!1),2}else return 0}else return 0},function(t){return!t.indented&&Y9.test(t.currentLine.slice(t.nextNonspace))?(t.closeUnmatchedBlocks(),t.addChild("thematic_break",t.nextNonspace),t.advanceOffset(t.currentLine.length-t.offset,!1),2):0},function(t,e){var n;return(!t.indented||e.type==="list")&&(n=i8(t,e))?(t.closeUnmatchedBlocks(),(t.tip.type!=="list"||!o8(e._listData,n))&&(e=t.addChild("list",t.nextNonspace),e._listData=n),e=t.addChild("item",t.nextNonspace),e._listData=n,1):0},function(t){return t.indented&&t.tip.type!=="paragraph"&&!t.blank?(t.advanceOffset(r1,!0),t.closeUnmatchedBlocks(),t.addChild("code_block",t.offset),2):0}],c8=function(t,e){for(var n=this.currentLine,r,i,s;t>0&&(s=n[this.offset]);)s===" "?(r=4-this.column%4,e?(this.partiallyConsumedTab=r>t,i=r>t?t:r,this.column+=i,this.offset+=this.partiallyConsumedTab?0:1,t-=i):(this.partiallyConsumedTab=!1,this.column+=r,this.offset+=1,t-=1)):(this.partiallyConsumedTab=!1,this.offset+=1,this.column+=1,t-=1)},u8=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn,this.partiallyConsumedTab=!1},h8=function(){for(var t=this.currentLine,e=this.offset,n=this.column,r;(r=t.charAt(e))!=="";)if(r===" ")e++,n++;else if(r===" ")e++,n+=4-n%4;else break;this.blank=r===`
12
+ `||r==="\r"||r==="",this.nextNonspace=e,this.nextNonspaceColumn=n,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=r1},f8=function(t){var e=!0,n,r=this.doc;this.oldtip=this.tip,this.offset=0,this.column=0,this.blank=!1,this.partiallyConsumedTab=!1,this.lineNumber+=1,t.indexOf("\0")!==-1&&(t=t.replace(/\0/g,"\uFFFD")),this.currentLine=t;for(var i;(i=r._lastChild)&&i._open;){switch(r=i,this.findNextNonspace(),this.blocks[r.type].continue(this,r)){case 0:break;case 1:e=!1;break;case 2:return;default:throw"continue returned illegal value, must be 0, 1, or 2"}if(!e){r=r._parent;break}}this.allClosed=r===this.oldtip,this.lastMatchedContainer=r;for(var s=r.type!=="paragraph"&&is[r.type].acceptsLines,a=this.blockStarts,c=a.length;!s;){if(this.findNextNonspace(),!this.indented&&!G9.test(t.slice(this.nextNonspace))){this.advanceNextNonspace();break}for(var u=0;u<c;){var l=a[u](this,r);if(l===1){r=this.tip;break}else if(l===2){r=this.tip,s=!0;break}else u++}if(u===c){this.advanceNextNonspace();break}}!this.allClosed&&!this.blank&&this.tip.type==="paragraph"?this.addLine():(this.closeUnmatchedBlocks(),n=r.type,this.blocks[n].acceptsLines?(this.addLine(),n==="html_block"&&r._htmlBlockType>=1&&r._htmlBlockType<=5&&X9[r._htmlBlockType].test(this.currentLine.slice(this.offset))&&(this.lastLineLength=t.length,this.finalize(r,this.lineNumber))):this.offset<t.length&&!this.blank&&(r=this.addChild("paragraph",this.offset),this.advanceNextNonspace(),this.addLine())),this.lastLineLength=t.length},m8=function(t,e){var n=t._parent;t._open=!1,t.sourcepos[1]=[e,this.lastLineLength],this.blocks[t.type].finalize(this,t),this.tip=n},d8=function(t){var e,n,r,i=t.walker();for(this.inlineParser.refmap=this.refmap,this.inlineParser.options=this.options;n=i.next();)e=n.node,r=e.type,!n.entering&&(r==="paragraph"||r==="heading")&&this.inlineParser.parse(e)},os=function(){var t=new Nt("document",[[1,1],[0,0]]);return t},g8=function(t){this.doc=new os,this.tip=this.doc,this.refmap={},this.lineNumber=0,this.lastLineLength=0,this.offset=0,this.column=0,this.lastMatchedContainer=this.doc,this.currentLine="",this.options.time&&console.time("preparing input");var e=t.split(t8),n=e.length;t.charCodeAt(t.length-1)===F9&&(n-=1),this.options.time&&console.timeEnd("preparing input"),this.options.time&&console.time("block parsing");for(var r=0;r<n;r++)this.incorporateLine(e[r]);for(;this.tip;)this.finalize(this.tip,n);return this.options.time&&console.timeEnd("block parsing"),this.options.time&&console.time("inline parsing"),this.processInlines(this.doc),this.options.time&&console.timeEnd("inline parsing"),this.doc};function ss(t){return{doc:new os,blocks:is,blockStarts:a8,tip:this.doc,oldtip:this.doc,currentLine:"",lineNumber:0,offset:0,column:0,nextNonspace:0,nextNonspaceColumn:0,indent:0,indented:!1,blank:!1,partiallyConsumedTab:!1,allClosed:!0,lastMatchedContainer:this.doc,refmap:{},lastLineLength:0,inlineParser:new H9(t),findNextNonspace:h8,advanceOffset:c8,advanceNextNonspace:u8,addLine:n8,addChild:r8,incorporateLine:f8,finalize:m8,processInlines:d8,closeUnmatchedBlocks:s8,parse:g8,options:t||{}}}function Te(){}function p8(t){var e=t.walker(),n,r;for(this.buffer="",this.lastOut=`
13
+ `;n=e.next();)r=n.node.type,this[r]&&this[r](n.node,n.entering);return this.buffer}function y8(t){this.buffer+=t,this.lastOut=t}function x8(){this.lastOut!==`
14
+ `&&this.lit(`
15
+ `)}function b8(t){this.lit(t)}function v8(t){return t}Te.prototype.render=p8,Te.prototype.out=b8,Te.prototype.lit=y8,Te.prototype.cr=x8,Te.prototype.esc=v8;var w8=/^javascript:|vbscript:|file:|data:/i,k8=/^data:image\/(?:png|gif|jpeg|webp)/i,ls=function(t){return w8.test(t)&&!k8.test(t)};function N8(t,e,n){if(!(this.disableTags>0)){if(this.buffer+="<"+t,e&&e.length>0)for(var r=0,i;(i=e[r])!==void 0;)this.buffer+=" "+i[0]+'="'+i[1]+'"',r++;n&&(this.buffer+=" /"),this.buffer+=">",this.lastOut=">"}}function yt(t){t=t||{},t.softbreak=t.softbreak||`
16
+ `,this.esc=t.esc||t1,this.disableTags=0,this.lastOut=`
17
+ `,this.options=t}function A8(t){this.out(t.literal)}function E8(){this.lit(this.options.softbreak)}function S8(){this.tag("br",[],!0),this.cr()}function T8(t,e){var n=this.attrs(t);e?(this.options.safe&&ls(t.destination)||n.push(["href",this.esc(t.destination)]),t.title&&n.push(["title",this.esc(t.title)]),this.tag("a",n)):this.tag("/a")}function C8(t,e){e?(this.disableTags===0&&(this.options.safe&&ls(t.destination)?this.lit('<img src="" alt="'):this.lit('<img src="'+this.esc(t.destination)+'" alt="')),this.disableTags+=1):(this.disableTags-=1,this.disableTags===0&&(t.title&&this.lit('" title="'+this.esc(t.title)),this.lit('" />')))}function M8(t,e){this.tag(e?"em":"/em")}function B8(t,e){this.tag(e?"strong":"/strong")}function L8(t,e){var n=t.parent.parent,r=this.attrs(t);n!==null&&n.type==="list"&&n.listTight||(e?(this.cr(),this.tag("p",r)):(this.tag("/p"),this.cr()))}function $8(t,e){var n="h"+t.level,r=this.attrs(t);e?(this.cr(),this.tag(n,r)):(this.tag("/"+n),this.cr())}function q8(t){this.tag("code"),this.out(t.literal),this.tag("/code")}function O8(t){var e=t.info?t.info.split(/\s+/):[],n=this.attrs(t);if(e.length>0&&e[0].length>0){var r=this.esc(e[0]);/^language-/.exec(r)||(r="language-"+r),n.push(["class",r])}this.cr(),this.tag("pre"),this.tag("code",n),this.out(t.literal),this.tag("/code"),this.tag("/pre"),this.cr()}function P8(t){var e=this.attrs(t);this.cr(),this.tag("hr",e,!0),this.cr()}function D8(t,e){var n=this.attrs(t);e?(this.cr(),this.tag("blockquote",n),this.cr()):(this.cr(),this.tag("/blockquote"),this.cr())}function V8(t,e){var n=t.listType==="bullet"?"ul":"ol",r=this.attrs(t);if(e){var i=t.listStart;i!==null&&i!==1&&r.push(["start",i.toString()]),this.cr(),this.tag(n,r),this.cr()}else this.cr(),this.tag("/"+n),this.cr()}function j8(t,e){var n=this.attrs(t);e?this.tag("li",n):(this.tag("/li"),this.cr())}function R8(t){this.options.safe?this.lit("<!-- raw HTML omitted -->"):this.lit(t.literal)}function I8(t){this.cr(),this.options.safe?this.lit("<!-- raw HTML omitted -->"):this.lit(t.literal),this.cr()}function H8(t,e){e&&t.onEnter?this.lit(t.onEnter):!e&&t.onExit&&this.lit(t.onExit)}function F8(t,e){this.cr(),e&&t.onEnter?this.lit(t.onEnter):!e&&t.onExit&&this.lit(t.onExit),this.cr()}function U8(t){this.lit(this.esc(t))}function z8(t){var e=[];if(this.options.sourcepos){var n=t.sourcepos;n&&e.push(["data-sourcepos",String(n[0][0])+":"+String(n[0][1])+"-"+String(n[1][0])+":"+String(n[1][1])])}return e}yt.prototype=Object.create(Te.prototype),yt.prototype.text=A8,yt.prototype.html_inline=R8,yt.prototype.html_block=I8,yt.prototype.softbreak=E8,yt.prototype.linebreak=S8,yt.prototype.link=T8,yt.prototype.image=C8,yt.prototype.emph=M8,yt.prototype.strong=B8,yt.prototype.paragraph=L8,yt.prototype.heading=$8,yt.prototype.code=q8,yt.prototype.code_block=O8,yt.prototype.thematic_break=P8,yt.prototype.block_quote=D8,yt.prototype.list=V8,yt.prototype.item=j8,yt.prototype.custom_inline=H8,yt.prototype.custom_block=F8,yt.prototype.esc=t1,yt.prototype.out=U8,yt.prototype.tag=N8,yt.prototype.attrs=z8;var X8=/\<[^>]*\>/;function Y8(t){return t.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}function ze(t){t=t||{},this.disableTags=0,this.lastOut=`
18
+ `,this.indentLevel=0,this.indent=" ",this.esc=t.esc||t1,this.options=t}function G8(t){this.buffer="";var e,n,r=t.walker(),i,s,a,c,u,l,h=this.options;for(h.time&&console.time("rendering"),this.buffer+=`<?xml version="1.0" encoding="UTF-8"?>
19
+ `,this.buffer+=`<!DOCTYPE document SYSTEM "CommonMark.dtd">
20
+ `;i=r.next();)if(a=i.entering,s=i.node,l=s.type,c=s.isContainer,u=l==="thematic_break"||l==="linebreak"||l==="softbreak",n=Y8(l),a){switch(e=[],l){case"document":e.push(["xmlns","http://commonmark.org/xml/1.0"]);break;case"list":s.listType!==null&&e.push(["type",s.listType.toLowerCase()]),s.listStart!==null&&e.push(["start",String(s.listStart)]),s.listTight!==null&&e.push(["tight",s.listTight?"true":"false"]);var d=s.listDelimiter;if(d!==null){var m="";d==="."?m="period":m="paren",e.push(["delimiter",m])}break;case"code_block":s.info&&e.push(["info",s.info]);break;case"heading":e.push(["level",String(s.level)]);break;case"link":case"image":e.push(["destination",s.destination]),e.push(["title",s.title]);break;case"custom_inline":case"custom_block":e.push(["on_enter",s.onEnter]),e.push(["on_exit",s.onExit]);break}if(h.sourcepos){var f=s.sourcepos;f&&e.push(["sourcepos",String(f[0][0])+":"+String(f[0][1])+"-"+String(f[1][0])+":"+String(f[1][1])])}if(this.cr(),this.out(this.tag(n,e,u)),c)this.indentLevel+=1;else if(!c&&!u){var p=s.literal;p&&this.out(this.esc(p)),this.out(this.tag("/"+n))}}else this.indentLevel-=1,this.cr(),this.out(this.tag("/"+n));return h.time&&console.timeEnd("rendering"),this.buffer+=`
21
+ `,this.buffer}function W8(t){this.disableTags>0?this.buffer+=t.replace(X8,""):this.buffer+=t,this.lastOut=t}function _8(){if(this.lastOut!==`
22
+ `){this.buffer+=`
23
+ `,this.lastOut=`
24
+ `;for(var t=this.indentLevel;t>0;t--)this.buffer+=this.indent}}function K8(t,e,n){var r="<"+t;if(e&&e.length>0)for(var i=0,s;(s=e[i])!==void 0;)r+=" "+s[0]+'="'+this.esc(s[1])+'"',i++;return n&&(r+=" /"),r+=">",r}ze.prototype=Object.create(Te.prototype),ze.prototype.render=G8,ze.prototype.out=W8,ze.prototype.cr=_8,ze.prototype.tag=K8,ze.prototype.esc=t1;const Z8=["text-anchor","font-size"],Q8={key:0},an={__name:"CoreMarkdown",props:{x:{type:Number,default:0},y:{type:Number,default:0},text:null,title:null,size:Number,color:String,stroke:String,linewidth:Number,linetype:String,alpha:{type:Number,default:1},angle:{type:Number,default:0},translateX:{type:Number,default:0},translateY:{type:Number,default:0},anchorX:Number,anchorY:Number,dockX:Number,dockY:Number,fontFamily:String,fontSize:Number,textLength:Number,textAnchor:{type:String,default:"middle"}},setup(t){const e=new ss,n=o.useTemplateRef("ele"),r=o.reactive({width:0,height:0});o.watch([n,()=>t.fontSize,()=>t.size,()=>t.text,()=>t.textLength,()=>t.fontFamily],async([a])=>{if(!a)return;await o.nextTick();let{width:c,height:u}=a.getBBox();r.width=c,r.height=u});const i=o.computed(()=>{let{width:a,height:c}=r,u=[],l=({start:-.5,end:.5}[t.textAnchor]??0)*a;if(t.dockX!=null||t.dockY!=null){let h={left:0,center:.5,right:1}[t.dockX]??+(t.dockX??.5),d={bottom:0,center:.5,top:1}[t.dockY]??+(t.dockY??.5);isNaN(h)&&(h=.5),isNaN(d)&&(d=.5);let m=a*Math.abs(Math.cos(t.angle*Math.PI/180))+c*Math.abs(Math.sin(t.angle*Math.PI/180)),f=a*Math.abs(Math.sin(t.angle*Math.PI/180))+c*Math.abs(Math.cos(t.angle*Math.PI/180)),p=t.translateX,y=t.translateY;u.push(`translate(${m*(.5-h)+p},${f*(d-.5)+y})`),t.angle&&u.push(`rotate(${t.angle})`),u.push(`translate(${l},${-c/2})`)}else{let h={left:0,center:.5,right:1}[t.anchorX]??+(t.anchorX??.5),d={bottom:0,center:.5,top:1}[t.anchorY]??+(t.anchorY??.5);isNaN(h)&&(h=.5),isNaN(d)&&(d=.5);let m=a,f=c,p=t.translateX*Math.cos(t.angle*Math.PI/180)+t.translateY*Math.sin(t.angle*Math.PI/180),y=t.translateY*Math.cos(t.angle*Math.PI/180)-t.translateX*Math.sin(t.angle*Math.PI/180);t.angle&&u.push(`rotate(${t.angle})`),u.push(`translate(${m*(.5-h)+p+l},${f*(d-.5)+y-c/2})`)}return{x:t.x,y:t.y,fill:t.color||null,"fill-opacity":t.alpha==1?null:t.alpha,stroke:t.stroke||null,"stroke-width":t.linewidth,"stroke-dasharray":At(t.linetype).join(" ")||null,"stroke-opacity":t.alpha==1?null:t.alpha,transform:u.join(" ")||null,"font-family":t.fontFamily||null,textLength:t.textLength,lengthAdjust:t.textLength?"spacingAndGlyphs":null,"transform-origin":`${t.x} ${t.y}`}}),s=o.computed(()=>{const a=e.parse(String(t.text)).walker(),c=[];let u=[],l=[1],h=0,d=!0,m;for(;m=a.next();){let{node:{type:f,literal:p},entering:y}=m,b=l.at(-1);if(y){if(f==="text"||f==="code"){let w=h+(d?1:0);const C=Object.assign({x:d?t.x:null,dy:me(w||null,"em")},...u,{"font-family":f==="code"?"monospace":null,"font-size":b===1?null:`${b}em`});h=0,d=!1,c.push({text:p,vbind:C})}else if(f==="strong")u.push({"font-weight":"bold"});else if(f==="emph")u.push({"font-style":"italic"});else if(f==="softbreak"||f==="paragraph")c.push({text:`
25
+ `}),d=!0;else if(f==="html_inline"){const w=p;if(w.includes("color=")){const C=w.match(/color=(['"])(.*?)\1/i)?.[2]??w.match(/color=(\S*)/)?.[1];C&&u.push({fill:C})}else w.includes("</font>")?u.pop():w.includes("<sup>")?(h-=.4*b,l.push(b*.7)):w.includes("</sup>")?(h+=.4*l.at(-1),l.pop()):w.includes("<sub>")?(h+=.25*b,l.push(b*.7)):w.includes("</sub>")&&(h-=.25*l.at(-1),l.pop())}}else["strong","emph"].includes(f)&&u.pop()}return c});return(a,c)=>(o.openBlock(),o.createElementBlock("text",o.mergeProps({ref_key:"ele",ref:n},i.value,{"text-anchor":t.textAnchor,"font-size":(t.fontSize??t.size*4)||null}),[t.title?(o.openBlock(),o.createElementBlock("title",Q8,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0),c[0]||(c[0]=o.createTextVNode()),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,u=>(o.openBlock(),o.createElementBlock("tspan",o.mergeProps({ref_for:!0},u.vbind),o.toDisplayString(u.text),17))),256))],16,Z8))}},J8=["transform"],t5=["x2"],e5={class:"vvplot-interactive",fill:"transparent"},n5=["width","cursor"],r5={key:0,class:"vvplot-interactive",fill:"transparent"},i5=["x"],o5={__name:"CoreAxisH",props:{coord:String,ticks:{type:Array,default:()=>[]},title:String,coord2pos:Function,pos2coord:Function,layout:Object,theme:{type:Object,default:()=>({})},action:{type:Array,default:()=>[]},position:null,activeTransform:Object,transition:String},emits:["click","dblclick","contextmenu","pointerdown","pointerup","pointerover","pointerout","pointerenter","pointerleave","pointermove","wheel","singleclick","move","zoom","rescale","nudge","rangechange","update:transition"],setup(t,{emit:e}){const n=o.computed(()=>t.layout.width+t.layout.l+t.layout.r),r=o.computed(()=>t.layout.height+t.layout.t+t.layout.b),i=o.inject("rangePreview"),s=o.computed(()=>{let g=0,k={bottom:"0%",center:"50%",top:"100%"}[t.position]??t.position;return typeof k=="string"&&k.endsWith("%")?g=r.value*(1-k.slice(0,-1)/100):g=t.activeTransform.translateV+t.coord2pos({v:+k}).v*t.activeTransform.scaleV+t.layout.top,`translate(0, ${g})`}),a=o.computed(()=>{let g=t.theme.title_position??t.theme.tick_position,k=g,N=t.theme.title_dock_x,T=t.theme.title_dock_y,S=0;return typeof g!="number"&&(k={left:0,bottom:.5,top:.5,right:1}[g]??.5,N??={left:1,right:0}[g]??.5,T??={top:0,bottom:1}[g]??.5,S=({top:-1,bottom:1}[g]??0)*(t.theme.title_offset??0)),{x:n.value*k,y:S,angle:t.theme.title_angle,dockX:N,dockY:T,fontSize:t.theme.title_size,text:t.title,fill:t.theme.title_color,"font-family":"sans-serif",...t.theme.title_style}}),c=o.computed(()=>({stroke:t.theme.line_color,"stroke-width":t.theme.line_width,"stroke-dasharray":t.theme.line_dasharray,style:t.theme.line_style})),u=o.computed(()=>{let g=[];for(let k of t.ticks){typeof k=="number"&&(k={position:k});let N=t.coord2pos({h:k.position}).h,T=N*(t.activeTransform.scaleH-1)+t.activeTransform.translateH,S=N+t.layout.l;if(S+T<0||S+T>n.value)continue;let R=(t.theme.tick_position=="top"?-1:1)*(k.length??t.theme.tick_length);g.push({key:"line-"+k.position,y1:0,y2:R,x1:S,x2:S,stroke:k.color??t.theme.tick_color,"stroke-width":k.width??t.theme.tick_width,transform:T?`translate(${T},0)`:null,style:{transition:t.transition}})}return g.filter(k=>k.stroke!=null).sort((k,N)=>k.x1-N.x1)}),l=o.computed(()=>{let g=t.theme.tick_position=="top",k=[];for(let N of t.ticks){typeof N=="number"&&(N={position:N,label:N});let T=t.coord2pos({h:N.position}).h,S=T*(t.activeTransform.scaleH-1)+t.activeTransform.translateH,R=T+t.layout.l;if(R+S<0||R+S>n.value)continue;let D=(g?-1:1)*(N.length??t.theme.tick_length),F,I,H,j;t.theme.tick_anchor_x!=null||t.theme.tick_anchor_y!=null?(F=t.theme.tick_anchor_x??.5,I=t.theme.tick_anchor_y??(g?0:1)):(H=t.theme.tick_dock_x??.5,j=t.theme.tick_dock_y??(g?0:1)),k.push({wrapper:{key:"text-"+N.position,transform:S?`translate(${S},0)`:null,style:{transition:t.transition}},text:{x:R,y:D,angle:t.theme.text_angle,anchorX:F,anchorY:I,dockX:H,dockY:j,text:N.label,title:N.title??N.label,fontSize:N.size??t.theme.label_size,fill:N.color??t.theme.label_color,"font-family":"sans-serif",...t.theme.label_style}})}return k.filter(N=>N.text.fill!=null).sort((N,T)=>N.text.x-T.text.x)}),h=o.useTemplateRef("i");function d(g){let k=h.value.getBoundingClientRect(),N=Math.trunc(g.clientX)-k.left-t.layout.left,T=k.left+t.layout.left+t.layout.width-Math.trunc(g.clientX),S={l:N,r:T},{x:R,y:D}=t.pos2coord({h:N});return R&&(S.x=R),D&&(S.y=D),S}const m=e;let f,p=0;function y(g){let k=d(g);m("pointerdown",g,k);let N=!1;function T(I){(Math.abs(I.screenX-g.screenX)>3||Math.abs(I.screenY-g.screenY)>3)&&(N=!0,I.currentTarget.removeEventListener("pointermove",T))}g.target.addEventListener("pointermove",T,{passive:!0}),g.target.addEventListener("pointerup",function(I){if(g.target.removeEventListener("pointermove",T),!N){let H=d(I);m("singleclick",new PointerEvent("singleclick",I),H)}},{once:!0});let S=t.action.find(I=>I.action=="move");if(!S)return;g.preventDefault(),g.stopPropagation(),g.target.style.cursor="grabbing",f=clearTimeout(f);let R=0,D=t.layout.width,F=t.coord2pos(S);g.target.setPointerCapture(g.pointerId),g.target.onpointermove=I=>{if(p+=I.movementX,!N)return;let H=ut(-p,{min:F.hmin-R,max:F.hmax-D}),{xmin:j,xmax:U,ymin:z,ymax:G}=t.pos2coord({hmin:R+H,hmax:D+H});Object.assign(i,{xmin:j,xmax:U,ymin:z,ymax:G})},g.target.onpointerup=I=>{g.target.onpointermove=null,g.target.onpointerup=null,g.target.style.cursor=null,N&&(f=setTimeout(()=>{P(S,I),p=0},300))}}function b(g){let k=t.action.find(j=>j.action=="rescale");if(!k)return;g.preventDefault(),g.stopPropagation();let{"min-range-h":N=0}=k,T=d(g),S=t.coord2pos(T).h,R=S-T.l,D=S+T.r,F=t.pos2coord({hmin:R,hmax:D}),I={min:t.coord2pos(k).hmin,max:t.coord2pos({hmin:F.hmax-N,hmax:F.hmin+N}).hmin},H=0;g.target.setPointerCapture(g.pointerId),g.target.onpointermove=j=>{H+=j.movementX;let{xmin:U,xmax:z,ymin:G,ymax:W}=t.pos2coord({hmin:ut(D-(D-R)*T.r/Math.max(T.r-H,1),I),hmax:D});Object.assign(i,{xmin:U,xmax:z,ymin:G,ymax:W})},g.target.onpointerup=j=>{g.target.onpointermove=null,g.target.onpointerup=null,P(k,j)}}function w(g){let k=t.action.find(j=>j.action=="rescale");if(!k)return;g.preventDefault(),g.stopPropagation();let{"min-range-h":N=0}=k,T=d(g),S=t.coord2pos(T).h,R=S-T.l,D=S+T.r,F=t.pos2coord({hmin:R,hmax:D}),I={min:t.coord2pos({hmin:F.hmax-N,hmax:F.hmin+N}).hmax,max:t.coord2pos(k).hmax},H=0;g.target.setPointerCapture(g.pointerId),g.target.onpointermove=j=>{H+=j.movementX;let{xmin:U,xmax:z,ymin:G,ymax:W}=t.pos2coord({hmin:R,hmax:ut(R+(D-R)*T.l/Math.max(T.l+H,1),I)});Object.assign(i,{xmin:U,xmax:z,ymin:G,ymax:W})},g.target.onpointerup=j=>{g.target.onpointermove=null,g.target.onpointerup=null,P(k,j)}}let C=0,A;function L(g){let k=d(g);m("wheel",g,k);let N=t.action.find(T=>["zoom","nudge"].includes(T.action)&&["ctrlKey","shiftKey","altKey","metaKey"].every(S=>T[S]==g[S]));N&&(A=clearTimeout(A),g.preventDefault(),g.stopPropagation(),m("update:transition","transform 0.1s ease-out"),C+=g.deltaY,q(N,k,C),A=setTimeout(()=>{P(N,g),C=0},300))}function q(g,k,N){if(g.action=="zoom"){let{"min-range-h":T=0,sensitivity:S=1.25}=g,R=S**(N/100),D=t.coord2pos(g),F=Math.max(k.l-Math.max(k.l,0)*R,D.hmin??-1/0),I=Math.min(k.l+Math.max(k.r,0)*R,D.hmax??1/0),{[t.coord+"min"]:H,[t.coord+"max"]:j}=t.pos2coord({hmin:F,hmax:I});if(R<1&&j-H<T){let U=(j+H)/2;H=U-T/2,j=U+T/2}i[t.coord+"min"]=H,i[t.coord+"max"]=j}if(g.action=="nudge"){let{sensitivity:T=.1}=g,S=t.coord2pos(g),R=0,D=t.layout.width,F=T*t.layout.width*(-N/120),I=ut(-F,{min:S.hmin-R,max:S.hmax-D}),{xmin:H,xmax:j,ymin:U,ymax:z}=t.pos2coord({hmin:R+I,hmax:D+I});Object.assign(i,{xmin:H,xmax:j,ymin:U,ymax:z})}}function P(g,k){let N=Mt(i)??{};if(!Object.keys(N).length)return;let T=new PointerEvent(k.type,k);xe(g.emit,N,T)||m(g.action,N,T),m("rangechange",N),Object.assign(i,{xmin:void 0,xmax:void 0,ymin:void 0,ymax:void 0})}const v={pointerup(g){m("pointerup",g,d(g))},pointerover(g){m("pointerover",g,d(g))},pointerout(g){m("pointerout",g,d(g))},pointerenter(g){m("pointerenter",g,d(g))},pointerleave(g){m("pointerleave",g,d(g))},dblclick(g){m("dblclick",g,d(g))},click(g){m("click",g,d(g))},contextmenu(g){m("contextmenu",g,d(g))},pointermove(g){m("pointermove",g,d(g))},pointerdown:y,wheel:L};return(g,k)=>(o.openBlock(),o.createElementBlock("g",{transform:s.value,style:o.normalizeStyle({transition:t.transition})},[o.createElementVNode("line",o.mergeProps({ref:"i",x1:0,x2:n.value,y1:0,y2:0},c.value),null,16,t5),k[1]||(k[1]=o.createTextVNode()),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,N=>(o.openBlock(),o.createElementBlock("line",o.mergeProps({ref_for:!0},N),null,16))),256)),k[2]||(k[2]=o.createTextVNode()),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,N=>(o.openBlock(),o.createElementBlock("g",o.mergeProps({ref_for:!0},N.wrapper),[t.theme.label_type=="markdown"?(o.openBlock(),o.createBlock(an,o.mergeProps({key:0,ref_for:!0},N.text),null,16)):(o.openBlock(),o.createBlock(Ue,o.mergeProps({key:1,ref_for:!0},N.text),null,16))],16))),256)),k[3]||(k[3]=o.createTextVNode()),o.createElementVNode("g",e5,[o.createElementVNode("rect",o.mergeProps({width:n.value,height:10,y:-5},o.toHandlers(v,!0),{cursor:t.action.some?.(N=>N.action=="move")?"grab":null}),null,16,n5)]),k[4]||(k[4]=o.createTextVNode()),t.action.some?.(N=>N.action=="rescale")?(o.openBlock(),o.createElementBlock("g",r5,[o.createElementVNode("rect",{width:20,height:10,y:-5,style:{cursor:"ew-resize"},onPointerdown:b},null,32),k[0]||(k[0]=o.createTextVNode()),o.createElementVNode("rect",{width:20,height:10,y:-5,x:n.value-20,style:{cursor:"ew-resize"},onPointerdown:w},null,40,i5)])):o.createCommentVNode("",!0),k[5]||(k[5]=o.createTextVNode()),a.value.text?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[t.theme.title_type=="markdown"?(o.openBlock(),o.createBlock(an,o.normalizeProps(o.mergeProps({key:0},a.value)),null,16)):(o.openBlock(),o.createBlock(Ue,o.normalizeProps(o.mergeProps({key:1},a.value)),null,16))],64)):o.createCommentVNode("",!0)],12,J8))}},s5=["transform"],l5=["y2"],a5={class:"vvplot-interactive",fill:"transparent"},c5=["height","cursor"],u5={key:0,class:"vvplot-interactive",fill:"transparent"},h5=["y"],f5={__name:"CoreAxisV",props:{coord:String,ticks:{type:Array,default:()=>[]},title:String,coord2pos:Function,pos2coord:Function,layout:Object,theme:{type:Object,default:()=>({})},action:{type:Array,default:()=>[]},position:null,activeTransform:Object,transition:String},emits:["click","dblclick","contextmenu","pointerdown","pointerup","pointerover","pointerout","pointerenter","pointerleave","pointermove","wheel","singleclick","move","zoom","rescale","nudge","rangechange","update:transition"],setup(t,{emit:e}){const n=o.computed(()=>t.layout.width+t.layout.l+t.layout.r),r=o.computed(()=>t.layout.height+t.layout.t+t.layout.b),i=o.inject("rangePreview"),s=o.computed(()=>{let g=0,k={left:"0%",center:"50%",right:"100%"}[t.position]??t.position;return typeof k=="string"&&k.endsWith("%")?g=n.value*k.slice(0,-1)/100:g=t.activeTransform.translateH+t.coord2pos({h:+k}).h*t.activeTransform.scaleH+t.layout.left,`translate(${g}, 0)`}),a=o.computed(()=>{let g=t.theme.title_position??t.theme.tick_position,k=g,N=t.theme.title_dock_x,T=t.theme.title_dock_y,S=0;return typeof g!="number"&&(k={bottom:0,left:.5,right:.5,top:1}[g]??.5,N??={left:1,right:0}[g]??.5,T??={top:0,bottom:1}[g]??.5,S=({left:-1,right:1}[g]??0)*(t.theme.title_offset??0)),{x:S,y:r.value*(1-k),angle:t.theme.title_angle,dockX:N,dockY:T,fontSize:t.theme.title_size,text:t.title,fill:t.theme.title_color,"font-family":"sans-serif",...t.theme.title_style}}),c=o.computed(()=>({stroke:t.theme.line_color,"stroke-width":t.theme.line_width,"stroke-dasharray":t.theme.line_dasharray,style:t.theme.line_style})),u=o.computed(()=>{let g=[];for(let k of t.ticks){typeof k=="number"&&(k={position:k});let N=t.coord2pos({v:k.position}).v,T=N*(t.activeTransform.scaleV-1)+t.activeTransform.translateV,S=N+t.layout.t;if(S+T<0||S+T>r.value)continue;let R=(t.theme.tick_position=="right"?1:-1)*(k.length??t.theme.tick_length);g.push({key:"line-"+k.position,y1:S,y2:S,x1:0,x2:R,stroke:k.color??t.theme.tick_color,"stroke-width":k.width??t.theme.tick_width,transform:T?`translate(0,${T})`:null,style:{transition:t.transition}})}return g.filter(k=>k.stroke!=null).sort((k,N)=>k.y1-N.y1)}),l=o.computed(()=>{let g=t.theme.tick_position=="right",k=[];for(let N of t.ticks){typeof N=="number"&&(N={position:N});let T=t.coord2pos({v:N.position}).v,S=T*(t.activeTransform.scaleV-1)+t.activeTransform.translateV,R=T+t.layout.t;if(R+S<0||R+S>r.value)continue;let D=(g?1:-1)*((N.length??t.theme.tick_length)+3),F,I,H,j;t.theme.tick_anchor_x!=null||t.theme.tick_anchor_y!=null?(F=t.theme.tick_anchor_x??(g?0:1),I=t.theme.tick_anchor_y??.5):(H=t.theme.tick_dock_x??(g?0:1),j=t.theme.tick_dock_y??.5),k.push({wrapper:{key:"text-"+N.position,transform:S?`translate(0,${S})`:null,style:{transition:t.transition}},text:{y:R,x:D,angle:t.theme.text_angle,anchorX:F,anchorY:I,dockX:H,dockY:j,text:N.label,title:N.title??N.label,fontSize:N.size??t.theme.label_size,fill:N.color??t.theme.label_color,"font-family":"sans-serif",...t.theme.label_style}})}return k.filter(N=>N.text.fill!=null).sort((N,T)=>N.text.y-T.text.y)}),h=o.useTemplateRef("i");function d(g){let k=h.value.getBoundingClientRect(),N=Math.trunc(g.clientY)-k.top-t.layout.top,T=k.top+t.layout.top+t.layout.height-Math.trunc(g.clientY),S={t:N,b:T},{x:R,y:D}=t.pos2coord({v:N});return R&&(S.x=R),D&&(S.y=D),S}const m=e;let f,p=0;function y(g){let k=d(g);m("pointerdown",g,k);let N=!1;function T(I){(Math.abs(I.screenX-g.screenX)>3||Math.abs(I.screenY-g.screenY)>3)&&(N=!0,I.currentTarget.removeEventListener("pointermove",T))}g.target.addEventListener("pointermove",T,{passive:!0}),g.target.addEventListener("pointerup",function(I){if(g.target.removeEventListener("pointermove",T),!N){let H=d(I);m("singleclick",new PointerEvent("singleclick",I),H)}},{once:!0});let S=t.action.find(I=>I.action=="move");if(!S)return;g.preventDefault(),g.stopPropagation(),g.target.style.cursor="grabbing",f=clearTimeout(f);let R=0,D=t.layout.height,F=t.coord2pos(S);g.target.setPointerCapture(g.pointerId),g.target.onpointermove=I=>{if(p+=I.movementY,!N)return;let H=ut(-p,{min:F.vmin-R,max:F.vmax-D}),{xmin:j,xmax:U,ymin:z,ymax:G}=t.pos2coord({vmin:R+H,vmax:D+H});Object.assign(i,{xmin:j,xmax:U,ymin:z,ymax:G})},g.target.onpointerup=I=>{g.target.onpointermove=null,g.target.onpointerup=null,g.target.style.cursor=null,N&&(f=setTimeout(()=>{P(S,I),p=0},300))}}function b(g){let k=t.action.find(j=>j.action=="rescale");if(!k)return;g.preventDefault(),g.stopPropagation();let{"min-range-v":N=0}=k,T=d(g),S=t.coord2pos(T).v,R=S-T.t,D=S+T.b,F=t.pos2coord({vmin:R,vmax:D}),I={min:t.coord2pos(k).vmin,max:t.coord2pos({vmin:F.vmax-N,vmax:F.vmin+N}).vmin},H=0;g.target.setPointerCapture(g.pointerId),g.target.onpointermove=j=>{H+=j.movementY;let{xmin:U,xmax:z,ymin:G,ymax:W}=t.pos2coord({vmin:ut(D-(D-R)*T.b/Math.max(T.b-H,1),I),vmax:D});Object.assign(i,{xmin:U,xmax:z,ymin:G,ymax:W})},g.target.onpointerup=j=>{g.target.onpointermove=null,g.target.onpointerup=null,P(k,j)}}function w(g){let k=t.action.find(j=>j.action=="rescale");if(!k)return;g.preventDefault(),g.stopPropagation();let{"min-range-v":N=0}=k,T=d(g),S=t.coord2pos(T).v,R=S-T.t,D=S+T.b,F=t.pos2coord({vmin:R,vmax:D}),I={min:t.coord2pos({vmin:F.vmax-N,vmax:F.vmin+N}).vmax,max:t.coord2pos(k).vmax},H=0;g.target.setPointerCapture(g.pointerId),g.target.onpointermove=j=>{H+=j.movementY;let{xmin:U,xmax:z,ymin:G,ymax:W}=t.pos2coord({vmin:R,vmax:ut(R+(D-R)*T.t/Math.max(T.t+H,1),I)});Object.assign(i,{xmin:U,xmax:z,ymin:G,ymax:W})},g.target.onpointerup=j=>{g.target.onpointermove=null,g.target.onpointerup=null,P(k,j)}}let C=0,A;function L(g){let k=d(g);m("wheel",g,k);let N=t.action.find(T=>["zoom","nudge"].includes(T.action)&&["ctrlKey","shiftKey","altKey","metaKey"].every(S=>T[S]==g[S]));N&&(A=clearTimeout(A),g.preventDefault(),g.stopPropagation(),m("update:transition","transform 0.1s ease-out"),C+=g.deltaY,q(N,k,C),A=setTimeout(()=>{P(N,g),C=0},300))}function q(g,k,N){if(g.action=="zoom"){let{"min-range-v":T=0,sensitivity:S=1.25}=g,R=S**(N/100),D=t.coord2pos(g),F=Math.max(k.t-Math.max(k.t,0)*R,D.vmin??-1/0),I=Math.min(k.t+Math.max(k.b,0)*R,D.vmax??1/0),{[t.coord+"min"]:H,[t.coord+"max"]:j}=t.pos2coord({vmin:F,vmax:I});if(R<1&&j-H<T){let U=(j+H)/2;H=U-T/2,j=U+T/2}i[t.coord+"min"]=H,i[t.coord+"max"]=j}if(g.action=="nudge"){let{sensitivity:T=.1}=g,S=t.coord2pos(g),R=0,D=t.layout.height,F=T*t.layout.height*(-N/120),I=ut(-F,{min:S.vmin-R,max:S.vmax-D}),{xmin:H,xmax:j,ymin:U,ymax:z}=t.pos2coord({vmin:R+I,vmax:D+I});Object.assign(i,{xmin:H,xmax:j,ymin:U,ymax:z})}}function P(g,k){let N=Mt(i)??{};if(!Object.keys(N).length)return;let T=new PointerEvent(k.type,k);xe(g.emit,N,T)||m(g.action,N,T),m("rangechange",N),Object.assign(i,{xmin:void 0,xmax:void 0,ymin:void 0,ymax:void 0})}const v={pointerup(g){m("pointerup",g,d(g))},pointerover(g){m("pointerover",g,d(g))},pointerout(g){m("pointerout",g,d(g))},pointerenter(g){m("pointerenter",g,d(g))},pointerleave(g){m("pointerleave",g,d(g))},dblclick(g){m("dblclick",g,d(g))},click(g){m("click",g,d(g))},contextmenu(g){m("contextmenu",g,d(g))},pointermove(g){m("pointermove",g,d(g))},pointerdown:y,wheel:L};return(g,k)=>(o.openBlock(),o.createElementBlock("g",{transform:s.value,style:o.normalizeStyle({transition:t.transition})},[o.createElementVNode("line",o.mergeProps({ref:"i",x1:0,x2:0,y1:0,y2:r.value},c.value),null,16,l5),k[1]||(k[1]=o.createTextVNode()),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,N=>(o.openBlock(),o.createElementBlock("line",o.mergeProps({ref_for:!0},N),null,16))),256)),k[2]||(k[2]=o.createTextVNode()),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,N=>(o.openBlock(),o.createElementBlock("g",o.mergeProps({ref_for:!0},N.wrapper),[t.theme.label_type=="markdown"?(o.openBlock(),o.createBlock(an,o.mergeProps({key:0,ref_for:!0},N.text),null,16)):(o.openBlock(),o.createBlock(Ue,o.mergeProps({key:1,ref_for:!0},N.text),null,16))],16))),256)),k[3]||(k[3]=o.createTextVNode()),o.createElementVNode("g",a5,[o.createElementVNode("rect",o.mergeProps({width:10,height:r.value,x:-5},o.toHandlers(v,!0),{cursor:t.action.some?.(N=>N.action=="move")?"grab":null}),null,16,c5)]),k[4]||(k[4]=o.createTextVNode()),t.action.some?.(N=>N.action=="rescale")?(o.openBlock(),o.createElementBlock("g",u5,[o.createElementVNode("rect",{width:10,height:20,x:-5,style:{cursor:"ns-resize"},onPointerdown:b},null,32),k[0]||(k[0]=o.createTextVNode()),o.createElementVNode("rect",{width:10,height:20,x:-5,y:r.value-20,style:{cursor:"ns-resize"},onPointerdown:w},null,40,h5)])):o.createCommentVNode("",!0),k[5]||(k[5]=o.createTextVNode()),a.value.text?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[t.theme.title_type=="markdown"?(o.openBlock(),o.createBlock(an,o.normalizeProps(o.mergeProps({key:0},a.value)),null,16)):(o.openBlock(),o.createBlock(Ue,o.normalizeProps(o.mergeProps({key:1},a.value)),null,16))],64)):o.createCommentVNode("",!0)],12,s5))}},as={__name:"CoreAxis",props:{theme:{type:Object,default:()=>({})},position:null,orientation:null},setup(t){const e={h:o5,v:f5};return(n,r)=>t.position!="none"?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e[t.orientation]),{key:0,theme:t.theme,position:t.position},null,8,["theme","position"])):o.createCommentVNode("",!0)}},m5={__name:"CoreGridH",props:{majorBreaks:{type:Array,default:()=>[]},minorBreaks:{type:Array,default:()=>[]},coord2pos:Function,pos2coord:Function,layout:Object,theme:{type:Object,default:()=>({})},action:{type:Object,default:()=>({})},activeTransform:Object,transition:String},setup(t){const e=o.computed(()=>t.layout.width+t.layout.l+t.layout.r),n=o.computed(()=>t.layout.height+t.layout.t+t.layout.b),r=o.computed(()=>{let a=[];for(let c of t.majorBreaks){let u=t.coord2pos({v:c.position}).v;if(isNaN(u))continue;let l=u*(t.activeTransform.scaleV-1)+t.activeTransform.translateV,h=u+t.layout.t;h+l<0||h+l>n.value||a.push({key:"major-"+c.position,x1:0,x2:e.value,y1:h,y2:h,stroke:c.color??t.theme.line_color_major,"stroke-width":c.width??t.theme.line_width_major??0,transform:l?`translate(0,${l})`:null,style:{transition:t.transition}})}return a.filter(c=>c.stroke!==null)}),i=o.computed(()=>{let a=[];for(let c of t.minorBreaks){if(t.majorBreaks.some(d=>d.position==c.position))continue;let u=t.coord2pos({v:c.position}).v;if(isNaN(u))continue;let l=u*(t.activeTransform.scaleV-1)+t.activeTransform.translateV,h=u+t.layout.t;h+l<0||h+l>n.value||a.push({key:"minor-"+c.position,x1:0,x2:e.value,y1:h,y2:h,stroke:c.color??t.theme.line_color_minor,"stroke-width":c.width??t.theme.line_width_minor??0,transform:l?`translate(0,${l})`:null,style:{transition:t.transition}})}return a.filter(c=>c.stroke!==null)}),s=o.computed(()=>i.value.concat(r.value).sort((a,c)=>a.y1-c.y1));return(a,c)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,u=>(o.openBlock(),o.createElementBlock("line",o.mergeProps({ref_for:!0},u,{style:{transition:t.transition}}),null,16))),256))]))}},d5={__name:"CoreGridV",props:{majorBreaks:{type:Array,default:()=>[]},minorBreaks:{type:Array,default:()=>[]},coord2pos:Function,pos2coord:Function,layout:Object,theme:{type:Object,default:()=>({})},action:{type:Object,default:()=>({})},activeTransform:Object,transition:String},setup(t){const e=o.computed(()=>t.layout.width+t.layout.l+t.layout.r),n=o.computed(()=>t.layout.height+t.layout.t+t.layout.b),r=o.computed(()=>{let a=[];for(let c of t.majorBreaks){let u=t.coord2pos({h:c.position}).h;if(isNaN(u))continue;let l=u*(t.activeTransform.scaleH-1)+t.activeTransform.translateH,h=u+t.layout.l;h+l<0||h+l>e.value||a.push({key:"major-"+c.position,y1:0,y2:n.value,x1:h,x2:h,stroke:c.color??t.theme.line_color_major,"stroke-width":c.width??t.theme.line_width_major??0,transform:l?`translate(${l},0)`:null,style:{transition:t.transition}})}return a.filter(c=>c.stroke!==null)}),i=o.computed(()=>{let a=[];for(let c of t.minorBreaks){if(t.majorBreaks.some(d=>d.position==c.position))continue;let u=t.coord2pos({h:c.position}).h;if(isNaN(u))continue;let l=u*(t.activeTransform.scaleH-1)+t.activeTransform.translateH,h=u+t.layout.l;h+l<0||h+l>e.value||a.push({key:"minor-"+c.position,y1:0,y2:n.value,x1:h,x2:h,stroke:c.color??t.theme.line_color_minor,"stroke-width":c.width??t.theme.line_width_minor??0,transform:l?`translate(${l},0)`:null,style:{transition:t.transition}})}return a.filter(c=>c.stroke!==null)}),s=o.computed(()=>i.value.concat(r.value).sort((a,c)=>a.x1-c.x1));return(a,c)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,u=>(o.openBlock(),o.createElementBlock("line",o.mergeProps({ref_for:!0},u,{style:{transition:t.transition}}),null,16))),256))]))}},g5={__name:"CoreCanvasBoxplot",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"],setup(t,{expose:e,emit:n}){let r=["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"];const i=n,s=o.computed(()=>({width:t.layout.fullWidth*(1+t.extendX*2),height:t.layout.fullHeight*(1+t.extendY*2),x:-t.layout.l-t.layout.fullWidth*t.extendX,y:-t.layout.t-t.layout.fullHeight*t.extendY})),a=o.useTemplateRef("container"),c=o.computed(()=>{if(a.value==null)return;const u=document.createElement("canvas");u.width=t.layout.fullWidth*(1+t.extendX*2),u.height=t.layout.fullHeight*(1+t.extendY*2);const l=u.getContext("2d");l.clearRect(0,0,u.width,u.height),l.translate(t.layout.l+t.layout.fullWidth*t.extendX,t.layout.t+t.layout.fullHeight*t.extendY);let h=new Map,d=new Map;for(const m of t.data)for(let{x:f,xmin:p,xmax:y,y:b,ymin:w,ymax:C,lwisker:A,Q1:L,median:q,Q3:P,uwisker:v,outliers:g,$xmin:k,$xmax:N,$ymin:T,$ymax:S,fill:R="white",color:D="black",linewidth:F=1,linetype:I,alpha:H,"translate-x":j=0,"translate-y":U=0,$raw:z}of m){if(D==="transparent")continue;const{hmin:G,hmax:W,vmin:Q,vmax:et}=t.coord2pos(f==null?{ymin:w,ymax:C,xmin:L,xmax:P}:{xmin:p,xmax:y,ymin:L,ymax:P}),{h:ot,v:ht}=t.coord2pos(f==null?{y:b,x:A}:{x:f,y:A}),{h:Pt,v:Ut}=t.coord2pos(f==null?{y:b,x:v}:{x:f,y:v}),{h:Bt,v:le}=t.coord2pos(f==null?{y:w,x:q}:{x:p,y:q}),{h:ae,v:M}=t.coord2pos(f==null?{y:C,x:q}:{x:y,y:q}),{h:O,v:V}=t.coord2pos(f==null?{y:w*.25+C*.75,x:v}:{x:p*.25+y*.75,y:v}),{h:x,v:E}=t.coord2pos(f==null?{y:w*.75+C*.25,x:v}:{x:p*.75+y*.25,y:v}),{h:B,v:$}=t.coord2pos(f==null?{y:w*.25+C*.75,x:A}:{x:p*.25+y*.75,y:A}),{h:Y,v:X}=t.coord2pos(f==null?{y:w*.75+C*.25,x:A}:{x:p*.75+y*.25,y:A});l.globalAlpha=H,l.setLineDash(At(I));const Z=new Path2D;Z.moveTo(ot+j,ht+U),Z.lineTo(Pt+j,Ut+U);const tt=new Path2D;tt.moveTo(O+j,V+U),tt.lineTo(x+j,E+U),tt.moveTo(B+j,$+U),tt.lineTo(Y+j,X+U),l.lineWidth=F,D!=="none"&&(l.strokeStyle=D,l.stroke(Z),l.stroke(tt));const nt=new Path2D;nt.rect(G+j,Q+U,W-G,et-Q),R!=="none"&&(l.fillStyle=R,l.fill(nt)),D!=null&&(l.strokeStyle=D,l.stroke(nt)),h.set(nt,z);const dt=new Path2D;dt.moveTo(Bt+j,le+U),dt.lineTo(ae+j,M+U),l.lineWidth=F*2,D!=="none"&&(l.strokeStyle=D,l.stroke(dt));for(let{x:ft,y:it,$raw:rt}of g){const{h:_,v:J}=t.coord2pos({x:ft,y:it}),K=new Path2D;K.arc(_+j,J+U,2,0,Math.PI*2),R!=="none"&&(l.fillStyle=D,l.fill(K)),h.set(K,rt)}}for(let m of Array.from(h.keys()).reverse())d.set(m,h.get(m));for(let m of r)u.addEventListener(m,function(f){if(f._vhandled)return;const p=u.getBoundingClientRect(),y=f.clientX-p.left,b=f.clientY-p.top;for(const[w,C]of d)if(l.isPointInPath(w,y,b)){i(m,f,t.getCoord(f),C),f._vhandled=!0;break}});return u});return o.watch(c,u=>a.value.replaceChildren(u)),e({dispatchEvent:u=>c.value?.dispatchEvent?.(u)}),(u,l)=>(o.openBlock(),o.createElementBlock("foreignObject",o.mergeProps(s.value,{ref:"container"}),null,16))}},p5={__name:"CoreCanvasCurve",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"],setup(t,{expose:e,emit:n}){let r=["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"];const i=n,s=o.computed(()=>({width:t.layout.fullWidth*(1+t.extendX*2),height:t.layout.fullHeight*(1+t.extendY*2),x:-t.layout.l-t.layout.fullWidth*t.extendX,y:-t.layout.t-t.layout.fullHeight*t.extendY})),a=o.useTemplateRef("container"),c=o.computed(()=>{if(a.value==null)return;const l=document.createElement("canvas");l.width=t.layout.fullWidth*(1+t.extendX*2),l.height=t.layout.fullHeight*(1+t.extendY*2);const h=l.getContext("2d");h.clearRect(0,0,l.width,l.height),h.translate(t.layout.l+t.layout.fullWidth*t.extendX,t.layout.t+t.layout.fullHeight*t.extendY);let d=new Map,m=new Map;for(const f of t.data)for(let{points:p,fill:y="none",color:b="black",linewidth:w,linetype:C,alpha:A,"translate-x":L=0,"translate-y":q=0,$raw:P,interpolate:v}of f){if(p=p.map(T=>(({h:S,v:R})=>({x:S,y:R}))(t.coord2pos(T))).filter(T=>T.x!=null&&T.y!=null),p.length===0)continue;const g=new Path2D;let N=(u[v]??zn)(g);N.lineStart();for(let T=0;T<p.length;T++)N.point(p[T].x+L,p[T].y+q);N.lineEnd(),d.set(g,P),h.lineWidth=w,h.globalAlpha=A,h.setLineDash(At(C)),y!=="none"&&(h.fillStyle=y,h.fill(g)),b!=null&&(h.strokeStyle=b,h.stroke(g))}for(let f of Array.from(d.keys()).reverse())m.set(f,d.get(f));for(let f of r)l.addEventListener(f,function(p){if(p._vhandled)return;const y=l.getBoundingClientRect(),b=p.clientX-y.left,w=p.clientY-y.top;for(const[C,A]of m)if(h.isPointInPath(C,b,w)){i(f,p,t.getCoord(p),A),p._vhandled=!0;break}});return l});o.watch(c,l=>a.value.replaceChildren(l)),e({dispatchEvent:l=>c.value?.dispatchEvent?.(l)});const u={cardinal:oo,catmullRom:lo,linear:H1,natural:zn};return(l,h)=>(o.openBlock(),o.createElementBlock("foreignObject",o.mergeProps(s.value,{ref:"container"}),null,16))}},y5={__name:"CoreCanvasEllipse",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"],setup(t,{expose:e,emit:n}){let r=["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"];const i=n,s=o.computed(()=>({width:t.layout.fullWidth*(1+t.extendX*2),height:t.layout.fullHeight*(1+t.extendY*2),x:-t.layout.l-t.layout.fullWidth*t.extendX,y:-t.layout.t-t.layout.fullHeight*t.extendY})),a=o.useTemplateRef("container"),c=o.computed(()=>{if(a.value==null)return;const u=document.createElement("canvas");u.width=t.layout.fullWidth*(1+t.extendX*2),u.height=t.layout.fullHeight*(1+t.extendY*2);const l=u.getContext("2d");l.clearRect(0,0,u.width,u.height),l.translate(t.layout.l+t.layout.fullWidth*t.extendX,t.layout.t+t.layout.fullHeight*t.extendY);let h=new Map,d=new Map;for(const m of t.data)for(let{cx:f,cy:p,A:y,B:b,C:w,fill:C="none",color:A="black",linewidth:L,linetype:q,alpha:P,"translate-x":v=0,"translate-y":g=0,$raw:k}of m){let N=Math.sqrt(w/(y*w-b*b)),T=Math.sqrt(y/(y*w-b*b));const{h:S,v:R}=t.coord2pos({x:f,y:p});let{hmin:D,hmax:F,vmin:I,vmax:H}=t.coord2pos({xmin:f-N,xmax:f+N,ymin:p-T,ymax:p+T}),j=(F-D)/(2*N),U=(H-I)/(2*T);y/=j*j,b/=j*U,w/=U*U;const z=y+w,G=y*w-b*b,W=Math.sqrt(Math.max(0,z*z/4-G));let Q=1/Math.sqrt(z/2+W),et=1/Math.sqrt(z/2-W),ot=-Math.atan2(2*b,y-w)/2;const ht=new Path2D;ht.ellipse(S+v,R+g,Q,et,ot,0,2*Math.PI),h.set(ht,k),l.lineWidth=L,l.globalAlpha=P,l.setLineDash(At(q)),C!=="none"&&(l.fillStyle=C,l.fill(ht)),A!=null&&(l.strokeStyle=A,l.stroke(ht))}for(let m of Array.from(h.keys()).reverse())d.set(m,h.get(m));for(let m of r)u.addEventListener(m,function(f){if(f._vhandled)return;const p=u.getBoundingClientRect(),y=f.clientX-p.left,b=f.clientY-p.top;for(const[w,C]of d)if(l.isPointInPath(w,y,b)){i(m,f,t.getCoord(f),C),f._vhandled=!0;break}});return u});return o.watch(c,u=>a.value.replaceChildren(u)),e({dispatchEvent:u=>c.value?.dispatchEvent?.(u)}),(u,l)=>(o.openBlock(),o.createElementBlock("foreignObject",o.mergeProps(s.value,{ref:"container"}),null,16))}},cs={__name:"CoreCanvasLine",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"],setup(t,{expose:e,emit:n}){let r=["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"];const i=n,s=o.computed(()=>({width:t.layout.fullWidth*(1+t.extendX*2),height:t.layout.fullHeight*(1+t.extendY*2),x:-t.layout.l-t.layout.fullWidth*t.extendX,y:-t.layout.t-t.layout.fullHeight*t.extendY})),a=o.useTemplateRef("container"),c=o.computed(()=>{if(a.value==null)return;const u=document.createElement("canvas");u.width=t.layout.fullWidth*(1+t.extendX*2),u.height=t.layout.fullHeight*(1+t.extendY*2);const l=u.getContext("2d");l.clearRect(0,0,u.width,u.height),l.translate(t.layout.l+t.layout.fullWidth*t.extendX,t.layout.t+t.layout.fullHeight*t.extendY);let h=new Map,d=new Map;for(const m of t.data)for(let{x:f,y:p,xend:y,yend:b,color:w,linewidth:C,alpha:A,linetype:L,"translate-x":q=0,"translate-y":P=0,$raw:v}of m){if(w==="transparent")continue;const{h:g,v:k}=t.coord2pos({x:f,y:p}),{h:N,v:T}=t.coord2pos({x:y,y:b}),S=new Path2D;S.moveTo(g+q,k+P),S.lineTo(N+q,T+P),h.set(S,v),l.lineWidth=C,l.globalAlpha=A,l.setLineDash(At(L)),w!=="none"&&(l.strokeStyle=w,l.stroke(S))}for(let m of Array.from(h.keys()).reverse())d.set(m,h.get(m));for(let m of r)u.addEventListener(m,function(f){if(f._vhandled)return;const p=u.getBoundingClientRect(),y=f.clientX-p.left,b=f.clientY-p.top;for(const[w,C]of d)if(l.isPointInPath(w,y,b)){i(m,f,t.getCoord(f),C),f._vhandled=!0;break}});return u});return o.watch(c,u=>a.value.replaceChildren(u)),e({dispatchEvent:u=>c.value?.dispatchEvent?.(u)}),(u,l)=>(o.openBlock(),o.createElementBlock("foreignObject",o.mergeProps(s.value,{ref:"container"}),null,16))}},x5={__name:"CoreCanvasPoint",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"],setup(t,{expose:e,emit:n}){let r=["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"];const i=n,s={triangle:l=>`M0-${l*2/3}L${l*.577},${l/3}L-${l*.577},${l/3}Z`,diamond:l=>`M0-${l*.707}L${l*.707},0L0,${l*.707}L-${l*.707},0Z`,square:l=>`M-${l/2}-${l/2}H${l/2}V${l/2}H-${l/2}Z`,plus:l=>`M-${l/10}-${l/2}V-${l/10}H-${l/2}V${l/10}H-${l/10}V${l/2}H${l/10}V${l/10}H${l/2}V-${l/10}H${l/10}V-${l/2}H-${l/10}Z`,corss:l=>`M-${l*.283}-${l*.424}L-${l*.424}-${l*.283}L-${l*.141},0L-${l*.424},${l*.283}L-${l*.283},${l*.424}L0,${l*.141}L${l*.283},${l*.424}L${l*.424},${l*.283}L${l*.141},0L${l*.424},-${l*.283}L${l*.283},-${l*.424}L0,-${l*.141}Z`},a=o.computed(()=>({width:t.layout.fullWidth*(1+t.extendX*2),height:t.layout.fullHeight*(1+t.extendY*2),x:-t.layout.l-t.layout.fullWidth*t.extendX,y:-t.layout.t-t.layout.fullHeight*t.extendY})),c=o.useTemplateRef("container"),u=o.computed(()=>{if(c.value==null)return;const l=document.createElement("canvas");l.width=t.layout.fullWidth*(1+t.extendX*2),l.height=t.layout.fullHeight*(1+t.extendY*2);const h=l.getContext("2d");h.clearRect(0,0,l.width,l.height),h.translate(t.layout.l+t.layout.fullWidth*t.extendX,t.layout.t+t.layout.fullHeight*t.extendY);let d=new Map,m=new Map;for(const f of t.data)for(let{x:p,y,size:b=6,shape:w,color:C,stroke:A,linewidth:L,linetype:q,alpha:P,"translate-x":v=0,"translate-y":g=0,$raw:k}of f){const{h:N,v:T}=t.coord2pos({x:p,y}),S=new Path2D;String(w).startsWith("path:")?S.addPath(new Path2D(w.slice(5)),new DOMMatrix().translateSelf(N+v,T+g)):w in s?S.addPath(new Path2D(s[w](b)),new DOMMatrix().translate(N+v,T+g)):S.arc(N+v,T+g,b/2,0,Math.PI*2),d.set(S,k),h.lineWidth=L,h.globalAlpha=P,h.beginPath(),C!=="none"&&(h.fillStyle=C,h.fill(S)),A!=null&&(h.strokeStyle=A,h.setLineDash(At(q)),h.stroke(S))}for(let f of Array.from(d.keys()).reverse())m.set(f,d.get(f));for(let f of r)l.addEventListener(f,function(p){if(p._vhandled)return;const y=l.getBoundingClientRect(),b=p.clientX-y.left,w=p.clientY-y.top;for(const[C,A]of m)if(h.isPointInPath(C,b,w)){i(f,p,t.getCoord(p),A),p._vhandled=!0;break}});return l});return o.watch(u,l=>c.value.replaceChildren(l)),e({dispatchEvent:l=>u.value?.dispatchEvent?.(l)}),(l,h)=>(o.openBlock(),o.createElementBlock("foreignObject",o.mergeProps(a.value,{ref:"container"}),null,16))}},b5={__name:"CoreCanvasPolygon",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"],setup(t,{expose:e,emit:n}){let r=["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"];const i=n,s=o.computed(()=>({width:t.layout.fullWidth*(1+t.extendX*2),height:t.layout.fullHeight*(1+t.extendY*2),x:-t.layout.l-t.layout.fullWidth*t.extendX,y:-t.layout.t-t.layout.fullHeight*t.extendY})),a=o.useTemplateRef("container"),c=o.computed(()=>{if(a.value==null)return;const u=document.createElement("canvas");u.width=t.layout.fullWidth*(1+t.extendX*2),u.height=t.layout.fullHeight*(1+t.extendY*2);const l=u.getContext("2d");l.clearRect(0,0,u.width,u.height),l.translate(t.layout.l+t.layout.fullWidth*t.extendX,t.layout.t+t.layout.fullHeight*t.extendY);let h=new Map,d=new Map;for(const m of t.data)for(let{points:f,fill:p,color:y,linewidth:b,linetype:w,alpha:C,"translate-x":A=0,"translate-y":L=0,$raw:q}of m){if(f=f.map(v=>(({h:g,v:k})=>({x:g,y:k}))(t.coord2pos(v))).filter(v=>v.x!=null&&v.y!=null),f.length===0)continue;const P=new Path2D;P.moveTo(f[0].x+A,f[0].y+L);for(let v=1;v<f.length;v++)P.lineTo(f[v].x+A,f[v].y+L);P.closePath(),h.set(P,q),l.lineWidth=b,l.globalAlpha=C,l.setLineDash(At(w)),p!=="none"&&(l.fillStyle=p,l.fill(P)),y!=null&&(l.strokeStyle=y,l.stroke(P))}for(let m of Array.from(h.keys()).reverse())d.set(m,h.get(m));for(let m of r)u.addEventListener(m,function(f){if(f._vhandled)return;const p=u.getBoundingClientRect(),y=f.clientX-p.left,b=f.clientY-p.top;for(const[w,C]of d)if(l.isPointInPath(w,y,b)){i(m,f,t.getCoord(f),C),f._vhandled=!0;break}});return u});return o.watch(c,u=>a.value.replaceChildren(u)),e({dispatchEvent:u=>c.value?.dispatchEvent?.(u)}),(u,l)=>(o.openBlock(),o.createElementBlock("foreignObject",o.mergeProps(s.value,{ref:"container"}),null,16))}},us={__name:"CoreCanvasRect",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"],setup(t,{expose:e,emit:n}){let r=["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"];const i=n,s=o.computed(()=>({width:t.layout.fullWidth*(1+t.extendX*2),height:t.layout.fullHeight*(1+t.extendY*2),x:-t.layout.l-t.layout.fullWidth*t.extendX,y:-t.layout.t-t.layout.fullHeight*t.extendY})),a=o.useTemplateRef("container"),c=o.computed(()=>{if(a.value==null)return;const u=document.createElement("canvas");u.width=t.layout.fullWidth*(1+t.extendX*2),u.height=t.layout.fullHeight*(1+t.extendY*2);const l=u.getContext("2d");l.clearRect(0,0,u.width,u.height),l.translate(t.layout.l+t.layout.fullWidth*t.extendX,t.layout.t+t.layout.fullHeight*t.extendY);let h=new Map,d=new Map;for(const m of t.data)for(let{xmin:f,xmax:p,ymin:y,ymax:b,fill:w,color:C,linewidth:A,linetype:L,alpha:q,"translate-x":P=0,"translate-y":v=0,$raw:g}of m){const{hmin:k,hmax:N,vmin:T,vmax:S}=t.coord2pos({xmin:f,xmax:p,ymin:y,ymax:b}),R=new Path2D;R.rect(k+P,T+v,N-k,S-T),h.set(R,g),l.lineWidth=A,l.globalAlpha=q,l.setLineDash(At(L)),w!=="none"&&(l.fillStyle=w,l.fill(R)),C!=null&&(l.strokeStyle=C,l.stroke(R))}for(let m of Array.from(h.keys()).reverse())d.set(m,h.get(m));for(let m of r)u.addEventListener(m,function(f){if(f._vhandled)return;const p=u.getBoundingClientRect(),y=f.clientX-p.left,b=f.clientY-p.top;for(const[w,C]of d)if(l.isPointInPath(w,y,b)){i(m,f,t.getCoord(f),C),f._vhandled=!0;break}});return u});return o.watch(c,u=>a.value.replaceChildren(u)),e({dispatchEvent:u=>c.value?.dispatchEvent?.(u)}),(u,l)=>(o.openBlock(),o.createElementBlock("foreignObject",o.mergeProps(s.value,{ref:"container"}),null,16))}},v5=Object.freeze(Object.defineProperty({__proto__:null,boxplot:g5,curve:p5,ellipse:y5,line:cs,point:x5,polygon:b5,rect:us,stick:cs,text:{__name:"CoreCanvasText",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"],setup(t,{expose:e,emit:n}){let r=["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"];const i=n,s=o.computed(()=>({width:t.layout.fullWidth*(1+t.extendX*2),height:t.layout.fullHeight*(1+t.extendY*2),x:-t.layout.l-t.layout.fullWidth*t.extendX,y:-t.layout.t-t.layout.fullHeight*t.extendY})),a=o.useTemplateRef("container"),c=o.computed(()=>{if(a.value==null)return;const u=document.createElement("canvas");u.width=t.layout.fullWidth*(1+t.extendX*2),u.height=t.layout.fullHeight*(1+t.extendY*2);const l=u.getContext("2d");l.clearRect(0,0,u.width,u.height),l.translate(t.layout.l+t.layout.fullWidth*t.extendX,t.layout.t+t.layout.fullHeight*t.extendY);let h=new Map,d=new Map;for(const m of t.data)for(let{x:f,y:p,color:y,size:b=4,label:w="",title:C,stroke:A,linewidth:L,linetype:q,alpha:P,"anchor-x":v,"anchor-y":g,"dock-x":k,"dock-y":N,"translate-x":T=0,"translate-y":S=0,angle:R,"text-length":D,"font-family":F="sans-serif",$raw:I}of m){l.save();const{h:H,v:j}=t.coord2pos({x:f,y:p});l.textAlign="center",l.textBaseline="middle",l.lineWidth=L,l.globalAlpha=P,l.font=`${b*4}px ${F}`,l.setLineDash(At(q)),l.translate(H+T,j+S);let{width:U,fontBoundingBoxAscent:z,fontBoundingBoxDescent:G}=l.measureText(w),W=U,Q=z+G;if(typeof D=="object"){let{x:et=0,y:ot=0}=D,{h:ht,v:Pt}=t.coord2pos({x:f+et/2,y:p+ot/2}),{h:Ut,v:Bt}=t.coord2pos({x:f-et/2,y:p-ot/2});W=Math.hypot(ht-Ut||0,Pt-Bt||0)}else D!=null&&(W=D);if(k!=null||N!=null){let et={left:0,center:.5,right:1}[k]??+(k??.5),ot={bottom:0,center:.5,top:1}[N]??+(N??.5);isNaN(et)&&(et=.5),isNaN(ot)&&(ot=.5);let ht=W*Math.abs(Math.cos(R*Math.PI/180))+Q*Math.abs(Math.sin(R*Math.PI/180)),Pt=W*Math.abs(Math.sin(R*Math.PI/180))+Q*Math.abs(Math.cos(R*Math.PI/180));l.translate(ht*(.5-et),Pt*(ot-.5)),l.rotate(R*Math.PI/180)}else{let et={left:0,center:.5,right:1}[v]??+(v??.5),ot={bottom:0,center:.5,top:1}[g]??+(g??.5);isNaN(et)&&(et=.5),isNaN(ot)&&(ot=.5);let ht=W,Pt=Q;l.rotate(R*Math.PI/180),l.translate(ht*(.5-et),Pt*(ot-.5))}W!=U&&l.scale(W/U,1),y!=="none"&&(l.fillStyle=y,l.fillText(w,0,0)),A!=null&&(l.strokeStyle=A,l.strokeText(w,0,0)),l.restore()}for(let m of Array.from(h.keys()).reverse())d.set(m,h.get(m));for(let m of r)u.addEventListener(m,function(f){if(f._vhandled)return;const p=u.getBoundingClientRect(),y=f.clientX-p.left,b=f.clientY-p.top;for(const[w,C]of d)if(l.isPointInPath(w,y,b)){i(m,f,t.getCoord(f),C),f._vhandled=!0;break}});return u});return o.watch(c,u=>a.value.replaceChildren(u)),e({dispatchEvent:u=>c.value?.dispatchEvent?.(u)}),(u,l)=>(o.openBlock(),o.createElementBlock("foreignObject",o.mergeProps(s.value,{ref:"container"}),null,16))}},textsegment:{__name:"CoreCanvasTextsegment",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"],setup(t,{expose:e,emit:n}){let r=["click","contextmenu","singleclick","dblclick","pointermove","pointerdown","pointerup","wheel"];const i=n,s=o.computed(()=>({width:t.layout.fullWidth*(1+t.extendX*2),height:t.layout.fullHeight*(1+t.extendY*2),x:-t.layout.l-t.layout.fullWidth*t.extendX,y:-t.layout.t-t.layout.fullHeight*t.extendY})),a=o.useTemplateRef("container"),c=o.computed(()=>{if(a.value==null)return;const l=document.createElement("canvas");l.width=t.layout.fullWidth*(1+t.extendX*2),l.height=t.layout.fullHeight*(1+t.extendY*2);const h=l.getContext("2d");h.clearRect(0,0,l.width,l.height),h.translate(t.layout.l+t.layout.fullWidth*t.extendX,t.layout.t+t.layout.fullHeight*t.extendY);let d=new Map,m=new Map;for(const f of t.data)for(let{x:p,xend:y,y:b,yend:w,size:C=4,label:A="",title:L,color:q,stroke:P,linewidth:v,linetype:g,alpha:k,"translate-x":N=0,"translate-y":T=0,"text-length":S,"font-family":R="sans-serif","text-align":D="justify",angle:F="auto",inset:I=0,$raw:H}of f){const{h:j,v:U}=t.coord2pos({x:p,y:b}),{h:z,v:G}=t.coord2pos({x:y,y:w});if(h.save(),h.translate(N,T),h.textBaseline="middle",h.lineWidth=v,h.globalAlpha=k,h.font=`${C*4}px ${R}`,h.setLineDash(At(g)),["stretch","pre","start","center","end","post"].includes(D)){let W=Math.atan2(G-U,z-j),Q=String(A).replace(/\x01|\x02/g,""),et=Math.cos(W)*I,ot=Math.sin(W)*I;switch(D){case"stretch":case"center":h.translate((j+z)/2,(U+G)/2),h.textAlign="center";break;case"pre":h.translate(j-et,U-ot),h.textAlign="end";break;case"start":h.translate(j+et,U+ot),h.textAlign="start";break;case"end":h.translate(z-et,G-ot),h.textAlign="end";break;case"post":h.translate(z+et,G+ot),h.textAlign="start";break}h.rotate(W),D==="stretch"&&h.scale(Math.hypot(z-j||0,G-U||0)/h.measureText(Q).width,1),q!=="none"&&(h.fillStyle=q,h.fillText(Q,0,0)),P!=null&&(h.strokeStyle=P,h.strokeText(Q,0,0))}else{let W=F==="auto"?Math.atan2(G-U,z-j):F*Math.PI/180;h.textAlign="center";let Q=u(String(A)),et=(z-j)/(Q.length-1||1),ot=(G-U)/(Q.length-1||1);for(let ht=0;ht<Q.length;ht++){h.save(),h.translate(j+ht*et,U+ht*ot),h.rotate(W);let Pt=Q[ht];q!=="none"&&(h.fillStyle=q,h.fillText(Pt,0,0)),P!=null&&(h.strokeStyle=P,h.strokeText(Pt,0,0)),h.restore()}}h.restore()}for(let f of Array.from(d.keys()).reverse())m.set(f,d.get(f));for(let f of r)l.addEventListener(f,function(p){if(p._vhandled)return;const y=l.getBoundingClientRect(),b=p.clientX-y.left,w=p.clientY-y.top;for(const[C,A]of m)if(h.isPointInPath(C,b,w)){i(f,p,t.getCoord(p),A),p._vhandled=!0;break}});return l});o.watch(c,l=>a.value.replaceChildren(l)),e({dispatchEvent:l=>c.value?.dispatchEvent?.(l)});function u(l){let h=[];for(let d=0;d<l.length;d++)if(l[d]==""){let m=d+1;for(;m<l.length&&l[m]!="";)m++;h.push(l.slice(d+1,m)),d=m}else h.push(l[d]);return h}return(l,h)=>(o.openBlock(),o.createElementBlock("foreignObject",o.mergeProps(s.value,{ref:"container"}),null,16))}},tile:us},Symbol.toStringTag,{value:"Module"})),w5={__name:"CoreSvgBlank",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup"],setup(t,{emit:e}){return(n,r)=>(o.openBlock(),o.createElementBlock("g"))}},k5={key:0},i1={__name:"CoreTile",props:{x:{type:Number,default:0},y:{type:Number,default:0},width:{type:Number,default:0},height:{type:Number,default:0},fill:String,color:String,linewidth:Number,linetype:String,alpha:{type:Number,default:1},title:String,translateX:{type:Number,default:0},translateY:{type:Number,default:0}},setup(t){const e=o.computed(()=>({x:t.x-t.width/2,y:t.y-t.height/2,width:t.width,height:t.height,fill:t.fill||null,"fill-opacity":t.alpha==1?null:t.alpha,stroke:t.color||null,"stroke-width":t.linewidth,"stroke-opacity":t.alpha==1?null:t.alpha,"stroke-dasharray":At(t.linetype).join(" ")||null,transform:t.translateX||t.translateY?`translate(${t.translateX}, ${t.translateY})`:null}));return(n,r)=>(o.openBlock(),o.createElementBlock("rect",o.normalizeProps(o.guardReactiveProps(e.value)),[t.title?(o.openBlock(),o.createElementBlock("title",k5,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0)],16))}},N5={key:0},A5={key:0},nr={__name:"CorePoint",props:{x:{type:Number,default:0},y:{type:Number,default:0},shape:String,size:{type:Number,default:6},color:String,stroke:String,linewidth:Number,linetype:String,alpha:{type:Number,default:1},title:String,angle:{type:Number,default:0},translateX:{type:Number,default:0},translateY:{type:Number,default:0}},setup(t){const e={square:"M-0.5-0.5H0.5V0.5H-0.5Z",triangle:"M0-0.667L0.577,0.333L-0.577,0.333Z",diamond:"M0-0.707L0.707,0L0,0.707L-0.707,0Z",plus:"M-0.1-0.5V-0.1H-0.5V0.1H-0.1V0.5H0.1V0.1H0.5V-0.1H0.1V-0.5H-0.1Z",cross:"M-0.283-0.424L-0.424-0.283L-0.141,0L-0.424,0.283L-0.283,0.424L0,0.141L0.283,0.424L0.424,0.283L0.141,0L0.424,-0.283L0.283,-0.424L0,-0.141Z"},n=o.computed(()=>{let r=t.shape?.startsWith?.("path:")?t.shape?.slice?.(5):e[t.shape],i={fill:t.color||null,"fill-opacity":t.alpha==1?null:t.alpha,stroke:t.stroke||null,"stroke-width":t.linewidth,"stroke-opacity":t.alpha==1?null:t.alpha,"stroke-dasharray":At(t.linetype).join(" ")||null};if(r!=null){let s=`translate(${t.x+t.translateX},${t.y+t.translateY})`;t.size!=1&&(s+=`scale(${t.size})`),t.angle&&(s+=`rotate(${t.angle})`),Object.assign(i,{d:r,transform:s})}else{let s=t.translateX||t.translateY?`translate(${t.translateX}, ${t.translateY})`:null;Object.assign(i,{cx:t.x,cy:t.y,r:t.size/2,transform:s})}return i});return(r,i)=>n.value.d?(o.openBlock(),o.createElementBlock("path",o.normalizeProps(o.mergeProps({key:0},n.value)),[t.title?(o.openBlock(),o.createElementBlock("title",N5,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0)],16)):(o.openBlock(),o.createElementBlock("circle",o.normalizeProps(o.mergeProps({key:1},n.value)),[t.title?(o.openBlock(),o.createElementBlock("title",A5,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0)],16))}},E5={key:0},Xe={__name:"CoreLine",props:{x1:{type:Number,default:0},y1:{type:Number,default:0},x2:{type:Number,default:0},y2:{type:Number,default:0},color:String,stroke:String,linewidth:Number,linetype:String,alpha:{type:Number,default:1},title:String,translateX:{type:Number,default:0},translateY:{type:Number,default:0}},setup(t){const e=o.computed(()=>({x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,stroke:t.color||null,"stroke-width":t.linewidth,"stroke-opacity":t.alpha==1?null:t.alpha,"stroke-dasharray":At(t.linetype).join(" ")||null,transform:t.translateX||t.translateY?`translate(${t.translateX}, ${t.translateY})`:null}));return(n,r)=>(o.openBlock(),o.createElementBlock("line",o.normalizeProps(o.guardReactiveProps(e.value)),[t.title?(o.openBlock(),o.createElementBlock("title",E5,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0)],16))}},S5={__name:"CoreSvgBoxplot",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"],setup(t,{emit:e}){let n=["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"];const r=e,i=o.computed(()=>{let s=-t.layout.fullWidth*t.extendX-t.layout.l,a=t.layout.fullWidth*(1+t.extendX)-t.layout.l,c=-t.layout.fullHeight*t.extendY-t.layout.t,u=t.layout.fullHeight*(1+t.extendY)-t.layout.t;return t.data.map(l=>l.map(({x:h,xmin:d,xmax:m,y:f,ymin:p,ymax:y,lwisker:b,Q1:w,median:C,Q3:A,uwisker:L,outliers:q,$xmin:P,$xmax:v,$ymin:g,$ymax:k,fill:N="white",color:T="black",linewidth:S,linetype:R,alpha:D,title:F,"translate-x":I=0,"translate-y":H=0,$raw:j})=>{const{hmin:U,hmax:z,vmin:G,vmax:W}=t.coord2pos({xmin:P,xmax:v,ymin:g,ymax:k});if(U<s&&z<s||U>a&&z>a||G<c&&W<c||G>u&&W>u)return null;const{hmin:Q,hmax:et,vmin:ot,vmax:ht}=t.coord2pos(h==null?{ymin:p,ymax:y,xmin:w,xmax:A}:{xmin:d,xmax:m,ymin:w,ymax:A}),{h:Pt,v:Ut}=t.coord2pos(h==null?{y:f,x:b}:{x:h,y:b}),{h:Bt,v:le}=t.coord2pos(h==null?{y:f,x:L}:{x:h,y:L}),{h:ae,v:M}=t.coord2pos(h==null?{y:p,x:C}:{x:d,y:C}),{h:O,v:V}=t.coord2pos(h==null?{y,x:C}:{x:m,y:C}),{h:x,v:E}=t.coord2pos(h==null?{y:p*.25+y*.75,x:L}:{x:d*.25+m*.75,y:L}),{h:B,v:$}=t.coord2pos(h==null?{y:p*.75+y*.25,x:L}:{x:d*.75+m*.25,y:L}),{h:Y,v:X}=t.coord2pos(h==null?{y:p*.25+y*.75,x:b}:{x:d*.25+m*.75,y:b}),{h:Z,v:tt}=t.coord2pos(h==null?{y:p*.75+y*.25,x:b}:{x:d*.75+m*.25,y:b});let nt={rect:{x:(Q+et)/2,width:et-Q,y:(ot+ht)/2,height:ht-ot,fill:N,color:T,linetype:R,linewidth:S,alpha:D,title:F,translateX:I,translateY:H},line:{x1:Pt,y1:Ut,x2:Bt,y2:le,color:T,linetype:R,linewidth:S,alpha:D,translateX:I,translateY:H},midline:{x1:ae,y1:M,x2:O,y2:V,color:T,linetype:R,linewidth:(S??1)*2,alpha:D,translateX:I,translateY:H},uwisker:{x1:x,y1:E,x2:B,y2:$,color:T,linetype:R,linewidth:S,alpha:D,translateX:I,translateY:H},lwisker:{x1:Y,y1:X,x2:Z,y2:tt,color:T,linetype:R,linewidth:S,alpha:D,translateX:I,translateY:H},outliers:q?.map(({x:ft,y:it,$raw:rt})=>{const{h:_,v:J}=t.coord2pos({x:ft,y:it});let K={x:_,y:J,shape:"circle",size:4,color:T,alpha:D,translateX:I,translateY:H},ct=Object.fromEntries(n.map(gt=>[gt,Ht=>r(gt,Ht,rt)]));return[K,ct]})},dt=Object.fromEntries(n.map(ft=>[ft,it=>r(ft,Object.assign(it,{_vhandled:!0}),t.getCoord(it),j)]));return[nt,dt]}).filter(h=>h!=null))});return(s,a)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c,([u,l])=>(o.openBlock(),o.createElementBlock("g",null,[o.createVNode(Xe,o.mergeProps({ref_for:!0},u.line),null,16),a[0]||(a[0]=o.createTextVNode()),o.createVNode(i1,o.mergeProps({ref_for:!0},u.rect,o.toHandlers(l)),null,16),a[1]||(a[1]=o.createTextVNode()),o.createVNode(Xe,o.mergeProps({ref_for:!0},u.midline),null,16),a[2]||(a[2]=o.createTextVNode()),o.createVNode(Xe,o.mergeProps({ref_for:!0},u.uwisker),null,16),a[3]||(a[3]=o.createTextVNode()),o.createVNode(Xe,o.mergeProps({ref_for:!0},u.lwisker),null,16),a[4]||(a[4]=o.createTextVNode()),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.outliers,([h,d])=>(o.openBlock(),o.createBlock(nr,o.mergeProps({ref_for:!0},h,o.toHandlers(d)),null,16))),256))]))),256))]))),256))]))}},T5={key:0},hs={__name:"CoreCurve",props:{points:{type:Array,default:()=>[]},interpolate:{default:"natural"},fill:{type:String,default:"none"},color:String,stroke:String,linewidth:Number,linetype:String,alpha:{type:Number,default:1},title:String,translateX:{type:Number,default:0},translateY:{type:Number,default:0}},setup(t){const e=o.computed(()=>{let r=n[t.interpolate]??zn;return{d:Ku().curve(r)(t.points.map(i=>[i.x,i.y])),fill:t.fill||null,stroke:t.color||null,"stroke-width":t.linewidth,"stroke-opacity":t.alpha==1?null:t.alpha,"stroke-dasharray":At(t.linetype).join(" ")||null,transform:t.translateX||t.translateY?`translate(${t.translateX}, ${t.translateY})`:null}}),n={cardinal:oo,catmullRom:lo,linear:H1,natural:zn};return(r,i)=>(o.openBlock(),o.createElementBlock("path",o.normalizeProps(o.guardReactiveProps(e.value)),[t.title?(o.openBlock(),o.createElementBlock("title",T5,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0)],16))}},C5={__name:"CoreSvgCurve",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"],setup(t,{emit:e}){let n=["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"];const r=e,i=o.computed(()=>{let s=-t.layout.fullWidth*t.extendX-t.layout.l,a=t.layout.fullWidth*(1+t.extendX)-t.layout.l,c=-t.layout.fullHeight*t.extendY-t.layout.t,u=t.layout.fullHeight*(1+t.extendY)-t.layout.t;return t.data.map(l=>l.map(({points:h,fill:d="none",color:m="black",linewidth:f,linetype:p,alpha:y,title:b,"translate-x":w=0,"translate-y":C=0,$raw:A,interpolate:L})=>{if(h=h.map(v=>(({h:g,v:k})=>({x:g,y:k}))(t.coord2pos(v))),h.every(v=>v.x<s)||h.every(v=>v.x>a)||h.every(v=>v.y<c)||h.every(v=>v.y>u))return null;let q={points:h,fill:d,color:m,linetype:p,linewidth:f,alpha:y,title:b,translateX:w,translateY:C,interpolate:L},P=Object.fromEntries(n.map(v=>[v,g=>r(v,Object.assign(g,{_vhandled:!0}),t.getCoord(g),A)]));return[q,P]}).filter(h=>h!=null))});return(s,a)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c,([u,l])=>(o.openBlock(),o.createBlock(hs,o.mergeProps({ref_for:!0},u,o.toHandlers(l)),null,16))),256))]))),256))]))}},M5={key:0},B5={__name:"CoreEllipse",props:{cx:{type:Number,default:0},cy:{type:Number,default:0},rx:{type:Number,default:0},ry:{type:Number,default:0},angle:{type:Number,default:0},fill:String,color:String,linewidth:Number,linetype:String,alpha:{type:Number,default:1},title:String,translateX:{type:Number,default:0},translateY:{type:Number,default:0}},setup(t){const e=o.computed(()=>{let n=[];return(t.translateX||t.translateY)&&n.push(`translate(${t.translateX}, ${t.translateY})`),t.angle&&n.push(`rotate(${t.angle})`),{cx:t.cx,cy:t.cy,rx:t.rx,ry:t.ry,fill:t.fill||null,"fill-opacity":t.alpha==1?null:t.alpha,stroke:t.color||null,"stroke-width":t.linewidth,"stroke-opacity":t.alpha==1?null:t.alpha,"stroke-dasharray":At(t.linetype).join(" ")||null,transform:n.join(" ")||null,"transform-origin":`${t.cx} ${t.cy}`}});return(n,r)=>(o.openBlock(),o.createElementBlock("ellipse",o.normalizeProps(o.guardReactiveProps(e.value)),[t.title?(o.openBlock(),o.createElementBlock("title",M5,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0)],16))}},L5={__name:"CoreSvgEllipse",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"],setup(t,{emit:e}){let n=["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"];const r=e,i=o.computed(()=>{let s=-t.layout.fullWidth*t.extendX-t.layout.l,a=t.layout.fullWidth*(1+t.extendX)-t.layout.l,c=-t.layout.fullHeight*t.extendY-t.layout.t,u=t.layout.fullHeight*(1+t.extendY)-t.layout.t;return t.data.map(l=>l.map(({cx:h,cy:d,A:m,B:f,C:p,fill:y="none",color:b="black",linewidth:w,linetype:C,alpha:A,title:L,"translate-x":q=0,"translate-y":P=0,$raw:v})=>{let g=Math.sqrt(p/(m*p-f*f)),k=Math.sqrt(m/(m*p-f*f));const{h:N,v:T}=t.coord2pos({x:h,y:d});let{hmin:S,hmax:R,vmin:D,vmax:F}=t.coord2pos({xmin:h-g,xmax:h+g,ymin:d-k,ymax:d+k});if(R<s||S>a||F<c||D>u)return null;let I=(R-S)/(2*g),H=(F-D)/(2*k);m/=I*I,f/=I*H,p/=H*H;const j=m+p,U=m*p-f*f,z=Math.sqrt(Math.max(0,j*j/4-U));let G={cx:N,cy:T,rx:1/Math.sqrt(j/2+z),ry:1/Math.sqrt(j/2-z),angle:-Math.atan2(2*f,m-p)/2*180/Math.PI,fill:y,color:b,linetype:C,linewidth:w,alpha:A,title:L,translateX:q,translateY:P},W=Object.fromEntries(n.map(Q=>[Q,et=>r(Q,Object.assign(et,{_vhandled:!0}),t.getCoord(et),v)]));return[G,W]}).filter(h=>h!=null))});return(s,a)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c,([u,l])=>(o.openBlock(),o.createBlock(B5,o.mergeProps({ref_for:!0},u,o.toHandlers(l)),null,16))),256))]))),256))]))}},fs={__name:"CoreSvgLine",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"],setup(t,{emit:e}){let n=["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"];const r=e,i=o.computed(()=>{let s=-t.layout.fullWidth*t.extendX-t.layout.l,a=t.layout.fullWidth*(1+t.extendX)-t.layout.l,c=-t.layout.fullHeight*t.extendY-t.layout.t,u=t.layout.fullHeight*(1+t.extendY)-t.layout.t;return t.data.map(l=>l.map(({x:h,y:d,xend:m,yend:f,color:p="black",linewidth:y,linetype:b,alpha:w,title:C,"translate-x":A=0,"translate-y":L=0,$raw:q})=>{const{h:P,v}=t.coord2pos({x:h,y:d}),{h:g,v:k}=t.coord2pos({x:m,y:f});if(P<s&&g<s||P>a&&g>a||v<c&&k<c||v>u&&k>u)return null;let N={x1:P,x2:g,y1:v,y2:k,color:p,linetype:b,linewidth:y,alpha:w,title:C,translateX:A,translateY:L},T=Object.fromEntries(n.map(S=>[S,R=>r(S,Object.assign(R,{_vhandled:!0}),t.getCoord(R),q)]));return[N,T]}).filter(h=>h!=null))});return(s,a)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c,([u,l])=>(o.openBlock(),o.createBlock(Xe,o.mergeProps({ref_for:!0},u,o.toHandlers(l)),null,16))),256))]))),256))]))}},$5={__name:"CoreSvgMarkdown",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"],setup(t,{emit:e}){let n=["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"];const r=e,i=o.computed(()=>{let s=-t.layout.fullWidth*t.extendX-t.layout.l,a=t.layout.fullWidth*(1+t.extendX)-t.layout.l,c=-t.layout.fullHeight*t.extendY-t.layout.t,u=t.layout.fullHeight*(1+t.extendY)-t.layout.t;return t.data.map(l=>l.map(({x:h,y:d,size:m=4,label:f,title:p,color:y,stroke:b,linewidth:w,linetype:C,alpha:A,"anchor-x":L,"anchor-y":q,"dock-x":P,"dock-y":v,"translate-x":g=0,"translate-y":k=0,angle:N,"text-length":T,"font-family":S="sans-serif","text-anchor":R,$raw:D})=>{if(f==null)return null;const{h:F,v:I}=t.coord2pos({x:h,y:d});if(F<s||F>a||I<c||I>u)return null;if(typeof T=="object"){let{x:U=0,y:z=0}=T,{h:G,v:W}=t.coord2pos({x:h+U/2,y:d+z/2}),{h:Q,v:et}=t.coord2pos({x:h-U/2,y:d-z/2});T=Math.hypot(G-Q||0,W-et||0)}let H={x:F,y:I,text:String(f),title:String(p??f),size:m,color:y,stroke:b,linetype:C,linewidth:w,alpha:A,angle:N,translateX:g,translateY:k,anchorX:L,anchorY:q,dockX:P,dockY:v,textLength:T,fontFamily:S,textAnchor:R},j=Object.fromEntries(n.map(U=>[U,z=>r(U,Object.assign(z,{_vhandled:!0}),t.getCoord(z),D)]));return[H,j]}).filter(h=>h!=null))});return(s,a)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c,([u,l])=>(o.openBlock(),o.createBlock(an,o.mergeProps({ref_for:!0},u,o.toHandlers(l)),null,16))),256))]))),256))]))}},q5={__name:"CoreSvgMarkdownsegment",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"],setup(t,{emit:e}){let n=["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"];const r=e,i=o.computed(()=>{let c=-t.layout.fullWidth*t.extendX-t.layout.l,u=t.layout.fullWidth*(1+t.extendX)-t.layout.l,l=-t.layout.fullHeight*t.extendY-t.layout.t,h=t.layout.fullHeight*(1+t.extendY)-t.layout.t;return t.data.map(d=>d.map(({x:m,xend:f,y:p,yend:y,size:b=4,label:w,title:C,color:A,stroke:L,linewidth:q,linetype:P,alpha:v,"translate-x":g=0,"translate-y":k=0,"font-family":N="sans-serif","text-align":T="start",inset:S=0,$raw:R})=>{if(w==null)return null;const{h:D,v:F}=t.coord2pos({x:m,y:p}),{h:I,v:H}=t.coord2pos({x:f,y});if(D<c&&I<c||D>u&&I>u||F<l&&H<l||F>h&&H>h)return null;let j=Math.atan2(H-F,I-D),U={fill:A,"font-size":b*4,stroke:L,"stroke-width":q,"stroke-dasharray":At(P).join(" ")||null,"fill-opacity":v,"stroke-opacity":v,"font-family":N},z=Object.fromEntries(n.map(ot=>[ot,ht=>r(ot,Object.assign(ht,{_vhandled:!0}),t.getCoord(ht),R)])),G,W,Q=a(String(w));switch(T){case"stretch":G=(D+I)/2,W=(F+H)/2,U["text-anchor"]="middle",U.textLength=Math.hypot(I-D||0,H-F||0),U.lengthAdjust="spacingAndGlyphs";break;case"center":G=(D+I)/2,W=(F+H)/2,U["text-anchor"]="middle";break;case"pre":G=D,W=F,g-=Math.cos(j)*S,k-=Math.sin(j)*S,U["text-anchor"]="end";break;case"end":G=I,W=H,g-=Math.cos(j)*S,k-=Math.sin(j)*S,U["text-anchor"]="end";break;case"post":G=I,W=H,g+=Math.cos(j)*S,k+=Math.sin(j)*S,U["text-anchor"]="start";break;default:G=D,W=F,g+=Math.cos(j)*S,k+=Math.sin(j)*S,U["text-anchor"]="start"}let et=[];return(g||k)&&et.push(`translate(${g}, ${k})`),j&&et.push(`rotate(${j*180/Math.PI})`),Object.assign(U,{x:G,y:W,"dominant-baseline":"central","transform-origin":`${G} ${W}`,transform:et.join(" ")||null}),[U,z,Q,String(C??String(w).replace(/\x01|\x02/g,""))]}).filter(m=>m!=null))}),s=new ss;function a(c){const u=s.parse(c).walker(),l=[];let h=[],d=[1],m=0,f;for(;f=u.next();){let{node:{type:p,literal:y},entering:b}=f,w=d.at(-1);if(b){if(p==="text"||p==="code"){const C=Object.assign({dy:me(m||null,"em")},...h,{"font-family":p==="code"?"monospace":null,"font-size":w===1?null:`${w}em`});m=0,l.push({text:y,vbind:C})}else if(p==="strong")h.push({"font-weight":"bold"});else if(p==="emph")h.push({"font-style":"italic"});else if(p==="softbreak"||p==="paragraph")l.push({text:" "});else if(p==="html_inline"){const C=y;if(C.includes("color=")){const A=C.match(/color=(['"])(.*?)\1/i)?.[2]??C.match(/color=(\S*)/)?.[1];A&&h.push({fill:A})}else C.includes("</font>")?h.pop():C.includes("<sup>")?(m-=.4*w,d.push(w*.7)):C.includes("</sup>")?(m+=.4*d.at(-1),d.pop()):C.includes("<sub>")?(m+=.25*w,d.push(w*.7)):C.includes("</sub>")&&(m-=.25*d.at(-1),d.pop())}}else["strong","emph"].includes(p)&&h.pop()}return l}return(c,u)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,l=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l,([h,d,m,f])=>(o.openBlock(),o.createElementBlock("text",o.mergeProps({ref_for:!0},h,o.toHandlers(d,!0)),[o.createElementVNode("title",null,o.toDisplayString(f),1),u[0]||(u[0]=o.createTextVNode()),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m,p=>(o.openBlock(),o.createElementBlock("tspan",o.mergeProps({ref_for:!0},p.vbind),o.toDisplayString(p.text),17))),256))],16))),256))]))),256))]))}},O5={__name:"CoreSvgPoint",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"],setup(t,{emit:e}){let n=["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"];const r=e,i=o.computed(()=>{let s=-t.layout.fullWidth*t.extendX-t.layout.l,a=t.layout.fullWidth*(1+t.extendX)-t.layout.l,c=-t.layout.fullHeight*t.extendY-t.layout.t,u=t.layout.fullHeight*(1+t.extendY)-t.layout.t;return t.data.map(l=>l.map(({x:h,y:d,shape:m,size:f=6,color:p,stroke:y,linetype:b,linewidth:w,alpha:C,title:A,"translate-x":L=0,"translate-y":q=0,angle:P,$raw:v})=>{const{h:g,v:k}=t.coord2pos({x:h,y:d});if(g<s||g>a||k<c||k>u)return null;let N={x:g,y:k,shape:m,size:f,color:p,stroke:y,linetype:b,linewidth:w,alpha:C,title:A,angle:P,translateX:L,translateY:q},T=Object.fromEntries(n.map(S=>[S,R=>r(S,Object.assign(R,{_vhandled:!0}),t.getCoord(R),v)]));return[N,T]}).filter(h=>h!=null))});return(s,a)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c,([u,l])=>(o.openBlock(),o.createBlock(nr,o.mergeProps({ref_for:!0},u,o.toHandlers(l)),null,16))),256))]))),256))]))}},P5={key:0},ms={__name:"CorePolygon",props:{points:{type:Array,default:()=>[]},fill:String,color:String,linewidth:Number,linetype:String,alpha:{type:Number,default:1},title:String,translateX:{type:Number,default:0},translateY:{type:Number,default:0}},setup(t){const e=o.computed(()=>({points:t.points.map(n=>`${n.x},${n.y}`).join(" "),fill:t.fill||null,"fill-opacity":t.alpha==1?null:t.alpha,stroke:t.color||null,"stroke-width":t.linewidth,"stroke-opacity":t.alpha==1?null:t.alpha,"stroke-dasharray":At(t.linetype).join(" ")||null,transform:t.translateX||t.translateY?`translate(${t.translateX}, ${t.translateY})`:null}));return(n,r)=>(o.openBlock(),o.createElementBlock("polygon",o.normalizeProps(o.guardReactiveProps(e.value)),[t.title?(o.openBlock(),o.createElementBlock("title",P5,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0)],16))}},D5={__name:"CoreSvgPolygon",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"],setup(t,{emit:e}){let n=["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"];const r=e,i=o.computed(()=>{let s=-t.layout.fullWidth*t.extendX-t.layout.l,a=t.layout.fullWidth*(1+t.extendX)-t.layout.l,c=-t.layout.fullHeight*t.extendY-t.layout.t,u=t.layout.fullHeight*(1+t.extendY)-t.layout.t;return t.data.map(l=>l.map(({points:h,fill:d,color:m,linewidth:f,linetype:p,alpha:y,title:b,"translate-x":w=0,"translate-y":C=0,$raw:A})=>{if(h=h.map(P=>(({h:v,v:g})=>({x:v,y:g}))(t.coord2pos(P))),h.every(P=>P.x<s)||h.every(P=>P.x>a)||h.every(P=>P.y<c)||h.every(P=>P.y>u))return null;let L={points:h,fill:d,color:m,linewidth:f,linetype:p,alpha:y,title:b,translateX:w,translateY:C},q=Object.fromEntries(n.map(P=>[P,v=>r(P,Object.assign(v,{_vhandled:!0}),t.getCoord(v),A)]));return[L,q]}).filter(h=>h!=null))});return(s,a)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c,([u,l])=>(o.openBlock(),o.createBlock(ms,o.mergeProps({ref_for:!0},u,o.toHandlers(l)),null,16))),256))]))),256))]))}},ds={__name:"CoreSvgRect",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"],setup(t,{emit:e}){let n=["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"];const r=e,i=o.computed(()=>{let s=-t.layout.fullWidth*t.extendX-t.layout.l,a=t.layout.fullWidth*(1+t.extendX)-t.layout.l,c=-t.layout.fullHeight*t.extendY-t.layout.t,u=t.layout.fullHeight*(1+t.extendY)-t.layout.t;return t.data.map(l=>l.map(({xmin:h,xmax:d,ymin:m,ymax:f,fill:p="black",color:y,linewidth:b,linetype:w,alpha:C,title:A,"translate-x":L=0,"translate-y":q=0,$raw:P})=>{const{hmin:v,hmax:g,vmin:k,vmax:N}=t.coord2pos({xmin:h,xmax:d,ymin:m,ymax:f});if(v<s&&g<s||v>a&&g>a||k<c&&N<c||k>u&&N>u)return null;let T={x:(v+g)/2,width:g-v,y:(k+N)/2,height:N-k,fill:p,color:y,linetype:w,linewidth:b,alpha:C,title:A,translateX:L,translateY:q},S=Object.fromEntries(n.map(R=>[R,D=>r(R,Object.assign(D,{_vhandled:!0}),t.getCoord(D),P)]));return[T,S]}).filter(h=>h!=null))});return(s,a)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c,([u,l])=>(o.openBlock(),o.createBlock(i1,o.mergeProps({ref_for:!0},u,o.toHandlers(l)),null,16))),256))]))),256))]))}},V5=Object.freeze(Object.defineProperty({__proto__:null,blank:w5,boxplot:S5,curve:C5,ellipse:L5,line:fs,markdown:$5,markdownsegment:q5,point:O5,polygon:D5,rect:ds,stick:fs,text:{__name:"CoreSvgText",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"],setup(t,{emit:e}){let n=["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"];const r=e,i=o.computed(()=>{let s=-t.layout.fullWidth*t.extendX-t.layout.l,a=t.layout.fullWidth*(1+t.extendX)-t.layout.l,c=-t.layout.fullHeight*t.extendY-t.layout.t,u=t.layout.fullHeight*(1+t.extendY)-t.layout.t;return t.data.map(l=>l.map(({x:h,y:d,size:m=4,label:f,title:p,color:y,stroke:b,linewidth:w,linetype:C,alpha:A,"anchor-x":L,"anchor-y":q,"dock-x":P,"dock-y":v,"translate-x":g=0,"translate-y":k=0,angle:N,"text-length":T,"font-family":S,"text-anchor":R,$raw:D})=>{if(f==null)return null;const{h:F,v:I}=t.coord2pos({x:h,y:d});if(F<s||F>a||I<c||I>u)return null;if(typeof T=="object"){let{x:U=0,y:z=0}=T,{h:G,v:W}=t.coord2pos({x:h+U/2,y:d+z/2}),{h:Q,v:et}=t.coord2pos({x:h-U/2,y:d-z/2});T=Math.hypot(G-Q||0,W-et||0)}let H={x:F,y:I,text:String(f),title:String(p??f),size:m,color:y,stroke:b,linetype:C,linewidth:w,alpha:A,angle:N,translateX:g,translateY:k,anchorX:L,anchorY:q,dockX:P,dockY:v,textLength:T,fontFamily:S,textAnchor:R},j=Object.fromEntries(n.map(U=>[U,z=>r(U,Object.assign(z,{_vhandled:!0}),t.getCoord(z),D)]));return[H,j]}).filter(h=>h!=null))});return(s,a)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c,([u,l])=>(o.openBlock(),o.createBlock(Ue,o.mergeProps({ref_for:!0},u,o.toHandlers(l)),null,16))),256))]))),256))]))}},textsegment:{__name:"CoreSvgTextsegment",props:{extendX:{type:Number,default:0},extendY:{type:Number,default:0},data:Object,coord2pos:Function,getCoord:Function,layout:Object},emits:["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"],setup(t,{emit:e}){let n=["click","contextmenu","singleclick","pointerover","pointerout","pointerenter","pointerleave","pointermove","pointerdown","pointerup","wheel"];const r=e,i=o.computed(()=>{let a=-t.layout.fullWidth*t.extendX-t.layout.l,c=t.layout.fullWidth*(1+t.extendX)-t.layout.l,u=-t.layout.fullHeight*t.extendY-t.layout.t,l=t.layout.fullHeight*(1+t.extendY)-t.layout.t;return t.data.map(h=>h.map(({x:d,xend:m,y:f,yend:p,size:y=4,label:b,title:w,color:C,stroke:A,linewidth:L,linetype:q,alpha:P,"translate-x":v=0,"translate-y":g=0,"font-family":k="sans-serif","text-align":N="justify",angle:T="auto",inset:S=0,$raw:R})=>{if(b==null)return null;const{h:D,v:F}=t.coord2pos({x:d,y:f}),{h:I,v:H}=t.coord2pos({x:m,y:p});if(D<a&&I<a||D>c&&I>c||F<u&&H<u||F>l&&H>l)return null;let j={fill:C,"font-size":y*4,stroke:A,"stroke-width":L,"stroke-dasharray":At(q).join(" ")||null,"fill-opacity":P,"stroke-opacity":P,"font-family":k},U=Object.fromEntries(n.map(z=>[z,G=>r(z,Object.assign(G,{_vhandled:!0}),t.getCoord(G),R)]));if(["stretch","pre","start","center","end","post"].includes(N)){let z=Math.atan2(H-F,I-D),G,W,Q=String(b).replace(/\x01|\x02/g,""),et=Math.cos(z)*S,ot=Math.sin(z)*S;switch(N){case"stretch":G=(D+I)/2,W=(F+H)/2,j["text-anchor"]="middle",j.textLength=Math.hypot(I-D||0,H-F||0),j.lengthAdjust="spacingAndGlyphs";break;case"center":G=(D+I)/2,W=(F+H)/2,j["text-anchor"]="middle";break;case"pre":G=D,W=F,v-=et,g-=ot,j["text-anchor"]="end";break;case"start":G=D,W=F,v+=et,g+=ot,j["text-anchor"]="start";break;case"end":G=I,W=H,v-=et,g-=ot,j["text-anchor"]="end";break;case"post":G=I,W=H,v+=et,g+=ot,j["text-anchor"]="start";break}let ht=[];return(v||g)&&ht.push(`translate(${v}, ${g})`),z&&ht.push(`rotate(${z*180/Math.PI})`),Object.assign(j,{x:G,y:W,"dominant-baseline":"central","transform-origin":`${G} ${W}`,transform:ht.join(" ")||null}),[j,U,Q,String(w??String(b).replace(/\x01|\x02/g,""))]}else{T==="auto"&&(T=Math.atan2(H-F,I-D)*180/Math.PI);let z=s(String(b)),G=(I-D)/(z.length-1||1),W=(H-F)/(z.length-1||1),Q=z.map((et,ot)=>[{x:D+ot*G,y:F+ot*W,"text-anchor":"middle","dominant-baseline":"central",rotate:T},et]);return(v||g)&&(j.transform=`translate(${v}, ${g})`),[j,U,Q,String(w??String(b).replace(/\x01|\x02/g,""))]}}).filter(d=>d!=null))});function s(a){let c=[];for(let u=0;u<a.length;u++)if(a[u]==""){let l=u+1;for(;l<a.length&&a[l]!="";)l++;c.push(a.slice(u+1,l)),u=l}else c.push(a[u]);return c}return(a,c)=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,u=>(o.openBlock(),o.createElementBlock("g",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u,([l,h,d,m])=>(o.openBlock(),o.createElementBlock("text",o.mergeProps({ref_for:!0},l,o.toHandlers(h,!0)),[o.createElementVNode("title",null,o.toDisplayString(m),1),c[0]||(c[0]=o.createTextVNode()),typeof d=="string"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(d.replace(/ /g,"\xA0")),1)],64)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(d,([f,p])=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[p?(o.openBlock(),o.createElementBlock("tspan",o.mergeProps({key:0,ref_for:!0},f),o.toDisplayString(p),17)):o.createCommentVNode("",!0)],64))),256))],16))),256))]))),256))]))}},tile:ds},Symbol.toStringTag,{value:"Module"})),j5={__name:"CoreLayer",props:{data:Object,geom:String,render:String,defaultRender:{type:String,default:"auto"}},setup(t,{expose:e}){const n={svg:V5,canvas:v5},r=o.computed(()=>{let a=t.render??t.defaultRender;return a=="auto"?t.data.map(u=>u.length).reduce((u,l)=>u+l,0)>1e3?"canvas":"svg":n[a][t.geom]!=null?a:"svg"}),i=o.useTemplateRef("layer"),s=o.computed(()=>r.value=="canvas"?"pointer-events: none;":"");return e({render:r,dispatchEvent:a=>i.value?.dispatchEvent?.(a)}),(a,c)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n[r.value][t.geom]),{ref_key:"layer",ref:i,style:o.normalizeStyle(s.value),data:t.data},null,8,["style","data"]))}},R5={key:0},I5=["onPointerdown"],gs={__name:"CoreSelection",props:o.mergeModels({coord2pos:Function,pos2coord:Function,layout:Object,theme:Object,flip:Boolean,move:Boolean,resize:Boolean,dismissible:Boolean,xmin:Number,xmax:Number,ymin:Number,ymax:Number,x:Boolean,y:Boolean,minRangeX:Number,minRangeY:Number,ctrlKey:Boolean,shiftKey:Boolean,altKey:Boolean,metaKey:Boolean,buttons:Number,activeTransform:Object,transition:String},{modelValue:{default:()=>({})},modelModifiers:{}}),emits:o.mergeModels(["select","selecting","selectend","click","contextmenu"],["update:modelValue"]),setup(t,{emit:e}){const n=o.useModel(t,"modelValue"),r=o.createPropsRestProxy(t,["coord2pos","pos2coord","layout","theme","flip","activeTransform","transition"]),i=o.computed(()=>{if(n.value==null||n.value.hidden||["xmin","xmax","ymin","ymax"].every(b=>n.value?.[b]==null))return null;let{hmin:d,hmax:m,vmin:f,vmax:p}=t.coord2pos(n.value,{limited:!0}),y=t.coord2pos(n.value);return d!=null&&m!=null&&([d,m]=[d,m].sort((b,w)=>b-w)),f!=null&&p!=null&&([f,p]=[f,p].sort((b,w)=>b-w)),{hmin:d,hmax:m,vmin:f,vmax:p,pos:y}}),s=o.computed(()=>{if(!i.value)return null;let{translateH:d,translateV:m,scaleH:f,scaleV:p}=t.activeTransform,{hmin:y,hmax:b,vmin:w,vmax:C,pos:A}=i.value,L=b-y,q=C-w,P=t.layout.left,v=t.layout.top,g=1,k=1;if(A.hmin!=null&&A.hmax!=null)P+=d,g=f;else if(A.hmin!=null){let T=d+y*(f-1);g=1-T/L,P+=T*(1+y/L)}else if(A.hmax!=null){let T=d+b*(f-1);g=1+T/L,P+=T*(1-b/L)}if(A.vmin!=null&&A.vmax!=null)v+=t.activeTransform.translateV,k=t.activeTransform.scaleV;else if(A.vmin!=null){let T=m+w*(p-1);k=1-T/q,v+=T*(1+w/q)}else if(A.vmax!=null){let T=m+C*(p-1);k=1+T/q,v+=T*(1-C/q)}let N=[];return(P!=0||v!=0)&&N.push(`translate(${P}, ${v})`),(g!=1||k!=1)&&N.push(`scale(${g}, ${k})`),N.join(" ")||null}),a=o.computed(()=>t.activeTransform.translateH!=0||t.activeTransform.translateV!=0||t.activeTransform.scaleH!=1||t.activeTransform.scaleV!=1),c=o.computed(()=>{if(!i.value)return null;let{hmin:d,hmax:m,vmin:f,vmax:p,pos:y}=i.value,b=t.theme?.line_width??1;y.hmin==null&&(d-=b/2),y.hmax==null&&(m+=b/2),y.vmin==null&&(f-=b/2),y.vmax==null&&(p+=b/2);let w=m-d,C=p-f;return{x:d,y:f,width:w,height:C,fill:t.theme?.background??"transparent","fill-opacity":t.theme?.opacity,stroke:t.theme?.line_color??"none","stroke-width":t.theme?.line_width,"stroke-opacity":t.theme?.opacity,transform:s.value,style:{transition:t.transition,"pointer-events":"none"}}}),u=o.computed(()=>{if(!i.value||a.value)return null;let d=10,{hmin:m,hmax:f,vmin:p,vmax:y,pos:b}=i.value,w=f-m,C=y-p,A={};r.move&&(A.tblr={x:m,y:p,width:w,height:C,fill:"transparent",style:"cursor:move;"}),r.resize&&(b.hmin!=null&&(A.l={x:m-d/2,y:p,width:d,height:C,style:"cursor:ew-resize;",class:"vvplot-interactive"}),b.hmax!=null&&(A.r={x:f-d/2,y:p,width:d,height:C,style:"cursor:ew-resize;"}),b.vmin!=null&&(A.t={x:m,y:p-d/2,width:w,height:d,style:"cursor:ns-resize;"}),b.vmax!=null&&(A.b={x:m,y:y-d/2,width:w,height:d,style:"cursor:ns-resize;"}),b.hmin!=null&&b.vmin!=null&&(A.tl={x:m-d/2,y:p-d/2,width:d,height:d,style:"cursor:nwse-resize;"}),b.hmax!=null&&b.vmin!=null&&(A.tr={x:f-d/2,y:p-d/2,width:d,height:d,style:"cursor:nesw-resize;"}),b.hmin!=null&&b.vmax!=null&&(A.bl={x:m-d/2,y:y-d/2,width:d,height:d,style:"cursor:nesw-resize;"}),b.hmax!=null&&b.vmax!=null&&(A.br={x:f-d/2,y:y-d/2,width:d,height:d,style:"cursor:nwse-resize;"}));let L=t.layout.left,q=t.layout.top;if(L||q)for(let P in A)A[P].transform=`translate(${L}, ${q})`;return A}),l=e;function h(d,m){if(!m||!["buttons","ctrlKey","shiftKey","altKey","metaKey"].every(z=>r[z]==d[z]))return;d.stopPropagation(),d.preventDefault(),d.target.setPointerCapture(d.pointerId);let f=t.coord2pos(n.value),{h:p,v:y}=t.pos2coord({h:f.hmin,v:f.vmin}),{h:b,v:w}=t.pos2coord({h:f.hmax,v:f.vmax}),{hmin:C,hmax:A,vmin:L,vmax:q}=f,P=!1,v={min:r.xmin,max:r.xmax},g={min:r.ymin,max:r.ymax},[k=0,N=0]=t.flip?[r.minRangeY,r.minRangeX]:[r.minRangeX,r.minRangeY],T=t.coord2pos(r),S=0,R=0,D,F,I,H,j=!1,U=!1;d.target.onpointermove=z=>{if(P=!0,S+=z.movementX,R+=z.movementY,m.includes("l")&&m.includes("r")){let G=ut(S,{min:T.hmin-C,max:T.hmax-A}),W=t.pos2coord({hmin:st(C,G),hmax:st(A,G)});p=W.hmin,b=W.hmax}else m.includes("l")?(p=t.pos2coord({h:C+S}).h,p=ut(p,p>b?{min:st(b,k)}:{max:st(b,-k)}),j=C+S>A):m.includes("r")&&(b=t.pos2coord({h:A+S}).h,b=ut(b,b>p?{min:st(p,k)}:{max:st(p,-k)}),j=A+S<C);if(m.includes("t")&&m.includes("b")){let G=ut(R,{min:T.vmin-L,max:T.vmax-q}),W=t.pos2coord({vmin:st(L,G),vmax:st(q,G)});y=W.vmin,w=W.vmax}else m.includes("t")?(y=t.pos2coord({v:L+R}).v,y=ut(y,y>w?{min:st(w,N)}:{max:st(w,-N)}),U=L+R>q):m.includes("b")&&(w=t.pos2coord({v:q+R}).v,w=ut(w,w>y?{min:st(y,N)}:{max:st(y,-N)}),U=q+R<L);D=ut(t.flip?y:p,v),F=ut(t.flip?w:b,v),I=ut(t.flip?p:y,g),H=ut(t.flip?b:w,g),D>F&&([D,F]=[F,D]),I>H&&([I,H]=[H,I]),l("selecting",{xmin:D,xmax:F,ymin:I,ymax:H},t.theme)},d.target.onpointerup=z=>{if(z.currentTarget.onpointerup=null,z.currentTarget.onpointermove=null,r.buttons&1&&(z.currentTarget.onclick=Q=>{Q.currentTarget.onclick=null,l("click",Q)}),r.buttons&2&&(z.currentTarget.oncontextmenu=Q=>{Q.currentTarget.onclick=null,l("contextmenu",Q)}),!P)return;let G={xmin:D,xmax:F,xreverse:!!(j^n.value.xreverse),ymin:I,ymax:H,yreverse:!!(U^n.value.yreverse)},W=new PointerEvent("select",d);n.value=Mt(G),l("selectend"),l("select",Mt(G),W)}}return(d,m)=>c.value?(o.openBlock(),o.createElementBlock("g",R5,[o.createElementVNode("rect",o.normalizeProps(o.guardReactiveProps(c.value)),null,16),m[0]||(m[0]=o.createTextVNode()),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(f,p)=>(o.openBlock(),o.createElementBlock("rect",o.mergeProps({fill:"transparent"},{ref_for:!0},f,{onPointerdown:y=>h(y,p),class:"vvplot-interactive"}),null,16,I5))),256))])):o.createCommentVNode("",!0)}},H5=["height","width"],F5=["y1","y2"],U5=["y"],z5={__name:"CoreGuideGradientbar",props:{scales:Array,appearance:{type:Object,default:()=>({})},theme:{type:Object,default:()=>({})},breaks:Array,limits:Object},setup(t){const e=o.computed(()=>{let{min:s,max:a}=t.limits;return t.breaks.map(c=>({position:(c-s)/(a-s),label:String(c)}))}),n=o.computed(()=>{let s=30,{min:a,max:c}=t.limits,u=(c-a)/(s-1),l=Array.from({length:s},(d,m)=>a+m*u),h=t.scales.map(d=>d(l));return l.map((d,m)=>Object.fromEntries(t.scales.map((f,p)=>[{color:"fill"}[f.aesthetics]??f.aesthetics,h[p][m]])))}),r=o.ref(0),i=o.useTemplateRef("svg");return o.watch(e,async()=>{await o.nextTick();let s=i.value?.getBBox?.();s&&(r.value=s.width+s.x)},{immediate:!0}),(s,a)=>(o.openBlock(),o.createElementBlock("svg",{height:n.value.length*3+20,width:r.value,ref:"svg"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(c,u)=>(o.openBlock(),o.createBlock(i1,o.mergeProps({width:10,height:3.1,x:10,y:10+(29-u+.5)*3,alpha:t.appearance.alpha},{ref_for:!0},c),null,16,["y","alpha"]))),256)),a[1]||(a[1]=o.createTextVNode()),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.value,(c,u)=>(o.openBlock(),o.createElementBlock("g",null,[o.createElementVNode("line",{x1:"15",x2:"18",y1:10+(1-c.position)*90,y2:10+(1-c.position)*90,stroke:"black"},null,8,F5),a[0]||(a[0]=o.createTextVNode()),o.createElementVNode("text",{x:"20",y:10+(1-c.position)*90,"alignment-baseline":"central"},o.toDisplayString(c.label),9,U5)]))),256))],8,H5))}},X5=Object.freeze(Object.defineProperty({__proto__:null,curve:hs,line:Xe,point:nr,polygon:ms,text:Ue,tile:i1},Symbol.toStringTag,{value:"Module"})),Y5=["height","width"],G5=["transform"],W5={transform:"translate(10, 10)"},_5={x:"20",y:"10","alignment-baseline":"central"},K5={__name:"CoreGuideLegendkey",props:{scales:Array,appearances:{type:Object,default:()=>({})},theme:{type:Object,default:()=>({})},breaks:Array},setup(t){const e=o.computed(()=>{let s=t.scales.map(l=>l(t.breaks)),a=t.breaks.map((l,h)=>({bind:Object.fromEntries(t.scales.map((d,m)=>[d.aesthetics,s[m][h]])),label:String(l)})),c=Ks(a.map(l=>l.bind)),u=Map.groupBy(a.map(l=>l.label),(l,h)=>c.categories[c[h]]);return Array.from(u).map(([l,h])=>({bind:l,label:h.join("; ")}))}),n=o.computed(()=>{let{text:s,line:a,point:c,tile:u}=t.appearances,l={};return s!=null&&(l.text={size:4,text:"a",...s}),a!=null&&(l.line={x1:-5,x2:5,color:"black",...a}),c!=null&&(l.point={size:6,...c}),u!=null&&(l.tile={width:10,height:10,fill:"transparent",...u}),l}),r=o.ref(0),i=o.useTemplateRef("svg");return o.watch(e,async()=>{await o.nextTick();let s=i.value?.getBBox?.();s&&(r.value=s.width+s.x)},{immediate:!0}),(s,a)=>(o.openBlock(),o.createElementBlock("svg",{height:e.value.length*20,width:r.value,ref:"svg"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.value,(c,u)=>(o.openBlock(),o.createElementBlock("g",{transform:`translate(0, ${u*20})`},[o.createElementVNode("g",W5,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(l,h)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(X5[h]),o.mergeProps({ref_for:!0},{...l,...c.bind}),null,16))),256))]),a[0]||(a[0]=o.createTextVNode()),o.createElementVNode("text",_5,o.toDisplayString(c.label),1)],8,G5))),256))],8,Y5))}},Z5=Object.assign({inheritAttrs:!1},{__name:"CoreGuide",props:{scales:Array,type:{type:String,default:"legendkey"}},setup(t){const e={legendkey:K5,gradientbar:z5},n=o.computed(()=>t.scales.map(([s])=>s.title).find(s=>s!=null)),r=o.computed(()=>{let s=t.scales.map(([c])=>c),a=s.find(c=>c.breaks!=null);return Array.isArray(a?.breaks)?Array.from(a.breaks):(a=s.find(c=>c.level!=null),a?.level?a.level.apply(Array.from(a.level)):(a=s.find(c=>c.limits!=null),Gn.number({minor:!0})(a.limits)))}),i=o.computed(()=>{let s={scales:t.scales.map(([a])=>a)};if(t.type=="legendkey")s.appearances={text:bt(...t.scales.flatMap(([a,c])=>[c.text,c.markdown])),line:bt(...t.scales.flatMap(([a,c])=>[c.line,c.linerange,c.curve])),point:bt(...t.scales.flatMap(([a,c])=>[c.point])),tile:bt(...t.scales.flatMap(([a,c])=>[c.rect,c.tile,c.polygon,c.ellipse]))};else if(t.type=="gradientbar"){let a=t.scales.map(([u])=>u.limits?.max).filter(u=>u!=null).reduce((u,l)=>Math.min(u,l),1/0),c=t.scales.map(([u])=>u.limits?.min).filter(u=>u!=null).reduce((u,l)=>Math.max(u,l),-1/0);s.limits={min:c,max:a},s.appearance=bt(...t.scales.flatMap(([u,l])=>Object.values(l)))}return s});return(s,a)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("span",null,o.toDisplayString(n.value),1),a[0]||(a[0]=o.createTextVNode()),(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e[t.type]),o.mergeProps(i.value,{breaks:r.value}),null,16,["breaks"]))],64))}}),Q5={__name:"CoreLegend",props:{theme:{type:Object,default:()=>({})},scales:Map},setup(t){const e=o.computed(()=>{let r=new Map(Array.from(t.scales).filter(([l])=>l.legend!==!1)),i=Array.from(r.keys()),s=i.map(l=>l.key),a=1;for(let l in s){for(;s.includes("_guide_"+a);)a++;s[l]==null&&(s[l]="_guide_"+a)}let c=i.map(l=>n(l)),u=Zs(s,c);return Map.groupBy(r,(l,h)=>u.categories[u[h]])});function n(r){return r==null?null:["gradientbar","legendkey"].includes(r.guide)?r.guide:r.level?"legendkey":["color","fill","alpha"].includes(r.aesthetics)?"gradientbar":"legendkey"}return(r,i)=>t.scales?(o.openBlock(),o.createElementBlock("div",{key:0,class:"vvplot-legend",style:o.normalizeStyle({gap:t.theme.spacing+"px"})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.value,([[s,a],c])=>(o.openBlock(),o.createBlock(Z5,{key:s,type:a,scales:c},null,8,["type","scales"]))),128))],4)):o.createCommentVNode("",!0)}},J5=["id"],t6=["width","height"],e6=["transform","width","height","fill"],n6=["transform"],r6=["transform","clip-path"],i6=["transform"],o6=["clip-path"],s6={key:1},l6=Object.assign({inheritAttrs:!1},{__name:"CorePlot",props:o.mergeModels({schema:Object,layers:Array,minRange:Object,expandAdd:Object,flip:Boolean,reverse:Object,paddings:Object,expandMult:Object,coordLevels:Object,levels:Object,scales:Object,axes:{type:Array,default:()=>[]},theme:Object,render:String,clip:Boolean,action:{type:Array,default:()=>[]},selections:{type:Array,default:()=>[]},legendTeleport:null},{selectionPreview:{},selectionPreviewModifiers:{},selectionPreviewTheme:{},selectionPreviewThemeModifiers:{},transition:{},transitionModifiers:{}}),emits:o.mergeModels(["click","singleclick","dblclick","contextmenu","pointerdown","pointerup","pointerover","pointerout","pointerenter","pointerleave","pointermove","wheel","select","move","zoom","rescale","nudge"],["update:selectionPreview","update:selectionPreviewTheme","update:transition"]),setup(t,{expose:e,emit:n}){const r=o.useId(),i=o.createPropsRestProxy(t,["schema","theme","expandAdd","expandMult","coordLevels","levels","scales","flip","reverse","paddings"]),s=n,a=o.inject("range"),c=o.inject("rangePreview"),u=o.useModel(t,"selectionPreview"),l=o.useModel(t,"selectionPreviewTheme");function h(M,O){u.value=M,l.value=O}const d=o.computed(()=>Object.assign({},t.theme?.selection,l.value));function m(){u.value={}}const f=o.useModel(t,"transition"),p=o.useTemplateRef("svg"),y=o.useTemplateRef("layers"),b=o.ref(0),w=o.ref(0);Cr(p,M=>{let{width:O,height:V}=M[0].contentRect;b.value=O,w.value=V});const C=o.computed(()=>new c2(t.schema,i.layers)),A=o.computed(()=>C.value.useScales(t.scales,t.levels).useCoordLevels(t.coordLevels).render(a,t.expandAdd,i.minRange)),L=ue(()=>{let M=Object.fromEntries(["left","right","top","bottom"].map(B=>[B,t.paddings[B]&&t.theme.plot.padding[B]||0])),O=+t.theme.plot.margin.left+M.left,V=+t.theme.plot.margin.right+M.right,x=+t.theme.plot.margin.top+M.top,E=+t.theme.plot.margin.bottom+M.bottom;return x+E>w.value&&(x=w.value*(x/(x+E)),E=w.value-x),O+V>b.value&&(O=b.value*(O/(O+V)),V=b.value-O),{l:O,r:V,t:x,b:E,left:O,right:b.value-V,top:x,bottom:w.value-E,width:b.value-O-V,height:w.value-x-E}}),q=ue(()=>{let M=A.value.coordScales,O=t.expandMult,{min:V,max:x}=T(M.x.range,O.x),{min:E,max:B}=T(M.y.range,O.y),[$,Y,X,Z]=t.flip?[E,B,V,x]:[V,x,E,B],{width:tt,height:nt}=L;return{left:tt*$||0,right:tt*(1-Y)||0,top:nt*Z||0,bottom:nt*(1-X)||0,l:tt*$||0,r:tt*Y||0,t:nt*Z||0,b:nt*X||0,width:tt*(1-$-Y),height:nt*(1-Z-X),fullWidth:tt,fullHeight:nt}});e({vplot:A,panel:L,svg:p});const P=o.computed(()=>{let M=Q.value.translateH+q.left,O=Q.value.translateV+q.top,V=Q.value.scaleH,x=Q.value.scaleV,E=[];return(M!=0||O!=0)&&E.push(`translate(${M}, ${O})`),(V!=1||x!=1)&&E.push(`scale(${V}, ${x})`),{transform:E.join(" ")||null}});function v({value:M,min:O,max:V},x,E,B){let $={};return M!=null&&($.value=x.invert(E?1-M/B:M/B)),E?(V!=null&&($.min=x.invert(1-V/B)),O!=null&&($.max=x.invert(1-O/B))):(O!=null&&($.min=x.invert(O/B)),V!=null&&($.max=x.invert(V/B))),$}function g({h:M,hmin:O,hmax:V,v:x,vmin:E,vmax:B}={}){let $=A.value.coordScales,{width:Y,height:X}=q,Z={},[tt,nt,dt]=t.flip?[x,E,B]:[M,O,V],[ft,it,rt]=t.flip?[M,O,V]:[x,E,B];if(tt!=null||nt!=null||dt!=null){let{value:_,min:J,max:K}=v({value:tt,min:nt,max:dt},$.x,t.flip!=t.reverse.x,t.flip?X:Y);Object.assign(Z,Mt({x:_,xmin:J,xmax:K})),t.flip?Object.assign(Z,Mt({v:_,vmin:J,vmax:K})):Object.assign(Z,Mt({h:_,hmin:J,hmax:K}))}if(ft!=null||it!=null||rt!=null){let{value:_,min:J,max:K}=v({value:ft,min:it,max:rt},$.y,t.flip==t.reverse.y,t.flip?Y:X);Object.assign(Z,Mt({y:_,ymin:J,ymax:K})),t.flip?Object.assign(Z,Mt({h:_,hmin:J,hmax:K})):Object.assign(Z,Mt({v:_,vmin:J,vmax:K}))}return Z}function k({value:M,min:O,max:V}={},{oob:x=f1}={},E,B,$,Y){let X={};return M!=null&&(X.value=$?x($*(B?1-E(M):E(M)),Y):0),O==null&&V==null||(B?(V!=null&&(X.min=$?x($*(1-E(V)),Y):0),O!=null&&(X.max=$?x($*(1-E(O)),Y):0)):(O!=null&&(X.min=$?x($*E(O),Y):0),V!=null&&(X.max=$?x($*E(V),Y):0))),X}function N({h:M,hmin:O,hmax:V,v:x,vmin:E,vmax:B,x:$,xmin:Y,xmax:X,y:Z,ymin:tt,ymax:nt}={},{limited:dt=!1,oob:ft=f1}={}){let{width:it,height:rt,l:_,r:J,t:K,b:ct}=q,gt={},Ht=A.value.coordScales,Rt={min:-_,max:it+J},ce={min:-K,max:rt+ct};if(($!=null||Y!=null||X!=null)&&(t.flip?[x,E,B]=[$,Y,X]:[M,O,V]=[$,Y,X]),(Z!=null||tt!=null||nt!=null)&&(t.flip?[M,O,V]=[Z,tt,nt]:[x,E,B]=[Z,tt,nt]),M!=null||O!=null||V!=null){let{value:Qt,min:Jt,max:te}=k({value:M,min:O,max:V},{oob:ft},Ht[t.flip?"y":"x"],t.reverse[t.flip?"y":"x"],it,Rt);Object.assign(gt,Mt({h:Qt,hmin:Jt,hmax:te}))}if(x!=null||E!=null||B!=null){let{value:Qt,min:Jt,max:te}=k({value:x,min:E,max:B},{oob:ft},Ht[t.flip?"x":"y"],!t.reverse[t.flip?"x":"y"],rt,ce);Object.assign(gt,Mt({v:Qt,vmin:Jt,vmax:te}))}return dt&&(gt.hmin==null&&(gt.hmin=Rt.min),gt.hmax==null&&(gt.hmax=Rt.max),gt.vmin==null&&(gt.vmin=ce.min),gt.vmax==null&&(gt.vmax=ce.max)),gt}function T({min:M,max:O}={},{min:V=0,max:x=0}={}){let E=O-M,B=+M-V*E,$=+O+x*E,Y=$-B;return{min:Y==0?0:(M-B)/Y,max:Y==0?0:($-O)/Y}}function S(M){let O=p.value.getBoundingClientRect(),V=Math.trunc(M.clientX)-(O.left+L.left+q.left),x=Math.trunc(M.clientY)-(O.top+L.top+q.top),E=O.left+L.left+q.right-Math.trunc(M.clientX),B=O.top+L.top+q.bottom-Math.trunc(M.clientY),{x:$,y:Y}=g({h:V,v:x});return{l:V,t:x,r:E,b:B,x:$,y:Y}}function R(M){let O=p.value.getBoundingClientRect();return M.clientX>O.left+L.l&&M.clientX<O.right-L.r&&M.clientY>O.top+L.t&&M.clientY<O.bottom-L.b}function D(M){if(!y.value||M._vhandled||!R(M)||!Array.from(y.value).filter(E=>E.render=="canvas").length)return M;let V={};for(let E in M)V[E]=M[E];V.bubbles=!1;let x=new PointerEvent(M.type,V);for(let E of Object.keys(M)){let B=Object.getOwnPropertyDescriptor(x,E);B&&!B.writable&&!B.set||(x[E]=M[E])}for(let E=y.value.length-1;E>=0;E--)y.value[E].dispatchEvent(x)===!1&&M.preventDefault();for(let E of Object.keys(x)){let B=Object.getOwnPropertyDescriptor(x,E);B&&!B.writable&&!B.set||(M[E]=x[E])}return x._vhandled?x:M}let F,I=0,H=0;function j(M){let O=D(M),V=S(M);if(s("pointerdown",O,V),O.defaultPrevented&&M.preventDefault(),i.clip&&!R(M))return;let x=M.currentTarget,E=!1;function B(X){(Math.abs(X.screenX-M.screenX)>3||Math.abs(X.screenY-M.screenY)>3)&&(E=!0,X.currentTarget.removeEventListener("pointermove",B))}M.target.addEventListener("pointermove",B,{passive:!0}),M.target.addEventListener("pointerup",function(X){if(M.target.removeEventListener("pointermove",B),!E){let Z=new PointerEvent("singleclick",X);X.target.dispatchEvent(Z)}},{once:!0});let $=i.selections.findLast(X=>["buttons","ctrlKey","shiftKey","altKey","metaKey"].every(Z=>X[Z]==M[Z]));if($){let{x:X=!1,y:Z=!1,"min-range-x":tt=0,"min-range-y":nt=0}=$;M.target.setPointerCapture(M.pointerId),x.style.userSelect="none";let dt=(({xmin:it,xmax:rt})=>({min:it,max:rt}))($),ft=(({ymin:it,ymax:rt})=>({min:it,max:rt}))($);M.target.onpointermove=it=>{if(!X&&!Z||!E)return;let rt=S(it),_={};if(X){let J=ut(V.x,dt),K=ut(ut(rt.x,rt.x>J?{min:st(J,tt)}:{max:st(J,-tt)}),dt);_.xmin=J>K?K:J,_.xmax=J>K?J:K,_.xreverse=J>K}if(Z){let J=ut(V.y,ft),K=ut(ut(rt.y,rt.y>J?{min:st(J,nt)}:{max:st(J,-nt)}),ft);_.ymin=J>K?K:J,_.ymax=J>K?J:K}u.value=_,l.value=$.theme},M.target.onpointerup=it=>{if(it.currentTarget.onpointerup=null,it.currentTarget.onpointermove=null,x.style.userSelect=null,u.value={},E&&(X||Z)){$.buttons&1&&(it.currentTarget.onclick=K=>{K.currentTarget.onclick=null,xe($.onClick,K)}),$.buttons&2&&(it.currentTarget.oncontextmenu=K=>{K.currentTarget.oncontextmenu=null,xe($.onContextmenu,K)});let rt=S(it),_={},J=new PointerEvent("select",M);if(X){let K=ut(V.x,dt),ct=ut(ut(rt.x,rt.x>K?{min:st(K,tt)}:{max:st(K,-tt)}),dt);if(K==ct)return;_.xmin=K>ct?ct:K,_.xmax=K>ct?K:ct,_.xreverse=K>ct}if(Z){let K=ut(V.y,ft),ct=ut(ut(rt.y,rt.y>K?{min:st(K,nt)}:{max:st(K,-nt)}),ft);if(K==ct)return;_.ymin=K>ct?ct:K,_.ymax=K>ct?K:ct,_.yreverse=K>ct}$["onUpdate:modelValue"]?.(_),xe($.onSelect,Mt(_),J)||s("select",Mt(_),J)}if(!E&&$.dismissible!==!1){if(it.defaultPrevented)return;let rt=$.modelValue;if($.dismissible!==!0&&["xmin","xmax","ymin","ymax"].every(K=>rt?.[K]==null))return;let _={},J=new PointerEvent("select",M);$["onUpdate:modelValue"]?.(_),xe($.onDismiss,Mt(_),J)||s("select",Mt(_),J)}};return}let Y=i.action.find(X=>X.action=="move"&&["buttons","ctrlKey","shiftKey","altKey","metaKey"].every(Z=>X[Z]==M[Z]));if(Y){M.target.setPointerCapture(M.pointerId),x.style.userSelect="none",F=clearTimeout(F);let X=0,Z=q.width,tt=0,nt=q.height,dt,ft,it,rt,_=N(Y);M.target.onpointermove=J=>{let{x:K=!1,y:ct=!1}=Y,[gt,Ht]=t.flip?[ct,K]:[K,ct];if(gt){I+=J.movementX;let te=ut(-I,{min:_.hmin-X,max:_.hmax-Z});dt=X+te,ft=Z+te}if(Ht){H+=J.movementY;let te=ut(-H,{min:_.vmin-tt,max:_.vmax-nt});it=tt+te,rt=nt+te}let{xmin:Rt,xmax:ce,ymin:Qt,ymax:Jt}=g({hmin:dt,hmax:ft,vmin:it,vmax:rt});Object.assign(c,{xmin:Rt,xmax:ce,ymin:Qt,ymax:Jt})},M.target.onpointerup=J=>{J.currentTarget.onpointerup=null,J.currentTarget.onpointermove=null,x.style.userSelect=null,F=setTimeout(()=>{et(Y,J),I=H=0},300)};return}}let U=0,z;function G(M){let O=D(M),V=S(M);if(s("wheel",O,V),O.defaultPrevented&&M.preventDefault(),i.clip&&!R(M))return;let x=i.action.find(E=>["zoom","nudge"].includes(E.action)&&["ctrlKey","shiftKey","altKey","metaKey"].every(B=>E[B]==M[B]));!x||!x.x&&!x.y||(z=clearTimeout(z),M.preventDefault(),f.value="transform 0.1s ease-out",U+=M.deltaY,W(x,V,U),z=setTimeout(()=>{et(x,M),U=0},300))}function W(M,O,V){if(M.action=="zoom"){let{x=!1,y:E=!1,"min-range-x":B=0,"min-range-y":$=0,sensitivity:Y=1.25}=M,X=Y**(U/100),[Z,tt]=t.flip?[E,x]:[x,E],nt=N(M),dt,ft,it,rt;Z&&(dt=Math.max(O.l-Math.max(O.l,0)*X,nt.hmin??-1/0),ft=Math.min(O.l+Math.max(O.r,0)*X,nt.hmax??1/0)),tt&&(it=Math.max(O.t-Math.max(O.t,0)*X,nt.vmin??-1/0),rt=Math.min(O.t+Math.max(O.b,0)*X,nt.vmax??1/0));let{xmin:_,xmax:J,ymin:K,ymax:ct}=g({hmin:dt,hmax:ft,vmin:it,vmax:rt});if(x&&X<1&&J-_<B){let gt=(J+_)/2;_=gt-B/2,J=gt+B/2}if(E&&X<1&&ct-K<$){let gt=(ct+K)/2;K=gt-$/2,ct=gt+$/2}Object.assign(c,{xmin:_,xmax:J,ymin:K,ymax:ct})}if(M.action=="nudge"){let{x=!1,y:E=!1,sensitivity:B=.1}=M,[$,Y]=t.flip?[E,x]:[x,E],X=N(M),Z=0,tt=q.width,nt=0,dt=q.height,ft,it,rt,_;if($){let Ht=B*q.width*(-V/120),Rt=ut(-Ht,{min:X.hmin-Z,max:X.hmax-tt});ft=Z+Rt,it=tt+Rt}if(Y){let Ht=B*q.height*(-V/120),Rt=ut(-Ht,{min:X.vmin-nt,max:X.vmax-dt});rt=nt+Rt,_=dt+Rt}let{xmin:J,xmax:K,ymin:ct,ymax:gt}=g({hmin:ft,hmax:it,vmin:rt,vmax:_});Object.assign(c,{xmin:J,xmax:K,ymin:ct,ymax:gt})}}const Q=o.computed(()=>{let M=0,O=q.width,V=0,x=q.height,{hmin:E=M,hmax:B=O,vmin:$=V,vmax:Y=x}=N(c??{}),X=O-M,Z=B-E,tt=x-V,nt=Y-$;return{scaleH:X<1||Z<1||Math.abs(X-Z)<1?1:X/Z,translateH:(M*B-E*O)/(B-E)||0,scaleV:tt<1||nt<1||Math.abs(tt-nt)<1?1:tt/nt,translateV:(V*Y-$*x)/(Y-$)||0}});o.watch(Q,({translateH:M,translateV:O,scaleH:V,scaleV:x})=>{!M&&!O&&V==1&&x==1&&(f.value=null)},{deep:!0});function et(M,O){let V=Mt(c)??{};if(!Object.keys(V).length)return;let x=new PointerEvent(O.type,O);xe(M.emit,V,x)||s(M.action,V,x),ht(V),Object.assign(c,{xmin:void 0,xmax:void 0,ymin:void 0,ymax:void 0})}const ot={pointerdown:j,pointerup(M){let O=D(M),V=S(M);s("pointerup",O,V),O.defaultPrevented&&M.preventDefault()},pointerover(M){s("pointerover",M,S(M))},pointerout(M){s("pointerout",M,S(M))},pointerenter(M){s("pointerenter",M,S(M))},pointerleave(M){s("pointerleave",M,S(M))},click(M){s("click",D(M),S(M))},contextmenu(M){let O=D(M),V=S(M);s("contextmenu",O,V),O.defaultPrevented&&M.preventDefault()},singleclick(M){s("singleclick",D(M),S(M))},dblclick(M){let O=D(M),V=S(M);s("dblclick",O,V),O.defaultPrevented&&M.preventDefault()},pointermove(M){let O=D(M),V=S(M);s("pointermove",O,V),O.defaultPrevented&&M.preventDefault()},wheel:G};function ht(M){let{xmin:O,xmax:V,ymin:x,ymax:E}=M,{xmin:B,xmax:$,ymin:Y,ymax:X}=a;O=O!=null?st(O,+t.expandAdd.x.min):B,V=V!=null?st(V,-t.expandAdd.x.max):$,x=x!=null?st(x,+t.expandAdd.y.min):Y,E=E!=null?st(E,-t.expandAdd.y.max):X,!(O==B&&V==$&&x==Y&&E==X)&&Object.assign(a,{xmin:O,xmax:V,ymin:x,ymax:E})}const Pt=ue(()=>{let M=c?.xmin??a?.xmin,O=c?.xmax??a?.xmax,V=c?.ymin??a?.ymin,x=c?.ymax??a?.ymax;return{x:M||O?{min:M,max:O}:void 0,y:V||x?{min:V,max:x}:void 0}}),Ut=o.computed(()=>{let M={x:A.value.coordScales.x,y:A.value.coordScales.y};return i.axes.filter(O=>O.coord in M).filter(O=>["h","v"].includes(O.orientation)).map(({coord:O,breaks:V,labels:x,titles:E,minorBreaks:B,...$})=>({coord:O,axis:new u2(M[O],{breaks:V,labels:x,titles:E,minorBreaks:B}),etc:$}))}),Bt=o.computed(()=>Ut.value.map(({coord:M,axis:O,etc:V})=>{let{majorBreaks:x,minorBreaks:E,ticks:B}=O.getBindings({range:Pt[M],expandMult:t.expandMult[M]}),{showGrid:$,orientation:Y,...X}=V;return{majorBreaks:x,minorBreaks:E,ticks:B,showGrid:$,coord:M,orientation:Y,bind:X}})),le=o.computed(()=>{let M=Bt.value.filter(V=>V.showGrid&&V.orientation=="v"),O=Bt.value.filter(V=>V.showGrid&&V.orientation=="h");return{h:{majorBreaks:Ge(M.flatMap(V=>V.majorBreaks),V=>V.position),minorBreaks:Ge(M.flatMap(V=>V.minorBreaks),V=>V.position)},v:{majorBreaks:Ge(O.flatMap(V=>V.majorBreaks),V=>V.position),minorBreaks:Ge(O.flatMap(V=>V.minorBreaks),V=>V.position)}}}),ae=o.computed(()=>Bt.value.map(({orientation:M,coord:O,bind:V,ticks:x})=>{let{onMove:E=(...Z)=>s("move",...Z),onZoom:B=(...Z)=>s("zoom",...Z),onRescale:$=(...Z)=>s("rescale",...Z),onNudge:Y=(...Z)=>s("nudge",...Z),...X}=V;return{orientation:M,bind:{coord:O,orientation:M,ticks:x,layout:q,coord2pos:N,pos2coord:g,...X},on:{zoom:B,move:E,rescale:$,nudge:Y,rangechange:ht}}}));return(M,O)=>(o.openBlock(),o.createElementBlock("svg",o.mergeProps({ref:"svg",width:"100%",height:"100%"},o.toHandlers(ot,!0),M.$attrs),[o.createElementVNode("defs",null,[o.createElementVNode("clipPath",{id:`${o.unref(r)}-plot-clip`},[o.createElementVNode("rect",{x:"0",y:"0",width:o.unref(L).width,height:o.unref(L).height},null,8,t6)],8,J5)]),O[6]||(O[6]=o.createTextVNode()),t.theme.plot.background?(o.openBlock(),o.createElementBlock("rect",{key:0,transform:`translate(${o.unref(L).left}, ${o.unref(L).top})`,width:o.unref(L).width,height:o.unref(L).height,fill:t.theme.plot.background},null,8,e6)):o.createCommentVNode("",!0),O[7]||(O[7]=o.createTextVNode()),o.createElementVNode("g",{transform:`translate(${o.unref(L).left}, ${o.unref(L).top})`,style:{"pointer-events":"none"}},[t.theme.grid.h?(o.openBlock(),o.createBlock(m5,o.mergeProps({key:0},le.value.h,{layout:o.unref(q),theme:t.theme.grid.h,activeTransform:Q.value,coord2pos:N,transition:f.value}),null,16,["layout","theme","activeTransform","transition"])):o.createCommentVNode("",!0),O[2]||(O[2]=o.createTextVNode()),t.theme.grid.v?(o.openBlock(),o.createBlock(d5,o.mergeProps({key:1},le.value.v,{layout:o.unref(q),theme:t.theme.grid.v,activeTransform:Q.value,coord2pos:N,transition:f.value}),null,16,["layout","theme","activeTransform","transition"])):o.createCommentVNode("",!0)],8,n6),O[8]||(O[8]=o.createTextVNode()),o.createElementVNode("g",{transform:`translate(${o.unref(L).left}, ${o.unref(L).top})`,"clip-path":i.clip?`url(#${o.unref(r)}-plot-clip)`:null},[o.createElementVNode("g",o.mergeProps(P.value,{style:{transition:f.value}}),[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(A.value.layers,V=>(o.openBlock(),o.createBlock(j5,o.mergeProps({ref_for:!0,ref_key:"layers",ref:y,data:V.data},{ref_for:!0},V.vBind,{layout:o.unref(q),geom:V.geom,coord2pos:N,getCoord:S,"default-render":i.render}),null,16,["data","layout","geom","default-render"]))),256))],16),O[3]||(O[3]=o.createTextVNode()),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.selections,V=>(o.openBlock(),o.createBlock(gs,o.mergeProps({coord2pos:N,pos2coord:g,layout:o.unref(q),onSelecting:h,onSelectend:m,transition:f.value,activeTransform:Q.value},{ref_for:!0},V,{flip:t.flip}),null,16,["layout","transition","activeTransform","flip"]))),256)),O[4]||(O[4]=o.createTextVNode()),o.createVNode(gs,{coord2pos:N,pos2coord:g,layout:o.unref(q),modelValue:u.value,transition:f.value,activeTransform:Q.value,theme:d.value,flip:t.flip},null,8,["layout","modelValue","transition","activeTransform","theme","flip"])],8,r6),O[9]||(O[9]=o.createTextVNode()),o.createElementVNode("g",{transform:`translate(${o.unref(L).left}, ${o.unref(L).top})`},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(ae.value.filter(V=>typeof V.bind.position!="number"),V=>(o.openBlock(),o.createBlock(as,o.mergeProps({ref_for:!0},V.bind,o.toHandlers(V.on),{transition:f.value,"onUpdate:transition":O[0]||(O[0]=x=>f.value=x),activeTransform:Q.value}),null,16,["transition","activeTransform"]))),256)),O[5]||(O[5]=o.createTextVNode()),o.createElementVNode("g",{"clip-path":i.clip?`url(#${o.unref(r)}-plot-clip)`:null},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(ae.value.filter(V=>typeof V.bind.position=="number"),V=>(o.openBlock(),o.createBlock(as,o.mergeProps({ref_for:!0},V.bind,o.toHandlers(V.on),{transition:f.value,"onUpdate:transition":O[1]||(O[1]=x=>f.value=x),activeTransform:Q.value}),null,16,["transition","activeTransform"]))),256))],8,o6)],8,i6),O[10]||(O[10]=o.createTextVNode()),i.legendTeleport?(o.openBlock(),o.createElementBlock("foreignObject",s6,[(o.openBlock(),o.createBlock(o.Teleport,{defer:"",to:i.legendTeleport},[o.createVNode(Q5,{scales:A.value?.scales,theme:t.theme.legend},null,8,["scales","theme"])],8,["to"]))])):o.createCommentVNode("",!0)],16))}}),o1={$_type:"action",$_props:{}},rr={$_type:"layer"},ir={$_props:{geom:"tile",stat:"bar"},$_type:"layer"},or={$_props:{geom:"blank",stat:"identity"},$_type:"layer"},sr={$_props:{geom:"boxplot",stat:"boxplot"},$_type:"layer"},lr={$_props:{geom:"curve",stat:"curve"},$_type:"layer"},ar={$_props:{geom:"curve",stat:"density"},$_type:"layer",$_argnames:["n","kernel"]},cr={$_props:{geom:"ellipse",stat:"ellipse"},$_type:"layer",$_argnames:["CI"]},ur={$_props:{geom:"rect",stat:"histogram"},$_type:"layer",$_argnames:["bins","binwidth","breaks"]},hr={$_props:{geom:"line",stat:"line"},$_type:"layer",$_argnames:["orientation"]},fr={$_props:{geom:"line",stat:"linerange"},$_type:"layer"},mr={$_props:{geom:"markdown",stat:"text"},$_type:"layer"},dr={$_props:{geom:"markdownsegment",stat:"textsegment"},$_type:"layer"},gr={$_props:{geom:"line",stat:"path"},$_type:"layer"},pr={$_props:{geom:"point",stat:"point"},$_type:"layer"},yr={$_props:{geom:"polygon",stat:"polygon"},$_type:"layer"},xr={$_props:{geom:"rect",stat:"rect"},$_type:"layer"},br={$_props:{geom:"line",stat:"segment"},$_type:"layer"},vr={$_props:{geom:"stick",stat:"stick"},$_type:"layer"},wr={$_props:{geom:"text",stat:"text"},$_type:"layer"},kr={$_props:{geom:"textsegment",stat:"textsegment"},$_type:"layer"},Nr={$_props:{geom:"tile",stat:"tile"},$_type:"layer"},a6=Object.freeze(Object.defineProperty({__proto__:null,VVGeom:rr,VVGeomBar:ir,VVGeomBlank:or,VVGeomBoxplot:sr,VVGeomCurve:lr,VVGeomDensity:ar,VVGeomEllipse:cr,VVGeomHistogram:ur,VVGeomLine:hr,VVGeomLinerange:fr,VVGeomMarkdown:mr,VVGeomMarkdownsegment:dr,VVGeomPath:gr,VVGeomPoint:pr,VVGeomPolygon:yr,VVGeomRect:xr,VVGeomSegment:br,VVGeomStick:vr,VVGeomText:wr,VVGeomTextsegment:kr,VVGeomTile:Nr},Symbol.toStringTag,{value:"Module"})),Ar={$_type:"axis",$_props:{}},Er={$_type:"axis",$_props:{coord:"x"}},Sr={$_type:"axis",$_props:{coord:"y"}},c6=Object.freeze(Object.defineProperty({__proto__:null,VVAxis:Ar,VVAxisX:Er,VVAxisY:Sr},Symbol.toStringTag,{value:"Module"})),u6={key:0,class:"vvplot-panel",style:{"pointer-events":"auto",display:"contents"}},ps=Object.assign({inheritAttrs:!1},{__name:"Plot",props:o.mergeModels({data:Array,scales:Object,aes:Object,expandAdd:Object,expandMult:Object,extend:Object,levels:Object,range:Object,minRange:Object,rangePreview:Object,axes:[Object,Array],theme:[Object,Array],action:[Object,Array],reverse:Object,render:String,flip:Boolean,clip:{type:Boolean,default:!0},resize:null,legendTeleport:null},{selectionPreview:{default:()=>({})},selectionPreviewModifiers:{},selectionPreviewTheme:{default:()=>({})},selectionPreviewThemeModifiers:{},transition:{},transitionModifiers:{},width:{},widthModifiers:{},height:{},heightModifiers:{}}),emits:o.mergeModels(["resize","rangechange","select","update:range","update:rangePreview"],["update:selectionPreview","update:selectionPreviewTheme","update:transition","update:width","update:height"]),setup(t,{expose:e,emit:n}){const r={...a6,...c6,VVAction:o1,VVSelection:o1},i={x:"y",y:"x",h:"v",v:"h",top:"bottom",bottom:"top",left:"right",right:"left"};function s(x){return x==null?x:x===""||!!x}const a=n,c=o.useModel(t,"selectionPreview"),u=o.useModel(t,"selectionPreviewTheme"),l=o.useModel(t,"transition");function h(x){return x==null?[]:x.flatMap(E=>E.type==o.Fragment?h(E.children):E.type=="template"?h(E.children).map(B=>(B.props={...B.props,...E.props},B)):E)}function d(x){return{props:Object.fromEntries(x.props.map(B=>{try{if(B.type==7)return[B.arg.content,new Function("return "+B.exp.content)()];if(B.type==6)return[B.name,B.value?.content??""]}catch{}}).filter(B=>B!=null)),children:x.children.map(B=>()=>[d(B)]),type:r[x.tag]}}const m=o.useSlots(),f=o.useAttrs(),p=o.reactive({axis:{},layer:{},action:{},selection:{},dom:{}});for(let x in m)o.watch(()=>m[x]?.(),E=>{let B=h(E).flatMap(Y=>Y.type?.template?_s(Y.type.template,{decodeEntities:!0}).children.map(Z=>d(Z)):Y).filter(Y=>Y!=null),$=Object.groupBy(B,Y=>Y.type.$_type??"dom");for(let Y in $)p[Y][x]=$[Y]},{immediate:!0});const y=o.computed(()=>Object.values(p.layer).flat()),b=o.computed(()=>Object.values(p.axis).flat()),w=o.computed(()=>Object.values(p.action).flat()),C=o.computed(()=>Object.values(p.selection).flat()),A=o.computed(()=>Object.keys(p.dom).flatMap(x=>x=="panel"?[]:p.dom[x])),L=o.computed(()=>{let x={},E={};for(let B in f)if(B.startsWith("on")){let $=Array.isArray(f[B])?f[B]:[f[B]];x[B]=$.filter(Y=>typeof Y=="function"),E[B]=$.filter(Y=>typeof Y!="function")}else E[B]=f[B];return{plot:x,wrapper:E}}),q=o.computed(()=>{let x=[Yr,Gr].concat(t.theme??[]);return ll(sl(ol(...x),t.flip))},{deep:!0}),P=ue(()=>{let x=b.value.map($=>({...$.type.$_props,...$.props})),E=x.filter($=>$.coord==="x"),B=x.filter($=>$.coord==="y");return{x:E.find($=>s($.primary))??E.find($=>$.primary==null&&!s($.secondary)),y:B.find($=>s($.primary))??B.find($=>$.primary==null&&!s($.secondary))}}),v={levels:o.reactive({}),extend:o.reactive({}),"min-range":o.reactive({}),"expand-add":o.reactive({}),"expand-mult":o.reactive({}),boundary:o.reactive({}),reverse:o.reactive({}),min:o.reactive({}),max:o.reactive({}),"min-preview":o.reactive({}),"max-preview":o.reactive({})};o.watch(P,x=>{for(let E of["x","y"])for(let B in v)v[B][E]=x?.[E]?.[B]},{immediate:!0});const g=ue(()=>{let x={};for(let E of["x","y"]){let B=v.boundary[E];x[E]={min:B?.min??B?.[0],max:B?.max??B?.[1]}}return x}),k=o.computed(()=>({data:t.data,aes:t.aes,extendX:v.extend.x??t.extend?.x??0,extendY:v.extend.y??t.extend?.y??0})),N=o.computed(()=>y.value.map(x=>{let{geom:E,stat:B,scales:$,data:Y,"extend-x":X,"extend-y":Z,...tt}={...x.type.$_props,...x.props},nt=x.type.$_argnames||[],dt={},ft={},it={},rt={};for(let _ in tt)_!="key"&&(nt.includes(_)?ft[_]=tt[_]:_.startsWith("on")?rt[_]=tt[_]:typeof tt[_]=="function"?dt[_]=tt[_]:["class","style","render"].includes(_)?rt[_]=tt[_]:it[_]=tt[_]);return{geom:E,stat:B,data:Y,aes:dt,attrs:it,scales:$,args:ft,extendX:X,extendY:Z,vBind:rt}})),T=o.computed(()=>(({x,y:E,...B})=>B)(t.levels??{})),S=o.computed(()=>{let x={};for(let E of["x","y"])x[E]=v.levels[E]??t.levels?.[E];return x}),R=o.computed(()=>{let x={};for(let E of["x","y"]){let B=v.min[E]??t.range?.[E+"min"],$=v.max[E]??t.range?.[E+"max"];x[E+"min"]=isFinite(B)&&!Number.isNaN(B)?B:null,x[E+"max"]=isFinite($)&&!Number.isNaN($)?$:null}return x}),D=o.computed(()=>{let x={};for(let E of["x","y"]){let B=v["min-preview"][E]??t.rangePreview?.[E+"min"],$=v["max-preview"][E]??t.rangePreview?.[E+"max"];x[E+"min"]=isFinite(B)&&!Number.isNaN(B)?B:null,x[E+"max"]=isFinite($)&&!Number.isNaN($)?$:null}return x}),F=ue(()=>({xmin:P?.x?.["onUpdate:min"],xmax:P?.x?.["onUpdate:max"],ymin:P?.y?.["onUpdate:min"],ymax:P?.y?.["onUpdate:max"]})),I=ue(()=>({xmin:P?.x?.["onUpdate:minPreview"],xmax:P?.x?.["onUpdate:maxPreview"],ymin:P?.y?.["onUpdate:minPreview"],ymax:P?.y?.["onUpdate:maxPreview"]})),H=o.reactive({}),j=o.reactive({});o.watch(R,(x,E)=>{x?.xmin!==E?.xmin&&(H.xmin=x.xmin),x?.xmax!==E?.xmax&&(H.xmax=x.xmax),x?.ymin!==E?.ymin&&(H.ymin=x.ymin),x?.ymax!==E?.ymax&&(H.ymax=x.ymax)},{immediate:!0}),o.watch(D,(x,E)=>{x?.xmin!==E?.xmin&&(j.xmin=x.xmin),x?.xmax!==E?.xmax&&(j.xmax=x.xmax),x?.ymin!==E?.ymin&&(j.ymin=x.ymin),x?.ymax!==E?.ymax&&(j.ymax=x.ymax)},{immediate:!0}),o.watch(()=>({...H}),(x,E)=>{for(let B in F)F[B]?.(x[B]);a("rangechange",{...x},{...E}),a("update:range",{...x})},{deep:!0}),o.watch(()=>j,x=>{for(let E in I)I[E]?.(x[E]);a("update:rangePreview",{...x})},{deep:!0}),o.provide("range",H),o.provide("rangePreview",j);const U=o.computed(()=>({x:v["min-range"].x??t.minRange?.x??0,y:v["min-range"].y??t.minRange?.y??0})),z=o.computed(()=>{let x=v["expand-add"].x??t.expandAdd?.x??0,E=v["expand-add"].y??t.expandAdd?.y??0;return Array.isArray(x)?x={min:x[0],max:x[1]}:typeof x=="number"&&(x={min:x,max:x}),Array.isArray(E)?E={min:E[0],max:E[1]}:typeof E=="number"&&(E={min:E,max:E}),{x,y:E}}),G=o.computed(()=>{let x=v["expand-mult"].x??t.expandMult?.x??.05,E=v["expand-mult"].y??t.expandMult?.y??.05;return Array.isArray(x)?x={min:x[0],max:x[1]}:typeof x=="number"&&(x={min:x,max:x}),Array.isArray(E)?E={min:E[0],max:E[1]}:typeof E=="number"&&(E={min:E,max:E}),{x,y:E}}),W=ue(()=>({x:s(v.reverse.x)??t.reverse?.x??!1,y:s(v.reverse.y)??t.reverse?.y??!1})),Q={left:1,right:2,middle:4,X1:8,X2:16},et=o.computed(()=>{let x=t.flip?{x:"v",y:"h"}:{x:"h",y:"v"},E=b.value.map(B=>({...B.type.$_props,...B.props,$_children:B.children})).concat(t.axes??[]);return E.every(B=>B?.coord!="x")&&E.push({coord:"x"}),E.every(B=>B?.coord!="y")&&E.push({coord:"y"}),E.map(({coord:B,position:$,title:Y,breaks:X,labels:Z,titles:tt,"minor-breaks":nt,"show-grid":dt,theme:ft=[],extend:it,boundary:rt,action:_,primary:J,secondary:K,"expand-mult":ct,"expand-add":gt,levels:Ht,limits:Rt,min:ce,max:Qt,"onUpdate:min":Jt,"onUpdate:max":te,$_children:f6,...m6})=>{let Ce=x[B];$=$??"start",$=="start"?($={h:"bottom",v:"left"}[Ce],W[i[B]]&&($=i[$])):$=="end"&&($={h:"top",v:"right"}[Ce],W[i[B]]&&($=i[$]));let d6=Object.values(f6??{}).filter(St=>typeof St=="function").flatMap(St=>h(St())).map(St=>({...St.type.$_props,...St.props})).concat(_??[]).flatMap(St=>{let xs=[];for(let s1 of["move","nudge","zoom","rescale"]){let Wt=St[s1];if(Wt==null||Wt===!1)continue;let g6="on"+s1.charAt(0).toUpperCase()+s1.slice(1);xs.push({action:s1,[Ce+"min"]:Wt.min??St.min??rt?.min??rt?.[0]??g?.[B]?.min,[Ce+"max"]:Wt.max??St.max??rt?.max??rt?.[1]??g?.[B]?.max,["min-range-"+Ce]:Wt["min-range"]??St["min-range"],ctrlKey:!!(Wt.ctrl??s(St.ctrl)),shiftKey:!!(Wt.shift??s(St.shift)),altKey:!!(Wt.alt??s(St.alt)),metaKey:!!(Wt.meta??s(St.meta)),buttons:Wt.buttons??Q[Wt.button]??St.buttons??Q[St.button]??1,emit:St[g6]})}return xs});return{coord:B,orientation:Ce,position:$,title:Y,breaks:X,labels:Z,titles:tt,minorBreaks:nt,showGrid:s(dt)??$!=="none",extend:it??v.extend[B],theme:Object.assign({},...[q.value?.axis?.[$]??q.value?.axis?.[Ce]].concat(ft)),action:d6,...m6}}).filter(B=>B!=null)}),ot=o.reactive({});o.watch(et,x=>{for(let E of["left","right","top","bottom"])ot[E]=x.some(B=>B.position==E)},{immediate:!0});const ht=o.computed(()=>w.value.map(x=>({...x.type.$_props,...x.props})).concat(t.action??[]).flatMap(x=>{let E=[];for(let B of["select","move","nudge","zoom"]){let $=x[B];if($==null||$===!1)continue;let Y=$.x==null&&$.y==null&&x.x==null&&x.y==null,X="on"+B.charAt(0).toUpperCase()+B.slice(1);E.push({action:B,x:Y||!!($.x??s(x.x)),y:Y||!!($.y??s(x.y)),xmin:$.xmin??x.xmin??g?.x?.min,xmax:$.xmax??x.xmax??g?.x?.max,ymin:$.ymin??x.ymin??g?.y?.min,ymax:$.ymax??x.ymax??g?.y?.max,"min-range-x":$["min-range-x"]??x["min-range-x"],"min-range-y":$["min-range-y"]??x["min-range-y"],ctrlKey:!!($.ctrl??s(x.ctrl)),shiftKey:!!($.shift??s(x.shift)),altKey:!!($.alt??s(x.alt)),metaKey:!!($.meta??s(x.meta)),buttons:$.buttons??Q[$.button]??x.buttons??Q[x.button]??1,emit:x[X]})}return E})),Pt=o.computed(()=>C.value.map(x=>({...x.type.$_props,...x.props})).map(({once:x,move:E,dismissible:B,resize:$,x:Y,y:X,xmin:Z,xmax:tt,ymin:nt,ymax:dt,ctrl:ft,shift:it,alt:rt,meta:_,button:J,buttons:K,modelValue:ct,"onUpdate:modelValue":gt,theme:Ht=[],...Rt})=>{let ce=Y==null&&X==null;return s(x)?(ct=o.reactive({}),gt=null):gt==null&&(ct=o.reactive(ct??{}),gt=Qt=>{for(let Jt in ct)delete ct[Jt];Object.assign(ct,Qt)}),{move:!!s(E),dismissible:B==null?void 0:B!==!1,resize:!!s($),x:ce||!!s(Y),y:ce||!!s(X),xmin:Z??g?.x?.min,xmax:tt??g?.x?.max,ymin:nt??g?.y?.min,ymax:dt??g?.y?.max,ctrlKey:!!s(ft),shiftKey:!!s(it),altKey:!!s(rt),metaKey:!!s(_),buttons:K??Q[J]??1,modelValue:ct,"onUpdate:modelValue":gt,theme:Object.assign({},...[q.value?.selection].concat(Ht)),onSelect:(Qt,Jt)=>a("select",Qt,Jt),...Rt}})),Ut=o.useTemplateRef("wrapper"),Bt=o.useTemplateRef("plot"),le=o.useModel(t,"width"),ae=o.useModel(t,"height");o.onMounted(()=>{o.watch(le,x=>{Ut.value.style.width=me(x,"px")??null},{immediate:!0}),o.watch(ae,x=>{Ut.value.style.height=me(x,"px")??null},{immediate:!0})});let M={width:0,height:0};Cr(Bt,x=>{let{width:E,height:B}=x[0].contentRect;Ut.value.style.width&&(le.value=E),Ut.value.style.height&&(ae.value=B),(E>0||B>0)&&(M.width>0||M.height>0)&&a("resize",{width:E,height:B},M),M={width:E,height:B}});const O=o.computed(()=>({position:"absolute",pointerEvents:"none",left:me(Bt.value?.panel?.left,"px"),top:me(Bt.value?.panel?.top,"px"),width:me(Bt.value?.panel?.width,"px"),height:me(Bt.value?.panel?.height,"px")})),V=o.computed(()=>{let x={position:"relative",overflow:"hidden",boxSizing:"border-box"};return t.resize==="both"||t.resize===!0||t.resize===""?Object.assign(x,{resize:"both"}):t.resize==="horizontal"||t.resize==="x"&&!t.flip||t.resize==="y"&&t.flip?Object.assign(x,{resize:"horizontal"}):(t.resize==="vertical"||t.resize==="y"&&!t.flip||t.resize==="x"&&t.flip)&&Object.assign(x,{resize:"vertical"}),x});return e({get svg(){return Bt.value.svg},serialize(){return Qs(Bt.value.svg)}}),(x,E)=>(o.openBlock(),o.createElementBlock("div",o.mergeProps({ref:"wrapper",class:"vvplot",style:V.value},L.value.wrapper),[o.createVNode(l6,o.mergeProps({ref:"plot",paddings:ot,schema:k.value,layers:N.value,"min-range":U.value,"expand-add":z.value,"expand-mult":G.value,reverse:o.unref(W),flip:t.flip,"coord-levels":S.value,levels:T.value,scales:t.scales,axes:et.value,theme:q.value,selections:Pt.value,transition:l.value,"onUpdate:transition":E[0]||(E[0]=B=>l.value=B)},L.value.plot,{"selection-preview":c.value,"onUpdate:selectionPreview":E[1]||(E[1]=B=>c.value=B),"selection-preview-theme":u.value,"onUpdate:selectionPreviewTheme":E[2]||(E[2]=B=>u.value=B),action:ht.value,clip:t.clip,render:t.render,legendTeleport:t.legendTeleport,onSelect:E[3]||(E[3]=(B,$)=>a("select",B,$))}),null,16,["paddings","schema","layers","min-range","expand-add","expand-mult","reverse","flip","coord-levels","levels","scales","axes","theme","selections","transition","selection-preview","selection-preview-theme","action","clip","render","legendTeleport"]),E[4]||(E[4]=o.createTextVNode()),o.createElementVNode("div",{class:"vvplot-panel-container",style:o.normalizeStyle(O.value)},[p.dom.panel?.length?(o.openBlock(),o.createElementBlock("div",u6,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.dom.panel,B=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(B)))),256))])):o.createCommentVNode("",!0)],4),E[5]||(E[5]=o.createTextVNode()),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(A.value,B=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(B)))),256))],16))}}),ys={$_type:"selection",$_props:{}},h6=Object.freeze(Object.defineProperty({__proto__:null,VVAction:o1,VVAxis:Ar,VVAxisX:Er,VVAxisY:Sr,VVGeom:rr,VVGeomBar:ir,VVGeomBlank:or,VVGeomBoxplot:sr,VVGeomCurve:lr,VVGeomDensity:ar,VVGeomEllipse:cr,VVGeomHistogram:ur,VVGeomLine:hr,VVGeomLinerange:fr,VVGeomMarkdown:mr,VVGeomMarkdownsegment:dr,VVGeomPath:gr,VVGeomPoint:pr,VVGeomPolygon:yr,VVGeomRect:xr,VVGeomSegment:br,VVGeomStick:vr,VVGeomText:wr,VVGeomTextsegment:kr,VVGeomTile:Nr,VVPlot:ps,VVSelection:ys},Symbol.toStringTag,{value:"Module"}));return lt.VVAction=o1,lt.VVAxis=Ar,lt.VVAxisX=Er,lt.VVAxisY=Sr,lt.VVGeom=rr,lt.VVGeomBar=ir,lt.VVGeomBlank=or,lt.VVGeomBoxplot=sr,lt.VVGeomCurve=lr,lt.VVGeomDensity=ar,lt.VVGeomEllipse=cr,lt.VVGeomHistogram=ur,lt.VVGeomLine=hr,lt.VVGeomLinerange=fr,lt.VVGeomMarkdown=mr,lt.VVGeomMarkdownsegment=dr,lt.VVGeomPath=gr,lt.VVGeomPoint=pr,lt.VVGeomPolygon=yr,lt.VVGeomRect=xr,lt.VVGeomSegment=br,lt.VVGeomStick=vr,lt.VVGeomText=wr,lt.VVGeomTextsegment=kr,lt.VVGeomTile=Nr,lt.VVPlot=ps,lt.VVSelection=ys,lt.components=h6,lt.number_cut=yo,lt.oob=Qu,lt.vvbreak=Gn,lt.vvlabel=G1,lt.vvscale=po,lt.vvtheme=al,Object.defineProperty(lt,Symbol.toStringTag,{value:"Module"}),lt})({},Vue);