77 lines
1.1 MiB
JavaScript
Raw Normal View History

(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();var lx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function TP(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function kP(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return t[i]}})}),n}var AP={exports:{}},ei="top",Ai="bottom",Mi="right",ti="left",Gh="auto",Wl=[ei,Ai,Mi,ti],ra="start",dl="end",cx="clippingParents",Nm="viewport",Ya="popper",ux="reference",Mp=Wl.reduce(function(t,e){return t.concat([e+"-"+ra,e+"-"+dl])},[]),Fm=[].concat(Wl,[Gh]).reduce(function(t,e){return t.concat([e,e+"-"+ra,e+"-"+dl])},[]),dx="beforeRead",hx="read",fx="afterRead",gx="beforeMain",px="main",mx="afterMain",_x="beforeWrite",yx="write",vx="afterWrite",bx=[dx,hx,fx,gx,px,mx,_x,yx,vx];function $s(t){return t?(t.nodeName||"").toLowerCase():null}function Ii(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function oa(t){var e=Ii(t).Element;return t instanceof e||t instanceof Element}function Yi(t){var e=Ii(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Bm(t){if(typeof ShadowRoot>"u")return!1;var e=Ii(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function MP(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var i=e.styles[n]||{},s=e.attributes[n]||{},r=e.elements[n];!Yi(r)||!$s(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(o){var a=s[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function IP(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(i){var s=e.elements[i],r=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:n[i]),a=o.reduce(function(l,c){return l[c]="",l},{});!Yi(s)||!$s(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(l){s.removeAttribute(l)}))})}}const Vm={name:"applyStyles",enabled:!0,phase:"write",fn:MP,effect:IP,requires:["computeStyles"]};function Ps(t){return t.split("-")[0]}var Zo=Math.max,lh=Math.min,hl=Math.round;function Ip(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function wx(){return!/^((?!chrome|android).)*safari/i.test(Ip())}function fl(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),s=1,r=1;e&&Yi(t)&&(s=t.offsetWidth>0&&hl(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&hl(i.height)/t.offsetHeight||1);var o=oa(t)?Ii(t):window,a=o.visualViewport,l=!wx()&&n,c=(i.left+(l&&a?a.offsetLeft:0))/s,u=(i.top+(l&&a?a.offsetTop:0))/r,d=i.width/s,h=i.height/r;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function zm(t){var e=fl(t),n=t.offsetWidth,i=
* Bootstrap v5.3.2 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/(function(t,e){(function(n,i){t.exports=i(_2)})(lx,function(n){function i(G){const _=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(G){for(const R in G)if(R!=="default"){const q=Object.getOwnPropertyDescriptor(G,R);Object.defineProperty(_,R,q.get?q:{enumerable:!0,get:()=>G[R]})}}return _.default=G,Object.freeze(_)}const s=i(n),r=new Map,o={set(G,_,R){r.has(G)||r.set(G,new Map);const q=r.get(G);if(!q.has(_)&&q.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(q.keys())[0]}.`);return}q.set(_,R)},get(G,_){return r.has(G)&&r.get(G).get(_)||null},remove(G,_){if(!r.has(G))return;const R=r.get(G);R.delete(_),R.size===0&&r.delete(G)}},a=1e6,l=1e3,c="transitionend",u=G=>(G&&window.CSS&&window.CSS.escape&&(G=G.replace(/#([^\s"#']+)/g,(_,R)=>`#${CSS.escape(R)}`)),G),d=G=>G==null?`${G}`:Object.prototype.toString.call(G).match(/\s([a-z]+)/i)[1].toLowerCase(),h=G=>{do G+=Math.floor(Math.random()*a);while(document.getElementById(G));return G},f=G=>{if(!G)return 0;let{transitionDuration:_,transitionDelay:R}=window.getComputedStyle(G);const q=Number.parseFloat(_),ye=Number.parseFloat(R);return!q&&!ye?0:(_=_.split(",")[0],R=R.split(",")[0],(Number.parseFloat(_)+Number.parseFloat(R))*l)},p=G=>{G.dispatchEvent(new Event(c))},m=G=>!G||typeof G!="object"?!1:(typeof G.jquery<"u"&&(G=G[0]),typeof G.nodeType<"u"),y=G=>m(G)?G.jquery?G[0]:G:typeof G=="string"&&G.length>0?document.querySelector(u(G)):null,v=G=>{if(!m(G)||G.getClientRects().length===0)return!1;const _=getComputedStyle(G).getPropertyValue("visibility")==="visible",R=G.closest("details:not([open])");if(!R)return _;if(R!==G){const q=G.closest("summary");if(q&&q.parentNode!==R||q===null)return!1}return _},b=G=>!G||G.nodeType!==Node.ELEMENT_NODE||G.classList.contains("disabled")?!0:typeof G.disabled<"u"?G.disabled:G.hasAttribute("disabled")&&G.getAttribute("disabled")!=="false",E=G=>{if(!document.documentElement.attachShadow)return null;if(typeof G.getRootNode=="function"){const _=G.getRootNode();return _ instanceof ShadowRoot?_:null}return G instanceof ShadowRoot?G:G.parentNode?E(G.parentNode):null},C=()=>{},w=G=>{G.offsetHeight},x=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,T=[],k=G=>{document.readyState==="loading"?(T.length||document.addEventListener("DOMContentLoaded",()=>{for(const _ of T)_()}),T.push(G)):G()},A=()=>document.documentElement.dir==="rtl",P=G=>{k(()=>{const _=x();if(_){const R=G.NAME,q=_.fn[R];_.fn[R]=G.jQueryInterface,_.fn[R].Constructor=G,_.fn[R].noConflict=()=>(_.fn[R]=q,G.jQueryInterface)}})},F=(G,_=[],R=G)=>typeof G=="function"?G(..._):R,H=(G,_,R=!0)=>{if(!R){F(G);return}const ye=f(_)+5;let Pe=!1;const Ie=({target:rt})=>{rt===_&&(Pe=!0,_.removeEventListener(c,Ie),F(G))};_.addEventListener(c,Ie),setTimeout(()=>{Pe||p(_)},ye)},te=(G,_,R,q)=>{const ye=G.length;let Pe=G.indexOf(_);return Pe===-1?!R&&q?G[ye-1]:G[0]:(Pe+=R?1:-1,q&&(Pe=(Pe+ye)%ye),G[Math.max(0,Math.min(Pe,ye-1))])},N=/[^.]*(?=\..*)\.|.*/,L=/\..*/,I=/::\d+$/,W={};let X=1;const J={mouseenter:"mouseover",mouseleave:"mouseout"},ne=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ue(G,_){return _&&`${_}::${X++}`||G.uidEvent||X++}function Y(G){const _=ue(G);return G.uidEvent=_,W[_]=W[_]||{},W[_]}function Z(G,_){return function R(q){return ge(q,{delegateTarget:G}),R.oneOff&&z.off(G,q.type,_),_.apply(G,[q])}}function M(G,_,R){return function q(ye){const Pe=G.querySelectorAll(_);for(let{target:Ie}=ye;Ie&&Ie!==this;Ie=Ie.parentNode)for(const rt of Pe)if(rt===Ie)return ge(ye,{delegateTa
2024-06-18 03:16:42 +08:00
* @vue/shared v3.4.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function Xm(t,e){const n=new Set(t.split(","));return e?i=>n.has(i.toLowerCase()):i=>n.has(i)}const Ot={},tl=[],Vi=()=>{},y2=()=>!1,Zh=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),qm=t=>t.startsWith("onUpdate:"),ln=Object.assign,Zm=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},v2=Object.prototype.hasOwnProperty,ht=(t,e)=>v2.call(t,e),We=Array.isArray,nl=t=>Du(t)==="[object Map]",Hl=t=>Du(t)==="[object Set]",ev=t=>Du(t)==="[object Date]",qe=t=>typeof t=="function",Kt=t=>typeof t=="string",gr=t=>typeof t=="symbol",At=t=>t!==null&&typeof t=="object",Dx=t=>(At(t)||qe(t))&&qe(t.then)&&qe(t.catch),$x=Object.prototype.toString,Du=t=>$x.call(t),b2=t=>Du(t).slice(8,-1),Lx=t=>Du(t)==="[object Object]",Jm=t=>Kt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Dc=Xm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Jh=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},w2=/-(\w)/g,Ls=Jh(t=>t.replace(w2,(e,n)=>n?n.toUpperCase():"")),x2=/\B([A-Z])/g,fa=Jh(t=>t.replace(x2,"-$1").toLowerCase()),Qh=Jh(t=>t.charAt(0).toUpperCase()+t.slice(1)),yg=Jh(t=>t?`on${Qh(t)}`:""),io=(t,e)=>!Object.is(t,e),Zd=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Ox=(t,e,n,i=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:i,value:n})},ch=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Nx=t=>{const e=Kt(t)?Number(t):NaN;return isNaN(e)?t:e};let tv;const Fx=()=>tv||(tv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mn(t){if(We(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],s=Kt(i)?T2(i):Mn(i);if(s)for(const r in s)e[r]=s[r]}return e}else if(Kt(t)||At(t))return t}const E2=/;(?![^(]*\))/g,S2=/:([^]+)/,C2=/\/\*[^]*?\*\//g;function T2(t){const e={};return t.replace(C2,"").split(E2).forEach(n=>{if(n){const i=n.split(S2);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function Me(t){let e="";if(Kt(t))e=t;else if(We(t))for(let n=0;n<t.length;n++){const i=Me(t[n]);i&&(e+=i+" ")}else if(At(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function In(t){if(!t)return null;let{class:e,style:n}=t;return e&&!Kt(e)&&(t.class=Me(e)),n&&(t.style=Mn(n)),t}const k2="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",A2=Xm(k2);function Bx(t){return!!t||t===""}function M2(t,e){if(t.length!==e.length)return!1;let n=!0;for(let i=0;n&&i<t.length;i++)n=aa(t[i],e[i]);return n}function aa(t,e){if(t===e)return!0;let n=ev(t),i=ev(e);if(n||i)return n&&i?t.getTime()===e.getTime():!1;if(n=gr(t),i=gr(e),n||i)return t===e;if(n=We(t),i=We(e),n||i)return n&&i?M2(t,e):!1;if(n=At(t),i=At(e),n||i){if(!n||!i)return!1;const s=Object.keys(t).length,r=Object.keys(e).length;if(s!==r)return!1;for(const o in t){const a=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!aa(t[o],e[o]))return!1}}return String(t)===String(e)}function Qm(t,e){return t.findIndex(n=>aa(n,e))}const xe=t=>Kt(t)?t:t==null?"":We(t)||At(t)&&(t.toString===$x||!qe(t.toString))?JSON.stringify(t,Vx,2):String(t),Vx=(t,e)=>e&&e.__v_isRef?Vx(t,e.value):nl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,s],r)=>(n[vg(i,r)+" =>"]=s,n),{})}:Hl(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>vg(n))}:gr(e)?vg(e):At(e)&&!We(e)&&!Lx(e)?String(e):e,vg=(t,e="")=>{var n;return gr(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
2024-06-18 03:16:42 +08:00
* @vue/reactivity v3.4.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ei;class zx{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ei,!e&&Ei&&(this.index=(Ei.scopes||(Ei.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Ei;try{return Ei=this,e()}finally{Ei=n}}}on(){Ei=this}off(){Ei=this.parent}stop(e){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Wx(t){return new zx(t)}function I2(t,e=Ei){e&&e.active&&e.effects.push(t)}function ef(){return Ei}function e_(t){Ei&&Ei.cleanups.push(t)}let Jo;class t_{constructor(e,n,i,s){this.fn=e,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=5,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,I2(this,s)}get dirty(){if(this._dirtyLevel===2)return!1;if(this._dirtyLevel===3||this._dirtyLevel===4){this._dirtyLevel=1,fo();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed){if(n.computed.effect._dirtyLevel===2)return!0;if(P2(n.computed),this._dirtyLevel>=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),go()}return this._dirtyLevel>=5}set dirty(e){this._dirtyLevel=e?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Zr,n=Jo;try{return Zr=!0,Jo=this,this._runnings++,nv(this),this.fn()}finally{iv(this),this._runnings--,Jo=n,Zr=e}}stop(){this.active&&(nv(this),iv(this),this.onStop&&this.onStop(),this.active=!1)}}function P2(t){return t.value}function nv(t){t._trackId++,t._depsLength=0}function iv(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)Hx(t.deps[e],t);t.deps.length=t._depsLength}}function Hx(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let Zr=!0,Rp=0;const Yx=[];function fo(){Yx.push(Zr),Zr=!1}function go(){const t=Yx.pop();Zr=t===void 0?!0:t}function n_(){Rp++}function i_(){for(Rp--;!Rp&&Dp.length;)Dp.shift()()}function jx(t,e,n){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const i=t.deps[t._depsLength];i!==e?(i&&Hx(i,t),t.deps[t._depsLength++]=e):t._depsLength++}}const Dp=[];function Kx(t,e,n){n_();for(const i of t.keys()){if(!t.computed&&i.computed&&t.get(i)===i._trackId&&i._runnings>0){i._dirtyLevel=2;continue}let s;i._dirtyLevel<e&&(s??(s=t.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i.computed&&i._dirtyLevel===2&&(i._shouldSchedule=!0),i._dirtyLevel=e),i._shouldSchedule&&(s??(s=t.get(i)===i._trackId))&&(i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==3&&(i._shouldSchedule=!1,i.scheduler&&Dp.push(i.scheduler)))}i_()}const Ux=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},uh=new WeakMap,Qo=Symbol(""),$p=Symbol("");function yi(t,e,n){if(Zr&&Jo){let i=uh.get(t);i||uh.set(t,i=new Map);let s=i.get(n);s||i.set(n,s=Ux(()=>i.delete(n))),jx(Jo,s)}}function lr(t,e,n,i,s,r){const o=uh.get(t);if(!o)return;let a=[];if(e==="clear")a=[...o.values()];else if(n==="length"&&We(t)){const l=Number(i);o.forEach((c,u)=>{(u==="length"||!gr(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),e){case"add":We(t)?Jm(n)&&a.push(o.get("length")):(a.push(o.get(Qo)),nl(t)&&a.push(o.get($p)));break;case"delete":We(t)||(a.push(o.get(Qo)),nl(t)&&a.push(o.get($p)));break;case"set":nl(t)&&a.push(o.get(Qo));break}n_();for(const l of a)l&&Kx(l,5);i_()}function R2(t,e){const n=uh.get(t);return n&&n.get(e)}const D2=Xm("__proto__,__v_isRef,__isVue"),Gx=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(gr)),sv=$2();function $2(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const i=lt(this);for(let r=0,o=this.length;r<o;r++)yi(i,"get",r+"");const s=i[e](...n);return s===-1||s===!1?i[e](...n.map(lt)):s}}),["push","pop"
2024-06-18 03:16:42 +08:00
* @vue/runtime-core v3.4.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Jr(t,e,n,i){try{return i?t(...i):t()}catch(s){$u(s,e,n)}}function ji(t,e,n,i){if(qe(t)){const s=Jr(t,e,n,i);return s&&Dx(s)&&s.catch(r=>{$u(r,e,n)}),s}if(We(t)){const s=[];for(let r=0;r<t.length;r++)s.push(ji(t[r],e,n,i));return s}}function $u(t,e,n,i=!0){const s=e?e.vnode:null;if(e){let r=e.parent;const o=e.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,o,a)===!1)return}r=r.parent}const l=e.appContext.config.errorHandler;if(l){fo(),Jr(l,null,10,[t,o,a]),go();return}}iR(t,n,s,i)}function iR(t,e,n,i=!0){console.error(t)}let Jc=!1,Lp=!1;const Wn=[];let bs=0;const il=[];let Nr=null,Yo=0;const aE=Promise.resolve();let c_=null;function Rn(t){const e=c_||aE;return t?e.then(this?t.bind(this):t):e}function sR(t){let e=bs+1,n=Wn.length;for(;e<n;){const i=e+n>>>1,s=Wn[i],r=Qc(s);r<t||r===t&&s.pre?e=i+1:n=i}return e}function u_(t){(!Wn.length||!Wn.includes(t,Jc&&t.allowRecurse?bs+1:bs))&&(t.id==null?Wn.push(t):Wn.splice(sR(t.id),0,t),lE())}function lE(){!Jc&&!Lp&&(Lp=!0,c_=aE.then(uE))}function rR(t){const e=Wn.indexOf(t);e>bs&&Wn.splice(e,1)}function Op(t){We(t)?il.push(...t):(!Nr||!Nr.includes(t,t.allowRecurse?Yo+1:Yo))&&il.push(t),lE()}function cv(t,e,n=Jc?bs+1:0){for(;n<Wn.length;n++){const i=Wn[n];if(i&&i.pre){if(t&&i.id!==t.uid)continue;Wn.splice(n,1),n--,i()}}}function cE(t){if(il.length){const e=[...new Set(il)].sort((n,i)=>Qc(n)-Qc(i));if(il.length=0,Nr){Nr.push(...e);return}for(Nr=e,Yo=0;Yo<Nr.length;Yo++){const n=Nr[Yo];n.active!==!1&&n()}Nr=null,Yo=0}}const Qc=t=>t.id==null?1/0:t.id,oR=(t,e)=>{const n=Qc(t)-Qc(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function uE(t){Lp=!1,Jc=!0,Wn.sort(oR);try{for(bs=0;bs<Wn.length;bs++){const e=Wn[bs];e&&e.active!==!1&&Jr(e,null,14)}}finally{bs=0,Wn.length=0,cE(),Jc=!1,c_=null,(Wn.length||il.length)&&uE()}}function aR(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||Ot;let s=n;const r=e.startsWith("update:"),o=r&&e.slice(7);if(o&&o in i){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:d,trim:h}=i[u]||Ot;h&&(s=n.map(f=>Kt(f)?f.trim():f)),d&&(s=n.map(ch))}let a,l=i[a=yg(e)]||i[a=yg(Ls(e))];!l&&r&&(l=i[a=yg(fa(e))]),l&&ji(l,t,6,s);const c=i[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,ji(c,t,6,s)}}function dE(t,e,n=!1){const i=e.emitsCache,s=i.get(t);if(s!==void 0)return s;const r=t.emits;let o={},a=!1;if(!qe(t)){const l=c=>{const u=dE(c,e,!0);u&&(a=!0,ln(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(At(t)&&i.set(t,null),null):(We(r)?r.forEach(l=>o[l]=null):ln(o,r),At(t)&&i.set(t,o),o)}function rf(t,e){return!t||!Zh(e)?!1:(e=e.slice(2).replace(/Once$/,""),ht(t,e[0].toLowerCase()+e.slice(1))||ht(t,fa(e))||ht(t,e))}let _n=null,of=null;function hh(t){const e=_n;return _n=t,of=t&&t.type.__scopeId||null,e}function bn(t){of=t}function wn(){of=null}function Re(t,e=_n,n){if(!e||t._n)return t;const i=(...s)=>{i._d&&Cv(-1);const r=hh(e);let o;try{o=t(...s)}finally{hh(r),i._d&&Cv(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function bg(t){const{type:e,vnode:n,proxy:i,withProxy:s,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:d,data:h,setupState:f,ctx:p,inheritAttrs:m}=t,y=hh(t);let v,b;try{if(n.shapeFlag&4){const C=s||i,w=C;v=ns(c.call(w,C,u,d,f,h,p)),b=a}else{const C=e;v=ns(C.length>1?C(d,{attrs:a,slots:o,emit:l}):C(d,null)),b=e.props?a:cR(a)}}catch(C){Nc.length=0,$u(C,t,1),v=B(Hn)}let E=v;if(b&&m!==!1){const C=Object.keys(b),{shapeFlag:w}=E;C.length&&w&7&&(r&&C.some(qm)&&(b=uR(b,r)),E=so(E,b,!1,!0))}return n.dirs&&(E=so(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),v=E,hh(y),v}function lR(t,e=!0){let n;for(let i=0;i<t.length;i++){const s=t[i];if(nu(s)){if(s.type!==Hn||s.children==="v-if"){if(n)return;n=s}}else return}return n}const cR=t=>{let e;for(const n in t)(n==="class"||n==="style"||Zh(n))&&((e||(e={}))[n]=t[n]);return e},uR=(t,e)=>{const n={};for(const i in t)(!qm(i)||!
2024-06-18 03:16:42 +08:00
* @vue/runtime-dom v3.4.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const dD="http://www.w3.org/2000/svg",hD="http://www.w3.org/1998/Math/MathML",Qs=typeof document<"u"?document:null,Av=Qs&&Qs.createElement("template"),fD={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const s=e==="svg"?Qs.createElementNS(dD,t):e==="mathml"?Qs.createElementNS(hD,t):n?Qs.createElement(t,{is:n}):Qs.createElement(t);return t==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:t=>Qs.createTextNode(t),createComment:t=>Qs.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Qs.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,s,r){const o=n?n.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{Av.innerHTML=i==="svg"?`<svg>${t}</svg>`:i==="mathml"?`<math>${t}</math>`:t;const a=Av.content;if(i==="svg"||i==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Sr="transition",sc="animation",yl=Symbol("_vtc"),Rt=(t,{slots:e})=>la(ZR,jE(t),e);Rt.displayName="Transition";const YE={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},gD=Rt.props=ln({},DE,YE),Ro=(t,e=[])=>{We(t)?t.forEach(n=>n(...e)):t&&t(...e)},Mv=t=>t?We(t)?t.some(e=>e.length>1):t.length>1:!1;function jE(t){const e={};for(const H in t)H in YE||(e[H]=t[H]);if(t.css===!1)return e;const{name:n="v",type:i,duration:s,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=t,p=pD(s),m=p&&p[0],y=p&&p[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:E,onLeave:C,onLeaveCancelled:w,onBeforeAppear:x=v,onAppear:T=b,onAppearCancelled:k=E}=e,A=(H,te,N)=>{Dr(H,te?u:a),Dr(H,te?c:o),N&&N()},P=(H,te)=>{H._isLeaving=!1,Dr(H,d),Dr(H,f),Dr(H,h),te&&te()},F=H=>(te,N)=>{const L=H?T:b,I=()=>A(te,H,N);Ro(L,[te,I]),Iv(()=>{Dr(te,H?l:r),Gs(te,H?u:a),Mv(L)||Pv(te,i,m,I)})};return ln(e,{onBeforeEnter(H){Ro(v,[H]),Gs(H,r),Gs(H,o)},onBeforeAppear(H){Ro(x,[H]),Gs(H,l),Gs(H,c)},onEnter:F(!1),onAppear:F(!0),onLeave(H,te){H._isLeaving=!0;const N=()=>P(H,te);Gs(H,d),Gs(H,h),UE(),Iv(()=>{H._isLeaving&&(Dr(H,d),Gs(H,f),Mv(C)||Pv(H,i,y,N))}),Ro(C,[H,N])},onEnterCancelled(H){A(H,!1),Ro(E,[H])},onAppearCancelled(H){A(H,!0),Ro(k,[H])},onLeaveCancelled(H){P(H),Ro(w,[H])}})}function pD(t){if(t==null)return null;if(At(t))return[Cg(t.enter),Cg(t.leave)];{const e=Cg(t);return[e,e]}}function Cg(t){return Nx(t)}function Gs(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[yl]||(t[yl]=new Set)).add(e)}function Dr(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const n=t[yl];n&&(n.delete(e),n.size||(t[yl]=void 0))}function Iv(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let mD=0;function Pv(t,e,n,i){const s=t._endId=++mD,r=()=>{s===t._endId&&i()};if(n)return setTimeout(r,n);const{type:o,timeout:a,propCount:l}=KE(t,e);if(!o)return i();const c=o+"end";let u=0;const d=()=>{t.removeEventListener(c,h),r()},h=f=>{f.target===t&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),t.addEventListener(c,h)}function KE(t,e){const n=window.getComputedStyle(t),i=p=>(n[p]||"").split(", "),s=i(`${Sr}Delay`),r=i(`${Sr}Duration`),o=Rv(s,r),a=i(`${sc}Delay`),l=i(`${sc}Duration`),c=Rv(a,l);let u=null,d=0,h=0;e===Sr?o>0&&(u=Sr,d=o,h=r.length):e===sc?c>0&&(u=sc,d=c,h=l.length):(d=Math.max(o,c),u=d>0?o>c?Sr:sc:null,h=u?u===Sr?r.length:l.length:0);const f=u===Sr&&/\b(transform|all)(,|$)/.test(i(`${Sr}Proper
* pinia v2.1.7
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/let nS;const hf=t=>nS=t,iS=Symbol();function Kp(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Fc;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Fc||(Fc={}));function GD(){const t=Wx(!0),e=t.run(()=>we({}));let n=[],i=[];const s=sf({install(r){hf(s),s._a=r,r.provide(iS,s),r.config.globalProperties.$pinia=s,i.forEach(o=>n.push(o)),i=[]},use(r){return!this._a&&!UD?i.push(r):n.push(r),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return s}const sS=()=>{};function Uv(t,e,n,i=sS){t.push(e);const s=()=>{const r=t.indexOf(e);r>-1&&(t.splice(r,1),i())};return!n&&ef()&&e_(s),s}function Ia(t,...e){t.slice().forEach(n=>{n(...e)})}const XD=t=>t();function Up(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,i)=>t.set(i,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n],s=t[n];Kp(s)&&Kp(i)&&t.hasOwnProperty(n)&&!Qt(i)&&!ea(i)?t[n]=Up(s,i):t[n]=i}return t}const qD=Symbol();function ZD(t){return!Kp(t)||!t.hasOwnProperty(qD)}const{assign:$r}=Object;function JD(t){return!!(Qt(t)&&t.effect)}function QD(t,e,n,i){const{state:s,actions:r,getters:o}=e,a=n.state.value[t];let l;function c(){a||(n.state.value[t]=s?s():{});const u=eR(n.state.value[t]);return $r(u,r,Object.keys(o||{}).reduce((d,h)=>(d[h]=sf(be(()=>{hf(n);const f=n._s.get(t);return o[h].call(f,f)})),d),{}))}return l=rS(t,c,e,n,i,!0),l}function rS(t,e,n={},i,s,r){let o;const a=$r({actions:{}},n),l={deep:!0};let c,u,d=[],h=[],f;const p=i.state.value[t];!r&&!p&&(i.state.value[t]={}),we({});let m;function y(k){let A;c=u=!1,typeof k=="function"?(k(i.state.value[t]),A={type:Fc.patchFunction,storeId:t,events:f}):(Up(i.state.value[t],k),A={type:Fc.patchObject,payload:k,storeId:t,events:f});const P=m=Symbol();Rn().then(()=>{m===P&&(c=!0)}),u=!0,Ia(d,A,i.state.value[t])}const v=r?function(){const{state:A}=n,P=A?A():{};this.$patch(F=>{$r(F,P)})}:sS;function b(){o.stop(),d=[],h=[],i._s.delete(t)}function E(k,A){return function(){hf(i);const P=Array.from(arguments),F=[],H=[];function te(I){F.push(I)}function N(I){H.push(I)}Ia(h,{args:P,name:k,store:w,after:te,onError:N});let L;try{L=A.apply(this&&this.$id===t?this:w,P)}catch(I){throw Ia(H,I),I}return L instanceof Promise?L.then(I=>(Ia(F,I),I)).catch(I=>(Ia(H,I),Promise.reject(I))):(Ia(F,L),L)}}const C={_p:i,$id:t,$onAction:Uv.bind(null,h),$patch:y,$reset:v,$subscribe(k,A={}){const P=Uv(d,k,A.detached,()=>F()),F=o.run(()=>fn(()=>i.state.value[t],H=>{(A.flush==="sync"?u:c)&&k({storeId:t,type:Fc.direct,events:f},H)},$r({},l,A)));return P},$dispose:b},w=Ns(C);i._s.set(t,w);const T=(i._a&&i._a.runWithContext||XD)(()=>i._e.run(()=>(o=Wx()).run(e)));for(const k in T){const A=T[k];if(Qt(A)&&!JD(A)||ea(A))r||(p&&ZD(A)&&(Qt(A)?A.value=p[k]:Up(A,p[k])),i.state.value[t][k]=A);else if(typeof A=="function"){const P=E(k,A);T[k]=P,a.actions[k]=A}}return $r(w,T),$r(lt(w),T),Object.defineProperty(w,"$state",{get:()=>i.state.value[t],set:k=>{y(A=>{$r(A,k)})}}),i._p.forEach(k=>{$r(w,o.run(()=>k({store:w,app:i._a,pinia:i,options:a})))}),p&&r&&n.hydrate&&n.hydrate(w.$state,p),c=!0,u=!0,w}function x_(t,e,n){let i,s;const r=typeof e=="function";typeof t=="string"?(i=t,s=r?n:e):(s=t,i=t.id);function o(a,l){const c=$R();return a=a||(c?cs(iS,null):null),a&&hf(a),a=nS,a._s.has(i)||(r?rS(i,e,s,a):QD(i,s,a)),a._s.get(i)}return o.$id=i,o}/*!
* vue-router v4.2.5
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const ja=typeof window<"u";function e$(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const St=Object.assign;function Ag(t,e){const n={};for(const i in e){const s=e[i];n[i]=hs(s)?s.map(t):t(s)}return n}const Bc=()=>{},hs=Array.isArray,t$=/\/$/,n$=t=>t.replace(t$,"");function Mg(t,e,n="/"){let i,s={},r="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(i=e.slice(0,l),r=e.slice(l+1,a>-1?a:e.length),s=t(r)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=o$(i??e,n),{fullPath:i+(r&&"?")+r+o,path:i,query:s,hash:o}}function i$(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Gv(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function s$(t,e,n){const i=e.matched.length-1,s=n.matched.length-1;return i>-1&&i===s&&bl(e.matched[i],n.matched[s])&&oS(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function bl(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function oS(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!r$(t[n],e[n]))return!1;return!0}function r$(t,e){return hs(t)?Xv(t,e):hs(e)?Xv(e,t):t===e}function Xv(t,e){return hs(e)?t.length===e.length&&t.every((n,i)=>n===e[i]):t.length===1&&t[0]===e}function o$(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),i=t.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let r=n.length-1,o,a;for(o=0;o<i.length;o++)if(a=i[o],a!==".")if(a==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+i.slice(o-(o===i.length?1:0)).join("/")}var su;(function(t){t.pop="pop",t.push="push"})(su||(su={}));var Vc;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Vc||(Vc={}));function a$(t){if(!t)if(ja){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),n$(t)}const l$=/^[^#]+#/;function c$(t,e){return t.replace(l$,"#")+e}function u$(t,e){const n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-n.left-(e.left||0),top:i.top-n.top-(e.top||0)}}const ff=()=>({left:window.pageXOffset,top:window.pageYOffset});function d$(t){let e;if("el"in t){const n=t.el,i=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;e=u$(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function qv(t,e){return(history.state?history.state.position-e:-1)+t}const Gp=new Map;function h$(t,e){Gp.set(t,e)}function f$(t){const e=Gp.get(t);return Gp.delete(t),e}let g$=()=>location.protocol+"//"+location.host;function aS(t,e){const{pathname:n,search:i,hash:s}=e,r=t.indexOf("#");if(r>-1){let a=s.includes(t.slice(r))?t.slice(r).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Gv(l,"")}return Gv(n,t)+i+s}function p$(t,e,n,i){let s=[],r=[],o=null;const a=({state:h})=>{const f=aS(t,location),p=n.value,m=e.value;let y=0;if(h){if(n.value=f,e.value=h,o&&o===p){o=null;return}y=m?h.position-m.position:0}else i(f);s.forEach(v=>{v(n.value,p,{delta:y,type:su.pop,direction:y?y>0?Vc.forward:Vc.back:Vc.unknown})})};function l(){o=n.value}function c(h){s.push(h);const f=()=>{const p=s.indexOf(h);p>-1&&s.splice(p,1)};return r.push(f),f}function u(){const{history:h}=window;h.state&&h.replaceState(St({},h.state,{scroll:ff()}),"")}function d(){for(const h of r)h();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Zv(t,e,n,i=!1,s=!1){return{back:t,current:e,forward:n,replaced:i,position:window.history.length,scroll:s?ff():null}}function m$(t){const{history:e,location:n}=window,i={value:aS(t,n)},s={value:e.state};s.value||r(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replace
2024-04-03 01:16:56 -04:00
(?:
(?:${hn}:){7}(?:${hn}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:${hn}:){6}(?:${ts}|:${hn}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:${hn}:){5}(?::${ts}|(?::${hn}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:${hn}:){4}(?:(?::${hn}){0,1}:${ts}|(?::${hn}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:${hn}:){3}(?:(?::${hn}){0,2}:${ts}|(?::${hn}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:${hn}:){2}(?:(?::${hn}){0,3}:${ts}|(?::${hn}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:${hn}:){1}(?:(?::${hn}){0,4}:${ts}|(?::${hn}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::${hn}){0,5}:${ts}|(?::${hn}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
2024-04-03 01:16:56 -04:00
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
2024-10-03 20:07:50 +08:00
`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),rL=new RegExp(`(?:^${ts}$)|(?:^${gf}$)`),oL=new RegExp(`^${ts}$`),aL=new RegExp(`^${gf}$`),pf=t=>t&&t.exact?rL:new RegExp(`(?:${Hr(t)}${ts}${Hr(t)})|(?:${Hr(t)}${gf}${Hr(t)})`,"g");pf.v4=t=>t&&t.exact?oL:new RegExp(`${Hr(t)}${ts}${Hr(t)}`,"g");pf.v6=t=>t&&t.exact?aL:new RegExp(`${Hr(t)}${gf}${Hr(t)}`,"g");const _S={exact:!1},yS=`${pf.v4().source}\\/(3[0-2]|[12]?[0-9])`,vS=`${pf.v6().source}\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])`,lL=new RegExp(`^${yS}$`),cL=new RegExp(`^${vS}$`),uL=({exact:t}=_S)=>t?lL:new RegExp(yS,"g"),dL=({exact:t}=_S)=>t?cL:new RegExp(vS,"g"),bS=uL({exact:!0}),wS=dL({exact:!0}),T_=t=>bS.test(t)?4:wS.test(t)?6:0;T_.v4=t=>bS.test(t);T_.v6=t=>wS.test(t);const Tt=t=>{const e=nt();if(e.Locale===null)return t;const i=Object.keys(e.Locale).filter(s=>t.match(new RegExp("^"+s+"$","gi"))!==null);return i.length===0||i.length>1?t:t.replace(new RegExp(i[0],"gi"),e.Locale[i[0]])},vi=x_("WireguardConfigurationsStore",{state:()=>({Configurations:void 0,searchString:"",ConfigurationListInterval:void 0,PeerScheduleJobs:{dropdowns:{Field:[{display:Tt("Total Received"),value:"total_receive",unit:"GB",type:"number"},{display:Tt("Total Sent"),value:"total_sent",unit:"GB",type:"number"},{display:Tt("Total Usage"),value:"total_data",unit:"GB",type:"number"},{display:Tt("Date"),value:"date",type:"date"}],Operator:[{display:Tt("larger than"),value:"lgt"}],Action:[{display:Tt("Restrict Peer"),value:"restrict"},{display:Tt("Delete Peer"),value:"delete"}]}}}),actions:{async getConfigurations(){await Vt("/api/getWireguardConfigurations",{},t=>{t.status&&(this.Configurations=t.data)})},regexCheckIP(t){return/((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/.test(t)},checkCIDR(t){return T_(t)!==0}}}),He=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},hL={name:"localeText",props:{t:""},computed:{getLocaleText(){return Tt(this.t)}}};function fL(t,e,n,i,s,r){return xe(this.getLocaleText)}const Qe=He(hL,[["render",fL]]),gL={name:"navbar",components:{LocaleText:Qe},setup(){const t=vi(),e=nt();return{wireguardConfigurationsStore:t,dashboardConfigurationStore:e}},data(){return{updateAvailable:!1,updateMessage:"Checking for update...",updateUrl:""}},mounted(){Vt("/api/getDashboardUpdate",{},t=>{t.status?(t.data&&(this.updateAvailable=!0,this.updateUrl=t.data),this.updateMessage=t.message):(this.updateMessage=Tt("Failed to check available update"),console.log(`Failed to get update: ${t.message}`))})}},po=t=>(bn("data-v-c16dfe93"),t=t(),wn(),t),pL=["data-bs-theme"],mL={id:"sidebarMenu",class:"bg-body-tertiary sidebar border h-100 rounded-3 shadow overflow-y-scroll"},_L={class:"sidebar-sticky pt-3"},yL={class:"nav flex-column px-2"},vL={class:"nav-item"},bL=po(()=>g("i",{class:"bi bi-house me-2"},null,-1)),wL={class:"nav-item"},xL=po(()=>g("i",{class:"bi bi-gear me-2"},null,-1)),EL=po(()=>g("hr",{class:"text-body"},null,-1)),SL={class:"sidebar-
*
* Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
*/(function(){function t(w){var x=new Float64Array(16);if(w)for(var T=0;T<w.length;++T)x[T]=w[T];return x}function e(w,x){for(var T,k=t(),A=t(),P=0;P<16;++P)A[P]=x[P];n(A),n(A),n(A);for(var F=0;F<2;++F){k[0]=A[0]-65517;for(var P=1;P<15;++P)k[P]=A[P]-65535-(k[P-1]>>16&1),k[P-1]&=65535;k[15]=A[15]-32767-(k[14]>>16&1),T=k[15]>>16&1,k[14]&=65535,i(A,k,1-T)}for(var P=0;P<16;++P)w[2*P]=A[P]&255,w[2*P+1]=A[P]>>8}function n(w){for(var x=0;x<16;++x)w[(x+1)%16]+=(x<15?1:38)*Math.floor(w[x]/65536),w[x]&=65535}function i(w,x,T){for(var k,A=~(T-1),P=0;P<16;++P)k=A&(w[P]^x[P]),w[P]^=k,x[P]^=k}function s(w,x,T){for(var k=0;k<16;++k)w[k]=x[k]+T[k]|0}function r(w,x,T){for(var k=0;k<16;++k)w[k]=x[k]-T[k]|0}function o(w,x,T){for(var k=new Float64Array(31),A=0;A<16;++A)for(var P=0;P<16;++P)k[A+P]+=x[A]*T[P];for(var A=0;A<15;++A)k[A]+=38*k[A+16];for(var A=0;A<16;++A)w[A]=k[A];n(w),n(w)}function a(w,x){for(var T=t(),k=0;k<16;++k)T[k]=x[k];for(var k=253;k>=0;--k)o(T,T,T),k!==2&&k!==4&&o(T,T,x);for(var k=0;k<16;++k)w[k]=T[k]}function l(w){w[31]=w[31]&127|64,w[0]&=248}function c(w){for(var x,T=new Uint8Array(32),k=t([1]),A=t([9]),P=t(),F=t([1]),H=t(),te=t(),N=t([56129,1]),L=t([9]),I=0;I<32;++I)T[I]=w[I];l(T);for(var I=254;I>=0;--I)x=T[I>>>3]>>>(I&7)&1,i(k,A,x),i(P,F,x),s(H,k,P),r(k,k,P),s(P,A,F),r(A,A,F),o(F,H,H),o(te,k,k),o(k,P,k),o(P,A,H),s(H,k,P),r(k,k,P),o(A,k,k),r(P,F,te),o(k,P,N),s(k,k,F),o(P,P,k),o(k,F,te),o(F,A,L),o(A,H,H),i(k,A,x),i(P,F,x);return a(P,P),o(k,k,P),e(T,k),T}function u(){var w=new Uint8Array(32);return window.crypto.getRandomValues(w),w}function d(){var w=u();return l(w),w}function h(w,x){for(var T=Uint8Array.from([x[0]>>2&63,(x[0]<<4|x[1]>>4)&63,(x[1]<<2|x[2]>>6)&63,x[2]&63]),k=0;k<4;++k)w[k]=T[k]+65+(25-T[k]>>8&6)-(51-T[k]>>8&75)-(61-T[k]>>8&15)+(62-T[k]>>8&3)}function f(w){var x,T=new Uint8Array(44);for(x=0;x<32/3;++x)h(T.subarray(x*4),w.subarray(x*3));return h(T.subarray(x*4),Uint8Array.from([w[x*3+0],w[x*3+1],0])),T[43]=61,String.fromCharCode.apply(null,T)}function p(w){let x=window.atob(w),T=x.length,k=new Uint8Array(T);for(let P=0;P<T;P++)k[P]=x.charCodeAt(P);return new Uint8Array(k.buffer)}function m(w,x){w.push(x&255,x>>>8&255,x>>>16&255,x>>>24&255)}function y(w,x){w.push(x&255,x>>>8&255)}function v(w,x){for(var T=0;T<x.length;++T)w.push(x[T]&255)}function b(w){for(var x=unescape(encodeURIComponent(w)),T=new Uint8Array(x.length),k=0;k<x.length;++k)T[k]=x.charCodeAt(k);return T}function E(w){if(!E.table){E.table=[];for(var x=0,T=0;T<256;x=++T){for(var k=0;k<8;++k)x=x&1?3988292384^x>>>1:x>>>1;E.table[T]=x}}for(var A=-1,P=0;P<w.length;++P)A=A>>>8^E.table[(A^w[P])&255];return(A^-1)>>>0}function C(w){for(var x=[],T=[],k=0,A=0;A<w.length;++A){var P=b(w[A].fileName),F=b(w[A].file),H=E(F);m(x,67324752),y(x,20),y(x,0),y(x,0),y(x,0),y(x,0),m(x,H),m(x,F.length),m(x,F.length),y(x,P.length),y(x,0),v(x,P),v(x,F),m(T,33639248),y(T,0),y(T,20),y(T,0),y(T,0),y(T,0),y(T,0),m(T,H),m(T,F.length),m(T,F.length),y(T,P.length),y(T,0),y(T,0),y(T,0),y(T,0),m(T,32),m(T,k),v(T,P),k+=30+F.length+P.length}return v(x,T),m(x,101010256),y(x,0),y(x,0),y(x,w.length),y(x,w.length),m(x,T.length),m(x,k),y(x,0),Uint8Array.from(x)}window.wireguard={generateKeypair:function(){var w=d(),x=c(w),T=u();return{publicKey:f(x),privateKey:f(w),presharedKey:f(T)}},generatePublicKey:function(w){return w=p(w),f(c(w))},generateZipFiles:function(w,x){var T=w.data,k=C(T),A=new Blob([k],{type:"application/zip"}),P=document.createElement("a");P.download=x,P.href=URL.createObjectURL(A),P.style.display="none",document.body.appendChild(P),P.click(),document.body.removeChild(P)}}})();const nW={name:"newConfiguration",components:{LocaleText:Qe},setup(){return{store:vi()}},data(){return{newConfiguration:{ConfigurationName:"",Address:"",ListenPort:"",PrivateKey:"",PublicKey:"",PresharedKey:"",PreUp:"",PreDown:"",PostUp:"",PostDown:""},numberOfAvailableIPs:"0",error:!1,errorMessage:"",success:!1,loading:!1}},created(){this.wireguardGenerateKeypair()},methods:{wireguardGenerateKeypair(){const t=window.wireguard.generateKeypair();this.newConfiguration.PrivateKey=t.privateKey,this
* @kurkle/color v0.3.2
* https://github.com/kurkle/color#readme
* (c) 2023 Jukka Kurkela
* Released under the MIT License
*/function zu(t){return t+.5|0}const jr=(t,e,n)=>Math.max(Math.min(t,n),e);function wc(t){return jr(zu(t*2.55),0,255)}function to(t){return jr(zu(t*255),0,255)}function tr(t){return jr(zu(t/2.55)/100,0,1)}function Rb(t){return jr(zu(t*100),0,100)}const Fi={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},im=[..."0123456789ABCDEF"],JH=t=>im[t&15],QH=t=>im[(t&240)>>4]+im[t&15],Ed=t=>(t&240)>>4===(t&15),eY=t=>Ed(t.r)&&Ed(t.g)&&Ed(t.b)&&Ed(t.a);function tY(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Fi[t[1]]*17,g:255&Fi[t[2]]*17,b:255&Fi[t[3]]*17,a:e===5?Fi[t[4]]*17:255}:(e===7||e===9)&&(n={r:Fi[t[1]]<<4|Fi[t[2]],g:Fi[t[3]]<<4|Fi[t[4]],b:Fi[t[5]]<<4|Fi[t[6]],a:e===9?Fi[t[7]]<<4|Fi[t[8]]:255})),n}const nY=(t,e)=>t<255?e(t):"";function iY(t){var e=eY(t)?JH:QH;return t?"#"+e(t.r)+e(t.g)+e(t.b)+nY(t.a,e):void 0}const sY=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function pC(t,e,n){const i=e*Math.min(n,1-n),s=(r,o=(r+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function rY(t,e,n){const i=(s,r=(s+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function oY(t,e,n){const i=pC(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)i[s]*=1-e-n,i[s]+=e;return i}function aY(t,e,n,i,s){return t===s?(e-n)/i+(e<n?6:0):e===s?(n-t)/i+2:(t-e)/i+4}function U_(t){const n=t.r/255,i=t.g/255,s=t.b/255,r=Math.max(n,i,s),o=Math.min(n,i,s),a=(r+o)/2;let l,c,u;return r!==o&&(u=r-o,c=a>.5?u/(2-r-o):u/(r+o),l=aY(n,i,s,u,r),l=l*60+.5),[l|0,c||0,a]}function G_(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(to)}function X_(t,e,n){return G_(pC,t,e,n)}function lY(t,e,n){return G_(oY,t,e,n)}function cY(t,e,n){return G_(rY,t,e,n)}function mC(t){return(t%360+360)%360}function uY(t){const e=sY.exec(t);let n=255,i;if(!e)return;e[5]!==i&&(n=e[6]?wc(+e[5]):to(+e[5]));const s=mC(+e[2]),r=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?i=lY(s,r,o):e[1]==="hsv"?i=cY(s,r,o):i=X_(s,r,o),{r:i[0],g:i[1],b:i[2],a:n}}function dY(t,e){var n=U_(t);n[0]=mC(n[0]+e),n=X_(n),t.r=n[0],t.g=n[1],t.b=n[2]}function hY(t){if(!t)return;const e=U_(t),n=e[0],i=Rb(e[1]),s=Rb(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${s}%, ${tr(t.a)})`:`hsl(${n}, ${i}%, ${s}%)`}const Db={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"},$b={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:"
* Chart.js v4.4.1
* https://www.chartjs.org
* (c) 2023 Chart.js Contributors
* Released under the MIT License
*/function js(){}const bY=(()=>{let t=0;return()=>t++})();function gt(t){return t===null||typeof t>"u"}function Nt(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ut(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function qt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function xi(t,e){return qt(t)?t:e}function tt(t,e){return typeof t>"u"?e:t}const wY=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,yC=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Pt(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Ct(t,e,n,i){let s,r,o;if(Nt(t))if(r=t.length,i)for(s=r-1;s>=0;s--)e.call(n,t[s],s);else for(s=0;s<r;s++)e.call(n,t[s],s);else if(ut(t))for(o=Object.keys(t),r=o.length,s=0;s<r;s++)e.call(n,t[o[s]],o[s])}function wh(t,e){let n,i,s,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(s=t[n],r=e[n],s.datasetIndex!==r.datasetIndex||s.index!==r.index)return!1;return!0}function xh(t){if(Nt(t))return t.map(xh);if(ut(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let s=0;for(;s<i;++s)e[n[s]]=xh(t[n[s]]);return e}return t}function vC(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function xY(t,e,n,i){if(!vC(t))return;const s=e[t],r=n[t];ut(s)&&ut(r)?cu(s,r,i):e[t]=xh(r)}function cu(t,e,n){const i=Nt(e)?e:[e],s=i.length;if(!ut(t))return t;n=n||{};const r=n.merger||xY;let o;for(let a=0;a<s;++a){if(o=i[a],!ut(o))continue;const l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)r(l[c],t,o,n)}return t}function Hc(t,e){return cu(t,e,{merger:EY})}function EY(t,e,n){if(!vC(t))return;const i=e[t],s=n[t];ut(i)&&ut(s)?Hc(i,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=xh(s))}const Ob={"":t=>t,x:t=>t.x,y:t=>t.y};function SY(t){const e=t.split("."),n=[];let i="";for(const s of e)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function CY(t){const e=SY(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function ao(t,e){return(Ob[e]||(Ob[e]=CY(e)))(t)}function q_(t){return t.charAt(0).toUpperCase()+t.slice(1)}const uu=t=>typeof t<"u",lo=t=>typeof t=="function",Nb=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function TY(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Bt=Math.PI,Ft=2*Bt,kY=Ft+Bt,Eh=Number.POSITIVE_INFINITY,AY=Bt/180,on=Bt/2,Do=Bt/4,Fb=Bt*2/3,Kr=Math.log10,Ds=Math.sign;function Yc(t,e,n){return Math.abs(t-e)<n}function Bb(t){const e=Math.round(t);t=Yc(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Kr(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function MY(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(n|0)&&e.push(n),e.sort((s,r)=>s-r).pop(),e}function Al(t){return!isNaN(parseFloat(t))&&isFinite(t)}function IY(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function bC(t,e,n){let i,s,r;for(i=0,s=t.length;i<s;i++)r=t[i][n],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function as(t){return t*(Bt/180)}function Z_(t){return t*(180/Bt)}function Vb(t){if(!qt(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function wC(t,e){const n=e.x-t.x,i=e.y-t.y,s=Math.sqrt(n*n+i*i);let r=Math.atan2(i,n);return r<-.5*Bt&&(r+=Ft),{angle:r,distance:s}}function sm(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function PY(t,e){return(t-e+kY)%Ft-Bt}function Si(t){return(t%Ft+Ft)%Ft}function du(t,e,n,i){const s=Si(t),r=Si(e),o=Si(n),a=Si(r-s),l=Si(o-s),c=Si(s-r),u=Si(s-o);return s===r||s===o||i&&r===o||a>l&&c<u}function Pn(t,e,n){return Math.max(e,Math.min(n,t))}function RY(t){return Pn(t,-32768,32767)}function rr(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function J_(t,e,n){n=n||(o=>t[o]<e);let i=t.length-1,s=0,r;for(;i-s>1;)r=s+i>>1,n(r)?s=r:i=r;return{lo:s,hi:i}}const or=(t,e,n,i)=>J_(t,n,i?s=>{const r=t[s][e];return r<n||r===n&&t[s+1][e]===n}:s=>t[s][e]<n),DY=(t,e,n)=>J_
* Chart.js v4.4.1
* https://www.chartjs.org
* (c) 2023 Chart.js Contributors
* Released under the MIT License
*/class Nj{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,i,s){const r=n.listeners[s],o=n.duration;r.forEach(a=>a({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=SC.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const r=i.items;let o=r.length-1,a=!1,l;for(;o>=0;--o)l=r[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(e),a=!0):(r[o]=r[r.length-1],r.pop());a&&(s.draw(),this._notify(s,i,e,"progress")),r.length||(i.running=!1,this._notify(s,i,e,"complete"),i.initial=!1),n+=r.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Xs=new Nj;const e1="transparent",Fj={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=Yb(t||e1),s=i.valid&&Yb(e||e1);return s&&s.valid?s.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class Bj{constructor(e,n,i,s){const r=n[i];s=xc([e.to,s,r,e.from]);const o=xc([e.from,r,s]);this._active=!0,this._fn=e.fn||Fj[e.type||typeof o],this._easing=jc[e.easing]||jc.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],r=i-this._start,o=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=xc([e.to,n,s,e.from]),this._from=xc([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,s=this._prop,r=this._from,o=this._loop,a=this._to;let l;if(this._active=r!==a&&(o||n<i),!this._active){this._target[s]=a,this._notify(!0);return}if(n<0){this._target[s]=r;return}l=n/i%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(r,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][n]()}}class WC{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!ut(e))return;const n=Object.keys(Zt.animation),i=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const r=e[s];if(!ut(r))return;const o={};for(const a of n)o[a]=r[a];(Nt(r.properties)&&r.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,o)})})}_animateOptions(e,n){const i=n.options,s=zj(e,i);if(!s)return[];const r=this._createAnimations(s,i);return i.$shared&&Vj(e.options.$animations,i).then(()=>{e.options=i},()=>{}),r}_createAnimations(e,n){const i=this._properties,s=[],r=e.$animations||(e.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(e,n));continue}const u=n[c];let d=r[c];const h=i.get(c);if(d)if(h&&d.active()){d.update(h,u,a);continue}else d.cancel();if(!h||!h.duration){e[c]=u;continue}r[c]=d=new Bj(h,e,c,u),s.push(d)}return s}update(e,n){if(this._properties.size
2024-09-09 23:43:55 +08:00
`)>-1?t.split(`
`):t}function EG(t,e){const{element:n,datasetIndex:i,index:s}=e,r=t.getDatasetMeta(i).controller,{label:o,value:a}=r.getLabelAndValue(s);return{chart:t,label:o,parsed:r.getParsed(s),raw:t.data.datasets[i].data[s],formattedValue:a,dataset:r.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function F1(t,e){const n=t.chart.ctx,{body:i,footer:s,title:r}=t,{boxWidth:o,boxHeight:a}=e,l=vn(e.bodyFont),c=vn(e.titleFont),u=vn(e.footerFont),d=r.length,h=s.length,f=i.length,p=Kn(e.padding);let m=p.height,y=0,v=i.reduce((C,w)=>C+w.before.length+w.lines.length+w.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),v){const C=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=f*C+(v-f)*l.lineHeight+(v-1)*e.bodySpacing}h&&(m+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let b=0;const E=function(C){y=Math.max(y,n.measureText(C).width+b)};return n.save(),n.font=c.string,Ct(t.title,E),n.font=l.string,Ct(t.beforeBody.concat(t.afterBody),E),b=e.displayColors?o+2+e.boxPadding:0,Ct(i,C=>{Ct(C.before,E),Ct(C.lines,E),Ct(C.after,E)}),b=0,n.font=u.string,Ct(t.footer,E),n.restore(),y+=p.width,{width:y,height:m}}function SG(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function CG(t,e,n,i){const{x:s,width:r}=i,o=n.caretSize+n.caretPadding;if(t==="left"&&s+r+o>e.width||t==="right"&&s-r-o<0)return!0}function TG(t,e,n,i){const{x:s,width:r}=n,{width:o,chartArea:{left:a,right:l}}=t;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=r/2?c="left":s>=o-r/2&&(c="right"),CG(c,t,e,n)&&(c="center"),c}function B1(t,e,n){const i=n.yAlign||e.yAlign||SG(t,n);return{xAlign:n.xAlign||e.xAlign||TG(t,e,n,i),yAlign:i}}function kG(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function AG(t,e,n){let{y:i,height:s}=t;return e==="top"?i+=n:e==="bottom"?i-=s+n:i-=s/2,i}function V1(t,e,n,i){const{caretSize:s,caretPadding:r,cornerRadius:o}=t,{xAlign:a,yAlign:l}=n,c=s+r,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=ia(o);let p=kG(e,a);const m=AG(e,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(u,h)+s:a==="right"&&(p+=Math.max(d,f)+s),{x:Pn(p,0,i.width-e.width),y:Pn(m,0,i.height-e.height)}}function $d(t,e,n){const i=Kn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function z1(t){return ys([],qs(t))}function MG(t,e,n){return yo(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function W1(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const dT={beforeTitle:js,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:js,beforeBody:js,beforeLabel:js,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return gt(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:js,afterBody:js,beforeFooter:js,footer:js,afterFooter:js};function ai(t,e,n,i){const s=t[e].call(n,i);return typeof s>"u"?dT[e].call(n,i):s}class H1 extends vr{static positioners=Sc;constructor(e){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=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void
]))+`;Bs.KANJI=new RegExp(pu,"g");Bs.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Bs.BYTE=new RegExp(l9,"g");Bs.NUMERIC=new RegExp($T,"g");Bs.ALPHANUMERIC=new RegExp(a9,"g");const c9=new RegExp("^"+pu+"$"),u9=new RegExp("^"+$T+"$"),d9=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Bs.testKanji=function(e){return c9.test(e)};Bs.testNumeric=function(e){return u9.test(e)};Bs.testAlphanumeric=function(e){return d9.test(e)};(function(t){const e=hy,n=Bs;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(r,o){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?r.ccBits[0]:o<27?r.ccBits[1]:r.ccBits[2]},t.getBestModeForData=function(r){return n.testNumeric(r)?t.NUMERIC:n.testAlphanumeric(r)?t.ALPHANUMERIC:n.testKanji(r)?t.KANJI:t.BYTE},t.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},t.isValid=function(r){return r&&r.bit&&r.ccBits};function i(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+s)}}t.from=function(r,o){if(t.isValid(r))return r;try{return i(r)}catch{return o}}})(wo);(function(t){const e=Pi,n=If,i=Mf,s=wo,r=hy,o=7973,a=e.getBCHDigit(o);function l(h,f,p){for(let m=1;m<=40;m++)if(f<=t.getCapacity(m,p,h))return m}function c(h,f){return s.getCharCountIndicator(h,f)+4}function u(h,f){let p=0;return h.forEach(function(m){const y=c(m.mode,f);p+=y+m.getBitsLength()}),p}function d(h,f){for(let p=1;p<=40;p++)if(u(h,p)<=t.getCapacity(p,f,s.MIXED))return p}t.from=function(f,p){return r.isValid(f)?parseInt(f,10):p},t.getCapacity=function(f,p,m){if(!r.isValid(f))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=s.BYTE);const y=e.getSymbolTotalCodewords(f),v=n.getTotalCodewordsCount(f,p),b=(y-v)*8;if(m===s.MIXED)return b;const E=b-c(m,f);switch(m){case s.NUMERIC:return Math.floor(E/10*3);case s.ALPHANUMERIC:return Math.floor(E/11*2);case s.KANJI:return Math.floor(E/13);case s.BYTE:default:return Math.floor(E/8)}},t.getBestVersionForData=function(f,p){let m;const y=i.from(p,i.M);if(Array.isArray(f)){if(f.length>1)return d(f,y);if(f.length===0)return 1;m=f[0]}else m=f;return l(m.mode,m.getLength(),y)},t.getEncodedBits=function(f){if(!r.isValid(f)||f<7)throw new Error("Invalid QR Code version");let p=f<<12;for(;e.getBCHDigit(p)-a>=0;)p^=o<<e.getBCHDigit(p)-a;return f<<12|p}})(DT);var LT={};const vm=Pi,OT=1335,h9=21522,ow=vm.getBCHDigit(OT);LT.getEncodedBits=function(e,n){const i=e.bit<<3|n;let s=i<<10;for(;vm.getBCHDigit(s)-ow>=0;)s^=OT<<vm.getBCHDigit(s)-ow;return(i<<10|s)^h9};var NT={};const f9=wo;function Pl(t){this.mode=f9.NUMERIC,this.data=t.toString()}Pl.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};Pl.prototype.getLength=function(){return this.data.length};Pl.prototype.getBitsLength=function(){return Pl.getBitsLength(this.data.length)};Pl.prototype.write=function(e){let n,i,s;for(n=0;n+3<=this.data.length;n+=3)i=this.data.substr(n,3),s=parseInt(i,10),e.put(s,10);const r=this.data.length-n;r>0&&(i=this.data.substr(n),s=parseInt(i,10),e.put(s,r*3+1))};var g9=Pl;const p9=wo,ip=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Rl(t){this.mode=p9.ALPHANUMERIC,this.data=t}Rl.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Rl.prototype.getLength=function(){return this.data.length};Rl.prototype.getBitsLength=function(){return Rl.getBitsLength(this.data.length)};Rl.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let i=ip.indexOf(this.data[n])*45;i+=ip.indexOf(this.data[n+1]),e.put(i,11)}this.data.length%2&&e.put(ip.indexOf(this.data[n]),6)};var m9
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),t.put(n,13)}};var E9=$l,FT={exports:{}};(function(t){var e={single_source_shortest_paths:function(n,i,s){var r={},o={};o[i]=0;var a=e.PriorityQueue.make();a.push(i,0);for(var l,c,u,d,h,f,p,m,y;!a.empty();){l=a.pop(),c=l.value,d=l.cost,h=n[c]||{};for(u in h)h.hasOwnProperty(u)&&(f=h[u],p=d+f,m=o[u],y=typeof o[u]>"u",(y||m>p)&&(o[u]=p,a.push(u,p),r[u]=c))}if(typeof s<"u"&&typeof o[s]>"u"){var v=["Could not find a path from ",i," to ",s,"."].join("");throw new Error(v)}return r},extract_shortest_path_from_predecessor_list:function(n,i){for(var s=[],r=i;r;)s.push(r),n[r],r=n[r];return s.reverse(),s},find_path:function(n,i,s){var r=e.single_source_shortest_paths(n,i,s);return e.extract_shortest_path_from_predecessor_list(r,s)},PriorityQueue:{make:function(n){var i=e.PriorityQueue,s={},r;n=n||{};for(r in i)i.hasOwnProperty(r)&&(s[r]=i[r]);return s.queue=[],s.sorter=n.sorter||i.default_sorter,s},default_sorter:function(n,i){return n.cost-i.cost},push:function(n,i){var s={value:n,cost:i};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(FT);var S9=FT.exports;(function(t){const e=wo,n=g9,i=m9,s=b9,r=E9,o=Bs,a=Pi,l=S9;function c(v){return unescape(encodeURIComponent(v)).length}function u(v,b,E){const C=[];let w;for(;(w=v.exec(E))!==null;)C.push({data:w[0],index:w.index,mode:b,length:w[0].length});return C}function d(v){const b=u(o.NUMERIC,e.NUMERIC,v),E=u(o.ALPHANUMERIC,e.ALPHANUMERIC,v);let C,w;return a.isKanjiModeEnabled()?(C=u(o.BYTE,e.BYTE,v),w=u(o.KANJI,e.KANJI,v)):(C=u(o.BYTE_KANJI,e.BYTE,v),w=[]),b.concat(E,C,w).sort(function(T,k){return T.index-k.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function h(v,b){switch(b){case e.NUMERIC:return n.getBitsLength(v);case e.ALPHANUMERIC:return i.getBitsLength(v);case e.KANJI:return r.getBitsLength(v);case e.BYTE:return s.getBitsLength(v)}}function f(v){return v.reduce(function(b,E){const C=b.length-1>=0?b[b.length-1]:null;return C&&C.mode===E.mode?(b[b.length-1].data+=E.data,b):(b.push(E),b)},[])}function p(v){const b=[];for(let E=0;E<v.length;E++){const C=v[E];switch(C.mode){case e.NUMERIC:b.push([C,{data:C.data,mode:e.ALPHANUMERIC,length:C.length},{data:C.data,mode:e.BYTE,length:C.length}]);break;case e.ALPHANUMERIC:b.push([C,{data:C.data,mode:e.BYTE,length:C.length}]);break;case e.KANJI:b.push([C,{data:C.data,mode:e.BYTE,length:c(C.data)}]);break;case e.BYTE:b.push([{data:C.data,mode:e.BYTE,length:c(C.data)}])}}return b}function m(v,b){const E={},C={start:{}};let w=["start"];for(let x=0;x<v.length;x++){const T=v[x],k=[];for(let A=0;A<T.length;A++){const P=T[A],F=""+x+A;k.push(F),E[F]={node:P,lastCount:0},C[F]={};for(let H=0;H<w.length;H++){const te=w[H];E[te]&&E[te].node.mode===P.mode?(C[te][F]=h(E[te].lastCount+P.length,P.mode)-h(E[te].lastCount,P.mode),E[te].lastCount+=P.length):(E[te]&&(E[te].lastCount=P.length),C[te][F]=h(P.length,P.mode)+4+e.getCharCountIndicator(P.mode,b))}}w=k}for(let x=0;x<w.length;x++)C[w[x]].end=0;return{map:C,table:E}}function y(v,b){let E;const C=e.getBestModeForData(v);if(E=e.from(b,C),E!==e.BYTE&&E.bit<C.bit)throw new Error('"'+v+'" cannot be encoded with mode '+e.toString(E)+`.
Suggested mode is: `+e.toString(C));switch(E===e.KANJI&&!a.isKanjiModeEnabled()&&(E=e.BYTE),E){case e.NUMERIC:return new n(v);case e.ALPHANUMERIC:return new i(v);case e.KANJI:return new r(v);case e.BYTE:return new s(v)}}t.fromArray=function(b){return b.reduce(function(E,C){return typeof C=="string"?E.push(y(C,null)):C.data&&E.push(y(C.data,C.mode)),E},[])},t.fromString=function(b,E){const C=d(b,a.isKanjiModeEnabled()),w=p(C),x=m(w,E),T=l.find_path(x.map,"start","end"),k=[];for(let A=1;A<T.length-1;A++)k.push(x.table[T[A]].node);return t.fromArray(f(k))},t.rawSplit=function(b){return t.fromArray(d(b,a.isKanjiModeEnabled()))}})(NT);const Rf=Pi,sp=Mf,C9=i9,T9=s9,k9=AT,A9=MT,bm=IT,wm=If,M9=o9,Ph=DT,I9=LT,P9=wo,rp=NT;function R9(t,e){const n=t.size,i=A9.getPositions(e);for(let s=0;s<i.length;s++){const r=i[s][0],o=i[s][1];for(let a=-1;a<=7;a++)if(!(r+a<=-1||n<=r+a))for(let l=-1;l<=7;l++)o+l<=-1||n<=o+l||(a>=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?t.set(r+a,o+l,!0,!0):t.set(r+a,o+l,!1,!0))}}function D9(t){const e=t.size;for(let n=8;n<e-8;n++){const i=n%2===0;t.set(n,6,i,!0),t.set(6,n,i,!0)}}function $9(t,e){const n=k9.getPositions(e);for(let i=0;i<n.length;i++){const s=n[i][0],r=n[i][1];for(let o=-2;o<=2;o++)for(let a=-2;a<=2;a++)o===-2||o===2||a===-2||a===2||o===0&&a===0?t.set(s+o,r+a,!0,!0):t.set(s+o,r+a,!1,!0)}}function L9(t,e){const n=t.size,i=Ph.getEncodedBits(e);let s,r,o;for(let a=0;a<18;a++)s=Math.floor(a/3),r=a%3+n-8-3,o=(i>>a&1)===1,t.set(s,r,o,!0),t.set(r,s,o,!0)}function op(t,e,n){const i=t.size,s=I9.getEncodedBits(e,n);let r,o;for(r=0;r<15;r++)o=(s>>r&1)===1,r<6?t.set(r,8,o,!0):r<8?t.set(r+1,8,o,!0):t.set(i-15+r,8,o,!0),r<8?t.set(8,i-r-1,o,!0):r<9?t.set(8,15-r-1+1,o,!0):t.set(8,15-r-1,o,!0);t.set(i-8,8,1,!0)}function O9(t,e){const n=t.size;let i=-1,s=n-1,r=7,o=0;for(let a=n-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!t.isReserved(s,a-l)){let c=!1;o<e.length&&(c=(e[o]>>>r&1)===1),t.set(s,a-l,c),r--,r===-1&&(o++,r=7)}if(s+=i,s<0||n<=s){s-=i,i=-i;break}}}function N9(t,e,n){const i=new C9;n.forEach(function(l){i.put(l.mode.bit,4),i.put(l.getLength(),P9.getCharCountIndicator(l.mode,t)),l.write(i)});const s=Rf.getSymbolTotalCodewords(t),r=wm.getTotalCodewordsCount(t,e),o=(s-r)*8;for(i.getLengthInBits()+4<=o&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const a=(o-i.getLengthInBits())/8;for(let l=0;l<a;l++)i.put(l%2?17:236,8);return F9(i,t,e)}function F9(t,e,n){const i=Rf.getSymbolTotalCodewords(e),s=wm.getTotalCodewordsCount(e,n),r=i-s,o=wm.getBlocksCount(e,n),a=i%o,l=o-a,c=Math.floor(i/o),u=Math.floor(r/o),d=u+1,h=c-u,f=new M9(h);let p=0;const m=new Array(o),y=new Array(o);let v=0;const b=new Uint8Array(t.buffer);for(let T=0;T<o;T++){const k=T<l?u:d;m[T]=b.slice(p,p+k),y[T]=f.encode(m[T]),p+=k,v=Math.max(v,k)}const E=new Uint8Array(i);let C=0,w,x;for(w=0;w<v;w++)for(x=0;x<o;x++)w<m[x].length&&(E[C++]=m[x][w]);for(w=0;w<h;w++)for(x=0;x<o;x++)E[C++]=y[x][w];return E}function B9(t,e,n,i){let s;if(Array.isArray(t))s=rp.fromArray(t);else if(typeof t=="string"){let c=e;if(!c){const u=rp.rawSplit(t);c=Ph.getBestVersionForData(u,n)}s=rp.fromString(t,c||40)}else throw new Error("Invalid data");const r=Ph.getBestVersionForData(s,n);if(!r)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=r;else if(e<r)throw new Error(`
2024-08-05 15:39:11 -04:00
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+r+`.
`);const o=N9(e,n,s),a=Rf.getSymbolSize(e),l=new T9(a);return R9(l,e),D9(l),$9(l,e),op(l,n,0),e>=7&&L9(l,e),O9(l,o),isNaN(i)&&(i=bm.getBestMask(l,op.bind(null,l,n))),bm.applyMask(i,l),op(l,n,i),{modules:l,version:e,errorCorrectionLevel:n,maskPattern:i,segments:s}}TT.create=function(e,n){if(typeof e>"u"||e==="")throw new Error("No input text");let i=sp.M,s,r;return typeof n<"u"&&(i=sp.from(n.errorCorrectionLevel,sp.M),s=Ph.from(n.version),r=bm.from(n.maskPattern),n.toSJISFunc&&Rf.setToSJISFunction(n.toSJISFunc)),B9(e,s,i,r)};var BT={},fy={};(function(t){function e(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let i=n.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+n);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(r){return[r,r]}))),i.length===6&&i.push("F","F");const s=parseInt(i.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+i.slice(0,6).join("")}}t.getOptions=function(i){i||(i={}),i.color||(i.color={});const s=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,r=i.width&&i.width>=21?i.width:void 0,o=i.scale||4;return{width:r,scale:r?4:o,margin:s,color:{dark:e(i.color.dark||"#000000ff"),light:e(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},t.getScale=function(i,s){return s.width&&s.width>=i+s.margin*2?s.width/(i+s.margin*2):s.scale},t.getImageWidth=function(i,s){const r=t.getScale(i,s);return Math.floor((i+s.margin*2)*r)},t.qrToImageData=function(i,s,r){const o=s.modules.size,a=s.modules.data,l=t.getScale(o,r),c=Math.floor((o+r.margin*2)*l),u=r.margin*l,d=[r.color.light,r.color.dark];for(let h=0;h<c;h++)for(let f=0;f<c;f++){let p=(h*c+f)*4,m=r.color.light;if(h>=u&&f>=u&&h<c-u&&f<c-u){const y=Math.floor((h-u)/l),v=Math.floor((f-u)/l);m=d[a[y*o+v]?1:0]}i[p++]=m.r,i[p++]=m.g,i[p++]=m.b,i[p]=m.a}}})(fy);(function(t){const e=fy;function n(s,r,o){s.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=o,r.width=o,r.style.height=o+"px",r.style.width=o+"px"}function i(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}t.render=function(r,o,a){let l=a,c=o;typeof l>"u"&&(!o||!o.getContext)&&(l=o,o=void 0),o||(c=i()),l=e.getOptions(l);const u=e.getImageWidth(r.modules.size,l),d=c.getContext("2d"),h=d.createImageData(u,u);return e.qrToImageData(h.data,r,l),n(d,c,u),d.putImageData(h,0,0),c},t.renderToDataURL=function(r,o,a){let l=a;typeof l>"u"&&(!o||!o.getContext)&&(l=o,o=void 0),l||(l={});const c=t.render(r,o,l),u=l.type||"image/png",d=l.rendererOpts||{};return c.toDataURL(u,d.quality)}})(BT);var VT={};const V9=fy;function aw(t,e){const n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function ap(t,e,n){let i=t+e;return typeof n<"u"&&(i+=" "+n),i}function z9(t,e,n){let i="",s=0,r=!1,o=0;for(let a=0;a<t.length;a++){const l=Math.floor(a%e),c=Math.floor(a/e);!l&&!r&&(r=!0),t[a]?(o++,a>0&&l>0&&t[a-1]||(i+=r?ap("M",l+n,.5+c+n):ap("m",s,0),s=0,r=!1),l+1<e&&t[a+1]||(i+=ap("h",o),o=0)):s++}return i}VT.render=function(e,n,i){const s=V9.getOptions(n),r=e.modules.size,o=e.modules.data,a=r+s.margin*2,l=s.color.light.a?"<path "+aw(s.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",c="<path "+aw(s.color.dark,"stroke")+' d="'+z9(o,r,s.margin)+'"/>',u='viewBox="0 0 '+a+" "+a+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+u+' shape-rendering="crispEdges">'+l+c+`</svg>
`;return typeof i=="function"&&i(null,h),h};const W9=t9,xm=TT,zT=BT,H9=VT;function gy(t,e,n,i,s){const r=[].slice.call(arguments,1),o=r.length,a=typeof r[o-1]=="function";if(!a&&!W9())throw new Error("Callback required as last argument");if(a){if(o<2)throw new Error("Too few arguments provided");o===2?(s=n,n=e,e=i=void 0):o===3&&(e.getContext&&typeof s>"u"?(s=i,i=void 0):(s=i,i=n,n=e,e=void 0))}else{if(o<1)throw new Error("Too few arguments provided");return o===1?(n=e,e=i=void 0):o===2&&!e.getContext&&(i=n,n=e,e=void 0),new Promise(function(l,c){try{const u=xm.create(n,i);l(t(u,e,i))}catch(u){c(u)}})}try{const l=xm.create(n,i);s(null,t(l,e,i))}catch(l){s(l)}}va.create=xm.create;va.toCanvas=gy.bind(null,zT.render);va.toDataURL=gy.bind(null,zT.renderToDataURL);va.toString=gy.bind(null,function(t,e,n){return H9.render(t,n)});const Y9={name:"peerQRCode",components:{LocaleText:Qe},props:{peerConfigData:String},mounted(){va.toCanvas(document.querySelector("#qrcode"),this.peerConfigData,t=>{t&&console.error(t)})}},j9={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},K9={class:"container d-flex h-100 w-100"},U9={class:"m-auto modal-dialog-centered dashboardModal justify-content-center"},G9={class:"card rounded-3 shadow"},X9={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},q9={class:"mb-0"},Z9={class:"card-body"},J9={id:"qrcode",class:"rounded-3 shadow",ref:"qrcode"};function Q9(t,e,n,i,s,r){const o=Se("LocaleText");return D(),V("div",j9,[g("div",K9,[g("div",U9,[g("div",G9,[g("div",X9,[g("h4",q9,[B(o,{t:"QR Code"})]),g("button",{type:"button",class:"btn-close ms-auto",onClick:e[0]||(e[0]=a=>this.$emit("close"))})]),g("div",Z9,[g("canvas",J9,null,512)])])])])])}const eq=He(Y9,[["render",Q9]]),tq={name:"nameInput",components:{LocaleText:Qe},props:{bulk:Boolean,data:Object,saving:Boolean}},nq={for:"peer_name_textbox",class:"form-label"},iq={class:"text-muted"},sq=["disabled"];function rq(t,e,n,i,s,r){const o=Se("LocaleText");return D(),V("div",{class:Me({inactiveField:this.bulk})},[g("label",nq,[g("small",iq,[B(o,{t:"Name"})])]),Oe(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving||this.bulk,"onUpdate:modelValue":e[0]||(e[0]=a=>this.data.name=a),id:"peer_name_textbox",placeholder:""},null,8,sq),[[Ke,this.data.name]])],2)}const oq=He(tq,[["render",rq]]),aq={name:"privatePublicKeyInput",components:{LocaleText:Qe},props:{data:Object,saving:Boolean,bulk:Boolean},setup(){return{dashboardStore:nt()}},data(){return{keypair:{publicKey:"",privateKey:"",presharedKey:""},editKey:!1,error:!1}},methods:{genKeyPair(){this.editKey=!1,this.keypair=window.wireguard.generateKeypair(),this.data.private_key=this.keypair.privateKey,this.data.public_key=this.keypair.publicKey},testKey(t){return/^[A-Za-z0-9+/]{43}=?=?$/.test(t)},checkMatching(){try{this.keypair.privateKey&&this.testKey(this.keypair.privateKey)&&(this.keypair.publicKey=window.wireguard.generatePublicKey(this.keypair.privateKey),window.wireguard.generatePublicKey(this.keypair.privateKey)!==this.keypair.publicKey?(this.error=!0,this.dashboardStore.newMessage("WGDashboard","Private key does not match with the public key","danger")):(this.data.private_key=this.keypair.privateKey,this.data.public_key=this.keypair.publicKey))}catch{this.error=!0,this.data.private_key="",this.data.public_key=""}}},mounted(){this.genKeyPair()},watch:{keypair:{deep:!0,handler(){this.error=!1,this.checkMatching()}}}},lq={for:"peer_private_key_textbox",class:"form-label"},cq={class:"text-muted"},uq={class:"input-group"},dq=["disabled"],hq=["disabled"],fq=g("i",{class:"bi bi-arrow-repeat"},null,-1),gq=[fq],pq={class:"d-flex"},mq={for:"public_key",class:"form-label"},_q={class:"text-muted"},yq={class:"form-check form-switch ms-auto"},vq=["disabled"],bq={class:"form-check-label",for:"enablePublicKeyEdit"},wq=["disabled"];function xq(t,e,n,i,s,r){const o=Se("LocaleText");return D(),V("div",{class:Me(["d-flex gap-2 flex-column",{inactiveField:this.bulk}])},[g("div",null,[g("label",lq,[g("small",cq,[B(o,{t:"Private Key
`);a(p,m,y)?(ju(Mm),Ga=null,Am=void 0,Js.set(f,100)):(Js.set(f,Js.get(f)+1,!0),c=!1)}}c&&(clearInterval(r),r=void 0)}return function(c){const u=xk(c);if(!u)return;const d=u.families;for(let h=0,f=d.length;h<f;++h){const p=d[h],m=u.style+`
`+u.weight+`
`+p;Js.get(m)===void 0&&(Js.set(m,100,!0),a(u.style,u.weight,p)||(Js.set(m,0,!0),r===void 0&&(r=setInterval(l,32))))}}}(),Eie=function(){let t;return function(e){let n=Mm[e];if(n==null){if(vk){const i=xk(e),s=Sk(e,"Žg");n=(isNaN(Number(i.lineHeight))?1.2:Number(i.lineHeight))*(s.actualBoundingBoxAscent+s.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),n=t.offsetHeight,document.body.removeChild(t);Mm[e]=n}return n}}();function Sk(t,e){return Ga||(Ga=an(1,1)),t!=Am&&(Ga.font=t,Am=Ga.font),Ga.measureText(e)}function Bh(t,e){return Sk(t,e).width}function Lw(t,e,n){if(e in n)return n[e];const i=e.split(`
`).reduce((s,r)=>Math.max(s,Bh(t,r)),0);return n[e]=i,i}function Sie(t,e){const n=[],i=[],s=[];let r=0,o=0,a=0,l=0;for(let c=0,u=e.length;c<=u;c+=2){const d=e[c];if(d===`
`||c===u){r=Math.max(r,o),s.push(o),o=0,a+=l,l=0;continue}const h=e[c+1]||t.font,f=Bh(h,d);n.push(f),o+=f;const p=Eie(h);i.push(p),l=Math.max(l,p)}return{width:r,height:a,widths:n,heights:i,lineWidths:s}}function Cie(t,e,n,i,s,r,o,a,l,c,u){t.save(),n!==1&&(t.globalAlpha===void 0?t.globalAlpha=d=>d.globalAlpha*=n:t.globalAlpha*=n),e&&t.transform.apply(t,e),i.contextInstructions?(t.translate(l,c),t.scale(u[0],u[1]),Tie(i,t)):u[0]<0||u[1]<0?(t.translate(l,c),t.scale(u[0],u[1]),t.drawImage(i,s,r,o,a,0,0,o,a)):t.drawImage(i,s,r,o,a,l,c,o*u[0],a*u[1]),t.restore()}function Tie(t,e){const n=t.contextInstructions;for(let i=0,s=n.length;i<s;i+=2)Array.isArray(n[i+1])?e[n[i]].apply(e,n[i+1]):e[n[i]]=n[i+1]}class qf extends Gf{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.canvases_,this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?ot.LOADING:ot.LOADED,this.imageState_===ot.LOADING&&this.ready().then(()=>this.imageState_=ot.LOADED),this.render()}clone(){const e=this.getScale(),n=new qf({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n}getAnchor(){const e=this.size_,n=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-n[0]/i[0],e[1]/2+n[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){let n=this.canvases_[e];if(!n){const i=this.renderOptions_,s=an(i.size*e,i.size*e);this.draw_(i,s,e),n=s.canvas,this.canvases_[e]=n}return n}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,n,i){if(n===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return n;let s=this.radius,r=this.radius2_===void 0?s:this.radius2_;if(s<r){const x=s;s=r,r=x}const o=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/o,l=r*Math.sin(a),c=Math.sqrt(r*r-l*l),u=s-c,d=Math.sqrt(l*l+u*u),h=d/l;if(e==="miter"&&h<=i)return h*n;const f=n/2/h,p=n/2*(u/d),y=Math.sqrt((s+f)*(s+f)+p*p)-s;if(this.radius2_===void 0||e==="bevel")return y*2;const v=s*Math.sin(a),b=Math.sqrt(s*s-v*v),E=r-b,w=Math.sqrt(v*v+E*E)/v;if(w<=i){const x=w*n/2-r-s;return 2*Math.max(y,x)}return y*2}createRenderOptions(){let e=Vl,n=zl,i=0,s=null,r=0,o,a=0;this.stroke_&&(o=Is(this.stroke_.getColor()??Tu),a=this.stroke_.getWidth()??Au,s=this.stroke_.getLineDash(),r=this.stroke_.getLineDashOffset()??0,n=this.stroke_.getLineJoin()??zl,e=this.stroke_.getLineCap()??Vl,i=this.stroke_.getMiterLimit()??Cu);const l=this.calculateLineJoinSize_(n,a,i),c=Math.max(this.radius,this.radius2_||0),u=Math.ceil(2*c+l);return{strokeStyle:o,strokeWidth:a,size:u,lineCap:e,lineDash:s,lineDashOffset:r,lineJoin:n,miterLimit:i}}render(){this.renderOptions_=this.createRenderOptions();const e=this.renderOptions_.size;this.canvases_={},this.hitDetectionCanvas_=null,this.size_=[e,e]}draw_(e,n,i){if
`);this.generateTileUrlFunction_?this.setTileUrlFunction(Sre(e,this.tileGrid),n):this.setKey(n)}tileUrlFunction(e,n,i){}}class Tre extends n0{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:kre,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:zk,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!cp(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const n=this.getProjection();if(this.tileGrid&&(!n||cp(n,e)))return this.tileGrid;const i=wt(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=Gk(e)),this.tileGridForProjection[i]}createTile_(e,n,i,s,r,o){const a=[e,n,i],l=this.getTileCoordForTileUrlFunction(a,r),c=l?this.tileUrlFunction(l,s,r):void 0,u=new this.tileClass(a,c!==void 0?Fe.IDLE:Fe.EMPTY,c!==void 0?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=o,u.addEventListener(et.CHANGE,this.handleTileChange.bind(this)),u}getTile(e,n,i,s,r){const o=this.getProjection();if(!o||!r||cp(o,r))return this.getTileInternal(e,n,i,s,o||r);const a=[e,n,i],l=this.getKey(),c=this.getTileGridForProjection(o),u=this.getTileGridForProjection(r),d=this.getTileCoordForTileUrlFunction(a,r),h=new $m(o,c,r,u,a,d,this.getTilePixelRatio(s),this.getGutter(),(f,p,m,y)=>this.getTileInternal(f,p,m,y,o),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return h.key=l,h}getTileInternal(e,n,i,s,r){const o=this.getKey();return this.createTile_(e,n,i,s,r,o)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,n){const i=Gi(e);if(i){const s=wt(i);s in this.tileGridForProjection||(this.tileGridForProjection[s]=n)}}}function kre(t,e){t.getImage().src=e}class Are extends Tre{constructor(e){e=e||{};const n=e.projection!==void 0?e.projection:"EPSG:3857",i=e.tileGrid!==void 0?e.tileGrid:fre({extent:t0(n),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:n,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=e.gutter!==void 0?e.gutter:0}getGutter(){return this.gutter_}}const Mre='&#169; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';class Ire extends Are{constructor(e){e=e||{};let n;e.attributions!==void 0?n=e.attributions:n=[Mre];const i=e.crossOrigin!==void 0?e.crossOrigin:"anonymous",s=e.url!==void 0?e.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:n,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:i,interpolate:e.interpolate,maxZoom:e.maxZoom!==void 0?e.maxZoom:19,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:s,wrapX:e.wrapX,zDirection:e.zDirection})}}const Gd={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};class Pre extends Uf{constructor(e){e=e||{};const n=Object.assign({},e),i=e.cacheSize;delete e.cacheSize,delete n.preload,delete n.useInterimTilesOnError,supe
`,""),t.push(e,""),t}class roe{constructor(e,n,i,s,r){this.overlaps=i,this.pixelRatio=n,this.resolution=e,this.alignAndScaleFill_,this.instructions=s.instructions,this.coordinates=s.coordinates,this.coordinateCache_={},this.renderedTransform_=ds(),this.hitDetectionInstructions=s.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=s.fillStates||{},this.strokeStates=s.strokeStates||{},this.textStates=s.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=r?new qk:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,n,i,s){const r=e+n+i+s;if(this.labels_[r])return this.labels_[r];const o=s?this.strokeStates[s]:null,a=i?this.fillStates[i]:null,l=this.textStates[n],c=this.pixelRatio,u=[l.scale[0]*c,l.scale[1]*c],d=l.justify?Uh[l.justify]:kp(Array.isArray(e)?e[0]:e,l.textAlign||ku),h=s&&o.lineWidth?o.lineWidth:0,f=Array.isArray(e)?e:String(e).split(`
`).reduce(soe,[]),{width:p,height:m,widths:y,heights:v,lineWidths:b}=Sie(l,f),E=p+h,C=[],w=(E+2)*u[0],x=(m+h)*u[1],T={width:w<0?Math.floor(w):Math.ceil(w),height:x<0?Math.floor(x):Math.ceil(x),contextInstructions:C};(u[0]!=1||u[1]!=1)&&C.push("scale",u),s&&(C.push("strokeStyle",o.strokeStyle),C.push("lineWidth",h),C.push("lineCap",o.lineCap),C.push("lineJoin",o.lineJoin),C.push("miterLimit",o.miterLimit),C.push("setLineDash",[o.lineDash]),C.push("lineDashOffset",o.lineDashOffset)),i&&C.push("fillStyle",a.fillStyle),C.push("textBaseline","middle"),C.push("textAlign","center");const k=.5-d;let A=d*E+k*h;const P=[],F=[];let H=0,te=0,N=0,L=0,I;for(let W=0,X=f.length;W<X;W+=2){const J=f[W];if(J===`
`){te+=H,H=0,A=d*E+k*h,++L;continue}const ne=f[W+1]||l.font;ne!==I&&(s&&P.push("font",ne),i&&F.push("font",ne),I=ne),H=Math.max(H,v[N]);const ue=[J,A+k*y[N]+d*(y[N]-b[L]),.5*(h+H)+te];A+=y[N],s&&P.push("strokeText",ue),i&&F.push("fillText",ue),++N}return Array.prototype.push.apply(C,P),Array.prototype.push.apply(C,F),this.labels_[r]=T,T}replayTextBackground_(e,n,i,s,r,o,a){e.beginPath(),e.moveTo.apply(e,n),e.lineTo.apply(e,i),e.lineTo.apply(e,s),e.lineTo.apply(e,r),e.lineTo.apply(e,n),o&&(this.alignAndScaleFill_=o[2],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,n,i,s,r,o,a,l,c,u,d,h,f,p,m,y){a*=h[0],l*=h[1];let v=i-a,b=s-l;const E=r+c>e?e-c:r,C=o+u>n?n-u:o,w=p[3]+E*h[0]+p[1],x=p[0]+C*h[1]+p[2],T=v-p[3],k=b-p[0];(m||d!==0)&&(Ir[0]=T,Pr[0]=T,Ir[1]=k,Ks[1]=k,Ks[0]=T+w,Us[0]=Ks[0],Us[1]=k+x,Pr[1]=Us[1]);let A;return d!==0?(A=_r(ds(),i,s,1,1,d,-i,-s),$n(A,Ir),$n(A,Ks),$n(A,Us),$n(A,Pr),co(Math.min(Ir[0],Ks[0],Us[0],Pr[0]),Math.min(Ir[1],Ks[1],Us[1],Pr[1]),Math.max(Ir[0],Ks[0],Us[0],Pr[0]),Math.max(Ir[1],Ks[1],Us[1],Pr[1]),Ha)):co(Math.min(T,T+w),Math.min(k,k+x),Math.max(T,T+w),Math.max(k,k+x),Ha),f&&(v=Math.round(v),b=Math.round(b)),{drawImageX:v,drawImageY:b,drawImageW:E,drawImageH:C,originX:c,originY:u,declutterBox:{minX:Ha[0],minY:Ha[1],maxX:Ha[2],maxY:Ha[3],value:y},canvasTransform:A,scale:h}}replayImageOrLabel_(e,n,i,s,r,o,a){const l=!!(o||a),c=s.declutterBox,u=a?a[2]*s.scale[0]/2:0;return c.minX-u<=n[0]&&c.maxX+u>=0&&c.minY-u<=n[1]&&c.maxY+u>=0&&(l&&this.replayTextBackground_(e,Ir,Ks,Us,Pr,o,a),Cie(e,s.canvasTransform,r,i,s.originX,s.originY,s.drawImageW,s.drawImageH,s.drawImageX,s.drawImageY,s.scale)),!0}fill_(e){const n=this.alignAndScaleFill_;if(n){const i=$n(this.renderedTransform_,[0,0]),s=512*this.pixelRatio;e.save(),e.translate(i[0]%s,i[1]%s),n!==1&&e.scale(n,n),e.rotate(this.viewRotation_)}e.fill(),n&&e.restore()}setStrokeStyle_(e,n){e.strokeStyle=n[1],e.lineWidth=n[2],e.lineCap=n[3],e.lineJoin=n[4],e.miterLimit=n[5],e.lineDashOffset=n[7],e.setLineDash(n[6])}drawLabelWithPointPlacement_(e,n,i,s){const r=this.textStates[n],o=this.createLabel(e,n,s,i),a=this.strokeStates[i],l=this.pixelRatio,c=kp(Array.isArray(e)?e[0]:e,r.textAlign||ku),u=Uh[r.textBaseline||Fh],d=a&&a.lineWidth?a.lineWidth:0,h=o.width/l-2*r.scale[0],f=c*h+2*(.5-c)*d,p=u*o.height/l+2*(.5-u)*d;return{label:o,anchorX:f,anchorY:p}}execute_(e,n,i,s,r,o,a,l){const c=this.zIndexContext_;let u;this.pixelCoordinates_&&xo(i,this.renderedTransform_)?u=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),u=no(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Cne(this.renderedTransform_,i));let d=0;const h=s.length;let f=0,p,m,y,v,b,E,C,w,x,T,k,A,P,F=0,H=0,te=null,N=null;const L=this.coordinateCache_,I=this.viewRotation_,W=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,X={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:I},J=this.instructions!=s||this.overlaps?0:200;let ne,ue,Y,Z;for(;d<h;){const M=s[d];switch(M[0]){case je.BEGIN_GEOMETRY:ne=M[1],Z=M[3],ne.getGeometry()?a!==void 0&&!fi(a,Z.getExtent())?d=M[2]+1:++d:d=M[2],c&&(c.zIndex=M[4]);break;case je.BEGIN_PATH:F>J&&(this.fill_(e),F=0),H>J&&(e.stroke(),H=0),!F&&!H&&(e.beginPath(),b=NaN,E=NaN),++d;break;case je.CIRCLE:f=M[1];const le=u[f],$=u[f+1],oe=u[f+2],de=u[f+3],ve=oe-le,z=de-$,ge=Math.sqrt(ve*ve+z*z);e.moveTo(le+ge,$),e.arc(le,$,ge,0,2*Math.PI,!0),++d;break;case je.CLOSE_PATH:e.closePath(),++d;break;case je.CUSTOM:f=M[1],p=M[2];const S=M[3],O=M[4],K=M[5];X.geometry=S,X.feature=ne,d in L||(L[d]=[]);const U=L[d];K?K(u,f,p,2,U):(U[0]=u[f],U[1]=u[f+1],U.length=2),c&&(c.zIndex=M[6]),O(U,X),++d;break;case je.DRAW_IMAGE:f=M[1],p=M[2],x=M[3],m=M[4],y=M[5];let re=M[6];const j=M[7],se=M[8],ee=M[9],fe=M[10];let me=M[11];const pe=M[12];let Le=M[13];v=M[14]||"declutter";const Ae=M[15];if(!x&&M.length>=20){T=M[19],k=M[20],A=M[21],P=M[22];const dn=this.drawLabelWithPointPlacement_(T,k,A,P);x=dn.label,M[3]=x;const En=M[23];m=(dn.anchorX-En)*this.pixelRatio,M[4]=m;const Sn=M[24];y=(dn.anchorY-Sn)*this.pixe