const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AIChatView-Bce7qiIa.js","assets/AIChatView-BEcgo_7s.css","assets/AdminView-CZRqrWtV.js","assets/AdminView-XtKggxFZ.css"])))=>i.map(i=>d[i]); var N4=Object.defineProperty;var D4=(e,t,A)=>t in e?N4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A;var Nt=(e,t,A)=>D4(e,typeof t!="symbol"?t+"":t,A);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function A(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=A(r);fetch(r.href,i)}})();/** * @vue/shared v3.5.30 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function _0(e){const t=Object.create(null);for(const A of e.split(","))t[A]=1;return A=>A in t}const oA={},Pa=[],hi=()=>{},Mv=()=>!1,Mh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),U0=e=>e.startsWith("onUpdate:"),fn=Object.assign,Q0=(e,t)=>{const A=e.indexOf(t);A>-1&&e.splice(A,1)},H4=Object.prototype.hasOwnProperty,$e=(e,t)=>H4.call(e,t),me=Array.isArray,Ra=e=>qc(e)==="[object Map]",il=e=>qc(e)==="[object Set]",im=e=>qc(e)==="[object Date]",Qe=e=>typeof e=="function",KA=e=>typeof e=="string",mi=e=>typeof e=="symbol",tA=e=>e!==null&&typeof e=="object",Tv=e=>(tA(e)||Qe(e))&&Qe(e.then)&&Qe(e.catch),Ov=Object.prototype.toString,qc=e=>Ov.call(e),M4=e=>qc(e).slice(8,-1),Pv=e=>qc(e)==="[object Object]",E0=e=>KA(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,oc=_0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Th=e=>{const t=Object.create(null);return A=>t[A]||(t[A]=e(A))},T4=/-\w/g,Kn=Th(e=>e.replace(T4,t=>t.slice(1).toUpperCase())),O4=/\B([A-Z])/g,Ys=Th(e=>e.replace(O4,"-$1").toLowerCase()),Oh=Th(e=>e.charAt(0).toUpperCase()+e.slice(1)),Yd=Th(e=>e?`on${Oh(e)}`:""),ui=(e,t)=>!Object.is(e,t),Df=(e,...t)=>{for(let A=0;A{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:A})},Ph=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let sm;const Rh=()=>sm||(sm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qc(e){if(me(e)){const t={};for(let A=0;A{if(A){const n=A.split(R4);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function aA(e){let t="";if(KA(e))t=e;else if(me(e))for(let A=0;Asl(A,t))}const Vv=e=>!!(e&&e.__v_isRef===!0),kt=e=>KA(e)?e:e==null?"":me(e)||tA(e)&&(e.toString===Ov||!Qe(e.toString))?Vv(e)?kt(e.value):JSON.stringify(e,jv,2):String(e),jv=(e,t)=>Vv(t)?jv(e,t.value):Ra(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((A,[n,r],i)=>(A[Jd(n,i)+" =>"]=r,A),{})}:il(t)?{[`Set(${t.size})`]:[...t.values()].map(A=>Jd(A))}:mi(t)?Jd(t):tA(t)&&!me(t)&&!Pv(t)?String(t):t,Jd=(e,t="")=>{var A;return mi(e)?`Symbol(${(A=e.description)!=null?A:t})`:e};/** * @vue/reactivity v3.5.30 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let $n;class z4{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=$n,!t&&$n&&(this.index=($n.scopes||($n.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,A;if(this.scopes)for(t=0,A=this.scopes.length;t0&&--this._on===0&&($n=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let A,n;for(A=0,n=this.effects.length;A0)return;if(lc){let t=lc;for(lc=void 0;t;){const A=t.next;t.next=void 0,t.flags&=-9,t=A}}let e;for(;ac;){let t=ac;for(ac=void 0;t;){const A=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=A}}if(e)throw e}function $v(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function qv(e){let t,A=e.depsTail,n=A;for(;n;){const r=n.prevDep;n.version===-1?(n===A&&(A=r),k0(n),q4(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=A}function hp(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xv(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xv(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ec)||(e.globalVersion=Ec,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!hp(e))))return;e.flags|=2;const t=e.dep,A=fA,n=Tr;fA=e,Tr=!0;try{$v(e);const r=e.fn(e._value);(t.version===0||ui(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{fA=A,Tr=n,qv(e),e.flags&=-3}}function k0(e,t=!1){const{dep:A,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),A.subs===e&&(A.subs=n,!n&&A.computed)){A.computed.flags&=-5;for(let i=A.computed.deps;i;i=i.nextDep)k0(i,!0)}!t&&!--A.sc&&A.map&&A.map.delete(A.key)}function q4(e){const{prevDep:t,nextDep:A}=e;t&&(t.nextDep=A,e.prevDep=void 0),A&&(A.prevDep=t,e.nextDep=void 0)}let Tr=!0;const Yv=[];function ns(){Yv.push(Tr),Tr=!1}function rs(){const e=Yv.pop();Tr=e===void 0?!0:e}function om(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const A=fA;fA=void 0;try{t()}finally{fA=A}}}let Ec=0;class X4{constructor(t,A){this.sub=t,this.dep=A,this.version=A.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class N0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!fA||!Tr||fA===this.computed)return;let A=this.activeLink;if(A===void 0||A.sub!==fA)A=this.activeLink=new X4(fA,this),fA.deps?(A.prevDep=fA.depsTail,fA.depsTail.nextDep=A,fA.depsTail=A):fA.deps=fA.depsTail=A,Jv(A);else if(A.version===-1&&(A.version=this.version,A.nextDep)){const n=A.nextDep;n.prevDep=A.prevDep,A.prevDep&&(A.prevDep.nextDep=n),A.prevDep=fA.depsTail,A.nextDep=void 0,fA.depsTail.nextDep=A,fA.depsTail=A,fA.deps===A&&(fA.deps=n)}return A}trigger(t){this.version++,Ec++,this.notify(t)}notify(t){S0();try{for(let A=this.subs;A;A=A.prevSub)A.sub.notify()&&A.sub.dep.notify()}finally{L0()}}}function Jv(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Jv(n)}const A=e.dep.subs;A!==e&&(e.prevSub=A,A&&(A.nextSub=e)),e.dep.subs=e}}const dp=new WeakMap,Mo=Symbol(""),gp=Symbol(""),Ic=Symbol("");function Un(e,t,A){if(Tr&&fA){let n=dp.get(e);n||dp.set(e,n=new Map);let r=n.get(A);r||(n.set(A,r=new N0),r.map=n,r.key=A),r.track()}}function Xi(e,t,A,n,r,i){const s=dp.get(e);if(!s){Ec++;return}const o=a=>{a&&a.trigger()};if(S0(),t==="clear")s.forEach(o);else{const a=me(e),l=a&&E0(A);if(a&&A==="length"){const c=Number(n);s.forEach((u,d)=>{(d==="length"||d===Ic||!mi(d)&&d>=c)&&o(u)})}else switch((A!==void 0||s.has(void 0))&&o(s.get(A)),l&&o(s.get(Ic)),t){case"add":a?l&&o(s.get("length")):(o(s.get(Mo)),Ra(e)&&o(s.get(gp)));break;case"delete":a||(o(s.get(Mo)),Ra(e)&&o(s.get(gp)));break;case"set":Ra(e)&&o(s.get(Mo));break}}L0()}function va(e){const t=ze(e);return t===e?t:(Un(t,"iterate",Ic),xr(e)?t:t.map(Pr))}function Kh(e){return Un(e=ze(e),"iterate",Ic),e}function li(e,t){return is(e)?Xa(To(e)?Pr(t):t):Pr(t)}const Y4={__proto__:null,[Symbol.iterator](){return tg(this,Symbol.iterator,e=>li(this,e))},concat(...e){return va(this).concat(...e.map(t=>me(t)?va(t):t))},entries(){return tg(this,"entries",e=>(e[1]=li(this,e[1]),e))},every(e,t){return Mi(this,"every",e,t,void 0,arguments)},filter(e,t){return Mi(this,"filter",e,t,A=>A.map(n=>li(this,n)),arguments)},find(e,t){return Mi(this,"find",e,t,A=>li(this,A),arguments)},findIndex(e,t){return Mi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Mi(this,"findLast",e,t,A=>li(this,A),arguments)},findLastIndex(e,t){return Mi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Mi(this,"forEach",e,t,void 0,arguments)},includes(...e){return eg(this,"includes",e)},indexOf(...e){return eg(this,"indexOf",e)},join(e){return va(this).join(e)},lastIndexOf(...e){return eg(this,"lastIndexOf",e)},map(e,t){return Mi(this,"map",e,t,void 0,arguments)},pop(){return Ll(this,"pop")},push(...e){return Ll(this,"push",e)},reduce(e,...t){return am(this,"reduce",e,t)},reduceRight(e,...t){return am(this,"reduceRight",e,t)},shift(){return Ll(this,"shift")},some(e,t){return Mi(this,"some",e,t,void 0,arguments)},splice(...e){return Ll(this,"splice",e)},toReversed(){return va(this).toReversed()},toSorted(e){return va(this).toSorted(e)},toSpliced(...e){return va(this).toSpliced(...e)},unshift(...e){return Ll(this,"unshift",e)},values(){return tg(this,"values",e=>li(this,e))}};function tg(e,t,A){const n=Kh(e),r=n[t]();return n!==e&&!xr(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=A(i.value)),i}),r}const J4=Array.prototype;function Mi(e,t,A,n,r,i){const s=Kh(e),o=s!==e&&!xr(e),a=s[t];if(a!==J4[t]){const u=a.apply(e,i);return o?Pr(u):u}let l=A;s!==e&&(o?l=function(u,d){return A.call(this,li(e,u),d,e)}:A.length>2&&(l=function(u,d){return A.call(this,u,d,e)}));const c=a.call(s,l,n);return o&&r?r(c):c}function am(e,t,A,n){const r=Kh(e),i=r!==e&&!xr(e);let s=A,o=!1;r!==e&&(i?(o=n.length===0,s=function(l,c,u){return o&&(o=!1,l=li(e,l)),A.call(this,l,li(e,c),u,e)}):A.length>3&&(s=function(l,c,u){return A.call(this,l,c,u,e)}));const a=r[t](s,...n);return o?li(e,a):a}function eg(e,t,A){const n=ze(e);Un(n,"iterate",Ic);const r=n[t](...A);return(r===-1||r===!1)&&M0(A[0])?(A[0]=ze(A[0]),n[t](...A)):r}function Ll(e,t,A=[]){ns(),S0();const n=ze(e)[t].apply(e,A);return L0(),rs(),n}const Z4=_0("__proto__,__v_isRef,__isVue"),Zv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mi));function tx(e){mi(e)||(e=String(e));const t=ze(this);return Un(t,"has",e),t.hasOwnProperty(e)}class tb{constructor(t=!1,A=!1){this._isReadonly=t,this._isShallow=A}get(t,A,n){if(A==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(A==="__v_isReactive")return!r;if(A==="__v_isReadonly")return r;if(A==="__v_isShallow")return i;if(A==="__v_raw")return n===(r?i?cx:rb:i?nb:Ab).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=me(t);if(!r){let a;if(s&&(a=Y4[A]))return a;if(A==="hasOwnProperty")return tx}const o=Reflect.get(t,A,In(t)?t:n);if((mi(A)?Zv.has(A):Z4(A))||(r||Un(t,"get",A),i))return o;if(In(o)){const a=s&&E0(A)?o:o.value;return r&&tA(a)?mp(a):a}return tA(o)?r?mp(o):Vh(o):o}}class eb extends tb{constructor(t=!1){super(!1,t)}set(t,A,n,r){let i=t[A];const s=me(t)&&E0(A);if(!this._isShallow){const l=is(i);if(!xr(n)&&!is(n)&&(i=ze(i),n=ze(n)),!s&&In(i)&&!In(n))return l||(i.value=n),!0}const o=s?Number(A)e,Mu=e=>Reflect.getPrototypeOf(e);function ix(e,t,A){return function(...n){const r=this.__v_raw,i=ze(r),s=Ra(i),o=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,l=r[e](...n),c=A?pp:t?Xa:Pr;return!t&&Un(i,"iterate",a?gp:Mo),fn(Object.create(l),{next(){const{value:u,done:d}=l.next();return d?{value:u,done:d}:{value:o?[c(u[0]),c(u[1])]:c(u),done:d}}})}}function Tu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function sx(e,t){const A={get(r){const i=this.__v_raw,s=ze(i),o=ze(r);e||(ui(r,o)&&Un(s,"get",r),Un(s,"get",o));const{has:a}=Mu(s),l=t?pp:e?Xa:Pr;if(a.call(s,r))return l(i.get(r));if(a.call(s,o))return l(i.get(o));i!==s&&i.get(r)},get size(){const r=this.__v_raw;return!e&&Un(ze(r),"iterate",Mo),r.size},has(r){const i=this.__v_raw,s=ze(i),o=ze(r);return e||(ui(r,o)&&Un(s,"has",r),Un(s,"has",o)),r===o?i.has(r):i.has(r)||i.has(o)},forEach(r,i){const s=this,o=s.__v_raw,a=ze(o),l=t?pp:e?Xa:Pr;return!e&&Un(a,"iterate",Mo),o.forEach((c,u)=>r.call(i,l(c),l(u),s))}};return fn(A,e?{add:Tu("add"),set:Tu("set"),delete:Tu("delete"),clear:Tu("clear")}:{add(r){const i=ze(this),s=Mu(i),o=ze(r),a=!t&&!xr(r)&&!is(r)?o:r;return s.has.call(i,a)||ui(r,a)&&s.has.call(i,r)||ui(o,a)&&s.has.call(i,o)||(i.add(a),Xi(i,"add",a,a)),this},set(r,i){!t&&!xr(i)&&!is(i)&&(i=ze(i));const s=ze(this),{has:o,get:a}=Mu(s);let l=o.call(s,r);l||(r=ze(r),l=o.call(s,r));const c=a.call(s,r);return s.set(r,i),l?ui(i,c)&&Xi(s,"set",r,i):Xi(s,"add",r,i),this},delete(r){const i=ze(this),{has:s,get:o}=Mu(i);let a=s.call(i,r);a||(r=ze(r),a=s.call(i,r)),o&&o.call(i,r);const l=i.delete(r);return a&&Xi(i,"delete",r,void 0),l},clear(){const r=ze(this),i=r.size!==0,s=r.clear();return i&&Xi(r,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(r=>{A[r]=ix(r,e,t)}),A}function D0(e,t){const A=sx(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get($e(A,r)&&r in n?A:n,r,i)}const ox={get:D0(!1,!1)},ax={get:D0(!1,!0)},lx={get:D0(!0,!1)};const Ab=new WeakMap,nb=new WeakMap,rb=new WeakMap,cx=new WeakMap;function ux(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fx(e){return e.__v_skip||!Object.isExtensible(e)?0:ux(M4(e))}function Vh(e){return is(e)?e:H0(e,!1,Ax,ox,Ab)}function ib(e){return H0(e,!1,rx,ax,nb)}function mp(e){return H0(e,!0,nx,lx,rb)}function H0(e,t,A,n,r){if(!tA(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=fx(e);if(i===0)return e;const s=r.get(e);if(s)return s;const o=new Proxy(e,i===2?n:A);return r.set(e,o),o}function To(e){return is(e)?To(e.__v_raw):!!(e&&e.__v_isReactive)}function is(e){return!!(e&&e.__v_isReadonly)}function xr(e){return!!(e&&e.__v_isShallow)}function M0(e){return e?!!e.__v_raw:!1}function ze(e){const t=e&&e.__v_raw;return t?ze(t):e}function hx(e){return!$e(e,"__v_skip")&&Object.isExtensible(e)&&Rv(e,"__v_skip",!0),e}const Pr=e=>tA(e)?Vh(e):e,Xa=e=>tA(e)?mp(e):e;function In(e){return e?e.__v_isRef===!0:!1}function ge(e){return sb(e,!1)}function dx(e){return sb(e,!0)}function sb(e,t){return In(e)?e:new gx(e,t)}class gx{constructor(t,A){this.dep=new N0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=A?t:ze(t),this._value=A?t:Pr(t),this.__v_isShallow=A}get value(){return this.dep.track(),this._value}set value(t){const A=this._rawValue,n=this.__v_isShallow||xr(t)||is(t);t=n?t:ze(t),ui(t,A)&&(this._rawValue=t,this._value=n?t:Pr(t),this.dep.trigger())}}function qt(e){return In(e)?e.value:e}const px={get:(e,t,A)=>t==="__v_raw"?e:qt(Reflect.get(e,t,A)),set:(e,t,A,n)=>{const r=e[t];return In(r)&&!In(A)?(r.value=A,!0):Reflect.set(e,t,A,n)}};function ob(e){return To(e)?e:new Proxy(e,px)}class mx{constructor(t,A,n){this.fn=t,this.setter=A,this._value=void 0,this.dep=new N0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ec-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!A,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&fA!==this)return zv(this,!0),!0}get value(){const t=this.dep.track();return Xv(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Bx(e,t,A=!1){let n,r;return Qe(e)?n=e:(n=e.get,r=e.set),new mx(n,r,A)}const Ou={},rh=new WeakMap;let _o;function wx(e,t=!1,A=_o){if(A){let n=rh.get(A);n||rh.set(A,n=[]),n.push(e)}}function vx(e,t,A=oA){const{immediate:n,deep:r,once:i,scheduler:s,augmentJob:o,call:a}=A,l=_=>r?_:xr(_)||r===!1||r===0?Yi(_,1):Yi(_);let c,u,d,f,m=!1,B=!1;if(In(e)?(u=()=>e.value,m=xr(e)):To(e)?(u=()=>l(e),m=!0):me(e)?(B=!0,m=e.some(_=>To(_)||xr(_)),u=()=>e.map(_=>{if(In(_))return _.value;if(To(_))return l(_);if(Qe(_))return a?a(_,2):_()})):Qe(e)?t?u=a?()=>a(e,2):e:u=()=>{if(d){ns();try{d()}finally{rs()}}const _=_o;_o=c;try{return a?a(e,3,[f]):e(f)}finally{_o=_}}:u=hi,t&&r){const _=u,H=r===!0?1/0:r;u=()=>Yi(_(),H)}const v=$4(),b=()=>{c.stop(),v&&v.active&&Q0(v.effects,c)};if(i&&t){const _=t;t=(...H)=>{_(...H),b()}}let C=B?new Array(e.length).fill(Ou):Ou;const Q=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const H=c.run();if(r||m||(B?H.some((W,R)=>ui(W,C[R])):ui(H,C))){d&&d();const W=_o;_o=c;try{const R=[H,C===Ou?void 0:B&&C[0]===Ou?[]:C,f];C=H,a?a(t,3,R):t(...R)}finally{_o=W}}}else c.run()};return o&&o(Q),c=new Gv(u),c.scheduler=s?()=>s(Q,!1):Q,f=_=>wx(_,!1,c),d=c.onStop=()=>{const _=rh.get(c);if(_){if(a)a(_,4);else for(const H of _)H();rh.delete(c)}},t?n?Q(!0):C=c.run():s?s(Q.bind(null,!0),!0):c.run(),b.pause=c.pause.bind(c),b.resume=c.resume.bind(c),b.stop=b,b}function Yi(e,t=1/0,A){if(t<=0||!tA(e)||e.__v_skip||(A=A||new Map,(A.get(e)||0)>=t))return e;if(A.set(e,t),t--,In(e))Yi(e.value,t,A);else if(me(e))for(let n=0;n{Yi(n,t,A)});else if(Pv(e)){for(const n in e)Yi(e[n],t,A);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Yi(e[n],t,A)}return e}/** * @vue/runtime-core v3.5.30 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Xc(e,t,A,n){try{return n?e(...n):e()}catch(r){jh(r,t,A)}}function Bi(e,t,A,n){if(Qe(e)){const r=Xc(e,t,A,n);return r&&Tv(r)&&r.catch(i=>{jh(i,t,A)}),r}if(me(e)){const r=[];for(let i=0;i>>1,r=Pn[n],i=Sc(r);i=Sc(A)?Pn.push(e):Pn.splice(yx(t),0,e),e.flags|=1,lb()}}function lb(){ih||(ih=ab.then(ub))}function Cx(e){me(e)?Ka.push(...e):Es&&e.id===-1?Es.splice(La+1,0,e):e.flags&1||(Ka.push(e),e.flags|=1),lb()}function lm(e,t,A=oi+1){for(;ASc(A)-Sc(n));if(Ka.length=0,Es){Es.push(...t);return}for(Es=t,La=0;Lae.id==null?e.flags&2?-1:1/0:e.id;function ub(e){try{for(oi=0;oi{n._d&&lh(-1);const i=sh(t);let s;try{s=e(...r)}finally{sh(i),n._d&&lh(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function Tt(e,t){if(lr===null)return e;const A=$h(lr),n=e.dirs||(e.dirs=[]);for(let r=0;r1)return A&&Qe(t)?t.call(n&&n.proxy):t}}const Fx=Symbol.for("v-scx"),_x=()=>di(Fx);function Fr(e,t,A){return hb(e,t,A)}function hb(e,t,A=oA){const{immediate:n,deep:r,flush:i,once:s}=A,o=fn({},A),a=t&&n||!t&&i!=="post";let l;if(kc){if(i==="sync"){const f=_x();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!a){const f=()=>{};return f.stop=hi,f.resume=hi,f.pause=hi,f}}const c=Qn;o.call=(f,m,B)=>Bi(f,c,m,B);let u=!1;i==="post"?o.scheduler=f=>{zn(f,c&&c.suspense)}:i!=="sync"&&(u=!0,o.scheduler=(f,m)=>{m?f():O0(f)}),o.augmentJob=f=>{t&&(f.flags|=4),u&&(f.flags|=2,c&&(f.id=c.uid,f.i=c))};const d=vx(e,t,o);return kc&&(l?l.push(d):a&&d()),d}function Ux(e,t,A){const n=this.proxy,r=KA(e)?e.includes(".")?db(n,e):()=>n[e]:e.bind(n,n);let i;Qe(t)?i=t:(i=t.handler,A=t);const s=Yc(this),o=hb(r,i.bind(n),A);return s(),o}function db(e,t){const A=t.split(".");return()=>{let n=e;for(let r=0;re.__isTeleport,Ix=Symbol("_leaveCb");function P0(e,t){e.shapeFlag&6&&e.component?(e.transition=t,P0(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gb(e,t){return Qe(e)?fn({name:e.name},t,{setup:e}):e}function pb(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function cm(e,t){let A;return!!((A=Object.getOwnPropertyDescriptor(e,t))&&!A.configurable)}const oh=new WeakMap;function cc(e,t,A,n,r=!1){if(me(e)){e.forEach((B,v)=>cc(B,t&&(me(t)?t[v]:t),A,n,r));return}if(uc(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&cc(e,t,A,n.component.subTree);return}const i=n.shapeFlag&4?$h(n.component):n.el,s=r?null:i,{i:o,r:a}=e,l=t&&t.r,c=o.refs===oA?o.refs={}:o.refs,u=o.setupState,d=ze(u),f=u===oA?Mv:B=>cm(c,B)?!1:$e(d,B),m=(B,v)=>!(v&&cm(c,v));if(l!=null&&l!==a){if(um(t),KA(l))c[l]=null,f(l)&&(u[l]=null);else if(In(l)){const B=t;m(l,B.k)&&(l.value=null),B.k&&(c[B.k]=null)}}if(Qe(a))Xc(a,o,12,[s,c]);else{const B=KA(a),v=In(a);if(B||v){const b=()=>{if(e.f){const C=B?f(a)?u[a]:c[a]:m()||!e.k?a.value:c[e.k];if(r)me(C)&&Q0(C,i);else if(me(C))C.includes(i)||C.push(i);else if(B)c[a]=[i],f(a)&&(u[a]=c[a]);else{const Q=[i];m(a,e.k)&&(a.value=Q),e.k&&(c[e.k]=Q)}}else B?(c[a]=s,f(a)&&(u[a]=s)):v&&(m(a,e.k)&&(a.value=s),e.k&&(c[e.k]=s))};if(s){const C=()=>{b(),oh.delete(e)};C.id=-1,oh.set(e,C),zn(C,A)}else um(e),b()}}}function um(e){const t=oh.get(e);t&&(t.flags|=8,oh.delete(e))}Rh().requestIdleCallback;Rh().cancelIdleCallback;const uc=e=>!!e.type.__asyncLoader,mb=e=>e.type.__isKeepAlive;function Sx(e,t){Bb(e,"a",t)}function Lx(e,t){Bb(e,"da",t)}function Bb(e,t,A=Qn){const n=e.__wdc||(e.__wdc=()=>{let r=A;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Gh(t,n,A),A){let r=A.parent;for(;r&&r.parent;)mb(r.parent.vnode)&&kx(n,t,A,r),r=r.parent}}function kx(e,t,A,n){const r=Gh(t,e,n,!0);R0(()=>{Q0(n[t],r)},A)}function Gh(e,t,A=Qn,n=!1){if(A){const r=A[e]||(A[e]=[]),i=t.__weh||(t.__weh=(...s)=>{ns();const o=Yc(A),a=Bi(t,A,e,s);return o(),rs(),a});return n?r.unshift(i):r.push(i),i}}const os=e=>(t,A=Qn)=>{(!kc||e==="sp")&&Gh(e,(...n)=>t(...n),A)},Nx=os("bm"),wi=os("m"),Dx=os("bu"),Hx=os("u"),Mx=os("bum"),R0=os("um"),Tx=os("sp"),Ox=os("rtg"),Px=os("rtc");function Rx(e,t=Qn){Gh("ec",e,t)}const Kx="components",wb=Symbol.for("v-ndc");function Pu(e){return KA(e)?Vx(Kx,e,!1)||e:e||wb}function Vx(e,t,A=!0,n=!1){const r=lr||Qn;if(r){const i=r.type;{const o=QF(i,!1);if(o&&(o===t||o===Kn(t)||o===Oh(Kn(t))))return i}const s=fm(r[e]||i[e],t)||fm(r.appContext[e],t);return!s&&n?i:s}}function fm(e,t){return e&&(e[t]||e[Kn(t)]||e[Oh(Kn(t))])}function Ue(e,t,A,n){let r;const i=A,s=me(e);if(s||KA(e)){const o=s&&To(e);let a=!1,l=!1;o&&(a=!xr(e),l=is(e),e=Kh(e)),r=new Array(e.length);for(let c=0,u=e.length;ct(o,a,void 0,i));else{const o=Object.keys(e);r=new Array(o.length);for(let a=0,l=o.length;ae?Ob(e)?$h(e):Bp(e.parent):null,fc=fn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bp(e.parent),$root:e=>Bp(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>bb(e),$forceUpdate:e=>e.f||(e.f=()=>{O0(e.update)}),$nextTick:e=>e.n||(e.n=T0.bind(e.proxy)),$watch:e=>Ux.bind(e)}),Ag=(e,t)=>e!==oA&&!e.__isScriptSetup&&$e(e,t),jx={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:A,setupState:n,data:r,props:i,accessCache:s,type:o,appContext:a}=e;if(t[0]!=="$"){const d=s[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return r[t];case 4:return A[t];case 3:return i[t]}else{if(Ag(n,t))return s[t]=1,n[t];if(r!==oA&&$e(r,t))return s[t]=2,r[t];if($e(i,t))return s[t]=3,i[t];if(A!==oA&&$e(A,t))return s[t]=4,A[t];wp&&(s[t]=0)}}const l=fc[t];let c,u;if(l)return t==="$attrs"&&Un(e.attrs,"get",""),l(e);if((c=o.__cssModules)&&(c=c[t]))return c;if(A!==oA&&$e(A,t))return s[t]=4,A[t];if(u=a.config.globalProperties,$e(u,t))return u[t]},set({_:e},t,A){const{data:n,setupState:r,ctx:i}=e;return Ag(r,t)?(r[t]=A,!0):n!==oA&&$e(n,t)?(n[t]=A,!0):$e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=A,!0)},has({_:{data:e,setupState:t,accessCache:A,ctx:n,appContext:r,props:i,type:s}},o){let a;return!!(A[o]||e!==oA&&o[0]!=="$"&&$e(e,o)||Ag(t,o)||$e(i,o)||$e(n,o)||$e(fc,o)||$e(r.config.globalProperties,o)||(a=s.__cssModules)&&a[o])},defineProperty(e,t,A){return A.get!=null?e._.accessCache[t]=0:$e(A,"value")&&this.set(e,t,A.value,null),Reflect.defineProperty(e,t,A)}};function hm(e){return me(e)?e.reduce((t,A)=>(t[A]=null,t),{}):e}let wp=!0;function Gx(e){const t=bb(e),A=e.proxy,n=e.ctx;wp=!1,t.beforeCreate&&dm(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:o,provide:a,inject:l,created:c,beforeMount:u,mounted:d,beforeUpdate:f,updated:m,activated:B,deactivated:v,beforeDestroy:b,beforeUnmount:C,destroyed:Q,unmounted:_,render:H,renderTracked:W,renderTriggered:R,errorCaptured:O,serverPrefetch:k,expose:V,inheritAttrs:F,components:L,directives:G,filters:q}=t;if(l&&Wx(l,n,null),s)for(const ct in s){const at=s[ct];Qe(at)&&(n[ct]=at.bind(A))}if(r){const ct=r.call(A,A);tA(ct)&&(e.data=Vh(ct))}if(wp=!0,i)for(const ct in i){const at=i[ct],st=Qe(at)?at.bind(A,A):Qe(at.get)?at.get.bind(A,A):hi,Z=!Qe(at)&&Qe(at.set)?at.set.bind(A):hi,j=ye({get:st,set:Z});Object.defineProperty(n,ct,{enumerable:!0,configurable:!0,get:()=>j.value,set:U=>j.value=U})}if(o)for(const ct in o)vb(o[ct],n,A,ct);if(a){const ct=Qe(a)?a.call(A):a;Reflect.ownKeys(ct).forEach(at=>{Hf(at,ct[at])})}c&&dm(c,e,"c");function lt(ct,at){me(at)?at.forEach(st=>ct(st.bind(A))):at&&ct(at.bind(A))}if(lt(Nx,u),lt(wi,d),lt(Dx,f),lt(Hx,m),lt(Sx,B),lt(Lx,v),lt(Rx,O),lt(Px,W),lt(Ox,R),lt(Mx,C),lt(R0,_),lt(Tx,k),me(V))if(V.length){const ct=e.exposed||(e.exposed={});V.forEach(at=>{Object.defineProperty(ct,at,{get:()=>A[at],set:st=>A[at]=st,enumerable:!0})})}else e.exposed||(e.exposed={});H&&e.render===hi&&(e.render=H),F!=null&&(e.inheritAttrs=F),L&&(e.components=L),G&&(e.directives=G),k&&pb(e)}function Wx(e,t,A=hi){me(e)&&(e=vp(e));for(const n in e){const r=e[n];let i;tA(r)?"default"in r?i=di(r.from||n,r.default,!0):i=di(r.from||n):i=di(r),In(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[n]=i}}function dm(e,t,A){Bi(me(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,A)}function vb(e,t,A,n){let r=n.includes(".")?db(A,n):()=>A[n];if(KA(e)){const i=t[e];Qe(i)&&Fr(r,i)}else if(Qe(e))Fr(r,e.bind(A));else if(tA(e))if(me(e))e.forEach(i=>vb(i,t,A,n));else{const i=Qe(e.handler)?e.handler.bind(A):t[e.handler];Qe(i)&&Fr(r,i,e)}}function bb(e){const t=e.type,{mixins:A,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,o=i.get(t);let a;return o?a=o:!r.length&&!A&&!n?a=t:(a={},r.length&&r.forEach(l=>ah(a,l,s,!0)),ah(a,t,s)),tA(t)&&i.set(t,a),a}function ah(e,t,A,n=!1){const{mixins:r,extends:i}=t;i&&ah(e,i,A,!0),r&&r.forEach(s=>ah(e,s,A,!0));for(const s in t)if(!(n&&s==="expose")){const o=zx[s]||A&&A[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const zx={data:gm,props:pm,emits:pm,methods:zl,computed:zl,beforeCreate:Mn,created:Mn,beforeMount:Mn,mounted:Mn,beforeUpdate:Mn,updated:Mn,beforeDestroy:Mn,beforeUnmount:Mn,destroyed:Mn,unmounted:Mn,activated:Mn,deactivated:Mn,errorCaptured:Mn,serverPrefetch:Mn,components:zl,directives:zl,watch:qx,provide:gm,inject:$x};function gm(e,t){return t?e?function(){return fn(Qe(e)?e.call(this,this):e,Qe(t)?t.call(this,this):t)}:t:e}function $x(e,t){return zl(vp(e),vp(t))}function vp(e){if(me(e)){const t={};for(let A=0;At==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Kn(t)}Modifiers`]||e[`${Ys(t)}Modifiers`];function Zx(e,t,...A){if(e.isUnmounted)return;const n=e.vnode.props||oA;let r=A;const i=t.startsWith("update:"),s=i&&Jx(n,t.slice(7));s&&(s.trim&&(r=A.map(c=>KA(c)?c.trim():c)),s.number&&(r=A.map(Ph)));let o,a=n[o=Yd(t)]||n[o=Yd(Kn(t))];!a&&i&&(a=n[o=Yd(Ys(t))]),a&&Bi(a,e,6,r);const l=n[o+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Bi(l,e,6,r)}}const tF=new WeakMap;function Cb(e,t,A=!1){const n=A?tF:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let s={},o=!1;if(!Qe(e)){const a=l=>{const c=Cb(l,t,!0);c&&(o=!0,fn(s,c))};!A&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!o?(tA(e)&&n.set(e,null),null):(me(i)?i.forEach(a=>s[a]=null):fn(s,i),tA(e)&&n.set(e,s),s)}function Wh(e,t){return!e||!Mh(t)?!1:(t=t.slice(2).replace(/Once$/,""),$e(e,t[0].toLowerCase()+t.slice(1))||$e(e,Ys(t))||$e(e,t))}function mm(e){const{type:t,vnode:A,proxy:n,withProxy:r,propsOptions:[i],slots:s,attrs:o,emit:a,render:l,renderCache:c,props:u,data:d,setupState:f,ctx:m,inheritAttrs:B}=e,v=sh(e);let b,C;try{if(A.shapeFlag&4){const _=r||n,H=_;b=ci(l.call(H,_,c,u,f,d,m)),C=o}else{const _=t;b=ci(_.length>1?_(u,{attrs:o,slots:s,emit:a}):_(u,null)),C=t.props?o:eF(o)}}catch(_){hc.length=0,jh(_,e,1),b=Vt(Ws)}let Q=b;if(C&&B!==!1){const _=Object.keys(C),{shapeFlag:H}=Q;_.length&&H&7&&(i&&_.some(U0)&&(C=AF(C,i)),Q=Ya(Q,C,!1,!0))}return A.dirs&&(Q=Ya(Q,null,!1,!0),Q.dirs=Q.dirs?Q.dirs.concat(A.dirs):A.dirs),A.transition&&P0(Q,A.transition),b=Q,sh(v),b}const eF=e=>{let t;for(const A in e)(A==="class"||A==="style"||Mh(A))&&((t||(t={}))[A]=e[A]);return t},AF=(e,t)=>{const A={};for(const n in e)(!U0(n)||!(n.slice(9)in t))&&(A[n]=e[n]);return A};function nF(e,t,A){const{props:n,children:r,component:i}=e,{props:s,children:o,patchFlag:a}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(A&&a>=0){if(a&1024)return!0;if(a&16)return n?Bm(n,s,l):!!s;if(a&8){const c=t.dynamicProps;for(let u=0;uObject.create(Fb),Ub=e=>Object.getPrototypeOf(e)===Fb;function iF(e,t,A,n=!1){const r={},i=_b();e.propsDefaults=Object.create(null),Qb(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);A?e.props=n?r:ib(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function sF(e,t,A,n){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,o=ze(r),[a]=e.propsOptions;let l=!1;if((n||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let u=0;u{a=!0;const[d,f]=Eb(u,t,!0);fn(s,d),f&&o.push(...f)};!A&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!a)return tA(e)&&n.set(e,Pa),Pa;if(me(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",V0=e=>me(e)?e.map(ci):[ci(e)],aF=(e,t,A)=>{if(t._n)return t;const n=xx((...r)=>V0(t(...r)),A);return n._c=!1,n},Ib=(e,t,A)=>{const n=e._ctx;for(const r in e){if(K0(r))continue;const i=e[r];if(Qe(i))t[r]=aF(r,i,n);else if(i!=null){const s=V0(i);t[r]=()=>s}}},Sb=(e,t)=>{const A=V0(t);e.slots.default=()=>A},Lb=(e,t,A)=>{for(const n in t)(A||!K0(n))&&(e[n]=t[n])},lF=(e,t,A)=>{const n=e.slots=_b();if(e.vnode.shapeFlag&32){const r=t._;r?(Lb(n,t,A),A&&Rv(n,"_",r,!0)):Ib(t,n)}else t&&Sb(e,t)},cF=(e,t,A)=>{const{vnode:n,slots:r}=e;let i=!0,s=oA;if(n.shapeFlag&32){const o=t._;o?A&&o===1?i=!1:Lb(r,t,A):(i=!t.$stable,Ib(t,r)),s=t}else t&&(Sb(e,t),s={default:1});if(i)for(const o in r)!K0(o)&&s[o]==null&&delete r[o]},zn=gF;function uF(e){return fF(e)}function fF(e,t){const A=Rh();A.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:s,createText:o,createComment:a,setText:l,setElementText:c,parentNode:u,nextSibling:d,setScopeId:f=hi,insertStaticContent:m}=e,B=(P,$,rt,S=null,pt=null,xt=null,Et=void 0,mt=null,Ft=!!$.dynamicChildren)=>{if(P===$)return;P&&!kl(P,$)&&(S=z(P),U(P,pt,xt,!0),P=null),$.patchFlag===-2&&(Ft=!1,$.dynamicChildren=null);const{type:bt,ref:Mt,shapeFlag:It}=$;switch(bt){case zh:v(P,$,rt,S);break;case Ws:b(P,$,rt,S);break;case rg:P==null&&C($,rt,S,Et);break;case ce:L(P,$,rt,S,pt,xt,Et,mt,Ft);break;default:It&1?H(P,$,rt,S,pt,xt,Et,mt,Ft):It&6?G(P,$,rt,S,pt,xt,Et,mt,Ft):(It&64||It&128)&&bt.process(P,$,rt,S,pt,xt,Et,mt,Ft,wt)}Mt!=null&&pt?cc(Mt,P&&P.ref,xt,$||P,!$):Mt==null&&P&&P.ref!=null&&cc(P.ref,null,xt,P,!0)},v=(P,$,rt,S)=>{if(P==null)n($.el=o($.children),rt,S);else{const pt=$.el=P.el;$.children!==P.children&&l(pt,$.children)}},b=(P,$,rt,S)=>{P==null?n($.el=a($.children||""),rt,S):$.el=P.el},C=(P,$,rt,S)=>{[P.el,P.anchor]=m(P.children,$,rt,S,P.el,P.anchor)},Q=({el:P,anchor:$},rt,S)=>{let pt;for(;P&&P!==$;)pt=d(P),n(P,rt,S),P=pt;n($,rt,S)},_=({el:P,anchor:$})=>{let rt;for(;P&&P!==$;)rt=d(P),r(P),P=rt;r($)},H=(P,$,rt,S,pt,xt,Et,mt,Ft)=>{if($.type==="svg"?Et="svg":$.type==="math"&&(Et="mathml"),P==null)W($,rt,S,pt,xt,Et,mt,Ft);else{const bt=P.el&&P.el._isVueCE?P.el:null;try{bt&&bt._beginPatch(),k(P,$,pt,xt,Et,mt,Ft)}finally{bt&&bt._endPatch()}}},W=(P,$,rt,S,pt,xt,Et,mt)=>{let Ft,bt;const{props:Mt,shapeFlag:It,transition:Pt,dirs:Kt}=P;if(Ft=P.el=s(P.type,xt,Mt&&Mt.is,Mt),It&8?c(Ft,P.children):It&16&&O(P.children,Ft,null,S,pt,ng(P,xt),Et,mt),Kt&&wo(P,null,S,"created"),R(Ft,P,P.scopeId,Et,S),Mt){for(const ee in Mt)ee!=="value"&&!oc(ee)&&i(Ft,ee,null,Mt[ee],xt,S);"value"in Mt&&i(Ft,"value",null,Mt.value,xt),(bt=Mt.onVnodeBeforeMount)&&Ai(bt,S,P)}Kt&&wo(P,null,S,"beforeMount");const Gt=hF(pt,Pt);Gt&&Pt.beforeEnter(Ft),n(Ft,$,rt),((bt=Mt&&Mt.onVnodeMounted)||Gt||Kt)&&zn(()=>{bt&&Ai(bt,S,P),Gt&&Pt.enter(Ft),Kt&&wo(P,null,S,"mounted")},pt)},R=(P,$,rt,S,pt)=>{if(rt&&f(P,rt),S)for(let xt=0;xt{for(let bt=Ft;bt{const mt=$.el=P.el;let{patchFlag:Ft,dynamicChildren:bt,dirs:Mt}=$;Ft|=P.patchFlag&16;const It=P.props||oA,Pt=$.props||oA;let Kt;if(rt&&vo(rt,!1),(Kt=Pt.onVnodeBeforeUpdate)&&Ai(Kt,rt,$,P),Mt&&wo($,P,rt,"beforeUpdate"),rt&&vo(rt,!0),(It.innerHTML&&Pt.innerHTML==null||It.textContent&&Pt.textContent==null)&&c(mt,""),bt?V(P.dynamicChildren,bt,mt,rt,S,ng($,pt),xt):Et||at(P,$,mt,null,rt,S,ng($,pt),xt,!1),Ft>0){if(Ft&16)F(mt,It,Pt,rt,pt);else if(Ft&2&&It.class!==Pt.class&&i(mt,"class",null,Pt.class,pt),Ft&4&&i(mt,"style",It.style,Pt.style,pt),Ft&8){const Gt=$.dynamicProps;for(let ee=0;ee{Kt&&Ai(Kt,rt,$,P),Mt&&wo($,P,rt,"updated")},S)},V=(P,$,rt,S,pt,xt,Et)=>{for(let mt=0;mt<$.length;mt++){const Ft=P[mt],bt=$[mt],Mt=Ft.el&&(Ft.type===ce||!kl(Ft,bt)||Ft.shapeFlag&198)?u(Ft.el):rt;B(Ft,bt,Mt,null,S,pt,xt,Et,!0)}},F=(P,$,rt,S,pt)=>{if($!==rt){if($!==oA)for(const xt in $)!oc(xt)&&!(xt in rt)&&i(P,xt,$[xt],null,pt,S);for(const xt in rt){if(oc(xt))continue;const Et=rt[xt],mt=$[xt];Et!==mt&&xt!=="value"&&i(P,xt,mt,Et,pt,S)}"value"in rt&&i(P,"value",$.value,rt.value,pt)}},L=(P,$,rt,S,pt,xt,Et,mt,Ft)=>{const bt=$.el=P?P.el:o(""),Mt=$.anchor=P?P.anchor:o("");let{patchFlag:It,dynamicChildren:Pt,slotScopeIds:Kt}=$;Kt&&(mt=mt?mt.concat(Kt):Kt),P==null?(n(bt,rt,S),n(Mt,rt,S),O($.children||[],rt,Mt,pt,xt,Et,mt,Ft)):It>0&&It&64&&Pt&&P.dynamicChildren&&P.dynamicChildren.length===Pt.length?(V(P.dynamicChildren,Pt,rt,pt,xt,Et,mt),($.key!=null||pt&&$===pt.subTree)&&kb(P,$,!0)):at(P,$,rt,Mt,pt,xt,Et,mt,Ft)},G=(P,$,rt,S,pt,xt,Et,mt,Ft)=>{$.slotScopeIds=mt,P==null?$.shapeFlag&512?pt.ctx.activate($,rt,S,Et,Ft):q($,rt,S,pt,xt,Et,Ft):ft(P,$,Ft)},q=(P,$,rt,S,pt,xt,Et)=>{const mt=P.component=yF(P,S,pt);if(mb(P)&&(mt.ctx.renderer=wt),xF(mt,!1,Et),mt.asyncDep){if(pt&&pt.registerDep(mt,lt,Et),!P.el){const Ft=mt.subTree=Vt(Ws);b(null,Ft,$,rt),P.placeholder=Ft.el}}else lt(mt,P,$,rt,pt,xt,Et)},ft=(P,$,rt)=>{const S=$.component=P.component;if(nF(P,$,rt))if(S.asyncDep&&!S.asyncResolved){ct(S,$,rt);return}else S.next=$,S.update();else $.el=P.el,S.vnode=$},lt=(P,$,rt,S,pt,xt,Et)=>{const mt=()=>{if(P.isMounted){let{next:It,bu:Pt,u:Kt,parent:Gt,vnode:ee}=P;{const Ke=Nb(P);if(Ke){It&&(It.el=ee.el,ct(P,It,Et)),Ke.asyncDep.then(()=>{zn(()=>{P.isUnmounted||bt()},pt)});return}}let Yt=It,Wt;vo(P,!1),It?(It.el=ee.el,ct(P,It,Et)):It=ee,Pt&&Df(Pt),(Wt=It.props&&It.props.onVnodeBeforeUpdate)&&Ai(Wt,Gt,It,ee),vo(P,!0);const oe=mm(P),Xt=P.subTree;P.subTree=oe,B(Xt,oe,u(Xt.el),z(Xt),P,pt,xt),It.el=oe.el,Yt===null&&rF(P,oe.el),Kt&&zn(Kt,pt),(Wt=It.props&&It.props.onVnodeUpdated)&&zn(()=>Ai(Wt,Gt,It,ee),pt)}else{let It;const{el:Pt,props:Kt}=$,{bm:Gt,m:ee,parent:Yt,root:Wt,type:oe}=P,Xt=uc($);vo(P,!1),Gt&&Df(Gt),!Xt&&(It=Kt&&Kt.onVnodeBeforeMount)&&Ai(It,Yt,$),vo(P,!0);{Wt.ce&&Wt.ce._hasShadowRoot()&&Wt.ce._injectChildStyle(oe,P.parent?P.parent.type:void 0);const Ke=P.subTree=mm(P);B(null,Ke,rt,S,P,pt,xt),$.el=Ke.el}if(ee&&zn(ee,pt),!Xt&&(It=Kt&&Kt.onVnodeMounted)){const Ke=$;zn(()=>Ai(It,Yt,Ke),pt)}($.shapeFlag&256||Yt&&uc(Yt.vnode)&&Yt.vnode.shapeFlag&256)&&P.a&&zn(P.a,pt),P.isMounted=!0,$=rt=S=null}};P.scope.on();const Ft=P.effect=new Gv(mt);P.scope.off();const bt=P.update=Ft.run.bind(Ft),Mt=P.job=Ft.runIfDirty.bind(Ft);Mt.i=P,Mt.id=P.uid,Ft.scheduler=()=>O0(Mt),vo(P,!0),bt()},ct=(P,$,rt)=>{$.component=P;const S=P.vnode.props;P.vnode=$,P.next=null,sF(P,$.props,S,rt),cF(P,$.children,rt),ns(),lm(P),rs()},at=(P,$,rt,S,pt,xt,Et,mt,Ft=!1)=>{const bt=P&&P.children,Mt=P?P.shapeFlag:0,It=$.children,{patchFlag:Pt,shapeFlag:Kt}=$;if(Pt>0){if(Pt&128){Z(bt,It,rt,S,pt,xt,Et,mt,Ft);return}else if(Pt&256){st(bt,It,rt,S,pt,xt,Et,mt,Ft);return}}Kt&8?(Mt&16&&At(bt,pt,xt),It!==bt&&c(rt,It)):Mt&16?Kt&16?Z(bt,It,rt,S,pt,xt,Et,mt,Ft):At(bt,pt,xt,!0):(Mt&8&&c(rt,""),Kt&16&&O(It,rt,S,pt,xt,Et,mt,Ft))},st=(P,$,rt,S,pt,xt,Et,mt,Ft)=>{P=P||Pa,$=$||Pa;const bt=P.length,Mt=$.length,It=Math.min(bt,Mt);let Pt;for(Pt=0;PtMt?At(P,pt,xt,!0,!1,It):O($,rt,S,pt,xt,Et,mt,Ft,It)},Z=(P,$,rt,S,pt,xt,Et,mt,Ft)=>{let bt=0;const Mt=$.length;let It=P.length-1,Pt=Mt-1;for(;bt<=It&&bt<=Pt;){const Kt=P[bt],Gt=$[bt]=Ft?zi($[bt]):ci($[bt]);if(kl(Kt,Gt))B(Kt,Gt,rt,null,pt,xt,Et,mt,Ft);else break;bt++}for(;bt<=It&&bt<=Pt;){const Kt=P[It],Gt=$[Pt]=Ft?zi($[Pt]):ci($[Pt]);if(kl(Kt,Gt))B(Kt,Gt,rt,null,pt,xt,Et,mt,Ft);else break;It--,Pt--}if(bt>It){if(bt<=Pt){const Kt=Pt+1,Gt=KtPt)for(;bt<=It;)U(P[bt],pt,xt,!0),bt++;else{const Kt=bt,Gt=bt,ee=new Map;for(bt=Gt;bt<=Pt;bt++){const fe=$[bt]=Ft?zi($[bt]):ci($[bt]);fe.key!=null&&ee.set(fe.key,bt)}let Yt,Wt=0;const oe=Pt-Gt+1;let Xt=!1,Ke=0;const Le=new Array(oe);for(bt=0;bt=oe){U(fe,pt,xt,!0);continue}let Me;if(fe.key!=null)Me=ee.get(fe.key);else for(Yt=Gt;Yt<=Pt;Yt++)if(Le[Yt-Gt]===0&&kl(fe,$[Yt])){Me=Yt;break}Me===void 0?U(fe,pt,xt,!0):(Le[Me-Gt]=bt+1,Me>=Ke?Ke=Me:Xt=!0,B(fe,$[Me],rt,null,pt,xt,Et,mt,Ft),Wt++)}const Ee=Xt?dF(Le):Pa;for(Yt=Ee.length-1,bt=oe-1;bt>=0;bt--){const fe=Gt+bt,Me=$[fe],le=$[fe+1],qe=fe+1{const{el:xt,type:Et,transition:mt,children:Ft,shapeFlag:bt}=P;if(bt&6){j(P.component.subTree,$,rt,S);return}if(bt&128){P.suspense.move($,rt,S);return}if(bt&64){Et.move(P,$,rt,wt);return}if(Et===ce){n(xt,$,rt);for(let It=0;Itmt.enter(xt),pt);else{const{leave:It,delayLeave:Pt,afterLeave:Kt}=mt,Gt=()=>{P.ctx.isUnmounted?r(xt):n(xt,$,rt)},ee=()=>{xt._isLeaving&&xt[Ix](!0),It(xt,()=>{Gt(),Kt&&Kt()})};Pt?Pt(xt,Gt,ee):ee()}else n(xt,$,rt)},U=(P,$,rt,S=!1,pt=!1)=>{const{type:xt,props:Et,ref:mt,children:Ft,dynamicChildren:bt,shapeFlag:Mt,patchFlag:It,dirs:Pt,cacheIndex:Kt}=P;if(It===-2&&(pt=!1),mt!=null&&(ns(),cc(mt,null,rt,P,!0),rs()),Kt!=null&&($.renderCache[Kt]=void 0),Mt&256){$.ctx.deactivate(P);return}const Gt=Mt&1&&Pt,ee=!uc(P);let Yt;if(ee&&(Yt=Et&&Et.onVnodeBeforeUnmount)&&Ai(Yt,$,P),Mt&6)et(P.component,rt,S);else{if(Mt&128){P.suspense.unmount(rt,S);return}Gt&&wo(P,null,$,"beforeUnmount"),Mt&64?P.type.remove(P,$,rt,wt,S):bt&&!bt.hasOnce&&(xt!==ce||It>0&&It&64)?At(bt,$,rt,!1,!0):(xt===ce&&It&384||!pt&&Mt&16)&&At(Ft,$,rt),S&&N(P)}(ee&&(Yt=Et&&Et.onVnodeUnmounted)||Gt)&&zn(()=>{Yt&&Ai(Yt,$,P),Gt&&wo(P,null,$,"unmounted")},rt)},N=P=>{const{type:$,el:rt,anchor:S,transition:pt}=P;if($===ce){tt(rt,S);return}if($===rg){_(P);return}const xt=()=>{r(rt),pt&&!pt.persisted&&pt.afterLeave&&pt.afterLeave()};if(P.shapeFlag&1&&pt&&!pt.persisted){const{leave:Et,delayLeave:mt}=pt,Ft=()=>Et(rt,xt);mt?mt(P.el,xt,Ft):Ft()}else xt()},tt=(P,$)=>{let rt;for(;P!==$;)rt=d(P),r(P),P=rt;r($)},et=(P,$,rt)=>{const{bum:S,scope:pt,job:xt,subTree:Et,um:mt,m:Ft,a:bt}=P;vm(Ft),vm(bt),S&&Df(S),pt.stop(),xt&&(xt.flags|=8,U(Et,P,$,rt)),mt&&zn(mt,$),zn(()=>{P.isUnmounted=!0},$)},At=(P,$,rt,S=!1,pt=!1,xt=0)=>{for(let Et=xt;Et{if(P.shapeFlag&6)return z(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const $=d(P.anchor||P.el),rt=$&&$[Qx];return rt?d(rt):$};let nt=!1;const ot=(P,$,rt)=>{let S;P==null?$._vnode&&(U($._vnode,null,null,!0),S=$._vnode.component):B($._vnode||null,P,$,null,null,null,rt),$._vnode=P,nt||(nt=!0,lm(S),cb(),nt=!1)},wt={p:B,um:U,m:j,r:N,mt:q,mc:O,pc:at,pbc:V,n:z,o:e};return{render:ot,hydrate:void 0,createApp:Yx(ot)}}function ng({type:e,props:t},A){return A==="svg"&&e==="foreignObject"||A==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:A}function vo({effect:e,job:t},A){A?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function hF(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function kb(e,t,A=!1){const n=e.children,r=t.children;if(me(n)&&me(r))for(let i=0;i>1,e[A[o]]0&&(t[n]=A[i-1]),A[i]=n)}}for(i=A.length,s=A[i-1];i-- >0;)A[i]=s,s=t[s];return A}function Nb(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Nb(t)}function vm(e){if(e)for(let t=0;te.__isSuspense;function gF(e,t){t&&t.pendingBranch?me(e)?t.effects.push(...e):t.effects.push(e):Cx(e)}const ce=Symbol.for("v-fgt"),zh=Symbol.for("v-txt"),Ws=Symbol.for("v-cmt"),rg=Symbol.for("v-stc"),hc=[];let cr=null;function ht(e=!1){hc.push(cr=e?null:[])}function pF(){hc.pop(),cr=hc[hc.length-1]||null}let Lc=1;function lh(e,t=!1){Lc+=e,e<0&&cr&&t&&(cr.hasOnce=!0)}function Mb(e){return e.dynamicChildren=Lc>0?cr||Pa:null,pF(),Lc>0&&cr&&cr.push(e),e}function Bt(e,t,A,n,r,i){return Mb(p(e,t,A,n,r,i,!0))}function Xn(e,t,A,n,r){return Mb(Vt(e,t,A,n,r,!0))}function ch(e){return e?e.__v_isVNode===!0:!1}function kl(e,t){return e.type===t.type&&e.key===t.key}const Tb=({key:e})=>e??null,Mf=({ref:e,ref_key:t,ref_for:A})=>(typeof e=="number"&&(e=""+e),e!=null?KA(e)||In(e)||Qe(e)?{i:lr,r:e,k:t,f:!!A}:e:null);function p(e,t=null,A=null,n=0,r=null,i=e===ce?0:1,s=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tb(t),ref:t&&Mf(t),scopeId:fb,slotScopeIds:null,children:A,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:lr};return o?(j0(a,A),i&128&&e.normalize(a)):A&&(a.shapeFlag|=KA(A)?8:16),Lc>0&&!s&&cr&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&cr.push(a),a}const Vt=mF;function mF(e,t=null,A=null,n=0,r=null,i=!1){if((!e||e===wb)&&(e=Ws),ch(e)){const o=Ya(e,t,!0);return A&&j0(o,A),Lc>0&&!i&&cr&&(o.shapeFlag&6?cr[cr.indexOf(e)]=o:cr.push(o)),o.patchFlag=-2,o}if(EF(e)&&(e=e.__vccOpts),t){t=BF(t);let{class:o,style:a}=t;o&&!KA(o)&&(t.class=aA(o)),tA(a)&&(M0(a)&&!me(a)&&(a=fn({},a)),t.style=Qc(a))}const s=KA(e)?1:Hb(e)?128:Ex(e)?64:tA(e)?4:Qe(e)?2:0;return p(e,t,A,n,r,s,i,!0)}function BF(e){return e?M0(e)||Ub(e)?fn({},e):e:null}function Ya(e,t,A=!1,n=!1){const{props:r,ref:i,patchFlag:s,children:o,transition:a}=e,l=t?wF(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Tb(l),ref:t&&t.ref?A&&i?me(i)?i.concat(Mf(t)):[i,Mf(t)]:Mf(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ce?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ya(e.ssContent),ssFallback:e.ssFallback&&Ya(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&P0(c,a.clone(c)),c}function ie(e=" ",t=0){return Vt(zh,null,e,t)}function ue(e="",t=!1){return t?(ht(),Xn(Ws,null,e)):Vt(Ws,null,e)}function ci(e){return e==null||typeof e=="boolean"?Vt(Ws):me(e)?Vt(ce,null,e.slice()):ch(e)?zi(e):Vt(zh,null,String(e))}function zi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ya(e)}function j0(e,t){let A=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(me(t))A=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),j0(e,r()),r._c&&(r._d=!0));return}else{A=32;const r=t._;!r&&!Ub(t)?t._ctx=lr:r===3&&lr&&(lr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Qe(t)?(t={default:t,_ctx:lr},A=32):(t=String(t),n&64?(A=16,t=[ie(t)]):A=8);e.children=t,e.shapeFlag|=A}function wF(...e){const t={};for(let A=0;AQn||lr;let uh,yp;{const e=Rh(),t=(A,n)=>{let r;return(r=e[A])||(r=e[A]=[]),r.push(n),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};uh=t("__VUE_INSTANCE_SETTERS__",A=>Qn=A),yp=t("__VUE_SSR_SETTERS__",A=>kc=A)}const Yc=e=>{const t=Qn;return uh(e),e.scope.on(),()=>{e.scope.off(),uh(t)}},bm=()=>{Qn&&Qn.scope.off(),uh(null)};function Ob(e){return e.vnode.shapeFlag&4}let kc=!1;function xF(e,t=!1,A=!1){t&&yp(t);const{props:n,children:r}=e.vnode,i=Ob(e);iF(e,n,i,t),lF(e,r,A||t);const s=i?FF(e,t):void 0;return t&&yp(!1),s}function FF(e,t){const A=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jx);const{setup:n}=A;if(n){ns();const r=e.setupContext=n.length>1?UF(e):null,i=Yc(e),s=Xc(n,e,0,[e.props,r]),o=Tv(s);if(rs(),i(),(o||e.sp)&&!uc(e)&&pb(e),o){if(s.then(bm,bm),t)return s.then(a=>{ym(e,a)}).catch(a=>{jh(a,e,0)});e.asyncDep=s}else ym(e,s)}else Pb(e)}function ym(e,t,A){Qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:tA(t)&&(e.setupState=ob(t)),Pb(e)}function Pb(e,t,A){const n=e.type;e.render||(e.render=n.render||hi);{const r=Yc(e);ns();try{Gx(e)}finally{rs(),r()}}}const _F={get(e,t){return Un(e,"get",""),e[t]}};function UF(e){const t=A=>{e.exposed=A||{}};return{attrs:new Proxy(e.attrs,_F),slots:e.slots,emit:e.emit,expose:t}}function $h(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ob(hx(e.exposed)),{get(t,A){if(A in t)return t[A];if(A in fc)return fc[A](e)},has(t,A){return A in t||A in fc}})):e.proxy}function QF(e,t=!0){return Qe(e)?e.displayName||e.name:e.name||t&&e.__name}function EF(e){return Qe(e)&&"__vccOpts"in e}const ye=(e,t)=>Bx(e,t,kc);function fh(e,t,A){try{lh(-1);const n=arguments.length;return n===2?tA(t)&&!me(t)?ch(t)?Vt(e,null,[t]):Vt(e,t):Vt(e,null,t):(n>3?A=Array.prototype.slice.call(arguments,2):n===3&&ch(A)&&(A=[A]),Vt(e,t,A))}finally{lh(1)}}const IF="3.5.30";/** * @vue/runtime-dom v3.5.30 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Cp;const Cm=typeof window<"u"&&window.trustedTypes;if(Cm)try{Cp=Cm.createPolicy("vue",{createHTML:e=>e})}catch{}const Rb=Cp?e=>Cp.createHTML(e):e=>e,SF="http://www.w3.org/2000/svg",LF="http://www.w3.org/1998/Math/MathML",Wi=typeof document<"u"?document:null,xm=Wi&&Wi.createElement("template"),kF={insert:(e,t,A)=>{t.insertBefore(e,A||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,A,n)=>{const r=t==="svg"?Wi.createElementNS(SF,e):t==="mathml"?Wi.createElementNS(LF,e):A?Wi.createElement(e,{is:A}):Wi.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Wi.createTextNode(e),createComment:e=>Wi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,A,n,r,i){const s=A?A.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),A),!(r===i||!(r=r.nextSibling)););else{xm.innerHTML=Rb(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const o=xm.content;if(n==="svg"||n==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,A)}return[s?s.nextSibling:t.firstChild,A?A.previousSibling:t.lastChild]}},NF=Symbol("_vtc");function DF(e,t,A){const n=e[NF];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):A?e.setAttribute("class",t):e.className=t}const hh=Symbol("_vod"),Kb=Symbol("_vsh"),ko={name:"show",beforeMount(e,{value:t},{transition:A}){e[hh]=e.style.display==="none"?"":e.style.display,A&&t?A.beforeEnter(e):Nl(e,t)},mounted(e,{value:t},{transition:A}){A&&t&&A.enter(e)},updated(e,{value:t,oldValue:A},{transition:n}){!t!=!A&&(n?t?(n.beforeEnter(e),Nl(e,!0),n.enter(e)):n.leave(e,()=>{Nl(e,!1)}):Nl(e,t))},beforeUnmount(e,{value:t}){Nl(e,t)}};function Nl(e,t){e.style.display=t?e[hh]:"none",e[Kb]=!t}const HF=Symbol(""),MF=/(?:^|;)\s*display\s*:/;function TF(e,t,A){const n=e.style,r=KA(A);let i=!1;if(A&&!r){if(t)if(KA(t))for(const s of t.split(";")){const o=s.slice(0,s.indexOf(":")).trim();A[o]==null&&Tf(n,o,"")}else for(const s in t)A[s]==null&&Tf(n,s,"");for(const s in A)s==="display"&&(i=!0),Tf(n,s,A[s])}else if(r){if(t!==A){const s=n[HF];s&&(A+=";"+s),n.cssText=A,i=MF.test(A)}}else t&&e.removeAttribute("style");hh in e&&(e[hh]=i?n.display:"",e[Kb]&&(n.display="none"))}const Fm=/\s*!important$/;function Tf(e,t,A){if(me(A))A.forEach(n=>Tf(e,t,n));else if(A==null&&(A=""),t.startsWith("--"))e.setProperty(t,A);else{const n=OF(e,t);Fm.test(A)?e.setProperty(Ys(n),A.replace(Fm,""),"important"):e[n]=A}}const _m=["Webkit","Moz","ms"],ig={};function OF(e,t){const A=ig[t];if(A)return A;let n=Kn(t);if(n!=="filter"&&n in e)return ig[t]=n;n=Oh(n);for(let r=0;r<_m.length;r++){const i=_m[r]+n;if(i in e)return ig[t]=i}return t}const Um="http://www.w3.org/1999/xlink";function Qm(e,t,A,n,r,i=G4(t)){n&&t.startsWith("xlink:")?A==null?e.removeAttributeNS(Um,t.slice(6,t.length)):e.setAttributeNS(Um,t,A):A==null||i&&!Kv(A)?e.removeAttribute(t):e.setAttribute(t,i?"":mi(A)?String(A):A)}function Em(e,t,A,n,r){if(t==="innerHTML"||t==="textContent"){A!=null&&(e[t]=t==="innerHTML"?Rb(A):A);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,a=A==null?e.type==="checkbox"?"on":"":String(A);(o!==a||!("_value"in e))&&(e.value=a),A==null&&e.removeAttribute(t),e._value=A;return}let s=!1;if(A===""||A==null){const o=typeof e[t];o==="boolean"?A=Kv(A):A==null&&o==="string"?(A="",s=!0):o==="number"&&(A=0,s=!0)}try{e[t]=A}catch{}s&&e.removeAttribute(r||t)}function ks(e,t,A,n){e.addEventListener(t,A,n)}function PF(e,t,A,n){e.removeEventListener(t,A,n)}const Im=Symbol("_vei");function RF(e,t,A,n,r=null){const i=e[Im]||(e[Im]={}),s=i[t];if(n&&s)s.value=n;else{const[o,a]=KF(t);if(n){const l=i[t]=GF(n,r);ks(e,o,l,a)}else s&&(PF(e,o,s,a),i[t]=void 0)}}const Sm=/(?:Once|Passive|Capture)$/;function KF(e){let t;if(Sm.test(e)){t={};let n;for(;n=e.match(Sm);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ys(e.slice(2)),t]}let sg=0;const VF=Promise.resolve(),jF=()=>sg||(VF.then(()=>sg=0),sg=Date.now());function GF(e,t){const A=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=A.attached)return;Bi(WF(n,A.value),t,5,[n])};return A.value=e,A.attached=jF(),A}function WF(e,t){if(me(t)){const A=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{A.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Lm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,zF=(e,t,A,n,r,i)=>{const s=r==="svg";t==="class"?DF(e,n,s):t==="style"?TF(e,A,n):Mh(t)?U0(t)||RF(e,t,A,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$F(e,t,n,s))?(Em(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qm(e,t,n,s,i,t!=="value")):e._isVueCE&&(qF(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!KA(n)))?Em(e,Kn(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Qm(e,t,n,s))};function $F(e,t,A,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Lm(t)&&Qe(A));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Lm(t)&&KA(A)?!1:t in e}function qF(e,t){const A=e._def.props;if(!A)return!1;const n=Kn(t);return Array.isArray(A)?A.some(r=>Kn(r)===n):Object.keys(A).some(r=>Kn(r)===n)}const Ja=e=>{const t=e.props["onUpdate:modelValue"]||!1;return me(t)?A=>Df(t,A):t};function XF(e){e.target.composing=!0}function km(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const es=Symbol("_assign");function Nm(e,t,A){return t&&(e=e.trim()),A&&(e=Ph(e)),e}const Rt={created(e,{modifiers:{lazy:t,trim:A,number:n}},r){e[es]=Ja(r);const i=n||r.props&&r.props.type==="number";ks(e,t?"change":"input",s=>{s.target.composing||e[es](Nm(e.value,A,i))}),(A||i)&&ks(e,"change",()=>{e.value=Nm(e.value,A,i)}),t||(ks(e,"compositionstart",XF),ks(e,"compositionend",km),ks(e,"change",km))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:A,modifiers:{lazy:n,trim:r,number:i}},s){if(e[es]=Ja(s),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?Ph(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(n&&t===A||r&&e.value.trim()===a)||(e.value=a))}},Vb={deep:!0,created(e,t,A){e[es]=Ja(A),ks(e,"change",()=>{const n=e._modelValue,r=Nc(e),i=e.checked,s=e[es];if(me(n)){const o=I0(n,r),a=o!==-1;if(i&&!a)s(n.concat(r));else if(!i&&a){const l=[...n];l.splice(o,1),s(l)}}else if(il(n)){const o=new Set(n);i?o.add(r):o.delete(r),s(o)}else s(jb(e,i))})},mounted:Dm,beforeUpdate(e,t,A){e[es]=Ja(A),Dm(e,t,A)}};function Dm(e,{value:t,oldValue:A},n){e._modelValue=t;let r;if(me(t))r=I0(t,n.props.value)>-1;else if(il(t))r=t.has(n.props.value);else{if(t===A)return;r=sl(t,jb(e,!0))}e.checked!==r&&(e.checked=r)}const gi={deep:!0,created(e,{value:t,modifiers:{number:A}},n){const r=il(t);ks(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>A?Ph(Nc(s)):Nc(s));e[es](e.multiple?r?new Set(i):i:i[0]),e._assigning=!0,T0(()=>{e._assigning=!1})}),e[es]=Ja(n)},mounted(e,{value:t}){Hm(e,t)},beforeUpdate(e,t,A){e[es]=Ja(A)},updated(e,{value:t}){e._assigning||Hm(e,t)}};function Hm(e,t){const A=e.multiple,n=me(t);if(!(A&&!n&&!il(t))){for(let r=0,i=e.options.length;rString(l)===String(o)):s.selected=I0(t,o)>-1}else s.selected=t.has(o);else if(sl(Nc(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!A&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Nc(e){return"_value"in e?e._value:e.value}function jb(e,t){const A=t?"_trueValue":"_falseValue";return A in e?e[A]:t}const YF=["ctrl","shift","alt","meta"],JF={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>YF.some(A=>e[`${A}Key`]&&!t.includes(A))},G0=(e,t)=>{if(!e)return e;const A=e._withMods||(e._withMods={}),n=t.join(".");return A[n]||(A[n]=(r,...i)=>{for(let s=0;s{const A=e._withKeys||(e._withKeys={}),n=t.join(".");return A[n]||(A[n]=r=>{if(!("key"in r))return;const i=Ys(r.key);if(t.some(s=>s===i||ZF[s]===i))return e(r)})},t_=fn({patchProp:zF},kF);let Mm;function e_(){return Mm||(Mm=uF(t_))}const A_=(...e)=>{const t=e_().createApp(...e),{mount:A}=t;return t.mount=n=>{const r=r_(n);if(!r)return;const i=t._component;!Qe(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const s=A(r,!1,n_(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function n_(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function r_(e){return KA(e)?document.querySelector(e):e}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const ka=typeof document<"u";function Gb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function i_(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Gb(e.default)}const We=Object.assign;function og(e,t){const A={};for(const n in t){const r=t[n];A[n]=Rr(r)?r.map(e):e(r)}return A}const dc=()=>{},Rr=Array.isArray;function Tm(e,t){const A={};for(const n in e)A[n]=n in t?t[n]:e[n];return A}const Wb=/#/g,s_=/&/g,o_=/\//g,a_=/=/g,l_=/\?/g,zb=/\+/g,c_=/%5B/g,u_=/%5D/g,$b=/%5E/g,f_=/%60/g,qb=/%7B/g,h_=/%7C/g,Xb=/%7D/g,d_=/%20/g;function W0(e){return e==null?"":encodeURI(""+e).replace(h_,"|").replace(c_,"[").replace(u_,"]")}function g_(e){return W0(e).replace(qb,"{").replace(Xb,"}").replace($b,"^")}function xp(e){return W0(e).replace(zb,"%2B").replace(d_,"+").replace(Wb,"%23").replace(s_,"%26").replace(f_,"`").replace(qb,"{").replace(Xb,"}").replace($b,"^")}function p_(e){return xp(e).replace(a_,"%3D")}function m_(e){return W0(e).replace(Wb,"%23").replace(l_,"%3F")}function B_(e){return m_(e).replace(o_,"%2F")}function Dc(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const w_=/\/$/,v_=e=>e.replace(w_,"");function ag(e,t,A="/"){let n,r={},i="",s="";const o=t.indexOf("#");let a=t.indexOf("?");return a=o>=0&&a>o?-1:a,a>=0&&(n=t.slice(0,a),i=t.slice(a,o>0?o:t.length),r=e(i.slice(1))),o>=0&&(n=n||t.slice(0,o),s=t.slice(o,t.length)),n=x_(n??t,A),{fullPath:n+i+s,path:n,query:r,hash:Dc(s)}}function b_(e,t){const A=t.query?e(t.query):"";return t.path+(A&&"?")+A+(t.hash||"")}function Om(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function y_(e,t,A){const n=t.matched.length-1,r=A.matched.length-1;return n>-1&&n===r&&Za(t.matched[n],A.matched[r])&&Yb(t.params,A.params)&&e(t.query)===e(A.query)&&t.hash===A.hash}function Za(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Yb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var A in e)if(!C_(e[A],t[A]))return!1;return!0}function C_(e,t){return Rr(e)?Pm(e,t):Rr(t)?Pm(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Pm(e,t){return Rr(t)?e.length===t.length&&e.every((A,n)=>A===t[n]):e.length===1&&e[0]===t}function x_(e,t){if(e.startsWith("/"))return e;if(!e)return t;const A=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let i=A.length-1,s,o;for(s=0;s1&&i--;else break;return A.slice(0,i).join("/")+"/"+n.slice(s).join("/")}const xs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Fp=function(e){return e.pop="pop",e.push="push",e}({}),lg=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function F_(e){if(!e)if(ka){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),v_(e)}const __=/^[^#]+#/;function U_(e,t){return e.replace(__,"#")+t}function Q_(e,t){const A=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-A.left-(t.left||0),top:n.top-A.top-(t.top||0)}}const qh=()=>({left:window.scrollX,top:window.scrollY});function E_(e){let t;if("el"in e){const A=e.el,n=typeof A=="string"&&A.startsWith("#"),r=typeof A=="string"?n?document.getElementById(A.slice(1)):document.querySelector(A):A;if(!r)return;t=Q_(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Rm(e,t){return(history.state?history.state.position-t:-1)+e}const _p=new Map;function I_(e,t){_p.set(e,t)}function S_(e){const t=_p.get(e);return _p.delete(e),t}function L_(e){return typeof e=="string"||e&&typeof e=="object"}function Jb(e){return typeof e=="string"||typeof e=="symbol"}let EA=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Zb=Symbol("");EA.MATCHER_NOT_FOUND+"",EA.NAVIGATION_GUARD_REDIRECT+"",EA.NAVIGATION_ABORTED+"",EA.NAVIGATION_CANCELLED+"",EA.NAVIGATION_DUPLICATED+"";function tl(e,t){return We(new Error,{type:e,[Zb]:!0},t)}function Ti(e,t){return e instanceof Error&&Zb in e&&(t==null||!!(e.type&t))}const k_=["params","query","hash"];function N_(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const A of k_)A in e&&(t[A]=e[A]);return JSON.stringify(t,null,2)}function D_(e){const t={};if(e===""||e==="?")return t;const A=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;nr&&xp(r)):[n&&xp(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+A,r!=null&&(t+="="+r))})}return t}function H_(e){const t={};for(const A in e){const n=e[A];n!==void 0&&(t[A]=Rr(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const M_=Symbol(""),Vm=Symbol(""),Xh=Symbol(""),t5=Symbol(""),Up=Symbol("");function Dl(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function A(){e=[]}return{add:t,list:()=>e.slice(),reset:A}}function Ss(e,t,A,n,r,i=s=>s()){const s=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((o,a)=>{const l=d=>{d===!1?a(tl(EA.NAVIGATION_ABORTED,{from:A,to:t})):d instanceof Error?a(d):L_(d)?a(tl(EA.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(s&&n.enterCallbacks[r]===s&&typeof d=="function"&&s.push(d),o())},c=i(()=>e.call(n&&n.instances[r],t,A,l));let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(d=>a(d))})}function cg(e,t,A,n,r=i=>i()){const i=[];for(const s of e)for(const o in s.components){let a=s.components[o];if(!(t!=="beforeRouteEnter"&&!s.instances[o]))if(Gb(a)){const l=(a.__vccOpts||a)[t];l&&i.push(Ss(l,A,n,s,o,r))}else{let l=a();i.push(()=>l.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${o}" at "${s.path}"`);const u=i_(c)?c.default:c;s.mods[o]=c,s.components[o]=u;const d=(u.__vccOpts||u)[t];return d&&Ss(d,A,n,s,o,r)()}))}}return i}function T_(e,t){const A=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sZa(l,o))?n.push(o):A.push(o));const a=e.matched[s];a&&(t.matched.find(l=>Za(l,a))||r.push(a))}return[A,n,r]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let O_=()=>location.protocol+"//"+location.host;function e5(e,t){const{pathname:A,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let s=r.includes(e.slice(i))?e.slice(i).length:1,o=r.slice(s);return o[0]!=="/"&&(o="/"+o),Om(o,"")}return Om(A,e)+n+r}function P_(e,t,A,n){let r=[],i=[],s=null;const o=({state:d})=>{const f=e5(e,location),m=A.value,B=t.value;let v=0;if(d){if(A.value=f,t.value=d,s&&s===m){s=null;return}v=B?d.position-B.position:0}else n(f);r.forEach(b=>{b(A.value,m,{delta:v,type:Fp.pop,direction:v?v>0?lg.forward:lg.back:lg.unknown})})};function a(){s=A.value}function l(d){r.push(d);const f=()=>{const m=r.indexOf(d);m>-1&&r.splice(m,1)};return i.push(f),f}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(We({},d.state,{scroll:qh()}),"")}}function u(){for(const d of i)d();i=[],window.removeEventListener("popstate",o),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",o),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:a,listen:l,destroy:u}}function jm(e,t,A,n=!1,r=!1){return{back:e,current:t,forward:A,replaced:n,position:window.history.length,scroll:r?qh():null}}function R_(e){const{history:t,location:A}=window,n={value:e5(e,A)},r={value:t.state};r.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,l,c){const u=e.indexOf("#"),d=u>-1?(A.host&&document.querySelector("base")?e:e.slice(u))+a:O_()+e+a;try{t[c?"replaceState":"pushState"](l,"",d),r.value=l}catch(f){console.error(f),A[c?"replace":"assign"](d)}}function s(a,l){i(a,We({},t.state,jm(r.value.back,a,r.value.forward,!0),l,{position:r.value.position}),!0),n.value=a}function o(a,l){const c=We({},r.value,t.state,{forward:a,scroll:qh()});i(c.current,c,!0),i(a,We({},jm(n.value,a,null),{position:c.position+1},l),!1),n.value=a}return{location:n,state:r,push:o,replace:s}}function K_(e){e=F_(e);const t=R_(e),A=P_(e,t.state,t.location,t.replace);function n(i,s=!0){s||A.pauseListeners(),history.go(i)}const r=We({location:"",base:e,go:n,createHref:U_.bind(null,e)},t,A);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let No=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var YA=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(YA||{});const V_={type:No.Static,value:""},j_=/[a-zA-Z0-9_]/;function G_(e){if(!e)return[[]];if(e==="/")return[[V_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${A})/"${l}": ${f}`)}let A=YA.Static,n=A;const r=[];let i;function s(){i&&r.push(i),i=[]}let o=0,a,l="",c="";function u(){l&&(A===YA.Static?i.push({type:No.Static,value:l}):A===YA.Param||A===YA.ParamRegExp||A===YA.ParamRegExpEnd?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:No.Param,value:l,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),l="")}function d(){l+=a}for(;ot.length?t.length===1&&t[0]===On.Static+On.Segment?1:-1:0}function A5(e,t){let A=0;const n=e.score,r=t.score;for(;A0&&t[t.length-1]<0}const X_={strict:!1,end:!0,sensitive:!1};function Y_(e,t,A){const n=$_(G_(e.path),A),r=We(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function J_(e,t){const A=[],n=new Map;t=Tm(X_,t);function r(u){return n.get(u)}function i(u,d,f){const m=!f,B=$m(u);B.aliasOf=f&&f.record;const v=Tm(t,u),b=[B];if("alias"in u){const _=typeof u.alias=="string"?[u.alias]:u.alias;for(const H of _)b.push($m(We({},B,{components:f?f.record.components:B.components,path:H,aliasOf:f?f.record:B})))}let C,Q;for(const _ of b){const{path:H}=_;if(d&&H[0]!=="/"){const W=d.record.path,R=W[W.length-1]==="/"?"":"/";_.path=d.record.path+(H&&R+H)}if(C=Y_(_,d,v),f?f.alias.push(C):(Q=Q||C,Q!==C&&Q.alias.push(C),m&&u.name&&!qm(C)&&s(u.name)),n5(C)&&a(C),B.children){const W=B.children;for(let R=0;R{s(Q)}:dc}function s(u){if(Jb(u)){const d=n.get(u);d&&(n.delete(u),A.splice(A.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=A.indexOf(u);d>-1&&(A.splice(d,1),u.record.name&&n.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function o(){return A}function a(u){const d=eU(u,A);A.splice(d,0,u),u.record.name&&!qm(u)&&n.set(u.record.name,u)}function l(u,d){let f,m={},B,v;if("name"in u&&u.name){if(f=n.get(u.name),!f)throw tl(EA.MATCHER_NOT_FOUND,{location:u});v=f.record.name,m=We(zm(d.params,f.keys.filter(Q=>!Q.optional).concat(f.parent?f.parent.keys.filter(Q=>Q.optional):[]).map(Q=>Q.name)),u.params&&zm(u.params,f.keys.map(Q=>Q.name))),B=f.stringify(m)}else if(u.path!=null)B=u.path,f=A.find(Q=>Q.re.test(B)),f&&(m=f.parse(B),v=f.record.name);else{if(f=d.name?n.get(d.name):A.find(Q=>Q.re.test(d.path)),!f)throw tl(EA.MATCHER_NOT_FOUND,{location:u,currentLocation:d});v=f.record.name,m=We({},d.params,u.params),B=f.stringify(m)}const b=[];let C=f;for(;C;)b.unshift(C.record),C=C.parent;return{name:v,path:B,params:m,matched:b,meta:tU(b)}}e.forEach(u=>i(u));function c(){A.length=0,n.clear()}return{addRoute:i,resolve:l,removeRoute:s,clearRoutes:c,getRoutes:o,getRecordMatcher:r}}function zm(e,t){const A={};for(const n of t)n in e&&(A[n]=e[n]);return A}function $m(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Z_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Z_(e){const t={},A=e.props||!1;if("component"in e)t.default=A;else for(const n in e.components)t[n]=typeof A=="object"?A[n]:A;return t}function qm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tU(e){return e.reduce((t,A)=>We(t,A.meta),{})}function eU(e,t){let A=0,n=t.length;for(;A!==n;){const i=A+n>>1;A5(e,t[i])<0?n=i:A=i+1}const r=AU(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function AU(e){let t=e;for(;t=t.parent;)if(n5(t)&&A5(e,t)===0)return t}function n5({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Xm(e){const t=di(Xh),A=di(t5),n=ye(()=>{const a=qt(e.to);return t.resolve(a)}),r=ye(()=>{const{matched:a}=n.value,{length:l}=a,c=a[l-1],u=A.matched;if(!c||!u.length)return-1;const d=u.findIndex(Za.bind(null,c));if(d>-1)return d;const f=Ym(a[l-2]);return l>1&&Ym(c)===f&&u[u.length-1].path!==f?u.findIndex(Za.bind(null,a[l-2])):d}),i=ye(()=>r.value>-1&&oU(A.params,n.value.params)),s=ye(()=>r.value>-1&&r.value===A.matched.length-1&&Yb(A.params,n.value.params));function o(a={}){if(sU(a)){const l=t[qt(e.replace)?"replace":"push"](qt(e.to)).catch(dc);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:n,href:ye(()=>n.value.href),isActive:i,isExactActive:s,navigate:o}}function nU(e){return e.length===1?e[0]:e}const rU=gb({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Xm,setup(e,{slots:t}){const A=Vh(Xm(e)),{options:n}=di(Xh),r=ye(()=>({[Jm(e.activeClass,n.linkActiveClass,"router-link-active")]:A.isActive,[Jm(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:A.isExactActive}));return()=>{const i=t.default&&nU(t.default(A));return e.custom?i:fh("a",{"aria-current":A.isExactActive?e.ariaCurrentValue:null,href:A.href,onClick:A.navigate,class:r.value},i)}}}),iU=rU;function sU(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function oU(e,t){for(const A in t){const n=t[A],r=e[A];if(typeof n=="string"){if(n!==r)return!1}else if(!Rr(r)||r.length!==n.length||n.some((i,s)=>i.valueOf()!==r[s].valueOf()))return!1}return!0}function Ym(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jm=(e,t,A)=>e??t??A,aU=gb({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:A}){const n=di(Up),r=ye(()=>e.route||n.value),i=di(Vm,0),s=ye(()=>{let l=qt(i);const{matched:c}=r.value;let u;for(;(u=c[l])&&!u.components;)l++;return l}),o=ye(()=>r.value.matched[s.value]);Hf(Vm,ye(()=>s.value+1)),Hf(M_,o),Hf(Up,r);const a=ge();return Fr(()=>[a.value,o.value,e.name],([l,c,u],[d,f,m])=>{c&&(c.instances[u]=l,f&&f!==c&&l&&l===d&&(c.leaveGuards.size||(c.leaveGuards=f.leaveGuards),c.updateGuards.size||(c.updateGuards=f.updateGuards))),l&&c&&(!f||!Za(c,f)||!d)&&(c.enterCallbacks[u]||[]).forEach(B=>B(l))},{flush:"post"}),()=>{const l=r.value,c=e.name,u=o.value,d=u&&u.components[c];if(!d)return Zm(A.default,{Component:d,route:l});const f=u.props[c],m=f?f===!0?l.params:typeof f=="function"?f(l):f:null,v=fh(d,We({},m,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(u.instances[c]=null)},ref:a}));return Zm(A.default,{Component:v,route:l})||v}}});function Zm(e,t){if(!e)return null;const A=e(t);return A.length===1?A[0]:A}const r5=aU;function lU(e){const t=J_(e.routes,e),A=e.parseQuery||D_,n=e.stringifyQuery||Km,r=e.history,i=Dl(),s=Dl(),o=Dl(),a=dx(xs);let l=xs;ka&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=og.bind(null,z=>""+z),u=og.bind(null,B_),d=og.bind(null,Dc);function f(z,nt){let ot,wt;return Jb(z)?(ot=t.getRecordMatcher(z),wt=nt):wt=z,t.addRoute(wt,ot)}function m(z){const nt=t.getRecordMatcher(z);nt&&t.removeRoute(nt)}function B(){return t.getRoutes().map(z=>z.record)}function v(z){return!!t.getRecordMatcher(z)}function b(z,nt){if(nt=We({},nt||a.value),typeof z=="string"){const rt=ag(A,z,nt.path),S=t.resolve({path:rt.path},nt),pt=r.createHref(rt.fullPath);return We(rt,S,{params:d(S.params),hash:Dc(rt.hash),redirectedFrom:void 0,href:pt})}let ot;if(z.path!=null)ot=We({},z,{path:ag(A,z.path,nt.path).path});else{const rt=We({},z.params);for(const S in rt)rt[S]==null&&delete rt[S];ot=We({},z,{params:u(rt)}),nt.params=u(nt.params)}const wt=t.resolve(ot,nt),_t=z.hash||"";wt.params=c(d(wt.params));const P=b_(n,We({},z,{hash:g_(_t),path:wt.path})),$=r.createHref(P);return We({fullPath:P,hash:_t,query:n===Km?H_(z.query):z.query||{}},wt,{redirectedFrom:void 0,href:$})}function C(z){return typeof z=="string"?ag(A,z,a.value.path):We({},z)}function Q(z,nt){if(l!==z)return tl(EA.NAVIGATION_CANCELLED,{from:nt,to:z})}function _(z){return R(z)}function H(z){return _(We(C(z),{replace:!0}))}function W(z,nt){const ot=z.matched[z.matched.length-1];if(ot&&ot.redirect){const{redirect:wt}=ot;let _t=typeof wt=="function"?wt(z,nt):wt;return typeof _t=="string"&&(_t=_t.includes("?")||_t.includes("#")?_t=C(_t):{path:_t},_t.params={}),We({query:z.query,hash:z.hash,params:_t.path!=null?{}:z.params},_t)}}function R(z,nt){const ot=l=b(z),wt=a.value,_t=z.state,P=z.force,$=z.replace===!0,rt=W(ot,wt);if(rt)return R(We(C(rt),{state:typeof rt=="object"?We({},_t,rt.state):_t,force:P,replace:$}),nt||ot);const S=ot;S.redirectedFrom=nt;let pt;return!P&&y_(n,wt,ot)&&(pt=tl(EA.NAVIGATION_DUPLICATED,{to:S,from:wt}),j(wt,wt,!0,!1)),(pt?Promise.resolve(pt):V(S,wt)).catch(xt=>Ti(xt)?Ti(xt,EA.NAVIGATION_GUARD_REDIRECT)?xt:Z(xt):at(xt,S,wt)).then(xt=>{if(xt){if(Ti(xt,EA.NAVIGATION_GUARD_REDIRECT))return R(We({replace:$},C(xt.to),{state:typeof xt.to=="object"?We({},_t,xt.to.state):_t,force:P}),nt||S)}else xt=L(S,wt,!0,$,_t);return F(S,wt,xt),xt})}function O(z,nt){const ot=Q(z,nt);return ot?Promise.reject(ot):Promise.resolve()}function k(z){const nt=tt.values().next().value;return nt&&typeof nt.runWithContext=="function"?nt.runWithContext(z):z()}function V(z,nt){let ot;const[wt,_t,P]=T_(z,nt);ot=cg(wt.reverse(),"beforeRouteLeave",z,nt);for(const rt of wt)rt.leaveGuards.forEach(S=>{ot.push(Ss(S,z,nt))});const $=O.bind(null,z,nt);return ot.push($),At(ot).then(()=>{ot=[];for(const rt of i.list())ot.push(Ss(rt,z,nt));return ot.push($),At(ot)}).then(()=>{ot=cg(_t,"beforeRouteUpdate",z,nt);for(const rt of _t)rt.updateGuards.forEach(S=>{ot.push(Ss(S,z,nt))});return ot.push($),At(ot)}).then(()=>{ot=[];for(const rt of P)if(rt.beforeEnter)if(Rr(rt.beforeEnter))for(const S of rt.beforeEnter)ot.push(Ss(S,z,nt));else ot.push(Ss(rt.beforeEnter,z,nt));return ot.push($),At(ot)}).then(()=>(z.matched.forEach(rt=>rt.enterCallbacks={}),ot=cg(P,"beforeRouteEnter",z,nt,k),ot.push($),At(ot))).then(()=>{ot=[];for(const rt of s.list())ot.push(Ss(rt,z,nt));return ot.push($),At(ot)}).catch(rt=>Ti(rt,EA.NAVIGATION_CANCELLED)?rt:Promise.reject(rt))}function F(z,nt,ot){o.list().forEach(wt=>k(()=>wt(z,nt,ot)))}function L(z,nt,ot,wt,_t){const P=Q(z,nt);if(P)return P;const $=nt===xs,rt=ka?history.state:{};ot&&(wt||$?r.replace(z.fullPath,We({scroll:$&&rt&&rt.scroll},_t)):r.push(z.fullPath,_t)),a.value=z,j(z,nt,ot,$),Z()}let G;function q(){G||(G=r.listen((z,nt,ot)=>{if(!et.listening)return;const wt=b(z),_t=W(wt,et.currentRoute.value);if(_t){R(We(_t,{replace:!0,force:!0}),wt).catch(dc);return}l=wt;const P=a.value;ka&&I_(Rm(P.fullPath,ot.delta),qh()),V(wt,P).catch($=>Ti($,EA.NAVIGATION_ABORTED|EA.NAVIGATION_CANCELLED)?$:Ti($,EA.NAVIGATION_GUARD_REDIRECT)?(R(We(C($.to),{force:!0}),wt).then(rt=>{Ti(rt,EA.NAVIGATION_ABORTED|EA.NAVIGATION_DUPLICATED)&&!ot.delta&&ot.type===Fp.pop&&r.go(-1,!1)}).catch(dc),Promise.reject()):(ot.delta&&r.go(-ot.delta,!1),at($,wt,P))).then($=>{$=$||L(wt,P,!1),$&&(ot.delta&&!Ti($,EA.NAVIGATION_CANCELLED)?r.go(-ot.delta,!1):ot.type===Fp.pop&&Ti($,EA.NAVIGATION_ABORTED|EA.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),F(wt,P,$)}).catch(dc)}))}let ft=Dl(),lt=Dl(),ct;function at(z,nt,ot){Z(z);const wt=lt.list();return wt.length?wt.forEach(_t=>_t(z,nt,ot)):console.error(z),Promise.reject(z)}function st(){return ct&&a.value!==xs?Promise.resolve():new Promise((z,nt)=>{ft.add([z,nt])})}function Z(z){return ct||(ct=!z,q(),ft.list().forEach(([nt,ot])=>z?ot(z):nt()),ft.reset()),z}function j(z,nt,ot,wt){const{scrollBehavior:_t}=e;if(!ka||!_t)return Promise.resolve();const P=!ot&&S_(Rm(z.fullPath,0))||(wt||!ot)&&history.state&&history.state.scroll||null;return T0().then(()=>_t(z,nt,P)).then($=>$&&E_($)).catch($=>at($,z,nt))}const U=z=>r.go(z);let N;const tt=new Set,et={currentRoute:a,listening:!0,addRoute:f,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:B,resolve:b,options:e,push:_,replace:H,go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:i.add,beforeResolve:s.add,afterEach:o.add,onError:lt.add,isReady:st,install(z){z.component("RouterLink",iU),z.component("RouterView",r5),z.config.globalProperties.$router=et,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>qt(a)}),ka&&!N&&a.value===xs&&(N=!0,_(r.location).catch(wt=>{}));const nt={};for(const wt in xs)Object.defineProperty(nt,wt,{get:()=>a.value[wt],enumerable:!0});z.provide(Xh,et),z.provide(t5,ib(nt)),z.provide(Up,a);const ot=z.unmount;tt.add(z),z.unmount=function(){tt.delete(z),tt.size<1&&(l=xs,G&&G(),G=null,a.value=xs,N=!1,ct=!1),ot()}}};function At(z){return z.reduce((nt,ot)=>nt.then(()=>k(ot)),Promise.resolve())}return et}function z0(){return di(Xh)}const cU={__name:"App",setup(e){return(t,A)=>(ht(),Xn(qt(r5)))}},uU="modulepreload",fU=function(e){return"/"+e},t2={},gc=function(t,A,n){let r=Promise.resolve();if(A&&A.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));r=Promise.allSettled(A.map(a=>{if(a=fU(a),a in t2)return;t2[a]=!0;const l=a.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${c}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":uU,l||(u.as="script"),u.crossOrigin="",u.href=a,o&&u.setAttribute("nonce",o),document.head.appendChild(u),l)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})}))}function i(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return r.then(s=>{for(const o of s||[])o.status==="rejected"&&i(o.reason);return t().catch(i)})};/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Ru={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hU=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nA=(e,t)=>({size:A,strokeWidth:n=2,absoluteStrokeWidth:r,color:i,class:s,...o},{attrs:a,slots:l})=>fh("svg",{...Ru,width:A||Ru.width,height:A||Ru.height,stroke:i||Ru.stroke,"stroke-width":r?Number(n)*24/Number(A):n,...a,class:["lucide",`lucide-${hU(e)}`],...o},[...t.map(c=>fh(...c)),...l.default?[l.default()]:[]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dU=nA("ActivityIcon",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gU=nA("AwardIcon",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pU=nA("BanknoteIcon",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dh=nA("Building2Icon",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Uo=nA("ChevronDownIcon",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ku=nA("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mU=nA("ClipboardListIcon",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qp=nA("CreditCardIcon",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const BU=nA("EyeIcon",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wU=nA("FileDownIcon",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vU=nA("FileTextIcon",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $0=nA("InfoIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bU=nA("LayoutDashboardIcon",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yU=nA("LogOutIcon",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const CU=nA("MessageSquareIcon",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xU=nA("PanelsTopLeftIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const FU=nA("PenLineIcon",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z",key:"ymcmye"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rn=nA("PlusIcon",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _U=nA("PrinterIcon",[["polyline",{points:"6 9 6 2 18 2 18 9",key:"1306q4"}],["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["rect",{width:"12",height:"8",x:"6",y:"14",key:"5ipwut"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const e2=nA("RefreshCwIcon",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const i5=nA("SaveIcon",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ep=nA("SearchIcon",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const UU=nA("SettingsIcon",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const QU=nA("ShieldIcon",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const EU=nA("TrendingUpIcon",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const IU=nA("UsersIcon",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const SU=nA("WalletIcon",[["path",{d:"M21 12V7H5a2 2 0 0 1 0-4h14v4",key:"195gfw"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h16v-5",key:"195n9w"}],["path",{d:"M18 12a2 2 0 0 0 0 4h4v-4Z",key:"vllfpd"}]]);/** * @license lucide-vue-next v0.322.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const LU=nA("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License *//*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Ip=function(e,t){return Ip=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,n){A.__proto__=n}||function(A,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(A[r]=n[r])},Ip(e,t)};function Vr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ip(e,t);function A(){this.constructor=e}e.prototype=t===null?Object.create(t):(A.prototype=t.prototype,new A)}var Sp=function(){return Sp=Object.assign||function(t){for(var A,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){A=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=55296&&r<=56319&&A>10)+55296,s%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},A2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",NU=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ju=0;ju"u"?[]:new Uint8Array(256);for(var Gu=0;Gu>4,c[r++]=(s&15)<<4|o>>2,c[r++]=(o&3)<<6|a&63;return l},HU=function(e){for(var t=e.length,A=[],n=0;n>Oo,OU=1<>Oo,RU=s5+PU,KU=RU,VU=32,jU=KU+VU,GU=65536>>q0,WU=1<=0){if(t<55296||t>56319&&t<=65535)return A=this.index[t>>Oo],A=(A<>Oo)],A=(A<>q0),A=this.index[A],A+=t>>Oo&zU,A=this.index[A],A=(A<"u"?[]:new Uint8Array(256);for(var Wu=0;Wus2?(r.push(!0),o-=s2):r.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(s),A.push(Np);if(o===t3||o===Lp){if(s===0)return n.push(s),A.push(So);var a=A[s-1];return a3.indexOf(a)===-1?(n.push(n[s-1]),A.push(a)):(n.push(s),A.push(So))}if(n.push(s),o===i3)return A.push(t==="strict"?Dp:Hc);if(o===c5||o===r3)return A.push(So);if(o===s3)return i>=131072&&i<=196605||i>=196608&&i<=262141?A.push(Hc):A.push(So);A.push(o)}),[n,A,r]},gg=function(e,t,A,n){var r=n[A];if(Array.isArray(e)?e.indexOf(r)!==-1:e===r)for(var i=A;i<=n.length;){i++;var s=n[i];if(s===t)return!0;if(s!==Ns)break}if(r===Ns)for(var i=A;i>0;){i--;var o=n[i];if(Array.isArray(e)?e.indexOf(o)!==-1:e===o)for(var a=A;a<=n.length;){a++;var s=n[a];if(s===t)return!0;if(s!==Ns)break}if(o!==Ns)break}return!1},h2=function(e,t){for(var A=e;A>=0;){var n=t[A];if(n===Ns)A--;else return n}return 0},u3=function(e,t,A,n,r){if(A[n]===0)return De;var i=n-1;if(Array.isArray(r)&&r[i]===!0)return De;var s=i-1,o=i+1,a=t[i],l=s>=0?t[s]:0,c=t[o];if(a===o5&&c===a5)return De;if(Rp.indexOf(a)!==-1)return u5;if(Rp.indexOf(c)!==-1||f5.indexOf(c)!==-1)return De;if(h2(i,t)===l5)return Xu;if(Pp.get(e[i])===Lp||(a===$u||a===qu)&&Pp.get(e[o])===Lp||a===o2||c===o2||a===a2||[Ns,kp,ql].indexOf(a)===-1&&c===a2||[zu,Hl,n3,ba,ya].indexOf(c)!==-1||h2(i,t)===Ml||gg(hg,Ml,i,t)||gg([zu,Hl],Dp,i,t)||gg(l2,l2,i,t))return De;if(a===Ns)return Xu;if(a===hg||c===hg)return De;if(c===Np||a===Np)return Xu;if([kp,ql,Dp].indexOf(c)!==-1||a===A3||l===Tp&&l3.indexOf(a)!==-1||a===ya&&c===Tp||c===c2||Oi.indexOf(c)!==-1&&a===or||Oi.indexOf(a)!==-1&&c===or||a===Yl&&[Hc,$u,qu].indexOf(c)!==-1||[Hc,$u,qu].indexOf(a)!==-1&&c===Xl||Oi.indexOf(a)!==-1&&u2.indexOf(c)!==-1||u2.indexOf(a)!==-1&&Oi.indexOf(c)!==-1||[Yl,Xl].indexOf(a)!==-1&&(c===or||[Ml,ql].indexOf(c)!==-1&&t[o+1]===or)||[Ml,ql].indexOf(a)!==-1&&c===or||a===or&&[or,ya,ba].indexOf(c)!==-1)return De;if([or,ya,ba,zu,Hl].indexOf(c)!==-1)for(var u=i;u>=0;){var d=t[u];if(d===or)return De;if([ya,ba].indexOf(d)!==-1)u--;else break}if([Yl,Xl].indexOf(c)!==-1)for(var u=[zu,Hl].indexOf(a)!==-1?s:i;u>=0;){var d=t[u];if(d===or)return De;if([ya,ba].indexOf(d)!==-1)u--;else break}if(Op===a&&[Op,Of,Hp,Mp].indexOf(c)!==-1||[Of,Hp].indexOf(a)!==-1&&[Of,Pf].indexOf(c)!==-1||[Pf,Mp].indexOf(a)!==-1&&c===Pf||f2.indexOf(a)!==-1&&[c2,Xl].indexOf(c)!==-1||f2.indexOf(c)!==-1&&a===Yl||Oi.indexOf(a)!==-1&&Oi.indexOf(c)!==-1||a===ba&&Oi.indexOf(c)!==-1||Oi.concat(or).indexOf(a)!==-1&&c===Ml&&o3.indexOf(e[o])===-1||Oi.concat(or).indexOf(c)!==-1&&a===Hl)return De;if(a===dg&&c===dg){for(var f=A[i],m=1;f>0&&(f--,t[f]===dg);)m++;if(m%2!==0)return De}return a===$u&&c===qu?De:Xu},f3=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var A=c3(e,t.lineBreak),n=A[0],r=A[1],i=A[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(r=r.map(function(o){return[or,So,c5].indexOf(o)!==-1?Hc:o}));var s=t.wordBreak==="keep-all"?i.map(function(o,a){return o&&e[a]>=19968&&e[a]<=40959}):void 0;return[n,r,s]},h3=function(){function e(t,A,n,r){this.codePoints=t,this.required=A===u5,this.start=n,this.end=r}return e.prototype.slice=function(){return MA.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),d3=function(e,t){var A=Jh(e),n=f3(A,t),r=n[0],i=n[1],s=n[2],o=A.length,a=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var c=De;l=h5&&e<=57},$3=function(e){return e>=55296&&e<=57343},Ca=function(e){return Fn(e)||e>=p5&&e<=B5||e>=d5&&e<=V3},q3=function(e){return e>=d5&&e<=G3},X3=function(e){return e>=p5&&e<=z3},Y3=function(e){return q3(e)||X3(e)},J3=function(e){return e>=k3},ef=function(e){return e===gh||e===m3||e===B3},ph=function(e){return Y3(e)||J3(e)||e===y3},B2=function(e){return ph(e)||Fn(e)||e===qn},Z3=function(e){return e>=M3&&e<=T3||e===O3||e>=P3&&e<=R3||e===K3},Ls=function(e,t){return e!==pc?!1:t!==gh},Af=function(e,t,A){return e===qn?ph(t)||Ls(t,A):ph(e)?!0:!!(e===pc&&Ls(e,t))},mg=function(e,t,A){return e===Do||e===qn?Fn(t)?!0:t===Mc&&Fn(A):Fn(e===Mc?t:e)},tQ=function(e){var t=0,A=1;(e[t]===Do||e[t]===qn)&&(e[t]===qn&&(A=-1),t++);for(var n=[];Fn(e[t]);)n.push(e[t++]);var r=n.length?parseInt(MA.apply(void 0,n),10):0;e[t]===Mc&&t++;for(var i=[];Fn(e[t]);)i.push(e[t++]);var s=i.length,o=s?parseInt(MA.apply(void 0,i),10):0;(e[t]===m5||e[t]===g5)&&t++;var a=1;(e[t]===Do||e[t]===qn)&&(e[t]===qn&&(a=-1),t++);for(var l=[];Fn(e[t]);)l.push(e[t++]);var c=l.length?parseInt(MA.apply(void 0,l),10):0;return A*(r+o*Math.pow(10,-s))*Math.pow(10,a*c)},eQ={type:2},AQ={type:3},nQ={type:4},rQ={type:13},iQ={type:8},sQ={type:21},oQ={type:9},aQ={type:10},lQ={type:11},cQ={type:12},uQ={type:14},nf={type:23},fQ={type:1},hQ={type:25},dQ={type:24},gQ={type:26},pQ={type:27},mQ={type:28},BQ={type:29},wQ={type:31},Kp={type:32},w5=function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(Jh(t))},e.prototype.read=function(){for(var t=[],A=this.consumeToken();A!==Kp;)t.push(A),A=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case Yu:return this.consumeStringToken(Yu);case w3:var A=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(B2(A)||Ls(n,r)){var i=Af(A,n,r)?p3:g3,s=this.consumeName();return{type:5,value:s,flags:i}}break;case v3:if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),rQ;break;case Ju:return this.consumeStringToken(Ju);case Zu:return eQ;case Ol:return AQ;case pg:if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),uQ;break;case Do:if(mg(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case N3:return nQ;case qn:var o=t,a=this.peekCodePoint(0),l=this.peekCodePoint(1);if(mg(o,a,l))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Af(o,a,l))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(a===qn&&l===F3)return this.consumeCodePoint(),this.consumeCodePoint(),dQ;break;case Mc:if(mg(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case g2:if(this.peekCodePoint(0)===pg)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===pg&&(c=this.consumeCodePoint(),c===g2))return this.consumeToken();if(c===ni)return this.consumeToken()}break;case D3:return gQ;case H3:return pQ;case x3:if(this.peekCodePoint(0)===C3&&this.peekCodePoint(1)===qn&&this.peekCodePoint(2)===qn)return this.consumeCodePoint(),this.consumeCodePoint(),hQ;break;case _3:var u=this.peekCodePoint(0),d=this.peekCodePoint(1),f=this.peekCodePoint(2);if(Af(u,d,f)){var s=this.consumeName();return{type:7,value:s}}break;case U3:return mQ;case pc:if(Ls(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case Q3:return BQ;case E3:if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),iQ;break;case I3:return lQ;case S3:return cQ;case j3:case W3:var m=this.peekCodePoint(0),B=this.peekCodePoint(1);return m===Do&&(Ca(B)||B===tf)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case p2:if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),oQ;if(this.peekCodePoint(0)===p2)return this.consumeCodePoint(),sQ;break;case L3:if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),aQ;break;case ni:return Kp}return ef(t)?(this.consumeWhiteSpace(),wQ):Fn(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):ph(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:MA(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],A=this.consumeCodePoint();Ca(A)&&t.length<6;)t.push(A),A=this.consumeCodePoint();for(var n=!1;A===tf&&t.length<6;)t.push(A),A=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(MA.apply(void 0,t.map(function(a){return a===tf?h5:a})),16),i=parseInt(MA.apply(void 0,t.map(function(a){return a===tf?B5:a})),16);return{type:30,start:r,end:i}}var s=parseInt(MA.apply(void 0,t),16);if(this.peekCodePoint(0)===qn&&Ca(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();for(var o=[];Ca(A)&&o.length<6;)o.push(A),A=this.consumeCodePoint();var i=parseInt(MA.apply(void 0,o),16);return{type:30,start:s,end:i}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Zu?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Zu?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ni)return{type:22,value:""};var A=this.peekCodePoint(0);if(A===Ju||A===Yu){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ni||this.peekCodePoint(0)===Ol)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),nf)}for(;;){var r=this.consumeCodePoint();if(r===ni||r===Ol)return{type:22,value:MA.apply(void 0,t)};if(ef(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ni||this.peekCodePoint(0)===Ol?(this.consumeCodePoint(),{type:22,value:MA.apply(void 0,t)}):(this.consumeBadUrlRemnants(),nf);if(r===Yu||r===Ju||r===Zu||Z3(r))return this.consumeBadUrlRemnants(),nf;if(r===pc)if(Ls(r,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),nf;else t.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;ef(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Ol||t===ni)return;Ls(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var A=5e4,n="";t>0;){var r=Math.min(A,t);n+=MA.apply(void 0,this._value.splice(0,r)),t-=r}return this._value.shift(),n},e.prototype.consumeStringToken=function(t){var A="",n=0;do{var r=this._value[n];if(r===ni||r===void 0||r===t)return A+=this.consumeStringSlice(n),{type:0,value:A};if(r===gh)return this._value.splice(0,n),fQ;if(r===pc){var i=this._value[n+1];i!==ni&&i!==void 0&&(i===gh?(A+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ls(r,i)&&(A+=this.consumeStringSlice(n),A+=MA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},e.prototype.consumeNumber=function(){var t=[],A=Jc,n=this.peekCodePoint(0);for((n===Do||n===qn)&&t.push(this.consumeCodePoint());Fn(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===Mc&&Fn(r))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),A=d2;Fn(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===m5||n===g5)&&((r===Do||r===qn)&&Fn(i)||Fn(r)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),A=d2;Fn(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[tQ(t),A]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),A=t[0],n=t[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Af(r,i,s)){var o=this.consumeName();return{type:15,number:A,flags:n,unit:o}}return r===b3?(this.consumeCodePoint(),{type:16,number:A,flags:n}):{type:17,number:A,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Ca(t)){for(var A=MA(t);Ca(this.peekCodePoint(0))&&A.length<6;)A+=MA(this.consumeCodePoint());ef(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(A,16);return n===0||$3(n)||n>1114111?m2:n}return t===ni?m2:t},e.prototype.consumeName=function(){for(var t="";;){var A=this.consumeCodePoint();if(B2(A))t+=MA(A);else if(Ls(A,this.peekCodePoint(0)))t+=MA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(A),t}},e}(),v5=function(){function e(t){this._tokens=t}return e.create=function(t){var A=new w5;return A.write(t),new e(A.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var A=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return A;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var A=this.consumeComponentValue();if(A.type===32)return t;t.push(A),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var A={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||bQ(n,t))return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var A={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?Kp:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e}(),Zc=function(e){return e.type===15},ol=function(e){return e.type===17},AA=function(e){return e.type===20},vQ=function(e){return e.type===0},Vp=function(e,t){return AA(e)&&e.value===t},b5=function(e){return e.type!==31},el=function(e){return e.type!==31&&e.type!==4},vi=function(e){var t=[],A=[];return e.forEach(function(n){if(n.type===4){if(A.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(A),A=[];return}n.type!==31&&A.push(n)}),A.length&&t.push(A),t},bQ=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},zs=function(e){return e.type===17||e.type===15},WA=function(e){return e.type===16||zs(e)},y5=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},un={type:17,number:0,flags:Jc},X0={type:16,number:50,flags:Jc},Ds={type:16,number:100,flags:Jc},Jl=function(e,t,A){var n=e[0],r=e[1];return[dA(n,t),dA(typeof r<"u"?r:n,A)]},dA=function(e,t){if(e.type===16)return e.number/100*t;if(Zc(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},C5="deg",x5="grad",F5="rad",_5="turn",Zh={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case C5:return Math.PI*t.number/180;case x5:return Math.PI/200*t.number;case F5:return t.number;case _5:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},U5=function(e){return e.type===15&&(e.unit===C5||e.unit===x5||e.unit===F5||e.unit===_5)},Q5=function(e){var t=e.filter(AA).map(function(A){return A.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[un,un];case"to top":case"bottom":return yr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[un,Ds];case"to right":case"left":return yr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ds,Ds];case"to bottom":case"top":return yr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ds,un];case"to left":case"right":return yr(270)}return 0},yr=function(e){return Math.PI*e/180},Vs={name:"color",parse:function(e,t){if(t.type===18){var A=yQ[t.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return A(e,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),r=t.value.substring(1,2),i=t.value.substring(2,3);return Hs(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),r=t.value.substring(1,2),i=t.value.substring(2,3),s=t.value.substring(3,4);return Hs(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),r=t.value.substring(2,4),i=t.value.substring(4,6);return Hs(parseInt(n,16),parseInt(r,16),parseInt(i,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),r=t.value.substring(2,4),i=t.value.substring(4,6),s=t.value.substring(6,8);return Hs(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(s,16)/255)}}if(t.type===20){var o=As[t.value.toUpperCase()];if(typeof o<"u")return o}return As.TRANSPARENT}},js=function(e){return(255&e)===0},en=function(e){var t=255&e,A=255&e>>8,n=255&e>>16,r=255&e>>24;return t<255?"rgba("+r+","+n+","+A+","+t/255+")":"rgb("+r+","+n+","+A+")"},Hs=function(e,t,A,n){return(e<<24|t<<16|A<<8|Math.round(n*255)<<0)>>>0},w2=function(e,t){if(e.type===17)return e.number;if(e.type===16){var A=t===3?1:255;return t===3?e.number/100*A:Math.round(e.number/100*A)}return 0},v2=function(e,t){var A=t.filter(el);if(A.length===3){var n=A.map(w2),r=n[0],i=n[1],s=n[2];return Hs(r,i,s,1)}if(A.length===4){var o=A.map(w2),r=o[0],i=o[1],s=o[2],a=o[3];return Hs(r,i,s,a)}return 0};function Bg(e,t,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(t-e)*A*6+e:A<1/2?t:A<2/3?(t-e)*6*(2/3-A)+e:e}var b2=function(e,t){var A=t.filter(el),n=A[0],r=A[1],i=A[2],s=A[3],o=(n.type===17?yr(n.number):Zh.parse(e,n))/(Math.PI*2),a=WA(r)?r.number/100:0,l=WA(i)?i.number/100:0,c=typeof s<"u"&&WA(s)?dA(s,1):1;if(a===0)return Hs(l*255,l*255,l*255,1);var u=l<=.5?l*(a+1):l+a-l*a,d=l*2-u,f=Bg(d,u,o+1/3),m=Bg(d,u,o),B=Bg(d,u,o-1/3);return Hs(f*255,m*255,B*255,c)},yQ={hsl:b2,hsla:b2,rgb:v2,rgba:v2},mc=function(e,t){return Vs.parse(e,v5.create(t).parseComponentValue())},As={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},CQ={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(A){if(AA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},xQ={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},td=function(e,t){var A=Vs.parse(e,t[0]),n=t[1];return n&&WA(n)?{color:A,stop:n}:{color:A,stop:null}},y2=function(e,t){var A=e[0],n=e[e.length-1];A.stop===null&&(A.stop=un),n.stop===null&&(n.stop=Ds);for(var r=[],i=0,s=0;si?r.push(a):r.push(i),i=a}else r.push(null)}for(var l=null,s=0;ss.optimumDistance)?{optimumCorner:o,optimumDistance:c}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},UQ=function(e,t,A,n,r){var i=0,s=0;switch(e.size){case 0:e.shape===0?i=s=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(A),Math.abs(A-r)):e.shape===1&&(i=Math.min(Math.abs(t),Math.abs(t-n)),s=Math.min(Math.abs(A),Math.abs(A-r)));break;case 2:if(e.shape===0)i=s=Math.min(Dr(t,A),Dr(t,A-r),Dr(t-n,A),Dr(t-n,A-r));else if(e.shape===1){var o=Math.min(Math.abs(A),Math.abs(A-r))/Math.min(Math.abs(t),Math.abs(t-n)),a=C2(n,r,t,A,!0),l=a[0],c=a[1];i=Dr(l-t,(c-A)/o),s=o*i}break;case 1:e.shape===0?i=s=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(A),Math.abs(A-r)):e.shape===1&&(i=Math.max(Math.abs(t),Math.abs(t-n)),s=Math.max(Math.abs(A),Math.abs(A-r)));break;case 3:if(e.shape===0)i=s=Math.max(Dr(t,A),Dr(t,A-r),Dr(t-n,A),Dr(t-n,A-r));else if(e.shape===1){var o=Math.max(Math.abs(A),Math.abs(A-r))/Math.max(Math.abs(t),Math.abs(t-n)),u=C2(n,r,t,A,!1),l=u[0],c=u[1];i=Dr(l-t,(c-A)/o),s=o*i}break}return Array.isArray(e.size)&&(i=dA(e.size[0],n),s=e.size.length===2?dA(e.size[1],r):i),[i,s]},QQ=function(e,t){var A=yr(180),n=[];return vi(t).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&s.value==="to"){A=Q5(r);return}else if(U5(s)){A=Zh.parse(e,s);return}}var o=td(e,r);n.push(o)}),{angle:A,stops:n,type:1}},rf=function(e,t){var A=yr(180),n=[];return vi(t).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){A=Q5(r);return}else if(U5(s)){A=(Zh.parse(e,s)+yr(270))%yr(360);return}}var o=td(e,r);n.push(o)}),{angle:A,stops:n,type:1}},EQ=function(e,t){var A=yr(180),n=[],r=1,i=0,s=3,o=[];return vi(t).forEach(function(a,l){var c=a[0];if(l===0){if(AA(c)&&c.value==="linear"){r=1;return}else if(AA(c)&&c.value==="radial"){r=2;return}}if(c.type===18){if(c.name==="from"){var u=Vs.parse(e,c.values[0]);n.push({stop:un,color:u})}else if(c.name==="to"){var u=Vs.parse(e,c.values[0]);n.push({stop:Ds,color:u})}else if(c.name==="color-stop"){var d=c.values.filter(el);if(d.length===2){var u=Vs.parse(e,d[1]),f=d[0];ol(f)&&n.push({stop:{type:16,number:f.number*100,flags:f.flags},color:u})}}}}),r===1?{angle:(A+yr(180))%yr(360),stops:n,type:r}:{size:s,shape:i,stops:n,position:o,type:r}},E5="closest-side",I5="farthest-side",S5="closest-corner",L5="farthest-corner",k5="circle",N5="ellipse",D5="cover",H5="contain",IQ=function(e,t){var A=0,n=3,r=[],i=[];return vi(t).forEach(function(s,o){var a=!0;if(o===0){var l=!1;a=s.reduce(function(u,d){if(l)if(AA(d))switch(d.value){case"center":return i.push(X0),u;case"top":case"left":return i.push(un),u;case"right":case"bottom":return i.push(Ds),u}else(WA(d)||zs(d))&&i.push(d);else if(AA(d))switch(d.value){case k5:return A=0,!1;case N5:return A=1,!1;case"at":return l=!0,!1;case E5:return n=0,!1;case D5:case I5:return n=1,!1;case H5:case S5:return n=2,!1;case L5:return n=3,!1}else if(zs(d)||WA(d))return Array.isArray(n)||(n=[]),n.push(d),!1;return u},a)}if(a){var c=td(e,s);r.push(c)}}),{size:n,shape:A,stops:r,position:i,type:2}},sf=function(e,t){var A=0,n=3,r=[],i=[];return vi(t).forEach(function(s,o){var a=!0;if(o===0?a=s.reduce(function(c,u){if(AA(u))switch(u.value){case"center":return i.push(X0),!1;case"top":case"left":return i.push(un),!1;case"right":case"bottom":return i.push(Ds),!1}else if(WA(u)||zs(u))return i.push(u),!1;return c},a):o===1&&(a=s.reduce(function(c,u){if(AA(u))switch(u.value){case k5:return A=0,!1;case N5:return A=1,!1;case H5:case E5:return n=0,!1;case I5:return n=1,!1;case S5:return n=2,!1;case D5:case L5:return n=3,!1}else if(zs(u)||WA(u))return Array.isArray(n)||(n=[]),n.push(u),!1;return c},a)),a){var l=td(e,s);r.push(l)}}),{size:n,shape:A,stops:r,position:i,type:2}},SQ=function(e){return e.type===1},LQ=function(e){return e.type===2},Y0={name:"image",parse:function(e,t){if(t.type===22){var A={url:t.value,type:0};return e.cache.addImage(t.value),A}if(t.type===18){var n=M5[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function kQ(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!M5[e.name])}var M5={"linear-gradient":QQ,"-moz-linear-gradient":rf,"-ms-linear-gradient":rf,"-o-linear-gradient":rf,"-webkit-linear-gradient":rf,"radial-gradient":IQ,"-moz-radial-gradient":sf,"-ms-radial-gradient":sf,"-o-radial-gradient":sf,"-webkit-radial-gradient":sf,"-webkit-gradient":EQ},NQ={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var A=t[0];return A.type===20&&A.value==="none"?[]:t.filter(function(n){return el(n)&&kQ(n)}).map(function(n){return Y0.parse(e,n)})}},DQ={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(A){if(AA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},HQ={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return vi(t).map(function(A){return A.filter(WA)}).map(y5)}},MQ={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return vi(t).map(function(A){return A.filter(AA).map(function(n){return n.value}).join(" ")}).map(TQ)}},TQ=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},ja;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(ja||(ja={}));var OQ={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return vi(t).map(function(A){return A.filter(PQ)})}},PQ=function(e){return AA(e)||WA(e)},ed=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},RQ=ed("top"),KQ=ed("right"),VQ=ed("bottom"),jQ=ed("left"),Ad=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,A){return y5(A.filter(WA))}}},GQ=Ad("top-left"),WQ=Ad("top-right"),zQ=Ad("bottom-right"),$Q=Ad("bottom-left"),nd=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},qQ=nd("top"),XQ=nd("right"),YQ=nd("bottom"),JQ=nd("left"),rd=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return Zc(A)?A.number:0}}},ZQ=rd("top"),tE=rd("right"),eE=rd("bottom"),AE=rd("left"),nE={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rE={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},iE={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(AA).reduce(function(A,n){return A|sE(n.value)},0)}},sE=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},oE={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},aE={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},mh;(function(e){e.NORMAL="normal",e.STRICT="strict"})(mh||(mh={}));var lE={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return mh.STRICT;case"normal":default:return mh.NORMAL}}},cE={name:"line-height",initialValue:"normal",prefix:!1,type:4},x2=function(e,t){return AA(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:WA(e)?dA(e,t):t},uE={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:Y0.parse(e,t)}},fE={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},jp={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},id=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},hE=id("top"),dE=id("right"),gE=id("bottom"),pE=id("left"),mE={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(AA).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},BE={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},sd=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},wE=sd("top"),vE=sd("right"),bE=sd("bottom"),yE=sd("left"),CE={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},xE={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},FE={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&Vp(t[0],"none")?[]:vi(t).map(function(A){for(var n={color:As.TRANSPARENT,offsetX:un,offsetY:un,blur:un},r=0,i=0;i"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return A(t.values)}return null}},QE=function(e){var t=e.filter(function(A){return A.type===17}).map(function(A){return A.number});return t.length===6?t:null},EE=function(e){var t=e.filter(function(a){return a.type===17}).map(function(a){return a.number}),A=t[0],n=t[1];t[2],t[3];var r=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],o=t[13];return t[14],t[15],t.length===16?[A,n,r,i,s,o]:null},IE={matrix:QE,matrix3d:EE},F2={type:16,number:50,flags:Jc},SE=[F2,F2],LE={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var A=t.filter(WA);return A.length!==2?SE:[A[0],A[1]]}},kE={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Bc;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Bc||(Bc={}));var NE={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return Bc.BREAK_ALL;case"keep-all":return Bc.KEEP_ALL;case"normal":default:return Bc.NORMAL}}},DE={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(ol(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},T5={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},HE={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return ol(t)?t.number:1}},ME={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},TE={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(AA).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return A!==0})}},OE={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var A=[],n=[];return t.forEach(function(r){switch(r.type){case 20:case 0:A.push(r.value);break;case 17:A.push(r.number.toString());break;case 4:n.push(A.join(" ")),A.length=0;break}}),A.length&&n.push(A.join(" ")),n.map(function(r){return r.indexOf(" ")===-1?r:"'"+r+"'"})}},PE={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},RE={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(ol(t))return t.number;if(AA(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},KE={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(AA).map(function(A){return A.value})}},VE={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},JA=function(e,t){return(e&t)!==0},jE={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var A=t[0];return A.type===20&&A.value==="none"?[]:t}},GE={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var A=t[0];if(A.type===20&&A.value==="none")return null;for(var n=[],r=t.filter(b5),i=0;i1?1:0],this.overflowWrap=$t(t,BE,A.overflowWrap),this.paddingTop=$t(t,wE,A.paddingTop),this.paddingRight=$t(t,vE,A.paddingRight),this.paddingBottom=$t(t,bE,A.paddingBottom),this.paddingLeft=$t(t,yE,A.paddingLeft),this.paintOrder=$t(t,XE,A.paintOrder),this.position=$t(t,xE,A.position),this.textAlign=$t(t,CE,A.textAlign),this.textDecorationColor=$t(t,ME,(n=A.textDecorationColor)!==null&&n!==void 0?n:A.color),this.textDecorationLine=$t(t,TE,(r=A.textDecorationLine)!==null&&r!==void 0?r:A.textDecoration),this.textShadow=$t(t,FE,A.textShadow),this.textTransform=$t(t,_E,A.textTransform),this.transform=$t(t,UE,A.transform),this.transformOrigin=$t(t,LE,A.transformOrigin),this.visibility=$t(t,kE,A.visibility),this.webkitTextStrokeColor=$t(t,YE,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=$t(t,JE,A.webkitTextStrokeWidth),this.wordBreak=$t(t,NE,A.wordBreak),this.zIndex=$t(t,DE,A.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return js(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return JA(this.display,4)||JA(this.display,33554432)||JA(this.display,268435456)||JA(this.display,536870912)||JA(this.display,67108864)||JA(this.display,134217728)},e}(),tI=function(){function e(t,A){this.content=$t(t,jE,A.content),this.quotes=$t(t,$E,A.quotes)}return e}(),U2=function(){function e(t,A){this.counterIncrement=$t(t,GE,A.counterIncrement),this.counterReset=$t(t,WE,A.counterReset)}return e}(),$t=function(e,t,A){var n=new w5,r=A!==null&&typeof A<"u"?A.toString():t.initialValue;n.write(r);var i=new v5(n.read());switch(t.type){case 2:var s=i.parseComponentValue();return t.parse(e,AA(s)?s.value:t.initialValue);case 0:return t.parse(e,i.parseComponentValue());case 1:return t.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return Zh.parse(e,i.parseComponentValue());case"color":return Vs.parse(e,i.parseComponentValue());case"image":return Y0.parse(e,i.parseComponentValue());case"length":var o=i.parseComponentValue();return zs(o)?o:un;case"length-percentage":var a=i.parseComponentValue();return WA(a)?a:un;case"time":return T5.parse(e,i.parseComponentValue())}break}},eI="data-html2canvas-debug",AI=function(e){var t=e.getAttribute(eI);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Gp=function(e,t){var A=AI(e);return A===1||t===A},bi=function(){function e(t,A){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Gp(A,3))debugger;this.styles=new ZE(t,window.getComputedStyle(A,null)),$p(A)&&(this.styles.animationDuration.some(function(n){return n>0})&&(A.style.animationDuration="0s"),this.styles.transform!==null&&(A.style.transform="none")),this.bounds=Yh(this.context,A),Gp(A,4)&&(this.flags|=16)}return e}(),nI="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Q2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var of=0;of>4,c[r++]=(s&15)<<4|o>>2,c[r++]=(o&3)<<6|a&63;return l},iI=function(e){for(var t=e.length,A=[],n=0;n>Po,aI=1<>Po,cI=O5+lI,uI=cI,fI=32,hI=uI+fI,dI=65536>>J0,gI=1<=0){if(t<55296||t>56319&&t<=65535)return A=this.index[t>>Po],A=(A<>Po)],A=(A<>J0),A=this.index[A],A+=t>>Po&pI,A=this.index[A],A=(A<"u"?[]:new Uint8Array(256);for(var af=0;af=55296&&r<=56319&&A>10)+55296,s%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},FI=BI(nI),vr="×",_g="÷",_I=function(e){return FI.get(e)},UI=function(e,t,A){var n=A-2,r=t[n],i=t[A-1],s=t[A];if(i===bg&&s===yg)return vr;if(i===bg||i===yg||i===S2||s===bg||s===yg||s===S2)return _g;if(i===k2&&[k2,Cg,N2,D2].indexOf(s)!==-1||(i===N2||i===Cg)&&(s===Cg||s===xg)||(i===D2||i===xg)&&s===xg||s===H2||s===L2||s===yI||i===bI)return vr;if(i===H2&&s===M2){for(;r===L2;)r=t[--n];if(r===M2)return vr}if(i===Fg&&s===Fg){for(var o=0;r===Fg;)o++,r=t[--n];if(o%2===0)return vr}return _g},QI=function(e){var t=CI(e),A=t.length,n=0,r=0,i=t.map(_I);return{next:function(){if(n>=A)return{done:!0,value:null};for(var s=vr;ns.x||c.y>s.y;return s=c,l===0?!0:u});return e.body.removeChild(t),o},LI=function(){return typeof new Image().crossOrigin<"u"},kI=function(){return typeof new XMLHttpRequest().responseType=="string"},NI=function(e){var t=new Image,A=e.createElement("canvas"),n=A.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,";try{n.drawImage(t,0,0),A.toDataURL()}catch{return!1}return!0},T2=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},DI=function(e){var t=e.createElement("canvas"),A=100;t.width=A,t.height=A;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,A,A);var r=new Image,i=t.toDataURL();r.src=i;var s=Wp(A,A,0,0,r);return n.fillStyle="red",n.fillRect(0,0,A,A),O2(s).then(function(o){n.drawImage(o,0,0);var a=n.getImageData(0,0,A,A).data;n.fillStyle="red",n.fillRect(0,0,A,A);var l=e.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=A+"px",T2(a)?O2(Wp(A,A,0,0,l)):Promise.reject(!1)}).then(function(o){return n.drawImage(o,0,0),T2(n.getImageData(0,0,A,A).data)}).catch(function(){return!1})},Wp=function(e,t,A,n,r){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",A.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(r),s},O2=function(e){return new Promise(function(t,A){var n=new Image;n.onload=function(){return t(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},cn={get SUPPORT_RANGE_BOUNDS(){var e=II(document);return Object.defineProperty(cn,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=cn.SUPPORT_RANGE_BOUNDS&&SI(document);return Object.defineProperty(cn,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=NI(document);return Object.defineProperty(cn,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?DI(document):Promise.resolve(!1);return Object.defineProperty(cn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=LI();return Object.defineProperty(cn,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=kI();return Object.defineProperty(cn,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(cn,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(cn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},wc=function(){function e(t,A){this.text=t,this.bounds=A}return e}(),HI=function(e,t,A,n){var r=OI(t,A),i=[],s=0;return r.forEach(function(o){if(A.textDecorationLine.length||o.trim().length>0)if(cn.SUPPORT_RANGE_BOUNDS){var a=P2(n,s,o.length).getClientRects();if(a.length>1){var l=Z0(o),c=0;l.forEach(function(d){i.push(new wc(d,ss.fromDOMRectList(e,P2(n,c+s,d.length).getClientRects()))),c+=d.length})}else i.push(new wc(o,ss.fromDOMRectList(e,a)))}else{var u=n.splitText(o.length);i.push(new wc(o,MI(e,n))),n=u}else cn.SUPPORT_RANGE_BOUNDS||(n=n.splitText(o.length));s+=o.length}),i},MI=function(e,t){var A=t.ownerDocument;if(A){var n=A.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var r=t.parentNode;if(r){r.replaceChild(n,t);var i=Yh(e,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return ss.EMPTY},P2=function(e,t,A){var n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(e,t),r.setEnd(e,t+A),r},Z0=function(e){if(cn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(A){return A.segment})}return EI(e)},TI=function(e,t){if(cn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(e)).map(function(n){return n.segment})}return RI(e,t)},OI=function(e,t){return t.letterSpacing!==0?Z0(e):TI(e,t)},PI=[32,160,4961,65792,65793,4153,4241],RI=function(e,t){for(var A=d3(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],r,i=function(){if(r.value){var s=r.value.slice(),o=Jh(s),a="";o.forEach(function(l){PI.indexOf(l)===-1?a+=MA(l):(a.length&&n.push(a),n.push(MA(l)),a="")}),a.length&&n.push(a)}};!(r=A.next()).done;)i();return n},KI=function(){function e(t,A,n){this.text=VI(A.data,n.textTransform),this.textBounds=HI(t,this.text,n,A)}return e}(),VI=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(jI,GI);case 2:return e.toUpperCase();default:return e}},jI=/(^|\s|:|-|\(|\))([a-z])/g,GI=function(e,t,A){return e.length>0?t+A.toUpperCase():e},P5=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t}(bi),R5=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t}(bi),K5=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this,i=new XMLSerializer,s=Yh(A,n);return n.setAttribute("width",s.width+"px"),n.setAttribute("height",s.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t}(bi),V5=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;return r.value=n.value,r}return t}(bi),zp=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;return r.start=n.start,r.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,r}return t}(bi),WI=[{type:15,flags:0,unit:"px",number:3}],zI=[{type:16,flags:0,number:50}],$I=function(e){return e.width>e.height?new ss(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)A.textNodes.push(new KI(e,r,A.styles));else if(Ta(r))if(Z5(r)&&r.assignedNodes)r.assignedNodes().forEach(function(o){return Rf(e,o,A,n)});else{var s=z5(e,r);s.styles.isVisible()&&(JI(r,s,n)?s.flags|=4:ZI(s.styles)&&(s.flags|=2),YI.indexOf(r.tagName)!==-1&&(s.flags|=8),A.elements.push(s),r.slot,r.shadowRoot?Rf(e,r.shadowRoot,s,n):!vh(r)&&!X5(r)&&!bh(r)&&Rf(e,r,s,n))}},z5=function(e,t){return qp(t)?new P5(e,t):Y5(t)?new R5(e,t):X5(t)?new K5(e,t):tS(t)?new V5(e,t):eS(t)?new zp(e,t):AS(t)?new t1(e,t):bh(t)?new j5(e,t):vh(t)?new G5(e,t):J5(t)?new W5(e,t):new bi(e,t)},$5=function(e,t){var A=z5(e,t);return A.flags|=4,Rf(e,t,A,A),A},JI=function(e,t,A){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||e1(e)&&A.styles.isTransparent()},ZI=function(e){return e.isPositioned()||e.isFloating()},q5=function(e){return e.nodeType===Node.TEXT_NODE},Ta=function(e){return e.nodeType===Node.ELEMENT_NODE},$p=function(e){return Ta(e)&&typeof e.style<"u"&&!Kf(e)},Kf=function(e){return typeof e.className=="object"},tS=function(e){return e.tagName==="LI"},eS=function(e){return e.tagName==="OL"},AS=function(e){return e.tagName==="INPUT"},nS=function(e){return e.tagName==="HTML"},X5=function(e){return e.tagName==="svg"},e1=function(e){return e.tagName==="BODY"},Y5=function(e){return e.tagName==="CANVAS"},K2=function(e){return e.tagName==="VIDEO"},qp=function(e){return e.tagName==="IMG"},J5=function(e){return e.tagName==="IFRAME"},V2=function(e){return e.tagName==="STYLE"},rS=function(e){return e.tagName==="SCRIPT"},vh=function(e){return e.tagName==="TEXTAREA"},bh=function(e){return e.tagName==="SELECT"},Z5=function(e){return e.tagName==="SLOT"},j2=function(e){return e.tagName.indexOf("-")>0},iS=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var A=this.counters[t];return A&&A.length?A[A.length-1]:1},e.prototype.getCounterValues=function(t){var A=this.counters[t];return A||[]},e.prototype.pop=function(t){var A=this;t.forEach(function(n){return A.counters[n].pop()})},e.prototype.parse=function(t){var A=this,n=t.counterIncrement,r=t.counterReset,i=!0;n!==null&&n.forEach(function(o){var a=A.counters[o.counter];a&&o.increment!==0&&(i=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=o.increment)});var s=[];return i&&r.forEach(function(o){var a=A.counters[o.counter];s.push(o.counter),a||(a=A.counters[o.counter]=[]),a.push(o.reset)}),s},e}(),G2={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},W2={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},sS={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},oS={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},xa=function(e,t,A,n,r,i){return eA?Tc(e,r,i.length>0):n.integers.reduce(function(s,o,a){for(;e>=o;)e-=o,s+=n.values[a];return s},"")+i},ty=function(e,t,A,n){var r="";do A||e--,r=n(e)+r,e/=t;while(e*t>=t);return r},HA=function(e,t,A,n,r){var i=A-t+1;return(e<0?"-":"")+(ty(Math.abs(e),i,n,function(s){return MA(Math.floor(s%i)+t)})+r)},bo=function(e,t,A){A===void 0&&(A=". ");var n=t.length;return ty(Math.abs(e),n,!1,function(r){return t[Math.floor(r%n)]})+A},Na=1,Us=2,Qs=4,tc=8,Pi=function(e,t,A,n,r,i){if(e<-9999||e>9999)return Tc(e,4,r.length>0);var s=Math.abs(e),o=r;if(s===0)return t[0]+o;for(var a=0;s>0&&a<=4;a++){var l=s%10;l===0&&JA(i,Na)&&o!==""?o=t[l]+o:l>1||l===1&&a===0||l===1&&a===1&&JA(i,Us)||l===1&&a===1&&JA(i,Qs)&&e>100||l===1&&a>1&&JA(i,tc)?o=t[l]+(a>0?A[a-1]:"")+o:l===1&&a>0&&(o=A[a-1]+o),s=Math.floor(s/10)}return(e<0?n:"")+o},z2="十百千萬",$2="拾佰仟萬",q2="マイナス",Ug="마이너스",Tc=function(e,t,A){var n=A?". ":"",r=A?"、":"",i=A?", ":"",s=A?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=HA(e,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return bo(e,"〇一二三四五六七八九",r);case 6:return xa(e,1,3999,G2,3,n).toLowerCase();case 7:return xa(e,1,3999,G2,3,n);case 8:return HA(e,945,969,!1,n);case 9:return HA(e,97,122,!1,n);case 10:return HA(e,65,90,!1,n);case 11:return HA(e,1632,1641,!0,n);case 12:case 49:return xa(e,1,9999,W2,3,n);case 35:return xa(e,1,9999,W2,3,n).toLowerCase();case 13:return HA(e,2534,2543,!0,n);case 14:case 30:return HA(e,6112,6121,!0,n);case 15:return bo(e,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return bo(e,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Pi(e,"零一二三四五六七八九",z2,"負",r,Us|Qs|tc);case 47:return Pi(e,"零壹貳參肆伍陸柒捌玖",$2,"負",r,Na|Us|Qs|tc);case 42:return Pi(e,"零一二三四五六七八九",z2,"负",r,Us|Qs|tc);case 41:return Pi(e,"零壹贰叁肆伍陆柒捌玖",$2,"负",r,Na|Us|Qs|tc);case 26:return Pi(e,"〇一二三四五六七八九","十百千万",q2,r,0);case 25:return Pi(e,"零壱弐参四伍六七八九","拾百千万",q2,r,Na|Us|Qs);case 31:return Pi(e,"영일이삼사오육칠팔구","십백천만",Ug,i,Na|Us|Qs);case 33:return Pi(e,"零一二三四五六七八九","十百千萬",Ug,i,0);case 32:return Pi(e,"零壹貳參四五六七八九","拾百千",Ug,i,Na|Us|Qs);case 18:return HA(e,2406,2415,!0,n);case 20:return xa(e,1,19999,oS,3,n);case 21:return HA(e,2790,2799,!0,n);case 22:return HA(e,2662,2671,!0,n);case 22:return xa(e,1,10999,sS,3,n);case 23:return bo(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return bo(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return HA(e,3302,3311,!0,n);case 28:return bo(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return bo(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return HA(e,3792,3801,!0,n);case 37:return HA(e,6160,6169,!0,n);case 38:return HA(e,4160,4169,!0,n);case 39:return HA(e,2918,2927,!0,n);case 40:return HA(e,1776,1785,!0,n);case 43:return HA(e,3046,3055,!0,n);case 44:return HA(e,3174,3183,!0,n);case 45:return HA(e,3664,3673,!0,n);case 46:return HA(e,3872,3881,!0,n);case 3:default:return HA(e,48,57,!0,n)}},ey="data-html2canvas-ignore",X2=function(){function e(t,A,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=A,this.counters=new iS,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,A){var n=this,r=aS(t,A);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,o=r.contentWindow,a=o.document,l=uS(r).then(function(){return Tn(n,void 0,void 0,function(){var c,u;return yn(this,function(d){switch(d.label){case 0:return this.scrolledElements.forEach(gS),o&&(o.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==A.top||o.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-A.left,o.scrollY-A.top,0,0))),c=this.options.onclone,u=this.clonedReferenceElement,typeof u>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:d.sent(),d.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,cS(a)]:[3,4];case 3:d.sent(),d.label=4;case 4:return typeof c=="function"?[2,Promise.resolve().then(function(){return c(a,u)}).then(function(){return r})]:[2,r]}})})});return a.open(),a.write(hS(document.doctype)+""),dS(this.referenceElement.ownerDocument,i,s),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),l},e.prototype.createElementClone=function(t){if(Gp(t,2))debugger;if(Y5(t))return this.createCanvasClone(t);if(K2(t))return this.createVideoClone(t);if(V2(t))return this.createStyleClone(t);var A=t.cloneNode(!1);return qp(A)&&(qp(t)&&t.currentSrc&&t.currentSrc!==t.src&&(A.src=t.currentSrc,A.srcset=""),A.loading==="lazy"&&(A.loading="eager")),j2(A)?this.createCustomElementClone(A):A},e.prototype.createCustomElementClone=function(t){var A=document.createElement("html2canvascustomelement");return Qg(t.style,A),A},e.prototype.createStyleClone=function(t){try{var A=t.sheet;if(A&&A.cssRules){var n=[].slice.call(A.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),r=t.cloneNode(!1);return r.textContent=n,r}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var A;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var r=t.cloneNode(!1);try{r.width=t.width,r.height=t.height;var i=t.getContext("2d"),s=r.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=(A=t.getContext("webgl2"))!==null&&A!==void 0?A:t.getContext("webgl");if(o){var a=o.getContextAttributes();(a==null?void 0:a.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}s.drawImage(t,0,0)}return r}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return r},e.prototype.createVideoClone=function(t){var A=t.ownerDocument.createElement("canvas");A.width=t.offsetWidth,A.height=t.offsetHeight;var n=A.getContext("2d");try{return n&&(n.drawImage(t,0,0,A.width,A.height),this.options.allowTaint||n.getImageData(0,0,A.width,A.height)),A}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var r=t.ownerDocument.createElement("canvas");return r.width=t.offsetWidth,r.height=t.offsetHeight,r},e.prototype.appendChildNode=function(t,A,n){(!Ta(A)||!rS(A)&&!A.hasAttribute(ey)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A)))&&(!this.options.copyStyles||!Ta(A)||!V2(A))&&t.appendChild(this.cloneNode(A,n))},e.prototype.cloneChildNodes=function(t,A,n){for(var r=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(Ta(i)&&Z5(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(o){return r.appendChildNode(A,o,n)})}else this.appendChildNode(A,i,n)},e.prototype.cloneNode=function(t,A){if(q5(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&Ta(t)&&($p(t)||Kf(t))){var r=this.createElementClone(t);r.style.transitionProperty="none";var i=n.getComputedStyle(t),s=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&$p(r)&&(this.clonedReferenceElement=r),e1(r)&&BS(r);var a=this.counters.parse(new U2(this.context,i)),l=this.resolvePseudoContent(t,r,s,vc.BEFORE);j2(t)&&(A=!0),K2(t)||this.cloneChildNodes(t,r,A),l&&r.insertBefore(l,r.firstChild);var c=this.resolvePseudoContent(t,r,o,vc.AFTER);return c&&r.appendChild(c),this.counters.pop(a),(i&&(this.options.copyStyles||Kf(t))&&!J5(t)||A)&&Qg(i,r),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([r,t.scrollLeft,t.scrollTop]),(vh(t)||bh(t))&&(vh(r)||bh(r))&&(r.value=t.value),r}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,A,n,r){var i=this;if(n){var s=n.content,o=A.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||n.display==="none")){this.counters.parse(new U2(this.context,n));var a=new tI(this.context,n),l=o.createElement("html2canvaspseudoelement");Qg(n,l),a.content.forEach(function(u){if(u.type===0)l.appendChild(o.createTextNode(u.value));else if(u.type===22){var d=o.createElement("img");d.src=u.value,d.style.opacity="1",l.appendChild(d)}else if(u.type===18){if(u.name==="attr"){var f=u.values.filter(AA);f.length&&l.appendChild(o.createTextNode(t.getAttribute(f[0].value)||""))}else if(u.name==="counter"){var m=u.values.filter(el),B=m[0],v=m[1];if(B&&AA(B)){var b=i.counters.getCounterValue(B.value),C=v&&AA(v)?jp.parse(i.context,v.value):3;l.appendChild(o.createTextNode(Tc(b,C,!1)))}}else if(u.name==="counters"){var Q=u.values.filter(el),B=Q[0],_=Q[1],v=Q[2];if(B&&AA(B)){var H=i.counters.getCounterValues(B.value),W=v&&AA(v)?jp.parse(i.context,v.value):3,R=_&&_.type===0?_.value:"",O=H.map(function(F){return Tc(F,W,!1)}).join(R);l.appendChild(o.createTextNode(O))}}}else if(u.type===20)switch(u.value){case"open-quote":l.appendChild(o.createTextNode(_2(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(_2(a.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(u.value))}}),l.className=Xp+" "+Yp;var c=r===vc.BEFORE?" "+Xp:" "+Yp;return Kf(A)?A.className.baseValue+=c:A.className+=c,l}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e}(),vc;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(vc||(vc={}));var aS=function(e,t){var A=e.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=t.width.toString(),A.height=t.height.toString(),A.scrolling="no",A.setAttribute(ey,"true"),e.body.appendChild(A),A},lS=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},cS=function(e){return Promise.all([].slice.call(e.images,0).map(lS))},uS=function(e){return new Promise(function(t,A){var n=e.contentWindow;if(!n)return A("No window assigned for iframe");var r=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var i=setInterval(function(){r.body.childNodes.length>0&&r.readyState==="complete"&&(clearInterval(i),t(e))},50)}})},fS=["all","d","content"],Qg=function(e,t){for(var A=e.length-1;A>=0;A--){var n=e.item(A);fS.indexOf(n)===-1&&t.style.setProperty(n,e.getPropertyValue(n))}return t},hS=function(e){var t="";return e&&(t+=""),t},dS=function(e,t,A){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||A!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,A)},gS=function(e){var t=e[0],A=e[1],n=e[2];t.scrollLeft=A,t.scrollTop=n},pS=":before",mS=":after",Xp="___html2canvas___pseudoelement_before",Yp="___html2canvas___pseudoelement_after",Y2=`{ content: "" !important; display: none !important; }`,BS=function(e){wS(e,"."+Xp+pS+Y2+` .`+Yp+mS+Y2)},wS=function(e,t){var A=e.ownerDocument;if(A){var n=A.createElement("style");n.textContent=t,e.appendChild(n)}},Ay=function(){function e(){}return e.getOrigin=function(t){var A=e._link;return A?(A.href=t,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),vS=function(){function e(t,A){this.context=t,this._options=A,this._cache={}}return e.prototype.addImage=function(t){var A=Promise.resolve();return this.has(t)||(Ig(t)||xS(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),A},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return Tn(this,void 0,void 0,function(){var A,n,r,i,s=this;return yn(this,function(o){switch(o.label){case 0:return A=Ay.isSameOrigin(t),n=!Eg(t)&&this._options.useCORS===!0&&cn.SUPPORT_CORS_IMAGES&&!A,r=!Eg(t)&&!A&&!Ig(t)&&typeof this._options.proxy=="string"&&cn.SUPPORT_CORS_XHR&&!n,!A&&this._options.allowTaint===!1&&!Eg(t)&&!Ig(t)&&!r&&!n?[2]:(i=t,r?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(a,l){var c=new Image;c.onload=function(){return a(c)},c.onerror=l,(FS(i)||n)&&(c.crossOrigin="anonymous"),c.src=i,c.complete===!0&&setTimeout(function(){return a(c)},500),s._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var A=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=t.substring(0,256);return new Promise(function(i,s){var o=cn.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(o==="text")i(a.response);else{var u=new FileReader;u.addEventListener("load",function(){return i(u.result)},!1),u.addEventListener("error",function(d){return s(d)},!1),u.readAsDataURL(a.response)}else s("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=s;var l=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+l+"url="+encodeURIComponent(t)+"&responseType="+o),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),A._options.imageTimeout){var c=A._options.imageTimeout;a.timeout=c,a.ontimeout=function(){return s("Timed out ("+c+"ms) proxying "+r)}}a.send()})},e}(),bS=/^data:image\/svg\+xml/i,yS=/^data:image\/.*;base64,/i,CS=/^data:image\/.*/i,xS=function(e){return cn.SUPPORT_SVG_DRAWING||!_S(e)},Eg=function(e){return CS.test(e)},FS=function(e){return yS.test(e)},Ig=function(e){return e.substr(0,4)==="blob"},_S=function(e){return e.substr(-3).toLowerCase()==="svg"||bS.test(e)},zt=function(){function e(t,A){this.type=0,this.x=t,this.y=A}return e.prototype.add=function(t,A){return new e(this.x+t,this.y+A)},e}(),Fa=function(e,t,A){return new zt(e.x+(t.x-e.x)*A,e.y+(t.y-e.y)*A)},lf=function(){function e(t,A,n,r){this.type=1,this.start=t,this.startControl=A,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,A){var n=Fa(this.start,this.startControl,t),r=Fa(this.startControl,this.endControl,t),i=Fa(this.endControl,this.end,t),s=Fa(n,r,t),o=Fa(r,i,t),a=Fa(s,o,t);return A?new e(this.start,n,s,a):new e(a,o,i,this.end)},e.prototype.add=function(t,A){return new e(this.start.add(t,A),this.startControl.add(t,A),this.endControl.add(t,A),this.end.add(t,A))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),br=function(e){return e.type===1},US=function(){function e(t){var A=t.styles,n=t.bounds,r=Jl(A.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],o=Jl(A.borderTopRightRadius,n.width,n.height),a=o[0],l=o[1],c=Jl(A.borderBottomRightRadius,n.width,n.height),u=c[0],d=c[1],f=Jl(A.borderBottomLeftRadius,n.width,n.height),m=f[0],B=f[1],v=[];v.push((i+a)/n.width),v.push((m+u)/n.width),v.push((s+B)/n.height),v.push((l+d)/n.height);var b=Math.max.apply(Math,v);b>1&&(i/=b,s/=b,a/=b,l/=b,u/=b,d/=b,m/=b,B/=b);var C=n.width-a,Q=n.height-d,_=n.width-u,H=n.height-B,W=A.borderTopWidth,R=A.borderRightWidth,O=A.borderBottomWidth,k=A.borderLeftWidth,V=dA(A.paddingTop,t.bounds.width),F=dA(A.paddingRight,t.bounds.width),L=dA(A.paddingBottom,t.bounds.width),G=dA(A.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?vA(n.left+k/3,n.top+W/3,i-k/3,s-W/3,Ge.TOP_LEFT):new zt(n.left+k/3,n.top+W/3),this.topRightBorderDoubleOuterBox=i>0||s>0?vA(n.left+C,n.top+W/3,a-R/3,l-W/3,Ge.TOP_RIGHT):new zt(n.left+n.width-R/3,n.top+W/3),this.bottomRightBorderDoubleOuterBox=u>0||d>0?vA(n.left+_,n.top+Q,u-R/3,d-O/3,Ge.BOTTOM_RIGHT):new zt(n.left+n.width-R/3,n.top+n.height-O/3),this.bottomLeftBorderDoubleOuterBox=m>0||B>0?vA(n.left+k/3,n.top+H,m-k/3,B-O/3,Ge.BOTTOM_LEFT):new zt(n.left+k/3,n.top+n.height-O/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?vA(n.left+k*2/3,n.top+W*2/3,i-k*2/3,s-W*2/3,Ge.TOP_LEFT):new zt(n.left+k*2/3,n.top+W*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?vA(n.left+C,n.top+W*2/3,a-R*2/3,l-W*2/3,Ge.TOP_RIGHT):new zt(n.left+n.width-R*2/3,n.top+W*2/3),this.bottomRightBorderDoubleInnerBox=u>0||d>0?vA(n.left+_,n.top+Q,u-R*2/3,d-O*2/3,Ge.BOTTOM_RIGHT):new zt(n.left+n.width-R*2/3,n.top+n.height-O*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||B>0?vA(n.left+k*2/3,n.top+H,m-k*2/3,B-O*2/3,Ge.BOTTOM_LEFT):new zt(n.left+k*2/3,n.top+n.height-O*2/3),this.topLeftBorderStroke=i>0||s>0?vA(n.left+k/2,n.top+W/2,i-k/2,s-W/2,Ge.TOP_LEFT):new zt(n.left+k/2,n.top+W/2),this.topRightBorderStroke=i>0||s>0?vA(n.left+C,n.top+W/2,a-R/2,l-W/2,Ge.TOP_RIGHT):new zt(n.left+n.width-R/2,n.top+W/2),this.bottomRightBorderStroke=u>0||d>0?vA(n.left+_,n.top+Q,u-R/2,d-O/2,Ge.BOTTOM_RIGHT):new zt(n.left+n.width-R/2,n.top+n.height-O/2),this.bottomLeftBorderStroke=m>0||B>0?vA(n.left+k/2,n.top+H,m-k/2,B-O/2,Ge.BOTTOM_LEFT):new zt(n.left+k/2,n.top+n.height-O/2),this.topLeftBorderBox=i>0||s>0?vA(n.left,n.top,i,s,Ge.TOP_LEFT):new zt(n.left,n.top),this.topRightBorderBox=a>0||l>0?vA(n.left+C,n.top,a,l,Ge.TOP_RIGHT):new zt(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||d>0?vA(n.left+_,n.top+Q,u,d,Ge.BOTTOM_RIGHT):new zt(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=m>0||B>0?vA(n.left,n.top+H,m,B,Ge.BOTTOM_LEFT):new zt(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?vA(n.left+k,n.top+W,Math.max(0,i-k),Math.max(0,s-W),Ge.TOP_LEFT):new zt(n.left+k,n.top+W),this.topRightPaddingBox=a>0||l>0?vA(n.left+Math.min(C,n.width-R),n.top+W,C>n.width+R?0:Math.max(0,a-R),Math.max(0,l-W),Ge.TOP_RIGHT):new zt(n.left+n.width-R,n.top+W),this.bottomRightPaddingBox=u>0||d>0?vA(n.left+Math.min(_,n.width-k),n.top+Math.min(Q,n.height-O),Math.max(0,u-R),Math.max(0,d-O),Ge.BOTTOM_RIGHT):new zt(n.left+n.width-R,n.top+n.height-O),this.bottomLeftPaddingBox=m>0||B>0?vA(n.left+k,n.top+Math.min(H,n.height-O),Math.max(0,m-k),Math.max(0,B-O),Ge.BOTTOM_LEFT):new zt(n.left+k,n.top+n.height-O),this.topLeftContentBox=i>0||s>0?vA(n.left+k+G,n.top+W+V,Math.max(0,i-(k+G)),Math.max(0,s-(W+V)),Ge.TOP_LEFT):new zt(n.left+k+G,n.top+W+V),this.topRightContentBox=a>0||l>0?vA(n.left+Math.min(C,n.width+k+G),n.top+W+V,C>n.width+k+G?0:a-k+G,l-(W+V),Ge.TOP_RIGHT):new zt(n.left+n.width-(R+F),n.top+W+V),this.bottomRightContentBox=u>0||d>0?vA(n.left+Math.min(_,n.width-(k+G)),n.top+Math.min(Q,n.height+W+V),Math.max(0,u-(R+F)),d-(O+L),Ge.BOTTOM_RIGHT):new zt(n.left+n.width-(R+F),n.top+n.height-(O+L)),this.bottomLeftContentBox=m>0||B>0?vA(n.left+k+G,n.top+H,Math.max(0,m-(k+G)),B-(O+L),Ge.BOTTOM_LEFT):new zt(n.left+k+G,n.top+n.height-(O+L))}return e}(),Ge;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ge||(Ge={}));var vA=function(e,t,A,n,r){var i=4*((Math.sqrt(2)-1)/3),s=A*i,o=n*i,a=e+A,l=t+n;switch(r){case Ge.TOP_LEFT:return new lf(new zt(e,l),new zt(e,l-o),new zt(a-s,t),new zt(a,t));case Ge.TOP_RIGHT:return new lf(new zt(e,t),new zt(e+s,t),new zt(a,l-o),new zt(a,l));case Ge.BOTTOM_RIGHT:return new lf(new zt(a,t),new zt(a,t+o),new zt(e+s,l),new zt(e,l));case Ge.BOTTOM_LEFT:default:return new lf(new zt(a,l),new zt(a-s,l),new zt(e,t+o),new zt(e,t))}},yh=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},QS=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Ch=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},ES=function(){function e(t,A,n){this.offsetX=t,this.offsetY=A,this.matrix=n,this.type=0,this.target=6}return e}(),cf=function(){function e(t,A){this.path=t,this.target=A,this.type=1}return e}(),IS=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),SS=function(e){return e.type===0},ny=function(e){return e.type===1},LS=function(e){return e.type===2},J2=function(e,t){return e.length===t.length?e.some(function(A,n){return A===t[n]}):!1},kS=function(e,t,A,n,r){return e.map(function(i,s){switch(s){case 0:return i.add(t,A);case 1:return i.add(t+n,A);case 2:return i.add(t+n,A+r);case 3:return i.add(t,A+r)}return i})},ry=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),iy=function(){function e(t,A){if(this.container=t,this.parent=A,this.effects=[],this.curves=new US(this.container),this.container.styles.opacity<1&&this.effects.push(new IS(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new ES(n,r,i))}if(this.container.styles.overflowX!==0){var s=yh(this.curves),o=Ch(this.curves);J2(s,o)?this.effects.push(new cf(s,6)):(this.effects.push(new cf(s,2)),this.effects.push(new cf(o,4)))}}return e.prototype.getEffects=function(t){for(var A=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(a){return!ny(a)});if(A||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),A=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yh(n.curves),o=Ch(n.curves);J2(s,o)||r.unshift(new cf(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(a){return JA(a.target,t)})},e}(),Jp=function(e,t,A,n){e.container.elements.forEach(function(r){var i=JA(r.flags,4),s=JA(r.flags,2),o=new iy(r,e);JA(r.styles.display,2048)&&n.push(o);var a=JA(r.flags,8)?[]:n;if(i||s){var l=i||r.styles.isPositioned()?A:t,c=new ry(o);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var u=r.styles.zIndex.order;if(u<0){var d=0;l.negativeZIndex.some(function(m,B){return u>m.element.container.styles.zIndex.order?(d=B,!1):d>0}),l.negativeZIndex.splice(d,0,c)}else if(u>0){var f=0;l.positiveZIndex.some(function(m,B){return u>=m.element.container.styles.zIndex.order?(f=B+1,!1):f>0}),l.positiveZIndex.splice(f,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else r.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);Jp(o,c,i?c:A,a)}else r.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),Jp(o,t,A,a);JA(r.flags,8)&&sy(r,a)})},sy=function(e,t){for(var A=e instanceof zp?e.start:1,n=e instanceof zp?e.reversed:!1,r=0;r"u"?e[0]:A},RS=function(e,t,A,n,r){var i=t[0],s=t[1],o=A[0],a=A[1];switch(e){case 2:return[new zt(Math.round(n.left),Math.round(n.top+s)),new zt(Math.round(n.left+n.width),Math.round(n.top+s)),new zt(Math.round(n.left+n.width),Math.round(a+n.top+s)),new zt(Math.round(n.left),Math.round(a+n.top+s))];case 3:return[new zt(Math.round(n.left+i),Math.round(n.top)),new zt(Math.round(n.left+i+o),Math.round(n.top)),new zt(Math.round(n.left+i+o),Math.round(n.height+n.top)),new zt(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new zt(Math.round(n.left+i),Math.round(n.top+s)),new zt(Math.round(n.left+i+o),Math.round(n.top+s)),new zt(Math.round(n.left+i+o),Math.round(n.top+s+a)),new zt(Math.round(n.left+i),Math.round(n.top+s+a))];default:return[new zt(Math.round(r.left),Math.round(r.top)),new zt(Math.round(r.left+r.width),Math.round(r.top)),new zt(Math.round(r.left+r.width),Math.round(r.height+r.top)),new zt(Math.round(r.left),Math.round(r.height+r.top))]}},KS="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",tB="Hidden Text",VS=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,A){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=A,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=KS,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=A,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(tB)),n.appendChild(i),n.appendChild(r);var o=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(tB)),n.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:o,middle:a}},e.prototype.getMetrics=function(t,A){var n=t+" "+A;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,A)),this._data[n]},e}(),ay=function(){function e(t,A){this.context=t,this.options=A}return e}(),jS=1e4,GS=function(e){Vr(t,e);function t(A,n){var r=e.call(this,A,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new VS(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return t.prototype.applyEffects=function(A){for(var n=this;this._activeEffects.length;)this.popEffect();A.forEach(function(r){return n.applyEffect(r)})},t.prototype.applyEffect=function(A){this.ctx.save(),LS(A)&&(this.ctx.globalAlpha=A.opacity),SS(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),ny(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(A){return Tn(this,void 0,void 0,function(){var n;return yn(this,function(r){switch(r.label){case 0:return n=A.element.container.styles,n.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(A){return Tn(this,void 0,void 0,function(){return yn(this,function(n){switch(n.label){case 0:if(JA(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(A)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(A,n,r){var i=this;if(n===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+r);else{var s=Z0(A.text);s.reduce(function(o,a){return i.ctx.fillText(a,o,A.bounds.top+r),o+i.ctx.measureText(a).width},A.bounds.left)}},t.prototype.createFontStyle=function(A){var n=A.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=XS(A.fontFamily).join(", "),i=Zc(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,n,A.fontWeight,i,r].join(" "),r,i]},t.prototype.renderTextNode=function(A,n){return Tn(this,void 0,void 0,function(){var r,i,s,o,a,l,c,u,d=this;return yn(this,function(f){return r=this.createFontStyle(n),i=r[0],s=r[1],o=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(s,o),l=a.baseline,c=a.middle,u=n.paintOrder,A.textBounds.forEach(function(m){u.forEach(function(B){switch(B){case 0:d.ctx.fillStyle=en(n.color),d.renderTextWithLetterSpacing(m,n.letterSpacing,l);var v=n.textShadow;v.length&&m.text.trim().length&&(v.slice(0).reverse().forEach(function(b){d.ctx.shadowColor=en(b.color),d.ctx.shadowOffsetX=b.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=b.offsetY.number*d.options.scale,d.ctx.shadowBlur=b.blur.number,d.renderTextWithLetterSpacing(m,n.letterSpacing,l)}),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),n.textDecorationLine.length&&(d.ctx.fillStyle=en(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(b){switch(b){case 1:d.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top+l),m.bounds.width,1);break;case 2:d.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:d.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+c),m.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&m.text.trim().length&&(d.ctx.strokeStyle=en(n.webkitTextStrokeColor),d.ctx.lineWidth=n.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(m.text,m.bounds.left,m.bounds.top+l)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(A,n,r){if(r&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var i=xh(A),s=Ch(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,A.intrinsicWidth,A.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return Tn(this,void 0,void 0,function(){var n,r,i,s,o,a,C,C,l,c,u,d,_,f,m,H,B,v,b,C,Q,_,H;return yn(this,function(W){switch(W.label){case 0:this.applyEffects(A.getEffects(4)),n=A.container,r=A.curves,i=n.styles,s=0,o=n.textNodes,W.label=1;case 1:return s0&&q>0&&(O=i.ctx.createPattern(H,"repeat"),i.renderRepeat(V,O,lt,ct))):LQ(c)&&(k=Sg(A,n,[null,null,null]),V=k[0],F=k[1],L=k[2],G=k[3],q=k[4],ft=c.position.length===0?[X0]:c.position,lt=dA(ft[0],G),ct=dA(ft[ft.length-1],q),at=UQ(c,lt,ct,G,q),st=at[0],Z=at[1],st>0&&Z>0&&(j=i.ctx.createRadialGradient(F+lt,L+ct,0,F+lt,L+ct,st),y2(c.stops,st*2).forEach(function(z){return j.addColorStop(z.stop,en(z.color))}),i.path(V),i.ctx.fillStyle=j,st!==Z?(U=A.bounds.left+.5*A.bounds.width,N=A.bounds.top+.5*A.bounds.height,tt=Z/st,et=1/tt,i.ctx.save(),i.ctx.translate(U,N),i.ctx.transform(1,0,0,tt,0,0),i.ctx.translate(-U,-N),i.ctx.fillRect(F,et*(L-N)+N,G,q*et),i.ctx.restore()):i.ctx.fill())),At.label=6;case 6:return n--,[2]}})},i=this,s=0,o=A.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return s0?c.style!==2?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,o,A.curves,2)]:[3,11]):[3,13];case 4:return d.sent(),[3,11];case 5:return c.style!==3?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,o,A.curves,3)];case 6:return d.sent(),[3,11];case 7:return c.style!==4?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,o,A.curves)];case 8:return d.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,o,A.curves)];case 10:d.sent(),d.label=11;case 11:o++,d.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(A,n,r,i,s){return Tn(this,void 0,void 0,function(){var o,a,l,c,u,d,f,m,B,v,b,C,Q,_,H,W,H,W;return yn(this,function(R){return this.ctx.save(),o=MS(i,r),a=Z2(i,r),s===2&&(this.path(a),this.ctx.clip()),br(a[0])?(l=a[0].start.x,c=a[0].start.y):(l=a[0].x,c=a[0].y),br(a[1])?(u=a[1].end.x,d=a[1].end.y):(u=a[1].x,d=a[1].y),r===0||r===2?f=Math.abs(l-u):f=Math.abs(c-d),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(a.slice(0,2)),m=n<3?n*3:n*2,B=n<3?n*2:n,s===3&&(m=n,B=n),v=!0,f<=m*2?v=!1:f<=m*2+B?(b=f/(2*m+B),m*=b,B*=b):(C=Math.floor((f+B)/(m+B)),Q=(f-C*m)/(C-1),_=(f-(C+1)*m)/C,B=_<=0||Math.abs(B-Q)>1|(mA&21845)<<1;Fs=(Fs&52428)>>2|(Fs&13107)<<2,Fs=(Fs&61680)>>4|(Fs&3855)<<4,t0[mA]=((Fs&65280)>>8|(Fs&255)<<8)>>1}var bc=function(e,t,A){for(var n=e.length,r=0,i=new ur(t);r>a]=l}else for(o=new ur(n),r=0;r>15-e[r]);return o},jo=new Kr(288);for(var mA=0;mA<144;++mA)jo[mA]=8;for(var mA=144;mA<256;++mA)jo[mA]=9;for(var mA=256;mA<280;++mA)jo[mA]=7;for(var mA=280;mA<288;++mA)jo[mA]=8;var Fh=new Kr(32);for(var mA=0;mA<32;++mA)Fh[mA]=5;var oL=bc(jo,9,0),aL=bc(Fh,5,0),uy=function(e){return(e+7)/8|0},lL=function(e,t,A){return(A==null||A>e.length)&&(A=e.length),new Kr(e.subarray(t,A))},Ri=function(e,t,A){A<<=t&7;var n=t/8|0;e[n]|=A,e[n+1]|=A>>8},Pl=function(e,t,A){A<<=t&7;var n=t/8|0;e[n]|=A,e[n+1]|=A>>8,e[n+2]|=A>>16},Lg=function(e,t){for(var A=[],n=0;nd&&(d=i[n].s);var f=new ur(d+1),m=e0(A[c-1],f,0);if(m>t){var n=0,B=0,v=m-t,b=1<t)B+=b-(1<>=v;B>0;){var Q=i[n].s;f[Q]=0&&B;--n){var _=i[n].s;f[_]==t&&(--f[_],++B)}m=t}return{t:new Kr(f),l:m}},e0=function(e,t,A){return e.s==-1?Math.max(e0(e.l,t,A+1),e0(e.r,t,A+1)):t[e.s]=A},nB=function(e){for(var t=e.length;t&&!e[--t];);for(var A=new ur(++t),n=0,r=e[0],i=1,s=function(a){A[n++]=a},o=1;o<=t;++o)if(e[o]==r&&o!=t)++i;else{if(!r&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(r),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(r);i=1,r=e[o]}return{c:A.subarray(0,n),n:t}},Rl=function(e,t){for(var A=0,n=0;n>8,e[r+2]=e[r]^255,e[r+3]=e[r+1]^255;for(var i=0;i4&&!V[eB[L-1]];--L);var G=l+5<<3,q=Rl(r,jo)+Rl(i,Fh)+s,ft=Rl(r,d)+Rl(i,B)+s+14+3*L+Rl(R,V)+2*R[16]+3*R[17]+7*R[18];if(a>=0&&G<=q&&G<=ft)return fy(t,c,e.subarray(a,a+l));var lt,ct,at,st;if(Ri(t,c,1+(ft15&&(Ri(t,c,N[O]>>5&127),c+=N[O]>>12)}}else lt=oL,ct=jo,at=aL,st=Fh;for(var O=0;O255){var tt=et>>18&31;Pl(t,c,lt[tt+257]),c+=ct[tt+257],tt>7&&(Ri(t,c,et>>23&31),c+=n1[tt]);var At=et&31;Pl(t,c,at[At]),c+=st[At],At>3&&(Pl(t,c,et>>5&8191),c+=r1[At])}else Pl(t,c,lt[et]),c+=ct[et]}return Pl(t,c,lt[256]),c+ct[256]},cL=new A1([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),hy=new Kr(0),uL=function(e,t,A,n,r,i){var s=i.z||e.length,o=new Kr(n+s+5*(1+Math.ceil(s/7e3))+r),a=o.subarray(n,o.length-r),l=i.l,c=(i.r||0)&7;if(t){c&&(a[0]=i.r>>3);for(var u=cL[t-1],d=u>>13,f=u&8191,m=(1<7e3||V>24576)&&(lt>423||!l)){c=rB(e,a,0,_,H,W,O,V,L,k-L,c),V=R=O=0,L=k;for(var ct=0;ct<286;++ct)H[ct]=0;for(var ct=0;ct<30;++ct)W[ct]=0}var at=2,st=0,Z=f,j=q-ft&32767;if(lt>2&&G==Q(k-j))for(var U=Math.min(d,lt)-1,N=Math.min(32767,k),tt=Math.min(258,lt);j<=N&&--Z&&q!=ft;){if(e[k+at]==e[k+at-j]){for(var et=0;etat){if(at=et,st=j,et>U)break;for(var At=Math.min(j,et-2),z=0,ct=0;ctz&&(z=wt,ft=nt)}}}q=ft,ft=B[q],j+=q-ft&32767}if(st){_[V++]=268435456|Zp[at]<<18|AB[st];var _t=Zp[at]&31,P=AB[st]&31;O+=n1[_t]+r1[P],++H[257+_t],++W[P],F=k+at,++R}else _[V++]=e[k],++H[e[k]]}}for(k=Math.max(k,F);k=s&&(a[c/8|0]=l,$=s),c=fy(a,c+1,e.subarray(k,$))}i.i=s}return lL(o,0,n+uy(c)+r)},dy=function(){var e=1,t=0;return{p:function(A){for(var n=e,r=t,i=A.length|0,s=0;s!=i;){for(var o=Math.min(s+2655,i);s>16),r=(r&65535)+15*(r>>16)}e=n,t=r},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},fL=function(e,t,A,n,r){if(!r&&(r={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),s=new Kr(i.length+e.length);s.set(i),s.set(e,i.length),e=s,r.w=i.length}return uL(e,t.level==null?6:t.level,t.mem==null?r.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,A,n,r)},gy=function(e,t,A){for(;A;++t)e[t]=A,A>>>=8},hL=function(e,t){var A=t.level,n=A==0?0:A<6?1:A==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var r=dy();r.p(t.dictionary),gy(e,2,r.d())}};function A0(e,t){t||(t={});var A=dy();A.p(e);var n=fL(e,t,t.dictionary?6:2,4);return hL(n,t),gy(n,n.length-4,A.d()),n}var dL=typeof TextDecoder<"u"&&new TextDecoder,gL=0;try{dL.decode(hy,{stream:!0}),gL=1}catch{}function pL(e){if(Array.isArray(e))return e}function mL(e,t){var A=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(A!=null){var n,r,i,s,o=[],a=!0,l=!1;try{if(i=(A=A.call(e)).next,t!==0)for(;!(a=(n=i.call(A)).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(c){l=!0,r=c}finally{try{if(!a&&A.return!=null&&(s=A.return(),Object(s)!==s))return}finally{if(l)throw r}}return o}}function iB(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,n=Array(t);A{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),kg={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class i1{constructor(t=yL,A={}){Nt(this,"buffer");Nt(this,"byteLength");Nt(this,"byteOffset");Nt(this,"length");Nt(this,"offset");Nt(this,"lastWrittenByte");Nt(this,"littleEndian");Nt(this,"_data");Nt(this,"_mark");Nt(this,"_marks");let n=!1;typeof t=="number"?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const r=A.offset?A.offset>>>0:0,i=t.byteLength-r;let s=r;(ArrayBuffer.isView(t)||t instanceof i1)&&(t.byteLength!==t.buffer.byteLength&&(s=t.byteOffset+r),t=t.buffer),n?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=t,this.length=i,this.byteLength=i,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,i),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const n=(this.offset+t)*2,r=new Uint8Array(n);r.set(new Uint8Array(this.buffer)),this.buffer=r.buffer,this.length=n,this.byteLength=n,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,A){const n=kg[A].BYTES_PER_ELEMENT*t,r=this.byteOffset+this.offset,i=this.buffer.slice(r,r+n);if(this.littleEndian===CL&&A!=="uint8"&&A!=="int8"){const o=new Uint8Array(this.buffer.slice(r,r+n));o.reverse();const a=new kg[A](o.buffer);return this.offset+=n,a.reverse(),a}const s=new kg[A](i);return this.offset+=n,s}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let A="";for(let n=0;nthis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function al(e){let t=e.length;for(;--t>=0;)e[t]=0}const xL=3,FL=258,py=29,_L=256,UL=_L+1+py,my=30,QL=512,EL=new Array((UL+2)*2);al(EL);const IL=new Array(my*2);al(IL);const SL=new Array(QL);al(SL);const LL=new Array(FL-xL+1);al(LL);const kL=new Array(py);al(kL);const NL=new Array(my);al(NL);const DL=(e,t,A,n)=>{let r=e&65535|0,i=e>>>16&65535|0,s=0;for(;A!==0;){s=A>2e3?2e3:A,A-=s;do r=r+t[n++]|0,i=i+r|0;while(--s);r%=65521,i%=65521}return r|i<<16|0};var n0=DL;const HL=()=>{let e,t=[];for(var A=0;A<256;A++){e=A;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[A]=e}return t},ML=new Uint32Array(HL()),TL=(e,t,A,n)=>{const r=ML,i=n+A;e^=-1;for(let s=n;s>>8^r[(e^t[s])&255];return e^-1};var ri=TL,r0={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},By={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const OL=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var PL=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const A=t.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(const n in A)OL(A,n)&&(e[n]=A[n])}}return e},RL=e=>{let t=0;for(let n=0,r=e.length;n=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Oc[254]=Oc[254]=1;var KL=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,A,n,r,i,s=e.length,o=0;for(r=0;r>>6,t[i++]=128|A&63):A<65536?(t[i++]=224|A>>>12,t[i++]=128|A>>>6&63,t[i++]=128|A&63):(t[i++]=240|A>>>18,t[i++]=128|A>>>12&63,t[i++]=128|A>>>6&63,t[i++]=128|A&63);return t};const VL=(e,t)=>{if(t<65534&&e.subarray&&vy)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let A="";for(let n=0;n{const A=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,r;const i=new Array(A*2);for(r=0,n=0;n4){i[r++]=65533,n+=o-1;continue}for(s&=o===2?31:o===3?15:7;o>1&&n1){i[r++]=65533;continue}s<65536?i[r++]=s:(s-=65536,i[r++]=55296|s>>10&1023,i[r++]=56320|s&1023)}return VL(i,r)},GL=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let A=t-1;for(;A>=0&&(e[A]&192)===128;)A--;return A<0||A===0?t:A+Oc[e[A]]>t?A:t},i0={string2buf:KL,buf2string:jL,utf8border:GL};function WL(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zL=WL;const hf=16209,$L=16191;var qL=function(t,A){let n,r,i,s,o,a,l,c,u,d,f,m,B,v,b,C,Q,_,H,W,R,O,k,V;const F=t.state;n=t.next_in,k=t.input,r=n+(t.avail_in-5),i=t.next_out,V=t.output,s=i-(A-t.avail_out),o=i+(t.avail_out-257),a=F.dmax,l=F.wsize,c=F.whave,u=F.wnext,d=F.window,f=F.hold,m=F.bits,B=F.lencode,v=F.distcode,b=(1<>>24,f>>>=_,m-=_,_=Q>>>16&255,_===0)V[i++]=Q&65535;else if(_&16){H=Q&65535,_&=15,_&&(m<_&&(f+=k[n++]<>>=_,m-=_),m<15&&(f+=k[n++]<>>24,f>>>=_,m-=_,_=Q>>>16&255,_&16){if(W=Q&65535,_&=15,m<_&&(f+=k[n++]<a){t.msg="invalid distance too far back",F.mode=hf;break t}if(f>>>=_,m-=_,_=i-s,W>_){if(_=W-_,_>c&&F.sane){t.msg="invalid distance too far back",F.mode=hf;break t}if(R=0,O=d,u===0){if(R+=l-_,_2;)V[i++]=O[R++],V[i++]=O[R++],V[i++]=O[R++],H-=3;H&&(V[i++]=O[R++],H>1&&(V[i++]=O[R++]))}else{R=i-W;do V[i++]=V[R++],V[i++]=V[R++],V[i++]=V[R++],H-=3;while(H>2);H&&(V[i++]=V[R++],H>1&&(V[i++]=V[R++]))}}else if(_&64){t.msg="invalid distance code",F.mode=hf;break t}else{Q=v[(Q&65535)+(f&(1<<_)-1)];continue A}break}}else if(_&64)if(_&32){F.mode=$L;break t}else{t.msg="invalid literal/length code",F.mode=hf;break t}else{Q=B[(Q&65535)+(f&(1<<_)-1)];continue e}break}}while(n>3,n-=H,m-=H<<3,f&=(1<{const a=o.bits;let l=0,c=0,u=0,d=0,f=0,m=0,B=0,v=0,b=0,C=0,Q,_,H,W,R,O=null,k;const V=new Uint16Array(Ua+1),F=new Uint16Array(Ua+1);let L=null,G,q,ft;for(l=0;l<=Ua;l++)V[l]=0;for(c=0;c=1&&V[d]===0;d--);if(f>d&&(f=d),d===0)return r[i++]=1<<24|64<<16|0,r[i++]=1<<24|64<<16|0,o.bits=1,0;for(u=1;u0&&(e===cB||d!==1))return-1;for(F[1]=0,l=1;laB||e===uB&&b>lB)return 1;for(;;){G=l-B,s[c]+1=k?(q=L[s[c]-k],ft=O[s[c]-k]):(q=96,ft=0),Q=1<>B)+_]=G<<24|q<<16|ft|0;while(_!==0);for(Q=1<>=1;if(Q!==0?(C&=Q-1,C+=Q):C=0,c++,--V[l]===0){if(l===d)break;l=t[A+s[c]]}if(l>f&&(C&W)!==H){for(B===0&&(B=f),R+=u,m=l-B,v=1<aB||e===uB&&b>lB)return 1;H=C&W,r[H]=f<<24|m<<16|R-i|0}}return C!==0&&(r[R+C]=l-B<<24|64<<16|0),o.bits=f,0};var yc=t6;const e6=0,by=1,yy=2,{Z_FINISH:fB,Z_BLOCK:A6,Z_TREES:df,Z_OK:Go,Z_STREAM_END:n6,Z_NEED_DICT:r6,Z_STREAM_ERROR:_r,Z_DATA_ERROR:Cy,Z_MEM_ERROR:xy,Z_BUF_ERROR:i6,Z_DEFLATED:hB}=By,od=16180,dB=16181,gB=16182,pB=16183,mB=16184,BB=16185,wB=16186,vB=16187,bB=16188,yB=16189,_h=16190,Ki=16191,Dg=16192,CB=16193,Hg=16194,xB=16195,FB=16196,_B=16197,UB=16198,gf=16199,pf=16200,QB=16201,EB=16202,IB=16203,SB=16204,LB=16205,Mg=16206,kB=16207,NB=16208,bA=16209,Fy=16210,_y=16211,s6=852,o6=592,a6=15,l6=a6,DB=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function c6(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const qo=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode_y?1:0},Uy=e=>{if(qo(e))return _r;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=od,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(s6),t.distcode=t.distdyn=new Int32Array(o6),t.sane=1,t.back=-1,Go},Qy=e=>{if(qo(e))return _r;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Uy(e)},Ey=(e,t)=>{let A;if(qo(e))return _r;const n=e.state;return t<0?(A=0,t=-t):(A=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?_r:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=A,n.wbits=t,Qy(e))},Iy=(e,t)=>{if(!e)return _r;const A=new c6;e.state=A,A.strm=e,A.window=null,A.mode=od;const n=Ey(e,t);return n!==Go&&(e.state=null),n},u6=e=>Iy(e,l6);let HB=!0,Tg,Og;const f6=e=>{if(HB){Tg=new Int32Array(512),Og=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(yc(by,e.lens,0,288,Tg,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;yc(yy,e.lens,0,32,Og,0,e.work,{bits:5}),HB=!1}e.lencode=Tg,e.lenbits=9,e.distcode=Og,e.distbits=5},Sy=(e,t,A,n)=>{let r;const i=e.state;return i.window===null&&(i.wsize=1<=i.wsize?(i.window.set(t.subarray(A-i.wsize,A),0),i.wnext=0,i.whave=i.wsize):(r=i.wsize-i.wnext,r>n&&(r=n),i.window.set(t.subarray(A-n,A-n+r),i.wnext),n-=r,n?(i.window.set(t.subarray(A-n,A),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=r,i.wnext===i.wsize&&(i.wnext=0),i.whave{let A,n,r,i,s,o,a,l,c,u,d,f,m,B,v=0,b,C,Q,_,H,W,R,O;const k=new Uint8Array(4);let V,F;const L=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(qo(e)||!e.output||!e.input&&e.avail_in!==0)return _r;A=e.state,A.mode===Ki&&(A.mode=Dg),s=e.next_out,r=e.output,a=e.avail_out,i=e.next_in,n=e.input,o=e.avail_in,l=A.hold,c=A.bits,u=o,d=a,O=Go;t:for(;;)switch(A.mode){case od:if(A.wrap===0){A.mode=Dg;break}for(;c<16;){if(o===0)break t;o--,l+=n[i++]<>>8&255,A.check=ri(A.check,k,2,0),l=0,c=0,A.mode=dB;break}if(A.head&&(A.head.done=!1),!(A.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",A.mode=bA;break}if((l&15)!==hB){e.msg="unknown compression method",A.mode=bA;break}if(l>>>=4,c-=4,R=(l&15)+8,A.wbits===0&&(A.wbits=R),R>15||R>A.wbits){e.msg="invalid window size",A.mode=bA;break}A.dmax=1<>8&1),A.flags&512&&A.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,A.check=ri(A.check,k,2,0)),l=0,c=0,A.mode=gB;case gB:for(;c<32;){if(o===0)break t;o--,l+=n[i++]<>>8&255,k[2]=l>>>16&255,k[3]=l>>>24&255,A.check=ri(A.check,k,4,0)),l=0,c=0,A.mode=pB;case pB:for(;c<16;){if(o===0)break t;o--,l+=n[i++]<>8),A.flags&512&&A.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,A.check=ri(A.check,k,2,0)),l=0,c=0,A.mode=mB;case mB:if(A.flags&1024){for(;c<16;){if(o===0)break t;o--,l+=n[i++]<>>8&255,A.check=ri(A.check,k,2,0)),l=0,c=0}else A.head&&(A.head.extra=null);A.mode=BB;case BB:if(A.flags&1024&&(f=A.length,f>o&&(f=o),f&&(A.head&&(R=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Uint8Array(A.head.extra_len)),A.head.extra.set(n.subarray(i,i+f),R)),A.flags&512&&A.wrap&4&&(A.check=ri(A.check,n,f,i)),o-=f,i+=f,A.length-=f),A.length))break t;A.length=0,A.mode=wB;case wB:if(A.flags&2048){if(o===0)break t;f=0;do R=n[i+f++],A.head&&R&&A.length<65536&&(A.head.name+=String.fromCharCode(R));while(R&&f>9&1,A.head.done=!0),e.adler=A.check=0,A.mode=Ki;break;case yB:for(;c<32;){if(o===0)break t;o--,l+=n[i++]<>>=c&7,c-=c&7,A.mode=Mg;break}for(;c<3;){if(o===0)break t;o--,l+=n[i++]<>>=1,c-=1,l&3){case 0:A.mode=CB;break;case 1:if(f6(A),A.mode=gf,t===df){l>>>=2,c-=2;break t}break;case 2:A.mode=FB;break;case 3:e.msg="invalid block type",A.mode=bA}l>>>=2,c-=2;break;case CB:for(l>>>=c&7,c-=c&7;c<32;){if(o===0)break t;o--,l+=n[i++]<>>16^65535)){e.msg="invalid stored block lengths",A.mode=bA;break}if(A.length=l&65535,l=0,c=0,A.mode=Hg,t===df)break t;case Hg:A.mode=xB;case xB:if(f=A.length,f){if(f>o&&(f=o),f>a&&(f=a),f===0)break t;r.set(n.subarray(i,i+f),s),o-=f,i+=f,a-=f,s+=f,A.length-=f;break}A.mode=Ki;break;case FB:for(;c<14;){if(o===0)break t;o--,l+=n[i++]<>>=5,c-=5,A.ndist=(l&31)+1,l>>>=5,c-=5,A.ncode=(l&15)+4,l>>>=4,c-=4,A.nlen>286||A.ndist>30){e.msg="too many length or distance symbols",A.mode=bA;break}A.have=0,A.mode=_B;case _B:for(;A.have>>=3,c-=3}for(;A.have<19;)A.lens[L[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,V={bits:A.lenbits},O=yc(e6,A.lens,0,19,A.lencode,0,A.work,V),A.lenbits=V.bits,O){e.msg="invalid code lengths set",A.mode=bA;break}A.have=0,A.mode=UB;case UB:for(;A.have>>24,C=v>>>16&255,Q=v&65535,!(b<=c);){if(o===0)break t;o--,l+=n[i++]<>>=b,c-=b,A.lens[A.have++]=Q;else{if(Q===16){for(F=b+2;c>>=b,c-=b,A.have===0){e.msg="invalid bit length repeat",A.mode=bA;break}R=A.lens[A.have-1],f=3+(l&3),l>>>=2,c-=2}else if(Q===17){for(F=b+3;c>>=b,c-=b,R=0,f=3+(l&7),l>>>=3,c-=3}else{for(F=b+7;c>>=b,c-=b,R=0,f=11+(l&127),l>>>=7,c-=7}if(A.have+f>A.nlen+A.ndist){e.msg="invalid bit length repeat",A.mode=bA;break}for(;f--;)A.lens[A.have++]=R}}if(A.mode===bA)break;if(A.lens[256]===0){e.msg="invalid code -- missing end-of-block",A.mode=bA;break}if(A.lenbits=9,V={bits:A.lenbits},O=yc(by,A.lens,0,A.nlen,A.lencode,0,A.work,V),A.lenbits=V.bits,O){e.msg="invalid literal/lengths set",A.mode=bA;break}if(A.distbits=6,A.distcode=A.distdyn,V={bits:A.distbits},O=yc(yy,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,V),A.distbits=V.bits,O){e.msg="invalid distances set",A.mode=bA;break}if(A.mode=gf,t===df)break t;case gf:A.mode=pf;case pf:if(o>=6&&a>=258){e.next_out=s,e.avail_out=a,e.next_in=i,e.avail_in=o,A.hold=l,A.bits=c,qL(e,d),s=e.next_out,r=e.output,a=e.avail_out,i=e.next_in,n=e.input,o=e.avail_in,l=A.hold,c=A.bits,A.mode===Ki&&(A.back=-1);break}for(A.back=0;v=A.lencode[l&(1<>>24,C=v>>>16&255,Q=v&65535,!(b<=c);){if(o===0)break t;o--,l+=n[i++]<>_)],b=v>>>24,C=v>>>16&255,Q=v&65535,!(_+b<=c);){if(o===0)break t;o--,l+=n[i++]<>>=_,c-=_,A.back+=_}if(l>>>=b,c-=b,A.back+=b,A.length=Q,C===0){A.mode=LB;break}if(C&32){A.back=-1,A.mode=Ki;break}if(C&64){e.msg="invalid literal/length code",A.mode=bA;break}A.extra=C&15,A.mode=QB;case QB:if(A.extra){for(F=A.extra;c>>=A.extra,c-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=EB;case EB:for(;v=A.distcode[l&(1<>>24,C=v>>>16&255,Q=v&65535,!(b<=c);){if(o===0)break t;o--,l+=n[i++]<>_)],b=v>>>24,C=v>>>16&255,Q=v&65535,!(_+b<=c);){if(o===0)break t;o--,l+=n[i++]<>>=_,c-=_,A.back+=_}if(l>>>=b,c-=b,A.back+=b,C&64){e.msg="invalid distance code",A.mode=bA;break}A.offset=Q,A.extra=C&15,A.mode=IB;case IB:if(A.extra){for(F=A.extra;c>>=A.extra,c-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){e.msg="invalid distance too far back",A.mode=bA;break}A.mode=SB;case SB:if(a===0)break t;if(f=d-a,A.offset>f){if(f=A.offset-f,f>A.whave&&A.sane){e.msg="invalid distance too far back",A.mode=bA;break}f>A.wnext?(f-=A.wnext,m=A.wsize-f):m=A.wnext-f,f>A.length&&(f=A.length),B=A.window}else B=r,m=s-A.offset,f=A.length;f>a&&(f=a),a-=f,A.length-=f;do r[s++]=B[m++];while(--f);A.length===0&&(A.mode=pf);break;case LB:if(a===0)break t;r[s++]=A.length,a--,A.mode=pf;break;case Mg:if(A.wrap){for(;c<32;){if(o===0)break t;o--,l|=n[i++]<{if(qo(e))return _r;let t=e.state;return t.window&&(t.window=null),e.state=null,Go},g6=(e,t)=>{if(qo(e))return _r;const A=e.state;return A.wrap&2?(A.head=t,t.done=!1,Go):_r},p6=(e,t)=>{const A=t.length;let n,r,i;return qo(e)||(n=e.state,n.wrap!==0&&n.mode!==_h)?_r:n.mode===_h&&(r=1,r=n0(r,t,A,0),r!==n.check)?Cy:(i=Sy(e,t,A,A),i?(n.mode=Fy,xy):(n.havedict=1,Go))};var m6=Qy,B6=Ey,w6=Uy,v6=u6,b6=Iy,y6=h6,C6=d6,x6=g6,F6=p6,_6="pako inflate (from Nodeca project)",$i={inflateReset:m6,inflateReset2:B6,inflateResetKeep:w6,inflateInit:v6,inflateInit2:b6,inflate:y6,inflateEnd:C6,inflateGetHeader:x6,inflateSetDictionary:F6,inflateInfo:_6};function U6(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Q6=U6;const Ly=Object.prototype.toString,{Z_NO_FLUSH:E6,Z_FINISH:I6,Z_OK:Pc,Z_STREAM_END:Pg,Z_NEED_DICT:Rg,Z_STREAM_ERROR:S6,Z_DATA_ERROR:MB,Z_MEM_ERROR:L6}=By;function tu(e){this.options=wy.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zL,this.strm.avail_out=0;let A=$i.inflateInit2(this.strm,t.windowBits);if(A!==Pc)throw new Error(r0[A]);if(this.header=new Q6,$i.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=i0.string2buf(t.dictionary):Ly.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(A=$i.inflateSetDictionary(this.strm,t.dictionary),A!==Pc)))throw new Error(r0[A])}tu.prototype.push=function(e,t){const A=this.strm,n=this.options.chunkSize,r=this.options.dictionary;let i,s,o;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?I6:E6,Ly.call(e)==="[object ArrayBuffer]"?A.input=new Uint8Array(e):A.input=e,A.next_in=0,A.avail_in=A.input.length;;){for(A.avail_out===0&&(A.output=new Uint8Array(n),A.next_out=0,A.avail_out=n),i=$i.inflate(A,s),i===Rg&&r&&(i=$i.inflateSetDictionary(A,r),i===Pc?i=$i.inflate(A,s):i===MB&&(i=Rg));A.avail_in>0&&i===Pg&&A.state.wrap>0&&e[A.next_in]!==0;)$i.inflateReset(A),i=$i.inflate(A,s);switch(i){case S6:case MB:case Rg:case L6:return this.onEnd(i),this.ended=!0,!1}if(o=A.avail_out,A.next_out&&(A.avail_out===0||i===Pg))if(this.options.to==="string"){let a=i0.utf8border(A.output,A.next_out),l=A.next_out-a,c=i0.buf2string(A.output,a);A.next_out=l,A.avail_out=n-l,l&&A.output.set(A.output.subarray(a,a+l),0),this.onData(c)}else this.onData(A.output.length===A.next_out?A.output:A.output.subarray(0,A.next_out));if(!(i===Pc&&o===0)){if(i===Pg)return i=$i.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(A.avail_in===0)break}}return!0};tu.prototype.onData=function(e){this.chunks.push(e)};tu.prototype.onEnd=function(e){e===Pc&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=wy.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function k6(e,t){const A=new tu(t);if(A.push(e),A.err)throw A.msg||r0[A.err];return A.result}var N6=tu,D6=k6,H6={Inflate:N6,inflate:D6};const{Inflate:M6,inflate:T6}=H6;var TB=M6,O6=T6;const ky=[];for(let e=0;e<256;e++){let t=e;for(let A=0;A<8;A++)t&1?t=3988292384^t>>>1:t=t>>>1;ky[e]=t}const OB=4294967295;function P6(e,t,A){let n=e;for(let r=0;r>>8;return n}function R6(e,t){return(P6(OB,e,t)^OB)>>>0}function PB(e,t,A){const n=e.readUint32(),r=R6(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(r!==n)throw new Error(`CRC mismatch for chunk ${A}. Expected ${n}, found ${r}`)}function Ny(e,t,A){for(let n=0;n>1)&255}else{for(;i>1)&255;for(;i>1)&255}}function Ty(e,t,A,n,r){let i=0;if(A.length===0){for(;i=A||W>=n))for(let R=0;R>8&255}const q6=new Uint16Array([255]),X6=new Uint8Array(q6.buffer),Y6=X6[0]===255,J6=new Uint8Array(0);function RB(e){const{data:t,width:A,height:n,channels:r,depth:i}=e,s=Math.ceil(i/8)*r,o=Math.ceil(i/8*r*A),a=new Uint8Array(n*o);let l=J6,c=0,u,d;for(let f=0;f>8&255}const Vf=Uint8Array.of(137,80,78,71,13,10,26,10);function KB(e){if(!t8(e.readBytes(Vf.length)))throw new Error("wrong PNG signature")}function t8(e){if(e.length79)throw new Error("keyword length must be between 1 and 79")}const r8=/^[\u0000-\u00FF]*$/;function i8(e){if(!r8.test(e))throw new Error("invalid latin1 text")}function s8(e,t,A){const n=Py(t);e[n]=o8(t,A-n.length-1)}function Py(e){for(e.mark();e.readByte()!==A8;);const t=e.offset;e.reset();const A=Oy.decode(e.readBytes(t-e.offset-1));return e.skip(1),n8(A),A}function o8(e,t){return Oy.decode(e.readBytes(t))}const sr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Kg={UNKNOWN:-1,DEFLATE:0},VB={UNKNOWN:-1,ADAPTIVE:0},Vg={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},mf={NONE:0,BACKGROUND:1,PREVIOUS:2},jg={SOURCE:0,OVER:1};class a8 extends i1{constructor(A,n={}){super(A);Nt(this,"_checkCrc");Nt(this,"_inflator");Nt(this,"_png");Nt(this,"_apng");Nt(this,"_end");Nt(this,"_hasPalette");Nt(this,"_palette");Nt(this,"_hasTransparency");Nt(this,"_transparency");Nt(this,"_compressionMethod");Nt(this,"_filterMethod");Nt(this,"_interlaceMethod");Nt(this,"_colorType");Nt(this,"_isAnimated");Nt(this,"_numberOfFrames");Nt(this,"_numberOfPlays");Nt(this,"_frames");Nt(this,"_writingDataChunks");const{checkCrc:r=!1}=n;this._checkCrc=r,this._inflator=new TB,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Kg.UNKNOWN,this._filterMethod=VB.UNKNOWN,this._interlaceMethod=Vg.UNKNOWN,this._colorType=sr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(KB(this);!this._end;){const A=this.readUint32(),n=this.readChars(4);this.decodeChunk(A,n)}return this.decodeImage(),this._png}decodeApng(){for(KB(this);!this._end;){const A=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(A,n)}return this.decodeApngImage(),this._apng}decodeChunk(A,n){const r=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(A);break;case"IDAT":this.decodeIDAT(A);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(A);break;case"iCCP":this.decodeiCCP(A);break;case e8:s8(this._png.text,this,A);break;case"pHYs":this.decodepHYs();break;default:this.skip(A);break}if(this.offset-r!==A)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?PB(this,A+4,n):this.skip(4)}decodeApngChunk(A,n){const r=this.offset;switch(n!=="fdAT"&&n!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),n){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(A);break;default:this.decodeChunk(A,n),this.offset=r+A;break}if(this.offset-r!==A)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?PB(this,A+4,n):this.skip(4)}decodeIHDR(){const A=this._png;A.width=this.readUint32(),A.height=this.readUint32(),A.depth=l8(this.readUint8());const n=this.readUint8();this._colorType=n;let r;switch(n){case sr.GREYSCALE:r=1;break;case sr.TRUECOLOUR:r=3;break;case sr.INDEXED_COLOUR:r=1;break;case sr.GREYSCALE_ALPHA:r=2;break;case sr.TRUECOLOUR_ALPHA:r=4;break;case sr.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==Kg.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const A={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(A)}decodePLTE(A){if(A%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${A}`);const n=A/3;this._hasPalette=!0;const r=[];this._palette=r;for(let i=0;ithis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${A/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(A/2);for(let n=0;nthis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${A} vs ${this._palette.length})`);let n=0;for(;n{const a=((s+n.yOffset)*this._png.width+n.xOffset+o)*this._png.channels,l=(s*n.width+o)*this._png.channels;return{index:a,frameIndex:l}};switch(n.blendOp){case jg.SOURCE:for(let s=0;s=200&&t.status<=299}function Bf(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Qo=we.saveAs||((typeof window>"u"?"undefined":Ze(window))!=="object"||window!==we?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,A){var n=we.URL||we.webkitURL,r=document.createElement("a");t=t||e.name||"download",r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?GB(r.href)?Wg(e,t,A):Bf(r,r.target="_blank"):Bf(r)):(r.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(r.href)},4e4),setTimeout(function(){Bf(r)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,A){if(t=t||e.name||"download",typeof e=="string")if(GB(e))Wg(e,t,A);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){Bf(n)})}else navigator.msSaveOrOpenBlob(function(r,i){return i===void 0?i={autoBom:!1}:Ze(i)!=="object"&&(sA.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r}(e,A),t)}:function(e,t,A,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return Wg(e,t,A);var r=e.type==="application/octet-stream",i=/constructor/i.test(we.HTMLElement)||we.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||r&&i)&&(typeof FileReader>"u"?"undefined":Ze(FileReader))==="object"){var o=new FileReader;o.onloadend=function(){var c=o.result;c=s?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=c:location=c,n=null},o.readAsDataURL(e)}else{var a=we.URL||we.webkitURL,l=a.createObjectURL(e);n?n.location=l:location.href=l,n=null,setTimeout(function(){a.revokeObjectURL(l)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function Ry(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var A=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],n=0;n255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var o=this.r.toString(16),a=this.g.toString(16),l=this.b.toString(16);return o.length==1&&(o="0"+o),a.length==1&&(a="0"+a),l.length==1&&(l="0"+l),"#"+o+a+l}}var jf=we.atob.bind(we),WB=we.btoa.bind(we);/** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function zg(e,t){var A=e[0],n=e[1],r=e[2],i=e[3];A=Bn(A,n,r,i,t[0],7,-680876936),i=Bn(i,A,n,r,t[1],12,-389564586),r=Bn(r,i,A,n,t[2],17,606105819),n=Bn(n,r,i,A,t[3],22,-1044525330),A=Bn(A,n,r,i,t[4],7,-176418897),i=Bn(i,A,n,r,t[5],12,1200080426),r=Bn(r,i,A,n,t[6],17,-1473231341),n=Bn(n,r,i,A,t[7],22,-45705983),A=Bn(A,n,r,i,t[8],7,1770035416),i=Bn(i,A,n,r,t[9],12,-1958414417),r=Bn(r,i,A,n,t[10],17,-42063),n=Bn(n,r,i,A,t[11],22,-1990404162),A=Bn(A,n,r,i,t[12],7,1804603682),i=Bn(i,A,n,r,t[13],12,-40341101),r=Bn(r,i,A,n,t[14],17,-1502002290),A=wn(A,n=Bn(n,r,i,A,t[15],22,1236535329),r,i,t[1],5,-165796510),i=wn(i,A,n,r,t[6],9,-1069501632),r=wn(r,i,A,n,t[11],14,643717713),n=wn(n,r,i,A,t[0],20,-373897302),A=wn(A,n,r,i,t[5],5,-701558691),i=wn(i,A,n,r,t[10],9,38016083),r=wn(r,i,A,n,t[15],14,-660478335),n=wn(n,r,i,A,t[4],20,-405537848),A=wn(A,n,r,i,t[9],5,568446438),i=wn(i,A,n,r,t[14],9,-1019803690),r=wn(r,i,A,n,t[3],14,-187363961),n=wn(n,r,i,A,t[8],20,1163531501),A=wn(A,n,r,i,t[13],5,-1444681467),i=wn(i,A,n,r,t[2],9,-51403784),r=wn(r,i,A,n,t[7],14,1735328473),A=vn(A,n=wn(n,r,i,A,t[12],20,-1926607734),r,i,t[5],4,-378558),i=vn(i,A,n,r,t[8],11,-2022574463),r=vn(r,i,A,n,t[11],16,1839030562),n=vn(n,r,i,A,t[14],23,-35309556),A=vn(A,n,r,i,t[1],4,-1530992060),i=vn(i,A,n,r,t[4],11,1272893353),r=vn(r,i,A,n,t[7],16,-155497632),n=vn(n,r,i,A,t[10],23,-1094730640),A=vn(A,n,r,i,t[13],4,681279174),i=vn(i,A,n,r,t[0],11,-358537222),r=vn(r,i,A,n,t[3],16,-722521979),n=vn(n,r,i,A,t[6],23,76029189),A=vn(A,n,r,i,t[9],4,-640364487),i=vn(i,A,n,r,t[12],11,-421815835),r=vn(r,i,A,n,t[15],16,530742520),A=bn(A,n=vn(n,r,i,A,t[2],23,-995338651),r,i,t[0],6,-198630844),i=bn(i,A,n,r,t[7],10,1126891415),r=bn(r,i,A,n,t[14],15,-1416354905),n=bn(n,r,i,A,t[5],21,-57434055),A=bn(A,n,r,i,t[12],6,1700485571),i=bn(i,A,n,r,t[3],10,-1894986606),r=bn(r,i,A,n,t[10],15,-1051523),n=bn(n,r,i,A,t[1],21,-2054922799),A=bn(A,n,r,i,t[8],6,1873313359),i=bn(i,A,n,r,t[15],10,-30611744),r=bn(r,i,A,n,t[6],15,-1560198380),n=bn(n,r,i,A,t[13],21,1309151649),A=bn(A,n,r,i,t[4],6,-145523070),i=bn(i,A,n,r,t[11],10,-1120210379),r=bn(r,i,A,n,t[2],15,718787259),n=bn(n,r,i,A,t[9],21,-343485551),e[0]=Ms(A,e[0]),e[1]=Ms(n,e[1]),e[2]=Ms(r,e[2]),e[3]=Ms(i,e[3])}function ad(e,t,A,n,r,i){return t=Ms(Ms(t,e),Ms(n,i)),Ms(t<>>32-r,A)}function Bn(e,t,A,n,r,i,s){return ad(t&A|~t&n,e,t,r,i,s)}function wn(e,t,A,n,r,i,s){return ad(t&n|A&~n,e,t,r,i,s)}function vn(e,t,A,n,r,i,s){return ad(t^A^n,e,t,r,i,s)}function bn(e,t,A,n,r,i,s){return ad(A^(t|~n),e,t,r,i,s)}function Ky(e){var t,A=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)zg(n,u8(e.substring(t-64,t)));e=e.substring(t-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),t>55)for(zg(n,r),t=0;t<16;t++)r[t]=0;return r[14]=8*A,zg(n,r),n}function u8(e){var t,A=[];for(t=0;t<64;t+=4)A[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return A}var zB="0123456789abcdef".split("");function f8(e){for(var t="",A=0;A<4;A++)t+=zB[e>>8*A+4&15]+zB[e>>8*A&15];return t}function h8(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function s0(e){return Ky(e).map(h8).join("")}var d8=function(e){for(var t=0;t>16)+(t>>16)+(A>>16)<<16|65535&A}return e+t&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function o0(e,t){var A,n,r,i;if(e!==A){for(var s=(r=e,i=1+(256/e.length|0),new Array(i+1).join(r)),o=[],a=0;a<256;a++)o[a]=a;var l=0;for(a=0;a<256;a++){var c=o[a];l=(l+c+s.charCodeAt(a))%256,o[a]=o[l],o[l]=c}A=e,n=o}else o=n;var u=t.length,d=0,f=0,m="";for(a=0;a€/\f©þdSiz";var i=(t+this.padding).substr(0,32),s=(A+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^r)),this.encryptionKey=s0(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=o0(this.encryptionKey,this.padding)}function Ma(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",A=e.length,n=0;n126?"#"+("0"+r.toString(16)).slice(-2):e[n]}return t}function qB(e){if(Ze(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(A,n,r){if(r=r||!1,typeof A!="string"||typeof n!="function"||typeof r!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(A)||(t[A]={});var i=Math.random().toString(35);return t[A][i]=[n,!!r],i},this.unsubscribe=function(A){for(var n in t)if(t[n][A])return delete t[n][A],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(A){if(t.hasOwnProperty(A)){var n=Array.prototype.slice.call(arguments,1),r=[];for(var i in t[A]){var s=t[A][i];try{s[0].apply(e,n)}catch(o){we.console&&sA.error("jsPDF PubSub Error",o.message,o)}s[1]&&r.push(i)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Uh(e){if(!(this instanceof Uh))return new Uh(e);var t="opacity,stroke-opacity".split(",");for(var A in e)e.hasOwnProperty(A)&&t.indexOf(A)>=0&&(this[A]=e[A]);this.id="",this.objectNumber=-1}function Vy(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Lo(e,t,A,n,r){if(!(this instanceof Lo))return new Lo(e,t,A,n,r);this.type=e==="axial"?2:3,this.coords=t,this.colors=A,Vy.call(this,n,r)}function Oa(e,t,A,n,r){if(!(this instanceof Oa))return new Oa(e,t,A,n,r);this.boundingBox=e,this.xStep=t,this.yStep=A,this.stream="",this.cloneIndex=0,Vy.call(this,n,r)}function ae(e){var t,A=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],r=arguments[2],i=arguments[3],s=[],o=1,a=16,l="S",c=null;Ze(e=e||{})==="object"&&(A=e.orientation,n=e.unit||n,r=e.format||r,i=e.compress||e.compressPdf||i,(c=e.encryption||null)!==null&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),o=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(a=e.floatPrecision),l=e.defaultPathOperation||"S"),s=e.filters||(i===!0?["FlateEncode"]:s),n=n||"mm",A=(""+(A||"P")).toLowerCase();var u=e.putOnlyUsedFonts||!1,d={},f={internal:{},__private__:{}};f.__private__.PubSub=qB;var m="1.3",B=f.__private__.getPdfVersion=function(){return m};f.__private__.setPdfVersion=function(w){m=w};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return v};var b=f.__private__.getPageFormat=function(w){return v[w]};r=r||"a4";var C="compat",Q="advanced",_=C;function H(){this.saveGraphicsState(),S(new de(oe,0,0,-oe,0,io()*oe).toString()+" cm"),this.setFontSize(this.getFontSize()/oe),l="n",_=Q}function W(){this.restoreGraphicsState(),l="S",_=C}var R=f.__private__.combineFontStyleAndFontWeight=function(w,E){if(w=="bold"&&E=="normal"||w=="bold"&&E==400||w=="normal"&&E=="italic"||w=="bold"&&E=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return E&&(w=E==400||E==="normal"?w==="italic"?"italic":"normal":E!=700&&E!=="bold"||w!=="normal"?(E==700?"bold":E)+""+w:"bold"),w};f.advancedAPI=function(w){var E=_===C;return E&&H.call(this),typeof w!="function"||(w(this),E&&W.call(this)),this},f.compatAPI=function(w){var E=_===Q;return E&&W.call(this),typeof w!="function"||(w(this),E&&H.call(this)),this},f.isAdvancedAPI=function(){return _===Q};var O,k=function(w){if(_!==Q)throw new Error(w+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},V=f.roundToPrecision=f.__private__.roundToPrecision=function(w,E){var X=t||E;if(isNaN(w)||isNaN(X))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return w.toFixed(X).replace(/0+$/,"")};O=f.hpf=f.__private__.hpf=typeof a=="number"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return V(w,a)}:a==="smart"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return V(w,w>-1&&w<1?16:5)}:function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return V(w,16)};var F=f.f2=f.__private__.f2=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f2");return V(w,2)},L=f.__private__.f3=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f3");return V(w,3)},G=f.scale=f.__private__.scale=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.scale");return _===C?w*oe:_===Q?w:void 0},q=function(w){return G(function(E){return _===C?io()-E:_===Q?E:void 0}(w))};f.__private__.setPrecision=f.setPrecision=function(w){typeof parseInt(w,10)=="number"&&(t=parseInt(w,10))};var ft,lt="00000000000000000000000000000000",ct=f.__private__.getFileId=function(){return lt},at=f.__private__.setFileId=function(w){return lt=w!==void 0&&/^[a-fA-F0-9]{32}$/.test(w)?w.toUpperCase():lt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),c!==null&&(sn=new Ha(c.userPermissions,c.userPassword,c.ownerPassword,lt)),lt};f.setFileId=function(w){return at(w),this},f.getFileId=function(){return ct()};var st=f.__private__.convertDateToPDFDate=function(w){var E=w.getTimezoneOffset(),X=E<0?"+":"-",it=Math.floor(Math.abs(E/60)),gt=Math.abs(E%60),Ut=[X,tt(it),"'",tt(gt),"'"].join("");return["D:",w.getFullYear(),tt(w.getMonth()+1),tt(w.getDate()),tt(w.getHours()),tt(w.getMinutes()),tt(w.getSeconds()),Ut].join("")},Z=f.__private__.convertPDFDateToDate=function(w){var E=parseInt(w.substr(2,4),10),X=parseInt(w.substr(6,2),10)-1,it=parseInt(w.substr(8,2),10),gt=parseInt(w.substr(10,2),10),Ut=parseInt(w.substr(12,2),10),Dt=parseInt(w.substr(14,2),10);return new Date(E,X,it,gt,Ut,Dt,0)},j=f.__private__.setCreationDate=function(w){var E;if(w===void 0&&(w=new Date),w instanceof Date)E=st(w);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(w))throw new Error("Invalid argument passed to jsPDF.setCreationDate");E=w}return ft=E},U=f.__private__.getCreationDate=function(w){var E=ft;return w==="jsDate"&&(E=Z(ft)),E};f.setCreationDate=function(w){return j(w),this},f.getCreationDate=function(w){return U(w)};var N,tt=f.__private__.padd2=function(w){return("0"+parseInt(w)).slice(-2)},et=f.__private__.padd2Hex=function(w){return("00"+(w=w.toString())).substr(w.length)},At=0,z=[],nt=[],ot=0,wt=[],_t=[],P=!1,$=nt;f.__private__.setCustomOutputDestination=function(w){P=!0,$=w};var rt=function(w){P||($=w)};f.__private__.resetCustomOutputDestination=function(){P=!1,$=nt};var S=f.__private__.out=function(w){return w=w.toString(),ot+=w.length+1,$.push(w),$},pt=f.__private__.write=function(w){return S(arguments.length===1?w.toString():Array.prototype.join.call(arguments," "))},xt=f.__private__.getArrayBuffer=function(w){for(var E=w.length,X=new ArrayBuffer(E),it=new Uint8Array(X);E--;)it[E]=w.charCodeAt(E);return X},Et=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return Et};var mt=e.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(w){return mt=_===Q?w/oe:w,this};var Ft,bt=f.__private__.getFontSize=f.getFontSize=function(){return _===C?mt:mt*oe},Mt=e.R2L||!1;f.__private__.setR2L=f.setR2L=function(w){return Mt=w,this},f.__private__.getR2L=f.getR2L=function(){return Mt};var It,Pt=f.__private__.setZoomMode=function(w){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(w))Ft=w;else if(isNaN(w)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(w)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+w+'" is not recognized.');Ft=w}else Ft=parseInt(w,10)};f.__private__.getZoomMode=function(){return Ft};var Kt,Gt=f.__private__.setPageMode=function(w){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(w)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+w+'" is not recognized.');It=w};f.__private__.getPageMode=function(){return It};var ee=f.__private__.setLayoutMode=function(w){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(w)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+w+'" is not recognized.');Kt=w};f.__private__.getLayoutMode=function(){return Kt},f.__private__.setDisplayMode=f.setDisplayMode=function(w,E,X){return Pt(w),ee(E),Gt(X),this};var Yt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(w){if(Object.keys(Yt).indexOf(w)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Yt[w]},f.__private__.getDocumentProperties=function(){return Yt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(w){for(var E in Yt)Yt.hasOwnProperty(E)&&w[E]&&(Yt[E]=w[E]);return this},f.__private__.setDocumentProperty=function(w,E){if(Object.keys(Yt).indexOf(w)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Yt[w]=E};var Wt,oe,Xt,Ke,Le,Ee={},fe={},Me=[],le={},qe={},pe={},xe={},wA=null,ke=0,he=[],je=new qB(f),Zs=e.hotfixes||[],hn={},Ci={},Wr=[],de=function w(E,X,it,gt,Ut,Dt){if(!(this instanceof w))return new w(E,X,it,gt,Ut,Dt);isNaN(E)&&(E=1),isNaN(X)&&(X=0),isNaN(it)&&(it=0),isNaN(gt)&&(gt=1),isNaN(Ut)&&(Ut=0),isNaN(Dt)&&(Dt=0),this._matrix=[E,X,it,gt,Ut,Dt]};Object.defineProperty(de.prototype,"sx",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(de.prototype,"shy",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(de.prototype,"shx",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(de.prototype,"sy",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(de.prototype,"tx",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(de.prototype,"ty",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(de.prototype,"a",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(de.prototype,"b",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(de.prototype,"c",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(de.prototype,"d",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(de.prototype,"e",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(de.prototype,"f",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(de.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(de.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(de.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(de.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),de.prototype.join=function(w){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(O).join(w)},de.prototype.multiply=function(w){var E=w.sx*this.sx+w.shy*this.shx,X=w.sx*this.shy+w.shy*this.sy,it=w.shx*this.sx+w.sy*this.shx,gt=w.shx*this.shy+w.sy*this.sy,Ut=w.tx*this.sx+w.ty*this.shx+this.tx,Dt=w.tx*this.shy+w.ty*this.sy+this.ty;return new de(E,X,it,gt,Ut,Dt)},de.prototype.decompose=function(){var w=this.sx,E=this.shy,X=this.shx,it=this.sy,gt=this.tx,Ut=this.ty,Dt=Math.sqrt(w*w+E*E),Ae=(w/=Dt)*X+(E/=Dt)*it;X-=w*Ae,it-=E*Ae;var te=Math.sqrt(X*X+it*it);return Ae/=te,w*(it/=te)>16&255,it=te>>8&255,gt=255&te}if(it===void 0||Ut===void 0&&X===it&&it===gt)E=typeof X=="string"?X+" "+Dt[0]:w.precision===2?F(X/255)+" "+Dt[0]:L(X/255)+" "+Dt[0];else if(Ut===void 0||Ze(Ut)==="object"){if(Ut&&!isNaN(Ut.a)&&Ut.a===0)return["1.","1.","1.",Dt[1]].join(" ");E=typeof X=="string"?[X,it,gt,Dt[1]].join(" "):w.precision===2?[F(X/255),F(it/255),F(gt/255),Dt[1]].join(" "):[L(X/255),L(it/255),L(gt/255),Dt[1]].join(" ")}else E=typeof X=="string"?[X,it,gt,Ut,Dt[2]].join(" "):w.precision===2?[F(X),F(it),F(gt),F(Ut),Dt[2]].join(" "):[L(X),L(it),L(gt),L(Ut),Dt[2]].join(" ");return E},Er=f.__private__.getFilters=function(){return s},dr=f.__private__.putStream=function(w){var E=(w=w||{}).data||"",X=w.filters||Er(),it=w.alreadyAppliedFilters||[],gt=w.addLength1||!1,Ut=E.length,Dt=w.objectId,Ae=function(gA){return gA};if(c!==null&&Dt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");c!==null&&(Ae=sn.encryptor(Dt,0));var te={};X===!0&&(X=["FlateEncode"]);var ve=w.additionalKeyValues||[],Fe=(te=ae.API.processDataByFilters!==void 0?ae.API.processDataByFilters(E,X):{data:E,reverseChain:[]}).reverseChain+(Array.isArray(it)?it.join(" "):it.toString());if(te.data.length!==0&&(ve.push({key:"Length",value:te.data.length}),gt===!0&&ve.push({key:"Length1",value:Ut})),Fe.length!=0)if(Fe.split("/").length-1==1)ve.push({key:"Filter",value:Fe});else{ve.push({key:"Filter",value:"["+Fe+"]"});for(var Oe=0;Oe>"),te.data.length!==0&&(S("stream"),S(Ae(te.data)),S("endstream"))},eo=f.__private__.putPage=function(w){var E=w.number,X=w.data,it=w.objId,gt=w.contentsObjId;rn(it,!0),S("<>"),S("endobj");var Ut=X.join(` `);return _===Q&&(Ut+=` Q`),rn(gt,!0),dr({data:Ut,filters:Er(),objectId:gt}),S("endobj"),it},$r=f.__private__.putPages=function(){var w,E,X=[];for(w=1;w<=ke;w++)he[w].objId=tn(),he[w].contentsObjId=tn();for(w=1;w<=ke;w++)X.push(eo({number:w,data:_t[w],objId:he[w].objId,contentsObjId:he[w].contentsObjId,mediaBox:he[w].mediaBox,cropBox:he[w].cropBox,bleedBox:he[w].bleedBox,trimBox:he[w].trimBox,artBox:he[w].artBox,userUnit:he[w].userUnit,rootDictionaryObjId:ls,resourceDictionaryObjId:Ur}));rn(ls,!0),S("<>"),S("endobj"),je.publish("postPutPages")},Ao=function(w){je.publish("putFont",{font:w,out:S,newObject:_A,putStream:dr}),w.isAlreadyPutted!==!0&&(w.objectNumber=_A(),S("<<"),S("/Type /Font"),S("/BaseFont /"+Ma(w.postScriptName)),S("/Subtype /Type1"),typeof w.encoding=="string"&&S("/Encoding /"+w.encoding),S("/FirstChar 32"),S("/LastChar 255"),S(">>"),S("endobj"))},Jo=function(w){w.objectNumber=_A();var E=[];E.push({key:"Type",value:"/XObject"}),E.push({key:"Subtype",value:"/Form"}),E.push({key:"BBox",value:"["+[O(w.x),O(w.y),O(w.x+w.width),O(w.y+w.height)].join(" ")+"]"}),E.push({key:"Matrix",value:"["+w.matrix.toString()+"]"});var X=w.pages[1].join(` `);dr({data:X,additionalKeyValues:E,objectId:w.objectNumber}),S("endobj")},Zo=function(w,E){E||(E=21);var X=_A(),it=function(Dt,Ae){var te,ve=[],Fe=1/(Ae-1);for(te=0;te<1;te+=Fe)ve.push(te);if(ve.push(1),Dt[0].offset!=0){var Oe={offset:0,color:Dt[0].color};Dt.unshift(Oe)}if(Dt[Dt.length-1].offset!=1){var jA={offset:1,color:Dt[Dt.length-1].color};Dt.push(jA)}for(var rA="",eA=0,gA=0;gADt[eA+1].offset;)eA++;var xA=Dt[eA].offset,FA=(te-xA)/(Dt[eA+1].offset-xA),dn=Dt[eA].color,Si=Dt[eA+1].color;rA+=et(Math.round((1-FA)*dn[0]+FA*Si[0]).toString(16))+et(Math.round((1-FA)*dn[1]+FA*Si[1]).toString(16))+et(Math.round((1-FA)*dn[2]+FA*Si[2]).toString(16))}return rA.trim()}(w.colors,E),gt=[];gt.push({key:"FunctionType",value:"0"}),gt.push({key:"Domain",value:"[0.0 1.0]"}),gt.push({key:"Size",value:"["+E+"]"}),gt.push({key:"BitsPerSample",value:"8"}),gt.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),gt.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),dr({data:it,additionalKeyValues:gt,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:X}),S("endobj"),w.objectNumber=_A(),S("<< /ShadingType "+w.type),S("/ColorSpace /DeviceRGB");var Ut="/Coords ["+O(parseFloat(w.coords[0]))+" "+O(parseFloat(w.coords[1]))+" ";w.type===2?Ut+=O(parseFloat(w.coords[2]))+" "+O(parseFloat(w.coords[3])):Ut+=O(parseFloat(w.coords[2]))+" "+O(parseFloat(w.coords[3]))+" "+O(parseFloat(w.coords[4]))+" "+O(parseFloat(w.coords[5])),S(Ut+="]"),w.matrix&&S("/Matrix ["+w.matrix.toString()+"]"),S("/Function "+X+" 0 R"),S("/Extend [true true]"),S(">>"),S("endobj")},ta=function(w,E){var X=tn(),it=_A();E.push({resourcesOid:X,objectOid:it}),w.objectNumber=it;var gt=[];gt.push({key:"Type",value:"/Pattern"}),gt.push({key:"PatternType",value:"1"}),gt.push({key:"PaintType",value:"1"}),gt.push({key:"TilingType",value:"1"}),gt.push({key:"BBox",value:"["+w.boundingBox.map(O).join(" ")+"]"}),gt.push({key:"XStep",value:O(w.xStep)}),gt.push({key:"YStep",value:O(w.yStep)}),gt.push({key:"Resources",value:X+" 0 R"}),w.matrix&>.push({key:"Matrix",value:"["+w.matrix.toString()+"]"}),dr({data:w.stream,additionalKeyValues:gt,objectId:w.objectNumber}),S("endobj")},pd=function(w){for(var E in w.objectNumber=_A(),S("<<"),w)switch(E){case"opacity":S("/ca "+F(w[E]));break;case"stroke-opacity":S("/CA "+F(w[E]))}S(">>"),S("endobj")},ll=function(w){rn(w.resourcesOid,!0),S("<<"),S("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var E in S("/Font <<"),Ee)Ee.hasOwnProperty(E)&&(u===!1||u===!0&&d.hasOwnProperty(E))&&S("/"+E+" "+Ee[E].objectNumber+" 0 R");S(">>")}(),function(){if(Object.keys(le).length>0){for(var E in S("/Shading <<"),le)le.hasOwnProperty(E)&&le[E]instanceof Lo&&le[E].objectNumber>=0&&S("/"+E+" "+le[E].objectNumber+" 0 R");je.publish("putShadingPatternDict"),S(">>")}}(),function(E){if(Object.keys(le).length>0){for(var X in S("/Pattern <<"),le)le.hasOwnProperty(X)&&le[X]instanceof f.TilingPattern&&le[X].objectNumber>=0&&le[X].objectNumber>")}}(w.objectOid),function(){if(Object.keys(pe).length>0){var E;for(E in S("/ExtGState <<"),pe)pe.hasOwnProperty(E)&&pe[E].objectNumber>=0&&S("/"+E+" "+pe[E].objectNumber+" 0 R");je.publish("putGStateDict"),S(">>")}}(),function(){for(var E in S("/XObject <<"),hn)hn.hasOwnProperty(E)&&hn[E].objectNumber>=0&&S("/"+E+" "+hn[E].objectNumber+" 0 R");je.publish("putXobjectDict"),S(">>")}(),S(">>"),S("endobj")},nu=function(w){fe[w.fontName]=fe[w.fontName]||{},fe[w.fontName][w.fontStyle]=w.id},ru=function(w,E,X,it,gt){var Ut={id:"F"+(Object.keys(Ee).length+1).toString(10),postScriptName:w,fontName:E,fontStyle:X,encoding:it,isStandardFont:gt||!1,metadata:{}};return je.publish("addFont",{font:Ut,instance:this}),Ee[Ut.id]=Ut,nu(Ut),Ut.id},gr=f.__private__.pdfEscape=f.pdfEscape=function(w,E){return function(X,it){var gt,Ut,Dt,Ae,te,ve,Fe,Oe,jA;if(Dt=(it=it||{}).sourceEncoding||"Unicode",te=it.outputEncoding,(it.autoencode||te)&&Ee[Wt].metadata&&Ee[Wt].metadata[Dt]&&Ee[Wt].metadata[Dt].encoding&&(Ae=Ee[Wt].metadata[Dt].encoding,!te&&Ee[Wt].encoding&&(te=Ee[Wt].encoding),!te&&Ae.codePages&&(te=Ae.codePages[0]),typeof te=="string"&&(te=Ae[te]),te)){for(Fe=!1,ve=[],gt=0,Ut=X.length;gt>8&&(Fe=!0);X=ve.join("")}for(gt=X.length;Fe===void 0&>!==0;)X.charCodeAt(gt-1)>>8&&(Fe=!0),gt--;if(!Fe)return X;for(ve=it.noBOM?[]:[254,255],gt=0,Ut=X.length;gt>8)>>8)throw new Error("Character at position "+gt+" of string '"+X+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ve.push(jA),ve.push(Oe-(jA<<8))}return String.fromCharCode.apply(void 0,ve)}(w,E).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},cl=f.__private__.beginPage=function(w){_t[++ke]=[],he[ke]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(w[0]),topRightY:Number(w[1])}},su(ke),rt(_t[N])},iu=function(w,E){var X,it,gt;switch(A=E||A,typeof w=="string"&&(X=b(w.toLowerCase()),Array.isArray(X)&&(it=X[0],gt=X[1])),Array.isArray(w)&&(it=w[0]*oe,gt=w[1]*oe),isNaN(it)&&(it=r[0],gt=r[1]),(it>14400||gt>14400)&&(sA.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),it=Math.min(14400,it),gt=Math.min(14400,gt)),r=[it,gt],A.substr(0,1)){case"l":gt>it&&(r=[gt,it]);break;case"p":it>gt&&(r=[gt,it])}cl(r),_d(Be),S(sa),gl!==0&&S(gl+" J"),fs!==0&&S(fs+" j"),je.publish("addPage",{pageNumber:ke})},ul=function(w){w>0&&w<=ke&&(_t.splice(w,1),he.splice(w,1),ke--,N>ke&&(N=ke),this.setPage(N))},su=function(w){w>0&&w<=ke&&(N=w)},ou=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return _t.length-1},au=function(w,E,X){var it,gt=void 0;return X=X||{},w=w!==void 0?w:Ee[Wt].fontName,E=E!==void 0?E:Ee[Wt].fontStyle,it=w.toLowerCase(),fe[it]!==void 0&&fe[it][E]!==void 0?gt=fe[it][E]:fe[w]!==void 0&&fe[w][E]!==void 0?gt=fe[w][E]:X.disableWarning===!1&&sA.warn("Unable to look up font label for font '"+w+"', '"+E+"'. Refer to getFontList() for available fonts."),gt||X.noFallback||(gt=fe.times[E])==null&&(gt=fe.times.normal),gt},qr=f.__private__.putInfo=function(){var w=_A(),E=function(it){return it};for(var X in c!==null&&(E=sn.encryptor(w,0)),S("<<"),S("/Producer ("+gr(E("jsPDF "+ae.version))+")"),Yt)Yt.hasOwnProperty(X)&&Yt[X]&&S("/"+X.substr(0,1).toUpperCase()+X.substr(1)+" ("+gr(E(Yt[X]))+")");S("/CreationDate ("+gr(E(ft))+")"),S(">>"),S("endobj")},ea=f.__private__.putCatalog=function(w){var E=(w=w||{}).rootDictionaryObjId||ls;switch(_A(),S("<<"),S("/Type /Catalog"),S("/Pages "+E+" 0 R"),Ft||(Ft="fullwidth"),Ft){case"fullwidth":S("/OpenAction [3 0 R /FitH null]");break;case"fullheight":S("/OpenAction [3 0 R /FitV null]");break;case"fullpage":S("/OpenAction [3 0 R /Fit]");break;case"original":S("/OpenAction [3 0 R /XYZ null null 1]");break;default:var X=""+Ft;X.substr(X.length-1)==="%"&&(Ft=parseInt(Ft)/100),typeof Ft=="number"&&S("/OpenAction [3 0 R /XYZ null null "+F(Ft)+"]")}switch(Kt||(Kt="continuous"),Kt){case"continuous":S("/PageLayout /OneColumn");break;case"single":S("/PageLayout /SinglePage");break;case"two":case"twoleft":S("/PageLayout /TwoColumnLeft");break;case"tworight":S("/PageLayout /TwoColumnRight")}It&&S("/PageMode /"+It),je.publish("putCatalog"),S(">>"),S("endobj")},md=f.__private__.putTrailer=function(){S("trailer"),S("<<"),S("/Size "+(At+1)),S("/Root "+At+" 0 R"),S("/Info "+(At-1)+" 0 R"),c!==null&&S("/Encrypt "+sn.oid+" 0 R"),S("/ID [ <"+lt+"> <"+lt+"> ]"),S(">>")},VA=f.__private__.putHeader=function(){S("%PDF-"+m),S("%ºß¬à")},lu=f.__private__.putXRef=function(){var w="0000000000";S("xref"),S("0 "+(At+1)),S("0000000000 65535 f ");for(var E=1;E<=At;E++)typeof z[E]=="function"?S((w+z[E]()).slice(-10)+" 00000 n "):z[E]!==void 0?S((w+z[E]).slice(-10)+" 00000 n "):S("0000000000 00000 n ")},Xr=f.__private__.buildDocument=function(){var w;At=0,ot=0,nt=[],z=[],wt=[],ls=tn(),Ur=tn(),rt(nt),je.publish("buildDocument"),VA(),$r(),function(){je.publish("putAdditionalObjects");for(var X=0;X"),S("/O <"+sn.toHexString(sn.O)+">"),S("/P "+sn.P),S(">>"),S("endobj")),qr(),ea();var E=ot;return lu(),md(),S("startxref"),S(""+E),S("%%EOF"),rt(_t[N]),nt.join(` `)},Aa=f.__private__.getBlob=function(w){return new Blob([xt(w)],{type:"application/pdf"})},fl=function(w){for(;w.firstChild;)w.removeChild(w.firstChild)},Zn=function(w){var E,X=w.document,it=X.documentElement,gt=X.head,Ut=X.body;return gt||(gt=X.createElement("head"),it.appendChild(gt)),Ut||(Ut=X.createElement("body"),it.appendChild(Ut)),fl(gt),fl(Ut),(E=X.createElement("style")).appendChild(X.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),gt.appendChild(E),{document:X,body:Ut}},na=f.output=f.__private__.output=(hr=function(w,E){switch(typeof(E=E||{})=="string"?E={filename:E}:E.filename=E.filename||"generated.pdf",w){case void 0:return Xr();case"save":f.save(E.filename);break;case"arraybuffer":return xt(Xr());case"blob":return Aa(Xr());case"bloburi":case"bloburl":if(we.URL!==void 0&&typeof we.URL.createObjectURL=="function")return we.URL&&we.URL.createObjectURL(Aa(Xr()))||void 0;sA.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var X="",it=Xr();try{X=WB(it)}catch{X=WB(unescape(encodeURIComponent(it)))}return"data:application/pdf;filename="+encodeURIComponent(E.filename)+";base64,"+X;case"pdfobjectnewwindow":if(Object.prototype.toString.call(we)==="[object Window]"){var gt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ut=!E.pdfObjectUrl;Ut||(gt=E.pdfObjectUrl);var Dt=we.open();if(Dt!==null){var Ae=Zn(Dt),te=Ae.document.createElement("script"),ve=this;te.src=gt,Ut&&(te.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",te.crossOrigin="anonymous"),te.onload=function(){Dt.PDFObject.embed(ve.output("dataurlstring"),E)},Ae.body.appendChild(te)}return Dt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(we)==="[object Window]"){var Fe=E.pdfJsUrl||"examples/PDF.js/web/viewer.html",Oe=we.open();if(Oe!==null){var jA=Zn(Oe),rA=jA.document.createElement("iframe"),eA=Fe.indexOf("?")===-1?"?":"&";ve=this,rA.id="pdfViewer",rA.width="500px",rA.height="400px",rA.src=Fe+eA+"file=&downloadName="+encodeURIComponent(E.filename),rA.onload=function(){Oe.document.title=E.filename,rA.contentWindow.PDFViewerApplication.open(ve.output("bloburl"))},jA.body.appendChild(rA)}return Oe}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(we)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var gA=we.open();if(gA!==null){var xA=Zn(gA),FA=xA.document.createElement("iframe");FA.src=this.output("datauristring",E),xA.body.appendChild(FA),gA.document.title=E.filename}if(gA||typeof safari>"u")return gA;break;case"datauri":case"dataurl":return we.document.location.href=this.output("datauristring",E);default:return null}},hr.foo=function(){try{return hr.apply(this,arguments)}catch(X){var w=X.stack||"";~w.indexOf(" at ")&&(w=w.split(" at ")[1]);var E="Error in function "+w.split(` `)[0].split("<")[0]+": "+X.message;if(!we.console)throw new Error(E);we.console.error(E,X),we.alert&&alert(E)}},hr.foo.bar=hr,hr.foo),_i=function(w){return Array.isArray(Zs)===!0&&Zs.indexOf(w)>-1};switch(n){case"pt":oe=1;break;case"mm":oe=72/25.4;break;case"cm":oe=72/2.54;break;case"in":oe=72;break;case"px":oe=_i("px_scaling")==1?.75:96/72;break;case"pc":case"em":oe=12;break;case"ex":oe=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);oe=n}var sn=null;j(),at();var cu=f.__private__.getPageInfo=f.getPageInfo=function(w){if(isNaN(w)||w%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:he[w].objId,pageNumber:w,pageContext:he[w]}},Bd=f.__private__.getPageInfoByObjId=function(w){if(isNaN(w)||w%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var E in he)if(he[E].objId===w)break;return cu(E)},wd=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:he[N].objId,pageNumber:N,pageContext:he[N]}};f.addPage=function(){return iu.apply(this,arguments),this},f.setPage=function(){return su.apply(this,arguments),rt.call(this,_t[N]),this},f.insertPage=function(w){return this.addPage(),this.movePage(N,w),this},f.movePage=function(w,E){var X,it;if(w>E){X=_t[w],it=he[w];for(var gt=w;gt>E;gt--)_t[gt]=_t[gt-1],he[gt]=he[gt-1];_t[E]=X,he[E]=it,this.setPage(E)}else if(w0&&(typeof w=="string"?w=eA.splitTextToSize(w,Fe):Object.prototype.toString.call(w)==="[object Array]"&&(w=w.reduce(function(lA,cA){return lA.concat(eA.splitTextToSize(cA,Fe))},[]))),Ut={text:w,x:E,y:X,options:it,mutex:{pdfEscape:gr,activeFontKey:Wt,fonts:Ee,activeFontSize:mt}},je.publish("preProcessText",Ut),w=Ut.text,Ae=(it=Ut.options).angle,rA instanceof de==0&&Ae&&typeof Ae=="number"){Ae*=Math.PI/180,it.rotationDirection===0&&(Ae=-Ae),_===Q&&(Ae=-Ae);var vl=Math.cos(Ae),Zr=Math.sin(Ae);rA=new de(vl,Zr,-Zr,vl,0,0)}else Ae&&Ae instanceof de&&(rA=Ae);_!==Q||rA||(rA=Fi),(ve=it.charSpace||oa)!==void 0&&(FA+=O(G(ve))+` Tc `,this.setCharSpace(this.getCharSpace()||0)),(jA=it.horizontalScale)!==void 0&&(FA+=O(100*jA)+` Tz `),it.lang;var Ln=-1,Bu=it.renderingMode!==void 0?it.renderingMode:it.stroke,fa=eA.internal.getCurrentPageInfo().pageContext;switch(Bu){case 0:case!1:case"fill":Ln=0;break;case 1:case!0:case"stroke":Ln=1;break;case 2:case"fillThenStroke":Ln=2;break;case 3:case"invisible":Ln=3;break;case 4:case"fillAndAddForClipping":Ln=4;break;case 5:case"strokeAndAddPathForClipping":Ln=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ln=6;break;case 7:case"addToPathForClipping":Ln=7}var wu=fa.usedRenderingMode!==void 0?fa.usedRenderingMode:-1;Ln!==-1?FA+=Ln+` Tr `:wu!==-1&&(FA+=`0 Tr `),Ln!==-1&&(fa.usedRenderingMode=Ln),te=it.align||"left";var pr,uo=mt*dn,bl=eA.internal.pageSize.getWidth(),ha=Ee[Wt];ve=it.charSpace||oa,Fe=it.maxWidth||0,Oe=Object.assign({autoencode:!0,noBOM:!0},it.flags);var fo=[],yl=function(lA){return eA.getStringUnitWidth(lA,{font:ha,charSpace:ve,fontSize:mt,doKerning:!1})*mt/Si};if(Object.prototype.toString.call(w)==="[object Array]"){var kn;Dt=so(w),te!=="left"&&(pr=Dt.map(yl));var Vn,da=0;if(te==="right"){E-=pr[0],w=[],gn=Dt.length;for(var ds=0;ds0?(Fe-pr[GA])/Cl:0;GA":")"),po=parseFloat(Dt[pn][1]),mo=parseFloat(Dt[pn][2]);break;case 0:ps=(xA?"<":"(")+Dt[pn]+(xA?">":")"),po=Ui(E),mo=Qi(X)}fo!==void 0&&fo[pn]!==void 0&&(ms=fo[pn]+` Tw `),pn===0?w.push(ms+ma(po,mo,rA)+ps):Li===0?w.push(ms+ps):Li===1&&w.push(ms+ma(po,mo,rA)+ps)}w=Li===0?w.join(` Tj T* `):w.join(` Tj `),w+=` Tj `;var ei=`BT /`;return ei+=Wt+" "+mt+` Tf `,ei+=O(mt*dn)+` TL `,ei+=Jr+` `,ei+=FA,ei+=w,S(ei+="ET"),d[Wt]=!0,eA};var vd=f.__private__.clip=f.clip=function(w){return S(w==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return vd("evenodd")},f.__private__.discardPath=f.discardPath=function(){return S("n"),this};var Yr=f.__private__.isValidStyle=function(w){var E=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(w)!==-1&&(E=!0),E};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(w){return Yr(w)&&(l=w),this};var uu=f.__private__.getStyle=f.getStyle=function(w){var E=l;switch(w){case"D":case"S":E="S";break;case"F":E="f";break;case"FD":case"DF":E="B";break;case"f":case"f*":case"B":case"B*":E=w}return E},ra=f.close=function(){return S("h"),this};f.stroke=function(){return S("S"),this},f.fill=function(w){return ia("f",w),this},f.fillEvenOdd=function(w){return ia("f*",w),this},f.fillStroke=function(w){return ia("B",w),this},f.fillStrokeEvenOdd=function(w){return ia("B*",w),this};var ia=function(w,E){Ze(E)==="object"?yd(E,w):S(w)},hl=function(w){w===null||_===Q&&w===void 0||(w=uu(w),S(w))};function bd(w,E,X,it,gt){var Ut=new Oa(E||this.boundingBox,X||this.xStep,it||this.yStep,this.gState,gt||this.matrix);Ut.stream=this.stream;var Dt=w+"$$"+this.cloneIndex+++"$$";return fr(Dt,Ut),Ut}var yd=function(w,E){var X=qe[w.key],it=le[X];if(it instanceof Lo)S("q"),S(Cd(E)),it.gState&&f.setGState(it.gState),S(w.matrix.toString()+" cm"),S("/"+X+" sh"),S("Q");else if(it instanceof Oa){var gt=new de(1,0,0,-1,0,io());w.matrix&&(gt=gt.multiply(w.matrix||Fi),X=bd.call(it,w.key,w.boundingBox,w.xStep,w.yStep,gt).id),S("q"),S("/Pattern cs"),S("/"+X+" scn"),it.gState&&f.setGState(it.gState),S(E),S("Q")}},Cd=function(w){switch(w){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},cs=f.moveTo=function(w,E){return S(O(G(w))+" "+O(q(E))+" m"),this},fu=f.lineTo=function(w,E){return S(O(G(w))+" "+O(q(E))+" l"),this},us=f.curveTo=function(w,E,X,it,gt,Ut){return S([O(G(w)),O(q(E)),O(G(X)),O(q(it)),O(G(gt)),O(q(Ut)),"c"].join(" ")),this};f.__private__.line=f.line=function(w,E,X,it,gt){if(isNaN(w)||isNaN(E)||isNaN(X)||isNaN(it)||!Yr(gt))throw new Error("Invalid arguments passed to jsPDF.line");return _===C?this.lines([[X-w,it-E]],w,E,[1,1],gt||"S"):this.lines([[X-w,it-E]],w,E,[1,1]).stroke()},f.__private__.lines=f.lines=function(w,E,X,it,gt,Ut){var Dt,Ae,te,ve,Fe,Oe,jA,rA,eA,gA,xA,FA;if(typeof w=="number"&&(FA=X,X=E,E=w,w=FA),it=it||[1,1],Ut=Ut||!1,isNaN(E)||isNaN(X)||!Array.isArray(w)||!Array.isArray(it)||!Yr(gt)||typeof Ut!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(cs(E,X),Dt=it[0],Ae=it[1],ve=w.length,gA=E,xA=X,te=0;te>8&255,e>>16&255,e>>24&255)},Ha.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ha.prototype.hexToBytes=function(e){for(var t=[],A=0;A>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return o0(A,n)}},Uh.prototype.equals=function(e){var t,A="id,objectNumber,equals";if(!e||Ze(e)!==Ze(this))return!1;var n=0;for(t in this)if(!(A.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&A.indexOf(t)<0&&n--;return n===0},ae.API={events:[]},ae.version="4.2.1";var IA=ae.API,s1=1,Xo=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Qa=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Wo=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var A=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(A.length===1?"0"+A:A)})},be=function(e){return e.toFixed(2)},_s=function(e){return e.toFixed(5)};IA.__acroform__={};var Jn=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},XB=function(e){return e*s1},ii=function(e){var t=new Gy,A=Zt.internal.getHeight(e)||0,n=Zt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(be(n)),Number(be(A))],t},g8=IA.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<0;){t="",i--;var l,c,u=wf("3",e,i).height,d=e.multiline?s-i:(s-u)/2,f=d+=2,m=0,B=0,v=0;if(i<=0){t=`(...) Tj `,t+="% Width of Text: "+wf(t,e,i=12).width+", FieldWidth:"+o+` `;break}for(var b="",C=0,Q=0;Qs)continue t;b+=r[Q][v],_=!0,B=Q,Q--}else{b=(b+=r[Q][v]+" ").substr(b.length-1)==" "?b.substr(0,b.length-1):b;var H=parseInt(Q),W=a(H,b,i),R=Q>=r.length-1;if(W&&!R){b+=" ",v=0;continue}if(W||R){if(R)B=H;else if(e.multiline&&(u+2)*(C+2)+2>s)continue t}else{if(!e.multiline||(u+2)*(C+2)+2>s)continue t;B=H}}for(var O="",k=m;k<=B;k++){var V=r[k];if(e.multiline){if(k===B){O+=V[v]+" ",v=(v+1)%V.length;continue}if(k===m){O+=V[V.length-1]+" ";continue}}O+=V[0]+" "}switch(O=O.substr(O.length-1)==" "?O.substr(0,O.length-1):O,c=wf(O,e,i).width,e.textAlign){case"right":l=o-c-2;break;case"center":l=(o-c)/2;break;default:l=2}t+=be(l)+" "+be(f)+` Td `,t+="("+Xo(O)+`) Tj `,t+=-be(l)+` 0 Td `,f=-(i+2),c=0,m=_?B:B+1,C++,b=""}break}return n.text=t,n.fontSize=i,n},wf=function(e,t,A){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),r=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(A),charSpace:0})*parseFloat(A);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(A),charSpace:0})*parseFloat(A)*1.5,width:r}},v8={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},b8=function(e,t){var A={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(n){return n.type===A.type&&n.object===A.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(A)},y8=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(jr.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(v8)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");s1=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Wy,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(A){A.internal.events.unsubscribe(A.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete A.internal.acroformPlugin.acroFormDictionaryRoot._eventID,A.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(A){A.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in n)if(n.hasOwnProperty(r)){var i=n[r];i.objId=void 0,i.hasAnnotation&&b8(i,A)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(A){if(A.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(A){(function(n,r){var i=!n;for(var s in n||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(s)){var o=n[s],a=[],l=o.Rect;if(o.Rect&&(o.Rect=B8(o.Rect,r)),r.internal.newObjectDeferredBegin(o.objId,!0),o.DA=Zt.createDefaultAppearanceStream(o),Ze(o)==="object"&&typeof o.getKeyValueListForStream=="function"&&(a=o.getKeyValueListForStream()),o.Rect=l,o.hasAppearanceStream&&!o.appearanceStreamContent){var c=w8(o);a.push({key:"AP",value:"<>"}),r.internal.acroformPlugin.xForms.push(c)}if(o.appearanceStreamContent){var u="";for(var d in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(d)){var f=o.appearanceStreamContent[d];if(u+="/"+d+" ",u+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var s in f)if(f.hasOwnProperty(s)){var m=f[s];typeof m=="function"&&(m=m.call(r,o)),u+="/"+s+" "+m+" ",r.internal.acroformPlugin.xForms.indexOf(m)>=0||r.internal.acroformPlugin.xForms.push(m)}}else typeof(m=f)=="function"&&(m=m.call(r,o)),u+="/"+s+" "+m,r.internal.acroformPlugin.xForms.indexOf(m)>=0||r.internal.acroformPlugin.xForms.push(m);u+=">>"}a.push({key:"AP",value:`<< `+u+">>"})}r.internal.putStream({additionalKeyValues:a,objectId:o.objId}),r.internal.out("endobj")}i&&function(B,v){for(var b in B)if(B.hasOwnProperty(b)){var C=b,Q=B[b];v.internal.newObjectDeferredBegin(Q.objId,!0),Ze(Q)==="object"&&typeof Q.putStream=="function"&&Q.putStream(),delete B[C]}}(r.internal.acroformPlugin.xForms,r)})(A,e)}),e.internal.acroformPlugin.isInitialized=!0}},jy=IA.__acroform__.arrayToPdfArray=function(e,t,A){var n=function(s){return s};if(Array.isArray(e)){for(var r="[",i=0;i0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var A=function(n){return n};return this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),"("+Xo(A(e))+")"}},set:function(A){e=A}})};Jn(Wy,fi);var jr=function e(){fi.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(b){if(isNaN(b))throw new Error('Invalid value "'+b+'" for attribute F supplied.');t=b}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!TA(t,3)},set:function(b){b?this.F=OA(t,3):this.F=PA(t,3)}});var A=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return A},set:function(b){if(isNaN(b))throw new Error('Invalid value "'+b+'" for attribute Ff supplied.');A=b}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(b){n=b!==void 0?b:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(b){n[0]=b}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(b){n[1]=b}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(b){n[2]=b}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(b){n[3]=b}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(b){switch(b){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=b;break;default:throw new Error('Invalid value "'+b+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Qh)return;i="FieldObject"+e.FieldNum++}var b=function(C){return C};return this.scope&&(b=this.scope.internal.getEncryptor(this.objId)),"("+Xo(b(i))+")"},set:function(b){i=b.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(b){i=b}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(b){s=b}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(b){o=b}});var a=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return a},set:function(b){a=b}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/s1:l},set:function(b){l=b}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(b){c=b}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof Qh||this instanceof Ro))return $g(u,this.objId,this.scope)},set:function(b){b=b.toString(),u=b}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof An==0?$g(d,this.objId,this.scope):d},set:function(b){b=b.toString(),d=this instanceof An==0?b.substr(0,1)==="("?Qa(b.substr(1,b.length-2)):Qa(b):b}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof An==1?Qa(d.substr(1,d.length-1)):d},set:function(b){b=b.toString(),d=this instanceof An==1?"/"+Wo(b):b}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(b){this.V=b}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof An==0?$g(f,this.objId,this.scope):f},set:function(b){b=b.toString(),f=this instanceof An==0?b.substr(0,1)==="("?Qa(b.substr(1,b.length-2)):Qa(b):b}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof An==1?Qa(f.substr(1,f.length-1)):f},set:function(b){b=b.toString(),f=this instanceof An==1?"/"+Wo(b):b}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var m,B=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return B},set:function(b){b=!!b,B=b}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(b){m=b}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,1)},set:function(b){b?this.Ff=OA(this.Ff,1):this.Ff=PA(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,2)},set:function(b){b?this.Ff=OA(this.Ff,2):this.Ff=PA(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,3)},set:function(b){b?this.Ff=OA(this.Ff,3):this.Ff=PA(this.Ff,3)}});var v=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(v!==null)return v},set:function(b){if([0,1,2].indexOf(b)===-1)throw new Error('Invalid value "'+b+'" for attribute Q supplied.');v=b}}),Object.defineProperty(this,"textAlign",{get:function(){var b;switch(v){case 0:default:b="left";break;case 1:b="center";break;case 2:b="right"}return b},configurable:!0,enumerable:!0,set:function(b){switch(b){case"right":case 2:v=2;break;case"center":case 1:v=1;break;default:v=0}}})};Jn(jr,fi);var Ga=function(){jr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(A){e=A}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return jy(t,this.objId,this.scope)},set:function(A){var n,r;r=[],typeof(n=A)=="string"&&(r=function(i,s,o){o||(o=1);for(var a,l=[];a=s.exec(i);)l.push(a[o]);return l}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(A){t=A,this.sort&&t.sort()},this.addOption=function(A){A=(A=A||"").toString(),t.push(A),this.sort&&t.sort()},this.removeOption=function(A,n){for(n=n||!1,A=(A=A||"").toString();t.indexOf(A)!==-1&&(t.splice(t.indexOf(A),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,18)},set:function(A){A?this.Ff=OA(this.Ff,18):this.Ff=PA(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,19)},set:function(A){this.combo===!0&&(A?this.Ff=OA(this.Ff,19):this.Ff=PA(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,20)},set:function(A){A?(this.Ff=OA(this.Ff,20),t.sort()):this.Ff=PA(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,22)},set:function(A){A?this.Ff=OA(this.Ff,22):this.Ff=PA(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,23)},set:function(A){A?this.Ff=OA(this.Ff,23):this.Ff=PA(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,27)},set:function(A){A?this.Ff=OA(this.Ff,27):this.Ff=PA(this.Ff,27)}}),this.hasAppearanceStream=!1};Jn(Ga,jr);var Wa=function(){Ga.call(this),this.fontName="helvetica",this.combo=!1};Jn(Wa,Ga);var za=function(){Wa.call(this),this.combo=!0};Jn(za,Wa);var Gf=function(){za.call(this),this.edit=!0};Jn(Gf,za);var An=function(){jr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,15)},set:function(A){A?this.Ff=OA(this.Ff,15):this.Ff=PA(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,16)},set:function(A){A?this.Ff=OA(this.Ff,16):this.Ff=PA(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,17)},set:function(A){A?this.Ff=OA(this.Ff,17):this.Ff=PA(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,26)},set:function(A){A?this.Ff=OA(this.Ff,26):this.Ff=PA(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(i){return i};if(this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,r=[];for(n in r.push("<<"),t)r.push("/"+n+" ("+Xo(A(t[n]))+")");return r.push(">>"),r.join(` `)}},set:function(A){Ze(A)==="object"&&(t=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(A){typeof A=="string"&&(t.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(A){var n=A==null?"":A.toString();n.substr(0,1)==="/"&&(n=n.substr(1)),e="/"+Wo(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(A){e="/"+Wo(A)}})};Jn(An,jr);var Wf=function(){An.call(this),this.pushButton=!0};Jn(Wf,An);var $a=function(){An.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};Jn($a,An);var Qh=function(){var e,t;jr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r}});var A,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(o){return o};this.scope&&(r=this.scope.internal.getEncryptor(this.objId));var i,s=[];for(i in s.push("<<"),n)s.push("/"+i+" ("+Xo(r(n[i]))+")");return s.push(">>"),s.join(` `)},set:function(r){Ze(r)==="object"&&(n=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(r){typeof r=="string"&&(n.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(r){var i=r==null?"":r.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),A="/"+Wo(i)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(r){var i=r==null?"":r.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),A="/"+Wo(i)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Zt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Jn(Qh,jr),$a.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var A=this.Kids[t];A.appearanceStreamContent=e.createAppearanceStream(A.optionName),A.caption=e.getCA()}},$a.prototype.createOption=function(e){var t=new Qh;return t.Parent=this,t.optionName=e,this.Kids.push(t),C8.call(this.scope,t),t};var zf=function(){An.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Zt.CheckBox.createAppearanceStream()};Jn(zf,An);var Ro=function(){jr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,13)},set:function(t){t?this.Ff=OA(this.Ff,13):this.Ff=PA(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,21)},set:function(t){t?this.Ff=OA(this.Ff,21):this.Ff=PA(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,23)},set:function(t){t?this.Ff=OA(this.Ff,23):this.Ff=PA(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,24)},set:function(t){t?this.Ff=OA(this.Ff,24):this.Ff=PA(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,25)},set:function(t){t?this.Ff=OA(this.Ff,25):this.Ff=PA(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,26)},set:function(t){t?this.Ff=OA(this.Ff,26):this.Ff=PA(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Jn(Ro,jr);var $f=function(){Ro.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!TA(this.Ff,14)},set:function(e){e?this.Ff=OA(this.Ff,14):this.Ff=PA(this.Ff,14)}}),this.password=!0};Jn($f,Ro);var Zt={CheckBox:{createAppearanceStream:function(){return{N:{On:Zt.CheckBox.YesNormal},D:{On:Zt.CheckBox.YesPushDown,Off:Zt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=ii(e);t.scope=e.scope;var A=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=a0(e,e.caption);return A.push("0.749023 g"),A.push("0 0 "+be(Zt.internal.getWidth(e))+" "+be(Zt.internal.getHeight(e))+" re"),A.push("f"),A.push("BMC"),A.push("q"),A.push("0 0 1 rg"),A.push("/"+n+" "+be(i.fontSize)+" Tf "+r),A.push("BT"),A.push(i.text),A.push("ET"),A.push("Q"),A.push("EMC"),t.stream=A.join(` `),t},YesNormal:function(e){var t=ii(e);t.scope=e.scope;var A=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),r=[],i=Zt.internal.getHeight(e),s=Zt.internal.getWidth(e),o=a0(e,e.caption);return r.push("1 g"),r.push("0 0 "+be(s)+" "+be(i)+" re"),r.push("f"),r.push("q"),r.push("0 0 1 rg"),r.push("0 0 "+be(s-1)+" "+be(i-1)+" re"),r.push("W"),r.push("n"),r.push("0 g"),r.push("BT"),r.push("/"+A+" "+be(o.fontSize)+" Tf "+n),r.push(o.text),r.push("ET"),r.push("Q"),t.stream=r.join(` `),t},OffPushDown:function(e){var t=ii(e);t.scope=e.scope;var A=[];return A.push("0.749023 g"),A.push("0 0 "+be(Zt.internal.getWidth(e))+" "+be(Zt.internal.getHeight(e))+" re"),A.push("f"),t.stream=A.join(` `),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Zt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Zt.RadioButton.Circle.YesNormal,t.D[e]=Zt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=ii(e);t.scope=e.scope;var A=[],n=Zt.internal.getWidth(e)<=Zt.internal.getHeight(e)?Zt.internal.getWidth(e)/4:Zt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var r=Zt.internal.Bezier_C,i=Number((n*r).toFixed(5));return A.push("q"),A.push("1 0 0 1 "+_s(Zt.internal.getWidth(e)/2)+" "+_s(Zt.internal.getHeight(e)/2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),A.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),A.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),A.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),A.push("f"),A.push("Q"),t.stream=A.join(` `),t},YesPushDown:function(e){var t=ii(e);t.scope=e.scope;var A=[],n=Zt.internal.getWidth(e)<=Zt.internal.getHeight(e)?Zt.internal.getWidth(e)/4:Zt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var r=Number((2*n).toFixed(5)),i=Number((r*Zt.internal.Bezier_C).toFixed(5)),s=Number((n*Zt.internal.Bezier_C).toFixed(5));return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+_s(Zt.internal.getWidth(e)/2)+" "+_s(Zt.internal.getHeight(e)/2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),A.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),A.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),A.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),A.push("f"),A.push("Q"),A.push("0 g"),A.push("q"),A.push("1 0 0 1 "+_s(Zt.internal.getWidth(e)/2)+" "+_s(Zt.internal.getHeight(e)/2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),A.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),A.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),A.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),A.push("f"),A.push("Q"),t.stream=A.join(` `),t},OffPushDown:function(e){var t=ii(e);t.scope=e.scope;var A=[],n=Zt.internal.getWidth(e)<=Zt.internal.getHeight(e)?Zt.internal.getWidth(e)/4:Zt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var r=Number((2*n).toFixed(5)),i=Number((r*Zt.internal.Bezier_C).toFixed(5));return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+_s(Zt.internal.getWidth(e)/2)+" "+_s(Zt.internal.getHeight(e)/2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),A.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),A.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),A.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),A.push("f"),A.push("Q"),t.stream=A.join(` `),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Zt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Zt.RadioButton.Cross.YesNormal,t.D[e]=Zt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=ii(e);t.scope=e.scope;var A=[],n=Zt.internal.calculateCross(e);return A.push("q"),A.push("1 1 "+be(Zt.internal.getWidth(e)-2)+" "+be(Zt.internal.getHeight(e)-2)+" re"),A.push("W"),A.push("n"),A.push(be(n.x1.x)+" "+be(n.x1.y)+" m"),A.push(be(n.x2.x)+" "+be(n.x2.y)+" l"),A.push(be(n.x4.x)+" "+be(n.x4.y)+" m"),A.push(be(n.x3.x)+" "+be(n.x3.y)+" l"),A.push("s"),A.push("Q"),t.stream=A.join(` `),t},YesPushDown:function(e){var t=ii(e);t.scope=e.scope;var A=Zt.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+be(Zt.internal.getWidth(e))+" "+be(Zt.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+be(Zt.internal.getWidth(e)-2)+" "+be(Zt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(be(A.x1.x)+" "+be(A.x1.y)+" m"),n.push(be(A.x2.x)+" "+be(A.x2.y)+" l"),n.push(be(A.x4.x)+" "+be(A.x4.y)+" m"),n.push(be(A.x3.x)+" "+be(A.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(` `),t},OffPushDown:function(e){var t=ii(e);t.scope=e.scope;var A=[];return A.push("0.749023 g"),A.push("0 0 "+be(Zt.internal.getWidth(e))+" "+be(Zt.internal.getHeight(e))+" re"),A.push("f"),t.stream=A.join(` `),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,A=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+A}};Zt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Zt.internal.getWidth(e),A=Zt.internal.getHeight(e),n=Math.min(t,A);return{x1:{x:(t-n)/2,y:(A-n)/2+n},x2:{x:(t-n)/2+n,y:(A-n)/2},x3:{x:(t-n)/2,y:(A-n)/2},x4:{x:(t-n)/2+n,y:(A-n)/2+n}}}},Zt.internal.getWidth=function(e){var t=0;return Ze(e)==="object"&&(t=XB(e.Rect[2])),t},Zt.internal.getHeight=function(e){var t=0;return Ze(e)==="object"&&(t=XB(e.Rect[3])),t};var C8=IA.addField=function(e){if(y8(this,e),!(e instanceof jr))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};IA.AcroFormChoiceField=Ga,IA.AcroFormListBox=Wa,IA.AcroFormComboBox=za,IA.AcroFormEditBox=Gf,IA.AcroFormButton=An,IA.AcroFormPushButton=Wf,IA.AcroFormRadioButton=$a,IA.AcroFormCheckBox=zf,IA.AcroFormTextField=Ro,IA.AcroFormPasswordField=$f,IA.AcroFormAppearance=Zt,IA.AcroForm={ChoiceField:Ga,ListBox:Wa,ComboBox:za,EditBox:Gf,Button:An,PushButton:Wf,RadioButton:$a,CheckBox:zf,TextField:Ro,PasswordField:$f,Appearance:Zt},ae.AcroForm={ChoiceField:Ga,ListBox:Wa,ComboBox:za,EditBox:Gf,Button:An,PushButton:Wf,RadioButton:$a,CheckBox:zf,TextField:Ro,PasswordField:$f,Appearance:Zt};ae.AcroForm;function zy(e){return e.reduce(function(t,A,n){return t[A]=n,t},{})}(function(e){var t="addImage_";e.__addimage__={};var A="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(F,L){var G,q,ft,lt,ct,at=A;if((L=L||A)==="RGBA"||F.data!==void 0&&F.data instanceof Uint8ClampedArray&&"height"in F&&"width"in F)return"RGBA";if(W(F))for(ct in n)for(ft=n[ct],G=0;G>"}),"transparency"in L&&Array.isArray(L.transparency)&&L.transparency.length>0){for(var ct="",at=0,st=L.transparency.length;at>",B.content=i;var Q=B.objId+" 0 R";i="<>";else if(n.options.pageNumber)switch(i="<=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(B){return s(B)&&i(B)&&t[B.charCodeAt(0)].length>=1};var l=e.__arabicParser__.arabicLetterHasFinalForm=function(B){return s(B)&&i(B)&&t[B.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(B){return s(B)&&i(B)&&t[B.charCodeAt(0)].length>=3};var c=e.__arabicParser__.arabicLetterHasMedialForm=function(B){return s(B)&&i(B)&&t[B.charCodeAt(0)].length==4},u=e.__arabicParser__.resolveLigatures=function(B){var v=0,b=A,C="",Q=0;for(v=0;v>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},function(e){var t=function(){var A=void 0;Object.defineProperty(this,"pdf",{get:function(){return A},set:function(o){A=o}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(o){n=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(o){r=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(o){i=o}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(o){s=o}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(A,n){var r;if((A=A||"2d")!=="2d")return null;for(r in n)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=n[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(ae.API),function(e){var t={left:0,top:0,bottom:0,right:0},A=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),r.call(this))},r=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var a=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return a},set:function(B){a=B}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(B){l=B}});var c=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return c},set:function(B){c=B}});var u=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return u},set:function(B){u=B}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(B){d=B}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(B){f=B}});var m=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return m},set:function(B){m=B}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(a){return n.call(this),this.internal.__cell__.headerFunction=typeof a=="function"?a:void 0,this},e.getTextDimensions=function(a,l){n.call(this);var c=(l=l||{}).fontSize||this.getFontSize(),u=l.font||this.getFont(),d=l.scaleFactor||this.internal.scaleFactor,f=0,m=0,B=0,v=this;if(!Array.isArray(a)&&typeof a!="string"){if(typeof a!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");a=String(a)}var b=l.maxWidth;b>0?typeof a=="string"?a=this.splitTextToSize(a,b):Object.prototype.toString.call(a)==="[object Array]"&&(a=a.reduce(function(Q,_){return Q.concat(v.splitTextToSize(_,b))},[])):a=Array.isArray(a)?a:[a];for(var C=0;Cthis.getPageHeight()?(this.cellAddPage(),a.y=u.top,f&&d&&(this.printHeaderRow(a.lineNumber,!0),a.y+=d[0].height)):a.y=l.y+l.height||a.y),a.text[0]!==void 0&&(this.rect(a.x,a.y,a.width,a.height,A===!0?"FD":void 0),a.align==="right"?this.text(a.text,a.x+a.width-c,a.y+c,{align:"right",baseline:"top"}):a.align==="center"?this.text(a.text,a.x+a.width/2,a.y+c,{align:"center",baseline:"top",maxWidth:a.width-c-c}):this.text(a.text,a.x+c,a.y+c,{align:"left",baseline:"top",maxWidth:a.width-c-c})),this.internal.__cell__.lastCell=a,this};e.table=function(a,l,c,u,d){if(n.call(this),!c)throw new Error("No data for PDF table.");var f,m,B,v,b=[],C=[],Q=[],_={},H={},W=[],R=[],O=(d=d||{}).autoSize||!1,k=d.printHeaders!==!1,V=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,F=d.margins||Object.assign({width:this.getPageWidth()},t),L=typeof d.padding=="number"?d.padding:3,G=d.headerBackgroundColor||"#c8c8c8",q=d.headerTextColor||"#000";if(r.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=F,this.internal.__cell__.table_font_size=V,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=G,this.internal.__cell__.headerTextColor=q,this.setFontSize(V),u==null)C=b=Object.keys(c[0]),Q=b.map(function(){return"left"});else if(Array.isArray(u)&&Ze(u[0])==="object")for(b=u.map(function(Z){return Z.name}),C=u.map(function(Z){return Z.prompt||Z.name||""}),Q=u.map(function(Z){return Z.align||"left"}),f=0;f0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),A=!1}}(ae.API);var $y={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},qy=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],l0=zy(qy),Xy=[100,200,300,400,500,600,700,800,900],x8=zy(Xy);function qg(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),A=function(i){return $y[i=i||"normal"]?i:"normal"}(e.style),n=function(i){return i?typeof i=="number"?i>=100&&i<=900&&i%100==0?i:400:/^\d00$/.test(i)?parseInt(i):i==="bold"?700:400:400}(e.weight),r=function(i){return typeof l0[i=i||"normal"]=="number"?i:"normal"}(e.stretch);return{family:t,style:A,weight:n,stretch:r,src:e.src||[],ref:e.ref||{name:t,style:[r,A,n].join(" ")}}}function YB(e,t,A,n){var r;for(r=A;r>=0&&r=0&&r>>1)&255}return r}function aw(e,t,A){var n=e.length,r=[];r[0]=4;for(var i=0;i>i&s}function lw(e,t,A,n){var r=A*n,i=Math.floor(r/8),s=16-(r-8*i+n),o=(1<>8&255;l.setUint8(c,d)}})(e,i,Yy(e,i)&~(o<>7,s=1<<1+(7&r);e[t++],e[t++];var o=null,a=null;i&&(o=t,a=s,t+=3*s);var l=!0,c=[],u=0,d=null,f=0,m=null;for(this.width=A,this.height=n;l&&t=0))throw Error("Invalid block size");if(F===0)break;t+=F}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var B=e[t++];u=e[t++]|e[t++]<<8,d=e[t++],1&B||(d=null),f=B>>2&7,t++;break;case 254:for(;;){if(!((F=e[t++])>=0))throw Error("Invalid block size");if(F===0)break;t+=F}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var v=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,C=e[t++]|e[t++]<<8,Q=e[t++]|e[t++]<<8,_=e[t++],H=_>>6&1,W=1<<1+(7&_),R=o,O=a,k=!1;_>>7&&(k=!0,R=t,O=W,t+=3*W);var V=t;for(t++;;){var F;if(!((F=e[t++])>=0))throw Error("Invalid block size");if(F===0)break;t+=F}c.push({x:v,y:b,width:C,height:Q,has_local_palette:k,palette_offset:R,palette_size:O,data_offset:V,data_length:t-V,transparent_index:d,interlaced:!!H,delay:u,disposal:f});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return m},this.frameInfo=function(L){if(L<0||L>=c.length)throw new Error("Frame index out of range.");return c[L]},this.decodeAndBlitFrameBGRA=function(L,G){var q=this.frameInfo(L),ft=q.width*q.height;if(ft>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var lt=new Uint8Array(ft);cw(e,q.data_offset,lt,ft);var ct=q.palette_offset,at=q.transparent_index;at===null&&(at=256);var st=q.width,Z=A-st,j=st,U=4*(q.y*A+q.x),N=4*((q.y+q.height)*A+q.x),tt=U,et=4*Z;q.interlaced===!0&&(et+=4*A*7);for(var At=8,z=0,nt=lt.length;z=N&&(et=4*Z+4*A*(At-1),tt=U+(st+Z)*(At<<1),At>>=1)),ot===at)tt+=4;else{var wt=e[ct+3*ot],_t=e[ct+3*ot+1],P=e[ct+3*ot+2];G[tt++]=P,G[tt++]=_t,G[tt++]=wt,G[tt++]=255}--j}},this.decodeAndBlitFrameRGBA=function(L,G){var q=this.frameInfo(L),ft=q.width*q.height;if(ft>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var lt=new Uint8Array(ft);cw(e,q.data_offset,lt,ft);var ct=q.palette_offset,at=q.transparent_index;at===null&&(at=256);var st=q.width,Z=A-st,j=st,U=4*(q.y*A+q.x),N=4*((q.y+q.height)*A+q.x),tt=U,et=4*Z;q.interlaced===!0&&(et+=4*A*7);for(var At=8,z=0,nt=lt.length;z=N&&(et=4*Z+4*A*(At-1),tt=U+(st+Z)*(At<<1),At>>=1)),ot===at)tt+=4;else{var wt=e[ct+3*ot],_t=e[ct+3*ot+1],P=e[ct+3*ot+2];G[tt++]=wt,G[tt++]=_t,G[tt++]=P,G[tt++]=255}--j}}}function cw(e,t,A,n){for(var r=e[t++],i=1<>=a,c-=a,v!==i){if(v===s)break;for(var b=vi;)Q=m[Q]>>8,++C;var _=Q;if(d+C+(b!==v?1:0)>n)return void sA.log("Warning, gif stream longer than expected.");A[d++]=_;var H=d+=C;for(b!==v&&(A[d++]=_),Q=b;C--;)Q=m[Q],A[--H]=255&Q,Q>>=8;B!==null&&o<4096&&(m[o++]=B<<8|_,o>=l+1&&a<12&&(++a,l=l<<1|1)),B=v}else o=s+1,l=(1<<(a=r+1))-1,B=null}return d!==n&&sA.log("Warning, gif stream shorter than expected."),A}/** * @license Copyright (c) 2008, Adobe Systems Incorporated All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Adobe Systems Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */function Jg(e){var t,A,n,r,i,s=Math.floor,o=new Array(64),a=new Array(64),l=new Array(64),c=new Array(64),u=new Array(65535),d=new Array(65535),f=new Array(64),m=new Array(64),B=[],v=0,b=7,C=new Array(64),Q=new Array(64),_=new Array(64),H=new Array(256),W=new Array(2048),R=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],O=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],F=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],G=[0,1,2,3,4,5,6,7,8,9,10,11],q=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ft=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function lt(U,N){for(var tt=0,et=0,At=new Array,z=1;z<=16;z++){for(var nt=1;nt<=U[z];nt++)At[N[et]]=[],At[N[et]][0]=tt,At[N[et]][1]=z,et++,tt++;tt*=2}return At}function ct(U){for(var N=U[0],tt=U[1]-1;tt>=0;)N&1<>8&255),at(255&U)}function Z(U,N,tt,et,At){for(var z,nt=At[0],ot=At[240],wt=function(mt,Ft){var bt,Mt,It,Pt,Kt,Gt,ee,Yt,Wt,oe,Xt=0;for(Wt=0;Wt<8;++Wt){bt=mt[Xt],Mt=mt[Xt+1],It=mt[Xt+2],Pt=mt[Xt+3],Kt=mt[Xt+4],Gt=mt[Xt+5],ee=mt[Xt+6];var Ke=bt+(Yt=mt[Xt+7]),Le=bt-Yt,Ee=Mt+ee,fe=Mt-ee,Me=It+Gt,le=It-Gt,qe=Pt+Kt,pe=Pt-Kt,xe=Ke+qe,wA=Ke-qe,ke=Ee+Me,he=Ee-Me;mt[Xt]=xe+ke,mt[Xt+4]=xe-ke;var je=.707106781*(he+wA);mt[Xt+2]=wA+je,mt[Xt+6]=wA-je;var Zs=.382683433*((xe=pe+le)-(he=fe+Le)),hn=.5411961*xe+Zs,Ci=1.306562965*he+Zs,Wr=.707106781*(ke=le+fe),de=Le+Wr,xi=Le-Wr;mt[Xt+5]=xi+hn,mt[Xt+3]=xi-hn,mt[Xt+1]=de+Ci,mt[Xt+7]=de-Ci,Xt+=8}for(Xt=0,Wt=0;Wt<8;++Wt){bt=mt[Xt],Mt=mt[Xt+8],It=mt[Xt+16],Pt=mt[Xt+24],Kt=mt[Xt+32],Gt=mt[Xt+40],ee=mt[Xt+48];var Fi=bt+(Yt=mt[Xt+56]),fr=bt-Yt,hr=Mt+ee,_A=Mt-ee,tn=It+Gt,rn=It-Gt,to=Pt+Kt,ls=Pt-Kt,Ur=Fi+to,zr=Fi-to,Qr=hr+tn,Er=hr-tn;mt[Xt]=Ur+Qr,mt[Xt+32]=Ur-Qr;var dr=.707106781*(Er+zr);mt[Xt+16]=zr+dr,mt[Xt+48]=zr-dr;var eo=.382683433*((Ur=ls+rn)-(Er=_A+fr)),$r=.5411961*Ur+eo,Ao=1.306562965*Er+eo,Jo=.707106781*(Qr=rn+_A),Zo=fr+Jo,ta=fr-Jo;mt[Xt+40]=ta+$r,mt[Xt+24]=ta-$r,mt[Xt+8]=Zo+Ao,mt[Xt+56]=Zo-Ao,Xt++}for(Wt=0;Wt<64;++Wt)oe=mt[Wt]*Ft[Wt],f[Wt]=oe>0?oe+.5|0:oe-.5|0;return f}(U,N),_t=0;_t<64;++_t)m[R[_t]]=wt[_t];var P=m[0]-tt;tt=m[0],P==0?ct(et[0]):(ct(et[d[z=32767+P]]),ct(u[z]));for(var $=63;$>0&&m[$]==0;)$--;if($==0)return ct(nt),tt;for(var rt,S=1;S<=$;){for(var pt=S;m[S]==0&&S<=$;)++S;var xt=S-pt;if(xt>=16){rt=xt>>4;for(var Et=1;Et<=rt;++Et)ct(ot);xt&=15}z=32767+m[S],ct(At[(xt<<4)+d[z]]),ct(u[z]),S++}return $!=63&&ct(nt),tt}function j(U){U=Math.min(Math.max(U,1),100),i!=U&&(function(N){for(var tt=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],et=0;et<64;et++){var At=s((tt[et]*N+50)/100);At=Math.min(Math.max(At,1),255),o[R[et]]=At}for(var z=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],nt=0;nt<64;nt++){var ot=s((z[nt]*N+50)/100);ot=Math.min(Math.max(ot,1),255),a[R[nt]]=ot}for(var wt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],_t=0,P=0;P<8;P++)for(var $=0;$<8;$++)l[_t]=1/(o[R[_t]]*wt[P]*wt[$]*8),c[_t]=1/(a[R[_t]]*wt[P]*wt[$]*8),_t++}(U<50?Math.floor(5e3/U):Math.floor(200-2*U)),i=U)}this.encode=function(U,N){N&&j(N),B=new Array,v=0,b=7,st(65496),st(65504),st(16),at(74),at(70),at(73),at(70),at(0),at(1),at(1),at(0),st(1),st(1),at(0),at(0),function(){st(65499),st(132),at(0);for(var Mt=0;Mt<64;Mt++)at(o[Mt]);at(1);for(var It=0;It<64;It++)at(a[It])}(),function(Mt,It){st(65472),st(17),at(8),st(It),st(Mt),at(3),at(1),at(17),at(0),at(2),at(17),at(1),at(3),at(17),at(1)}(U.width,U.height),function(){st(65476),st(418),at(0);for(var Mt=0;Mt<16;Mt++)at(O[Mt+1]);for(var It=0;It<=11;It++)at(k[It]);at(16);for(var Pt=0;Pt<16;Pt++)at(V[Pt+1]);for(var Kt=0;Kt<=161;Kt++)at(F[Kt]);at(1);for(var Gt=0;Gt<16;Gt++)at(L[Gt+1]);for(var ee=0;ee<=11;ee++)at(G[ee]);at(17);for(var Yt=0;Yt<16;Yt++)at(q[Yt+1]);for(var Wt=0;Wt<=161;Wt++)at(ft[Wt])}(),st(65498),st(12),at(3),at(1),at(0),at(2),at(17),at(3),at(17),at(0),at(63),at(0);var tt=0,et=0,At=0;v=0,b=7,this.encode.displayName="_encode_";for(var z,nt,ot,wt,_t,P,$,rt,S,pt=U.data,xt=U.width,Et=U.height,mt=4*xt,Ft=0;Ft>3)*mt+($=4*(7&S)),Ft+rt>=Et&&(P-=mt*(Ft+1+rt-Et)),z+$>=mt&&(P-=z+$-mt+4),nt=pt[P++],ot=pt[P++],wt=pt[P++],C[S]=(W[nt]+W[ot+256|0]+W[wt+512|0]>>16)-128,Q[S]=(W[nt+768|0]+W[ot+1024|0]+W[wt+1280|0]>>16)-128,_[S]=(W[nt+1280|0]+W[ot+1536|0]+W[wt+1792|0]>>16)-128;tt=Z(C,l,tt,t,n),et=Z(Q,c,et,A,r),At=Z(_,c,At,A,r),z+=32}Ft+=8}if(b>=0){var bt=[];bt[1]=b+1,bt[0]=(1<L;L++)if(k[V+L]!=F.charCodeAt(L))return!0;return!1}function n(k,V,F,L,G){for(var q=0;qq+1?[]:new V),!(ft.length>>0;h&y;)y>>>=1;return y?(h&y-1)+y:h}function F(h,g,y,x,I){t(!(x%y));do h[g+(x-=y)]=I;while(0=I),512>=I)var D=i(512);else if((D=i(I))==null)return 0;return function(M,T,K,Y,ut,Ct){var J,dt,vt=T,Qt=1<J;++J){if(yt[J]>1<(Ie-=yt[J]))return 0;for(;0=J;++J,ut<<=1){if(Jt+=Ie<<=1,0>(Ie-=yt[J]))return 0;for(;0Ot&&!(0>=(Lt-=yt[Ot]));)++Ot,Lt<<=1;Qt+=ne=1<<(Lt=Ot-K),M[T+(Ot=se&Ht)].g=Lt+K,M[T+Ot].value=vt-T-Ot}Y.g=J-K,Y.value=Ct[dt++],F(M,vt+(se>>K),ut,ne,Y),se=V(se,J)}}return Jt!=2*St[15]-1?0:Qt}(h,g,y,x,I,D)}function G(){this.value=this.g=0}function q(){this.value=this.g=0}function ft(){this.G=s(5,G),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(ha,q)}function lt(h,g,y,x){t(h!=null),t(g!=null),t(2147483648>x),h.Ca=254,h.I=0,h.b=-8,h.Ka=0,h.oa=g,h.pa=y,h.Jd=g,h.Yc=y+x,h.Zc=4<=x?y+x-4+1:y,nt(h)}function ct(h,g){for(var y=0;0x),h.Sb=x,h.Ra=0,h.u=0,h.h=0,4>>=8,h.Ra+=h.oa[h.pa+h.bb]<>>0,++h.bb,h.u-=8;et(h)&&(h.h=1,h.u=0)}function j(h,g){if(t(0<=g),!h.h&&g<=yl){var y=tt(h)&fo[g];return h.u+=g,Z(h),y}return h.h=1,h.u=0}function U(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function tt(h){return h.Ra>>>(h.u&kn-1)>>>0}function et(h){return t(h.bb<=h.Sb),h.h||h.bb==h.Sb&&h.u>kn}function At(h,g){h.u=g,h.h=et(h)}function z(h){h.u>=Vn&&(t(h.u>=Vn),Z(h))}function nt(h){t(h!=null&&h.oa!=null),h.pa>>0,h.b+=8):(t(h!=null&&h.oa!=null),h.pah.b&&nt(h);var x=h.b,I=y*g>>>8,D=(h.I>>>x>I)+0;for(D?(y-=I,h.I-=I+1<>>0):y=I+1,x=y,I=0;256<=x;)I+=8,x>>=8;return x=7^I+da[x],h.b-=x,h.Ca=(y<>24&255,h[g+1]=y>>16&255,h[g+2]=y>>8&255,h[g+3]=255&y}function P(h,g){return h[g+0]|h[g+1]<<8}function $(h,g){return P(h,g)|h[g+2]<<16}function rt(h,g){return P(h,g)|P(h,g+2)<<16}function S(h,g){var y=1<=I||0>=D?0:(y[0]=I,x[0]=D,1)}function mt(h,g){return h+(1<>>g}function Ft(h,g){return((4278255360&h)+(4278255360&g)>>>0&4278255360)+((16711935&h)+(16711935&g)>>>0&16711935)>>>0}function bt(h,g){k[g]=function(y,x,I,D,M,T,K){var Y;for(Y=0;Y>>1)+(h&g)>>>0}function Pt(h){return 0<=h&&256>h?h:0>h?0:255>1))}function Gt(h,g,y){return Math.abs(g-y)-Math.abs(h-y)}function ee(h,g,y,x,I,D,M){for(x=D[M-1],y=0;y>8&255,K=16711935&(K=(K=16711935&M)+((T<<16)+T));x[I+D]=(4278255360&M)+K>>>0}}function Wt(h,g){g.jd=255&h,g.hd=h>>8&255,g.ud=h>>16&255}function oe(h,g,y,x,I,D){var M;for(M=0;M>>8,Y=T,ut=255&(ut=(ut=T>>>16)+((h.jd<<24>>24)*(K<<24>>24)>>>5));Y=255&(Y=(Y+=(h.hd<<24>>24)*(K<<24>>24)>>>5)+((h.ud<<24>>24)*(ut<<24>>24)>>>5)),I[D+M]=(4278255360&T)+(ut<<16)+Y}}function Xt(h,g,y,x,I){k[g]=function(D,M,T,K,Y,ut,Ct,J,dt){for(K=Ct;K>D.b,dt=D.Ea,vt=D.K[0],Qt=D.w;if(8>J)for(D=(1<>=J}else k["VP8LMapColor"+y](K,Y,vt,Qt,ut,Ct,M,T,dt)}}function Ke(h,g,y,x,I){for(y=g+y;g>16&255,x[I++]=D>>8&255,x[I++]=255&D}}function Le(h,g,y,x,I){for(y=g+y;g>16&255,x[I++]=D>>8&255,x[I++]=255&D,x[I++]=D>>24&255}}function Ee(h,g,y,x,I){for(y=g+y;g>16&240|M>>12&15,M=240&M|M>>28&15;x[I++]=D,x[I++]=M}}function fe(h,g,y,x,I){for(y=g+y;g>16&248|M>>13&7,M=M>>5&224|M>>3&31;x[I++]=D,x[I++]=M}}function Me(h,g,y,x,I){for(y=g+y;g>8&255,x[I++]=D>>16&255}}function le(h,g,y,x,I,D){if(D==0)for(y=g+y;g>24|D[1]>>8&65280|D[2]<<8&16711680|D[3]<<24)>>>0),I+=32;else n(x,I,h,g,y)}function qe(h,g){k[g][0]=k[h+"0"],k[g][1]=k[h+"1"],k[g][2]=k[h+"2"],k[g][3]=k[h+"3"],k[g][4]=k[h+"4"],k[g][5]=k[h+"5"],k[g][6]=k[h+"6"],k[g][7]=k[h+"7"],k[g][8]=k[h+"8"],k[g][9]=k[h+"9"],k[g][10]=k[h+"10"],k[g][11]=k[h+"11"],k[g][12]=k[h+"12"],k[g][13]=k[h+"13"],k[g][14]=k[h+"0"],k[g][15]=k[h+"0"]}function pe(h){return h==Md||h==Td||h==_u||h==Od}function xe(){this.eb=[],this.size=this.A=this.fb=0}function wA(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ke(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new xe,this.f.kb=new wA,this.sd=null}function he(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function je(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Zs(h){return alert("todo:WebPSamplerProcessPlane"),h.T}function hn(h,g){var y=h.T,x=g.ba.f.RGBA,I=x.eb,D=x.fb+h.ka*x.A,M=Br[g.ba.S],T=h.y,K=h.O,Y=h.f,ut=h.N,Ct=h.ea,J=h.W,dt=g.cc,vt=g.dc,Qt=g.Mc,yt=g.Nc,St=h.ka,Lt=h.ka+h.T,Ot=h.U,Ht=Ot+1>>1;for(St==0?M(T,K,null,null,Y,ut,Ct,J,Y,ut,Ct,J,I,D,null,null,Ot):(M(g.ec,g.fc,T,K,dt,vt,Qt,yt,Y,ut,Ct,J,I,D-x.A,I,D,Ot),++y);St+2y,I=y==Cu||y==xu||y==Fu||y==Hd||y==12||pe(y);if(g.memory=null,g.Ib=null,g.Jb=null,g.Nd=null,!pr(g.Oa,h,I?11:12))return 0;if(I&&pe(y)&&Si(),h.da)alert("todo:use_scaling");else{if(x){if(g.Ib=Zs,h.Kb){if(y=h.U+1>>1,g.memory=i(h.U+2*y),g.memory==null)return 0;g.ec=g.memory,g.fc=0,g.cc=g.ec,g.dc=g.fc+h.U,g.Mc=g.cc,g.Nc=g.dc+y,g.Ib=hn,Si()}}else alert("todo:EmitYUV");I&&(g.Jb=Ci,x&&FA())}if(x&&!G1){for(h=0;256>h;++h)g4[h]=89858*(h-128)+Qu>>Uu,B4[h]=-22014*(h-128)+Qu,m4[h]=-45773*(h-128),p4[h]=113618*(h-128)+Qu>>Uu;for(h=Ql;h>Uu,w4[h-Ql]=qr(g,255),v4[h-Ql]=qr(g+8>>4,15);G1=1}return 1}function de(h){var g=h.ma,y=h.U,x=h.T;return t(!(1&h.ka)),0>=y||0>=x?0:(y=g.Ib(h,g),g.Jb!=null&&g.Jb(h,g,y),g.Dc+=y,1)}function xi(h){h.ma.memory=null}function Fi(h,g,y,x){return j(h,8)!=47?0:(g[0]=j(h,14)+1,y[0]=j(h,14)+1,x[0]=j(h,1),j(h,3)!=0?0:!h.h)}function fr(h,g){if(4>h)return h+1;var y=h-2>>1;return(2+(1&h)<>4)*h+(8-(15&y)))?y:1;var y}function _A(h,g,y){var x=tt(y),I=h[g+=255&x].g-8;return 0>>0,t(8>=y.g),h.g}function rn(h,g,y){var x=h.xc;return t((g=x==0?0:h.vc[h.md*(y>>x)+(g>>x)])>ne.b)*Jt;QtOt&&(re=Ot),(0,Ir[Te[$A++]>>8&15])(J,dt+ +Se,St,Lt+Se-Ot,re-Se,St,Lt+Se),Se=re}dt+=Ot,Lt+=Ot,++Qt&se||(ne+=Jt)}Ct!=Y.nc&&n(K,T-vt,K,T+(Ct-ut-1)*vt,vt);break;case 1:for(vt=J,yt=dt,Ot=(J=Y.Ea)-(Lt=J&~(St=(dt=1<>Y.b)*Qt;ut=I),0D.o&&(x=D.o),y=x?y=0:(I[0]+=4*D.v,D.ka=y-D.j,D.U=D.va-D.v,D.T=x-y,y=1),y){if(T=T[0],11>(y=h.ca).S){var ut=y.f.RGBA,Ct=(x=y.S,I=D.U,D=D.T,Y=ut.eb,ut.A),J=D;for(ut=ut.fb+h.Ma*ut.A;0x){var I=h.l.width,D=y.ca,M=y.tb+I*x,T=h.V,K=h.Ba+h.c*x,Y=h.gc;t(h.ab==1),t(Y[0].hc==3),Nd(Y[0],x,g,T,K,D,M),zr(y,x,g,D,M,I)}h.C=h.Ma=g}function Er(h,g,y,x,I,D,M){var T=h.$/x,K=h.$%x,Y=h.m,ut=h.s,Ct=y+h.$,J=Ct;I=y+x*I;var dt=y+x*D,vt=280+ut.ua,Qt=h.Pb?T:16777216,yt=0=Qt){var se=Ct-y;t((Qt=h).Pb),Qt.wd=Qt.m,Qt.xd=se,0Ie.g?(At(Ht,Ht.u+Ie.g),se[Jt]=Ie.value,Ht=0):(At(Ht,Ht.u+Ie.g-256),t(256<=Ie.value),Ht=Ie.value),Ht==0&&(Ot=!0)}else Ht=_A(Lt.G[0],Lt.H[0],Y);if(Y.h)break;if(Ot||256>Ht){if(!Ot)if(Lt.nd)g[Ct]=(Lt.qb|Ht<<8)>>>0;else{if(z(Y),Ot=_A(Lt.G[1],Lt.H[1],Y),z(Y),se=_A(Lt.G[2],Lt.H[2],Y),Jt=_A(Lt.G[3],Lt.H[3],Y),Y.h)break;g[Ct]=(Jt<<24|Ot<<16|Ht<<8|se)>>>0}if(Ot=!1,++Ct,++K>=x&&(K=0,++T,M!=null&&T<=D&&!(T%16)&&M(h,T),yt!=null))for(;J>>yt.Mb]=Ht}else if(280>Ht){if(Ht=fr(Ht-256,Y),se=_A(Lt.G[4],Lt.H[4],Y),z(Y),se=hr(x,se=fr(se,Y)),Y.h)break;if(Ct-y=x;)K-=x,++T,M!=null&&T<=D&&!(T%16)&&M(h,T);if(t(Ct<=I),K&St&&(Lt=rn(ut,K,T)),yt!=null)for(;J>>yt.Mb]=Ht}else{if(!(Ht>>yt.Mb]=Ht;Ht=Ct,t(!(Ot>>>(se=yt).Xa)),g[Ht]=se.X[Ot],Ot=!0}Ot||t(Y.h==et(Y))}if(h.Pb&&Y.h&&CtD?D:T),h.a=0,h.$=Ct-y}return 1}return h.a=3,0}function dr(h){t(h!=null),h.vc=null,h.yc=null,h.Ya=null;var g=h.Wa;g!=null&&(g.X=null),h.vb=null,t(h!=null)}function eo(){var h=new Ae;return h==null?null:(h.a=0,h.xb=P1,qe("Predictor","VP8LPredictors"),qe("Predictor","VP8LPredictors_C"),qe("PredictorAdd","VP8LPredictorsAdd"),qe("PredictorAdd","VP8LPredictorsAdd_C"),ga=Yt,go=oe,Cl=Ke,xl=Le,pa=Ee,po=fe,mo=Me,k.VP8LMapColor32b=GA,k.VP8LMapColor8b=ti,h)}function $r(h,g,y,x,I){var D=1,M=[h],T=[g],K=x.m,Y=x.s,ut=null,Ct=0;t:for(;;){if(y)for(;D&&j(K,1);){var J=M,dt=T,vt=x,Qt=1,yt=vt.m,St=vt.gc[vt.ab],Lt=j(yt,2);if(vt.Oc&1<=vt.ab),Lt){case 0:case 1:St.b=j(yt,3)+2,Qt=$r(mt(St.Ea,St.b),mt(St.nc,St.b),0,vt,St.K),St.K=St.K[0];break;case 3:var Ot,Ht=j(yt,8)+1,se=16>ne.b),$A=i(Te);if($A==null)Ot=0;else{var Se=ne.K[0],re=ne.w;for($A[0]=ne.K[0][0],Jt=1;Jt<1*Ie;++Jt)$A[Jt]=Ft(Se[re+Jt],$A[Jt-1]);for(;Jt<4*Te;++Jt)$A[Jt]=0;ne.K[0]=null,ne.K[0]=$A,Ot=1}}Qt=Ot;break;case 2:break;default:t(0)}D=Qt}}if(M=M[0],T=T[0],D&&j(K,1)&&!(D=1<=(Ct=j(K,4))&&11>=Ct)){x.a=3;break t}var jt;if(jt=D)e:{var NA,_e,Pe,pA=x,on=M,Nn=T,UA=Ct,mn=y,Dn=pA.m,qA=pA.s,Re=[null],Xe=1,QA=0,Ye=A4[UA];A:for(;;){if(mn&&j(Dn,1)){var an=j(Dn,3)+2,Lr=mt(on,an),DA=mt(Nn,an),jn=Lr*DA;if(!$r(Lr,DA,0,pA,Re))break A;for(Re=Re[0],qA.xc=an,NA=0;NA>8&65535;Re[NA]=iA,iA>=Xe&&(Xe=iA+1)}}if(Dn.h)break A;for(_e=0;5>_e;++_e){var XA=T1[_e];!_e&&0=Hn),nr=Ar;var Gn=i(QA);if(nr==null||Gn==null||er==null){pA.a=1;break A}var rr=er;for(NA=Pe=0;NA_e;++_e){XA=T1[_e],ir[_e]=rr,kr[_e]=Pe,!_e&&0Nu)break n}else Gd=Nu;for(Il=0;Ilwa)J1[Il++]=wa,wa!=0&&(Z1=wa);else{var I4=wa==16,Am=wa-16,S4=JC[Am],nm=j(bs,YC[Am])+S4;if(Il+nm>Nu)break n;for(var L4=I4?Z1:0;0=_e){var Sl,zd=Gn[0];for(Sl=1;Slzd&&(zd=Gn[Sl]);ln+=zd}}if(uA.nd=Di,uA.Qb=0,Di&&(uA.qb=(ir[3][kr[3]+0].value<<24|ir[1][kr[1]+0].value<<16|ir[2][kr[2]+0].value)>>>0,Bo==0&&256>ir[0][kr[0]+0].value&&(uA.Qb=1,uA.qb+=ir[0][kr[0]+0].value<<8)),uA.jc=!uA.Qb&&6>ln,uA.jc){var Du,Hi=uA;for(Du=0;Du>=tn(Hu,8,Cs),ys>>=tn(Hi.G[1][Hi.H[1]+ys],16,Cs),ys>>=tn(Hi.G[2][Hi.H[2]+ys],0,Cs),tn(Hi.G[3][Hi.H[3]+ys],24,Cs))}}}qA.vc=Re,qA.Wb=Xe,qA.Ya=nr,qA.yc=er,jt=1;break e}jt=0}if(!(D=jt)){x.a=3;break t}if(0x+1?[]:0),!(I.lengthh?0:h>g?g:h}function ea(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function md(){var h=new au;return h!=null&&(h.a=0,h.sc="OK",h.cb=0,h.Xb=0,Ul||(Ul=Aa)),h}function VA(h,g,y){return h.a==0&&(h.a=g,h.sc=y,h.cb=0),0}function lu(h,g,y){return 3<=y&&h[g+0]==157&&h[g+1]==1&&h[g+2]==42}function Xr(h,g){if(h==null)return 0;if(h.a=0,h.sc="OK",g==null)return VA(h,2,"null VP8Io passed to VP8GetHeaders()");var y=g.data,x=g.w,I=g.ha;if(4>I)return VA(h,7,"Truncated header.");var D=y[x+0]|y[x+1]<<8|y[x+2]<<16,M=h.Od;if(M.Rb=!(1&D),M.td=D>>1&7,M.yd=D>>4&1,M.ub=D>>5,3I)return VA(h,7,"cannot parse picture header");if(!lu(y,x,I))return VA(h,3,"Bad code word");T.c=16383&(y[x+4]<<8|y[x+3]),T.Td=y[x+4]>>6,T.i=16383&(y[x+6]<<8|y[x+5]),T.Ud=y[x+6]>>6,x+=7,I-=7,h.za=T.c+15>>4,h.Ub=T.i+15>>4,g.width=T.c,g.height=T.i,g.Da=0,g.j=0,g.v=0,g.va=g.width,g.o=g.height,g.da=0,g.ib=g.width,g.hb=g.height,g.U=g.width,g.T=g.height,r((D=h.Pa).jb,0,255,D.jb.length),t((D=h.Qa)!=null),D.Cb=0,D.Bb=0,D.Fb=1,r(D.Zb,0,0,D.Zb.length),r(D.Lb,0,0,D.Lb)}if(M.ub>I)return VA(h,7,"bad partition length");lt(D=h.m,y,x,M.ub),x+=M.ub,I-=M.ub,M.Rb&&(T.Ld=ot(D),T.Kd=ot(D)),T=h.Qa;var K,Y=h.Pa;if(t(D!=null),t(T!=null),T.Cb=ot(D),T.Cb){if(T.Bb=ot(D),ot(D)){for(T.Fb=ot(D),K=0;4>K;++K)T.Zb[K]=ot(D)?at(D,7):0;for(K=0;4>K;++K)T.Lb[K]=ot(D)?at(D,6):0}if(T.Bb)for(K=0;3>K;++K)Y.jb[K]=ot(D)?ct(D,8):255}else T.Bb=0;if(D.Ka)return VA(h,3,"cannot parse segment header");if((T=h.ed).zd=ot(D),T.Tb=ct(D,6),T.wb=ct(D,3),T.Pc=ot(D),T.Pc&&ot(D)){for(Y=0;4>Y;++Y)ot(D)&&(T.vd[Y]=at(D,6));for(Y=0;4>Y;++Y)ot(D)&&(T.od[Y]=at(D,6))}if(h.L=T.Tb==0?0:T.zd?1:2,D.Ka)return VA(h,3,"cannot parse filter header");var ut=I;if(I=K=x,x=K+ut,T=ut,h.Xb=(1<T&&(Ct=T),lt(h.Jc[+ut],y,K,Ct),K+=Ct,T-=Ct,I+=3}lt(h.Jc[+Y],y,K,T),y=KCt;++Ct){if(ut.Cb){var J=ut.Zb[Ct];ut.Fb||(J+=y)}else{if(0>16,8>dt.Eb[1]&&(dt.Eb[1]=8),dt.Qc[0]=Pd[qr(J+Y,117)],dt.Qc[1]=Rd[qr(J+K,127)],dt.lc=J+K}if(!M.Rb)return VA(h,4,"Not a key frame.");for(ot(D),M=h.Pa,y=0;4>y;++y){for(I=0;8>I;++I)for(x=0;3>x;++x)for(T=0;11>T;++T)Y=wt(D,a4[y][I][x][T])?ct(D,8):s4[y][I][x][T],M.Wc[y][I].Yb[x][T]=Y;for(I=0;17>I;++I)M.Xc[y][I]=M.Wc[y][l4[I]]}return h.kc=ot(D),h.kc&&(h.Bd=ct(D,8)),h.cb=1}function Aa(h,g,y,x,I,D,M){var T=g[I].Yb[y];for(y=0;16>I;++I){if(!wt(h,T[y+0]))return I;for(;!wt(h,T[y+1]);)if(T=g[++I].Yb[0],y=0,I==16)return 16;var K=g[I+1].Yb;if(wt(h,T[y+2])){var Y=h,ut=0;if(wt(Y,(J=T)[(Ct=y)+3]))if(wt(Y,J[Ct+6])){for(T=0,Ct=2*(ut=wt(Y,J[Ct+8]))+(J=wt(Y,J[Ct+9+ut])),ut=0,J=r4[Ct];J[T];++T)ut+=ut+wt(Y,J[T]);ut+=3+(8<(Y=h).b&&nt(Y);var Ct,J=Y.b,dt=(Ct=Y.Ca>>1)-(Y.I>>J)>>31;--Y.b,Y.Ca+=dt,Y.Ca|=1,Y.I-=(Ct+1&dt)<>3),h[g+y+32*x]=-256&I?0>I?0:255:I}function na(h,g,y,x,I,D){Zn(h,g,0,y,x+I),Zn(h,g,1,y,x+D),Zn(h,g,2,y,x-D),Zn(h,g,3,y,x-I)}function _i(h){return(20091*h>>16)+h}function sn(h,g,y,x){var I,D=0,M=i(16);for(I=0;4>I;++I){var T=h[g+0]+h[g+8],K=h[g+0]-h[g+8],Y=(35468*h[g+4]>>16)-_i(h[g+12]),ut=_i(h[g+4])+(35468*h[g+12]>>16);M[D+0]=T+ut,M[D+1]=K+Y,M[D+2]=K-Y,M[D+3]=T-ut,D+=4,g++}for(I=D=0;4>I;++I)T=(h=M[D+0]+4)+M[D+8],K=h-M[D+8],Y=(35468*M[D+4]>>16)-_i(M[D+12]),Zn(y,x,0,0,T+(ut=_i(M[D+4])+(35468*M[D+12]>>16))),Zn(y,x,1,0,K+Y),Zn(y,x,2,0,K-Y),Zn(y,x,3,0,T-ut),D++,x+=32}function cu(h,g,y,x){var I=h[g+0]+4,D=35468*h[g+4]>>16,M=_i(h[g+4]),T=35468*h[g+1]>>16;na(y,x,0,I+M,h=_i(h[g+1]),T),na(y,x,1,I+D,h,T),na(y,x,2,I-D,h,T),na(y,x,3,I-M,h,T)}function Bd(h,g,y,x,I){sn(h,g,y,x),I&&sn(h,g+16,y,x+4)}function wd(h,g,y,x){Li(h,g+0,y,x,1),Li(h,g+32,y,x+128,1)}function vd(h,g,y,x){var I;for(h=h[g+0]+4,I=0;4>I;++I)for(g=0;4>g;++g)Zn(y,x,g,I,h)}function Yr(h,g,y,x){h[g+0]&&pn(h,g+0,y,x),h[g+16]&&pn(h,g+16,y,x+4),h[g+32]&&pn(h,g+32,y,x+128),h[g+48]&&pn(h,g+48,y,x+128+4)}function uu(h,g,y,x){var I,D=i(16);for(I=0;4>I;++I){var M=h[g+0+I]+h[g+12+I],T=h[g+4+I]+h[g+8+I],K=h[g+4+I]-h[g+8+I],Y=h[g+0+I]-h[g+12+I];D[0+I]=M+T,D[8+I]=M-T,D[4+I]=Y+K,D[12+I]=Y-K}for(I=0;4>I;++I)M=(h=D[0+4*I]+3)+D[3+4*I],T=D[1+4*I]+D[2+4*I],K=D[1+4*I]-D[2+4*I],Y=h-D[3+4*I],y[x+0]=M+T>>3,y[x+16]=Y+K>>3,y[x+32]=M-T>>3,y[x+48]=Y-K>>3,x+=64}function ra(h,g,y){var x,I=g-32,D=tr,M=255-h[I-1];for(x=0;xy;++y)n(h,g+32*y,h,g-32,16)}function Cd(h,g){var y;for(y=16;0x;++x)r(g,y+32*x,h,16)}function fu(h,g){var y,x=16;for(y=0;16>y;++y)x+=h[g-1+32*y]+h[g+y-32];cs(x>>5,h,g)}function us(h,g){var y,x=8;for(y=0;16>y;++y)x+=h[g-1+32*y];cs(x>>4,h,g)}function xd(h,g){var y,x=8;for(y=0;16>y;++y)x+=h[g+y-32];cs(x>>4,h,g)}function no(h,g){cs(128,h,g)}function Be(h,g,y){return h+2*g+y+2>>2}function Fd(h,g){var y,x=g-32;for(x=new Uint8Array([Be(h[x-1],h[x+0],h[x+1]),Be(h[x+0],h[x+1],h[x+2]),Be(h[x+1],h[x+2],h[x+3]),Be(h[x+2],h[x+3],h[x+4])]),y=0;4>y;++y)n(h,g+32*y,x,0,x.length)}function _d(h,g){var y=h[g-1],x=h[g-1+32],I=h[g-1+64],D=h[g-1+96];_t(h,g+0,16843009*Be(h[g-1-32],y,x)),_t(h,g+32,16843009*Be(y,x,I)),_t(h,g+64,16843009*Be(x,I,D)),_t(h,g+96,16843009*Be(I,D,D))}function Ud(h,g){var y,x=4;for(y=0;4>y;++y)x+=h[g+y-32]+h[g-1+32*y];for(x>>=3,y=0;4>y;++y)r(h,g+32*y,x,4)}function Qd(h,g){var y=h[g-1+0],x=h[g-1+32],I=h[g-1+64],D=h[g-1-32],M=h[g+0-32],T=h[g+1-32],K=h[g+2-32],Y=h[g+3-32];h[g+0+96]=Be(x,I,h[g-1+96]),h[g+1+96]=h[g+0+64]=Be(y,x,I),h[g+2+96]=h[g+1+64]=h[g+0+32]=Be(D,y,x),h[g+3+96]=h[g+2+64]=h[g+1+32]=h[g+0+0]=Be(M,D,y),h[g+3+64]=h[g+2+32]=h[g+1+0]=Be(T,M,D),h[g+3+32]=h[g+2+0]=Be(K,T,M),h[g+3+0]=Be(Y,K,T)}function Ed(h,g){var y=h[g+1-32],x=h[g+2-32],I=h[g+3-32],D=h[g+4-32],M=h[g+5-32],T=h[g+6-32],K=h[g+7-32];h[g+0+0]=Be(h[g+0-32],y,x),h[g+1+0]=h[g+0+32]=Be(y,x,I),h[g+2+0]=h[g+1+32]=h[g+0+64]=Be(x,I,D),h[g+3+0]=h[g+2+32]=h[g+1+64]=h[g+0+96]=Be(I,D,M),h[g+3+32]=h[g+2+64]=h[g+1+96]=Be(D,M,T),h[g+3+64]=h[g+2+96]=Be(M,T,K),h[g+3+96]=Be(T,K,K)}function Ui(h,g){var y=h[g-1+0],x=h[g-1+32],I=h[g-1+64],D=h[g-1-32],M=h[g+0-32],T=h[g+1-32],K=h[g+2-32],Y=h[g+3-32];h[g+0+0]=h[g+1+64]=D+M+1>>1,h[g+1+0]=h[g+2+64]=M+T+1>>1,h[g+2+0]=h[g+3+64]=T+K+1>>1,h[g+3+0]=K+Y+1>>1,h[g+0+96]=Be(I,x,y),h[g+0+64]=Be(x,y,D),h[g+0+32]=h[g+1+96]=Be(y,D,M),h[g+1+32]=h[g+2+96]=Be(D,M,T),h[g+2+32]=h[g+3+96]=Be(M,T,K),h[g+3+32]=Be(T,K,Y)}function Qi(h,g){var y=h[g+0-32],x=h[g+1-32],I=h[g+2-32],D=h[g+3-32],M=h[g+4-32],T=h[g+5-32],K=h[g+6-32],Y=h[g+7-32];h[g+0+0]=y+x+1>>1,h[g+1+0]=h[g+0+64]=x+I+1>>1,h[g+2+0]=h[g+1+64]=I+D+1>>1,h[g+3+0]=h[g+2+64]=D+M+1>>1,h[g+0+32]=Be(y,x,I),h[g+1+32]=h[g+0+96]=Be(x,I,D),h[g+2+32]=h[g+1+96]=Be(I,D,M),h[g+3+32]=h[g+2+96]=Be(D,M,T),h[g+3+64]=Be(M,T,K),h[g+3+96]=Be(T,K,Y)}function Id(h,g){var y=h[g-1+0],x=h[g-1+32],I=h[g-1+64],D=h[g-1+96];h[g+0+0]=y+x+1>>1,h[g+2+0]=h[g+0+32]=x+I+1>>1,h[g+2+32]=h[g+0+64]=I+D+1>>1,h[g+1+0]=Be(y,x,I),h[g+3+0]=h[g+1+32]=Be(x,I,D),h[g+3+32]=h[g+1+64]=Be(I,D,D),h[g+3+64]=h[g+2+64]=h[g+0+96]=h[g+1+96]=h[g+2+96]=h[g+3+96]=D}function Sd(h,g){var y=h[g-1+0],x=h[g-1+32],I=h[g-1+64],D=h[g-1+96],M=h[g-1-32],T=h[g+0-32],K=h[g+1-32],Y=h[g+2-32];h[g+0+0]=h[g+2+32]=y+M+1>>1,h[g+0+32]=h[g+2+64]=x+y+1>>1,h[g+0+64]=h[g+2+96]=I+x+1>>1,h[g+0+96]=D+I+1>>1,h[g+3+0]=Be(T,K,Y),h[g+2+0]=Be(M,T,K),h[g+1+0]=h[g+3+32]=Be(y,M,T),h[g+1+32]=h[g+3+64]=Be(x,y,M),h[g+1+64]=h[g+3+96]=Be(I,x,y),h[g+1+96]=Be(D,I,x)}function sa(h,g){var y;for(y=0;8>y;++y)n(h,g+32*y,h,g-32,8)}function dl(h,g){var y;for(y=0;8>y;++y)r(h,g,h[g-1],8),g+=32}function Jr(h,g,y){var x;for(x=0;8>x;++x)r(g,y+32*x,h,8)}function Ld(h,g){var y,x=8;for(y=0;8>y;++y)x+=h[g+y-32]+h[g-1+32*y];Jr(x>>4,h,g)}function oa(h,g){var y,x=4;for(y=0;8>y;++y)x+=h[g+y-32];Jr(x>>3,h,g)}function kd(h,g){var y,x=4;for(y=0;8>y;++y)x+=h[g-1+32*y];Jr(x>>3,h,g)}function gl(h,g){Jr(128,h,g)}function fs(h,g,y){var x=h[g-y],I=h[g+0],D=3*(I-x)+Dd[1020+h[g-2*y]-h[g+y]],M=bu[112+(D+4>>3)];h[g-y]=tr[255+x+bu[112+(D+3>>3)]],h[g+0]=tr[255+I-M]}function pl(h,g,y,x){var I=h[g+0],D=h[g+y];return mr[255+h[g-2*y]-h[g-y]]>x||mr[255+D-I]>x}function ro(h,g,y,x){return 4*mr[255+h[g-y]-h[g+0]]+mr[255+h[g-2*y]-h[g+y]]<=x}function ml(h,g,y,x,I){var D=h[g-3*y],M=h[g-2*y],T=h[g-y],K=h[g+0],Y=h[g+y],ut=h[g+2*y],Ct=h[g+3*y];return 4*mr[255+T-K]+mr[255+M-Y]>x?0:mr[255+h[g-4*y]-D]<=I&&mr[255+D-M]<=I&&mr[255+M-T]<=I&&mr[255+Ct-ut]<=I&&mr[255+ut-Y]<=I&&mr[255+Y-K]<=I}function aa(h,g,y,x){var I=2*x+1;for(x=0;16>x;++x)ro(h,g+x,y,I)&&fs(h,g+x,y)}function Bl(h,g,y,x){var I=2*x+1;for(x=0;16>x;++x)ro(h,g+x*y,1,I)&&fs(h,g+x*y,1)}function la(h,g,y,x){var I;for(I=3;0>7,St=18*Lt+63>>7,Lt=9*Lt+63>>7;K[Y-3*ut]=tr[255+K[Y-3*ut]+Lt],K[Y-2*ut]=tr[255+Ct+St],K[Y-ut]=tr[255+J+yt],K[Y+0]=tr[255+dt-yt],K[Y+ut]=tr[255+vt-St],K[Y+2*ut]=tr[255+Qt-Lt]}g+=x}}function Ii(h,g,y,x,I,D,M,T){for(D=2*D+1;0>3)],Qt=bu[112+(Qt+3>>3)],yt=vt+1>>1;K[Y-2*ut]=tr[255+K[Y-2*ut]+yt],K[Y-ut]=tr[255+Ct+Qt],K[Y+0]=tr[255+J-vt],K[Y+ut]=tr[255+dt-yt]}g+=x}}function du(h,g,y,x,I,D){Ei(h,g,y,1,16,x,I,D)}function gu(h,g,y,x,I,D){Ei(h,g,1,y,16,x,I,D)}function pu(h,g,y,x,I,D){var M;for(M=3;0Y?0:255:Y)&255,Y=K,I[D+T]=ut}}function jA(h,g,y,x){var I=g.width,D=g.o;if(t(h!=null&&g!=null),0>y||0>=x||y+x>D)return null;if(!h.Cc){if(h.ga==null){var M;if(h.ga=new te,(M=h.ga==null)||(M=g.width*g.o,t(h.Gb.length==0),h.Gb=i(M),h.Uc=0,h.Gb==null?M=0:(h.mb=h.Gb,h.nb=h.Uc,h.rc=null,M=1),M=!M),!M){M=h.ga;var T=h.Fa,K=h.P,Y=h.qc,ut=h.mb,Ct=h.nb,J=K+1,dt=Y-1,vt=M.l;if(t(T!=null&&ut!=null&&g!=null),ws[0]=null,ws[1]=ve,ws[2]=Fe,ws[3]=Oe,M.ca=ut,M.tb=Ct,M.c=g.width,M.i=g.height,t(0=Y)g=0;else if(M.$a=3&T[K+0],M.Z=T[K+0]>>2&3,M.Lc=T[K+0]>>4&3,K=T[K+0]>>6&3,0>M.$a||1=M.c*M.i;M=!g}if(M)return null;h.ga.Lc!=1?h.Ga=0:x=D-y}t(h.ga!=null),t(y+x<=D);t:{if(g=(T=h.ga).c,D=T.l.o,T.$a==0){if(J=h.rc,dt=h.Vc,vt=h.Fa,K=h.P+1+y*g,Y=h.mb,ut=h.nb+y*g,t(K<=h.P+h.qc),T.Z!=0)for(t(ws[T.Z]!=null),M=0;M=g)g=1;else if(T.ic||FA(),T.ic){T=M.V,J=M.Ba,dt=M.c;var Qt=M.i,yt=(vt=1,K=M.$/dt,Y=M.$%dt,ut=M.m,Ct=M.s,M.$),St=dt*Qt,Lt=dt*g,Ot=Ct.wc,Ht=yt(Qt=_A(Ht.G[0],Ht.H[0],ut)))T[J+yt]=Qt,++yt,++Y>=dt&&(Y=0,++K<=g&&!(K%16)&&Qr(M,K));else{if(!(280>Qt)){vt=0;break e}Qt=fr(Qt-256,ut);var se,Jt=_A(Ht.G[4],Ht.H[4],ut);if(z(ut),!(yt>=(Jt=hr(dt,Jt=fr(Jt,ut)))&&St-yt>=Qt)){vt=0;break e}for(se=0;se=dt;)Y-=dt,++K<=g&&!(K%16)&&Qr(M,K);ytg?g:K);break e}!vt||ut.h&&yt=D&&(h.Cc=1),x=1}if(!x)return null;if(h.Cc&&((x=h.ga)!=null&&(x.mc=null),h.ga=null,0>23,T[K+4*M+1]=T[K+4*M+1]*Ct>>23,T[K+4*M+2]=T[K+4*M+2]*Ct>>23)}g+=D}}function eA(h,g,y,x,I){for(;0>4)*K>>16;h[g+2*D+0]=(240&M|M>>4)*K>>16&240|(15&M|M<<4)*K>>16>>4&15,h[g+2*D+1]=240&Y|T}g+=I}}function gA(h,g,y,x,I,D,M,T){var K,Y,ut=255;for(Y=0;Y>8}function FA(){_l=rA,Q1=eA,E1=gA,I1=xA}function dn(h,g,y){k[h]=function(x,I,D,M,T,K,Y,ut,Ct,J,dt,vt,Qt,yt,St,Lt,Ot){var Ht,se=Ot-1>>1,Jt=T[K+0]|Y[ut+0]<<16,Ie=Ct[J+0]|dt[vt+0]<<16;t(x!=null);var ne=3*Jt+Ie+131074>>2;for(g(x[I+0],255&ne,ne>>16,Qt,yt),D!=null&&(ne=3*Ie+Jt+131074>>2,g(D[M+0],255&ne,ne>>16,St,Lt)),Ht=1;Ht<=se;++Ht){var Te=T[K+Ht]|Y[ut+Ht]<<16,$A=Ct[J+Ht]|dt[vt+Ht]<<16,Se=Jt+Te+Ie+$A+524296,re=Se+2*(Te+Ie)>>3;ne=re+Jt>>1,Jt=(Se=Se+2*(Jt+$A)>>3)+Te>>1,g(x[I+2*Ht-1],255&ne,ne>>16,Qt,yt+(2*Ht-1)*y),g(x[I+2*Ht-0],255&Jt,Jt>>16,Qt,yt+(2*Ht-0)*y),D!=null&&(ne=Se+Ie>>1,Jt=re+$A>>1,g(D[M+2*Ht-1],255&ne,ne>>16,St,Lt+(2*Ht-1)*y),g(D[M+2*Ht+0],255&Jt,Jt>>16,St,Lt+(2*Ht+0)*y)),Jt=Te,Ie=$A}1&Ot||(ne=3*Jt+Ie+131074>>2,g(x[I+Ot-1],255&ne,ne>>16,Qt,yt+(Ot-1)*y),D!=null&&(ne=3*Ie+Jt+131074>>2,g(D[M+Ot-1],255&ne,ne>>16,St,Lt+(Ot-1)*y)))}}function Si(){Br[yu]=u4,Br[Cu]=R1,Br[H1]=f4,Br[xu]=K1,Br[Fu]=V1,Br[Hd]=j1,Br[M1]=h4,Br[Md]=R1,Br[Td]=K1,Br[_u]=V1,Br[Od]=j1}function wl(h){return h&-16384?0>h?0:255:h>>d4}function so(h,g){return wl((19077*h>>8)+(26149*g>>8)-14234)}function oo(h,g,y){return wl((19077*h>>8)-(6419*g>>8)-(13320*y>>8)+8708)}function hs(h,g){return wl((19077*h>>8)+(33050*g>>8)-17685)}function ao(h,g,y,x,I){x[I+0]=so(h,y),x[I+1]=oo(h,g,y),x[I+2]=hs(h,g)}function ca(h,g,y,x,I){x[I+0]=hs(h,g),x[I+1]=oo(h,g,y),x[I+2]=so(h,y)}function ua(h,g,y,x,I){var D=oo(h,g,y);g=D<<3&224|hs(h,g)>>3,x[I+0]=248&so(h,y)|D>>5,x[I+1]=g}function gn(h,g,y,x,I){var D=240&hs(h,g)|15;x[I+0]=240&so(h,y)|oo(h,g,y)>>4,x[I+1]=D}function lo(h,g,y,x,I){x[I+0]=255,ao(h,g,y,x,I+1)}function co(h,g,y,x,I){ca(h,g,y,x,I),x[I+3]=255}function vl(h,g,y,x,I){ao(h,g,y,x,I),x[I+3]=255}function Zr(h,g,y){k[h]=function(x,I,D,M,T,K,Y,ut,Ct){for(var J=ut+(-2&Ct)*y;ut!=J;)g(x[I+0],D[M+0],T[K+0],Y,ut),g(x[I+1],D[M+0],T[K+0],Y,ut+y),I+=2,++M,++K,ut+=2*y;1&Ct&&g(x[I+0],D[M+0],T[K+0],Y,ut)}}function Ln(h,g,y){return y==0?h==0?g==0?6:5:g==0?4:0:y}function Bu(h,g,y,x,I){switch(h>>>30){case 3:Li(g,y,x,I,0);break;case 2:ms(g,y,x,I);break;case 1:pn(g,y,x,I)}}function fa(h,g){var y,x,I=g.M,D=g.Nb,M=h.oc,T=h.pc+40,K=h.oc,Y=h.pc+584,ut=h.oc,Ct=h.pc+600;for(y=0;16>y;++y)M[T+32*y-1]=129;for(y=0;8>y;++y)K[Y+32*y-1]=129,ut[Ct+32*y-1]=129;for(0y;++y)n(M,T+32*y-4,M,T+32*y+12,4);for(y=-1;8>y;++y)n(K,Y+32*y-4,K,Y+32*y+4,4),n(ut,Ct+32*y-4,ut,Ct+32*y+4,4)}var dt=h.Gd,vt=h.Hd+x,Qt=J.ad,yt=J.Hc;if(0=h.za-1?r(St,Lt,dt[vt].y[15],4):n(St,Lt,dt[vt+1].y,0,4)),y=0;4>y;y++)St[Lt+128+y]=St[Lt+256+y]=St[Lt+384+y]=St[Lt+0+y];for(y=0;16>y;++y,yt<<=2)St=M,Lt=T+W1[y],Sr[J.Ob[y]](St,Lt),Bu(yt,Qt,16*+y,St,Lt)}else if(St=Ln(x,I,J.Ob[0]),Bs[St](M,T),yt!=0)for(y=0;16>y;++y,yt<<=2)Bu(yt,Qt,16*+y,M,T+W1[y]);for(y=J.Gc,St=Ln(x,I,J.Dd),Ni[St](K,Y),Ni[St](ut,Ct),yt=Qt,St=K,Lt=Y,255&(J=0|y)&&(170&J?ma(yt,256,St,Lt):ei(yt,256,St,Lt)),J=ut,yt=Ct,255&(y>>=8)&&(170&y?ma(Qt,320,J,yt):ei(Qt,320,J,yt)),Iy;++y)n(dt,vt+y*h.R,M,T+32*y,16);for(y=0;8>y;++y)n(Qt,J+y*h.B,K,Y+32*y,8),n(yt,St+y*h.B,ut,Ct+32*y,8)}}function wu(h,g,y,x,I,D,M,T,K){var Y=[0],ut=[0],Ct=0,J=K!=null?K.kd:0,dt=K??new gt;if(h==null||12>y)return 7;dt.data=h,dt.w=g,dt.ha=y,g=[g],y=[y],dt.gb=[dt.gb];t:{var vt=g,Qt=y,yt=dt.gb;if(t(h!=null),t(Qt!=null),t(yt!=null),yt[0]=0,12<=Qt[0]&&!A(h,vt[0],"RIFF")){if(A(h,vt[0]+8,"WEBP")){yt=3;break t}var St=rt(h,vt[0]+4);if(12>St||4294967286Qt[0]-8){yt=7;break t}yt[0]=St,vt[0]+=12,Qt[0]-=12}yt=0}if(yt!=0)return yt;for(St=0yt[0])yt=7;else{if(!A(Lt,Qt[0],"VP8X")){if(rt(Lt,Qt[0]+4)!=10){yt=3;break t}if(18>yt[0]){yt=7;break t}var Jt=rt(Lt,Qt[0]+8),Ie=1+$(Lt,Qt[0]+12);if(2147483648<=Ie*(Lt=1+$(Lt,Qt[0]+15))){yt=3;break t}se!=null&&(se[0]=Jt),Ot!=null&&(Ot[0]=Ie),Ht!=null&&(Ht[0]=Lt),Qt[0]+=18,yt[0]-=18,ne[0]=1}yt=0}}if(Ct=Ct[0],vt=vt[0],yt!=0)return yt;if(Qt=!!(2&vt),!St&&Ct)return 3;if(D!=null&&(D[0]=!!(16&vt)),M!=null&&(M[0]=Qt),T!=null&&(T[0]=0),M=Y[0],vt=ut[0],Ct&&Qt&&K==null){yt=0;break}if(4>y){yt=7;break}if(St&&Ct||!St&&!Ct&&!A(h,g[0],"ALPH")){y=[y],dt.na=[dt.na],dt.P=[dt.P],dt.Sa=[dt.Sa];t:{Jt=h,yt=g,St=y;var ne=dt.gb;Ot=dt.na,Ht=dt.P,se=dt.Sa,Ie=22,t(Jt!=null),t(St!=null),Lt=yt[0];var Te=St[0];for(t(Ot!=null),t(se!=null),Ot[0]=null,Ht[0]=null,se[0]=0;;){if(yt[0]=Lt,St[0]=Te,8>Te){yt=7;break t}var $A=rt(Jt,Lt+4);if(4294967286<$A){yt=3;break t}var Se=8+$A+1&-2;if(Ie+=Se,0ne){yt=3;break t}if(!A(Jt,Lt,"VP8 ")||!A(Jt,Lt,"VP8L")){yt=0;break t}if(Te[0]St[0])yt=7;else{if(Lt||Ie){if(ne=rt(ne,Jt+4),12<=Ot&&ne>Ot-12){yt=3;break t}if(J&&ne>St[0]-8){yt=7;break t}Ht[0]=ne,yt[0]+=8,St[0]-=8,se[0]=Ie}else se[0]=5<=St[0]&&ne[Jt+0]==47&&!(ne[Jt+4]>>5),Ht[0]=St[0];yt=0}if(y=y[0],dt.Ja=dt.Ja[0],dt.xa=dt.xa[0],g=g[0],yt!=0)break;if(4294967286y){yt=7;break}T=M,J=vt,Qt=D,h==null||5>y?h=0:5<=y&&h[g+0]==47&&!(h[g+4]>>5)?(St=[0],ne=[0],Ot=[0],st(Ht=new N,h,g,y),Fi(Ht,St,ne,Ot)?(T!=null&&(T[0]=St[0]),J!=null&&(J[0]=ne[0]),Qt!=null&&(Qt[0]=Ot[0]),h=1):h=0):h=0}else{if(10>y){yt=7;break}T=vt,h==null||10>y||!lu(h,g+3,y-3)?h=0:(J=h[g+0]|h[g+1]<<8|h[g+2]<<16,Qt=16383&(h[g+7]<<8|h[g+6]),h=16383&(h[g+9]<<8|h[g+8]),1&J||3<(J>>1&7)||!(J>>4&1)||J>>5>=dt.Ja||!Qt||!h?h=0:(M&&(M[0]=Qt),T&&(T[0]=h),h=1))}if(!h||(M=M[0],vt=vt[0],Ct&&(Y[0]!=M||ut[0]!=vt)))return 3;K!=null&&(K[0]=dt,K.offset=g-K.w,t(4294967286>g-K.w),t(K.offset==K.ha-y));break}return yt==0||yt==7&&Ct&&K==null?(D!=null&&(D[0]|=dt.na!=null&&0y||(D&=-2,M&=-2),0>D||0>M||0>=T||0>=K||D+T>x||M+K>I))return 0;if(g.v=D,g.j=M,g.va=D+T,g.o=M+K,g.U=T,g.T=K,g.da=h!=null&&0h.S){var g=h.f.RGBA;g.fb+=(h.height-1)*g.A,g.A=-g.A}else g=h.f.kb,h=h.height,g.O+=(h-1)*g.fa,g.fa=-g.fa,g.N+=(h-1>>1)*g.Ab,g.Ab=-g.Ab,g.W+=(h-1>>1)*g.Db,g.Db=-g.Db,g.F!=null&&(g.J+=(h-1)*g.lb,g.lb=-g.lb);return 0}function bl(h,g,y,x){if(x==null||0>=h||0>=g)return 2;if(y!=null){if(y.Da){var I=y.cd,D=y.bd,M=-2&y.v,T=-2&y.j;if(0>M||0>T||0>=I||0>=D||M+I>h||T+D>g)return 2;h=I,g=D}if(y.da){if(!Et(h,g,I=[y.ib],D=[y.hb]))return 2;h=I[0],g=D[0]}}x.width=h,x.height=g;t:{var K=x.width,Y=x.height;if(h=x.S,0>=K||0>=Y||!(h>=yu&&13>h))h=2;else{if(0>=x.Rd&&x.sd==null){M=D=I=g=0;var ut=(T=K*z1[h])*Y;if(11>h||(D=(Y+1)/2*(g=(K+1)/2),h==12&&(M=(I=K)*Y)),(Y=i(ut+2*D+M))==null){h=1;break t}x.sd=Y,11>h?((K=x.f.RGBA).eb=Y,K.fb=0,K.A=T,K.size=ut):((K=x.f.kb).y=Y,K.O=0,K.fa=T,K.Fd=ut,K.f=Y,K.N=0+ut,K.Ab=g,K.Cd=D,K.ea=Y,K.W=0+ut+D,K.Db=g,K.Ed=D,h==12&&(K.F=Y,K.J=0+ut+2*D),K.Tc=M,K.lb=I)}if(g=1,I=x.S,D=x.width,M=x.height,I>=yu&&13>I)if(11>I)h=x.f.RGBA,g&=(T=Math.abs(h.A))*(M-1)+D<=h.size,g&=T>=D*z1[I],g&=h.eb!=null;else{h=x.f.kb,T=(D+1)/2,ut=(M+1)/2,K=Math.abs(h.fa),Y=Math.abs(h.Ab);var Ct=Math.abs(h.Db),J=Math.abs(h.lb),dt=J*(M-1)+D;g&=K*(M-1)+D<=h.Fd,g&=Y*(ut-1)+T<=h.Cd,g=(g&=Ct*(ut-1)+T<=h.Ed)&K>=D&Y>=T&Ct>=T,g&=h.y!=null,g&=h.f!=null,g&=h.ea!=null,I==12&&(g&=J>=D,g&=dt<=h.Tc,g&=h.F!=null)}else g=0;h=g?0:2}}return h!=0||y!=null&&y.fd&&(h=uo(x)),h}var ha=64,fo=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],yl=24,kn=32,Vn=8,da=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];bt("Predictor0","PredictorAdd0"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(h){return h},k.Predictor2=function(h,g,y){return g[y+0]},k.Predictor3=function(h,g,y){return g[y+1]},k.Predictor4=function(h,g,y){return g[y-1]},k.Predictor5=function(h,g,y){return It(It(h,g[y+1]),g[y+0])},k.Predictor6=function(h,g,y){return It(h,g[y-1])},k.Predictor7=function(h,g,y){return It(h,g[y+0])},k.Predictor8=function(h,g,y){return It(g[y-1],g[y+0])},k.Predictor9=function(h,g,y){return It(g[y+0],g[y+1])},k.Predictor10=function(h,g,y){return It(It(h,g[y-1]),It(g[y+0],g[y+1]))},k.Predictor11=function(h,g,y){var x=g[y+0];return 0>=Gt(x>>24&255,h>>24&255,(g=g[y-1])>>24&255)+Gt(x>>16&255,h>>16&255,g>>16&255)+Gt(x>>8&255,h>>8&255,g>>8&255)+Gt(255&x,255&h,255&g)?x:h},k.Predictor12=function(h,g,y){var x=g[y+0];return(Pt((h>>24&255)+(x>>24&255)-((g=g[y-1])>>24&255))<<24|Pt((h>>16&255)+(x>>16&255)-(g>>16&255))<<16|Pt((h>>8&255)+(x>>8&255)-(g>>8&255))<<8|Pt((255&h)+(255&x)-(255&g)))>>>0},k.Predictor13=function(h,g,y){var x=g[y-1];return(Kt((h=It(h,g[y+0]))>>24&255,x>>24&255)<<24|Kt(h>>16&255,x>>16&255)<<16|Kt(h>>8&255,x>>8&255)<<8|Kt(255&h,255&x))>>>0};var ds=k.PredictorAdd0;k.PredictorAdd1=ee,bt("Predictor2","PredictorAdd2"),bt("Predictor3","PredictorAdd3"),bt("Predictor4","PredictorAdd4"),bt("Predictor5","PredictorAdd5"),bt("Predictor6","PredictorAdd6"),bt("Predictor7","PredictorAdd7"),bt("Predictor8","PredictorAdd8"),bt("Predictor9","PredictorAdd9"),bt("Predictor10","PredictorAdd10"),bt("Predictor11","PredictorAdd11"),bt("Predictor12","PredictorAdd12"),bt("Predictor13","PredictorAdd13");var gs=k.PredictorAdd2;Xt("ColorIndexInverseTransform","MapARGB","32b",function(h){return h>>8&255},function(h){return h}),Xt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(h){return h},function(h){return h>>8&255});var ga,ho=k.ColorIndexInverseTransform,GA=k.MapARGB,Nd=k.VP8LColorIndexInverseTransformAlpha,ti=k.MapAlpha,Ir=k.VP8LPredictorsAdd=[];Ir.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var go,Cl,xl,pa,po,mo,ps,Li,ms,ma,pn,ei,lA,cA,kA,zA,ki,Fl,Ba,vu,x1,F1,_1,U1,_l,Q1,E1,I1,S1=i(511),L1=i(2041),k1=i(225),N1=i(767),D1=0,Dd=L1,bu=k1,tr=N1,mr=S1,yu=0,Cu=1,H1=2,xu=3,Fu=4,Hd=5,M1=6,Md=7,Td=8,_u=9,Od=10,YC=[2,3,7],JC=[3,3,11],T1=[280,256,256,256,40],ZC=[0,1,1,1,0],t4=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],e4=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],A4=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],n4=8,Pd=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Rd=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Ul=null,r4=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],i4=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],O1=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],s4=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],o4=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],a4=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],l4=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Bs=[],Sr=[],Ni=[],c4=1,P1=2,ws=[],Br=[];dn("UpsampleRgbLinePair",ao,3),dn("UpsampleBgrLinePair",ca,3),dn("UpsampleRgbaLinePair",vl,4),dn("UpsampleBgraLinePair",co,4),dn("UpsampleArgbLinePair",lo,4),dn("UpsampleRgba4444LinePair",gn,2),dn("UpsampleRgb565LinePair",ua,2);var u4=k.UpsampleRgbLinePair,f4=k.UpsampleBgrLinePair,R1=k.UpsampleRgbaLinePair,K1=k.UpsampleBgraLinePair,V1=k.UpsampleArgbLinePair,j1=k.UpsampleRgba4444LinePair,h4=k.UpsampleRgb565LinePair,Uu=16,Qu=1<x.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),x.ca.f.kb.F!=null&&FA()),x.Pb&&0(K=y.Md)?0:100Y;++Y)12>(Ct=I.pb[Y]).lc&&(Ct.ia=K*b4[0>Ct.lc?0:Ct.lc]>>3),ut|=Ct.ia;ut&&(alert("todo:VP8InitRandom"),I.ia=1)}I.Ga=y.Id,100I.Ga&&(I.Ga=0)}(function(J,dt){if(J==null)return 0;if(dt==null)return VA(J,2,"NULL VP8Io parameter in VP8Decode().");if(!J.cb&&!Xr(J,dt))return 0;if(t(J.cb),dt.ac==null||dt.ac(dt)){dt.ob&&(J.L=0);var vt=Eu[J.L];if(J.L==2?(J.yb=0,J.zb=0):(J.yb=dt.v-vt>>4,J.zb=dt.j-vt>>4,0>J.yb&&(J.yb=0),0>J.zb&&(J.zb=0)),J.Va=dt.o+15+vt>>4,J.Hb=dt.va+15+vt>>4,J.Hb>J.za&&(J.Hb=J.za),J.Va>J.Ub&&(J.Va=J.Ub),0vt;++vt){var yt;if(J.Qa.Cb){var St=J.Qa.Lb[vt];J.Qa.Fb||(St+=Qt.Tb)}else St=Qt.Tb;for(yt=0;1>=yt;++yt){var Lt=J.gd[vt][yt],Ot=St;if(Qt.Pc&&(Ot+=Qt.vd[0],yt&&(Ot+=Qt.od[0])),0<(Ot=0>Ot?0:63>2:Ht>>1)>9-Qt.wb&&(Ht=9-Qt.wb),1>Ht&&(Ht=1),Lt.dd=Ht,Lt.tc=2*Ot+Ht,Lt.ld=40<=Ot?2:15<=Ot?1:0}else Lt.tc=0;Lt.La=yt}}}vt=0}else VA(J,6,"Frame setup failed"),vt=J.a;if(vt=vt==0){if(vt){J.$c=0,0J.Vb){if(J.Vb=0,J.Ec=i(Lt),J.Fc=0,J.Ec==null){vt=VA(J,1,"no memory during frame initialization.");break e}J.Vb=Lt}Lt=J.Ec,Ot=J.Fc,J.Ac=Lt,J.Bc=Ot,Ot+=Qt,J.Gd=s(se,ou),J.Hd=0,J.rb=s(Jt+1,cl),J.sb=1,J.wa=Ie?s(Ie,gr):null,J.Y=0,J.D.Nb=0,J.D.wa=J.wa,J.D.Y=J.Y,0=vt;++vt)S1[255+vt]=0>vt?-vt:vt;for(vt=-1020;1020>=vt;++vt)L1[1020+vt]=-128>vt?-128:127=vt;++vt)k1[112+vt]=-16>vt?-16:15=vt;++vt)N1[255+vt]=0>vt?0:255Pe;++Pe){var qA,Re=Nn[0+Pe];for(qA=0;4>qA;++qA){Re=o4[pA[on+qA]][Re];for(var Xe=O1[wt(_e,Re[0])];0>3;for(Xe=0;256>Xe;Xe+=16)Pe[mn+Xe]=jn}an=1,Lr=on[0]}var iA=15&_e.la,XA=15&Dn.la;for(Xe=0;4>Xe;++Xe){var er=1&XA;for(jn=Ye=0;4>jn;++jn)iA=iA>>1|(er=(DA=Ul(pA,Lr,DA=er+(1&iA),UA.Sc,an,Pe,mn))>an)<<7,Ye=Ye<<2|(3>=4,XA=XA>>1|er<<7,qA=(qA<<8|Ye)>>>0}for(Lr=iA,an=XA>>4,QA=0;4>QA;QA+=2){for(Ye=0,iA=_e.la>>4+QA,XA=Dn.la>>4+QA,Xe=0;2>Xe;++Xe){for(er=1&XA,jn=0;2>jn;++jn)DA=er+(1&iA),iA=iA>>1|(er=0<(DA=Ul(pA,on[2],DA,UA.Qc,0,Pe,mn)))<<3,Ye=Ye<<2|(3>=2,XA=XA>>1|er<<5}Re|=Ye<<4*QA,Lr|=iA<<4<=re.zb&&re.M<=re.Va,re.Aa==0)e:{if(Se.M=re.M,Se.uc=_e,fa(re,Se),NA=1,Se=(Ye=re.D).Nb,_e=(Re=Eu[re.L])*re.R,pA=Re/2*re.B,Xe=16*Se*re.R,jn=8*Se*re.B,on=re.sa,Nn=re.ta-_e+Xe,UA=re.qa,Pe=re.ra-pA+jn,mn=re.Ha,Dn=re.Ia-pA+jn,XA=(iA=Ye.M)==0,qA=iA>=re.Va-1,re.Aa==2&&fa(re,Ye),Ye.uc)for(er=(DA=re).D.M,t(DA.D.uc),Ye=DA.yb;Yejt.o&&(iA=jt.o),jt.F=null,jt.J=null,re.Fa!=null&&0>1),jt.W+=re.B*(Re>>1),jt.F!=null&&(jt.J+=jt.width*Re)),Ye>1,jt.W+=jt.v>>1,jt.F!=null&&(jt.J+=jt.v),jt.ka=Ye-jt.j,jt.U=jt.va-jt.v,jt.T=iA-Ye,NA=jt.put(jt))}Se+1!=re.Ic||qA||(n(re.sa,re.ta-_e,on,Nn+16*re.R,_e),n(re.qa,re.ra-pA,UA,Pe+8*re.B,pA),n(re.Ha,re.Ia-pA,mn,Dn+8*re.B,pA))}if(!NA)return VA(Te,6,"Output aborted.")}return 1}(J,dt)),dt.bc!=null&&dt.bc(dt),vt&=1}return vt?(J.cb=0,vt):0})(h,x)||(g=h.a)}}else g=h.a}g==0&&M.Oa!=null&&M.Oa.fd&&(g=uo(M.ba))}M=g}D=M!=0?null:11>D?T.f.RGBA.eb:T.f.kb.y}else D=null;return D};var z1=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(k,V){for(var F="",L=0;L<4;L++)F+=String.fromCharCode(k[V++]);return F}function c(k,V){return k[V+0]|k[V+1]<<8}function u(k,V){return(k[V+0]|k[V+1]<<8|k[V+2]<<16)>>>0}function d(k,V){return(k[V+0]|k[V+1]<<8|k[V+2]<<16|k[V+3]<<24)>>>0}new a;var f=[0],m=[0],B=[],v=new a,b=e,C=function(k,V){var F={},L=0,G=!1,q=0,ft=0;if(F.frames=[],!function(U,N){for(var tt=0;tt<4;tt++)if(U[N+tt]!="RIFF".charCodeAt(tt))return!0;return!1}(k,V)){for(d(k,V+=4),V+=8;V>1&1}lt!="ANMF"&&(V+=at)}return F}}(b,0);C.response=b,C.rgbaoutput=!0,C.dataurl=!1;var Q=C.header?C.header:null,_=C.frames?C.frames:null;if(Q){Q.loop_counter=Q.loop_count,f=[Q.canvas_height],m=[Q.canvas_width];for(var H=0;H<_.length&&_[H].blend!=0;H++);}var W=_[0],R=v.WebPDecodeRGBA(b,W.src_off,W.src_size,m,f);W.rgba=R,W.imgwidth=m[0],W.imgheight=f[0];for(var O=0;O'+A.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+"",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function k8(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,A,n,r,i,s,o,a,l,c=function(U){return U=U||{},this.isStrokeTransparent=U.isStrokeTransparent||!1,this.strokeOpacity=U.strokeOpacity||1,this.strokeStyle=U.strokeStyle||"#000000",this.fillStyle=U.fillStyle||"#000000",this.isFillTransparent=U.isFillTransparent||!1,this.fillOpacity=U.fillOpacity||1,this.font=U.font||"10px sans-serif",this.textBaseline=U.textBaseline||"alphabetic",this.textAlign=U.textAlign||"left",this.lineWidth=U.lineWidth||1,this.lineJoin=U.lineJoin||"miter",this.lineCap=U.lineCap||"butt",this.path=U.path||[],this.transform=U.transform!==void 0?U.transform.clone():new a,this.globalCompositeOperation=U.globalCompositeOperation||"normal",this.globalAlpha=U.globalAlpha||1,this.clip_path=U.clip_path||[],this.currentPoint=U.currentPoint||new s,this.miterLimit=U.miterLimit||10,this.lastPoint=U.lastPoint||new s,this.lineDashOffset=U.lineDashOffset||0,this.lineDash=U.lineDash||[],this.margin=U.margin||[0,0,0,0],this.prevPageLastElemOffset=U.prevPageLastElemOffset||0,this.ignoreClearRect=typeof U.ignoreClearRect!="boolean"||U.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new u(this),t=this.internal.f2,A=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,r=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,s=this.internal.Point,o=this.internal.Rectangle,a=this.internal.Matrix,l=new c}]);var u=function(U){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var N=U;Object.defineProperty(this,"pdf",{get:function(){return N}});var tt=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return tt},set:function(S){tt=!!S}});var et=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return et},set:function(S){et=!!S}});var At=0;Object.defineProperty(this,"posX",{get:function(){return At},set:function(S){isNaN(S)||(At=S)}});var z=0;Object.defineProperty(this,"posY",{get:function(){return z},set:function(S){isNaN(S)||(z=S)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(S){var pt;typeof S=="number"?pt=[S,S,S,S]:((pt=new Array(4))[0]=S[0],pt[1]=S.length>=2?S[1]:pt[0],pt[2]=S.length>=3?S[2]:pt[0],pt[3]=S.length>=4?S[3]:pt[1]),l.margin=pt}});var nt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return nt},set:function(S){nt=S}});var ot=0;Object.defineProperty(this,"lastBreak",{get:function(){return ot},set:function(S){ot=S}});var wt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return wt},set:function(S){wt=S}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(S){S instanceof c&&(l=S)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(S){l.path=S}});var _t=[];Object.defineProperty(this,"ctxStack",{get:function(){return _t},set:function(S){_t=S}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(S){var pt;pt=d(S),this.ctx.fillStyle=pt.style,this.ctx.isFillTransparent=pt.a===0,this.ctx.fillOpacity=pt.a,this.pdf.setFillColor(pt.r,pt.g,pt.b,{a:pt.a}),this.pdf.setTextColor(pt.r,pt.g,pt.b,{a:pt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(S){var pt=d(S);this.ctx.strokeStyle=pt.style,this.ctx.isStrokeTransparent=pt.a===0,this.ctx.strokeOpacity=pt.a,pt.a===0?this.pdf.setDrawColor(255,255,255):(pt.a,this.pdf.setDrawColor(pt.r,pt.g,pt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(S){["butt","round","square"].indexOf(S)!==-1&&(this.ctx.lineCap=S,this.pdf.setLineCap(S))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(S){isNaN(S)||(this.ctx.lineWidth=S,this.pdf.setLineWidth(S))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(S){["bevel","round","miter"].indexOf(S)!==-1&&(this.ctx.lineJoin=S,this.pdf.setLineJoin(S))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(S){isNaN(S)||(this.ctx.miterLimit=S,this.pdf.setMiterLimit(S))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(S){this.ctx.textBaseline=S}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(S){["right","end","center","left","start"].indexOf(S)!==-1&&(this.ctx.textAlign=S)}});var P=null,$=null,rt=null;Object.defineProperty(this,"fontFaces",{get:function(){return rt},set:function(S){P=null,$=null,rt=S}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(S){var pt;if(this.ctx.font=S,(pt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(S))!==null){var xt=pt[1];pt[2];var Et=pt[3],mt=pt[4];pt[5];var Ft=pt[6],bt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(mt)[2];mt=Math.floor(bt==="px"?parseFloat(mt)*this.pdf.internal.scaleFactor:bt==="em"?parseFloat(mt)*this.pdf.getFontSize():parseFloat(mt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(mt);var Mt=function(Xt){var Ke,Le,Ee=[],fe=Xt.trim();if(fe==="")return Xg;if(fe in JB)return[JB[fe]];for(;fe!=="";){switch(Le=null,Ke=(fe=tw(fe)).charAt(0)){case'"':case"'":Le=_8(fe.substring(1),Ke);break;default:Le=U8(fe)}if(Le===null||(Ee.push(Le[0]),(fe=tw(Le[1]))!==""&&fe.charAt(0)!==","))return Xg;fe=fe.replace(/^,/,"")}return Ee}(Ft);if(this.fontFaces){var It=function(Xt,Ke){var Le=Xt.getFontList(),Ee=JSON.stringify(Le);if(P===null||$!==Ee){var fe=function(Me){var le=[];return Object.keys(Me).forEach(function(qe){Me[qe].forEach(function(pe){var xe=null;switch(pe){case"bold":xe={family:qe,weight:"bold"};break;case"italic":xe={family:qe,style:"italic"};break;case"bolditalic":xe={family:qe,weight:"bold",style:"italic"};break;case"":case"normal":xe={family:qe}}xe!==null&&(xe.ref={name:qe,style:pe},le.push(xe))})}),le}(Le);P=function(Me){for(var le={},qe=0;qe=700||xt==="bold")&&(Gt="bold"),xt==="italic"&&(Gt+="italic"),Gt.length===0&&(Gt="normal");for(var ee="",Yt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Wt=0;Wt=2*Math.PI&&(et=0,At=2*Math.PI),this.path.push({type:"arc",x:U,y:N,radius:tt,startAngle:et,endAngle:At,counterclockwise:z})},u.prototype.arcTo=function(U,N,tt,et,At){throw new Error("arcTo not implemented.")},u.prototype.rect=function(U,N,tt,et){if(isNaN(U)||isNaN(N)||isNaN(tt)||isNaN(et))throw sA.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(U,N),this.lineTo(U+tt,N),this.lineTo(U+tt,N+et),this.lineTo(U,N+et),this.lineTo(U,N),this.lineTo(U+tt,N),this.lineTo(U,N)},u.prototype.fillRect=function(U,N,tt,et){if(isNaN(U)||isNaN(N)||isNaN(tt)||isNaN(et))throw sA.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var At={};this.lineCap!=="butt"&&(At.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(At.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(U,N,tt,et),this.fill(),At.hasOwnProperty("lineCap")&&(this.lineCap=At.lineCap),At.hasOwnProperty("lineJoin")&&(this.lineJoin=At.lineJoin)}},u.prototype.strokeRect=function(U,N,tt,et){if(isNaN(U)||isNaN(N)||isNaN(tt)||isNaN(et))throw sA.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(U,N,tt,et),this.stroke())},u.prototype.clearRect=function(U,N,tt,et){if(isNaN(U)||isNaN(N)||isNaN(tt)||isNaN(et))throw sA.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(U,N,tt,et))},u.prototype.save=function(U){U=typeof U!="boolean"||U;for(var N=this.pdf.internal.getCurrentPageInfo().pageNumber,tt=0;tt0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};u.prototype.drawImage=function(U,N,tt,et,At,z,nt,ot,wt){var _t=this.pdf.getImageProperties(U),P=1,$=1,rt=1,S=1;et!==void 0&&ot!==void 0&&(rt=ot/et,S=wt/At,P=_t.width/et*ot/et,$=_t.height/At*wt/At),z===void 0&&(z=N,nt=tt,N=0,tt=0),et!==void 0&&ot===void 0&&(ot=et,wt=At),et===void 0&&ot===void 0&&(ot=_t.width,wt=_t.height);var pt=this.ctx.transform.decompose(),xt=at(pt.rotate.shx),Et=new a,mt=(Et=(Et=(Et=Et.multiply(pt.translate)).multiply(pt.skew)).multiply(pt.scale)).applyToRectangle(new o(z-N*rt,nt-tt*S,et*P,At*$));if(this.autoPaging){for(var Ft,bt=v.call(this,mt),Mt=[],It=0;ItPt||Gtmt||bt0)){for(;wt>=0;wt--)if(At[wt-1].close!==!0&&At[wt-1].begin!==!0){At[wt-1].deltas.push(tt),At[wt-1].abs.push(ot);break}}break;case"bct":tt=[ot.x1-z[nt-1].x,ot.y1-z[nt-1].y,ot.x2-z[nt-1].x,ot.y2-z[nt-1].y,ot.x-z[nt-1].x,ot.y-z[nt-1].y],At[At.length-1].deltas.push(tt);break;case"qct":var _t=z[nt-1].x+2/3*(ot.x1-z[nt-1].x),P=z[nt-1].y+2/3*(ot.y1-z[nt-1].y),$=ot.x+2/3*(ot.x1-ot.x),rt=ot.y+2/3*(ot.y1-ot.y),S=ot.x,pt=ot.y;tt=[_t-z[nt-1].x,P-z[nt-1].y,$-z[nt-1].x,rt-z[nt-1].y,S-z[nt-1].x,pt-z[nt-1].y],At[At.length-1].deltas.push(tt);break;case"arc":At.push({deltas:[],abs:[],arc:!0}),Array.isArray(At[At.length-1].abs)&&At[At.length-1].abs.push(ot)}}et=N?null:U==="stroke"?"stroke":"fill";for(var xt=!1,Et=0;Et=.01&&(et=this.pdf.internal.getFontSize(),this.pdf.setFontSize(et*U.scale),At=this.lineWidth,this.lineWidth=At*U.scale);var oe=this.autoPaging!=="text";if(oe||Wt.y+Wt.h<=It){if(oe||Wt.y>=bt&&Wt.x<=Kt){var Xt=oe?U.text:this.pdf.splitTextToSize(U.text,U.maxWidth||Kt-Wt.x)[0],Ke=C([JSON.parse(JSON.stringify($))],this.posX+this.margin[3],-ee+bt+this.ctx.prevPageLastElemOffset)[0],Le=oe&&(Ft>Et||Ft=.01&&(this.pdf.setFontSize(et),this.lineWidth=At)}}else U.scale>=.01&&(et=this.pdf.internal.getFontSize(),this.pdf.setFontSize(et*U.scale),At=this.lineWidth,this.lineWidth=At*U.scale),this.pdf.text(U.text,wt.x+this.posX,wt.y+this.posY,{angle:U.angle,align:N,renderingMode:U.renderingMode,maxWidth:U.maxWidth}),U.scale>=.01&&(this.pdf.setFontSize(et),this.lineWidth=At)},G=function(U,N,tt,et){tt=tt||0,et=et||0,this.pdf.internal.out(A(U+tt)+" "+n(N+et)+" l")},q=function(U,N,tt){return this.pdf.lines(U,N,tt,null,null)},ft=function(U,N,tt,et,At,z,nt,ot){this.pdf.internal.out([t(r(tt+U)),t(i(et+N)),t(r(At+U)),t(i(z+N)),t(r(nt+U)),t(i(ot+N)),"c"].join(" "))},lt=function(U,N,tt,et){for(var At=2*Math.PI,z=Math.PI/2;N>tt;)N-=At;var nt=Math.abs(tt-N);nt1e-5;){var P=_t+wt*Math.min(nt,z);ot.push(ct.call(this,U,_t,P)),nt-=Math.abs(P-_t),_t=P}return ot},ct=function(U,N,tt){var et=(tt-N)/2,At=U*Math.cos(et),z=U*Math.sin(et),nt=At,ot=-z,wt=nt*nt+ot*ot,_t=wt+nt*At+ot*z,P=4/3*(Math.sqrt(2*wt*_t)-_t)/(nt*z-ot*At),$=nt-P*ot,rt=ot+P*nt,S=$,pt=-rt,xt=et+N,Et=Math.cos(xt),mt=Math.sin(xt);return{x1:U*Math.cos(N),y1:U*Math.sin(N),x2:$*Et-rt*mt,y2:$*mt+rt*Et,x3:S*Et-pt*mt,y3:S*mt+pt*Et,x4:U*Math.cos(tt),y4:U*Math.sin(tt)}},at=function(U){return 180*U/Math.PI},st=function(U,N,tt,et,At,z){var nt=U+.5*(tt-U),ot=N+.5*(et-N),wt=At+.5*(tt-At),_t=z+.5*(et-z),P=Math.min(U,At,nt,wt),$=Math.max(U,At,nt,wt),rt=Math.min(N,z,ot,_t),S=Math.max(N,z,ot,_t);return new o(P,rt,$-P,S-rt)},Z=function(U,N,tt,et,At,z,nt,ot){var wt,_t,P,$,rt,S,pt,xt,Et,mt,Ft,bt,Mt,It,Pt=tt-U,Kt=et-N,Gt=At-tt,ee=z-et,Yt=nt-At,Wt=ot-z;for(_t=0;_t<41;_t++)Et=(pt=(P=U+(wt=_t/40)*Pt)+wt*((rt=tt+wt*Gt)-P))+wt*(rt+wt*(At+wt*Yt-rt)-pt),mt=(xt=($=N+wt*Kt)+wt*((S=et+wt*ee)-$))+wt*(S+wt*(z+wt*Wt-S)-xt),_t==0?(Ft=Et,bt=mt,Mt=Et,It=mt):(Ft=Math.min(Ft,Et),bt=Math.min(bt,mt),Mt=Math.max(Mt,Et),It=Math.max(It,mt));return new o(Math.round(Ft),Math.round(bt),Math.round(Mt-Ft),Math.round(It-bt))},j=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var U,N,tt=(U=this.ctx.lineDash,N=this.ctx.lineDashOffset,JSON.stringify({lineDash:U,lineDashOffset:N}));this.prevLineDash!==tt&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=tt)}}})(ae.API),function(e){var t=function(s){var o,a,l,c,u,d,f,m,B,v;for(a=[],l=0,c=(s+=o="\0\0\0\0".slice(s.length%4||4)).length;c>l;l+=4)(u=(s.charCodeAt(l)<<24)+(s.charCodeAt(l+1)<<16)+(s.charCodeAt(l+2)<<8)+s.charCodeAt(l+3))!==0?(d=(u=((u=((u=((u=(u-(v=u%85))/85)-(B=u%85))/85)-(m=u%85))/85)-(f=u%85))/85)%85,a.push(d+33,f+33,m+33,B+33,v+33)):a.push(122);return function(b,C){for(var Q=C;Q>0;Q--)b.pop()}(a,o.length),String.fromCharCode.apply(String,a)+"~>"},A=function(s){var o,a,l,c,u,d=String,f="length",m=255,B="charCodeAt",v="slice",b="replace";for(s[v](-2),s=s[v](0,-2)[b](/\s/g,"")[b]("z","!!!!!"),l=[],c=0,u=(s+=o="uuuuu"[v](s[f]%5||5))[f];u>c;c+=5)a=52200625*(s[B](c)-33)+614125*(s[B](c+1)-33)+7225*(s[B](c+2)-33)+85*(s[B](c+3)-33)+(s[B](c+4)-33),l.push(m&a>>24,m&a>>16,m&a>>8,m&a);return function(C,Q){for(var _=Q;_>0;_--)C.pop()}(l,o[f]),d.fromCharCode.apply(d,l)},n=function(s){return s.split("").map(function(o){return("0"+o.charCodeAt().toString(16)).slice(-2)}).join("")+">"},r=function(s){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),o.test(s)===!1)return"";for(var a="",l=0;lPromise.resolve().then(()=>rL),void 0)).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function A(){return(we.DOMPurify?Promise.resolve(we.DOMPurify):gc(()=>import("./purify.es-BgtpMKW3.js"),[])).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var n=function(o){var a=Ze(o);return a==="undefined"?"undefined":a==="string"||o instanceof String?"string":a==="number"||o instanceof Number?"number":a==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":a==="object"?"object":"unknown"},r=function(o,a){var l=document.createElement(o);for(var c in a.className&&(l.className=a.className),a.innerHTML&&a.dompurify&&(l.innerHTML=a.dompurify.sanitize(a.innerHTML)),a.style)l.style[c]=a.style[c];return l},i=function o(a,l){for(var c=a.nodeType===3?document.createTextNode(a.nodeValue):a.cloneNode(!1),u=a.firstChild;u;u=u.nextSibling)l!==!0&&u.nodeType===1&&u.nodeName==="SCRIPT"||c.appendChild(o(u,l));return a.nodeType===1&&(a.nodeName==="CANVAS"?(c.width=a.width,c.height=a.height,c.getContext("2d").drawImage(a,0,0)):a.nodeName!=="TEXTAREA"&&a.nodeName!=="SELECT"||(c.value=a.value),c.addEventListener("load",function(){c.scrollTop=a.scrollTop,c.scrollLeft=a.scrollLeft},!0)),c},s=function o(a){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),c=o.convert(Promise.resolve(),l);return(c=c.setProgress(1,o,1,[o])).set(a)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(o,a){return o.__proto__=a||s.prototype,o},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(o,a){return this.then(function(){switch(a=a||function(l){switch(n(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(o),a){case"string":return this.then(A).then(function(l){return this.set({src:r("div",{innerHTML:o,dompurify:l})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},s.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},a=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);a.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=r("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=r("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(a),this.prop.container.firstChild.appendChild(r("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(a){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,a(this.prop.container,l)}).then(function(a){(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(a){var l=this.opt.jsPDF,c=this.opt.fontFaces,u=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,d=Object.assign({async:!0,allowTaint:!0,scale:u,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete d.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var f=0;fB&&(m=v,v=B,B=m);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",B>v&&(m=v,v=B,B=m)}return{width:v,height:B,unit:a,k:u,orientation:o}},e.html=function(o,a){(a=a||{}).callback=a.callback||function(){},a.html2canvas=a.html2canvas||{},a.html2canvas.canvas=a.html2canvas.canvas||this.canvas,a.jsPDF=a.jsPDF||this,a.fontFaces=a.fontFaces?a.fontFaces.map(qg):null;var l=new s(a);return a.worker?l:l.from(o).doCallback()}}(ae.API),ae.API.addJS=function(e){var t,A,n=function(r){for(var i="",s=0;s=0&&r[l]==="\\";l--)a++;i+=a%2==0?"\\"+o:o}else i+=o}return i}(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+n+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&A!==void 0&&this.internal.out("/Names <>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var A=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=A.outline.render().split(/\r\n/),i=0;i> endobj")}var f=A.internal.newObject();for(A.internal.write("<< /Names [ "),i=0;i>","endobj"),t=A.internal.newObject(),A.internal.write("<< /Dests "+f+" 0 R"),A.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var A=this;A.outline.root.children.length>0&&(A.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&A.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var A=this;A.outline={createNamedDestinations:!1,root:{children:[]}},A.outline.add=function(n,r,i){var s={title:r,options:i,children:[]};return n==null&&(n=this.root),n.children.push(s),s},A.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=A,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},A.outline.genIds_r=function(n){n.id=A.internal.newObjectDeferred();for(var r=0;r0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},A.outline.renderItems=function(n){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i0&&this.line("/Prev "+this.makeRef(n.children[i-1])),i0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var o=this.count=this.count_r({count:0},s);if(o>0&&this.line("/Count "+o),s.options&&s.options.pageNumber){var a=A.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var l=0;l> \r endobj\r `},A.outline.count_r=function(n,r){for(var i=0;i1){q=!0,lt=void 0;var At=k*V;ct=new Uint8Array(At);for(var z=new DataView(F.buffer),nt=0;nt536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(A){sA.log("bit decode error:"+A)}},Nr.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),A=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r>7-o&1];this.data[s+4*o]=a.blue,this.data[s+4*o+1]=a.green,this.data[s+4*o+2]=a.red,this.data[s+4*o+3]=255}A!==0&&(this.pos+=4-A)}},Nr.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,A=this.height-1;A>=0;A--){for(var n=this.bottom_up?A:this.height-1-A,r=0;r>4,a=15&i,l=this.palette[o];if(this.data[s]=l.blue,this.data[s+1]=l.green,this.data[s+2]=l.red,this.data[s+3]=255,2*r+1>=this.width)break;l=this.palette[a],this.data[s+4]=l.blue,this.data[s+4+1]=l.green,this.data[s+4+2]=l.red,this.data[s+4+3]=255}t!==0&&(this.pos+=4-t)}},Nr.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var A=this.bottom_up?t:this.height-1-t,n=0;n=0;A--){for(var n=this.bottom_up?A:this.height-1-A,r=0;r>5&t)/t*255|0,a=(i>>10&t)/t*255|0,l=i>>15?255:0,c=n*this.width*4+4*r;this.data[c]=a,this.data[c+1]=o,this.data[c+2]=s,this.data[c+3]=l}this.pos+=e}},Nr.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),A=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>5&A)/A*255|0,l=(s>>11)/t*255|0,c=r*this.width*4+4*i;this.data[c]=l,this.data[c+1]=a,this.data[c+2]=o,this.data[c+3]=255}this.pos+=e}},Nr.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,A=0;A=0;e--)for(var t=this.bottom_up?e:this.height-1-e,A=0;An&&(r.push(e.slice(a,i)),o=0,a=i),o+=t[i],i++;return a!==i&&r.push(e.slice(a,i)),r},nw=function(e,t,A){A||(A={});var n,r,i,s,o,a,l,c=[],u=[c],d=A.textIndent||0,f=0,m=0,B=e.split(" "),v=vf.apply(this,[" ",A])[0];if(a=A.lineIndent===-1?B[0].length+2:A.lineIndent||0){var b=Array(a).join(" "),C=[];B.map(function(_){(_=_.split(/\s*\n/)).length>1?C=C.concat(_.map(function(H,W){return(W&&H.length?` `:"")+H})):C.push(_[0])}),B=C,a=ew.apply(this,[b,A])}for(i=0,s=B.length;it||Q){if(m>t){for(o=Aw.apply(this,[n,r,t-(d+f),t]),c.push(o.shift()),c=[o.pop()];o.length;)u.push([o.shift()]);m=r.slice(n.length-(c[0]?c[0].length:0)).reduce(function(_,H){return _+H},0)}else c=[n];u.push(c),d=m+a,f=v}else c.push(n),d+=f+m,f=v}return l=a?function(_,H){return(H?b:"")+_.join(" ")}:function(_){return _.join(" ")},u.map(l)},Ea.splitTextToSize=function(e,t,A){var n,r=(A=A||{}).fontSize||this.internal.getFontSize(),i=(function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var u=this.internal.getFont(c.fontName,c.fontStyle),d="Unicode";return u.metadata[d]?{widths:u.metadata[d].widths||{0:1},kerning:u.metadata[d].kerning||{}}:{font:u.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,A);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/r;i.textIndent=A.textIndent?1*A.textIndent*this.internal.scaleFactor/r:0,i.lineIndent=A.lineIndent;var o,a,l=[];for(o=0,a=n.length;oimport("./index.es-CvT3YZIj.js"),[])).catch(function(d){return Promise.reject(new Error("Could not load canvg: "+d))}).then(function(d){return d.default?d.default:d}).then(function(d){return d.fromString(l,e,c)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(d){return d.render(c)}).then(function(){u.addImage(a.toDataURL("image/jpeg",1),t,A,n,r,s,o)})},ae.API.putTotalPages=function(e){var t,A=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),A=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),A=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var r=0;r1){for(c=0;c>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=A,this},ae.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",k8),this.internal.events.subscribe("postPutResources",L8)),this},function(e){var t=e.API,A=t.pdfEscape16=function(i,s){for(var o,a=s.metadata.Unicode.widths,l=["","0","00","000","0000"],c=[""],u=0,d=i.length;u> def /CMapName /Adobe-Identity-UCS def /CMapType 2 def 1 begincodespacerange <0000> endcodespacerange`,a=[],u=0,d=(o=Object.keys(i).sort(function(f,m){return f-m})).length;u=100&&(c+=` `+a.length+` beginbfchar `+a.join(` `)+` endbfchar`,a=[]),i[s]!==void 0&&i[s]!==null&&typeof i[s].toString=="function"&&(l=("0000"+i[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),a.push("<"+s+"><"+l+">"));return a.length&&(c+=` `+a.length+` beginbfchar `+a.join(` `)+` endbfchar `),c+`endcmap CMapName currentdict /CMap defineresource pop end end`};t.events.push(["putFont",function(i){(function(s){var o=s.font,a=s.out,l=s.newObject,c=s.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="Identity-H"){for(var u=o.metadata.Unicode.widths,d=o.metadata.subset.encode(o.metadata.glyIdsUsed,1),f="",m=0;m>"),a("endobj");var C=l();a("<<"),a("/Type /Font"),a("/BaseFont /"+Ma(o.fontName)),a("/FontDescriptor "+b+" 0 R"),a("/W "+e.API.PDFObject.convert(u)),a("/CIDToGIDMap /Identity"),a("/DW 1000"),a("/Subtype /CIDFontType2"),a("/CIDSystemInfo"),a("<<"),a("/Supplement 0"),a("/Registry (Adobe)"),a("/Ordering ("+o.encoding+")"),a(">>"),a(">>"),a("endobj"),o.objectNumber=l(),a("<<"),a("/Type /Font"),a("/Subtype /Type0"),a("/ToUnicode "+v+" 0 R"),a("/BaseFont /"+Ma(o.fontName)),a("/Encoding /"+o.encoding),a("/DescendantFonts ["+C+" 0 R]"),a(">>"),a("endobj"),o.isAlreadyPutted=!0}})(i)}]),t.events.push(["putFont",function(i){(function(s){var o=s.font,a=s.out,l=s.newObject,c=s.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="WinAnsiEncoding"){for(var u=o.metadata.rawData,d="",f=0;f>"),a("endobj"),o.objectNumber=l();for(var b=0;b>"),a("endobj"),o.isAlreadyPutted=!0}})(i)}]);var r=function(i){var s,o=i.text||"",a=i.x,l=i.y,c=i.options||{},u=i.mutex||{},d=u.pdfEscape,f=u.activeFontKey,m=u.fonts,B=f,v="",b=0,C="",Q=m[B].encoding;if(m[B].encoding!=="Identity-H")return{text:o,x:a,y:l,options:c,mutex:u};for(C=o,B=f,Array.isArray(o)&&(C=o[0]),b=0;b","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],b=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),C=!1,Q=0;this.__bidiEngine__={};var _=function(F){var L=F.charCodeAt(),G=L>>8,q=B[G];return q!==void 0?u[256*q+(255&L)]:G===252||G===253?"AL":b.test(G)?"L":G===8?"R":"N"},H=function(F){for(var L,G=0;G=L.length||(ft=G[q-1])!=="EN"&&ft!=="AN"||(lt=L[q+1])!=="EN"&<!=="AN"?st="N":C&&(lt="AN"),st=lt===ft?lt:"N";break;case"ES":st=(ft=q>0?G[q-1]:"B")==="EN"&&q+10&&G[q-1]==="EN"){st="EN";break}if(C){st="N";break}for(ct=q+1,at=L.length;ct=1425&&Z<=2303||Z===64286;if(ft=L[ct],j&&(ft==="R"||ft==="AL")){st="R";break}}}st=q<1||(ft=L[q-1])==="B"?"N":G[q-1];break;case"B":C=!1,r=!0,st=Q;break;case"S":i=!0,st="N"}return st},R=function(F,L,G){var q=F.split("");return G&&O(q,G,{hiLevel:Q}),q.reverse(),L&&L.reverse(),q.join("")},O=function(F,L,G){var q,ft,lt,ct,at,st=-1,Z=F.length,j=0,U=[],N=Q?f:d,tt=[];for(C=!1,r=!1,i=!1,ft=0;ft0)if(q===16){for(ft=st;ft-1){for(ft=st;ft=0&&et[ot]==="WS";ot--)At[ot]=Q}}(tt,L,Z)},k=function(F,L,G,q,ft){if(!(ft.hiLevel=F){for(at=j+1;at=F;)at++;for(st=j,ct=at-1;st=0&&(lt[Z]=v[st+1])}(q,G,ft),k(2,q,L,G,ft),k(1,q,L,G,ft),q.join("")};return this.__bidiEngine__.doBidiReorder=function(F,L,G){if(function(ft,lt){if(lt)for(var ct=0;ct>16)&&(A=-(1+(65535^A))),this.italicAngle=+(A+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var A;return((A=this.cmap.unicode)!=null?A.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var A;return A=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*A},e.prototype.widthOfString=function(t,A,n){var r,i,s,o;for(s=0,i=0,o=(t=""+t).length;0<=o?io;i=0<=o?++i:--i)r=t.charCodeAt(i),s+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/A)||0;return s*(A/1e3)},e.prototype.lineHeight=function(t,A){var n;return A==null&&(A=!1),n=A?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e}();var Gr,$s=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var A,n;for(n=[],A=0;0<=t?At;A=0<=t?++A:--A)n[A]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var A,n,r;for(r=[],A=0,n=t.length;0<=n?An;A=0<=n?++A:--A)r.push(this.writeByte(t.charCodeAt(A)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,A,n,r,i,s,o,a;return t=this.readByte(),A=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),s=this.readByte(),o=this.readByte(),a=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^A)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^s)+256*(255^o)+(255^a)+1):72057594037927940*t+281474976710656*A+1099511627776*n+4294967296*r+16777216*i+65536*s+256*o+a},e.prototype.writeLongLong=function(t){var A,n;return A=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(A>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var A,n;for(A=[],n=0;0<=t?nt;n=0<=t?++n:--n)A.push(this.readByte());return A},e.prototype.write=function(t){var A,n,r,i;for(i=[],n=0,r=t.length;ni;r=0<=i?++r:--r)n={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(A){var n,r,i,s,o,a,l,c,u,d,f,m,B;for(B in f=Object.keys(A).length,a=Math.log(2),u=16*Math.floor(Math.log(f)/a),s=Math.floor(u/a),c=16*f-u,(r=new $s).writeInt(this.scalarType),r.writeShort(f),r.writeShort(u),r.writeShort(s),r.writeShort(c),i=16*f,l=r.pos+i,o=null,m=[],A)for(d=A[B],r.writeString(B),r.writeInt(e(d)),r.writeInt(l),r.writeInt(d.length),m=m.concat(d),B==="head"&&(o=l),l+=d.length;l%4;)m.push(0),l++;return r.write(m),n=2981146554-e(r.data),r.pos=o+8,r.writeUInt32(n),r.data},e=function(A){var n,r,i,s;for(A=Zy.call(A);A.length%4;)A.push(0);for(i=new $s(A),r=0,n=0,s=A.length;nd;a=0<=d?++_:--_)H.push(t.readUInt16());return H}(),t.pos+=2,B=function(){var _,H;for(H=[],a=_=0;0<=d?_d;a=0<=d?++_:--_)H.push(t.readUInt16());return H}(),l=function(){var _,H;for(H=[],a=_=0;0<=d?_d;a=0<=d?++_:--_)H.push(t.readUInt16());return H}(),c=function(){var _,H;for(H=[],a=_=0;0<=d?_d;a=0<=d?++_:--_)H.push(t.readUInt16());return H}(),r=(this.length-t.pos+this.offset)/2,o=function(){var _,H;for(H=[],a=_=0;0<=r?_r;a=0<=r?++_:--_)H.push(t.readUInt16());return H}(),a=b=0,Q=i.length;b=v;n=m<=v?++C:--C)c[a]===0?s=n+l[a]:(s=o[c[a]/2+(n-m)-(d-a)]||0)!==0&&(s+=l[a]),this.codeMap[n]=65535&s}t.pos=u}return e.encode=function(t,A){var n,r,i,s,o,a,l,c,u,d,f,m,B,v,b,C,Q,_,H,W,R,O,k,V,F,L,G,q,ft,lt,ct,at,st,Z,j,U,N,tt,et,At,z,nt,ot,wt,_t,P;switch(q=new $s,s=Object.keys(t).sort(function($,rt){return $-rt}),A){case"macroman":for(B=0,v=function(){var $=[];for(m=0;m<256;++m)$.push(0);return $}(),C={0:0},i={},ft=0,st=s.length;ft=32768)for(a.push(0),W.push(2*(f.length+k-m)),r=at=F;F<=c?at<=c:at>=c;r=F<=c?++at:--at)f.push(n[r].new);else a.push(G-F),W.push(0)}for(q.writeUInt16(3),q.writeUInt16(1),q.writeUInt32(12),q.writeUInt16(4),q.writeUInt16(16+8*k+2*f.length),q.writeUInt16(0),q.writeUInt16(V),q.writeUInt16(O),q.writeUInt16(d),q.writeUInt16(R),z=0,U=u.length;zr;n=0<=r?++n:--n)A=new fw(t,this.offset),this.tables.push(A),A.isUnicode&&this.unicode==null&&(this.unicode=A);return!0},e.encode=function(t,A){var n,r;return A==null&&(A="macroman"),n=fw.encode(t,A),(r=new $s).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),M8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),T8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var A,n;for(n=[],A=0;A<10;++A)n.push(t.readByte());return n}(),this.charRange=function(){var A,n;for(n=[],A=0;A<4;++A)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var A,n;for(n=[],A=0;A<2;A=++A)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),O8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),e.prototype.tag="post",e.prototype.parse=function(t){var A,n,r;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(n=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?in;i=0<=n?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.poso;i=0<=o?++s:--s)a.push(t.readUInt32());return a}).call(this)}},e}(),P8=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},R8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),e.prototype.tag="name",e.prototype.parse=function(t){var A,n,r,i,s,o,a,l,c,u,d;for(t.pos=this.offset,t.readShort(),A=t.readShort(),o=t.readShort(),n=[],i=0;0<=A?iA;i=0<=A?++i:--i)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(a={},i=c=0,u=n.length;co;A=0<=o?++A:--A)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var l,c;for(c=[],A=l=0;0<=r?lr;A=0<=r?++l:--l)c.push(t.readInt16());return c}(),this.widths=(function(){var l,c,u,d;for(d=[],l=0,c=(u=this.metrics).length;lr;A=0<=r?++s:--s)a.push(this.widths.push(n));return a},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),Zy=[].slice,j8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yi(e,Gr),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var A,n,r,i,s,o,a,l,c,u;return t in this.cache?this.cache[t]:(i=this.file.loca,A=this.file.contents,n=i.indexOf(t),(r=i.lengthOf(t))===0?this.cache[t]=null:(A.pos=this.offset+n,s=(o=new $s(A.read(r))).readShort(),l=o.readShort(),u=o.readShort(),a=o.readShort(),c=o.readShort(),this.cache[t]=s===-1?new W8(o,l,u,a,c):new G8(o,s,l,u,a,c),this.cache[t]))},e.prototype.encode=function(t,A,n){var r,i,s,o,a;for(s=[],i=[],o=0,a=A.length;o0&&(r+=a)}for(var l=new Array(4*n.length),c=0;c>8,l[4*c+1]=(16711680&n[c])>>16,l[4*c]=(4278190080&n[c])>>24;return l},e}(),$8=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,A,n,r,i;for(A in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[A],t[A]=r[n];return t},e.prototype.glyphsFor=function(t){var A,n,r,i,s,o,a;for(r={},s=0,o=t.length;s0)for(i in a=this.glyphsFor(A))n=a[i],r[i]=n;return r},e.prototype.encode=function(t,A){var n,r,i,s,o,a,l,c,u,d,f,m,B,v,b;for(r in n=Jy.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(t),f={0:0},b=n.charMap)f[(a=b[r]).old]=a.new;for(m in d=n.maxGlyphID,s)m in f||(f[m]=d++);return c=function(C){var Q,_;for(Q in _={},C)_[C[Q]]=Q;return _}(f),u=Object.keys(c).sort(function(C,Q){return C-Q}),B=function(){var C,Q,_;for(_=[],C=0,Q=u.length;C>"),i.join(` `)}return""+A},t}();const LA=(e,t)=>{const A=e.__vccOpts||e;for(const[n,r]of t)A[n]=r;return A},q8={class:"main-header"},X8={class:"header-left"},Y8={class:"breadcrumb"},J8={class:"print-date"},Z8={class:"header-right no-print"},tk={class:"company-selector-container"},ek={class:"selected-name"},Ak={key:0,class:"company-dropdown"},nk={class:"dropdown-header"},rk={class:"input-box"},ik={class:"company-list"},sk=["onClick"],ok={key:0,class:"empty"},ak={class:"custom-date-picker"},lk={__name:"DashboardHeader",props:{companyName:{type:String,default:"업체를 선택하세요"},companyId:{type:String,default:""},companies:{type:Array,default:()=>[]},reportRound:{type:[String,Number],default:""}},emits:["select-company"],setup(e,{emit:t}){const A=e,n=t,r=ge(!1),i=ge(""),s=new Date,o=`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`,a=ge(o),l=ye(()=>i.value.trim()?A.companies.filter(d=>d.name.toLowerCase().includes(i.value.toLowerCase())):A.companies),c=d=>{n("select-company",d),r.value=!1},u=()=>{window.print()};return(d,f)=>(ht(),Bt("header",q8,[p("div",X8,[p("h1",null,kt(e.companyName)+" - "+kt(e.reportRound?`(${String(e.reportRound).replace(/회차/g,"")}회차) 보고서`:"사업분석 보고서"),1),p("div",Y8,[ie("홈 / 보고서 / "+kt(e.companyName)+" ",1),p("span",J8,"| 기준일: "+kt(a.value),1)])]),p("div",Z8,[p("div",tk,[p("div",{class:"company-selector",onClick:f[0]||(f[0]=m=>r.value=!r.value)},[Vt(qt(dh),{size:18,class:"icon-company"}),p("span",ek,kt(e.companyName||"업체 선택"),1),Vt(qt(Uo),{size:18,class:aA({rotate:r.value})},null,8,["class"])]),r.value?(ht(),Bt("div",Ak,[p("div",nk,[p("span",null,"업체 목록 ("+kt(e.companies.length)+")",1)]),p("div",rk,[Tt(p("input",{"onUpdate:modelValue":f[1]||(f[1]=m=>i.value=m),placeholder:"업체 이름 검색",onClick:f[2]||(f[2]=G0(()=>{},["stop"])),focusable:""},null,512),[[Rt,i.value]])]),p("ul",ik,[(ht(!0),Bt(ce,null,Ue(l.value,m=>(ht(),Bt("li",{key:m.companyId,onClick:B=>c(m)},[Vt(qt(dh),{size:16}),p("span",null,kt(m.name),1)],8,sk))),128)),l.value.length===0?(ht(),Bt("li",ok,"업체가 없습니다")):ue("",!0)])])):ue("",!0)]),p("div",ak,[f[4]||(f[4]=p("label",{for:"report-date"},"기준일:",-1)),Tt(p("input",{type:"date",id:"report-date","onUpdate:modelValue":f[3]||(f[3]=m=>a.value=m),class:"date-input"},null,512),[[Rt,a.value]])]),p("button",{class:"btn btn-primary",onClick:u},[Vt(qt(_U),{size:18}),f[5]||(f[5]=ie(" 인쇄 ",-1))])])]))}},ck=LA(lk,[["__scopeId","data-v-f80370cb"]]),hw="https://kyeongmiapi.daoblock.co.kr",xn={async request(e,t={}){const A=localStorage.getItem("accessToken")||sessionStorage.getItem("accessToken"),n={...t.headers};t.body instanceof FormData||(n["Content-Type"]="application/json"),A&&(n.Authorization=`Bearer ${A}`);const r={...t,headers:n,credentials:"include"};try{const i=e.startsWith("/")?`${hw}${e}`:e;let s=await fetch(i,r);if(s.status===401){const o=await fetch(`${hw}/api/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include"});if(o.ok){const{accessToken:a}=await o.json();return localStorage.getItem("accessToken")?localStorage.setItem("accessToken",a):sessionStorage.setItem("accessToken",a),n.Authorization=`Bearer ${a}`,s=await fetch(i,{...r,headers:n}),s}else return this.handleLogout(),s}return s}catch(i){throw console.error("API Request Error:",i),i}},handleLogout(){localStorage.removeItem("accessToken"),sessionStorage.removeItem("accessToken"),C1.push("/login")},get(e,t={}){return this.request(e,{...t,method:"GET"})},post(e,t,A={}){const n=t instanceof FormData;return this.request(e,{...A,method:"POST",body:n?t:JSON.stringify(t)})},put(e,t,A={}){return this.request(e,{...A,method:"PUT",body:JSON.stringify(t)})},delete(e,t={}){return this.request(e,{...t,method:"DELETE"})}},uk={class:"sidebar"},fk={class:"sidebar-nav"},hk={class:"nav-group"},dk={class:"nav-group"},gk={class:"sidebar-footer"},pk={class:"settings-modal"},mk={class:"modal-header"},Bk={class:"modal-body"},wk={class:"input-group"},vk={class:"input-group"},bk={class:"input-group"},yk={__name:"Sidebar",props:{companies:Array},emits:["select","edit","refresh","changeView","logout"],setup(e,{emit:t}){const A=z0(),n=t,r=ge(!1),i=ge({geminiKey:localStorage.getItem("ai_gemini_key")||"",gptKey:localStorage.getItem("ai_gpt_key")||"",preferredProvider:localStorage.getItem("ai_preferred_provider")||"gemini"}),s=()=>{localStorage.setItem("ai_gemini_key",i.value.geminiKey),localStorage.setItem("ai_gpt_key",i.value.gptKey),localStorage.setItem("ai_preferred_provider",i.value.preferredProvider),r.value=!1,alert("AI 설정이 저장되었습니다.")},o=()=>{A.currentRoute.value.path!=="/ai-chat"&&A.push("/ai-chat")},a=()=>{A.currentRoute.value.path!=="/admin"&&A.push("/admin")};return(l,c)=>(ht(),Bt("aside",uk,[c[27]||(c[27]=p("div",{class:"sidebar-header"},[p("h2",null,"관리 Tool")],-1)),p("nav",fk,[p("div",{class:"nav-group clickable-group",onClick:c[0]||(c[0]=u=>n("changeView","dashboard"))},[p("h3",null,[Vt(qt(bU),{size:14}),c[11]||(c[11]=ie(" 보고서 ",-1))])]),c[16]||(c[16]=p("div",{class:"sidebar-divider"},null,-1)),p("div",hk,[p("h3",null,[Vt(qt(SU),{size:14}),c[12]||(c[12]=ie(" 입금액 상세정리 ",-1))]),p("ul",null,[p("li",{onClick:c[1]||(c[1]=u=>n("changeView","deposit-all"))},[...c[13]||(c[13]=[p("span",{class:"dot"},null,-1),ie(" 년도별 전체 (월별) ",-1)])]),p("li",{onClick:c[2]||(c[2]=u=>n("changeView","deposit-kmong"))},[...c[14]||(c[14]=[p("span",{class:"dot"},null,-1),ie(" 크몽 입금액 ",-1)])])])]),p("div",dk,[p("h3",{onClick:c[3]||(c[3]=u=>n("changeView","company-total"))},[Vt(qt($0),{size:14}),c[15]||(c[15]=ie(" 업체정보 ",-1))])])]),p("div",gk,[p("button",{class:"btn-config",onClick:c[4]||(c[4]=u=>r.value=!0)},[Vt(qt(UU),{size:18}),c[17]||(c[17]=ie(" AI 설정 ",-1))]),p("button",{class:"btn-ai",onClick:o},[Vt(qt(CU),{size:18}),c[18]||(c[18]=ie(" AI 모드 ",-1))]),p("button",{class:"btn-admin",onClick:a},[Vt(qt(QU),{size:18}),c[19]||(c[19]=ie(" 관리자 ",-1))]),p("button",{class:"btn-logout",onClick:c[5]||(c[5]=u=>n("logout"))},[Vt(qt(yU),{size:18}),c[20]||(c[20]=ie(" 로그아웃 ",-1))])]),r.value?(ht(),Bt("div",{key:0,class:"settings-modal-overlay",onClick:c[10]||(c[10]=G0(u=>r.value=!1,["self"]))},[p("div",pk,[p("div",mk,[c[21]||(c[21]=p("h3",null,"AI 연동 설정",-1)),p("button",{class:"btn-close",onClick:c[6]||(c[6]=u=>r.value=!1)},[Vt(qt(LU),{size:20})])]),p("div",Bk,[p("div",wk,[c[23]||(c[23]=p("label",null,"주요 사용 AI",-1)),Tt(p("select",{"onUpdate:modelValue":c[7]||(c[7]=u=>i.value.preferredProvider=u),class:"config-select"},[...c[22]||(c[22]=[p("option",{value:"gemini"},"Google Gemini",-1),p("option",{value:"gpt"},"OpenAI GPT-4",-1)])],512),[[gi,i.value.preferredProvider]])]),p("div",vk,[c[24]||(c[24]=p("label",null,"Gemini API Key",-1)),Tt(p("input",{"onUpdate:modelValue":c[8]||(c[8]=u=>i.value.geminiKey=u),type:"password",placeholder:"AIzaSy..."},null,512),[[Rt,i.value.geminiKey]])]),p("div",bk,[c[25]||(c[25]=p("label",null,"GPT API Key",-1)),Tt(p("input",{"onUpdate:modelValue":c[9]||(c[9]=u=>i.value.gptKey=u),type:"password",placeholder:"sk-..."},null,512),[[Rt,i.value.gptKey]])]),c[26]||(c[26]=p("p",{class:"config-hint"},"* 키를 입력하지 않으면 서버의 기본 키를 사용합니다.",-1))]),p("div",{class:"modal-footer"},[p("button",{class:"btn-save-config",onClick:s},"설정 저장")])])])):ue("",!0)]))}},Ck=LA(yk,[["__scopeId","data-v-0db0a781"]]);/*! * @kurkle/color v0.3.4 * https://github.com/kurkle/color#readme * (c) 2024 Jukka Kurkela * Released under the MIT License */function eu(e){return e+.5|0}const Ts=(e,t,A)=>Math.max(Math.min(e,A),t);function ec(e){return Ts(eu(e*2.55),0,255)}function Gs(e){return Ts(eu(e*255),0,255)}function qi(e){return Ts(eu(e/2.55)/100,0,1)}function dw(e){return Ts(eu(e*100),0,100)}const wr={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},c0=[..."0123456789ABCDEF"],xk=e=>c0[e&15],Fk=e=>c0[(e&240)>>4]+c0[e&15],bf=e=>(e&240)>>4===(e&15),_k=e=>bf(e.r)&&bf(e.g)&&bf(e.b)&&bf(e.a);function Uk(e){var t=e.length,A;return e[0]==="#"&&(t===4||t===5?A={r:255&wr[e[1]]*17,g:255&wr[e[2]]*17,b:255&wr[e[3]]*17,a:t===5?wr[e[4]]*17:255}:(t===7||t===9)&&(A={r:wr[e[1]]<<4|wr[e[2]],g:wr[e[3]]<<4|wr[e[4]],b:wr[e[5]]<<4|wr[e[6]],a:t===9?wr[e[7]]<<4|wr[e[8]]:255})),A}const Qk=(e,t)=>e<255?t(e):"";function Ek(e){var t=_k(e)?xk:Fk;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Qk(e.a,t):void 0}const Ik=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function tC(e,t,A){const n=t*Math.min(A,1-A),r=(i,s=(i+e/30)%12)=>A-n*Math.max(Math.min(s-3,9-s,1),-1);return[r(0),r(8),r(4)]}function Sk(e,t,A){const n=(r,i=(r+e/60)%6)=>A-A*t*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function Lk(e,t,A){const n=tC(e,1,.5);let r;for(t+A>1&&(r=1/(t+A),t*=r,A*=r),r=0;r<3;r++)n[r]*=1-t-A,n[r]+=t;return n}function kk(e,t,A,n,r){return e===r?(t-A)/n+(t.5?c/(2-i-s):c/(i+s),a=kk(A,n,r,c,i),a=a*60+.5),[a|0,l||0,o]}function a1(e,t,A,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,A,n)).map(Gs)}function l1(e,t,A){return a1(tC,e,t,A)}function Nk(e,t,A){return a1(Lk,e,t,A)}function Dk(e,t,A){return a1(Sk,e,t,A)}function eC(e){return(e%360+360)%360}function Hk(e){const t=Ik.exec(e);let A=255,n;if(!t)return;t[5]!==n&&(A=t[6]?ec(+t[5]):Gs(+t[5]));const r=eC(+t[2]),i=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?n=Nk(r,i,s):t[1]==="hsv"?n=Dk(r,i,s):n=l1(r,i,s),{r:n[0],g:n[1],b:n[2],a:A}}function Mk(e,t){var A=o1(e);A[0]=eC(A[0]+t),A=l1(A),e.r=A[0],e.g=A[1],e.b=A[2]}function Tk(e){if(!e)return;const t=o1(e),A=t[0],n=dw(t[1]),r=dw(t[2]);return e.a<255?`hsla(${A}, ${n}%, ${r}%, ${qi(e.a)})`:`hsl(${A}, ${n}%, ${r}%)`}const gw={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"},pw={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Ok(){const e={},t=Object.keys(pw),A=Object.keys(gw);let n,r,i,s,o;for(n=0;n>16&255,i>>8&255,i&255]}return e}let yf;function Pk(e){yf||(yf=Ok(),yf.transparent=[0,0,0,0]);const t=yf[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Rk=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Kk(e){const t=Rk.exec(e);let A=255,n,r,i;if(t){if(t[7]!==n){const s=+t[7];A=t[8]?ec(s):Ts(s*255,0,255)}return n=+t[1],r=+t[3],i=+t[5],n=255&(t[2]?ec(n):Ts(n,0,255)),r=255&(t[4]?ec(r):Ts(r,0,255)),i=255&(t[6]?ec(i):Ts(i,0,255)),{r:n,g:r,b:i,a:A}}}function Vk(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Zg=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ia=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function jk(e,t,A){const n=Ia(qi(e.r)),r=Ia(qi(e.g)),i=Ia(qi(e.b));return{r:Gs(Zg(n+A*(Ia(qi(t.r))-n))),g:Gs(Zg(r+A*(Ia(qi(t.g))-r))),b:Gs(Zg(i+A*(Ia(qi(t.b))-i))),a:e.a+A*(t.a-e.a)}}function Cf(e,t,A){if(e){let n=o1(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*A,t===0?360:1)),n=l1(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function AC(e,t){return e&&Object.assign(t||{},e)}function mw(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Gs(e[3]))):(t=AC(e,{r:0,g:0,b:0,a:1}),t.a=Gs(t.a)),t}function Gk(e){return e.charAt(0)==="r"?Kk(e):Hk(e)}class Rc{constructor(t){if(t instanceof Rc)return t;const A=typeof t;let n;A==="object"?n=mw(t):A==="string"&&(n=Uk(t)||Pk(t)||Gk(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=AC(this._rgb);return t&&(t.a=qi(t.a)),t}set rgb(t){this._rgb=mw(t)}rgbString(){return this._valid?Vk(this._rgb):void 0}hexString(){return this._valid?Ek(this._rgb):void 0}hslString(){return this._valid?Tk(this._rgb):void 0}mix(t,A){if(t){const n=this.rgb,r=t.rgb;let i;const s=A===i?.5:A,o=2*s-1,a=n.a-r.a,l=((o*a===-1?o:(o+a)/(1+o*a))+1)/2;i=1-l,n.r=255&l*n.r+i*r.r+.5,n.g=255&l*n.g+i*r.g+.5,n.b=255&l*n.b+i*r.b+.5,n.a=s*n.a+(1-s)*r.a,this.rgb=n}return this}interpolate(t,A){return t&&(this._rgb=jk(this._rgb,t._rgb,A)),this}clone(){return new Rc(this.rgb)}alpha(t){return this._rgb.a=Gs(t),this}clearer(t){const A=this._rgb;return A.a*=1-t,this}greyscale(){const t=this._rgb,A=eu(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=A,this}opaquer(t){const A=this._rgb;return A.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Cf(this._rgb,2,t),this}darken(t){return Cf(this._rgb,2,-t),this}saturate(t){return Cf(this._rgb,1,t),this}desaturate(t){return Cf(this._rgb,1,-t),this}rotate(t){return Mk(this._rgb,t),this}}/*! * Chart.js v4.5.1 * https://www.chartjs.org * (c) 2025 Chart.js Contributors * Released under the MIT License */function Vi(){}const Wk=(()=>{let e=0;return()=>e++})();function Ne(e){return e==null}function yA(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function He(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function SA(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function ar(e,t){return SA(e)?e:t}function Ce(e,t){return typeof e>"u"?t:e}const zk=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,nC=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function hA(e,t,A){if(e&&typeof e.call=="function")return e.apply(A,t)}function Je(e,t,A,n){let r,i,s;if(yA(e))for(i=e.length,r=0;re,x:e=>e.x,y:e=>e.y};function Xk(e){const t=e.split("."),A=[];let n="";for(const r of t)n+=r,n.endsWith("\\")?n=n.slice(0,-1)+".":(A.push(n),n="");return A}function Yk(e){const t=Xk(e);return A=>{for(const n of t){if(n==="")break;A=A&&A[n]}return A}}function qs(e,t){return(Bw[t]||(Bw[t]=Yk(t)))(e)}function c1(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Vc=e=>typeof e<"u",Xs=e=>typeof e=="function",ww=(e,t)=>{if(e.size!==t.size)return!1;for(const A of e)if(!t.has(A))return!1;return!0};function Jk(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Ve=Math.PI,BA=2*Ve,Zk=BA+Ve,Sh=Number.POSITIVE_INFINITY,tN=Ve/180,RA=Ve/2,yo=Ve/4,vw=Ve*2/3,Os=Math.log10,pi=Math.sign;function xc(e,t,A){return Math.abs(e-t)r-i).pop(),t}function AN(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Al(e){return!AN(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function nN(e,t){const A=Math.round(e);return A-t<=e&&A+t>=e}function iC(e,t,A){let n,r,i;for(n=0,r=e.length;na&&l=Math.min(t,A)-n&&e<=Math.max(t,A)+n}function f1(e,t,A){A=A||(s=>e[s]1;)i=r+n>>1,A(i)?r=i:n=i;return{lo:r,hi:n}}const Zi=(e,t,A,n)=>f1(e,A,n?r=>{const i=e[r][t];return ie[r][t]f1(e,A,n=>e[n][t]>=A);function oN(e,t,A){let n=0,r=e.length;for(;nn&&e[r-1]>A;)r--;return n>0||r{const n="_onData"+c1(A),r=e[A];Object.defineProperty(e,A,{configurable:!0,enumerable:!1,value(...i){const s=r.apply(this,i);return e._chartjs.listeners.forEach(o=>{typeof o[n]=="function"&&o[n](...i)}),s}})})}function Cw(e,t){const A=e._chartjs;if(!A)return;const n=A.listeners,r=n.indexOf(t);r!==-1&&n.splice(r,1),!(n.length>0)&&(oC.forEach(i=>{delete e[i]}),delete e._chartjs)}function aC(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const lC=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function cC(e,t){let A=[],n=!1;return function(...r){A=r,n||(n=!0,lC.call(window,()=>{n=!1,e.apply(t,A)}))}}function lN(e,t){let A;return function(...n){return t?(clearTimeout(A),A=setTimeout(e,t,n)):e.apply(this,n),t}}const h1=e=>e==="start"?"left":e==="end"?"right":"center",Cn=(e,t,A)=>e==="start"?t:e==="end"?A:(t+A)/2,cN=(e,t,A,n)=>e===(n?"left":"right")?A:e==="center"?(t+A)/2:t;function uC(e,t,A){const n=t.length;let r=0,i=n;if(e._sorted){const{iScale:s,vScale:o,_parsed:a}=e,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=s.axis,{min:u,max:d,minDefined:f,maxDefined:m}=s.getUserBounds();if(f){if(r=Math.min(Zi(a,c,u).lo,A?n:Zi(t,c,s.getPixelForValue(u)).lo),l){const B=a.slice(0,r+1).reverse().findIndex(v=>!Ne(v[o.axis]));r-=Math.max(0,B)}r=nn(r,0,n-1)}if(m){let B=Math.max(Zi(a,s.axis,d,!0).hi+1,A?0:Zi(t,c,s.getPixelForValue(d),!0).hi+1);if(l){const v=a.slice(B-1).findIndex(b=>!Ne(b[o.axis]));B+=Math.max(0,v)}i=nn(B,r,n)-r}else i=n-r}return{start:r,count:i}}function fC(e){const{xScale:t,yScale:A,_scaleRanges:n}=e,r={xmin:t.min,xmax:t.max,ymin:A.min,ymax:A.max};if(!n)return e._scaleRanges=r,!0;const i=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==A.min||n.ymax!==A.max;return Object.assign(n,r),i}const xf=e=>e===0||e===1,xw=(e,t,A)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*BA/A)),Fw=(e,t,A)=>Math.pow(2,-10*e)*Math.sin((e-t)*BA/A)+1,Fc={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*RA)+1,easeOutSine:e=>Math.sin(e*RA),easeInOutSine:e=>-.5*(Math.cos(Ve*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>xf(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>xf(e)?e:xw(e,.075,.3),easeOutElastic:e=>xf(e)?e:Fw(e,.075,.3),easeInOutElastic(e){return xf(e)?e:e<.5?.5*xw(e*2,.1125,.45):.5+.5*Fw(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Fc.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Fc.easeInBounce(e*2)*.5:Fc.easeOutBounce(e*2-1)*.5+.5};function d1(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function _w(e){return d1(e)?e:new Rc(e)}function tp(e){return d1(e)?e:new Rc(e).saturate(.5).darken(.1).hexString()}const uN=["x","y","borderWidth","radius","tension"],fN=["color","borderColor","backgroundColor"];function hN(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:fN},numbers:{type:"number",properties:uN}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function dN(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Uw=new Map;function gN(e,t){t=t||{};const A=e+JSON.stringify(t);let n=Uw.get(A);return n||(n=new Intl.NumberFormat(e,t),Uw.set(A,n)),n}function Au(e,t,A){return gN(t,A).format(e)}const hC={values(e){return yA(e)?e:""+e},numeric(e,t,A){if(e===0)return"0";const n=this.chart.options.locale;let r,i=e;if(A.length>1){const l=Math.max(Math.abs(A[0].value),Math.abs(A[A.length-1].value));(l<1e-4||l>1e15)&&(r="scientific"),i=pN(e,A)}const s=Os(Math.abs(i)),o=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),a={notation:r,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(a,this.options.ticks.format),Au(e,n,a)},logarithmic(e,t,A){if(e===0)return"0";const n=A[t].significand||e/Math.pow(10,Math.floor(Os(e)));return[1,2,3,5,10,15].includes(n)||t>.8*A.length?hC.numeric.call(this,e,t,A):""}};function pN(e,t){let A=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(A)>=1&&e!==Math.floor(e)&&(A=e-Math.floor(e)),A}var ld={formatters:hC};function mN(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,A)=>A.lineWidth,tickColor:(t,A)=>A.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ld.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const zo=Object.create(null),f0=Object.create(null);function _c(e,t){if(!t)return e;const A=t.split(".");for(let n=0,r=A.length;nn.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,r)=>tp(r.backgroundColor),this.hoverBorderColor=(n,r)=>tp(r.borderColor),this.hoverColor=(n,r)=>tp(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(A)}set(t,A){return ep(this,t,A)}get(t){return _c(this,t)}describe(t,A){return ep(f0,t,A)}override(t,A){return ep(zo,t,A)}route(t,A,n,r){const i=_c(this,t),s=_c(this,n),o="_"+A;Object.defineProperties(i,{[o]:{value:i[A],writable:!0},[A]:{enumerable:!0,get(){const a=this[o],l=s[r];return He(a)?Object.assign({},l,a):Ce(a,l)},set(a){this[o]=a}}})}apply(t){t.forEach(A=>A(this))}}var CA=new BN({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[hN,dN,mN]);function wN(e){return!e||Ne(e.size)||Ne(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Lh(e,t,A,n,r){let i=t[r];return i||(i=t[r]=e.measureText(r).width,A.push(r)),i>n&&(n=i),n}function vN(e,t,A,n){n=n||{};let r=n.data=n.data||{},i=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(r=n.data={},i=n.garbageCollect=[],n.font=t),e.save(),e.font=t;let s=0;const o=A.length;let a,l,c,u,d;for(a=0;aA.length){for(a=0;a0&&e.stroke()}}function ts(e,t,A){return A=A||.5,!t||e&&e.x>t.left-A&&e.xt.top-A&&e.y0&&i.strokeColor!=="";let a,l;for(e.save(),e.font=r.string,CN(e,i),a=0;a+e||0;function g1(e,t){const A={},n=He(t),r=n?Object.keys(t):t,i=He(e)?n?s=>Ce(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of r)A[s]=EN(i(s));return A}function gC(e){return g1(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ko(e){return g1(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Sn(e){const t=gC(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ZA(e,t){e=e||{},t=t||CA.font;let A=Ce(e.size,t.size);typeof A=="string"&&(A=parseInt(A,10));let n=Ce(e.style,t.style);n&&!(""+n).match(UN)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const r={family:Ce(e.family,t.family),lineHeight:QN(Ce(e.lineHeight,t.lineHeight),A),size:A,style:n,weight:Ce(e.weight,t.weight),string:""};return r.string=wN(r),r}function Ac(e,t,A,n){let r,i,s;for(r=0,i=e.length;rA&&o===0?0:o+a;return{min:s(n,-Math.abs(i)),max:s(r,i)}}function Js(e,t){return Object.assign(Object.create(e),t)}function p1(e,t=[""],A,n,r=()=>e[0]){const i=A||e;typeof n>"u"&&(n=wC("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:n,_getTarget:r,override:o=>p1([o,...e],t,i,n)};return new Proxy(s,{deleteProperty(o,a){return delete o[a],delete o._keys,delete e[0][a],!0},get(o,a){return mC(o,a,()=>TN(a,t,e,o))},getOwnPropertyDescriptor(o,a){return Reflect.getOwnPropertyDescriptor(o._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(o,a){return Iw(o).includes(a)},ownKeys(o){return Iw(o)},set(o,a,l){const c=o._storage||(o._storage=r());return o[a]=c[a]=l,delete o._keys,!0}})}function nl(e,t,A,n){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:A,_stack:new Set,_descriptors:pC(e,n),setContext:i=>nl(e,i,A,n),override:i=>nl(e.override(i),t,A,n)};return new Proxy(r,{deleteProperty(i,s){return delete i[s],delete e[s],!0},get(i,s,o){return mC(i,s,()=>LN(i,s,o))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(i,s,o){return e[s]=o,delete i[s],!0}})}function pC(e,t={scriptable:!0,indexable:!0}){const{_scriptable:A=t.scriptable,_indexable:n=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:A,indexable:n,isScriptable:Xs(A)?A:()=>A,isIndexable:Xs(n)?n:()=>n}}const SN=(e,t)=>e?e+c1(t):t,m1=(e,t)=>He(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function mC(e,t,A){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const n=A();return e[t]=n,n}function LN(e,t,A){const{_proxy:n,_context:r,_subProxy:i,_descriptors:s}=e;let o=n[t];return Xs(o)&&s.isScriptable(t)&&(o=kN(t,o,e,A)),yA(o)&&o.length&&(o=NN(t,o,e,s.isIndexable)),m1(t,o)&&(o=nl(o,r,i&&i[t],s)),o}function kN(e,t,A,n){const{_proxy:r,_context:i,_subProxy:s,_stack:o}=A;if(o.has(e))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+e);o.add(e);let a=t(i,s||n);return o.delete(e),m1(e,a)&&(a=B1(r._scopes,r,e,a)),a}function NN(e,t,A,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:o}=A;if(typeof i.index<"u"&&n(e))return t[i.index%t.length];if(He(t[0])){const a=t,l=r._scopes.filter(c=>c!==a);t=[];for(const c of a){const u=B1(l,r,e,c);t.push(nl(u,i,s&&s[e],o))}}return t}function BC(e,t,A){return Xs(e)?e(t,A):e}const DN=(e,t)=>e===!0?t:typeof e=="string"?qs(t,e):void 0;function HN(e,t,A,n,r){for(const i of t){const s=DN(A,i);if(s){e.add(s);const o=BC(s._fallback,A,r);if(typeof o<"u"&&o!==A&&o!==n)return o}else if(s===!1&&typeof n<"u"&&A!==n)return null}return!1}function B1(e,t,A,n){const r=t._rootScopes,i=BC(t._fallback,A,n),s=[...e,...r],o=new Set;o.add(n);let a=Ew(o,s,A,i||A,n);return a===null||typeof i<"u"&&i!==A&&(a=Ew(o,s,i,a,n),a===null)?!1:p1(Array.from(o),[""],r,i,()=>MN(t,A,n))}function Ew(e,t,A,n,r){for(;A;)A=HN(e,t,A,n,r);return A}function MN(e,t,A){const n=e._getTarget();t in n||(n[t]={});const r=n[t];return yA(r)&&He(A)?A:r||{}}function TN(e,t,A,n){let r;for(const i of t)if(r=wC(SN(i,e),A),typeof r<"u")return m1(e,r)?B1(A,n,e,r):r}function wC(e,t){for(const A of t){if(!A)continue;const n=A[e];if(typeof n<"u")return n}}function Iw(e){let t=e._keys;return t||(t=e._keys=ON(e._scopes)),t}function ON(e){const t=new Set;for(const A of e)for(const n of Object.keys(A).filter(r=>!r.startsWith("_")))t.add(n);return Array.from(t)}function vC(e,t,A,n){const{iScale:r}=e,{key:i="r"}=this._parsing,s=new Array(n);let o,a,l,c;for(o=0,a=n;ote==="x"?"y":"x";function RN(e,t,A,n){const r=e.skip?t:e,i=t,s=A.skip?t:A,o=u0(i,r),a=u0(s,i);let l=o/(o+a),c=a/(o+a);l=isNaN(l)?0:l,c=isNaN(c)?0:c;const u=n*l,d=n*c;return{previous:{x:i.x-u*(s.x-r.x),y:i.y-u*(s.y-r.y)},next:{x:i.x+d*(s.x-r.x),y:i.y+d*(s.y-r.y)}}}function KN(e,t,A){const n=e.length;let r,i,s,o,a,l=rl(e,0);for(let c=0;c!l.skip)),t.cubicInterpolationMode==="monotone")jN(e,r);else{let l=n?e[e.length-1]:e[0];for(i=0,s=e.length;ie.ownerDocument.defaultView.getComputedStyle(e,null);function zN(e,t){return fd(e).getPropertyValue(t)}const $N=["top","right","bottom","left"];function Vo(e,t,A){const n={};A=A?"-"+A:"";for(let r=0;r<4;r++){const i=$N[r];n[i]=parseFloat(e[t+"-"+i+A])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const qN=(e,t,A)=>(e>0||t>0)&&(!A||!A.shadowRoot);function XN(e,t){const A=e.touches,n=A&&A.length?A[0]:e,{offsetX:r,offsetY:i}=n;let s=!1,o,a;if(qN(r,i,e.target))o=r,a=i;else{const l=t.getBoundingClientRect();o=n.clientX-l.left,a=n.clientY-l.top,s=!0}return{x:o,y:a,box:s}}function Eo(e,t){if("native"in e)return e;const{canvas:A,currentDevicePixelRatio:n}=t,r=fd(A),i=r.boxSizing==="border-box",s=Vo(r,"padding"),o=Vo(r,"border","width"),{x:a,y:l,box:c}=XN(e,A),u=s.left+(c&&o.left),d=s.top+(c&&o.top);let{width:f,height:m}=t;return i&&(f-=s.width+o.width,m-=s.height+o.height),{x:Math.round((a-u)/f*A.width/n),y:Math.round((l-d)/m*A.height/n)}}function YN(e,t,A){let n,r;if(t===void 0||A===void 0){const i=e&&v1(e);if(!i)t=e.clientWidth,A=e.clientHeight;else{const s=i.getBoundingClientRect(),o=fd(i),a=Vo(o,"border","width"),l=Vo(o,"padding");t=s.width-l.width-a.width,A=s.height-l.height-a.height,n=kh(o.maxWidth,i,"clientWidth"),r=kh(o.maxHeight,i,"clientHeight")}}return{width:t,height:A,maxWidth:n||Sh,maxHeight:r||Sh}}const Ps=e=>Math.round(e*10)/10;function JN(e,t,A,n){const r=fd(e),i=Vo(r,"margin"),s=kh(r.maxWidth,e,"clientWidth")||Sh,o=kh(r.maxHeight,e,"clientHeight")||Sh,a=YN(e,t,A);let{width:l,height:c}=a;if(r.boxSizing==="content-box"){const d=Vo(r,"border","width"),f=Vo(r,"padding");l-=f.width+d.width,c-=f.height+d.height}return l=Math.max(0,l-i.width),c=Math.max(0,n?l/n:c-i.height),l=Ps(Math.min(l,s,a.maxWidth)),c=Ps(Math.min(c,o,a.maxHeight)),l&&!c&&(c=Ps(l/2)),(t!==void 0||A!==void 0)&&n&&a.height&&c>a.height&&(c=a.height,l=Ps(Math.floor(c*n))),{width:l,height:c}}function Sw(e,t,A){const n=t||1,r=Ps(e.height*n),i=Ps(e.width*n);e.height=Ps(e.height),e.width=Ps(e.width);const s=e.canvas;return s.style&&(A||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||s.height!==r||s.width!==i?(e.currentDevicePixelRatio=n,s.height=r,s.width=i,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}const ZN=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};w1()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Lw(e,t){const A=zN(e,t),n=A&&A.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Io(e,t,A,n){return{x:e.x+A*(t.x-e.x),y:e.y+A*(t.y-e.y)}}function tD(e,t,A,n){return{x:e.x+A*(t.x-e.x),y:n==="middle"?A<.5?e.y:t.y:n==="after"?A<1?e.y:t.y:A>0?t.y:e.y}}function eD(e,t,A,n){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},s=Io(e,r,A),o=Io(r,i,A),a=Io(i,t,A),l=Io(s,o,A),c=Io(o,a,A);return Io(l,c,A)}const AD=function(e,t){return{x(A){return e+e+t-A},setWidth(A){t=A},textAlign(A){return A==="center"?A:A==="right"?"left":"right"},xPlus(A,n){return A-n},leftForLtr(A,n){return A-n}}},nD=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function qa(e,t,A){return e?AD(t,A):nD()}function yC(e,t){let A,n;(t==="ltr"||t==="rtl")&&(A=e.canvas.style,n=[A.getPropertyValue("direction"),A.getPropertyPriority("direction")],A.setProperty("direction",t,"important"),e.prevTextDirection=n)}function CC(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function xC(e){return e==="angle"?{between:jc,compare:rN,normalize:_n}:{between:Ji,compare:(t,A)=>t-A,normalize:t=>t}}function kw({start:e,end:t,count:A,loop:n,style:r}){return{start:e%A,end:t%A,loop:n&&(t-e+1)%A===0,style:r}}function rD(e,t,A){const{property:n,start:r,end:i}=A,{between:s,normalize:o}=xC(n),a=t.length;let{start:l,end:c,loop:u}=e,d,f;if(u){for(l+=a,c+=a,d=0,f=a;da(r,Q,b)&&o(r,Q)!==0,H=()=>o(i,b)===0||a(i,Q,b),W=()=>B||_(),R=()=>!B||H();for(let O=c,k=c;O<=u;++O)C=t[O%s],!C.skip&&(b=l(C[n]),b!==Q&&(B=a(b,r,i),v===null&&W()&&(v=o(b,r)===0?O:k),v!==null&&R()&&(m.push(kw({start:v,end:O,loop:d,count:s,style:f})),v=null),k=O,Q=b));return v!==null&&m.push(kw({start:v,end:u,loop:d,count:s,style:f})),m}function _C(e,t){const A=[],n=e.segments;for(let r=0;rr&&e[i%t].skip;)i--;return i%=t,{start:r,end:i}}function sD(e,t,A,n){const r=e.length,i=[];let s=t,o=e[t],a;for(a=t+1;a<=A;++a){const l=e[a%r];l.skip||l.stop?o.skip||(n=!1,i.push({start:t%r,end:(a-1)%r,loop:n}),t=s=l.stop?a:null):(s=a,o.skip&&(t=a)),o=l}return s!==null&&i.push({start:t%r,end:s%r,loop:n}),i}function oD(e,t){const A=e.points,n=e.options.spanGaps,r=A.length;if(!r)return[];const i=!!e._loop,{start:s,end:o}=iD(A,r,i,n);if(n===!0)return Nw(e,[{start:s,end:o,loop:i}],A,t);const a=oo({chart:t,initial:A.initial,numSteps:s,currentStep:Math.min(n-A.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=lC.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let A=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;const i=n.items;let s=i.length-1,o=!1,a;for(;s>=0;--s)a=i[s],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(t),o=!0):(i[s]=i[i.length-1],i.pop());o&&(r.draw(),this._notify(r,n,t,"progress")),i.length||(n.running=!1,this._notify(r,n,t,"complete"),n.initial=!1),A+=i.length}),this._lastDate=t,A===0&&(this._running=!1)}_getAnims(t){const A=this._charts;let n=A.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},A.set(t,n)),n}listen(t,A,n){this._getAnims(t).listeners[A].push(n)}add(t,A){!A||!A.length||this._getAnims(t).items.push(...A)}has(t){return this._getAnims(t).items.length>0}start(t){const A=this._charts.get(t);A&&(A.running=!0,A.start=Date.now(),A.duration=A.items.reduce((n,r)=>Math.max(n,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const A=this._charts.get(t);return!(!A||!A.running||!A.items.length)}stop(t){const A=this._charts.get(t);if(!A||!A.items.length)return;const n=A.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();A.items=[],this._notify(t,A,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ji=new uD;const Hw="transparent",fD={boolean(e,t,A){return A>.5?t:e},color(e,t,A){const n=_w(e||Hw),r=n.valid&&_w(t||Hw);return r&&r.valid?r.mix(n,A).hexString():t},number(e,t,A){return e+(t-e)*A}};class hD{constructor(t,A,n,r){const i=A[n];r=Ac([t.to,r,i,t.from]);const s=Ac([t.from,i,r]);this._active=!0,this._fn=t.fn||fD[t.type||typeof s],this._easing=Fc[t.easing]||Fc.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=A,this._prop=n,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(t,A,n){if(this._active){this._notify(!1);const r=this._target[this._prop],i=n-this._start,s=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Ac([t.to,A,r,t.from]),this._from=Ac([t.from,r,A])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const A=t-this._start,n=this._duration,r=this._prop,i=this._from,s=this._loop,o=this._to;let a;if(this._active=i!==o&&(s||A1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[r]=this._fn(i,o,a)}wait(){const t=this._promises||(this._promises=[]);return new Promise((A,n)=>{t.push({res:A,rej:n})})}_notify(t){const A=t?"res":"rej",n=this._promises||[];for(let r=0;r{const i=t[r];if(!He(i))return;const s={};for(const o of A)s[o]=i[o];(yA(i.properties)&&i.properties||[r]).forEach(o=>{(o===r||!n.has(o))&&n.set(o,s)})})}_animateOptions(t,A){const n=A.options,r=gD(t,n);if(!r)return[];const i=this._createAnimations(r,n);return n.$shared&&dD(t.options.$animations,n).then(()=>{t.options=n},()=>{}),i}_createAnimations(t,A){const n=this._properties,r=[],i=t.$animations||(t.$animations={}),s=Object.keys(A),o=Date.now();let a;for(a=s.length-1;a>=0;--a){const l=s[a];if(l.charAt(0)==="$")continue;if(l==="options"){r.push(...this._animateOptions(t,A));continue}const c=A[l];let u=i[l];const d=n.get(l);if(u)if(d&&u.active()){u.update(d,c,o);continue}else u.cancel();if(!d||!d.duration){t[l]=c;continue}i[l]=u=new hD(d,t,l,c),r.push(u)}return r}update(t,A){if(this._properties.size===0){Object.assign(t,A);return}const n=this._createAnimations(t,A);if(n.length)return ji.add(this._chart,n),!0}}function dD(e,t){const A=[],n=Object.keys(t);for(let r=0;r0||!A&&i<0)return r.index}return null}function Pw(e,t){const{chart:A,_cachedMeta:n}=e,r=A._stacks||(A._stacks={}),{iScale:i,vScale:s,index:o}=n,a=i.axis,l=s.axis,c=wD(i,s,n),u=t.length;let d;for(let f=0;fA[n].axis===t).shift()}function yD(e,t){return Js(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function CD(e,t,A){return Js(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:A,index:t,mode:"default",type:"data"})}function Kl(e,t){const A=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const r of t){const i=r._stacks;if(!i||i[n]===void 0||i[n][A]===void 0)return;delete i[n][A],i[n]._visualValues!==void 0&&i[n]._visualValues[A]!==void 0&&delete i[n]._visualValues[A]}}}const rp=e=>e==="reset"||e==="none",Rw=(e,t)=>t?e:Object.assign({},e),xD=(e,t,A)=>e&&!t.hidden&&t._stacked&&{keys:EC(A,!0),values:null};class Or{constructor(t,A){this.chart=t,this._ctx=t.ctx,this.index=A,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ap(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Kl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,A=this._cachedMeta,n=this.getDataset(),r=(u,d,f,m)=>u==="x"?d:u==="r"?m:f,i=A.xAxisID=Ce(n.xAxisID,np(t,"x")),s=A.yAxisID=Ce(n.yAxisID,np(t,"y")),o=A.rAxisID=Ce(n.rAxisID,np(t,"r")),a=A.indexAxis,l=A.iAxisID=r(a,i,s,o),c=A.vAxisID=r(a,s,i,o);A.xScale=this.getScaleForId(i),A.yScale=this.getScaleForId(s),A.rScale=this.getScaleForId(o),A.iScale=this.getScaleForId(l),A.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const A=this._cachedMeta;return t===A.iScale?A.vScale:A.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Cw(this._data,this),t._stacked&&Kl(t)}_dataCheck(){const t=this.getDataset(),A=t.data||(t.data=[]),n=this._data;if(He(A)){const r=this._cachedMeta;this._data=BD(A,r)}else if(n!==A){if(n){Cw(n,this);const r=this._cachedMeta;Kl(r),r._parsed=[]}A&&Object.isExtensible(A)&&aN(A,this),this._syncList=[],this._data=A}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const A=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const i=A._stacked;A._stacked=Ap(A.vScale,A),A.stack!==n.stack&&(r=!0,Kl(A),A.stack=n.stack),this._resyncElements(t),(r||i!==A._stacked)&&(Pw(this,A._parsed),A._stacked=Ap(A.vScale,A))}configure(){const t=this.chart.config,A=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),A,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,A){const{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:s}=n,o=i.axis;let a=t===0&&A===r.length?!0:n._sorted,l=t>0&&n._parsed[t-1],c,u,d;if(this._parsing===!1)n._parsed=r,n._sorted=!0,d=r;else{yA(r[t])?d=this.parseArrayData(n,r,t,A):He(r[t])?d=this.parseObjectData(n,r,t,A):d=this.parsePrimitiveData(n,r,t,A);const f=()=>u[o]===null||l&&u[o]B||u=0;--d)if(!m()){this.updateRangeFromParsed(l,t,f,a);break}}return l}getAllParsedValues(t){const A=this._cachedMeta._parsed,n=[];let r,i,s;for(r=0,i=A.length;r=0&&tthis.getContext(n,r,A),B=l.resolveNamedOptions(d,f,m,u);return B.$shared&&(B.$shared=a,i[s]=Object.freeze(Rw(B,a))),B}_resolveAnimations(t,A,n){const r=this.chart,i=this._cachedDataOpts,s=`animation-${A}`,o=i[s];if(o)return o;let a;if(r.options.animation!==!1){const c=this.chart.config,u=c.datasetAnimationScopeKeys(this._type,A),d=c.getOptionScopes(this.getDataset(),u);a=c.createResolver(d,this.getContext(t,n,A))}const l=new QC(r,a&&a.animations);return a&&a._cacheable&&(i[s]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,A){return!A||rp(t)||this.chart._animationsDisabled}_getSharedOptions(t,A){const n=this.resolveDataElementOptions(t,A),r=this._sharedOptions,i=this.getSharedOptions(n),s=this.includeOptions(A,i)||i!==r;return this.updateSharedOptions(i,A,n),{sharedOptions:i,includeOptions:s}}updateElement(t,A,n,r){rp(r)?Object.assign(t,n):this._resolveAnimations(A,r).update(t,n)}updateSharedOptions(t,A,n){t&&!rp(A)&&this._resolveAnimations(void 0,A).update(t,n)}_setStyle(t,A,n,r){t.active=r;const i=this.getStyle(A,r);this._resolveAnimations(A,n,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(t,A,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,A,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const A=this._data,n=this._cachedMeta.data;for(const[o,a,l]of this._syncList)this[o](a,l);this._syncList=[];const r=n.length,i=A.length,s=Math.min(i,r);s&&this.parse(0,s),i>r?this._insertElements(r,i-r,t):i{for(l.length+=A,o=l.length-1;o>=s;o--)l[o]=l[o-A]};for(a(i),o=t;or-i))}return e._cache.$bar}function _D(e){const t=e.iScale,A=FD(t,e.type);let n=t._length,r,i,s,o;const a=()=>{s===32767||s===-32768||(Vc(o)&&(n=Math.min(n,Math.abs(s-o)||n)),o=s)};for(r=0,i=A.length;r0?r[e-1]:null,o=eMath.abs(o)&&(a=o,l=s),t[A.axis]=l,t._custom={barStart:a,barEnd:l,start:r,end:i,min:s,max:o}}function IC(e,t,A,n){return yA(e)?ED(e,t,A,n):t[A.axis]=A.parse(e,n),t}function Kw(e,t,A,n){const r=e.iScale,i=e.vScale,s=r.getLabels(),o=r===i,a=[];let l,c,u,d;for(l=A,c=A+n;l=A?1:-1)}function SD(e){let t,A,n,r,i;return e.horizontal?(t=e.base>e.x,A="left",n="right"):(t=e.basec.controller.options.grouped),i=n.options.stacked,s=[],o=this._cachedMeta.controller.getParsed(A),a=o&&o[n.axis],l=c=>{const u=c._parsed.find(f=>f[n.axis]===a),d=u&&u[c.vScale.axis];if(Ne(d)||isNaN(d))return!0};for(const c of r)if(!(A!==void 0&&l(c))&&((i===!1||s.indexOf(c.stack)===-1||i===void 0&&c.stack===void 0)&&s.push(c.stack),c.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,A=this.chart.options.indexAxis;return Object.keys(t).filter(n=>t[n].axis===A).shift()}_getAxis(){const t={},A=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)t[Ce(this.chart.options.indexAxis==="x"?n.xAxisID:n.yAxisID,A)]=!0;return Object.keys(t)}_getStackIndex(t,A,n){const r=this._getStacks(t,n),i=A!==void 0?r.indexOf(A):-1;return i===-1?r.length-1:i}_getRuler(){const t=this.options,A=this._cachedMeta,n=A.iScale,r=[];let i,s;for(i=0,s=A.data.length;i=0;--n)A=Math.max(A,t[n].size(this.resolveDataElementOptions(n))/2);return A>0&&A}getLabelAndValue(t){const A=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=A,s=this.getParsed(t),o=r.getLabelForValue(s.x),a=i.getLabelForValue(s.y),l=s._custom;return{label:n[t]||"",value:"("+o+", "+a+(l?", "+l:"")+")"}}update(t){const A=this._cachedMeta.data;this.updateElements(A,0,A.length,t)}updateElements(t,A,n,r){const i=r==="reset",{iScale:s,vScale:o}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(A,r),c=s.axis,u=o.axis;for(let d=A;djc(Q,o,a,!0)?1:Math.max(_,_*A,H,H*A),m=(Q,_,H)=>jc(Q,o,a,!0)?-1:Math.min(_,_*A,H,H*A),B=f(0,l,u),v=f(RA,c,d),b=m(Ve,l,u),C=m(Ve+RA,c,d);n=(B-b)/2,r=(v-C)/2,i=-(B+b)/2,s=-(v+C)/2}return{ratioX:n,ratioY:r,offsetX:i,offsetY:s}}class Ho extends Or{constructor(t,A){super(t,A),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,A){const n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=a=>+n[a];if(He(n[t])){const{key:a="value"}=this._parsing;i=l=>+qs(n[l],a)}let s,o;for(s=t,o=t+A;s0&&!isNaN(t)?BA*(Math.abs(t)/A):0}getLabelAndValue(t){const A=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Au(A._parsed[t],n.options.locale);return{label:r[t]||"",value:i}}getMaxBorderWidth(t){let A=0;const n=this.chart;let r,i,s,o,a;if(!t){for(r=0,i=n.data.datasets.length;rt!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Nt(Ho,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const A=t.data,{labels:{pointStyle:n,textAlign:r,color:i,useBorderRadius:s,borderRadius:o}}=t.legend.options;return A.labels.length&&A.datasets.length?A.labels.map((a,l)=>{const u=t.getDatasetMeta(0).controller.getStyle(l);return{text:a,fillStyle:u.backgroundColor,fontColor:i,hidden:!t.getDataVisibility(l),lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:u.borderWidth,strokeStyle:u.borderColor,textAlign:r,pointStyle:n,borderRadius:s&&(o||u.borderRadius),index:l}}):[]}},onClick(t,A,n){n.chart.toggleDataVisibility(A.index),n.chart.update()}}}});class Yf extends Or{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const A=this._cachedMeta,{dataset:n,data:r=[],_dataset:i}=A,s=this.chart._animationsDisabled;let{start:o,count:a}=uC(A,r,s);this._drawStart=o,this._drawCount=a,fC(A)&&(o=0,a=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!i._decimated,n.points=r;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:l},t),this.updateElements(r,o,a,t)}updateElements(t,A,n,r){const i=r==="reset",{iScale:s,vScale:o,_stacked:a,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(A,r),d=s.axis,f=o.axis,{spanGaps:m,segment:B}=this.options,v=Al(m)?m:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||i||r==="none",C=A+n,Q=t.length;let _=A>0&&this.getParsed(A-1);for(let H=0;H=C){R.skip=!0;continue}const O=this.getParsed(H),k=Ne(O[f]),V=R[d]=s.getPixelForValue(O[d],H),F=R[f]=i||k?o.getBasePixel():o.getPixelForValue(a?this.applyStack(o,O,a):O[f],H);R.skip=isNaN(V)||isNaN(F)||k,R.stop=H>0&&Math.abs(O[d]-_[d])>v,B&&(R.parsed=O,R.raw=l.data[H]),u&&(R.options=c||this.resolveDataElementOptions(H,W.active?"active":r)),b||this.updateElement(W,H,R,r),_=O}}getMaxOverflow(){const t=this._cachedMeta,A=t.dataset,n=A.options&&A.options.borderWidth||0,r=t.data||[];if(!r.length)return n;const i=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Nt(Yf,"id","line"),Nt(Yf,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Nt(Yf,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Uc extends Or{constructor(t,A){super(t,A),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const A=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Au(A._parsed[t].r,n.options.locale);return{label:r[t]||"",value:i}}parseObjectData(t,A,n,r){return vC.bind(this)(t,A,n,r)}update(t){const A=this._cachedMeta.data;this._updateRadius(),this.updateElements(A,0,A.length,t)}getMinMax(){const t=this._cachedMeta,A={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((n,r)=>{const i=this.getParsed(r).r;!isNaN(i)&&this.chart.getDataVisibility(r)&&(iA.max&&(A.max=i))}),A}_updateRadius(){const t=this.chart,A=t.chartArea,n=t.options,r=Math.min(A.right-A.left,A.bottom-A.top),i=Math.max(r/2,0),s=Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0),o=(i-s)/t.getVisibleDatasetCount();this.outerRadius=i-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,A,n,r){const i=r==="reset",s=this.chart,a=s.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,u=l.yCenter,d=l.getIndexAngle(0)-.5*Ve;let f=d,m;const B=360/this.countVisibleElements();for(m=0;m{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&A++}),A}_computeAngle(t,A,n){return this.chart.getDataVisibility(t)?Mr(this.resolveDataElementOptions(t,A).angle||n):0}}Nt(Uc,"id","polarArea"),Nt(Uc,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Nt(Uc,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const A=t.data;if(A.labels.length&&A.datasets.length){const{labels:{pointStyle:n,color:r}}=t.legend.options;return A.labels.map((i,s)=>{const a=t.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,A,n){n.chart.toggleDataVisibility(A.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class d0 extends Ho{}Nt(d0,"id","pie"),Nt(d0,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Jf extends Or{getLabelAndValue(t){const A=this._cachedMeta.vScale,n=this.getParsed(t);return{label:A.getLabels()[t],value:""+A.getLabelForValue(n[A.axis])}}parseObjectData(t,A,n,r){return vC.bind(this)(t,A,n,r)}update(t){const A=this._cachedMeta,n=A.dataset,r=A.data||[],i=A.iScale.getLabels();if(n.points=r,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const o={_loop:!0,_fullLoop:i.length===r.length,options:s};this.updateElement(n,void 0,o,t)}this.updateElements(r,0,r.length,t)}updateElements(t,A,n,r){const i=this._cachedMeta.rScale,s=r==="reset";for(let o=A;o0&&this.getParsed(A-1);for(let _=A;_0&&Math.abs(W[f]-Q[f])>b,v&&(R.parsed=W,R.raw=l.data[_]),d&&(R.options=u||this.resolveDataElementOptions(_,H.active?"active":r)),C||this.updateElement(H,_,R,r),Q=W}this.updateSharedOptions(u,r,c)}getMaxOverflow(){const t=this._cachedMeta,A=t.data||[];if(!this.options.showLine){let o=0;for(let a=A.length-1;a>=0;--a)o=Math.max(o,A[a].size(this.resolveDataElementOptions(a))/2);return o>0&&o}const n=t.dataset,r=n.options&&n.options.borderWidth||0;if(!A.length)return r;const i=A[0].size(this.resolveDataElementOptions(0)),s=A[A.length-1].size(this.resolveDataElementOptions(A.length-1));return Math.max(r,i,s)/2}}Nt(Zf,"id","scatter"),Nt(Zf,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Nt(Zf,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var HD=Object.freeze({__proto__:null,BarController:qf,BubbleController:Xf,DoughnutController:Ho,LineController:Yf,PieController:d0,PolarAreaController:Uc,RadarController:Jf,ScatterController:Zf});function xo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class b1{constructor(t){Nt(this,"options");this.options=t||{}}static override(t){Object.assign(b1.prototype,t)}init(){}formats(){return xo()}parse(){return xo()}format(){return xo()}add(){return xo()}diff(){return xo()}startOf(){return xo()}endOf(){return xo()}}var MD={_date:b1};function TD(e,t,A,n){const{controller:r,data:i,_sorted:s}=e,o=r._cachedMeta.iScale,a=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(o&&t===o.axis&&t!=="r"&&s&&i.length){const l=o._reversePixels?sN:Zi;if(n){if(r._sharedOptions){const c=i[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(i,t,A-u),f=l(i,t,A+u);return{lo:d.lo,hi:f.hi}}}}else{const c=l(i,t,A);if(a){const{vScale:u}=r._cachedMeta,{_parsed:d}=e,f=d.slice(0,c.lo+1).reverse().findIndex(B=>!Ne(B[u.axis]));c.lo-=Math.max(0,f);const m=d.slice(c.hi).findIndex(B=>!Ne(B[u.axis]));c.hi+=Math.max(0,m)}return c}}return{lo:0,hi:i.length-1}}function hd(e,t,A,n,r){const i=e.getSortedVisibleDatasetMetas(),s=A[t];for(let o=0,a=i.length;o{a[s]&&a[s](t[A],r)&&(i.push({element:a,datasetIndex:l,index:c}),o=o||a.inRange(t.x,t.y,r))}),n&&!o?[]:i}var KD={modes:{index(e,t,A,n){const r=Eo(t,e),i=A.axis||"x",s=A.includeInvisible||!1,o=A.intersect?sp(e,r,i,n,s):op(e,r,i,!1,n,s),a=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach(l=>{const c=o[0].index,u=l.data[c];u&&!u.skip&&a.push({element:u,datasetIndex:l.index,index:c})}),a):[]},dataset(e,t,A,n){const r=Eo(t,e),i=A.axis||"xy",s=A.includeInvisible||!1;let o=A.intersect?sp(e,r,i,n,s):op(e,r,i,!1,n,s);if(o.length>0){const a=o[0].datasetIndex,l=e.getDatasetMeta(a).data;o=[];for(let c=0;cA.pos===t)}function Ww(e,t){return e.filter(A=>SC.indexOf(A.pos)===-1&&A.box.axis===t)}function jl(e,t){return e.sort((A,n)=>{const r=t?n:A,i=t?A:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function VD(e){const t=[];let A,n,r,i,s,o;for(A=0,n=(e||[]).length;Al.box.fullSize),!0),n=jl(Vl(t,"left"),!0),r=jl(Vl(t,"right")),i=jl(Vl(t,"top"),!0),s=jl(Vl(t,"bottom")),o=Ww(t,"x"),a=Ww(t,"y");return{fullSize:A,leftAndTop:n.concat(i),rightAndBottom:r.concat(a).concat(s).concat(o),chartArea:Vl(t,"chartArea"),vertical:n.concat(r).concat(a),horizontal:i.concat(s).concat(o)}}function zw(e,t,A,n){return Math.max(e[A],t[A])+Math.max(e[n],t[n])}function LC(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function zD(e,t,A,n){const{pos:r,box:i}=A,s=e.maxPadding;if(!He(r)){A.size&&(e[r]-=A.size);const u=n[A.stack]||{size:0,count:1};u.size=Math.max(u.size,A.horizontal?i.height:i.width),A.size=u.size/u.count,e[r]+=A.size}i.getPadding&&LC(s,i.getPadding());const o=Math.max(0,t.outerWidth-zw(s,e,"left","right")),a=Math.max(0,t.outerHeight-zw(s,e,"top","bottom")),l=o!==e.w,c=a!==e.h;return e.w=o,e.h=a,A.horizontal?{same:l,other:c}:{same:c,other:l}}function $D(e){const t=e.maxPadding;function A(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=A("top"),e.x+=A("left"),A("right"),A("bottom")}function qD(e,t){const A=t.maxPadding;function n(r){const i={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{i[s]=Math.max(t[s],A[s])}),i}return n(e?["left","right"]:["top","bottom"])}function nc(e,t,A,n){const r=[];let i,s,o,a,l,c;for(i=0,s=e.length,l=0;i{typeof B.beforeLayout=="function"&&B.beforeLayout()});const c=a.reduce((B,v)=>v.box.options&&v.box.options.display===!1?B:B+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:A,padding:r,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/c,hBoxMaxHeight:s/2}),d=Object.assign({},r);LC(d,Sn(n));const f=Object.assign({maxPadding:d,w:i,h:s,x:r.left,y:r.top},r),m=GD(a.concat(l),u);nc(o.fullSize,f,u,m),nc(a,f,u,m),nc(l,f,u,m)&&nc(a,f,u,m),$D(f),$w(o.leftAndTop,f,u,m),f.x+=f.w,f.y+=f.h,$w(o.rightAndBottom,f,u,m),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Je(o.chartArea,B=>{const v=B.box;Object.assign(v,e.chartArea),v.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class kC{acquireContext(t,A){}releaseContext(t){return!1}addEventListener(t,A,n){}removeEventListener(t,A,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,A,n,r){return A=Math.max(0,A||t.width),n=n||t.height,{width:A,height:Math.max(0,r?Math.floor(A/r):n)}}isAttached(t){return!0}updateConfig(t){}}class XD extends kC{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const th="$chartjs",YD={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},qw=e=>e===null||e==="";function JD(e,t){const A=e.style,n=e.getAttribute("height"),r=e.getAttribute("width");if(e[th]={initial:{height:n,width:r,style:{display:A.display,height:A.height,width:A.width}}},A.display=A.display||"block",A.boxSizing=A.boxSizing||"border-box",qw(r)){const i=Lw(e,"width");i!==void 0&&(e.width=i)}if(qw(n))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Lw(e,"height");i!==void 0&&(e.height=i)}return e}const NC=ZN?{passive:!0}:!1;function ZD(e,t,A){e&&e.addEventListener(t,A,NC)}function tH(e,t,A){e&&e.canvas&&e.canvas.removeEventListener(t,A,NC)}function eH(e,t){const A=YD[e.type]||e.type,{x:n,y:r}=Eo(e,t);return{type:A,chart:t,native:e,x:n!==void 0?n:null,y:r!==void 0?r:null}}function Nh(e,t){for(const A of e)if(A===t||A.contains(t))return!0}function AH(e,t,A){const n=e.canvas,r=new MutationObserver(i=>{let s=!1;for(const o of i)s=s||Nh(o.addedNodes,n),s=s&&!Nh(o.removedNodes,n);s&&A()});return r.observe(document,{childList:!0,subtree:!0}),r}function nH(e,t,A){const n=e.canvas,r=new MutationObserver(i=>{let s=!1;for(const o of i)s=s||Nh(o.removedNodes,n),s=s&&!Nh(o.addedNodes,n);s&&A()});return r.observe(document,{childList:!0,subtree:!0}),r}const Wc=new Map;let Xw=0;function DC(){const e=window.devicePixelRatio;e!==Xw&&(Xw=e,Wc.forEach((t,A)=>{A.currentDevicePixelRatio!==e&&t()}))}function rH(e,t){Wc.size||window.addEventListener("resize",DC),Wc.set(e,t)}function iH(e){Wc.delete(e),Wc.size||window.removeEventListener("resize",DC)}function sH(e,t,A){const n=e.canvas,r=n&&v1(n);if(!r)return;const i=cC((o,a)=>{const l=r.clientWidth;A(o,a),l{const a=o[0],l=a.contentRect.width,c=a.contentRect.height;l===0&&c===0||i(l,c)});return s.observe(r),rH(e,i),s}function ap(e,t,A){A&&A.disconnect(),t==="resize"&&iH(e)}function oH(e,t,A){const n=e.canvas,r=cC(i=>{e.ctx!==null&&A(eH(i,e))},e);return ZD(n,t,r),r}class aH extends kC{acquireContext(t,A){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(JD(t,A),n):null}releaseContext(t){const A=t.canvas;if(!A[th])return!1;const n=A[th].initial;["height","width"].forEach(i=>{const s=n[i];Ne(s)?A.removeAttribute(i):A.setAttribute(i,s)});const r=n.style||{};return Object.keys(r).forEach(i=>{A.style[i]=r[i]}),A.width=A.width,delete A[th],!0}addEventListener(t,A,n){this.removeEventListener(t,A);const r=t.$proxies||(t.$proxies={}),s={attach:AH,detach:nH,resize:sH}[A]||oH;r[A]=s(t,A,n)}removeEventListener(t,A){const n=t.$proxies||(t.$proxies={}),r=n[A];if(!r)return;({attach:ap,detach:ap,resize:ap}[A]||tH)(t,A,r),n[A]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,A,n,r){return JN(t,A,n,r)}isAttached(t){const A=t&&v1(t);return!!(A&&A.isConnected)}}function lH(e){return!w1()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?XD:aH}var Nf;let as=(Nf=class{constructor(){Nt(this,"x");Nt(this,"y");Nt(this,"active",!1);Nt(this,"options");Nt(this,"$animations")}tooltipPosition(t){const{x:A,y:n}=this.getProps(["x","y"],t);return{x:A,y:n}}hasValue(){return Al(this.x)&&Al(this.y)}getProps(t,A){const n=this.$animations;if(!A||!n)return this;const r={};return t.forEach(i=>{r[i]=n[i]&&n[i].active()?n[i]._to:this[i]}),r}},Nt(Nf,"defaults",{}),Nt(Nf,"defaultRoutes"),Nf);function cH(e,t){const A=e.options.ticks,n=uH(e),r=Math.min(A.maxTicksLimit||n,n),i=A.major.enabled?hH(t):[],s=i.length,o=i[0],a=i[s-1],l=[];if(s>r)return dH(t,l,i,s/r),l;const c=fH(i,t,r);if(s>0){let u,d;const f=s>1?Math.round((a-o)/(s-1)):null;for(Qf(t,l,c,Ne(f)?0:o-f,o),u=0,d=s-1;ur)return a}return Math.max(r,1)}function hH(e){const t=[];let A,n;for(A=0,n=e.length;Ae==="left"?"right":e==="right"?"left":e,Yw=(e,t,A)=>t==="top"||t==="left"?e[t]+A:e[t]-A,Jw=(e,t)=>Math.min(t||e,e);function Zw(e,t){const A=[],n=e.length/t,r=e.length;let i=0;for(;is+o)))return a}function BH(e,t){Je(e,A=>{const n=A.gc,r=n.length/2;let i;if(r>t){for(i=0;in?n:A,n=r&&A>n?A:n,{min:ar(A,ar(n,A)),max:ar(n,ar(A,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){hA(this.options.beforeUpdate,[this])}update(t,A,n){const{beginAtZero:r,grace:i,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=A,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=IN(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=o=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,f=nn(this.chart.width-u,0,this.maxWidth);o=t.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(t.offset?.5:1)),a=this.maxHeight-Gl(t.grid)-A.padding-tv(t.title,this.chart.options.font),l=Math.sqrt(u*u+d*d),s=u1(Math.min(Math.asin(nn((c.highest.height+6)/o,-1,1)),Math.asin(nn(a/l,-1,1))-Math.asin(nn(d/l,-1,1)))),s=Math.max(r,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){hA(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){hA(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:A,options:{ticks:n,title:r,grid:i}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const a=tv(r,A.options.font);if(o?(t.width=this.maxWidth,t.height=Gl(i)+a):(t.height=this.maxHeight,t.width=Gl(i)+a),n.display&&this.ticks.length){const{first:l,last:c,widest:u,highest:d}=this._getLabelSizes(),f=n.padding*2,m=Mr(this.labelRotation),B=Math.cos(m),v=Math.sin(m);if(o){const b=n.mirror?0:v*u.width+B*d.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=n.mirror?0:B*u.width+v*d.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(l,c,v,B)}}this._handleMargins(),o?(this.width=this._length=A.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=A.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,A,n,r){const{ticks:{align:i,padding:s},position:o}=this.options,a=this.labelRotation!==0,l=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,f=0;a?l?(d=r*t.width,f=n*A.height):(d=n*t.height,f=r*A.width):i==="start"?f=A.width:i==="end"?d=t.width:i!=="inner"&&(d=t.width/2,f=A.width/2),this.paddingLeft=Math.max((d-c+s)*this.width/(this.width-c),0),this.paddingRight=Math.max((f-u+s)*this.width/(this.width-u),0)}else{let c=A.height/2,u=t.height/2;i==="start"?(c=0,u=t.height):i==="end"&&(c=A.height,u=0),this.paddingTop=c+s,this.paddingBottom=u+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){hA(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:A}=this.options;return A==="top"||A==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let A,n;for(A=0,n=t.length;A({width:s[k]||0,height:o[k]||0});return{first:O(0),last:O(A-1),widest:O(W),highest:O(R),widths:s,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,A){return NaN}getValueForPixel(t){}getPixelForTick(t){const A=this.ticks;return t<0||t>A.length-1?null:this.getPixelForValue(A[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const A=this._startPixel+t*this._length;return iN(this._alignToPixels?Co(this.chart,A,0):A)}getDecimalForPixel(t){const A=(t-this._startPixel)/this._length;return this._reversePixels?1-A:A}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:A}=this;return t<0&&A<0?A:t>0&&A>0?t:0}getContext(t){const A=this.ticks||[];if(t>=0&&to*r?o/n:a/r:a*r0}_computeGridLineItems(t){const A=this.axis,n=this.chart,r=this.options,{grid:i,position:s,border:o}=r,a=i.offset,l=this.isHorizontal(),u=this.ticks.length+(a?1:0),d=Gl(i),f=[],m=o.setContext(this.getContext()),B=m.display?m.width:0,v=B/2,b=function(lt){return Co(n,lt,B)};let C,Q,_,H,W,R,O,k,V,F,L,G;if(s==="top")C=b(this.bottom),R=this.bottom-d,k=C-v,F=b(t.top)+v,G=t.bottom;else if(s==="bottom")C=b(this.top),F=t.top,G=b(t.bottom)-v,R=C+v,k=this.top+d;else if(s==="left")C=b(this.right),W=this.right-d,O=C-v,V=b(t.left)+v,L=t.right;else if(s==="right")C=b(this.left),V=t.left,L=b(t.right)-v,W=C+v,O=this.left+d;else if(A==="x"){if(s==="center")C=b((t.top+t.bottom)/2+.5);else if(He(s)){const lt=Object.keys(s)[0],ct=s[lt];C=b(this.chart.scales[lt].getPixelForValue(ct))}F=t.top,G=t.bottom,R=C+v,k=R+d}else if(A==="y"){if(s==="center")C=b((t.left+t.right)/2);else if(He(s)){const lt=Object.keys(s)[0],ct=s[lt];C=b(this.chart.scales[lt].getPixelForValue(ct))}W=C-v,O=W-d,V=t.left,L=t.right}const q=Ce(r.ticks.maxTicksLimit,u),ft=Math.max(1,Math.ceil(u/q));for(Q=0;Q0&&(At-=tt/2);break}j={left:At,top:et,width:tt+U.width,height:N+U.height,color:ft.backdropColor}}v.push({label:_,font:k,textOffset:L,options:{rotation:B,color:ct,strokeColor:at,strokeWidth:st,textAlign:Z,textBaseline:G,translation:[H,W],backdrop:j}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:A}=this.options;if(-Mr(this.labelRotation))return t==="top"?"left":"right";let r="center";return A.align==="start"?r="left":A.align==="end"?r="right":A.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:A,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,s=this._getLabelSizes(),o=t+i,a=s.widest.width;let l,c;return A==="left"?r?(c=this.right+i,n==="near"?l="left":n==="center"?(l="center",c+=a/2):(l="right",c+=a)):(c=this.right-o,n==="near"?l="right":n==="center"?(l="center",c-=a/2):(l="left",c=this.left)):A==="right"?r?(c=this.left+i,n==="near"?l="right":n==="center"?(l="center",c-=a/2):(l="left",c-=a)):(c=this.left+o,n==="near"?l="left":n==="center"?(l="center",c+=a/2):(l="right",c=this.right)):l="right",{textAlign:l,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,A=this.options.position;if(A==="left"||A==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(A==="top"||A==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:A},left:n,top:r,width:i,height:s}=this;A&&(t.save(),t.fillStyle=A,t.fillRect(n,r,i,s),t.restore())}getLineWidthForValue(t){const A=this.options.grid;if(!this._isVisible()||!A.display)return 0;const r=this.ticks.findIndex(i=>i.value===t);return r>=0?A.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const A=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,s;const o=(a,l,c)=>{!c.width||!c.color||(n.save(),n.lineWidth=c.width,n.strokeStyle=c.color,n.setLineDash(c.borderDash||[]),n.lineDashOffset=c.borderDashOffset,n.beginPath(),n.moveTo(a.x,a.y),n.lineTo(l.x,l.y),n.stroke(),n.restore())};if(A.display)for(i=0,s=r.length;i{this.draw(i)}}]:[{z:n,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:A,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const A=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let i,s;for(i=0,s=A.length;i{const n=A.split("."),r=n.pop(),i=[e].concat(n).join("."),s=t[A].split("."),o=s.pop(),a=s.join(".");CA.route(i,r,a,o)})}function FH(e){return"id"in e&&"defaults"in e}class _H{constructor(){this.controllers=new Ef(Or,"datasets",!0),this.elements=new Ef(as,"elements"),this.plugins=new Ef(Object,"plugins"),this.scales=new Ef(Yo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,A,n){[...A].forEach(r=>{const i=n||this._getRegistryForType(r);n||i.isForType(r)||i===this.plugins&&r.id?this._exec(t,i,r):Je(r,s=>{const o=n||this._getRegistryForType(s);this._exec(t,o,s)})})}_exec(t,A,n){const r=c1(t);hA(n["before"+r],[],n),A[t](n),hA(n["after"+r],[],n)}_getRegistryForType(t){for(let A=0;Ai.filter(o=>!s.some(a=>o.plugin.id===a.plugin.id));this._notify(r(A,n),t,"stop"),this._notify(r(n,A),t,"start")}}function QH(e){const t={},A=[],n=Object.keys(ai.plugins.items);for(let i=0;i1&&ev(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Av(e,t,A){if(A[t+"AxisID"]===e)return{axis:t}}function DH(e,t){if(t.data&&t.data.datasets){const A=t.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(A.length)return Av(e,"x",A[0])||Av(e,"y",A[0])}return{}}function HH(e,t){const A=zo[e.type]||{scales:{}},n=t.scales||{},r=g0(e.type,t),i=Object.create(null);return Object.keys(n).forEach(s=>{const o=n[s];if(!He(o))return console.error(`Invalid scale configuration for scale: ${s}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const a=p0(s,o,DH(s,e),CA.scales[o.type]),l=kH(a,r),c=A.scales||{};i[s]=Cc(Object.create(null),[{axis:a},o,c[a],c[l]])}),e.data.datasets.forEach(s=>{const o=s.type||e.type,a=s.indexAxis||g0(o,t),c=(zo[o]||{}).scales||{};Object.keys(c).forEach(u=>{const d=LH(u,a),f=s[d+"AxisID"]||d;i[f]=i[f]||Object.create(null),Cc(i[f],[{axis:d},n[f],c[u]])})}),Object.keys(i).forEach(s=>{const o=i[s];Cc(o,[CA.scales[o.type],CA.scale])}),i}function HC(e){const t=e.options||(e.options={});t.plugins=Ce(t.plugins,{}),t.scales=HH(e,t)}function MC(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function MH(e){return e=e||{},e.data=MC(e.data),HC(e),e}const nv=new Map,TC=new Set;function If(e,t){let A=nv.get(e);return A||(A=t(),nv.set(e,A),TC.add(A)),A}const Wl=(e,t,A)=>{const n=qs(t,A);n!==void 0&&e.add(n)};class TH{constructor(t){this._config=MH(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=MC(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),HC(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return If(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,A){return If(`${t}.transition.${A}`,()=>[[`datasets.${t}.transitions.${A}`,`transitions.${A}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,A){return If(`${t}-${A}`,()=>[[`datasets.${t}.elements.${A}`,`datasets.${t}`,`elements.${A}`,""]])}pluginScopeKeys(t){const A=t.id,n=this.type;return If(`${n}-plugin-${A}`,()=>[[`plugins.${A}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,A){const n=this._scopeCache;let r=n.get(t);return(!r||A)&&(r=new Map,n.set(t,r)),r}getOptionScopes(t,A,n){const{options:r,type:i}=this,s=this._cachedScopes(t,n),o=s.get(A);if(o)return o;const a=new Set;A.forEach(c=>{t&&(a.add(t),c.forEach(u=>Wl(a,t,u))),c.forEach(u=>Wl(a,r,u)),c.forEach(u=>Wl(a,zo[i]||{},u)),c.forEach(u=>Wl(a,CA,u)),c.forEach(u=>Wl(a,f0,u))});const l=Array.from(a);return l.length===0&&l.push(Object.create(null)),TC.has(A)&&s.set(A,l),l}chartOptionScopes(){const{options:t,type:A}=this;return[t,zo[A]||{},CA.datasets[A]||{},{type:A},CA,f0]}resolveNamedOptions(t,A,n,r=[""]){const i={$shared:!0},{resolver:s,subPrefixes:o}=rv(this._resolverCache,t,r);let a=s;if(PH(s,A)){i.$shared=!1,n=Xs(n)?n():n;const l=this.createResolver(t,n,o);a=nl(s,n,l)}for(const l of A)i[l]=a[l];return i}createResolver(t,A,n=[""],r){const{resolver:i}=rv(this._resolverCache,t,n);return He(A)?nl(i,A,void 0,r):i}}function rv(e,t,A){let n=e.get(t);n||(n=new Map,e.set(t,n));const r=A.join();let i=n.get(r);return i||(i={resolver:p1(t,A),subPrefixes:A.filter(o=>!o.toLowerCase().includes("hover"))},n.set(r,i)),i}const OH=e=>He(e)&&Object.getOwnPropertyNames(e).some(t=>Xs(e[t]));function PH(e,t){const{isScriptable:A,isIndexable:n}=pC(e);for(const r of t){const i=A(r),s=n(r),o=(s||i)&&e[r];if(i&&(Xs(o)||OH(o))||s&&yA(o))return!0}return!1}var RH="4.5.1";const KH=["top","bottom","left","right","chartArea"];function iv(e,t){return e==="top"||e==="bottom"||KH.indexOf(e)===-1&&t==="x"}function sv(e,t){return function(A,n){return A[e]===n[e]?A[t]-n[t]:A[e]-n[e]}}function ov(e){const t=e.chart,A=t.options.animation;t.notifyPlugins("afterRender"),hA(A&&A.onComplete,[e],t)}function VH(e){const t=e.chart,A=t.options.animation;hA(A&&A.onProgress,[e],t)}function OC(e){return w1()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const eh={},av=e=>{const t=OC(e);return Object.values(eh).filter(A=>A.canvas===t).pop()};function jH(e,t,A){const n=Object.keys(e);for(const r of n){const i=+r;if(i>=t){const s=e[r];delete e[r],(A>0||i>t)&&(e[i+A]=s)}}}function GH(e,t,A,n){return!A||e.type==="mouseout"?null:n?t:e}class Hr{static register(...t){ai.add(...t),lv()}static unregister(...t){ai.remove(...t),lv()}constructor(t,A){const n=this.config=new TH(A),r=OC(t),i=av(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||lH(r)),this.platform.updateConfig(n);const o=this.platform.acquireContext(r,s.aspectRatio),a=o&&o.canvas,l=a&&a.height,c=a&&a.width;if(this.id=Wk(),this.ctx=o,this.canvas=a,this.width=c,this.height=l,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new UH,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=lN(u=>this.update(u),s.resizeDelay||0),this._dataChanges=[],eh[this.id]=this,!o||!a){console.error("Failed to create chart: can't acquire context from the given item");return}ji.listen(this,"complete",ov),ji.listen(this,"progress",VH),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:A},width:n,height:r,_aspectRatio:i}=this;return Ne(t)?A&&i?i:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ai}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Sw(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Qw(this.canvas,this.ctx),this}stop(){return ji.stop(this),this}resize(t,A){ji.running(this)?this._resizeBeforeDraw={width:t,height:A}:this._resize(t,A)}_resize(t,A){const n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,t,A,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Sw(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),hA(n.onResize,[this,s],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){const A=this.options.scales||{};Je(A,(n,r)=>{n.id=r})}buildOrUpdateScales(){const t=this.options,A=t.scales,n=this.scales,r=Object.keys(n).reduce((s,o)=>(s[o]=!1,s),{});let i=[];A&&(i=i.concat(Object.keys(A).map(s=>{const o=A[s],a=p0(s,o),l=a==="r",c=a==="x";return{options:o,dposition:l?"chartArea":c?"bottom":"left",dtype:l?"radialLinear":c?"category":"linear"}}))),Je(i,s=>{const o=s.options,a=o.id,l=p0(a,o),c=Ce(o.type,s.dtype);(o.position===void 0||iv(o.position,l)!==iv(s.dposition))&&(o.position=s.dposition),r[a]=!0;let u=null;if(a in n&&n[a].type===c)u=n[a];else{const d=ai.getScale(c);u=new d({id:a,type:c,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(o,t)}),Je(r,(s,o)=>{s||delete n[o]}),Je(n,s=>{En.configure(this,s,s.options),En.addBox(this,s)})}_updateMetasets(){const t=this._metasets,A=this.data.datasets.length,n=t.length;if(t.sort((r,i)=>r.index-i.index),n>A){for(let r=A;rA.length&&delete this._stacks,t.forEach((n,r)=>{A.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],A=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=A.length;n{this.getDatasetMeta(A).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const A=this.config;A.update();const n=this._options=A.createResolver(A.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let l=0,c=this.data.datasets.length;l{l.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(sv("z","_idx"));const{_active:o,_lastEvent:a}=this;a?this._eventHandler(a,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Je(this.scales,t=>{En.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,A=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!ww(A,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,A=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of A){const s=n==="_removeElements"?-i:i;jH(t,r,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const A=this.data.datasets.length,n=i=>new Set(t.filter(s=>s[0]===i).map((s,o)=>o+","+s.splice(1).join(","))),r=n(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;En.update(this,this.width,this.height,t);const A=this.chartArea,n=A.width<=0||A.height<=0;this._layers=[],Je(this.boxes,r=>{n&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let A=0,n=this.data.datasets.length;A=0;--A)this._drawDataset(t[A]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const A=this.ctx,n={meta:t,index:t.index,cancelable:!0},r=UC(this,t);this.notifyPlugins("beforeDatasetDraw",n)!==!1&&(r&&cd(A,r),t.controller.draw(),r&&ud(A),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return ts(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,A,n,r){const i=KD.modes[A];return typeof i=="function"?i(this,t,n,r):[]}getDatasetMeta(t){const A=this.data.datasets[t],n=this._metasets;let r=n.filter(i=>i&&i._dataset===A).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:A&&A.order||0,index:t,_dataset:A,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=Js(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const A=this.data.datasets[t];if(!A)return!1;const n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!A.hidden}setDatasetVisibility(t,A){const n=this.getDatasetMeta(t);n.hidden=!A}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,A,n){const r=n?"show":"hide",i=this.getDatasetMeta(t),s=i.controller._resolveAnimations(void 0,r);Vc(A)?(i.data[A].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),s.update(i,{visible:n}),this.update(o=>o.datasetIndex===t?r:void 0))}hide(t,A){this._updateVisibility(t,A,!1)}show(t,A){this._updateVisibility(t,A,!0)}_destroyDatasetMeta(t){const A=this._metasets[t];A&&A.controller&&A.controller._destroy(),delete this._metasets[t]}_stop(){let t,A;for(this.stop(),ji.remove(this),t=0,A=this.data.datasets.length;t{A.addEventListener(this,i,s),t[i]=s},r=(i,s,o)=>{i.offsetX=s,i.offsetY=o,this._eventHandler(i)};Je(this.options.events,i=>n(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,A=this.platform,n=(a,l)=>{A.addEventListener(this,a,l),t[a]=l},r=(a,l)=>{t[a]&&(A.removeEventListener(this,a,l),delete t[a])},i=(a,l)=>{this.canvas&&this.resize(a,l)};let s;const o=()=>{r("attach",o),this.attached=!0,this.resize(),n("resize",i),n("detach",s)};s=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",o)},A.isAttached(this.canvas)?o():s()}unbindEvents(){Je(this._listeners,(t,A)=>{this.platform.removeEventListener(this,A,t)}),this._listeners={},Je(this._responsiveListeners,(t,A)=>{this.platform.removeEventListener(this,A,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,A,n){const r=n?"set":"remove";let i,s,o,a;for(A==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),o=0,a=t.length;o{const o=this.getDatasetMeta(i);if(!o)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:o.data[s],index:s}});!Eh(n,A)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,A))}notifyPlugins(t,A,n){return this._plugins.notify(this,t,A,n)}isPluginEnabled(t){return this._plugins._cache.filter(A=>A.plugin.id===t).length===1}_updateHoverStyles(t,A,n){const r=this.options.hover,i=(a,l)=>a.filter(c=>!l.some(u=>c.datasetIndex===u.datasetIndex&&c.index===u.index)),s=i(A,t),o=n?t:i(t,A);s.length&&this.updateHoverStyle(s,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(t,A){const n={event:t,replay:A,cancelable:!0,inChartArea:this.isPointInArea(t)},r=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,r)===!1)return;const i=this._handleEvent(t,A,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(t,A,n){const{_active:r=[],options:i}=this,s=A,o=this._getActiveElements(t,r,n,s),a=Jk(t),l=GH(t,this._lastEvent,n,a);n&&(this._lastEvent=null,hA(i.onHover,[t,o,this],this),a&&hA(i.onClick,[t,o,this],this));const c=!Eh(o,r);return(c||A)&&(this._active=o,this._updateHoverStyles(o,r,A)),this._lastEvent=l,c}_getActiveElements(t,A,n,r){if(t.type==="mouseout")return[];if(!n)return A;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}}Nt(Hr,"defaults",CA),Nt(Hr,"instances",eh),Nt(Hr,"overrides",zo),Nt(Hr,"registry",ai),Nt(Hr,"version",RH),Nt(Hr,"getChart",av);function lv(){return Je(Hr.instances,e=>e._plugins.invalidate())}function WH(e,t,A){const{startAngle:n,x:r,y:i,outerRadius:s,innerRadius:o,options:a}=t,{borderWidth:l,borderJoinStyle:c}=a,u=Math.min(l/s,_n(n-A));if(e.beginPath(),e.arc(r,i,s-l/2,n+u/2,A-u/2),o>0){const d=Math.min(l/o,_n(n-A));e.arc(r,i,o+l/2,A-d/2,n+d/2,!0)}else{const d=Math.min(l/2,s*_n(n-A));if(c==="round")e.arc(r,i,d,A-Ve/2,n+Ve/2,!0);else if(c==="bevel"){const f=2*d*d,m=-f*Math.cos(A+Ve/2)+r,B=-f*Math.sin(A+Ve/2)+i,v=f*Math.cos(n+Ve/2)+r,b=f*Math.sin(n+Ve/2)+i;e.lineTo(m,B),e.lineTo(v,b)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function zH(e,t,A){const{startAngle:n,pixelMargin:r,x:i,y:s,outerRadius:o,innerRadius:a}=t;let l=r/o;e.beginPath(),e.arc(i,s,o,n-l,A+l),a>r?(l=r/a,e.arc(i,s,a,A+l,n-l,!0)):e.arc(i,s,r,A+RA,n-RA),e.closePath(),e.clip()}function $H(e){return g1(e,["outerStart","outerEnd","innerStart","innerEnd"])}function qH(e,t,A,n){const r=$H(e.options.borderRadius),i=(A-t)/2,s=Math.min(i,n*t/2),o=a=>{const l=(A-Math.min(i,a))*n/2;return nn(a,0,Math.min(i,l))};return{outerStart:o(r.outerStart),outerEnd:o(r.outerEnd),innerStart:nn(r.innerStart,0,s),innerEnd:nn(r.innerEnd,0,s)}}function Sa(e,t,A,n){return{x:A+e*Math.cos(t),y:n+e*Math.sin(t)}}function Dh(e,t,A,n,r,i){const{x:s,y:o,startAngle:a,pixelMargin:l,innerRadius:c}=t,u=Math.max(t.outerRadius+n+A-l,0),d=c>0?c+n+A+l:0;let f=0;const m=r-a;if(n){const ft=c>0?c-n:0,lt=u>0?u-n:0,ct=(ft+lt)/2,at=ct!==0?m*ct/(ct+n):m;f=(m-at)/2}const B=Math.max(.001,m*u-A/Ve)/u,v=(m-B)/2,b=a+v+f,C=r-v-f,{outerStart:Q,outerEnd:_,innerStart:H,innerEnd:W}=qH(t,d,u,C-b),R=u-Q,O=u-_,k=b+Q/R,V=C-_/O,F=d+H,L=d+W,G=b+H/F,q=C-W/L;if(e.beginPath(),i){const ft=(k+V)/2;if(e.arc(s,o,u,k,ft),e.arc(s,o,u,ft,V),_>0){const st=Sa(O,V,s,o);e.arc(st.x,st.y,_,V,C+RA)}const lt=Sa(L,C,s,o);if(e.lineTo(lt.x,lt.y),W>0){const st=Sa(L,q,s,o);e.arc(st.x,st.y,W,C+RA,q+Math.PI)}const ct=(C-W/d+(b+H/d))/2;if(e.arc(s,o,d,C-W/d,ct,!0),e.arc(s,o,d,ct,b+H/d,!0),H>0){const st=Sa(F,G,s,o);e.arc(st.x,st.y,H,G+Math.PI,b-RA)}const at=Sa(R,b,s,o);if(e.lineTo(at.x,at.y),Q>0){const st=Sa(R,k,s,o);e.arc(st.x,st.y,Q,b-RA,k)}}else{e.moveTo(s,o);const ft=Math.cos(k)*u+s,lt=Math.sin(k)*u+o;e.lineTo(ft,lt);const ct=Math.cos(V)*u+s,at=Math.sin(V)*u+o;e.lineTo(ct,at)}e.closePath()}function XH(e,t,A,n,r){const{fullCircles:i,startAngle:s,circumference:o}=t;let a=t.endAngle;if(i){Dh(e,t,A,n,a,r);for(let l=0;l=Ve&&f===0&&c!=="miter"&&WH(e,t,B),i||(Dh(e,t,A,n,B,r),e.stroke())}class rc extends as{constructor(A){super();Nt(this,"circumference");Nt(this,"endAngle");Nt(this,"fullCircles");Nt(this,"innerRadius");Nt(this,"outerRadius");Nt(this,"pixelMargin");Nt(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,A&&Object.assign(this,A)}inRange(A,n,r){const i=this.getProps(["x","y"],r),{angle:s,distance:o}=sC(i,{x:A,y:n}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),f=(this.options.spacing+this.options.borderWidth)/2,m=Ce(d,l-a),B=jc(s,a,l)&&a!==l,v=m>=BA||B,b=Ji(o,c+f,u+f);return v&&b}getCenterPoint(A){const{x:n,y:r,startAngle:i,endAngle:s,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],A),{offset:l,spacing:c}=this.options,u=(i+s)/2,d=(o+a+c+l)/2;return{x:n+Math.cos(u)*d,y:r+Math.sin(u)*d}}tooltipPosition(A){return this.getCenterPoint(A)}draw(A){const{options:n,circumference:r}=this,i=(n.offset||0)/4,s=(n.spacing||0)/2,o=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>BA?Math.floor(r/BA):0,r===0||this.innerRadius<0||this.outerRadius<0)return;A.save();const a=(this.startAngle+this.endAngle)/2;A.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(Ve,r||0)),c=i*l;A.fillStyle=n.backgroundColor,A.strokeStyle=n.borderColor,XH(A,this,c,s,o),YH(A,this,c,s,o),A.restore()}}Nt(rc,"id","arc"),Nt(rc,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),Nt(rc,"defaultRoutes",{backgroundColor:"backgroundColor"}),Nt(rc,"descriptors",{_scriptable:!0,_indexable:A=>A!=="borderDash"});function PC(e,t,A=t){e.lineCap=Ce(A.borderCapStyle,t.borderCapStyle),e.setLineDash(Ce(A.borderDash,t.borderDash)),e.lineDashOffset=Ce(A.borderDashOffset,t.borderDashOffset),e.lineJoin=Ce(A.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ce(A.borderWidth,t.borderWidth),e.strokeStyle=Ce(A.borderColor,t.borderColor)}function JH(e,t,A){e.lineTo(A.x,A.y)}function ZH(e){return e.stepped?bN:e.tension||e.cubicInterpolationMode==="monotone"?yN:JH}function RC(e,t,A={}){const n=e.length,{start:r=0,end:i=n-1}=A,{start:s,end:o}=t,a=Math.max(r,s),l=Math.min(i,o),c=ro&&i>o;return{count:n,start:a,loop:t.loop,ilen:l(s+(l?o-_:_))%i,Q=()=>{B!==v&&(e.lineTo(c,v),e.lineTo(c,B),e.lineTo(c,b))};for(a&&(f=r[C(0)],e.moveTo(f.x,f.y)),d=0;d<=o;++d){if(f=r[C(d)],f.skip)continue;const _=f.x,H=f.y,W=_|0;W===m?(Hv&&(v=H),c=(u*c+_)/++u):(Q(),e.lineTo(_,H),m=W,u=0,B=v=H),b=H}Q()}function m0(e){const t=e.options,A=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!A?eM:tM}function AM(e){return e.stepped?tD:e.tension||e.cubicInterpolationMode==="monotone"?eD:Io}function nM(e,t,A,n){let r=t._path;r||(r=t._path=new Path2D,t.path(r,A,n)&&r.closePath()),PC(e,t.options),e.stroke(r)}function rM(e,t,A,n){const{segments:r,options:i}=t,s=m0(t);for(const o of r)PC(e,i,o.style),e.beginPath(),s(e,t,o,{start:A,end:A+n-1})&&e.closePath(),e.stroke()}const iM=typeof Path2D=="function";function sM(e,t,A,n){iM&&!t.options.segment?nM(e,t,A,n):rM(e,t,A,n)}class Rs extends as{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,A){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;WN(this._points,n,t,r,A),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=oD(this,this.options.segment))}first(){const t=this.segments,A=this.points;return t.length&&A[t[0].start]}last(){const t=this.segments,A=this.points,n=t.length;return n&&A[t[n-1].end]}interpolate(t,A){const n=this.options,r=t[A],i=this.points,s=_C(this,{property:A,start:r,end:r});if(!s.length)return;const o=[],a=AM(n);let l,c;for(l=0,c=s.length;lt!=="borderDash"&&t!=="fill"});function cv(e,t,A,n){const r=e.options,{[A]:i}=e.getProps([A],n);return Math.abs(t-i)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function VC(e){return B0[e%B0.length]}function jC(e){return uv[e%uv.length]}function hM(e,t){return e.borderColor=VC(t),e.backgroundColor=jC(t),++t}function dM(e,t){return e.backgroundColor=e.data.map(()=>VC(t++)),t}function gM(e,t){return e.backgroundColor=e.data.map(()=>jC(t++)),t}function pM(e){let t=0;return(A,n)=>{const r=e.getDatasetMeta(n).controller;r instanceof Ho?t=dM(A,t):r instanceof Uc?t=gM(A,t):r&&(t=hM(A,t))}}function fv(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function mM(e){return e&&(e.borderColor||e.backgroundColor)}function BM(){return CA.borderColor!=="rgba(0,0,0,0.1)"||CA.backgroundColor!=="rgba(0,0,0,0.1)"}var wM={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,A){if(!A.enabled)return;const{data:{datasets:n},options:r}=e.config,{elements:i}=r,s=fv(n)||mM(r)||i&&fv(i)||BM();if(!A.forceOverride&&s)return;const o=pM(e);n.forEach(o)}};function vM(e,t,A,n,r){const i=r.samples||n;if(i>=A)return e.slice(t,t+A);const s=[],o=(A-2)/(i-2);let a=0;const l=t+A-1;let c=t,u,d,f,m,B;for(s[a++]=e[c],u=0;uf&&(f=m,d=e[C],B=C);s[a++]=d,c=B}return s[a++]=e[l],s}function bM(e,t,A,n){let r=0,i=0,s,o,a,l,c,u,d,f,m,B;const v=[],b=t+A-1,C=e[t].x,_=e[b].x-C;for(s=t;sB&&(B=l,d=s),r=(i*r+o.x)/++i;else{const W=s-1;if(!Ne(u)&&!Ne(d)){const R=Math.min(u,d),O=Math.max(u,d);R!==f&&R!==W&&v.push({...e[R],x:r}),O!==f&&O!==W&&v.push({...e[O],x:r})}s>0&&W!==f&&v.push(e[W]),v.push(o),c=H,i=0,m=B=l,u=d=f=s}}return v}function GC(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function hv(e){e.data.datasets.forEach(t=>{GC(t)})}function yM(e,t){const A=t.length;let n=0,r;const{iScale:i}=e,{min:s,max:o,minDefined:a,maxDefined:l}=i.getUserBounds();return a&&(n=nn(Zi(t,i.axis,s).lo,0,A-1)),l?r=nn(Zi(t,i.axis,o).hi+1,n,A)-n:r=A-n,{start:n,count:r}}var CM={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,A)=>{if(!A.enabled){hv(e);return}const n=e.width;e.data.datasets.forEach((r,i)=>{const{_data:s,indexAxis:o}=r,a=e.getDatasetMeta(i),l=s||r.data;if(Ac([o,e.options.indexAxis])==="y"||!a.controller.supportsDecimation)return;const c=e.scales[a.xAxisID];if(c.type!=="linear"&&c.type!=="time"||e.options.parsing)return;let{start:u,count:d}=yM(a,l);const f=A.threshold||4*n;if(d<=f){GC(r);return}Ne(s)&&(r._data=l,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(B){this._data=B}}));let m;switch(A.algorithm){case"lttb":m=vM(l,u,d,n,A);break;case"min-max":m=bM(l,u,d,n);break;default:throw new Error(`Unsupported decimation algorithm '${A.algorithm}'`)}r._decimated=m})},destroy(e){hv(e)}};function xM(e,t,A){const n=e.segments,r=e.points,i=t.points,s=[];for(const o of n){let{start:a,end:l}=o;l=dd(a,l,r);const c=w0(A,r[a],r[l],o.loop);if(!t.segments){s.push({source:o,target:c,start:r[a],end:r[l]});continue}const u=_C(t,c);for(const d of u){const f=w0(A,i[d.start],i[d.end],d.loop),m=FC(o,r,f);for(const B of m)s.push({source:B,target:d,start:{[A]:dv(c,f,"start",Math.max)},end:{[A]:dv(c,f,"end",Math.min)}})}}return s}function w0(e,t,A,n){if(n)return;let r=t[e],i=A[e];return e==="angle"&&(r=_n(r),i=_n(i)),{property:e,start:r,end:i}}function FM(e,t){const{x:A=null,y:n=null}=e||{},r=t.points,i=[];return t.segments.forEach(({start:s,end:o})=>{o=dd(s,o,r);const a=r[s],l=r[o];n!==null?(i.push({x:a.x,y:n}),i.push({x:l.x,y:n})):A!==null&&(i.push({x:A,y:a.y}),i.push({x:A,y:l.y}))}),i}function dd(e,t,A){for(;t>e;t--){const n=A[t];if(!isNaN(n.x)&&!isNaN(n.y))break}return t}function dv(e,t,A,n){return e&&t?n(e[A],t[A]):e?e[A]:t?t[A]:0}function WC(e,t){let A=[],n=!1;return yA(e)?(n=!0,A=e):A=FM(e,t),A.length?new Rs({points:A,options:{tension:0},_loop:n,_fullLoop:n}):null}function gv(e){return e&&e.fill!==!1}function _M(e,t,A){let r=e[t].fill;const i=[t];let s;if(!A)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!SA(r))return r;if(s=e[r],!s)return!1;if(s.visible)return r;i.push(r),r=s.fill}return!1}function UM(e,t,A){const n=SM(e);if(He(n))return isNaN(n.value)?!1:n;let r=parseFloat(n);return SA(r)&&Math.floor(r)===r?QM(n[0],t,r,A):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function QM(e,t,A,n){return(e==="-"||e==="+")&&(A=t+A),A===t||A<0||A>=n?!1:A}function EM(e,t){let A=null;return e==="start"?A=t.bottom:e==="end"?A=t.top:He(e)?A=t.getPixelForValue(e.value):t.getBasePixel&&(A=t.getBasePixel()),A}function IM(e,t,A){let n;return e==="start"?n=A:e==="end"?n=t.options.reverse?t.min:t.max:He(e)?n=e.value:n=t.getBaseValue(),n}function SM(e){const t=e.options,A=t.fill;let n=Ce(A&&A.target,A);return n===void 0&&(n=!!t.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function LM(e){const{scale:t,index:A,line:n}=e,r=[],i=n.segments,s=n.points,o=kM(t,A);o.push(WC({x:null,y:t.bottom},n));for(let a=0;a=0;--s){const o=r[s].$filler;o&&(o.line.updateControlPoints(i,o.axis),n&&o.fill&&up(e.ctx,o,i))}},beforeDatasetsDraw(e,t,A){if(A.drawTime!=="beforeDatasetsDraw")return;const n=e.getSortedVisibleDatasetMetas();for(let r=n.length-1;r>=0;--r){const i=n[r].$filler;gv(i)&&up(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,A){const n=t.meta.$filler;!gv(n)||A.drawTime!=="beforeDatasetDraw"||up(e.ctx,n,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const wv=(e,t)=>{let{boxHeight:A=t,boxWidth:n=t}=e;return e.usePointStyle&&(A=Math.min(A,t),n=e.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:A,itemHeight:Math.max(t,A)}},jM=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class vv extends as{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,A,n){this.maxWidth=t,this.maxHeight=A,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let A=hA(t.generateLabels,[this.chart],this)||[];t.filter&&(A=A.filter(n=>t.filter(n,this.chart.data))),t.sort&&(A=A.sort((n,r)=>t.sort(n,r,this.chart.data))),this.options.reverse&&A.reverse(),this.legendItems=A}fit(){const{options:t,ctx:A}=this;if(!t.display){this.width=this.height=0;return}const n=t.labels,r=ZA(n.font),i=r.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:a}=wv(n,i);let l,c;A.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(s,i,o,a)+10):(c=this.maxHeight,l=this._fitCols(s,r,o,a)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,A,n,r){const{ctx:i,maxWidth:s,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+o;let u=t;i.textAlign="left",i.textBaseline="middle";let d=-1,f=-c;return this.legendItems.forEach((m,B)=>{const v=n+A/2+i.measureText(m.text).width;(B===0||l[l.length-1]+v+2*o>s)&&(u+=c,l[l.length-(B>0?0:1)]=0,f+=c,d++),a[B]={left:0,top:f,row:d,width:v,height:r},l[l.length-1]+=v+o}),u}_fitCols(t,A,n,r){const{ctx:i,maxHeight:s,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=s-t;let u=o,d=0,f=0,m=0,B=0;return this.legendItems.forEach((v,b)=>{const{itemWidth:C,itemHeight:Q}=GM(n,A,i,v,r);b>0&&f+Q+2*o>c&&(u+=d+o,l.push({width:d,height:f}),m+=d+o,B++,d=f=0),a[b]={left:m,top:f,col:B,width:C,height:Q},d=Math.max(d,C),f+=Q+o}),u+=d,l.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:A,options:{align:n,labels:{padding:r},rtl:i}}=this,s=qa(i,this.left,this.width);if(this.isHorizontal()){let o=0,a=Cn(n,this.left+r,this.right-this.lineWidths[o]);for(const l of A)o!==l.row&&(o=l.row,a=Cn(n,this.left+r,this.right-this.lineWidths[o])),l.top+=this.top+t+r,l.left=s.leftForLtr(s.x(a),l.width),a+=l.width+r}else{let o=0,a=Cn(n,this.top+t+r,this.bottom-this.columnSizes[o].height);for(const l of A)l.col!==o&&(o=l.col,a=Cn(n,this.top+t+r,this.bottom-this.columnSizes[o].height)),l.top=a,l.left+=this.left+r,l.left=s.leftForLtr(s.x(l.left),l.width),a+=l.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;cd(t,this),this._draw(),ud(t)}}_draw(){const{options:t,columnSizes:A,lineWidths:n,ctx:r}=this,{align:i,labels:s}=t,o=CA.color,a=qa(t.rtl,this.left,this.width),l=ZA(s.font),{padding:c}=s,u=l.size,d=u/2;let f;this.drawTitle(),r.textAlign=a.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:m,boxHeight:B,itemHeight:v}=wv(s,u),b=function(W,R,O){if(isNaN(m)||m<=0||isNaN(B)||B<0)return;r.save();const k=Ce(O.lineWidth,1);if(r.fillStyle=Ce(O.fillStyle,o),r.lineCap=Ce(O.lineCap,"butt"),r.lineDashOffset=Ce(O.lineDashOffset,0),r.lineJoin=Ce(O.lineJoin,"miter"),r.lineWidth=k,r.strokeStyle=Ce(O.strokeStyle,o),r.setLineDash(Ce(O.lineDash,[])),s.usePointStyle){const V={radius:B*Math.SQRT2/2,pointStyle:O.pointStyle,rotation:O.rotation,borderWidth:k},F=a.xPlus(W,m/2),L=R+d;dC(r,V,F,L,s.pointStyleWidth&&m)}else{const V=R+Math.max((u-B)/2,0),F=a.leftForLtr(W,m),L=Ko(O.borderRadius);r.beginPath(),Object.values(L).some(G=>G!==0)?Gc(r,{x:F,y:V,w:m,h:B,radius:L}):r.rect(F,V,m,B),r.fill(),k!==0&&r.stroke()}r.restore()},C=function(W,R,O){$o(r,O.text,W,R+v/2,l,{strikethrough:O.hidden,textAlign:a.textAlign(O.textAlign)})},Q=this.isHorizontal(),_=this._computeTitleHeight();Q?f={x:Cn(i,this.left+c,this.right-n[0]),y:this.top+c+_,line:0}:f={x:this.left+c,y:Cn(i,this.top+_+c,this.bottom-A[0].height),line:0},yC(this.ctx,t.textDirection);const H=v+c;this.legendItems.forEach((W,R)=>{r.strokeStyle=W.fontColor,r.fillStyle=W.fontColor;const O=r.measureText(W.text).width,k=a.textAlign(W.textAlign||(W.textAlign=s.textAlign)),V=m+d+O;let F=f.x,L=f.y;a.setWidth(this.width),Q?R>0&&F+V+c>this.right&&(L=f.y+=H,f.line++,F=f.x=Cn(i,this.left+c,this.right-n[f.line])):R>0&&L+H>this.bottom&&(F=f.x=F+A[f.line].width+c,f.line++,L=f.y=Cn(i,this.top+_+c,this.bottom-A[f.line].height));const G=a.x(F);if(b(G,L,W),F=cN(k,F+m+d,Q?F+V:this.right,t.rtl),C(a.x(F),L,W),Q)f.x+=V+c;else if(typeof W.text!="string"){const q=l.lineHeight;f.y+=$C(W,q)+c}else f.y+=H}),CC(this.ctx,t.textDirection)}drawTitle(){const t=this.options,A=t.title,n=ZA(A.font),r=Sn(A.padding);if(!A.display)return;const i=qa(t.rtl,this.left,this.width),s=this.ctx,o=A.position,a=n.size/2,l=r.top+a;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=Cn(t.align,u,this.right-d);else{const m=this.columnSizes.reduce((B,v)=>Math.max(B,v.height),0);c=l+Cn(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const f=Cn(o,u,u+d);s.textAlign=i.textAlign(h1(o)),s.textBaseline="middle",s.strokeStyle=A.color,s.fillStyle=A.color,s.font=n.string,$o(s,A.text,f,c,n)}_computeTitleHeight(){const t=this.options.title,A=ZA(t.font),n=Sn(t.padding);return t.display?A.lineHeight+n.height:0}_getLegendItemAt(t,A){let n,r,i;if(Ji(t,this.left,this.right)&&Ji(A,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;ni.length>s.length?i:s)),t+A.size/2+n.measureText(r).width}function zM(e,t,A){let n=e;return typeof t.text!="string"&&(n=$C(t,A)),n}function $C(e,t){const A=e.text?e.text.length:0;return t*A}function $M(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var qM={id:"legend",_element:vv,start(e,t,A){const n=e.legend=new vv({ctx:e.ctx,options:A,chart:e});En.configure(e,n,A),En.addBox(e,n)},stop(e){En.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,A){const n=e.legend;En.configure(e,n,A),n.options=A},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,A){const n=t.datasetIndex,r=A.chart;r.isDatasetVisible(n)?(r.hide(n),t.hidden=!0):(r.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:A,pointStyle:n,textAlign:r,color:i,useBorderRadius:s,borderRadius:o}}=e.legend.options;return e._getSortedDatasetMetas().map(a=>{const l=a.controller.getStyle(A?0:void 0),c=Sn(l.borderWidth);return{text:t[a.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!a.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:n||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:s&&(o||l.borderRadius),datasetIndex:a.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class y1 extends as{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,A){const n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=A;const r=yA(n.text)?n.text.length:1;this._padding=Sn(n.padding);const i=r*ZA(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:A,left:n,bottom:r,right:i,options:s}=this,o=s.align;let a=0,l,c,u;return this.isHorizontal()?(c=Cn(o,n,i),u=A+t,l=i-n):(s.position==="left"?(c=n+t,u=Cn(o,r,A),a=Ve*-.5):(c=i-t,u=Cn(o,A,r),a=Ve*.5),l=r-A),{titleX:c,titleY:u,maxWidth:l,rotation:a}}draw(){const t=this.ctx,A=this.options;if(!A.display)return;const n=ZA(A.font),i=n.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:a,rotation:l}=this._drawArgs(i);$o(t,A.text,0,0,n,{color:A.color,maxWidth:a,rotation:l,textAlign:h1(A.align),textBaseline:"middle",translation:[s,o]})}}function XM(e,t){const A=new y1({ctx:e.ctx,options:t,chart:e});En.configure(e,A,t),En.addBox(e,A),e.titleBlock=A}var YM={id:"title",_element:y1,start(e,t,A){XM(e,A)},stop(e){const t=e.titleBlock;En.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,A){const n=e.titleBlock;En.configure(e,n,A),n.options=A},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Sf=new WeakMap;var JM={id:"subtitle",start(e,t,A){const n=new y1({ctx:e.ctx,options:A,chart:e});En.configure(e,n,A),En.addBox(e,n),Sf.set(e,n)},stop(e){En.removeBox(e,Sf.get(e)),Sf.delete(e)},beforeUpdate(e,t,A){const n=Sf.get(e);En.configure(e,n,A),n.options=A},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ic={average(e){if(!e.length)return!1;let t,A,n=new Set,r=0,i=0;for(t=0,A=e.length;to+a)/n.size,y:r/i}},nearest(e,t){if(!e.length)return!1;let A=t.x,n=t.y,r=Number.POSITIVE_INFINITY,i,s,o;for(i=0,s=e.length;i-1?e.split(` `):e}function ZM(e,t){const{element:A,datasetIndex:n,index:r}=t,i=e.getDatasetMeta(n).controller,{label:s,value:o}=i.getLabelAndValue(r);return{chart:e,label:s,parsed:i.getParsed(r),raw:e.data.datasets[n].data[r],formattedValue:o,dataset:i.getDataset(),dataIndex:r,datasetIndex:n,element:A}}function bv(e,t){const A=e.chart.ctx,{body:n,footer:r,title:i}=e,{boxWidth:s,boxHeight:o}=t,a=ZA(t.bodyFont),l=ZA(t.titleFont),c=ZA(t.footerFont),u=i.length,d=r.length,f=n.length,m=Sn(t.padding);let B=m.height,v=0,b=n.reduce((_,H)=>_+H.before.length+H.lines.length+H.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,u&&(B+=u*l.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),b){const _=t.displayColors?Math.max(o,a.lineHeight):a.lineHeight;B+=f*_+(b-f)*a.lineHeight+(b-1)*t.bodySpacing}d&&(B+=t.footerMarginTop+d*c.lineHeight+(d-1)*t.footerSpacing);let C=0;const Q=function(_){v=Math.max(v,A.measureText(_).width+C)};return A.save(),A.font=l.string,Je(e.title,Q),A.font=a.string,Je(e.beforeBody.concat(e.afterBody),Q),C=t.displayColors?s+2+t.boxPadding:0,Je(n,_=>{Je(_.before,Q),Je(_.lines,Q),Je(_.after,Q)}),C=0,A.font=c.string,Je(e.footer,Q),A.restore(),v+=m.width,{width:v,height:B}}function tT(e,t){const{y:A,height:n}=t;return Ae.height-n/2?"bottom":"center"}function eT(e,t,A,n){const{x:r,width:i}=n,s=A.caretSize+A.caretPadding;if(e==="left"&&r+i+s>t.width||e==="right"&&r-i-s<0)return!0}function AT(e,t,A,n){const{x:r,width:i}=A,{width:s,chartArea:{left:o,right:a}}=e;let l="center";return n==="center"?l=r<=(o+a)/2?"left":"right":r<=i/2?l="left":r>=s-i/2&&(l="right"),eT(l,e,t,A)&&(l="center"),l}function yv(e,t,A){const n=A.yAlign||t.yAlign||tT(e,A);return{xAlign:A.xAlign||t.xAlign||AT(e,t,A,n),yAlign:n}}function nT(e,t){let{x:A,width:n}=e;return t==="right"?A-=n:t==="center"&&(A-=n/2),A}function rT(e,t,A){let{y:n,height:r}=e;return t==="top"?n+=A:t==="bottom"?n-=r+A:n-=r/2,n}function Cv(e,t,A,n){const{caretSize:r,caretPadding:i,cornerRadius:s}=e,{xAlign:o,yAlign:a}=A,l=r+i,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:f}=Ko(s);let m=nT(t,o);const B=rT(t,a,l);return a==="center"?o==="left"?m+=l:o==="right"&&(m-=l):o==="left"?m-=Math.max(c,d)+r:o==="right"&&(m+=Math.max(u,f)+r),{x:nn(m,0,n.width-t.width),y:nn(B,0,n.height-t.height)}}function Lf(e,t,A){const n=Sn(A.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-n.right:e.x+n.left}function xv(e){return si([],Gi(e))}function iT(e,t,A){return Js(e,{tooltip:t,tooltipItems:A,type:"tooltip"})}function Fv(e,t){const A=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return A?e.override(A):e}const qC={beforeTitle:Vi,title(e){if(e.length>0){const t=e[0],A=t.chart.data.labels,n=A?A.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex"u"?qC[t].call(A,n):r}class v0 extends as{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const A=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&A.options.animation&&n.animations,i=new QC(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=iT(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,A){const{callbacks:n}=A,r=Wn(n,"beforeTitle",this,t),i=Wn(n,"title",this,t),s=Wn(n,"afterTitle",this,t);let o=[];return o=si(o,Gi(r)),o=si(o,Gi(i)),o=si(o,Gi(s)),o}getBeforeBody(t,A){return xv(Wn(A.callbacks,"beforeBody",this,t))}getBody(t,A){const{callbacks:n}=A,r=[];return Je(t,i=>{const s={before:[],lines:[],after:[]},o=Fv(n,i);si(s.before,Gi(Wn(o,"beforeLabel",this,i))),si(s.lines,Wn(o,"label",this,i)),si(s.after,Gi(Wn(o,"afterLabel",this,i))),r.push(s)}),r}getAfterBody(t,A){return xv(Wn(A.callbacks,"afterBody",this,t))}getFooter(t,A){const{callbacks:n}=A,r=Wn(n,"beforeFooter",this,t),i=Wn(n,"footer",this,t),s=Wn(n,"afterFooter",this,t);let o=[];return o=si(o,Gi(r)),o=si(o,Gi(i)),o=si(o,Gi(s)),o}_createItems(t){const A=this._active,n=this.chart.data,r=[],i=[],s=[];let o=[],a,l;for(a=0,l=A.length;at.filter(c,u,d,n))),t.itemSort&&(o=o.sort((c,u)=>t.itemSort(c,u,n))),Je(o,c=>{const u=Fv(t.callbacks,c);r.push(Wn(u,"labelColor",this,c)),i.push(Wn(u,"labelPointStyle",this,c)),s.push(Wn(u,"labelTextColor",this,c))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=o,o}update(t,A){const n=this.options.setContext(this.getContext()),r=this._active;let i,s=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{const o=ic[n.position].call(this,r,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const a=this._size=bv(this,n),l=Object.assign({},o,a),c=yv(this.chart,n,l),u=Cv(n,l,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,i={opacity:1,x:u.x,y:u.y,width:a.width,height:a.height,caretX:o.x,caretY:o.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:A})}drawCaret(t,A,n,r){const i=this.getCaretPosition(t,n,r);A.lineTo(i.x1,i.y1),A.lineTo(i.x2,i.y2),A.lineTo(i.x3,i.y3)}getCaretPosition(t,A,n){const{xAlign:r,yAlign:i}=this,{caretSize:s,cornerRadius:o}=n,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:u}=Ko(o),{x:d,y:f}=t,{width:m,height:B}=A;let v,b,C,Q,_,H;return i==="center"?(_=f+B/2,r==="left"?(v=d,b=v-s,Q=_+s,H=_-s):(v=d+m,b=v+s,Q=_-s,H=_+s),C=v):(r==="left"?b=d+Math.max(a,c)+s:r==="right"?b=d+m-Math.max(l,u)-s:b=this.caretX,i==="top"?(Q=f,_=Q-s,v=b-s,C=b+s):(Q=f+B,_=Q+s,v=b+s,C=b-s),H=Q),{x1:v,x2:b,x3:C,y1:Q,y2:_,y3:H}}drawTitle(t,A,n){const r=this.title,i=r.length;let s,o,a;if(i){const l=qa(n.rtl,this.x,this.width);for(t.x=Lf(this,n.titleAlign,n),A.textAlign=l.textAlign(n.titleAlign),A.textBaseline="middle",s=ZA(n.titleFont),o=n.titleSpacing,A.fillStyle=n.titleColor,A.font=s.string,a=0;aC!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Gc(t,{x:B,y:m,w:l,h:a,radius:b}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Gc(t,{x:v,y:m+1,w:l-2,h:a-2,radius:b}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(B,m,l,a),t.strokeRect(B,m,l,a),t.fillStyle=s.backgroundColor,t.fillRect(v,m+1,l-2,a-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,A,n){const{body:r}=this,{bodySpacing:i,bodyAlign:s,displayColors:o,boxHeight:a,boxWidth:l,boxPadding:c}=n,u=ZA(n.bodyFont);let d=u.lineHeight,f=0;const m=qa(n.rtl,this.x,this.width),B=function(O){A.fillText(O,m.x(t.x+f),t.y+d/2),t.y+=d+i},v=m.textAlign(s);let b,C,Q,_,H,W,R;for(A.textAlign=s,A.textBaseline="middle",A.font=u.string,t.x=Lf(this,v,n),A.fillStyle=n.bodyColor,Je(this.beforeBody,B),f=o&&v!=="right"?s==="center"?l/2+c:l+2+c:0,_=0,W=r.length;_0&&A.stroke()}_updateAnimationTarget(t){const A=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){const s=ic[t.position].call(this,this._active,this._eventPosition);if(!s)return;const o=this._size=bv(this,t),a=Object.assign({},s,this._size),l=yv(A,t,a),c=Cv(t,a,l,A);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=o.width,this.height=o.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const A=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(A);const r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=Sn(A.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;A.enabled&&o&&(t.save(),t.globalAlpha=n,this.drawBackground(i,t,r,A),yC(t,A.textDirection),i.y+=s.top,this.drawTitle(i,t,A),this.drawBody(i,t,A),this.drawFooter(i,t,A),CC(t,A.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,A){const n=this._active,r=t.map(({datasetIndex:o,index:a})=>{const l=this.chart.getDatasetMeta(o);if(!l)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:l.data[a],index:a}}),i=!Eh(n,r),s=this._positionChanged(r,A);(i||s)&&(this._active=r,this._eventPosition=A,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,A,n=!0){if(A&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,i=this._active||[],s=this._getActiveElements(t,i,A,n),o=this._positionChanged(s,t),a=A||!Eh(s,i)||o;return a&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,A))),a}_getActiveElements(t,A,n,r){const i=this.options;if(t.type==="mouseout")return[];if(!r)return A.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const s=this.chart.getElementsAtEventForMode(t,i.mode,i,n);return i.reverse&&s.reverse(),s}_positionChanged(t,A){const{caretX:n,caretY:r,options:i}=this,s=ic[i.position].call(this,t,A);return s!==!1&&(n!==s.x||r!==s.y)}}Nt(v0,"positioners",ic);var sT={id:"tooltip",_element:v0,positioners:ic,afterInit(e,t,A){A&&(e.tooltip=new v0({chart:e,options:A}))},beforeUpdate(e,t,A){e.tooltip&&e.tooltip.initialize(A)},reset(e,t,A){e.tooltip&&e.tooltip.initialize(A)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const A={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...A,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",A)}},afterEvent(e,t){if(e.tooltip){const A=t.replay;e.tooltip.handleEvent(t.event,A,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:qC},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},oT=Object.freeze({__proto__:null,Colors:wM,Decimation:CM,Filler:VM,Legend:qM,SubTitle:JM,Title:YM,Tooltip:sT});const aT=(e,t,A,n)=>(typeof t=="string"?(A=e.push(t)-1,n.unshift({index:A,label:t})):isNaN(t)&&(A=null),A);function lT(e,t,A,n){const r=e.indexOf(t);if(r===-1)return aT(e,t,A,n);const i=e.lastIndexOf(t);return r!==i?A:r}const cT=(e,t)=>e===null?null:nn(Math.round(e),0,t);function _v(e){const t=this.getLabels();return e>=0&&eA.length-1?null:this.getPixelForValue(A[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Nt(b0,"id","category"),Nt(b0,"defaults",{ticks:{callback:_v}});function uT(e,t){const A=[],{bounds:r,step:i,min:s,max:o,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,f=i||1,m=c-1,{min:B,max:v}=t,b=!Ne(s),C=!Ne(o),Q=!Ne(l),_=(v-B)/(u+1);let H=bw((v-B)/m/f)*f,W,R,O,k;if(H<1e-14&&!b&&!C)return[{value:B},{value:v}];k=Math.ceil(v/H)-Math.floor(B/H),k>m&&(H=bw(k*H/m/f)*f),Ne(a)||(W=Math.pow(10,a),H=Math.ceil(H*W)/W),r==="ticks"?(R=Math.floor(B/H)*H,O=Math.ceil(v/H)*H):(R=B,O=v),b&&C&&i&&nN((o-s)/i,H/1e3)?(k=Math.round(Math.min((o-s)/H,c)),H=(o-s)/k,R=s,O=o):Q?(R=b?s:R,O=C?o:O,k=l-1,H=(O-R)/k):(k=(O-R)/H,xc(k,Math.round(k),H/1e3)?k=Math.round(k):k=Math.ceil(k));const V=Math.max(yw(H),yw(R));W=Math.pow(10,Ne(a)?V:a),R=Math.round(R*W)/W,O=Math.round(O*W)/W;let F=0;for(b&&(d&&R!==s?(A.push({value:s}),Ro)break;A.push({value:L})}return C&&d&&O!==o?A.length&&xc(A[A.length-1].value,o,Uv(o,_,e))?A[A.length-1].value=o:A.push({value:o}):(!C||O===o)&&A.push({value:O}),A}function Uv(e,t,{horizontal:A,minRotation:n}){const r=Mr(n),i=(A?Math.sin(r):Math.cos(r))||.001,s=.75*t*(""+e).length;return Math.min(t/i,s)}class Hh extends Yo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,A){return Ne(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:A,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this;const s=a=>r=A?r:a,o=a=>i=n?i:a;if(t){const a=pi(r),l=pi(i);a<0&&l<0?o(0):a>0&&l>0&&s(0)}if(r===i){let a=i===0?1:Math.abs(i*.05);o(i+a),t||s(r-a)}this.min=r,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:A,stepSize:n}=t,r;return n?(r=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),A=A||11),A&&(r=Math.min(A,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,A=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r={maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:A.precision,step:A.stepSize,count:A.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:A.minRotation||0,includeBounds:A.includeBounds!==!1},i=this._range||this,s=uT(r,i);return t.bounds==="ticks"&&iC(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let A=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const r=(n-A)/Math.max(t.length-1,1)/2;A-=r,n+=r}this._startValue=A,this._endValue=n,this._valueRange=n-A}getLabelForValue(t){return Au(t,this.chart.options.locale,this.options.ticks.format)}}class y0 extends Hh{determineDataLimits(){const{min:t,max:A}=this.getMinMax(!0);this.min=SA(t)?t:0,this.max=SA(A)?A:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),A=t?this.width:this.height,n=Mr(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(A/Math.min(40,i.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Nt(y0,"id","linear"),Nt(y0,"defaults",{ticks:{callback:ld.formatters.numeric}});const zc=e=>Math.floor(Os(e)),Fo=(e,t)=>Math.pow(10,zc(e)+t);function Qv(e){return e/Math.pow(10,zc(e))===1}function Ev(e,t,A){const n=Math.pow(10,A),r=Math.floor(e/n);return Math.ceil(t/n)-r}function fT(e,t){const A=t-e;let n=zc(A);for(;Ev(e,t,n)>10;)n++;for(;Ev(e,t,n)<10;)n--;return Math.min(n,zc(e))}function hT(e,{min:t,max:A}){t=ar(e.min,t);const n=[],r=zc(t);let i=fT(t,A),s=i<0?Math.pow(10,Math.abs(i)):1;const o=Math.pow(10,i),a=r>i?Math.pow(10,r):0,l=Math.round((t-a)*s)/s,c=Math.floor((t-a)/o/10)*o*10;let u=Math.floor((l-c)/Math.pow(10,i)),d=ar(e.min,Math.round((a+c+u*Math.pow(10,i))*s)/s);for(;d=10?u=u<15?15:20:u++,u>=20&&(i++,u=2,s=i>=0?1:s),d=Math.round((a+c+u*Math.pow(10,i))*s)/s;const f=ar(e.max,d);return n.push({value:f,major:Qv(f),significand:u}),n}class C0 extends Yo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,A){const n=Hh.prototype.parse.apply(this,[t,A]);if(n===0){this._zero=!0;return}return SA(n)&&n>0?n:null}determineDataLimits(){const{min:t,max:A}=this.getMinMax(!0);this.min=SA(t)?Math.max(0,t):null,this.max=SA(A)?Math.max(0,A):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!SA(this._userMin)&&(this.min=t===Fo(this.min,0)?Fo(this.min,-1):Fo(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:A}=this.getUserBounds();let n=this.min,r=this.max;const i=o=>n=t?n:o,s=o=>r=A?r:o;n===r&&(n<=0?(i(1),s(10)):(i(Fo(n,-1)),s(Fo(r,1)))),n<=0&&i(Fo(r,-1)),r<=0&&s(Fo(n,1)),this.min=n,this.max=r}buildTicks(){const t=this.options,A={min:this._userMin,max:this._userMax},n=hT(A,this);return t.bounds==="ticks"&&iC(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(t){return t===void 0?"0":Au(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Os(t),this._valueRange=Os(this.max)-Os(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Os(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const A=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+A*this._valueRange)}}Nt(C0,"id","logarithmic"),Nt(C0,"defaults",{ticks:{callback:ld.formatters.logarithmic,major:{enabled:!0}}});function x0(e){const t=e.ticks;if(t.display&&e.display){const A=Sn(t.backdropPadding);return Ce(t.font&&t.font.size,CA.font.size)+A.height}return 0}function dT(e,t,A){return A=yA(A)?A:[A],{w:vN(e,t.string,A),h:A.length*t.lineHeight}}function Iv(e,t,A,n,r){return e===n||e===r?{start:t-A/2,end:t+A/2}:er?{start:t-A,end:t}:{start:t,end:t+A}}function gT(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},A=Object.assign({},t),n=[],r=[],i=e._pointLabels.length,s=e.options.pointLabels,o=s.centerPointLabels?Ve/i:0;for(let a=0;at.r&&(o=(n.end-t.r)/i,e.r=Math.max(e.r,t.r+o)),r.startt.b&&(a=(r.end-t.b)/s,e.b=Math.max(e.b,t.b+a))}function mT(e,t,A){const n=e.drawingArea,{extra:r,additionalAngle:i,padding:s,size:o}=A,a=e.getPointPosition(t,n+r+s,i),l=Math.round(u1(_n(a.angle+RA))),c=yT(a.y,o.h,l),u=vT(l),d=bT(a.x,o.w,u);return{visible:!0,x:a.x,y:c,textAlign:u,left:d,top:c,right:d+o.w,bottom:c+o.h}}function BT(e,t){if(!t)return!0;const{left:A,top:n,right:r,bottom:i}=e;return!(ts({x:A,y:n},t)||ts({x:A,y:i},t)||ts({x:r,y:n},t)||ts({x:r,y:i},t))}function wT(e,t,A){const n=[],r=e._pointLabels.length,i=e.options,{centerPointLabels:s,display:o}=i.pointLabels,a={extra:x0(i)/2,additionalAngle:s?Ve/r:0};let l;for(let c=0;c270||A<90)&&(e-=t),e}function CT(e,t,A){const{left:n,top:r,right:i,bottom:s}=A,{backdropColor:o}=t;if(!Ne(o)){const a=Ko(t.borderRadius),l=Sn(t.backdropPadding);e.fillStyle=o;const c=n-l.left,u=r-l.top,d=i-n+l.width,f=s-r+l.height;Object.values(a).some(m=>m!==0)?(e.beginPath(),Gc(e,{x:c,y:u,w:d,h:f,radius:a}),e.fill()):e.fillRect(c,u,d,f)}}function xT(e,t){const{ctx:A,options:{pointLabels:n}}=e;for(let r=t-1;r>=0;r--){const i=e._pointLabelItems[r];if(!i.visible)continue;const s=n.setContext(e.getPointLabelContext(r));CT(A,s,i);const o=ZA(s.font),{x:a,y:l,textAlign:c}=i;$o(A,e._pointLabels[r],a,l+o.lineHeight/2,o,{color:s.color,textAlign:c,textBaseline:"middle"})}}function XC(e,t,A,n){const{ctx:r}=e;if(A)r.arc(e.xCenter,e.yCenter,t,0,BA);else{let i=e.getPointPosition(0,t);r.moveTo(i.x,i.y);for(let s=1;s{const r=hA(this.options.pointLabels.callback,[A,n],this);return r||r===0?r:""}).filter((A,n)=>this.chart.getDataVisibility(n))}fit(){const t=this.options;t.display&&t.pointLabels.display?gT(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,A,n,r){this.xCenter+=Math.floor((t-A)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,A,n,r))}getIndexAngle(t){const A=BA/(this._pointLabels.length||1),n=this.options.startAngle||0;return _n(t*A+Mr(n))}getDistanceFromCenterForValue(t){if(Ne(t))return NaN;const A=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*A:(t-this.min)*A}getValueForDistanceFromCenter(t){if(Ne(t))return NaN;const A=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-A:this.min+A}getPointLabelContext(t){const A=this._pointLabels||[];if(t>=0&&t{if(u!==0||u===0&&this.min<0){a=this.getDistanceFromCenterForValue(c.value);const d=this.getContext(u),f=r.setContext(d),m=i.setContext(d);FT(this,f,a,s,m)}}),n.display){for(t.save(),o=s-1;o>=0;o--){const c=n.setContext(this.getPointLabelContext(o)),{color:u,lineWidth:d}=c;!d||!u||(t.lineWidth=d,t.strokeStyle=u,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,a=this.getDistanceFromCenterForValue(A.reverse?this.min:this.max),l=this.getPointPosition(o,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,A=this.options,n=A.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let i,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((o,a)=>{if(a===0&&this.min>=0&&!A.reverse)return;const l=n.setContext(this.getContext(a)),c=ZA(l.font);if(i=this.getDistanceFromCenterForValue(this.ticks[a].value),l.showLabelBackdrop){t.font=c.string,s=t.measureText(o.label).width,t.fillStyle=l.backdropColor;const u=Sn(l.backdropPadding);t.fillRect(-s/2-u.left,-i-c.size/2-u.top,s+u.width,c.size+u.height)}$o(t,o.label,0,-i,c,{color:l.color,strokeColor:l.textStrokeColor,strokeWidth:l.textStrokeWidth})}),t.restore()}drawTitle(){}}Nt(sc,"id","radialLinear"),Nt(sc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ld.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Nt(sc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Nt(sc,"descriptors",{angleLines:{_fallback:"grid"}});const gd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Yn=Object.keys(gd);function Sv(e,t){return e-t}function Lv(e,t){if(Ne(t))return null;const A=e._adapter,{parser:n,round:r,isoWeekday:i}=e._parseOpts;let s=t;return typeof n=="function"&&(s=n(s)),SA(s)||(s=typeof n=="string"?A.parse(s,n):A.parse(s)),s===null?null:(r&&(s=r==="week"&&(Al(i)||i===!0)?A.startOf(s,"isoWeek",i):A.startOf(s,r)),+s)}function kv(e,t,A,n){const r=Yn.length;for(let i=Yn.indexOf(e);i=Yn.indexOf(A);i--){const s=Yn[i];if(gd[s].common&&e._adapter.diff(r,n,s)>=t-1)return s}return Yn[A?Yn.indexOf(A):0]}function QT(e){for(let t=Yn.indexOf(e)+1,A=Yn.length;t=t?A[n]:A[r];e[i]=!0}}function ET(e,t,A,n){const r=e._adapter,i=+r.startOf(t[0].value,n),s=t[t.length-1].value;let o,a;for(o=i;o<=s;o=+r.add(o,1,n))a=A[o],a>=0&&(t[a].major=!0);return t}function Dv(e,t,A){const n=[],r={},i=t.length;let s,o;for(s=0;s+t.value))}initOffsets(t=[]){let A=0,n=0,r,i;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?A=1-r:A=(this.getDecimalForValue(t[1])-r)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?n=i:n=(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;A=nn(A,0,s),n=nn(n,0,s),this._offsets={start:A,end:n,factor:1/(A+1+n)}}_generate(){const t=this._adapter,A=this.min,n=this.max,r=this.options,i=r.time,s=i.unit||kv(i.minUnit,A,n,this._getLabelCapacity(A)),o=Ce(r.ticks.stepSize,1),a=s==="week"?i.isoWeekday:!1,l=Al(a)||a===!0,c={};let u=A,d,f;if(l&&(u=+t.startOf(u,"isoWeek",a)),u=+t.startOf(u,l?"day":s),t.diff(n,A,s)>1e5*o)throw new Error(A+" and "+n+" are too far apart with stepSize of "+o+" "+s);const m=r.ticks.source==="data"&&this.getDataTimestamps();for(d=u,f=0;d+B)}getLabelForValue(t){const A=this._adapter,n=this.options.time;return n.tooltipFormat?A.format(t,n.tooltipFormat):A.format(t,n.displayFormats.datetime)}format(t,A){const r=this.options.time.displayFormats,i=this._unit,s=A||r[i];return this._adapter.format(t,s)}_tickFormatFunction(t,A,n,r){const i=this.options,s=i.ticks.callback;if(s)return hA(s,[t,A,n],this);const o=i.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&o[a],u=l&&o[l],d=n[A],f=l&&u&&d&&d.major;return this._adapter.format(t,r||(f?u:c))}generateTickLabels(t){let A,n,r;for(A=0,n=t.length;A0?o:1}getDataTimestamps(){let t=this._cache.data||[],A,n;if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(A=0,n=r.length;A=e[n].pos&&t<=e[r].pos&&({lo:n,hi:r}=Zi(e,"pos",t)),{pos:i,time:o}=e[n],{pos:s,time:a}=e[r]):(t>=e[n].time&&t<=e[r].time&&({lo:n,hi:r}=Zi(e,"time",t)),{time:i,pos:o}=e[n],{time:s,pos:a}=e[r]);const l=s-i;return l?o+(a-o)*(t-i)/l:o}class F0 extends $c{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),A=this._table=this.buildLookupTable(t);this._minPos=kf(A,this.min),this._tableRange=kf(A,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:A,max:n}=this,r=[],i=[];let s,o,a,l,c;for(s=0,o=t.length;s=A&&l<=n&&r.push(l);if(r.length<2)return[{time:A,pos:0},{time:n,pos:1}];for(s=0,o=r.length;sr-i)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const A=this.getDataTimestamps(),n=this.getLabelTimestamps();return A.length&&n.length?t=this.normalize(A.concat(n)):t=A.length?A:n,t=this._cache.all=t,t}getDecimalForValue(t){return(kf(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const A=this._offsets,n=this.getDecimalForPixel(t)/A.factor-A.end;return kf(this._table,n*this._tableRange+this._minPos,!0)}}Nt(F0,"id","timeseries"),Nt(F0,"defaults",$c.defaults);var IT=Object.freeze({__proto__:null,CategoryScale:b0,LinearScale:y0,LogarithmicScale:C0,RadialLinearScale:sc,TimeScale:$c,TimeSeriesScale:F0});const ST=[HD,fM,oT,IT];Hr.register(...ST);const LT={class:"card visitor-section"},kT={class:"card-header"},NT={class:"card-body"},DT={class:"chart-container"},HT={key:0,class:"empty-chart-msg"},MT={class:"table-container"},TT={class:"data-table"},OT={class:"text-center"},PT={class:"text-center"},RT={key:0},KT={__name:"VisitorSection",props:{data:Object},setup(e){const t=e,A=ge(null);let n=null;const r=ye(()=>{const o=t.data;if(!(o!=null&&o.table))return[];let a=o.table.filter(d=>d.selected!==!1);const l=o.viewMode||"all",c=o.startDate,u=o.endDate;return(c||u)&&(a=a.filter(d=>{const f=!c||d.date>=c,m=!u||d.date<=u;return f&&m})),l==="week"?a=a.slice(-7):l==="month"&&(a=a.slice(-30)),a.map((d,f)=>{const m=a[f-1];if(!m)return{...d,displayDiff:"-",displayIsUp:!0};const B=parseInt(String(d.value).replace(/,/g,"")),v=parseInt(String(m.value).replace(/,/g,""));if(isNaN(B)||isNaN(v)||v===0)return{...d,displayDiff:"-",displayIsUp:!0};const b=((B-v)/v*100).toFixed(1),C=B>=v,Q=(C?"▲ ":"▼ ")+Math.abs(b)+"%";return{...d,displayDiff:Q,displayIsUp:C}})}),i=ye(()=>{const o=r.value;return!o||o.length===0?[]:[...o]}),s=()=>{if(n&&n.destroy(),!A.value)return;const o=A.value.getContext("2d"),a=r.value,l=a.map(u=>u.date),c=a.map(u=>parseInt(String(u.value).replace(/,/g,""))||0);l.length===0&&(l.push("-"),c.push(0)),n=new Hr(o,{type:"line",data:{labels:l,datasets:[{label:"방문자 수",data:c,borderColor:"#2563eb",backgroundColor:"rgba(37, 99, 235, 0.1)",fill:!0,tension:.4,borderWidth:3}]},options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},layout:{padding:{top:0,bottom:0}}}})};return wi(s),Fr(()=>t.data,s,{deep:!0}),(o,a)=>(ht(),Bt("div",LT,[p("div",kT,[p("h3",null,[Vt(qt(IU),{size:20}),a[0]||(a[0]=ie("방문자 수 ",-1))])]),p("div",NT,[Tt(p("div",DT,[p("canvas",{ref_key:"visitorChartCanvas",ref:A},null,512)],512),[[ko,r.value.length>0]]),r.value.length===0?(ht(),Bt("div",HT," 데이터가 충분하지 않아 차트를 불러올 수 없습니다. ")):ue("",!0),p("div",MT,[p("table",TT,[a[2]||(a[2]=p("thead",null,[p("tr",null,[p("th",null,"날짜"),p("th",null,"방문자 수"),p("th",null,"전일 대비")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(i.value,(l,c)=>(ht(),Bt("tr",{key:c},[p("td",OT,kt(l.date||"-"),1),p("td",PT,kt(l.value||"-"),1),p("td",{class:aA(["text-center",l.displayIsUp?"text-up":"text-down"])},kt(l.displayDiff||"-"),3)]))),128)),r.value.length===0?(ht(),Bt("tr",RT,[...a[1]||(a[1]=[p("td",{colspan:"3",class:"empty-table-msg"},"데이터가 없습니다.",-1)])])):ue("",!0)])])])])]))}},VT=LA(KT,[["__scopeId","data-v-87b30dec"]]),jT={class:"card view-section"},GT={class:"card-header"},WT={class:"card-body"},zT={class:"chart-container"},$T={key:0,class:"empty-chart-msg"},qT={class:"table-container"},XT={class:"data-table"},YT={class:"text-center"},JT={class:"text-center"},ZT={key:0},tO={__name:"ViewSection",props:{data:Object},setup(e){const t=e,A=ge(null);let n=null;const r=ye(()=>{const o=t.data;if(!(o!=null&&o.table))return[];let a=o.table.filter(d=>d.selected!==!1);const l=o.viewMode||"all",c=o.startDate,u=o.endDate;return(c||u)&&(a=a.filter(d=>{const f=!c||d.date>=c,m=!u||d.date<=u;return f&&m})),l==="week"?a=a.slice(-7):l==="month"&&(a=a.slice(-30)),a.map((d,f)=>{const m=a[f-1];if(!m)return{...d,displayDiff:"-",displayIsUp:!0};const B=parseInt(String(d.value).replace(/,/g,"")),v=parseInt(String(m.value).replace(/,/g,""));if(isNaN(B)||isNaN(v)||v===0)return{...d,displayDiff:"-",displayIsUp:!0};const b=((B-v)/v*100).toFixed(1),C=B>=v,Q=(C?"▲ ":"▼ ")+Math.abs(b)+"%";return{...d,displayDiff:Q,displayIsUp:C}})}),i=ye(()=>{const o=r.value;return!o||o.length===0?[]:[...o]}),s=()=>{if(n&&n.destroy(),!A.value)return;const o=A.value.getContext("2d"),a=r.value,l=a.map(u=>u.date),c=a.map(u=>parseInt(String(u.value).replace(/,/g,""))||0);l.length===0&&(l.push("-"),c.push(0)),n=new Hr(o,{type:"line",data:{labels:l,datasets:[{label:"조회수",data:c,borderColor:"#0f172a",backgroundColor:"rgba(15, 23, 42, 0.1)",fill:!0,tension:.4,borderWidth:3}]},options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},layout:{padding:{top:0,bottom:0}}}})};return wi(s),Fr(()=>t.data,s,{deep:!0}),(o,a)=>(ht(),Bt("div",jT,[p("div",GT,[p("h3",null,[Vt(qt(BU),{size:20}),a[0]||(a[0]=ie("조회수 ",-1))])]),p("div",WT,[Tt(p("div",zT,[p("canvas",{ref_key:"viewChartCanvas",ref:A},null,512)],512),[[ko,r.value.length>0]]),r.value.length===0?(ht(),Bt("div",$T," 데이터가 충분하지 않아 차트를 불러올 수 없습니다. ")):ue("",!0),p("div",qT,[p("table",XT,[a[2]||(a[2]=p("thead",null,[p("tr",null,[p("th",null,"날짜"),p("th",null,"조회수"),p("th",null,"전일 대비")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(i.value,(l,c)=>(ht(),Bt("tr",{key:c},[p("td",YT,kt(l.date||"-"),1),p("td",JT,kt(l.value||"-"),1),p("td",{class:aA(["text-center",l.displayIsUp?"text-up":"text-down"])},kt(l.displayDiff||"-"),3)]))),128)),r.value.length===0?(ht(),Bt("tr",ZT,[...a[1]||(a[1]=[p("td",{colspan:"3",class:"empty-table-msg"},"데이터가 없습니다.",-1)])])):ue("",!0)])])])])]))}},eO=LA(tO,[["__scopeId","data-v-73412449"]]),AO={class:"card card-full inflow-section"},nO={class:"card-body pt-0",style:{overflow:"visible !important","padding-bottom":"0 !important"}},rO={class:"chart-container-bar main-bar",style:{height:"450px !important","min-height":"450px !important",position:"relative !important",overflow:"visible !important","margin-bottom":"0 !important"}},iO={class:"table-container full-width",style:{position:"relative","z-index":"10"}},sO={class:"data-table"},oO={key:0},aO={key:1},lO={key:0},cO={key:1},uO={key:0},fO=["colspan"],hO={key:0,class:"description-footer mt-8 no-print"},dO={__name:"InflowSection",props:{data:Object},setup(e){const t=e,A=ge(null);let n=null;const r=()=>{const v=new Date;return`${v.getFullYear()}-${String(v.getMonth()+1).padStart(2,"0")}`},i=ye(()=>{var C;const b=(((C=t.data)==null?void 0:C.table)||[]).map(Q=>{if(!Q.month)return"";const _=Q.month.split("-");return _.length>=2?`${_[0]}-${_[1]}`:""}).filter(Boolean);return b.push(r()),[...new Set(b)].sort().reverse()}),s=ge(r());Fr(i,v=>{v.length>0&&(s.value=v[0])},{immediate:!0});const o=(v,b)=>{if(!v)return"";let[C,Q]=v.substring(0,7).split("-").map(Number);for(Q-=b;Q<=0;)Q+=12,C-=1;return`${C}-${String(Q).padStart(2,"0")}`},a=v=>v?`${parseInt(v.split("-")[1],10)}월`:"",l=ye(()=>s.value?o(s.value,1):null),c=ye(()=>s.value?o(s.value,2):null),u=ye(()=>a(l.value)),d=ye(()=>a(c.value)),f=ye(()=>a(s.value)),m=ye(()=>{var W;const v=((W=t.data)==null?void 0:W.table)||[];let b=[];s.value?b=v.filter(R=>(R.month||"").startsWith(s.value)):(b=v.filter(R=>!R.month),b.length===0&&(b=v));const C=l.value?v.filter(R=>(R.month||"").startsWith(l.value)):[],Q=c.value?v.filter(R=>(R.month||"").startsWith(c.value)):[],_=new Set([...b.map(R=>(R.label||"").trim()),...C.map(R=>(R.label||"").trim()),...Q.map(R=>(R.label||"").trim())].filter(R=>R&&R!=="미지정")),H=(R,O)=>R.filter(k=>(k.label||"").trim()===O).reduce((k,V)=>k+(parseFloat(String(V.sum||V.value).replace(/[^0-9.]/g,""))||0),0);return Array.from(_).map(R=>{const O=H(b,R),k=H(C,R),V=H(Q,R),F=b.some(lt=>(lt.label||"").trim()===R)&&C.some(lt=>(lt.label||"").trim()===R)?O-k:null,L=b.some(lt=>(lt.label||"").trim()===R),G=C.some(lt=>(lt.label||"").trim()===R),q=Q.some(lt=>(lt.label||"").trim()===R),ft=F!==null?`${F>0?"+":""}${F.toFixed(2)}%`:"-";return{label:R,value:L?O.toFixed(2):"-",numericValue:O,prev1ValueStr:G?k.toFixed(2):"-",prev2ValueStr:q?V.toFixed(2):"-",prev1Numeric:k,prev2Numeric:V,diff:ft,isUp:F!==null?F>=0:!0,isOther:R==="기타"}}).sort((R,O)=>O.numericValue-R.numericValue)}),B=()=>{if(n&&n.destroy(),!A.value)return;const v=A.value.getContext("2d"),b=m.value.filter(k=>k.label!=="미지정"),C=b.map(k=>k.label),Q=b.map(k=>k.numericValue),_=b.map(k=>k.prev1Numeric),H=b.map(k=>k.prev2Numeric),W=[...Q,..._,...H],R=Math.max(...W,0),O=Math.min(100,Math.ceil((R+10)/10)*10);n=new Hr(v,{type:"bar",data:{labels:C,datasets:[{label:d.value||"전전월 (%)",data:H,backgroundColor:"#cbd5e1",borderRadius:4,barThickness:25},{label:u.value||"전월 (%)",data:_,backgroundColor:"#94a3b8",borderRadius:4,barThickness:25},{label:f.value||"당월 (%)",data:Q,backgroundColor:"#2563eb",borderRadius:4,barThickness:25,order:0}].reverse()},options:{responsive:!0,maintainAspectRatio:!1,layout:{padding:{bottom:20,top:10}},barPercentage:.9,categoryPercentage:.8,scales:{x:{grid:{display:!1},ticks:{font:{size:10,weight:"600"}}},y:{beginAtZero:!0,max:O,grid:{color:"#f1f5f9"},ticks:{callback:k=>k+"%",font:{size:10},stepSize:10}}},plugins:{legend:{display:!0,position:"top",align:"end",labels:{boxWidth:10,usePointStyle:!0,pointStyle:"circle",font:{size:10,weight:"600"},padding:10}},tooltip:{backgroundColor:"#0f172a",padding:12,callbacks:{label:k=>` ${k.dataset.label}: ${k.raw}%`}}}}})};return wi(B),Fr(()=>t.data,B,{deep:!0}),Fr(s,B),(v,b)=>{var C;return ht(),Bt("div",AO,[b[3]||(b[3]=p("div",{class:"card-header border-none"},[p("h3",{class:"text-xl font-bold"},"유입 분석")],-1)),p("div",nO,[p("div",rO,[p("canvas",{ref_key:"inflowChartCanvas",ref:A},null,512)]),p("div",iO,[p("table",sO,[p("thead",null,[p("tr",null,[b[0]||(b[0]=p("th",{width:"80"},"순번",-1)),b[1]||(b[1]=p("th",null,"경로",-1)),d.value?(ht(),Bt("th",oO,kt(d.value),1)):ue("",!0),u.value?(ht(),Bt("th",aO,kt(u.value),1)):ue("",!0),p("th",null,kt(f.value||"수치"),1),b[2]||(b[2]=p("th",null,"전월 대비",-1))])]),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(m.value,(Q,_)=>(ht(),Bt("tr",{key:_},[p("td",null,kt(_+1),1),p("td",null,kt(Q.label),1),d.value?(ht(),Bt("td",lO,kt(Q.prev2ValueStr),1)):ue("",!0),u.value?(ht(),Bt("td",cO,kt(Q.prev1ValueStr),1)):ue("",!0),p("td",null,kt(Q.value),1),p("td",{class:aA(String(Q.diff).includes("-")?"text-down":"text-up")},kt(Q.diff),3)]))),128)),m.value.length?ue("",!0):(ht(),Bt("tr",uO,[p("td",{colspan:d.value&&u.value?6:4,class:"empty"},"선택된 월의 데이터가 없습니다.",8,fO)]))])])]),(C=e.data)!=null&&C.description?(ht(),Bt("div",hO,[p("p",null,kt(e.data.description),1)])):ue("",!0)])])}}},gO=LA(dO,[["__scopeId","data-v-13b371f7"]]),pO={class:"card card-full blog-section"},mO={class:"card-header"},BO={class:"card-body"},wO={class:"data-table"},vO={style:{"text-align":"center !important"}},bO={style:{"text-align":"center !important"}},yO={class:"round-label"},CO={style:{"text-align":"center !important"}},xO={style:{"text-align":"center !important"}},FO={style:{"text-align":"left !important","padding-left":"15px !important"}},_O={style:{"text-align":"center !important"}},UO=["href"],QO={key:0},EO={__name:"BlogSection",props:{data:Array},setup(e){return(t,A)=>{var n;return ht(),Bt("div",pO,[p("div",mO,[p("h3",null,[Vt(qt(FU),{size:20}),A[0]||(A[0]=ie("블로그 발행 현황 ",-1))])]),p("div",BO,[p("table",wO,[A[2]||(A[2]=p("thead",null,[p("tr",null,[p("th",{width:"50",style:{"text-align":"center !important"}},"순번"),p("th",{width:"80",style:{"text-align":"center !important"}},"회차"),p("th",{width:"120",style:{"text-align":"center !important"}},"발행 예정일"),p("th",{width:"100",style:{"text-align":"center !important"}},"발행 유형"),p("th",{style:{"min-width":"250px","text-align":"center !important"}},"제목"),p("th",{width:"60",style:{"text-align":"center !important"}},"URL")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.data,(r,i)=>(ht(),Bt("tr",{key:i},[p("td",vO,kt(i+1),1),p("td",bO,[p("span",yO,kt(r.round)+"회차",1)]),p("td",CO,kt(r.date),1),p("td",xO,kt(r.type||"-"),1),p("td",FO,kt(r.title),1),p("td",_O,[p("a",{href:r.link,target:"_blank",class:"link-text"},"보기",8,UO)])]))),128)),(n=e.data)!=null&&n.length?ue("",!0):(ht(),Bt("tr",QO,[...A[1]||(A[1]=[p("td",{colspan:"6",class:"empty",style:{"text-align":"center !important"}},"발행 내역이 없습니다.",-1)])]))])])])])}}},IO=LA(EO,[["__scopeId","data-v-9233d871"]]),SO={class:"card card-full exposure-section"},LO={class:"card-header dark-header"},kO={class:"card-body"},NO={class:"report-exposure-grid"},DO={class:"card-label"},HO={class:"keyword-val"},MO={class:"captured-image-box"},TO=["src"],OO={key:1,class:"no-img"},PO={key:0,class:"empty-msg"},RO={__name:"ExposureSection",props:{data:Array,round:[String,Number]},setup(e){const t=A=>A?A.startsWith("data:")||A.startsWith("http")?A:`https://kyeongmiapi.daoblock.co.kr${A}`:"";return(A,n)=>{var r;return ht(),Bt("div",SO,[p("div",LO,[p("h3",null,kt(e.round?`(${e.round}회차) `:"")+"노출 현황",1)]),p("div",kO,[p("div",NO,[(ht(!0),Bt(ce,null,Ue(e.data,(i,s)=>(ht(),Bt("div",{key:s,class:"report-exposure-card"},[p("div",DO,[n[0]||(n[0]=p("span",{class:"label-text"},"키워드",-1)),p("span",HO,kt(i.keyword),1)]),p("div",MO,[i.image?(ht(),Bt("img",{key:0,src:t(i.image),alt:"노출 캡쳐",class:"full-img"},null,8,TO)):(ht(),Bt("div",OO,"이미지 없음"))])]))),128))]),(r=e.data)!=null&&r.length?ue("",!0):(ht(),Bt("div",PO,"노출 현황 데이터가 없습니다."))])])}}},KO=LA(RO,[["__scopeId","data-v-8b830426"]]),VO={class:"card card-full plan-section"},jO={class:"card-header"},GO={class:"card-body"},WO={class:"plan-display-box"},zO={__name:"PlanSection",props:{data:String,round:[String,Number]},setup(e){return(t,A)=>(ht(),Bt("div",VO,[p("div",jO,[p("h3",null,[Vt(qt(mU),{size:20}),ie(kt(e.round?`(${e.round}회차) `:"")+"진행방향 ",1)])]),p("div",GO,[p("div",WO,kt(e.data||"등록된 계획이 없습니다."),1)])]))}},$O=LA(zO,[["__scopeId","data-v-9afb62c0"]]),qO={class:"card card-full deposit-section"},XO={class:"card-header"},YO={class:"card-body"},JO={class:"deposit-table-wrapper"},ZO={class:"data-table"},tP={class:"amount-cell"},eP={key:0},AP={__name:"DepositSection",props:{data:Object},setup(e){return Array.from({length:31},(t,A)=>A+1),(t,A)=>{var n,r,i;return ht(),Bt("div",qO,[p("div",XO,[p("h3",null,[Vt(qt(pU),{size:20}),A[0]||(A[0]=ie("입금액 상세 관리 ",-1))])]),p("div",YO,[p("div",JO,[p("table",ZO,[A[2]||(A[2]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"회차"),p("th",{width:"120"},"날짜"),p("th",null,"항목/서비스"),p("th",{width:"150"},"입금금액"),p("th",null,"비고")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue((n=e.data)==null?void 0:n.table,(s,o)=>(ht(),Bt("tr",{key:o},[p("td",null,kt(s.round),1),p("td",null,kt(s.date),1),p("td",null,kt(s.service),1),p("td",tP,kt(Number(String(s.amount).replace(/,/g,"")).toLocaleString())+"원",1),p("td",null,kt(s.note),1)]))),128)),(i=(r=e.data)==null?void 0:r.table)!=null&&i.length?ue("",!0):(ht(),Bt("tr",eP,[...A[1]||(A[1]=[p("td",{colspan:"5",class:"empty"},"입금 내역이 없습니다.",-1)])]))])])])])])}}},nP=LA(AP,[["__scopeId","data-v-59a92d0a"]]),rP={class:"card card-full transfer-section"},iP={class:"card-header"},sP={class:"card-body"},oP={class:"transfer-grid-layout"},aP={class:"our-company-details"},lP={class:"detail-rows"},cP={class:"detail-row"},uP={class:"value"},fP={class:"detail-row"},hP={class:"value"},dP={class:"detail-row"},gP={class:"value"},pP={class:"bank-payment-details"},mP={class:"detail-rows"},BP={class:"detail-row"},wP={class:"label"},vP={class:"value font-bold"},bP={class:"detail-row"},yP={class:"value font-bold"},CP={class:"detail-row amount-highlight"},xP={class:"value amount"},FP={__name:"TransferSection",props:{data:Object},setup(e){const t=A=>A?String(A).replace(/\B(?=(\d{3})+(?!\d))/g,","):"0";return(A,n)=>{var r,i,s,o,a,l,c,u;return ht(),Bt("div",rP,[p("div",iP,[p("h3",null,[Vt(qt(Qp),{size:20}),n[0]||(n[0]=ie("이체 정보 ",-1))])]),p("div",sP,[p("div",oP,[p("div",aP,[p("h4",null,[Vt(qt(dh),{size:16}),ie(" "+kt(((r=e.data)==null?void 0:r.companyName)||"(주)이지엠앤씨"),1)]),p("div",lP,[p("div",cP,[n[1]||(n[1]=p("span",{class:"label"},"사업자 번호",-1)),p("span",uP,kt(((i=e.data)==null?void 0:i.businessNumber)||"210-81-78652"),1)]),p("div",fP,[n[2]||(n[2]=p("span",{class:"label"},"대표",-1)),p("span",hP,kt(((s=e.data)==null?void 0:s.ceo)||"김용수"),1)]),p("div",dP,[n[3]||(n[3]=p("span",{class:"label"},"담당자",-1)),p("span",gP,kt(((o=e.data)==null?void 0:o.ourManager)||"박민준, 유경미"),1)])])]),n[7]||(n[7]=p("div",{class:"vertical-divider"},null,-1)),p("div",pP,[p("h4",null,[Vt(qt(Qp),{size:16}),n[4]||(n[4]=ie(" 입금 정보 ",-1))]),p("div",mP,[p("div",BP,[p("span",wP,kt(((a=e.data)==null?void 0:a.bankName)||"우리은행"),1),p("span",vP,kt(((l=e.data)==null?void 0:l.account)||"1005-704-557550"),1)]),p("div",bP,[n[5]||(n[5]=p("span",{class:"label"},"예금주",-1)),p("span",yP,kt(((c=e.data)==null?void 0:c.holder)||"(주)이지엠앤씨"),1)]),p("div",CP,[n[6]||(n[6]=p("span",{class:"label"},"입금 금액",-1)),p("span",xP,kt(t((u=e.data)==null?void 0:u.amount))+"원",1)])])])])])])}}},_P=LA(FP,[["__scopeId","data-v-ec9de6b1"]]),UP={class:"card card-full company-info-section"},QP={class:"card-header"},EP={class:"card-body grid-info"},IP={class:"info-group"},SP={class:"info-group"},LP={class:"info-group"},kP={class:"info-group"},NP={class:"info-group full-width"},DP=["href"],HP={__name:"CompanyInfoSection",props:{data:Object},setup(e){return(t,A)=>{var n,r,i,s,o,a;return ht(),Bt("div",UP,[p("div",QP,[p("h3",null,[Vt(qt($0),{size:20}),A[0]||(A[0]=ie("업체 상세 정보 ",-1))])]),p("div",EP,[p("div",IP,[A[1]||(A[1]=p("label",null,"회사명",-1)),p("p",null,kt(((n=e.data)==null?void 0:n.name)||"-"),1)]),p("div",SP,[A[2]||(A[2]=p("label",null,"사업자 번호",-1)),p("p",null,kt(((r=e.data)==null?void 0:r.businessNumber)||"-"),1)]),p("div",LP,[A[3]||(A[3]=p("label",null,"담당자",-1)),p("p",null,kt(((i=e.data)==null?void 0:i.manager)||"-"),1)]),p("div",kP,[A[4]||(A[4]=p("label",null,"연락처",-1)),p("p",null,kt(((s=e.data)==null?void 0:s.contact)||"-"),1)]),p("div",NP,[A[5]||(A[5]=p("label",null,"블로그 링크",-1)),p("p",null,[p("a",{href:(o=e.data)==null?void 0:o.blogLink,target:"_blank"},kt(((a=e.data)==null?void 0:a.blogLink)||"-"),9,DP)])])])])}}},MP=LA(HP,[["__scopeId","data-v-acb0f020"]]),TP={class:"form-card"},OP={class:"form-grid"},PP={class:"form-group"},RP={class:"form-group"},KP={class:"form-group"},VP={class:"form-group"},jP={class:"form-group full"},GP={class:"form-group"},WP={class:"form-group"},zP={class:"form-group"},$P={class:"form-group"},qP={class:"form-group"},XP=["src"],YP={key:1,class:"license-placeholder"},JP={class:"form-group"},ZP={__name:"BasicInfoTab",props:{formData:Object,loading:Boolean},setup(e){const t=e,A=()=>{const i=document.getElementById("license-upload");i&&i.click()},n=async i=>{const s=i.target.files[0];if(s){const o=new FormData;o.append("image",s);try{const l=await(await xn.post("/api/upload",o)).json();l.imageUrl&&(t.formData.companyInfo.businessLicenseImg=l.imageUrl)}catch(a){console.error("License upload failed:",a),alert("이미지 업로드에 실패했습니다.")}}},r=i=>i?i.startsWith("data:")||i.startsWith("http")?i:`https://kyeongmiapi.daoblock.co.kr${i}`:"";return(i,s)=>(ht(),Bt("div",TP,[s[25]||(s[25]=p("h3",null,"업체 기본 상세정보",-1)),p("div",OP,[p("div",PP,[s[10]||(s[10]=p("label",null,"업체명",-1)),Tt(p("input",{"onUpdate:modelValue":s[0]||(s[0]=o=>e.formData.name=o),placeholder:"업체명"},null,512),[[Rt,e.formData.name]])]),p("div",RP,[s[11]||(s[11]=p("label",null,"담당자",-1)),Tt(p("input",{"onUpdate:modelValue":s[1]||(s[1]=o=>e.formData.companyInfo.manager=o),placeholder:"담당자 성함"},null,512),[[Rt,e.formData.companyInfo.manager]])]),p("div",KP,[s[12]||(s[12]=p("label",null,"연락처",-1)),Tt(p("input",{"onUpdate:modelValue":s[2]||(s[2]=o=>e.formData.companyInfo.contact=o),placeholder:"010-0000-0000"},null,512),[[Rt,e.formData.companyInfo.contact]])]),p("div",VP,[s[13]||(s[13]=p("label",null,"사업자 번호",-1)),Tt(p("input",{"onUpdate:modelValue":s[3]||(s[3]=o=>e.formData.companyInfo.businessNumber=o),placeholder:"000-00-00000"},null,512),[[Rt,e.formData.companyInfo.businessNumber]])]),s[24]||(s[24]=p("div",{class:"from-line"},null,-1)),p("div",jP,[s[14]||(s[14]=p("label",null,"블로그 링크",-1)),Tt(p("input",{"onUpdate:modelValue":s[4]||(s[4]=o=>e.formData.companyInfo.blogLink=o),placeholder:"https://blog.naver.com/..."},null,512),[[Rt,e.formData.companyInfo.blogLink]])]),p("div",GP,[s[15]||(s[15]=p("label",null,"네이버 ID/PW",-1)),Tt(p("input",{"onUpdate:modelValue":s[5]||(s[5]=o=>e.formData.companyInfo.naverIdPw=o),placeholder:"id / password"},null,512),[[Rt,e.formData.companyInfo.naverIdPw]])]),p("div",WP,[s[16]||(s[16]=p("label",null,"이메일",-1)),Tt(p("input",{"onUpdate:modelValue":s[6]||(s[6]=o=>e.formData.companyInfo.email=o),placeholder:"email@example.com"},null,512),[[Rt,e.formData.companyInfo.email]])]),p("div",zP,[s[18]||(s[18]=p("label",null,"세금계산서",-1)),Tt(p("select",{"onUpdate:modelValue":s[7]||(s[7]=o=>e.formData.companyInfo.taxInvoice=o),class:"hub-input"},[...s[17]||(s[17]=[p("option",{value:""},"-- 선택 --",-1),p("option",{value:"발행"},"발행",-1),p("option",{value:"미발행"},"미발행",-1),p("option",{value:"영수"},"영수",-1)])],512),[[gi,e.formData.companyInfo.taxInvoice]])]),p("div",$P,[s[20]||(s[20]=p("label",null,"2단계 인증",-1)),Tt(p("select",{"onUpdate:modelValue":s[8]||(s[8]=o=>e.formData.companyInfo.twoFactorAuth=o),class:"hub-input"},[...s[19]||(s[19]=[p("option",{value:""},"-- 선택 --",-1),p("option",{value:"있음"},"있음",-1),p("option",{value:"없음"},"없음",-1)])],512),[[gi,e.formData.companyInfo.twoFactorAuth]])]),p("div",qP,[s[22]||(s[22]=p("label",null,"사업자 등록증",-1)),p("div",{class:"license-upload-box",onClick:A},[e.formData.companyInfo.businessLicenseImg?(ht(),Bt("img",{key:0,src:r(e.formData.companyInfo.businessLicenseImg),class:"preview-license"},null,8,XP)):(ht(),Bt("div",YP,[Vt(qt(Rn),{size:20}),s[21]||(s[21]=ie(" 이미지 첨부 ",-1))])),p("input",{id:"license-upload",type:"file",onChange:n,hidden:"",accept:"image/*"},null,32)])]),p("div",JP,[s[23]||(s[23]=p("label",null,"업체 메모",-1)),Tt(p("textarea",{"onUpdate:modelValue":s[9]||(s[9]=o=>e.formData.companyInfo.memo=o),placeholder:"업체와 관련된 특이사항을 입력하세요",class:"hub-textarea"},null,512),[[Rt,e.formData.companyInfo.memo]])])])]))}},t7=LA(ZP,[["__scopeId","data-v-eaf8fe2b"]]),e7={key:1,class:"placeholder"},A7={key:0,class:"category-dropdown"},n7={class:"category-list"},r7=["onClick"],i7=["onClick"],s7={key:0,class:"empty-cat"},o7={class:"category-footer"},a7={class:"add-input-group"},l7={__name:"CategorySelect",props:{modelValue:String,categories:Array},emits:["update:modelValue","add-category","remove-category"],setup(e,{emit:t}){const A=e,n=t,r=ge(!1),i=ge(""),s=ge(null),o=()=>{r.value=!r.value},a=f=>{n("update:modelValue",f),r.value=!1},l=()=>{i.value.trim()&&(n("add-category",i.value.trim()),n("update:modelValue",i.value.trim()),i.value="")},c=f=>{n("remove-category",f)},u=f=>{s.value&&!s.value.contains(f.target)&&(r.value=!1)};wi(()=>{document.addEventListener("click",u)}),R0(()=>{document.removeEventListener("click",u)});const d=f=>{const m=A.categories.find(B=>B.name===f);return m?m.color:"#64748b"};return(f,m)=>(ht(),Bt("div",{class:"category-select-container",ref_key:"dropdownRef",ref:s},[p("div",{class:"selected-box",onClick:o},[e.modelValue?(ht(),Bt("span",{key:0,class:"badge",style:Qc({backgroundColor:d(e.modelValue)})},kt(e.modelValue),5)):(ht(),Bt("span",e7,"-- 선택 --"))]),r.value?(ht(),Bt("div",A7,[p("div",n7,[(ht(!0),Bt(ce,null,Ue(e.categories,B=>(ht(),Bt("div",{key:B.name,class:"category-item"},[p("div",{class:"badge-area",onClick:v=>a(B.name)},[p("span",{class:"badge",style:Qc({backgroundColor:B.color})},kt(B.name),5)],8,r7),p("button",{class:"btn-cat-del",onClick:G0(v=>c(B.name),["stop"])},"×",8,i7)]))),128)),e.categories.length===0?(ht(),Bt("div",s7,"검색된 항목이 없습니다.")):ue("",!0)]),p("div",o7,[p("div",a7,[Tt(p("input",{"onUpdate:modelValue":m[0]||(m[0]=B=>i.value=B),placeholder:"항목 추가...",onKeyup:Is(l,["enter"])},null,544),[[Rt,i.value]]),p("button",{class:"add-btn",onClick:l},[Vt(qt(Rn),{size:14})])])])])):ue("",!0)],512))}},Hv=LA(l7,[["__scopeId","data-v-09e25de1"]]),c7={class:"hub-scroll-view"},u7={class:"form-card"},f7={class:"header-with-btn"},h7={style:{display:"flex",gap:"10px","align-items":"center"}},d7=["onUpdate:modelValue"],g7=["value"],p7=["onUpdate:modelValue","onBlur"],m7=["value","onInput"],B7=["onUpdate:modelValue"],w7=["onClick"],v7={class:"form-card"},b7={class:"header-with-btn"},y7=["onUpdate:modelValue"],C7=["value","onInput"],x7=["value","onInput"],F7=["onClick"],_7={class:"form-card"},U7={class:"header-with-btn"},Q7=["onUpdate:modelValue"],E7=["value"],I7=["onUpdate:modelValue"],S7=["onUpdate:modelValue"],L7=["onUpdate:modelValue"],k7=["value","onInput"],N7=["onClick"],D7={class:"form-card"},H7={class:"round-control-top"},M7={class:"round-selector"},T7=["onClick"],O7={class:"header-with-btn border-top"},P7={class:"header-right-btns"},R7={class:"no-col"},K7=["onUpdate:modelValue","onBlur"],V7=["onUpdate:modelValue"],j7=["onUpdate:modelValue"],G7=["onUpdate:modelValue"],W7={class:"round-badge"},z7=["onClick"],$7={key:0},q7={__name:"DepositTab",props:{formData:Object,depositManagement:Object,selectedBlogRound:String,filteredBlogStatus:Array,addRow:Function,removeRow:Function,formatNumber:Function,completeCurrentRound:Function,addNextRound:Function,deleteRound:Function},emits:["update:selectedBlogRound","save"],setup(e,{emit:t}){const A=ge(!0),n=e,r=t,i=d=>{r("update:selectedBlogRound",d)},s=ye(()=>!n.formData.blogRounds||n.formData.blogRounds.length===0?1:Math.max(...n.formData.blogRounds.map(d=>d.number))),o=d=>{if(!n.formData.serviceCategories.find(f=>f.name===d)){const f="#"+Math.floor(Math.random()*16777215).toString(16).padStart(6,"0");n.formData.serviceCategories.push({name:d,color:f}),r("save")}},a=d=>{n.formData.serviceCategories=n.formData.serviceCategories.filter(f=>f.name!==d),r("save")},l=d=>n.formData.blogStatus.filter(B=>String(B.round)===String(d.round)).indexOf(d)+1,c=d=>{const f=d.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter"].includes(f))return;const m=d.target;if(["INPUT","TEXTAREA"].includes(m.tagName)&&(m.type==="text"||m.type==="number"||m.type===""||m.tagName==="TEXTAREA")&&(f==="ArrowLeft"&&m.selectionStart>0||f==="ArrowRight"&&m.selectionEnd<(m.value||"").length||f==="Enter"&&d.shiftKey))return;const B=m.closest("td");if(!B)return;const v=B.closest("tr"),b=v.closest("tbody");if(!b)return;let C=Array.from(v.children).indexOf(B),Q=Array.from(b.children).indexOf(v),_=null;for(;!_;){f==="ArrowUp"?Q--:f==="ArrowDown"||f==="Enter"?Q++:f==="ArrowLeft"?C--:f==="ArrowRight"&&C++;const H=b.children[Q];if(!H)return;const W=H.children[C];if(!W)return;_=W.querySelector('input:not([type="hidden"]), select, textarea')}_&&(d.preventDefault(),_.focus(),(_.tagName==="INPUT"||_.tagName==="TEXTAREA")&&_.select())},u=d=>{if(!d.date)return;let f=d.date.replace(/[^0-9]/g,"");if(A.value&&(f.length===3||f.length===4)){const m=new Date().getFullYear();let B,v;f.length===3?(B="0"+f.substring(0,1),v=f.substring(1,3)):(B=f.substring(0,2),v=f.substring(2,4)),d.date=`${m}.${B}.${v}`;return}f.length===6?d.date=`20${f.substring(0,2)}.${f.substring(2,4)}.${f.substring(4,6)}`:f.length===8&&(d.date=`${f.substring(0,4)}.${f.substring(4,6)}.${f.substring(6,8)}`)};return(d,f)=>{var m,B;return ht(),Bt("div",c7,[p("div",u7,[p("div",f7,[f[11]||(f[11]=p("h3",null,"입금액 상세 (보고서 노출용)",-1)),p("div",h7,[p("button",{class:aA(["btn-toggle-year",{active:A.value}]),onClick:f[0]||(f[0]=v=>A.value=!A.value)}," 현재년도 자동완성 "+kt(A.value?"ON":"OFF"),3),p("button",{class:"btn-add-mini",onClick:f[1]||(f[1]=v=>e.addRow(e.formData.depositDetails.table,{round:"",date:"",service:"네이버 블로그",amount:"",note:""}))},[Vt(qt(Rn),{size:14}),f[10]||(f[10]=ie(" 추가 ",-1))])])]),p("table",{class:"hub-table",onKeydown:c},[f[13]||(f[13]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"회차"),p("th",{width:"120"},"일자"),p("th",null,"항목/서비스"),p("th",{width:"150"},"입금금액"),p("th",null,"비고"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.formData.depositDetails.table,(v,b)=>(ht(),Bt("tr",{key:b},[p("td",null,[Tt(p("select",{"onUpdate:modelValue":C=>v.round=C,class:"table-select"},[f[12]||(f[12]=p("option",{value:""},"--",-1)),(ht(!0),Bt(ce,null,Ue(s.value+1,C=>(ht(),Bt("option",{key:C,value:C},kt(C)+"회차 ",9,g7))),128))],8,d7),[[gi,v.round]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.date=C,class:"table-input",placeholder:"MM-DD",onBlur:C=>u(v)},null,40,p7),[[Rt,v.date]])]),p("td",null,[Vt(Hv,{modelValue:v.service,"onUpdate:modelValue":C=>v.service=C,categories:e.formData.serviceCategories,onAddCategory:o,onRemoveCategory:a},null,8,["modelValue","onUpdate:modelValue","categories"])]),p("td",null,[p("input",{value:e.formatNumber(v.amount),onInput:C=>v.amount=C.target.value.replace(/[^0-9]/g,""),class:"table-input"},null,40,m7)]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.note=C,class:"table-input"},null,8,B7),[[Rt,v.note]])]),p("td",null,[p("button",{class:"btn-row-del",onClick:C=>e.removeRow(e.formData.depositDetails.table,b)},"×",8,w7)])]))),128))])],32)]),p("div",v7,[p("div",b7,[f[15]||(f[15]=p("h3",null,"결제 요약 현황",-1)),p("button",{class:"btn-add-mini",onClick:f[2]||(f[2]=v=>e.addRow(e.depositManagement.summary,{service:"네이버 블로그",totalAmount:"",rounds:"",completedAmount:""}))},[Vt(qt(Rn),{size:14}),f[14]||(f[14]=ie(" 추가 ",-1))])]),p("table",{class:"hub-table",onKeydown:c},[f[16]||(f[16]=p("thead",null,[p("tr",null,[p("th",null,"항목/서비스"),p("th",null,"완료회차"),p("th",null,"완료 금액"),p("th",null,"총결제 금액"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.depositManagement.summary,(v,b)=>(ht(),Bt("tr",{key:b},[p("td",null,[Vt(Hv,{modelValue:v.service,"onUpdate:modelValue":C=>v.service=C,categories:e.formData.serviceCategories,onAddCategory:o,onRemoveCategory:a},null,8,["modelValue","onUpdate:modelValue","categories"])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.rounds=C,class:"table-input"},null,8,y7),[[Rt,v.rounds]])]),p("td",null,[p("input",{value:e.formatNumber(v.completedAmount),onInput:C=>v.completedAmount=C.target.value.replace(/[^0-9]/g,""),class:"table-input"},null,40,C7)]),p("td",null,[p("input",{value:e.formatNumber(v.totalAmount),onInput:C=>v.totalAmount=C.target.value.replace(/[^0-9]/g,""),class:"table-input"},null,40,x7)]),p("td",null,[p("button",{class:"btn-row-del",onClick:C=>e.removeRow(e.depositManagement.summary,b)},"×",8,F7)])]))),128))])],32)]),p("div",_7,[p("div",U7,[f[18]||(f[18]=p("h3",null,"진행회차 상세",-1)),p("button",{class:"btn-add-mini",onClick:f[3]||(f[3]=v=>e.addRow(e.depositManagement.details,{round:"",status:"",method:"",status2:"",subAmount:""}))},[Vt(qt(Rn),{size:14}),f[17]||(f[17]=ie(" 추가 ",-1))])]),p("table",{class:"hub-table",onKeydown:c},[f[20]||(f[20]=p("thead",null,[p("tr",null,[p("th",null,"회차"),p("th",null,"상태"),p("th",null,"결제 방식"),p("th",null,"비고"),p("th",null,"금액"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.depositManagement.details,(v,b)=>(ht(),Bt("tr",{key:b},[p("td",null,[Tt(p("select",{"onUpdate:modelValue":C=>v.round=C,class:"table-select"},[f[19]||(f[19]=p("option",{value:""},"--",-1)),(ht(!0),Bt(ce,null,Ue(s.value+1,C=>(ht(),Bt("option",{key:C,value:C},kt(C)+"회차 ",9,E7))),128))],8,Q7),[[gi,v.round]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.status=C,class:"table-input"},null,8,I7),[[Rt,v.status]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.method=C,class:"table-input"},null,8,S7),[[Rt,v.method]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.status2=C,class:"table-input"},null,8,L7),[[Rt,v.status2]])]),p("td",null,[p("input",{value:e.formatNumber(v.subAmount),onInput:C=>v.subAmount=C.target.value.replace(/[^0-9]/g,""),class:"table-input"},null,40,k7)]),p("td",null,[p("button",{class:"btn-row-del",onClick:C=>e.removeRow(e.depositManagement.details,b)},"×",8,N7)])]))),128))])],32)]),p("div",D7,[p("div",H7,[p("div",M7,[p("button",{class:aA(["round-btn",{active:e.selectedBlogRound==="전체"}]),onClick:f[4]||(f[4]=v=>i("전체"))},"전체",2),(ht(!0),Bt(ce,null,Ue(e.formData.blogRounds,v=>(ht(),Bt("button",{key:v.number,class:aA(["round-btn",v.completed?"round-completed":"round-active",{active:e.selectedBlogRound===String(v.number)}]),onClick:b=>i(String(v.number))},kt(v.number)+"회차 ",11,T7))),128))]),e.selectedBlogRound!=="전체"?(ht(),Bt("button",{key:0,class:"btn-delete-round",onClick:f[5]||(f[5]=v=>e.deleteRound(parseInt(e.selectedBlogRound)))}," 회차 삭제 ")):ue("",!0)]),p("div",O7,[f[22]||(f[22]=p("h3",null,"발행 현황 관리",-1)),p("div",P7,[p("button",{class:aA(["btn-toggle-year",{active:A.value}]),onClick:f[6]||(f[6]=v=>A.value=!A.value),style:{"margin-right":"10px"}}," 현재년도 자동완성 "+kt(A.value?"ON":"OFF"),3),e.selectedBlogRound!=="전체"&&!((m=e.formData.blogRounds.find(v=>v.number===parseInt(e.selectedBlogRound)))!=null&&m.completed)?(ht(),Bt("button",{key:0,class:"btn-complete-round",onClick:f[7]||(f[7]=(...v)=>e.completeCurrentRound&&e.completeCurrentRound(...v))}," 완료 ")):ue("",!0),e.selectedBlogRound!=="전체"&&((B=e.formData.blogRounds.find(v=>v.number===parseInt(e.selectedBlogRound)))!=null&&B.completed)&&parseInt(e.selectedBlogRound)===e.formData.blogRounds.length?(ht(),Bt("button",{key:1,class:"btn-next-round",onClick:f[8]||(f[8]=(...v)=>e.addNextRound&&e.addNextRound(...v))}," 다음 회차 추가 ")):ue("",!0),p("button",{class:"btn-add-mini",onClick:f[9]||(f[9]=v=>e.addRow(e.formData.blogStatus,{date:"",type:"",title:"",link:"",round:e.selectedBlogRound==="전체"?e.formData.blogRounds[e.formData.blogRounds.length-1].number:parseInt(e.selectedBlogRound)}))},[Vt(qt(Rn),{size:14}),f[21]||(f[21]=ie(" 추가 ",-1))])])]),p("table",{class:"hub-table",onKeydown:c},[f[24]||(f[24]=p("thead",null,[p("tr",null,[p("th",{width:"40"},"No."),p("th",{width:"120"},"발행 예정일"),p("th",{width:"120"},"발행 유형"),p("th",null,"제목"),p("th",null,"URL(링크)"),p("th",{width:"80"},"회차"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.filteredBlogStatus,(v,b)=>(ht(),Bt("tr",{key:b},[p("td",R7,kt(l(v)),1),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.date=C,class:"table-input",placeholder:"예: 0223",onBlur:C=>u(v)},null,40,K7),[[Rt,v.date]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":C=>v.type=C,class:"table-input",placeholder:"유형"},null,8,V7),[[Rt,v.type]])]),p("td",null,[Tt(p("textarea",{"onUpdate:modelValue":C=>v.title=C,class:"table-input table-textarea",placeholder:"제목"},null,8,j7),[[Rt,v.title]])]),p("td",null,[Tt(p("textarea",{"onUpdate:modelValue":C=>v.link=C,class:"table-input table-textarea",placeholder:"https://..."},null,8,G7),[[Rt,v.link]])]),p("td",null,[p("span",W7,kt(v.round)+"회차",1)]),p("td",null,[p("button",{class:"btn-row-del",onClick:C=>e.removeRow(e.formData.blogStatus,e.formData.blogStatus.indexOf(v))},"×",8,z7)])]))),128)),e.filteredBlogStatus.length===0?(ht(),Bt("tr",$7,[...f[23]||(f[23]=[p("td",{colspan:"6",class:"empty-msg"},"선택된 회차의 발행 내역이 없습니다.",-1)])])):ue("",!0)])],32)])])}}},X7=LA(q7,[["__scopeId","data-v-2f028ad6"]]),Y7={class:"form-card"},J7={class:"filter-area"},Z7={class:"filter-header"},tR={class:"status-filters"},eR=["onClick"],AR={class:"header-btns",style:{display:"flex",gap:"10px","align-items":"center"}},nR={class:"round-filter-row"},rR=["value"],iR=["value"],sR={class:"table-container"},oR={class:"table-title"},aR={key:0,class:"status-tag"},lR=["onUpdate:modelValue","onBlur"],cR=["onUpdate:modelValue"],uR=["onUpdate:modelValue","onInput"],fR=["onUpdate:modelValue"],hR=["onClick"],dR={key:0},gR={__name:"BlogTab",props:{formData:Object,addRow:Function,removeRow:Function},setup(e){const t=e,A=ge("전체"),n=["전체","임시저장","발행완료"],r=ge("전체");wi(()=>{if(t.formData.blogRounds&&t.formData.blogRounds.length>0){const c=Math.max(...t.formData.blogRounds.map(u=>u.number));r.value=c,t.formData.blogReportRound||(t.formData.blogReportRound=c)}});const i=ye(()=>t.formData.blogStatus.filter(c=>{const u=A.value==="전체"||c.status===A.value,d=r.value==="전체"||Number(c.round)===Number(r.value);return u&&d})),s=ge(!0),o=c=>{if(!c.date)return;let u=c.date.replace(/[^0-9]/g,"");if(s.value&&(u.length===3||u.length===4)){const d=new Date().getFullYear();let f,m;u.length===3?(f="0"+u.substring(0,1),m=u.substring(1,3)):(f=u.substring(0,2),m=u.substring(2,4)),c.date=`${d}.${f}.${m}`;return}u.length===6?c.date=`20${u.substring(0,2)}.${u.substring(2,4)}.${u.substring(4,6)}`:u.length===8&&(c.date=`${u.substring(0,4)}.${u.substring(4,6)}.${u.substring(6,8)}`)},a=c=>{const u=c.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter"].includes(u))return;const d=c.target;if(["INPUT","TEXTAREA"].includes(d.tagName)&&(d.type==="text"||d.type==="number"||d.type===""||d.tagName==="TEXTAREA")&&(u==="ArrowLeft"&&d.selectionStart>0||u==="ArrowRight"&&d.selectionEnd<(d.value||"").length||u==="Enter"&&c.shiftKey))return;const f=d.closest("td");if(!f)return;const m=f.closest("tr"),B=m.closest("tbody");if(!B)return;let v=Array.from(m.children).indexOf(f),b=Array.from(B.children).indexOf(m),C=null;for(;!C;){u==="ArrowUp"?b--:u==="ArrowDown"||u==="Enter"?b++:u==="ArrowLeft"?v--:u==="ArrowRight"&&v++;const Q=B.children[b];if(!Q)return;const _=Q.children[v];if(!_)return;C=_.querySelector('input:not([type="hidden"]), select, textarea')}C&&(c.preventDefault(),C.focus(),(C.tagName==="INPUT"||C.tagName==="TEXTAREA")&&C.select())},l=c=>{c.link&&c.link.trim()!==""&&c.link!=="https://..."?c.status="발행완료":c.status="임시저장"};return(c,u)=>(ht(),Bt("div",Y7,[p("div",J7,[p("div",Z7,[p("div",tR,[(ht(),Bt(ce,null,Ue(n,d=>p("button",{key:d,class:aA(["filter-btn",{active:A.value===d}]),onClick:f=>A.value=d},kt(d),11,eR)),64))]),p("div",AR,[p("button",{class:aA(["btn-toggle-year",{active:s.value}]),onClick:u[0]||(u[0]=d=>s.value=!s.value)}," 현재년도 자동완성 "+kt(s.value?"ON":"OFF"),3),p("button",{class:"btn-add-mini",onClick:u[1]||(u[1]=d=>e.addRow(e.formData.blogStatus,{date:"",title:"",link:"",status:"임시저장",round:e.formData.blogRounds.length>0?e.formData.blogRounds[e.formData.blogRounds.length-1].number:1}))},[Vt(qt(Rn),{size:14}),u[4]||(u[4]=ie(" 내역 추가 ",-1))])])]),p("div",nR,[u[6]||(u[6]=p("label",null,"회차별 보기",-1)),Tt(p("select",{"onUpdate:modelValue":u[2]||(u[2]=d=>r.value=d),class:"round-select"},[u[5]||(u[5]=p("option",{value:"전체"},"전체 회차",-1)),(ht(!0),Bt(ce,null,Ue(e.formData.blogRounds,d=>(ht(),Bt("option",{key:d.number,value:d.number},kt(d.number)+"회차 ",9,rR))),128))],512),[[gi,r.value]]),u[7]||(u[7]=p("label",{style:{"margin-left":"30px"}},"보고서 노출회차",-1)),Tt(p("select",{"onUpdate:modelValue":u[3]||(u[3]=d=>e.formData.blogReportRound=d),class:"round-select highlighted"},[(ht(!0),Bt(ce,null,Ue(e.formData.blogRounds,d=>(ht(),Bt("option",{key:d.number,value:d.number},kt(d.number)+"회차 ",9,iR))),128))],512),[[gi,e.formData.blogReportRound]])])]),p("div",sR,[p("div",oR,[p("h3",null,[u[8]||(u[8]=ie("블로그 발행 현황 ",-1)),A.value!=="전체"?(ht(),Bt("span",aR,kt(A.value),1)):ue("",!0)])]),p("table",{class:"hub-table",onKeydown:a},[u[11]||(u[11]=p("thead",null,[p("tr",null,[p("th",{width:"120"},"날짜"),p("th",null,"제목"),p("th",null,"링크"),p("th",{width:"140"},"상태"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(i.value,(d,f)=>(ht(),Bt("tr",{key:f},[p("td",null,[Tt(p("input",{"onUpdate:modelValue":m=>d.date=m,class:"table-input",placeholder:"MM-DD",onBlur:m=>o(d)},null,40,lR),[[Rt,d.date]])]),p("td",null,[Tt(p("textarea",{"onUpdate:modelValue":m=>d.title=m,class:"table-input table-textarea",placeholder:"제목"},null,8,cR),[[Rt,d.title]])]),p("td",null,[Tt(p("textarea",{"onUpdate:modelValue":m=>d.link=m,class:"table-input table-textarea",placeholder:"https://...",onInput:m=>l(d)},null,40,uR),[[Rt,d.link]])]),p("td",null,[Tt(p("select",{"onUpdate:modelValue":m=>d.status=m,class:"table-select"},[...u[9]||(u[9]=[p("option",{value:"임시저장"},"임시저장",-1),p("option",{value:"발행완료"},"발행완료",-1)])],8,fR),[[gi,d.status]])]),p("td",null,[p("button",{class:"btn-row-del",onClick:m=>e.removeRow(e.formData.blogStatus,e.formData.blogStatus.indexOf(d))},"×",8,hR)])]))),128)),i.value.length===0?(ht(),Bt("tr",dR,[...u[10]||(u[10]=[p("td",{colspan:"5",class:"empty-msg"},"내용이 없습니다.",-1)])])):ue("",!0)])],32)])]))}},pR=LA(gR,[["__scopeId","data-v-85ab2b96"]]),mR={class:"form-card"},BR={class:"header-with-btn"},wR={style:{display:"flex",gap:"10px","align-items":"center"}},vR=["onUpdate:modelValue"],bR=["onUpdate:modelValue","onBlur"],yR=["onUpdate:modelValue"],CR=["onUpdate:modelValue"],xR=["onClick"],FR={key:0},_R={__name:"VisitorTab",props:{formData:Object,removeRow:Function},setup(e,{expose:t}){const A=ge(!0),n=e,r=()=>{n.formData.visitorData.table||(n.formData.visitorData.table=[]),n.formData.visitorData.table.push({selected:!0,date:"",value:"",diff:"-",isUp:!0,viewValue:"",viewDiff:"-",viewIsUp:!0})},i=()=>{n.formData.visitorData.table&&n.formData.visitorData.table.forEach((l,c)=>{const u=n.formData.visitorData.table[c-1];if(!l.value||!(u!=null&&u.value))l.diff="-",l.isUp=!0;else{const d=parseInt(String(l.value).replace(/,/g,"")),f=parseInt(String(u.value).replace(/,/g,""));if(!isNaN(d)&&!isNaN(f)&&f!==0){const m=((d-f)/f*100).toFixed(1);l.isUp=d>=f,l.diff=(l.isUp?"▲ ":"▼ ")+Math.abs(m)+"%"}else l.diff="-"}if(!l.viewValue||!(u!=null&&u.viewValue))l.viewDiff="-",l.viewIsUp=!0;else{const d=parseInt(String(l.viewValue).replace(/,/g,"")),f=parseInt(String(u.viewValue).replace(/,/g,""));if(!isNaN(d)&&!isNaN(f)&&f!==0){const m=((d-f)/f*100).toFixed(1);l.viewIsUp=d>=f,l.viewDiff=(l.viewIsUp?"▲ ":"▼ ")+Math.abs(m)+"%"}else l.viewDiff="-"}})},s=()=>{n.formData.visitorData.table.sort((l,c)=>l.date?c.date?l.date.localeCompare(c.date):-1:1),i()},o=l=>{if(!l.date)return;let c=l.date.replace(/[^0-9]/g,"");if(A.value&&(c.length===3||c.length===4)){const u=new Date().getFullYear();let d,f;c.length===3?(d="0"+c.substring(0,1),f=c.substring(1,3)):(d=c.substring(0,2),f=c.substring(2,4)),l.date=`${u}-${d}-${f}`,s();return}c.length===6?l.date=`20${c.substring(0,2)}-${c.substring(2,4)}-${c.substring(4,6)}`:c.length===8&&(l.date=`${c.substring(0,4)}-${c.substring(4,6)}-${c.substring(6,8)}`),s()},a=l=>{const c=l.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter"].includes(c))return;const u=l.target;if(["INPUT","TEXTAREA"].includes(u.tagName)&&(u.type==="text"||u.type==="number"||u.type===""||u.tagName==="TEXTAREA")&&(c==="ArrowLeft"&&u.selectionStart>0||c==="ArrowRight"&&u.selectionEnd<(u.value||"").length||c==="Enter"&&l.shiftKey))return;const d=u.closest("td");if(!d)return;const f=d.closest("tr"),m=f.closest("tbody");if(!m)return;let B=Array.from(f.children).indexOf(d),v=Array.from(m.children).indexOf(f),b=null;for(;!b;){c==="ArrowUp"?v--:c==="ArrowDown"||c==="Enter"?v++:c==="ArrowLeft"?B--:c==="ArrowRight"&&B++;const C=m.children[v];if(!C)return;const Q=C.children[B];if(!Q)return;b=Q.querySelector('input:not([type="hidden"]), select, textarea')}b&&(l.preventDefault(),b.focus(),(b.tagName==="INPUT"||b.tagName==="TEXTAREA")&&b.select())};return t({calculateAllStats:i}),(l,c)=>(ht(),Bt("div",mR,[p("div",BR,[c[2]||(c[2]=p("h3",null,"방문자 수 및 조회수 추이",-1)),p("div",wR,[p("button",{class:aA(["btn-toggle-year",{active:A.value}]),onClick:c[0]||(c[0]=u=>A.value=!A.value)}," 현재년도 자동완성 "+kt(A.value?"ON":"OFF"),3),p("button",{class:"btn-add-mini",onClick:r},[Vt(qt(Rn),{size:14}),c[1]||(c[1]=ie(" 추가 ",-1))])])]),c[5]||(c[5]=p("div",{class:"info-msg"},"날짜와 데이터를 입력하면 전일 대비 증감율이 자동 계산됩니다.",-1)),p("table",{class:"hub-table",onKeydown:a},[c[4]||(c[4]=p("thead",null,[p("tr",null,[p("th",{width:"40"},"✅"),p("th",{width:"140"},"날짜"),p("th",null,"방문자 수"),p("th",{width:"100"},"전일대비"),p("th",null,"조회수"),p("th",{width:"100"},"전일대비"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.formData.visitorData.table,(u,d)=>(ht(),Bt("tr",{key:d},[p("td",null,[Tt(p("input",{type:"checkbox","onUpdate:modelValue":f=>u.selected=f},null,8,vR),[[Vb,u.selected]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":f=>u.date=f,class:"table-input",placeholder:"2026-03-27",onBlur:f=>o(u)},null,40,bR),[[Rt,u.date]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":f=>u.value=f,class:"table-input",onInput:i,placeholder:"방문자"},null,40,yR),[[Rt,u.value]])]),p("td",{class:aA(u.isUp?"text-up":"text-down")},kt(u.diff),3),p("td",null,[Tt(p("input",{"onUpdate:modelValue":f=>u.viewValue=f,class:"table-input",onInput:i,placeholder:"조회수"},null,40,CR),[[Rt,u.viewValue]])]),p("td",{class:aA(u.viewIsUp?"text-up":"text-down")},kt(u.viewDiff),3),p("td",null,[p("button",{class:"btn-row-del",onClick:f=>e.removeRow(e.formData.visitorData.table,d)},"×",8,xR)])]))),128)),e.formData.visitorData.table.length===0?(ht(),Bt("tr",FR,[...c[3]||(c[3]=[p("td",{colspan:"7",class:"empty-msg"},"데이터를 추가해 주세요.",-1)])])):ue("",!0)])],32)]))}},UR=LA(_R,[["__scopeId","data-v-6e0169a3"]]),QR={class:"hub-scroll-view"},ER={class:"form-card"},IR={class:"header-with-btn"},SR={style:{display:"flex",gap:"10px","align-items":"center"}},LR=["value"],kR=["onUpdate:modelValue","onBlur"],NR=["onUpdate:modelValue"],DR=["onUpdate:modelValue","onBlur"],HR={class:"sum-cell"},MR=["onClick"],TR={class:"mt-4"},OR={class:"form-card"},PR={class:"form-grid"},RR=["onUpdate:modelValue"],KR={class:"form-card"},VR={class:"form-card"},jR={class:"form-card"},GR={class:"header-with-btn"},WR={class:"exposure-grid-hub"},zR=["onUpdate:modelValue"],$R=["onClick"],qR=["src"],XR={key:1,class:"img-placeholder-hub"},YR=["id","onChange"],JR=["onClick"],ZR={class:"form-card"},t9={__name:"MarketingTab",props:{formData:Object,addRow:Function,removeRow:Function,marketingFile:null},setup(e){const t=ge(!0),A=ge(""),n=e,r=ye(()=>{var B;const d=((B=n.formData.depositDetails)==null?void 0:B.table)||[];let f=0,m=!1;for(const v of d)if((v.service||"").includes("블로그")){const b=parseInt(String(v.round||"").replace(/[^0-9]/g,""));!isNaN(b)&&b>f&&(f=b,m=!0)}return m?f:null}),i=ye(()=>{const d=n.formData.inflowData.table||[];return[...new Set(d.map(f=>f.month?f.month.substring(0,7):"").filter(Boolean))].sort().reverse()}),s=d=>d?d.startsWith("data:")||d.startsWith("http")?d:`https://kyeongmiapi.daoblock.co.kr${d}`:"",o=d=>{const f=document.getElementById(`file-hub-${d}`);f&&f.click()},a=async(d,f)=>{const m=f.target.files[0];if(m){const B=new FormData;B.append("image",m);try{const b=await(await xn.post("/api/upload",B)).json();b.imageUrl&&(n.formData.exposureStatus[d].image=b.imageUrl)}catch(v){console.error("Image upload failed:",v),alert("이미지 업로드에 실패했습니다.")}}},l=d=>{if(!d.month)return;let f=d.month.replace(/[^0-9]/g,"");if(t.value&&(f.length===3||f.length===4)){const m=new Date().getFullYear();let B,v;f.length===3?(B="0"+f.substring(0,1),v=f.substring(1,3)):(B=f.substring(0,2),v=f.substring(2,4)),d.month=`${m}-${B}-${v}`;return}f.length===6?d.month=`20${f.substring(0,2)}-${f.substring(2,4)}-${f.substring(4,6)}`:f.length===8&&(d.month=`${f.substring(0,4)}-${f.substring(4,6)}-${f.substring(6,8)}`)},c=d=>{if(d.value&&String(d.value).trim()!==""){const f=String(d.value).split(/[\s,]+/).map(m=>parseFloat(m)).filter(m=>!isNaN(m));if(f.length>0){const m=f.reduce((B,v)=>B+v,0);d.sum=m.toFixed(2)}else d.sum="0.00"}else d.sum=""},u=d=>{const f=d.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter"].includes(f))return;const m=d.target;if(["INPUT","TEXTAREA"].includes(m.tagName)&&(m.type==="text"||m.type==="number"||m.type===""||m.tagName==="TEXTAREA")&&(f==="ArrowLeft"&&m.selectionStart>0||f==="ArrowRight"&&m.selectionEnd<(m.value||"").length||f==="Enter"&&d.shiftKey))return;const B=m.closest("td");if(!B)return;const v=B.closest("tr"),b=v.closest("tbody");if(!b)return;let C=Array.from(v.children).indexOf(B),Q=Array.from(b.children).indexOf(v),_=null;for(;!_;){f==="ArrowUp"?Q--:f==="ArrowDown"||f==="Enter"?Q++:f==="ArrowLeft"?C--:f==="ArrowRight"&&C++;const H=b.children[Q];if(!H)return;const W=H.children[C];if(!W)return;_=W.querySelector('input:not([type="hidden"]), select, textarea')}_&&(d.preventDefault(),_.focus(),(_.tagName==="INPUT"||_.tagName==="TEXTAREA")&&_.select())};return(d,f)=>(ht(),Bt("div",QR,[p("div",ER,[p("div",IR,[f[9]||(f[9]=p("h3",null,"유입 경로 및 분석",-1)),p("div",SR,[Tt(p("select",{"onUpdate:modelValue":f[0]||(f[0]=m=>A.value=m),class:"form-month-select"},[f[8]||(f[8]=p("option",{value:""},"전체 (날짜순)",-1)),(ht(!0),Bt(ce,null,Ue(i.value,m=>(ht(),Bt("option",{key:m,value:m},kt(m),9,LR))),128))],512),[[gi,A.value]]),p("button",{class:aA(["btn-toggle-year",{active:t.value}]),onClick:f[1]||(f[1]=m=>t.value=!t.value)}," 현재년도 자동완성 "+kt(t.value?"ON":"OFF"),3)])]),p("table",{class:"hub-table",onKeydown:u},[f[10]||(f[10]=p("thead",null,[p("tr",null,[p("th",{width:"140"},"측정원/기준일"),p("th",null,"경로명"),p("th",null,[ie("비중(%) "),p("small",null,"(예: 50.5 50.5)")]),p("th",{width:"100"},"합계"),p("th",{width:"50"})])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(e.formData.inflowData.table,(m,B)=>Tt((ht(),Bt("tr",{key:B,class:"inflow-hub-row"},[p("td",null,[Tt(p("input",{type:"text","onUpdate:modelValue":v=>m.month=v,onBlur:v=>l(m),class:"table-input text-center",placeholder:"YYYY-MM-DD"},null,40,kR),[[Rt,m.month]])]),p("td",null,[Tt(p("textarea",{"onUpdate:modelValue":v=>m.label=v,class:"table-input table-textarea"},null,8,NR),[[Rt,m.label]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":v=>m.value=v,class:"table-input",onBlur:v=>c(m),placeholder:"숫자 입력"},null,40,DR),[[Rt,m.value]])]),p("td",null,[p("div",HR,kt(m.sum||"-"),1)]),p("td",null,[p("button",{class:"btn-row-del",onClick:v=>e.removeRow(e.formData.inflowData.table,B)},"×",8,MR)])])),[[ko,!A.value||String(m.month||"").startsWith(A.value)]])),128))])],32),p("button",{class:"btn-add-inline",onClick:f[2]||(f[2]=m=>e.addRow(e.formData.inflowData.table,{month:"",label:"",value:"",sum:"",isUp:!0}))},"+ 경로 추가"),p("div",TR,[f[11]||(f[11]=p("label",{class:"block-label"},"유입 분석 상세 피드백",-1)),Tt(p("textarea",{"onUpdate:modelValue":f[3]||(f[3]=m=>e.formData.inflowData.description=m),class:"hub-textarea mini",placeholder:"유입 경로에 대한 분석 내용을 입력하십시오."},null,512),[[Rt,e.formData.inflowData.description]])])]),p("div",OR,[f[12]||(f[12]=p("h3",null,"전월 대비 성과 지표 비교",-1)),p("div",PR,[(ht(!0),Bt(ce,null,Ue(e.formData.comparisonData,(m,B)=>(ht(),Bt("div",{class:"form-group",key:B},[p("label",null,kt(B)+" 비교",1),Tt(p("input",{"onUpdate:modelValue":v=>e.formData.comparisonData[B]=v,placeholder:"예: 지난달 대비 15% 상승",class:"hub-input"},null,8,RR),[[Rt,e.formData.comparisonData[B]]])]))),128))])]),p("div",KR,[p("h3",null,kt(r.value?`(${r.value}회차)`:"")+" 진단결과 (성과 비교 분석 하단 표기)",1),Tt(p("textarea",{"onUpdate:modelValue":f[4]||(f[4]=m=>e.formData.diagnosisResult=m),class:"hub-textarea",placeholder:"진단결과를 입력하세요."},null,512),[[Rt,e.formData.diagnosisResult]])]),p("div",VR,[f[13]||(f[13]=p("h3",null,"리포트 종합 요약 (강조 문구)",-1)),Tt(p("textarea",{"onUpdate:modelValue":f[5]||(f[5]=m=>e.formData.reportSummary=m),class:"hub-textarea",placeholder:"리포트 하단에 강조될 핵심 총평을 입력하세요 (예: 3월 통합 모니터링 결과 지표 대폭 상승)"},null,512),[[Rt,e.formData.reportSummary]])]),p("div",jR,[p("div",GR,[f[15]||(f[15]=p("h3",null,"상위 노출 현황 (키워드 및 이미지)",-1)),p("button",{class:"btn-add-mini",onClick:f[6]||(f[6]=m=>e.addRow(e.formData.exposureStatus,{keyword:"",image:""}))},[Vt(qt(Rn),{size:14}),f[14]||(f[14]=ie(" 추가 ",-1))])]),p("div",WR,[(ht(!0),Bt(ce,null,Ue(e.formData.exposureStatus,(m,B)=>(ht(),Bt("div",{key:B,class:"exposure-item-hub"},[Tt(p("input",{"onUpdate:modelValue":v=>m.keyword=v,placeholder:"키워드",class:"kw-input"},null,8,zR),[[Rt,m.keyword]]),p("div",{class:"img-hub-box",onClick:v=>o(B)},[m.image?(ht(),Bt("img",{key:0,src:s(m.image),class:"preview-img-hub"},null,8,qR)):(ht(),Bt("div",XR,"이미지 클릭 첨부")),p("input",{id:`file-hub-${B}`,type:"file",onChange:v=>a(B,v),hidden:"",accept:"image/*"},null,40,YR)],8,$R),p("button",{class:"btn-row-del",onClick:v=>e.removeRow(e.formData.exposureStatus,B)},"삭제",8,JR)]))),128))])]),p("div",ZR,[f[16]||(f[16]=p("h3",null,"차월 마케팅 계획",-1)),Tt(p("textarea",{"onUpdate:modelValue":f[7]||(f[7]=m=>e.formData.nextMonthPlan=m),class:"hub-textarea",placeholder:"다음 달 계획을 상세히 입력하세요"},null,512),[[Rt,e.formData.nextMonthPlan]])])]))}},e9=LA(t9,[["__scopeId","data-v-26def9b2"]]),A9={class:"form-card"},n9={class:"form-grid"},r9={class:"form-group"},i9={class:"form-group"},s9={class:"form-group"},o9={class:"form-group"},a9={class:"form-group"},l9={class:"form-group"},c9={class:"form-group"},u9={class:"form-group"},f9={__name:"OurInfoTab",props:{formData:Object},setup(e){return(t,A)=>(ht(),Bt("div",A9,[A[16]||(A[16]=p("h3",null,"이체 및 결제 정보 (우리 회사)",-1)),p("div",n9,[p("div",r9,[A[8]||(A[8]=p("label",null,"회사명",-1)),Tt(p("input",{"onUpdate:modelValue":A[0]||(A[0]=n=>e.formData.transferInfo.companyName=n)},null,512),[[Rt,e.formData.transferInfo.companyName]])]),p("div",i9,[A[9]||(A[9]=p("label",null,"대표자",-1)),Tt(p("input",{"onUpdate:modelValue":A[1]||(A[1]=n=>e.formData.transferInfo.ceo=n)},null,512),[[Rt,e.formData.transferInfo.ceo]])]),p("div",s9,[A[10]||(A[10]=p("label",null,"사업자 번호",-1)),Tt(p("input",{"onUpdate:modelValue":A[2]||(A[2]=n=>e.formData.transferInfo.businessNumber=n)},null,512),[[Rt,e.formData.transferInfo.businessNumber]])]),p("div",o9,[A[11]||(A[11]=p("label",null,"담당자",-1)),Tt(p("input",{"onUpdate:modelValue":A[3]||(A[3]=n=>e.formData.transferInfo.ourManager=n),placeholder:"예: 박민준, 유경미"},null,512),[[Rt,e.formData.transferInfo.ourManager]])]),p("div",a9,[A[12]||(A[12]=p("label",null,"은행명",-1)),Tt(p("input",{"onUpdate:modelValue":A[4]||(A[4]=n=>e.formData.transferInfo.bankName=n)},null,512),[[Rt,e.formData.transferInfo.bankName]])]),p("div",l9,[A[13]||(A[13]=p("label",null,"예금주",-1)),Tt(p("input",{"onUpdate:modelValue":A[5]||(A[5]=n=>e.formData.transferInfo.holder=n)},null,512),[[Rt,e.formData.transferInfo.holder]])]),p("div",c9,[A[14]||(A[14]=p("label",null,"계좌번호",-1)),Tt(p("input",{"onUpdate:modelValue":A[6]||(A[6]=n=>e.formData.transferInfo.account=n)},null,512),[[Rt,e.formData.transferInfo.account]])]),p("div",u9,[A[15]||(A[15]=p("label",null,"입금 금액",-1)),Tt(p("input",{"onUpdate:modelValue":A[7]||(A[7]=n=>e.formData.transferInfo.amount=n),placeholder:"예: 3,000,000원"},null,512),[[Rt,e.formData.transferInfo.amount]])])])]))}},h9=LA(f9,[["__scopeId","data-v-3bf7f901"]]),d9={class:"management-hub"},g9={class:"hub-header"},p9={class:"search-selection"},m9={class:"search-box"},B9={class:"search-input-wrapper"},w9={key:0,class:"search-dropdown"},v9=["onClick"],b9=["value"],y9=["value"],C9={class:"header-actions"},x9=["disabled"],F9=["disabled"],_9=["disabled"],U9={key:0,class:"empty-state"},Q9={class:"empty-content"},E9={key:1,class:"hub-container"},I9={class:"hub-tabs"},S9={class:"tab-content-area"},L9={__name:"CompanyManagementHub",props:{companies:Array,initialCompanyId:String},emits:["refresh"],setup(e,{emit:t}){const A=e,n=t,r=ge(!1),i=ge(A.initialCompanyId||""),s=ge(""),o=ge(!1),a=ge("basic"),l=ge(null),c=ge({name:"",companyInfo:{manager:"",contact:"",email:"",businessNumber:"",businessLicenseImg:"",taxInvoice:"",twoFactorAuth:"",naverIdPw:"",blogLink:"",refLink:""},visitorData:{chart:[],table:[],viewMode:"all",startDate:"",endDate:""},viewData:{chart:[],table:[],viewMode:"all",startDate:"",endDate:""},inflowData:{chart:[],table:[],description:""},exposureStatus:[],nextMonthPlan:"",comparisonData:{방문자수:"",조회수:"",유입변화:""},diagnosisResult:"",reportSummary:"",transferInfo:{companyName:"(주)이지엠앤씨",businessNumber:"210-81-78652",ceo:"김용수",ourManager:"박민준, 유경미",bankName:"우리은행",account:"1005-704-557550",holder:"(주)이지엠앤씨",amount:""},depositDetails:{dates:[],table:[]},blogStatus:[],blogRounds:[{number:1,completed:!1}],blogReportRound:1,serviceCategories:[]}),u=ge("전체"),d=ye(()=>{let V=[];return u.value==="전체"?V=c.value.blogStatus:V=c.value.blogStatus.filter(F=>F.round===parseInt(u.value)),[...V].sort((F,L)=>(parseInt(F.round)||0)-(parseInt(L.round)||0))}),f=ge({summary:[{service:"",totalAmount:"",rounds:"",completedAmount:""}],details:[{round:"",status:"",method:"",status2:"",subAmount:""}],issue:[{target:"",completed:"",remaining:"",status:"",note:"",lastDate:""}]}),m=ye(()=>s.value?A.companies.filter(V=>V.name.toLowerCase().includes(s.value.toLowerCase())):[]),B=async V=>{i.value=V.companyId,s.value=V.name,o.value=!1,await v(V.companyId)},v=async V=>{var F;if(V){r.value=!0;try{const L=await xn.get(`/api/report/${V}`);if(L.ok){const G=await L.json(),q=((F=G.visitorData)==null?void 0:F.table)||[];c.value={name:G.name||"",companyInfo:G.companyInfo||{manager:"",contact:"",email:"",businessNumber:"",businessLicenseImg:"",taxInvoice:"",twoFactorAuth:"",naverIdPw:"",blogLink:"",refLink:""},visitorData:{...G.visitorData,table:q},viewData:G.viewData||{chart:[],table:[],viewMode:"all",startDate:"",endDate:""},inflowData:G.inflowData||{chart:[],table:[],description:""},exposureStatus:G.exposureStatus||[],nextMonthPlan:G.nextMonthPlan||"",comparisonData:G.comparisonData&&Object.keys(G.comparisonData).length>0?G.comparisonData:{방문자수:"",조회수:"",유입변화:""},diagnosisResult:G.diagnosisResult||"",reportSummary:G.reportSummary||"",transferInfo:G.transferInfo||{companyName:"(주)이지엠앤씨",businessNumber:"210-81-78652",ceo:"김용수",ourManager:"박민준, 유경미",bankName:"우리은행",account:"1005-704-557550",holder:"(주)이지엠앤씨",amount:""},depositDetails:G.depositDetails||{dates:[],table:[]},blogStatus:G.blogStatus||[],blogRounds:G.blogRounds||[{number:1,completed:!1}],blogReportRound:G.blogReportRound||1,serviceCategories:G.serviceCategories||[]},localStorage.setItem("lastManagedCompanyId",String(V)),G.depositManagement?f.value=G.depositManagement:f.value={details:[],summary:[]};const ft=c.value.blogStatus.map(Z=>parseInt(Z.round)).filter(Z=>!isNaN(Z)),lt=ft.length>0?Math.max(...ft):1,ct=c.value.blogRounds.map(Z=>Z.number),at=ct.length>0?Math.max(...ct):1,st=Math.max(lt,at);if(st>at)for(let Z=at+1;Z<=st;Z++)c.value.blogRounds.push({number:Z,completed:!1});setTimeout(()=>{var Z;(Z=l.value)!=null&&Z.calculateAllStats&&l.value.calculateAllStats()},50)}}catch(L){console.error("Data load error:",L)}finally{r.value=!1}}},b=async()=>{var V,F;if(!i.value){alert("업체를 선택해 주세요.");return}r.value=!0;try{((F=(V=c.value.inflowData)==null?void 0:V.table)==null?void 0:F.length)>0&&c.value.inflowData.table.sort((q,ft)=>{const lt=q.month||"";return(ft.month||"").localeCompare(lt)}),c.value.visitorData.chart=c.value.visitorData.table.filter(q=>q.value!==void 0&&q.value!=="").map(q=>({date:q.date,value:parseInt(String(q.value).replace(/,/g,""))||0})),c.value.viewData.table=c.value.visitorData.table.filter(q=>q.viewValue!==void 0&&q.viewValue!=="").map(q=>({selected:q.selected,date:q.date,value:q.viewValue,diff:q.viewDiff,isUp:q.viewIsUp})),c.value.viewData.chart=c.value.viewData.table.map(q=>({date:q.date,value:parseInt(String(q.value).replace(/,/g,""))||0}));const L={companyId:i.value,...c.value,depositManagement:f.value};(await xn.post("/api/report",L)).ok?alert("모든 정보가 성공적으로 저장되었습니다."):alert("저장 실패")}catch(L){console.error("Save error:",L),alert("저장 중 오류가 발생했습니다.")}finally{r.value=!1}},C=async()=>{if(i.value&&confirm(`'${c.value.name||"선택된"}' 업체를 정말 삭제하시겠습니까?`)){r.value=!0;try{(await xn.delete(`/api/report/${i.value}`)).ok&&(alert("성공적으로 삭제되었습니다."),i.value="",s.value="",n("refresh"))}finally{r.value=!1}}},Q=async()=>{const V=prompt("추가할 새로운 업체명을 입력하세요:");if(!(!V||!V.trim()))try{(await xn.post("/api/reports/add",{name:V.trim()})).ok&&(alert(`'${V}' 업체가 성공적으로 추가되었습니다.`),n("refresh"))}catch(F){console.error("Add company error:",F)}},_=(V,F)=>{if(Array.isArray(V)){const L={...F};V===c.value.blogStatus&&u.value!=="전체"&&(L.round=parseInt(u.value)),V.push(L)}},H=(V,F)=>{V.length>0&&V.splice(F,1)},W=V=>{if(!V)return"";const F=String(V).replace(/[^0-9]/g,"");return F?F.replace(/\B(?=(\d{3})+(?!\d))/g,","):""},R=()=>{const V=c.value.blogRounds.length+1;c.value.blogRounds.push({number:V,completed:!1}),u.value=String(V)},O=()=>{const V=parseInt(u.value);if(isNaN(V))return;const F=c.value.blogRounds.find(L=>L.number===V);F&&(F.completed=!0,alert(`${V}회차가 완료 처리되었습니다.`))},k=V=>{confirm(`${V}회차를 삭제하시겠습니까? 해당 회차의 모든 내역(블로그/발행현황)이 함께 삭제됩니다.`)&&(c.value.blogStatus=c.value.blogStatus.filter(F=>F.round!==V),f.value.issue=f.value.issue.filter(F=>F.round!==V),c.value.blogRounds=c.value.blogRounds.filter(F=>F.number!==V),u.value="전체")};return wi(()=>{const V=localStorage.getItem("lastManagedTab");V&&(a.value=V);let F=i.value||localStorage.getItem("lastManagedCompanyId");if(F){const L=A.companies.find(G=>String(G.companyId)===String(F));L&&(i.value=L.companyId,s.value=L.name,v(F))}}),Fr(a,V=>{localStorage.setItem("lastManagedTab",V)}),(V,F)=>(ht(),Bt("div",d9,[p("header",g9,[p("div",p9,[p("div",m9,[p("div",B9,[Vt(qt(Ep),{size:18,class:"search-icon"}),Tt(p("input",{"onUpdate:modelValue":F[0]||(F[0]=L=>s.value=L),placeholder:"업체명을 검색하거나 선택하세요",onFocus:F[1]||(F[1]=L=>o.value=!0),class:"hub-search-input"},null,544),[[Rt,s.value]])]),o.value&&m.value.length>0?(ht(),Bt("div",w9,[(ht(!0),Bt(ce,null,Ue(m.value,L=>(ht(),Bt("div",{key:L.companyId,class:"search-item",onClick:G=>B(L)},kt(L.name),9,v9))),128))])):ue("",!0)]),p("select",{value:i.value,onChange:F[2]||(F[2]=L=>{const G=A.companies.find(q=>q.companyId===L.target.value);G&&B(G)}),class:"hub-select"},[F[10]||(F[10]=p("option",{value:"",disabled:""},"-- 업체 선택 --",-1)),(ht(!0),Bt(ce,null,Ue(e.companies,L=>(ht(),Bt("option",{key:L.companyId,value:L.companyId},kt(L.name),9,y9))),128))],40,b9)]),p("div",C9,[p("button",{class:"btn-hub-delete",onClick:C,disabled:r.value||!i.value}," 업체 삭제 ",8,x9),p("button",{class:"btn-hub-add",onClick:Q,disabled:r.value},[Vt(qt(Rn),{size:18}),F[11]||(F[11]=ie(" 업체 추가 ",-1))],8,F9),p("button",{class:"btn-save-all",onClick:b,disabled:r.value||!i.value},[Vt(qt(i5),{size:18}),F[12]||(F[12]=ie(" 전체 저장 ",-1))],8,_9)])]),i.value?(ht(),Bt("div",E9,[p("nav",I9,[p("button",{class:aA({active:a.value==="basic"}),onClick:F[3]||(F[3]=L=>a.value="basic")},[Vt(qt($0),{size:16}),F[14]||(F[14]=ie(" 기본정보 ",-1))],2),p("button",{class:aA({active:a.value==="deposit"}),onClick:F[4]||(F[4]=L=>a.value="deposit")},[Vt(qt(Qp),{size:16}),F[15]||(F[15]=ie(" 입금/결제 관리 ",-1))],2),p("button",{class:aA({active:a.value==="blog"}),onClick:F[5]||(F[5]=L=>a.value="blog")},[Vt(qt(xU),{size:16}),F[16]||(F[16]=ie(" 블로그 현황 ",-1))],2),p("button",{class:aA({active:a.value==="visitor"}),onClick:F[6]||(F[6]=L=>a.value="visitor")},[Vt(qt(dU),{size:16}),F[17]||(F[17]=ie(" 방문자 데이터 ",-1))],2),p("button",{class:aA({active:a.value==="marketing"}),onClick:F[7]||(F[7]=L=>a.value="marketing")},[Vt(qt(Ep),{size:16}),F[18]||(F[18]=ie(" 노출/유입/계획 ",-1))],2),p("button",{class:aA({active:a.value==="our-info"}),onClick:F[8]||(F[8]=L=>a.value="our-info")},[Vt(qt(vU),{size:16}),F[19]||(F[19]=ie(" 이체(우리회사) ",-1))],2)]),p("div",S9,[a.value==="basic"?(ht(),Xn(t7,{key:0,formData:c.value,loading:r.value},null,8,["formData","loading"])):ue("",!0),a.value==="deposit"?(ht(),Xn(X7,{key:1,formData:c.value,depositManagement:f.value,selectedBlogRound:u.value,filteredBlogStatus:d.value,addRow:_,removeRow:H,formatNumber:W,completeCurrentRound:O,addNextRound:R,deleteRound:k,"onUpdate:selectedBlogRound":F[9]||(F[9]=L=>u.value=L),onSave:b},null,8,["formData","depositManagement","selectedBlogRound","filteredBlogStatus"])):ue("",!0),F[20]||(F[20]=ie()),a.value==="blog"?(ht(),Xn(pR,{key:2,formData:c.value,addRow:_,removeRow:H},null,8,["formData"])):ue("",!0),a.value==="visitor"?(ht(),Xn(UR,{key:3,ref_key:"visitorTabRef",ref:l,formData:c.value,removeRow:H},null,8,["formData"])):ue("",!0),a.value==="marketing"?(ht(),Xn(e9,{key:4,formData:c.value,addRow:_,removeRow:H},null,8,["formData"])):ue("",!0),a.value==="our-info"?(ht(),Xn(h9,{key:5,formData:c.value},null,8,["formData"])):ue("",!0)])])):(ht(),Bt("div",U9,[p("div",Q9,[Vt(qt(dh),{size:48,style:{margin:"0 auto 10px"}}),F[13]||(F[13]=p("p",null,"관리할 업체를 선택해 주세요.",-1))])]))]))}},k9=LA(L9,[["__scopeId","data-v-5949dce8"]]),N9={class:"management-section"},D9={key:0,class:"view-header"},H9={class:"title-group"},M9={class:"header-actions"},T9={key:0,class:"search-container"},O9={class:"company-select-wrapper"},P9=["value"],R9=["value"],K9={class:"search-box"},V9={class:"search-input-wrapper"},j9={key:0,class:"search-dropdown"},G9=["onClick"],W9={key:1,class:"year-select-container"},z9=["value"],$9={key:2,class:"search-box"},q9={key:3,class:"btn-loading",disabled:""},X9={key:1,class:"mini-calendar-wrapper"},Y9={class:"card calendar-card"},J9={class:"calendar-header"},Z9={class:"calendar-title"},tK={class:"calendar-grid"},eK={key:2,class:"month-tabs"},AK={class:"active-year-label"},nK=["onClick"],rK={class:"management-content-wrapper"},iK={key:0,class:"company-detail-view"},sK={class:"card sub-card"},oK={class:"card-header-with-btn"},aK=["onUpdate:modelValue"],lK=["value","onInput"],cK=["onUpdate:modelValue"],uK=["value","onInput"],fK=["onClick"],hK={class:"card sub-card"},dK={class:"card-header-with-btn"},gK=["onUpdate:modelValue"],pK=["onUpdate:modelValue"],mK=["onUpdate:modelValue"],BK=["onUpdate:modelValue"],wK=["value","onInput"],vK=["onClick"],bK={class:"card sub-card"},yK={class:"card-header-with-btn"},CK=["onUpdate:modelValue"],xK=["onUpdate:modelValue"],FK=["onUpdate:modelValue"],_K=["onUpdate:modelValue"],UK=["onUpdate:modelValue"],QK=["onUpdate:modelValue"],EK=["onClick"],IK={class:"card sub-card"},SK={class:"card-header-with-btn"},LK=["onUpdate:modelValue"],kK=["onUpdate:modelValue"],NK=["onUpdate:modelValue"],DK=["onUpdate:modelValue"],HK=["value","onInput"],MK=["onUpdate:modelValue"],TK=["onClick"],OK={key:1,class:"calendar-view-container"},PK={class:"card card-full data-board no-border",style:{"margin-top":"20px","min-height":"auto"}},RK={class:"table-scroll-container"},KK={class:"id-cell"},VK=["onUpdate:modelValue"],jK=["onClick"],GK={class:"card card-full sub-card"},WK={class:"card-header-with-btn"},zK={class:"header-title-toggle"},$K={class:"header-summary"},qK={class:"sum-value"},XK={class:"table-scroll-container"},YK={class:"memo-table"},JK={class:"name-cell"},ZK={class:"amount-cell"},tV={key:0},eV={class:"card card-full sub-card"},AV={class:"card-header-with-btn"},nV={class:"header-title-toggle"},rV={class:"header-summary"},iV={class:"sum-value"},sV={class:"table-scroll-container"},oV={class:"memo-table"},aV={class:"amount-cell"},lV={key:0},cV={key:2,class:"card card-full data-board no-border"},uV={class:"card-header-with-btn",style:{"margin-bottom":"16px"}},fV={class:"header-summary"},hV={class:"sum-value"},dV={class:"table-scroll-container"},gV=["onUpdate:modelValue"],pV=["onUpdate:modelValue"],mV=["onUpdate:modelValue"],BV=["value","onInput"],wV=["onUpdate:modelValue"],vV=["onClick"],bV={key:3,class:"card card-full data-board no-border"},yV={class:"table-scroll-container"},CV=["onUpdate:modelValue"],xV=["onUpdate:modelValue"],FV=["onUpdate:modelValue"],_V=["onUpdate:modelValue"],UV=["onUpdate:modelValue"],QV=["onClick"],EV={key:5,class:"card card-full data-board no-border"},IV={class:"table-scroll-container"},SV={class:"memo-table bordered"},LV={class:"id-cell"},kV=["onUpdate:modelValue"],NV=["onClick"],DV={key:3,class:"total-summary-card"},HV={class:"total-info"},MV={class:"total-label"},TV={class:"total-value"},OV={__name:"ManagementSection",props:{title:String,type:String,showExcel:Boolean,companies:Array},emits:["refreshCompanies"],setup(e,{emit:t}){const A=e,n=t,r=ge(!1),i=ge(new Date().getMonth()+1),s=ge(new Date().getFullYear()),o=ge(""),a=ge(""),l=ge(!1),c=ge({summary:[{id:1,service:"",totalAmount:"",rounds:"",completedAmount:""}],details:[{id:1,round:"",status:"",method:"",status2:"",subAmount:""}],issue:[{id:1,target:"",completed:"",remaining:"",status:"",note:"",lastDate:""}],deposits:[{id:1,round:"",date:"",companyName:"",service:"",amount:"",note:""}]}),u=ge([{id:1,date:"",nickname:"",content:"",amount:"",note:""}]),d=ge([{id:1,date:"",type:"",title:"",url:"",session:""}]),f=ge([{id:1,content:""}]),m=ge([]),B=ye(()=>`GLOBAL_${s.value}_${String(i.value).padStart(2,"0")}`),v=ye(()=>`KMONG_${s.value}_${String(i.value).padStart(2,"0")}`),b=ge({summary:!1,details:!1,issue:!1,deposits:!1}),C=st=>{b.value[st]=!b.value[st]},Q=ye(()=>o.value?A.companies.filter(st=>st.name.toLowerCase().includes(o.value.toLowerCase())):[]),_=st=>{a.value=st.companyId,o.value=st.name,l.value=!1,R()};Fr(()=>A.type,()=>{A.type!=="deposit-company"&&A.type!=="blog-total"&&(a.value="",o.value=""),R()}),Fr([s,i],()=>{R()});const H=()=>{const st=o.value.trim().toLowerCase();if(l.value=!1,!st){alert("검색어를 입력해주세요.");return}const Z=A.companies.find(j=>j.name.toLowerCase().includes(st));Z?_(Z):alert("해당하는 업체명을 찾을 수 없습니다.")},W=ye(()=>{if(A.type==="deposit-company"&&a.value){const st=A.companies.find(Z=>Z.companyId===a.value);if(st)return`${st.name} 조회`}return A.title}),R=async()=>{var Z,j,U;const st=A.type;if(!(!a.value&&(st==="deposit-company"||st==="blog-total"))){r.value=!0;try{if(a.value){const At=await xn.get(`/api/report/${a.value}`);if(At.ok){const z=await At.json();z.blogStatus&&(d.value=z.blogStatus.map((nt,ot)=>({id:ot+1,date:nt.date,type:"네이버",title:nt.title,url:nt.link,session:nt.status}))),(Z=z.depositDetails)!=null&&Z.table&&(c.value.deposits=z.depositDetails.table.map((nt,ot)=>({id:ot+1,round:nt.round,date:nt.date,companyName:nt.companyName||"",service:nt.service,amount:nt.amount,note:nt.note})),c.value.details=z.depositDetails.table.map((nt,ot)=>({id:ot+1,round:nt.round,status:"입금완료",method:"이체",status2:nt.note,subAmount:nt.amount})))}}const N=await xn.get("/api/reports/all");N.ok&&(m.value=await N.json());const tt=await xn.get(`/api/report/${B.value}`);if(tt.ok){const At=await tt.json();f.value=((j=At.visitorData)==null?void 0:j.table)||[{id:1,content:""}]}else f.value=[{id:1,content:""}];const et=await xn.get(`/api/report/${v.value}`);if(et.ok){const At=await et.json();u.value=((U=At.depositDetails)==null?void 0:U.table)||[{id:1,date:"",nickname:"",content:"",amount:"",note:""}]}else u.value=[{id:1,date:"",nickname:"",content:"",amount:"",note:""}]}catch(N){console.error("Fetch error:",N)}finally{r.value=!1}}},O=async()=>{r.value=!0;try{const st=A.type;let Z;st==="deposit-all"?Z=await xn.post("/api/report",{companyId:B.value,name:`${s.value}년 ${i.value}월 전체관리`,visitorData:{table:f.value}}):st==="deposit-kmong"?Z=await xn.post("/api/report",{companyId:v.value,name:`${s.value}년 ${i.value}월 크몽결제`,depositDetails:{table:u.value}}):st==="deposit-company"&&a.value?Z=await xn.post("/api/report",{companyId:a.value,depositDetails:{table:c.value.deposits.map(j=>({round:j.round,date:j.date,companyName:j.companyName,service:j.service,amount:j.amount,note:j.note}))}}):st==="blog-total"&&a.value&&(Z=await xn.post("/api/report",{companyId:a.value,blogStatus:d.value.map(j=>({date:j.date,title:j.title,link:j.url,status:j.session}))})),Z&&Z.ok?(alert("저장되었습니다."),R()):Z&&alert("저장에 실패했습니다.")}catch(st){console.error("Save error:",st),alert("저장 도중 오류가 발생했습니다.")}finally{r.value=!1}},k=(st,Z=null)=>{if(st==="deposit-company"){const j=c.value[Z],U=j.length>0?Math.max(...j.map(N=>N.id)):0;Z==="summary"&&j.push({id:U+1,service:"",totalAmount:"",rounds:"",completedAmount:""}),Z==="details"&&j.push({id:U+1,round:"",status:"",method:"",status2:"",subAmount:""}),Z==="issue"&&j.push({id:U+1,target:"",completed:"",remaining:"",status:"",note:"",lastDate:""}),Z==="deposits"&&j.push({id:U+1,round:"",date:"",companyName:"",service:"",amount:"",note:""})}else st==="deposit-kmong"?u.value.push({id:u.value.length+1,date:"",nickname:"",content:"",amount:"",note:""}):st==="blog-total"?d.value.push({id:d.value.length+1,date:"",type:"",title:"",url:"",session:""}):f.value.push({id:f.value.length+1,content:""})},V=(st,Z)=>{st.length>1&&st.splice(Z,1)},F=st=>{if(!st)return"";const Z=String(st).replace(/[^0-9]/g,"");return Z?Z.replace(/\B(?=(\d{3})+(?!\d))/g,","):""},L=st=>{const Z=st.key;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter"].includes(Z))return;const j=st.target;if(["INPUT","TEXTAREA"].includes(j.tagName)&&(j.type==="text"||j.type==="number"||j.type===""||j.tagName==="TEXTAREA")&&(Z==="ArrowLeft"&&j.selectionStart>0||Z==="ArrowRight"&&j.selectionEnd<(j.value||"").length||Z==="Enter"&&st.shiftKey))return;const U=j.closest("td");if(!U)return;const N=U.closest("tr"),tt=N.closest("tbody");if(!tt)return;let et=Array.from(N.children).indexOf(U),At=Array.from(tt.children).indexOf(N),z=null;for(;!z;){Z==="ArrowUp"?At--:Z==="ArrowDown"||Z==="Enter"?At++:Z==="ArrowLeft"?et--:Z==="ArrowRight"&&et++;const nt=tt.children[At];if(!nt)return;const ot=nt.children[et];if(!ot)return;z=ot.querySelector('input:not([type="hidden"]), select, textarea')}z&&(st.preventDefault(),z.focus(),(z.tagName==="INPUT"||z.tagName==="TEXTAREA")&&z.select())},G=()=>{alert("엑셀 파일로 변환하여 다운로드를 시작합니다.")},q=ye(()=>{const Z=new Date().getFullYear(),j=[];for(let U=2026;U<=Z;U++)j.push(U);return j}),ft=ye(()=>{const st=s.value,Z=i.value,j=new Date(st,Z-1,1).getDay(),U=new Date(st,Z,0).getDate(),N=[];for(let et=0;et{const st=[],Z=s.value,j=i.value,U=String(j).padStart(2,"0");return m.value.forEach(N=>{var et;if(N.companyId.startsWith("GLOBAL_")||N.companyId.startsWith("KMONG_"))return;(((et=N.depositDetails)==null?void 0:et.table)||[]).forEach(At=>{let z=!1;if(At.date){const nt=String(At.date).trim();let ot=Z,wt=null;const _t=nt.match(/(20\d{2})/);_t&&(ot=parseInt(_t[1],10));const P=nt.match(/(?:^|[^\d])(0?[1-9]|1[0-2])(?:[^\d]|$)/);P&&(wt=parseInt(P[1],10)),(wt===j&&ot===Z||!wt&&(nt.startsWith(U)||nt.startsWith(String(j))))&&(z=!0)}z&&st.push({companyName:N.name,...At})})}),st.sort((N,tt)=>(N.date||"").localeCompare(tt.date||""))}),ct=ye(()=>u.value.reduce((st,Z)=>st+(parseInt(String(Z.amount).replace(/[^0-9]/g,""))||0),0)),at=ye(()=>lt.value.reduce((st,Z)=>st+(parseInt(String(Z.amount).replace(/[^0-9]/g,""))||0),0));return wi(R),(st,Z)=>(ht(),Bt("div",N9,[e.type!=="company-total"?(ht(),Bt("header",D9,[p("div",H9,[p("h2",null,kt(W.value),1),Z[16]||(Z[16]=p("span",{class:"view-badge"},"관리 도구",-1))]),p("div",M9,[["deposit-company","blog-total"].includes(e.type)?(ht(),Bt("div",T9,[p("div",O9,[p("select",{value:a.value,onChange:Z[0]||(Z[0]=j=>{const U=A.companies.find(N=>N.companyId===j.target.value);U&&_(U)}),class:"company-select-dropdown"},[Z[17]||(Z[17]=p("option",{value:"",disabled:""},"--",-1)),(ht(!0),Bt(ce,null,Ue(A.companies,j=>(ht(),Bt("option",{key:j.companyId,value:j.companyId},kt(j.name),9,R9))),128))],40,P9)]),p("div",K9,[p("div",V9,[Tt(p("input",{"onUpdate:modelValue":Z[1]||(Z[1]=j=>o.value=j),placeholder:"업체명 검색",class:"search-input",onKeyup:Is(H,["enter"]),onFocus:Z[2]||(Z[2]=j=>l.value=!0),onInput:Z[3]||(Z[3]=j=>l.value=!0)},null,544),[[Rt,o.value]]),p("button",{class:"btn-search-exec",onClick:H},[Vt(qt(Ep),{size:16})])]),l.value&&Q.value.length>0?(ht(),Bt("div",j9,[(ht(!0),Bt(ce,null,Ue(Q.value,j=>(ht(),Bt("div",{key:j.companyId,class:"search-item",onClick:U=>_(j)},kt(j.name),9,G9))),128))])):ue("",!0)])])):ue("",!0),["deposit-all","deposit-kmong"].includes(e.type)?(ht(),Bt("div",W9,[Tt(p("select",{"onUpdate:modelValue":Z[4]||(Z[4]=j=>s.value=j),class:"year-select"},[(ht(!0),Bt(ce,null,Ue(q.value,j=>(ht(),Bt("option",{key:j,value:j},kt(j)+"년",9,z9))),128))],512),[[gi,s.value]])])):ue("",!0),e.type==="deposit-kmong"?(ht(),Bt("div",$9,[Tt(p("input",{"onUpdate:modelValue":Z[5]||(Z[5]=j=>o.value=j),placeholder:"닉네임 검색",class:"search-input"},null,512),[[Rt,o.value]])])):ue("",!0),r.value?(ht(),Bt("button",q9,[Vt(qt(e2),{size:16,class:"spin"}),Z[18]||(Z[18]=ie(" 로딩 중... ",-1))])):(ht(),Bt("button",{key:4,class:"btn-refresh",onClick:R},[Vt(qt(e2),{size:16}),Z[19]||(Z[19]=ie(" 새로고침 ",-1))])),["deposit-all","deposit-kmong","deposit-company","blog-total"].includes(e.type)?(ht(),Bt("button",{key:5,class:"btn-save-data",onClick:O},[Vt(qt(i5),{size:16}),Z[20]||(Z[20]=ie(" 데이터 저장 ",-1))])):ue("",!0),e.showExcel?(ht(),Bt("button",{key:6,class:"btn-excel-export",onClick:G},[Vt(qt(wU),{size:18}),Z[21]||(Z[21]=ie(" 엑셀 저장 ",-1))])):ue("",!0),e.type!=="deposit-company"?(ht(),Bt("button",{key:7,class:"btn-primary-sm",onClick:Z[6]||(Z[6]=()=>k(e.type))},[Vt(qt(Rn),{size:16}),Z[22]||(Z[22]=ie(" 항목 추가 ",-1))])):ue("",!0)])])):ue("",!0),["deposit-all","deposit-kmong"].includes(e.type)?(ht(),Bt("div",X9,[p("div",Y9,[p("div",J9,[p("span",Z9,kt(s.value)+"년 "+kt(i.value)+"월",1)]),p("div",tK,[(ht(),Bt(ce,null,Ue(["일","월","화","수","목","금","토"],j=>p("div",{key:j,class:aA(["day-label",{sun:j==="일",sat:j==="토"}])},kt(j),3)),64)),(ht(!0),Bt(ce,null,Ue(ft.value,(j,U)=>(ht(),Bt("div",{key:U,class:aA(["day-cell",{empty:j.type==="empty"}])},[j.day?(ht(),Bt("span",{key:0,class:aA(["date-num",{sun:U%7===0,sat:U%7===6,today:j.day===new Date().getDate()&&i.value===new Date().getMonth()+1&&s.value===new Date().getFullYear()}])},kt(j.day),3)):ue("",!0)],2))),128))])])])):ue("",!0),["deposit-all","deposit-kmong"].includes(e.type)?(ht(),Bt("div",eK,[p("div",AK,kt(s.value)+"년",1),(ht(),Bt(ce,null,Ue(12,j=>p("button",{key:j,class:aA(["month-btn",{active:i.value===j}]),onClick:U=>i.value=j},kt(j)+"월 ",11,nK)),64))])):ue("",!0),p("div",rK,[e.type==="deposit-company"?(ht(),Bt("div",iK,[p("div",sK,[p("div",oK,[p("div",{class:"header-title-toggle",onClick:Z[7]||(Z[7]=j=>C("summary"))},[(ht(),Xn(Pu(b.value.summary?qt(Ku):qt(Uo)),{size:20})),Z[23]||(Z[23]=p("h3",null,"결제 요약 현황",-1))]),b.value.summary?ue("",!0):(ht(),Bt("button",{key:0,class:"btn-add-mini",onClick:Z[8]||(Z[8]=j=>k("deposit-company","summary"))},[Vt(qt(Rn),{size:14}),Z[24]||(Z[24]=ie(" 추가 ",-1))]))]),Tt(p("div",null,[p("table",{class:"memo-table",onKeydown:L},[Z[25]||(Z[25]=p("thead",null,[p("tr",null,[p("th",{width:"60"},"순번"),p("th",null,"서비스"),p("th",null,"총결제 금액"),p("th",null,"완료회차"),p("th",null,"완료 금액"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(c.value.summary,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,kt(U+1),1),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.service=N,class:"memo-input"},null,8,aK),[[Rt,j.service]])]),p("td",null,[p("input",{value:F(j.totalAmount),onInput:N=>j.totalAmount=N.target.value.replace(/[^0-9]/g,""),class:"memo-input"},null,40,lK)]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.rounds=N,class:"memo-input"},null,8,cK),[[Rt,j.rounds]])]),p("td",null,[p("input",{value:F(j.completedAmount),onInput:N=>j.completedAmount=N.target.value.replace(/[^0-9]/g,""),class:"memo-input"},null,40,uK)]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(c.value.summary,U)},"×",8,fK)])]))),128))])],32)],512),[[ko,!b.value.summary]])]),p("div",hK,[p("div",dK,[p("div",{class:"header-title-toggle",onClick:Z[9]||(Z[9]=j=>C("details"))},[(ht(),Xn(Pu(b.value.details?qt(Ku):qt(Uo)),{size:20})),Z[26]||(Z[26]=p("h3",null,"진행회차 상세",-1))]),b.value.details?ue("",!0):(ht(),Bt("button",{key:0,class:"btn-add-mini",onClick:Z[10]||(Z[10]=j=>k("deposit-company","details"))},[Vt(qt(Rn),{size:14}),Z[27]||(Z[27]=ie(" 추가 ",-1))]))]),Tt(p("div",null,[p("table",{class:"memo-table",onKeydown:L},[Z[28]||(Z[28]=p("thead",null,[p("tr",null,[p("th",null,"진행회차"),p("th",null,"진행중"),p("th",null,"결제수단"),p("th",null,"진행중"),p("th",null,"세부금액"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(c.value.details,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.round=N,class:"memo-input"},null,8,gK),[[Rt,j.round]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.status=N,class:"memo-input"},null,8,pK),[[Rt,j.status]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.method=N,class:"memo-input"},null,8,mK),[[Rt,j.method]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.status2=N,class:"memo-input"},null,8,BK),[[Rt,j.status2]])]),p("td",null,[p("input",{value:F(j.subAmount),onInput:N=>j.subAmount=N.target.value.replace(/[^0-9]/g,""),class:"memo-input"},null,40,wK)]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(c.value.details,U)},"×",8,vK)])]))),128))])],32)],512),[[ko,!b.value.details]])]),p("div",bK,[p("div",yK,[p("div",{class:"header-title-toggle",onClick:Z[11]||(Z[11]=j=>C("issue"))},[(ht(),Xn(Pu(b.value.issue?qt(Ku):qt(Uo)),{size:20})),Z[29]||(Z[29]=p("h3",null,"발행 현황 관리",-1))]),b.value.issue?ue("",!0):(ht(),Bt("button",{key:0,class:"btn-add-mini",onClick:Z[12]||(Z[12]=j=>k("deposit-company","issue"))},[Vt(qt(Rn),{size:14}),Z[30]||(Z[30]=ie(" 추가 ",-1))]))]),Tt(p("div",null,[p("table",{class:"memo-table",onKeydown:L},[Z[31]||(Z[31]=p("thead",null,[p("tr",null,[p("th",null,"목표발행"),p("th",null,"발행완료"),p("th",null,"남은발행"),p("th",null,"현재상황"),p("th",null,"비고"),p("th",null,"마지막 발행일"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(c.value.issue,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.target=N,class:"memo-input"},null,8,CK),[[Rt,j.target]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.completed=N,class:"memo-input"},null,8,xK),[[Rt,j.completed]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.remaining=N,class:"memo-input"},null,8,FK),[[Rt,j.remaining]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.status=N,class:"memo-input"},null,8,_K),[[Rt,j.status]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.note=N,class:"memo-input"},null,8,UK),[[Rt,j.note]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.lastDate=N,class:"memo-input",placeholder:"0000-00-00"},null,8,QK),[[Rt,j.lastDate]])]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(c.value.issue,U)},"×",8,EK)])]))),128))])],32)],512),[[ko,!b.value.issue]])]),p("div",IK,[p("div",SK,[p("div",{class:"header-title-toggle",onClick:Z[13]||(Z[13]=j=>C("deposits"))},[(ht(),Xn(Pu(b.value.deposits?qt(Ku):qt(Uo)),{size:20})),Z[32]||(Z[32]=p("h3",null,"입금액 상세 관리",-1))]),b.value.deposits?ue("",!0):(ht(),Bt("button",{key:0,class:"btn-add-mini",onClick:Z[14]||(Z[14]=j=>k("deposit-company","deposits"))},[Vt(qt(Rn),{size:14}),Z[33]||(Z[33]=ie(" 추가 ",-1))]))]),Tt(p("div",null,[p("table",{class:"memo-table",onKeydown:L},[Z[34]||(Z[34]=p("thead",null,[p("tr",null,[p("th",{width:"100"},"회차"),p("th",{width:"100"},"날짜"),p("th",null,"업체명"),p("th",null,"항목/서비스"),p("th",{width:"150"},"입금금액"),p("th",null,"비고"),p("th",{width:"55"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(c.value.deposits,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.round=N,class:"memo-input",placeholder:"1회차"},null,8,LK),[[Rt,j.round]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.date=N,class:"memo-input",placeholder:"03-27"},null,8,kK),[[Rt,j.date]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.companyName=N,class:"memo-input",placeholder:"업체명"},null,8,NK),[[Rt,j.companyName]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.service=N,class:"memo-input",placeholder:"블로그"},null,8,DK),[[Rt,j.service]])]),p("td",null,[p("input",{value:F(j.amount),onInput:N=>j.amount=N.target.value.replace(/[^0-9]/g,""),class:"memo-input",placeholder:"500,000"},null,40,HK)]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.note=N,class:"memo-input",placeholder:"완료"},null,8,MK),[[Rt,j.note]])]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(c.value.deposits,U)},"×",8,TK)])]))),128))])],32)],512),[[ko,!b.value.deposits]])])])):e.type==="deposit-all"?(ht(),Bt("div",OK,[p("div",PK,[p("div",RK,[p("table",{class:"memo-table bordered",onKeydown:L},[Z[35]||(Z[35]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"순번"),p("th",null,"비고 및 월간 메모"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(f.value,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",KK,kt(U+1),1),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.content=N,class:"memo-input",placeholder:"이 월의 주요 일정을 자유롭게 기입하세요"},null,8,VK),[[Rt,j.content]])]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(f.value,U)},"×",8,jK)])]))),128))])],32)])]),p("div",GK,[p("div",WK,[p("div",zK,[Vt(qt(Uo),{size:20}),Z[36]||(Z[36]=p("h3",null,"업체별 입금액 조회 (전체)",-1))]),p("div",$K,[Z[37]||(Z[37]=ie(" 월 합계: ",-1)),p("span",qK,kt(at.value.toLocaleString())+"원",1)])]),p("div",XK,[p("table",YK,[Z[39]||(Z[39]=p("thead",null,[p("tr",null,[p("th",{width:"60"},"순번"),p("th",{width:"100"},"일자"),p("th",{width:"80"},"회차"),p("th",null,"업체명"),p("th",null,"항목/서비스"),p("th",null,"입금금액"),p("th",null,"비고")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(lt.value,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,kt(U+1),1),p("td",null,kt(j.date),1),p("td",null,kt(j.round?j.round+(String(j.round).includes("회차")?"":"회차"):"-"),1),p("td",JK,kt(j.companyName),1),p("td",null,kt(j.service),1),p("td",ZK,kt(parseInt(String(j.amount).replace(/[^0-9]/g,"")||0).toLocaleString())+"원",1),p("td",null,kt(j.note),1)]))),128)),lt.value.length===0?(ht(),Bt("tr",tV,[...Z[38]||(Z[38]=[p("td",{colspan:"7",class:"empty-row"},"이번 달 입금 내역이 있는 업체가 없습니다.",-1)])])):ue("",!0)])])])]),p("div",eV,[p("div",AV,[p("div",nV,[Vt(qt(Uo),{size:20}),Z[40]||(Z[40]=p("h3",null,"크몽 입금액 조회 (전체)",-1))]),p("div",rV,[Z[41]||(Z[41]=ie(" 월 합계: ",-1)),p("span",iV,kt(ct.value.toLocaleString())+"원",1)])]),p("div",sV,[p("table",oV,[Z[43]||(Z[43]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"순번"),p("th",{width:"120"},"날짜"),p("th",{width:"150"},"닉네임"),p("th",null,"내용"),p("th",{width:"150"},"금액"),p("th",null,"비고")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(u.value,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,kt(U+1),1),p("td",null,kt(j.date),1),p("td",null,kt(j.nickname),1),p("td",null,kt(j.content),1),p("td",aV,kt(parseInt(String(j.amount).replace(/[^0-9]/g,"")||0).toLocaleString())+"원",1),p("td",null,kt(j.note),1)]))),128)),u.value.length===0||u.value.length===1&&!u.value[0].amount?(ht(),Bt("tr",lV,[...Z[42]||(Z[42]=[p("td",{colspan:"6",class:"empty-row"},"이번 달 크몽 입금 내역이 없습니다.",-1)])])):ue("",!0)])])])])])):e.type==="deposit-kmong"?(ht(),Bt("div",cV,[p("div",uV,[Z[45]||(Z[45]=p("div",{class:"header-title-toggle",style:{cursor:"default",background:"transparent"}},[p("h3",null,"크몽 결제 입력")],-1)),p("div",fV,[Z[44]||(Z[44]=ie(" 월 합계: ",-1)),p("span",hV,kt(ct.value.toLocaleString())+"원",1)])]),p("div",dV,[p("table",{class:"memo-table bordered",onKeydown:L},[Z[46]||(Z[46]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"순번"),p("th",{width:"120"},"날짜"),p("th",{width:"150"},"닉네임"),p("th",null,"내용"),p("th",{width:"150"},"금액"),p("th",null,"비고"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(u.value,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,kt(U+1),1),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.date=N,class:"memo-input",placeholder:"00-00"},null,8,gV),[[Rt,j.date]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.nickname=N,class:"memo-input"},null,8,pV),[[Rt,j.nickname]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.content=N,class:"memo-input"},null,8,mV),[[Rt,j.content]])]),p("td",null,[p("input",{value:F(j.amount),onInput:N=>j.amount=N.target.value.replace(/[^0-9]/g,""),class:"memo-input"},null,40,BV)]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.note=N,class:"memo-input"},null,8,wV),[[Rt,j.note]])]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(u.value,U)},"×",8,vV)])]))),128))])],32)])])):e.type==="blog-total"?(ht(),Bt("div",bV,[p("div",yV,[p("table",{class:"memo-table bordered",onKeydown:L},[Z[47]||(Z[47]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"순번"),p("th",{width:"120"},"발행일"),p("th",{width:"100"},"유형"),p("th",null,"제목"),p("th",null,"URL"),p("th",{width:"120"},"분기내 회차"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(d.value,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",null,kt(U+1),1),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.date=N,class:"memo-input"},null,8,CV),[[Rt,j.date]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.type=N,class:"memo-input"},null,8,xV),[[Rt,j.type]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.title=N,class:"memo-input"},null,8,FV),[[Rt,j.title]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.url=N,class:"memo-input"},null,8,_V),[[Rt,j.url]])]),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.session=N,class:"memo-input"},null,8,UV),[[Rt,j.session]])]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(d.value,U)},"×",8,QV)])]))),128))])],32)])])):e.type==="company-total"?(ht(),Xn(k9,{key:4,companies:A.companies,onRefresh:Z[15]||(Z[15]=j=>n("refreshCompanies"))},null,8,["companies"])):(ht(),Bt("div",EV,[p("div",IV,[p("table",SV,[Z[48]||(Z[48]=p("thead",null,[p("tr",null,[p("th",{width:"80"},"순번"),p("th",null,"내용 (기존 메모장)"),p("th",{width:"50"},"삭제")])],-1)),p("tbody",null,[(ht(!0),Bt(ce,null,Ue(f.value,(j,U)=>(ht(),Bt("tr",{key:U},[p("td",LV,kt(U+1),1),p("td",null,[Tt(p("input",{"onUpdate:modelValue":N=>j.content=N,class:"memo-input"},null,8,kV),[[Rt,j.content]])]),p("td",null,[p("button",{class:"btn-del-mini",onClick:N=>V(f.value,U)},"×",8,NV)])]))),128))])])])]))]),["deposit-all","deposit-kmong"].includes(e.type)?(ht(),Bt("div",DV,[p("div",HV,[p("span",MV,kt(e.type==="deposit-kmong"?"크몽 월 합계 금액":"월 합계 금액 (전체)"),1),p("span",TV,[ie(kt((e.type==="deposit-kmong"?ct.value:at.value+ct.value).toLocaleString()),1),Z[49]||(Z[49]=p("small",null,"원",-1))])])])):ue("",!0)]))}},PV=LA(OV,[["__scopeId","data-v-bd718561"]]),RV={class:"app-layout"},KV={class:"main-content"},VV={class:"report-container"},jV={class:"top-row"},GV={class:"middle-row mt-8"},WV={key:0,class:"comparison-row mt-8"},zV={class:"card comparison-card"},$V={class:"card-header"},qV={class:"card-body"},XV={class:"comparison-grid"},YV={class:"comp-label"},JV={class:"comp-text"},ZV={key:1,class:"diagnosis-row mt-6"},tj={class:"card diagnosis-card compact-card"},ej={class:"card-header pt-2 pb-1"},Aj={class:"text-sm",style:{color:"#0f172a !important","font-size":"0.9rem !important"}},nj={class:"card-body"},rj={class:"diagnosis-content",style:{"white-space":"pre-wrap !important"}},ij={key:2,class:"summary-row mt-8"},sj={class:"card summary-card"},oj={class:"card-header"},aj={class:"card-body"},lj={class:"summary-content",style:{"white-space":"pre-wrap !important"}},cj={class:"other-sections mt-8"},uj={__name:"HomeView",setup(e){const t=z0(),A=ge([]),n=ge({name:"업체를 선택하세요"}),r=ge(null),i=ge("dashboard"),s=()=>{localStorage.removeItem("accessToken"),t.push("/login")},o=async()=>{try{const C=await xn.get("/api/companies");C.ok&&(A.value=await C.json())}catch(C){console.error("Failed to fetch companies:",C)}},a=async C=>{try{const Q=await xn.get(`/api/report/${C}`);Q.ok&&(r.value=await Q.json())}catch(Q){console.error("Failed to fetch report:",Q)}},l=C=>{n.value=C,i.value="dashboard",a(C.companyId)},c=C=>{var Q;i.value=C,C==="dashboard"&&((Q=n.value)!=null&&Q.companyId)&&a(n.value.companyId)},u=ye(()=>{var H,W;const C=((W=(H=r.value)==null?void 0:H.depositDetails)==null?void 0:W.table)||[];let Q=0,_=!1;for(const R of C)if((R.service||"").includes("블로그")){const O=parseInt(String(R.round||"").replace(/[^0-9]/g,""));!isNaN(O)&&O>Q&&(Q=O,_=!0)}return _?Q:null}),d=ye(()=>u.value?u.value>1?u.value-1:u.value:null),f=ye(()=>{var _,H;const C=((_=r.value)==null?void 0:_.blogStatus)||[];let Q=((H=r.value)==null?void 0:H.blogReportRound)||u.value;return Q?C.filter(W=>Number(W.round)===Number(Q)):C}),m=ye(()=>({"deposit-all":{title:"년도별 전체 (월별)",showExcel:!0},"deposit-kmong":{title:"크몽 입금액",showExcel:!1},"company-total":{title:"업체정보 통합 관리",showExcel:!1}})[i.value]||{title:"관리 도구",showExcel:!1}),B=ye(()=>{var C;return((C=r.value)==null?void 0:C.diagnosisResult)||""}),v=ye(()=>{var C;return((C=r.value)==null?void 0:C.reportSummary)||""}),b=C=>{const _=((C==null?void 0:C.table)||[]).filter(V=>(V.date||V.month)&&V.value!==void 0&&V.value!=="");if(_.length<2)return null;const H=[..._].sort((V,F)=>{const L=V.date||V.month||"";return(F.date||F.month||"").localeCompare(L)}),W=parseFloat(String(H[0].value||"").replace(/[^0-9.]/g,""))||0,R=parseFloat(String(H[1].value||"").replace(/[^0-9.]/g,""))||0;if(R===0)return"0.0";const O=((W-R)/R*100).toFixed(1),k=parseFloat(O)>=0;return`지난 달 대비 ${Math.abs(O)}% ${k?"상승":"하락"}`};return wi(async()=>{await o(),A.value.length>0&&l(A.value[0])}),(C,Q)=>{var _,H,W,R,O,k,V,F,L,G,q,ft;return ht(),Bt("div",RV,[Vt(Ck,{companies:A.value,onSelect:l,onRefresh:o,onChangeView:c,onLogout:s},null,8,["companies"]),p("main",KV,[i.value==="dashboard"?(ht(),Bt(ce,{key:0},[Vt(ck,{companyName:n.value.name,companyId:n.value.companyId,companies:A.value,reportRound:d.value?d.value+"회차":"",onSelectCompany:l},null,8,["companyName","companyId","companies","reportRound"]),p("div",VV,[p("section",jV,[Vt(VT,{data:(_=r.value)==null?void 0:_.visitorData},null,8,["data"]),Vt(eO,{data:(H=r.value)==null?void 0:H.viewData},null,8,["data"])]),p("section",GV,[Vt(gO,{data:(W=r.value)==null?void 0:W.inflowData},null,8,["data"])]),(R=r.value)!=null&&R.comparisonData?(ht(),Bt("section",WV,[p("div",zV,[p("div",$V,[p("h3",null,[Vt(qt(EU),{size:20}),Q[0]||(Q[0]=ie(" 성과 비교 분석 ",-1))])]),p("div",qV,[p("div",XV,[(ht(!0),Bt(ce,null,Ue(r.value.comparisonData,(lt,ct)=>(ht(),Bt("div",{key:ct,class:"comparison-item"},[p("span",YV,kt(ct),1),p("p",JV,[ct==="방문자수"?(ht(),Bt(ce,{key:0},[ie(kt(b(r.value.visitorData)||lt),1)],64)):ct==="조회수"?(ht(),Bt(ce,{key:1},[ie(kt(b(r.value.viewData)||lt),1)],64)):(ht(),Bt(ce,{key:2},[ie(kt(lt),1)],64))])]))),128))])])])])):ue("",!0),(O=r.value)!=null&&O.diagnosisResult?(ht(),Bt("section",ZV,[p("div",tj,[p("div",ej,[p("h3",Aj,kt(d.value?`(${d.value}회차)`:"")+" 진단결과",1)]),p("div",nj,[p("div",rj,kt(B.value),1)])])])):ue("",!0),(k=r.value)!=null&&k.reportSummary?(ht(),Bt("section",ij,[p("div",sj,[p("div",oj,[p("h3",null,[Vt(qt(gU),{size:20}),Q[1]||(Q[1]=ie(" 종합 보고서 결과 ",-1))])]),p("div",aj,[p("div",lj,kt(v.value),1)])])])):ue("",!0),p("section",cj,[Vt(IO,{data:f.value},null,8,["data"]),Vt(KO,{data:(V=r.value)==null?void 0:V.exposureStatus,round:d.value},null,8,["data","round"]),Vt($O,{data:(F=r.value)==null?void 0:F.nextMonthPlan,round:d.value},null,8,["data","round"]),Vt(nP,{data:(L=r.value)==null?void 0:L.depositDetails},null,8,["data"]),Vt(_P,{data:(G=r.value)==null?void 0:G.transferInfo},null,8,["data"]),Vt(MP,{data:{...(q=r.value)==null?void 0:q.companyInfo,name:(ft=r.value)==null?void 0:ft.name}},null,8,["data"])])])],64)):(ht(),Xn(PV,{key:1,title:m.value.title,type:i.value,showExcel:m.value.showExcel,companies:A.value,onRefreshCompanies:o},null,8,["title","type","showExcel","companies"]))])])}}},fj=LA(uj,[["__scopeId","data-v-56ef0c75"]]),hj={class:"login-page"},dj={class:"login-card"},gj={class:"login-header"},pj={key:0,class:"login-body"},mj={class:"input-group"},Bj={class:"input-group"},wj={class:"login-options"},vj={class:"checkbox-label"},bj=["disabled"],yj={key:1,class:"login-body"},Cj={class:"input-group"},xj={class:"input-group"},Fj={class:"input-group"},_j={class:"input-group"},Uj=["disabled"],Qj={class:"login-footer"},Ej={key:0},Ij={key:1},Sj={key:2,class:"hint"},Lj={__name:"LoginView",setup(e){const t=z0(),A=ge({username:"",password:""}),n=ge({name:"",username:"",password:"",passwordConfirm:""}),r=ge(!1),i=ge(!0),s=ge(!0);wi(()=>{(localStorage.getItem("accessToken")||sessionStorage.getItem("accessToken"))&&t.push("/")});const o=async()=>{if(!r.value){r.value=!0;try{const l=await fetch("https://kyeongmiapi.daoblock.co.kr/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(A.value)}),c=await l.json();l.ok?(i.value?localStorage.setItem("accessToken",c.accessToken):sessionStorage.setItem("accessToken",c.accessToken),t.push("/")):alert(c.message||"로그인 실패")}catch(l){console.error("Login error:",l),alert("서버 연결 오류")}finally{r.value=!1}}},a=async()=>{if(!r.value){if(!n.value.name||!n.value.username||!n.value.password){alert("모든 입력 항목을 채워주세요.");return}if(n.value.password!==n.value.passwordConfirm){alert("비밀번호가 일치하지 않습니다.");return}r.value=!0;try{const l=await fetch("https://kyeongmiapi.daoblock.co.kr/api/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:n.value.name,username:n.value.username,password:n.value.password})}),c=await l.json();l.ok?(alert("회원가입이 완료되었습니다. 로그인 해주세요."),s.value=!0,n.value={name:"",username:"",password:"",passwordConfirm:""}):alert(c.message||c.error||"회원가입 실패")}catch(l){console.error("Register error:",l),alert("서버 발생 오류")}finally{r.value=!1}}};return(l,c)=>(ht(),Bt("div",hj,[p("div",dj,[p("div",gj,[c[9]||(c[9]=p("div",{class:"logo-box"},"B",-1)),p("h2",null,kt(s.value?"로그인":"회원가입"),1),p("p",null,kt(s.value?"로그인을 해주시기 바랍니다.":"새로운 계정을 생성합니다."),1)]),s.value?(ht(),Bt("div",pj,[p("div",mj,[c[10]||(c[10]=p("label",null,"아이디",-1)),Tt(p("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>A.value.username=u),type:"text",placeholder:"아이디 입력",onKeyup:Is(o,["enter"])},null,544),[[Rt,A.value.username]])]),p("div",Bj,[c[11]||(c[11]=p("label",null,"비밀번호",-1)),Tt(p("input",{"onUpdate:modelValue":c[1]||(c[1]=u=>A.value.password=u),type:"password",placeholder:"••••••••",onKeyup:Is(o,["enter"])},null,544),[[Rt,A.value.password]])]),p("div",wj,[p("label",vj,[Tt(p("input",{type:"checkbox","onUpdate:modelValue":c[2]||(c[2]=u=>i.value=u)},null,512),[[Vb,i.value]]),c[12]||(c[12]=p("span",null,"자동 로그인",-1))])]),p("button",{class:"btn-login",disabled:r.value,onClick:o},kt(r.value?"로그인 중...":"로그인"),9,bj)])):(ht(),Bt("div",yj,[p("div",Cj,[c[13]||(c[13]=p("label",null,"이름",-1)),Tt(p("input",{"onUpdate:modelValue":c[3]||(c[3]=u=>n.value.name=u),type:"text",placeholder:"이름 입력",onKeyup:Is(a,["enter"])},null,544),[[Rt,n.value.name]])]),p("div",xj,[c[14]||(c[14]=p("label",null,"아이디",-1)),Tt(p("input",{"onUpdate:modelValue":c[4]||(c[4]=u=>n.value.username=u),type:"text",placeholder:"아이디 입력",onKeyup:Is(a,["enter"])},null,544),[[Rt,n.value.username]])]),p("div",Fj,[c[15]||(c[15]=p("label",null,"비밀번호",-1)),Tt(p("input",{"onUpdate:modelValue":c[5]||(c[5]=u=>n.value.password=u),type:"password",placeholder:"비밀번호 입력",onKeyup:Is(a,["enter"])},null,544),[[Rt,n.value.password]])]),p("div",_j,[c[16]||(c[16]=p("label",null,"비밀번호 확인",-1)),Tt(p("input",{"onUpdate:modelValue":c[6]||(c[6]=u=>n.value.passwordConfirm=u),type:"password",placeholder:"비밀번호 재입력",onKeyup:Is(a,["enter"])},null,544),[[Rt,n.value.passwordConfirm]])]),p("button",{class:"btn-login",disabled:r.value,onClick:a},kt(r.value?"처리 중...":"회원가입"),9,Uj)])),p("div",Qj,[s.value?(ht(),Bt("p",Ej,[c[17]||(c[17]=ie("계정 정보가 없으신가요? ",-1)),p("span",{onClick:c[7]||(c[7]=u=>s.value=!1)},"회원가입")])):(ht(),Bt("p",Ij,[c[18]||(c[18]=ie("이미 계정이 있으신가요? ",-1)),p("span",{onClick:c[8]||(c[8]=u=>s.value=!0)},"로그인")])),s.value?(ht(),Bt("div",Sj,"테스트 계정: admin / admin123!")):ue("",!0)])])]))}},kj=LA(Lj,[["__scopeId","data-v-d76e0305"]]),C1=lU({history:K_(),routes:[{path:"/login",name:"login",component:kj},{path:"/",name:"home",component:fj,meta:{requiresAuth:!0}},{path:"/ai-chat",name:"ai-chat",component:()=>gc(()=>import("./AIChatView-Bce7qiIa.js"),__vite__mapDeps([0,1])),meta:{requiresAuth:!0}},{path:"/admin",name:"admin",component:()=>gc(()=>import("./AdminView-CZRqrWtV.js"),__vite__mapDeps([2,3])),meta:{requiresAuth:!0}},{path:"/:pathMatch(.*)*",redirect:"/"}]});C1.beforeEach((e,t,A)=>{const n=localStorage.getItem("accessToken");e.meta.requiresAuth&&!n?A("/login"):e.path==="/login"&&n?A("/"):A()});A_(cU).use(C1).mount("#app");export{ce as F,Ck as S,IU as U,LA as _,Bt as a,Vt as b,nA as c,p as d,i5 as e,ie as f,ue as g,Is as h,G0 as i,xn as j,ge as k,z0 as l,ht as m,T0 as n,wi as o,aA as p,QU as q,Ue as r,UU as s,kt as t,qt as u,Rt as v,Tt as w,Ze as x};