var Pt=Object.defineProperty;var Ct=(e,t,i)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var Q=(e,t,i)=>(Ct(e,typeof t!="symbol"?t+"":t,i),i);import{l as lodash}from"./common.59ee6536.js";import{m as message,r as ref,d as defineComponent,o as onMounted,a as onUpdated,b as createElementBlock,u as unref,e as onUnmounted,f as openBlock,g as createBaseVNode,t as toDisplayString,h as createVNode,F as Fragment,i as renderList,n as normalizeStyle,j as createTextVNode,_ as __unplugin_components_1,k as renderSlot,w as withCtx,l as createBlock,p as resolveDynamicComponent,q as pushScopeId,s as popScopeId,v as computed,x as watch,y as __unplugin_components_0,z as reactive,A as withModifiers,T as Transition,B as createCommentVNode,L as LeftOutlined,R as RightOutlined,C as __unplugin_components_1$1,S as SortAscendingOutlined,D as SortDescendingOutlined,E as SelectOption,G as __unplugin_components_0$1,H as DoubleLeftOutlined,I as DoubleRightOutlined,J as markRaw,K as DragOutlined,M as shallowReactive,N as createApp}from"./antdv.a0bb80c4.js";function __vite_legacy_guard(){import("data:text/javascript,")}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const r of a.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function i(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerpolicy&&(a.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?a.credentials="include":s.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=i(s);fetch(s.href,a)}})();let pop=[],time=0;function init$a(){return main.replayChecking||core.registerAnimationFrame("pop",!0,popValue),{addPop,pop}}function popValue(e){if(e-time<15)return;let t=core.getContextByName("pop");t||(t=core.createCanvas("pop",0,0,core._PX_,core._PY_,90)),core.clearMap(t);let i=0;pop.forEach(function(n){const s=6-n.frame*.2,a=1;n.py-=s,n.px+=a,n.frame++,n.frame>=60?core.setAlpha(t,3-n.frame/30):core.setAlpha(t,1),core.fillBoldText(t,n.value,n.px,n.py,"#f22","#000","24px normal"),n.frame>=90&&i++}),i>0&&pop.splice(0,i),time=e}function addPop(e,t,i){var n={px:e,py:t,value:i,frame:0};pop.push(n)}var M=Object.defineProperty,E=(e,t,i)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,o=(e,t,i)=>(E(e,typeof t!="symbol"?t+"":t,i),i);let b=[];const k=e=>{for(const t of b)if(t.status==="running")try{for(const i of t.funcs)i(e-t.startTime)}catch(i){t.destroy(),console.error(i)}requestAnimationFrame(k)};requestAnimationFrame(k);class I{constructor(){o(this,"funcs",[]),o(this,"status","stop"),o(this,"startTime",0),this.status="running",b.push(this),requestAnimationFrame(t=>this.startTime=t)}add(t,i=!1){return i?this.funcs.unshift(t):this.funcs.push(t),this}remove(t){const i=this.funcs.findIndex(n=>n===t);if(i===-1)throw new ReferenceError("You are going to remove nonexistent ticker function.");return this.funcs.splice(i,1),this}clear(){this.funcs=[]}destroy(){this.clear(),this.stop()}stop(){this.status="stop",b=b.filter(t=>t!==this)}}class F{constructor(){o(this,"timing"),o(this,"relation","absolute"),o(this,"easeTime",0),o(this,"applying",{}),o(this,"ticker",new I),o(this,"value",{}),o(this,"listener",{}),this.timing=t=>t}async all(){if(Object.values(this.applying).every(t=>t===!0))throw new ReferenceError("There is no animates to be waited.");await new Promise(t=>{const i=()=>{Object.values(this.applying).every(n=>n===!1)&&(this.unlisten("end",i),t("all animated."))};this.listen("end",i)})}async n(t){const i=Object.values(this.applying).filter(s=>s===!0).length;if(i{const a=()=>{n++,n===t&&(this.unlisten("end",a),s(`${t} animated.`))};this.listen("end",a)})}async w(t){if(this.applying[t]===!1)throw new ReferenceError(`The ${t} animate is not animating.`);await new Promise(i=>{const n=()=>{this.applying[t]===!1&&(this.unlisten("end",n),i(`${t} animated.`))};this.listen("end",n)})}listen(t,i){var n;(n=this.listener)[t]!=null||(n[t]=[]),this.listener[t].push(i)}unlisten(t,i){const n=this.listener[t].findIndex(s=>s===i);if(n===-1)throw new ReferenceError("You are trying to remove a nonexistent listener.");this.listener[t].splice(n,1)}hook(...t){const i=Object.entries(this.listener).filter(n=>t.includes(n[0]));for(const[n,s]of i)for(const a of s)a(this,n)}}function x(e){return e!=null}async function S(e){return new Promise(t=>setTimeout(t,e))}class R extends F{constructor(){super(),o(this,"shakeTiming"),o(this,"path"),o(this,"multiTiming"),o(this,"value",{}),o(this,"size",1),o(this,"angle",0),o(this,"targetValue",{system:{move:[0,0],moveAs:[0,0],resize:0,rotate:0,shake:0,"@@bind":[]},custom:{}}),o(this,"animateFn",{system:{move:[()=>0,()=>0],moveAs:()=>0,resize:()=>0,rotate:()=>0,shake:()=>0,"@@bind":()=>0},custom:{}}),o(this,"ox",0),o(this,"oy",0),o(this,"sx",0),o(this,"sy",0),o(this,"bindInfo",[]),this.timing=t=>t,this.shakeTiming=t=>t,this.multiTiming=t=>[t,t],this.path=t=>[t,t],this.applying={move:!1,scale:!1,rotate:!1,shake:!1},this.ticker.add(()=>{const{running:t}=this.listener;if(x(t))for(const i of t)i(this,"running")})}get x(){return this.ox+this.sx}get y(){return this.oy+this.sy}mode(t,i=!1){return typeof t(0)=="number"?i?this.shakeTiming=t:this.timing=t:this.multiTiming=t,this}time(t){return this.easeTime=t,this}relative(){return this.relation="relative",this}absolute(){return this.relation="absolute",this}bind(...t){return this.applying["@@bind"]===!0&&this.end(!1,"@@bind"),this.bindInfo=t,this}unbind(){return this.applying["@@bind"]===!0&&this.end(!1,"@@bind"),this.bindInfo=[],this}move(t,i){return this.applying.move&&this.end(!0,"move"),this.applySys("ox",t,"move"),this.applySys("oy",i,"move"),this}rotate(t){return this.applySys("angle",t,"rotate"),this}scale(t){return this.applySys("size",t,"resize"),this}shake(t,i){this.applying.shake===!0&&this.end(!0,"shake"),this.applying.shake=!0;const{easeTime:n,shakeTiming:s}=this,a=Date.now();this.hook("start","shakestart");const r=()=>{const l=Date.now()-a;l>n&&(this.ticker.remove(r),this.applying.shake=!1,this.sx=0,this.sy=0,this.hook("end","shakeend"));const c=l/n,d=s(c);this.sx=d*t,this.sy=d*i};return this.ticker.add(r),this.animateFn.system.shake=r,this}moveAs(t){this.applying.moveAs&&this.end(!0,"moveAs"),this.applying.moveAs=!0,this.path=t;const{easeTime:i,relation:n,timing:s}=this,a=Date.now(),[r,l]=[this.x,this.y],[c,d]=(()=>{if(n==="absolute")return t(1);{const[h,f]=t(1);return[r+h,l+f]}})();this.hook("start","movestart");const u=()=>{const h=Date.now()-a;if(h>i){this.end(!0,"moveAs");return}const f=h/i,[g,m]=t(s(f));n==="absolute"?(this.ox=g,this.oy=m):(this.ox=r+g,this.oy=l+m)};return this.ticker.add(u,!0),this.animateFn.system.moveAs=u,this.targetValue.system.moveAs=[c,d],this}register(t,i){if(typeof this.value[t]=="number")return this.error(`Property ${t} has been regietered twice.`,"reregister");this.value[t]=i,this.applying[t]=!1}apply(t,i,n=!1){this.applying[t]===!0&&this.end(!1,t),t in this.value||this.error(`You are trying to execute nonexistent property ${t}.`),this.applying[t]=!0;const s=this.value[t],a=Date.now(),{timing:r,relation:l,easeTime:c}=this,d=l==="absolute"?i-s:i;this.hook("start");const u=()=>{const h=Date.now()-a;if(h>c){this.end(!1,t);return}const f=h/c,g=r(f);this.value[t]=s+g*d};return this.ticker.add(u,n),this.animateFn.custom[t]=u,this.targetValue.custom[t]=d+s,this}applyMulti(t=!1){this.applying["@@bind"]===!0&&this.end(!1,"@@bind"),this.applying["@@bind"]=!0;const i=this.bindInfo,n=i.map(u=>this.value[u]),s=Date.now(),{multiTiming:a,relation:r,easeTime:l}=this,c=a(1);if(c.length!==n.length)throw new TypeError(`The number of binded animate attributes and timing function returns's length does not match. binded: ${i.length}, timing: ${c.length}`);this.hook("start");const d=()=>{const u=Date.now()-s;if(u>l){this.end(!1,"@@bind");return}const h=u/l,f=a(h);i.forEach((g,m)=>{r==="absolute"?this.value[g]=f[m]:this.value[g]=n[m]+f[m]})};return this.ticker.add(d,t),this.animateFn.custom["@@bind"]=d,this.targetValue.system["@@bind"]=c,this}applySys(t,i,n){n!=="move"&&this.applying[n]===!0&&this.end(!0,n),this.applying[n]=!0;const s=this[t],a=Date.now(),r=this.timing,l=this.relation,c=this.easeTime,d=l==="absolute"?i-s:i;this.hook("start",`${n}start`);const u=()=>{const h=Date.now()-a;if(h>c){this.end(!0,n);return}const f=h/c,g=r(f);this[t]=s+d*g,t!=="oy"&&this.hook(n)};this.ticker.add(u,!0),t==="ox"?this.animateFn.system.move[0]=u:t==="oy"?this.animateFn.system.move[1]=u:this.animateFn.system[n]=u,n==="move"?(t==="ox"&&(this.targetValue.system.move[0]=d+s),t==="oy"&&(this.targetValue.system.move[1]=d+s)):n!=="shake"&&(this.targetValue.system[n]=d+s)}error(t,i){throw i==="repeat"?new Error(`Cannot execute the same animation twice. Info: ${t}`):i==="reregister"?new Error(`Cannot register a animated property twice. Info: ${t}`):new Error(t)}end(t,i){if(t===!0)if(this.applying[i]=!1,i==="move"?(this.ticker.remove(this.animateFn.system.move[0]),this.ticker.remove(this.animateFn.system.move[1])):i==="moveAs"?this.ticker.remove(this.animateFn.system.moveAs):i==="@@bind"?this.ticker.remove(this.animateFn.system["@@bind"]):this.ticker.remove(this.animateFn.system[i]),i==="move"){const[n,s]=this.targetValue.system.move;this.ox=n,this.oy=s,this.hook("moveend","end")}else if(i==="moveAs"){const[n,s]=this.targetValue.system.moveAs;this.ox=n,this.oy=s,this.hook("moveend","end")}else i==="rotate"?(this.angle=this.targetValue.system.rotate,this.hook("rotateend","end")):i==="resize"?(this.size=this.targetValue.system.resize,this.hook("resizeend","end")):i==="@@bind"?this.bindInfo.forEach((n,s)=>{this.value[n]=this.targetValue.system["@@bind"][s]}):(this.sx=0,this.sy=0,this.hook("shakeend","end"));else this.applying[i]=!1,this.ticker.remove(this.animateFn.custom[i]),this.value[i]=this.targetValue.custom[i],this.hook("end")}}const T=(...e)=>e.reduce((t,i)=>t+i,0),y=e=>{if(e===0)return 1;let t=e;for(;e>1;)e--,t*=e;return t},A=(e,t)=>Math.round(y(t)/(y(e)*y(t-e))),p=(e,t,i=n=>1-t(1-n))=>e==="in"?t:e==="out"?i:e==="in-out"?n=>n<.5?t(n*2)/2:.5+i((n-.5)*2)/2:n=>n<.5?i(n*2)/2:.5+t((n-.5)*2)/2,$=Math.cosh(2),z=Math.acosh(2),V=Math.tanh(3);function j(){return e=>e}function O(...e){const t=[0].concat(e);t.push(1);const i=t.length,n=Array(i).fill(0).map((s,a)=>A(a,i-1));return s=>{const a=n.map((r,l)=>r*t[l]*(1-s)**(i-l-1)*s**l);return T(...a)}}function C(e,t){if(e==="sin")return p(t,i=>(Math.cosh(i*2)-1)/($-1));if(e==="tan"){const i=n=>Math.tanh(n*3)*1/V;return p(t,n=>1-i(1-n),i)}if(e==="sec"){const i=n=>1/Math.cosh(n);return p(t,n=>1-(i(n*z)-.5)*2)}throw new TypeError("Unexpected parameters are delivered in hyper timing function.")}const _default="",index$6="";var KeyCode=(e=>(e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.Clear=126]="Clear",e[e.MAX_VALUE=127]="MAX_VALUE",e))(KeyCode||{});class KeyCodeStrMap{constructor(){Q(this,"_keyCodeToStr");Q(this,"_strToKeyCode");this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,i){this._keyCodeToStr[t]=i,this._strToKeyCode[i.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const uiMap=new KeyCodeStrMap,userSettingsUSMap=new KeyCodeStrMap,userSettingsGeneralMap=new KeyCodeStrMap,EVENT_KEY_CODE_MAP=new Array(230),scanCodeStrToInt=Object.create(null),scanCodeLowerCaseStrToInt=Object.create(null);(function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],n=[];for(const s of t){const[a,r,l,c,d,u,h,f,g,m]=s;if(n[l]||(n[l]=!0,scanCodeStrToInt[c]=l,scanCodeLowerCaseStrToInt[c.toLowerCase()]=l),!i[d]){if(i[d]=!0,!u)throw new Error(`String representation missing for key code ${d} around scan code ${c}`);uiMap.define(d,u),userSettingsUSMap.define(d,g||u),userSettingsGeneralMap.define(d,m||g||u)}h&&(EVENT_KEY_CODE_MAP[h]=d)}})();var KeyCodeUtils;(e=>{function t(l){return uiMap.keyCodeToStr(l)}e.toString=t;function i(l){return uiMap.strToKeyCode(l)}e.fromString=i;function n(l){return userSettingsUSMap.keyCodeToStr(l)}e.toUserSettingsUS=n;function s(l){return userSettingsGeneralMap.keyCodeToStr(l)}e.toUserSettingsGeneral=s;function a(l){return userSettingsUSMap.strToKeyCode(l)||userSettingsGeneralMap.strToKeyCode(l)}e.fromUserSettings=a;function r(l){if(l>=93&&l<=108)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return uiMap.keyCodeToStr(l)}e.toElectronAccelerator=r})(KeyCodeUtils||(KeyCodeUtils={}));function init$9(){return{has,getDamageColor,parseCss,tip:tip$1}}function has(e){return!lodash.exports.isNil(e)}function getDamageColor(e){return typeof e!="number"?"#f00":e===0?"#2f2":e<0?"#7f7":ed.toUpperCase());n[l]=r}return n}function type(str,time=1e3,timing=e=>e,avr=!1){const toShow=eval("`"+str+"`");if(typeof toShow!="string")throw new TypeError("Error str type in typing!");if(toShow.startsWith("!!html"))return ref(toShow);avr&&(time*=toShow.length);const ani=new R,content=ref(""),all=toShow.length,fn=e=>{if(!has(e))return;const t=ani.x;content.value=toShow.slice(0,Math.floor(t)),Math.floor(t)===all&&(ani.ticker.destroy(),content.value=toShow)};return ani.ticker.add(fn),ani.mode(timing).time(time).move(all,0),setTimeout(()=>ani.ticker.destroy(),time+100),content}function tip$1(e,t){message[e]({content:t,class:"antdv-message"})}function splitText(e){return e.map((t,i,n)=>/^\d+\./.test(t)?`${" ".repeat(12)}${t}`:has(n[i-1])&&t!=="
"&&n[i-1]==="
"||i===0?`${" ".repeat(8)}${t}`:t).join("")}const animation=[];let animateTime=0;function init$8(){return core.registerAnimationFrame("animateController",!0,e=>{if(!(e-animateTime<=core.values.animateSpeed)){for(const t of animation)t(e);animateTime=core.animateFrame.animateTime}}),{addAnimate,removeAnimate}}function addAnimate(e){animation.push(e)}function removeAnimate(e){const t=animation.findIndex(i=>i===e);t!==-1&&animation.splice(t,1)}const _hoisted_1$l=["width","height","id"],_sfc_main$l=defineComponent({__name:"boxAnimate",props:{id:null,noborder:{type:Boolean},width:null,height:null},setup(e){const t=e,i=(Math.random()*1e8).toFixed(0);let n,s,a;function r(){var f,g;if(i==="none")return;has(a)&&removeAnimate(a);const l=core.getClsFromId(t.id),c=core.getAnimateFrames(l),d=(f=t.width)!=null?f:32,u=(g=t.height)!=null?g:32;t.noborder||(n.style.border="1.5px solid #ddd",n.style.backgroundColor="#222");const h=window.devicePixelRatio;if(n.style.width=`${d}px`,n.style.height=`${u}px`,n.width=h*d,n.height=h*u,s.scale(h,h),t.id!=="none")if(t.id==="hero"){const m=core.material.images.hero;s.drawImage(m,0,0,m.width/4,m.height/4,0,0,d,u)}else c===1?core.drawIcon(s,t.id,0,0,t.width,t.height):(a=()=>{core.clearMap(s);const m=core.status.globalAnimateStatus%c;core.drawIcon(s,t.id,0,0,d,u,m)},a(),addAnimate(a),onUnmounted(()=>{removeAnimate(a)}))}return onMounted(()=>{n=document.getElementById(`box-animate-${i}`),s=n.getContext("2d"),r()}),onUpdated(()=>{r()}),(l,c)=>{var d,u;return openBlock(),createElementBlock("canvas",{width:(d=e.width)!=null?d:32,height:(u=e.height)!=null?u:32,id:`box-animate-${unref(i)}`},null,8,_hoisted_1$l)}}});function init$7(){return{useDrag,useWheel,useUp,isMobile}}const dragFnMap=new Map,isMobile=matchMedia("(max-width: 600px)").matches;function useDrag(e,t,i,n,s=!1){let a=!1;const r=g=>{a=!0,i&&i(g.clientX,g.clientY,g)},l=g=>{a=!0,i&&i(g.touches[0].clientX,g.touches[0].clientY,g)};e instanceof Array?e.forEach(g=>{g.addEventListener("mousedown",r),g.addEventListener("touchstart",l)}):(e.addEventListener("mousedown",r),e.addEventListener("touchstart",l));const c=s?document:e,d=g=>{!a||t(g.clientX,g.clientY,g)},u=g=>{!a||t(g.touches[0].clientX,g.touches[0].clientY,g)},h=g=>{!a||(n&&n(g),a=!1)},f=g=>{!a||(n&&n(g),a=!1)};c instanceof Array?c.forEach(g=>{g.addEventListener("mouseup",h),g.addEventListener("touchend",f),g.addEventListener("mousemove",d),g.addEventListener("touchmove",u)}):(c.addEventListener("mouseup",h),c.addEventListener("touchend",f),c.addEventListener("mousemove",d),c.addEventListener("touchmove",u)),dragFnMap.set(t,[d,u,h,f])}function cancelGlobalDrag(e){const t=dragFnMap.get(e);dragFnMap.delete(e),t&&(document.removeEventListener("mousemove",t[0]),document.removeEventListener("touchmove",t[1]),document.removeEventListener("mouseup",t[0]),document.removeEventListener("touchend",t[1]))}function useWheel(e,t){e.addEventListener("wheel",i=>{t(i.deltaX,i.deltaY,i.deltaZ,i)})}function useUp(e,t){e.addEventListener("mouseup",i=>{t(i.clientX,i.clientY,i)}),e.addEventListener("touchend",i=>{t(i.touches[0].clientX,i.touches[0].clientY,i)})}const _hoisted_1$k=["selected"],_hoisted_2$i={class:"info"},_hoisted_3$i={class:"leftbar"},_hoisted_4$f={class:"name"},_hoisted_5$d={key:0,class:"special-text"},_hoisted_6$c={key:1,class:"special-text"},_hoisted_7$9={class:"rightbar"},_hoisted_8$8={class:"detail"},_hoisted_9$8={class:"detail-info"},_hoisted_10$6={style:{color:"lightgreen"}},_hoisted_11$6={class:"detail-info"},_hoisted_12$5={style:{color:"lightcoral"}},_hoisted_13$5={class:"detail-info"},_hoisted_14$5={style:{color:"lightblue"}},_hoisted_15$4={class:"detail-info"},_hoisted_16$4={style:{color:"lightyellow"}},_hoisted_17$3={class:"detail-info"},_hoisted_18$3={style:{color:"lawngreen"}},_hoisted_19$3={class:"detail-info"},_hoisted_20$3={class:"detail-info"},_hoisted_21$3={style:{color:"lightsalmon"}},_hoisted_22$2={class:"detail-info"},_hoisted_23$2={style:{color:"lightpink"}},_hoisted_24$2={style:{"font-family":"'Fira Code'"}},_hoisted_25$2={class:"detail-info"},_hoisted_26$2={style:{color:"cyan"}},_sfc_main$k=defineComponent({__name:"enemyOne",props:{enemy:null,selected:{type:Boolean}},emits:["select","hover"],setup(e,{emit:t}){const i=window.core,n=window.innerWidth*.032;function s(r){t("select")}function a(){t("hover")}return(r,l)=>{const c=__unplugin_components_1;return openBlock(),createElementBlock("div",{class:"enemy-container",onClick:s,onMouseenter:a,selected:e.selected},[createBaseVNode("div",_hoisted_2$i,[createBaseVNode("div",_hoisted_3$i,[createBaseVNode("span",_hoisted_4$f,toDisplayString(e.enemy.name),1),createVNode(_sfc_main$l,{id:e.enemy.id,width:unref(isMobile)?32:n,height:unref(isMobile)?32:n,style:{margin:"5%"}},null,8,["id","width","height"]),unref(has)(e.enemy.special)&&e.enemy.special.length>0?(openBlock(),createElementBlock("div",_hoisted_5$d,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.enemy.toShowSpecial,(d,u)=>(openBlock(),createElementBlock("span",{style:normalizeStyle({color:e.enemy.toShowColor[u]})},"\xA0"+toDisplayString(d)+"\xA0",5))),256))])):(openBlock(),createElementBlock("div",_hoisted_6$c,"\u65E0\u5C5E\u6027"))]),createVNode(c,{type:"vertical",dashed:"",style:{height:"100%",margin:"0 3% 0 1%","border-color":"#ddd4"}}),createBaseVNode("div",_hoisted_7$9,[createBaseVNode("div",_hoisted_8$8,[createBaseVNode("div",_hoisted_9$8,[createBaseVNode("span",_hoisted_10$6,"\u751F\u547D\xA0\xA0\xA0\xA0"+toDisplayString(unref(i).formatBigNumber(e.enemy.hp)),1)]),createBaseVNode("div",_hoisted_11$6,[createBaseVNode("span",_hoisted_12$5,"\u653B\u51FB\xA0\xA0\xA0\xA0"+toDisplayString(unref(i).formatBigNumber(e.enemy.atk)),1)]),createBaseVNode("div",_hoisted_13$5,[createBaseVNode("span",_hoisted_14$5,"\u9632\u5FA1\xA0\xA0\xA0\xA0"+toDisplayString(unref(i).formatBigNumber(e.enemy.def)),1)]),createBaseVNode("div",_hoisted_15$4,[createBaseVNode("span",_hoisted_16$4,"\u91D1\u5E01\xA0\xA0\xA0\xA0"+toDisplayString(unref(i).formatBigNumber(e.enemy.money)),1)]),createBaseVNode("div",_hoisted_17$3,[createBaseVNode("span",_hoisted_18$3,"\u7ECF\u9A8C\xA0\xA0\xA0\xA0"+toDisplayString(unref(i).formatBigNumber(e.enemy.exp)),1)]),createBaseVNode("div",_hoisted_19$3,[createBaseVNode("span",{style:normalizeStyle({color:e.enemy.damageColor})},"\u4F24\u5BB3\xA0\xA0\xA0\xA0"+toDisplayString(unref(i).formatBigNumber(e.enemy.damage)),5)]),createBaseVNode("div",_hoisted_20$3,[createBaseVNode("span",_hoisted_21$3,"\u4E34\u754C\xA0\xA0\xA0\xA0"+toDisplayString(unref(i).formatBigNumber(e.enemy.critical)),1)]),createBaseVNode("div",_hoisted_22$2,[createBaseVNode("span",_hoisted_23$2,[createTextVNode("\u51CF\u4F24\xA0\xA0\xA0\xA0"),createBaseVNode("span",{style:normalizeStyle({color:e.enemy.criticalDamage<0&&!unref(has)(e.enemy.damage)?"gold":"lightpink"})},[createBaseVNode("span",_hoisted_24$2,toDisplayString(e.enemy.criticalDamage<0&&!unref(has)(e.enemy.damage)?unref(isMobile)?"-":"=>":""),1),createTextVNode(toDisplayString(unref(i).formatBigNumber(e.enemy.criticalDamage<0?-e.enemy.criticalDamage:e.enemy.criticalDamage)),1)],4)])]),createBaseVNode("div",_hoisted_25$2,[createBaseVNode("span",_hoisted_26$2,toDisplayString(unref(i).formatBigNumber(unref(i).status.thisMap.ratio))+"\u9632\xA0\xA0\xA0\xA0"+toDisplayString(unref(i).formatBigNumber(e.enemy.defDamage)),1)])])])])],40,_hoisted_1$k)}}}),enemyOne_vue_vue_type_style_index_0_scoped_03a35715_lang="",_export_sfc=(e,t)=>{const i=e.__vccOpts||e;for(const[n,s]of t)i[n]=s;return i},EnemyOne=_export_sfc(_sfc_main$k,[["__scopeId","data-v-03a35715"]]),_hoisted_1$j=["id"],_hoisted_2$h={class:"main-div"},_hoisted_3$h=["id"],_hoisted_4$e=["id"],_sfc_main$j=defineComponent({__name:"scroll",props:{now:null,type:null,drag:{type:Boolean},width:null,update:{type:Boolean},noScroll:{type:Boolean}},emits:["update:now","update:drag","update:update"],setup(e,{emit:t}){var U;const i=e;let n,s=0,a=0;const r=(1e8*Math.random()).toFixed(0),l=window.devicePixelRatio,c=(U=i.width)!=null?U:20,d=i.type==="horizontal"?"left":"top",u=i.type==="horizontal"?"width":"height";let h,f,g=!1;const m=async()=>{await _(),w()};function w(){if(a===0||(aa-h.canvas[u]/l?s=a-h.canvas[u]/l:s<0&&(s=0),i.noScroll))return;const H=h.canvas.width,W=h.canvas.height;t("update:now",s);const K=Math.min(h.canvas[u]/a/l,1)*h.canvas[u],G=s/a*h.canvas[u];h.clearRect(0,0,h.canvas.width,h.canvas.height),h.beginPath(),i.type==="horizontal"?(h.moveTo(Math.max(G+5,5),W/2),h.lineTo(Math.min(G+K-5,h.canvas.width-5),W/2)):(h.moveTo(H/2,Math.max(G+5,5)),h.lineTo(H/2,Math.min(G+K-5,h.canvas.height-5))),h.lineCap="round",h.lineWidth=6,h.strokeStyle="#fff",h.stroke()}async function _(){await S(20);const H=h.canvas,W=getComputedStyle(H);H.style.width=`${c}px`,H.width=c*l,H.height=parseFloat(W.height)*l,i.noScroll&&(H.style.width="0px"),i.type==="horizontal"&&(n.style.flexDirection="column",H.style.height=`${c}px`,H.style.width="98%",H.style.margin="0 1% 0 1%",H.width=parseFloat(W.width)*l,H.height=c*l,i.noScroll&&(H.style.height="0px")),await new Promise(K=>{requestAnimationFrame(()=>{const G=getComputedStyle(f);a=parseFloat(G[u]),K("")})})}function D(){w(),f.style[d]=`${-s}px`}onUpdated(async()=>{var H;g||(s=(H=i.now)!=null?H:s,f.style.transition=`${d} 0.2s ease-out`,await _(),D())});let B,P;function N(H,W){t("update:drag",!0);const K=i.type==="horizontal"?H:W,G=K-B;B=K,h.canvas[u]{n=document.getElementById(`scroll-div-${r}`),f=document.getElementById(`content-${r}`);const W=document.getElementById(`scroll-${r}`);h=W.getContext("2d"),i.noScroll||useDrag(W,N,(K,G)=>{g=!0,B=i.type==="horizontal"?K:G,f.style.transition=""},()=>{setTimeout(()=>t("update:drag",!1)),g=!1},!0),useDrag(f,L,(K,G)=>{g=!0,P=i.type==="horizontal"?K:G,f.style.transition=""},()=>{setTimeout(()=>t("update:drag",!1)),g=!1},!0),useWheel(f,(K,G)=>{g=!0;const Y=K!==0?K:G;Math.abs(Y)>30?f.style.transition=`${d} 0.2s ease-out`:f.style.transition="",s+=Y,D(),g=!1}),window.addEventListener("resize",m),await _(),w()}),onUnmounted(()=>{window.removeEventListener("resize",m),cancelGlobalDrag(N),cancelGlobalDrag(L)}),(H,W)=>(openBlock(),createElementBlock("div",{id:`scroll-div-${unref(r)}`,class:"scroll-main"},[createBaseVNode("div",_hoisted_2$h,[createBaseVNode("div",{id:`content-${unref(r)}`,class:"content"},[renderSlot(H.$slots,"default",{},void 0,!0)],8,_hoisted_3$h)]),createBaseVNode("canvas",{id:`scroll-${unref(r)}`,class:"scroll"},null,8,_hoisted_4$e)],8,_hoisted_1$j))}}),scroll_vue_vue_type_style_index_0_scoped_1626479d_lang="",Scroll=_export_sfc(_sfc_main$j,[["__scopeId","data-v-1626479d"]]);function getSpecialHint(e){const t=core.getSpecials().filter(s=>e.special.includes(s[0])).sort((s,a)=>s[0]-a[0]),i=t.map(s=>{const a=s[2];return a instanceof Function?a(e):a}),n=t.map(s=>{const a=s[1];return a instanceof Function?a(e):a});return createVNode("div",null,[t.map((s,a)=>createVNode("div",{class:"special"},[createVNode("span",{style:{color:core.arrayToRGBA(s[3])}},[createTextVNode("\xA0\xA0\xA0\xA0"),n[a],createTextVNode("\uFF1A")]),createVNode("span",{innerHTML:i[a]},null)]))])}function getDefDamage(e,t=0,i=0){var l;const n=core.status.thisMap.ratio,s=[];let a;const r=100-Math.floor(t/n);for(let c=0;c<=r;c++){const d=core.getDamageInfo(e.id,{def:core.status.hero.def+n*c+t,atk:core.status.hero.atk+i});if(s.length===0){a=d==null?void 0:d.damage,has(a)&&s.push([t+c*n,a]);continue}!has(d)||d.damage!==((l=s.at(-1))==null?void 0:l[1])&&(d.damage,s.push([n*c+t,d.damage]))}return s}function getCriticalDamage(e,t=0,i=0){var l;const n=core.status.thisMap.ratio,s=[];let a;const r=100-Math.floor(t/n);for(let c=0;c<=r;c++){const d=core.getDamageInfo(e.id,{atk:core.status.hero.atk+n*c+t,def:core.status.hero.def+i});if(s.length===0){a=d==null?void 0:d.damage,has(a)&&s.push([t+c*n,a]);continue}!has(d)||d.damage!==((l=s.at(-1))==null?void 0:l[1])&&(d.damage,s.push([n*c+t,d.damage]))}return s}const _withScopeId$9=e=>(pushScopeId("data-v-88eda2d4"),e=e(),popScopeId(),e),_hoisted_1$i={id:"special-main"},_hoisted_2$g={id:"special"},_hoisted_3$g={id:"critical"},_hoisted_4$d=_withScopeId$9(()=>createBaseVNode("div",{style:{"font-size":"2.5vh",width:"100%","text-align":"center"}}," \u4E34\u754C\u8868 ",-1)),_hoisted_5$c={id:"critical-main"},_hoisted_6$b=_withScopeId$9(()=>createBaseVNode("div",{id:"critical-des"},[createBaseVNode("span",null,"\u52A0\u653B"),createBaseVNode("span",null,"\u51CF\u4F24")],-1)),_hoisted_7$8={class:"critical"},_hoisted_8$7={class:"critical-atk"},_hoisted_9$7={style:{"font-family":"'Fira Code'"}},_sfc_main$i=defineComponent({__name:"enemySpecial",setup(e){const t=core.plugin.bookDetailEnemy,i=getSpecialHint(t),n=core.nextCriticals(t,isMobile?4:8),s=core.formatBigNumber;return(a,r)=>{const l=Scroll,c=__unplugin_components_1;return openBlock(),createElementBlock("div",_hoisted_1$i,[createVNode(l,{id:"special-scroll"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$g,[(openBlock(),createBlock(resolveDynamicComponent(unref(i))))])]),_:1}),createVNode(c,{dashed:"",style:{margin:"2vh 0 2vh 0","border-color":"#ddd4"}}),createBaseVNode("div",_hoisted_3$g,[_hoisted_4$d,createBaseVNode("div",_hoisted_5$c,[_hoisted_6$b,(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(n),([d,u])=>(openBlock(),createElementBlock("div",_hoisted_7$8,[createBaseVNode("span",_hoisted_8$7,toDisplayString(unref(s)(d)),1),createBaseVNode("span",null,[createBaseVNode("span",_hoisted_9$7,toDisplayString(u<0?"=>":""),1),createTextVNode(toDisplayString(u<0?`${unref(s)(-u)}`:unref(s)(u)),1)])]))),256))])])])}}}),enemySpecial_vue_vue_type_style_index_0_scoped_88eda2d4_lang="",EnemySpecial=_export_sfc(_sfc_main$i,[["__scopeId","data-v-88eda2d4"]]),index$5="",index$4="";/*! * Chart.js v4.0.1 * https://www.chartjs.org * (c) 2022 Chart.js Contributors * Released under the MIT License */function noop(){}const uid=(()=>{let e=0;return()=>e++})();function isNullOrUndef(e){return e===null||typeof e>"u"}function isArray(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function isObject(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function isNumberFinite(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function finiteOrDefault(e,t){return isNumberFinite(e)?e:t}function valueOrDefault(e,t){return typeof e>"u"?t:e}const toPercentage=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,toDimension=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function callback(e,t,i){if(e&&typeof e.call=="function")return e.apply(i,t)}function each(e,t,i,n){let s,a,r;if(isArray(e))if(a=e.length,n)for(s=a-1;s>=0;s--)t.call(i,e[s],s);else for(s=0;se,x:e=>e.x,y:e=>e.y};function _splitKey(e){const t=e.split("."),i=[];let n="";for(const s of t)n+=s,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}function _getKeyResolver(e){const t=_splitKey(e);return i=>{for(const n of t){if(n==="")break;i=i&&i[n]}return i}}function resolveObjectKey(e,t){return(keyResolvers[t]||(keyResolvers[t]=_getKeyResolver(t)))(e)}function _capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}const defined=e=>typeof e<"u",isFunction=e=>typeof e=="function",setsEqual=(e,t)=>{if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0};function _isClickEvent(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const PI=Math.PI,TAU=2*PI,PITAU=TAU+PI,INFINITY=Number.POSITIVE_INFINITY,RAD_PER_DEG=PI/180,HALF_PI=PI/2,QUARTER_PI=PI/4,TWO_THIRDS_PI=PI*2/3,log10=Math.log10,sign=Math.sign;function almostEquals(e,t,i){return Math.abs(e-t)s-a).pop(),t}function isNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}function almostWhole(e,t){const i=Math.round(e);return i-t<=e&&i+t>=e}function _setMinAndMaxByKey(e,t,i){let n,s,a;for(n=0,s=e.length;nc&&d=Math.min(t,i)-n&&e<=Math.max(t,i)+n}function _lookup(e,t,i){i=i||(r=>e[r]1;)a=s+n>>1,i(a)?s=a:n=a;return{lo:s,hi:n}}const _lookupByKey=(e,t,i,n)=>_lookup(e,i,n?s=>{const a=e[s][t];return ae[s][t]_lookup(e,i,n=>e[n][t]>=i);function _filterBetween(e,t,i){let n=0,s=e.length;for(;nn&&e[s-1]>i;)s--;return n>0||s{const n="_onData"+_capitalize(i),s=e[i];Object.defineProperty(e,i,{configurable:!0,enumerable:!1,value(...a){const r=s.apply(this,a);return e._chartjs.listeners.forEach(l=>{typeof l[n]=="function"&&l[n](...a)}),r}})})}function unlistenArrayEvents(e,t){const i=e._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(t);s!==-1&&n.splice(s,1),!(n.length>0)&&(arrayEvents.forEach(a=>{delete e[a]}),delete e._chartjs)}function _arrayUnique(e){const t=new Set;let i,n;for(i=0,n=e.length;i"u"?function(e){return e()}:window.requestAnimationFrame}();function throttled(e,t){let i=!1;return function(...n){i||(i=!0,requestAnimFrame.call(window,()=>{i=!1,e.apply(t,n)}))}}function debounce(e,t){let i;return function(...n){return t?(clearTimeout(i),i=setTimeout(e,t,n)):e.apply(this,n),t}}const _toLeftRightCenter=e=>e==="start"?"left":e==="end"?"right":"center",_alignStartEnd=(e,t,i)=>e==="start"?t:e==="end"?i:(t+i)/2,_textX=(e,t,i,n)=>e===(n?"left":"right")?i:e==="center"?(t+i)/2:t;function _getStartAndCountOfVisiblePoints(e,t,i){const n=t.length;let s=0,a=n;if(e._sorted){const{iScale:r,_parsed:l}=e,c=r.axis,{min:d,max:u,minDefined:h,maxDefined:f}=r.getUserBounds();h&&(s=_limitValue(Math.min(_lookupByKey(l,r.axis,d).lo,i?n:_lookupByKey(t,c,r.getPixelForValue(d)).lo),0,n-1)),f?a=_limitValue(Math.max(_lookupByKey(l,r.axis,u,!0).hi+1,i?0:_lookupByKey(t,c,r.getPixelForValue(u),!0).hi+1),s,n)-s:a=n-s}return{start:s,count:a}}function _scaleRangesChanged(e){const{xScale:t,yScale:i,_scaleRanges:n}=e,s={xmin:t.min,xmax:t.max,ymin:i.min,ymax:i.max};if(!n)return e._scaleRanges=s,!0;const a=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),a}const atEdge=e=>e===0||e===1,elasticIn=(e,t,i)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*TAU/i)),elasticOut=(e,t,i)=>Math.pow(2,-10*e)*Math.sin((e-t)*TAU/i)+1,effects={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*HALF_PI)+1,easeOutSine:e=>Math.sin(e*HALF_PI),easeInOutSine:e=>-.5*(Math.cos(PI*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>atEdge(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>atEdge(e)?e:elasticIn(e,.075,.3),easeOutElastic:e=>atEdge(e)?e:elasticOut(e,.075,.3),easeInOutElastic(e){return atEdge(e)?e:e<.5?.5*elasticIn(e*2,.1125,.45):.5+.5*elasticOut(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-effects.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?effects.easeInBounce(e*2)*.5:effects.easeOutBounce(e*2-1)*.5+.5};var effects$1=effects;/*! * @kurkle/color v0.2.1 * https://github.com/kurkle/color#readme * (c) 2022 Jukka Kurkela * Released under the MIT License */function round(e){return e+.5|0}const lim=(e,t,i)=>Math.max(Math.min(e,i),t);function p2b(e){return lim(round(e*2.55),0,255)}function n2b(e){return lim(round(e*255),0,255)}function b2n(e){return lim(round(e/2.55)/100,0,1)}function n2p(e){return lim(round(e*100),0,100)}const map$1={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hex=[..."0123456789ABCDEF"],h1=e=>hex[e&15],h2=e=>hex[(e&240)>>4]+hex[e&15],eq=e=>(e&240)>>4===(e&15),isShort=e=>eq(e.r)&&eq(e.g)&&eq(e.b)&&eq(e.a);function hexParse(e){var t=e.length,i;return e[0]==="#"&&(t===4||t===5?i={r:255&map$1[e[1]]*17,g:255&map$1[e[2]]*17,b:255&map$1[e[3]]*17,a:t===5?map$1[e[4]]*17:255}:(t===7||t===9)&&(i={r:map$1[e[1]]<<4|map$1[e[2]],g:map$1[e[3]]<<4|map$1[e[4]],b:map$1[e[5]]<<4|map$1[e[6]],a:t===9?map$1[e[7]]<<4|map$1[e[8]]:255})),i}const alpha=(e,t)=>e<255?t(e):"";function hexString(e){var t=isShort(e)?h1:h2;return e?"#"+t(e.r)+t(e.g)+t(e.b)+alpha(e.a,t):void 0}const HUE_RE=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function hsl2rgbn(e,t,i){const n=t*Math.min(i,1-i),s=(a,r=(a+e/30)%12)=>i-n*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function hsv2rgbn(e,t,i){const n=(s,a=(s+e/60)%6)=>i-i*t*Math.max(Math.min(a,4-a,1),0);return[n(5),n(3),n(1)]}function hwb2rgbn(e,t,i){const n=hsl2rgbn(e,1,.5);let s;for(t+i>1&&(s=1/(t+i),t*=s,i*=s),s=0;s<3;s++)n[s]*=1-t-i,n[s]+=t;return n}function hueValue(e,t,i,n,s){return e===s?(t-i)/n+(t.5?u/(2-a-r):u/(a+r),c=hueValue(i,n,s,u,a),c=c*60+.5),[c|0,d||0,l]}function calln(e,t,i,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,i,n)).map(n2b)}function hsl2rgb(e,t,i){return calln(hsl2rgbn,e,t,i)}function hwb2rgb(e,t,i){return calln(hwb2rgbn,e,t,i)}function hsv2rgb(e,t,i){return calln(hsv2rgbn,e,t,i)}function hue(e){return(e%360+360)%360}function hueParse(e){const t=HUE_RE.exec(e);let i=255,n;if(!t)return;t[5]!==n&&(i=t[6]?p2b(+t[5]):n2b(+t[5]));const s=hue(+t[2]),a=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?n=hwb2rgb(s,a,r):t[1]==="hsv"?n=hsv2rgb(s,a,r):n=hsl2rgb(s,a,r),{r:n[0],g:n[1],b:n[2],a:i}}function rotate(e,t){var i=rgb2hsl(e);i[0]=hue(i[0]+t),i=hsl2rgb(i),e.r=i[0],e.g=i[1],e.b=i[2]}function hslString(e){if(!e)return;const t=rgb2hsl(e),i=t[0],n=n2p(t[1]),s=n2p(t[2]);return e.a<255?`hsla(${i}, ${n}%, ${s}%, ${b2n(e.a)})`:`hsl(${i}, ${n}%, ${s}%)`}const map$2={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},names$1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function unpack(){const e={},t=Object.keys(names$1),i=Object.keys(map$2);let n,s,a,r,l;for(n=0;n>16&255,a>>8&255,a&255]}return e}let names;function nameParse(e){names||(names=unpack(),names.transparent=[0,0,0,0]);const t=names[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const RGB_RE=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function rgbParse(e){const t=RGB_RE.exec(e);let i=255,n,s,a;if(!!t){if(t[7]!==n){const r=+t[7];i=t[8]?p2b(r):lim(r*255,0,255)}return n=+t[1],s=+t[3],a=+t[5],n=255&(t[2]?p2b(n):lim(n,0,255)),s=255&(t[4]?p2b(s):lim(s,0,255)),a=255&(t[6]?p2b(a):lim(a,0,255)),{r:n,g:s,b:a,a:i}}}function rgbString(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${b2n(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const to=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,from=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function interpolate$1(e,t,i){const n=from(b2n(e.r)),s=from(b2n(e.g)),a=from(b2n(e.b));return{r:n2b(to(n+i*(from(b2n(t.r))-n))),g:n2b(to(s+i*(from(b2n(t.g))-s))),b:n2b(to(a+i*(from(b2n(t.b))-a))),a:e.a+i*(t.a-e.a)}}function modHSL(e,t,i){if(e){let n=rgb2hsl(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*i,t===0?360:1)),n=hsl2rgb(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function clone(e,t){return e&&Object.assign(t||{},e)}function fromObject(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=n2b(e[3]))):(t=clone(e,{r:0,g:0,b:0,a:1}),t.a=n2b(t.a)),t}function functionParse(e){return e.charAt(0)==="r"?rgbParse(e):hueParse(e)}class Color{constructor(t){if(t instanceof Color)return t;const i=typeof t;let n;i==="object"?n=fromObject(t):i==="string"&&(n=hexParse(t)||nameParse(t)||functionParse(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=clone(this._rgb);return t&&(t.a=b2n(t.a)),t}set rgb(t){this._rgb=fromObject(t)}rgbString(){return this._valid?rgbString(this._rgb):void 0}hexString(){return this._valid?hexString(this._rgb):void 0}hslString(){return this._valid?hslString(this._rgb):void 0}mix(t,i){if(t){const n=this.rgb,s=t.rgb;let a;const r=i===a?.5:i,l=2*r-1,c=n.a-s.a,d=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;a=1-d,n.r=255&d*n.r+a*s.r+.5,n.g=255&d*n.g+a*s.g+.5,n.b=255&d*n.b+a*s.b+.5,n.a=r*n.a+(1-r)*s.a,this.rgb=n}return this}interpolate(t,i){return t&&(this._rgb=interpolate$1(this._rgb,t._rgb,i)),this}clone(){return new Color(this.rgb)}alpha(t){return this._rgb.a=n2b(t),this}clearer(t){const i=this._rgb;return i.a*=1-t,this}greyscale(){const t=this._rgb,i=round(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=i,this}opaquer(t){const i=this._rgb;return i.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return modHSL(this._rgb,2,t),this}darken(t){return modHSL(this._rgb,2,-t),this}saturate(t){return modHSL(this._rgb,1,t),this}desaturate(t){return modHSL(this._rgb,1,-t),this}rotate(t){return rotate(this._rgb,t),this}}function index_esm(e){return new Color(e)}function isPatternOrGradient(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function color(e){return isPatternOrGradient(e)?e:index_esm(e)}function getHoverColor(e){return isPatternOrGradient(e)?e:index_esm(e).saturate(.5).darken(.1).hexString()}const numbers=["x","y","borderWidth","radius","tension"],colors=["color","borderColor","backgroundColor"];function applyAnimationsDefaults(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:colors},numbers:{type:"number",properties:numbers}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function applyLayoutsDefaults(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const intlCache=new Map;function getNumberFormat(e,t){t=t||{};const i=e+JSON.stringify(t);let n=intlCache.get(i);return n||(n=new Intl.NumberFormat(e,t),intlCache.set(i,n)),n}function formatNumber(e,t,i){return getNumberFormat(t,i).format(e)}const formatters={values(e){return isArray(e)?e:""+e},numeric(e,t,i){if(e===0)return"0";const n=this.chart.options.locale;let s,a=e;if(i.length>1){const d=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(d<1e-4||d>1e15)&&(s="scientific"),a=calculateDelta(e,i)}const r=log10(Math.abs(a)),l=Math.max(Math.min(-1*Math.floor(r),20),0),c={notation:s,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),formatNumber(e,n,c)},logarithmic(e,t,i){if(e===0)return"0";const n=i[t].significand||e/Math.pow(10,Math.floor(log10(e)));return[1,2,3,5,10,15].includes(n)||t>.8*i.length?formatters.numeric.call(this,e,t,i):""}};function calculateDelta(e,t){let i=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(i)>=1&&e!==Math.floor(e)&&(i=e-Math.floor(e)),i}var Ticks={formatters};function applyScaleDefaults(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,i)=>i.lineWidth,tickColor:(t,i)=>i.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ticks.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const overrides=Object.create(null),descriptors=Object.create(null);function getScope$1(e,t){if(!t)return e;const i=t.split(".");for(let n=0,s=i.length;nn.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,s)=>getHoverColor(s.backgroundColor),this.hoverBorderColor=(n,s)=>getHoverColor(s.borderColor),this.hoverColor=(n,s)=>getHoverColor(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(i)}set(t,i){return set(this,t,i)}get(t){return getScope$1(this,t)}describe(t,i){return set(descriptors,t,i)}override(t,i){return set(overrides,t,i)}route(t,i,n,s){const a=getScope$1(this,t),r=getScope$1(this,n),l="_"+i;Object.defineProperties(a,{[l]:{value:a[i],writable:!0},[i]:{enumerable:!0,get(){const c=this[l],d=r[s];return isObject(c)?Object.assign({},d,c):valueOrDefault(c,d)},set(c){this[l]=c}}})}apply(t){t.forEach(i=>i(this))}}var defaults=new Defaults({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[applyAnimationsDefaults,applyLayoutsDefaults,applyScaleDefaults]);function toFontString(e){return!e||isNullOrUndef(e.size)||isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function _measureText(e,t,i,n,s){let a=t[s];return a||(a=t[s]=e.measureText(s).width,i.push(s)),a>n&&(n=a),n}function _longestText(e,t,i,n){n=n||{};let s=n.data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(s=n.data={},a=n.garbageCollect=[],n.font=t),e.save(),e.font=t;let r=0;const l=i.length;let c,d,u,h,f;for(c=0;ci.length){for(c=0;c0&&e.stroke()}}function _isPointInArea(e,t,i){return i=i||.5,!t||e&&e.x>t.left-i&&e.xt.top-i&&e.y0&&a.strokeColor!=="";let c,d;for(e.save(),e.font=s.string,setRenderOpts(e,a),c=0;c+e||0;function _readValueToProps(e,t){const i={},n=isObject(t),s=n?Object.keys(t):t,a=isObject(e)?n?r=>valueOrDefault(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of s)i[r]=numberOrZero(a(r));return i}function toTRBL(e){return _readValueToProps(e,{top:"y",right:"x",bottom:"y",left:"x"})}function toTRBLCorners(e){return _readValueToProps(e,["topLeft","topRight","bottomLeft","bottomRight"])}function toPadding(e){const t=toTRBL(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function toFont(e,t){e=e||{},t=t||defaults.font;let i=valueOrDefault(e.size,t.size);typeof i=="string"&&(i=parseInt(i,10));let n=valueOrDefault(e.style,t.style);n&&!(""+n).match(FONT_STYLE)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const s={family:valueOrDefault(e.family,t.family),lineHeight:toLineHeight(valueOrDefault(e.lineHeight,t.lineHeight),i),size:i,style:n,weight:valueOrDefault(e.weight,t.weight),string:""};return s.string=toFontString(s),s}function resolve(e,t,i,n){let s=!0,a,r,l;for(a=0,r=e.length;ai&&l===0?0:l+c;return{min:r(n,-Math.abs(a)),max:r(s,a)}}function createContext(e,t){return Object.assign(Object.create(e),t)}function _createResolver(e,t=[""],i=e,n,s=()=>e[0]){defined(n)||(n=_resolve("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:n,_getTarget:s,override:r=>_createResolver([r,...e],t,i,n)};return new Proxy(a,{deleteProperty(r,l){return delete r[l],delete r._keys,delete e[0][l],!0},get(r,l){return _cached(r,l,()=>_resolveWithPrefixes(l,t,e,r))},getOwnPropertyDescriptor(r,l){return Reflect.getOwnPropertyDescriptor(r._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(r,l){return getKeysFromAllScopes(r).includes(l)},ownKeys(r){return getKeysFromAllScopes(r)},set(r,l,c){const d=r._storage||(r._storage=s());return r[l]=d[l]=c,delete r._keys,!0}})}function _attachContext(e,t,i,n){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:i,_stack:new Set,_descriptors:_descriptors(e,n),setContext:a=>_attachContext(e,a,i,n),override:a=>_attachContext(e.override(a),t,i,n)};return new Proxy(s,{deleteProperty(a,r){return delete a[r],delete e[r],!0},get(a,r,l){return _cached(a,r,()=>_resolveWithContext(a,r,l))},getOwnPropertyDescriptor(a,r){return a._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(a,r,l){return e[r]=l,delete a[r],!0}})}function _descriptors(e,t={scriptable:!0,indexable:!0}){const{_scriptable:i=t.scriptable,_indexable:n=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:i,indexable:n,isScriptable:isFunction(i)?i:()=>i,isIndexable:isFunction(n)?n:()=>n}}const readKey=(e,t)=>e?e+_capitalize(t):t,needsSubResolver=(e,t)=>isObject(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function _cached(e,t,i){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const n=i();return e[t]=n,n}function _resolveWithContext(e,t,i){const{_proxy:n,_context:s,_subProxy:a,_descriptors:r}=e;let l=n[t];return isFunction(l)&&r.isScriptable(t)&&(l=_resolveScriptable(t,l,e,i)),isArray(l)&&l.length&&(l=_resolveArray(t,l,e,r.isIndexable)),needsSubResolver(t,l)&&(l=_attachContext(l,s,a&&a[t],r)),l}function _resolveScriptable(e,t,i,n){const{_proxy:s,_context:a,_subProxy:r,_stack:l}=i;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(a,r||n),l.delete(e),needsSubResolver(e,t)&&(t=createSubResolver(s._scopes,s,e,t)),t}function _resolveArray(e,t,i,n){const{_proxy:s,_context:a,_subProxy:r,_descriptors:l}=i;if(defined(a.index)&&n(e))t=t[a.index%t.length];else if(isObject(t[0])){const c=t,d=s._scopes.filter(u=>u!==c);t=[];for(const u of c){const h=createSubResolver(d,s,e,u);t.push(_attachContext(h,a,r&&r[e],l))}}return t}function resolveFallback(e,t,i){return isFunction(e)?e(t,i):e}const getScope=(e,t)=>e===!0?t:typeof e=="string"?resolveObjectKey(t,e):void 0;function addScopes(e,t,i,n,s){for(const a of t){const r=getScope(i,a);if(r){e.add(r);const l=resolveFallback(r._fallback,i,s);if(defined(l)&&l!==i&&l!==n)return l}else if(r===!1&&defined(n)&&i!==n)return null}return!1}function createSubResolver(e,t,i,n){const s=t._rootScopes,a=resolveFallback(t._fallback,i,n),r=[...e,...s],l=new Set;l.add(n);let c=addScopesFromKey(l,r,i,a||i,n);return c===null||defined(a)&&a!==i&&(c=addScopesFromKey(l,r,a,c,n),c===null)?!1:_createResolver(Array.from(l),[""],s,a,()=>subGetTarget(t,i,n))}function addScopesFromKey(e,t,i,n,s){for(;i;)i=addScopes(e,t,i,n,s);return i}function subGetTarget(e,t,i){const n=e._getTarget();t in n||(n[t]={});const s=n[t];return isArray(s)&&isObject(i)?i:s||{}}function _resolveWithPrefixes(e,t,i,n){let s;for(const a of t)if(s=_resolve(readKey(a,e),i),defined(s))return needsSubResolver(e,s)?createSubResolver(i,n,e,s):s}function _resolve(e,t){for(const i of t){if(!i)continue;const n=i[e];if(defined(n))return n}}function getKeysFromAllScopes(e){let t=e._keys;return t||(t=e._keys=resolveKeysFromAllScopes(e._scopes)),t}function resolveKeysFromAllScopes(e){const t=new Set;for(const i of e)for(const n of Object.keys(i).filter(s=>!s.startsWith("_")))t.add(n);return Array.from(t)}function _parseObjectDataRadialScale(e,t,i,n){const{iScale:s}=e,{key:a="r"}=this._parsing,r=new Array(n);let l,c,d,u;for(l=0,c=n;lte==="x"?"y":"x";function splineCurve(e,t,i,n){const s=e.skip?t:e,a=t,r=i.skip?t:i,l=distanceBetweenPoints(a,s),c=distanceBetweenPoints(r,a);let d=l/(l+c),u=c/(l+c);d=isNaN(d)?0:d,u=isNaN(u)?0:u;const h=n*d,f=n*u;return{previous:{x:a.x-h*(r.x-s.x),y:a.y-h*(r.y-s.y)},next:{x:a.x+f*(r.x-s.x),y:a.y+f*(r.y-s.y)}}}function monotoneAdjust(e,t,i){const n=e.length;let s,a,r,l,c,d=getPoint(e,0);for(let u=0;u!d.skip)),t.cubicInterpolationMode==="monotone")splineCurveMonotone(e,s);else{let d=n?e[e.length-1]:e[0];for(a=0,r=e.length;ae.ownerDocument.defaultView.getComputedStyle(e,null);function getStyle(e,t){return getComputedStyle$1(e).getPropertyValue(t)}const positions=["top","right","bottom","left"];function getPositionedStyle(e,t,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const a=positions[s];n[a]=parseFloat(e[t+"-"+a+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const useOffsetPos=(e,t,i)=>(e>0||t>0)&&(!i||!i.shadowRoot);function getCanvasPosition(e,t){const i=e.touches,n=i&&i.length?i[0]:e,{offsetX:s,offsetY:a}=n;let r=!1,l,c;if(useOffsetPos(s,a,e.target))l=s,c=a;else{const d=t.getBoundingClientRect();l=n.clientX-d.left,c=n.clientY-d.top,r=!0}return{x:l,y:c,box:r}}function getRelativePosition(e,t){if("native"in e)return e;const{canvas:i,currentDevicePixelRatio:n}=t,s=getComputedStyle$1(i),a=s.boxSizing==="border-box",r=getPositionedStyle(s,"padding"),l=getPositionedStyle(s,"border","width"),{x:c,y:d,box:u}=getCanvasPosition(e,i),h=r.left+(u&&l.left),f=r.top+(u&&l.top);let{width:g,height:m}=t;return a&&(g-=r.width+l.width,m-=r.height+l.height),{x:Math.round((c-h)/g*i.width/n),y:Math.round((d-f)/m*i.height/n)}}function getContainerSize(e,t,i){let n,s;if(t===void 0||i===void 0){const a=_getParentNode(e);if(!a)t=e.clientWidth,i=e.clientHeight;else{const r=a.getBoundingClientRect(),l=getComputedStyle$1(a),c=getPositionedStyle(l,"border","width"),d=getPositionedStyle(l,"padding");t=r.width-d.width-c.width,i=r.height-d.height-c.height,n=parseMaxStyle(l.maxWidth,a,"clientWidth"),s=parseMaxStyle(l.maxHeight,a,"clientHeight")}}return{width:t,height:i,maxWidth:n||INFINITY,maxHeight:s||INFINITY}}const round1=e=>Math.round(e*10)/10;function getMaximumSize(e,t,i,n){const s=getComputedStyle$1(e),a=getPositionedStyle(s,"margin"),r=parseMaxStyle(s.maxWidth,e,"clientWidth")||INFINITY,l=parseMaxStyle(s.maxHeight,e,"clientHeight")||INFINITY,c=getContainerSize(e,t,i);let{width:d,height:u}=c;if(s.boxSizing==="content-box"){const f=getPositionedStyle(s,"border","width"),g=getPositionedStyle(s,"padding");d-=g.width+f.width,u-=g.height+f.height}return d=Math.max(0,d-a.width),u=Math.max(0,n?Math.floor(d/n):u-a.height),d=round1(Math.min(d,r,c.maxWidth)),u=round1(Math.min(u,l,c.maxHeight)),d&&!u&&(u=round1(d/2)),(t!==void 0||i!==void 0)&&n&&c.height&&u>c.height&&(u=c.height,d=round1(Math.floor(u*n))),{width:d,height:u}}function retinaScale(e,t,i){const n=t||1,s=Math.floor(e.height*n),a=Math.floor(e.width*n);e.height=s/n,e.width=a/n;const r=e.canvas;return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||r.height!==s||r.width!==a?(e.currentDevicePixelRatio=n,r.height=s,r.width=a,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}const supportsEventListenerOptions=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}return e}();function readUsedSize(e,t){const i=getStyle(e,t),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function _pointInLine(e,t,i,n){return{x:e.x+i*(t.x-e.x),y:e.y+i*(t.y-e.y)}}function _steppedInterpolation(e,t,i,n){return{x:e.x+i*(t.x-e.x),y:n==="middle"?i<.5?e.y:t.y:n==="after"?i<1?e.y:t.y:i>0?t.y:e.y}}function _bezierInterpolation(e,t,i,n){const s={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},r=_pointInLine(e,s,i),l=_pointInLine(s,a,i),c=_pointInLine(a,t,i),d=_pointInLine(r,l,i),u=_pointInLine(l,c,i);return _pointInLine(d,u,i)}const getRightToLeftAdapter=function(e,t){return{x(i){return e+e+t-i},setWidth(i){t=i},textAlign(i){return i==="center"?i:i==="right"?"left":"right"},xPlus(i,n){return i-n},leftForLtr(i,n){return i-n}}},getLeftToRightAdapter=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function getRtlAdapter(e,t,i){return e?getRightToLeftAdapter(t,i):getLeftToRightAdapter()}function overrideTextDirection(e,t){let i,n;(t==="ltr"||t==="rtl")&&(i=e.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",t,"important"),e.prevTextDirection=n)}function restoreTextDirection(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function propertyFn(e){return e==="angle"?{between:_angleBetween,compare:_angleDiff,normalize:_normalizeAngle}:{between:_isBetween,compare:(t,i)=>t-i,normalize:t=>t}}function normalizeSegment({start:e,end:t,count:i,loop:n,style:s}){return{start:e%i,end:t%i,loop:n&&(t-e+1)%i===0,style:s}}function getSegment(e,t,i){const{property:n,start:s,end:a}=i,{between:r,normalize:l}=propertyFn(n),c=t.length;let{start:d,end:u,loop:h}=e,f,g;if(h){for(d+=c,u+=c,f=0,g=c;fc(s,P,D)&&l(s,P)!==0,L=()=>l(a,D)===0||c(a,P,D),U=()=>w||N(),H=()=>!w||L();for(let W=u,K=u;W<=h;++W)B=t[W%r],!B.skip&&(D=d(B[n]),D!==P&&(w=c(D,s,a),_===null&&U()&&(_=l(D,s)===0?W:K),_!==null&&H()&&(m.push(normalizeSegment({start:_,end:W,loop:f,count:r,style:g})),_=null),K=W,P=D));return _!==null&&m.push(normalizeSegment({start:_,end:h,loop:f,count:r,style:g})),m}function _boundSegments(e,t){const i=[],n=e.segments;for(let s=0;ss&&e[a%t].skip;)a--;return a%=t,{start:s,end:a}}function solidSegments(e,t,i,n){const s=e.length,a=[];let r=t,l=e[t],c;for(c=t+1;c<=i;++c){const d=e[c%s];d.skip||d.stop?l.skip||(n=!1,a.push({start:t%s,end:(c-1)%s,loop:n}),t=r=d.stop?c:null):(r=c,l.skip&&(t=c)),l=d}return r!==null&&a.push({start:t%s,end:r%s,loop:n}),a}function _computeSegments(e,t){const i=e.points,n=e.options.spanGaps,s=i.length;if(!s)return[];const a=!!e._loop,{start:r,end:l}=findStartAndEnd(i,s,a,n);if(n===!0)return splitByStyles(e,[{start:r,end:l,loop:a}],i,t);const c=ll({chart:t,initial:i.initial,numSteps:r,currentStep:Math.min(n-i.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let i=0;this._charts.forEach((n,s)=>{if(!n.running||!n.items.length)return;const a=n.items;let r=a.length-1,l=!1,c;for(;r>=0;--r)c=a[r],c._active?(c._total>n.duration&&(n.duration=c._total),c.tick(t),l=!0):(a[r]=a[a.length-1],a.pop());l&&(s.draw(),this._notify(s,n,t,"progress")),a.length||(n.running=!1,this._notify(s,n,t,"complete"),n.initial=!1),i+=a.length}),this._lastDate=t,i===0&&(this._running=!1)}_getAnims(t){const i=this._charts;let n=i.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},i.set(t,n)),n}listen(t,i,n){this._getAnims(t).listeners[i].push(n)}add(t,i){!i||!i.length||this._getAnims(t).items.push(...i)}has(t){return this._getAnims(t).items.length>0}start(t){const i=this._charts.get(t);!i||(i.running=!0,i.start=Date.now(),i.duration=i.items.reduce((n,s)=>Math.max(n,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const i=this._charts.get(t);return!(!i||!i.running||!i.items.length)}stop(t){const i=this._charts.get(t);if(!i||!i.items.length)return;const n=i.items;let s=n.length-1;for(;s>=0;--s)n[s].cancel();i.items=[],this._notify(t,i,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean(e,t,i){return i>.5?t:e},color(e,t,i){const n=color(e||transparent),s=n.valid&&color(t||transparent);return s&&s.valid?s.mix(n,i).hexString():t},number(e,t,i){return e+(t-e)*i}};class Animation{constructor(t,i,n,s){const a=i[n];s=resolve([t.to,s,a,t.from]);const r=resolve([t.from,a,s]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof r],this._easing=effects$1[t.easing]||effects$1.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=i,this._prop=n,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,i,n){if(this._active){this._notify(!1);const s=this._target[this._prop],a=n-this._start,r=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=resolve([t.to,i,s,t.from]),this._from=resolve([t.from,s,i])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const i=t-this._start,n=this._duration,s=this._prop,a=this._from,r=this._loop,l=this._to;let c;if(this._active=a!==l&&(r||i1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[s]=this._fn(a,l,c)}wait(){const t=this._promises||(this._promises=[]);return new Promise((i,n)=>{t.push({res:i,rej:n})})}_notify(t){const i=t?"res":"rej",n=this._promises||[];for(let s=0;s{const a=t[s];if(!isObject(a))return;const r={};for(const l of i)r[l]=a[l];(isArray(a.properties)&&a.properties||[s]).forEach(l=>{(l===s||!n.has(l))&&n.set(l,r)})})}_animateOptions(t,i){const n=i.options,s=resolveTargetOptions(t,n);if(!s)return[];const a=this._createAnimations(s,n);return n.$shared&&awaitAll(t.options.$animations,n).then(()=>{t.options=n},()=>{}),a}_createAnimations(t,i){const n=this._properties,s=[],a=t.$animations||(t.$animations={}),r=Object.keys(i),l=Date.now();let c;for(c=r.length-1;c>=0;--c){const d=r[c];if(d.charAt(0)==="$")continue;if(d==="options"){s.push(...this._animateOptions(t,i));continue}const u=i[d];let h=a[d];const f=n.get(d);if(h)if(f&&h.active()){h.update(f,u,l);continue}else h.cancel();if(!f||!f.duration){t[d]=u;continue}a[d]=h=new Animation(f,t,d,u),s.push(h)}return s}update(t,i){if(this._properties.size===0){Object.assign(t,i);return}const n=this._createAnimations(t,i);if(n.length)return animator.add(this._chart,n),!0}}function awaitAll(e,t){const i=[],n=Object.keys(t);for(let s=0;s0||!i&&a<0)return s.index}return null}function updateStacks(e,t){const{chart:i,_cachedMeta:n}=e,s=i._stacks||(i._stacks={}),{iScale:a,vScale:r,index:l}=n,c=a.axis,d=r.axis,u=getStackKey(a,r,n),h=t.length;let f;for(let g=0;gi[n].axis===t).shift()}function createDatasetContext(e,t){return createContext(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function createDataContext(e,t,i){return createContext(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:i,index:t,mode:"default",type:"data"})}function clearStacks(e,t){const i=e.controller.index,n=e.vScale&&e.vScale.axis;if(!!n){t=t||e._parsed;for(const s of t){const a=s._stacks;if(!a||a[n]===void 0||a[n][i]===void 0)return;delete a[n][i]}}}const isDirectUpdateMode=e=>e==="reset"||e==="none",cloneIfNotShared=(e,t)=>t?e:Object.assign({},e),createStack=(e,t,i)=>e&&!t.hidden&&t._stacked&&{keys:getSortedDatasetIndices(i,!0),values:null};class DatasetController{constructor(t,i){this.chart=t,this._ctx=t.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=isStacked(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&clearStacks(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,i=this._cachedMeta,n=this.getDataset(),s=(h,f,g,m)=>h==="x"?f:h==="r"?m:g,a=i.xAxisID=valueOrDefault(n.xAxisID,getFirstScaleId(t,"x")),r=i.yAxisID=valueOrDefault(n.yAxisID,getFirstScaleId(t,"y")),l=i.rAxisID=valueOrDefault(n.rAxisID,getFirstScaleId(t,"r")),c=i.indexAxis,d=i.iAxisID=s(c,a,r,l),u=i.vAxisID=s(c,r,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(r),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const i=this._cachedMeta;return t===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&unlistenArrayEvents(this._data,this),t._stacked&&clearStacks(t)}_dataCheck(){const t=this.getDataset(),i=t.data||(t.data=[]),n=this._data;if(isObject(i))this._data=convertObjectDataToArray(i);else if(n!==i){if(n){unlistenArrayEvents(n,this);const s=this._cachedMeta;clearStacks(s),s._parsed=[]}i&&Object.isExtensible(i)&&listenArrayEvents(i,this),this._syncList=[],this._data=i}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const i=this._cachedMeta,n=this.getDataset();let s=!1;this._dataCheck();const a=i._stacked;i._stacked=isStacked(i.vScale,i),i.stack!==n.stack&&(s=!0,clearStacks(i),i.stack=n.stack),this._resyncElements(t),(s||a!==i._stacked)&&updateStacks(this,i._parsed)}configure(){const t=this.chart.config,i=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),i,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,i){const{_cachedMeta:n,_data:s}=this,{iScale:a,_stacked:r}=n,l=a.axis;let c=t===0&&i===s.length?!0:n._sorted,d=t>0&&n._parsed[t-1],u,h,f;if(this._parsing===!1)n._parsed=s,n._sorted=!0,f=s;else{isArray(s[t])?f=this.parseArrayData(n,s,t,i):isObject(s[t])?f=this.parseObjectData(n,s,t,i):f=this.parsePrimitiveData(n,s,t,i);const g=()=>h[l]===null||d&&h[l]w||h=0;--f)if(!m()){this.updateRangeFromParsed(d,t,g,c);break}}return d}getAllParsedValues(t){const i=this._cachedMeta._parsed,n=[];let s,a,r;for(s=0,a=i.length;s=0&&tthis.getContext(n,s),w=d.resolveNamedOptions(f,g,m,h);return w.$shared&&(w.$shared=c,a[r]=Object.freeze(cloneIfNotShared(w,c))),w}_resolveAnimations(t,i,n){const s=this.chart,a=this._cachedDataOpts,r=`animation-${i}`,l=a[r];if(l)return l;let c;if(s.options.animation!==!1){const u=this.chart.config,h=u.datasetAnimationScopeKeys(this._type,i),f=u.getOptionScopes(this.getDataset(),h);c=u.createResolver(f,this.getContext(t,n,i))}const d=new Animations(s,c&&c.animations);return c&&c._cacheable&&(a[r]=Object.freeze(d)),d}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,i){return!i||isDirectUpdateMode(t)||this.chart._animationsDisabled}_getSharedOptions(t,i){const n=this.resolveDataElementOptions(t,i),s=this._sharedOptions,a=this.getSharedOptions(n),r=this.includeOptions(i,a)||a!==s;return this.updateSharedOptions(a,i,n),{sharedOptions:a,includeOptions:r}}updateElement(t,i,n,s){isDirectUpdateMode(s)?Object.assign(t,n):this._resolveAnimations(i,s).update(t,n)}updateSharedOptions(t,i,n){t&&!isDirectUpdateMode(i)&&this._resolveAnimations(void 0,i).update(t,n)}_setStyle(t,i,n,s){t.active=s;const a=this.getStyle(i,s);this._resolveAnimations(i,n,s).update(t,{options:!s&&this.getSharedOptions(a)||a})}removeHoverStyle(t,i,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,i,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const i=this._data,n=this._cachedMeta.data;for(const[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];const s=n.length,a=i.length,r=Math.min(a,s);r&&this.parse(0,r),a>s?this._insertElements(s,a-s,t):a{for(d.length+=i,l=d.length-1;l>=r;l--)d[l]=d[l-i]};for(c(a),l=t;ls-a))}return e._cache.$bar}function computeMinSampleSize(e){const t=e.iScale,i=getAllScaleValues(t,e.type);let n=t._length,s,a,r,l;const c=()=>{r===32767||r===-32768||(defined(l)&&(n=Math.min(n,Math.abs(r-l)||n)),l=r)};for(s=0,a=i.length;s0?s[e-1]:null,l=eMath.abs(l)&&(c=l,d=r),t[i.axis]=d,t._custom={barStart:c,barEnd:d,start:s,end:a,min:r,max:l}}function parseValue(e,t,i,n){return isArray(e)?parseFloatBar(e,t,i,n):t[i.axis]=i.parse(e,n),t}function parseArrayOrPrimitive(e,t,i,n){const s=e.iScale,a=e.vScale,r=s.getLabels(),l=s===a,c=[];let d,u,h,f;for(d=i,u=i+n;d=i?1:-1)}function borderProps(e){let t,i,n,s,a;return e.horizontal?(t=e.base>e.x,i="left",n="right"):(t=e.basec.controller.options.grouped),a=n.options.stacked,r=[],l=c=>{const d=c.controller.getParsed(i),u=d&&d[c.vScale.axis];if(isNullOrUndef(u)||isNaN(u))return!0};for(const c of s)if(!(i!==void 0&&l(c))&&((a===!1||r.indexOf(c.stack)===-1||a===void 0&&c.stack===void 0)&&r.push(c.stack),c.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,i,n){const s=this._getStacks(t,n),a=i!==void 0?s.indexOf(i):-1;return a===-1?s.length-1:a}_getRuler(){const t=this.options,i=this._cachedMeta,n=i.iScale,s=[];let a,r;for(a=0,r=i.data.length;a=0;--n)i=Math.max(i,t[n].size(this.resolveDataElementOptions(n))/2);return i>0&&i}getLabelAndValue(t){const i=this._cachedMeta,n=this.chart.data.labels||[],{xScale:s,yScale:a}=i,r=this.getParsed(t),l=s.getLabelForValue(r.x),c=a.getLabelForValue(r.y),d=r._custom;return{label:n[t]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(t){const i=this._cachedMeta.data;this.updateElements(i,0,i.length,t)}updateElements(t,i,n,s){const a=s==="reset",{iScale:r,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,s),u=r.axis,h=l.axis;for(let f=i;f_angleBetween(P,l,c,!0)?1:Math.max(N,N*i,L,L*i),m=(P,N,L)=>_angleBetween(P,l,c,!0)?-1:Math.min(N,N*i,L,L*i),w=g(0,d,h),_=g(HALF_PI,u,f),D=m(PI,d,h),B=m(PI+HALF_PI,u,f);n=(w-D)/2,s=(_-B)/2,a=-(w+D)/2,r=-(_+B)/2}return{ratioX:n,ratioY:s,offsetX:a,offsetY:r}}class DoughnutController extends DatasetController{constructor(t,i){super(t,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,i){const n=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=n;else{let a=c=>+n[c];if(isObject(n[t])){const{key:c="value"}=this._parsing;a=d=>+resolveObjectKey(n[d],c)}let r,l;for(r=t,l=t+i;r0&&!isNaN(t)?TAU*(Math.abs(t)/i):0}getLabelAndValue(t){const i=this._cachedMeta,n=this.chart,s=n.data.labels||[],a=formatNumber(i._parsed[t],n.options.locale);return{label:s[t]||"",value:a}}getMaxBorderWidth(t){let i=0;const n=this.chart;let s,a,r,l,c;if(!t){for(s=0,a=n.data.datasets.length;st!=="spacing",_indexable:t=>t!=="spacing"}),Q(DoughnutController,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const i=t.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:n,color:s}}=t.legend.options;return i.labels.map((a,r)=>{const c=t.getDatasetMeta(0).controller.getStyle(r);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,i,n){n.chart.toggleDataVisibility(i.index),n.chart.update()}}}});class LineController extends DatasetController{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const i=this._cachedMeta,{dataset:n,data:s=[],_dataset:a}=i,r=this.chart._animationsDisabled;let{start:l,count:c}=_getStartAndCountOfVisiblePoints(i,s,r);this._drawStart=l,this._drawCount=c,_scaleRangesChanged(i)&&(l=0,c=s.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=s;const d=this.resolveDatasetElementOptions(t);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:d},t),this.updateElements(s,l,c,t)}updateElements(t,i,n,s){const a=s==="reset",{iScale:r,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:u,includeOptions:h}=this._getSharedOptions(i,s),f=r.axis,g=l.axis,{spanGaps:m,segment:w}=this.options,_=isNumber(m)?m:Number.POSITIVE_INFINITY,D=this.chart._animationsDisabled||a||s==="none",B=i+n,P=t.length;let N=i>0&&this.getParsed(i-1);for(let L=0;L=B){H.skip=!0;continue}const W=this.getParsed(L),K=isNullOrUndef(W[g]),G=H[f]=r.getPixelForValue(W[f],L),Y=H[g]=a||K?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,W,c):W[g],L);H.skip=isNaN(G)||isNaN(Y)||K,H.stop=L>0&&Math.abs(W[f]-N[f])>_,w&&(H.parsed=W,H.raw=d.data[L]),h&&(H.options=u||this.resolveDataElementOptions(L,U.active?"active":s)),D||this.updateElement(U,L,H,s),N=W}}getMaxOverflow(){const t=this._cachedMeta,i=t.dataset,n=i.options&&i.options.borderWidth||0,s=t.data||[];if(!s.length)return n;const a=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(n,a,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Q(LineController,"id","line"),Q(LineController,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Q(LineController,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class PolarAreaController extends DatasetController{constructor(t,i){super(t,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const i=this._cachedMeta,n=this.chart,s=n.data.labels||[],a=formatNumber(i._parsed[t].r,n.options.locale);return{label:s[t]||"",value:a}}parseObjectData(t,i,n,s){return _parseObjectDataRadialScale.bind(this)(t,i,n,s)}update(t){const i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,t)}getMinMax(){const t=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((n,s)=>{const a=this.getParsed(s).r;!isNaN(a)&&this.chart.getDataVisibility(s)&&(ai.max&&(i.max=a))}),i}_updateRadius(){const t=this.chart,i=t.chartArea,n=t.options,s=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(s/2,0),r=Math.max(n.cutoutPercentage?a/100*n.cutoutPercentage:1,0),l=(a-r)/t.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,i,n,s){const a=s==="reset",r=this.chart,c=r.options.animation,d=this._cachedMeta.rScale,u=d.xCenter,h=d.yCenter,f=d.getIndexAngle(0)-.5*PI;let g=f,m;const w=360/this.countVisibleElements();for(m=0;m{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&i++}),i}_computeAngle(t,i,n){return this.chart.getDataVisibility(t)?toRadians(this.resolveDataElementOptions(t,i).angle||n):0}}Q(PolarAreaController,"id","polarArea"),Q(PolarAreaController,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Q(PolarAreaController,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const i=t.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:n,color:s}}=t.legend.options;return i.labels.map((a,r)=>{const c=t.getDatasetMeta(0).controller.getStyle(r);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,i,n){n.chart.toggleDataVisibility(i.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class PieController extends DoughnutController{}Q(PieController,"id","pie"),Q(PieController,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class RadarController extends DatasetController{getLabelAndValue(t){const i=this._cachedMeta.vScale,n=this.getParsed(t);return{label:i.getLabels()[t],value:""+i.getLabelForValue(n[i.axis])}}parseObjectData(t,i,n,s){return _parseObjectDataRadialScale.bind(this)(t,i,n,s)}update(t){const i=this._cachedMeta,n=i.dataset,s=i.data||[],a=i.iScale.getLabels();if(n.points=s,t!=="resize"){const r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);const l={_loop:!0,_fullLoop:a.length===s.length,options:r};this.updateElement(n,void 0,l,t)}this.updateElements(s,0,s.length,t)}updateElements(t,i,n,s){const a=this._cachedMeta.rScale,r=s==="reset";for(let l=i;l0&&this.getParsed(i-1);for(let N=i;N0&&Math.abs(U[g]-P[g])>D,_&&(H.parsed=U,H.raw=d.data[N]),f&&(H.options=h||this.resolveDataElementOptions(N,L.active?"active":s)),B||this.updateElement(L,N,H,s),P=U}this.updateSharedOptions(h,s,u)}getMaxOverflow(){const t=this._cachedMeta,i=t.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const n=t.dataset,s=n.options&&n.options.borderWidth||0;if(!i.length)return s;const a=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,a,r)/2}}Q(ScatterController,"id","scatter"),Q(ScatterController,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Q(ScatterController,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var controllers=Object.freeze({__proto__:null,BarController,BubbleController,DoughnutController,LineController,PolarAreaController,PieController,RadarController,ScatterController});function abstract(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class DateAdapterBase{static override(t){Object.assign(DateAdapterBase.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return abstract()}parse(){return abstract()}format(){return abstract()}add(){return abstract()}diff(){return abstract()}startOf(){return abstract()}endOf(){return abstract()}}var adapters={_date:DateAdapterBase};function binarySearch(e,t,i,n){const{controller:s,data:a,_sorted:r}=e,l=s._cachedMeta.iScale;if(l&&t===l.axis&&t!=="r"&&r&&a.length){const c=l._reversePixels?_rlookupByKey:_lookupByKey;if(n){if(s._sharedOptions){const d=a[0],u=typeof d.getRange=="function"&&d.getRange(t);if(u){const h=c(a,t,i-u),f=c(a,t,i+u);return{lo:h.lo,hi:f.hi}}}}else return c(a,t,i)}return{lo:0,hi:a.length-1}}function evaluateInteractionItems(e,t,i,n,s){const a=e.getSortedVisibleDatasetMetas(),r=i[t];for(let l=0,c=a.length;l{c[r](t[i],s)&&(a.push({element:c,datasetIndex:d,index:u}),l=l||c.inRange(t.x,t.y,s))}),n&&!l?[]:a}var Interaction={evaluateInteractionItems,modes:{index(e,t,i,n){const s=getRelativePosition(t,e),a=i.axis||"x",r=i.includeInvisible||!1,l=i.intersect?getIntersectItems(e,s,a,n,r):getNearestItems(e,s,a,!1,n,r),c=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(d=>{const u=l[0].index,h=d.data[u];h&&!h.skip&&c.push({element:h,datasetIndex:d.index,index:u})}),c):[]},dataset(e,t,i,n){const s=getRelativePosition(t,e),a=i.axis||"xy",r=i.includeInvisible||!1;let l=i.intersect?getIntersectItems(e,s,a,n,r):getNearestItems(e,s,a,!1,n,r);if(l.length>0){const c=l[0].datasetIndex,d=e.getDatasetMeta(c).data;l=[];for(let u=0;ui.pos===t)}function filterDynamicPositionByAxis(e,t){return e.filter(i=>STATIC_POSITIONS.indexOf(i.pos)===-1&&i.box.axis===t)}function sortByWeight(e,t){return e.sort((i,n)=>{const s=t?n:i,a=t?i:n;return s.weight===a.weight?s.index-a.index:s.weight-a.weight})}function wrapBoxes(e){const t=[];let i,n,s,a,r,l;for(i=0,n=(e||[]).length;id.box.fullSize),!0),n=sortByWeight(filterByPosition(t,"left"),!0),s=sortByWeight(filterByPosition(t,"right")),a=sortByWeight(filterByPosition(t,"top"),!0),r=sortByWeight(filterByPosition(t,"bottom")),l=filterDynamicPositionByAxis(t,"x"),c=filterDynamicPositionByAxis(t,"y");return{fullSize:i,leftAndTop:n.concat(a),rightAndBottom:s.concat(c).concat(r).concat(l),chartArea:filterByPosition(t,"chartArea"),vertical:n.concat(s).concat(c),horizontal:a.concat(r).concat(l)}}function getCombinedMax(e,t,i,n){return Math.max(e[i],t[i])+Math.max(e[n],t[n])}function updateMaxPadding(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function updateDims(e,t,i,n){const{pos:s,box:a}=i,r=e.maxPadding;if(!isObject(s)){i.size&&(e[s]-=i.size);const h=n[i.stack]||{size:0,count:1};h.size=Math.max(h.size,i.horizontal?a.height:a.width),i.size=h.size/h.count,e[s]+=i.size}a.getPadding&&updateMaxPadding(r,a.getPadding());const l=Math.max(0,t.outerWidth-getCombinedMax(r,e,"left","right")),c=Math.max(0,t.outerHeight-getCombinedMax(r,e,"top","bottom")),d=l!==e.w,u=c!==e.h;return e.w=l,e.h=c,i.horizontal?{same:d,other:u}:{same:u,other:d}}function handleMaxPadding(e){const t=e.maxPadding;function i(n){const s=Math.max(t[n]-e[n],0);return e[n]+=s,s}e.y+=i("top"),e.x+=i("left"),i("right"),i("bottom")}function getMargins(e,t){const i=t.maxPadding;function n(s){const a={left:0,top:0,right:0,bottom:0};return s.forEach(r=>{a[r]=Math.max(t[r],i[r])}),a}return n(e?["left","right"]:["top","bottom"])}function fitBoxes(e,t,i,n){const s=[];let a,r,l,c,d,u;for(a=0,r=e.length,d=0;a{typeof w.beforeLayout=="function"&&w.beforeLayout()});const u=c.reduce((w,_)=>_.box.options&&_.box.options.display===!1?w:w+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:i,padding:s,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/u,hBoxMaxHeight:r/2}),f=Object.assign({},s);updateMaxPadding(f,toPadding(n));const g=Object.assign({maxPadding:f,w:a,h:r,x:s.left,y:s.top},s),m=setLayoutDims(c.concat(d),h);fitBoxes(l.fullSize,g,h,m),fitBoxes(c,g,h,m),fitBoxes(d,g,h,m)&&fitBoxes(c,g,h,m),handleMaxPadding(g),placeBoxes(l.leftAndTop,g,h,m),g.x+=g.w,g.y+=g.h,placeBoxes(l.rightAndBottom,g,h,m),e.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},each(l.chartArea,w=>{const _=w.box;Object.assign(_,e.chartArea),_.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class BasePlatform{acquireContext(t,i){}releaseContext(t){return!1}addEventListener(t,i,n){}removeEventListener(t,i,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,i,n,s){return i=Math.max(0,i||t.width),n=n||t.height,{width:i,height:Math.max(0,s?Math.floor(i/s):n)}}isAttached(t){return!0}updateConfig(t){}}class BasicPlatform extends BasePlatform{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const EXPANDO_KEY="$chartjs",EVENT_TYPES={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},isNullOrEmpty=e=>e===null||e==="";function initCanvas(e,t){const i=e.style,n=e.getAttribute("height"),s=e.getAttribute("width");if(e[EXPANDO_KEY]={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",isNullOrEmpty(s)){const a=readUsedSize(e,"width");a!==void 0&&(e.width=a)}if(isNullOrEmpty(n))if(e.style.height==="")e.height=e.width/(t||2);else{const a=readUsedSize(e,"height");a!==void 0&&(e.height=a)}return e}const eventListenerOptions=supportsEventListenerOptions?{passive:!0}:!1;function addListener(e,t,i){e.addEventListener(t,i,eventListenerOptions)}function removeListener(e,t,i){e.canvas.removeEventListener(t,i,eventListenerOptions)}function fromNativeEvent(e,t){const i=EVENT_TYPES[e.type]||e.type,{x:n,y:s}=getRelativePosition(e,t);return{type:i,chart:t,native:e,x:n!==void 0?n:null,y:s!==void 0?s:null}}function nodeListContains(e,t){for(const i of e)if(i===t||i.contains(t))return!0}function createAttachObserver(e,t,i){const n=e.canvas,s=new MutationObserver(a=>{let r=!1;for(const l of a)r=r||nodeListContains(l.addedNodes,n),r=r&&!nodeListContains(l.removedNodes,n);r&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}function createDetachObserver(e,t,i){const n=e.canvas,s=new MutationObserver(a=>{let r=!1;for(const l of a)r=r||nodeListContains(l.removedNodes,n),r=r&&!nodeListContains(l.addedNodes,n);r&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}const drpListeningCharts=new Map;let oldDevicePixelRatio=0;function onWindowResize(){const e=window.devicePixelRatio;e!==oldDevicePixelRatio&&(oldDevicePixelRatio=e,drpListeningCharts.forEach((t,i)=>{i.currentDevicePixelRatio!==e&&t()}))}function listenDevicePixelRatioChanges(e,t){drpListeningCharts.size||window.addEventListener("resize",onWindowResize),drpListeningCharts.set(e,t)}function unlistenDevicePixelRatioChanges(e){drpListeningCharts.delete(e),drpListeningCharts.size||window.removeEventListener("resize",onWindowResize)}function createResizeObserver(e,t,i){const n=e.canvas,s=n&&_getParentNode(n);if(!s)return;const a=throttled((l,c)=>{const d=s.clientWidth;i(l,c),d{const c=l[0],d=c.contentRect.width,u=c.contentRect.height;d===0&&u===0||a(d,u)});return r.observe(s),listenDevicePixelRatioChanges(e,a),r}function releaseObserver(e,t,i){i&&i.disconnect(),t==="resize"&&unlistenDevicePixelRatioChanges(e)}function createProxyAndListen(e,t,i){const n=e.canvas,s=throttled(a=>{e.ctx!==null&&i(fromNativeEvent(a,e))},e);return addListener(n,t,s),s}class DomPlatform extends BasePlatform{acquireContext(t,i){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(initCanvas(t,i),n):null}releaseContext(t){const i=t.canvas;if(!i[EXPANDO_KEY])return!1;const n=i[EXPANDO_KEY].initial;["height","width"].forEach(a=>{const r=n[a];isNullOrUndef(r)?i.removeAttribute(a):i.setAttribute(a,r)});const s=n.style||{};return Object.keys(s).forEach(a=>{i.style[a]=s[a]}),i.width=i.width,delete i[EXPANDO_KEY],!0}addEventListener(t,i,n){this.removeEventListener(t,i);const s=t.$proxies||(t.$proxies={}),r={attach:createAttachObserver,detach:createDetachObserver,resize:createResizeObserver}[i]||createProxyAndListen;s[i]=r(t,i,n)}removeEventListener(t,i){const n=t.$proxies||(t.$proxies={}),s=n[i];if(!s)return;({attach:releaseObserver,detach:releaseObserver,resize:releaseObserver}[i]||removeListener)(t,i,s),n[i]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,i,n,s){return getMaximumSize(t,i,n,s)}isAttached(t){const i=_getParentNode(t);return!!(i&&i.isConnected)}}function _detectPlatform(e){return!_isDomSupported()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?BasicPlatform:DomPlatform}class Element{constructor(){Q(this,"active",!1)}tooltipPosition(t){const{x:i,y:n}=this.getProps(["x","y"],t);return{x:i,y:n}}hasValue(){return isNumber(this.x)&&isNumber(this.y)}getProps(t,i){const n=this.$animations;if(!i||!n)return this;const s={};return t.forEach(a=>{s[a]=n[a]&&n[a].active()?n[a]._to:this[a]}),s}}Q(Element,"defaults",{}),Q(Element,"defaultRoutes");function autoSkip(e,t){const i=e.options.ticks,n=determineMaxTicks(e),s=Math.min(i.maxTicksLimit||n,n),a=i.major.enabled?getMajorIndices(t):[],r=a.length,l=a[0],c=a[r-1],d=[];if(r>s)return skipMajors(t,d,a,r/s),d;const u=calculateSpacing(a,t,s);if(r>0){let h,f;const g=r>1?Math.round((c-l)/(r-1)):null;for(skip(t,d,u,isNullOrUndef(g)?0:l-g,l),h=0,f=r-1;hs)return c}return Math.max(s,1)}function getMajorIndices(e){const t=[];let i,n;for(i=0,n=e.length;ie==="left"?"right":e==="right"?"left":e,offsetFromEdge=(e,t,i)=>t==="top"||t==="left"?e[t]+i:e[t]-i;function sample(e,t){const i=[],n=e.length/t,s=e.length;let a=0;for(;ar+l)))return c}function garbageCollect(e,t){each(e,i=>{const n=i.gc,s=n.length/2;let a;if(s>t){for(a=0;an?n:i,n=s&&i>n?i:n,{min:finiteOrDefault(i,finiteOrDefault(n,i)),max:finiteOrDefault(n,finiteOrDefault(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){callback(this.options.beforeUpdate,[this])}update(t,i,n){const{beginAtZero:s,grace:a,ticks:r}=this.options,l=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=i,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_addGrace(this,a,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l=a||n<=1||!this.isHorizontal()){this.labelRotation=s;return}const u=this._getLabelSizes(),h=u.widest.width,f=u.highest.height,g=_limitValue(this.chart.width-h,0,this.maxWidth);l=t.offset?this.maxWidth/n:g/(n-1),h+6>l&&(l=g/(n-(t.offset?.5:1)),c=this.maxHeight-getTickMarkLength(t.grid)-i.padding-getTitleHeight(t.title,this.chart.options.font),d=Math.sqrt(h*h+f*f),r=toDegrees(Math.min(Math.asin(_limitValue((u.highest.height+6)/l,-1,1)),Math.asin(_limitValue(c/d,-1,1))-Math.asin(_limitValue(f/d,-1,1)))),r=Math.max(s,Math.min(a,r))),this.labelRotation=r}afterCalculateLabelRotation(){callback(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){callback(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:i,options:{ticks:n,title:s,grid:a}}=this,r=this._isVisible(),l=this.isHorizontal();if(r){const c=getTitleHeight(s,i.options.font);if(l?(t.width=this.maxWidth,t.height=getTickMarkLength(a)+c):(t.height=this.maxHeight,t.width=getTickMarkLength(a)+c),n.display&&this.ticks.length){const{first:d,last:u,widest:h,highest:f}=this._getLabelSizes(),g=n.padding*2,m=toRadians(this.labelRotation),w=Math.cos(m),_=Math.sin(m);if(l){const D=n.mirror?0:_*h.width+w*f.height;t.height=Math.min(this.maxHeight,t.height+D+g)}else{const D=n.mirror?0:w*h.width+_*f.height;t.width=Math.min(this.maxWidth,t.width+D+g)}this._calculatePadding(d,u,_,w)}}this._handleMargins(),l?(this.width=this._length=i.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=i.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,i,n,s){const{ticks:{align:a,padding:r},position:l}=this.options,c=this.labelRotation!==0,d=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,g=0;c?d?(f=s*t.width,g=n*i.height):(f=n*t.height,g=s*i.width):a==="start"?g=i.width:a==="end"?f=t.width:a!=="inner"&&(f=t.width/2,g=i.width/2),this.paddingLeft=Math.max((f-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((g-h+r)*this.width/(this.width-h),0)}else{let u=i.height/2,h=t.height/2;a==="start"?(u=0,h=t.height):a==="end"&&(u=i.height,h=0),this.paddingTop=u+r,this.paddingBottom=h+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){callback(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:i}=this.options;return i==="top"||i==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let i,n;for(i=0,n=t.length;i({width:a[H]||0,height:r[H]||0});return{first:U(0),last:U(i-1),widest:U(N),highest:U(L),widths:a,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,i){return NaN}getValueForPixel(t){}getPixelForTick(t){const i=this.ticks;return t<0||t>i.length-1?null:this.getPixelForValue(i[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const i=this._startPixel+t*this._length;return _int16Range(this._alignToPixels?_alignPixel(this.chart,i,0):i)}getDecimalForPixel(t){const i=(t-this._startPixel)/this._length;return this._reversePixels?1-i:i}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:i}=this;return t<0&&i<0?i:t>0&&i>0?t:0}getContext(t){const i=this.ticks||[];if(t>=0&&tl*s?l/n:c/s:c*s0}_computeGridLineItems(t){const i=this.axis,n=this.chart,s=this.options,{grid:a,position:r,border:l}=s,c=a.offset,d=this.isHorizontal(),h=this.ticks.length+(c?1:0),f=getTickMarkLength(a),g=[],m=l.setContext(this.getContext()),w=m.display?m.width:0,_=w/2,D=function(ct){return _alignPixel(n,ct,w)};let B,P,N,L,U,H,W,K,G,Y,J,ot;if(r==="top")B=D(this.bottom),H=this.bottom-f,K=B-_,Y=D(t.top)+_,ot=t.bottom;else if(r==="bottom")B=D(this.top),Y=t.top,ot=D(t.bottom)-_,H=B+_,K=this.top+f;else if(r==="left")B=D(this.right),U=this.right-f,W=B-_,G=D(t.left)+_,J=t.right;else if(r==="right")B=D(this.left),G=t.left,J=D(t.right)-_,U=B+_,W=this.left+f;else if(i==="x"){if(r==="center")B=D((t.top+t.bottom)/2+.5);else if(isObject(r)){const ct=Object.keys(r)[0],dt=r[ct];B=D(this.chart.scales[ct].getPixelForValue(dt))}Y=t.top,ot=t.bottom,H=B+_,K=H+f}else if(i==="y"){if(r==="center")B=D((t.left+t.right)/2);else if(isObject(r)){const ct=Object.keys(r)[0],dt=r[ct];B=D(this.chart.scales[ct].getPixelForValue(dt))}U=B-_,W=U-f,G=t.left,J=t.right}const ht=valueOrDefault(s.ticks.maxTicksLimit,h),st=Math.max(1,Math.ceil(h/ht));for(P=0;Pa.value===t);return s>=0?i.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const i=this.options.grid,n=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,r;const l=(c,d,u)=>{!u.width||!u.color||(n.save(),n.lineWidth=u.width,n.strokeStyle=u.color,n.setLineDash(u.borderDash||[]),n.lineDashOffset=u.borderDashOffset,n.beginPath(),n.moveTo(c.x,c.y),n.lineTo(d.x,d.y),n.stroke(),n.restore())};if(i.display)for(a=0,r=s.length;a{this.draw(a)}}]:[{z:n,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:i,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const i=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",s=[];let a,r;for(a=0,r=i.length;a{const n=i.split("."),s=n.pop(),a=[e].concat(n).join("."),r=t[i].split("."),l=r.pop(),c=r.join(".");defaults.route(a,s,c,l)})}function isIChartComponent(e){return"id"in e&&"defaults"in e}class Registry{constructor(){this.controllers=new TypedRegistry(DatasetController,"datasets",!0),this.elements=new TypedRegistry(Element,"elements"),this.plugins=new TypedRegistry(Object,"plugins"),this.scales=new TypedRegistry(Scale,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,i,n){[...i].forEach(s=>{const a=n||this._getRegistryForType(s);n||a.isForType(s)||a===this.plugins&&s.id?this._exec(t,a,s):each(s,r=>{const l=n||this._getRegistryForType(r);this._exec(t,l,r)})})}_exec(t,i,n){const s=_capitalize(t);callback(n["before"+s],[],n),i[t](n),callback(n["after"+s],[],n)}_getRegistryForType(t){for(let i=0;ia.filter(l=>!r.some(c=>l.plugin.id===c.plugin.id));this._notify(s(i,n),t,"stop"),this._notify(s(n,i),t,"start")}}function allPlugins(e){const t={},i=[],n=Object.keys(registry.plugins.items);for(let a=0;a1&&determineAxis(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function mergeScaleConfig(e,t){const i=overrides[e.type]||{scales:{}},n=t.scales||{},s=getIndexAxis(e.type,t),a=Object.create(null);return Object.keys(n).forEach(r=>{const l=n[r];if(!isObject(l))return console.error(`Invalid scale configuration for scale: ${r}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const c=determineAxis(r,l),d=getDefaultScaleIDFromAxis(c,s),u=i.scales||{};a[r]=mergeIf(Object.create(null),[{axis:c},l,u[c],u[d]])}),e.data.datasets.forEach(r=>{const l=r.type||e.type,c=r.indexAxis||getIndexAxis(l,t),u=(overrides[l]||{}).scales||{};Object.keys(u).forEach(h=>{const f=getAxisFromDefaultScaleID(h,c),g=r[f+"AxisID"]||f;a[g]=a[g]||Object.create(null),mergeIf(a[g],[{axis:f},n[g],u[h]])})}),Object.keys(a).forEach(r=>{const l=a[r];mergeIf(l,[defaults.scales[l.type],defaults.scale])}),a}function initOptions(e){const t=e.options||(e.options={});t.plugins=valueOrDefault(t.plugins,{}),t.scales=mergeScaleConfig(e,t)}function initData(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function initConfig(e){return e=e||{},e.data=initData(e.data),initOptions(e),e}const keyCache=new Map,keysCached=new Set;function cachedKeys(e,t){let i=keyCache.get(e);return i||(i=t(),keyCache.set(e,i),keysCached.add(i)),i}const addIfFound=(e,t,i)=>{const n=resolveObjectKey(t,i);n!==void 0&&e.add(n)};class Config{constructor(t){this._config=initConfig(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=initData(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),initOptions(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return cachedKeys(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,i){return cachedKeys(`${t}.transition.${i}`,()=>[[`datasets.${t}.transitions.${i}`,`transitions.${i}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,i){return cachedKeys(`${t}-${i}`,()=>[[`datasets.${t}.elements.${i}`,`datasets.${t}`,`elements.${i}`,""]])}pluginScopeKeys(t){const i=t.id,n=this.type;return cachedKeys(`${n}-plugin-${i}`,()=>[[`plugins.${i}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,i){const n=this._scopeCache;let s=n.get(t);return(!s||i)&&(s=new Map,n.set(t,s)),s}getOptionScopes(t,i,n){const{options:s,type:a}=this,r=this._cachedScopes(t,n),l=r.get(i);if(l)return l;const c=new Set;i.forEach(u=>{t&&(c.add(t),u.forEach(h=>addIfFound(c,t,h))),u.forEach(h=>addIfFound(c,s,h)),u.forEach(h=>addIfFound(c,overrides[a]||{},h)),u.forEach(h=>addIfFound(c,defaults,h)),u.forEach(h=>addIfFound(c,descriptors,h))});const d=Array.from(c);return d.length===0&&d.push(Object.create(null)),keysCached.has(i)&&r.set(i,d),d}chartOptionScopes(){const{options:t,type:i}=this;return[t,overrides[i]||{},defaults.datasets[i]||{},{type:i},defaults,descriptors]}resolveNamedOptions(t,i,n,s=[""]){const a={$shared:!0},{resolver:r,subPrefixes:l}=getResolver(this._resolverCache,t,s);let c=r;if(needContext(r,i)){a.$shared=!1,n=isFunction(n)?n():n;const d=this.createResolver(t,n,l);c=_attachContext(r,n,d)}for(const d of i)a[d]=c[d];return a}createResolver(t,i,n=[""],s){const{resolver:a}=getResolver(this._resolverCache,t,n);return isObject(i)?_attachContext(a,i,void 0,s):a}}function getResolver(e,t,i){let n=e.get(t);n||(n=new Map,e.set(t,n));const s=i.join();let a=n.get(s);return a||(a={resolver:_createResolver(t,i),subPrefixes:i.filter(l=>!l.toLowerCase().includes("hover"))},n.set(s,a)),a}const hasFunction=e=>isObject(e)&&Object.getOwnPropertyNames(e).reduce((t,i)=>t||isFunction(e[i]),!1);function needContext(e,t){const{isScriptable:i,isIndexable:n}=_descriptors(e);for(const s of t){const a=i(s),r=n(s),l=(r||a)&&e[s];if(a&&(isFunction(l)||hasFunction(l))||r&&isArray(l))return!0}return!1}var version="4.0.1";const KNOWN_POSITIONS=["top","bottom","left","right","chartArea"];function positionIsHorizontal(e,t){return e==="top"||e==="bottom"||KNOWN_POSITIONS.indexOf(e)===-1&&t==="x"}function compare2Level(e,t){return function(i,n){return i[e]===n[e]?i[t]-n[t]:i[e]-n[e]}}function onAnimationsComplete(e){const t=e.chart,i=t.options.animation;t.notifyPlugins("afterRender"),callback(i&&i.onComplete,[e],t)}function onAnimationProgress(e){const t=e.chart,i=t.options.animation;callback(i&&i.onProgress,[e],t)}function getCanvas(e){return _isDomSupported()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const instances={},getChart=e=>{const t=getCanvas(e);return Object.values(instances).filter(i=>i.canvas===t).pop()};function moveNumericKeys(e,t,i){const n=Object.keys(e);for(const s of n){const a=+s;if(a>=t){const r=e[s];delete e[s],(i>0||a>t)&&(e[a+i]=r)}}}function determineLastEvent(e,t,i,n){return!i||e.type==="mouseout"?null:n?t:e}function getDatasetArea(e){const{xScale:t,yScale:i}=e;if(t&&i)return{left:t.left,right:t.right,top:i.top,bottom:i.bottom}}class Chart{static register(...t){registry.add(...t),invalidatePlugins()}static unregister(...t){registry.remove(...t),invalidatePlugins()}constructor(t,i){const n=this.config=new Config(i),s=getCanvas(t),a=getChart(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||_detectPlatform(s)),this.platform.updateConfig(n);const l=this.platform.acquireContext(s,r.aspectRatio),c=l&&l.canvas,d=c&&c.height,u=c&&c.width;if(this.id=uid(),this.ctx=l,this.canvas=c,this.width=u,this.height=d,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new PluginService,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=debounce(h=>this.update(h),r.resizeDelay||0),this._dataChanges=[],instances[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}animator.listen(this,"complete",onAnimationsComplete),animator.listen(this,"progress",onAnimationProgress),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:i},width:n,height:s,_aspectRatio:a}=this;return isNullOrUndef(t)?i&&a?a:s?n/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return registry}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():retinaScale(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return clearCanvas(this.canvas,this.ctx),this}stop(){return animator.stop(this),this}resize(t,i){animator.running(this)?this._resizeBeforeDraw={width:t,height:i}:this._resize(t,i)}_resize(t,i){const n=this.options,s=this.canvas,a=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,i,a),l=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,retinaScale(this,l,!0)&&(this.notifyPlugins("resize",{size:r}),callback(n.onResize,[this,r],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const i=this.options.scales||{};each(i,(n,s)=>{n.id=s})}buildOrUpdateScales(){const t=this.options,i=t.scales,n=this.scales,s=Object.keys(n).reduce((r,l)=>(r[l]=!1,r),{});let a=[];i&&(a=a.concat(Object.keys(i).map(r=>{const l=i[r],c=determineAxis(r,l),d=c==="r",u=c==="x";return{options:l,dposition:d?"chartArea":u?"bottom":"left",dtype:d?"radialLinear":u?"category":"linear"}}))),each(a,r=>{const l=r.options,c=l.id,d=determineAxis(c,l),u=valueOrDefault(l.type,r.dtype);(l.position===void 0||positionIsHorizontal(l.position,d)!==positionIsHorizontal(r.dposition))&&(l.position=r.dposition),s[c]=!0;let h=null;if(c in n&&n[c].type===u)h=n[c];else{const f=registry.getScale(u);h=new f({id:c,type:u,ctx:this.ctx,chart:this}),n[h.id]=h}h.init(l,t)}),each(s,(r,l)=>{r||delete n[l]}),each(n,r=>{layouts.configure(this,r,r.options),layouts.addBox(this,r)})}_updateMetasets(){const t=this._metasets,i=this.data.datasets.length,n=t.length;if(t.sort((s,a)=>s.index-a.index),n>i){for(let s=i;si.length&&delete this._stacks,t.forEach((n,s)=>{i.filter(a=>a===n._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],i=this.data.datasets;let n,s;for(this._removeUnreferencedMetasets(),n=0,s=i.length;n{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const i=this.config;i.update();const n=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let d=0,u=this.data.datasets.length;d{d.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(compare2Level("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){each(this.scales,t=>{layouts.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,i=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!setsEqual(i,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,i=this._getUniformDataChanges()||[];for(const{method:n,start:s,count:a}of i){const r=n==="_removeElements"?-a:a;moveNumericKeys(t,s,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const i=this.data.datasets.length,n=a=>new Set(t.filter(r=>r[0]===a).map((r,l)=>l+","+r.splice(1).join(","))),s=n(0);for(let a=1;aa.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;layouts.update(this,this.width,this.height,t);const i=this.chartArea,n=i.width<=0||i.height<=0;this._layers=[],each(this.boxes,s=>{n&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,a)=>{s._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let i=0,n=this.data.datasets.length;i=0;--i)this._drawDataset(t[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const i=this.ctx,n=t._clip,s=!n.disabled,a=getDatasetArea(t)||this.chartArea,r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&clipArea(i,{left:n.left===!1?0:a.left-n.left,right:n.right===!1?this.width:a.right+n.right,top:n.top===!1?0:a.top-n.top,bottom:n.bottom===!1?this.height:a.bottom+n.bottom}),t.controller.draw(),s&&unclipArea(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return _isPointInArea(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,i,n,s){const a=Interaction.modes[i];return typeof a=="function"?a(this,t,n,s):[]}getDatasetMeta(t){const i=this.data.datasets[t],n=this._metasets;let s=n.filter(a=>a&&a._dataset===i).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:t,_dataset:i,_parsed:[],_sorted:!1},n.push(s)),s}getContext(){return this.$context||(this.$context=createContext(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const i=this.data.datasets[t];if(!i)return!1;const n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!i.hidden}setDatasetVisibility(t,i){const n=this.getDatasetMeta(t);n.hidden=!i}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,i,n){const s=n?"show":"hide",a=this.getDatasetMeta(t),r=a.controller._resolveAnimations(void 0,s);defined(i)?(a.data[i].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),r.update(a,{visible:n}),this.update(l=>l.datasetIndex===t?s:void 0))}hide(t,i){this._updateVisibility(t,i,!1)}show(t,i){this._updateVisibility(t,i,!0)}_destroyDatasetMeta(t){const i=this._metasets[t];i&&i.controller&&i.controller._destroy(),delete this._metasets[t]}_stop(){let t,i;for(this.stop(),animator.remove(this),t=0,i=this.data.datasets.length;t{i.addEventListener(this,a,r),t[a]=r},s=(a,r,l)=>{a.offsetX=r,a.offsetY=l,this._eventHandler(a)};each(this.options.events,a=>n(a,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,i=this.platform,n=(c,d)=>{i.addEventListener(this,c,d),t[c]=d},s=(c,d)=>{t[c]&&(i.removeEventListener(this,c,d),delete t[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)};let r;const l=()=>{s("attach",l),this.attached=!0,this.resize(),n("resize",a),n("detach",r)};r=()=>{this.attached=!1,s("resize",a),this._stop(),this._resize(0,0),n("attach",l)},i.isAttached(this.canvas)?l():r()}unbindEvents(){each(this._listeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._listeners={},each(this._responsiveListeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,i,n){const s=n?"set":"remove";let a,r,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+s+"DatasetHoverStyle"]()),l=0,c=t.length;l{const l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[r],index:r}});!_elementsEqual(n,i)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,i))}notifyPlugins(t,i,n){return this._plugins.notify(this,t,i,n)}isPluginEnabled(t){return this._plugins._cache.filter(i=>i.plugin.id===t).length===1}_updateHoverStyles(t,i,n){const s=this.options.hover,a=(c,d)=>c.filter(u=>!d.some(h=>u.datasetIndex===h.datasetIndex&&u.index===h.index)),r=a(i,t),l=n?t:a(t,i);r.length&&this.updateHoverStyle(r,s.mode,!1),l.length&&s.mode&&this.updateHoverStyle(l,s.mode,!0)}_eventHandler(t,i){const n={event:t,replay:i,cancelable:!0,inChartArea:this.isPointInArea(t)},s=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,s)===!1)return;const a=this._handleEvent(t,i,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,s),(a||n.changed)&&this.render(),this}_handleEvent(t,i,n){const{_active:s=[],options:a}=this,r=i,l=this._getActiveElements(t,s,n,r),c=_isClickEvent(t),d=determineLastEvent(t,this._lastEvent,n,c);n&&(this._lastEvent=null,callback(a.onHover,[t,l,this],this),c&&callback(a.onClick,[t,l,this],this));const u=!_elementsEqual(l,s);return(u||i)&&(this._active=l,this._updateHoverStyles(l,s,i)),this._lastEvent=d,u}_getActiveElements(t,i,n,s){if(t.type==="mouseout")return[];if(!n)return i;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,s)}}Q(Chart,"defaults",defaults),Q(Chart,"instances",instances),Q(Chart,"overrides",overrides),Q(Chart,"registry",registry),Q(Chart,"version",version),Q(Chart,"getChart",getChart);function invalidatePlugins(){return each(Chart.instances,e=>e._plugins.invalidate())}var Chart$1=Chart;function clipArc(e,t,i){const{startAngle:n,pixelMargin:s,x:a,y:r,outerRadius:l,innerRadius:c}=t;let d=s/l;e.beginPath(),e.arc(a,r,l,n-d,i+d),c>s?(d=s/c,e.arc(a,r,c,i+d,n-d,!0)):e.arc(a,r,s,i+HALF_PI,n-HALF_PI),e.closePath(),e.clip()}function toRadiusCorners(e){return _readValueToProps(e,["outerStart","outerEnd","innerStart","innerEnd"])}function parseBorderRadius$1(e,t,i,n){const s=toRadiusCorners(e.options.borderRadius),a=(i-t)/2,r=Math.min(a,n*t/2),l=c=>{const d=(i-Math.min(a,c))*n/2;return _limitValue(c,0,Math.min(a,d))};return{outerStart:l(s.outerStart),outerEnd:l(s.outerEnd),innerStart:_limitValue(s.innerStart,0,r),innerEnd:_limitValue(s.innerEnd,0,r)}}function rThetaToXY(e,t,i,n){return{x:i+e*Math.cos(t),y:n+e*Math.sin(t)}}function pathArc(e,t,i,n,s,a){const{x:r,y:l,startAngle:c,pixelMargin:d,innerRadius:u}=t,h=Math.max(t.outerRadius+n+i-d,0),f=u>0?u+n+i+d:0;let g=0;const m=s-c;if(n){const st=u>0?u-n:0,ct=h>0?h-n:0,dt=(st+ct)/2,mt=dt!==0?m*dt/(dt+n):m;g=(m-mt)/2}const w=Math.max(.001,m*h-i/PI)/h,_=(m-w)/2,D=c+_+g,B=s-_-g,{outerStart:P,outerEnd:N,innerStart:L,innerEnd:U}=parseBorderRadius$1(t,f,h,B-D),H=h-P,W=h-N,K=D+P/H,G=B-N/W,Y=f+L,J=f+U,ot=D+L/Y,ht=B-U/J;if(e.beginPath(),a){const st=(K+G)/2;if(e.arc(r,l,h,K,st),e.arc(r,l,h,st,G),N>0){const ft=rThetaToXY(W,G,r,l);e.arc(ft.x,ft.y,N,G,B+HALF_PI)}const ct=rThetaToXY(J,B,r,l);if(e.lineTo(ct.x,ct.y),U>0){const ft=rThetaToXY(J,ht,r,l);e.arc(ft.x,ft.y,U,B+HALF_PI,ht+Math.PI)}const dt=(B-U/f+(D+L/f))/2;if(e.arc(r,l,f,B-U/f,dt,!0),e.arc(r,l,f,dt,D+L/f,!0),L>0){const ft=rThetaToXY(Y,ot,r,l);e.arc(ft.x,ft.y,L,ot+Math.PI,D-HALF_PI)}const mt=rThetaToXY(H,D,r,l);if(e.lineTo(mt.x,mt.y),P>0){const ft=rThetaToXY(H,K,r,l);e.arc(ft.x,ft.y,P,D-HALF_PI,K)}}else{e.moveTo(r,l);const st=Math.cos(K)*h+r,ct=Math.sin(K)*h+l;e.lineTo(st,ct);const dt=Math.cos(G)*h+r,mt=Math.sin(G)*h+l;e.lineTo(dt,mt)}e.closePath()}function drawArc(e,t,i,n,s){const{fullCircles:a,startAngle:r,circumference:l}=t;let c=t.endAngle;if(a){pathArc(e,t,i,n,c,s);for(let d=0;d=TAU||_angleBetween(a,l,c),w=_isBetween(r,d+f,u+f);return m&&w}getCenterPoint(t){const{x:i,y:n,startAngle:s,endAngle:a,innerRadius:r,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:c,spacing:d}=this.options,u=(s+a)/2,h=(r+l+d+c)/2;return{x:i+Math.cos(u)*h,y:n+Math.sin(u)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:i,circumference:n}=this,s=(i.offset||0)/4,a=(i.spacing||0)/2,r=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=n>TAU?Math.floor(n/TAU):0,n===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const l=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(l)*s,Math.sin(l)*s);const c=1-Math.sin(Math.min(PI,n||0)),d=s*c;t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,drawArc(t,this,d,a,r),drawBorder(t,this,d,a,r),t.restore()}}Q(ArcElement,"id","arc"),Q(ArcElement,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Q(ArcElement,"defaultRoutes",{backgroundColor:"backgroundColor"});function setStyle(e,t,i=t){e.lineCap=valueOrDefault(i.borderCapStyle,t.borderCapStyle),e.setLineDash(valueOrDefault(i.borderDash,t.borderDash)),e.lineDashOffset=valueOrDefault(i.borderDashOffset,t.borderDashOffset),e.lineJoin=valueOrDefault(i.borderJoinStyle,t.borderJoinStyle),e.lineWidth=valueOrDefault(i.borderWidth,t.borderWidth),e.strokeStyle=valueOrDefault(i.borderColor,t.borderColor)}function lineTo(e,t,i){e.lineTo(i.x,i.y)}function getLineMethod(e){return e.stepped?_steppedLineTo:e.tension||e.cubicInterpolationMode==="monotone"?_bezierCurveTo:lineTo}function pathVars(e,t,i={}){const n=e.length,{start:s=0,end:a=n-1}=i,{start:r,end:l}=t,c=Math.max(s,r),d=Math.min(a,l),u=sl&&a>l;return{count:n,start:c,loop:t.loop,ilen:d(r+(d?l-N:N))%a,P=()=>{w!==_&&(e.lineTo(u,_),e.lineTo(u,w),e.lineTo(u,D))};for(c&&(g=s[B(0)],e.moveTo(g.x,g.y)),f=0;f<=l;++f){if(g=s[B(f)],g.skip)continue;const N=g.x,L=g.y,U=N|0;U===m?(L_&&(_=L),u=(h*u+N)/++h):(P(),e.lineTo(N,L),m=U,h=0,w=_=L),D=L}P()}function _getSegmentMethod(e){const t=e.options,i=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!i?fastPathSegment:pathSegment}function _getInterpolationMethod(e){return e.stepped?_steppedInterpolation:e.tension||e.cubicInterpolationMode==="monotone"?_bezierInterpolation:_pointInLine}function strokePathWithCache(e,t,i,n){let s=t._path;s||(s=t._path=new Path2D,t.path(s,i,n)&&s.closePath()),setStyle(e,t.options),e.stroke(s)}function strokePathDirect(e,t,i,n){const{segments:s,options:a}=t,r=_getSegmentMethod(t);for(const l of s)setStyle(e,a,l.style),e.beginPath(),r(e,t,l,{start:i,end:i+n-1})&&e.closePath(),e.stroke()}const usePath2D=typeof Path2D=="function";function draw(e,t,i,n){usePath2D&&!t.options.segment?strokePathWithCache(e,t,i,n):strokePathDirect(e,t,i,n)}class LineElement extends Element{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,i){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const s=n.spanGaps?this._loop:this._fullLoop;_updateBezierControlPoints(this._points,n,t,s,i),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=_computeSegments(this,this.options.segment))}first(){const t=this.segments,i=this.points;return t.length&&i[t[0].start]}last(){const t=this.segments,i=this.points,n=t.length;return n&&i[t[n-1].end]}interpolate(t,i){const n=this.options,s=t[i],a=this.points,r=_boundSegments(this,{property:i,start:s,end:s});if(!r.length)return;const l=[],c=_getInterpolationMethod(n);let d,u;for(d=0,u=r.length;dt!=="borderDash"&&t!=="fill"});function inRange$1(e,t,i,n){const s=e.options,{[i]:a}=e.getProps([i],n);return Math.abs(t-a)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function getBorderColor(e){return BORDER_COLORS[e%BORDER_COLORS.length]}function getBackgroundColor(e){return BACKGROUND_COLORS[e%BACKGROUND_COLORS.length]}function createDefaultDatasetColorizer(){return(e,t)=>{e.borderColor=getBorderColor(t),e.backgroundColor=getBackgroundColor(t)}}function createDoughnutDatasetColorizer(){let e=0;return t=>{t.backgroundColor=t.data.map(()=>getBorderColor(e++))}}function createPolarAreaDatasetColorizer(){let e=0;return t=>{t.backgroundColor=t.data.map(()=>getBackgroundColor(e++))}}function getColorizer(e){return e==="doughnut"||e==="pie"?createDoughnutDatasetColorizer():e==="polarArea"?createPolarAreaDatasetColorizer():createDefaultDatasetColorizer()}function containsColorsDefinitions(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var plugin_colors={id:"colors",defaults:{enabled:!0},beforeLayout(e,t,i){if(!i.enabled)return;const{type:n,options:{elements:s},data:{datasets:a}}=e.config;if(containsColorsDefinitions(a)||s&&containsColorsDefinitions(s))return;const r=getColorizer(n);a.forEach(r)}};function lttbDecimation(e,t,i,n,s){const a=s.samples||n;if(a>=i)return e.slice(t,t+i);const r=[],l=(i-2)/(a-2);let c=0;const d=t+i-1;let u=t,h,f,g,m,w;for(r[c++]=e[u],h=0;hg&&(g=m,f=e[B],w=B);r[c++]=f,u=w}return r[c++]=e[d],r}function minMaxDecimation(e,t,i,n){let s=0,a=0,r,l,c,d,u,h,f,g,m,w;const _=[],D=t+i-1,B=e[t].x,N=e[D].x-B;for(r=t;rw&&(w=d,f=r),s=(a*s+l.x)/++a;else{const U=r-1;if(!isNullOrUndef(h)&&!isNullOrUndef(f)){const H=Math.min(h,f),W=Math.max(h,f);H!==g&&H!==U&&_.push({...e[H],x:s}),W!==g&&W!==U&&_.push({...e[W],x:s})}r>0&&U!==g&&_.push(e[U]),_.push(l),u=L,a=0,m=w=d,h=f=g=r}}return _}function cleanDecimatedDataset(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function cleanDecimatedData(e){e.data.datasets.forEach(t=>{cleanDecimatedDataset(t)})}function getStartAndCountOfVisiblePointsSimplified(e,t){const i=t.length;let n=0,s;const{iScale:a}=e,{min:r,max:l,minDefined:c,maxDefined:d}=a.getUserBounds();return c&&(n=_limitValue(_lookupByKey(t,a.axis,r).lo,0,i-1)),d?s=_limitValue(_lookupByKey(t,a.axis,l).hi+1,n,i)-n:s=i-n,{start:n,count:s}}var plugin_decimation={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,i)=>{if(!i.enabled){cleanDecimatedData(e);return}const n=e.width;e.data.datasets.forEach((s,a)=>{const{_data:r,indexAxis:l}=s,c=e.getDatasetMeta(a),d=r||s.data;if(resolve([l,e.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;const u=e.scales[c.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:h,count:f}=getStartAndCountOfVisiblePointsSimplified(c,d);const g=i.threshold||4*n;if(f<=g){cleanDecimatedDataset(s);return}isNullOrUndef(r)&&(s._data=d,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(w){this._data=w}}));let m;switch(i.algorithm){case"lttb":m=lttbDecimation(d,h,f,n,i);break;case"min-max":m=minMaxDecimation(d,h,f,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}s._decimated=m})},destroy(e){cleanDecimatedData(e)}};function _segments(e,t,i){const n=e.segments,s=e.points,a=t.points,r=[];for(const l of n){let{start:c,end:d}=l;d=_findSegmentEnd(c,d,s);const u=_getBounds(i,s[c],s[d],l.loop);if(!t.segments){r.push({source:l,target:u,start:s[c],end:s[d]});continue}const h=_boundSegments(t,u);for(const f of h){const g=_getBounds(i,a[f.start],a[f.end],f.loop),m=_boundSegment(l,s,g);for(const w of m)r.push({source:w,target:f,start:{[i]:_getEdge(u,g,"start",Math.max)},end:{[i]:_getEdge(u,g,"end",Math.min)}})}}return r}function _getBounds(e,t,i,n){if(n)return;let s=t[e],a=i[e];return e==="angle"&&(s=_normalizeAngle(s),a=_normalizeAngle(a)),{property:e,start:s,end:a}}function _pointsFromSegments(e,t){const{x:i=null,y:n=null}=e||{},s=t.points,a=[];return t.segments.forEach(({start:r,end:l})=>{l=_findSegmentEnd(r,l,s);const c=s[r],d=s[l];n!==null?(a.push({x:c.x,y:n}),a.push({x:d.x,y:n})):i!==null&&(a.push({x:i,y:c.y}),a.push({x:i,y:d.y}))}),a}function _findSegmentEnd(e,t,i){for(;t>e;t--){const n=i[t];if(!isNaN(n.x)&&!isNaN(n.y))break}return t}function _getEdge(e,t,i,n){return e&&t?n(e[i],t[i]):e?e[i]:t?t[i]:0}function _createBoundaryLine(e,t){let i=[],n=!1;return isArray(e)?(n=!0,i=e):i=_pointsFromSegments(e,t),i.length?new LineElement({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function _shouldApplyFill(e){return e&&e.fill!==!1}function _resolveTarget(e,t,i){let s=e[t].fill;const a=[t];let r;if(!i)return s;for(;s!==!1&&a.indexOf(s)===-1;){if(!isNumberFinite(s))return s;if(r=e[s],!r)return!1;if(r.visible)return s;a.push(s),s=r.fill}return!1}function _decodeFill(e,t,i){const n=parseFillOption(e);if(isObject(n))return isNaN(n.value)?!1:n;let s=parseFloat(n);return isNumberFinite(s)&&Math.floor(s)===s?decodeTargetIndex(n[0],t,s,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function decodeTargetIndex(e,t,i,n){return(e==="-"||e==="+")&&(i=t+i),i===t||i<0||i>=n?!1:i}function _getTargetPixel(e,t){let i=null;return e==="start"?i=t.bottom:e==="end"?i=t.top:isObject(e)?i=t.getPixelForValue(e.value):t.getBasePixel&&(i=t.getBasePixel()),i}function _getTargetValue(e,t,i){let n;return e==="start"?n=i:e==="end"?n=t.options.reverse?t.min:t.max:isObject(e)?n=e.value:n=t.getBaseValue(),n}function parseFillOption(e){const t=e.options,i=t.fill;let n=valueOrDefault(i&&i.target,i);return n===void 0&&(n=!!t.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function _buildStackLine(e){const{scale:t,index:i,line:n}=e,s=[],a=n.segments,r=n.points,l=getLinesBelow(t,i);l.push(_createBoundaryLine({x:null,y:t.bottom},n));for(let c=0;c=0;--r){const l=s[r].$filler;!l||(l.line.updateControlPoints(a,l.axis),n&&l.fill&&_drawfill(e.ctx,l,a))}},beforeDatasetsDraw(e,t,i){if(i.drawTime!=="beforeDatasetsDraw")return;const n=e.getSortedVisibleDatasetMetas();for(let s=n.length-1;s>=0;--s){const a=n[s].$filler;_shouldApplyFill(a)&&_drawfill(e.ctx,a,e.chartArea)}},beforeDatasetDraw(e,t,i){const n=t.meta.$filler;!_shouldApplyFill(n)||i.drawTime!=="beforeDatasetDraw"||_drawfill(e.ctx,n,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const getBoxSize=(e,t)=>{let{boxHeight:i=t,boxWidth:n=t}=e;return e.usePointStyle&&(i=Math.min(i,t),n=e.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(t,i)}},itemsEqual=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Legend extends Element{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,i,n){this.maxWidth=t,this.maxHeight=i,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let i=callback(t.generateLabels,[this.chart],this)||[];t.filter&&(i=i.filter(n=>t.filter(n,this.chart.data))),t.sort&&(i=i.sort((n,s)=>t.sort(n,s,this.chart.data))),this.options.reverse&&i.reverse(),this.legendItems=i}fit(){const{options:t,ctx:i}=this;if(!t.display){this.width=this.height=0;return}const n=t.labels,s=toFont(n.font),a=s.size,r=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=getBoxSize(n,a);let d,u;i.font=s.string,this.isHorizontal()?(d=this.maxWidth,u=this._fitRows(r,a,l,c)+10):(u=this.maxHeight,d=this._fitCols(r,s,l,c)+10),this.width=Math.min(d,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,i,n,s){const{ctx:a,maxWidth:r,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.lineWidths=[0],u=s+l;let h=t;a.textAlign="left",a.textBaseline="middle";let f=-1,g=-u;return this.legendItems.forEach((m,w)=>{const _=n+i/2+a.measureText(m.text).width;(w===0||d[d.length-1]+_+2*l>r)&&(h+=u,d[d.length-(w>0?0:1)]=0,g+=u,f++),c[w]={left:0,top:g,row:f,width:_,height:s},d[d.length-1]+=_+l}),h}_fitCols(t,i,n,s){const{ctx:a,maxHeight:r,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.columnSizes=[],u=r-t;let h=l,f=0,g=0,m=0,w=0;return this.legendItems.forEach((_,D)=>{const{itemWidth:B,itemHeight:P}=calculateItemSize(n,i,a,_,s);D>0&&g+P+2*l>u&&(h+=f+l,d.push({width:f,height:g}),m+=f+l,w++,f=g=0),c[D]={left:m,top:g,col:w,width:B,height:P},f=Math.max(f,B),g+=P+l}),h+=f,d.push({width:f,height:g}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:i,options:{align:n,labels:{padding:s},rtl:a}}=this,r=getRtlAdapter(a,this.left,this.width);if(this.isHorizontal()){let l=0,c=_alignStartEnd(n,this.left+s,this.right-this.lineWidths[l]);for(const d of i)l!==d.row&&(l=d.row,c=_alignStartEnd(n,this.left+s,this.right-this.lineWidths[l])),d.top+=this.top+t+s,d.left=r.leftForLtr(r.x(c),d.width),c+=d.width+s}else{let l=0,c=_alignStartEnd(n,this.top+t+s,this.bottom-this.columnSizes[l].height);for(const d of i)d.col!==l&&(l=d.col,c=_alignStartEnd(n,this.top+t+s,this.bottom-this.columnSizes[l].height)),d.top=c,d.left+=this.left+s,d.left=r.leftForLtr(r.x(d.left),d.width),c+=d.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;clipArea(t,this),this._draw(),unclipArea(t)}}_draw(){const{options:t,columnSizes:i,lineWidths:n,ctx:s}=this,{align:a,labels:r}=t,l=defaults.color,c=getRtlAdapter(t.rtl,this.left,this.width),d=toFont(r.font),{padding:u}=r,h=d.size,f=h/2;let g;this.drawTitle(),s.textAlign=c.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=d.string;const{boxWidth:m,boxHeight:w,itemHeight:_}=getBoxSize(r,h),D=function(U,H,W){if(isNaN(m)||m<=0||isNaN(w)||w<0)return;s.save();const K=valueOrDefault(W.lineWidth,1);if(s.fillStyle=valueOrDefault(W.fillStyle,l),s.lineCap=valueOrDefault(W.lineCap,"butt"),s.lineDashOffset=valueOrDefault(W.lineDashOffset,0),s.lineJoin=valueOrDefault(W.lineJoin,"miter"),s.lineWidth=K,s.strokeStyle=valueOrDefault(W.strokeStyle,l),s.setLineDash(valueOrDefault(W.lineDash,[])),r.usePointStyle){const G={radius:w*Math.SQRT2/2,pointStyle:W.pointStyle,rotation:W.rotation,borderWidth:K},Y=c.xPlus(U,m/2),J=H+f;drawPointLegend(s,G,Y,J,r.pointStyleWidth&&m)}else{const G=H+Math.max((h-w)/2,0),Y=c.leftForLtr(U,m),J=toTRBLCorners(W.borderRadius);s.beginPath(),Object.values(J).some(ot=>ot!==0)?addRoundedRectPath(s,{x:Y,y:G,w:m,h:w,radius:J}):s.rect(Y,G,m,w),s.fill(),K!==0&&s.stroke()}s.restore()},B=function(U,H,W){renderText(s,W.text,U,H+_/2,d,{strikethrough:W.hidden,textAlign:c.textAlign(W.textAlign)})},P=this.isHorizontal(),N=this._computeTitleHeight();P?g={x:_alignStartEnd(a,this.left+u,this.right-n[0]),y:this.top+u+N,line:0}:g={x:this.left+u,y:_alignStartEnd(a,this.top+N+u,this.bottom-i[0].height),line:0},overrideTextDirection(this.ctx,t.textDirection);const L=_+u;this.legendItems.forEach((U,H)=>{s.strokeStyle=U.fontColor,s.fillStyle=U.fontColor;const W=s.measureText(U.text).width,K=c.textAlign(U.textAlign||(U.textAlign=r.textAlign)),G=m+f+W;let Y=g.x,J=g.y;c.setWidth(this.width),P?H>0&&Y+G+u>this.right&&(J=g.y+=L,g.line++,Y=g.x=_alignStartEnd(a,this.left+u,this.right-n[g.line])):H>0&&J+L>this.bottom&&(Y=g.x=Y+i[g.line].width+u,g.line++,J=g.y=_alignStartEnd(a,this.top+N+u,this.bottom-i[g.line].height));const ot=c.x(Y);if(D(ot,J,U),Y=_textX(K,Y+m+f,P?Y+G:this.right,t.rtl),B(c.x(Y),J,U),P)g.x+=G+u;else if(typeof U.text!="string"){const ht=d.lineHeight;g.y+=calculateLegendItemHeight(U,ht)}else g.y+=L}),restoreTextDirection(this.ctx,t.textDirection)}drawTitle(){const t=this.options,i=t.title,n=toFont(i.font),s=toPadding(i.padding);if(!i.display)return;const a=getRtlAdapter(t.rtl,this.left,this.width),r=this.ctx,l=i.position,c=n.size/2,d=s.top+c;let u,h=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+d,h=_alignStartEnd(t.align,h,this.right-f);else{const m=this.columnSizes.reduce((w,_)=>Math.max(w,_.height),0);u=d+_alignStartEnd(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const g=_alignStartEnd(l,h,h+f);r.textAlign=a.textAlign(_toLeftRightCenter(l)),r.textBaseline="middle",r.strokeStyle=i.color,r.fillStyle=i.color,r.font=n.string,renderText(r,i.text,g,u,n)}_computeTitleHeight(){const t=this.options.title,i=toFont(t.font),n=toPadding(t.padding);return t.display?i.lineHeight+n.height:0}_getLegendItemAt(t,i){let n,s,a;if(_isBetween(t,this.left,this.right)&&_isBetween(i,this.top,this.bottom)){for(a=this.legendHitBoxes,n=0;na.length>r.length?a:r)),t+i.size/2+n.measureText(s).width}function calculateItemHeight(e,t,i){let n=e;return typeof t.text!="string"&&(n=calculateLegendItemHeight(t,i)),n}function calculateLegendItemHeight(e,t){const i=e.text?e.text.length+.5:0;return t*i}function isListened(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var plugin_legend={id:"legend",_element:Legend,start(e,t,i){const n=e.legend=new Legend({ctx:e.ctx,options:i,chart:e});layouts.configure(e,n,i),layouts.addBox(e,n)},stop(e){layouts.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,i){const n=e.legend;layouts.configure(e,n,i),n.options=i},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,i){const n=t.datasetIndex,s=i.chart;s.isDatasetVisible(n)?(s.hide(n),t.hidden=!0):(s.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:s,color:a,useBorderRadius:r,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(c=>{const d=c.controller.getStyle(i?0:void 0),u=toPadding(d.borderWidth);return{text:t[c.index].label,fillStyle:d.backgroundColor,fontColor:a,hidden:!c.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:d.borderColor,pointStyle:n||d.pointStyle,rotation:d.rotation,textAlign:s||d.textAlign,borderRadius:r&&(l||d.borderRadius),datasetIndex:c.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Title extends Element{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,i){const n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=i;const s=isArray(n.text)?n.text.length:1;this._padding=toPadding(n.padding);const a=s*toFont(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:i,left:n,bottom:s,right:a,options:r}=this,l=r.align;let c=0,d,u,h;return this.isHorizontal()?(u=_alignStartEnd(l,n,a),h=i+t,d=a-n):(r.position==="left"?(u=n+t,h=_alignStartEnd(l,s,i),c=PI*-.5):(u=a-t,h=_alignStartEnd(l,i,s),c=PI*.5),d=s-i),{titleX:u,titleY:h,maxWidth:d,rotation:c}}draw(){const t=this.ctx,i=this.options;if(!i.display)return;const n=toFont(i.font),a=n.lineHeight/2+this._padding.top,{titleX:r,titleY:l,maxWidth:c,rotation:d}=this._drawArgs(a);renderText(t,i.text,0,0,n,{color:i.color,maxWidth:c,rotation:d,textAlign:_toLeftRightCenter(i.align),textBaseline:"middle",translation:[r,l]})}}function createTitle(e,t){const i=new Title({ctx:e.ctx,options:t,chart:e});layouts.configure(e,i,t),layouts.addBox(e,i),e.titleBlock=i}var plugin_title={id:"title",_element:Title,start(e,t,i){createTitle(e,i)},stop(e){const t=e.titleBlock;layouts.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,i){const n=e.titleBlock;layouts.configure(e,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const map=new WeakMap;var plugin_subtitle={id:"subtitle",start(e,t,i){const n=new Title({ctx:e.ctx,options:i,chart:e});layouts.configure(e,n,i),layouts.addBox(e,n),map.set(e,n)},stop(e){layouts.removeBox(e,map.get(e)),map.delete(e)},beforeUpdate(e,t,i){const n=map.get(e);layouts.configure(e,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const positioners={average(e){if(!e.length)return!1;let t,i,n=0,s=0,a=0;for(t=0,i=e.length;t-1?e.split(` `):e}function createTooltipItem(e,t){const{element:i,datasetIndex:n,index:s}=t,a=e.getDatasetMeta(n).controller,{label:r,value:l}=a.getLabelAndValue(s);return{chart:e,label:r,parsed:a.getParsed(s),raw:e.data.datasets[n].data[s],formattedValue:l,dataset:a.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function getTooltipSize(e,t){const i=e.chart.ctx,{body:n,footer:s,title:a}=e,{boxWidth:r,boxHeight:l}=t,c=toFont(t.bodyFont),d=toFont(t.titleFont),u=toFont(t.footerFont),h=a.length,f=s.length,g=n.length,m=toPadding(t.padding);let w=m.height,_=0,D=n.reduce((N,L)=>N+L.before.length+L.lines.length+L.after.length,0);if(D+=e.beforeBody.length+e.afterBody.length,h&&(w+=h*d.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),D){const N=t.displayColors?Math.max(l,c.lineHeight):c.lineHeight;w+=g*N+(D-g)*c.lineHeight+(D-1)*t.bodySpacing}f&&(w+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let B=0;const P=function(N){_=Math.max(_,i.measureText(N).width+B)};return i.save(),i.font=d.string,each(e.title,P),i.font=c.string,each(e.beforeBody.concat(e.afterBody),P),B=t.displayColors?r+2+t.boxPadding:0,each(n,N=>{each(N.before,P),each(N.lines,P),each(N.after,P)}),B=0,i.font=u.string,each(e.footer,P),i.restore(),_+=m.width,{width:_,height:w}}function determineYAlign(e,t){const{y:i,height:n}=t;return ie.height-n/2?"bottom":"center"}function doesNotFitWithAlign(e,t,i,n){const{x:s,width:a}=n,r=i.caretSize+i.caretPadding;if(e==="left"&&s+a+r>t.width||e==="right"&&s-a-r<0)return!0}function determineXAlign(e,t,i,n){const{x:s,width:a}=i,{width:r,chartArea:{left:l,right:c}}=e;let d="center";return n==="center"?d=s<=(l+c)/2?"left":"right":s<=a/2?d="left":s>=r-a/2&&(d="right"),doesNotFitWithAlign(d,e,t,i)&&(d="center"),d}function determineAlignment(e,t,i){const n=i.yAlign||t.yAlign||determineYAlign(e,i);return{xAlign:i.xAlign||t.xAlign||determineXAlign(e,t,i,n),yAlign:n}}function alignX(e,t){let{x:i,width:n}=e;return t==="right"?i-=n:t==="center"&&(i-=n/2),i}function alignY(e,t,i){let{y:n,height:s}=e;return t==="top"?n+=i:t==="bottom"?n-=s+i:n-=s/2,n}function getBackgroundPoint(e,t,i,n){const{caretSize:s,caretPadding:a,cornerRadius:r}=e,{xAlign:l,yAlign:c}=i,d=s+a,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:g}=toTRBLCorners(r);let m=alignX(t,l);const w=alignY(t,c,d);return c==="center"?l==="left"?m+=d:l==="right"&&(m-=d):l==="left"?m-=Math.max(u,f)+s:l==="right"&&(m+=Math.max(h,g)+s),{x:_limitValue(m,0,n.width-t.width),y:_limitValue(w,0,n.height-t.height)}}function getAlignedX(e,t,i){const n=toPadding(i.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-n.right:e.x+n.left}function getBeforeAfterBodyLines(e){return pushOrConcat([],splitNewlines(e))}function createTooltipContext(e,t,i){return createContext(e,{tooltip:t,tooltipItems:i,type:"tooltip"})}function overrideCallbacks(e,t){const i=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return i?e.override(i):e}const defaultCallbacks={beforeTitle:noop,title(e){if(e.length>0){const t=e[0],i=t.chart.data.labels,n=i?i.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex"u"?defaultCallbacks[t].call(i,n):s}class Tooltip extends Element{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const i=this.chart,n=this.options.setContext(this.getContext()),s=n.enabled&&i.options.animation&&n.animations,a=new Animations(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=createTooltipContext(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,i){const{callbacks:n}=i,s=invokeCallbackWithFallback(n,"beforeTitle",this,t),a=invokeCallbackWithFallback(n,"title",this,t),r=invokeCallbackWithFallback(n,"afterTitle",this,t);let l=[];return l=pushOrConcat(l,splitNewlines(s)),l=pushOrConcat(l,splitNewlines(a)),l=pushOrConcat(l,splitNewlines(r)),l}getBeforeBody(t,i){return getBeforeAfterBodyLines(invokeCallbackWithFallback(i.callbacks,"beforeBody",this,t))}getBody(t,i){const{callbacks:n}=i,s=[];return each(t,a=>{const r={before:[],lines:[],after:[]},l=overrideCallbacks(n,a);pushOrConcat(r.before,splitNewlines(invokeCallbackWithFallback(l,"beforeLabel",this,a))),pushOrConcat(r.lines,invokeCallbackWithFallback(l,"label",this,a)),pushOrConcat(r.after,splitNewlines(invokeCallbackWithFallback(l,"afterLabel",this,a))),s.push(r)}),s}getAfterBody(t,i){return getBeforeAfterBodyLines(invokeCallbackWithFallback(i.callbacks,"afterBody",this,t))}getFooter(t,i){const{callbacks:n}=i,s=invokeCallbackWithFallback(n,"beforeFooter",this,t),a=invokeCallbackWithFallback(n,"footer",this,t),r=invokeCallbackWithFallback(n,"afterFooter",this,t);let l=[];return l=pushOrConcat(l,splitNewlines(s)),l=pushOrConcat(l,splitNewlines(a)),l=pushOrConcat(l,splitNewlines(r)),l}_createItems(t){const i=this._active,n=this.chart.data,s=[],a=[],r=[];let l=[],c,d;for(c=0,d=i.length;ct.filter(u,h,f,n))),t.itemSort&&(l=l.sort((u,h)=>t.itemSort(u,h,n))),each(l,u=>{const h=overrideCallbacks(t.callbacks,u);s.push(invokeCallbackWithFallback(h,"labelColor",this,u)),a.push(invokeCallbackWithFallback(h,"labelPointStyle",this,u)),r.push(invokeCallbackWithFallback(h,"labelTextColor",this,u))}),this.labelColors=s,this.labelPointStyles=a,this.labelTextColors=r,this.dataPoints=l,l}update(t,i){const n=this.options.setContext(this.getContext()),s=this._active;let a,r=[];if(!s.length)this.opacity!==0&&(a={opacity:0});else{const l=positioners[n.position].call(this,s,this._eventPosition);r=this._createItems(n),this.title=this.getTitle(r,n),this.beforeBody=this.getBeforeBody(r,n),this.body=this.getBody(r,n),this.afterBody=this.getAfterBody(r,n),this.footer=this.getFooter(r,n);const c=this._size=getTooltipSize(this,n),d=Object.assign({},l,c),u=determineAlignment(this.chart,n,d),h=getBackgroundPoint(n,d,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,a={opacity:1,x:h.x,y:h.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=r,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(t,i,n,s){const a=this.getCaretPosition(t,n,s);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(t,i,n){const{xAlign:s,yAlign:a}=this,{caretSize:r,cornerRadius:l}=n,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:h}=toTRBLCorners(l),{x:f,y:g}=t,{width:m,height:w}=i;let _,D,B,P,N,L;return a==="center"?(N=g+w/2,s==="left"?(_=f,D=_-r,P=N+r,L=N-r):(_=f+m,D=_+r,P=N-r,L=N+r),B=_):(s==="left"?D=f+Math.max(c,u)+r:s==="right"?D=f+m-Math.max(d,h)-r:D=this.caretX,a==="top"?(P=g,N=P-r,_=D-r,B=D+r):(P=g+w,N=P+r,_=D+r,B=D-r),L=P),{x1:_,x2:D,x3:B,y1:P,y2:N,y3:L}}drawTitle(t,i,n){const s=this.title,a=s.length;let r,l,c;if(a){const d=getRtlAdapter(n.rtl,this.x,this.width);for(t.x=getAlignedX(this,n.titleAlign,n),i.textAlign=d.textAlign(n.titleAlign),i.textBaseline="middle",r=toFont(n.titleFont),l=n.titleSpacing,i.fillStyle=n.titleColor,i.font=r.string,c=0;cP!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,addRoundedRectPath(t,{x:_,y:w,w:d,h:c,radius:B}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),addRoundedRectPath(t,{x:D,y:w+1,w:d-2,h:c-2,radius:B}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(_,w,d,c),t.strokeRect(_,w,d,c),t.fillStyle=r.backgroundColor,t.fillRect(D,w+1,d-2,c-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,i,n){const{body:s}=this,{bodySpacing:a,bodyAlign:r,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:u}=n,h=toFont(n.bodyFont);let f=h.lineHeight,g=0;const m=getRtlAdapter(n.rtl,this.x,this.width),w=function(W){i.fillText(W,m.x(t.x+g),t.y+f/2),t.y+=f+a},_=m.textAlign(r);let D,B,P,N,L,U,H;for(i.textAlign=r,i.textBaseline="middle",i.font=h.string,t.x=getAlignedX(this,_,n),i.fillStyle=n.bodyColor,each(this.beforeBody,w),g=l&&_!=="right"?r==="center"?d/2+u:d+2+u:0,N=0,U=s.length;N0&&i.stroke()}_updateAnimationTarget(t){const i=this.chart,n=this.$animations,s=n&&n.x,a=n&&n.y;if(s||a){const r=positioners[t.position].call(this,this._active,this._eventPosition);if(!r)return;const l=this._size=getTooltipSize(this,t),c=Object.assign({},r,this._size),d=determineAlignment(i,t,c),u=getBackgroundPoint(t,c,d,i);(s._to!==u.x||a._to!==u.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const i=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(i);const s={width:this.width,height:this.height},a={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=toPadding(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(t.save(),t.globalAlpha=n,this.drawBackground(a,t,s,i),overrideTextDirection(t,i.textDirection),a.y+=r.top,this.drawTitle(a,t,i),this.drawBody(a,t,i),this.drawFooter(a,t,i),restoreTextDirection(t,i.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,i){const n=this._active,s=t.map(({datasetIndex:l,index:c})=>{const d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),a=!_elementsEqual(n,s),r=this._positionChanged(s,i);(a||r)&&(this._active=s,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,i,n=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,a=this._active||[],r=this._getActiveElements(t,a,i,n),l=this._positionChanged(r,t),c=i||!_elementsEqual(r,a)||l;return c&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,i))),c}_getActiveElements(t,i,n,s){const a=this.options;if(t.type==="mouseout")return[];if(!s)return i;const r=this.chart.getElementsAtEventForMode(t,a.mode,a,n);return a.reverse&&r.reverse(),r}_positionChanged(t,i){const{caretX:n,caretY:s,options:a}=this,r=positioners[a.position].call(this,t,i);return r!==!1&&(n!==r.x||s!==r.y)}}Q(Tooltip,"positioners",positioners);var plugin_tooltip={id:"tooltip",_element:Tooltip,positioners,afterInit(e,t,i){i&&(e.tooltip=new Tooltip({chart:e,options:i}))},beforeUpdate(e,t,i){e.tooltip&&e.tooltip.initialize(i)},reset(e,t,i){e.tooltip&&e.tooltip.initialize(i)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const i={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",i)}},afterEvent(e,t){if(e.tooltip){const i=t.replay;e.tooltip.handleEvent(t.event,i,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:defaultCallbacks},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},plugins=Object.freeze({__proto__:null,Colors:plugin_colors,Decimation:plugin_decimation,Filler:index$3,Legend:plugin_legend,SubTitle:plugin_subtitle,Title:plugin_title,Tooltip:plugin_tooltip});const addIfString=(e,t,i,n)=>(typeof t=="string"?(i=e.push(t)-1,n.unshift({index:i,label:t})):isNaN(t)&&(i=null),i);function findOrAddLabel(e,t,i,n){const s=e.indexOf(t);if(s===-1)return addIfString(e,t,i,n);const a=e.lastIndexOf(t);return s!==a?i:s}const validIndex=(e,t)=>e===null?null:_limitValue(Math.round(e),0,t);function _getLabelForValue(e){const t=this.getLabels();return e>=0&&ei.length-1?null:this.getPixelForValue(i[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Q(CategoryScale,"id","category"),Q(CategoryScale,"defaults",{ticks:{callback:_getLabelForValue}});function generateTicks$1(e,t){const i=[],{bounds:s,step:a,min:r,max:l,precision:c,count:d,maxTicks:u,maxDigits:h,includeBounds:f}=e,g=a||1,m=u-1,{min:w,max:_}=t,D=!isNullOrUndef(r),B=!isNullOrUndef(l),P=!isNullOrUndef(d),N=(_-w)/(h+1);let L=niceNum((_-w)/m/g)*g,U,H,W,K;if(L<1e-14&&!D&&!B)return[{value:w},{value:_}];K=Math.ceil(_/L)-Math.floor(w/L),K>m&&(L=niceNum(K*L/m/g)*g),isNullOrUndef(c)||(U=Math.pow(10,c),L=Math.ceil(L*U)/U),s==="ticks"?(H=Math.floor(w/L)*L,W=Math.ceil(_/L)*L):(H=w,W=_),D&&B&&a&&almostWhole((l-r)/a,L/1e3)?(K=Math.round(Math.min((l-r)/L,u)),L=(l-r)/K,H=r,W=l):P?(H=D?r:H,W=B?l:W,K=d-1,L=(W-H)/K):(K=(W-H)/L,almostEquals(K,Math.round(K),L/1e3)?K=Math.round(K):K=Math.ceil(K));const G=Math.max(_decimalPlaces(L),_decimalPlaces(H));U=Math.pow(10,isNullOrUndef(c)?G:c),H=Math.round(H*U)/U,W=Math.round(W*U)/U;let Y=0;for(D&&(f&&H!==r?(i.push({value:r}),Hs=i?s:c,l=c=>a=n?a:c;if(t){const c=sign(s),d=sign(a);c<0&&d<0?l(0):c>0&&d>0&&r(0)}if(s===a){let c=a===0?1:Math.abs(a*.05);l(a+c),t||r(s-c)}this.min=s,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:i,stepSize:n}=t,s;return n?(s=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),i=i||11),i&&(s=Math.min(i,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,i=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const s={maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:i.precision,step:i.stepSize,count:i.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:i.minRotation||0,includeBounds:i.includeBounds!==!1},a=this._range||this,r=generateTicks$1(s,a);return t.bounds==="ticks"&&_setMinAndMaxByKey(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let i=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const s=(n-i)/Math.max(t.length-1,1)/2;i-=s,n+=s}this._startValue=i,this._endValue=n,this._valueRange=n-i}getLabelForValue(t){return formatNumber(t,this.chart.options.locale,this.options.ticks.format)}}class LinearScale extends LinearScaleBase{determineDataLimits(){const{min:t,max:i}=this.getMinMax(!0);this.min=isNumberFinite(t)?t:0,this.max=isNumberFinite(i)?i:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),i=t?this.width:this.height,n=toRadians(this.options.ticks.minRotation),s=(t?Math.sin(n):Math.cos(n))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(i/Math.min(40,a.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Q(LinearScale,"id","linear"),Q(LinearScale,"defaults",{ticks:{callback:Ticks.formatters.numeric}});const log10Floor=e=>Math.floor(log10(e)),changeExponent=(e,t)=>Math.pow(10,log10Floor(e)+t);function isMajor(e){return e/Math.pow(10,log10Floor(e))===1}function steps(e,t,i){const n=Math.pow(10,i),s=Math.floor(e/n);return Math.ceil(t/n)-s}function startExp(e,t){const i=t-e;let n=log10Floor(i);for(;steps(e,t,n)>10;)n++;for(;steps(e,t,n)<10;)n--;return Math.min(n,log10Floor(e))}function generateTicks(e,{min:t,max:i}){t=finiteOrDefault(e.min,t);const n=[],s=log10Floor(t);let a=startExp(t,i),r=a<0?Math.pow(10,Math.abs(a)):1;const l=Math.pow(10,a),c=s>a?Math.pow(10,s):0,d=Math.round((t-c)*r)/r,u=Math.floor((t-c)/l/10)*l*10;let h=Math.floor((d-u)/Math.pow(10,a)),f=finiteOrDefault(e.min,Math.round((c+u+h*Math.pow(10,a))*r)/r);for(;f=10?h=h<15?15:20:h++,h>=20&&(a++,h=2,r=a>=0?1:r),f=Math.round((c+u+h*Math.pow(10,a))*r)/r;const g=finiteOrDefault(e.max,f);return n.push({value:g,major:isMajor(g),significand:h}),n}class LogarithmicScale extends Scale{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,i){const n=LinearScaleBase.prototype.parse.apply(this,[t,i]);if(n===0){this._zero=!0;return}return isNumberFinite(n)&&n>0?n:null}determineDataLimits(){const{min:t,max:i}=this.getMinMax(!0);this.min=isNumberFinite(t)?Math.max(0,t):null,this.max=isNumberFinite(i)?Math.max(0,i):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!isNumberFinite(this._userMin)&&(this.min=t===changeExponent(this.min,0)?changeExponent(this.min,-1):changeExponent(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:i}=this.getUserBounds();let n=this.min,s=this.max;const a=l=>n=t?n:l,r=l=>s=i?s:l;n===s&&(n<=0?(a(1),r(10)):(a(changeExponent(n,-1)),r(changeExponent(s,1)))),n<=0&&a(changeExponent(s,-1)),s<=0&&r(changeExponent(n,1)),this.min=n,this.max=s}buildTicks(){const t=this.options,i={min:this._userMin,max:this._userMax},n=generateTicks(i,this);return t.bounds==="ticks"&&_setMinAndMaxByKey(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(t){return t===void 0?"0":formatNumber(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=log10(t),this._valueRange=log10(this.max)-log10(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(log10(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const i=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+i*this._valueRange)}}Q(LogarithmicScale,"id","logarithmic"),Q(LogarithmicScale,"defaults",{ticks:{callback:Ticks.formatters.logarithmic,major:{enabled:!0}}});function getTickBackdropHeight(e){const t=e.ticks;if(t.display&&e.display){const i=toPadding(t.backdropPadding);return valueOrDefault(t.font&&t.font.size,defaults.font.size)+i.height}return 0}function measureLabelSize(e,t,i){return i=isArray(i)?i:[i],{w:_longestText(e,t.string,i),h:i.length*t.lineHeight}}function determineLimits(e,t,i,n,s){return e===n||e===s?{start:t-i/2,end:t+i/2}:es?{start:t-i,end:t}:{start:t,end:t+i}}function fitWithPointLabels(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},i=Object.assign({},t),n=[],s=[],a=e._pointLabels.length,r=e.options.pointLabels,l=r.centerPointLabels?PI/a:0;for(let c=0;ct.r&&(l=(n.end-t.r)/a,e.r=Math.max(e.r,t.r+l)),s.startt.b&&(c=(s.end-t.b)/r,e.b=Math.max(e.b,t.b+c))}function buildPointLabelItems(e,t,i){const n=[],s=e._pointLabels.length,a=e.options,r=getTickBackdropHeight(a)/2,l=e.drawingArea,c=a.pointLabels.centerPointLabels?PI/s:0;for(let d=0;d270||i<90)&&(e-=t),e}function drawPointLabels(e,t){const{ctx:i,options:{pointLabels:n}}=e;for(let s=t-1;s>=0;s--){const a=n.setContext(e.getPointLabelContext(s)),r=toFont(a.font),{x:l,y:c,textAlign:d,left:u,top:h,right:f,bottom:g}=e._pointLabelItems[s],{backdropColor:m}=a;if(!isNullOrUndef(m)){const w=toTRBLCorners(a.borderRadius),_=toPadding(a.backdropPadding);i.fillStyle=m;const D=u-_.left,B=h-_.top,P=f-u+_.width,N=g-h+_.height;Object.values(w).some(L=>L!==0)?(i.beginPath(),addRoundedRectPath(i,{x:D,y:B,w:P,h:N,radius:w}),i.fill()):i.fillRect(D,B,P,N)}renderText(i,e._pointLabels[s],l,c+r.lineHeight/2,r,{color:a.color,textAlign:d,textBaseline:"middle"})}}function pathRadiusLine(e,t,i,n){const{ctx:s}=e;if(i)s.arc(e.xCenter,e.yCenter,t,0,TAU);else{let a=e.getPointPosition(0,t);s.moveTo(a.x,a.y);for(let r=1;r{const s=callback(this.options.pointLabels.callback,[i,n],this);return s||s===0?s:""}).filter((i,n)=>this.chart.getDataVisibility(n))}fit(){const t=this.options;t.display&&t.pointLabels.display?fitWithPointLabels(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,i,n,s){this.xCenter+=Math.floor((t-i)/2),this.yCenter+=Math.floor((n-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,i,n,s))}getIndexAngle(t){const i=TAU/(this._pointLabels.length||1),n=this.options.startAngle||0;return _normalizeAngle(t*i+toRadians(n))}getDistanceFromCenterForValue(t){if(isNullOrUndef(t))return NaN;const i=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*i:(t-this.min)*i}getValueForDistanceFromCenter(t){if(isNullOrUndef(t))return NaN;const i=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-i:this.min+i}getPointLabelContext(t){const i=this._pointLabels||[];if(t>=0&&t{if(h!==0){c=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(h),g=s.setContext(f),m=a.setContext(f);drawRadiusLine(this,g,c,r,m)}}),n.display){for(t.save(),l=r-1;l>=0;l--){const u=n.setContext(this.getPointLabelContext(l)),{color:h,lineWidth:f}=u;!f||!h||(t.lineWidth=f,t.strokeStyle=h,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,c=this.getDistanceFromCenterForValue(i.ticks.reverse?this.min:this.max),d=this.getPointPosition(l,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(d.x,d.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,i=this.options,n=i.ticks;if(!n.display)return;const s=this.getIndexAngle(0);let a,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&!i.reverse)return;const d=n.setContext(this.getContext(c)),u=toFont(d.font);if(a=this.getDistanceFromCenterForValue(this.ticks[c].value),d.showLabelBackdrop){t.font=u.string,r=t.measureText(l.label).width,t.fillStyle=d.backdropColor;const h=toPadding(d.backdropPadding);t.fillRect(-r/2-h.left,-a-u.size/2-h.top,r+h.width,u.size+h.height)}renderText(t,l.label,0,-a,u,{color:d.color})}),t.restore()}drawTitle(){}}Q(RadialLinearScale,"id","radialLinear"),Q(RadialLinearScale,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ticks.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Q(RadialLinearScale,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Q(RadialLinearScale,"descriptors",{angleLines:{_fallback:"grid"}});const INTERVALS={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},UNITS=Object.keys(INTERVALS);function sorter(e,t){return e-t}function parse(e,t){if(isNullOrUndef(t))return null;const i=e._adapter,{parser:n,round:s,isoWeekday:a}=e._parseOpts;let r=t;return typeof n=="function"&&(r=n(r)),isNumberFinite(r)||(r=typeof n=="string"?i.parse(r,n):i.parse(r)),r===null?null:(s&&(r=s==="week"&&(isNumber(a)||a===!0)?i.startOf(r,"isoWeek",a):i.startOf(r,s)),+r)}function determineUnitForAutoTicks(e,t,i,n){const s=UNITS.length;for(let a=UNITS.indexOf(e);a=UNITS.indexOf(i);a--){const r=UNITS[a];if(INTERVALS[r].common&&e._adapter.diff(s,n,r)>=t-1)return r}return UNITS[i?UNITS.indexOf(i):0]}function determineMajorUnit(e){for(let t=UNITS.indexOf(e)+1,i=UNITS.length;t=t?i[n]:i[s];e[a]=!0}}function setMajorTicks(e,t,i,n){const s=e._adapter,a=+s.startOf(t[0].value,n),r=t[t.length-1].value;let l,c;for(l=a;l<=r;l=+s.add(l,1,n))c=i[l],c>=0&&(t[c].major=!0);return t}function ticksFromTimestamps(e,t,i){const n=[],s={},a=t.length;let r,l;for(r=0;r+t.value))}initOffsets(t=[]){let i=0,n=0,s,a;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?i=1-s:i=(this.getDecimalForValue(t[1])-s)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?n=a:n=(a-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;i=_limitValue(i,0,r),n=_limitValue(n,0,r),this._offsets={start:i,end:n,factor:1/(i+1+n)}}_generate(){const t=this._adapter,i=this.min,n=this.max,s=this.options,a=s.time,r=a.unit||determineUnitForAutoTicks(a.minUnit,i,n,this._getLabelCapacity(i)),l=valueOrDefault(s.ticks.stepSize,1),c=r==="week"?a.isoWeekday:!1,d=isNumber(c)||c===!0,u={};let h=i,f,g;if(d&&(h=+t.startOf(h,"isoWeek",c)),h=+t.startOf(h,d?"day":r),t.diff(n,i,r)>1e5*l)throw new Error(i+" and "+n+" are too far apart with stepSize of "+l+" "+r);const m=s.ticks.source==="data"&&this.getDataTimestamps();for(f=h,g=0;fw-_).map(w=>+w)}getLabelForValue(t){const i=this._adapter,n=this.options.time;return n.tooltipFormat?i.format(t,n.tooltipFormat):i.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,i,n,s){const a=this.options,r=a.ticks.callback;if(r)return callback(r,[t,i,n],this);const l=a.time.displayFormats,c=this._unit,d=this._majorUnit,u=c&&l[c],h=d&&l[d],f=n[i],g=d&&h&&f&&f.major;return this._adapter.format(t,s||(g?h:u))}generateTickLabels(t){let i,n,s;for(i=0,n=t.length;i0?l:1}getDataTimestamps(){let t=this._cache.data||[],i,n;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(i=0,n=s.length;i=e[n].pos&&t<=e[s].pos&&({lo:n,hi:s}=_lookupByKey(e,"pos",t)),{pos:a,time:l}=e[n],{pos:r,time:c}=e[s]):(t>=e[n].time&&t<=e[s].time&&({lo:n,hi:s}=_lookupByKey(e,"time",t)),{time:a,pos:l}=e[n],{time:r,pos:c}=e[s]);const d=r-a;return d?l+(c-l)*(t-a)/d:l}class TimeSeriesScale extends TimeScale{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),i=this._table=this.buildLookupTable(t);this._minPos=interpolate(i,this.min),this._tableRange=interpolate(i,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:i,max:n}=this,s=[],a=[];let r,l,c,d,u;for(r=0,l=t.length;r=i&&d<=n&&s.push(d);if(s.length<2)return[{time:i,pos:0},{time:n,pos:1}];for(r=0,l=s.length;r(pushScopeId("data-v-fd1701ae"),e=e(),popScopeId(),e),_hoisted_1$h={id:"critical-main"},_hoisted_2$f={id:"critical"},_hoisted_3$f=_withScopeId$8(()=>createBaseVNode("div",{class:"des"},"\u52A0\u653B\u4F24\u5BB3",-1)),_hoisted_4$c={class:"slider-div"},_hoisted_5$b={id:"def"},_hoisted_6$a=_withScopeId$8(()=>createBaseVNode("div",{class:"des"},"\u52A0\u9632\u4F24\u5BB3",-1)),_hoisted_7$7={class:"slider-div"},_hoisted_8$6={id:"now-damage"},_hoisted_9$6={style:{"font-family":"'Fira Code'"}},_sfc_main$h=defineComponent({__name:"enemyCritical",setup(e){const t=ref(),i=ref(),n=core.plugin.bookDetailEnemy,s=Math.ceil;let a=getCriticalDamage(n),r=getDefDamage(n);const l=ref(a),c=ref(r),d=ref(0),u=ref(0),h=core.getDamageInfo(n),f=core.formatBigNumber,g=core.status.thisMap.ratio,m=computed(()=>{const B=core.getDamageInfo(n,{atk:core.status.hero.atk+d.value*g,def:core.status.hero.def+u.value*g});return has(B)?has(h)?[h.damage-B.damage,B.damage]:[-B.damage,B.damage]:["???","???"]});function w(B,P){const N={type:"line",data:_(P),options:{elements:{point:{radius:5,hoverRadius:7},line:{borderJoinStyle:"round"}},scales:{y:{grid:{color:"#ddd3"}}},plugins:{legend:{display:!1}}}};return new Chart$1(B,N)}function _(B){return{datasets:[{data:B.map(P=>P[1]),label:"\u602A\u7269\u4F24\u5BB3"}],labels:B.map(P=>Math.round(P[0]/g))}}const D=lodash.exports.debounce((B,P)=>{l.value=getCriticalDamage(n,d.value*g,u.value*g),c.value=getDefDamage(n,u.value*g,d.value*g),l.value.length>a.length&&(a=l.value),c.value.length>r.length&&(r=c.value),B.data=_(l.value),P.data=_(c.value),B.update("resize"),P.update("resize")},200);return onMounted(()=>{const B=document.getElementById("critical-main"),P=getComputedStyle(B),N=parseFloat(P.width),L=window.innerHeight/5,U=t.value,H=i.value;setCanvasSize(U,N,L),setCanvasSize(H,N,L);const W=w(U,l.value),K=w(H,c.value);watch(d,G=>{D(W,K)}),watch(u,G=>{D(W,K)})}),(B,P)=>{var U,H,W,K,G,Y,J,ot;const N=__unplugin_components_0,L=__unplugin_components_1;return openBlock(),createElementBlock("div",_hoisted_1$h,[createBaseVNode("div",_hoisted_2$f,[_hoisted_3$f,createBaseVNode("canvas",{ref_key:"critical",ref:t,class:"chart"},null,512),createBaseVNode("div",_hoisted_4$c,[createBaseVNode("span",null,"\u52A0\u653B\u6B21\u6570\xA0\xA0\xA0\xA0"+toDisplayString(d.value),1),createVNode(N,{class:"slider",value:d.value,"onUpdate:value":P[0]||(P[0]=ht=>d.value=ht),max:unref(s)(((H=(U=unref(a).at(-1))==null?void 0:U[0])!=null?H:2)/unref(g))-1},null,8,["value","max"]),createBaseVNode("span",null,"\u6700\u5927\u503C\xA0\xA0\xA0\xA0"+toDisplayString(unref(s)(((K=(W=unref(a).at(-1))==null?void 0:W[0])!=null?K:2)/unref(g))-1),1)])]),createVNode(L,{dashed:"",style:{width:"100%","border-color":"#ddd4",margin:"1vh 0 1vh 0"}}),createBaseVNode("div",_hoisted_5$b,[_hoisted_6$a,createBaseVNode("canvas",{ref_key:"def",ref:i,class:"chart"},null,512),createBaseVNode("div",_hoisted_7$7,[createBaseVNode("span",null,"\u52A0\u9632\u6B21\u6570\xA0\xA0\xA0\xA0"+toDisplayString(u.value),1),createVNode(N,{class:"slider",value:u.value,"onUpdate:value":P[1]||(P[1]=ht=>u.value=ht),max:unref(s)(((Y=(G=unref(r).at(-1))==null?void 0:G[0])!=null?Y:2)/unref(g))-1},null,8,["value","max"]),createBaseVNode("span",null,"\u6700\u5927\u503C\xA0\xA0\xA0\xA0"+toDisplayString(unref(s)(((ot=(J=unref(r).at(-1))==null?void 0:J[0])!=null?ot:2)/unref(g))-1),1)])]),createBaseVNode("div",_hoisted_8$6,[createBaseVNode("div",null,[createBaseVNode("span",null,"\u5F53\u524D\u52A0\u653B"+toDisplayString(unref(isMobile)?"":"\xA0\xA0\xA0\xA0"),1),createBaseVNode("span",null,toDisplayString(unref(f)(d.value*unref(g))),1)]),createBaseVNode("div",null,[createBaseVNode("span",null,"\u5F53\u524D\u52A0\u9632"+toDisplayString(unref(isMobile)?"":"\xA0\xA0\xA0\xA0"),1),createBaseVNode("span",null,toDisplayString(unref(f)(u.value*unref(g))),1)]),createBaseVNode("div",null,[createBaseVNode("span",null,"\u5F53\u524D\u51CF\u4F24"+toDisplayString(unref(isMobile)?"":"\xA0\xA0\xA0\xA0"),1),createBaseVNode("span",null,[createBaseVNode("span",_hoisted_9$6,toDisplayString(unref(m)[0]<0&&unref(m)[1]==="???"?"=>":""),1),createTextVNode(toDisplayString(unref(m)[0]<0&&unref(m)[1]==="???"?unref(f)(-unref(m)[0]):unref(f)(unref(m)[0])),1)])]),createBaseVNode("div",null,[createBaseVNode("span",null,"\u5F53\u524D\u4F24\u5BB3"+toDisplayString(unref(isMobile)?"":"\xA0\xA0\xA0\xA0"),1),createBaseVNode("span",null,toDisplayString(unref(f)(unref(m)[1])),1)])])])}}}),enemyCritical_vue_vue_type_style_index_0_scoped_fd1701ae_lang="",EnemyCritical=_export_sfc(_sfc_main$h,[["__scopeId","data-v-fd1701ae"]]),showMarkedEnemy=ref(!1),markedEnemy=reactive([]),markInfo={},criticalReached={},enemyDamageInfo={};function markEnemy$1(e){var t,i;hasMarkedEnemy(e)||(markedEnemy.push(e),markInfo[e]={nextCritical:(i=(t=core.nextCriticals(e,1)[0])==null?void 0:t[0])!=null?i:0+core.status.hero.atk},criticalReached[e]={0:!0},enemyDamageInfo[e]={1:!1,2:!1,3:!1},getMarkInfo(e,!0),checkMarkedEnemy(!0))}function hasMarkedEnemy(e){return markedEnemy.includes(e)}function unmarkEnemy(e){const t=markedEnemy.indexOf(e);t!==-1&&(markedEnemy.splice(t,1),checkMarkedEnemy())}function getMarkedEnemy(){return markedEnemy}function getMarkInfo(e,t=!1){var s;const i=criticalReached[e],n=markInfo[e];if(core.status.hero.atk>=n.nextCritical){!i[n.nextCritical]&&!t&&tip$1("success",`\u8E29\u5230\u4E86${core.material.enemys[e].name}\u7684\u4E34\u754C\uFF01`),i[n.nextCritical]=!0;const a=(s=core.nextCriticals(e,1)[0])==null?void 0:s[0],r=(a!=null?a:0)+core.status.hero.atk;n.nextCritical=r}}function checkMarkedEnemy(e=!1){checkMarkedStatus.value=!checkMarkedStatus.value;const t=core.status.hero.hp;getMarkedEnemy().forEach(i=>{var r,l;getMarkInfo(i);const n=(l=(r=core.getDamageInfo(i))==null?void 0:r.damage)!=null?l:-1;if(n===-1)return;const s=enemyDamageInfo[i],a=core.material.enemys[i].name;n<=0?e||tip$1("success",`${a}\u5DF2\u7ECF\u96F6\u4F24\u4E86\uFF01`):n(core.isPlaying()&&(flags.mouseLoc=[e,t]),!1),150),{checkMarkedEnemy,checkStatus:checkMarkedStatus,markEnemy:markEnemy$1,hasMarkedEnemy,unmarkEnemy,showMarkedEnemy}}const _withScopeId$7=e=>(pushScopeId("data-v-90e08ea9"),e=e(),popScopeId(),e),_hoisted_1$g={id:"enemy-target"},_hoisted_2$e={id:"enemy-desc"},_hoisted_3$e=_withScopeId$7(()=>createBaseVNode("span",null,"\u602A\u7269\u63CF\u8FF0",-1)),_hoisted_4$b={id:"mark-target"},_hoisted_5$a=["onClick"],_sfc_main$g=defineComponent({__name:"enemyTarget",setup(e){const t=core.plugin.bookDetailEnemy,i=ref(hasMarkedEnemy(t.id));function n(){i.value&&unmarkEnemy(t.id),i.value||markEnemy$1(t.id),i.value=!i.value}return(s,a)=>{const r=__unplugin_components_1;return openBlock(),createElementBlock("div",_hoisted_1$g,[createBaseVNode("div",_hoisted_2$e,[_hoisted_3$e,createVNode(Scroll,{id:"enemy-desc-scroll"},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(unref(t).description),1)]),_:1})]),createVNode(r,{dashed:"",style:{"border-color":"#ddd4"}}),createBaseVNode("div",null,[createBaseVNode("div",_hoisted_4$b,[createBaseVNode("span",{id:"mark-info",style:normalizeStyle({color:i.value?"lightgreen":"lightcoral"})},toDisplayString(i.value?"\u5DF2\u6807\u8BB0\u8BE5\u602A\u7269":"\u672A\u6807\u8BB0\u8BE5\u602A\u7269"),5),createBaseVNode("span",{class:"button-text",onClick:withModifiers(n,["stop"])},toDisplayString(i.value?"\u53D6\u6D88\u6807\u8BB0\u8BE5\u602A\u7269":"\u6807\u8BB0\u8BE5\u602A\u7269\u4E3A\u76EE\u6807"),9,_hoisted_5$a)])])])}}}),enemyTarget_vue_vue_type_style_index_0_scoped_90e08ea9_lang="",EnemyTarget=_export_sfc(_sfc_main$g,[["__scopeId","data-v-90e08ea9"]]),_withScopeId$6=e=>(pushScopeId("data-v-9c1bd474"),e=e(),popScopeId(),e),_hoisted_1$f={id:"detail"},_hoisted_2$d={id:"detail-more"},_hoisted_3$d={key:0,id:"special-more",class:"detial-more"},_hoisted_4$a={key:1,id:"special-more",class:"detial-more"},_hoisted_5$9={key:2,id:"special-more",class:"detial-more"},_hoisted_6$9=_withScopeId$6(()=>createBaseVNode("span",null,null,-1)),_sfc_main$f=defineComponent({__name:"bookDetail",emits:["close"],setup(e,{emit:t}){const i=core.plugin.bookDetailEnemy,n=ref(core.plugin.bookDetailPos),s=ref("special");let a;function r(d,u){d.stopPropagation(),s.value=u}function l(){n.value=core.plugin.bookDetailPos,a.style.opacity="0",t("close")}function c(d){keycode(d.keyCode)===KeyCode.Enter&&l()}return onMounted(async()=>{n.value=0,a=document.getElementById("detail"),a.style.opacity="1";const d=getComputedStyle(a);let u=!1,h=[0,0];await S(600),useDrag(a,(f,g)=>{(f-h[0])**2+(g-h[1])**2>=100&&(u=!0)},(f,g)=>{h=[f,g],g>parseFloat(d.height)*4/5&&(u=!0)},()=>{u===!1&&s.value!=="critical"&&l(),u=!1}),document.addEventListener("keyup",c)}),onUnmounted(()=>{document.removeEventListener("keyup",c)}),(d,u)=>{const h=__unplugin_components_1;return openBlock(),createElementBlock("div",_hoisted_1$f,[createBaseVNode("div",{id:"info",style:normalizeStyle({top:`${n.value}px`})},[createVNode(EnemyOne,{enemy:unref(i)},null,8,["enemy"]),createVNode(h,{dashed:"",style:{margin:"2vh 0 2vh 0","border-color":"#ddd4",width:"100%"}})],4),createVNode(Transition,{name:"detail"},{default:withCtx(()=>[s.value==="special"?(openBlock(),createBlock(EnemySpecial,{key:0})):s.value==="critical"?(openBlock(),createBlock(EnemyCritical,{key:1})):s.value==="target"?(openBlock(),createBlock(EnemyTarget,{key:2})):createCommentVNode("",!0)]),_:1}),createBaseVNode("div",_hoisted_2$d,[createVNode(Transition,{name:"detail"},{default:withCtx(()=>[s.value==="special"?(openBlock(),createElementBlock("div",_hoisted_3$d,[createBaseVNode("span",{id:"enemy-target",class:"button-text more",onClick:u[0]||(u[0]=f=>r(f,"target"))},[createVNode(unref(LeftOutlined)),createTextVNode(" \u602A\u7269\u66F4\u591A\u4FE1\u606F")]),createBaseVNode("span",{id:"critical-more",class:"button-text more",onClick:u[1]||(u[1]=f=>r(f,"critical"))},[createTextVNode("\u8BE6\u7EC6\u4E34\u754C\u4FE1\u606F "),createVNode(unref(RightOutlined))])])):s.value==="critical"?(openBlock(),createElementBlock("div",_hoisted_4$a,[createBaseVNode("span",{id:"enemy-pos",class:"button-text more",onClick:u[2]||(u[2]=f=>r(f,"special"))},[createVNode(unref(LeftOutlined)),createTextVNode(" \u602A\u7269\u7279\u6B8A\u5C5E\u6027")])])):s.value==="target"?(openBlock(),createElementBlock("div",_hoisted_5$9,[_hoisted_6$9,createBaseVNode("span",{id:"enemy-pos",class:"button-text more",onClick:u[3]||(u[3]=f=>r(f,"special"))},[createTextVNode("\u602A\u7269\u7279\u6B8A\u5C5E\u6027 "),createVNode(unref(RightOutlined))])])):createCommentVNode("",!0)]),_:1})])])}}}),bookDetail_vue_vue_type_style_index_0_scoped_9c1bd474_lang="",BookDetail=_export_sfc(_sfc_main$f,[["__scopeId","data-v-9c1bd474"]]),_withScopeId$5=e=>(pushScopeId("data-v-e7143bcf"),e=e(),popScopeId(),e),_hoisted_1$e={id:"book"},_hoisted_2$c={id:"tools"},_hoisted_3$c={key:0,id:"none"},_hoisted_4$9=_withScopeId$5(()=>createBaseVNode("div",null,"\u672C\u5C42\u65E0\u602A\u7269",-1)),_hoisted_5$8=[_hoisted_4$9],_hoisted_6$8={class:"enemy"},_sfc_main$e=defineComponent({__name:"book",setup(e){var w,_,D;const t=(D=core.floorIds[(_=(w=core.status.event)==null?void 0:w.ui)==null?void 0:_.index])!=null?D:core.status.floorId;t!==core.status.floorId&&core.status.checkBlock&&(core.status.checkBlock.cache={});const i=core.getCurrentEnemys(t),n=ref(0),s=ref(!1),a=ref(!1),r=ref(0);i.forEach(B=>{const P=B.specialText.length;B.toShowSpecial=lodash.exports.cloneDeep(B.specialText),B.toShowColor=lodash.exports.cloneDeep(B.specialColor),P>=3&&(B.toShowSpecial=B.specialText.slice(0,2).concat(["..."]),B.toShowColor=B.specialColor.slice(0,2).concat(["#fff"])),B.toShowColor=B.toShowColor.map(N=>typeof N=="string"?N:core.arrayToRGBA(N)),B.damageColor=getDamageColor(B.damage)});function l(B,P){if(s.value)return;const N=window.innerHeight,L=P*N*.2-n.value;core.plugin.bookDetailEnemy=B,core.plugin.bookDetailPos=L,a.value=!0,c()}async function c(){const B=document.getElementById("book");B.style.opacity="0",await S(600),B.style.display="none"}async function d(){u(),await S(600),a.value=!1}async function u(){const B=document.getElementById("book");B.style.display="flex",await S(50),B.style.opacity="1"}async function h(){noClosePanel.value=!0,core.plugin.bookOpened.value=!1,core.plugin.transition.value?await S(650):await S(100),!core.events.recoverEvents(core.status.event.interval)&&(has(core.status.event.ui)?(core.status.boxAnimateObjs=[],core.ui._drawViewMaps(core.status.event.ui)):core.ui.closePanel())}function f(){const B=window.innerHeight,P=r.value*B*.2-n.value;P<0&&(n.value+=P-20),P>B*.655&&(n.value+=P-B*.655+20)}function g(B){const P=keycode(B.keyCode);(P===KeyCode.KeyX||P===KeyCode.Escape)&&h(),P===KeyCode.Enter&&!a.value&&l(i[r.value],r.value)}function m(B){const P=keycode(B.keyCode);a.value||(P===KeyCode.DownArrow&&(r.value0&&r.value--,f()),(P===KeyCode.LeftArrow||P===KeyCode.PageUp)&&(r.value<=4?r.value=0:r.value-=5,f()),(P===KeyCode.RightArrow||P===KeyCode.PageDown)&&(r.value>=i.length-5?r.value=i.length-1:r.value+=5,f()))}return onMounted(async()=>{core.plugin.transition.value?await S(600):await S(50),document.addEventListener("keyup",g),document.addEventListener("keydown",m)}),onUnmounted(async()=>{document.removeEventListener("keyup",g),document.removeEventListener("keydown",m)}),(B,P)=>{const N=__unplugin_components_1;return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$e,[createBaseVNode("div",_hoisted_2$c,[createBaseVNode("span",{id:"back",class:"button-text tools",onClick:h},[createVNode(unref(LeftOutlined)),createTextVNode("\u8FD4\u56DE\u6E38\u620F")])]),unref(i).length===0?(openBlock(),createElementBlock("div",_hoisted_3$c,_hoisted_5$8)):(openBlock(),createBlock(Scroll,{key:1,style:{width:"100%",height:"94%","font-family":"normal"},now:n.value,"onUpdate:now":P[0]||(P[0]=L=>n.value=L),drag:s.value,"onUpdate:drag":P[1]||(P[1]=L=>s.value=L)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(i),(L,U)=>(openBlock(),createElementBlock("div",_hoisted_6$8,[(openBlock(),createBlock(EnemyOne,{selected:U===r.value,enemy:L,key:U,onSelect:H=>l(L,U),onHover:H=>r.value=U},null,8,["selected","enemy","onSelect","onHover"])),createVNode(N,{dashed:"",style:{width:"100%","border-color":"#ddd4"}})]))),256))]),_:1},8,["now","drag"]))]),a.value?(openBlock(),createBlock(BookDetail,{key:0,onClose:P[2]||(P[2]=L=>d())})):createCommentVNode("",!0)],64)}}}),book_vue_vue_type_style_index_0_scoped_e7143bcf_lang="",Book=_export_sfc(_sfc_main$e,[["__scopeId","data-v-e7143bcf"]]),clsMap={tools:"\u6D88\u8017\u9053\u5177",constants:"\u6C38\u4E45\u9053\u5177",all:"\u5168\u90E8\u9053\u5177"};function getClsName(e){return clsMap[e]}function getItems(e){const t=core.status.hero.items,i=["book"];if(e==="all")return{tools:Object.entries(t.tools).filter(a=>!i.includes(a[0])),constants:Object.entries(t.constants).filter(a=>!i.includes(a[0]))};const n=t[e];return Object.entries(n)}const _withScopeId$4=e=>(pushScopeId("data-v-88c6bbe5"),e=e(),popScopeId(),e),_hoisted_1$d={id:"toolbox"},_hoisted_2$b={id:"tools"},_hoisted_3$b={id:"toolbox-main"},_hoisted_4$8={class:"item-main"},_hoisted_5$7={class:"item-info"},_hoisted_6$7={key:0,class:"item-type"},_hoisted_7$6={key:1,id:"item-type-mobile"},_hoisted_8$5=["selected"],_hoisted_9$5=["selected"],_hoisted_10$5=["selected","onClick"],_hoisted_11$5={class:"item-icon"},_hoisted_12$4={class:"item-name"},_hoisted_13$4={id:"detail"},_hoisted_14$4={id:"info"},_hoisted_15$3={id:"basic-info"},_hoisted_16$3={style:{"border-bottom":"1px solid #ddd4"}},_hoisted_17$2=_withScopeId$4(()=>createBaseVNode("span",{style:{"margin-top":"2vh"}},"\u70B9\u51FB\u8BE5\u7269\u54C1\u4EE5\u4F7F\u7528",-1)),_hoisted_18$2={id:"desc"},_hoisted_19$2=_withScopeId$4(()=>createBaseVNode("span",null,"\u9053\u5177\u63CF\u8FF0",-1)),_hoisted_20$2={key:0},_hoisted_21$2=["innerHTML"],_sfc_main$d=defineComponent({__name:"toolbox",setup(e){var m,w;const t=ref("tools"),i=getItems("all"),n=computed(()=>isMobile?[t.value]:["tools","constants"]),s=core.material.items,a=ref((w=(m=i[n.value[0]][0])==null?void 0:m[0])!=null?w:"none"),r=ref(0);watch(r,_=>{c(i[t.value][_][0],!0)}),watch(t,_=>{if(!has(i[_][r.value])){a.value="none";return}c(i[_][r.value][0],!0)});const l=computed(()=>{const _=a.value;return _==="none"?ref("\u6CA1\u6709\u9009\u62E9\u9053\u5177"):type(s[_].text,25,C("sin","out"),!0)});async function c(_,D=!1){a.value===_&&!D&&u(_),r.value=i[t.value].findIndex(B=>B[0]===_),a.value=_}function d(){core.plugin.toolOpened.value=!1}async function u(_){if(_!=="none")if(core.canUseItem(_)){const D=core.plugin.transition.value;core.plugin.transition.value=!1,d(),await S(50),core.useItem(_),core.plugin.transition.value=D}else message.warn({content:"\u5F53\u524D\u65E0\u6CD5\u4F7F\u7528\u8BE5\u9053\u5177\uFF01",class:"antdv-message"})}async function h(){const _=core.plugin.transition.value;core.plugin.transition.value=!1,d(),await S(50),core.plugin.equipOpened.value=!0,core.plugin.transition.value=_}function f(_){const D=keycode(_.keyCode);(D===KeyCode.Escape||D===KeyCode.KeyX||D===KeyCode.KeyT)&&d(),(D===KeyCode.Enter||D===KeyCode.KeyC)&&u(a.value)}function g(_){const D=keycode(_.keyCode),B=i[t.value].length;if(D===KeyCode.DownArrow&&r.value0&&r.value--,D===KeyCode.RightArrow){const P=i.constants.length;t.value==="tools"&&(r.value>=P&&(r.value=P-1),t.value="constants")}if(D===KeyCode.LeftArrow){const P=i.tools.length;t.value==="constants"&&(r.value>=P&&(r.value=P-1),t.value="tools")}}return onMounted(async()=>{core.plugin.transition.value?await S(600):await S(50),document.addEventListener("keyup",f),document.addEventListener("keydown",g)}),onUnmounted(()=>{document.removeEventListener("keyup",f),document.removeEventListener("keydown",g)}),(_,D)=>{var P;const B=__unplugin_components_1;return openBlock(),createElementBlock("div",_hoisted_1$d,[createBaseVNode("div",_hoisted_2$b,[createBaseVNode("span",{class:"button-text tools",onClick:d},[createVNode(unref(LeftOutlined)),createTextVNode(" \u8FD4\u56DE\u6E38\u620F")]),createBaseVNode("span",{class:"button-text tools",onClick:h},[createTextVNode("\u88C5\u5907\u680F "),createVNode(unref(RightOutlined))])]),createBaseVNode("div",_hoisted_3$b,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(n),N=>(openBlock(),createElementBlock("div",_hoisted_4$8,[createBaseVNode("div",_hoisted_5$7,[unref(isMobile)?(openBlock(),createElementBlock("div",_hoisted_7$6,[createBaseVNode("span",{class:"button-text",onClick:D[0]||(D[0]=L=>t.value="tools"),selected:t.value==="tools"},"\u6D88\u8017\u9053\u5177",8,_hoisted_8$5),createVNode(B,{dashed:"",style:{"border-color":"#ddd4",height:"100%"},type:"vertical"}),createBaseVNode("span",{class:"button-text",onClick:D[1]||(D[1]=L=>t.value="constants"),selected:t.value==="constants"},"\u6C38\u4E45\u9053\u5177",8,_hoisted_9$5)])):(openBlock(),createElementBlock("div",_hoisted_6$7,toDisplayString(unref(getClsName)(N)),1)),createVNode(B,{dashed:"",style:{margin:"1vh 0 1vh 0","border-color":"#ddd4"}}),createVNode(Scroll,{class:"item-list"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(i)[N],([L,U])=>(openBlock(),createElementBlock("div",{class:"item selectable",selected:a.value===L,onClick:H=>{t.value=N,c(L)}},[createBaseVNode("div",_hoisted_11$5,[createVNode(_sfc_main$l,{id:L,width:32,height:32,noborder:!0},null,8,["id"]),createBaseVNode("span",_hoisted_12$4,toDisplayString(unref(s)[L].name),1)]),createBaseVNode("span",null,"\xD7\xA0"+toDisplayString(U),1)],8,_hoisted_10$5))),256))]),_:2},1024)]),createVNode(B,{dashed:"",type:unref(isMobile)?"horizontal":"vertical",class:"divider",style:{"border-color":"#ddd4",margin:"1%"}},null,8,["type"])]))),256)),createBaseVNode("div",_hoisted_13$4,[createBaseVNode("div",_hoisted_14$4,[createVNode(_sfc_main$l,{id:a.value,width:32,height:32},null,8,["id"]),createBaseVNode("div",_hoisted_15$3,[createBaseVNode("span",_hoisted_16$3,toDisplayString(a.value==="none"?"\u6CA1\u6709\u9053\u5177":unref(s)[a.value].name),1),createBaseVNode("span",null,toDisplayString(a.value==="none"?"\u6C38\u4E45\u9053\u5177":(P=unref(getClsName)(unref(s)[a.value].cls))!=null?P:"\u6C38\u4E45\u9053\u5177"),1)])]),_hoisted_17$2,createVNode(B,{dashed:"",style:{"border-color":"#ddd4"}}),createBaseVNode("div",_hoisted_18$2,[_hoisted_19$2,createVNode(Scroll,{id:"desc-text"},{default:withCtx(()=>[unref(l).value.startsWith("!!html")?(openBlock(),createElementBlock("div",{key:1,innerHTML:unref(l).value.slice(6)},null,8,_hoisted_21$2)):(openBlock(),createElementBlock("div",_hoisted_20$2,toDisplayString(unref(l).value),1))]),_:1})])])])])}}}),toolbox_vue_vue_type_style_index_0_scoped_88c6bbe5_lang="",Toolbox=_export_sfc(_sfc_main$d,[["__scopeId","data-v-88c6bbe5"]]),index$2="",index$1="";function getEquips(){return Object.entries(core.status.hero.items.equips)}function getAddStatus(e){const t=Object.assign({},e.value,e.percentage),i=Object.keys(t);return createVNode("div",{class:"equip-add-detail"},[i.map(n=>{var a,r;const s=((a=e.value[n])!=null?a:0)+core.status.hero[n]*((r=e.percentage[n])!=null?r:0);return createVNode("span",{style:"display: flex"},[createVNode("span",{style:"flex-basis: 50%"},[core.getStatusLabel(n)]),createTextVNode("\xA0\xA0\xA0\xA0"),createVNode("span",{style:{color:s>0?"lightgreen":"lightsalmon"}},[s>0?`+${s}`:s])])})])}function getNowStatus(e,t=!1){return createVNode("div",{id:"hero-status"},[["hp","lv","atk","def","mdef","mana","hpmax","money"].map(n=>{var r,l,c;let s;n==="lv"?s=(r=core.getLvName())!=null?r:"":s=(l=core.getRealStatus(n))==null?void 0:l.toString();let a=0;if(has(e)){a+=(c=e.value[n])!=null?c:0;const d=e.percentage[n]*core.getStatus(n);a+=isNaN(d)?0:d}return t&&(a=-a),createVNode("div",{class:"hero-status-one"},[createVNode("span",{class:"hero-status-label"},[core.getStatusLabel(n)]),createVNode("div",{class:"hero-status-value"},[createVNode("span",{style:"margin-right: 20%"},[s]),a!==0&&createVNode("span",{style:{color:a>0?"lightgreen":"lightsalmon"}},[a>0?"+"+a:"-"+-a])])])})])}const _hoisted_1$c={id:"equipbox"},_hoisted_2$a={id:"tools"},_hoisted_3$a={id:"equipbox-main"},_hoisted_4$7={id:"equip-list"},_hoisted_5$6={id:"filter"},_hoisted_6$6={key:0},_hoisted_7$5={key:1},_hoisted_8$4=["selected","onMousedown","onTouchstart","onClick"],_hoisted_9$4={class:"equip-icon"},_hoisted_10$4={class:"equip-name"},_hoisted_11$4={id:"equip-status"},_hoisted_12$3={id:"equip-status-main"},_hoisted_13$3={id:"equip-now"},_hoisted_14$3={id:"equip-now-div"},_hoisted_15$2=["draged","access","selected","onMouseenter","onClick"],_hoisted_16$2={key:0,id:"equip-hero"},_hoisted_17$1={id:"hero-icon"},_hoisted_18$1={id:"hero-status"},_hoisted_19$1={id:"equip-desc"},_hoisted_20$1={id:"equip-icon"},_hoisted_21$1={id:"equip-type"},_hoisted_22$1={id:"equip-add"},_hoisted_23$1={id:"equip-desc-text"},_hoisted_24$1={key:0},_hoisted_25$1=["innerHTML"],_hoisted_26$1={id:"icon-drag"},_sfc_main$c=defineComponent({__name:"equipbox",setup(e){const t=ref(getEquips()),i=ref("all"),n=core.material.items,s=ref(0),a=ref(!1),r=core.status.globalAttribute.equipName,l=ref(core.status.hero.equipment),c=ref(!1),d=ref(!1),u=ref(-1),h=ref("down"),f=ref("none"),g=ref("value"),m=["none","atk","def","hpmax","mana"],w=core.getStatusLabel;watch(h,it=>{s.value=N.value.length-s.value-1}),watch(f,it=>{s.value=0}),watch(g,it=>{s.value=0});const _=computed(()=>{const it=N.value[s.value],tt={name:"\u6CA1\u6709\u9009\u62E9\u88C5\u5907",cls:"equip",text:"\u6CA1\u6709\u9009\u62E9\u88C5\u5907",equip:{type:"\u65E0",value:{},percentage:{},animate:""}};if(a.value){const lt=l.value[s.value],ut=core.material.items[lt];return has(ut)?ut:tt}return has(it)?n[it[0]]:tt}),D=computed(()=>getAddStatus(_.value.equip,a.value)),B=computed(()=>_.value.text.startsWith("!!html")?ref(_.value.text):type(_.value.text,25,C("sin","out"),!0)),P=computed(()=>getNowStatus(_.value.equip,a.value)),N=computed(()=>{const it=h.value,tt=f.value,lt=g.value,ut=t.value.filter(at=>{const pt=n[at[0]].equip,gt=pt.type;return tt!=="none"&&!has(pt[lt][tt])?!1:i.value==="all"?!0:typeof gt=="string"?gt===i.value:core.status.globalAttribute.equipName[gt]===i.value});return tt==="none"?ut:it==="down"?ut.sort((at,pt)=>{const gt=n[at[0]].equip,bt=n[pt[0]].equip;return gt[lt][tt]-bt[lt][tt]}):ut.sort((at,pt)=>{const gt=n[at[0]].equip;return n[pt[0]].equip[lt][tt]-gt[lt][tt]})});function L(){h.value==="down"?h.value="up":h.value="down"}function U(){core.plugin.equipOpened.value=!1}function H(it){var tt;if(it===s.value&&c.value){const lt=(tt=N.value[s.value])==null?void 0:tt[0];if(!core.canEquip(lt)){tip$1("warn","\u65E0\u6CD5\u88C5\u5907\uFF01");return}core.loadEquip(lt),Y(),c.value=!1}c.value=!0}function W(it,tt=!1){it!==s.value&&!tt&&(c.value=!1),tt&&(c.value=!1),tt&&a.value===tt&&s.value===it&&(core.unloadEquip(it),Y()),a.value=tt,s.value=it}function K(it){var lt,ut;if(it<0)return!1;const tt=(lt=_.value.equip)==null?void 0:lt.type;return!core.canEquip((ut=N.value[s.value])==null?void 0:ut[0])||!has(tt)?!1:typeof tt=="number"?it===tt:r[it]===tt}function G(){var ut;const it=u.value;if(it<0)return;if(!K(it)){tip$1("warn","\u65E0\u6CD5\u88C5\u5907\uFF01");return}const tt=l.value[it],lt=(ut=N.value[s.value])==null?void 0:ut[0];core.items._realLoadEquip(it,lt,tt),Y()}function Y(){l.value=core.status.hero.equipment,t.value=getEquips()}function J(){const it=Array.from(document.querySelectorAll(".equip"));useDrag(it,st,(tt,lt)=>{ot=tt,ht=lt},()=>{d.value&&(d.value=!1,G())},!0)}let[ot,ht]=[0,0];function st(it,tt,lt){if((it-ot)**2+(tt-ht)**2>10**2&&!d.value&&(d.value=!0),d.value){const ut=document.getElementById("icon-drag");ut.style.left=`${it-24}px`,ut.style.top=`${tt-24}px`}}function ct(it,tt){it.stopPropagation(),u.value=tt}function dt(it){it.stopPropagation(),u.value=-1}async function mt(){const it=core.plugin.transition.value;core.plugin.transition.value=!1,U(),await S(50),core.plugin.toolOpened.value=!0,core.plugin.transition.value=it}function ft(it){const tt=keycode(it.keyCode);(tt===KeyCode.KeyQ||tt===KeyCode.KeyX||tt===KeyCode.Escape)&&U()}return watch(N,it=>{J()}),onMounted(async()=>{J(),core.plugin.transition.value?await S(600):await S(50),document.addEventListener("keyup",ft)}),onUnmounted(()=>{cancelGlobalDrag(st),document.removeEventListener("keyup",ft)}),(it,tt)=>{var pt,gt,bt,vt,wt,Bt;const lt=SelectOption,ut=__unplugin_components_1$1,at=__unplugin_components_1;return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$c,[createBaseVNode("div",_hoisted_2$a,[createBaseVNode("span",{class:"button-text tools",onClick:U},[createVNode(unref(LeftOutlined)),createTextVNode(" \u8FD4\u56DE\u6E38\u620F")]),createBaseVNode("span",{class:"button-text tools",onClick:mt},[createTextVNode("\u9053\u5177\u680F "),createVNode(unref(RightOutlined))])]),createBaseVNode("div",_hoisted_3$a,[createBaseVNode("div",_hoisted_4$7,[createBaseVNode("div",_hoisted_5$6,[createVNode(ut,{value:f.value,"onUpdate:value":tt[0]||(tt[0]=_t=>f.value=_t),class:"select"},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(m,_t=>createVNode(lt,{value:_t},{default:withCtx(()=>[createTextVNode(toDisplayString(_t==="none"?"\u6240\u6709":unref(w)(_t)),1)]),_:2},1032,["value"])),64))]),_:1},8,["value"]),createVNode(at,{type:"vertical",class:"divider"}),createVNode(ut,{value:g.value,"onUpdate:value":tt[1]||(tt[1]=_t=>g.value=_t),class:"select"},{default:withCtx(()=>[createVNode(lt,{value:"value"},{default:withCtx(()=>[createTextVNode("\u6570\u503C")]),_:1}),createVNode(lt,{value:"percentage"},{default:withCtx(()=>[createTextVNode("\u767E\u5206\u6BD4")]),_:1})]),_:1},8,["value"]),createVNode(at,{type:"vertical",class:"divider"}),createBaseVNode("span",{onClick:tt[2]||(tt[2]=_t=>L()),class:"button-text",id:"sort-type"},[h.value==="down"?(openBlock(),createElementBlock("span",_hoisted_6$6,[createVNode(unref(SortAscendingOutlined))])):(openBlock(),createElementBlock("span",_hoisted_7$5,[createVNode(unref(SortDescendingOutlined))]))])]),createVNode(at,{dashed:"",style:{"border-color":"#ddd4",margin:"1vh 0 1vh 0"}}),createVNode(Scroll,{id:"equip-scroll"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(N),([_t,kt],yt)=>(openBlock(),createElementBlock("div",{class:"equip selectable",selected:s.value===yt&&!a.value,onMousedown:At=>W(yt),onTouchstart:At=>W(yt),onClick:At=>H(yt)},[createBaseVNode("div",_hoisted_9$4,[createVNode(_sfc_main$l,{id:_t!=null?_t:"none",width:32,height:32,noborder:!0},null,8,["id"]),createBaseVNode("span",_hoisted_10$4,toDisplayString(unref(n)[_t].name),1)]),createBaseVNode("span",null,"\xD7\xA0"+toDisplayString(kt),1)],40,_hoisted_8$4))),256))]),_:1})]),createBaseVNode("div",_hoisted_11$4,[createVNode(at,{class:"divider",type:unref(isMobile)?"horizontal":"vertical",dashed:"",style:{"border-color":"#ddd4"}},null,8,["type"]),createBaseVNode("div",_hoisted_12$3,[createBaseVNode("div",_hoisted_13$3,[createVNode(Scroll,{style:normalizeStyle({height:unref(isMobile)?"10vh":"30vh"})},{default:withCtx(()=>[createBaseVNode("div",_hoisted_14$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(r),(_t,kt)=>{var yt;return openBlock(),createElementBlock("div",{class:"equip-now-one draginable selectable",draged:d.value,access:K(kt),selected:a.value&&s.value===kt,onMouseenter:At=>ct(At,kt),onMouseleave:dt,onClick:At=>W(kt,!0)},[createVNode(_sfc_main$l,{id:(yt=l.value[kt])!=null?yt:"none"},null,8,["id"]),createBaseVNode("span",null,toDisplayString(_t),1)],40,_hoisted_15$2)}),256))])]),_:1},8,["style"])]),createVNode(at,{dashed:"",style:{"border-color":"#ddd4",margin:"1vh 0 1vh 0"}}),unref(isMobile)?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_16$2,[createBaseVNode("div",_hoisted_17$1,[createVNode(_sfc_main$l,{id:"hero",width:48,height:64,noborder:""})]),createBaseVNode("div",_hoisted_18$1,[(openBlock(),createBlock(resolveDynamicComponent(unref(P))))])]))]),unref(isMobile)?createCommentVNode("",!0):(openBlock(),createBlock(at,{key:0,class:"divider",type:"vertical",dashed:"",style:{"border-color":"#ddd4"}}))]),createBaseVNode("div",_hoisted_19$1,[createBaseVNode("div",_hoisted_20$1,[createVNode(_sfc_main$l,{id:a.value?(pt=l.value[s.value])!=null?pt:"none":(bt=(gt=unref(N)[s.value])==null?void 0:gt[0])!=null?bt:"none"},null,8,["id"]),createBaseVNode("span",null,toDisplayString(unref(_).name),1)]),createBaseVNode("div",_hoisted_21$1,[createBaseVNode("span",null,"\u88C5\u5907\u5B54\uFF1A"+toDisplayString((vt=unref(_).equip)==null?void 0:vt.type),1)]),createVNode(at,{dashed:"",style:{"border-color":"#ddd4",margin:"1vh 0 1vh 0"}}),createBaseVNode("div",_hoisted_22$1,[createBaseVNode("span",{style:normalizeStyle({"font-size":unref(isMobile)?"3.8vw":"3vh"}),id:"title"},"\u589E\u51CF\u5C5E\u6027",4),createVNode(Scroll,{style:{width:"100%",height:"100%"}},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(D))))]),_:1})]),createVNode(at,{dashed:"",style:{"border-color":"#ddd4",margin:"1vh 0 1vh 0"}}),createBaseVNode("div",_hoisted_23$1,[createBaseVNode("span",{style:normalizeStyle({"font-size":unref(isMobile)?"3.8vw":"3vh"}),id:"title"},"\u88C5\u5907\u4ECB\u7ECD",4),createVNode(Scroll,{id:"desc-text",style:{height:"100%",width:"100%"}},{default:withCtx(()=>[unref(B).value.startsWith("!!html")?(openBlock(),createElementBlock("div",{key:1,innerHTML:unref(B).value.slice(6)},null,8,_hoisted_25$1)):(openBlock(),createElementBlock("div",_hoisted_24$1,toDisplayString(unref(B).value),1))]),_:1})])])])]),createBaseVNode("div",_hoisted_26$1,[d.value?(openBlock(),createBlock(_sfc_main$l,{key:0,class:"drag-icon",id:(Bt=(wt=unref(N)[s.value])==null?void 0:wt[0])!=null?Bt:"none",width:48,height:48,noborder:""},null,8,["id"])):createCommentVNode("",!0)])],64)}}}),equipbox_vue_vue_type_style_index_0_scoped_4fac9519_lang="",Equipbox=_export_sfc(_sfc_main$c,[["__scopeId","data-v-4fac9519"]]),transition$2=ref(!1),itemDetail$1=ref(!0),autoSkill$1=ref(!0),autoScale$1=ref(!0);watch(transition$2,e=>{core.plugin.transition.value=e,core.setLocalStorage("transition",e)});watch(itemDetail$1,e=>{flags.itemDetail=e,core.updateStatusBar()});watch(autoSkill$1,e=>{flags.autoSkill=e,core.updateStatusBar(),core.status.route.push(`set:autoSkill:${e}`)});watch(autoScale$1,e=>{core.setLocalStorage("autoScale",e)});function reset(){const e=core.getLocalStorage("transition",!1);transition$2.value=e,core.plugin.transition.value=transition$2.value,autoScale$1.value=core.getLocalStorage("autoScale",!0)}function resetFlag(){var e,t;(e=flags.autoSkill)!=null||(flags.autoSkill=!0),(t=flags.itemDetail)!=null||(flags.itemDetail=!0),itemDetail$1.value=!!flags.itemDetail,autoSkill$1.value=!!flags.autoSkill}function init$5(){return{resetSettings:reset,resetFlagSettings:resetFlag}}const transition$1={text:"\u754C\u9762\u52A8\u753B",desc:["\u662F\u5426\u5C55\u793A\u5F53\u4E00\u4E2Aui\u754C\u9762\uFF0C\u5982\u602A\u7269\u624B\u518C\u7B49\u7684\u6253\u5F00\u4E0E\u5173\u95ED\u65F6\u7684\u52A8\u753B\u3002\u5F53\u6B64\u9879\u5F00\u542F\u65F6\uFF0C","\u6240\u6709\u754C\u9762\u88AB\u6253\u5F00\u6216\u5173\u95ED\u65F6\u90FD\u4F1A\u5C55\u793A\u52A8\u753B\uFF0C\u5426\u5219\u4F1A\u76F4\u63A5\u5C55\u793A\u51FA\u6765"]},itemDetail={text:"\u5B9D\u77F3\u8840\u74F6\u663E\u4F24",desc:["\u662F\u5426\u5728\u5730\u56FE\u4E0A\u663E\u793A\u5B9D\u77F3\u8840\u74F6\u88C5\u5907\u7B49\u589E\u52A0\u7684\u5C5E\u6027\u503C"]},autoSkill={text:"\u81EA\u52A8\u5207\u6362\u6280\u80FD",desc:["\u5F00\u542F\u540E\uFF0C\u6253\u602A\u7269\u7684\u65F6\u5019\u4F1A\u81EA\u52A8\u9009\u62E9\u4F24\u5BB3\u6700\u4F4E\u7684\u6280\u80FD\u3002\u540C\u65F6\u663E\u4F24\u4E5F\u4F1A\u663E\u793A\u6B64\u72B6\u6001\u4E0B\u7684\u4F24\u5BB3\uFF0C","\u4E34\u754C\u4E5F\u4F1A\u8003\u8651\u6280\u80FD\u5728\u5185"]},autoScale={text:"\u81EA\u52A8\u653E\u7F29",desc:["\u5F00\u542F\u540E\uFF0C\u6BCF\u6B21\u8FDB\u5165\u6E38\u620F\u65F6\u4F1A\u81EA\u52A8\u7F29\u653E\u6E38\u620F\u753B\u9762\u81F3\u5408\u9002\u503C\u3002\u8BE5\u9879\u53EA\u5BF9\u7535\u8111\u7AEF\u6709\u6548\u3002","
","
","\u7F29\u653E\u539F\u5219\u5982\u4E0B\uFF1A","
","1. \u9996\u5148\u5C1D\u8BD5\u7F29\u653E\u81F3\u6700\u5927\u7F29\u653E\u6BD4\u4F8B","
","2. \u5982\u679C\u7F29\u653E\u540E\u6E38\u620F\u753B\u9762\u9AD8\u5EA6\u9AD8\u4E8E\u9875\u9762\u9AD8\u5EA6\u768495%\uFF0C\u90A3\u4E48\u7F29\u5C0F\u4E00\u4E2A\u7F29\u653E\u6BD4\u4F8B\uFF0C\u5426\u5219\u4FDD\u6301\u6700\u5927\u6BD4\u4F8B"]},settingInfo={transition:transition$1,itemDetail,autoSkill,autoScale},_hoisted_1$b={class:"colomn"},_hoisted_2$9={class:"tools"},_hoisted_3$9=["id"],_sfc_main$b=defineComponent({__name:"colomn",props:{width:null,height:null,left:null,right:null},emits:["close"],setup(e,{emit:t}){const i=e,n=(1e8*Math.random()).toFixed(0);let s,a,r;function l(){s=document.getElementById(`column-${n}`),a=document.getElementById(`column-left-${n}`),r=document.getElementById(`column-right-${n}`),has(i.width)&&!isMobile&&(s.style.width=`${i.width}%`),has(i.height)&&(s.style.height=`${i.height}%`),has(i.left)&&(a.style.flexBasis=`${i.left}%`),has(i.right)&&(r.style.flexBasis=`${i.right}%`)}function c(d){const u=keycode(d.keyCode);(u===KeyCode.Escape||u===KeyCode.KeyX)&&t("close")}return onMounted(async()=>{l(),await S(50),core.plugin.transition.value&&await S(600),document.addEventListener("keyup",c)}),onUpdated(l),onUnmounted(()=>{document.removeEventListener("keyup",c)}),(d,u)=>{const h=__unplugin_components_1;return openBlock(),createElementBlock("div",_hoisted_1$b,[createBaseVNode("div",_hoisted_2$9,[createBaseVNode("span",{class:"button-text",onClick:u[0]||(u[0]=f=>t("close"))},[createVNode(unref(LeftOutlined)),createTextVNode(" \u8FD4\u56DE\u6E38\u620F")])]),createBaseVNode("div",{class:"column-main",id:`column-${unref(n)}`},[createVNode(Scroll,{class:"column-left",id:`column-left-${unref(n)}`},{default:withCtx(()=>[renderSlot(d.$slots,"left",{},void 0,!0)]),_:3},8,["id"]),createVNode(h,{class:"divider",dashed:"",style:{"border-color":"#ddd4"},type:unref(isMobile)?"horizontal":"vertical"},null,8,["type"]),createVNode(Scroll,{class:"column-right",id:`column-right-${unref(n)}`},{default:withCtx(()=>[renderSlot(d.$slots,"right",{},void 0,!0)]),_:3},8,["id"])],8,_hoisted_3$9)])}}}),colomn_vue_vue_type_style_index_0_scoped_682173f1_lang="",Column=_export_sfc(_sfc_main$b,[["__scopeId","data-v-682173f1"]]),_hoisted_1$a={id:"setting-list"},_hoisted_2$8=["selected"],_hoisted_3$8=["selected"],_hoisted_4$6=["selected"],_hoisted_5$5=["selected"],_hoisted_6$5=["innerHTML"],_sfc_main$a=defineComponent({__name:"settings",setup(e){const t=ref("transition"),i=computed(()=>splitText(settingInfo[t.value].desc));function n(){core.plugin.settingsOpened.value=!1}function s(a){if(t.value!==a){t.value=a;return}a==="transition"?transition$2.value=!transition$2.value:a==="itemDetail"?itemDetail$1.value=!itemDetail$1.value:a==="autoSkill"?autoSkill$1.value=!autoSkill$1.value:a==="autoScale"&&(autoScale$1.value=!autoScale$1.value)}return(a,r)=>(openBlock(),createBlock(Column,{width:60,height:60,onClose:n},{left:withCtx(()=>[createBaseVNode("div",_hoisted_1$a,[createBaseVNode("span",{class:"selectable",selected:t.value==="transition",onClick:r[0]||(r[0]=l=>s("transition"))},"\u754C\u9762\u52A8\u753B:\xA0\xA0\xA0"+toDisplayString(unref(transition$2)?"ON":"OFF"),9,_hoisted_2$8),createBaseVNode("span",{class:"selectable",selected:t.value==="itemDetail",onClick:r[1]||(r[1]=l=>s("itemDetail"))},"\u5B9D\u77F3\u8840\u74F6\u663E\u4F24:\xA0\xA0\xA0"+toDisplayString(unref(itemDetail$1)?"ON":"OFF"),9,_hoisted_3$8),createBaseVNode("span",{class:"selectable",selected:t.value==="autoSkill",onClick:r[2]||(r[2]=l=>s("autoSkill"))},"\u81EA\u52A8\u5207\u6362\u6280\u80FD:\xA0\xA0\xA0"+toDisplayString(unref(autoSkill$1)?"ON":"OFF"),9,_hoisted_4$6),createBaseVNode("span",{class:"selectable",selected:t.value==="autoScale",onClick:r[3]||(r[3]=l=>s("autoScale"))},"\u81EA\u52A8\u653E\u7F29:\xA0\xA0\xA0"+toDisplayString(unref(autoScale$1)?"ON":"OFF"),9,_hoisted_5$5)])]),right:withCtx(()=>[createBaseVNode("span",{innerHTML:unref(i)},null,8,_hoisted_6$5)]),_:1}))}}),settings_vue_vue_type_style_index_0_scoped_1a46d8ac_lang="",Settings=_export_sfc(_sfc_main$a,[["__scopeId","data-v-1a46d8ac"]]),tip={text:"\u6CE8\u610F\u4E8B\u9879",condition:"true",desc:["\u8FD9\u91CC\u663E\u793A\u672C\u5854\u4E2D\u9700\u8981\u6CE8\u610F\u7684\u4E8B\u9879\u3002","
","
",'1. ',"\u672C\u767E\u79D1\u5168\u4E66\u5B57\u6570\u5F88\u591A\uFF0C\u53EF\u4EE5\u9009\u62E9\u6027\u5730\u9605\u8BFB\u3002","
","
",'2. \u672C\u5854\u4E2D\u51E0\u4E4E\u6240\u6709 ui \u90FD\u53EF\u4EE5\u7EB5\u5411\u6EDA\u52A8\uFF0C\u5982\u679C\u53D1\u73B0\u663E\u793A\u4E0D\u5168\uFF0C',"\u53EF\u4EE5\u5C1D\u8BD5\u4E0A\u4E0B\u62D6\u52A8\uFF0C\u5C31\u50CF\u6D4F\u89C8\u7F51\u9875\u4E00\u6837\u3002\u7535\u8111\u7AEF\u8FD8\u53EF\u4EE5\u4F7F\u7528\u6EDA\u8F6E\u4E0A\u4E0B\u6EDA\u52A8\u3002","\u5927\u90E8\u5206\u53EF\u4EE5\u7EB5\u5411\u6EDA\u52A8\u7684 ui \u90FD\u4F1A\u5728\u53F3\u65B9\u6709\u4E00\u4E2A\u6EDA\u52A8\u6761\uFF0C\u4E5F\u53EF\u4EE5\u62D6\u52A8\u5B83\u8FDB\u884C\u6EDA\u52A8\uFF0C\u4F8B\u5982\u672C\u767E\u79D1\u5168\u4E66\u7684\u6761\u76EE\u5217\u8868\u548C","\u6761\u76EE\u8BF4\u660E\u90FD\u662F\u53EF\u4EE5\u901A\u8FC7\u4E0A\u8FF0\u65B9\u5F0F\u6EDA\u52A8\u7684\u3002","
","
",'3. \u672C\u767E\u79D1\u5168\u4E66\u7684\u5185\u5BB9\u4F1A\u968F\u7740\u6E38\u620F\u7684\u63A8\u8FDB\u800C\u589E\u52A0\u65B0\u5185\u5BB9\uFF0C',"\u540C\u65F6\u6BCF\u6B21\u589E\u52A0\u65B0\u5185\u5BB9\u65F6\u90FD\u4F1A\u6709\u63D0\u793A\u3002","
","
","4. \u672C\u5854\u4E3B\u8981\u9762\u5411\u7535\u8111\u7AEF\u8BBE\u8BA1\uFF0C",'\u5EFA\u8BAE\u4F7F\u7528\u7535\u8111\u6E38\u73A9\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u6E38\u620F\u4F53\u9A8C\u3002\u4F46\u662F\u624B\u673A\u4F9D\u7136\u53EF\u4EE5\u6E38\u73A9\u672C\u5854\uFF0C',"\u4F46\u90E8\u5206\u64CD\u4F5C\u53EF\u80FD\u4E0D\u662F\u5F88\u65B9\u4FBF\uFF0Cui \u4E5F\u53EF\u80FD\u4E0D\u662F\u5F88\u7F8E\u89C2\uFF0C\u4E0D\u8FC7\u4F9D\u7136\u53EF\u4EE5\u5B8C\u6574\u4F53\u9A8C\u672C\u6E38\u620F\u3002","
","
",'5. \u5BF9\u4E8E\u624B\u673A\u7AEF\uFF0C\u53EF\u4EE5\u70B9\u51FB\u53F3\u4E0B\u89D2\u7684\u96BE\u5EA6\u6587\u5B57\u6765\u5207\u6362\u5DE5\u5177\u680F\u81F3\u6570\u5B57\u952E\u3002',"\u8FD9\u6837\uFF0C\u4F60\u53EF\u4EE5\u66F4\u52A0\u65B9\u4FBF\u5730\u8FDB\u884C\u4F7F\u7528\u6280\u80FD\u7B49\u64CD\u4F5C\u3002","
","
","6. \u672C\u5854\u4E2D\u51E0\u4E4E\u6240\u6709 ui \u5728\u6253\u5F00\u65F6\u90FD\u4F1A\u6709\u4E00\u4E2A0.6s\u7684\u52A8\u753B\uFF0C\u5982\u679C\u4E0D\u60F3\u8981\uFF0C\u53EF\u4EE5\u5728\u5F00\u5934\u6361\u7684\u7CFB\u7EDF\u8BBE\u7F6E\u91CC\u9762\u5173\u95ED\uFF08\u9ED8\u8BA4\u5173\u95ED\uFF09\u3002","\u540C\u65F6\uFF0C\u51E0\u4E4E\u6240\u6709 ui \u7684\u9000\u51FA\u6309\u94AE\u90FD\u5728\u5DE6\u4E0A\u89D2\u3002"]},tutorial={text:"\u65B0\u624B\u6559\u7A0B",condition:"true",desc:["\u672C\u6761\u76EE\u662F\u9B54\u5854\u6E38\u620F\u7684\u65B0\u624B\u6559\u7A0B\uFF0C\u5982\u679C\u5BF9\u9B54\u5854\u6709\u4E00\u5B9A\u7684\u4E86\u89E3\uFF0C\u53EF\u4EE5\u76F4\u63A5\u5FFD\u7565\u3002","
","
",'\u9B54\u5854\u662F\u4E00\u79CD\u56FA\u5B9A\u6570\u503Crpg\u6E38\u620F\uFF0C\u5728\u6253\u602A\u7684\u65F6\u5019\uFF0C\u9075\u5FAA\u6211\u6253\u4F60\u4E00\u4E0B\uFF0C\u4F60\u6253\u6211\u4E00\u4E0B',"\u7684\u539F\u5219\uFF0C\u9020\u6210\u7684\u4F24\u5BB3\u662F\u5DF1\u65B9\u653B\u51FB\u51CF\u53BB\u5BF9\u65B9\u9632\u5FA1\uFF0C\u6700\u540E\u602A\u7269\u7684\u4F24\u5BB3\u4FBF\u662F\u4F60\u5728\u6218\u6597\u4E2D\u5931\u53BB\u7684\u751F\u547D\u503C\u3002\u5F53\u7136\uFF0C\u4E3A\u4E86\u6E38\u620F\u4F53\u9A8C\uFF0C","\u6218\u6597\u8FC7\u7A0B\u4F1A\u88AB\u7701\u7565\u3002","
","
","\u5B9D\u77F3\u53EF\u4EE5\u589E\u52A0\u4F60\u7684\u5C5E\u6027\uFF0C\u5728\u5927\u90E8\u5206\u9B54\u5854\u4E2D\uFF0C\u7EA2\u5B9D\u77F3\u589E\u52A0\u653B\u51FB\uFF0C\u84DD\u5B9D\u77F3\u589E\u52A0\u9632\u5FA1\uFF0C\u672C\u5854\u4E5F\u4E0D\u4F8B\u5916\u3002\u8840\u74F6\u53EF\u4EE5\u589E\u52A0\u4F60\u7684\u751F\u547D\u503C\u3002",'\u4E00\u822C\u60C5\u51B5\u4E0B\uFF0C\u62FE\u53D6\u5B9D\u7269\u7684\u4F18\u5148\u7EA7\u662F\u7EA2\u5B9D\u77F3 > \u84DD\u5B9D\u77F3 > \u8840\u74F6\uFF0C',"\u4F46\u90E8\u5206\u60C5\u51B5\u53EF\u80FD\u4E0D\u662F\u8FD9\u6837\uFF0C\u8FD9\u9700\u8981\u4F60\u81EA\u5DF1\u7684\u6E38\u73A9\u7ECF\u9A8C\u7B49\u3002","
","
","\u672C\u5854\u8FD8\u62E5\u6709\u5347\u7EA7\u673A\u5236\uFF0C\u5347\u7EA7\u65F6\u80FD\u591F\u7ED9\u4F60\u589E\u52A0\u5927\u91CF\u7684\u5C5E\u6027\uFF0C\u56E0\u6B64\uFF0C\u4E00\u822C\u60C5\u51B5\u4E0B\u5F53\u4F60\u63A5\u8FD1\u5347\u7EA7\u65F6\uFF0C\u9700\u8981\u5C3D\u5FEB\u6253\u602A\u5347\u7EA7\u3002","
","
","\u7136\u540E\u662F\u95E8\u3002\u5728\u9B54\u5854\u4E2D\uFF0C\u5F88\u591A\u95E8\u90FD\u4E0D\u662F\u5FC5\u5F00\u7684\u95E8\uFF0C\u5B83\u4EEC\u7684\u4F5C\u7528\u4E00\u822C\u662F\u53EF\u4EE5\u8EB2\u5F00\u602A\u7269\u62FF\u5B9D\u77F3\uFF0C\u6216\u8005\u95E8\u91CC\u9762\u6709\u8840\u74F6\u7B49\u3002","\u5F53\u4F60\u8840\u91CF\u8DB3\u591F\u65F6\uFF0C\u8FD9\u4E9B\u95E8\u53EF\u4EE5\u4E0D\u7528\u5F00\uFF0C\u4E0D\u7136\u53EF\u80FD\u4F1A\u6709\u5FC5\u5F00\u7684\u95E8\u65E0\u6CD5\u5F00\u542F\u5BFC\u81F4\u5361\u5173\u3002\u5BF9\u4E8E\u94A5\u5319\uFF0C\u6BCF\u79CD\u989C\u8272\u7684\u94A5\u5319\u5F00\u5BF9\u5E94\u989C\u8272\u7684\u95E8\uFF0C",'\u4EF7\u503C\u662F\u7EA2 > \u84DD > \u9EC4\u3002',"
","
","\u4E3A\u4E86\u66F4\u52A0\u65B9\u4FBF\uFF0C\u672C\u5854\u589E\u52A0\u4E86\u5B9D\u77F3\u8840\u74F6\u663E\u793A\u6570\u636E\u7684\u529F\u80FD\uFF0C\u8FD9\u6837\u4F60\u53EF\u4EE5\u6E05\u6670\u5730\u77E5\u9053\u6BCF\u4E2A\u5B9D\u77F3\u589E\u52A0\u4E86\u591A\u5C11\u5C5E\u6027\u3002","
","
","\u4E0B\u9762\u662F\u52C7\u58EB\u57FA\u7840\u5C5E\u6027\u7684\u8BF4\u660E:","
",'1. \u751F\u547D\u503C\uFF1A',"\u52C7\u58EB\u7684\u8840\u91CF\uFF0C\u5F53\u5B83\u5F52\u96F6\u65F6\uFF0C\u6E38\u620F\u7ED3\u675F","
",'2. \u653B\u51FB\uFF1A',"\u52C7\u58EB\u7684\u653B\u51FB\uFF0C\u653B\u51FB\u8D8A\u9AD8\uFF0C\u6BCF\u56DE\u5408\u5BF9\u602A\u7269\u9020\u6210\u7684\u4F24\u5BB3\u8D8A\u9AD8","
",'3. \u9632\u5FA1\uFF1A',"\u52C7\u58EB\u7684\u9632\u5FA1\uFF0C\u9632\u5FA1\u8D8A\u9AD8\uFF0C\u602A\u7269\u6BCF\u56DE\u5408\u5BF9\u4F60\u9020\u6210\u7684\u4F24\u5BB3\u8D8A\u4F4E","
",'4. \u7ECF\u9A8C\uFF1A',"\u52C7\u58EB\u7684\u7ECF\u9A8C\uFF0C\u5230\u8FBE\u4E00\u5B9A\u503C\u540E\u4F1A\u5347\u7EA7\u3002\u672C\u5854\u5728\u72B6\u6001\u680F\u4E2D\u663E\u793A\u4E3A\u8DDD\u79BB\u5347\u7EA7\u5269\u4F59\u7684\u7ECF\u9A8C","
",'5. \u91D1\u5E01\uFF1A',"\u52C7\u58EB\u7684\u91D1\u5E01\uFF0C\u53EF\u4EE5\u7528\u4E8E\u8D2D\u4E70\u7269\u54C1\u3002\u672C\u5854\u4E2D\u5728\u8FDB\u5165\u7B2C\u4E8C\u7AE0\u540E\u4F1A\u6709\u7528","
",'6. \u62A4\u76FE\uFF1A',"\u52C7\u58EB\u7684\u62A4\u76FE\uFF0C\u7528\u5904\u662F\u80FD\u591F\u5728\u6218\u540E\u51CF\u5C11\u540C\u7B49\u6570\u503C\u7684\u4F24\u5BB3\uFF0C\u5728\u672C\u5854\u4E2D\u53EF\u4EE5\u4F7F\u4F24\u5BB3\u53D8\u4E3A\u8D1F\u503C\u3002\u672C\u5854\u4E2D\uFF0C\u5728\u70B9\u5F00\u65E0\u4E0A\u4E4B\u76FE\u6280\u80FD\u540E\uFF0C","\u667A\u6167\u4F1A\u5145\u5F53\u62A4\u76FE\u3002\u66F4\u591A\u4FE1\u606F\u53EF\u4EE5\u67E5\u770B\u201C\u52C7\u58EB\u5C5E\u6027\u201D\u6761\u76EE\u3002"]},noun={text:"\u540D\u8BCD\u89E3\u91CA",condition:"true",desc:["\u672C\u6761\u76EE\u4F1A\u89E3\u91CA\u8BF8\u5982\u4E34\u754C\u7B49\u9B54\u5854\u672F\u8BED\uFF0C\u5BF9\u9B54\u5854\u6709\u4E00\u5B9A\u4E86\u89E3\u7684\u53EF\u4EE5\u76F4\u63A5\u5FFD\u7565\u3002","
","
",'1. \u4E34\u754C\uFF1A',"\u5728\u9B54\u5854\u4E2D\uFF0C\u4E34\u754C\u662F\u4E00\u4E2A\u975E\u5E38\u91CD\u8981\u7684\u4E1C\u897F\u3002\u9996\u5148\uFF0C\u6211\u4EEC\u5F88\u5BB9\u6613\u53EF\u4EE5\u5F97\u5230\uFF0C\u5403\u653B\u51FB\u65F6\u53EA\u6709\u5F53\u51CF\u5C11\u4E86\u6218\u6597\u56DE\u5408\u6570\u65F6\u602A\u7269\u7684\u4F24\u5BB3\u4F1A\u51CF\u5C11\uFF0C",'\u90A3\u4E48\uFF0C\u5403\u653B\u51FB\u65F6\u602A\u7269\u7684\u51CF\u4F24\u662F\u4E0D\u8FDE\u7EED\u7684\u3002\u800C\u8DDD\u79BB\u4E0B\u4E00\u6B21\u51CF\u5C11\u602A\u7269\u7684\u4F24\u5BB3\u9700\u8981\u52A0\u7684\u653B\u51FB\u7684\u91CF',"\u4FBF\u662F\u4E34\u754C\u3002\u5F53\u6211\u4EEC\u5403\u4E00\u4E2A\u653B\u51FB\u6070\u597D\u4F7F\u602A\u7269\u4F24\u5BB3\u51CF\u5C11\u65F6\uFF0C\u79F0\u4E3A\u201C\u8E29\u4E34\u754C\u201D\u3002\u4E00\u822C\u60C5\u51B5\u4E0B\uFF0C\u8E29\u4E34\u754C\u7684\u51CF\u4F24\u8981\u6BD4\u5403\u9632\u5FA1\u8981\u9AD8\uFF0C","\u56E0\u6B64\uFF0C\u5F53\u80FD\u8E29\u5230\u4E34\u754C\u65F6\uFF0C\u6211\u4EEC\u5E94\u5F53\u5148\u8E29\u4E34\u754C\uFF0C\u518D\u5403\u9632\u5FA1\u3002","
","
",'2. \u52A0\u9632\uFF1A',"\u52A0\u9632\u6307\u7684\u662F\u52A0\u9632\u5BF9\u602A\u7269\u7684\u51CF\u4F24\u3002\u5728\u672C\u5854\u4E2D\uFF0C\u4F1A\u4EE5\u201Cn\u9632\u201D\u7684\u5F62\u5F0F\u663E\u793A\u5728\u602A\u7269\u624B\u518C\u6216\u5176\u4ED6\u5730\u65B9\u3002\u5728\u672C\u5854\u4E2D\uFF0C\u4E00\u822C\u4F60\u4E0D\u9700\u8981\u523B\u610F\u8BA1\u7B97",'\u4E34\u754C\u4E0E\u52A0\u9632\u51CF\u4F24\uFF0C\u4F60\u53EF\u4EE5\u5728\u602A\u7269\u624B\u518C\u4E2D\u67E5\u770B\u51CF\u4F24\u6298\u7EBF\u56FE\uFF0C',"\u66F4\u591A\u4FE1\u606F\u8BF7\u67E5\u770B\u201C\u602A\u7269\u624B\u518C\u201D\u6761\u76EE\u3002","
","
",'3. \u54B8\u9C7C\uFF1A',"\u4E00\u822C\u6765\u8BB2\uFF0C\u5F00\u4E0D\u5FC5\u5F00\u7684\u95E8\uFF0C\u6216\u8005\u4F7F\u7528\u4E0D\u5FC5\u4F7F\u7528\u7684\u9053\u5177\u88AB\u79F0\u4E3A\u54B8\u9C7C\uFF0C\u6216\u8005\u662F\u54B8\u95E8\uFF0C\u54B8\u9053\u5177\u3002\u4E00\u822C\u60C5\u51B5\u4E0B\uFF0C\u8BF4\u201C\u54B8\u201D\u4FBF\u662F\u6307\u54B8\u9C7C\u3002","\u4E00\u822C\u60C5\u51B5\u4E0B\uFF0C\u95E8\u540E\u9762\u6709\u5B9D\u77F3\u4E14\u65E0\u6CD5\u901A\u8FC7\u5176\u4ED6\u65B9\u5F0F\u8FDB\u5165\u7684\u90FD\u662F\u5FC5\u5F00\u95E8\uFF0C\u800C\u53EA\u6709\u8840\u74F6\u7684\u90FD\u662F\u54B8\u9C7C\u95E8\u3002"]},shortcut={text:"\u5FEB\u6377\u952E",condition:"true",desc:["\u8FD9\u91CC\u5305\u542B\u672C\u5854\u4E2D\u6240\u6709\u7684\u5FEB\u6377\u952E\u3002\u5BF9\u4E8E\u624B\u673A\u7AEF\uFF0C\u53EF\u4EE5\u70B9\u51FB\u5DE5\u5177\u680F\u7684\u96BE\u5EA6\u7684\u4F4D\u7F6E\u5207\u6362\u5DE5\u5177\u680F\u81F3\u6570\u5B57\u952E\u3002","
","
","\u4E0B\u9762\u662F\u6837\u677F\u4E2D\u7684\u6240\u6709\u5FEB\u6377\u952E\uFF1A","
",'X\uFF1A\u6253\u5F00\u602A\u7269\u624B\u518C',"
",'S\uFF1A\u6253\u5F00\u5B58\u6863\u754C\u9762',"
",'D\uFF1A\u6253\u5F00\u8BFB\u6863\u754C\u9762',"
",'A\u62165\uFF1A\u8BFB\u53D6\u81EA\u52A8\u5B58\u6863',"
",'W\u62166\uFF1A\u64A4\u9500\u8BFB\u53D6\u7684\u81EA\u52A8\u5B58\u6863',"
",'Q\uFF1A\u6253\u5F00\u88C5\u5907\u680F',"
",'T\uFF1A\u6253\u5F00\u9053\u5177\u680F',"
",'G\uFF1A\u6253\u5F00\u697C\u5C42\u4F20\u9001\u5668',"
",'Z\u6216\u5355\u51FB\u52C7\u58EB\uFF1A\u52C7\u58EB\u8F6C\u5411',"
",'\u7A7A\u683C\u6216\u53CC\u51FB\u52C7\u58EB\u62167\uFF1A\u8F7B\u6309\uFF08\u62FE\u53D6\u52C7\u58EB\u5468\u56F4\u7684\u5B9D\u7269\u4F46\u4E0D\u79FB\u52A8\u52C7\u58EB\uFF09',"
",'Esc\uFF1A\u6253\u5F00\u6E38\u620F\u83DC\u5355',"
",'R\uFF1A\u6253\u5F00\u5F55\u50CF\u56DE\u653E\u83DC\u5355',"
",'N\uFF1A\u8BE2\u95EE\u662F\u5426\u8FD4\u56DE\u6E38\u620F\u4E3B\u83DC\u5355',"
",'V\uFF1A\u6253\u5F00\u5FEB\u6377\u5546\u5E97',"
",'B\uFF1A\u6253\u5F00\u6570\u636E\u7EDF\u8BA1\u754C\u9762',"
",'Alt + \u6570\u5B57\u952E\uFF1A\u5FEB\u901F\u6362\u88C5',"
",'PgUp\u6216PgDn\uFF1A\u6D4F\u89C8\u5730\u56FE',"
",'P\uFF1A\u6253\u5F00\u8BC4\u8BBA\u533A',"
","
","\u4E0B\u9762\u662F\u672C\u5854\u4E2D\u65B0\u589E\u7684\u5FEB\u6377\u952E\uFF1A","
",'M\uFF1A\u5FEB\u901F\u6807\u8BB0\u602A\u7269',"
",'J\uFF1A\u6253\u5F00\u6280\u80FD\u6811']},extraAttr={text:"\u52C7\u58EB\u5C5E\u6027",condition:"true",desc:["\u8FD9\u91CC\u53EA\u5BF9\u672C\u5854\u4E2D\u65B0\u589E\u7684\u52C7\u58EB\u5C5E\u6027\u8FDB\u884C\u8BF4\u660E\u3002","
","
",'1. \u667A\u6167\uFF1A',"\u667A\u6167\u662F\u8BE5\u5854\u7684\u6838\u5FC3\u5C5E\u6027\u4E4B\u4E00\u3002\u667A\u6167\u53EF\u7528\u4E8E\u667A\u6167\u52A0\u70B9\uFF0C\u8BE5\u529F\u80FD\u4F1A\u5728\u8FDB\u5165\u7B2C\u4E00\u7AE0\u540E\u5F00\u542F\u3002\u4F7F\u7528\u667A\u6167\u53EF\u4EE5\u70B9\u6280\u80FD\u6811\u3002","\u9664\u6B64\u4E4B\u5916\uFF0C\u667A\u6167\u4E5F\u6709\u5176\u5B83\u529F\u80FD\u3002\u4F8B\u5982\u70B9\u5F00\u65E0\u4E0A\u4E4B\u76FE\u6280\u80FD\u540E\u667A\u6167\u8FD8\u53EF\u4EE5\u5145\u5F53\u62A4\u76FE\uFF0C\u7B2C\u4E8C\u7AE0\u70B9\u5F00\u5B66\u4E60\u6280\u80FD\u540E\u53EF\u4EE5\u4F7F\u7528\u667A\u6167\u5B66\u4E60\u602A\u7269\u6280\u80FD\u7B49\u3002","
","
",'2. \u751F\u547D\u56DE\u590D\uFF1A',"\u751F\u547D\u56DE\u590D\u6307\u7684\u662F\u52C7\u58EB\u6BCF\u56DE\u5408\u56DE\u590D\u7684\u751F\u547D\u503C\u3002\u5F53\u4E0E\u602A\u7269\u6218\u6597\u65F6\uFF0C\u52C7\u58EB\u6BCF\u56DE\u5408\u90FD\u4F1A\u56DE\u590D\u5BF9\u5E94\u91CF\u7684\u751F\u547D\u503C\u3002\u56E0\u6B64\uFF0C\u5F53\u5403\u653B\u51FB\u65F6\uFF0C","\u4E0E\u602A\u7269\u6218\u6597\u7684\u56DE\u5408\u6570\u53EF\u80FD\u4F1A\u51CF\u5C11\uFF0C\u5BFC\u81F4\u751F\u547D\u56DE\u590D\u7684\u603B\u56DE\u590D\u91CF\u51CF\u5C11\u3002\u4E0D\u8FC7\u5927\u90E8\u5206\u60C5\u51B5\u4E0B\u4E0D\u9700\u8981\u5728\u610F\u8FD9\u4E00\u70B9\uFF0C","\u51CF\u5C11\u4E00\u56DE\u5408\u5E76\u4E0D\u4F1A\u5BF9\u5438\u7684\u8840\u9020\u6210\u5F88\u5927\u7684\u5F71\u54CD\uFF0C\u9664\u4E86\u4E00\u4E9B\u7279\u6B8A\u60C5\u51B5\u3002","\u8BE5\u9879\u4F1A\u663E\u793A\u5728\u72B6\u6001\u680F\u7684\u751F\u547D\u503C\u53F3\u65B9\u504F\u4E0B\u7684\u4F4D\u7F6E\u3002","
","
",'3. \u989D\u5916\u653B\u51FB\uFF1A',"\u989D\u5916\u653B\u51FB\u6307\u7684\u662F\u52C7\u58EB\u6BCF\u56DE\u5408\u7684\u989D\u5916\u9020\u6210\u7684\u4F24\u5BB3\u3002\u4E00\u822C\u60C5\u51B5\u4E0B\uFF0C\u5F53\u52C7\u58EB\u7834\u4E86\u602A\u7269\u7684\u9632\u5FA1\u65F6\uFF0C\u8BE5\u9879\u4FBF\u4F1A\u8D77\u4F5C\u7528\u3002","\u989D\u5916\u653B\u51FB\u76F8\u5F53\u4E8E\u9B54\u653B\uFF0C\u65E0\u6CD5\u901A\u8FC7\u4E00\u822C\u65B9\u5F0F\u51CF\u514D\u3002\u5F53\u52C7\u58EB\u653B\u51FB\u602A\u7269\u65F6\uFF0C\u6BCF\u56DE\u5408\u90FD\u4F1A\u9644\u52A0\u5BF9\u5E94\u91CF\u7684\u4F24\u5BB3\uFF0C\u5BF9\u575A\u56FA\u602A\u540C\u6837\u6709\u6548\u3002","\u989D\u5916\u653B\u51FB\u4F1A\u663E\u793A\u5728\u72B6\u6001\u680F\u7684\u653B\u51FB\u53F3\u65B9\u504F\u4E0B\u7684\u4F4D\u7F6E\u3002"]},statusBar={text:"\u72B6\u6001\u680F",condition:"true",desc:["\u5728\u672C\u5854\u4E2D\uFF0C\u72B6\u6001\u680F\u4E0E\u6E38\u620F\u753B\u9762\u662F\u5206\u5F00\u7684\u3002\u4F60\u53EF\u4EE5\u81EA\u7531\u62D6\u52A8\u72B6\u6001\u680F\uFF0C\u4E5F\u53EF\u4EE5\u4FEE\u6539\u5176\u5927\u5C0F\u3002","\u5177\u4F53\u65B9\u6CD5\u5982\u4E0B\uFF1A\u70B9\u51FB\u4E00\u4E0B\u72B6\u6001\u680F\u4E4B\u540E\uFF0C\u5DE6\u4E0A\u89D2\u7684\u62D6\u62FD\u56FE\u6807\u4F1A\u653E\u5927\uFF0C\u6B64\u65F6\u4F60\u53EF\u4EE5\u6309\u4F4F\u5B83\u62D6\u52A8\u72B6\u6001\u680F\u3002","\u4F60\u53EF\u4EE5\u76F4\u63A5\u5C06\u9F20\u6807\u653E\u5230\u72B6\u6001\u680F\u7684\u8FB9\u6846\u4E0A\uFF0C\u7136\u540E\u76F4\u63A5\u62D6\u52A8\u4EE5\u6539\u53D8\u72B6\u6001\u680F\u7684\u5927\u5C0F\u3002\u624B\u673A\u7AEF\u53EF\u4EE5\u5148\u70B9\u51FB\u4E00\u4E0B\u72B6\u6001\u680F\u4F7F\u8FB9\u6846","\u53D8\u5BBD\uFF0C\u7136\u540E\u62D6\u52A8\u3002\u7535\u8111\u7AEF\u70B9\u51FB\u72B6\u6001\u680F\u4E5F\u53EF\u4EE5\u4F7F\u8FB9\u6846\u53D8\u5BBD\u3002\u5982\u679C\u4F60\u60F3\u6298\u53E0\u72B6\u6001\u680F\uFF0C\u5B8C\u5168\u53EF\u4EE5\u62D6\u52A8\u72B6\u6001\u680F\u7684\u4E0B\u8FB9\u6846\uFF0C","\u7136\u540E\u76F4\u63A5\u62D6\u52A8\u81F3\u4E0A\u65B9\uFF0C\u8FD9\u65F6\u72B6\u6001\u680F\u4FBF\u4F1A\u53D8\u6210\u4E00\u6761\u7EBF\uFF0C\u76F8\u5F53\u4E8E\u6298\u53E0\u4E86\u72B6\u6001\u680F","
","
","\u72B6\u6001\u680F\u53EF\u4EE5\u7EB5\u5411\u6EDA\u52A8\uFF0C\u5982\u679C\u4F60\u53D1\u73B0\u72B6\u6001\u680F\u663E\u793A\u4E0D\u5168\uFF0C\u53EF\u4EE5\u5C1D\u8BD5\u62C9\u5927\u72B6\u6001\u680F\uFF0C\u6216\u8005\u7EB5\u5411\u62D6\u52A8\u72B6\u6001\u680F\uFF0C\u5C31\u50CF\u7F51\u9875\u4E0A\u4E0B\u6EDA\u52A8\u4E00\u6837\u3002","\u7535\u8111\u7AEF\u8FD8\u53EF\u4EE5\u4F7F\u7528\u6EDA\u8F6E\u4E0A\u4E0B\u6EDA\u52A8\u3002","
","
","\u5982\u679C\u4F60\u89C9\u5F97\u72B6\u6001\u680F\u6709\u4E9B\u788D\u4E8B\uFF0C\u4F60\u5B8C\u5168\u53EF\u4EE5\u5C06\u5176\u7F29\u5C0F\uFF0C\u6216\u8005\u628A\u5B83\u653E\u5230\u4E0D\u788D\u4E8B\u7684\u5730\u65B9\u3002","
","
","\u72B6\u6001\u680F\u4E0A\u9762\u53EF\u80FD\u4F1A\u6709\u6309\u94AE\uFF0C\u4F60\u53EF\u4EE5\u76F4\u63A5\u70B9\u51FB\u3002","
","
","\u5BF9\u72B6\u6001\u680F\u5E03\u5C40\u7684\u8BF4\u660E\u3002","
","\u672C\u5854\u7684\u72B6\u6001\u680F\u7684\u5E03\u5C40\u8F83\u4E3A\u7075\u6D3B\u3002\u5B83\u662F\u6A2A\u5411\u7684\u5E03\u5C40\uFF0C\u5728\u72B6\u6001\u680F\u8F83\u5BBD\u65F6\u53EF\u4EE5\u770B\u5230\uFF0C\u5C5E\u6027\u4F1A\u6A2A\u5411\u4F9D\u6B21\u663E\u793A\u3002\u6309\u7167\u663E\u793A\u987A\u5E8F\uFF0C","\u72B6\u6001\u680F\u663E\u793A\u9879\u4F9D\u6B21\u4E3A\uFF1A","
","1. \u697C\u5C42\u540D\uFF0C\u70B9\u51FB\u540E\u8FDB\u5165\u6D4F\u89C8\u5730\u56FE\u754C\u9762","
","2. \u52C7\u58EB\u7B49\u7EA7","
","3. \u5F53\u524D\u5F00\u542F\u7684\u6280\u80FD","
","4. \u5F53\u524D\u52C7\u58EB\u751F\u547D\u503C\uFF0C\u53F3\u65B9\u504F\u4E0B\u4E3A\u6BCF\u56DE\u5408\u56DE\u590D\u7684\u751F\u547D\u503C\uFF0C\u5F53\u70B9\u5F00\u6CBB\u6108\u4E4B\u6CC9\u6280\u80FD\u65F6\uFF0C\u53F3\u65B9\u504F\u4E0A\u4F1A\u663E\u793A\u8DDD\u79BB\u589E\u52A0\u751F\u547D\u56DE\u590D\u5269\u4F59\u8840\u74F6\u6570","
","5. \u5F53\u524D\u52C7\u58EB\u7684\u653B\u51FB\uFF0C\u53F3\u65B9\u504F\u4E0B\u4E3A\u52C7\u58EB\u7684\u989D\u5916\u653B\u51FB","
","6. \u5F53\u524D\u52C7\u58EB\u7684\u9632\u5FA1","
","7. \u5F53\u524D\u52C7\u58EB\u7684\u667A\u6167\uFF0C\u53EF\u4EE5\u7528\u4E8E\u667A\u6167\u52A0\u70B9\u7B49","
","8. \u5F53\u524D\u52C7\u58EB\u7684\u91D1\u5E01","
","9. \u5F53\u524D\u52C7\u58EB\u8DDD\u79BB\u5347\u7EA7\u5269\u4F59\u7ECF\u9A8C\u6570","
","10. \u4E09\u8272\u94A5\u5319","
","11. \u6253\u5F00\u6280\u80FD\u6811\uFF08\u8FDB\u5165\u7B2C\u4E00\u7AE0\u540E\u5F00\u542F\uFF09","
","12. \u67E5\u770B\u52C7\u58EB\u7684\u6280\u80FD\uFF08\u8FDB\u5165\u7B2C\u4E00\u7AE0\u540E\u5F00\u542F\uFF09"]},markEnemy={text:"\u6807\u8BB0\u602A\u7269",condition:"true",desc:["\u6807\u8BB0\u602A\u7269\u53EF\u4EE5\u4F7F\u4F60\u80FD\u591F\u66F4\u52A0\u65B9\u4FBF\u5730\u4E86\u89E3\u4E00\u4E2A\u602A\u7269\u7684\u60C5\u51B5\u3002","
","\u4F60\u53EF\u4EE5\u901A\u8FC7\u4EE5\u4E0B\u4E24\u79CD\u65B9\u5F0F\u6807\u8BB0\u602A\u7269\uFF1A","
","1. \u6253\u5F00\u602A\u7269\u624B\u518C\uFF0C\u9009\u4E2D\u602A\u7269\uFF0C\u8FDB\u5165\u602A\u7269\u66F4\u591A\u4FE1\u606F\u680F\uFF0C\u70B9\u51FB\u6807\u8BB0\u602A\u7269\u3002","
",'2. \u5C06\u9F20\u6807\u79FB\u52A8\u5230\u4F60\u60F3\u8981\u6807\u8BB0\u7684\u602A\u7269\u4E0A\u9762\uFF0C',"\u6309\u4E0BM\u952E\uFF0C\u5373\u53EF\u6807\u8BB0\u602A\u7269\uFF0C\u6CE8\u610F\u6D4F\u89C8\u5730\u56FE\u4E2D\u4E0D\u80FD\u7528\u8BE5\u65B9\u5F0F\u6807\u8BB0\u3002","\u624B\u673A\u7AEF\u6682\u65F6\u6CA1\u6709\u5FEB\u901F\u6807\u8BB0\u602A\u7269\u7684\u65B9\u5F0F\u3002","
","
","\u5F53\u4E00\u4E2A\u602A\u7269\u88AB\u6807\u8BB0\u540E\uFF0C\u602A\u7269\u4F1A\u6709\u4EE5\u4E0B\u884C\u4E3A\uFF1A","
","1. \u5F53\u52C7\u58EB\u6070\u597D\u80FD\u6253\u8D25\u602A\u7269\u65F6\uFF0C\u4F1A\u8FDB\u884C\u63D0\u793A","
","2. \u5F53\u602A\u7269\u7684\u4F24\u5BB3\u6070\u597D\u4F4E\u4E8E\u52C7\u58EB\u751F\u547D\u503C\u76842/3\u62161/3\u65F6\uFF0C\u4F1A\u8FDB\u884C\u63D0\u793A","
","3. \u5F53\u52C7\u58EB\u6070\u597D\u8E29\u5230\u602A\u7269\u7684\u4E34\u754C\u65F6\uFF0C\u4F1A\u8FDB\u884C\u63D0\u793A","
","4. \u5F53\u602A\u7269\u96F6\u4F24\u65F6\uFF0C\u4F1A\u8FDB\u884C\u63D0\u793A","
","5. \u88AB\u6807\u8BB0\u7684\u602A\u7269\u4F1A\u51FA\u73B0\u7C7B\u4F3C\u4E8E\u72B6\u6001\u680F\u7684\u76D2\u5B50\uFF0C\u53EF\u4EE5\u968F\u610F\u62D6\u52A8\u548C\u6539\u53D8\u5927\u5C0F\u3002\u4F60\u4E5F\u53EF\u4EE5\u9009\u62E9\u5173\u95ED\u8FD9\u4E2A\u76D2\u5B50\uFF0C","\u88AB\u5173\u95ED\u540E\u53EF\u4EE5\u901A\u8FC7\u91CD\u65B0\u6807\u8BB0\u6765\u6253\u5F00\u3002\u8FD9\u4E2A\u76D2\u5B50\u4F1A\u663E\u793A\u6807\u8BB0\u7684\u602A\u7269\u7684\u4E34\u754C\u4E0E\u4F24\u5BB3\u4FE1\u606F\u7B49\uFF0C\u4E0E\u72B6\u6001\u680F\u4E00\u6837\uFF0C\u53EF\u4EE5\u7EB5\u5411\u6EDA\u52A8\u3002","
","
","\u8FD9\u4E2A\u529F\u80FD\u53EF\u4EE5\u7528\u4E8E\u6807\u8BB0boss\u6216\u8005\u8F83\u5F3A\u7684\u6321\u8DEF\u602A\uFF0C\u5F53\u8FD9\u4E9B\u602A\u80FD\u591F\u653B\u51FB\u65F6\u4F60\u53EF\u4EE5\u76F4\u63A5\u6536\u5230\u4FE1\u606F\uFF0C\u4E0D\u9700\u8981\u518D\u65F6\u523B\u8D39\u5FC3\u6CE8\u610F\u602A\u7269\u7684\u4F24\u5BB3\u3002","
","
","\u6CE8\u610F\uFF0C\u6807\u8BB0\u7684\u602A\u7269\u662F\u4E0D\u8BA1\u5165\u5B58\u6863\u7684\uFF0C\u540C\u65F6\u6807\u8BB0\u7684\u602A\u7269\u53EA\u5728\u672C\u6B21\u6E38\u620F\u4E2D\u6709\u6548\uFF0C\u5237\u65B0\u9875\u9762\u540E\u4FBF\u4F1A\u6D88\u5931\u3002"]},book={text:"\u602A\u7269\u624B\u518C",condition:"true",desc:["\u672C\u5854\u7684\u602A\u7269\u624B\u518C\u529F\u80FD\u5F88\u591A\uFF0C\u4E0B\u9762\u4E00\u4E00\u4ECB\u7ECD\u3002","
","
","\u602A\u7269\u624B\u518C\u6253\u5F00\u7684\u65F6\u5019\u6709\u4E00\u4E2A0.6\u79D2\u7684\u52A8\u753B\uFF0C\u5982\u679C\u4E0D\u60F3\u8981\u53EF\u4EE5\u5728\u5F00\u5934\u6361\u7684\u7CFB\u7EDF\u8BBE\u7F6E\u91CC\u9762\u5173\u95ED\uFF08\u9ED8\u8BA4\u5173\u95ED\uFF09\u3002","
","
","\u6253\u5F00\u602A\u7269\u624B\u518C\u540E\uFF0C\u602A\u7269\u624B\u518C\u7684\u5E03\u5C40\u4E0E\u6837\u677F\u81EA\u5E26\u7684\u7C7B\u4F3C\u3002\u4E0E\u6837\u677F\u4E0D\u540C\u7684\u662F\uFF0C\u8FD9\u91CC\u7684\u602A\u7269\u624B\u518C\u4E0D\u518D\u662F\u7FFB\u9875\u5F0F\u7ED3\u6784\u3002","\u8FD9\u91CC\u7684\u602A\u7269\u624B\u518C\u662F\u6EDA\u52A8\u5F0F\u7ED3\u6784\uFF0C\u4F60\u53EF\u4EE5\u50CF\u6D4F\u89C8\u7F51\u9875\u4E00\u6837\uFF0C\u7528\u624B\u6307\u6216\u9F20\u6807\u4E0A\u4E0B\u6EDA\u52A8\u6216\u8005\u62D6\u52A8\u53F3\u8FB9\u7684\u6EDA\u52A8\u6761\uFF0C\u7535\u8111\u7AEF\u8FD8\u53EF\u4EE5\u4F7F\u7528\u6EDA\u8F6E\u3002","\u5BF9\u4E8E\u7535\u8111\u7AEF\uFF0C\u8FD8\u53EF\u4EE5\u4F7F\u7528\u952E\u76D8\u64CD\u4F5C\u3002\u4E0A\u548C\u4E0B\u53EF\u4EE5\u4E0A\u4E0B\u9009\u62E9\u602A\u7269\uFF0C\u5DE6\u548C\u53F3\u53EF\u4EE5\u5411\u4E0A\u6216\u5411\u4E0B\u79FB\u52A85\u4E2A\u602A\u7269\u3002\u8FD9\u4E9B\u64CD\u4F5C\u4E0E\u6837\u677F\u90FD\u7C7B\u4F3C\u3002","
","
","\u70B9\u51FB\u4E00\u4E2A\u602A\u7269\u6216\u8005\u6309\u4E0B\u56DE\u8F66\u7A7A\u683C\u540E\uFF0C\u5C06\u8FDB\u5165\u602A\u7269\u8BE6\u7EC6\u4FE1\u606F\u754C\u9762\u3002\u8FD9\u4E2A\u754C\u9762\u5206\u4E3A\u591A\u4E2A\u680F\uFF0C\u5206\u522B\u662F\u7279\u6B8A\u5C5E\u6027\u680F\uFF0C\u8BE6\u7EC6\u4E34\u754C\u680F\uFF0C\u66F4\u591A\u4FE1\u606F\u680F\u3002","\u8FDB\u5165\u602A\u7269\u8BE6\u7EC6\u4FE1\u606F\u540E\u9ED8\u8BA4\u5728\u7279\u6B8A\u5C5E\u6027\u680F\uFF0C\u8BE5\u680F\u53EF\u4EE5\u67E5\u770B\u602A\u7269\u7684\u7279\u6B8A\u5C5E\u6027\u3002","\u6CE8\u610F\u7279\u6B8A\u5C5E\u6027\u4F9D\u7136\u53EF\u4EE5\u7EB5\u5411\u6EDA\u52A8\u3002\u5728\u7279\u6B8A\u5C5E\u6027\u4E0B\u65B9\uFF0C","\u662F\u602A\u7269\u7684\u4E34\u754C\u8868\uFF0C\u53EF\u4EE5\u7C97\u7565\u5730\u67E5\u770B\u602A\u7269\u7684\u4E34\u754C\u4FE1\u606F\u3002\u5728\u4E0B\u65B9\uFF0C\u4F60\u53EF\u4EE5\u70B9\u51FB\u8BE6\u7EC6\u4E34\u754C\u4FE1\u606F\u8FDB\u5165\u8BE6\u7EC6\u4E34\u754C\u680F\u3002","
","
","\u5728\u8BE6\u7EC6\u4E34\u754C\u680F\u4E2D\uFF0C\u602A\u7269\u7684\u4F24\u5BB3\u4F1A\u4EE5\u53EF\u89C6\u5316\u6298\u7EBF\u56FE\u7684\u65B9\u5F0F\u663E\u793A\u51FA\u6765\uFF0C\u4ECE\u800C\u4F60\u53EF\u4EE5\u66F4\u4E3A\u6E05\u6670\u5730\u770B\u51FA\u602A\u7269\u51CF\u4F24\u8D8B\u52BF\u3002","\u9664\u4E86\u67E5\u770B\u602A\u7269\u4F24\u5BB3\u66F2\u7EBF\uFF0C\u4F60\u8FD8\u53EF\u4EE5\u89C4\u5212\u5B9D\u77F3\u3002\u6BCF\u4E2A\u6298\u7EBF\u56FE\u4E0B\u65B9\u90FD\u6709\u4E00\u4E2A\u6ED1\u52A8\u6761\uFF0C\u4F60\u53EF\u4EE5\u62D6\u52A8\u6765\u6A21\u62DF\u5403\u5B9D\u77F3\u3002","\u6CE8\u610F\uFF0C\u62D6\u52A8\u65F6\uFF0C\u6ED1\u52A8\u6761\u5DE6\u8FB9\u4F1A\u663E\u793A\u5F53\u524D\u7684\u52A0\u653B\u6216\u52A0\u9632\u6B21\u6570\uFF0C\u8FD9\u4E2A\u6570\u503C\u6307\u7684\u662F\u5728\u52C7\u58EB\u6240\u5728\u5730\u56FE\u4E2D\u9700\u8981\u5403\u7684\u6700\u5F31\u7684\u5B9D\u77F3\u6570\u91CF\u3002","\u4F8B\u5982\uFF0C\u5F53\u524D\u52C7\u58EB\u6240\u5728\u5730\u56FE\u4E2D\u6700\u5F31\u7684\u5B9D\u77F3\u52A02\u70B9\u653B\u51FB\uFF0C\u52A0\u653B\u6B21\u6570\u4E3A3\uFF0C\u90A3\u4E48\u52C7\u58EB\u7684\u653B\u51FB\u589E\u52A0\u91CF\u5C31\u4E3A6\u3002","\u52C7\u58EB\u589E\u52A0\u7684\u653B\u51FB\u6570\u503C\u4E5F\u4F1A\u5728\u4E0B\u65B9\u663E\u793A\u3002\u5F53\u52A0\u653B\u6B21\u6570\u548C\u52A0\u9632\u6B21\u6570\u6539\u53D8\u65F6\uFF0C\u6298\u7EBF\u56FE\u4E5F\u4F1A\u53D8\u5316\u3002",'\u5F53\u524D\u72B6\u6001\u4E0B\u602A\u7269\u7684\u4F24\u5BB3\u4EE5\u53CA\u51CF\u4F24\u603B\u91CF\u4E5F\u4F1A\u5728\u4E0B\u65B9\u663E\u793A\u3002',"\u6CE8\u610F\u5728\u6B64\u680F\u4E2D\u65E0\u6CD5\u901A\u8FC7\u70B9\u51FB\u5C4F\u5E55\u56DE\u5230\u602A\u7269\u624B\u518C\u754C\u9762\uFF0C\u66F4\u591A\u4FE1\u606F\u8BF7\u67E5\u770B\u6700\u540E\u4E00\u6BB5\u3002","
","
","\u5728\u7279\u6B8A\u5C5E\u6027\u680F\uFF0C\u70B9\u51FB\u4E0B\u65B9\u7684\u602A\u7269\u66F4\u591A\u4FE1\u606F\u53EF\u4EE5\u8FDB\u5165\u66F4\u591A\u4FE1\u606F\u680F\u3002\u6B64\u680F\u4E2D\uFF0C\u4F60\u53EF\u4EE5\u67E5\u770B\u602A\u7269\u63CF\u8FF0\u3002\u4F46\u8FD9\u4E0D\u662F\u8FD9\u4E00\u680F\u7684\u6838\u5FC3\u529F\u80FD\u3002","\u8FD9\u4E00\u680F\u7684\u6838\u5FC3\u529F\u80FD\u662F\u6807\u8BB0\u602A\u7269\u3002\u88AB\u6807\u8BB0\u7684\u602A\u7269\u4F1A\u6709\u4E00\u4E9B\u975E\u5E38\u65B9\u4FBF\u7684\u884C\u4E3A\uFF0C\u8FD9\u4E9B\u884C\u4E3A\u53EF\u4EE5\u5728\u201C\u6807\u8BB0\u602A\u7269\u201D\u6761\u76EE\u4E2D\u67E5\u770B\u3002","
","
","\u6CE8\u610F\uFF0C\u5728\u602A\u7269\u8BE6\u7EC6\u4FE1\u606F\u4E2D\uFF0C\u9664\u8BE6\u7EC6\u4E34\u754C\u680F\u5916\u5747\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u5C4F\u5E55\u8FD4\u56DE\u5230\u602A\u7269\u624B\u518C\u754C\u9762\u3002",'\u5982\u679C\u4F60\u662F\u7535\u8111\u7AEF\uFF0C\u5728\u4EFB\u610F\u680F\u76EE\u4E2D\u6309\u4E0BX\u952E\u4F1A\u9000\u51FA\u602A\u7269\u624B\u518C\uFF0C\u8FD4\u56DE\u6E38\u620F\uFF0C','\u6309\u4E0B\u56DE\u8F66\uFF08Enter\uFF09\u952E\u4F1A\u56DE\u5230\u602A\u7269\u624B\u518C\u754C\u9762\u3002']},fly={text:"\u697C\u5C42\u4F20\u9001\u5668",condition:"true",desc:["\u697C\u4F20\u754C\u9762\u6253\u5F00\u65F6\u4F1A\u6709\u4E00\u4E2A0.6\u79D2\u7684\u52A8\u753B\uFF0C\u5982\u679C\u4E0D\u60F3\u8981\u53EF\u4EE5\u5728\u5F00\u5934\u6361\u7684\u7CFB\u7EDF\u8BBE\u7F6E\u91CC\u9762\u5173\u95ED\u3002\uFF08\u9ED8\u8BA4\u5173\u95ED\uFF09","
","
",'\u672C\u5854\u7684\u697C\u5C42\u4F20\u9001\u5668\u662F\u4E00\u4E2A\u96C6\u5206\u533A\u3001\u5C0F\u5730\u56FE\u3001\u697C\u5C42\u4F20\u9001\u4E8E\u4E00\u4F53\u7684\u591A\u529F\u80FD\u697C\u4F20\u3002',"\u4E0B\u9762\u662F\u697C\u4F20\u7684\u5177\u4F53\u8BF4\u660E\uFF1A","
","
","\u9996\u5148\uFF0C\u5BF9\u4E8E\u7535\u8111\u7AEF\uFF0C\u6700\u5DE6\u4FA7\u663E\u793A\u533A\u57DF\u4FE1\u606F\uFF0C\u624B\u673A\u7AEF\u5219\u5728\u4E0A\u65B9\u7684\u5DE6\u4FA7\u3002","
","
","\u7136\u540E\uFF0C\u533A\u57DF\u7684\u53F3\u4FA7\u662F\u5C0F\u5730\u56FE\u680F\uFF0C\u8FD9\u4E00\u680F\u4F1A\u663E\u793A\u697C\u5C42\u7684\u5E73\u9762\u7ED3\u6784\u3002\u4F60\u53EF\u4EE5\u62D6\u52A8\uFF0C\u4E5F\u53EF\u4EE5\u4F7F\u7528\u6EDA\u8F6E\u6216\u8005\u53CC\u6307\u653E\u7F29\uFF0C\u5F53\u653E\u7F29\u5230\u4E00\u5B9A\u5927\u5C0F\u65F6\uFF0C","\u4F1A\u663E\u793A\u5730\u56FE\u7684\u7F29\u7565\u56FE\u3002\u76F4\u63A5\u70B9\u51FB\u5730\u56FE\u4E5F\u53EF\u4EE5\u9009\u4E2D\u5730\u56FE\uFF0C\u518D\u6B21\u70B9\u51FB\u4F1A\u4F20\u9001\u81F3\u76EE\u6807\u5730\u56FE\u3002","
","
","\u5BF9\u4E8E\u7535\u8111\u7AEF\uFF0C\u6700\u53F3\u4FA7\u662F\u5F53\u524D\u9009\u4E2D\u7684\u5730\u56FE\u7684\u7F29\u7565\u56FE\uFF0C\u624B\u673A\u5219\u5728\u4E0B\u65B9\uFF0C\u70B9\u51FB\u7F29\u7565\u56FE\u4E5F\u53EF\u4EE5\u4F20\u9001\u3002\u7F29\u7565\u56FE\u7684\u4E0B\u65B9\u662F\u5F53\u524D\u9009\u4E2D\u7684\u5730\u56FE\u540D\uFF0C","\u5DE6\u53F3\u5404\u6709\u4E24\u4E2A\u6309\u94AE\uFF0C\u8868\u793A\u540E\u900010\u5C42\u3001\u540E\u90001\u5C42\u3001\u524D\u8FDB1\u5C42\u3001\u524D\u8FDB10\u5C42\uFF0C\u4E0E\u6837\u677F\u7684\u697C\u4F20\u7684\u6309\u94AE\u529F\u80FD\u7C7B\u4F3C\u3002","
","
","\u6700\u4E0B\u65B9\u662F\u8BBE\u7F6E\u6309\u94AE\uFF0C\u53EF\u4EE5\u5207\u6362\u65E0\u8FB9\u6846\u6A21\u5F0F\uFF0C\u7535\u8111\u7AEF\u8FD8\u53EF\u4EE5\u5207\u6362\u4F20\u7EDF\u6309\u952E\u6A21\u5F0F\uFF0C\u4F20\u7EDF\u6309\u952E\u6A21\u5F0F\u4E0B\u6309\u952E\u9075\u5FAA\u6837\u677F\u7684\u697C\u4F20\u6309\u952E\u65B9\u5F0F\u3002",'\u5BF9\u4E8E\u975E\u4F20\u7EDF\u6A21\u5F0F\uFF0C\u4E0A\u4E0B\u5DE6\u53F3\u53EF\u4EE5\u79FB\u52A8\u5730\u56FE\uFF0C','PageUp\u548CPageDown\u53EF\u4EE5\u524D\u8FDB1\u5C42\u6216\u540E\u90001\u5C42\u3002']},tools={text:"\u9053\u5177\u680F\u4E0E\u88C5\u5907\u680F",condition:"true",desc:["\u9053\u5177\u680F\u4E0E\u88C5\u5907\u680F\u6253\u5F00\u65F6\u4F1A\u6709\u4E00\u4E2A0.6\u79D2\u7684\u52A8\u753B\uFF0C\u5982\u679C\u4E0D\u60F3\u8981\u53EF\u4EE5\u5728\u5F00\u5934\u6361\u7684\u7CFB\u7EDF\u8BBE\u7F6E\u91CC\u9762\u5173\u95ED\u3002\uFF08\u9ED8\u8BA4\u5173\u95ED\uFF09","
","
","\u672C\u5854\u7684\u9053\u5177\u680F\u6CA1\u6709\u7279\u522B\u4E4B\u5904\uFF0C\u8FD9\u91CC\u4E0D\u9700\u8981\u8BF4\u660E\u3002\u4E3B\u8981\u662F\u88C5\u5907\u680F\u3002","
","
","\u672C\u5854\u7684\u88C5\u5907\u680F\u624B\u673A\u548C\u7535\u8111\u7AEF\u4E0D\u540C\uFF0C\u7535\u8111\u7AEF\u6BD4\u624B\u673A\u7AEF\u591A\u4E86\u4E00\u4E2A\u52C7\u58EB\u5C5E\u6027\u7684\u663E\u793A\u3002\u5728\u88C5\u5907\u680F\u7684\u88C5\u5907\u5217\u8868\u680F\uFF0C","\u4E0A\u65B9\u6709\u4E24\u4E2A\u9009\u62E9\u6846\u4E0E\u4E00\u4E2A\u6392\u5E8F\u65B9\u5F0F\u7684\u9009\u9879\u3002\u8FD9\u4E09\u4E2A\u53EF\u4EE5\u7B5B\u9009\u4F60\u62E5\u6709\u7684\u88C5\u5907\u5E76\u8FDB\u884C\u6392\u5E8F\uFF0C\u4ECE\u800C\u8BA9\u4F60\u80FD\u591F\u66F4\u6E05\u695A\u5730\u77E5\u9053\u54EA\u4E2A\u88C5\u5907\u66F4\u5F3A\u3002","\u7B2C\u4E00\u4E2A\u9009\u62E9\u6846\u53EF\u4EE5\u7B5B\u9009\u88C5\u5907\u589E\u52A0\u7684\u5C5E\u6027\uFF0C\u5982\u679C\u88C5\u5907\u4E0D\u589E\u52A0\u9009\u62E9\u7684\u5C5E\u6027\uFF0C\u90A3\u4E48\u4F1A\u4E0D\u663E\u793A\u3002\u7B2C\u4E8C\u4E2A\u9009\u62E9\u6846\u53EF\u4EE5\u7B5B\u9009\u589E\u52A0\u7684\u5C5E\u6027\u7684\u65B9\u5F0F\uFF0C","\u6709\u6570\u503C\u589E\u52A0\u548C\u767E\u5206\u6BD4\u589E\u52A0\u4E24\u79CD\u3002\u5728\u8FD9\u4E2A\u9009\u62E9\u6846\u53F3\u8FB9\u6709\u4E00\u4E2A\u56FE\u6807\uFF0C\u8FD9\u4E2A\u56FE\u6807\u53EF\u4EE5\u6539\u53D8\u6B66\u5668\u7684\u6392\u5E8F\u65B9\u5F0F\uFF0C\u6709\u5347\u5E8F\u548C\u964D\u5E8F\u4E24\u79CD\uFF0C\u9ED8\u8BA4\u4E3A\u5347\u5E8F\u3002","\u4F8B\u5982\uFF0C\u4F60\u62E5\u6709\u4E24\u4E2A\u88C5\u5907\uFF0C\u5206\u522B\u589E\u52A010\u653B\u51FB\u548C20\u653B\u51FB\uFF0C\u4E09\u8005\u4F60\u5206\u522B\u9009\u62E9\u4E86\u653B\u51FB\uFF0C\u6570\u503C\uFF0C\u5347\u5E8F\uFF0C\u90A3\u4E48\u589E\u52A010\u653B\u51FB\u7684\u88C5\u5907\u4F1A\u6392\u5728\u4E0A\u9762\uFF0C","\u800C\u589E\u52A020\u653B\u51FB\u7684\u88C5\u5907\u4F1A\u6392\u5728\u4E0B\u9762\u3002","
","
","\u5BF9\u4E8E\u7535\u8111\u7AEF\uFF0C\u5982\u679C\u4F60\u60F3\u88C5\u88C5\u5907\uFF0C\u53EF\u4EE5\u76F4\u63A5\u62D6\u52A8\u88C5\u5907\u81F3\u88C5\u5907\u5B54\uFF0C\u4E5F\u53EF\u4EE5\u9009\u4E2D\u88C5\u5907\u540E\u518D\u6B21\u70B9\u51FB\u3002\u624B\u673A\u7AEF\u6682\u65F6\u65E0\u6CD5\u62D6\u52A8\u88C5\u5907\u3002\u5F53\u9009\u4E2D\u4E00\u4E2A\u88C5\u5907\u540E\uFF0C","\u7535\u8111\u7AEF\u548C\u624B\u673A\u7AEF\u5747\u4F1A\u663E\u793A\u88C5\u5907\u589E\u52A0\u6216\u51CF\u5C11\u7684\u5C5E\u6027\uFF0C\u6CE8\u610F\u6709\u7684\u88C5\u5907\u53EF\u80FD\u4E0D\u589E\u52A0\u5C5E\u6027\u4F46\u662F\u6709\u7279\u6B8A\u529F\u80FD\u3002\u5BF9\u4E8E\u7535\u8111\u7AEF\uFF0C","\u8FD8\u4F1A\u76F4\u63A5\u5728\u52C7\u58EB\u5C5E\u6027\u680F\u663E\u793A\u589E\u52A0\u6216\u51CF\u5C11\u7684\u5C5E\u6027\u3002"]},skillTree={text:"\u6280\u80FD\u6811",condition:"flags.chapter > 0",desc:['\u6253\u5F00\u6280\u80FD\u6811\u53EF\u4EE5\u70B9\u51FB\u72B6\u6001\u680F\u7684',"\u6280\u80FD\u6811\u6309\u94AE\uFF08\u5982\u679C\u53D1\u73B0\u6CA1\u6709\u663E\u793A\u53EF\u4EE5\u5C1D\u8BD5\u4E0A\u4E0B\u6EDA\u52A8\u72B6\u6001\u680F\uFF09\uFF0C\u8FD8\u53EF\u4EE5\u6309",'\u5FEB\u6377\u952EJ\u6253\u5F00\u3002',"
","
","\u6280\u80FD\u6811\u662F\u672C\u5854\u7684\u4E3B\u8981\u73A9\u6CD5\u4E4B\u4E00\u3002\u5B83\u53EF\u4EE5\u8BA9\u4F60\u4F7F\u7528\u667A\u6167\u6765\u5B66\u4E60\u6280\u80FD\uFF0C\u589E\u52A0\u5C5E\u6027\u7B49\u3002\u667A\u6167\u5728\u72B6\u6001\u680F\u663E\u793A\u5728\u9632\u5FA1\u7684\u4E0B\u4E00\u9879\uFF0C","\u7EFF\u5B9D\u77F3\u53EF\u4EE5\u589E\u52A0\u52C7\u58EB\u7684\u667A\u6167\u3002","
","
","\u6253\u5F00\u6280\u80FD\u6811\u9875\u9762\u540E\uFF0C\u4F60\u53EF\u4EE5\u5728\u4E0A\u65B9\u770B\u5230\u6280\u80FD\u7684\u540D\u79F0\u4E0E\u63CF\u8FF0\uFF0C\u4E0B\u65B9\u4F1A\u663E\u793A\u6280\u80FD\u6811\uFF0C\u4EE5\u53CA\u5347\u7EA7\u8981\u6C42\u7B49\u3002\u70B9\u51FB\u4E00\u4E2A\u6280\u80FD\u53EF\u4EE5\u9009\u4E2D\u6280\u80FD\uFF0C","\u518D\u6B21\u70B9\u51FB\u53EF\u4EE5\u5347\u7EA7\u6280\u80FD\u3002\u6CE8\u610F\uFF0C\u524D\u7F6E\u6280\u80FD\u680F\u53EF\u4EE5\u4E0A\u4E0B\u6EDA\u52A8\uFF0C\u56E0\u6B64\u5982\u679C\u53D1\u73B0\u663E\u793A\u4E0D\u5168\uFF0C\u53EF\u4EE5\u5C1D\u8BD5\u4E0A\u4E0B\u6EDA\u52A8\u524D\u7F6E\u6280\u80FD\u680F","
","
","\u6CE8\u610F\uFF0C\u6280\u80FD\u5728\u70B9\u5F00\u4E4B\u540E\u662F\u65E0\u6CD5\u53D6\u6D88\u7684\uFF0C\u56E0\u6B64\uFF0C\u52A0\u70B9\u65F6\u8BF7\u614E\u91CD\u52A0\u70B9\u3002\u6CE8\u610F\uFF0C\u90E8\u5206\u6280\u80FD\u662F\u5FC5\u70B9\u6280\u80FD\uFF0C\u8FD9\u4E9B\u6280\u80FD\u4F1A\u5728\u6280\u80FD\u8BF4\u660E\u4E2D\u660E\u786E\u6307\u51FA\uFF0C","\u8FD9\u4E9B\u6280\u80FD\u4E00\u822C\u9700\u8981\u5C3D\u65E9\u70B9\u51FA\u3002"]},desc={tip,tutorial,noun,shortcut,extraAttr,statusBar,markEnemy,book,fly,tools,skillTree},_hoisted_1$9={id:"desc-list"},_hoisted_2$7=["selected","onClick"],_hoisted_3$7={key:0},_hoisted_4$5=["innerHTML"],_sfc_main$9=defineComponent({__name:"desc",setup(__props){const selected=ref(Object.keys(desc)[0]);function exit(){core.plugin.descOpened.value=!1}const content=computed(()=>splitText(desc[selected.value].desc));function click(key){!eval(desc[key].condition)||(selected.value=key)}function show(condition){return eval(condition)}return(e,t)=>(openBlock(),createBlock(Column,{onClose:exit,width:80,height:80,left:30,right:70},{left:withCtx(()=>[createBaseVNode("div",_hoisted_1$9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(desc),(i,n)=>(openBlock(),createElementBlock("div",{class:"selectable",selected:selected.value===n,onClick:s=>click(n)},[show(i.condition)?(openBlock(),createElementBlock("span",_hoisted_3$7,toDisplayString(i.text),1)):createCommentVNode("",!0)],8,_hoisted_2$7))),256))])]),right:withCtx(()=>[createBaseVNode("span",{innerHTML:unref(content)},null,8,_hoisted_4$5)]),_:1}))}}),desc_vue_vue_type_style_index_0_scoped_68d53667_lang="",Desc=_export_sfc(_sfc_main$9,[["__scopeId","data-v-68d53667"]]),none={text:"\u65E0",opened:"true",desc:["\u5F53\u524D\u672A\u9009\u62E9\u6280\u80FD"]},blade={text:"1\uFF1A\u65AD\u706D\u4E4B\u5203",opened:"core.getSkillLevel(2) > 0",desc:['\u5FEB\u6377\u952E1\uFF0C\u5F00\u542F\u540E\u52C7\u58EB\u653B\u51FB\u589E\u52A0${level:2 * 10}%\uFF0C',"\u540C\u65F6\u9632\u5FA1\u51CF\u5C11${level:2 * 10}%\u3002","
","
","\u5F53\u524D\u7B49\u7EA7\uFF1A${level:2}"]},jump={text:"2\uFF1A\u8DF3\u8DC3",opened:"flags.skill2 === true",desc:['\u5FEB\u6377\u952E2\uFF0C\u6D88\u8017200\u70B9\u751F\u547D\u503C\uFF0C\u56F0\u96BE\u6D88\u8017400\u70B9\uFF0C\u4E00\u4E2A\u5730\u56FE\u53EA\u80FD\u4F7F\u75283\u6B21\uFF0C',"\u5982\u679C\u524D\u65B9\u4E3A\u53EF\u901A\u884C\u7684\u5730\u9762\uFF0C\u5219\u4E0D\u80FD\u4F7F\u7528\u8BE5\u6280\u80FD\uFF0C\u5982\u679C\u524D\u65B9\u4E3A\u602A\u7269\uFF0C\u5219\u5C06\u602A\u7269\u79FB\u81F3\u52C7\u58EB\u89C6\u7EBF\u4E0A\u7B2C\u4E00\u4E2A\u4E0D\u80FD\u901A\u884C\u7684\u65B9\u5757\u540E","\u5982\u679C\u524D\u65B9\u4E3A\u969C\u788D\u7269\uFF0C\u5219\u76F4\u63A5\u8DF3\u5230\u8BE5\u969C\u788D\u7269\u7684\u540E\u65B9\u3002"]},shield={text:"3\uFF1A\u94F8\u5251\u4E3A\u76FE",opened:"core.getSkillLevel(10) > 0",desc:['\u5FEB\u6377\u952E3\uFF0C\u5F00\u542F\u540E\u52C7\u58EB\u9632\u5FA1\u589E\u52A0${level:10 * 10}%\uFF0C',"\u540C\u65F6\u653B\u51FB\u51CF\u5C11${level:10 * 10}%\u3002","
","
","\u5F53\u524D\u7B49\u7EA7\uFF1A${level:10}"]},skills={none,blade,jump,shield},_hoisted_1$8={id:"skill-list"},_hoisted_2$6=["selected","selectable","onClick"],_hoisted_3$6=["innerHTML"],_sfc_main$8=defineComponent({__name:"skill",setup(__props){const selected=ref("none");function skillOpened(skill){return eval(skills[skill].opened)}function select(e){!skillOpened(e)||(selected.value=e)}const content=computed(()=>eval("`"+skills[selected.value].desc.map((e,t,i)=>/^\d+\./.test(e)?`${" ".repeat(12)}${e}`:has(i[t-1])&&e!=="
"&&i[t-1]==="
"||t===0?`${" ".repeat(8)}${e}`:e).join("").replace(/level:(\d+)/g,"core.getSkillLevel($1)")+"`"));function exit(){core.plugin.skillOpened.value=!1}return(e,t)=>(openBlock(),createBlock(Column,{onClose:exit,width:70,height:70},{left:withCtx(()=>[createBaseVNode("div",_hoisted_1$8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(skills),(i,n)=>(openBlock(),createElementBlock("span",{class:"selectable skill-item",selected:n===selected.value,selectable:skillOpened(n),onClick:s=>select(n)},toDisplayString(i.text),9,_hoisted_2$6))),256))])]),right:withCtx(()=>[createBaseVNode("span",{innerHTML:unref(content)},null,8,_hoisted_3$6)]),_:1}))}}),skill_vue_vue_type_style_index_0_scoped_9f619ff1_lang="",Skill=_export_sfc(_sfc_main$8,[["__scopeId","data-v-9f619ff1"]]),_withScopeId$3=e=>(pushScopeId("data-v-b1be4e88"),e=e(),popScopeId(),e),_hoisted_1$7={id:"skill-tree"},_hoisted_2$5={id:"tools"},_hoisted_3$5={id:"skill-title"},_hoisted_4$4={id:"skill-info"},_hoisted_5$4=["innerHTML"],_hoisted_6$4={id:"skill-effect"},_hoisted_7$4=["innerHTML"],_hoisted_8$3=["innerHTML"],_hoisted_9$3={id:"skill-bottom"},_hoisted_10$3=_withScopeId$3(()=>createBaseVNode("canvas",{id:"skill-canvas"},null,-1)),_hoisted_11$3={id:"skill-upgrade-info"},_hoisted_12$2={id:"skill-level"},_hoisted_13$2={key:1,id:"skill-consume",style:{color:"gold"}},_hoisted_14$2={id:"skill-front"},_hoisted_15$1=_withScopeId$3(()=>createBaseVNode("span",null,"\u524D\u7F6E\u6280\u80FD",-1)),_hoisted_16$1={id:"skill-chapter"},_sfc_main$7=defineComponent({__name:"skillTree",setup(__props){var e;let canvas,ctx;const selected=ref(0),chapter=ref("chapter1"),update=ref(!1),chapterDict={chapter1:"\u7B2C\u4E00\u7AE0",chapter2:"\u7B2C\u4E8C\u7AE0"};(e=flags.skillTree)!=null||(flags.skillTree=0);const chapterList=Object.keys(core.plugin.skills);selected.value=core.plugin.skills[chapterList[flags.skillTree]][0].index,chapter.value=chapterList[flags.skillTree],watch(selected,draw),watch(update,()=>mdef.value=core.status.hero.mdef);const mdef=ref(core.status.hero.mdef),skill=computed(()=>(update.value,core.getSkillFromIndex(selected.value))),skills=computed(()=>core.plugin.skills[chapter.value]),desc=computed(()=>eval("`"+splitText(skill.value.desc).replace(/level(:\d+)?/g,(t,i)=>i?`core.getSkillLevel(${i})`:`core.getSkillLevel(${skill.value.index})`)+"`")),effect=computed(()=>[0,1].map(v=>eval(`\`${v===0?"\u5F53\u524D\u6548\u679C\uFF1A":"\u4E0B\u4E00\u7EA7\u6548\u679C\uFF1A"}`+skill.value.effect.join("").replace(/level(:\d+)?/g,(t,i)=>i?`(core.getSkillLevel(${i}) + ${v})`:`(core.getSkillLevel(${skill.value.index}) + ${v})`)+"`"))),dict=computed(()=>{const t={};return skills.value.forEach((n,s)=>{t[n.index]=s}),t}),front=computed(()=>skill.value.front.map(t=>`${core.getSkillLevel(t[0])>=t[1]?"a":"b"}${t[1]}\u7EA7 ${skills.value[dict.value[t[0]]].title}`)),consume=computed(()=>(update.value,core.getSkillConsume(selected.value))),level=computed(()=>(update.value,core.getSkillLevel(selected.value)));function exit(){core.plugin.skillTreeOpened.value=!1}function resize(){const t=getComputedStyle(canvas);canvas.width=parseFloat(t.width)*devicePixelRatio,canvas.height=parseFloat(t.height)*devicePixelRatio}function draw(){const t=dict.value,n=canvas.width/11;ctx.clearRect(0,0,canvas.width,canvas.height),skills.value.forEach(s=>{const[a,r]=s.loc.map(l=>l*2-1);s.front.forEach(([l],c)=>{const d=skills.value[t[l]];ctx.beginPath(),ctx.moveTo(a*n+n/2,r*n+n/2),ctx.lineTo(...d.loc.map(u=>(u*2-1)*n+n/2)),core.getSkillLevel(d.index){const[a,r]=s.loc.map(d=>d*2-1),l=core.getSkillLevel(s.index);ctx.save(),ctx.lineWidth=n*.06,selected.value===s.index?(ctx.strokeStyle="#ff0",ctx.lineWidth*=2):l===0?ctx.strokeStyle="#888":l===s.max?ctx.strokeStyle="#F7FF68":ctx.strokeStyle="#00FF69",ctx.strokeRect(a*n,r*n,n,n);const c=core.material.images.images[`skill${s.index}.png`];ctx.drawImage(c,a*n,r*n,n,n),selected.value===s.index&&(ctx.fillStyle="#ff04",ctx.fillRect(a*n,r*n,n,n)),ctx.restore()})}function click(t){const i=t.offsetX,n=t.offsetY,a=canvas.width/devicePixelRatio/11,r=Math.floor(i/a),l=Math.floor(n/a);if(r%2!==1||l%2!==1)return;const c=Math.floor(r/2)+1,d=Math.floor(l/2)+1,u=skills.value.find(h=>h.loc[0]===c&&h.loc[1]===d);!u||(selected.value!==u.index?selected.value=u.index:upgrade(u.index))}function upgrade(t){core.upgradeSkill(t)?(tip$1("success","\u5347\u7EA7\u6210\u529F\uFF01"),update.value=!update.value,core.status.route.push(`skill:${selected.value}`)):tip$1("error","\u5347\u7EA7\u5931\u8D25\uFF01")}function key(t){const i=keycode(t.keyCode);(i===KeyCode.Escape||i===KeyCode.KeyX||i===KeyCode.KeyJ)&&exit(),(i===KeyCode.Space||i===KeyCode.Enter||i===KeyCode.KeyC)&&upgrade(selected.value)}onMounted(async()=>{canvas=document.getElementById("skill-canvas"),ctx=canvas.getContext("2d"),resize(),draw(),await S(50),core.plugin.transition.value&&await S(600),canvas.addEventListener("click",click),document.addEventListener("keyup",key)}),onUnmounted(()=>{document.removeEventListener("keyup",key)});function selectChapter(t){const n=chapterList.indexOf(chapter.value)+t;has(chapterList[n])&&flags.chapter>n&&(selected.value=core.plugin.skills[chapterList[n]][0].index,chapter.value=chapterList[n],update.value=!update.value,flags.skillTree=n,draw())}return(t,i)=>{const n=__unplugin_components_1;return openBlock(),createElementBlock("div",_hoisted_1$7,[createBaseVNode("div",_hoisted_2$5,[createBaseVNode("span",{id:"back",class:"button-text tools",onClick:exit},[createVNode(unref(LeftOutlined)),createTextVNode("\u8FD4\u56DE\u6E38\u620F")])]),createBaseVNode("span",_hoisted_3$5,toDisplayString(unref(skill).title),1),createVNode(n,{dashed:"",style:{"border-color":"#ddd4"},id:"divider"}),createBaseVNode("div",_hoisted_4$4,[createVNode(Scroll,{id:"skill-desc","no-scroll":!0},{default:withCtx(()=>[createBaseVNode("span",{innerHTML:unref(desc)},null,8,_hoisted_5$4)]),_:1}),createBaseVNode("div",_hoisted_6$4,[unref(level)>0?(openBlock(),createElementBlock("span",{key:0,innerHTML:unref(effect)[0]},null,8,_hoisted_7$4)):createCommentVNode("",!0),unref(level)[createBaseVNode("div",_hoisted_14$2,[_hoisted_15$1,(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(front),s=>(openBlock(),createElementBlock("span",{style:normalizeStyle({color:s.startsWith("a")?"#fff":"#f44"})},toDisplayString(s.slice(1)),5))),256))])]),_:1}),createVNode(n,{dashed:"",class:"upgrade-divider"}),createBaseVNode("div",_hoisted_16$1,[createBaseVNode("span",{class:"button-text",onClick:i[0]||(i[0]=s=>selectChapter(-1))},[createVNode(unref(LeftOutlined))]),createTextVNode(" \xA0\xA0 "),createBaseVNode("span",null,toDisplayString(chapterDict[chapter.value]),1),createTextVNode(" \xA0\xA0 "),createBaseVNode("span",{class:"button-text",onClick:i[1]||(i[1]=s=>selectChapter(1))},[createVNode(unref(RightOutlined))])])])])])}}}),skillTree_vue_vue_type_style_index_0_scoped_b1be4e88_lang="",SkillTree=_export_sfc(_sfc_main$7,[["__scopeId","data-v-b1be4e88"]]),index="";function init$4(){return{splitArea,getMapDrawData}}let area={};const bfsCache={},drawCache={},arrow={leftPortal:"left",rightPortal:"right",upPortal:"up",downPortal:"down"};function splitArea(){area={};const e=[];for(const t of core.floorIds){if(e.includes(t)||core.status.maps[t].deleted)continue;const i=getMapData(t,!0);if(e.push(...i.maps),i.maps.length>0){const n=core.status.maps[t].title;area[n]=i.maps}}}function getArea(){return area}function getMapDrawData(e,t=5,i=1,n=!1){var w;const s=`${e},${t},${i}`;if(drawCache[s]&&!n)return drawCache[s];const{link:a,maps:r}=getMapData(e,n),l={},c=[],d=core.status.maps[e];let u=-d.width/2,h=d.width/2,f=-d.height/2,g=d.height/2;for(const[_,D]of Object.entries(a)){const[B,P,N,L]=_.split(","),[U,H,W]=D.split(","),K=core.status.maps[B],G=core.status.maps[U],Y=parseInt(P),J=parseInt(N),ot=parseInt(H),ht=parseInt(W),st=K.width,ct=K.height,dt=G.width,mt=G.height;(w=l[B])!=null||(l[B]=[0,0]);const[ft,it]=l[B];if(!l[U]){const bt=core.utils.scan[L].x,vt=core.utils.scan[L].y,wt=ft+(Y-st/2)-(ot-dt/2)+(i*2+t)*bt,Bt=it+(J-ct/2)-(ht-mt/2)+(i*2+t)*vt;l[U]=[wt,Bt]}const[tt,lt]=l[U];c.push([ft+(Y-st/2+.5),it+(J-ct/2+.5),tt+(ot-dt/2+.5),lt+(ht-mt/2+.5)]);const ut=tt-dt/2,at=tt+dt/2,pt=lt-mt/2,gt=lt+mt/2;uth&&(h=at),ptg&&(g=gt)}Object.values(l).forEach(_=>{_[0]-=u,_[1]-=f}),c.forEach(_=>{_[0]-=u,_[2]-=u,_[1]-=f,_[3]-=f}),u-=5,h+=5,f-=5,g+=5;const m={locs:l,line:c,width:h-u,height:g-f};return drawCache[s]=m}function getMapData(e,t=!1){if(has(bfsCache[e])&&!t)return bfsCache[e];const i=[e],n={[e]:!0},s=[e],a={};for(;i.length>0;){const l=i.shift(),c=core.floors[l].changeFloor,d=core.getMapBlocksObj(l);for(const[u,h]of Object.entries(c)){const f=h.floorId;if(f.startsWith(":"))continue;const m=d[u].event.id;if(m in arrow&&!n[f]){const w=`${l},${u},${arrow[m]}`,_=`${f},${h.loc[0]},${h.loc[1]}`;a[w]=_,i.push(f),s.push(f)}}n[l]=!0}const r={maps:s,link:a};return bfsCache[e]=r}const _withScopeId$2=e=>(pushScopeId("data-v-581299e6"),e=e(),popScopeId(),e),_hoisted_1$6={id:"fly"},_hoisted_2$4={id:"tools"},_hoisted_3$4={id:"fly-settings"},_hoisted_4$3={id:"fly-border"},_hoisted_5$3=_withScopeId$2(()=>createBaseVNode("span",null,"\u65E0\u8FB9\u6846\u6A21\u5F0F",-1)),_hoisted_6$3={key:0,id:"fly-tradition"},_hoisted_7$3=_withScopeId$2(()=>createBaseVNode("span",null,"\u4F20\u7EDF\u6309\u952E\u6A21\u5F0F",-1)),_hoisted_8$2={id:"fly-main"},_hoisted_9$2={id:"fly-left"},_hoisted_10$2={id:"area-list"},_hoisted_11$2=["selected","onClick"],_hoisted_12$1={id:"fly-right"},_hoisted_13$1={id:"fly-tools"},_hoisted_14$1={id:"fly-now"},_sfc_main$6=defineComponent({__name:"fly",setup(e){var yt,At;const t=getArea(),i=ref(Object.keys(t).find(q=>t[q].includes(core.status.floorId))),n=ref(core.status.floorId),s=ref(!1),a=ref(!1);let r=isMobile?1.5:3,l=0,c=0,d={},u={};s.value=(yt=core.getLocalStorage("noBorder"))!=null?yt:!1,a.value=(At=core.getLocalStorage("flyTradition"))!=null?At:!1;const h=computed(()=>core.status.maps[n.value]);watch(n,Y),watch(i,q=>{var X;l=0,c=0,r=3,ot=3,t[q]&&!t[q].includes(n.value)&&(n.value=(X=t[q].find(et=>et===core.status.floorId))!=null?X:t[q][0])}),watch(s,q=>{core.setLocalStorage("noBorder",q),d={},N()}),watch(a,q=>{core.setLocalStorage("flyTradition",q)});const f=document.createElement("canvas"),g=f.getContext("2d");let m,w,_,D;function B(){core.plugin.flyOpened.value=!1}const P=computed(()=>core.status.maps[n.value].title);function N(q=!1){const X=s.value?.5:1,et=getMapDrawData(n.value,s.value?0:5,X,q),nt=g,Z=r*devicePixelRatio;f.width=et.width*Z,f.height=et.height*Z,nt.lineWidth=X*devicePixelRatio/2,nt.strokeStyle="#fff",nt.scale(Z,Z),nt.translate(5,5),s.value||et.line.forEach(([rt,St,xt,Mt])=>{nt.beginPath(),nt.moveTo(rt,St),nt.lineTo(xt,Mt),nt.stroke()});for(const[rt,[St,xt]]of Object.entries(et.locs))s.value||L(rt,St,xt),W(rt,St,xt);U()}function L(q,X,et){const nt=s.value?.5:1,Z=g;Z.lineWidth=nt*devicePixelRatio;const rt=core.status.maps[q];core.hasVisitedFloor(q)?Z.fillStyle="#000":Z.fillStyle="#d0d",q===n.value?Z.strokeStyle="gold":Z.strokeStyle="#fff",Z.strokeRect(X-rt.width/2,et-rt.height/2,rt.width,rt.height),Z.fillRect(X-rt.width/2,et-rt.height/2,rt.width,rt.height),q===n.value&&(Z.fillStyle="#ff04",Z.fillRect(X-rt.width/2,et-rt.height/2,rt.width,rt.height))}function U(q=1){w.clearRect(0,0,m.width,m.height),w.drawImage(f,0,0,f.width,f.height,l*devicePixelRatio+(m.width-f.width)/2,c*devicePixelRatio+(m.height-f.height)/2,f.width,f.height)}function H(q,X,et){const nt=core.status.maps[q],Z=r*devicePixelRatio,rt=l*devicePixelRatio+(m.width-f.width)/2+5*Z,St=c*devicePixelRatio+(m.height-f.height)/2+5*Z,xt=rt+(X-nt.width/2)*Z,Mt=St+(et-nt.height/2)*Z,Dt=xt+nt.width*Z,Et=Mt+nt.height*Z;return u[q]=[xt,Mt,Dt,Et],!(d[q]||!s.value&&r<=4||Dt<0||Et<0||xt>m.width||Mt>m.height)}function W(q,X,et,nt=!1){if(!nt&&!H(q,X,et))return;const Z=core.status.maps[q];d[q]=!0;const rt=g;core.drawThumbnail(q,void 0,{all:!0,inFlyMap:!0,x:X-Z.width/2,y:et-Z.height/2,w:Z.width,h:Z.height,ctx:rt,damage:!0}),core.hasVisitedFloor(q)||(rt.fillStyle="#d0d6",rt.fillRect(X-Z.width/2,et-Z.height/2,Z.width,Z.height),rt.fillStyle="#000"),n.value===q&&(rt.fillStyle="#ff04",rt.fillRect(X-Z.width/2,et-Z.height/2,Z.width,Z.height),rt.fillStyle="#000")}function K(){const q=s.value?.5:1,X=getMapDrawData(n.value,s.value?0:5,q);for(const[et,[nt,Z]]of Object.entries(X.locs))H(et,nt,Z)&&W(et,nt,Z,!0)}function G(){let q=_.width,X=_.height,et=0,nt=0;const Z=h.value.width/h.value.height;Z>1&&(X=q/Z,nt=_.height/2-X/2),Z<1&&(q=X*Z,et=_.width/2-q/2),D.fillStyle="#000",D.fillRect(0,0,_.width,_.height),core.drawThumbnail(n.value,void 0,{ctx:D,all:!0,damage:!0,inFlyMap:!0,x:et,y:nt,w:q,h:X})}function Y(){d={},N(),G()}function J(){core.flyTo(n.value)?B():tip$1("error",`\u65E0\u6CD5\u98DE\u5F80${h.value.title}`)}let ot=r;const ht=lodash.exports.debounce(q=>{m.style.transform="",d={},N(),ot=q},200);function st(q){l*=q,c*=q,r=q*r,ht(r),m.style.transform=`scale(${r/ot})`,u={}}let ct=0,dt=0,mt=!1,ft=0,it=0;function tt(q,X){if(vt)return;const et=q-ct,nt=X-dt;l+=et,c+=nt,ct=q,dt=X,K(),U(),(Math.abs(q-ft)>10||Math.abs(X-it)>10)&&(mt=!0)}function lt(q){if(mt)return;const X=q.offsetX*devicePixelRatio,et=q.offsetY*devicePixelRatio;for(const[nt,[Z,rt,St,xt]]of Object.entries(u))X>=Z&&X<=St&&et>=rt&&et<=xt&&(nt===n.value?J():n.value=nt)}function ut(q){i.value=Object.keys(t).find(X=>t[X].includes(q))}function at(q){const X=core.floorIds.indexOf(n.value);let et=X+q;if(et<0&&(et=0),et>=core.floorIds.length&&(et=core.floorIds.length-1),core.status.maps[core.floorIds[et]].deleted)for(;et!==X&&(et-=Math.sign(q),!!core.status.maps[core.floorIds[et]].deleted););n.value=core.floorIds[et],ut(n.value),gt(n.value)}function pt(q){const X=getMapData(n.value);for(const[et,nt]of Object.entries(X.link)){if(!et.startsWith(n.value))continue;if(et.split(",")[3]===q){const rt=nt.split(",")[0];gt(rt),n.value=rt;return}}}function gt(q){const X=getMapDrawData(q,s.value?0:5,s.value?.5:1);if(!X.locs[q])return;const[et,nt]=X.locs[q];l=(-et+X.width/2-5)*r,c=(-nt+X.height/2-5)*r}function bt(q){const X=keycode(q.keyCode);(X===KeyCode.Enter||X===KeyCode.Space||X===KeyCode.KeyC)&&J(),(X===KeyCode.Escape||X===KeyCode.KeyX||X===KeyCode.KeyG)&&B(),a.value?(X===KeyCode.UpArrow&&at(1),X===KeyCode.DownArrow&&at(-1),X===KeyCode.LeftArrow&&at(-10),X===KeyCode.RightArrow&&at(10),X===KeyCode.PageUp&&at(10),X===KeyCode.PageDown&&at(-10)):(X===KeyCode.LeftArrow&&pt("left"),X===KeyCode.RightArrow&&pt("right"),X===KeyCode.UpArrow&&pt("up"),X===KeyCode.DownArrow&&pt("down"),X===KeyCode.PageUp&&at(1),X===KeyCode.PageDown&&at(-1))}let vt=!1,wt=0;function Bt(q){q.touches.length>=2&&(vt=!0,wt=Math.sqrt((q.touches[0].clientX-q.touches[1].clientX)**2+(q.touches[0].clientY-q.touches[1].clientY)**2))}function _t(q){q.touches.length<2&&(vt=!1)}function kt(q){if(!vt)return;const X=Math.sqrt((q.touches[0].clientX-q.touches[1].clientX)**2+(q.touches[0].clientY-q.touches[1].clientY)**2);st(X/wt),wt=X}return onMounted(async()=>{m=document.getElementById("fly-map"),w=m.getContext("2d"),_=document.getElementById("fly-thumbnail"),D=_.getContext("2d");const q=getComputedStyle(m),X=getComputedStyle(_);m.width=parseFloat(q.width)*devicePixelRatio,m.height=parseFloat(q.height)*devicePixelRatio,_.width=parseFloat(X.width)*devicePixelRatio,_.height=parseFloat(X.width)*devicePixelRatio,Array.from(document.getElementsByClassName("fly-settings")).forEach(et=>{et.addEventListener("click",nt=>et.blur())}),gt(n.value),Y(),useDrag(m,tt,(et,nt)=>{ct=et,dt=nt,ft=et,it=nt},()=>{setTimeout(()=>{mt=!1},50)},!0),useWheel(m,(et,nt)=>{const Z=-Math.sign(nt)*.1+1;st(Z)}),await S(50),core.plugin.transition.value&&await S(600),document.addEventListener("keyup",bt),m.addEventListener("touchstart",Bt),m.addEventListener("touchend",_t),m.addEventListener("touchend",kt)}),onUnmounted(()=>{cancelGlobalDrag(tt),document.removeEventListener("keyup",bt)}),(q,X)=>{const et=__unplugin_components_0$1,nt=__unplugin_components_1;return openBlock(),createElementBlock("div",_hoisted_1$6,[createBaseVNode("div",_hoisted_2$4,[createBaseVNode("span",{class:"button-text",onClick:B},[createVNode(unref(LeftOutlined)),createTextVNode(" \u8FD4\u56DE\u6E38\u620F")])]),createBaseVNode("div",_hoisted_3$4,[createBaseVNode("div",_hoisted_4$3,[_hoisted_5$3,createVNode(et,{class:"fly-settings",checked:s.value,"onUpdate:checked":X[0]||(X[0]=Z=>s.value=Z),"checked-children":"ON","un-checked-children":"OFF"},null,8,["checked"])]),unref(isMobile)?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_6$3,[_hoisted_7$3,createVNode(et,{class:"fly-settings",checked:a.value,"onUpdate:checked":X[1]||(X[1]=Z=>a.value=Z),"checked-children":"ON","un-checked-children":"OFF"},null,8,["checked"])]))]),createBaseVNode("div",_hoisted_8$2,[createBaseVNode("div",_hoisted_9$2,[createVNode(Scroll,{id:"fly-area"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_10$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(t),(Z,rt)=>(openBlock(),createElementBlock("span",{selected:i.value===rt,class:"selectable",onClick:St=>i.value=rt},toDisplayString(rt),9,_hoisted_11$2))),256))])]),_:1}),createVNode(nt,{type:"vertical",dashed:"",id:"divider-left"}),createBaseVNode("div",{id:"fly-map-div"},[createBaseVNode("canvas",{id:"fly-map",onClick:lt})])]),createVNode(nt,{id:"divider-right",dashed:"",type:unref(isMobile)?"horizontal":"vertical"},null,8,["type"]),createBaseVNode("div",_hoisted_12$1,[createBaseVNode("canvas",{id:"fly-thumbnail",onClick:J}),createBaseVNode("div",_hoisted_13$1,[createVNode(unref(DoubleLeftOutlined),{onClick:X[2]||(X[2]=Z=>at(-10)),class:"button-text"}),createVNode(unref(LeftOutlined),{onClick:X[3]||(X[3]=Z=>at(-1)),class:"button-text"}),createBaseVNode("span",_hoisted_14$1,toDisplayString(unref(P)),1),createVNode(unref(RightOutlined),{onClick:X[4]||(X[4]=Z=>at(1)),class:"button-text"}),createVNode(unref(DoubleRightOutlined),{onClick:X[5]||(X[5]=Z=>at(10)),class:"button-text"})])])])])}}}),fly_vue_vue_type_style_index_0_scoped_581299e6_lang="",Fly=_export_sfc(_sfc_main$6,[["__scopeId","data-v-581299e6"]]),bookOpened=ref(!1),toolOpened=ref(!1),equipOpened=ref(!1),showStatusBar=ref(!1),settingsOpened=ref(!1),descOpened=ref(!1),skillOpened=ref(!1),skillTreeOpened=ref(!1),flyOpened=ref(!1),transition=ref(!0),noClosePanel=ref(!1);let app;const UI_LIST=[[bookOpened,Book],[toolOpened,Toolbox],[equipOpened,Equipbox],[settingsOpened,Settings],[descOpened,Desc],[skillOpened,Skill],[skillTreeOpened,SkillTree],[flyOpened,Fly]],uiStack=ref([]);function init$3(){return app=document.getElementById("root"),UI_LIST.forEach(([e,t])=>{watch(e,i=>{if(i===!0)uiStack.value.push(markRaw(t)),showApp();else{const n=uiStack.value.findIndex(s=>s===t);uiStack.value.length===1?hideApp(n):uiStack.value.splice(n,1)}})}),{uiStack,transition,bookOpened,toolOpened,equipOpened,showStatusBar,settingsOpened,descOpened,skillOpened,skillTreeOpened,flyOpened}}async function showApp(){core.lockControl(),transition.value?app.style.transition="all 0.6s linear":app.style.transition="none",app.style.display="flex",await S(50),app.style.opacity="1"}async function hideApp(e){transition.value?(app.style.transition="all 0.6s linear",app.style.opacity="0",await S(600)):(app.style.transition="",app.style.opacity="0"),uiStack.value.splice(e,1),app.style.display="none",noClosePanel.value||core.closePanel(),noClosePanel.value=!1}const status=ref(!1);function init$2(){return{statusBarStatus:status}}const chapterShowed=ref(!1),chapterContent=ref("");function init$1(){return{chapterShowed,chapterContent}}const ani=new R;ani.register("rect",0);const path1={MT16:[[23,23],[0,23]],MT15:[[63,4],[61,4],[61,5],[58,5],[58,8],[54,8],[54,11],[51,11],[51,8],[45,8],[45,4],[47,4],[47,6],[51,6],[51,5],[52,5],[52,3],[50,3],[50,5],[48,5],[48,3],[35,3],[35,5],[31,5],[31,7],[34,7],[34,9],[31,9],[31,11],[12,11],[12,8],[1,8],[1,7],[0,7]],MT14:[[127,7],[126,7],[126,8],[124,8],[124,7],[115.2,7],[115.2,9.2],[110.2,9.2],[110.2,11],[109.8,11],[109.8,8.8],[111.8,8.8],[111.8,7],[104,7],[104,3],[100,3],[100,4],[98,4],[98,3],[96,3],[96,6],[95,6],[95,7],[88,7],[88,6],[85,6],[85,8],[83,8],[83,9],[81,9],[81,11],[72,11],[72,5],[68,5],[68,8],[67,8],[67,10],[65,10],[65,11],[62,11],[62,9],[60,9],[60,11],[57,11],[57,9],[54,9]]},camera1=[["MT16",0,10,0,1600,C("sin","in")],["MT15",45,0,0,2324,C("sin","in")],["MT15",40,0,2324,1992,C("sin","out")],["MT15",41,0,5312,498,C("sin","in-out")],["MT15",37,0,5810,1660,C("sin","in")],["MT15",29,0,7470,830,C("sin","out")],["MT15",25,0,11454,996,C("sin","in")],["MT15",12,0,12450,996,j()],["MT15",0,0,13446,1470,C("sin","out")],["MT14",109,0,0,1328,C("sin","in")],["MT14",104,0,1328,332,C("sin","out")],["MT14",92,0,5478,2822,C("sin","in")],["MT14",84,0,8300,1992,j()],["MT14",74,0,10292,2988,j()],["MT14",65,0,13280,2988,j()],["MT14",58,0,16268,1992,j()],["MT14",47,0,18260,3320,j()],["MT14",36,0,21580,3320,j()],["MT14",0,0,24900,9960,j()]];function init1(){const e=["MT13","MT14","MT15"],t=[];e.forEach(i=>{core.status.maps[i].cannotMoveDirectly=!0,core.extractBlocks(i),core.status.maps[i].blocks.forEach(n=>{["animates","items"].includes(n.event.cls)&&!n.event.id.endsWith("Portal")&&t.push([n.x,n.y,i])})}),t.forEach(i=>{core.removeBlock(...i)})}function chaseShake(e){e.ani.mode(shake2(2/32,O(1,1,1,1,1,1,1,1,1,1,1,1)),!0).time(5e4).shake(1,0)}async function wolfMove(e){core.moveBlock(23,17,Array(6).fill("down"),80),await S(550),core.setBlock(508,23,23)}function judgeFail1(e){e.ani.ticker.add(()=>{core.status.hero.loc.x>core.bigmap.offsetX/32+17&&(e.end(),ani.time(750).apply("rect",0),core.lose("\u9003\u8DD1\u5931\u8D25"))})}function drawBack(e){e.on("MT15",0,()=>{ani.mode(C("sin","out")).time(1500).absolute().apply("rect",64);const t=core.createCanvas("chaseBack",0,0,480,480,120);t.fillStyle="#000";const i=()=>{t||ani.ticker.remove(i),core.clearMap(t),t.fillRect(0,0,480,ani.value.rect),t.fillRect(0,480,480,-ani.value.rect)};ani.ticker.add(i)})}function para1(e){e.on("MT15",830,()=>{for(let t=53;t<58;t++)for(let i=3;i<8;i++)core.setBlock(336,t,i);core.drawAnimate("explosion3",55,5),core.drawAnimate("stone",55,5)}),e.on("MT15",1080,()=>{core.setBlock(336,58,9),core.setBlock(336,59,9),core.drawAnimate("explosion1",58,9),core.drawAnimate("explosion1",59,9)}),e.on("MT15",1190,()=>{core.setBlock(336,53,8),core.setBlock(336,52,8),core.drawAnimate("explosion1",53,8),core.drawAnimate("explosion1",52,8)}),e.on("MT15",1580,()=>{core.setBlock(336,51,7),core.drawAnimate("explosion1",51,7)}),e.on("MT15",1830,()=>{core.setBlock(336,47,7),core.setBlock(336,49,9),core.drawAnimate("explosion1",49,9),core.drawAnimate("explosion1",47,7)})}function para2(e){e.onHeroLoc("MT15",()=>{core.setBlock(336,45,9),core.drawAnimate("explosion1",45,9)},45,8),e.onHeroLoc("MT15",()=>{core.setBlock(336,44,6),core.drawAnimate("explosion1",44,6)},45,6),e.onHeroLoc("MT15",()=>{core.setBlock(336,44,4),core.drawAnimate("explosion1",44,4),core.drawAnimate("explosion1",48,6),core.removeBlock(48,6)},45,4),e.onHeroLoc("MT15",()=>{core.setBlock(336,41,4),core.setBlock(336,32,6),core.drawAnimate("explosion1",41,4),core.drawAnimate("explosion1",32,6)},41,3),e.onHeroLoc("MT15",()=>{core.drawAnimate("explosion3",37,7),core.vibrate("vertical",1e3,25,10);for(let t=36;t<42;t++)for(let i=4;i<11;i++)core.setBlock(336,t,i)},35,3),e.onHeroLoc("MT15",()=>{core.vibrate("vertical",1e4,25,1),core.removeBlock(34,8),core.removeBlock(33,8),core.drawAnimate("explosion1",34,8),core.drawAnimate("explosion1",33,8)},31,5),e.onHeroLoc("MT15",()=>{core.setBlock(336,32,9),core.drawAnimate("explosion1",32,9)},33,7),e.onHeroLoc("MT15",()=>{core.removeBlock(32,9),core.drawAnimate("explosion1",32,9)},[33,34,34],9);for(let t=19;t<31;t++){const i=t;e.onHeroLoc("MT15",()=>{core.setBlock(336,i+1,11),core.drawAnimate("explosion1",i+1,11)},i,11)}}function para3(e){e.onHeroLoc("MT14",()=>{core.setBlock(336,126,6),core.setBlock(336,124,6),core.setBlock(336,124,9),core.setBlock(336,126,9),core.drawAnimate("explosion1",126,6),core.drawAnimate("explosion1",124,6),core.drawAnimate("explosion1",124,9),core.drawAnimate("explosion1",126,9)},126,7),e.onHeroLoc("MT14",()=>{core.setBlock(508,127,7),core.jumpBlock(127,7,112,7,500,!0),setTimeout(()=>{core.setBlock(509,112,7)},520),core.drawHeroAnimate("amazed"),core.setBlock(336,121,6),core.setBlock(336,122,6),core.setBlock(336,120,8),core.setBlock(336,121,8),core.setBlock(336,122,8),core.drawAnimate("explosion1",121,6),core.drawAnimate("explosion1",122,6),core.drawAnimate("explosion1",120,8),core.drawAnimate("explosion1",121,8),core.drawAnimate("explosion1",122,8)},123,7),e.onHeroLoc("MT14",()=>{core.setBlock(336,109,11),core.removeBlock(112,8),core.drawAnimate("explosion1",109,11),core.drawAnimate("explosion1",112,8),core.insertAction([{type:"moveHero",time:400,steps:["backward:1"]}]),e.onHeroLoc("MT14",()=>{core.jumpBlock(112,7,110,4,500,!0),core.drawHeroAnimate("amazed"),setTimeout(()=>{core.setBlock(506,110,4)},540)},112,8)},110,10),e.onHeroLoc("MT14",()=>{core.setBlock(336,117,6),core.setBlock(336,116,6),core.setBlock(336,115,6),core.setBlock(336,114,6),core.setBlock(336,117,8),core.setBlock(336,116,8),core.drawAnimate("explosion1",117,6),core.drawAnimate("explosion1",116,6),core.drawAnimate("explosion1",115,6),core.drawAnimate("explosion1",114,6),core.drawAnimate("explosion1",116,8),core.drawAnimate("explosion1",117,8)},118,7),e.onHeroLoc("MT14",()=>{core.setBlock(336,112,8),core.setBlock(336,113,7),core.drawAnimate("explosion1",112,8),core.drawAnimate("explosion1",113,7)},112,7),e.onHeroLoc("MT14",()=>{for(let t=111;t<=115;t++)core.setBlock(336,t,10),core.drawAnimate("explosion1",t,10);core.setBlock(336,112,8),core.drawAnimate("explosion1",112,8)},115,7),e.onHeroLoc("MT14",()=>{core.jumpBlock(97,4,120,-3,2e3);for(let t=109;t<=120;t++)for(let i=3;i<=11;i++)i!=7&&core.setBlock(336,t,i);core.drawAnimate("explosion2",119,7),core.removeBlock(105,7),core.drawAnimate("explosion1",105,7)},110,7),e.onHeroLoc("MT14",()=>{core.setBlock(336,95,3),core.setBlock(336,93,6),core.drawAnimate("explosion1",95,3),core.drawAnimate("explosion1",93,6)},97,3),e.onHeroLoc("MT14",()=>{core.setBlock(336,87,4),core.setBlock(336,88,5),core.drawAnimate("explosion1",87,4),core.drawAnimate("explosion1",88,5)},88,6),e.onHeroLoc("MT14",()=>{core.setBlock(336,84,6),core.setBlock(336,85,5),core.setBlock(336,86,8),core.drawAnimate("explosion1",84,6),core.drawAnimate("explosion1",85,5),core.drawAnimate("explosion1",86,8)},86,6),e.onHeroLoc("MT14",()=>{core.setBlock(336,81,8),core.setBlock(336,82,11),core.drawAnimate("explosion1",81,8),core.drawAnimate("explosion1",82,11)},81,9),e.onHeroLoc("MT14",()=>{core.setBlock(336,73,8),core.setBlock(336,72,4),core.drawAnimate("explosion1",73,8),core.drawAnimate("explosion1",72,4)},72,11),e.onHeroLoc("MT14",()=>{for(let t=74;t<86;t++)for(let i=3;i<12;i++)core.setBlock(336,t,i);core.drawAnimate("explosion2",79,7),core.vibrate("vertical",4e3,25,15)},71,7),e.onHeroLoc("MT14",()=>{core.setBlock(336,68,4),core.setBlock(336,67,6),core.drawAnimate("explosion1",68,4),core.drawAnimate("explosion1",67,6)},68,5),e.onHeroLoc("MT14",()=>{for(let t=65;t<=72;t++)for(let i=3;i<=9;i++)core.setBlock(336,t,i);core.setBlock(336,72,10),core.setBlock(336,72,11),core.drawAnimate("explosion3",69,5)},67,10),e.onHeroLoc("MT14",()=>{core.setBlock(336,63,9),core.setBlock(336,60,8),core.setBlock(336,56,11),core.drawAnimate("explosion1",63,9),core.drawAnimate("explosion1",60,8),core.drawAnimate("explosion1",56,11)},64,11),e.onHeroLoc("MT14",()=>{for(let t=58;t<=64;t++)for(let i=3;i<=11;i++)core.setBlock(336,t,i);core.drawAnimate("explosion2",61,7)},57,9);for(let t=21;t<49;t++)e.onHeroLoc("MT14",()=>{for(let i=3;i<=11;i++)core.setBlock(336,t+4,i),core.drawAnimate("explosion1",t+4,i)},t);e.onHeroLoc("MT14",async()=>{flags.finishChase1=!0,core.autoFixRouteBoss(),core.showStatusBar(),ani.time(750).apply("rect",0),e.end(),await S(750),ani.ticker.destroy(),core.deleteCanvas("chaseBack")},21)}function getChaseDataByIndex(e){if(e===1)return init1(),{camera:camera1,fns:[para1,para2,para3,chaseShake,wolfMove,drawBack,judgeFail1],path:path1};throw new ReferenceError("Deliver wrong chase index.")}function init(){return{startChase}}function shake2(e,t){let i=0;return n=>(i+=Math.PI/2,Math.sin(i)*e*t(n))}class Chase{constructor(t,i,n,s=!1){Q(this,"ani",new R);Q(this,"path");Q(this,"showPath",!1);this.path=t,flags.__lockViewport__=!0,flags.onChase=!0,flags.chaseTime={[core.status.floorId]:Date.now()},this.ani.absolute().time(0).move(core.bigmap.offsetX/32,core.bigmap.offsetY/32),i.forEach(l=>l(this));const a=[],r=core.createCanvas("chasePath",0,0,0,0,35);for(const[l,c,d,u,h,f,g]of n)a.includes(l)||(this.on(l,0,()=>{flags.__lockViewport__=!1,core.drawHero(),flags.__lockViewport__=!0,this.ani.time(0).move(core.bigmap.offsetX/32,core.bigmap.offsetY/32)},!0),a.push(l)),has(g)?this.on(l,u,()=>{this.ani.time(h).mode(f).moveAs(g)}):this.on(l,u,()=>{this.ani.time(h).mode(f).move(c,d)});if(this.ani.ticker.add(()=>{flags.floorChanging||(core.setViewport(this.ani.x*32,this.ani.y*32),core.relocateCanvas(r,-this.ani.x*32,-this.ani.y*32))}),s)for(const[l,c]of Object.entries(t))this.on(l,0,()=>{const d=core.status.maps[l];core.resizeCanvas(r,d.width*32,d.height*32),r.beginPath(),r.moveTo(c[0][0]*32+16,c[1][1]*32+24),r.lineJoin="round",r.lineWidth=4,r.strokeStyle="cyan",r.globalAlpha=.3,c.forEach((u,h,f)=>{if(h===0)return;const[g,m]=u;r.lineTo(g*32+16,m*32+24)}),r.stroke()})}on(t,i,n,s=!1){const a=()=>{var r,l,c;!((r=flags.chaseTime)!=null&&r[t])||Date.now()-((c=(l=flags.chaseTime)==null?void 0:l[t])!=null?c:0)>=i&&(n(this),this.ani.ticker.remove(a))};this.ani.ticker.add(a,s)}onHeroLoc(t,i,n,s,a=0){if(a===1){typeof n=="number"&&(n=[n]),typeof s=="number"&&(s=[s]),n.forEach(c=>{s.forEach(d=>{this.onHeroLoc(t,i,c,d)})});return}const r=()=>{if(core.status.floorId!==t)return!1;if(has(n)){if(typeof n=="number"){if(core.status.hero.loc.x!==n)return!1}else if(!n.includes(core.status.hero.loc.x))return!1}if(has(s)){if(typeof s=="number"){if(core.status.hero.loc.y!==s)return!1}else if(!s.includes(core.status.hero.loc.y))return!1}return!0},l=()=>{if(r()){i(this);try{this.ani.ticker.remove(l)}catch(c){}}};this.ani.ticker.add(l)}setPathShowStatus(t){this.showPath=t}end(){this.ani.ticker.destroy(),delete flags.onChase,delete flags.chase,flags.__lockViewport__=!1,core.deleteCanvas("chasePath")}}async function startChase(e){const t=getChaseDataByIndex(e);flags.chaseIndex=e,flags.onChase=!0,await S(20),flags.chase=new Chase(t.path,t.fns,t.camera,flags.chaseHard===0)}function forward(){const e=[init$a(),init$3(),init$7(),init$8(),init$9(),init$2(),init$6(),init$5(),init$1(),init$4(),init()];(async function(){for(const t of e)for(const i in t){const n=t[i];i in core.plugin||(core.plugin[i]=n),n instanceof Function&&(i in core||i.startsWith("_")||(core[i]=n))}console.log("\u63D2\u4EF6\u8F6C\u53D1\u5B8C\u6210\uFF01")})()}main.forward=forward;const _hoisted_1$5={id:"ui"},_sfc_main$5=defineComponent({__name:"App",setup(e){return(t,i)=>(openBlock(),createElementBlock("div",_hoisted_1$5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(uiStack),n=>(openBlock(),createBlock(resolveDynamicComponent(n)))),256))]))}}),App_vue_vue_type_style_index_0_scoped_9668aeb3_lang="",App=_export_sfc(_sfc_main$5,[["__scopeId","data-v-9668aeb3"]]),_imports_0="/HumanBreak/project/images/skill.png",_imports_1="/HumanBreak/project/images/hp.png",_imports_2="/HumanBreak/project/images/atk.png",_imports_3="/HumanBreak/project/images/def.png",_imports_4="/HumanBreak/project/images/IQ.png",_imports_5="/HumanBreak/project/images/money.png",_imports_6="/HumanBreak/project/images/exp.png",_hoisted_1$4=["id"],_hoisted_2$3=["id"],_hoisted_3$3=["id","selected"],_hoisted_4$2=["id","selected"],_hoisted_5$2=["id","selected"],_hoisted_6$2=["id","selected"],_hoisted_7$2=["id","selected"],_sfc_main$4=defineComponent({__name:"box",props:{resizable:{type:Boolean},left:null,top:null,width:null,height:null},emits:["update:left","update:top","update:width","update:height"],setup(e,{emit:t}){const i=e,n=(1e8*Math.random()).toFixed(0),s=ref(!1);let a=0,r,l,c,d,u,h;const f=ref(isMobile?window.innerWidth-100:window.innerWidth*.175),g=ref(isMobile?250:window.innerHeight-100),m=ref(50),w=ref(50);watch(m,Y=>t("update:left",Y)),watch(w,Y=>t("update:top",Y)),watch(f,Y=>t("update:width",Y)),watch(g,Y=>t("update:height",Y));async function _(){s.value=!0,a=window.setTimeout(()=>{s.value=!1},4e3)}let D=0,B=0;function P(Y,J){const ot=getComputedStyle(r),ht=parseFloat(ot.left),st=parseFloat(ot.top);m.value=ht+Y-D,w.value=st+J-B,r.style.left=`${m.value}px`,r.style.top=`${w.value}px`,s.value=!0,clearTimeout(a),D=Y,B=J}let N=m.value+f.value;function L(Y,J){r.style.left=`${Y}px`,f.value=N-Y,m.value=Y,r.style.width=`${f.value}px`}let U=w.value+g.value;function H(Y,J){r.style.top=`${J}px`,g.value=U-J,w.value=J,r.style.height=`${g.value}px`}function W(Y,J){const ot=getComputedStyle(r);f.value=Y-parseFloat(ot.left),r.style.width=`${f.value}px`}function K(Y,J){const ot=getComputedStyle(r);g.value=J-parseFloat(ot.top),r.style.height=`${g.value}px`}function G(){r=document.getElementById(`box-${n}`),document.getElementById(`box-move-${n}`),l=document.getElementById(`border-left-${n}`),d=document.getElementById(`border-top-${n}`),c=document.getElementById(`border-right-${n}`),u=document.getElementById(`border-bottom-${n}`),h=document.getElementById(`box-drag-${n}`),r&&(has(i.left)&&(m.value=i.left),has(i.top)&&(w.value=i.top),has(i.width)&&(f.value=i.width),has(i.height)&&(g.value=i.height),r.style.left=`${m.value}px`,r.style.top=`${w.value}px`,r.style.width=`${f.value}px`,r.style.height=`${g.value}px`)}return onUpdated(G),onMounted(async()=>{await S(50),G(),r&&(useDrag(h,P,(Y,J)=>{D=Y,B=J},()=>{s.value=!1},!0),i.resizable&&(useDrag(l,L,(Y,J)=>{N=m.value+f.value},void 0,!0),useDrag(d,H,(Y,J)=>{U=w.value+g.value},void 0,!0),useDrag(c,W,void 0,void 0,!0),useDrag(u,K,void 0,void 0,!0)))}),onUnmounted(()=>{cancelGlobalDrag(P),i.resizable&&(cancelGlobalDrag(L),cancelGlobalDrag(H),cancelGlobalDrag(W),cancelGlobalDrag(K))}),(Y,J)=>(openBlock(),createElementBlock("div",{id:`box-${unref(n)}`,class:"box"},[createBaseVNode("div",{id:`box-main-${unref(n)}`,class:"box-main",onClick:_},[renderSlot(Y.$slots,"default",{},void 0,!0)],8,_hoisted_2$3),createBaseVNode("div",{id:`box-move-${unref(n)}`,class:"box-move",selected:s.value},[createVNode(unref(DragOutlined),{id:`box-drag-${unref(n)}`,class:"box-drag",style:{right:"0",bottom:"0",position:"absolute"}},null,8,["id"])],8,_hoisted_3$3),createBaseVNode("div",{class:"border border-vertical border-left",id:`border-left-${unref(n)}`,selected:s.value&&e.resizable},null,8,_hoisted_4$2),createBaseVNode("div",{class:"border border-horizontal border-top",id:`border-top-${unref(n)}`,selected:s.value&&e.resizable},null,8,_hoisted_5$2),createBaseVNode("div",{class:"border border-vertical border-right",id:`border-right-${unref(n)}`,selected:s.value&&e.resizable},null,8,_hoisted_6$2),createBaseVNode("div",{class:"border border-horizontal border-bottom",id:`border-bottom-${unref(n)}`,selected:s.value&&e.resizable},null,8,_hoisted_7$2)],8,_hoisted_1$4))}}),box_vue_vue_type_style_index_0_scoped_c65890c4_lang="",Box=_export_sfc(_sfc_main$4,[["__scopeId","data-v-c65890c4"]]),_withScopeId$1=e=>(pushScopeId("data-v-8d174b23"),e=e(),popScopeId(),e),_hoisted_1$3={id:"status-bar"},_hoisted_2$2={id:"status-div"},_hoisted_3$2={id:"status-lv"},_hoisted_4$1={id:"status-skill",class:"status-item"},_hoisted_5$1=_withScopeId$1(()=>createBaseVNode("img",{src:_imports_0,class:"status-icon"},null,-1)),_hoisted_6$1={id:"status-hp",class:"status-item"},_hoisted_7$1=_withScopeId$1(()=>createBaseVNode("img",{src:_imports_1,class:"status-icon"},null,-1)),_hoisted_8$1={class:"status-item-bold"},_hoisted_9$1={id:"status-hpmax",class:"status-extra status-item-bold"},_hoisted_10$1={key:0,id:"status-spring",class:"status-extra"},_hoisted_11$1={id:"status-atk",class:"status-item"},_hoisted_12=_withScopeId$1(()=>createBaseVNode("img",{src:_imports_2,class:"status-icon"},null,-1)),_hoisted_13={class:"status-item-bold"},_hoisted_14={id:"status-mana",class:"status-extra status-item-bold"},_hoisted_15={id:"status-def",class:"status-item status-item-bold"},_hoisted_16=_withScopeId$1(()=>createBaseVNode("img",{src:_imports_3,class:"status-icon"},null,-1)),_hoisted_17={id:"status-mdef",class:"status-item status-item-bold"},_hoisted_18=_withScopeId$1(()=>createBaseVNode("img",{src:_imports_4,class:"status-icon"},null,-1)),_hoisted_19={id:"status-money",class:"status-item status-item-bold"},_hoisted_20=_withScopeId$1(()=>createBaseVNode("img",{src:_imports_5,class:"status-icon"},null,-1)),_hoisted_21={id:"status-exp",class:"status-item status-item-bold"},_hoisted_22=_withScopeId$1(()=>createBaseVNode("img",{src:_imports_6,class:"status-icon"},null,-1)),_hoisted_23={id:"status-key",class:"status-item status-item-bold"},_hoisted_24={style:{color:"#fca","padding-left":"10%"}},_hoisted_25={style:{color:"#aad"}},_hoisted_26={style:{color:"#f88","padding-right":"10%"}},_hoisted_27={key:0,class:"status-item"},_hoisted_28={key:1,class:"status-item"},_sfc_main$3=defineComponent({__name:"statusBar",setup(e){const t=ref(isMobile?window.innerWidth-100:window.innerWidth*.175),i=ref(isMobile?250:window.innerHeight-100),n=ref(!1),s=core.formatBigNumber;watch(t,B=>n.value=!n.value),watch(i,B=>n.value=!n.value);const a=shallowReactive({}),r=shallowReactive([]),l=ref(),c=ref(),d=ref("\u65E0"),u=ref(0),h=ref(),f=ref(core.getFlag("chapter",0)>0),g=["hp","atk","def","mdef","hpmax","mana","money","exp","lv"];watch(status,m);function m(){var B,P;g.forEach(N=>{a[N]=core.getRealStatus(N)}),r[0]=core.itemCount("yellowKey"),r[1]=core.itemCount("blueKey"),r[2]=core.itemCount("redKey"),l.value=(B=core.status.thisMap)==null?void 0:B.title,c.value=core.getLvName(a.lv),flags.blade&&flags.bladeOn?(d.value="\u65AD\u706D\u4E4B\u5203",a.atk*=1+core.getSkillLevel(2)/10,a.def*=1-core.getSkillLevel(2)/10):flags.shield&&flags.shieldOn?(d.value="\u94F8\u5251\u4E3A\u76FE",a.def*=1+core.getSkillLevel(10)/10,a.atk*=1-core.getSkillLevel(10)/10):d.value="\u65E0",u.value=(P=core.getNextLvUpNeed())!=null?P:0,core.hasFlag("spring")&&(h.value=50-flags.springCount),f.value=core.getFlag("chapter",0)>0}function w(B){B.stopPropagation(),core.useItem("skill1")}function _(B){B.stopPropagation(),core.useItem("cross")}function D(B){B.stopPropagation(),core.ui._drawViewMaps()}return(B,P)=>(openBlock(),createElementBlock("div",_hoisted_1$3,[createVNode(Box,{resizable:!0,width:t.value,"onUpdate:width":P[1]||(P[1]=N=>t.value=N),height:i.value,"onUpdate:height":P[2]||(P[2]=N=>i.value=N)},{default:withCtx(()=>[createVNode(Scroll,{id:"status-main",update:n.value,"onUpdate:update":P[0]||(P[0]=N=>n.value=N),"no-scroll":!0},{default:withCtx(()=>{var N,L,U;return[createBaseVNode("div",_hoisted_2$2,[createBaseVNode("span",{id:"status-floor",onClick:D,class:"button-text"},toDisplayString(l.value),1),createBaseVNode("span",_hoisted_3$2,toDisplayString(c.value),1),createBaseVNode("div",_hoisted_4$1,[_hoisted_5$1,createBaseVNode("span",null,toDisplayString(d.value),1)]),createBaseVNode("div",_hoisted_6$1,[_hoisted_7$1,createBaseVNode("span",_hoisted_8$1,toDisplayString(unref(s)(unref(a).hp)),1),createBaseVNode("span",_hoisted_9$1,"+"+toDisplayString(unref(s)(unref(a).hpmax))+"/t",1),unref(has)(h.value)?(openBlock(),createElementBlock("span",_hoisted_10$1,"\u5269\u4F59"+toDisplayString(h.value),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_11$1,[_hoisted_12,createBaseVNode("span",_hoisted_13,toDisplayString(unref(s)(unref(a).atk)),1),createBaseVNode("span",_hoisted_14,"+"+toDisplayString(unref(s)(unref(a).mana)),1)]),createBaseVNode("div",_hoisted_15,[_hoisted_16,createBaseVNode("span",null,toDisplayString(unref(s)(unref(a).def)),1)]),createBaseVNode("div",_hoisted_17,[_hoisted_18,createBaseVNode("span",null,toDisplayString(unref(s)(unref(a).mdef)),1)]),createBaseVNode("div",_hoisted_19,[_hoisted_20,createBaseVNode("span",null,toDisplayString(unref(s)(unref(a).money)),1)]),createBaseVNode("div",_hoisted_21,[_hoisted_22,createBaseVNode("span",null,toDisplayString(unref(s)(u.value)),1)]),createBaseVNode("div",_hoisted_23,[createBaseVNode("span",_hoisted_24,toDisplayString((N=unref(r)[0])==null?void 0:N.toString().padStart(2,"0")),1),createBaseVNode("span",_hoisted_25,toDisplayString((L=unref(r)[1])==null?void 0:L.toString().padStart(2,"0")),1),createBaseVNode("span",_hoisted_26,toDisplayString((U=unref(r)[2])==null?void 0:U.toString().padStart(2,"0")),1)]),f.value?(openBlock(),createElementBlock("div",_hoisted_27,[createBaseVNode("span",{id:"skill-tree",class:"button-text",onClick:w},"\u6280\u80FD\u6811")])):createCommentVNode("",!0),f.value?(openBlock(),createElementBlock("div",_hoisted_28,[createBaseVNode("span",{id:"status-skill",class:"button-text",onClick:_},"\u67E5\u770B\u6280\u80FD")])):createCommentVNode("",!0)])]}),_:1},8,["update"])]),_:1},8,["width","height"])]))}}),statusBar_vue_vue_type_style_index_0_scoped_8d174b23_lang="",StatusBar=_export_sfc(_sfc_main$3,[["__scopeId","data-v-8d174b23"]]),_hoisted_1$2={id:"marked-enemy"},_hoisted_2$1={class:"marked-main"},_hoisted_3$1={class:"marked-info"},_hoisted_4={class:"marked-name marked-item"},_hoisted_5={class:"marked-damage marked-item"},_hoisted_6={class:"marked-critical marked-item"},_hoisted_7={class:"marked-critical-damage marked-item"},_hoisted_8={class:"marked-def marked-item"},_hoisted_9={class:"marked-button"},_hoisted_10=["onClick"],_hoisted_11=["onClick"],_sfc_main$2=defineComponent({__name:"markedEnemy",setup(e){var u,h;const t=(h=(u=core.status.thisMap)==null?void 0:u.ratio)!=null?h:1;let i=getMarkedEnemy();watch(checkMarkedStatus,s);const n=reactive({});function s(){i.push(...i.splice(0,i.length));for(const f in n)i.includes(f)||delete n[f]}function a(f){return has(n[f])||(n[f]={left:window.innerWidth-300,top:100,width:200,height:150,hidden:!1}),n[f]}function r(f){return core.material.enemys[f].name}function l(f){var g,m;return(m=core.formatBigNumber((g=core.getDamageInfo(f))==null?void 0:g.damage))!=null?m:"???"}function c(f){var g,m;return(m=(g=core.nextCriticals(f,1)[0])==null?void 0:g.map(w=>core.formatBigNumber(w)))!=null?m:[0,0]}function d(f){return core.formatBigNumber(core.getDefDamage(f,t))}return(f,g)=>(openBlock(),createElementBlock("div",_hoisted_1$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(i),m=>(openBlock(),createElementBlock("div",null,[a(m).hidden?createCommentVNode("",!0):(openBlock(),createBlock(Box,{key:m,left:a(m).left,"onUpdate:left":w=>a(m).left=w,top:a(m).top,"onUpdate:top":w=>a(m).top=w,width:a(m).width,"onUpdate:width":w=>a(m).width=w,height:a(m).height,"onUpdate:height":w=>a(m).height=w,resizable:!0},{default:withCtx(()=>[createVNode(Scroll,{class:"box-scroll","no-scroll":!0},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",_hoisted_3$1,[createVNode(_sfc_main$l,{id:m,width:24,height:24},null,8,["id"]),createBaseVNode("span",_hoisted_4,toDisplayString(r(m)),1)]),createBaseVNode("span",_hoisted_5,"\u4F24\u5BB3\uFF1A"+toDisplayString(l(m)),1),createBaseVNode("span",_hoisted_6,"\u4E34\u754C\uFF1A"+toDisplayString(c(m)[0]),1),createBaseVNode("span",_hoisted_7,"\u51CF\u4F24\uFF1A"+toDisplayString(c(m)[1]),1),createBaseVNode("span",_hoisted_8,toDisplayString(unref(t))+"\u9632\uFF1A"+toDisplayString(d(m)),1),createBaseVNode("div",_hoisted_9,[createBaseVNode("span",{class:"marked-hide button-text",onClick:withModifiers(w=>a(m).hidden=!0,["stop"])},"\u9690\u85CF\u76D2\u5B50",8,_hoisted_10),createBaseVNode("span",{class:"marked-cancel button-text",onClick:withModifiers(w=>unref(unmarkEnemy)(m),["stop"])},"\u53D6\u6D88\u6807\u8BB0",8,_hoisted_11)])])]),_:2},1024)]),_:2},1032,["left","onUpdate:left","top","onUpdate:top","width","onUpdate:width","height","onUpdate:height"]))]))),256))]))}}),markedEnemy_vue_vue_type_style_index_0_scoped_5d5d9f17_lang="",MarkedEnemy=_export_sfc(_sfc_main$2,[["__scopeId","data-v-5d5d9f17"]]),_withScopeId=e=>(pushScopeId("data-v-74e3c165"),e=e(),popScopeId(),e),_hoisted_1$1={id:"chapter"},_hoisted_2=_withScopeId(()=>createBaseVNode("canvas",{id:"chapter-back"},null,-1)),_hoisted_3={id:"chapter-text"},_sfc_main$1=defineComponent({__name:"chapter",props:{chapter:null},setup(e){const t=e;let i,n,s;return onMounted(async()=>{i=document.getElementById("chapter-back"),n=i.getContext("2d"),s=document.getElementById("chapter-text");const a=new R,r=window.innerWidth*devicePixelRatio,l=window.innerHeight*devicePixelRatio;n.font="5vh scroll";const c=n.measureText(t.chapter).width,d=l*.05;a.register("rect",0),a.register("line",-10),a.register("lineOpacity",1),a.register("rect2",l/2),a.register("text",window.innerWidth+10+c),i.width=r,i.height=l,i.style.width=`${window.innerWidth}px`,i.style.height=`${window.innerHeight}px`,s.style.left=`${r+10}px`,s.style.top=`${window.innerHeight/2-l*.025}px`,s.style.height=`${l*.05}px`,s.style.width=`${c}px`;let u=!1,h=!1;a.ticker.add(f=>{if(!(!has(f)||isNaN(f))){if(!h){h=!0;return}f>=4050&&(chapterShowed.value=!1,a.ticker.destroy()),!u&&f>=1500&&(u=!0,core.playSound("chapter.mp3")),n.restore(),n.save(),s.style.left=`${a.value.text}px`,n.fillStyle="#000",n.clearRect(0,0,r,l),f<=2e3?(n.fillRect(0,l/2,r,-a.value.rect),n.fillRect(0,l/2,r,a.value.rect)):f>=2e3&&f<=3050&&(n.fillRect(0,0,r,a.value.rect2),n.fillRect(0,l,r,-a.value.rect2)),n.shadowColor="#fff",n.shadowBlur=3,n.shadowOffsetX=0,n.shadowOffsetY=0,n.lineWidth=3,n.strokeStyle="#fff",n.fillStyle="#fff",n.globalAlpha=a.value.lineOpacity,n.beginPath(),n.moveTo(0,l/2-d),n.lineTo(a.value.line,l/2-d),n.stroke(),n.beginPath(),n.moveTo(r,l/2+d),n.lineTo(r-a.value.line,l/2+d),n.stroke(),n.shadowBlur=0,n.filter="blur(5px)",n.beginPath(),n.arc(a.value.line,l/2-d,10,0,Math.PI*2),n.fill(),n.beginPath(),n.arc(r-a.value.line,l/2+d,10,0,Math.PI*2),n.fill()}}),a.mode(C("tan","center")).time(3e3).absolute().apply("line",r+10).mode(C("sin","in")).time(1e3).apply("rect",l/2).mode(C("tan","center")).time(3e3).apply("text",-c*2-10),await S(2e3),a.mode(C("sin","in")).time(1e3).apply("rect2",0),await S(1e3),a.mode(C("sin","out")).time(1e3).apply("lineOpacity",0)}),(a,r)=>(openBlock(),createElementBlock("div",_hoisted_1$1,[_hoisted_2,createBaseVNode("span",_hoisted_3,toDisplayString(e.chapter),1)]))}}),chapter_vue_vue_type_style_index_0_scoped_74e3c165_lang="",Chapter=_export_sfc(_sfc_main$1,[["__scopeId","data-v-74e3c165"]]),_hoisted_1={id:"non-ui"},_sfc_main=defineComponent({__name:"App2",setup(e){return(t,i)=>(openBlock(),createElementBlock("div",_hoisted_1,[unref(showStatusBar)?(openBlock(),createBlock(StatusBar,{key:0})):createCommentVNode("",!0),unref(showMarkedEnemy)?(openBlock(),createBlock(MarkedEnemy,{key:1})):createCommentVNode("",!0),unref(chapterShowed)?(openBlock(),createBlock(Chapter,{key:2,chapter:unref(chapterContent)},null,8,["chapter"])):createCommentVNode("",!0)]))}}),App2_vue_vue_type_style_index_0_scoped_7a936755_lang="",App2=_export_sfc(_sfc_main,[["__scopeId","data-v-7a936755"]]),styles="",antd_dark="";createApp(App).mount("#root");createApp(App2).mount("#root2");export{__vite_legacy_guard};