@htmlbricks/hb-gauge 0.61.51 → 0.61.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +6 -6
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(function(vn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Kr=2,Jr="[",ts="]",ki={},Pt=Symbol(),xn=!1;var yn=Array.isArray,es=Array.prototype.indexOf,is=Array.from,Ei=Object.keys,Ie=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,ns=Object.prototype,rs=Array.prototype,ss=Object.getPrototypeOf,_n=Object.isExtensible;function bn(r){for(var s=0;s<r.length;s++)r[s]()}function as(){var r,s,u=new Promise((y,b)=>{r=y,s=b});return{promise:u,resolve:r,reject:s}}const qt=2,Yi=4,wn=8,oi=16,de=32,pe=64,kn=128,Jt=256,Ci=512,It=1024,ne=2048,ge=4096,De=8192,je=16384,qi=32768,os=65536,En=1<<17,ls=1<<18,li=1<<19,us=1<<20,Xi=1<<21,Cn=1<<22,Mi=1<<23,Hi=Symbol("$state"),hs=Symbol("legacy props"),Mn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},$n=8;function Fn(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function fs(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function cs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ds(r){throw new Error("https://svelte.dev/e/effect_orphan")}function ps(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function gs(){throw new Error("https://svelte.dev/e/hydration_failed")}function ms(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function vs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function xs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Sn(r){console.warn("https://svelte.dev/e/hydration_mismatch")}let Ye=!1;function $i(r){Ye=r}let se;function Gi(r){if(r===null)throw Sn(),ki;return se=r}function An(){return Gi(nn(se))}function Tn(r){return r===this.v}function ys(r,s){return r!=r?s==s:r!==s||r!==null&&typeof r=="object"||typeof r=="function"}function _s(r){return!ys(r,this.v)}let bs=!1,te=null;function Nn(r){te=r}function Ln(r,s=!1,u){te={p:te,c:null,e:null,s:r,x:null,l:null}}function Rn(r){var s=te,u=s.e;if(u!==null){s.e=null;for(var y of u)Jn(y)}return r!==void 0&&(s.x=r),te=s.p,r??{}}function zn(){return!0}const ws=new WeakMap;function ks(r){var s=Tt;if(s===null)return St.f|=Mi,r;if((s.f&qi)===0){if((s.f&kn)===0)throw!s.parent&&r instanceof Error&&On(r),r;s.b.error(r)}else Bn(r,s)}function Bn(r,s){for(;s!==null;){if((s.f&kn)!==0)try{s.b.error(r);return}catch(u){r=u}s=s.parent}throw r instanceof Error&&On(r),r}function On(r){const s=ws.get(r);s&&(Ie(r,"message",{value:s.message}),Ie(r,"stack",{value:s.stack}))}let ui=[],Ui=[];function Pn(){var r=ui;ui=[],bn(r)}function Es(){var r=Ui;Ui=[],bn(r)}function Cs(r){ui.length===0&&queueMicrotask(Pn),ui.push(r)}function Ms(){ui.length>0&&Pn(),Ui.length>0&&Es()}function In(r){var s=qt|ne,u=St!==null&&(St.f&qt)!==0?St:null;return Tt===null||u!==null&&(u.f&Jt)!==0?s|=Jt:Tt.f|=li,{ctx:te,deps:null,effects:null,equals:Tn,f:s,fn:r,reactions:null,rv:0,v:Pt,wv:0,parent:u??Tt,ac:null}}function $s(r){const s=In(r);return ar(s),s}function Vn(r){var s=r.effects;if(s!==null){r.effects=null;for(var u=0;u<s.length;u+=1)ve(s[u])}}function Fs(r){for(var s=r.parent;s!==null;){if((s.f&qt)===0)return s;s=s.parent}return null}function Wi(r){var s,u=Tt;Xe(Fs(r));try{Vn(r),s=fr(r)}finally{Xe(u)}return s}function Dn(r){var s=Wi(r);if(r.equals(s)||(r.v=s,r.wv=ur()),!Te){var u=(ye||(r.f&Jt)!==0)&&r.deps!==null?ge:It;Ut(r,u)}}const Zi=new Set;let Xt=null,jn=new Set,Fi=[];function Yn(){const r=Fi.shift();Fi.length>0&&queueMicrotask(Yn),r()}let $e=[],Si=null,Qi=!1,Ai=!1;class Fe{current=new Map;#e=new Map;#t=new Set;#i=0;#u=null;#h=!1;#r=[];#a=[];#s=[];#n=[];#o=[];#f=[];#c=[];skipped_effects=new Set;process(s){$e=[];for(const b of s)this.#p(b);if(this.#r.length===0&&this.#i===0){this.#d();var u=this.#s,y=this.#n;this.#s=[],this.#n=[],this.#o=[],Xt=null,Xn(u),Xn(y),Xt===null?Xt=this:Zi.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#o);for(const b of this.#r)He(b);for(const b of this.#a)He(b);this.#r=[],this.#a=[]}#p(s){s.f^=It;for(var u=s.first;u!==null;){var y=u.f,b=(y&(de|pe))!==0,_=b&&(y&It)!==0,k=_||(y&De)!==0||this.skipped_effects.has(u);if(!k&&u.fn!==null){if(b)u.f^=It;else if((y&Yi)!==0)this.#n.push(u);else if((y&It)===0)if((y&Cn)!==0){var h=u.b?.is_pending()?this.#a:this.#r;h.push(u)}else Ti(u)&&((u.f&oi)!==0&&this.#o.push(u),He(u));var f=u.first;if(f!==null){u=f;continue}}var $=u.parent;for(u=u.next;u===null&&$!==null;)u=$.next,$=$.parent}}#l(s){for(const u of s)((u.f&ne)!==0?this.#f:this.#c).push(u),Ut(u,It);s.length=0}capture(s,u){this.#e.has(s)||this.#e.set(s,u),this.current.set(s,s.v)}activate(){Xt=this}deactivate(){Xt=null;for(const s of jn)if(jn.delete(s),s(),Xt!==null)break}neuter(){this.#h=!0}flush(){$e.length>0?qn():this.#d(),Xt===this&&(this.#i===0&&Zi.delete(this),this.deactivate())}#d(){if(!this.#h)for(const s of this.#t)s();this.#t.clear()}increment(){this.#i+=1}decrement(){if(this.#i-=1,this.#i===0){for(const s of this.#f)Ut(s,ne),hi(s);for(const s of this.#c)Ut(s,ge),hi(s);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(s){this.#t.add(s)}settled(){return(this.#u??=as()).promise}static ensure(){if(Xt===null){const s=Xt=new Fe;Zi.add(Xt),Ai||Fe.enqueue(()=>{Xt===s&&s.flush()})}return Xt}static enqueue(s){Fi.length===0&&queueMicrotask(Yn),Fi.unshift(s)}}function Ki(r){var s=Ai;Ai=!0;try{for(var u;;){if(Ms(),$e.length===0&&(Xt?.flush(),$e.length===0))return Si=null,u;qn()}}finally{Ai=s}}function qn(){var r=qe;Qi=!0;try{var s=0;for(rr(!0);$e.length>0;){var u=Fe.ensure();if(s++>1e3){var y,b;Ss()}u.process($e),me.clear()}}finally{Qi=!1,rr(r),Si=null}}function Ss(){try{ps()}catch(r){Bn(r,Si)}}let Se=null;function Xn(r){var s=r.length;if(s!==0){for(var u=0;u<s;){var y=r[u++];if((y.f&(je|De))===0&&Ti(y)&&(Se=[],He(y),y.deps===null&&y.first===null&&y.nodes_start===null&&(y.teardown===null&&y.ac===null?ir(y):y.fn=null),Se?.length>0)){me.clear();for(const b of Se)He(b);Se=[]}}Se=null}}function hi(r){for(var s=Si=r;s.parent!==null;){s=s.parent;var u=s.f;if(Qi&&s===Tt&&(u&oi)!==0)return;if((u&(pe|de))!==0){if((u&It)===0)return;s.f^=It}}$e.push(s)}const me=new Map;function Hn(r,s){var u={f:0,v:r,reactions:null,equals:Tn,rv:0,wv:0};return u}function ae(r,s){const u=Hn(r);return ar(u),u}function As(r,s=!1,u=!0){const y=Hn(r);return s||(y.equals=_s),y}function Ht(r,s,u=!1){St!==null&&(!oe||(St.f&En)!==0)&&zn()&&(St.f&(qt|oi|Cn|En))!==0&&!he?.includes(r)&&xs();let y=u?fi(s):s;return Ts(r,y)}function Ts(r,s){if(!r.equals(s)){var u=r.v;Te?me.set(r,s):me.set(r,u),r.v=s;var y=Fe.ensure();y.capture(r,u),(r.f&qt)!==0&&((r.f&ne)!==0&&Wi(r),Ut(r,(r.f&Jt)===0?It:ge)),r.wv=ur(),Gn(r,ne),Tt!==null&&(Tt.f&It)!==0&&(Tt.f&(de|pe))===0&&(ee===null?Hs([r]):ee.push(r))}return s}function Ji(r){Ht(r,r.v+1)}function Gn(r,s){var u=r.reactions;if(u!==null)for(var y=u.length,b=0;b<y;b++){var _=u[b],k=_.f,h=(k&ne)===0;h&&Ut(_,s),(k&qt)!==0?Gn(_,ge):h&&((k&oi)!==0&&Se!==null&&Se.push(_),hi(_))}}function fi(r){if(typeof r!="object"||r===null||Hi in r)return r;const s=ss(r);if(s!==ns&&s!==rs)return r;var u=new Map,y=yn(r),b=ae(0),_=Ne,k=h=>{if(Ne===_)return h();var f=St,$=Ne;xe(null),lr(_);var L=h();return xe(f),lr($),L};return y&&u.set("length",ae(r.length)),new Proxy(r,{defineProperty(h,f,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&ms();var L=u.get(f);return L===void 0?L=k(()=>{var tt=ae($.value);return u.set(f,tt),tt}):Ht(L,$.value,!0),!0},deleteProperty(h,f){var $=u.get(f);if($===void 0){if(f in h){const L=k(()=>ae(Pt));u.set(f,L),Ji(b)}}else Ht($,Pt),Ji(b);return!0},get(h,f,$){if(f===Hi)return r;var L=u.get(f),tt=f in h;if(L===void 0&&(!tt||Ve(h,f)?.writable)&&(L=k(()=>{var et=fi(tt?h[f]:Pt),W=ae(et);return W}),u.set(f,L)),L!==void 0){var q=Rt(L);return q===Pt?void 0:q}return Reflect.get(h,f,$)},getOwnPropertyDescriptor(h,f){var $=Reflect.getOwnPropertyDescriptor(h,f);if($&&"value"in $){var L=u.get(f);L&&($.value=Rt(L))}else if($===void 0){var tt=u.get(f),q=tt?.v;if(tt!==void 0&&q!==Pt)return{enumerable:!0,configurable:!0,value:q,writable:!0}}return $},has(h,f){if(f===Hi)return!0;var $=u.get(f),L=$!==void 0&&$.v!==Pt||Reflect.has(h,f);if($!==void 0||Tt!==null&&(!L||Ve(h,f)?.writable)){$===void 0&&($=k(()=>{var q=L?fi(h[f]):Pt,et=ae(q);return et}),u.set(f,$));var tt=Rt($);if(tt===Pt)return!1}return L},set(h,f,$,L){var tt=u.get(f),q=f in h;if(y&&f==="length")for(var et=$;et<tt.v;et+=1){var W=u.get(et+"");W!==void 0?Ht(W,Pt):et in h&&(W=k(()=>ae(Pt)),u.set(et+"",W))}if(tt===void 0)(!q||Ve(h,f)?.writable)&&(tt=k(()=>ae(void 0)),Ht(tt,fi($)),u.set(f,tt));else{q=tt.v!==Pt;var U=k(()=>fi($));Ht(tt,U)}var _t=Reflect.getOwnPropertyDescriptor(h,f);if(_t?.set&&_t.set.call(L,$),!q){if(y&&typeof f=="string"){var Mt=u.get("length"),G=Number(f);Number.isInteger(G)&&G>=Mt.v&&Ht(Mt,G+1)}Ji(b)}return!0},ownKeys(h){Rt(b);var f=Reflect.ownKeys(h).filter(tt=>{var q=u.get(tt);return q===void 0||q.v!==Pt});for(var[$,L]of u)L.v!==Pt&&!($ in h)&&f.push($);return f},setPrototypeOf(){vs()}})}var tn,Un,Wn,Zn;function en(){if(tn===void 0){tn=window,Un=/Firefox/.test(navigator.userAgent);var r=Element.prototype,s=Node.prototype,u=Text.prototype;Wn=Ve(s,"firstChild").get,Zn=Ve(s,"nextSibling").get,_n(r)&&(r.__click=void 0,r.__className=void 0,r.__attributes=null,r.__style=void 0,r.__e=void 0),_n(u)&&(u.__t=void 0)}}function Ns(r=""){return document.createTextNode(r)}function Qn(r){return Wn.call(r)}function nn(r){return Zn.call(r)}function Ls(r){r.textContent=""}function rn(r){var s=St,u=Tt;xe(null),Xe(null);try{return r()}finally{xe(s),Xe(u)}}function Rs(r){Tt===null&&St===null&&ds(),St!==null&&(St.f&Jt)!==0&&Tt===null&&cs(),Te&&fs()}function zs(r,s){var u=s.last;u===null?s.last=s.first=r:(u.next=r,r.prev=u,s.last=r)}function Ae(r,s,u,y=!0){var b=Tt;b!==null&&(b.f&De)!==0&&(r|=De);var _={ctx:te,deps:null,nodes_start:null,nodes_end:null,f:r|ne,first:null,fn:s,last:null,next:null,parent:b,b:b&&b.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(u)try{He(_),_.f|=qi}catch(f){throw ve(_),f}else s!==null&&hi(_);if(y){var k=_;if(u&&k.deps===null&&k.teardown===null&&k.nodes_start===null&&k.first===k.last&&(k.f&li)===0&&(k=k.first),k!==null&&(k.parent=b,b!==null&&zs(k,b),St!==null&&(St.f&qt)!==0&&(r&pe)===0)){var h=St;(h.effects??=[]).push(k)}}return _}function Bs(r){const s=Ae(wn,null,!1);return Ut(s,It),s.teardown=r,s}function Kn(r){Rs();var s=Tt.f,u=!St&&(s&de)!==0&&(s&qi)===0;if(u){var y=te;(y.e??=[]).push(r)}else return Jn(r)}function Jn(r){return Ae(Yi|us,r,!1)}function Os(r){Fe.ensure();const s=Ae(pe|li,r,!0);return()=>{ve(s)}}function Ps(r){Fe.ensure();const s=Ae(pe|li,r,!0);return(u={})=>new Promise(y=>{u.outro?qs(s,()=>{ve(s),y(void 0)}):(ve(s),y(void 0))})}function Is(r){return Ae(Yi,r,!1)}function Vs(r,s=0){return Ae(wn|s,r,!0)}function Ds(r,s=!0){return Ae(de|li,r,!0,s)}function tr(r){var s=r.teardown;if(s!==null){const u=Te,y=St;sr(!0),xe(null);try{s.call(null)}finally{sr(u),xe(y)}}}function er(r,s=!1){var u=r.first;for(r.first=r.last=null;u!==null;){const b=u.ac;b!==null&&rn(()=>{b.abort(Mn)});var y=u.next;(u.f&pe)!==0?u.parent=null:ve(u,s),u=y}}function js(r){for(var s=r.first;s!==null;){var u=s.next;(s.f&de)===0&&ve(s),s=u}}function ve(r,s=!0){var u=!1;(s||(r.f&ls)!==0)&&r.nodes_start!==null&&r.nodes_end!==null&&(Ys(r.nodes_start,r.nodes_end),u=!0),er(r,s&&!u),Ni(r,0),Ut(r,je);var y=r.transitions;if(y!==null)for(const _ of y)_.stop();tr(r);var b=r.parent;b!==null&&b.first!==null&&ir(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=r.ac=null}function Ys(r,s){for(;r!==null;){var u=r===s?null:nn(r);r.remove(),r=u}}function ir(r){var s=r.parent,u=r.prev,y=r.next;u!==null&&(u.next=y),y!==null&&(y.prev=u),s!==null&&(s.first===r&&(s.first=y),s.last===r&&(s.last=u))}function qs(r,s){var u=[];nr(r,u,!0),Xs(u,()=>{ve(r),s&&s()})}function Xs(r,s){var u=r.length;if(u>0){var y=()=>--u||s();for(var b of r)b.out(y)}else s()}function nr(r,s,u){if((r.f&De)===0){if(r.f^=De,r.transitions!==null)for(const k of r.transitions)(k.is_global||u)&&s.push(k);for(var y=r.first;y!==null;){var b=y.next,_=(y.f&os)!==0||(y.f&de)!==0;nr(y,s,_?u:!1),y=b}}}let qe=!1;function rr(r){qe=r}let Te=!1;function sr(r){Te=r}let St=null,oe=!1;function xe(r){St=r}let Tt=null;function Xe(r){Tt=r}let he=null;function ar(r){St!==null&&(he===null?he=[r]:he.push(r))}let Vt=null,Gt=0,ee=null;function Hs(r){ee=r}let or=1,ci=0,Ne=ci;function lr(r){Ne=r}let ye=!1;function ur(){return++or}function Ti(r){var s=r.f;if((s&ne)!==0)return!0;if((s&ge)!==0){var u=r.deps,y=(s&Jt)!==0;if(u!==null){var b,_,k=(s&Ci)!==0,h=y&&Tt!==null&&!ye,f=u.length;if((k||h)&&(Tt===null||(Tt.f&je)===0)){var $=r,L=$.parent;for(b=0;b<f;b++)_=u[b],(k||!_?.reactions?.includes($))&&(_.reactions??=[]).push($);k&&($.f^=Ci),h&&L!==null&&(L.f&Jt)===0&&($.f^=Jt)}for(b=0;b<f;b++)if(_=u[b],Ti(_)&&Dn(_),_.wv>r.wv)return!0}(!y||Tt!==null&&!ye)&&Ut(r,It)}return!1}function hr(r,s,u=!0){var y=r.reactions;if(y!==null&&!he?.includes(r))for(var b=0;b<y.length;b++){var _=y[b];(_.f&qt)!==0?hr(_,s,!1):s===_&&(u?Ut(_,ne):(_.f&It)!==0&&Ut(_,ge),hi(_))}}function fr(r){var s=Vt,u=Gt,y=ee,b=St,_=ye,k=he,h=te,f=oe,$=Ne,L=r.f;Vt=null,Gt=0,ee=null,ye=(L&Jt)!==0&&(oe||!qe||St===null),St=(L&(de|pe))===0?r:null,he=null,Nn(r.ctx),oe=!1,Ne=++ci,r.ac!==null&&(rn(()=>{r.ac.abort(Mn)}),r.ac=null);try{r.f|=Xi;var tt=r.fn,q=tt(),et=r.deps;if(Vt!==null){var W;if(Ni(r,Gt),et!==null&&Gt>0)for(et.length=Gt+Vt.length,W=0;W<Vt.length;W++)et[Gt+W]=Vt[W];else r.deps=et=Vt;if(!ye||(L&qt)!==0&&r.reactions!==null)for(W=Gt;W<et.length;W++)(et[W].reactions??=[]).push(r)}else et!==null&&Gt<et.length&&(Ni(r,Gt),et.length=Gt);if(zn()&&ee!==null&&!oe&&et!==null&&(r.f&(qt|ge|ne))===0)for(W=0;W<ee.length;W++)hr(ee[W],r);return b!==null&&b!==r&&(ci++,ee!==null&&(y===null?y=ee:y.push(...ee))),(r.f&Mi)!==0&&(r.f^=Mi),q}catch(U){return ks(U)}finally{r.f^=Xi,Vt=s,Gt=u,ee=y,St=b,ye=_,he=k,Nn(h),oe=f,Ne=$}}function Gs(r,s){let u=s.reactions;if(u!==null){var y=es.call(u,r);if(y!==-1){var b=u.length-1;b===0?u=s.reactions=null:(u[y]=u[b],u.pop())}}u===null&&(s.f&qt)!==0&&(Vt===null||!Vt.includes(s))&&(Ut(s,ge),(s.f&(Jt|Ci))===0&&(s.f^=Ci),Vn(s),Ni(s,0))}function Ni(r,s){var u=r.deps;if(u!==null)for(var y=s;y<u.length;y++)Gs(r,u[y])}function He(r){var s=r.f;if((s&je)===0){Ut(r,It);var u=Tt,y=qe;Tt=r,qe=!0;try{(s&oi)!==0?js(r):er(r),tr(r);var b=fr(r);r.teardown=typeof b=="function"?b:null,r.wv=or;var _;xn&&bs&&(r.f&ne)!==0&&r.deps}finally{qe=y,Tt=u}}}function Rt(r){var s=r.f,u=(s&qt)!==0;if(St!==null&&!oe){var y=Tt!==null&&(Tt.f&je)!==0;if(!y&&!he?.includes(r)){var b=St.deps;if((St.f&Xi)!==0)r.rv<ci&&(r.rv=ci,Vt===null&&b!==null&&b[Gt]===r?Gt++:Vt===null?Vt=[r]:(!ye||!Vt.includes(r))&&Vt.push(r));else{(St.deps??=[]).push(r);var _=r.reactions;_===null?r.reactions=[St]:_.includes(St)||_.push(St)}}}else if(u&&r.deps===null&&r.effects===null){var k=r,h=k.parent;h!==null&&(h.f&Jt)===0&&(k.f^=Jt)}if(Te){if(me.has(r))return me.get(r);if(u){k=r;var f=k.v;return((k.f&It)===0&&k.reactions!==null||cr(k))&&(f=Wi(k)),me.set(k,f),f}}else u&&(k=r,Ti(k)&&Dn(k));if((r.f&Mi)!==0)throw r.v;return r.v}function cr(r){if(r.v===Pt)return!0;if(r.deps===null)return!1;for(const s of r.deps)if(me.has(s)||(s.f&qt)!==0&&cr(s))return!0;return!1}function dr(r){var s=oe;try{return oe=!0,r()}finally{oe=s}}const Us=-7169;function Ut(r,s){r.f=r.f&Us|s}const Ws=new Set,pr=new Set;function Zs(r,s,u,y={}){function b(_){if(y.capture||di.call(s,_),!_.cancelBubble)return rn(()=>u?.call(this,_))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?Cs(()=>{s.addEventListener(r,b,y)}):s.addEventListener(r,b,y),b}function Qs(r,s,u,y,b){var _={capture:y,passive:b},k=Zs(r,s,u,_);(s===document.body||s===window||s===document||s instanceof HTMLMediaElement)&&Bs(()=>{s.removeEventListener(r,k,_)})}let gr=null;function di(r){var s=this,u=s.ownerDocument,y=r.type,b=r.composedPath?.()||[],_=b[0]||r.target;gr=r;var k=0,h=gr===r&&r.__root;if(h){var f=b.indexOf(h);if(f!==-1&&(s===document||s===window)){r.__root=s;return}var $=b.indexOf(s);if($===-1)return;f<=$&&(k=f)}if(_=b[k]||r.target,_!==s){Ie(r,"currentTarget",{configurable:!0,get(){return _||u}});var L=St,tt=Tt;xe(null),Xe(null);try{for(var q,et=[];_!==null;){var W=_.assignedSlot||_.parentNode||_.host||null;try{var U=_["__"+y];if(U!=null&&(!_.disabled||r.target===_))if(yn(U)){var[_t,...Mt]=U;_t.apply(_,[r,...Mt])}else U.call(_,r)}catch(G){q?et.push(G):q=G}if(r.cancelBubble||W===s||W===null)break;_=W}if(q){for(let G of et)queueMicrotask(()=>{throw G});throw q}}finally{r.__root=s,delete r.currentTarget,xe(L),Xe(tt)}}}function Ks(r){var s=document.createElement("template");return s.innerHTML=r.replaceAll("<!>","<!---->"),s.content}function sn(r,s){var u=Tt;u.nodes_start===null&&(u.nodes_start=r,u.nodes_end=s)}function Js(r,s){var u=(s&Kr)!==0,y,b=!r.startsWith("<!>");return()=>{if(Ye)return sn(se,null),se;y===void 0&&(y=Ks(b?r:"<!>"+r),y=Qn(y));var _=u||Un?document.importNode(y,!0):y.cloneNode(!0);return sn(_,_),_}}function mr(r,s){if(Ye){Tt.nodes_end=se,An();return}r!==null&&r.before(s)}const ta=["touchstart","touchmove"];function ea(r){return ta.includes(r)}function vr(r,s){return xr(r,s)}function ia(r,s){en(),s.intro=s.intro??!1;const u=s.target,y=Ye,b=se;try{for(var _=Qn(u);_&&(_.nodeType!==$n||_.data!==Jr);)_=nn(_);if(!_)throw ki;$i(!0),Gi(_),An();const k=xr(r,{...s,anchor:_});if(se===null||se.nodeType!==$n||se.data!==ts)throw Sn(),ki;return $i(!1),k}catch(k){if(k instanceof Error&&k.message.split(`
|
|
2
|
-
`).some(h=>h.startsWith("https://svelte.dev/e/")))throw k;return k!==ki&&console.warn("Failed to hydrate: ",k),s.recover===!1&&gs(),en(),Ls(u),$i(!1),vr(r,s)}finally{$i(y),Gi(b)}}const Ge=new Map;function xr(r,{target:s,anchor:u,props:y={},events:b,context:_,intro:k=!0}){en();var h=new Set,f=tt=>{for(var q=0;q<tt.length;q++){var et=tt[q];if(!h.has(et)){h.add(et);var W=ea(et);s.addEventListener(et,di,{passive:W});var U=Ge.get(et);U===void 0?(document.addEventListener(et,di,{passive:W}),Ge.set(et,1)):Ge.set(et,U+1)}}};f(is(Ws)),pr.add(f);var $=void 0,L=Ps(()=>{var tt=u??s.appendChild(Ns());return Ds(()=>{if(_){Ln({});var q=te;q.c=_}b&&(y.$$events=b),Ye&&sn(tt,null),$=r(tt,y)||{},Ye&&(Tt.nodes_end=se),_&&Rn()}),()=>{for(var q of h){s.removeEventListener(q,di);var et=Ge.get(q);--et===0?(document.removeEventListener(q,di),Ge.delete(q)):Ge.set(q,et)}pr.delete(f),tt!==u&&tt.parentNode?.removeChild(tt)}});return an.set($,L),$}let an=new WeakMap;function na(r,s){const u=an.get(r);return u?(an.delete(r),u(s)):Promise.resolve()}function yr(r){te===null&&Fn(),Kn(()=>{const s=dr(r);if(typeof s=="function")return s})}function ra(r){te===null&&Fn(),yr(()=>()=>dr(r))}function sa(r,s){Is(()=>{var u=r.getRootNode(),y=u.host?u:u.head??u.ownerDocument.head;if(!y.querySelector("#"+s.hash)){const b=document.createElement("style");b.id=s.hash,b.textContent=s.code,y.appendChild(b)}})}function _r(r,s,u,y){var b=y,_=!0,k=()=>(_&&(_=!1,b=y),b),h;h=r[s],h===void 0&&y!==void 0&&(h=k());var f;f=()=>{var q=r[s];return q===void 0?k():(_=!0,q)};var $=!1,L=In(()=>($=!1,f())),tt=Tt;return(function(q,et){if(arguments.length>0){const W=et?Rt(L):q;return Ht(L,W),$=!0,b!==void 0&&(b=W),q}return Te&&$||(tt.f&je)!==0?L.v:Rt(L)})}function aa(r){return new oa(r)}class oa{#e;#t;constructor(s){var u=new Map,y=(_,k)=>{var h=As(k,!1,!1);return u.set(_,h),h};const b=new Proxy({...s.props||{},$$events:{}},{get(_,k){return Rt(u.get(k)??y(k,Reflect.get(_,k)))},has(_,k){return k===hs?!0:(Rt(u.get(k)??y(k,Reflect.get(_,k))),Reflect.has(_,k))},set(_,k,h){return Ht(u.get(k)??y(k,h),h),Reflect.set(_,k,h)}});this.#t=(s.hydrate?ia:vr)(s.component,{target:s.target,anchor:s.anchor,props:b,context:s.context,intro:s.intro??!1,recover:s.recover}),(!s?.props?.$$host||s.sync===!1)&&Ki(),this.#e=b.$$events;for(const _ of Object.keys(this.#t))_==="$set"||_==="$destroy"||_==="$on"||Ie(this,_,{get(){return this.#t[_]},set(k){this.#t[_]=k},enumerable:!0});this.#t.$set=_=>{Object.assign(b,_)},this.#t.$destroy=()=>{na(this.#t)}}$set(s){this.#t.$set(s)}$on(s,u){this.#e[s]=this.#e[s]||[];const y=(...b)=>u.call(this,...b);return this.#e[s].push(y),()=>{this.#e[s]=this.#e[s].filter(b=>b!==y)}}$destroy(){this.#t.$destroy()}}let br;typeof HTMLElement=="function"&&(br=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(r,s,u){super(),this.$$ctor=r,this.$$s=s,u&&this.attachShadow({mode:"open"})}addEventListener(r,s,u){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(s),this.$$c){const y=this.$$c.$on(r,s);this.$$l_u.set(s,y)}super.addEventListener(r,s,u)}removeEventListener(r,s,u){if(super.removeEventListener(r,s,u),this.$$c){const y=this.$$l_u.get(s);y&&(y(),this.$$l_u.delete(s))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(y){return b=>{const _=document.createElement("slot");y!=="default"&&(_.name=y),mr(b,_)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const s={},u=la(this);for(const y of this.$$s)y in u&&(y==="default"&&!this.$$d.children?(this.$$d.children=r(y),s.default=!0):s[y]=r(y));for(const y of this.attributes){const b=this.$$g_p(y.name);b in this.$$d||(this.$$d[b]=Li(b,y.value,this.$$p_d,"toProp"))}for(const y in this.$$p_d)!(y in this.$$d)&&this[y]!==void 0&&(this.$$d[y]=this[y],delete this[y]);this.$$c=aa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:s,$$host:this}}),this.$$me=Os(()=>{Vs(()=>{this.$$r=!0;for(const y of Ei(this.$$c)){if(!this.$$p_d[y]?.reflect)continue;this.$$d[y]=this.$$c[y];const b=Li(y,this.$$d[y],this.$$p_d,"toAttribute");b==null?this.removeAttribute(this.$$p_d[y].attribute||y):this.setAttribute(this.$$p_d[y].attribute||y,b)}this.$$r=!1})});for(const y in this.$$l)for(const b of this.$$l[y]){const _=this.$$c.$on(y,b);this.$$l_u.set(b,_)}this.$$l={}}}attributeChangedCallback(r,s,u){this.$$r||(r=this.$$g_p(r),this.$$d[r]=Li(r,u,this.$$p_d,"toProp"),this.$$c?.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(r){return Ei(this.$$p_d).find(s=>this.$$p_d[s].attribute===r||!this.$$p_d[s].attribute&&s.toLowerCase()===r)||r}});function Li(r,s,u,y){const b=u[r]?.type;if(s=b==="Boolean"&&typeof s!="boolean"?s!=null:s,!y||!u[r])return s;if(y==="toAttribute")switch(b){case"Object":case"Array":return s==null?null:JSON.stringify(s);case"Boolean":return s?"":null;case"Number":return s??null;default:return s}else switch(b){case"Object":case"Array":return s&&JSON.parse(s);case"Boolean":return s;case"Number":return s!=null?+s:s;default:return s}}function la(r){const s={};return r.childNodes.forEach(u=>{s[u.slot||"default"]=!0}),s}function ua(r,s,u,y,b,_){let k=class extends br{constructor(){super(r,u,b),this.$$p_d=s}static get observedAttributes(){return Ei(s).map(h=>(s[h].attribute||h).toLowerCase())}};return Ei(s).forEach(h=>{Ie(k.prototype,h,{get(){return this.$$c&&h in this.$$c?this.$$c[h]:this.$$d[h]},set(f){f=Li(h,f,s),this.$$d[h]=f;var $=this.$$c;if($){var L=Ve($,h)?.get;L?$[h]=f:$.$set({[h]:f})}}})}),y.forEach(h=>{Ie(k.prototype,h,{get(){return this.$$c?.[h]}})}),r.element=k,k}function wr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ri={exports:{}},kr;function ha(){if(kr)return Ri.exports;kr=1;function r(s,u=100,y={}){if(typeof s!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof s}\`.`);if(u<0)throw new RangeError("`wait` must not be negative.");const{immediate:b}=typeof y=="boolean"?{immediate:y}:y;let _,k,h,f,$;function L(){const et=_,W=k;return _=void 0,k=void 0,$=s.apply(et,W),$}function tt(){const et=Date.now()-f;et<u&&et>=0?h=setTimeout(tt,u-et):(h=void 0,b||($=L()))}const q=function(...et){if(_&&this!==_&&Object.getPrototypeOf(this)===Object.getPrototypeOf(_))throw new Error("Debounced method called with different contexts of the same prototype.");_=this,k=et,f=Date.now();const W=b&&!h;return h||(h=setTimeout(tt,u)),W&&($=L()),$};return Object.defineProperty(q,"isPending",{get(){return h!==void 0}}),q.clear=()=>{h&&(clearTimeout(h),h=void 0)},q.flush=()=>{h&&q.trigger()},q.trigger=()=>{$=L(),q.clear()},q}return Ri.exports.debounce=r,Ri.exports=r,Ri.exports}var fa=ha();const ca=wr(fa);var on={exports:{}},Er;function da(){return Er||(Er=1,(function(r,s){(function(u,y){r.exports=y()})(window,function(){return(function(u){var y={};function b(_){if(y[_])return y[_].exports;var k=y[_]={i:_,l:!1,exports:{}};return u[_].call(k.exports,k,k.exports,b),k.l=!0,k.exports}return b.m=u,b.c=y,b.d=function(_,k,h){b.o(_,k)||Object.defineProperty(_,k,{enumerable:!0,get:h})},b.r=function(_){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})},b.t=function(_,k){if(1&k&&(_=b(_)),8&k||4&k&&typeof _=="object"&&_&&_.__esModule)return _;var h=Object.create(null);if(b.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:_}),2&k&&typeof _!="string")for(var f in _)b.d(h,f,(function($){return _[$]}).bind(null,f));return h},b.n=function(_){var k=_&&_.__esModule?function(){return _.default}:function(){return _};return b.d(k,"a",k),k},b.o=function(_,k){return Object.prototype.hasOwnProperty.call(_,k)},b.p="",b(b.s=1)})([function(u,y,b){var _,k;_=[b(2)],(k=(function(h){function f(t){if(f.is(t,"function"))return $?t():h.on("raphael.DOMload",t);if(f.is(t,xt))return f._engine.create[G](f,t.splice(0,3+f.is(t[0],ct))).add(t);var e=Array.prototype.slice.call(arguments,0);if(f.is(e[e.length-1],"function")){var i=e.pop();return $?i.call(f._engine.create[G](f,e)):h.on("raphael.DOMload",function(){i.call(f._engine.create[G](f,e))})}return f._engine.create[G](f,arguments)}f.version="2.3.0",f.eve=h;var $,L,tt=/[, ]+/,q={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},et=/\{(\d+)\}/g,W="hasOwnProperty",U={doc:document,win:window},_t={was:Object.prototype[W].call(U.win,"Raphael"),is:U.win.Raphael},Mt=function(){this.ca=this.customAttributes={}},G="apply",B="concat",K="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,lt="",ft=" ",I=String,it="split",rt="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[it](ft),wt={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},st=I.prototype.toLowerCase,H=Math,Q=H.max,Z=H.min,ot=H.abs,yt=H.pow,$t=H.PI,ct="number",xt="array",Zt=Object.prototype.toString,p=(f._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),l={NaN:1,Infinity:1,"-Infinity":1},a=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,c=H.round,x=parseFloat,E=parseInt,C=I.prototype.toUpperCase,R=f._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},M=f._availableAnimAttrs={blur:ct,"clip-rect":"csv",cx:ct,cy:ct,fill:"colour","fill-opacity":ct,"font-size":ct,height:ct,opacity:ct,path:"path",r:ct,rx:ct,ry:ct,stroke:"colour","stroke-opacity":ct,"stroke-width":ct,transform:"transform",width:ct,x:ct,y:ct},N=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,X={hs:1,rg:1},nt=/,?([achlmqrstvxz]),?/gi,pt=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,vt=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,dt=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,kt=(f._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),Ct=function(t,e){return x(t)-x(e)},bt=function(t){return t},at=f._rectPath=function(t,e,i,n,o){return o?[["M",t+o,e],["l",i-2*o,0],["a",o,o,0,0,1,o,o],["l",0,n-2*o],["a",o,o,0,0,1,-o,o],["l",2*o-i,0],["a",o,o,0,0,1,-o,-o],["l",0,2*o-n],["a",o,o,0,0,1,o,-o],["z"]]:[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]]},Ft=function(t,e,i,n){return n==null&&(n=i),[["M",t,e],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]]},Lt=f._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return Ft(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return Ft(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return at(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return at(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return at(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return at(e.x,e.y,e.width,e.height)}},zt=f.mapPath=function(t,e){if(!e)return t;var i,n,o,d,m,g,v;for(o=0,m=(t=yi(t)).length;o<m;o++)for(d=1,g=(v=t[o]).length;d<g;d+=2)i=e.x(v[d],v[d+1]),n=e.y(v[d],v[d+1]),v[d]=i,v[d+1]=n;return t};if(f._g=U,f.type=U.win.SVGAngle||U.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",f.type=="VML"){var Nt,Qt=U.doc.createElement("div");if(Qt.innerHTML='<v:shape adj="1"/>',(Nt=Qt.firstChild).style.behavior="url(#default#VML)",!Nt||typeof Nt.adj!="object")return f.type=lt;Qt=null}function Dt(t){if(typeof t=="function"||Object(t)!==t)return t;var e=new t.constructor;for(var i in t)t[W](i)&&(e[i]=Dt(t[i]));return e}f.svg=!(f.vml=f.type=="VML"),f._Paper=Mt,f.fn=L=Mt.prototype=f.prototype,f._id=0,f.is=function(t,e){return(e=st.call(e))=="finite"?!l[W](+t):e=="array"?t instanceof Array:e=="null"&&t===null||e==typeof t&&t!==null||e=="object"&&t===Object(t)||e=="array"&&Array.isArray&&Array.isArray(t)||Zt.call(t).slice(8,-1).toLowerCase()==e},f.angle=function(t,e,i,n,o,d){if(o==null){var m=t-i,g=e-n;return m||g?(180+180*H.atan2(-g,-m)/$t+360)%360:0}return f.angle(t,e,o,d)-f.angle(i,n,o,d)},f.rad=function(t){return t%360*$t/180},f.deg=function(t){return Math.round(180*t/$t%360*1e3)/1e3},f.snapTo=function(t,e,i){if(i=f.is(i,"finite")?i:10,f.is(t,xt)){for(var n=t.length;n--;)if(ot(t[n]-e)<=i)return t[n]}else{var o=e%(t=+t);if(o<i)return e-o;if(o>t-i)return e-o+t}return e};var _e,gi;f.createUUID=(_e=/[xy]/g,gi=function(t){var e=16*H.random()|0;return(t=="x"?e:3&e|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(_e,gi).toUpperCase()}),f.setWindow=function(t){h("raphael.setWindow",f,U.win,t),U.win=t,U.doc=U.win.document,f._engine.initWin&&f._engine.initWin(U.win)};var be=function(t){if(f.vml){var e,i=/^\s+|\s+$/g;try{var n=new ActiveXObject("htmlfile");n.write("<body>"),n.close(),e=n.body}catch{e=createPopup().document.body}var o=e.createTextRange();be=Bt(function(m){try{e.style.color=I(m).replace(i,lt);var g=o.queryCommandValue("ForeColor");return"#"+("000000"+(g=(255&g)<<16|65280&g|(16711680&g)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var d=U.doc.createElement("i");d.title="Raphaël Colour Picker",d.style.display="none",U.doc.body.appendChild(d),be=Bt(function(m){return d.style.color=m,U.doc.defaultView.getComputedStyle(d,lt).getPropertyValue("color")})}return be(t)},Ue=function(){return"hsb("+[this.h,this.s,this.b]+")"},We=function(){return"hsl("+[this.h,this.s,this.l]+")"},mi=function(){return this.hex},Ze=function(t,e,i){if(e==null&&f.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,e=t.g,t=t.r),e==null&&f.is(t,"string")){var n=f.getRGB(t);t=n.r,e=n.g,i=n.b}return(t>1||e>1||i>1)&&(t/=255,e/=255,i/=255),[t,e,i]},Bi=function(t,e,i,n){var o={r:t*=255,g:e*=255,b:i*=255,hex:f.rgb(t,e,i),toString:mi};return f.is(n,"finite")&&(o.opacity=n),o};function Bt(t,e,i){return function n(){var o=Array.prototype.slice.call(arguments,0),d=o.join("␀"),m=n.cache=n.cache||{},g=n.count=n.count||[];return m[W](d)?((function(v,w){for(var S=0,P=v.length;S<P;S++)if(v[S]===w)return v.push(v.splice(S,1)[0])})(g,d),i?i(m[d]):m[d]):(g.length>=1e3&&delete m[g.shift()],g.push(d),m[d]=t[G](e,o),i?i(m[d]):m[d])}}f.color=function(t){var e;return f.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=f.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):f.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=f.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):(f.is(t,"string")&&(t=f.getRGB(t)),f.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(e=f.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=f.rgb2hsb(t),t.v=e.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=mi,t},f.hsb2rgb=function(t,e,i,n){var o,d,m,g,v;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,n=t.o,t=t.h),g=(v=i*e)*(1-ot((t=(t*=360)%360/60)%2-1)),o=d=m=i-v,Bi(o+=[v,g,0,0,g,v][t=~~t],d+=[g,v,v,g,0,0][t],m+=[0,0,g,v,v,g][t],n)},f.hsl2rgb=function(t,e,i,n){var o,d,m,g,v;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),g=(v=2*e*(i<.5?i:1-i))*(1-ot((t=(t*=360)%360/60)%2-1)),o=d=m=i-v/2,Bi(o+=[v,g,0,0,g,v][t=~~t],d+=[g,v,v,g,0,0][t],m+=[0,0,g,v,v,g][t],n)},f.rgb2hsb=function(t,e,i){var n,o;return t=(i=Ze(t,e,i))[0],e=i[1],i=i[2],{h:(((o=(n=Q(t,e,i))-Z(t,e,i))==0?null:n==t?(e-i)/o:n==e?(i-t)/o+2:(t-e)/o+4)+360)%6*60/360,s:o==0?0:o/n,b:n,toString:Ue}},f.rgb2hsl=function(t,e,i){var n,o,d,m;return t=(i=Ze(t,e,i))[0],e=i[1],i=i[2],n=((o=Q(t,e,i))+(d=Z(t,e,i)))/2,{h:(((m=o-d)==0?null:o==t?(e-i)/m:o==e?(i-t)/m+2:(t-e)/m+4)+360)%6*60/360,s:m==0?0:n<.5?m/(2*n):m/(2-2*n),l:n,toString:We}},f._path2string=function(){return this.join(",").replace(nt,"$1")},f._preload=function(t,e){var i=U.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,U.doc.body.removeChild(this)},i.onerror=function(){U.doc.body.removeChild(this)},U.doc.body.appendChild(i),i.src=t};function we(){return this.hex}function Qe(t,e){for(var i=[],n=0,o=t.length;o-2*!e>n;n+=2){var d=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?o-4==n?d[3]={x:+t[0],y:+t[1]}:o-2==n&&(d[2]={x:+t[0],y:+t[1]},d[3]={x:+t[2],y:+t[3]}):d[0]={x:+t[o-2],y:+t[o-1]}:o-4==n?d[3]=d[2]:n||(d[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-d[0].x+6*d[1].x+d[2].x)/6,(-d[0].y+6*d[1].y+d[2].y)/6,(d[1].x+6*d[2].x-d[3].x)/6,(d[1].y+6*d[2].y-d[3].y)/6,d[2].x,d[2].y])}return i}f.getRGB=Bt(function(t){if(!t||(t=I(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:we};if(t=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:we};!X[W](t.toLowerCase().substring(0,2))&&t.charAt()!="#"&&(t=be(t));var e,i,n,o,d,m,g=t.match(p);return g?(g[2]&&(n=E(g[2].substring(5),16),i=E(g[2].substring(3,5),16),e=E(g[2].substring(1,3),16)),g[3]&&(n=E((d=g[3].charAt(3))+d,16),i=E((d=g[3].charAt(2))+d,16),e=E((d=g[3].charAt(1))+d,16)),g[4]&&(m=g[4][it](N),e=x(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),i=x(m[1]),m[1].slice(-1)=="%"&&(i*=2.55),n=x(m[2]),m[2].slice(-1)=="%"&&(n*=2.55),g[1].toLowerCase().slice(0,4)=="rgba"&&(o=x(m[3])),m[3]&&m[3].slice(-1)=="%"&&(o/=100)),g[5]?(m=g[5][it](N),e=x(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),i=x(m[1]),m[1].slice(-1)=="%"&&(i*=2.55),n=x(m[2]),m[2].slice(-1)=="%"&&(n*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),g[1].toLowerCase().slice(0,4)=="hsba"&&(o=x(m[3])),m[3]&&m[3].slice(-1)=="%"&&(o/=100),f.hsb2rgb(e,i,n,o)):g[6]?(m=g[6][it](N),e=x(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),i=x(m[1]),m[1].slice(-1)=="%"&&(i*=2.55),n=x(m[2]),m[2].slice(-1)=="%"&&(n*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),g[1].toLowerCase().slice(0,4)=="hsla"&&(o=x(m[3])),m[3]&&m[3].slice(-1)=="%"&&(o/=100),f.hsl2rgb(e,i,n,o)):((g={r:e,g:i,b:n,toString:we}).hex="#"+(16777216|n|i<<8|e<<16).toString(16).slice(1),f.is(o,"finite")&&(g.opacity=o),g)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:we}},f),f.hsb=Bt(function(t,e,i){return f.hsb2rgb(t,e,i).hex}),f.hsl=Bt(function(t,e,i){return f.hsl2rgb(t,e,i).hex}),f.rgb=Bt(function(t,e,i){function n(o){return o+.5|0}return"#"+(16777216|n(i)|n(e)<<8|n(t)<<16).toString(16).slice(1)}),f.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},i=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),i.hex},f.getColor.reset=function(){delete this.start},f.parsePathString=function(t){if(!t)return null;var e=ie(t);if(e.arr)return jt(e.arr);var i={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},n=[];return f.is(t,xt)&&f.is(t[0],xt)&&(n=jt(t)),n.length||I(t).replace(pt,function(o,d,m){var g=[],v=d.toLowerCase();if(m.replace(dt,function(w,S){S&&g.push(+S)}),v=="m"&&g.length>2&&(n.push([d][B](g.splice(0,2))),v="l",d=d=="m"?"l":"L"),v=="r")n.push([d][B](g));else for(;g.length>=i[v]&&(n.push([d][B](g.splice(0,i[v]))),i[v]););}),n.toString=f._path2string,e.arr=jt(n),n},f.parseTransformString=Bt(function(t){if(!t)return null;var e=[];return f.is(t,xt)&&f.is(t[0],xt)&&(e=jt(t)),e.length||I(t).replace(vt,function(i,n,o){var d=[];st.call(n),o.replace(dt,function(m,g){g&&d.push(+g)}),e.push([n][B](d))}),e.toString=f._path2string,e},this,function(t){if(!t)return t;for(var e=[],i=0;i<t.length;i++){for(var n=[],o=0;o<t[i].length;o++)n.push(t[i][o]);e.push(n)}return e});var ie=function(t){var e=ie.ps=ie.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var i in e)e[W](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])}),e[t]};function Ke(t,e,i,n,o){return t*(t*(-3*e+9*i-9*n+3*o)+6*e-12*i+6*n)-3*e+3*i}function re(t,e,i,n,o,d,m,g,v){v==null&&(v=1);for(var w=(v=v>1?1:v<0?0:v)/2,S=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],P=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],T=0,F=0;F<12;F++){var z=w*S[F]+w,V=Ke(z,t,i,o,m),O=Ke(z,e,n,d,g),A=V*V+O*O;T+=P[F]*H.sqrt(A)}return w*T}function vi(t,e,i,n,o,d,m,g){if(!(Q(t,i)<Z(o,m)||Z(t,i)>Q(o,m)||Q(e,n)<Z(d,g)||Z(e,n)>Q(d,g))){var v=(t-i)*(d-g)-(e-n)*(o-m);if(v){var w=((t*n-e*i)*(o-m)-(t-i)*(o*g-d*m))/v,S=((t*n-e*i)*(d-g)-(e-n)*(o*g-d*m))/v,P=+w.toFixed(2),T=+S.toFixed(2);if(!(P<+Z(t,i).toFixed(2)||P>+Q(t,i).toFixed(2)||P<+Z(o,m).toFixed(2)||P>+Q(o,m).toFixed(2)||T<+Z(e,n).toFixed(2)||T>+Q(e,n).toFixed(2)||T<+Z(d,g).toFixed(2)||T>+Q(d,g).toFixed(2)))return{x:w,y:S}}}}function Je(t,e,i){var n=f.bezierBBox(t),o=f.bezierBBox(e);if(!f.isBBoxIntersect(n,o))return i?0:[];for(var d=re.apply(0,t),m=re.apply(0,e),g=Q(~~(d/5),1),v=Q(~~(m/5),1),w=[],S=[],P={},T=i?0:[],F=0;F<g+1;F++){var z=f.findDotsAtSegment.apply(f,t.concat(F/g));w.push({x:z.x,y:z.y,t:F/g})}for(F=0;F<v+1;F++)z=f.findDotsAtSegment.apply(f,e.concat(F/v)),S.push({x:z.x,y:z.y,t:F/v});for(F=0;F<g;F++)for(var V=0;V<v;V++){var O=w[F],A=w[F+1],J=S[V],D=S[V+1],Y=ot(A.x-O.x)<.001?"y":"x",j=ot(D.x-J.x)<.001?"y":"x",gt=vi(O.x,O.y,A.x,A.y,J.x,J.y,D.x,D.y);if(gt){if(P[gt.x.toFixed(4)]==gt.y.toFixed(4))continue;P[gt.x.toFixed(4)]=gt.y.toFixed(4);var ut=O.t+ot((gt[Y]-O[Y])/(A[Y]-O[Y]))*(A.t-O.t),mt=J.t+ot((gt[j]-J[j])/(D[j]-J[j]))*(D.t-J.t);ut>=0&&ut<=1.001&&mt>=0&&mt<=1.001&&(i?T++:T.push({x:gt.x,y:gt.y,t1:Z(ut,1),t2:Z(mt,1)}))}}return T}function xi(t,e,i){t=f._path2curve(t),e=f._path2curve(e);for(var n,o,d,m,g,v,w,S,P,T,F=i?0:[],z=0,V=t.length;z<V;z++){var O=t[z];if(O[0]=="M")n=g=O[1],o=v=O[2];else{O[0]=="C"?(P=[n,o].concat(O.slice(1)),n=P[6],o=P[7]):(P=[n,o,n,o,g,v,g,v],n=g,o=v);for(var A=0,J=e.length;A<J;A++){var D=e[A];if(D[0]=="M")d=w=D[1],m=S=D[2];else{D[0]=="C"?(T=[d,m].concat(D.slice(1)),d=T[6],m=T[7]):(T=[d,m,d,m,w,S,w,S],d=w,m=S);var Y=Je(P,T,i);if(i)F+=Y;else{for(var j=0,gt=Y.length;j<gt;j++)Y[j].segment1=z,Y[j].segment2=A,Y[j].bez1=P,Y[j].bez2=T;F=F.concat(Y)}}}}}return F}f.findDotsAtSegment=function(t,e,i,n,o,d,m,g,v){var w=1-v,S=yt(w,3),P=yt(w,2),T=v*v,F=T*v,z=S*t+3*P*v*i+3*w*v*v*o+F*m,V=S*e+3*P*v*n+3*w*v*v*d+F*g,O=t+2*v*(i-t)+T*(o-2*i+t),A=e+2*v*(n-e)+T*(d-2*n+e),J=i+2*v*(o-i)+T*(m-2*o+i),D=n+2*v*(d-n)+T*(g-2*d+n),Y=w*t+v*i,j=w*e+v*n,gt=w*o+v*m,ut=w*d+v*g,mt=90-180*H.atan2(O-J,A-D)/$t;return(O>J||A<D)&&(mt+=180),{x:z,y:V,m:{x:O,y:A},n:{x:J,y:D},start:{x:Y,y:j},end:{x:gt,y:ut},alpha:mt}},f.bezierBBox=function(t,e,i,n,o,d,m,g){f.is(t,"array")||(t=[t,e,i,n,o,d,m,g]);var v=Pi.apply(null,t);return{x:v.min.x,y:v.min.y,x2:v.max.x,y2:v.max.y,width:v.max.x-v.min.x,height:v.max.y-v.min.y}},f.isPointInsideBBox=function(t,e,i){return e>=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},f.isBBoxIntersect=function(t,e){var i=f.isPointInsideBBox;return i(e,t.x,t.y)||i(e,t.x2,t.y)||i(e,t.x,t.y2)||i(e,t.x2,t.y2)||i(t,e.x,e.y)||i(t,e.x2,e.y)||i(t,e.x,e.y2)||i(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},f.pathIntersection=function(t,e){return xi(t,e)},f.pathIntersectionNumber=function(t,e){return xi(t,e,1)},f.isPointInsidePath=function(t,e,i){var n=f.pathBBox(t);return f.isPointInsideBBox(n,e,i)&&xi(t,[["M",e,i],["H",n.x2+10]],1)%2==1},f._removedFactory=function(t){return function(){h("raphael.log",null,"Raphaël: you are calling to method “"+t+"” of removed object",t)}};var ke=f.pathBBox=function(t){var e=ie(t);if(e.bbox)return Dt(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,n=0,o=0,d=[],m=[],g=0,v=(t=yi(t)).length;g<v;g++)if((i=t[g])[0]=="M")n=i[1],o=i[2],d.push(n),m.push(o);else{var w=Pi(n,o,i[1],i[2],i[3],i[4],i[5],i[6]);d=d[B](w.min.x,w.max.x),m=m[B](w.min.y,w.max.y),n=i[5],o=i[6]}var S=Z[G](0,d),P=Z[G](0,m),T=Q[G](0,d),F=Q[G](0,m),z=T-S,V=F-P,O={x:S,y:P,x2:T,y2:F,width:z,height:V,cx:S+z/2,cy:P+V/2};return e.bbox=Dt(O),O},jt=function(t){var e=Dt(t);return e.toString=f._path2string,e},Nr=f._pathToRelative=function(t){var e=ie(t);if(e.rel)return jt(e.rel);f.is(t,xt)&&f.is(t&&t[0],xt)||(t=f.parsePathString(t));var i=[],n=0,o=0,d=0,m=0,g=0;t[0][0]=="M"&&(d=n=t[0][1],m=o=t[0][2],g++,i.push(["M",n,o]));for(var v=g,w=t.length;v<w;v++){var S=i[v]=[],P=t[v];if(P[0]!=st.call(P[0]))switch(S[0]=st.call(P[0]),S[0]){case"a":S[1]=P[1],S[2]=P[2],S[3]=P[3],S[4]=P[4],S[5]=P[5],S[6]=+(P[6]-n).toFixed(3),S[7]=+(P[7]-o).toFixed(3);break;case"v":S[1]=+(P[1]-o).toFixed(3);break;case"m":d=P[1],m=P[2];default:for(var T=1,F=P.length;T<F;T++)S[T]=+(P[T]-(T%2?n:o)).toFixed(3)}else{S=i[v]=[],P[0]=="m"&&(d=P[1]+n,m=P[2]+o);for(var z=0,V=P.length;z<V;z++)i[v][z]=P[z]}var O=i[v].length;switch(i[v][0]){case"z":n=d,o=m;break;case"h":n+=+i[v][O-1];break;case"v":o+=+i[v][O-1];break;default:n+=+i[v][O-2],o+=+i[v][O-1]}}return i.toString=f._path2string,e.rel=jt(i),i},ti=f._pathToAbsolute=function(t){var e=ie(t);if(e.abs)return jt(e.abs);if(f.is(t,xt)&&f.is(t&&t[0],xt)||(t=f.parsePathString(t)),!t||!t.length)return[["M",0,0]];var i=[],n=0,o=0,d=0,m=0,g=0;t[0][0]=="M"&&(d=n=+t[0][1],m=o=+t[0][2],g++,i[0]=["M",n,o]);for(var v,w,S=t.length==3&&t[0][0]=="M"&&t[1][0].toUpperCase()=="R"&&t[2][0].toUpperCase()=="Z",P=g,T=t.length;P<T;P++){if(i.push(v=[]),(w=t[P])[0]!=C.call(w[0]))switch(v[0]=C.call(w[0]),v[0]){case"A":v[1]=w[1],v[2]=w[2],v[3]=w[3],v[4]=w[4],v[5]=w[5],v[6]=+(w[6]+n),v[7]=+(w[7]+o);break;case"V":v[1]=+w[1]+o;break;case"H":v[1]=+w[1]+n;break;case"R":for(var F=[n,o][B](w.slice(1)),z=2,V=F.length;z<V;z++)F[z]=+F[z]+n,F[++z]=+F[z]+o;i.pop(),i=i[B](Qe(F,S));break;case"M":d=+w[1]+n,m=+w[2]+o;default:for(z=1,V=w.length;z<V;z++)v[z]=+w[z]+(z%2?n:o)}else if(w[0]=="R")F=[n,o][B](w.slice(1)),i.pop(),i=i[B](Qe(F,S)),v=["R"][B](w.slice(-2));else for(var O=0,A=w.length;O<A;O++)v[O]=w[O];switch(v[0]){case"Z":n=d,o=m;break;case"H":n=v[1];break;case"V":o=v[1];break;case"M":d=v[v.length-2],m=v[v.length-1];default:n=v[v.length-2],o=v[v.length-1]}}return i.toString=f._path2string,e.abs=jt(i),i},ei=function(t,e,i,n){return[t,e,i,n,i,n]},Ee=function(t,e,i,n,o,d){return[1/3*t+2/3*i,1/3*e+2/3*n,1/3*o+2/3*i,1/3*d+2/3*n,o,d]},Oi=function(t,e,i,n,o,d,m,g,v,w){var S,P=120*$t/180,T=$t/180*(+o||0),F=[],z=Bt(function(Zr,Qr,ji){return{x:Zr*H.cos(ji)-Qr*H.sin(ji),y:Zr*H.sin(ji)+Qr*H.cos(ji)}});if(w)ut=w[0],mt=w[1],j=w[2],gt=w[3];else{t=(S=z(t,e,-T)).x,e=S.y,g=(S=z(g,v,-T)).x,v=S.y;var V=(t-g)/2,O=(e-v)/2,A=V*V/(i*i)+O*O/(n*n);A>1&&(i*=A=H.sqrt(A),n*=A);var J=i*i,D=n*n,Y=(d==m?-1:1)*H.sqrt(ot((J*D-J*O*O-D*V*V)/(J*O*O+D*V*V))),j=Y*i*O/n+(t+g)/2,gt=Y*-n*V/i+(e+v)/2,ut=H.asin(((e-gt)/n).toFixed(9)),mt=H.asin(((v-gt)/n).toFixed(9));(ut=t<j?$t-ut:ut)<0&&(ut=2*$t+ut),(mt=g<j?$t-mt:mt)<0&&(mt=2*$t+mt),m&&ut>mt&&(ut-=2*$t),!m&&mt>ut&&(mt-=2*$t)}var ni=mt-ut;if(ot(ni)>P){var wi=mt,Yt=g,ue=v;mt=ut+P*(m&&mt>ut?1:-1),g=j+i*H.cos(mt),v=gt+n*H.sin(mt),F=Oi(g,v,i,n,o,0,m,Yt,ue,[mt,wi,j,gt])}ni=mt-ut;var ri=H.cos(ut),si=H.sin(ut),Vi=H.cos(mt),ce=H.sin(mt),Pe=H.tan(ni/4),Di=4/3*i*Pe,Xr=4/3*n*Pe,Hr=[t,e],ai=[t+Di*si,e-Xr*ri],Gr=[g+Di*ce,v-Xr*Vi],Ur=[g,v];if(ai[0]=2*Hr[0]-ai[0],ai[1]=2*Hr[1]-ai[1],w)return[ai,Gr,Ur][B](F);for(var Wr=[],Me=0,Fa=(F=[ai,Gr,Ur][B](F).join()[it](",")).length;Me<Fa;Me++)Wr[Me]=Me%2?z(F[Me-1],F[Me],T).y:z(F[Me],F[Me+1],T).x;return Wr},ze=function(t,e,i,n,o,d,m,g,v){var w=1-v;return{x:yt(w,3)*t+3*yt(w,2)*v*i+3*w*v*v*o+yt(v,3)*m,y:yt(w,3)*e+3*yt(w,2)*v*n+3*w*v*v*d+yt(v,3)*g}},Pi=Bt(function(t,e,i,n,o,d,m,g){var v,w=o-2*i+t-(m-2*o+i),S=2*(i-t)-2*(o-i),P=t-i,T=(-S+H.sqrt(S*S-4*w*P))/2/w,F=(-S-H.sqrt(S*S-4*w*P))/2/w,z=[e,g],V=[t,m];return ot(T)>"1e12"&&(T=.5),ot(F)>"1e12"&&(F=.5),T>0&&T<1&&(v=ze(t,e,i,n,o,d,m,g,T),V.push(v.x),z.push(v.y)),F>0&&F<1&&(v=ze(t,e,i,n,o,d,m,g,F),V.push(v.x),z.push(v.y)),w=d-2*n+e-(g-2*d+n),P=e-n,T=(-(S=2*(n-e)-2*(d-n))+H.sqrt(S*S-4*w*P))/2/w,F=(-S-H.sqrt(S*S-4*w*P))/2/w,ot(T)>"1e12"&&(T=.5),ot(F)>"1e12"&&(F=.5),T>0&&T<1&&(v=ze(t,e,i,n,o,d,m,g,T),V.push(v.x),z.push(v.y)),F>0&&F<1&&(v=ze(t,e,i,n,o,d,m,g,F),V.push(v.x),z.push(v.y)),{min:{x:Z[G](0,V),y:Z[G](0,z)},max:{x:Q[G](0,V),y:Q[G](0,z)}}}),yi=f._path2curve=Bt(function(t,e){var i=!e&&ie(t);if(!e&&i.curve)return jt(i.curve);for(var n=ti(t),o=e&&ti(e),d={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},m={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},g=function(Y,j,gt){var ut,mt;if(!Y)return["C",j.x,j.y,j.x,j.y,j.x,j.y];switch(!(Y[0]in{T:1,Q:1})&&(j.qx=j.qy=null),Y[0]){case"M":j.X=Y[1],j.Y=Y[2];break;case"A":Y=["C"][B](Oi[G](0,[j.x,j.y][B](Y.slice(1))));break;case"S":gt=="C"||gt=="S"?(ut=2*j.x-j.bx,mt=2*j.y-j.by):(ut=j.x,mt=j.y),Y=["C",ut,mt][B](Y.slice(1));break;case"T":gt=="Q"||gt=="T"?(j.qx=2*j.x-j.qx,j.qy=2*j.y-j.qy):(j.qx=j.x,j.qy=j.y),Y=["C"][B](Ee(j.x,j.y,j.qx,j.qy,Y[1],Y[2]));break;case"Q":j.qx=Y[1],j.qy=Y[2],Y=["C"][B](Ee(j.x,j.y,Y[1],Y[2],Y[3],Y[4]));break;case"L":Y=["C"][B](ei(j.x,j.y,Y[1],Y[2]));break;case"H":Y=["C"][B](ei(j.x,j.y,Y[1],j.y));break;case"V":Y=["C"][B](ei(j.x,j.y,j.x,Y[1]));break;case"Z":Y=["C"][B](ei(j.x,j.y,j.X,j.Y))}return Y},v=function(Y,j){if(Y[j].length>7){Y[j].shift();for(var gt=Y[j];gt.length;)S[j]="A",o&&(P[j]="A"),Y.splice(j++,0,["C"][B](gt.splice(0,6)));Y.splice(j,1),V=Q(n.length,o&&o.length||0)}},w=function(Y,j,gt,ut,mt){Y&&j&&Y[mt][0]=="M"&&j[mt][0]!="M"&&(j.splice(mt,0,["M",ut.x,ut.y]),gt.bx=0,gt.by=0,gt.x=Y[mt][1],gt.y=Y[mt][2],V=Q(n.length,o&&o.length||0))},S=[],P=[],T="",F="",z=0,V=Q(n.length,o&&o.length||0);z<V;z++){n[z]&&(T=n[z][0]),T!="C"&&(S[z]=T,z&&(F=S[z-1])),n[z]=g(n[z],d,F),S[z]!="A"&&T=="C"&&(S[z]="C"),v(n,z),o&&(o[z]&&(T=o[z][0]),T!="C"&&(P[z]=T,z&&(F=P[z-1])),o[z]=g(o[z],m,F),P[z]!="A"&&T=="C"&&(P[z]="C"),v(o,z)),w(n,o,d,m,z),w(o,n,m,d,z);var O=n[z],A=o&&o[z],J=O.length,D=o&&A.length;d.x=O[J-2],d.y=O[J-1],d.bx=x(O[J-4])||d.x,d.by=x(O[J-3])||d.y,m.bx=o&&(x(A[D-4])||m.x),m.by=o&&(x(A[D-3])||m.y),m.x=o&&A[D-2],m.y=o&&A[D-1]}return o||(i.curve=jt(n)),o?[n,o]:n},null,jt),Ii=(f._parseDots=Bt(function(t){for(var e=[],i=0,n=t.length;i<n;i++){var o={},d=t[i].match(/^([^:]*):?([\d\.]*)/);if(o.color=f.getRGB(d[1]),o.color.error)return null;o.opacity=o.color.opacity,o.color=o.color.hex,d[2]&&(o.offset=d[2]+"%"),e.push(o)}for(i=1,n=e.length-1;i<n;i++)if(!e[i].offset){for(var m=x(e[i-1].offset||0),g=0,v=i+1;v<n;v++)if(e[v].offset){g=e[v].offset;break}g||(g=100,v=n);for(var w=((g=x(g))-m)/(v-i+1);i<v;i++)m+=w,e[i].offset=m+"%"}return e}),f._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),_a=(f._tofront=function(t,e){e.top!==t&&(Ii(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},f._toback=function(t,e){e.bottom!==t&&(Ii(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},f._insertafter=function(t,e,i){Ii(t,i),e==i.top&&(i.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},f._insertbefore=function(t,e,i){Ii(t,i),e==i.bottom&&(i.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},f.toMatrix=function(t,e){var i=ke(t),n={_:{transform:lt},getBBox:function(){return i}};return Lr(n,e),n.matrix}),Lr=(f.transformPath=function(t,e){return zt(t,_a(t,e))},f._extractTransform=function(t,e){if(e==null)return t._.transform;e=I(e).replace(/\.{3}|\u2026/g,t._.transform||lt);var i,n,o=f.parseTransformString(e),d=0,m=1,g=1,v=t._,w=new Be;if(v.transform=o||[],o)for(var S=0,P=o.length;S<P;S++){var T,F,z,V,O,A=o[S],J=A.length,D=I(A[0]).toLowerCase(),Y=A[0]!=D,j=Y?w.invert():0;D=="t"&&J==3?Y?(T=j.x(0,0),F=j.y(0,0),z=j.x(A[1],A[2]),V=j.y(A[1],A[2]),w.translate(z-T,V-F)):w.translate(A[1],A[2]):D=="r"?J==2?(O=O||t.getBBox(1),w.rotate(A[1],O.x+O.width/2,O.y+O.height/2),d+=A[1]):J==4&&(Y?(z=j.x(A[2],A[3]),V=j.y(A[2],A[3]),w.rotate(A[1],z,V)):w.rotate(A[1],A[2],A[3]),d+=A[1]):D=="s"?J==2||J==3?(O=O||t.getBBox(1),w.scale(A[1],A[J-1],O.x+O.width/2,O.y+O.height/2),m*=A[1],g*=A[J-1]):J==5&&(Y?(z=j.x(A[3],A[4]),V=j.y(A[3],A[4]),w.scale(A[1],A[2],z,V)):w.scale(A[1],A[2],A[3],A[4]),m*=A[1],g*=A[2]):D=="m"&&J==7&&w.add(A[1],A[2],A[3],A[4],A[5],A[6]),v.dirtyT=1,t.matrix=w}t.matrix=w,v.sx=m,v.sy=g,v.deg=d,v.dx=i=w.e,v.dy=n=w.f,m==1&&g==1&&!d&&v.bbox?(v.bbox.x+=+i,v.bbox.y+=+n):v.dirtyT=1}),Rr=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return t.length==4?[e,0,t[2],t[3]]:[e,0];case"s":return t.length==5?[e,1,1,t[3],t[4]]:t.length==3?[e,1,1]:[e,1]}},ba=f._equaliseTransform=function(t,e){e=I(e).replace(/\.{3}|\u2026/g,t),t=f.parseTransformString(t)||[],e=f.parseTransformString(e)||[];for(var i,n,o,d,m=Q(t.length,e.length),g=[],v=[],w=0;w<m;w++){if(o=t[w]||Rr(e[w]),d=e[w]||Rr(o),o[0]!=d[0]||o[0].toLowerCase()=="r"&&(o[2]!=d[2]||o[3]!=d[3])||o[0].toLowerCase()=="s"&&(o[3]!=d[3]||o[4]!=d[4]))return;for(g[w]=[],v[w]=[],i=0,n=Q(o.length,d.length);i<n;i++)i in o&&(g[w][i]=o[i]),i in d&&(v[w][i]=d[i])}return{from:g,to:v}};function Be(t,e,i,n,o,d){t!=null?(this.a=+t,this.b=+e,this.c=+i,this.d=+n,this.e=+o,this.f=+d):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}f._getContainer=function(t,e,i,n){var o;if((o=n!=null||f.is(t,"object")?t:U.doc.getElementById(t))!=null)return o.tagName?e==null?{container:o,width:o.style.pixelWidth||o.offsetWidth,height:o.style.pixelHeight||o.offsetHeight}:{container:o,width:e,height:i}:{container:1,x:t,y:e,width:i,height:n}},f.pathToRelative=Nr,f._engine={},f.path2curve=yi,f.matrix=function(t,e,i,n,o,d){return new Be(t,e,i,n,o,d)},(function(t){function e(n){return n[0]*n[0]+n[1]*n[1]}function i(n){var o=H.sqrt(e(n));n[0]&&(n[0]/=o),n[1]&&(n[1]/=o)}t.add=function(n,o,d,m,g,v){var w,S,P,T,F=[[],[],[]],z=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],V=[[n,d,g],[o,m,v],[0,0,1]];for(n&&n instanceof Be&&(V=[[n.a,n.c,n.e],[n.b,n.d,n.f],[0,0,1]]),w=0;w<3;w++)for(S=0;S<3;S++){for(T=0,P=0;P<3;P++)T+=z[w][P]*V[P][S];F[w][S]=T}this.a=F[0][0],this.b=F[1][0],this.c=F[0][1],this.d=F[1][1],this.e=F[0][2],this.f=F[1][2]},t.invert=function(){var n=this,o=n.a*n.d-n.b*n.c;return new Be(n.d/o,-n.b/o,-n.c/o,n.a/o,(n.c*n.f-n.d*n.e)/o,(n.b*n.e-n.a*n.f)/o)},t.clone=function(){return new Be(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(n,o){this.add(1,0,0,1,n,o)},t.scale=function(n,o,d,m){o==null&&(o=n),(d||m)&&this.add(1,0,0,1,d,m),this.add(n,0,0,o,0,0),(d||m)&&this.add(1,0,0,1,-d,-m)},t.rotate=function(n,o,d){n=f.rad(n),o=o||0,d=d||0;var m=+H.cos(n).toFixed(9),g=+H.sin(n).toFixed(9);this.add(m,g,-g,m,o,d),this.add(1,0,0,1,-o,-d)},t.x=function(n,o){return n*this.a+o*this.c+this.e},t.y=function(n,o){return n*this.b+o*this.d+this.f},t.get=function(n){return+this[I.fromCharCode(97+n)].toFixed(4)},t.toString=function(){return f.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var n={};n.dx=this.e,n.dy=this.f;var o=[[this.a,this.c],[this.b,this.d]];n.scalex=H.sqrt(e(o[0])),i(o[0]),n.shear=o[0][0]*o[1][0]+o[0][1]*o[1][1],o[1]=[o[1][0]-o[0][0]*n.shear,o[1][1]-o[0][1]*n.shear],n.scaley=H.sqrt(e(o[1])),i(o[1]),n.shear/=n.scaley;var d=-o[0][1],m=o[1][1];return m<0?(n.rotate=f.deg(H.acos(m)),d<0&&(n.rotate=360-n.rotate)):n.rotate=f.deg(H.asin(d)),n.isSimple=!(+n.shear.toFixed(9)||n.scalex.toFixed(9)!=n.scaley.toFixed(9)&&n.rotate),n.isSuperSimple=!+n.shear.toFixed(9)&&n.scalex.toFixed(9)==n.scaley.toFixed(9)&&!n.rotate,n.noRotation=!+n.shear.toFixed(9)&&!n.rotate,n},t.toTransformString=function(n){var o=n||this[it]();return o.isSimple?(o.scalex=+o.scalex.toFixed(4),o.scaley=+o.scaley.toFixed(4),o.rotate=+o.rotate.toFixed(4),(o.dx||o.dy?"t"+[o.dx,o.dy]:lt)+(o.scalex!=1||o.scaley!=1?"s"+[o.scalex,o.scaley,0,0]:lt)+(o.rotate?"r"+[o.rotate,0,0]:lt)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(Be.prototype);for(var wa=function(){this.returnValue=!1},ka=function(){return this.originalEvent.preventDefault()},Ea=function(){this.cancelBubble=!0},Ca=function(){return this.originalEvent.stopPropagation()},zr=function(t){var e=U.doc.documentElement.scrollTop||U.doc.body.scrollTop,i=U.doc.documentElement.scrollLeft||U.doc.body.scrollLeft;return{x:t.clientX+i,y:t.clientY+e}},Ma=U.doc.addEventListener?function(t,e,i,n){var o=function(m){var g=zr(m);return i.call(n,m,g.x,g.y)};if(t.addEventListener(e,o,!1),K&&wt[e]){var d=function(m){for(var g=zr(m),v=m,w=0,S=m.targetTouches&&m.targetTouches.length;w<S;w++)if(m.targetTouches[w].target==t){(m=m.targetTouches[w]).originalEvent=v,m.preventDefault=ka,m.stopPropagation=Ca;break}return i.call(n,m,g.x,g.y)};t.addEventListener(wt[e],d,!1)}return function(){return t.removeEventListener(e,o,!1),K&&wt[e]&&t.removeEventListener(wt[e],d,!1),!0}}:U.doc.attachEvent?function(t,e,i,n){var o=function(d){d=d||U.win.event;var m=U.doc.documentElement.scrollTop||U.doc.body.scrollTop,g=U.doc.documentElement.scrollLeft||U.doc.body.scrollLeft,v=d.clientX+g,w=d.clientY+m;return d.preventDefault=d.preventDefault||wa,d.stopPropagation=d.stopPropagation||Ea,i.call(n,d,v,w)};return t.attachEvent("on"+e,o),function(){return t.detachEvent("on"+e,o),!0}}:void 0,Ce=[],un=function(t){for(var e,i=t.clientX,n=t.clientY,o=U.doc.documentElement.scrollTop||U.doc.body.scrollTop,d=U.doc.documentElement.scrollLeft||U.doc.body.scrollLeft,m=Ce.length;m--;){if(e=Ce[m],K&&t.touches){for(var g,v=t.touches.length;v--;)if((g=t.touches[v]).identifier==e.el._drag.id){i=g.clientX,n=g.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var w,S=e.el.node,P=S.nextSibling,T=S.parentNode,F=S.style.display;U.win.opera&&T.removeChild(S),S.style.display="none",w=e.el.paper.getElementByPoint(i,n),S.style.display=F,U.win.opera&&(P?T.insertBefore(S,P):T.appendChild(S)),w&&h("raphael.drag.over."+e.el.id,e.el,w),i+=d,n+=o,h("raphael.drag.move."+e.el.id,e.move_scope||e.el,i-e.el._drag.x,n-e.el._drag.y,i,n,t)}},hn=function(t){f.unmousemove(un).unmouseup(hn);for(var e,i=Ce.length;i--;)(e=Ce[i]).el._drag={},h("raphael.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t);Ce=[]},At=f.el={},Br=rt.length;Br--;)(function(t){f[t]=At[t]=function(e,i){return f.is(e,"function")&&(this.events=this.events||[],this.events.push({name:t,f:e,unbind:Ma(this.shape||this.node||U.doc,t,e,i||this)})),this},f["un"+t]=At["un"+t]=function(e){for(var i=this.events||[],n=i.length;n--;)i[n].name!=t||!f.is(e,"undefined")&&i[n].f!=e||(i[n].unbind(),i.splice(n,1),!i.length&&delete this.events);return this}})(rt[Br]);At.data=function(t,e){var i=kt[this.id]=kt[this.id]||{};if(arguments.length==0)return i;if(arguments.length==1){if(f.is(t,"object")){for(var n in t)t[W](n)&&this.data(n,t[n]);return this}return h("raphael.data.get."+this.id,this,i[t],t),i[t]}return i[t]=e,h("raphael.data.set."+this.id,this,e,t),this},At.removeData=function(t){return t==null?delete kt[this.id]:kt[this.id]&&delete kt[this.id][t],this},At.getData=function(){return Dt(kt[this.id]||{})},At.hover=function(t,e,i,n){return this.mouseover(t,i).mouseout(e,n||i)},At.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var ii=[];At.drag=function(t,e,i,n,o,d){function m(g){(g.originalEvent||g).preventDefault();var v=g.clientX,w=g.clientY,S=U.doc.documentElement.scrollTop||U.doc.body.scrollTop,P=U.doc.documentElement.scrollLeft||U.doc.body.scrollLeft;if(this._drag.id=g.identifier,K&&g.touches){for(var T,F=g.touches.length;F--;)if(T=g.touches[F],this._drag.id=T.identifier,T.identifier==this._drag.id){v=T.clientX,w=T.clientY;break}}this._drag.x=v+P,this._drag.y=w+S,!Ce.length&&f.mousemove(un).mouseup(hn),Ce.push({el:this,move_scope:n,start_scope:o,end_scope:d}),e&&h.on("raphael.drag.start."+this.id,e),t&&h.on("raphael.drag.move."+this.id,t),i&&h.on("raphael.drag.end."+this.id,i),h("raphael.drag.start."+this.id,o||n||this,this._drag.x,this._drag.y,g)}return this._drag={},ii.push({el:this,start:m}),this.mousedown(m),this},At.onDragOver=function(t){t?h.on("raphael.drag.over."+this.id,t):h.unbind("raphael.drag.over."+this.id)},At.undrag=function(){for(var t=ii.length;t--;)ii[t].el==this&&(this.unmousedown(ii[t].start),ii.splice(t,1),h.unbind("raphael.drag.*."+this.id));!ii.length&&f.unmousemove(un).unmouseup(hn),Ce=[]},L.circle=function(t,e,i){var n=f._engine.circle(this,t||0,e||0,i||0);return this.__set__&&this.__set__.push(n),n},L.rect=function(t,e,i,n,o){var d=f._engine.rect(this,t||0,e||0,i||0,n||0,o||0);return this.__set__&&this.__set__.push(d),d},L.ellipse=function(t,e,i,n){var o=f._engine.ellipse(this,t||0,e||0,i||0,n||0);return this.__set__&&this.__set__.push(o),o},L.path=function(t){t&&!f.is(t,"string")&&!f.is(t[0],xt)&&(t+=lt);var e=f._engine.path(f.format[G](f,arguments),this);return this.__set__&&this.__set__.push(e),e},L.image=function(t,e,i,n,o){var d=f._engine.image(this,t||"about:blank",e||0,i||0,n||0,o||0);return this.__set__&&this.__set__.push(d),d},L.text=function(t,e,i){var n=f._engine.text(this,t||0,e||0,I(i));return this.__set__&&this.__set__.push(n),n},L.set=function(t){!f.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var e=new bi(t);return this.__set__&&this.__set__.push(e),e.paper=this,e.type="set",e},L.setStart=function(t){this.__set__=t||this.set()},L.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},L.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},L.setSize=function(t,e){return f._engine.setSize.call(this,t,e)},L.setViewBox=function(t,e,i,n,o){return f._engine.setViewBox.call(this,t,e,i,n,o)},L.top=L.bottom=null,L.raphael=f;function Or(){return this.x+ft+this.y+ft+this.width+" × "+this.height}L.getElementByPoint=function(t,e){var i,n,o,d,m,g,v,w=this.canvas,S=U.doc.elementFromPoint(t,e);if(U.win.opera&&S.tagName=="svg"){var P=(n=(i=w).getBoundingClientRect(),o=i.ownerDocument,d=o.body,m=o.documentElement,g=m.clientTop||d.clientTop||0,v=m.clientLeft||d.clientLeft||0,{y:n.top+(U.win.pageYOffset||m.scrollTop||d.scrollTop)-g,x:n.left+(U.win.pageXOffset||m.scrollLeft||d.scrollLeft)-v}),T=w.createSVGRect();T.x=t-P.x,T.y=e-P.y,T.width=T.height=1;var F=w.getIntersectionList(T,null);F.length&&(S=F[F.length-1])}if(!S)return null;for(;S.parentNode&&S!=w.parentNode&&!S.raphael;)S=S.parentNode;return S==this.canvas.parentNode&&(S=w),S=S&&S.raphael?this.getById(S.raphaelid):null},L.getElementsByBBox=function(t){var e=this.set();return this.forEach(function(i){f.isBBoxIntersect(i.getBBox(),t)&&e.push(i)}),e},L.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},L.forEach=function(t,e){for(var i=this.bottom;i;){if(t.call(e,i)===!1)return this;i=i.next}return this},L.getElementsByPoint=function(t,e){var i=this.set();return this.forEach(function(n){n.isPointInside(t,e)&&i.push(n)}),i},At.isPointInside=function(t,e){var i=this.realPath=Lt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(i=f.transformPath(i,this.attr("transform"))),f.isPointInsidePath(i,t,e)},At.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=Lt[this.type](this),e.bboxwt=ke(this.realPath),e.bboxwt.toString=Or,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=Lt[this.type](this)),e.bbox=ke(zt(this.realPath,this.matrix)),e.bbox.toString=Or,e.dirty=e.dirtyT=0),e.bbox)},At.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},At.glow=function(t){if(this.type=="text")return null;var e={width:((t=t||{}).width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:t.opacity==null?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},i=e.width/2,n=this.paper,o=n.set(),d=this.realPath||Lt[this.type](this);d=this.matrix?zt(d,this.matrix):d;for(var m=1;m<i+1;m++)o.push(n.path(d).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/i*m).toFixed(3),opacity:+(e.opacity/i).toFixed(3)}));return o.insertBefore(this).translate(e.offsetx,e.offsety)};var fn=function(t,e,i,n,o,d,m,g,v){return v==null?re(t,e,i,n,o,d,m,g):f.findDotsAtSegment(t,e,i,n,o,d,m,g,(function(w,S,P,T,F,z,V,O,A){if(!(A<0||re(w,S,P,T,F,z,V,O)<A)){var J,D=.5,Y=1-D;for(J=re(w,S,P,T,F,z,V,O,Y);ot(J-A)>.01;)J=re(w,S,P,T,F,z,V,O,Y+=(J<A?1:-1)*(D/=2));return Y}})(t,e,i,n,o,d,m,g,v))},cn=function(t,e){return function(i,n,o){for(var d,m,g,v,w,S="",P={},T=0,F=0,z=(i=yi(i)).length;F<z;F++){if((g=i[F])[0]=="M")d=+g[1],m=+g[2];else{if(T+(v=fn(d,m,g[1],g[2],g[3],g[4],g[5],g[6]))>n){if(e&&!P.start){if(S+=["C"+(w=fn(d,m,g[1],g[2],g[3],g[4],g[5],g[6],n-T)).start.x,w.start.y,w.m.x,w.m.y,w.x,w.y],o)return S;P.start=S,S=["M"+w.x,w.y+"C"+w.n.x,w.n.y,w.end.x,w.end.y,g[5],g[6]].join(),T+=v,d=+g[5],m=+g[6];continue}if(!t&&!e)return{x:(w=fn(d,m,g[1],g[2],g[3],g[4],g[5],g[6],n-T)).x,y:w.y,alpha:w.alpha}}T+=v,d=+g[5],m=+g[6]}S+=g.shift()+g}return P.end=S,(w=t?T:e?P:f.findDotsAtSegment(d,m,g[0],g[1],g[2],g[3],g[4],g[5],1)).alpha&&(w={x:w.x,y:w.y,alpha:w.alpha}),w}},Pr=cn(1),Ir=cn(),dn=cn(0,1);f.getTotalLength=Pr,f.getPointAtLength=Ir,f.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return dn(t,e).end;var n=dn(t,i,1);return e?dn(n,e).end:n},At.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Pr(t)},At.getPointAtLength=function(t){var e=this.getPath();if(e)return Ir(e,t)},At.getPath=function(){var t,e=f._getPath[this.type];if(this.type!="text"&&this.type!="set")return e&&(t=e(this)),t},At.getSubpath=function(t,e){var i=this.getPath();if(i)return f.getSubpath(i,t,e)};var Kt=f.easing_formulas={linear:function(t){return t},"<":function(t){return yt(t,1.7)},">":function(t){return yt(t,.48)},"<>":function(t){var e=.48-t/1.04,i=H.sqrt(.1734+e*e),n=i-e,o=-i-e,d=yt(ot(n),1/3)*(n<0?-1:1)+yt(ot(o),1/3)*(o<0?-1:1)+.5;return 3*(1-d)*d*d+d*d*d},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:yt(2,-10*t)*H.sin(2*$t*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375}};Kt.easeIn=Kt["ease-in"]=Kt["<"],Kt.easeOut=Kt["ease-out"]=Kt[">"],Kt.easeInOut=Kt["ease-in-out"]=Kt["<>"],Kt["back-in"]=Kt.backIn,Kt["back-out"]=Kt.backOut;var Et=[],Vr=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},pn=function(){for(var t=+new Date,e=0;e<Et.length;e++){var i=Et[e];if(!i.el.removed&&!i.paused){var n,o,d=t-i.start,m=i.ms,g=i.easing,v=i.from,w=i.diff,S=i.to,P=(i.t,i.el),T={},F={};if(i.initstatus?(d=(i.initstatus*i.anim.top-i.prev)/(i.percent-i.prev)*m,i.status=i.initstatus,delete i.initstatus,i.stop&&Et.splice(e--,1)):i.status=(i.prev+(i.percent-i.prev)*(d/m))/i.anim.top,!(d<0))if(d<m){var z=g(d/m);for(var V in v)if(v[W](V)){switch(M[V]){case ct:n=+v[V]+z*m*w[V];break;case"colour":n="rgb("+[gn(c(v[V].r+z*m*w[V].r)),gn(c(v[V].g+z*m*w[V].g)),gn(c(v[V].b+z*m*w[V].b))].join(",")+")";break;case"path":n=[];for(var O=0,A=v[V].length;O<A;O++){n[O]=[v[V][O][0]];for(var J=1,D=v[V][O].length;J<D;J++)n[O][J]=+v[V][O][J]+z*m*w[V][O][J];n[O]=n[O].join(ft)}n=n.join(ft);break;case"transform":if(w[V].real)for(n=[],O=0,A=v[V].length;O<A;O++)for(n[O]=[v[V][O][0]],J=1,D=v[V][O].length;J<D;J++)n[O][J]=v[V][O][J]+z*m*w[V][O][J];else{var Y=function(gt){return+v[V][gt]+z*m*w[V][gt]};n=[["m",Y(0),Y(1),Y(2),Y(3),Y(4),Y(5)]]}break;case"csv":if(V=="clip-rect")for(n=[],O=4;O--;)n[O]=+v[V][O]+z*m*w[V][O];break;default:var j=[][B](v[V]);for(n=[],O=P.paper.customAttributes[V].length;O--;)n[O]=+j[O]+z*m*w[V][O]}T[V]=n}P.attr(T),(function(gt,ut,mt){setTimeout(function(){h("raphael.anim.frame."+gt,ut,mt)})})(P.id,P,i.anim)}else{if((function(gt,ut,mt){setTimeout(function(){h("raphael.anim.frame."+ut.id,ut,mt),h("raphael.anim.finish."+ut.id,ut,mt),f.is(gt,"function")&>.call(ut)})})(i.callback,P,i.anim),P.attr(S),Et.splice(e--,1),i.repeat>1&&!i.next){for(o in S)S[W](o)&&(F[o]=i.totalOrigin[o]);i.el.attr(F),_i(i.anim,i.el,i.anim.percents[0],null,i.totalOrigin,i.repeat-1)}i.next&&!i.stop&&_i(i.anim,i.el,i.next,null,i.totalOrigin,i.repeat)}}}Et.length&&Vr(pn)},gn=function(t){return t>255?255:t<0?0:t};function $a(t,e,i,n,o,d){var m=3*e,g=3*(n-e)-m,v=1-m-g,w=3*i,S=3*(o-i)-w,P=1-w-S;function T(F){return((v*F+g)*F+m)*F}return(function(F,z){var V=(function(O,A){var J,D,Y,j,gt,ut;for(Y=O,ut=0;ut<8;ut++){if(j=T(Y)-O,ot(j)<A)return Y;if(ot(gt=(3*v*Y+2*g)*Y+m)<1e-6)break;Y-=j/gt}if(D=1,(Y=O)<(J=0))return J;if(Y>D)return D;for(;J<D;){if(j=T(Y),ot(j-O)<A)return Y;O>j?J=Y:D=Y,Y=(D-J)/2+J}return Y})(F,z);return((P*V+S)*V+w)*V})(t,1/(200*d))}function fe(t,e){var i=[],n={};if(this.ms=e,this.times=1,t){for(var o in t)t[W](o)&&(n[x(o)]=t[o],i.push(x(o)));i.sort(Ct)}this.anim=n,this.top=i[i.length-1],this.percents=i}function _i(t,e,i,n,o,d){i=x(i);var m,g,v,w,S,P,T=t.ms,F={},z={},V={};if(n)for(A=0,J=Et.length;A<J;A++){var O=Et[A];if(O.el.id==e.id&&O.anim==t){O.percent!=i?(Et.splice(A,1),v=1):g=O,e.attr(O.totalOrigin);break}}else n=+z;for(var A=0,J=t.percents.length;A<J;A++){if(t.percents[A]==i||t.percents[A]>n*t.top){i=t.percents[A],S=t.percents[A-1]||0,T=T/t.top*(i-S),w=t.percents[A+1],m=t.anim[i];break}n&&e.attr(t.anim[t.percents[A]])}if(m){if(g)g.initstatus=n,g.start=new Date-g.ms*n;else{for(var D in m)if(m[W](D)&&(M[W](D)||e.paper.customAttributes[W](D)))switch(F[D]=e.attr(D),F[D]==null&&(F[D]=R[D]),z[D]=m[D],M[D]){case ct:V[D]=(z[D]-F[D])/T;break;case"colour":F[D]=f.getRGB(F[D]);var Y=f.getRGB(z[D]);V[D]={r:(Y.r-F[D].r)/T,g:(Y.g-F[D].g)/T,b:(Y.b-F[D].b)/T};break;case"path":var j=yi(F[D],z[D]),gt=j[1];for(F[D]=j[0],V[D]=[],A=0,J=F[D].length;A<J;A++){V[D][A]=[0];for(var ut=1,mt=F[D][A].length;ut<mt;ut++)V[D][A][ut]=(gt[A][ut]-F[D][A][ut])/T}break;case"transform":var ni=e._,wi=ba(ni[D],z[D]);if(wi)for(F[D]=wi.from,z[D]=wi.to,V[D]=[],V[D].real=!0,A=0,J=F[D].length;A<J;A++)for(V[D][A]=[F[D][A][0]],ut=1,mt=F[D][A].length;ut<mt;ut++)V[D][A][ut]=(z[D][A][ut]-F[D][A][ut])/T;else{var Yt=e.matrix||new Be,ue={_:{transform:ni.transform},getBBox:function(){return e.getBBox(1)}};F[D]=[Yt.a,Yt.b,Yt.c,Yt.d,Yt.e,Yt.f],Lr(ue,z[D]),z[D]=ue._.transform,V[D]=[(ue.matrix.a-Yt.a)/T,(ue.matrix.b-Yt.b)/T,(ue.matrix.c-Yt.c)/T,(ue.matrix.d-Yt.d)/T,(ue.matrix.e-Yt.e)/T,(ue.matrix.f-Yt.f)/T]}break;case"csv":var ri=I(m[D])[it](tt),si=I(F[D])[it](tt);if(D=="clip-rect")for(F[D]=si,V[D]=[],A=si.length;A--;)V[D][A]=(ri[A]-F[D][A])/T;z[D]=ri;break;default:for(ri=[][B](m[D]),si=[][B](F[D]),V[D]=[],A=e.paper.customAttributes[D].length;A--;)V[D][A]=((ri[A]||0)-(si[A]||0))/T}var Vi=m.easing,ce=f.easing_formulas[Vi];if(!ce)if((ce=I(Vi).match(a))&&ce.length==5){var Pe=ce;ce=function(Di){return $a(Di,+Pe[1],+Pe[2],+Pe[3],+Pe[4],T)}}else ce=bt;if(O={anim:t,percent:i,timestamp:P=m.start||t.start||+new Date,start:P+(t.del||0),status:0,initstatus:n||0,stop:!1,ms:T,easing:ce,from:F,diff:V,to:z,el:e,callback:m.callback,prev:S,next:w,repeat:d||t.times,origin:e.attr(),totalOrigin:o},Et.push(O),n&&!g&&!v&&(O.stop=!0,O.start=new Date-T*n,Et.length==1))return pn();v&&(O.start=new Date-O.ms*n),Et.length==1&&Vr(pn)}h("raphael.anim.start."+e.id,e,t)}}function Dr(t){for(var e=0;e<Et.length;e++)Et[e].el.paper==t&&Et.splice(e--,1)}At.animateWith=function(t,e,i,n,o,d){if(this.removed)return d&&d.call(this),this;var m=i instanceof fe?i:f.animation(i,n,o,d);_i(m,this,m.percents[0],null,this.attr());for(var g=0,v=Et.length;g<v;g++)if(Et[g].anim==e&&Et[g].el==t){Et[v-1].start=Et[g].start;break}return this},At.onAnimation=function(t){return t?h.on("raphael.anim.frame."+this.id,t):h.unbind("raphael.anim.frame."+this.id),this},fe.prototype.delay=function(t){var e=new fe(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},fe.prototype.repeat=function(t){var e=new fe(this.anim,this.ms);return e.del=this.del,e.times=H.floor(Q(t,0))||1,e},f.animation=function(t,e,i,n){if(t instanceof fe)return t;!f.is(i,"function")&&i||(n=n||i||null,i=null),t=Object(t),e=+e||0;var o,d,m={};for(d in t)t[W](d)&&x(d)!=d&&x(d)+"%"!=d&&(o=!0,m[d]=t[d]);if(o)return i&&(m.easing=i),n&&(m.callback=n),new fe({100:m},e);if(n){var g=0;for(var v in t){var w=E(v);t[W](v)&&w>g&&(g=w)}!t[g+="%"].callback&&(t[g].callback=n)}return new fe(t,e)},At.animate=function(t,e,i,n){if(this.removed)return n&&n.call(this),this;var o=t instanceof fe?t:f.animation(t,e,i,n);return _i(o,this,o.percents[0],null,this.attr()),this},At.setTime=function(t,e){return t&&e!=null&&this.status(t,Z(e,t.ms)/t.ms),this},At.status=function(t,e){var i,n,o=[],d=0;if(e!=null)return _i(t,this,-1,Z(e,1)),this;for(i=Et.length;d<i;d++)if((n=Et[d]).el.id==this.id&&(!t||n.anim==t)){if(t)return n.status;o.push({anim:n.anim,status:n.status})}return t?0:o},At.pause=function(t){for(var e=0;e<Et.length;e++)Et[e].el.id!=this.id||t&&Et[e].anim!=t||h("raphael.anim.pause."+this.id,this,Et[e].anim)!==!1&&(Et[e].paused=!0);return this},At.resume=function(t){for(var e=0;e<Et.length;e++)if(Et[e].el.id==this.id&&(!t||Et[e].anim==t)){var i=Et[e];h("raphael.anim.resume."+this.id,this,i.anim)!==!1&&(delete i.paused,this.status(i.anim,i.status))}return this},At.stop=function(t){for(var e=0;e<Et.length;e++)Et[e].el.id!=this.id||t&&Et[e].anim!=t||h("raphael.anim.stop."+this.id,this,Et[e].anim)!==!1&&Et.splice(e--,1);return this},h.on("raphael.remove",Dr),h.on("raphael.clear",Dr),At.toString=function(){return"Raphaël’s object"};var jr,Yr,Oe,qr,bi=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,i=t.length;e<i;e++)!t[e]||t[e].constructor!=At.constructor&&t[e].constructor!=bi||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},Ot=bi.prototype;for(var mn in Ot.push=function(){for(var t,e,i=0,n=arguments.length;i<n;i++)!(t=arguments[i])||t.constructor!=At.constructor&&t.constructor!=bi||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},Ot.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Ot.forEach=function(t,e){for(var i=0,n=this.items.length;i<n;i++)if(t.call(e,this.items[i],i)===!1)return this;return this},At)At[W](mn)&&(Ot[mn]=(function(t){return function(){var e=arguments;return this.forEach(function(i){i[t][G](i,e)})}})(mn));return Ot.attr=function(t,e){if(t&&f.is(t,xt)&&f.is(t[0],"object"))for(var i=0,n=t.length;i<n;i++)this.items[i].attr(t[i]);else for(var o=0,d=this.items.length;o<d;o++)this.items[o].attr(t,e);return this},Ot.clear=function(){for(;this.length;)this.pop()},Ot.splice=function(t,e,i){t=t<0?Q(this.length+t,0):t,e=Q(0,Z(this.length-t,e));var n,o=[],d=[],m=[];for(n=2;n<arguments.length;n++)m.push(arguments[n]);for(n=0;n<e;n++)d.push(this[t+n]);for(;n<this.length-t;n++)o.push(this[t+n]);var g=m.length;for(n=0;n<g+o.length;n++)this.items[t+n]=this[t+n]=n<g?m[n]:o[n-g];for(n=this.items.length=this.length-=e-g;this[n];)delete this[n++];return new bi(d)},Ot.exclude=function(t){for(var e=0,i=this.length;e<i;e++)if(this[e]==t)return this.splice(e,1),!0},Ot.animate=function(t,e,i,n){(f.is(i,"function")||!i)&&(n=i||null);var o,d,m=this.items.length,g=m,v=this;if(!m)return this;n&&(d=function(){!--m&&n.call(v)}),i=f.is(i,"string")?i:d;var w=f.animation(t,e,i,d);for(o=this.items[--g].animate(w);g--;)this.items[g]&&!this.items[g].removed&&this.items[g].animateWith(o,w,w),this.items[g]&&!this.items[g].removed||m--;return this},Ot.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},Ot.getBBox=function(){for(var t=[],e=[],i=[],n=[],o=this.items.length;o--;)if(!this.items[o].removed){var d=this.items[o].getBBox();t.push(d.x),e.push(d.y),i.push(d.x+d.width),n.push(d.y+d.height)}return{x:t=Z[G](0,t),y:e=Z[G](0,e),x2:i=Q[G](0,i),y2:n=Q[G](0,n),width:i-t,height:n-e}},Ot.clone=function(t){t=this.paper.set();for(var e=0,i=this.items.length;e<i;e++)t.push(this.items[e].clone());return t},Ot.toString=function(){return"Raphaël‘s set"},Ot.glow=function(t){var e=this.paper.set();return this.forEach(function(i,n){var o=i.glow(t);o?.forEach(function(d,m){e.push(d)})}),e},Ot.isPointInside=function(t,e){var i=!1;return this.forEach(function(n){if(n.isPointInside(t,e))return i=!0,!1}),i},f.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},i=t.face["font-family"];for(var n in t.face)t.face[W](n)&&(e.face[n]=t.face[n]);if(this.fonts[i]?this.fonts[i].push(e):this.fonts[i]=[e],!t.svg){for(var o in e.face["units-per-em"]=E(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[W](o)){var d=t.glyphs[o];if(e.glyphs[o]={w:d.w,k:{},d:d.d&&"M"+d.d.replace(/[mlcxtrv]/g,function(g){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[g]||"M"})+"z"},d.k)for(var m in d.k)d[W](m)&&(e.glyphs[o].k[m]=d.k[m])}}return t},L.getFont=function(t,e,i,n){if(n=n||"normal",i=i||"normal",e=+e||{normal:400,bold:700,lighter:300,bolder:800}[e]||400,f.fonts){var o,d=f.fonts[t];if(!d){var m=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,lt)+"(\\s|$)","i");for(var g in f.fonts)if(f.fonts[W](g)&&m.test(g)){d=f.fonts[g];break}}if(d)for(var v=0,w=d.length;v<w&&((o=d[v]).face["font-weight"]!=e||o.face["font-style"]!=i&&o.face["font-style"]||o.face["font-stretch"]!=n);v++);return o}},L.print=function(t,e,i,n,o,d,m,g){d=d||"middle",m=Q(Z(m||0,1),-1),g=Q(Z(g||1,3),1);var v,w=I(i)[it](lt),S=0,P=0,T=lt;if(f.is(n,"string")&&(n=this.getFont(n)),n){v=(o||16)/n.face["units-per-em"];for(var F=n.face.bbox[it](tt),z=+F[0],V=F[3]-F[1],O=0,A=+F[1]+(d=="baseline"?V+ +n.face.descent:V/2),J=0,D=w.length;J<D;J++){if(w[J]==`
|
|
3
|
-
`)
|
|
4
|
-
You are running Raphaël `+this.version};var
|
|
5
|
-
`),R=[],M=0,N=C.length;M<N;M++)E=I("tspan"),M&&I(E,{dy:1.2*x,x:a.x}),E.appendChild(h._g.doc.createTextNode(C[M])),c.appendChild(E),R[M]=E}else for(M=0,N=(R=c.getElementsByTagName("tspan")).length;M<N;M++)M?I(R[M],{dy:1.2*x,x:a.x}):I(R[0],{dy:0});I(c,{x:a.x,y:a.y}),p._.dirty=1;var X=p._getBBox(),nt=a.y-(X.y+X.height/2);nt&&h.is(nt,"finite")&&I(R[0],{dy:nt})}},yt=function(p){return p.parentNode&&p.parentNode.tagName.toLowerCase()==="a"?p.parentNode:p},$t=function(p,l){this[0]=this.node=p,p.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),p.raphaelid=this.id,this.matrix=h.matrix(),this.realPath=null,this.paper=l,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!l.bottom&&(l.bottom=this),this.prev=l.top,l.top&&(l.top.next=this),l.top=this,this.next=null},ct=h.el;$t.prototype=ct,ct.constructor=$t,h._engine.path=function(p,l){var a=I("path");l.canvas&&l.canvas.appendChild(a);var c=new $t(a,l);return c.type="path",Z(c,{fill:"none",stroke:"#000",path:p}),c},ct.rotate=function(p,l,a){if(this.removed)return this;if((p=$(p).split(_t)).length-1&&(l=L(p[1]),a=L(p[2])),p=L(p[0]),a==null&&(l=a),l==null||a==null){var c=this.getBBox(1);l=c.x+c.width/2,a=c.y+c.height/2}return this.transform(this._.transform.concat([["r",p,l,a]])),this},ct.scale=function(p,l,a,c){if(this.removed)return this;if((p=$(p).split(_t)).length-1&&(l=L(p[1]),a=L(p[2]),c=L(p[3])),p=L(p[0]),l==null&&(l=p),c==null&&(a=c),a==null||c==null)var x=this.getBBox(1);return a=a??x.x+x.width/2,c=c??x.y+x.height/2,this.transform(this._.transform.concat([["s",p,l,a,c]])),this},ct.translate=function(p,l){return this.removed?this:((p=$(p).split(_t)).length-1&&(l=L(p[1])),p=L(p[0])||0,l=+l||0,this.transform(this._.transform.concat([["t",p,l]])),this)},ct.transform=function(p){var l=this._;if(p==null)return l.transform;if(h._extractTransform(this,p),this.clip&&I(this.clip,{transform:this.matrix.invert()}),this.pattern&&wt(this),this.node&&I(this.node,{transform:this.matrix}),l.sx!=1||l.sy!=1){var a=this.attrs[f]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":a})}return this},ct.hide=function(){return this.removed||(this.node.style.display="none"),this},ct.show=function(){return this.removed||(this.node.style.display=""),this},ct.remove=function(){var p=yt(this.node);if(!this.removed&&p.parentNode){var l=this.paper;for(var a in l.__set__&&l.__set__.exclude(this),Mt.unbind("raphael.*.*."+this.id),this.gradient&&l.defs.removeChild(this.gradient),h._tear(this,l),p.parentNode.removeChild(p),this.removeData(),this)this[a]=typeof this[a]=="function"?h._removedFactory(a):null;this.removed=!0}},ct._getBBox=function(){if(this.node.style.display=="none"){this.show();var p=!0}var l,a=!1;this.paper.canvas.parentElement?l=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(l=this.paper.canvas.parentNode.style),l&&l.display=="none"&&(a=!0,l.display="");var c={};try{c=this.node.getBBox()}catch{c={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{c=c||{},a&&(l.display="none")}return p&&this.hide(),c},ct.attr=function(p,l){if(this.removed)return this;if(p==null){var a={};for(var c in this.attrs)this.attrs[f](c)&&(a[c]=this.attrs[c]);return a.gradient&&a.fill=="none"&&(a.fill=a.gradient)&&delete a.gradient,a.transform=this._.transform,a}if(l==null&&h.is(p,"string")){if(p=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(p=="transform")return this._.transform;for(var x=p.split(_t),E={},C=0,R=x.length;C<R;C++)(p=x[C])in this.attrs?E[p]=this.attrs[p]:h.is(this.paper.customAttributes[p],"function")?E[p]=this.paper.customAttributes[p].def:E[p]=h._availableAttrs[p];return R-1?E:E[x[0]]}if(l==null&&h.is(p,"array")){for(E={},C=0,R=p.length;C<R;C++)E[p[C]]=this.attr(p[C]);return E}if(l!=null){var M={};M[p]=l}else p!=null&&h.is(p,"object")&&(M=p);for(var N in M)Mt("raphael.attr."+N+"."+this.id,this,M[N]);for(N in this.paper.customAttributes)if(this.paper.customAttributes[f](N)&&M[f](N)&&h.is(this.paper.customAttributes[N],"function")){var X=this.paper.customAttributes[N].apply(this,[].concat(M[N]));for(var nt in this.attrs[N]=M[N],X)X[f](nt)&&(M[nt]=X[nt])}return Z(this,M),this},ct.toFront=function(){if(this.removed)return this;var p=yt(this.node);p.parentNode.appendChild(p);var l=this.paper;return l.top!=this&&h._tofront(this,l),this},ct.toBack=function(){if(this.removed)return this;var p=yt(this.node),l=p.parentNode;return l.insertBefore(p,l.firstChild),h._toback(this,this.paper),this.paper,this},ct.insertAfter=function(p){if(this.removed||!p)return this;var l=yt(this.node),a=yt(p.node||p[p.length-1].node);return a.nextSibling?a.parentNode.insertBefore(l,a.nextSibling):a.parentNode.appendChild(l),h._insertafter(this,p,this.paper),this},ct.insertBefore=function(p){if(this.removed||!p)return this;var l=yt(this.node),a=yt(p.node||p[0].node);return a.parentNode.insertBefore(l,a),h._insertbefore(this,p,this.paper),this},ct.blur=function(p){var l=this;if(+p!=0){var a=I("filter"),c=I("feGaussianBlur");l.attrs.blur=p,a.id=h.createUUID(),I(c,{stdDeviation:+p||1.5}),a.appendChild(c),l.paper.defs.appendChild(a),l._blur=a,I(l.node,{filter:"url(#"+a.id+")"})}else l._blur&&(l._blur.parentNode.removeChild(l._blur),delete l._blur,delete l.attrs.blur),l.node.removeAttribute("filter");return l},h._engine.circle=function(p,l,a,c){var x=I("circle");p.canvas&&p.canvas.appendChild(x);var E=new $t(x,p);return E.attrs={cx:l,cy:a,r:c,fill:"none",stroke:"#000"},E.type="circle",I(x,E.attrs),E},h._engine.rect=function(p,l,a,c,x,E){var C=I("rect");p.canvas&&p.canvas.appendChild(C);var R=new $t(C,p);return R.attrs={x:l,y:a,width:c,height:x,rx:E||0,ry:E||0,fill:"none",stroke:"#000"},R.type="rect",I(C,R.attrs),R},h._engine.ellipse=function(p,l,a,c,x){var E=I("ellipse");p.canvas&&p.canvas.appendChild(E);var C=new $t(E,p);return C.attrs={cx:l,cy:a,rx:c,ry:x,fill:"none",stroke:"#000"},C.type="ellipse",I(E,C.attrs),C},h._engine.image=function(p,l,a,c,x,E){var C=I("image");I(C,{x:a,y:c,width:x,height:E,preserveAspectRatio:"none"}),C.setAttributeNS(K,"href",l),p.canvas&&p.canvas.appendChild(C);var R=new $t(C,p);return R.attrs={x:a,y:c,width:x,height:E,src:l},R.type="image",R},h._engine.text=function(p,l,a,c){var x=I("text");p.canvas&&p.canvas.appendChild(x);var E=new $t(x,p);return E.attrs={x:l,y:a,"text-anchor":"middle",text:c,"font-family":h._availableAttrs["font-family"],"font-size":h._availableAttrs["font-size"],stroke:"none",fill:"#000"},E.type="text",Z(E,E.attrs),E},h._engine.setSize=function(p,l){return this.width=p||this.width,this.height=l||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},h._engine.create=function(){var p=h._getContainer.apply(0,arguments),l=p&&p.container;if(!l)throw new Error("SVG container not found.");var a,c=p.x,x=p.y,E=p.width,C=p.height,R=I("svg"),M="overflow:hidden;";return c=c||0,x=x||0,I(R,{height:C=C||342,version:1.1,width:E=E||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),l==1?(R.style.cssText=M+"position:absolute;left:"+c+"px;top:"+x+"px",h._g.doc.body.appendChild(R),a=1):(R.style.cssText=M+"position:relative",l.firstChild?l.insertBefore(R,l.firstChild):l.appendChild(R)),(l=new h._Paper).width=E,l.height=C,l.canvas=R,l.clear(),l._left=l._top=0,a&&(l.renderfix=function(){}),l.renderfix(),l},h._engine.setViewBox=function(p,l,a,c,x){Mt("raphael.setViewBox",this,this._viewBox,[p,l,a,c,x]);var E,C,R=this.getSize(),M=et(a/R.width,c/R.height),N=this.top,X=x?"xMidYMid meet":"xMinYMin";for(p==null?(this._vbSize&&(M=1),delete this._vbSize,E="0 0 "+this.width+B+this.height):(this._vbSize=M,E=p+B+l+B+a+B+c),I(this.canvas,{viewBox:E,preserveAspectRatio:X});M&&N;)C="stroke-width"in N.attrs?N.attrs["stroke-width"]:1,N.attr({"stroke-width":C}),N._.dirty=1,N._.dirtyT=1,N=N.prev;return this._viewBox=[p,l,a,c,!!x],this},h.prototype.renderfix=function(){var p,l=this.canvas,a=l.style;try{p=l.getScreenCTM()||l.createSVGMatrix()}catch{p=l.createSVGMatrix()}var c=-p.e%1,x=-p.f%1;(c||x)&&(c&&(this._left=(this._left+c)%1,a.left=this._left+"px"),x&&(this._top=(this._top+x)%1,a.top=this._top+"px"))},h.prototype.clear=function(){h.eve("raphael.clear",this);for(var p=this.canvas;p.firstChild;)p.removeChild(p.firstChild);this.bottom=this.top=null,(this.desc=I("desc")).appendChild(h._g.doc.createTextNode("Created with Raphaël "+h.version)),p.appendChild(this.desc),p.appendChild(this.defs=I("defs"))},h.prototype.remove=function(){for(var p in Mt("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[p]=typeof this[p]=="function"?h._removedFactory(p):null};var xt=h.st;for(var Zt in ct)ct[f](Zt)&&!xt[f](Zt)&&(xt[Zt]=(function(p){return function(){var l=arguments;return this.forEach(function(a){a[p].apply(a,l)})}})(Zt))}}).apply(y,_))===void 0||(u.exports=k)},function(u,y,b){var _,k;_=[b(0)],(k=(function(h){if(!h||h.vml){var f="hasOwnProperty",$=String,L=parseFloat,tt=Math,q=tt.round,et=tt.max,W=tt.min,U=tt.abs,_t=/[, ]+/,Mt=h.eve,G=" ",B="",K={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},lt=/([clmz]),?([^clmz]*)/gi,ft=/ progid:\S+Blur\([^\)]+\)/g,I=/-?[^,\s-]+/g,it="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",rt=21600,wt={path:1,rect:1,image:1},st={circle:1,ellipse:1},H=function(l,a,c){var x=h.matrix();return x.rotate(-l,.5,.5),{dx:x.x(a,c),dy:x.y(a,c)}},Q=function(l,a,c,x,E,C){var R=l._,M=l.matrix,N=R.fillpos,X=l.node,nt=X.style,pt=1,vt="",dt=rt/a,kt=rt/c;if(nt.visibility="hidden",a&&c){if(X.coordsize=U(dt)+G+U(kt),nt.rotation=C*(a*c<0?-1:1),C){var Ct=H(C,x,E);x=Ct.dx,E=Ct.dy}if(a<0&&(vt+="x"),c<0&&(vt+=" y")&&(pt=-1),nt.flip=vt,X.coordorigin=x*-dt+G+E*-kt,N||R.fillsize){var bt=X.getElementsByTagName("fill");bt=bt&&bt[0],X.removeChild(bt),N&&(Ct=H(C,M.x(N[0],N[1]),M.y(N[0],N[1])),bt.position=Ct.dx*pt+G+Ct.dy*pt),R.fillsize&&(bt.size=R.fillsize[0]*U(a)+G+R.fillsize[1]*U(c)),X.appendChild(bt)}nt.visibility="visible"}};h.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
|
|
6
|
-
You are running Raphaël `+this.version};var Z,ot=function(l,a,c){for(var x=$(a).toLowerCase().split("-"),E=c?"end":"start",C=x.length,R="classic",M="medium",N="medium";C--;)switch(x[C]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":R=x[C];break;case"wide":case"narrow":N=x[C];break;case"long":case"short":M=x[C]}var X=l.node.getElementsByTagName("stroke")[0];X[E+"arrow"]=R,X[E+"arrowlength"]=M,X[E+"arrowwidth"]=N},yt=function(l,a){l.attrs=l.attrs||{};var c=l.node,x=l.attrs,E=c.style,C=wt[l.type]&&(a.x!=x.x||a.y!=x.y||a.width!=x.width||a.height!=x.height||a.cx!=x.cx||a.cy!=x.cy||a.rx!=x.rx||a.ry!=x.ry||a.r!=x.r),R=st[l.type]&&(x.cx!=a.cx||x.cy!=a.cy||x.r!=a.r||x.rx!=a.rx||x.ry!=a.ry),M=l;for(var N in a)a[f](N)&&(x[N]=a[N]);if(C&&(x.path=h._getPath[l.type](l),l._.dirty=1),a.href&&(c.href=a.href),a.title&&(c.title=a.title),a.target&&(c.target=a.target),a.cursor&&(E.cursor=a.cursor),"blur"in a&&l.blur(a.blur),(a.path&&l.type=="path"||C)&&(c.path=(function(Bt){var we=/[ahqstv]/gi,Qe=h._pathToAbsolute;if($(Bt).match(we)&&(Qe=h._path2curve),we=/[clmz]/g,Qe==h._pathToAbsolute&&!$(Bt).match(we)){var ie=$(Bt).replace(lt,function(Nr,ti,ei){var Ee=[],Oi=ti.toLowerCase()=="m",ze=K[ti];return ei.replace(I,function(Pi){Oi&&Ee.length==2&&(ze+=Ee+K[ti=="m"?"l":"L"],Ee=[]),Ee.push(q(Pi*rt))}),ze+Ee});return ie}var Ke,re,vi=Qe(Bt);ie=[];for(var Je=0,xi=vi.length;Je<xi;Je++){Ke=vi[Je],(re=vi[Je][0].toLowerCase())=="z"&&(re="x");for(var ke=1,jt=Ke.length;ke<jt;ke++)re+=q(Ke[ke]*rt)+(ke!=jt-1?",":B);ie.push(re)}return ie.join(G)})(~$(x.path).toLowerCase().indexOf("r")?h._pathToAbsolute(x.path):x.path),l._.dirty=1,l.type=="image"&&(l._.fillpos=[x.x,x.y],l._.fillsize=[x.width,x.height],Q(l,1,1,0,0,0))),"transform"in a&&l.transform(a.transform),R){var X=+x.cx,nt=+x.cy,pt=+x.rx||+x.r||0,vt=+x.ry||+x.r||0;c.path=h.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",q((X-pt)*rt),q((nt-vt)*rt),q((X+pt)*rt),q((nt+vt)*rt),q(X*rt)),l._.dirty=1}if("clip-rect"in a){var dt=$(a["clip-rect"]).split(_t);if(dt.length==4){dt[2]=+dt[2]+ +dt[0],dt[3]=+dt[3]+ +dt[1];var kt=c.clipRect||h._g.doc.createElement("div"),Ct=kt.style;Ct.clip=h.format("rect({1}px {2}px {3}px {0}px)",dt),c.clipRect||(Ct.position="absolute",Ct.top=0,Ct.left=0,Ct.width=l.paper.width+"px",Ct.height=l.paper.height+"px",c.parentNode.insertBefore(kt,c),kt.appendChild(c),c.clipRect=kt)}a["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(l.textpath){var bt=l.textpath.style;a.font&&(bt.font=a.font),a["font-family"]&&(bt.fontFamily='"'+a["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,B)+'"'),a["font-size"]&&(bt.fontSize=a["font-size"]),a["font-weight"]&&(bt.fontWeight=a["font-weight"]),a["font-style"]&&(bt.fontStyle=a["font-style"])}if("arrow-start"in a&&ot(M,a["arrow-start"]),"arrow-end"in a&&ot(M,a["arrow-end"],1),a.opacity!=null||a.fill!=null||a.src!=null||a.stroke!=null||a["stroke-width"]!=null||a["stroke-opacity"]!=null||a["fill-opacity"]!=null||a["stroke-dasharray"]!=null||a["stroke-miterlimit"]!=null||a["stroke-linejoin"]!=null||a["stroke-linecap"]!=null){var at=c.getElementsByTagName("fill");if(!(at=at&&at[0])&&(at=Z("fill")),l.type=="image"&&a.src&&(at.src=a.src),a.fill&&(at.on=!0),at.on!=null&&a.fill!="none"&&a.fill!==null||(at.on=!1),at.on&&a.fill){var Ft=$(a.fill).match(h._ISURL);if(Ft){at.parentNode==c&&c.removeChild(at),at.rotate=!0,at.src=Ft[1],at.type="tile";var Lt=l.getBBox(1);at.position=Lt.x+G+Lt.y,l._.fillpos=[Lt.x,Lt.y],h._preload(Ft[1],function(){l._.fillsize=[this.offsetWidth,this.offsetHeight]})}else at.color=h.getRGB(a.fill).hex,at.src=B,at.type="solid",h.getRGB(a.fill).error&&(M.type in{circle:1,ellipse:1}||$(a.fill).charAt()!="r")&&$t(M,a.fill,at)&&(x.fill="none",x.gradient=a.fill,at.rotate=!1)}if("fill-opacity"in a||"opacity"in a){var zt=((+x["fill-opacity"]+1||2)-1)*((+x.opacity+1||2)-1)*((+h.getRGB(a.fill).o+1||2)-1);zt=W(et(zt,0),1),at.opacity=zt,at.src&&(at.color="none")}c.appendChild(at);var Nt=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],Qt=!1;!Nt&&(Qt=Nt=Z("stroke")),(a.stroke&&a.stroke!="none"||a["stroke-width"]||a["stroke-opacity"]!=null||a["stroke-dasharray"]||a["stroke-miterlimit"]||a["stroke-linejoin"]||a["stroke-linecap"])&&(Nt.on=!0),(a.stroke=="none"||a.stroke===null||Nt.on==null||a.stroke==0||a["stroke-width"]==0)&&(Nt.on=!1);var Dt=h.getRGB(a.stroke);Nt.on&&a.stroke&&(Nt.color=Dt.hex),zt=((+x["stroke-opacity"]+1||2)-1)*((+x.opacity+1||2)-1)*((+Dt.o+1||2)-1);var _e=.75*(L(a["stroke-width"])||1);if(zt=W(et(zt,0),1),a["stroke-width"]==null&&(_e=x["stroke-width"]),a["stroke-width"]&&(Nt.weight=_e),_e&&_e<1&&(zt*=_e)&&(Nt.weight=1),Nt.opacity=zt,a["stroke-linejoin"]&&(Nt.joinstyle=a["stroke-linejoin"]||"miter"),Nt.miterlimit=a["stroke-miterlimit"]||8,a["stroke-linecap"]&&(Nt.endcap=a["stroke-linecap"]=="butt"?"flat":a["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in a){var gi={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Nt.dashstyle=gi[f](a["stroke-dasharray"])?gi[a["stroke-dasharray"]]:B}Qt&&c.appendChild(Nt)}if(M.type=="text"){M.paper.canvas.style.display=B;var be=M.paper.span,Ue=x.font&&x.font.match(/\d+(?:\.\d*)?(?=px)/);E=be.style,x.font&&(E.font=x.font),x["font-family"]&&(E.fontFamily=x["font-family"]),x["font-weight"]&&(E.fontWeight=x["font-weight"]),x["font-style"]&&(E.fontStyle=x["font-style"]),Ue=L(x["font-size"]||Ue&&Ue[0])||10,E.fontSize=100*Ue+"px",M.textpath.string&&(be.innerHTML=$(M.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var We=be.getBoundingClientRect();M.W=x.w=(We.right-We.left)/100,M.H=x.h=(We.bottom-We.top)/100,M.X=x.x,M.Y=x.y+M.H/2,("x"in a||"y"in a)&&(M.path.v=h.format("m{0},{1}l{2},{1}",q(x.x*rt),q(x.y*rt),q(x.x*rt)+1));for(var mi=["x","y","text","font","font-family","font-weight","font-style","font-size"],Ze=0,Bi=mi.length;Ze<Bi;Ze++)if(mi[Ze]in a){M._.dirty=1;break}switch(x["text-anchor"]){case"start":M.textpath.style["v-text-align"]="left",M.bbx=M.W/2;break;case"end":M.textpath.style["v-text-align"]="right",M.bbx=-M.W/2;break;default:M.textpath.style["v-text-align"]="center",M.bbx=0}M.textpath.style["v-text-kern"]=!0}},$t=function(l,a,c){l.attrs=l.attrs||{},l.attrs;var x=Math.pow,E="linear",C=".5 .5";if(l.attrs.gradient=a,a=(a=$(a).replace(h._radial_gradient,function(pt,vt,dt){return E="radial",vt&&dt&&(vt=L(vt),dt=L(dt),x(vt-.5,2)+x(dt-.5,2)>.25&&(dt=tt.sqrt(.25-x(vt-.5,2))*(2*(dt>.5)-1)+.5),C=vt+G+dt),B})).split(/\s*\-\s*/),E=="linear"){var R=a.shift();if(R=-L(R),isNaN(R))return null}var M=h._parseDots(a);if(!M)return null;if(l=l.shape||l.node,M.length){l.removeChild(c),c.on=!0,c.method="none",c.color=M[0].color,c.color2=M[M.length-1].color;for(var N=[],X=0,nt=M.length;X<nt;X++)M[X].offset&&N.push(M[X].offset+G+M[X].color);c.colors=N.length?N.join():"0% "+c.color,E=="radial"?(c.type="gradientTitle",c.focus="100%",c.focussize="0 0",c.focusposition=C,c.angle=0):(c.type="gradient",c.angle=(270-R)%360),l.appendChild(c)}return 1},ct=function(l,a){this[0]=this.node=l,l.raphael=!0,this.id=h._oid++,l.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=a,this.matrix=h.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!a.bottom&&(a.bottom=this),this.prev=a.top,a.top&&(a.top.next=this),a.top=this,this.next=null},xt=h.el;ct.prototype=xt,xt.constructor=ct,xt.transform=function(l){if(l==null)return this._.transform;var a,c=this.paper._viewBoxShift,x=c?"s"+[c.scale,c.scale]+"-1-1t"+[c.dx,c.dy]:B;c&&(a=l=$(l).replace(/\.{3}|\u2026/g,this._.transform||B)),h._extractTransform(this,x+l);var E,C=this.matrix.clone(),R=this.skew,M=this.node,N=~$(this.attrs.fill).indexOf("-"),X=!$(this.attrs.fill).indexOf("url(");if(C.translate(1,1),X||N||this.type=="image")if(R.matrix="1 0 0 1",R.offset="0 0",E=C.split(),N&&E.noRotation||!E.isSimple){M.style.filter=C.toFilter();var nt=this.getBBox(),pt=this.getBBox(1),vt=nt.x-pt.x,dt=nt.y-pt.y;M.coordorigin=vt*-rt+G+dt*-rt,Q(this,1,1,vt,dt,0)}else M.style.filter=B,Q(this,E.scalex,E.scaley,E.dx,E.dy,E.rotate);else M.style.filter=B,R.matrix=$(C),R.offset=C.offset();return a!==null&&(this._.transform=a,h._extractTransform(this,a)),this},xt.rotate=function(l,a,c){if(this.removed)return this;if(l!=null){if((l=$(l).split(_t)).length-1&&(a=L(l[1]),c=L(l[2])),l=L(l[0]),c==null&&(a=c),a==null||c==null){var x=this.getBBox(1);a=x.x+x.width/2,c=x.y+x.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",l,a,c]])),this}},xt.translate=function(l,a){return this.removed?this:((l=$(l).split(_t)).length-1&&(a=L(l[1])),l=L(l[0])||0,a=+a||0,this._.bbox&&(this._.bbox.x+=l,this._.bbox.y+=a),this.transform(this._.transform.concat([["t",l,a]])),this)},xt.scale=function(l,a,c,x){if(this.removed)return this;if((l=$(l).split(_t)).length-1&&(a=L(l[1]),c=L(l[2]),x=L(l[3]),isNaN(c)&&(c=null),isNaN(x)&&(x=null)),l=L(l[0]),a==null&&(a=l),x==null&&(c=x),c==null||x==null)var E=this.getBBox(1);return c=c??E.x+E.width/2,x=x??E.y+E.height/2,this.transform(this._.transform.concat([["s",l,a,c,x]])),this._.dirtyT=1,this},xt.hide=function(){return!this.removed&&(this.node.style.display="none"),this},xt.show=function(){return!this.removed&&(this.node.style.display=B),this},xt.auxGetBBox=h.el.getBBox,xt.getBBox=function(){var l=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var a={},c=1/this.paper._viewBoxShift.scale;return a.x=l.x-this.paper._viewBoxShift.dx,a.x*=c,a.y=l.y-this.paper._viewBoxShift.dy,a.y*=c,a.width=l.width*c,a.height=l.height*c,a.x2=a.x+a.width,a.y2=a.y+a.height,a}return l},xt._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},xt.remove=function(){if(!this.removed&&this.node.parentNode){for(var l in this.paper.__set__&&this.paper.__set__.exclude(this),h.eve.unbind("raphael.*.*."+this.id),h._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[l]=typeof this[l]=="function"?h._removedFactory(l):null;this.removed=!0}},xt.attr=function(l,a){if(this.removed)return this;if(l==null){var c={};for(var x in this.attrs)this.attrs[f](x)&&(c[x]=this.attrs[x]);return c.gradient&&c.fill=="none"&&(c.fill=c.gradient)&&delete c.gradient,c.transform=this._.transform,c}if(a==null&&h.is(l,"string")){if(l=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var E=l.split(_t),C={},R=0,M=E.length;R<M;R++)(l=E[R])in this.attrs?C[l]=this.attrs[l]:h.is(this.paper.customAttributes[l],"function")?C[l]=this.paper.customAttributes[l].def:C[l]=h._availableAttrs[l];return M-1?C:C[E[0]]}if(this.attrs&&a==null&&h.is(l,"array")){for(C={},R=0,M=l.length;R<M;R++)C[l[R]]=this.attr(l[R]);return C}var N;for(var X in a!=null&&((N={})[l]=a),a==null&&h.is(l,"object")&&(N=l),N)Mt("raphael.attr."+X+"."+this.id,this,N[X]);if(N){for(X in this.paper.customAttributes)if(this.paper.customAttributes[f](X)&&N[f](X)&&h.is(this.paper.customAttributes[X],"function")){var nt=this.paper.customAttributes[X].apply(this,[].concat(N[X]));for(var pt in this.attrs[X]=N[X],nt)nt[f](pt)&&(N[pt]=nt[pt])}N.text&&this.type=="text"&&(this.textpath.string=N.text),yt(this,N)}return this},xt.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&h._tofront(this,this.paper),this},xt.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),h._toback(this,this.paper)),this)},xt.insertAfter=function(l){return this.removed?this:(l.constructor==h.st.constructor&&(l=l[l.length-1]),l.node.nextSibling?l.node.parentNode.insertBefore(this.node,l.node.nextSibling):l.node.parentNode.appendChild(this.node),h._insertafter(this,l,this.paper),this)},xt.insertBefore=function(l){return this.removed?this:(l.constructor==h.st.constructor&&(l=l[0]),l.node.parentNode.insertBefore(this.node,l.node),h._insertbefore(this,l,this.paper),this)},xt.blur=function(l){var a=this.node.runtimeStyle,c=a.filter;return c=c.replace(ft,B),+l!=0?(this.attrs.blur=l,a.filter=c+G+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+l||1.5)+")",a.margin=h.format("-{0}px 0 0 -{0}px",q(+l||1.5))):(a.filter=c,a.margin=0,delete this.attrs.blur),this},h._engine.path=function(l,a){var c=Z("shape");c.style.cssText=it,c.coordsize=rt+G+rt,c.coordorigin=a.coordorigin;var x=new ct(c,a),E={fill:"none",stroke:"#000"};l&&(E.path=l),x.type="path",x.path=[],x.Path=B,yt(x,E),a.canvas&&a.canvas.appendChild(c);var C=Z("skew");return C.on=!0,c.appendChild(C),x.skew=C,x.transform(B),x},h._engine.rect=function(l,a,c,x,E,C){var R=h._rectPath(a,c,x,E,C),M=l.path(R),N=M.attrs;return M.X=N.x=a,M.Y=N.y=c,M.W=N.width=x,M.H=N.height=E,N.r=C,N.path=R,M.type="rect",M},h._engine.ellipse=function(l,a,c,x,E){var C=l.path();return C.attrs,C.X=a-x,C.Y=c-E,C.W=2*x,C.H=2*E,C.type="ellipse",yt(C,{cx:a,cy:c,rx:x,ry:E}),C},h._engine.circle=function(l,a,c,x){var E=l.path();return E.attrs,E.X=a-x,E.Y=c-x,E.W=E.H=2*x,E.type="circle",yt(E,{cx:a,cy:c,r:x}),E},h._engine.image=function(l,a,c,x,E,C){var R=h._rectPath(c,x,E,C),M=l.path(R).attr({stroke:"none"}),N=M.attrs,X=M.node,nt=X.getElementsByTagName("fill")[0];return N.src=a,M.X=N.x=c,M.Y=N.y=x,M.W=N.width=E,M.H=N.height=C,N.path=R,M.type="image",nt.parentNode==X&&X.removeChild(nt),nt.rotate=!0,nt.src=a,nt.type="tile",M._.fillpos=[c,x],M._.fillsize=[E,C],X.appendChild(nt),Q(M,1,1,0,0,0),M},h._engine.text=function(l,a,c,x){var E=Z("shape"),C=Z("path"),R=Z("textpath");a=a||0,c=c||0,x=x||"",C.v=h.format("m{0},{1}l{2},{1}",q(a*rt),q(c*rt),q(a*rt)+1),C.textpathok=!0,R.string=$(x),R.on=!0,E.style.cssText=it,E.coordsize=rt+G+rt,E.coordorigin="0 0";var M=new ct(E,l),N={fill:"#000",stroke:"none",font:h._availableAttrs.font,text:x};M.shape=E,M.path=C,M.textpath=R,M.type="text",M.attrs.text=$(x),M.attrs.x=a,M.attrs.y=c,M.attrs.w=1,M.attrs.h=1,yt(M,N),E.appendChild(R),E.appendChild(C),l.canvas.appendChild(E);var X=Z("skew");return X.on=!0,E.appendChild(X),M.skew=X,M.transform(B),M},h._engine.setSize=function(l,a){var c=this.canvas.style;return this.width=l,this.height=a,l==+l&&(l+="px"),a==+a&&(a+="px"),c.width=l,c.height=a,c.clip="rect(0 "+l+" "+a+" 0)",this._viewBox&&h._engine.setViewBox.apply(this,this._viewBox),this},h._engine.setViewBox=function(l,a,c,x,E){h.eve("raphael.setViewBox",this,this._viewBox,[l,a,c,x,E]);var C,R,M=this.getSize(),N=M.width,X=M.height;return E&&(c*(C=X/x)<N&&(l-=(N-c*C)/2/C),x*(R=N/c)<X&&(a-=(X-x*R)/2/R)),this._viewBox=[l,a,c,x,!!E],this._viewBoxShift={dx:-l,dy:-a,scale:M},this.forEach(function(nt){nt.transform("...")}),this},h._engine.initWin=function(l){var a=l.document;a.styleSheets.length<31?a.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):a.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!a.namespaces.rvml&&a.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),Z=function(c){return a.createElement("<rvml:"+c+' class="rvml">')}}catch{Z=function(x){return a.createElement("<"+x+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},h._engine.initWin(h._g.win),h._engine.create=function(){var l=h._getContainer.apply(0,arguments),a=l.container,c=l.height,x=l.width,E=l.x,C=l.y;if(!a)throw new Error("VML container not found.");var R=new h._Paper,M=R.canvas=h._g.doc.createElement("div"),N=M.style;return E=E||0,C=C||0,x=x||512,c=c||342,R.width=x,R.height=c,x==+x&&(x+="px"),c==+c&&(c+="px"),R.coordsize=216e5+G+216e5,R.coordorigin="0 0",R.span=h._g.doc.createElement("span"),R.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",M.appendChild(R.span),N.cssText=h.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",x,c),a==1?(h._g.doc.body.appendChild(M),N.left=E+"px",N.top=C+"px",N.position="absolute"):a.firstChild?a.insertBefore(M,a.firstChild):a.appendChild(M),R.renderfix=function(){},R},h.prototype.clear=function(){h.eve("raphael.clear",this),this.canvas.innerHTML=B,this.span=h._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},h.prototype.remove=function(){for(var l in h.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[l]=typeof this[l]=="function"?h._removedFactory(l):null;return!0};var Zt=h.st;for(var p in xt)xt[f](p)&&!Zt[f](p)&&(Zt[p]=(function(l){return function(){var a=arguments;return this.forEach(function(c){c[l].apply(c,a)})}})(p))}}).apply(y,_))===void 0||(u.exports=k)}])})})(on)),on.exports}var pa=da();const zi=wr(pa);class ga{constructor(s){if(le(s))throw new Error("* justgage: Make sure to pass options to the constructor!");this.events={},this.node=s.element;const u=this.node.dataset?this.node.dataset:{};(le(s.defaults)?!1:s.defaults)!==!1&&(s=ma({}),delete s.defaults),this.config={element:s.element,classId:va(),value:ht("value",s,u,0,"float"),defaults:ht("defaults",s,u,0,!1),parentNode:ht("parentNode",s,u,null),width:ht("width",s,u,null),height:ht("height",s,u,null),valueFontColor:ht("valueFontColor",s,u,"#010101"),valueFontFamily:ht("valueFontFamily",s,u,"Arial"),symbol:ht("symbol",s,u,""),min:ht("min",s,u,0,"float"),minTxt:ht("minTxt",s,u,!1),max:ht("max",s,u,100,"float"),maxTxt:ht("maxTxt",s,u,!1),reverse:ht("reverse",s,u,!1),humanFriendlyDecimal:ht("humanFriendlyDecimal",s,u,0),textRenderer:ht("textRenderer",s,u,null),onAnimationEnd:ht("onAnimationEnd",s,u,null),gaugeWidthScale:ht("gaugeWidthScale",s,u,1),gaugeColor:ht("gaugeColor",s,u,"#edebeb"),label:ht("label",s,u,""),labelFontColor:ht("labelFontColor",s,u,"#b3b3b3"),labelFontFamily:ht("labelFontFamily",s,u,"Arial"),shadowOpacity:ht("shadowOpacity",s,u,.2),shadowSize:ht("shadowSize",s,u,5),shadowVerticalOffset:ht("shadowVerticalOffset",s,u,3),levelColors:ht("levelColors",s,u,["#a9d70b","#f9c802","#ff0000"],"array"),startAnimationTime:ht("startAnimationTime",s,u,700),startAnimationType:ht("startAnimationType",s,u,">"),refreshAnimationTime:ht("refreshAnimationTime",s,u,700),refreshAnimationType:ht("refreshAnimationType",s,u,">"),donutStartAngle:ht("donutStartAngle",s,u,90),valueMinFontSize:ht("valueMinFontSize",s,u,16),labelMinFontSize:ht("labelMinFontSize",s,u,10),minLabelMinFontSize:ht("minLabelMinFontSize",s,u,10),maxLabelMinFontSize:ht("maxLabelMinFontSize",s,u,10),hideValue:ht("hideValue",s,u,!1),hideMinMax:ht("hideMinMax",s,u,!1),showInnerShadow:ht("showInnerShadow",s,u,!1),humanFriendly:ht("humanFriendly",s,u,!1),noGradient:ht("noGradient",s,u,!1),donut:ht("donut",s,u,!1),relativeGaugeSize:ht("relativeGaugeSize",s,u,!1),counter:ht("counter",s,u,!1),decimals:ht("decimals",s,u,0),customSectors:ht("customSectors",s,u,{}),formatNumber:ht("formatNumber",s,u,!1),pointer:ht("pointer",s,u,!1),pointerOptions:ht("pointerOptions",s,u,{}),displayRemaining:ht("displayRemaining",s,u,!1)};let b,_,k,h,f,$,L,tt,q,et,W,U,_t,Mt,G,B,K,lt,ft;this.config.value>this.config.max&&(this.config.value=this.config.max),this.config.value<this.config.min&&(this.config.value=this.config.min),this.originalValue=ht("value",s,u,-1,"float"),this.canvas=zi(this.config.element,"100%","100%"),this.config.relativeGaugeSize===!0?this.config.donut===!0?(this.canvas.setViewBox(0,0,200,200,!0),b=200,_=200):(this.canvas.setViewBox(0,0,200,100,!0),b=200,_=100):this.config.width!==null&&this.config.height!==null?(b=this.config.width,_=this.config.height):this.config.parentNode!==null?(this.canvas.setViewBox(0,0,200,100,!0),b=200,_=100):(b=Number(Fr(this.config.element,"width").slice(0,-2))*1,_=Number(Fr(this.config.element,"height").slice(0,-2))*1),this.config.donut===!0?(b>_?(h=_,k=h):(b<_,k=b,h=k),$=(b-k)/2,L=(_-h)/2,tt=h/6.4>16?h/5.4:18,q=$+k/2,this.config.label!==""?et=L+h/1.85:et=L+h/1.7,W=h/16>10?h/16:10,U=$+k/2,_t=et+W,Mt=h/16>10?h/16:10,G=$+k/10+k/6.666666666666667*this.config.gaugeWidthScale/2,B=_t,K=h/16>10?h/16:10,lt=$+k-k/10-k/6.666666666666667*this.config.gaugeWidthScale/2,ft=_t):(b>_?(h=_,k=h*2,k>b&&(f=k/b,k=k/f,h=h/f)):b<_?(k=b,h=k/2):(k=b,h=k*.5),$=(b-k)/2,L=(_-h)/2,tt=h/6.5>this.config.valueMinFontSize?h/6.5:this.config.valueMinFontSize,q=$+k/2,et=L+h/1.275,W=h/16>this.config.labelMinFontSize?h/16:this.config.labelMinFontSize,U=$+k/2,_t=et+tt/2+5,Mt=h/16>this.config.minLabelMinFontSize?h/16:this.config.minLabelMinFontSize,G=$+k/10+k/6.666666666666667*this.config.gaugeWidthScale/2,B=_t,K=h/16>this.config.maxLabelMinFontSize?h/16:this.config.maxLabelMinFontSize,lt=$+k-k/10-k/6.666666666666667*this.config.gaugeWidthScale/2,ft=_t),this.params={canvasW:b,canvasH:_,widgetW:k,widgetH:h,dx:$,dy:L,valueFontSize:tt,valueX:q,valueY:et,labelFontSize:W,labelX:U,labelY:_t,minFontSize:Mt,minX:G,minY:B,maxFontSize:K,maxX:lt,maxY:ft},this.canvas.customAttributes.pki=H=>{let Q=this.config.min,Z=this.config.max;const ot=this.params.widgetW,yt=this.params.widgetH,$t=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,Zt=this.config.donut;let p,l,a,c,x,E,C,R,M,N;return Q<0&&(Z-=Q,H-=Q,Q=0),Zt?(p=(1-2*(H-Q)/(Z-Q))*Math.PI,l=ot/2-ot/30,a=l-ot/6.666666666666667*xt,c=ot/2+$t,x=yt/2+ct,E=c+l*Math.cos(p),C=x-l*Math.sin(p),R=c+a*Math.cos(p),M=x-a*Math.sin(p),N="M"+(c-a)+","+x+" ",N+="L"+(c-l)+","+x+" ",H-Q>(Z-Q)/2&&(N+="A"+l+","+l+" 0 0 1 "+(c+l)+","+x+" "),N+="A"+l+","+l+" 0 0 1 "+E+","+C+" ",N+="L"+R+","+M+" ",H-Q>(Z-Q)/2&&(N+="A"+a+","+a+" 0 0 0 "+(c+a)+","+x+" "),N+="A"+a+","+a+" 0 0 0 "+(c-a)+","+x+" ",N+="Z ",{path:N}):(p=(1-(H-Q)/(Z-Q))*Math.PI,l=ot/2-ot/10,a=l-ot/6.666666666666667*xt,c=ot/2+$t,x=yt/1.25+ct,E=c+l*Math.cos(p),C=x-l*Math.sin(p),R=c+a*Math.cos(p),M=x-a*Math.sin(p),N="M"+(c-a)+","+x+" ",N+="L"+(c-l)+","+x+" ",N+="A"+l+","+l+" 0 0 1 "+E+","+C+" ",N+="L"+R+","+M+" ",N+="A"+a+","+a+" 0 0 0 "+(c-a)+","+x+" ",N+="Z ",{path:N})},this.canvas.customAttributes.ndl=function(H){const Q=this.config.min,Z=this.config.max,ot=this.params.widgetW,yt=this.params.widgetH,$t=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,Zt=this.config.donut;let p=ot*3.5/100,l=ot/15,a=ot/100;this.config.pointerOptions.toplength!=null&&this.config.pointerOptions.toplength!==void 0&&(p=this.config.pointerOptions.toplength),this.config.pointerOptions.bottomlength!=null&&this.config.pointerOptions.bottomlength!==void 0&&(l=this.config.pointerOptions.bottomlength),this.config.pointerOptions.bottomwidth!=null&&this.config.pointerOptions.bottomwidth!==void 0&&(a=this.config.pointerOptions.bottomwidth);let c,x,E,C,R,M,N,X,nt,pt,vt,dt,kt,Ct,bt,at,Ft;return Zt?(c=(1-2*(H-Q)/(Z-Q))*Math.PI,x=ot/2-ot/30,E=x-ot/6.666666666666667*xt,C=yt/2+ct,R=ot/2+$t+x*Math.cos(c),M=yt-(yt-C)-x*Math.sin(c),N=ot/2+$t+E*Math.cos(c),X=yt-(yt-C)-E*Math.sin(c),nt=R+p*Math.cos(c),pt=M-p*Math.sin(c),vt=N-l*Math.cos(c),dt=X+l*Math.sin(c),kt=vt+a*Math.sin(c),Ct=dt+a*Math.cos(c),bt=vt-a*Math.sin(c),at=dt-a*Math.cos(c),Ft="M"+kt+","+Ct+" ",Ft+="L"+bt+","+at+" ",Ft+="L"+nt+","+pt+" ",Ft+="Z ",{path:Ft}):(c=(1-(H-Q)/(Z-Q))*Math.PI,x=ot/2-ot/10,E=x-ot/6.666666666666667*xt,C=yt/1.25+ct,R=ot/2+$t+x*Math.cos(c),M=yt-(yt-C)-x*Math.sin(c),N=ot/2+$t+E*Math.cos(c),X=yt-(yt-C)-E*Math.sin(c),nt=R+p*Math.cos(c),pt=M-p*Math.sin(c),vt=N-l*Math.cos(c),dt=X+l*Math.sin(c),kt=vt+a*Math.sin(c),Ct=dt+a*Math.cos(c),bt=vt-a*Math.sin(c),at=dt-a*Math.cos(c),Ft="M"+kt+","+Ct+" ",Ft+="L"+bt+","+at+" ",Ft+="L"+nt+","+pt+" ",Ft+="Z ",{path:Ft})},this.gauge=this.canvas.path().attr({stroke:"none",fill:this.config.gaugeColor,pki:[this.config.max]}),this.level=this.canvas.path().attr({stroke:"none",fill:Mr(this.config.value,(this.config.value-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors),pki:[this.config.min]}),this.config.donut&&this.level.transform("r"+this.config.donutStartAngle+", "+(this.params.widgetW/2+this.params.dx)+", "+(this.params.widgetH/2+this.params.dy)),this.config.pointer&&(this.needle=this.canvas.path().attr({stroke:le(this.config.pointerOptions.stroke)?"none":this.config.pointerOptions.stroke,"stroke-width":le(this.config.pointerOptions.stroke_width)?0:this.config.pointerOptions.stroke_width,"stroke-linecap":le(this.config.pointerOptions.stroke_linecap)?"square":this.config.pointerOptions.stroke_linecap,fill:le(this.config.pointerOptions.color)?"#000000":this.config.pointerOptions.color,ndl:[this.config.min]}),this.config.donut&&this.needle.transform("r"+this.config.donutStartAngle+", "+(this.params.widgetW/2+this.params.dx)+", "+(this.params.widgetH/2+this.params.dy))),this.txtValue=this.canvas.text(this.params.valueX,this.params.valueY,0),this.txtValue.attr({"font-size":this.params.valueFontSize,"font-weight":"bold","font-family":this.config.valueFontFamily,fill:this.config.valueFontColor,"fill-opacity":"0"}),Wt(this.txtValue,this.params.valueFontSize,this.params.valueY),this.txtLabel=this.canvas.text(this.params.labelX,this.params.labelY,this.config.label),this.txtLabel.attr({"font-size":this.params.labelFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":"0"}),Wt(this.txtLabel,this.params.labelFontSize,this.params.labelY);let I=this.config.min;this.config.reverse&&(I=this.config.max),this.txtMinimum=I,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=Le(I,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=Re(I)),this.txtMin=this.canvas.text(this.params.minX,this.params.minY,this.txtMinimum),this.txtMin.attr({"font-size":this.params.minFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":this.config.hideMinMax||this.config.donut?"0":"1"}),Wt(this.txtMin,this.params.minFontSize,this.params.minY);let it=this.config.max;this.config.reverse&&(it=this.config.min),this.txtMaximum=it,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=Le(it,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=Re(it)),this.txtMax=this.canvas.text(this.params.maxX,this.params.maxY,this.txtMaximum),this.txtMax.attr({"font-size":this.params.maxFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":this.config.hideMinMax||this.config.donut?"0":"1"}),Wt(this.txtMax,this.params.maxFontSize,this.params.maxY);const rt=this.canvas.canvas.childNodes[1],wt="http://www.w3.org/2000/svg";if(pi!==void 0&&pi<9||(pi!==void 0?Sr(()=>{this.generateShadow(wt,rt)}):this.generateShadow(wt,rt)),this.config.textRenderer&&this.config.textRenderer(this.originalValue)!==!1?this.originalValue=this.config.textRenderer(this.originalValue):this.config.humanFriendly?this.originalValue=Le(this.originalValue,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?this.originalValue=Re(this.originalValue)+this.config.symbol:this.config.displayRemaining?this.originalValue=((this.config.max-this.originalValue)*1).toFixed(this.config.decimals)+this.config.symbol:this.originalValue=(this.originalValue*1).toFixed(this.config.decimals)+this.config.symbol,this.config.counter===!0){const H=()=>{let Z=this.level.attr("pki")[0];this.config.reverse&&(Z=this.config.max*1+this.config.min*1-this.level.attr("pki")[0]*1),this.config.textRenderer&&this.config.textRenderer(Math.floor(Z))!==!1?this.txtValue.attr("text",this.config.textRenderer(Math.floor(Z))):this.config.humanFriendly?this.txtValue.attr("text",Le(Math.floor(Z),this.config.humanFriendlyDecimal)+this.config.symbol):this.config.formatNumber?this.txtValue.attr("text",Re(Math.floor(Z))+this.config.symbol):this.config.displayRemaining?this.txtValue.attr("text",((this.config.max-Z)*1).toFixed(this.config.decimals)+this.config.symbol):this.txtValue.attr("text",(Z*1).toFixed(this.config.decimals)+this.config.symbol),Wt(this.txtValue,this.params.valueFontSize,this.params.valueY),Z=null},Q=()=>{this.txtValue.attr({text:this.originalValue}),Wt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.finish",Q),this.bindEvent("raphael.anim.frame",H)}else{const H=()=>{this.txtValue.attr({text:this.originalValue}),Wt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.start",H)}let st=this.config.value;this.config.reverse&&(st=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[st]},this.config.startAnimationTime,this.config.startAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[st]},this.config.startAnimationTime,this.config.startAnimationType),this.txtValue.animate({"fill-opacity":this.config.hideValue?"0":"1"},this.config.startAnimationTime,this.config.startAnimationType),this.txtLabel.animate({"fill-opacity":"1"},this.config.startAnimationTime,this.config.startAnimationType)}bindEvent(s,u){s+="."+this.level.id,this.events[s]&&zi.eve.off(s,this.events[s]),zi.eve.on(s,u),this.events[s]=u}refresh(s,u,y,b){let _;u=Ar(u)?u:null,y=Ar(y)?y:null,b=b||null,b!==null&&(this.config.label=b,this.txtLabel.attr({text:this.config.label}),Wt(this.txtLabel,this.params.labelFontSize,this.params.labelY)),y!==null&&(this.config.min=y,this.txtMinimum=this.config.min,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=Le(this.config.min,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=Re(this.config.min)),this.config.reverse?(this.txtMax.attr({text:this.txtMinimum}),Wt(this.txtMax,this.params.minFontSize,this.params.minY)):(this.txtMin.attr({text:this.txtMinimum}),Wt(this.txtMin,this.params.minFontSize,this.params.minY))),u!==null&&(this.config.max=u,this.txtMaximum=this.config.max,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=Le(this.config.max,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=Re(this.config.max)),this.config.reverse?(this.txtMin.attr({text:this.txtMaximum}),Wt(this.txtMin,this.params.maxFontSize,this.params.maxY)):(this.txtMax.attr({text:this.txtMaximum}),Wt(this.txtMax,this.params.maxFontSize,this.params.maxY))),_=s,s*1>this.config.max*1&&(s=this.config.max*1),s*1<this.config.min*1&&(s=this.config.min*1);const k=Mr(s,(s-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors);this.config.textRenderer&&this.config.textRenderer(_)!==!1?_=this.config.textRenderer(_):this.config.humanFriendly?_=Le(_,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?_=Re((_*1).toFixed(this.config.decimals))+this.config.symbol:this.config.displayRemaining?_=((this.config.max-_)*1).toFixed(this.config.decimals)+this.config.symbol:_=(_*1).toFixed(this.config.decimals)+this.config.symbol,this.originalValue=_,this.config.value=s*1,this.config.counter||(this.txtValue.attr({text:_}),Wt(this.txtValue,this.params.valueFontSize,this.params.valueY));let h=this.config.value;this.config.reverse&&(h=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[h],fill:k},this.config.refreshAnimationTime,this.config.refreshAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[h]},this.config.refreshAnimationTime,this.config.refreshAnimationType)}update(s,u){const y=this;if(s instanceof Object)for(const b in s)u=s[b],Cr(y,b,u);else Cr(y,s,u)}destroy(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const s in this.events)zi.eve.off(s,this.events[s]);this.events={}}generateShadow(s,u){const y="inner-shadow-"+(this.config.element.id||this.config.classId),b=document.createElementNS(s,"filter");b.setAttribute("id",y),u.appendChild(b);const _=document.createElementNS(s,"feOffset");_.setAttribute("dx","0"),_.setAttribute("dy",this.config.shadowVerticalOffset),b.appendChild(_);const k=document.createElementNS(s,"feGaussianBlur");k.setAttribute("result","offset-blur"),k.setAttribute("stdDeviation",this.config.shadowSize),b.appendChild(k);const h=document.createElementNS(s,"feComposite");h.setAttribute("operator","out"),h.setAttribute("in","SourceGraphic"),h.setAttribute("in2","offset-blur"),h.setAttribute("result","inverse"),b.appendChild(h);const f=document.createElementNS(s,"feFlood");f.setAttribute("flood-color","black"),f.setAttribute("flood-opacity",this.config.shadowOpacity),f.setAttribute("result","color"),b.appendChild(f);const $=document.createElementNS(s,"feComposite");$.setAttribute("operator","in"),$.setAttribute("in","color"),$.setAttribute("in2","inverse"),$.setAttribute("result","shadow"),b.appendChild($);const L=document.createElementNS(s,"feComposite");L.setAttribute("operator","over"),L.setAttribute("in","shadow"),L.setAttribute("in2","SourceGraphic"),b.appendChild(L),this.config.showInnerShadow&&(this.canvas.canvas.childNodes[2].setAttribute("filter","url(#"+y+")"),this.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+y+")"))}}function Cr(r,s,u){switch(s){case"valueFontColor":if(!$r(u)){console.log("* justgage: the updated valueFontColor value is not a valid hex color");break}r.txtValue.attr({fill:u});break;case"labelFontColor":if(!$r(u)){console.log("* justgage: the updated labelFontColor value is not a valid hex color");break}r.txtMin.attr({fill:u}),r.txtMax.attr({fill:u}),r.txtLabel.attr({fill:u});break;default:console.log(`* justgage: "${s}" is not a supported update setting`)}}function ht(r,s,u,y,b,_){let k=y,h=!1;if(!le(r)&&(!le(u)&&typeof u=="object"&&r in u?(k=u[r],h=!0):!le(s)&&typeof s=="object"&&r in s?(k=s[r],h=!0):k=y,h===!0&&!le(b)))switch(b){case"int":k=parseInt(k,10);break;case"float":k=parseFloat(k);break}return k}function le(r){return r==null}function Mr(r,s,u,y,b){let _,k,h,f,$,L,tt,q,et,W,U;const _t=b&&b.ranges&&b.ranges.length>0;if(y=y||_t,_t){b.percents===!0&&(r=s*100);for(let K=0;K<b.ranges.length;K++)if(r>=b.ranges[K].lo&&r<=b.ranges[K].hi)return b.ranges[K].color}const Mt=u.length;if(Mt===1)return u[0];const G=y?1/Mt:1/(Mt-1),B=[];for(let K=0;K<u.length;K++)_=y?G*(K+1):G*K,k=parseInt(ln(u[K]).substring(0,2),16),h=parseInt(ln(u[K]).substring(2,4),16),f=parseInt(ln(u[K]).substring(4,6),16),B[K]={pct:_,color:{r:k,g:h,b:f}};if(s===0)return"rgb("+[B[0].color.r,B[0].color.g,B[0].color.b].join(",")+")";for(let K=0;K<B.length;K++)if(s<=B[K].pct)return y?"rgb("+[B[K].color.r,B[K].color.g,B[K].color.b].join(",")+")":($=B[K-1],L=B[K],tt=L.pct-$.pct,q=(s-$.pct)/tt,et=1-q,W=q,U={r:Math.floor($.color.r*et+L.color.r*W),g:Math.floor($.color.g*et+L.color.g*W),b:Math.floor($.color.b*et+L.color.b*W)},"rgb("+[U.r,U.g,U.b].join(",")+")")}function Wt(r,s,u){(!pi||pi>9)&&r.node.firstChild.attributes.dy&&(r.node.firstChild.attributes.dy.value=0)}function ln(r){return r.charAt(0)==="#"?r.substring(1,7):r}function $r(r){return typeof r=="string"&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(r)}function Le(r,s){const u=Math.pow(10,s),y=" KMGTPE";let b=0;const _=1e3;for(;(r>=_||r<=-_)&&++b<y.length;)r=r/_;return b=b>=y.length?y.length-1:b,Math.round(r*u)/u+y[b]}function Re(r){const s=r.toString().split(".");return s[0]=s[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),s.join(".")}function Fr(r,s){let u="";return document.defaultView&&document.defaultView.getComputedStyle?u=document.defaultView.getComputedStyle(r,"").getPropertyValue(s):r.currentStyle&&(s=s.replace(/-(\w)/g,function(y,b){return b.toUpperCase()}),u=r.currentStyle[s]),u}function Sr(r){document.createElementNS!==void 0?r():setTimeout(function(){Sr(r)},100)}const pi=(function(){let r=3;const s=document.createElement("div"),u=s.getElementsByTagName("i");for(;u[0];)s.innerHTML="<!--[if gt IE "+ ++r+"]><i></i><![endif]-->";return r>4?r:void 0})();function ma(r){r=r||{};for(let s=1;s<arguments.length;s++)if(arguments[s])for(const u in arguments[s])Object.prototype.hasOwnProperty.call(arguments[s],u)&&(r[u]=arguments[s][u]);return r}function Ar(r){return r!=null&&!isNaN(r)}function va(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const s=Math.random()*16|0;return(r==="x"?s:s&3|8).toString(16)})}var xa=Js('<div part="gauge" style="width:100%" id="gauge"></div>');const ya={hash:"svelte-45h",code:""};function Tr(r,s){Ln(s,!0),sa(r,ya);let u=ae(void 0),y=ae(void 0),b=_r(s,"id",7,""),_=_r(s,"options");Kn(()=>{_()&&typeof _()=="string"&&(_(JSON.parse(_())),Rt(u)&&Rt(y)&&k())});function k(){if(!Rt(u))return console.error("cannot recreateGauge gauge");Rt(y)&&Rt(y).destroy(),Ht(y,void 0),h()}function h(){if(!_()||!Rt(u))return console.error("cannot create gauge");if(Rt(y))console.error("cannot create html gauge");else{const tt=Object.assign({element:Rt(u)},_());Ht(y,new ga(tt),!0)}}yr(()=>{Ht(u,s.$$host?.shadowRoot?.querySelector("#gauge"),!0),console.log("gaugeEl",Rt(u)),h()}),ra(()=>{Rt(y)&&Rt(y).destroy(),Ht(y,void 0)});var f={get id(){return b()},set id(tt=""){b(tt),Ki()},get options(){return _()},set options(tt){_(tt),Ki()}},$=xa(),L=$s(()=>ca(k,200));return Qs("resize",tn,function(...tt){Rt(L)?.apply(this,tt)}),mr(r,$),Rn(f)}customElements.define("hb-gauge",ua(Tr,{id:{},options:{}},[],[],!0)),vn.Component=Tr,Object.defineProperty(vn,Symbol.toStringTag,{value:"Module"})})(this.gauge=this.gauge||{});
|
|
1
|
+
(function(Mn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const os=2,$n="[",Sn="[!",Fn="]",Ai={},Vt=Symbol(),An=!1;var as=Array.isArray,ls=Array.prototype.indexOf,us=Array.from,Ti=Object.keys,Ni=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,fs=Object.prototype,hs=Array.prototype,cs=Object.getPrototypeOf,Tn=Object.isExtensible;function ds(r){for(var i=0;i<r.length;i++)r[i]()}function ps(){var r,i,l=new Promise((g,_)=>{r=g,i=_});return{promise:l,resolve:r,reject:i}}const Bt=2,en=4,Nn=8,ve=16,we=32,ke=64,Li=128,oe=512,It=1024,Gt=2048,me=4096,Ee=8192,ze=16384,nn=32768,Ri=65536,Ln=1<<17,Rn=1<<18,Ue=1<<19,gs=1<<20,hi=32768,rn=1<<21,zn=1<<22,ci=1<<23,sn=Symbol("$state"),vs=Symbol("legacy props"),Bn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},zi=8;function On(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ms(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ys(r){throw new Error("https://svelte.dev/e/effect_orphan")}function _s(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function bs(){throw new Error("https://svelte.dev/e/hydration_failed")}function ws(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ks(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Es(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Cs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Pn(r){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ms(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let ae=!1;function Bi(r){ae=r}let Dt;function di(r){if(r===null)throw Pn(),Ai;return Dt=r}function Vn(){return di(Ze(Dt))}function $s(r=1){if(ae){for(var i=r,l=Dt;i--;)l=Ze(l);Dt=l}}function Ss(r=!0){for(var i=0,l=Dt;;){if(l.nodeType===zi){var g=l.data;if(g===Fn){if(i===0)return l;i-=1}else(g===$n||g===Sn)&&(i+=1)}var _=Ze(l);r&&l.remove(),l=_}}function In(r){return r===this.v}function Fs(r,i){return r!=r?i==i:r!==i||r!==null&&typeof r=="object"||typeof r=="function"}function As(r){return!Fs(r,this.v)}let Ts=!1,Ut=null;function Oi(r){Ut=r}function Dn(r,i=!1,l){Ut={p:Ut,i:!1,c:null,e:null,s:r,x:null,l:null}}function jn(r){var i=Ut,l=i.e;if(l!==null){i.e=null;for(var g of l)lr(g)}return r!==void 0&&(i.x=r),i.i=!0,Ut=i.p,r??{}}function Yn(){return!0}let Be=[];function qn(){var r=Be;Be=[],ds(r)}function Pi(r){if(Be.length===0&&!pi){var i=Be;queueMicrotask(()=>{i===Be&&qn()})}Be.push(r)}function Ns(){for(;Be.length>0;)qn()}function Xn(r){var i=Nt;if(i===null)return St.f|=ci,r;if((i.f&nn)===0){if((i.f&Li)===0)throw r;i.b.error(r)}else Vi(r,i)}function Vi(r,i){for(;i!==null;){if((i.f&Li)!==0)try{i.b.error(r);return}catch(l){r=l}i=i.parent}throw r}const Ii=new Set;let Wt=null,Zt=null,he=[],Di=null,on=!1,pi=!1;class le{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#l=0;#s=0;#u=null;#o=[];#r=[];skipped_effects=new Set;is_fork=!1;process(i){he=[],this.apply();var l={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const g of i)this.#i(g,l);this.is_fork||this.#a(),this.#s>0||this.is_fork?(this.#n(l.effects),this.#n(l.render_effects),this.#n(l.block_effects)):(Wt=null,Gn(l.render_effects),Gn(l.effects),this.#u?.resolve()),Zt=null}#i(i,l){i.f^=It;for(var g=i.first;g!==null;){var _=g.f,b=(_&(we|ke))!==0,w=b&&(_&It)!==0,h=w||(_&Ee)!==0||this.skipped_effects.has(g);if((g.f&Li)!==0&&g.b?.is_pending()&&(l={parent:l,effect:g,effects:[],render_effects:[],block_effects:[]}),!h&&g.fn!==null){b?g.f^=It:(_&en)!==0?l.effects.push(g):xi(g)&&((g.f&ve)!==0&&l.block_effects.push(g),yi(g));var f=g.first;if(f!==null){g=f;continue}}var $=g.parent;for(g=g.next;g===null&&$!==null;)$===l.effect&&(this.#n(l.effects),this.#n(l.render_effects),this.#n(l.block_effects),l=l.parent),g=$.next,$=$.parent}}#n(i){for(const l of i)((l.f&Gt)!==0?this.#o:this.#r).push(l),Yt(l,It)}capture(i,l){this.previous.has(i)||this.previous.set(i,l),(i.f&ci)===0&&(this.current.set(i,i.v),Zt?.set(i,i.v))}activate(){Wt=this,this.apply()}deactivate(){Wt=null,Zt=null}flush(){if(this.activate(),he.length>0){if(Hn(),Wt!==null&&Wt!==this)return}else this.#l===0&&this.process([]);this.deactivate()}discard(){for(const i of this.#t)i(this);this.#t.clear()}#a(){if(this.#s===0){for(const i of this.#e)i();this.#e.clear()}this.#l===0&&this.#f()}#f(){if(Ii.size>1){this.previous.clear();var i=Zt,l=!0,g={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const _ of Ii){if(_===this){l=!1;continue}const b=[];for(const[h,f]of this.current){if(_.current.has(h))if(l&&f!==_.current.get(h))_.current.set(h,f);else continue;b.push(h)}if(b.length===0)continue;const w=[..._.current.keys()].filter(h=>!this.current.has(h));if(w.length>0){const h=new Set,f=new Map;for(const $ of b)Un($,w,h,f);if(he.length>0){Wt=_,_.apply();for(const $ of he)_.#i($,g);he=[],_.deactivate()}}}Wt=null,Zt=i}this.committed=!0,Ii.delete(this)}increment(i){this.#l+=1,i&&(this.#s+=1)}decrement(i){this.#l-=1,i&&(this.#s-=1),this.revive()}revive(){for(const i of this.#o)Yt(i,Gt),We(i);for(const i of this.#r)Yt(i,me),We(i);this.#o=[],this.#r=[],this.flush()}oncommit(i){this.#e.add(i)}ondiscard(i){this.#t.add(i)}settled(){return(this.#u??=ps()).promise}static ensure(){if(Wt===null){const i=Wt=new le;Ii.add(Wt),pi||le.enqueue(()=>{Wt===i&&i.flush()})}return Wt}static enqueue(i){Pi(i)}apply(){}}function an(r){var i=pi;pi=!0;try{for(var l;;){if(Ns(),he.length===0&&(Wt?.flush(),he.length===0))return Di=null,l;Hn()}}finally{pi=i}}function Hn(){var r=Pe;on=!0;try{var i=0;for(pr(!0);he.length>0;){var l=le.ensure();if(i++>1e3){var g,_;Ls()}l.process(he),Ce.clear()}}finally{on=!1,pr(r),Di=null}}function Ls(){try{_s()}catch(r){Vi(r,Di)}}let xe=null;function Gn(r){var i=r.length;if(i!==0){for(var l=0;l<i;){var g=r[l++];if((g.f&(ze|Ee))===0&&xi(g)&&(xe=new Set,yi(g),g.deps===null&&g.first===null&&g.nodes_start===null&&(g.teardown===null&&g.ac===null?cr(g):g.fn=null),xe?.size>0)){Ce.clear();for(const _ of xe){if((_.f&(ze|Ee))!==0)continue;const b=[_];let w=_.parent;for(;w!==null;)xe.has(w)&&(xe.delete(w),b.push(w)),w=w.parent;for(let h=b.length-1;h>=0;h--){const f=b[h];(f.f&(ze|Ee))===0&&yi(f)}}xe.clear()}}xe=null}}function Un(r,i,l,g){if(!l.has(r)&&(l.add(r),r.reactions!==null))for(const _ of r.reactions){const b=_.f;(b&Bt)!==0?Un(_,i,l,g):(b&(zn|ve))!==0&&(b&Gt)===0&&Wn(_,i,g)&&(Yt(_,Gt),We(_))}}function Wn(r,i,l){const g=l.get(r);if(g!==void 0)return g;if(r.deps!==null)for(const _ of r.deps){if(i.includes(_))return!0;if((_.f&Bt)!==0&&Wn(_,i,l))return l.set(_,!0),!0}return l.set(r,!1),!1}function We(r){for(var i=Di=r;i.parent!==null;){i=i.parent;var l=i.f;if(on&&i===Nt&&(l&ve)!==0&&(l&Rn)===0)return;if((l&(ke|we))!==0){if((l&It)===0)return;i.f^=It}}he.push(i)}function Rs(r){let i=0,l=ji(0),g;return()=>{Yi()&&(Lt(l),ur(()=>(i===0&&(g=dn(()=>r(()=>gi(l)))),i+=1,()=>{Pi(()=>{i-=1,i===0&&(g?.(),g=void 0,gi(l))})})))}}var zs=Ri|Ue|Li;function Bs(r,i,l){new Os(r,i,l)}class Os{parent;#e=!1;#t;#l=ae?Dt:null;#s;#u;#o;#r=null;#i=null;#n=null;#a=null;#f=null;#d=0;#h=0;#p=!1;#c=null;#y=Rs(()=>(this.#c=ji(this.#d),()=>{this.#c=null}));constructor(i,l,g){this.#t=i,this.#s=l,this.#u=g,this.parent=Nt.b,this.#e=!!this.#s.pending,this.#o=Ws(()=>{if(Nt.b=this,ae){const b=this.#l;Vn(),b.nodeType===zi&&b.data===Sn?this.#b():this.#_()}else{var _=this.#m();try{this.#r=Oe(()=>g(_))}catch(b){this.error(b)}this.#h>0?this.#v():this.#e=!1}return()=>{this.#f?.remove()}},zs),ae&&(this.#t=Dt)}#_(){try{this.#r=Oe(()=>this.#u(this.#t))}catch(i){this.error(i)}this.#e=!1}#b(){const i=this.#s.pending;i&&(this.#i=Oe(()=>i(this.#t)),le.enqueue(()=>{var l=this.#m();this.#r=this.#g(()=>(le.ensure(),Oe(()=>this.#u(l)))),this.#h>0?this.#v():(qi(this.#i,()=>{this.#i=null}),this.#e=!1)}))}#m(){var i=this.#t;return this.#e&&(this.#f=sr(),this.#t.before(this.#f),i=this.#f),i}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#g(i){var l=Nt,g=St,_=Ut;$e(this.#o),ne(this.#o),Oi(this.#o.ctx);try{return i()}catch(b){return Xn(b),null}finally{$e(l),ne(g),Oi(_)}}#v(){const i=this.#s.pending;this.#r!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#f),Js(this.#r,this.#a)),this.#i===null&&(this.#i=Oe(()=>i(this.#t)))}#x(i){if(!this.has_pending_snippet()){this.parent&&this.parent.#x(i);return}this.#h+=i,this.#h===0&&(this.#e=!1,this.#i&&qi(this.#i,()=>{this.#i=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(i){this.#x(i),this.#d+=i,this.#c&&tr(this.#c,this.#d)}get_effect_pending(){return this.#y(),Lt(this.#c)}error(i){var l=this.#s.onerror;let g=this.#s.failed;if(this.#p||!l&&!g)throw i;this.#r&&(ue(this.#r),this.#r=null),this.#i&&(ue(this.#i),this.#i=null),this.#n&&(ue(this.#n),this.#n=null),ae&&(di(this.#l),$s(),di(Ss()));var _=!1,b=!1;const w=()=>{if(_){Ms();return}_=!0,b&&Cs(),le.ensure(),this.#d=0,this.#n!==null&&qi(this.#n,()=>{this.#n=null}),this.#e=this.has_pending_snippet(),this.#r=this.#g(()=>(this.#p=!1,Oe(()=>this.#u(this.#t)))),this.#h>0?this.#v():this.#e=!1};var h=St;try{ne(null),b=!0,l?.(i,w),b=!1}catch(f){Vi(f,this.#o&&this.#o.parent)}finally{ne(h)}g&&Pi(()=>{this.#n=this.#g(()=>{le.ensure(),this.#p=!0;try{return Oe(()=>{g(this.#t,()=>i,()=>w)})}catch(f){return Vi(f,this.#o.parent),null}finally{this.#p=!1}})})}}function Zn(r){var i=Bt|Gt,l=St!==null&&(St.f&Bt)!==0?St:null;return Nt!==null&&(Nt.f|=Ue),{ctx:Ut,deps:null,effects:null,equals:In,f:i,fn:r,reactions:null,rv:0,v:Vt,wv:0,parent:l??Nt,ac:null}}function Ps(r){const i=Zn(r);return vr(i),i}function Kn(r){var i=r.effects;if(i!==null){r.effects=null;for(var l=0;l<i.length;l+=1)ue(i[l])}}function Vs(r){for(var i=r.parent;i!==null;){if((i.f&Bt)===0)return i;i=i.parent}return null}function ln(r){var i,l=Nt;$e(Vs(r));try{r.f&=~hi,Kn(r),i=br(r)}finally{$e(l)}return i}function Qn(r){var i=ln(r);if(r.equals(i)||(r.v=i,r.wv=yr()),!Ve)if(Zt!==null)Yi()&&Zt.set(r,r.v);else{var l=(r.f&oe)===0?me:It;Yt(r,l)}}let un=new Set;const Ce=new Map;let Jn=!1;function ji(r,i){var l={f:0,v:r,reactions:null,equals:In,rv:0,wv:0};return l}function ce(r,i){const l=ji(r);return vr(l),l}function Is(r,i=!1,l=!0){const g=ji(r);return i||(g.equals=As),g}function Kt(r,i,l=!1){St!==null&&(!de||(St.f&Ln)!==0)&&Yn()&&(St.f&(Bt|ve|zn|Ln))!==0&&!ye?.includes(r)&&Es();let g=l?vi(i):i;return tr(r,g)}function tr(r,i){if(!r.equals(i)){var l=r.v;Ve?Ce.set(r,i):Ce.set(r,l),r.v=i;var g=le.ensure();g.capture(r,l),(r.f&Bt)!==0&&((r.f&Gt)!==0&&ln(r),Yt(r,(r.f&oe)!==0?It:me)),r.wv=yr(),er(r,Gt),Nt!==null&&(Nt.f&It)!==0&&(Nt.f&(we|ke))===0&&(re===null?to([r]):re.push(r)),!g.is_fork&&un.size>0&&!Jn&&Ds()}return i}function Ds(){Jn=!1;const r=Array.from(un);for(const i of r)(i.f&It)!==0&&Yt(i,me),xi(i)&&yi(i);un.clear()}function gi(r){Kt(r,r.v+1)}function er(r,i){var l=r.reactions;if(l!==null)for(var g=l.length,_=0;_<g;_++){var b=l[_],w=b.f,h=(w&Gt)===0;if(h&&Yt(b,i),(w&Bt)!==0){var f=b;Zt?.delete(f),(w&hi)===0&&(w&oe&&(b.f|=hi),er(f,me))}else h&&((w&ve)!==0&&xe!==null&&xe.add(b),We(b))}}function vi(r){if(typeof r!="object"||r===null||sn in r)return r;const i=cs(r);if(i!==fs&&i!==hs)return r;var l=new Map,g=as(r),_=ce(0),b=Ie,w=h=>{if(Ie===b)return h();var f=St,$=Ie;ne(null),xr(b);var z=h();return ne(f),xr($),z};return g&&l.set("length",ce(r.length)),new Proxy(r,{defineProperty(h,f,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&ws();var z=l.get(f);return z===void 0?z=w(()=>{var Z=ce($.value);return l.set(f,Z),Z}):Kt(z,$.value,!0),!0},deleteProperty(h,f){var $=l.get(f);if($===void 0){if(f in h){const z=w(()=>ce(Vt));l.set(f,z),gi(_)}}else Kt($,Vt),gi(_);return!0},get(h,f,$){if(f===sn)return r;var z=l.get(f),Z=f in h;if(z===void 0&&(!Z||Ge(h,f)?.writable)&&(z=w(()=>{var tt=vi(Z?h[f]:Vt),nt=ce(tt);return nt}),l.set(f,z)),z!==void 0){var Y=Lt(z);return Y===Vt?void 0:Y}return Reflect.get(h,f,$)},getOwnPropertyDescriptor(h,f){var $=Reflect.getOwnPropertyDescriptor(h,f);if($&&"value"in $){var z=l.get(f);z&&($.value=Lt(z))}else if($===void 0){var Z=l.get(f),Y=Z?.v;if(Z!==void 0&&Y!==Vt)return{enumerable:!0,configurable:!0,value:Y,writable:!0}}return $},has(h,f){if(f===sn)return!0;var $=l.get(f),z=$!==void 0&&$.v!==Vt||Reflect.has(h,f);if($!==void 0||Nt!==null&&(!z||Ge(h,f)?.writable)){$===void 0&&($=w(()=>{var Y=z?vi(h[f]):Vt,tt=ce(Y);return tt}),l.set(f,$));var Z=Lt($);if(Z===Vt)return!1}return z},set(h,f,$,z){var Z=l.get(f),Y=f in h;if(g&&f==="length")for(var tt=$;tt<Z.v;tt+=1){var nt=l.get(tt+"");nt!==void 0?Kt(nt,Vt):tt in h&&(nt=w(()=>ce(Vt)),l.set(tt+"",nt))}if(Z===void 0)(!Y||Ge(h,f)?.writable)&&(Z=w(()=>ce(void 0)),Kt(Z,vi($)),l.set(f,Z));else{Y=Z.v!==Vt;var W=w(()=>vi($));Kt(Z,W)}var _t=Reflect.getOwnPropertyDescriptor(h,f);if(_t?.set&&_t.set.call(z,$),!Y){if(g&&typeof f=="string"){var Ft=l.get("length"),U=Number(f);Number.isInteger(U)&&U>=Ft.v&&Kt(Ft,U+1)}gi(_)}return!0},ownKeys(h){Lt(_);var f=Reflect.ownKeys(h).filter(Z=>{var Y=l.get(Z);return Y===void 0||Y.v!==Vt});for(var[$,z]of l)z.v!==Vt&&!($ in h)&&f.push($);return f},setPrototypeOf(){ks()}})}var fn,ir,nr,rr;function hn(){if(fn===void 0){fn=window,ir=/Firefox/.test(navigator.userAgent);var r=Element.prototype,i=Node.prototype,l=Text.prototype;nr=Ge(i,"firstChild").get,rr=Ge(i,"nextSibling").get,Tn(r)&&(r.__click=void 0,r.__className=void 0,r.__attributes=null,r.__style=void 0,r.__e=void 0),Tn(l)&&(l.__t=void 0)}}function sr(r=""){return document.createTextNode(r)}function or(r){return nr.call(r)}function Ze(r){return rr.call(r)}function js(r){r.textContent=""}function cn(r){var i=St,l=Nt;ne(null),$e(null);try{return r()}finally{ne(i),$e(l)}}function Ys(r){Nt===null&&(St===null&&ys(),xs()),Ve&&ms()}function qs(r,i){var l=i.last;l===null?i.last=i.first=r:(l.next=r,r.prev=l,i.last=r)}function Me(r,i,l,g=!0){var _=Nt;_!==null&&(_.f&Ee)!==0&&(r|=Ee);var b={ctx:Ut,deps:null,nodes_start:null,nodes_end:null,f:r|Gt|oe,first:null,fn:i,last:null,next:null,parent:_,b:_&&_.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(l)try{yi(b),b.f|=nn}catch(f){throw ue(b),f}else i!==null&&We(b);if(g){var w=b;if(l&&w.deps===null&&w.teardown===null&&w.nodes_start===null&&w.first===w.last&&(w.f&Ue)===0&&(w=w.first,(r&ve)!==0&&(r&Ri)!==0&&w!==null&&(w.f|=Ri)),w!==null&&(w.parent=_,_!==null&&qs(w,_),St!==null&&(St.f&Bt)!==0&&(r&ke)===0)){var h=St;(h.effects??=[]).push(w)}}return b}function Yi(){return St!==null&&!de}function Xs(r){const i=Me(Nn,null,!1);return Yt(i,It),i.teardown=r,i}function ar(r){Ys();var i=Nt.f,l=!St&&(i&we)!==0&&(i&nn)===0;if(l){var g=Ut;(g.e??=[]).push(r)}else return lr(r)}function lr(r){return Me(en|gs,r,!1)}function Hs(r){le.ensure();const i=Me(ke|Ue,r,!0);return()=>{ue(i)}}function Gs(r){le.ensure();const i=Me(ke|Ue,r,!0);return(l={})=>new Promise(g=>{l.outro?qi(i,()=>{ue(i),g(void 0)}):(ue(i),g(void 0))})}function Us(r){return Me(en,r,!1)}function ur(r,i=0){return Me(Nn|i,r,!0)}function Ws(r,i=0){var l=Me(ve|i,r,!0);return l}function Oe(r,i=!0){return Me(we|Ue,r,!0,i)}function fr(r){var i=r.teardown;if(i!==null){const l=Ve,g=St;gr(!0),ne(null);try{i.call(null)}finally{gr(l),ne(g)}}}function hr(r,i=!1){var l=r.first;for(r.first=r.last=null;l!==null;){const _=l.ac;_!==null&&cn(()=>{_.abort(Bn)});var g=l.next;(l.f&ke)!==0?l.parent=null:ue(l,i),l=g}}function Zs(r){for(var i=r.first;i!==null;){var l=i.next;(i.f&we)===0&&ue(i),i=l}}function ue(r,i=!0){var l=!1;(i||(r.f&Rn)!==0)&&r.nodes_start!==null&&r.nodes_end!==null&&(Ks(r.nodes_start,r.nodes_end),l=!0),hr(r,i&&!l),Xi(r,0),Yt(r,ze);var g=r.transitions;if(g!==null)for(const b of g)b.stop();fr(r);var _=r.parent;_!==null&&_.first!==null&&cr(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=r.ac=null}function Ks(r,i){for(;r!==null;){var l=r===i?null:Ze(r);r.remove(),r=l}}function cr(r){var i=r.parent,l=r.prev,g=r.next;l!==null&&(l.next=g),g!==null&&(g.prev=l),i!==null&&(i.first===r&&(i.first=g),i.last===r&&(i.last=l))}function qi(r,i,l=!0){var g=[];dr(r,g,!0),Qs(g,()=>{l&&ue(r),i&&i()})}function Qs(r,i){var l=r.length;if(l>0){var g=()=>--l||i();for(var _ of r)_.out(g)}else i()}function dr(r,i,l){if((r.f&Ee)===0){if(r.f^=Ee,r.transitions!==null)for(const w of r.transitions)(w.is_global||l)&&i.push(w);for(var g=r.first;g!==null;){var _=g.next,b=(g.f&Ri)!==0||(g.f&we)!==0&&(r.f&ve)!==0;dr(g,i,b?l:!1),g=_}}}function Js(r,i){for(var l=r.nodes_start,g=r.nodes_end;l!==null;){var _=l===g?null:Ze(l);i.append(l),l=_}}let Pe=!1;function pr(r){Pe=r}let Ve=!1;function gr(r){Ve=r}let St=null,de=!1;function ne(r){St=r}let Nt=null;function $e(r){Nt=r}let ye=null;function vr(r){St!==null&&(ye===null?ye=[r]:ye.push(r))}let jt=null,Qt=0,re=null;function to(r){re=r}let mr=1,mi=0,Ie=mi;function xr(r){Ie=r}function yr(){return++mr}function xi(r){var i=r.f;if((i&Gt)!==0)return!0;if(i&Bt&&(r.f&=~hi),(i&me)!==0){var l=r.deps;if(l!==null)for(var g=l.length,_=0;_<g;_++){var b=l[_];if(xi(b)&&Qn(b),b.wv>r.wv)return!0}(i&oe)!==0&&Zt===null&&Yt(r,It)}return!1}function _r(r,i,l=!0){var g=r.reactions;if(g!==null&&!ye?.includes(r))for(var _=0;_<g.length;_++){var b=g[_];(b.f&Bt)!==0?_r(b,i,!1):i===b&&(l?Yt(b,Gt):(b.f&It)!==0&&Yt(b,me),We(b))}}function br(r){var i=jt,l=Qt,g=re,_=St,b=ye,w=Ut,h=de,f=Ie,$=r.f;jt=null,Qt=0,re=null,St=($&(we|ke))===0?r:null,ye=null,Oi(r.ctx),de=!1,Ie=++mi,r.ac!==null&&(cn(()=>{r.ac.abort(Bn)}),r.ac=null);try{r.f|=rn;var z=r.fn,Z=z(),Y=r.deps;if(jt!==null){var tt;if(Xi(r,Qt),Y!==null&&Qt>0)for(Y.length=Qt+jt.length,tt=0;tt<jt.length;tt++)Y[Qt+tt]=jt[tt];else r.deps=Y=jt;if(Pe&&Yi()&&(r.f&oe)!==0)for(tt=Qt;tt<Y.length;tt++)(Y[tt].reactions??=[]).push(r)}else Y!==null&&Qt<Y.length&&(Xi(r,Qt),Y.length=Qt);if(Yn()&&re!==null&&!de&&Y!==null&&(r.f&(Bt|me|Gt))===0)for(tt=0;tt<re.length;tt++)_r(re[tt],r);return _!==null&&_!==r&&(mi++,re!==null&&(g===null?g=re:g.push(...re))),(r.f&ci)!==0&&(r.f^=ci),Z}catch(nt){return Xn(nt)}finally{r.f^=rn,jt=i,Qt=l,re=g,St=_,ye=b,Oi(w),de=h,Ie=f}}function eo(r,i){let l=i.reactions;if(l!==null){var g=ls.call(l,r);if(g!==-1){var _=l.length-1;_===0?l=i.reactions=null:(l[g]=l[_],l.pop())}}l===null&&(i.f&Bt)!==0&&(jt===null||!jt.includes(i))&&(Yt(i,me),(i.f&oe)!==0&&(i.f^=oe,i.f&=~hi),Kn(i),Xi(i,0))}function Xi(r,i){var l=r.deps;if(l!==null)for(var g=i;g<l.length;g++)eo(r,l[g])}function yi(r){var i=r.f;if((i&ze)===0){Yt(r,It);var l=Nt,g=Pe;Nt=r,Pe=!0;try{(i&ve)!==0?Zs(r):hr(r),fr(r);var _=br(r);r.teardown=typeof _=="function"?_:null,r.wv=mr;var b;An&&Ts&&(r.f&Gt)!==0&&r.deps}finally{Pe=g,Nt=l}}}function Lt(r){var i=r.f,l=(i&Bt)!==0;if(St!==null&&!de){var g=Nt!==null&&(Nt.f&ze)!==0;if(!g&&!ye?.includes(r)){var _=St.deps;if((St.f&rn)!==0)r.rv<mi&&(r.rv=mi,jt===null&&_!==null&&_[Qt]===r?Qt++:jt===null?jt=[r]:jt.includes(r)||jt.push(r));else{(St.deps??=[]).push(r);var b=r.reactions;b===null?r.reactions=[St]:b.includes(St)||b.push(St)}}}if(Ve){if(Ce.has(r))return Ce.get(r);if(l){var w=r,h=w.v;return((w.f&It)===0&&w.reactions!==null||kr(w))&&(h=ln(w)),Ce.set(w,h),h}}else if(l){if(w=r,Zt?.has(w))return Zt.get(w);xi(w)&&Qn(w),Pe&&Yi()&&(w.f&oe)===0&&wr(w)}else if(Zt?.has(r))return Zt.get(r);if((r.f&ci)!==0)throw r.v;return r.v}function wr(r){if(r.deps!==null){r.f^=oe;for(const i of r.deps)(i.reactions??=[]).push(r),(i.f&Bt)!==0&&(i.f&oe)===0&&wr(i)}}function kr(r){if(r.v===Vt)return!0;if(r.deps===null)return!1;for(const i of r.deps)if(Ce.has(i)||(i.f&Bt)!==0&&kr(i))return!0;return!1}function dn(r){var i=de;try{return de=!0,r()}finally{de=i}}const io=-7169;function Yt(r,i){r.f=r.f&io|i}const no=new Set,Er=new Set;function ro(r,i,l,g={}){function _(b){if(g.capture||_i.call(i,b),!b.cancelBubble)return cn(()=>l?.call(this,b))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?Pi(()=>{i.addEventListener(r,_,g)}):i.addEventListener(r,_,g),_}function so(r,i,l,g,_){var b={capture:g,passive:_},w=ro(r,i,l,b);(i===document.body||i===window||i===document||i instanceof HTMLMediaElement)&&Xs(()=>{i.removeEventListener(r,w,b)})}let Cr=null;function _i(r){var i=this,l=i.ownerDocument,g=r.type,_=r.composedPath?.()||[],b=_[0]||r.target;Cr=r;var w=0,h=Cr===r&&r.__root;if(h){var f=_.indexOf(h);if(f!==-1&&(i===document||i===window)){r.__root=i;return}var $=_.indexOf(i);if($===-1)return;f<=$&&(w=f)}if(b=_[w]||r.target,b!==i){Ni(r,"currentTarget",{configurable:!0,get(){return b||l}});var z=St,Z=Nt;ne(null),$e(null);try{for(var Y,tt=[];b!==null;){var nt=b.assignedSlot||b.parentNode||b.host||null;try{var W=b["__"+g];W!=null&&(!b.disabled||r.target===b)&&W.call(b,r)}catch(_t){Y?tt.push(_t):Y=_t}if(r.cancelBubble||nt===i||nt===null)break;b=nt}if(Y){for(let _t of tt)queueMicrotask(()=>{throw _t});throw Y}}finally{r.__root=i,delete r.currentTarget,ne(z),$e(Z)}}}function oo(r){var i=document.createElement("template");return i.innerHTML=r.replaceAll("<!>","<!---->"),i.content}function pn(r,i){var l=Nt;l.nodes_start===null&&(l.nodes_start=r,l.nodes_end=i)}function ao(r,i){var l=(i&os)!==0,g,_=!r.startsWith("<!>");return()=>{if(ae)return pn(Dt,null),Dt;g===void 0&&(g=oo(_?r:"<!>"+r),g=or(g));var b=l||ir?document.importNode(g,!0):g.cloneNode(!0);return pn(b,b),b}}function Mr(r,i){if(ae){Nt.nodes_end=Dt,Vn();return}r!==null&&r.before(i)}const lo=["touchstart","touchmove"];function uo(r){return lo.includes(r)}function $r(r,i){return Sr(r,i)}function fo(r,i){hn(),i.intro=i.intro??!1;const l=i.target,g=ae,_=Dt;try{for(var b=or(l);b&&(b.nodeType!==zi||b.data!==$n);)b=Ze(b);if(!b)throw Ai;Bi(!0),di(b);const w=Sr(r,{...i,anchor:b});return Bi(!1),w}catch(w){if(w instanceof Error&&w.message.split(`
|
|
2
|
+
`).some(h=>h.startsWith("https://svelte.dev/e/")))throw w;return w!==Ai&&console.warn("Failed to hydrate: ",w),i.recover===!1&&bs(),hn(),js(l),Bi(!1),$r(r,i)}finally{Bi(g),di(_)}}const Ke=new Map;function Sr(r,{target:i,anchor:l,props:g={},events:_,context:b,intro:w=!0}){hn();var h=new Set,f=Z=>{for(var Y=0;Y<Z.length;Y++){var tt=Z[Y];if(!h.has(tt)){h.add(tt);var nt=uo(tt);i.addEventListener(tt,_i,{passive:nt});var W=Ke.get(tt);W===void 0?(document.addEventListener(tt,_i,{passive:nt}),Ke.set(tt,1)):Ke.set(tt,W+1)}}};f(us(no)),Er.add(f);var $=void 0,z=Gs(()=>{var Z=l??i.appendChild(sr());return Bs(Z,{pending:()=>{}},Y=>{if(b){Dn({});var tt=Ut;tt.c=b}if(_&&(g.$$events=_),ae&&pn(Y,null),$=r(Y,g)||{},ae&&(Nt.nodes_end=Dt,Dt===null||Dt.nodeType!==zi||Dt.data!==Fn))throw Pn(),Ai;b&&jn()}),()=>{for(var Y of h){i.removeEventListener(Y,_i);var tt=Ke.get(Y);--tt===0?(document.removeEventListener(Y,_i),Ke.delete(Y)):Ke.set(Y,tt)}Er.delete(f),Z!==l&&Z.parentNode?.removeChild(Z)}});return gn.set($,z),$}let gn=new WeakMap;function ho(r,i){const l=gn.get(r);return l?(gn.delete(r),l(i)):Promise.resolve()}function Fr(r){Ut===null&&On(),ar(()=>{const i=dn(r);if(typeof i=="function")return i})}function co(r){Ut===null&&On(),Fr(()=>()=>dn(r))}function po(r,i){Us(()=>{var l=r.getRootNode(),g=l.host?l:l.head??l.ownerDocument.head;if(!g.querySelector("#"+i.hash)){const _=document.createElement("style");_.id=i.hash,_.textContent=i.code,g.appendChild(_)}})}function Ar(r,i,l,g){var _=g,b=!0,w=()=>(b&&(b=!1,_=g),_),h;h=r[i],h===void 0&&g!==void 0&&(h=w());var f;f=()=>{var Y=r[i];return Y===void 0?w():(b=!0,Y)};var $=!1,z=Zn(()=>($=!1,f())),Z=Nt;return(function(Y,tt){if(arguments.length>0){const nt=tt?Lt(z):Y;return Kt(z,nt),$=!0,_!==void 0&&(_=nt),Y}return Ve&&$||(Z.f&ze)!==0?z.v:Lt(z)})}function go(r){return new vo(r)}class vo{#e;#t;constructor(i){var l=new Map,g=(b,w)=>{var h=Is(w,!1,!1);return l.set(b,h),h};const _=new Proxy({...i.props||{},$$events:{}},{get(b,w){return Lt(l.get(w)??g(w,Reflect.get(b,w)))},has(b,w){return w===vs?!0:(Lt(l.get(w)??g(w,Reflect.get(b,w))),Reflect.has(b,w))},set(b,w,h){return Kt(l.get(w)??g(w,h),h),Reflect.set(b,w,h)}});this.#t=(i.hydrate?fo:$r)(i.component,{target:i.target,anchor:i.anchor,props:_,context:i.context,intro:i.intro??!1,recover:i.recover}),(!i?.props?.$$host||i.sync===!1)&&an(),this.#e=_.$$events;for(const b of Object.keys(this.#t))b==="$set"||b==="$destroy"||b==="$on"||Ni(this,b,{get(){return this.#t[b]},set(w){this.#t[b]=w},enumerable:!0});this.#t.$set=b=>{Object.assign(_,b)},this.#t.$destroy=()=>{ho(this.#t)}}$set(i){this.#t.$set(i)}$on(i,l){this.#e[i]=this.#e[i]||[];const g=(..._)=>l.call(this,..._);return this.#e[i].push(g),()=>{this.#e[i]=this.#e[i].filter(_=>_!==g)}}$destroy(){this.#t.$destroy()}}let Tr;typeof HTMLElement=="function"&&(Tr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(r,i,l){super(),this.$$ctor=r,this.$$s=i,l&&this.attachShadow({mode:"open"})}addEventListener(r,i,l){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(i),this.$$c){const g=this.$$c.$on(r,i);this.$$l_u.set(i,g)}super.addEventListener(r,i,l)}removeEventListener(r,i,l){if(super.removeEventListener(r,i,l),this.$$c){const g=this.$$l_u.get(i);g&&(g(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(g){return _=>{const b=document.createElement("slot");g!=="default"&&(b.name=g),Mr(_,b)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const i={},l=mo(this);for(const g of this.$$s)g in l&&(g==="default"&&!this.$$d.children?(this.$$d.children=r(g),i.default=!0):i[g]=r(g));for(const g of this.attributes){const _=this.$$g_p(g.name);_ in this.$$d||(this.$$d[_]=Hi(_,g.value,this.$$p_d,"toProp"))}for(const g in this.$$p_d)!(g in this.$$d)&&this[g]!==void 0&&(this.$$d[g]=this[g],delete this[g]);this.$$c=go({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Hs(()=>{ur(()=>{this.$$r=!0;for(const g of Ti(this.$$c)){if(!this.$$p_d[g]?.reflect)continue;this.$$d[g]=this.$$c[g];const _=Hi(g,this.$$d[g],this.$$p_d,"toAttribute");_==null?this.removeAttribute(this.$$p_d[g].attribute||g):this.setAttribute(this.$$p_d[g].attribute||g,_)}this.$$r=!1})});for(const g in this.$$l)for(const _ of this.$$l[g]){const b=this.$$c.$on(g,_);this.$$l_u.set(_,b)}this.$$l={}}}attributeChangedCallback(r,i,l){this.$$r||(r=this.$$g_p(r),this.$$d[r]=Hi(r,l,this.$$p_d,"toProp"),this.$$c?.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(r){return Ti(this.$$p_d).find(i=>this.$$p_d[i].attribute===r||!this.$$p_d[i].attribute&&i.toLowerCase()===r)||r}});function Hi(r,i,l,g){const _=l[r]?.type;if(i=_==="Boolean"&&typeof i!="boolean"?i!=null:i,!g||!l[r])return i;if(g==="toAttribute")switch(_){case"Object":case"Array":return i==null?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return i??null;default:return i}else switch(_){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function mo(r){const i={};return r.childNodes.forEach(l=>{i[l.slot||"default"]=!0}),i}function xo(r,i,l,g,_,b){let w=class extends Tr{constructor(){super(r,l,_),this.$$p_d=i}static get observedAttributes(){return Ti(i).map(h=>(i[h].attribute||h).toLowerCase())}};return Ti(i).forEach(h=>{Ni(w.prototype,h,{get(){return this.$$c&&h in this.$$c?this.$$c[h]:this.$$d[h]},set(f){f=Hi(h,f,i),this.$$d[h]=f;var $=this.$$c;if($){var z=Ge($,h)?.get;z?$[h]=f:$.$set({[h]:f})}}})}),g.forEach(h=>{Ni(w.prototype,h,{get(){return this.$$c?.[h]}})}),r.element=w,w}function yo(r,i=100,l={}){if(typeof r!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof r}\`.`);if(i<0)throw new RangeError("`wait` must not be negative.");if(typeof l=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:g}=l;let _,b,w,h,f;function $(){const Y=_,tt=b;return _=void 0,b=void 0,f=r.apply(Y,tt),f}function z(){const Y=Date.now()-h;Y<i&&Y>=0?w=setTimeout(z,i-Y):(w=void 0,g||(f=$()))}const Z=function(...Y){if(_&&this!==_&&Object.getPrototypeOf(this)===Object.getPrototypeOf(_))throw new Error("Debounced method called with different contexts of the same prototype.");_=this,b=Y,h=Date.now();const tt=g&&!w;if(w||(w=setTimeout(z,i)),tt)return f=$(),f};return Object.defineProperty(Z,"isPending",{get(){return w!==void 0}}),Z.clear=()=>{w&&(clearTimeout(w),w=void 0,_=void 0,b=void 0)},Z.flush=()=>{w&&Z.trigger()},Z.trigger=()=>{f=$(),Z.clear()},Z}function _o(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var vn={exports:{}},Nr;function bo(){return Nr||(Nr=1,(function(r,i){(function(l,g){r.exports=g()})(window,function(){return(function(l){var g={};function _(b){if(g[b])return g[b].exports;var w=g[b]={i:b,l:!1,exports:{}};return l[b].call(w.exports,w,w.exports,_),w.l=!0,w.exports}return _.m=l,_.c=g,_.d=function(b,w,h){_.o(b,w)||Object.defineProperty(b,w,{enumerable:!0,get:h})},_.r=function(b){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},_.t=function(b,w){if(1&w&&(b=_(b)),8&w||4&w&&typeof b=="object"&&b&&b.__esModule)return b;var h=Object.create(null);if(_.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:b}),2&w&&typeof b!="string")for(var f in b)_.d(h,f,(function($){return b[$]}).bind(null,f));return h},_.n=function(b){var w=b&&b.__esModule?function(){return b.default}:function(){return b};return _.d(w,"a",w),w},_.o=function(b,w){return Object.prototype.hasOwnProperty.call(b,w)},_.p="",_(_.s=1)})([function(l,g,_){var b,w;b=[_(2)],(w=(function(h){function f(t){if(f.is(t,"function"))return $?t():h.on("raphael.DOMload",t);if(f.is(t,xt))return f._engine.create[U](f,t.splice(0,3+f.is(t[0],ct))).add(t);var e=Array.prototype.slice.call(arguments,0);if(f.is(e[e.length-1],"function")){var n=e.pop();return $?n.call(f._engine.create[U](f,e)):h.on("raphael.DOMload",function(){n.call(f._engine.create[U](f,e))})}return f._engine.create[U](f,arguments)}f.version="2.3.0",f.eve=h;var $,z,Z=/[, ]+/,Y={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},tt=/\{(\d+)\}/g,nt="hasOwnProperty",W={doc:document,win:window},_t={was:Object.prototype[nt].call(W.win,"Raphael"),is:W.win.Raphael},Ft=function(){this.ca=this.customAttributes={}},U="apply",B="concat",Q="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,lt="",ht=" ",V=String,et="split",rt="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[et](ht),wt={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},st=V.prototype.toLowerCase,H=Math,K=H.max,G=H.min,at=H.abs,yt=H.pow,Mt=H.PI,ct="number",xt="array",te=Object.prototype.toString,p=(f._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),u={NaN:1,Infinity:1,"-Infinity":1},o=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,c=H.round,y=parseFloat,E=parseInt,C=V.prototype.toUpperCase,L=f._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},M=f._availableAnimAttrs={blur:ct,"clip-rect":"csv",cx:ct,cy:ct,fill:"colour","fill-opacity":ct,"font-size":ct,height:ct,opacity:ct,path:"path",r:ct,rx:ct,ry:ct,stroke:"colour","stroke-opacity":ct,"stroke-width":ct,transform:"transform",width:ct,x:ct,y:ct},N=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,X={hs:1,rg:1},it=/,?([achlmqrstvxz]),?/gi,pt=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,mt=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,dt=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,kt=(f._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),Ct=function(t,e){return y(t)-y(e)},bt=function(t){return t},ot=f._rectPath=function(t,e,n,s,a){return a?[["M",t+a,e],["l",n-2*a,0],["a",a,a,0,0,1,a,a],["l",0,s-2*a],["a",a,a,0,0,1,-a,a],["l",2*a-n,0],["a",a,a,0,0,1,-a,-a],["l",0,2*a-s],["a",a,a,0,0,1,a,-a],["z"]]:[["M",t,e],["l",n,0],["l",0,s],["l",-n,0],["z"]]},$t=function(t,e,n,s){return s==null&&(s=n),[["M",t,e],["m",0,-s],["a",n,s,0,1,1,0,2*s],["a",n,s,0,1,1,0,-2*s],["z"]]},Rt=f._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return $t(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return $t(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return ot(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return ot(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return ot(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return ot(e.x,e.y,e.width,e.height)}},zt=f.mapPath=function(t,e){if(!e)return t;var n,s,a,d,m,v,x;for(a=0,m=(t=Mi(t)).length;a<m;a++)for(d=1,v=(x=t[a]).length;d<v;d+=2)n=e.x(x[d],x[d+1]),s=e.y(x[d],x[d+1]),x[d]=n,x[d+1]=s;return t};if(f._g=W,f.type=W.win.SVGAngle||W.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",f.type=="VML"){var Tt,ee=W.doc.createElement("div");if(ee.innerHTML='<v:shape adj="1"/>',(Tt=ee.firstChild).style.behavior="url(#default#VML)",!Tt||typeof Tt.adj!="object")return f.type=lt;ee=null}function qt(t){if(typeof t=="function"||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[nt](n)&&(e[n]=qt(t[n]));return e}f.svg=!(f.vml=f.type=="VML"),f._Paper=Ft,f.fn=z=Ft.prototype=f.prototype,f._id=0,f.is=function(t,e){return(e=st.call(e))=="finite"?!u[nt](+t):e=="array"?t instanceof Array:e=="null"&&t===null||e==typeof t&&t!==null||e=="object"&&t===Object(t)||e=="array"&&Array.isArray&&Array.isArray(t)||te.call(t).slice(8,-1).toLowerCase()==e},f.angle=function(t,e,n,s,a,d){if(a==null){var m=t-n,v=e-s;return m||v?(180+180*H.atan2(-v,-m)/Mt+360)%360:0}return f.angle(t,e,a,d)-f.angle(n,s,a,d)},f.rad=function(t){return t%360*Mt/180},f.deg=function(t){return Math.round(180*t/Mt%360*1e3)/1e3},f.snapTo=function(t,e,n){if(n=f.is(n,"finite")?n:10,f.is(t,xt)){for(var s=t.length;s--;)if(at(t[s]-e)<=n)return t[s]}else{var a=e%(t=+t);if(a<n)return e-a;if(a>t-n)return e-a+t}return e};var Se,wi;f.createUUID=(Se=/[xy]/g,wi=function(t){var e=16*H.random()|0;return(t=="x"?e:3&e|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Se,wi).toUpperCase()}),f.setWindow=function(t){h("raphael.setWindow",f,W.win,t),W.win=t,W.doc=W.win.document,f._engine.initWin&&f._engine.initWin(W.win)};var Fe=function(t){if(f.vml){var e,n=/^\s+|\s+$/g;try{var s=new ActiveXObject("htmlfile");s.write("<body>"),s.close(),e=s.body}catch{e=createPopup().document.body}var a=e.createTextRange();Fe=Ot(function(m){try{e.style.color=V(m).replace(n,lt);var v=a.queryCommandValue("ForeColor");return"#"+("000000"+(v=(255&v)<<16|65280&v|(16711680&v)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var d=W.doc.createElement("i");d.title="Raphaël Colour Picker",d.style.display="none",W.doc.body.appendChild(d),Fe=Ot(function(m){return d.style.color=m,W.doc.defaultView.getComputedStyle(d,lt).getPropertyValue("color")})}return Fe(t)},Qe=function(){return"hsb("+[this.h,this.s,this.b]+")"},Je=function(){return"hsl("+[this.h,this.s,this.l]+")"},ki=function(){return this.hex},ti=function(t,e,n){if(e==null&&f.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,e=t.g,t=t.r),e==null&&f.is(t,"string")){var s=f.getRGB(t);t=s.r,e=s.g,n=s.b}return(t>1||e>1||n>1)&&(t/=255,e/=255,n/=255),[t,e,n]},Ui=function(t,e,n,s){var a={r:t*=255,g:e*=255,b:n*=255,hex:f.rgb(t,e,n),toString:ki};return f.is(s,"finite")&&(a.opacity=s),a};function Ot(t,e,n){return function s(){var a=Array.prototype.slice.call(arguments,0),d=a.join("␀"),m=s.cache=s.cache||{},v=s.count=s.count||[];return m[nt](d)?((function(x,k){for(var F=0,P=x.length;F<P;F++)if(x[F]===k)return x.push(x.splice(F,1)[0])})(v,d),n?n(m[d]):m[d]):(v.length>=1e3&&delete m[v.shift()],v.push(d),m[d]=t[U](e,a),n?n(m[d]):m[d])}}f.color=function(t){var e;return f.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=f.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):f.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=f.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):(f.is(t,"string")&&(t=f.getRGB(t)),f.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(e=f.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=f.rgb2hsb(t),t.v=e.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=ki,t},f.hsb2rgb=function(t,e,n,s){var a,d,m,v,x;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,s=t.o,t=t.h),v=(x=n*e)*(1-at((t=(t*=360)%360/60)%2-1)),a=d=m=n-x,Ui(a+=[x,v,0,0,v,x][t=~~t],d+=[v,x,x,v,0,0][t],m+=[0,0,v,x,x,v][t],s)},f.hsl2rgb=function(t,e,n,s){var a,d,m,v,x;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),v=(x=2*e*(n<.5?n:1-n))*(1-at((t=(t*=360)%360/60)%2-1)),a=d=m=n-x/2,Ui(a+=[x,v,0,0,v,x][t=~~t],d+=[v,x,x,v,0,0][t],m+=[0,0,v,x,x,v][t],s)},f.rgb2hsb=function(t,e,n){var s,a;return t=(n=ti(t,e,n))[0],e=n[1],n=n[2],{h:(((a=(s=K(t,e,n))-G(t,e,n))==0?null:s==t?(e-n)/a:s==e?(n-t)/a+2:(t-e)/a+4)+360)%6*60/360,s:a==0?0:a/s,b:s,toString:Qe}},f.rgb2hsl=function(t,e,n){var s,a,d,m;return t=(n=ti(t,e,n))[0],e=n[1],n=n[2],s=((a=K(t,e,n))+(d=G(t,e,n)))/2,{h:(((m=a-d)==0?null:a==t?(e-n)/m:a==e?(n-t)/m+2:(t-e)/m+4)+360)%6*60/360,s:m==0?0:s<.5?m/(2*s):m/(2-2*s),l:s,toString:Je}},f._path2string=function(){return this.join(",").replace(it,"$1")},f._preload=function(t,e){var n=W.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){e.call(this),this.onload=null,W.doc.body.removeChild(this)},n.onerror=function(){W.doc.body.removeChild(this)},W.doc.body.appendChild(n),n.src=t};function Ae(){return this.hex}function ei(t,e){for(var n=[],s=0,a=t.length;a-2*!e>s;s+=2){var d=[{x:+t[s-2],y:+t[s-1]},{x:+t[s],y:+t[s+1]},{x:+t[s+2],y:+t[s+3]},{x:+t[s+4],y:+t[s+5]}];e?s?a-4==s?d[3]={x:+t[0],y:+t[1]}:a-2==s&&(d[2]={x:+t[0],y:+t[1]},d[3]={x:+t[2],y:+t[3]}):d[0]={x:+t[a-2],y:+t[a-1]}:a-4==s?d[3]=d[2]:s||(d[0]={x:+t[s],y:+t[s+1]}),n.push(["C",(-d[0].x+6*d[1].x+d[2].x)/6,(-d[0].y+6*d[1].y+d[2].y)/6,(d[1].x+6*d[2].x-d[3].x)/6,(d[1].y+6*d[2].y-d[3].y)/6,d[2].x,d[2].y])}return n}f.getRGB=Ot(function(t){if(!t||(t=V(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ae};if(t=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:Ae};!X[nt](t.toLowerCase().substring(0,2))&&t.charAt()!="#"&&(t=Fe(t));var e,n,s,a,d,m,v=t.match(p);return v?(v[2]&&(s=E(v[2].substring(5),16),n=E(v[2].substring(3,5),16),e=E(v[2].substring(1,3),16)),v[3]&&(s=E((d=v[3].charAt(3))+d,16),n=E((d=v[3].charAt(2))+d,16),e=E((d=v[3].charAt(1))+d,16)),v[4]&&(m=v[4][et](N),e=y(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),n=y(m[1]),m[1].slice(-1)=="%"&&(n*=2.55),s=y(m[2]),m[2].slice(-1)=="%"&&(s*=2.55),v[1].toLowerCase().slice(0,4)=="rgba"&&(a=y(m[3])),m[3]&&m[3].slice(-1)=="%"&&(a/=100)),v[5]?(m=v[5][et](N),e=y(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),n=y(m[1]),m[1].slice(-1)=="%"&&(n*=2.55),s=y(m[2]),m[2].slice(-1)=="%"&&(s*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),v[1].toLowerCase().slice(0,4)=="hsba"&&(a=y(m[3])),m[3]&&m[3].slice(-1)=="%"&&(a/=100),f.hsb2rgb(e,n,s,a)):v[6]?(m=v[6][et](N),e=y(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),n=y(m[1]),m[1].slice(-1)=="%"&&(n*=2.55),s=y(m[2]),m[2].slice(-1)=="%"&&(s*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),v[1].toLowerCase().slice(0,4)=="hsla"&&(a=y(m[3])),m[3]&&m[3].slice(-1)=="%"&&(a/=100),f.hsl2rgb(e,n,s,a)):((v={r:e,g:n,b:s,toString:Ae}).hex="#"+(16777216|s|n<<8|e<<16).toString(16).slice(1),f.is(a,"finite")&&(v.opacity=a),v)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ae}},f),f.hsb=Ot(function(t,e,n){return f.hsb2rgb(t,e,n).hex}),f.hsl=Ot(function(t,e,n){return f.hsl2rgb(t,e,n).hex}),f.rgb=Ot(function(t,e,n){function s(a){return a+.5|0}return"#"+(16777216|s(n)|s(e)<<8|s(t)<<16).toString(16).slice(1)}),f.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},n=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),n.hex},f.getColor.reset=function(){delete this.start},f.parsePathString=function(t){if(!t)return null;var e=se(t);if(e.arr)return Xt(e.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},s=[];return f.is(t,xt)&&f.is(t[0],xt)&&(s=Xt(t)),s.length||V(t).replace(pt,function(a,d,m){var v=[],x=d.toLowerCase();if(m.replace(dt,function(k,F){F&&v.push(+F)}),x=="m"&&v.length>2&&(s.push([d][B](v.splice(0,2))),x="l",d=d=="m"?"l":"L"),x=="r")s.push([d][B](v));else for(;v.length>=n[x]&&(s.push([d][B](v.splice(0,n[x]))),n[x]););}),s.toString=f._path2string,e.arr=Xt(s),s},f.parseTransformString=Ot(function(t){if(!t)return null;var e=[];return f.is(t,xt)&&f.is(t[0],xt)&&(e=Xt(t)),e.length||V(t).replace(mt,function(n,s,a){var d=[];st.call(s),a.replace(dt,function(m,v){v&&d.push(+v)}),e.push([s][B](d))}),e.toString=f._path2string,e},this,function(t){if(!t)return t;for(var e=[],n=0;n<t.length;n++){for(var s=[],a=0;a<t[n].length;a++)s.push(t[n][a]);e.push(s)}return e});var se=function(t){var e=se.ps=se.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[nt](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]};function ii(t,e,n,s,a){return t*(t*(-3*e+9*n-9*s+3*a)+6*e-12*n+6*s)-3*e+3*n}function fe(t,e,n,s,a,d,m,v,x){x==null&&(x=1);for(var k=(x=x>1?1:x<0?0:x)/2,F=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],P=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],T=0,S=0;S<12;S++){var R=k*F[S]+k,I=ii(R,t,n,a,m),O=ii(R,e,s,d,v),A=I*I+O*O;T+=P[S]*H.sqrt(A)}return k*T}function Ei(t,e,n,s,a,d,m,v){if(!(K(t,n)<G(a,m)||G(t,n)>K(a,m)||K(e,s)<G(d,v)||G(e,s)>K(d,v))){var x=(t-n)*(d-v)-(e-s)*(a-m);if(x){var k=((t*s-e*n)*(a-m)-(t-n)*(a*v-d*m))/x,F=((t*s-e*n)*(d-v)-(e-s)*(a*v-d*m))/x,P=+k.toFixed(2),T=+F.toFixed(2);if(!(P<+G(t,n).toFixed(2)||P>+K(t,n).toFixed(2)||P<+G(a,m).toFixed(2)||P>+K(a,m).toFixed(2)||T<+G(e,s).toFixed(2)||T>+K(e,s).toFixed(2)||T<+G(d,v).toFixed(2)||T>+K(d,v).toFixed(2)))return{x:k,y:F}}}}function ni(t,e,n){var s=f.bezierBBox(t),a=f.bezierBBox(e);if(!f.isBBoxIntersect(s,a))return n?0:[];for(var d=fe.apply(0,t),m=fe.apply(0,e),v=K(~~(d/5),1),x=K(~~(m/5),1),k=[],F=[],P={},T=n?0:[],S=0;S<v+1;S++){var R=f.findDotsAtSegment.apply(f,t.concat(S/v));k.push({x:R.x,y:R.y,t:S/v})}for(S=0;S<x+1;S++)R=f.findDotsAtSegment.apply(f,e.concat(S/x)),F.push({x:R.x,y:R.y,t:S/x});for(S=0;S<v;S++)for(var I=0;I<x;I++){var O=k[S],A=k[S+1],J=F[I],D=F[I+1],q=at(A.x-O.x)<.001?"y":"x",j=at(D.x-J.x)<.001?"y":"x",gt=Ei(O.x,O.y,A.x,A.y,J.x,J.y,D.x,D.y);if(gt){if(P[gt.x.toFixed(4)]==gt.y.toFixed(4))continue;P[gt.x.toFixed(4)]=gt.y.toFixed(4);var ut=O.t+at((gt[q]-O[q])/(A[q]-O[q]))*(A.t-O.t),vt=J.t+at((gt[j]-J[j])/(D[j]-J[j]))*(D.t-J.t);ut>=0&&ut<=1.001&&vt>=0&&vt<=1.001&&(n?T++:T.push({x:gt.x,y:gt.y,t1:G(ut,1),t2:G(vt,1)}))}}return T}function Ci(t,e,n){t=f._path2curve(t),e=f._path2curve(e);for(var s,a,d,m,v,x,k,F,P,T,S=n?0:[],R=0,I=t.length;R<I;R++){var O=t[R];if(O[0]=="M")s=v=O[1],a=x=O[2];else{O[0]=="C"?(P=[s,a].concat(O.slice(1)),s=P[6],a=P[7]):(P=[s,a,s,a,v,x,v,x],s=v,a=x);for(var A=0,J=e.length;A<J;A++){var D=e[A];if(D[0]=="M")d=k=D[1],m=F=D[2];else{D[0]=="C"?(T=[d,m].concat(D.slice(1)),d=T[6],m=T[7]):(T=[d,m,d,m,k,F,k,F],d=k,m=F);var q=ni(P,T,n);if(n)S+=q;else{for(var j=0,gt=q.length;j<gt;j++)q[j].segment1=R,q[j].segment2=A,q[j].bez1=P,q[j].bez2=T;S=S.concat(q)}}}}}return S}f.findDotsAtSegment=function(t,e,n,s,a,d,m,v,x){var k=1-x,F=yt(k,3),P=yt(k,2),T=x*x,S=T*x,R=F*t+3*P*x*n+3*k*x*x*a+S*m,I=F*e+3*P*x*s+3*k*x*x*d+S*v,O=t+2*x*(n-t)+T*(a-2*n+t),A=e+2*x*(s-e)+T*(d-2*s+e),J=n+2*x*(a-n)+T*(m-2*a+n),D=s+2*x*(d-s)+T*(v-2*d+s),q=k*t+x*n,j=k*e+x*s,gt=k*a+x*m,ut=k*d+x*v,vt=90-180*H.atan2(O-J,A-D)/Mt;return(O>J||A<D)&&(vt+=180),{x:R,y:I,m:{x:O,y:A},n:{x:J,y:D},start:{x:q,y:j},end:{x:gt,y:ut},alpha:vt}},f.bezierBBox=function(t,e,n,s,a,d,m,v){f.is(t,"array")||(t=[t,e,n,s,a,d,m,v]);var x=Zi.apply(null,t);return{x:x.min.x,y:x.min.y,x2:x.max.x,y2:x.max.y,width:x.max.x-x.min.x,height:x.max.y-x.min.y}},f.isPointInsideBBox=function(t,e,n){return e>=t.x&&e<=t.x2&&n>=t.y&&n<=t.y2},f.isBBoxIntersect=function(t,e){var n=f.isPointInsideBBox;return n(e,t.x,t.y)||n(e,t.x2,t.y)||n(e,t.x,t.y2)||n(e,t.x2,t.y2)||n(t,e.x,e.y)||n(t,e.x2,e.y)||n(t,e.x,e.y2)||n(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},f.pathIntersection=function(t,e){return Ci(t,e)},f.pathIntersectionNumber=function(t,e){return Ci(t,e,1)},f.isPointInsidePath=function(t,e,n){var s=f.pathBBox(t);return f.isPointInsideBBox(s,e,n)&&Ci(t,[["M",e,n],["H",s.x2+10]],1)%2==1},f._removedFactory=function(t){return function(){h("raphael.log",null,"Raphaël: you are calling to method “"+t+"” of removed object",t)}};var Te=f.pathBBox=function(t){var e=se(t);if(e.bbox)return qt(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var n,s=0,a=0,d=[],m=[],v=0,x=(t=Mi(t)).length;v<x;v++)if((n=t[v])[0]=="M")s=n[1],a=n[2],d.push(s),m.push(a);else{var k=Zi(s,a,n[1],n[2],n[3],n[4],n[5],n[6]);d=d[B](k.min.x,k.max.x),m=m[B](k.min.y,k.max.y),s=n[5],a=n[6]}var F=G[U](0,d),P=G[U](0,m),T=K[U](0,d),S=K[U](0,m),R=T-F,I=S-P,O={x:F,y:P,x2:T,y2:S,width:R,height:I,cx:F+R/2,cy:P+I/2};return e.bbox=qt(O),O},Xt=function(t){var e=qt(t);return e.toString=f._path2string,e},Ir=f._pathToRelative=function(t){var e=se(t);if(e.rel)return Xt(e.rel);f.is(t,xt)&&f.is(t&&t[0],xt)||(t=f.parsePathString(t));var n=[],s=0,a=0,d=0,m=0,v=0;t[0][0]=="M"&&(d=s=t[0][1],m=a=t[0][2],v++,n.push(["M",s,a]));for(var x=v,k=t.length;x<k;x++){var F=n[x]=[],P=t[x];if(P[0]!=st.call(P[0]))switch(F[0]=st.call(P[0]),F[0]){case"a":F[1]=P[1],F[2]=P[2],F[3]=P[3],F[4]=P[4],F[5]=P[5],F[6]=+(P[6]-s).toFixed(3),F[7]=+(P[7]-a).toFixed(3);break;case"v":F[1]=+(P[1]-a).toFixed(3);break;case"m":d=P[1],m=P[2];default:for(var T=1,S=P.length;T<S;T++)F[T]=+(P[T]-(T%2?s:a)).toFixed(3)}else{F=n[x]=[],P[0]=="m"&&(d=P[1]+s,m=P[2]+a);for(var R=0,I=P.length;R<I;R++)n[x][R]=P[R]}var O=n[x].length;switch(n[x][0]){case"z":s=d,a=m;break;case"h":s+=+n[x][O-1];break;case"v":a+=+n[x][O-1];break;default:s+=+n[x][O-2],a+=+n[x][O-1]}}return n.toString=f._path2string,e.rel=Xt(n),n},ri=f._pathToAbsolute=function(t){var e=se(t);if(e.abs)return Xt(e.abs);if(f.is(t,xt)&&f.is(t&&t[0],xt)||(t=f.parsePathString(t)),!t||!t.length)return[["M",0,0]];var n=[],s=0,a=0,d=0,m=0,v=0;t[0][0]=="M"&&(d=s=+t[0][1],m=a=+t[0][2],v++,n[0]=["M",s,a]);for(var x,k,F=t.length==3&&t[0][0]=="M"&&t[1][0].toUpperCase()=="R"&&t[2][0].toUpperCase()=="Z",P=v,T=t.length;P<T;P++){if(n.push(x=[]),(k=t[P])[0]!=C.call(k[0]))switch(x[0]=C.call(k[0]),x[0]){case"A":x[1]=k[1],x[2]=k[2],x[3]=k[3],x[4]=k[4],x[5]=k[5],x[6]=+(k[6]+s),x[7]=+(k[7]+a);break;case"V":x[1]=+k[1]+a;break;case"H":x[1]=+k[1]+s;break;case"R":for(var S=[s,a][B](k.slice(1)),R=2,I=S.length;R<I;R++)S[R]=+S[R]+s,S[++R]=+S[R]+a;n.pop(),n=n[B](ei(S,F));break;case"M":d=+k[1]+s,m=+k[2]+a;default:for(R=1,I=k.length;R<I;R++)x[R]=+k[R]+(R%2?s:a)}else if(k[0]=="R")S=[s,a][B](k.slice(1)),n.pop(),n=n[B](ei(S,F)),x=["R"][B](k.slice(-2));else for(var O=0,A=k.length;O<A;O++)x[O]=k[O];switch(x[0]){case"Z":s=d,a=m;break;case"H":s=x[1];break;case"V":a=x[1];break;case"M":d=x[x.length-2],m=x[x.length-1];default:s=x[x.length-2],a=x[x.length-1]}}return n.toString=f._path2string,e.abs=Xt(n),n},si=function(t,e,n,s){return[t,e,n,s,n,s]},Ne=function(t,e,n,s,a,d){return[1/3*t+2/3*n,1/3*e+2/3*s,1/3*a+2/3*n,1/3*d+2/3*s,a,d]},Wi=function(t,e,n,s,a,d,m,v,x,k){var F,P=120*Mt/180,T=Mt/180*(+a||0),S=[],R=Ot(function(rs,ss,tn){return{x:rs*H.cos(tn)-ss*H.sin(tn),y:rs*H.sin(tn)+ss*H.cos(tn)}});if(k)ut=k[0],vt=k[1],j=k[2],gt=k[3];else{t=(F=R(t,e,-T)).x,e=F.y,v=(F=R(v,x,-T)).x,x=F.y;var I=(t-v)/2,O=(e-x)/2,A=I*I/(n*n)+O*O/(s*s);A>1&&(n*=A=H.sqrt(A),s*=A);var J=n*n,D=s*s,q=(d==m?-1:1)*H.sqrt(at((J*D-J*O*O-D*I*I)/(J*O*O+D*I*I))),j=q*n*O/s+(t+v)/2,gt=q*-s*I/n+(e+x)/2,ut=H.asin(((e-gt)/s).toFixed(9)),vt=H.asin(((x-gt)/s).toFixed(9));(ut=t<j?Mt-ut:ut)<0&&(ut=2*Mt+ut),(vt=v<j?Mt-vt:vt)<0&&(vt=2*Mt+vt),m&&ut>vt&&(ut-=2*Mt),!m&&vt>ut&&(vt-=2*Mt)}var ai=vt-ut;if(at(ai)>P){var Fi=vt,Ht=v,ge=x;vt=ut+P*(m&&vt>ut?1:-1),v=j+n*H.cos(vt),x=gt+s*H.sin(vt),S=Wi(v,x,n,s,a,0,m,Ht,ge,[vt,Fi,j,gt])}ai=vt-ut;var li=H.cos(ut),ui=H.sin(ut),Qi=H.cos(vt),be=H.sin(vt),He=H.tan(ai/4),Ji=4/3*n*He,Jr=4/3*s*He,ts=[t,e],fi=[t+Ji*ui,e-Jr*li],es=[v+Ji*be,x-Jr*Qi],is=[v,x];if(fi[0]=2*ts[0]-fi[0],fi[1]=2*ts[1]-fi[1],k)return[fi,es,is][B](S);for(var ns=[],Re=0,Bo=(S=[fi,es,is][B](S).join()[et](",")).length;Re<Bo;Re++)ns[Re]=Re%2?R(S[Re-1],S[Re],T).y:R(S[Re],S[Re+1],T).x;return ns},Ye=function(t,e,n,s,a,d,m,v,x){var k=1-x;return{x:yt(k,3)*t+3*yt(k,2)*x*n+3*k*x*x*a+yt(x,3)*m,y:yt(k,3)*e+3*yt(k,2)*x*s+3*k*x*x*d+yt(x,3)*v}},Zi=Ot(function(t,e,n,s,a,d,m,v){var x,k=a-2*n+t-(m-2*a+n),F=2*(n-t)-2*(a-n),P=t-n,T=(-F+H.sqrt(F*F-4*k*P))/2/k,S=(-F-H.sqrt(F*F-4*k*P))/2/k,R=[e,v],I=[t,m];return at(T)>"1e12"&&(T=.5),at(S)>"1e12"&&(S=.5),T>0&&T<1&&(x=Ye(t,e,n,s,a,d,m,v,T),I.push(x.x),R.push(x.y)),S>0&&S<1&&(x=Ye(t,e,n,s,a,d,m,v,S),I.push(x.x),R.push(x.y)),k=d-2*s+e-(v-2*d+s),P=e-s,T=(-(F=2*(s-e)-2*(d-s))+H.sqrt(F*F-4*k*P))/2/k,S=(-F-H.sqrt(F*F-4*k*P))/2/k,at(T)>"1e12"&&(T=.5),at(S)>"1e12"&&(S=.5),T>0&&T<1&&(x=Ye(t,e,n,s,a,d,m,v,T),I.push(x.x),R.push(x.y)),S>0&&S<1&&(x=Ye(t,e,n,s,a,d,m,v,S),I.push(x.x),R.push(x.y)),{min:{x:G[U](0,I),y:G[U](0,R)},max:{x:K[U](0,I),y:K[U](0,R)}}}),Mi=f._path2curve=Ot(function(t,e){var n=!e&&se(t);if(!e&&n.curve)return Xt(n.curve);for(var s=ri(t),a=e&&ri(e),d={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},m={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},v=function(q,j,gt){var ut,vt;if(!q)return["C",j.x,j.y,j.x,j.y,j.x,j.y];switch(!(q[0]in{T:1,Q:1})&&(j.qx=j.qy=null),q[0]){case"M":j.X=q[1],j.Y=q[2];break;case"A":q=["C"][B](Wi[U](0,[j.x,j.y][B](q.slice(1))));break;case"S":gt=="C"||gt=="S"?(ut=2*j.x-j.bx,vt=2*j.y-j.by):(ut=j.x,vt=j.y),q=["C",ut,vt][B](q.slice(1));break;case"T":gt=="Q"||gt=="T"?(j.qx=2*j.x-j.qx,j.qy=2*j.y-j.qy):(j.qx=j.x,j.qy=j.y),q=["C"][B](Ne(j.x,j.y,j.qx,j.qy,q[1],q[2]));break;case"Q":j.qx=q[1],j.qy=q[2],q=["C"][B](Ne(j.x,j.y,q[1],q[2],q[3],q[4]));break;case"L":q=["C"][B](si(j.x,j.y,q[1],q[2]));break;case"H":q=["C"][B](si(j.x,j.y,q[1],j.y));break;case"V":q=["C"][B](si(j.x,j.y,j.x,q[1]));break;case"Z":q=["C"][B](si(j.x,j.y,j.X,j.Y))}return q},x=function(q,j){if(q[j].length>7){q[j].shift();for(var gt=q[j];gt.length;)F[j]="A",a&&(P[j]="A"),q.splice(j++,0,["C"][B](gt.splice(0,6)));q.splice(j,1),I=K(s.length,a&&a.length||0)}},k=function(q,j,gt,ut,vt){q&&j&&q[vt][0]=="M"&&j[vt][0]!="M"&&(j.splice(vt,0,["M",ut.x,ut.y]),gt.bx=0,gt.by=0,gt.x=q[vt][1],gt.y=q[vt][2],I=K(s.length,a&&a.length||0))},F=[],P=[],T="",S="",R=0,I=K(s.length,a&&a.length||0);R<I;R++){s[R]&&(T=s[R][0]),T!="C"&&(F[R]=T,R&&(S=F[R-1])),s[R]=v(s[R],d,S),F[R]!="A"&&T=="C"&&(F[R]="C"),x(s,R),a&&(a[R]&&(T=a[R][0]),T!="C"&&(P[R]=T,R&&(S=P[R-1])),a[R]=v(a[R],m,S),P[R]!="A"&&T=="C"&&(P[R]="C"),x(a,R)),k(s,a,d,m,R),k(a,s,m,d,R);var O=s[R],A=a&&a[R],J=O.length,D=a&&A.length;d.x=O[J-2],d.y=O[J-1],d.bx=y(O[J-4])||d.x,d.by=y(O[J-3])||d.y,m.bx=a&&(y(A[D-4])||m.x),m.by=a&&(y(A[D-3])||m.y),m.x=a&&A[D-2],m.y=a&&A[D-1]}return a||(n.curve=Xt(s)),a?[s,a]:s},null,Xt),Ki=(f._parseDots=Ot(function(t){for(var e=[],n=0,s=t.length;n<s;n++){var a={},d=t[n].match(/^([^:]*):?([\d\.]*)/);if(a.color=f.getRGB(d[1]),a.color.error)return null;a.opacity=a.color.opacity,a.color=a.color.hex,d[2]&&(a.offset=d[2]+"%"),e.push(a)}for(n=1,s=e.length-1;n<s;n++)if(!e[n].offset){for(var m=y(e[n-1].offset||0),v=0,x=n+1;x<s;x++)if(e[x].offset){v=e[x].offset;break}v||(v=100,x=s);for(var k=((v=y(v))-m)/(x-n+1);n<x;n++)m+=k,e[n].offset=m+"%"}return e}),f._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),So=(f._tofront=function(t,e){e.top!==t&&(Ki(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},f._toback=function(t,e){e.bottom!==t&&(Ki(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},f._insertafter=function(t,e,n){Ki(t,n),e==n.top&&(n.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},f._insertbefore=function(t,e,n){Ki(t,n),e==n.bottom&&(n.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},f.toMatrix=function(t,e){var n=Te(t),s={_:{transform:lt},getBBox:function(){return n}};return Dr(s,e),s.matrix}),Dr=(f.transformPath=function(t,e){return zt(t,So(t,e))},f._extractTransform=function(t,e){if(e==null)return t._.transform;e=V(e).replace(/\.{3}|\u2026/g,t._.transform||lt);var n,s,a=f.parseTransformString(e),d=0,m=1,v=1,x=t._,k=new qe;if(x.transform=a||[],a)for(var F=0,P=a.length;F<P;F++){var T,S,R,I,O,A=a[F],J=A.length,D=V(A[0]).toLowerCase(),q=A[0]!=D,j=q?k.invert():0;D=="t"&&J==3?q?(T=j.x(0,0),S=j.y(0,0),R=j.x(A[1],A[2]),I=j.y(A[1],A[2]),k.translate(R-T,I-S)):k.translate(A[1],A[2]):D=="r"?J==2?(O=O||t.getBBox(1),k.rotate(A[1],O.x+O.width/2,O.y+O.height/2),d+=A[1]):J==4&&(q?(R=j.x(A[2],A[3]),I=j.y(A[2],A[3]),k.rotate(A[1],R,I)):k.rotate(A[1],A[2],A[3]),d+=A[1]):D=="s"?J==2||J==3?(O=O||t.getBBox(1),k.scale(A[1],A[J-1],O.x+O.width/2,O.y+O.height/2),m*=A[1],v*=A[J-1]):J==5&&(q?(R=j.x(A[3],A[4]),I=j.y(A[3],A[4]),k.scale(A[1],A[2],R,I)):k.scale(A[1],A[2],A[3],A[4]),m*=A[1],v*=A[2]):D=="m"&&J==7&&k.add(A[1],A[2],A[3],A[4],A[5],A[6]),x.dirtyT=1,t.matrix=k}t.matrix=k,x.sx=m,x.sy=v,x.deg=d,x.dx=n=k.e,x.dy=s=k.f,m==1&&v==1&&!d&&x.bbox?(x.bbox.x+=+n,x.bbox.y+=+s):x.dirtyT=1}),jr=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return t.length==4?[e,0,t[2],t[3]]:[e,0];case"s":return t.length==5?[e,1,1,t[3],t[4]]:t.length==3?[e,1,1]:[e,1]}},Fo=f._equaliseTransform=function(t,e){e=V(e).replace(/\.{3}|\u2026/g,t),t=f.parseTransformString(t)||[],e=f.parseTransformString(e)||[];for(var n,s,a,d,m=K(t.length,e.length),v=[],x=[],k=0;k<m;k++){if(a=t[k]||jr(e[k]),d=e[k]||jr(a),a[0]!=d[0]||a[0].toLowerCase()=="r"&&(a[2]!=d[2]||a[3]!=d[3])||a[0].toLowerCase()=="s"&&(a[3]!=d[3]||a[4]!=d[4]))return;for(v[k]=[],x[k]=[],n=0,s=K(a.length,d.length);n<s;n++)n in a&&(v[k][n]=a[n]),n in d&&(x[k][n]=d[n])}return{from:v,to:x}};function qe(t,e,n,s,a,d){t!=null?(this.a=+t,this.b=+e,this.c=+n,this.d=+s,this.e=+a,this.f=+d):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}f._getContainer=function(t,e,n,s){var a;if((a=s!=null||f.is(t,"object")?t:W.doc.getElementById(t))!=null)return a.tagName?e==null?{container:a,width:a.style.pixelWidth||a.offsetWidth,height:a.style.pixelHeight||a.offsetHeight}:{container:a,width:e,height:n}:{container:1,x:t,y:e,width:n,height:s}},f.pathToRelative=Ir,f._engine={},f.path2curve=Mi,f.matrix=function(t,e,n,s,a,d){return new qe(t,e,n,s,a,d)},(function(t){function e(s){return s[0]*s[0]+s[1]*s[1]}function n(s){var a=H.sqrt(e(s));s[0]&&(s[0]/=a),s[1]&&(s[1]/=a)}t.add=function(s,a,d,m,v,x){var k,F,P,T,S=[[],[],[]],R=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],I=[[s,d,v],[a,m,x],[0,0,1]];for(s&&s instanceof qe&&(I=[[s.a,s.c,s.e],[s.b,s.d,s.f],[0,0,1]]),k=0;k<3;k++)for(F=0;F<3;F++){for(T=0,P=0;P<3;P++)T+=R[k][P]*I[P][F];S[k][F]=T}this.a=S[0][0],this.b=S[1][0],this.c=S[0][1],this.d=S[1][1],this.e=S[0][2],this.f=S[1][2]},t.invert=function(){var s=this,a=s.a*s.d-s.b*s.c;return new qe(s.d/a,-s.b/a,-s.c/a,s.a/a,(s.c*s.f-s.d*s.e)/a,(s.b*s.e-s.a*s.f)/a)},t.clone=function(){return new qe(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(s,a){this.add(1,0,0,1,s,a)},t.scale=function(s,a,d,m){a==null&&(a=s),(d||m)&&this.add(1,0,0,1,d,m),this.add(s,0,0,a,0,0),(d||m)&&this.add(1,0,0,1,-d,-m)},t.rotate=function(s,a,d){s=f.rad(s),a=a||0,d=d||0;var m=+H.cos(s).toFixed(9),v=+H.sin(s).toFixed(9);this.add(m,v,-v,m,a,d),this.add(1,0,0,1,-a,-d)},t.x=function(s,a){return s*this.a+a*this.c+this.e},t.y=function(s,a){return s*this.b+a*this.d+this.f},t.get=function(s){return+this[V.fromCharCode(97+s)].toFixed(4)},t.toString=function(){return f.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var s={};s.dx=this.e,s.dy=this.f;var a=[[this.a,this.c],[this.b,this.d]];s.scalex=H.sqrt(e(a[0])),n(a[0]),s.shear=a[0][0]*a[1][0]+a[0][1]*a[1][1],a[1]=[a[1][0]-a[0][0]*s.shear,a[1][1]-a[0][1]*s.shear],s.scaley=H.sqrt(e(a[1])),n(a[1]),s.shear/=s.scaley;var d=-a[0][1],m=a[1][1];return m<0?(s.rotate=f.deg(H.acos(m)),d<0&&(s.rotate=360-s.rotate)):s.rotate=f.deg(H.asin(d)),s.isSimple=!(+s.shear.toFixed(9)||s.scalex.toFixed(9)!=s.scaley.toFixed(9)&&s.rotate),s.isSuperSimple=!+s.shear.toFixed(9)&&s.scalex.toFixed(9)==s.scaley.toFixed(9)&&!s.rotate,s.noRotation=!+s.shear.toFixed(9)&&!s.rotate,s},t.toTransformString=function(s){var a=s||this[et]();return a.isSimple?(a.scalex=+a.scalex.toFixed(4),a.scaley=+a.scaley.toFixed(4),a.rotate=+a.rotate.toFixed(4),(a.dx||a.dy?"t"+[a.dx,a.dy]:lt)+(a.scalex!=1||a.scaley!=1?"s"+[a.scalex,a.scaley,0,0]:lt)+(a.rotate?"r"+[a.rotate,0,0]:lt)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(qe.prototype);for(var Ao=function(){this.returnValue=!1},To=function(){return this.originalEvent.preventDefault()},No=function(){this.cancelBubble=!0},Lo=function(){return this.originalEvent.stopPropagation()},Yr=function(t){var e=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,n=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft;return{x:t.clientX+n,y:t.clientY+e}},Ro=W.doc.addEventListener?function(t,e,n,s){var a=function(m){var v=Yr(m);return n.call(s,m,v.x,v.y)};if(t.addEventListener(e,a,!1),Q&&wt[e]){var d=function(m){for(var v=Yr(m),x=m,k=0,F=m.targetTouches&&m.targetTouches.length;k<F;k++)if(m.targetTouches[k].target==t){(m=m.targetTouches[k]).originalEvent=x,m.preventDefault=To,m.stopPropagation=Lo;break}return n.call(s,m,v.x,v.y)};t.addEventListener(wt[e],d,!1)}return function(){return t.removeEventListener(e,a,!1),Q&&wt[e]&&t.removeEventListener(wt[e],d,!1),!0}}:W.doc.attachEvent?function(t,e,n,s){var a=function(d){d=d||W.win.event;var m=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,v=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft,x=d.clientX+v,k=d.clientY+m;return d.preventDefault=d.preventDefault||Ao,d.stopPropagation=d.stopPropagation||No,n.call(s,d,x,k)};return t.attachEvent("on"+e,a),function(){return t.detachEvent("on"+e,a),!0}}:void 0,Le=[],xn=function(t){for(var e,n=t.clientX,s=t.clientY,a=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,d=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft,m=Le.length;m--;){if(e=Le[m],Q&&t.touches){for(var v,x=t.touches.length;x--;)if((v=t.touches[x]).identifier==e.el._drag.id){n=v.clientX,s=v.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var k,F=e.el.node,P=F.nextSibling,T=F.parentNode,S=F.style.display;W.win.opera&&T.removeChild(F),F.style.display="none",k=e.el.paper.getElementByPoint(n,s),F.style.display=S,W.win.opera&&(P?T.insertBefore(F,P):T.appendChild(F)),k&&h("raphael.drag.over."+e.el.id,e.el,k),n+=d,s+=a,h("raphael.drag.move."+e.el.id,e.move_scope||e.el,n-e.el._drag.x,s-e.el._drag.y,n,s,t)}},yn=function(t){f.unmousemove(xn).unmouseup(yn);for(var e,n=Le.length;n--;)(e=Le[n]).el._drag={},h("raphael.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t);Le=[]},At=f.el={},qr=rt.length;qr--;)(function(t){f[t]=At[t]=function(e,n){return f.is(e,"function")&&(this.events=this.events||[],this.events.push({name:t,f:e,unbind:Ro(this.shape||this.node||W.doc,t,e,n||this)})),this},f["un"+t]=At["un"+t]=function(e){for(var n=this.events||[],s=n.length;s--;)n[s].name!=t||!f.is(e,"undefined")&&n[s].f!=e||(n[s].unbind(),n.splice(s,1),!n.length&&delete this.events);return this}})(rt[qr]);At.data=function(t,e){var n=kt[this.id]=kt[this.id]||{};if(arguments.length==0)return n;if(arguments.length==1){if(f.is(t,"object")){for(var s in t)t[nt](s)&&this.data(s,t[s]);return this}return h("raphael.data.get."+this.id,this,n[t],t),n[t]}return n[t]=e,h("raphael.data.set."+this.id,this,e,t),this},At.removeData=function(t){return t==null?delete kt[this.id]:kt[this.id]&&delete kt[this.id][t],this},At.getData=function(){return qt(kt[this.id]||{})},At.hover=function(t,e,n,s){return this.mouseover(t,n).mouseout(e,s||n)},At.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var oi=[];At.drag=function(t,e,n,s,a,d){function m(v){(v.originalEvent||v).preventDefault();var x=v.clientX,k=v.clientY,F=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,P=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft;if(this._drag.id=v.identifier,Q&&v.touches){for(var T,S=v.touches.length;S--;)if(T=v.touches[S],this._drag.id=T.identifier,T.identifier==this._drag.id){x=T.clientX,k=T.clientY;break}}this._drag.x=x+P,this._drag.y=k+F,!Le.length&&f.mousemove(xn).mouseup(yn),Le.push({el:this,move_scope:s,start_scope:a,end_scope:d}),e&&h.on("raphael.drag.start."+this.id,e),t&&h.on("raphael.drag.move."+this.id,t),n&&h.on("raphael.drag.end."+this.id,n),h("raphael.drag.start."+this.id,a||s||this,this._drag.x,this._drag.y,v)}return this._drag={},oi.push({el:this,start:m}),this.mousedown(m),this},At.onDragOver=function(t){t?h.on("raphael.drag.over."+this.id,t):h.unbind("raphael.drag.over."+this.id)},At.undrag=function(){for(var t=oi.length;t--;)oi[t].el==this&&(this.unmousedown(oi[t].start),oi.splice(t,1),h.unbind("raphael.drag.*."+this.id));!oi.length&&f.unmousemove(xn).unmouseup(yn),Le=[]},z.circle=function(t,e,n){var s=f._engine.circle(this,t||0,e||0,n||0);return this.__set__&&this.__set__.push(s),s},z.rect=function(t,e,n,s,a){var d=f._engine.rect(this,t||0,e||0,n||0,s||0,a||0);return this.__set__&&this.__set__.push(d),d},z.ellipse=function(t,e,n,s){var a=f._engine.ellipse(this,t||0,e||0,n||0,s||0);return this.__set__&&this.__set__.push(a),a},z.path=function(t){t&&!f.is(t,"string")&&!f.is(t[0],xt)&&(t+=lt);var e=f._engine.path(f.format[U](f,arguments),this);return this.__set__&&this.__set__.push(e),e},z.image=function(t,e,n,s,a){var d=f._engine.image(this,t||"about:blank",e||0,n||0,s||0,a||0);return this.__set__&&this.__set__.push(d),d},z.text=function(t,e,n){var s=f._engine.text(this,t||0,e||0,V(n));return this.__set__&&this.__set__.push(s),s},z.set=function(t){!f.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var e=new Si(t);return this.__set__&&this.__set__.push(e),e.paper=this,e.type="set",e},z.setStart=function(t){this.__set__=t||this.set()},z.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},z.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},z.setSize=function(t,e){return f._engine.setSize.call(this,t,e)},z.setViewBox=function(t,e,n,s,a){return f._engine.setViewBox.call(this,t,e,n,s,a)},z.top=z.bottom=null,z.raphael=f;function Xr(){return this.x+ht+this.y+ht+this.width+" × "+this.height}z.getElementByPoint=function(t,e){var n,s,a,d,m,v,x,k=this.canvas,F=W.doc.elementFromPoint(t,e);if(W.win.opera&&F.tagName=="svg"){var P=(s=(n=k).getBoundingClientRect(),a=n.ownerDocument,d=a.body,m=a.documentElement,v=m.clientTop||d.clientTop||0,x=m.clientLeft||d.clientLeft||0,{y:s.top+(W.win.pageYOffset||m.scrollTop||d.scrollTop)-v,x:s.left+(W.win.pageXOffset||m.scrollLeft||d.scrollLeft)-x}),T=k.createSVGRect();T.x=t-P.x,T.y=e-P.y,T.width=T.height=1;var S=k.getIntersectionList(T,null);S.length&&(F=S[S.length-1])}if(!F)return null;for(;F.parentNode&&F!=k.parentNode&&!F.raphael;)F=F.parentNode;return F==this.canvas.parentNode&&(F=k),F=F&&F.raphael?this.getById(F.raphaelid):null},z.getElementsByBBox=function(t){var e=this.set();return this.forEach(function(n){f.isBBoxIntersect(n.getBBox(),t)&&e.push(n)}),e},z.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},z.forEach=function(t,e){for(var n=this.bottom;n;){if(t.call(e,n)===!1)return this;n=n.next}return this},z.getElementsByPoint=function(t,e){var n=this.set();return this.forEach(function(s){s.isPointInside(t,e)&&n.push(s)}),n},At.isPointInside=function(t,e){var n=this.realPath=Rt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(n=f.transformPath(n,this.attr("transform"))),f.isPointInsidePath(n,t,e)},At.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=Rt[this.type](this),e.bboxwt=Te(this.realPath),e.bboxwt.toString=Xr,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=Rt[this.type](this)),e.bbox=Te(zt(this.realPath,this.matrix)),e.bbox.toString=Xr,e.dirty=e.dirtyT=0),e.bbox)},At.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},At.glow=function(t){if(this.type=="text")return null;var e={width:((t=t||{}).width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:t.opacity==null?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},n=e.width/2,s=this.paper,a=s.set(),d=this.realPath||Rt[this.type](this);d=this.matrix?zt(d,this.matrix):d;for(var m=1;m<n+1;m++)a.push(s.path(d).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/n*m).toFixed(3),opacity:+(e.opacity/n).toFixed(3)}));return a.insertBefore(this).translate(e.offsetx,e.offsety)};var _n=function(t,e,n,s,a,d,m,v,x){return x==null?fe(t,e,n,s,a,d,m,v):f.findDotsAtSegment(t,e,n,s,a,d,m,v,(function(k,F,P,T,S,R,I,O,A){if(!(A<0||fe(k,F,P,T,S,R,I,O)<A)){var J,D=.5,q=1-D;for(J=fe(k,F,P,T,S,R,I,O,q);at(J-A)>.01;)J=fe(k,F,P,T,S,R,I,O,q+=(J<A?1:-1)*(D/=2));return q}})(t,e,n,s,a,d,m,v,x))},bn=function(t,e){return function(n,s,a){for(var d,m,v,x,k,F="",P={},T=0,S=0,R=(n=Mi(n)).length;S<R;S++){if((v=n[S])[0]=="M")d=+v[1],m=+v[2];else{if(T+(x=_n(d,m,v[1],v[2],v[3],v[4],v[5],v[6]))>s){if(e&&!P.start){if(F+=["C"+(k=_n(d,m,v[1],v[2],v[3],v[4],v[5],v[6],s-T)).start.x,k.start.y,k.m.x,k.m.y,k.x,k.y],a)return F;P.start=F,F=["M"+k.x,k.y+"C"+k.n.x,k.n.y,k.end.x,k.end.y,v[5],v[6]].join(),T+=x,d=+v[5],m=+v[6];continue}if(!t&&!e)return{x:(k=_n(d,m,v[1],v[2],v[3],v[4],v[5],v[6],s-T)).x,y:k.y,alpha:k.alpha}}T+=x,d=+v[5],m=+v[6]}F+=v.shift()+v}return P.end=F,(k=t?T:e?P:f.findDotsAtSegment(d,m,v[0],v[1],v[2],v[3],v[4],v[5],1)).alpha&&(k={x:k.x,y:k.y,alpha:k.alpha}),k}},Hr=bn(1),Gr=bn(),wn=bn(0,1);f.getTotalLength=Hr,f.getPointAtLength=Gr,f.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return wn(t,e).end;var s=wn(t,n,1);return e?wn(s,e).end:s},At.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Hr(t)},At.getPointAtLength=function(t){var e=this.getPath();if(e)return Gr(e,t)},At.getPath=function(){var t,e=f._getPath[this.type];if(this.type!="text"&&this.type!="set")return e&&(t=e(this)),t},At.getSubpath=function(t,e){var n=this.getPath();if(n)return f.getSubpath(n,t,e)};var ie=f.easing_formulas={linear:function(t){return t},"<":function(t){return yt(t,1.7)},">":function(t){return yt(t,.48)},"<>":function(t){var e=.48-t/1.04,n=H.sqrt(.1734+e*e),s=n-e,a=-n-e,d=yt(at(s),1/3)*(s<0?-1:1)+yt(at(a),1/3)*(a<0?-1:1)+.5;return 3*(1-d)*d*d+d*d*d},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:yt(2,-10*t)*H.sin(2*Mt*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375}};ie.easeIn=ie["ease-in"]=ie["<"],ie.easeOut=ie["ease-out"]=ie[">"],ie.easeInOut=ie["ease-in-out"]=ie["<>"],ie["back-in"]=ie.backIn,ie["back-out"]=ie.backOut;var Et=[],Ur=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},kn=function(){for(var t=+new Date,e=0;e<Et.length;e++){var n=Et[e];if(!n.el.removed&&!n.paused){var s,a,d=t-n.start,m=n.ms,v=n.easing,x=n.from,k=n.diff,F=n.to,P=(n.t,n.el),T={},S={};if(n.initstatus?(d=(n.initstatus*n.anim.top-n.prev)/(n.percent-n.prev)*m,n.status=n.initstatus,delete n.initstatus,n.stop&&Et.splice(e--,1)):n.status=(n.prev+(n.percent-n.prev)*(d/m))/n.anim.top,!(d<0))if(d<m){var R=v(d/m);for(var I in x)if(x[nt](I)){switch(M[I]){case ct:s=+x[I]+R*m*k[I];break;case"colour":s="rgb("+[En(c(x[I].r+R*m*k[I].r)),En(c(x[I].g+R*m*k[I].g)),En(c(x[I].b+R*m*k[I].b))].join(",")+")";break;case"path":s=[];for(var O=0,A=x[I].length;O<A;O++){s[O]=[x[I][O][0]];for(var J=1,D=x[I][O].length;J<D;J++)s[O][J]=+x[I][O][J]+R*m*k[I][O][J];s[O]=s[O].join(ht)}s=s.join(ht);break;case"transform":if(k[I].real)for(s=[],O=0,A=x[I].length;O<A;O++)for(s[O]=[x[I][O][0]],J=1,D=x[I][O].length;J<D;J++)s[O][J]=x[I][O][J]+R*m*k[I][O][J];else{var q=function(gt){return+x[I][gt]+R*m*k[I][gt]};s=[["m",q(0),q(1),q(2),q(3),q(4),q(5)]]}break;case"csv":if(I=="clip-rect")for(s=[],O=4;O--;)s[O]=+x[I][O]+R*m*k[I][O];break;default:var j=[][B](x[I]);for(s=[],O=P.paper.customAttributes[I].length;O--;)s[O]=+j[O]+R*m*k[I][O]}T[I]=s}P.attr(T),(function(gt,ut,vt){setTimeout(function(){h("raphael.anim.frame."+gt,ut,vt)})})(P.id,P,n.anim)}else{if((function(gt,ut,vt){setTimeout(function(){h("raphael.anim.frame."+ut.id,ut,vt),h("raphael.anim.finish."+ut.id,ut,vt),f.is(gt,"function")&>.call(ut)})})(n.callback,P,n.anim),P.attr(F),Et.splice(e--,1),n.repeat>1&&!n.next){for(a in F)F[nt](a)&&(S[a]=n.totalOrigin[a]);n.el.attr(S),$i(n.anim,n.el,n.anim.percents[0],null,n.totalOrigin,n.repeat-1)}n.next&&!n.stop&&$i(n.anim,n.el,n.next,null,n.totalOrigin,n.repeat)}}}Et.length&&Ur(kn)},En=function(t){return t>255?255:t<0?0:t};function zo(t,e,n,s,a,d){var m=3*e,v=3*(s-e)-m,x=1-m-v,k=3*n,F=3*(a-n)-k,P=1-k-F;function T(S){return((x*S+v)*S+m)*S}return(function(S,R){var I=(function(O,A){var J,D,q,j,gt,ut;for(q=O,ut=0;ut<8;ut++){if(j=T(q)-O,at(j)<A)return q;if(at(gt=(3*x*q+2*v)*q+m)<1e-6)break;q-=j/gt}if(D=1,(q=O)<(J=0))return J;if(q>D)return D;for(;J<D;){if(j=T(q),at(j-O)<A)return q;O>j?J=q:D=q,q=(D-J)/2+J}return q})(S,R);return((P*I+F)*I+k)*I})(t,1/(200*d))}function _e(t,e){var n=[],s={};if(this.ms=e,this.times=1,t){for(var a in t)t[nt](a)&&(s[y(a)]=t[a],n.push(y(a)));n.sort(Ct)}this.anim=s,this.top=n[n.length-1],this.percents=n}function $i(t,e,n,s,a,d){n=y(n);var m,v,x,k,F,P,T=t.ms,S={},R={},I={};if(s)for(A=0,J=Et.length;A<J;A++){var O=Et[A];if(O.el.id==e.id&&O.anim==t){O.percent!=n?(Et.splice(A,1),x=1):v=O,e.attr(O.totalOrigin);break}}else s=+R;for(var A=0,J=t.percents.length;A<J;A++){if(t.percents[A]==n||t.percents[A]>s*t.top){n=t.percents[A],F=t.percents[A-1]||0,T=T/t.top*(n-F),k=t.percents[A+1],m=t.anim[n];break}s&&e.attr(t.anim[t.percents[A]])}if(m){if(v)v.initstatus=s,v.start=new Date-v.ms*s;else{for(var D in m)if(m[nt](D)&&(M[nt](D)||e.paper.customAttributes[nt](D)))switch(S[D]=e.attr(D),S[D]==null&&(S[D]=L[D]),R[D]=m[D],M[D]){case ct:I[D]=(R[D]-S[D])/T;break;case"colour":S[D]=f.getRGB(S[D]);var q=f.getRGB(R[D]);I[D]={r:(q.r-S[D].r)/T,g:(q.g-S[D].g)/T,b:(q.b-S[D].b)/T};break;case"path":var j=Mi(S[D],R[D]),gt=j[1];for(S[D]=j[0],I[D]=[],A=0,J=S[D].length;A<J;A++){I[D][A]=[0];for(var ut=1,vt=S[D][A].length;ut<vt;ut++)I[D][A][ut]=(gt[A][ut]-S[D][A][ut])/T}break;case"transform":var ai=e._,Fi=Fo(ai[D],R[D]);if(Fi)for(S[D]=Fi.from,R[D]=Fi.to,I[D]=[],I[D].real=!0,A=0,J=S[D].length;A<J;A++)for(I[D][A]=[S[D][A][0]],ut=1,vt=S[D][A].length;ut<vt;ut++)I[D][A][ut]=(R[D][A][ut]-S[D][A][ut])/T;else{var Ht=e.matrix||new qe,ge={_:{transform:ai.transform},getBBox:function(){return e.getBBox(1)}};S[D]=[Ht.a,Ht.b,Ht.c,Ht.d,Ht.e,Ht.f],Dr(ge,R[D]),R[D]=ge._.transform,I[D]=[(ge.matrix.a-Ht.a)/T,(ge.matrix.b-Ht.b)/T,(ge.matrix.c-Ht.c)/T,(ge.matrix.d-Ht.d)/T,(ge.matrix.e-Ht.e)/T,(ge.matrix.f-Ht.f)/T]}break;case"csv":var li=V(m[D])[et](Z),ui=V(S[D])[et](Z);if(D=="clip-rect")for(S[D]=ui,I[D]=[],A=ui.length;A--;)I[D][A]=(li[A]-S[D][A])/T;R[D]=li;break;default:for(li=[][B](m[D]),ui=[][B](S[D]),I[D]=[],A=e.paper.customAttributes[D].length;A--;)I[D][A]=((li[A]||0)-(ui[A]||0))/T}var Qi=m.easing,be=f.easing_formulas[Qi];if(!be)if((be=V(Qi).match(o))&&be.length==5){var He=be;be=function(Ji){return zo(Ji,+He[1],+He[2],+He[3],+He[4],T)}}else be=bt;if(O={anim:t,percent:n,timestamp:P=m.start||t.start||+new Date,start:P+(t.del||0),status:0,initstatus:s||0,stop:!1,ms:T,easing:be,from:S,diff:I,to:R,el:e,callback:m.callback,prev:F,next:k,repeat:d||t.times,origin:e.attr(),totalOrigin:a},Et.push(O),s&&!v&&!x&&(O.stop=!0,O.start=new Date-T*s,Et.length==1))return kn();x&&(O.start=new Date-O.ms*s),Et.length==1&&Ur(kn)}h("raphael.anim.start."+e.id,e,t)}}function Wr(t){for(var e=0;e<Et.length;e++)Et[e].el.paper==t&&Et.splice(e--,1)}At.animateWith=function(t,e,n,s,a,d){if(this.removed)return d&&d.call(this),this;var m=n instanceof _e?n:f.animation(n,s,a,d);$i(m,this,m.percents[0],null,this.attr());for(var v=0,x=Et.length;v<x;v++)if(Et[v].anim==e&&Et[v].el==t){Et[x-1].start=Et[v].start;break}return this},At.onAnimation=function(t){return t?h.on("raphael.anim.frame."+this.id,t):h.unbind("raphael.anim.frame."+this.id),this},_e.prototype.delay=function(t){var e=new _e(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},_e.prototype.repeat=function(t){var e=new _e(this.anim,this.ms);return e.del=this.del,e.times=H.floor(K(t,0))||1,e},f.animation=function(t,e,n,s){if(t instanceof _e)return t;!f.is(n,"function")&&n||(s=s||n||null,n=null),t=Object(t),e=+e||0;var a,d,m={};for(d in t)t[nt](d)&&y(d)!=d&&y(d)+"%"!=d&&(a=!0,m[d]=t[d]);if(a)return n&&(m.easing=n),s&&(m.callback=s),new _e({100:m},e);if(s){var v=0;for(var x in t){var k=E(x);t[nt](x)&&k>v&&(v=k)}!t[v+="%"].callback&&(t[v].callback=s)}return new _e(t,e)},At.animate=function(t,e,n,s){if(this.removed)return s&&s.call(this),this;var a=t instanceof _e?t:f.animation(t,e,n,s);return $i(a,this,a.percents[0],null,this.attr()),this},At.setTime=function(t,e){return t&&e!=null&&this.status(t,G(e,t.ms)/t.ms),this},At.status=function(t,e){var n,s,a=[],d=0;if(e!=null)return $i(t,this,-1,G(e,1)),this;for(n=Et.length;d<n;d++)if((s=Et[d]).el.id==this.id&&(!t||s.anim==t)){if(t)return s.status;a.push({anim:s.anim,status:s.status})}return t?0:a},At.pause=function(t){for(var e=0;e<Et.length;e++)Et[e].el.id!=this.id||t&&Et[e].anim!=t||h("raphael.anim.pause."+this.id,this,Et[e].anim)!==!1&&(Et[e].paused=!0);return this},At.resume=function(t){for(var e=0;e<Et.length;e++)if(Et[e].el.id==this.id&&(!t||Et[e].anim==t)){var n=Et[e];h("raphael.anim.resume."+this.id,this,n.anim)!==!1&&(delete n.paused,this.status(n.anim,n.status))}return this},At.stop=function(t){for(var e=0;e<Et.length;e++)Et[e].el.id!=this.id||t&&Et[e].anim!=t||h("raphael.anim.stop."+this.id,this,Et[e].anim)!==!1&&Et.splice(e--,1);return this},h.on("raphael.remove",Wr),h.on("raphael.clear",Wr),At.toString=function(){return"Raphaël’s object"};var Zr,Kr,Xe,Qr,Si=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,n=t.length;e<n;e++)!t[e]||t[e].constructor!=At.constructor&&t[e].constructor!=Si||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},Pt=Si.prototype;for(var Cn in Pt.push=function(){for(var t,e,n=0,s=arguments.length;n<s;n++)!(t=arguments[n])||t.constructor!=At.constructor&&t.constructor!=Si||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},Pt.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Pt.forEach=function(t,e){for(var n=0,s=this.items.length;n<s;n++)if(t.call(e,this.items[n],n)===!1)return this;return this},At)At[nt](Cn)&&(Pt[Cn]=(function(t){return function(){var e=arguments;return this.forEach(function(n){n[t][U](n,e)})}})(Cn));return Pt.attr=function(t,e){if(t&&f.is(t,xt)&&f.is(t[0],"object"))for(var n=0,s=t.length;n<s;n++)this.items[n].attr(t[n]);else for(var a=0,d=this.items.length;a<d;a++)this.items[a].attr(t,e);return this},Pt.clear=function(){for(;this.length;)this.pop()},Pt.splice=function(t,e,n){t=t<0?K(this.length+t,0):t,e=K(0,G(this.length-t,e));var s,a=[],d=[],m=[];for(s=2;s<arguments.length;s++)m.push(arguments[s]);for(s=0;s<e;s++)d.push(this[t+s]);for(;s<this.length-t;s++)a.push(this[t+s]);var v=m.length;for(s=0;s<v+a.length;s++)this.items[t+s]=this[t+s]=s<v?m[s]:a[s-v];for(s=this.items.length=this.length-=e-v;this[s];)delete this[s++];return new Si(d)},Pt.exclude=function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]==t)return this.splice(e,1),!0},Pt.animate=function(t,e,n,s){(f.is(n,"function")||!n)&&(s=n||null);var a,d,m=this.items.length,v=m,x=this;if(!m)return this;s&&(d=function(){!--m&&s.call(x)}),n=f.is(n,"string")?n:d;var k=f.animation(t,e,n,d);for(a=this.items[--v].animate(k);v--;)this.items[v]&&!this.items[v].removed&&this.items[v].animateWith(a,k,k),this.items[v]&&!this.items[v].removed||m--;return this},Pt.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},Pt.getBBox=function(){for(var t=[],e=[],n=[],s=[],a=this.items.length;a--;)if(!this.items[a].removed){var d=this.items[a].getBBox();t.push(d.x),e.push(d.y),n.push(d.x+d.width),s.push(d.y+d.height)}return{x:t=G[U](0,t),y:e=G[U](0,e),x2:n=K[U](0,n),y2:s=K[U](0,s),width:n-t,height:s-e}},Pt.clone=function(t){t=this.paper.set();for(var e=0,n=this.items.length;e<n;e++)t.push(this.items[e].clone());return t},Pt.toString=function(){return"Raphaël‘s set"},Pt.glow=function(t){var e=this.paper.set();return this.forEach(function(n,s){var a=n.glow(t);a?.forEach(function(d,m){e.push(d)})}),e},Pt.isPointInside=function(t,e){var n=!1;return this.forEach(function(s){if(s.isPointInside(t,e))return n=!0,!1}),n},f.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},n=t.face["font-family"];for(var s in t.face)t.face[nt](s)&&(e.face[s]=t.face[s]);if(this.fonts[n]?this.fonts[n].push(e):this.fonts[n]=[e],!t.svg){for(var a in e.face["units-per-em"]=E(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[nt](a)){var d=t.glyphs[a];if(e.glyphs[a]={w:d.w,k:{},d:d.d&&"M"+d.d.replace(/[mlcxtrv]/g,function(v){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[v]||"M"})+"z"},d.k)for(var m in d.k)d[nt](m)&&(e.glyphs[a].k[m]=d.k[m])}}return t},z.getFont=function(t,e,n,s){if(s=s||"normal",n=n||"normal",e=+e||{normal:400,bold:700,lighter:300,bolder:800}[e]||400,f.fonts){var a,d=f.fonts[t];if(!d){var m=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,lt)+"(\\s|$)","i");for(var v in f.fonts)if(f.fonts[nt](v)&&m.test(v)){d=f.fonts[v];break}}if(d)for(var x=0,k=d.length;x<k&&((a=d[x]).face["font-weight"]!=e||a.face["font-style"]!=n&&a.face["font-style"]||a.face["font-stretch"]!=s);x++);return a}},z.print=function(t,e,n,s,a,d,m,v){d=d||"middle",m=K(G(m||0,1),-1),v=K(G(v||1,3),1);var x,k=V(n)[et](lt),F=0,P=0,T=lt;if(f.is(s,"string")&&(s=this.getFont(s)),s){x=(a||16)/s.face["units-per-em"];for(var S=s.face.bbox[et](Z),R=+S[0],I=S[3]-S[1],O=0,A=+S[1]+(d=="baseline"?I+ +s.face.descent:I/2),J=0,D=k.length;J<D;J++){if(k[J]==`
|
|
3
|
+
`)F=0,j=0,P=0,O+=I*v;else{var q=P&&s.glyphs[k[J-1]]||{},j=s.glyphs[k[J]];F+=P?(q.w||s.w)+(q.k&&q.k[k[J]]||0)+s.w*m:0,P=1}j&&j.d&&(T+=f.transformPath(j.d,["t",F*x,O*x,"s",x,x,R,A,"t",(t-R)/x,(e-A)/x]))}}return this.path(T).attr({fill:"#000",stroke:"none"})},z.add=function(t){if(f.is(t,"array"))for(var e,n=this.set(),s=0,a=t.length;s<a;s++)e=t[s]||{},Y[nt](e.type)&&n.push(this[e.type]().attr(e));return n},f.format=function(t,e){var n=f.is(e,xt)?[0][B](e):arguments;return t&&f.is(t,"string")&&n.length-1&&(t=t.replace(tt,function(s,a){return n[++a]==null?lt:n[a]})),t||lt},f.fullfill=(Zr=/\{([^\}]+)\}/g,Kr=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return String(t).replace(Zr,function(n,s){return(function(a,d,m){var v=m;return d.replace(Kr,function(x,k,F,P,T){k=k||P,v&&(k in v&&(v=v[k]),typeof v=="function"&&T&&(v=v()))}),v=(v==null||v==m?a:v)+""})(n,s,e)})}),f.ninja=function(){if(_t.was)W.win.Raphael=_t.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return f},f.st=Pt,h.on("raphael.DOMload",function(){$=!0}),(Xe=document).readyState==null&&Xe.addEventListener&&(Xe.addEventListener("DOMContentLoaded",Qr=function(){Xe.removeEventListener("DOMContentLoaded",Qr,!1),Xe.readyState="complete"},!1),Xe.readyState="loading"),(function t(){/in/.test(Xe.readyState)?setTimeout(t,9):f.eve("raphael.DOMload")})(),f}).apply(g,b))===void 0||(l.exports=w)},function(l,g,_){var b,w;b=[_(0),_(3),_(4)],(w=(function(h){return h}).apply(g,b))===void 0||(l.exports=w)},function(l,g,_){var b,w,h,f,$,z,Z,Y,tt,nt,W,_t,Ft,U;f="hasOwnProperty",$=/[\.\/]/,z=/\s*,\s*/,Z=function(B,Q){return B-Q},Y={n:{}},tt=function(){for(var B=0,Q=this.length;B<Q;B++)if(this[B]!==void 0)return this[B]},nt=function(){for(var B=this.length;--B;)if(this[B]!==void 0)return this[B]},W=Object.prototype.toString,_t=String,Ft=Array.isArray||function(B){return B instanceof Array||W.call(B)=="[object Array]"},(U=function(B,Q){var lt,ht=h,V=Array.prototype.slice.call(arguments,2),et=U.listeners(B),rt=0,wt=[],st={},H=[],K=w;H.firstDefined=tt,H.lastDefined=nt,w=B,h=0;for(var G=0,at=et.length;G<at;G++)"zIndex"in et[G]&&(wt.push(et[G].zIndex),et[G].zIndex<0&&(st[et[G].zIndex]=et[G]));for(wt.sort(Z);wt[rt]<0;)if(lt=st[wt[rt++]],H.push(lt.apply(Q,V)),h)return h=ht,H;for(G=0;G<at;G++)if("zIndex"in(lt=et[G]))if(lt.zIndex==wt[rt]){if(H.push(lt.apply(Q,V)),h)break;do if((lt=st[wt[++rt]])&&H.push(lt.apply(Q,V)),h)break;while(lt)}else st[lt.zIndex]=lt;else if(H.push(lt.apply(Q,V)),h)break;return h=ht,w=K,H})._events=Y,U.listeners=function(B){var Q,lt,ht,V,et,rt,wt,st,H=Ft(B)?B:B.split($),K=Y,G=[K],at=[];for(V=0,et=H.length;V<et;V++){for(st=[],rt=0,wt=G.length;rt<wt;rt++)for(lt=[(K=G[rt].n)[H[V]],K["*"]],ht=2;ht--;)(Q=lt[ht])&&(st.push(Q),at=at.concat(Q.f||[]));G=st}return at},U.separator=function(B){B?(B="["+(B=_t(B).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",$=new RegExp(B)):$=/[\.\/]/},U.on=function(B,Q){if(typeof Q!="function")return function(){};for(var lt=Ft(B)?Ft(B[0])?B:[B]:_t(B).split(z),ht=0,V=lt.length;ht<V;ht++)(function(et){for(var rt,wt=Ft(et)?et:_t(et).split($),st=Y,H=0,K=wt.length;H<K;H++)st=(st=st.n).hasOwnProperty(wt[H])&&st[wt[H]]||(st[wt[H]]={n:{}});for(st.f=st.f||[],H=0,K=st.f.length;H<K;H++)if(st.f[H]==Q){rt=!0;break}!rt&&st.f.push(Q)})(lt[ht]);return function(et){+et==+et&&(Q.zIndex=+et)}},U.f=function(B){var Q=[].slice.call(arguments,1);return function(){U.apply(null,[B,null].concat(Q).concat([].slice.call(arguments,0)))}},U.stop=function(){h=1},U.nt=function(B){var Q=Ft(w)?w.join("."):w;return B?new RegExp("(?:\\.|\\/|^)"+B+"(?:\\.|\\/|$)").test(Q):Q},U.nts=function(){return Ft(w)?w:w.split($)},U.off=U.unbind=function(B,Q){if(B){var lt=Ft(B)?Ft(B[0])?B:[B]:_t(B).split(z);if(lt.length>1)for(var ht=0,V=lt.length;ht<V;ht++)U.off(lt[ht],Q);else{lt=Ft(B)?B:_t(B).split($);var et,rt,wt,st,H,K=[Y];for(ht=0,V=lt.length;ht<V;ht++)for(st=0;st<K.length;st+=wt.length-2){if(wt=[st,1],et=K[st].n,lt[ht]!="*")et[lt[ht]]&&wt.push(et[lt[ht]]);else for(rt in et)et[f](rt)&&wt.push(et[rt]);K.splice.apply(K,wt)}for(ht=0,V=K.length;ht<V;ht++)for(et=K[ht];et.n;){if(Q){if(et.f){for(st=0,H=et.f.length;st<H;st++)if(et.f[st]==Q){et.f.splice(st,1);break}!et.f.length&&delete et.f}for(rt in et.n)if(et.n[f](rt)&&et.n[rt].f){var G=et.n[rt].f;for(st=0,H=G.length;st<H;st++)if(G[st]==Q){G.splice(st,1);break}!G.length&&delete et.n[rt].f}}else for(rt in delete et.f,et.n)et.n[f](rt)&&et.n[rt].f&&delete et.n[rt].f;et=et.n}}}else U._events=Y={n:{}}},U.once=function(B,Q){var lt=function(){return U.off(B,lt),Q.apply(this,arguments)};return U.on(B,lt)},U.version="0.5.0",U.toString=function(){return"You are running Eve 0.5.0"},l.exports?l.exports=U:(b=(function(){return U}).apply(g,[]))===void 0||(l.exports=b)},function(l,g,_){var b,w;b=[_(0)],(w=(function(h){if(!h||h.svg){var f="hasOwnProperty",$=String,z=parseFloat,Z=parseInt,Y=Math,tt=Y.max,nt=Y.abs,W=Y.pow,_t=/[, ]+/,Ft=h.eve,U="",B=" ",Q="http://www.w3.org/1999/xlink",lt={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},ht={};h.toString=function(){return`Your browser supports SVG.
|
|
4
|
+
You are running Raphaël `+this.version};var V=function(p,u){if(u)for(var o in typeof p=="string"&&(p=V(p)),u)u[f](o)&&(o.substring(0,6)=="xlink:"?p.setAttributeNS(Q,o.substring(6),$(u[o])):p.setAttribute(o,$(u[o])));else(p=h._g.doc.createElementNS("http://www.w3.org/2000/svg",p)).style&&(p.style.webkitTapHighlightColor="rgba(0,0,0,0)");return p},et=function(p,u){var o="linear",c=p.id+u,y=.5,E=.5,C=p.node,L=p.paper,M=C.style,N=h._g.doc.getElementById(c);if(!N){if(u=(u=$(u).replace(h._radial_gradient,function(Ct,bt,ot){if(o="radial",bt&&ot){y=z(bt);var $t=2*((E=z(ot))>.5)-1;W(y-.5,2)+W(E-.5,2)>.25&&(E=Y.sqrt(.25-W(y-.5,2))*$t+.5)&&E!=.5&&(E=E.toFixed(5)-1e-5*$t)}return U})).split(/\s*\-\s*/),o=="linear"){var X=u.shift();if(X=-z(X),isNaN(X))return null;var it=[0,0,Y.cos(h.rad(X)),Y.sin(h.rad(X))],pt=1/(tt(nt(it[2]),nt(it[3]))||1);it[2]*=pt,it[3]*=pt,it[2]<0&&(it[0]=-it[2],it[2]=0),it[3]<0&&(it[1]=-it[3],it[3]=0)}var mt=h._parseDots(u);if(!mt)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),p.gradient&&c!=p.gradient.id&&(L.defs.removeChild(p.gradient),delete p.gradient),!p.gradient){N=V(o+"Gradient",{id:c}),p.gradient=N,V(N,o=="radial"?{fx:y,fy:E}:{x1:it[0],y1:it[1],x2:it[2],y2:it[3],gradientTransform:p.matrix.invert()}),L.defs.appendChild(N);for(var dt=0,kt=mt.length;dt<kt;dt++)N.appendChild(V("stop",{offset:mt[dt].offset?mt[dt].offset:dt?"100%":"0%","stop-color":mt[dt].color||"#fff","stop-opacity":isFinite(mt[dt].opacity)?mt[dt].opacity:1}))}}return V(C,{fill:rt(c),opacity:1,"fill-opacity":1}),M.fill=U,M.opacity=1,M.fillOpacity=1,1},rt=function(p){if((u=document.documentMode)&&(u===9||u===10))return"url('#"+p+"')";var u,o=document.location;return"url('"+(o.protocol+"//"+o.host+o.pathname+o.search)+"#"+p+"')"},wt=function(p){var u=p.getBBox(1);V(p.pattern,{patternTransform:p.matrix.invert()+" translate("+u.x+","+u.y+")"})},st=function(p,u,o){if(p.type=="path"){for(var c,y,E,C,L,M=$(u).toLowerCase().split("-"),N=p.paper,X=o?"end":"start",it=p.node,pt=p.attrs,mt=pt["stroke-width"],dt=M.length,kt="classic",Ct=3,bt=3,ot=5;dt--;)switch(M[dt]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":kt=M[dt];break;case"wide":bt=5;break;case"narrow":bt=2;break;case"long":Ct=5;break;case"short":Ct=2}if(kt=="open"?(Ct+=2,bt+=2,ot+=2,E=1,C=o?4:1,L={fill:"none",stroke:pt.stroke}):(C=E=Ct/2,L={fill:pt.stroke,stroke:"none"}),p._.arrows?o?(p._.arrows.endPath&&ht[p._.arrows.endPath]--,p._.arrows.endMarker&&ht[p._.arrows.endMarker]--):(p._.arrows.startPath&&ht[p._.arrows.startPath]--,p._.arrows.startMarker&&ht[p._.arrows.startMarker]--):p._.arrows={},kt!="none"){var $t="raphael-marker-"+kt,Rt="raphael-marker-"+X+kt+Ct+bt+"-obj"+p.id;h._g.doc.getElementById($t)?ht[$t]++:(N.defs.appendChild(V(V("path"),{"stroke-linecap":"round",d:lt[kt],id:$t})),ht[$t]=1);var zt,Tt=h._g.doc.getElementById(Rt);Tt?(ht[Rt]++,zt=Tt.getElementsByTagName("use")[0]):(Tt=V(V("marker"),{id:Rt,markerHeight:bt,markerWidth:Ct,orient:"auto",refX:C,refY:bt/2}),zt=V(V("use"),{"xlink:href":"#"+$t,transform:(o?"rotate(180 "+Ct/2+" "+bt/2+") ":U)+"scale("+Ct/ot+","+bt/ot+")","stroke-width":(1/((Ct/ot+bt/ot)/2)).toFixed(4)}),Tt.appendChild(zt),N.defs.appendChild(Tt),ht[Rt]=1),V(zt,L);var ee=E*(kt!="diamond"&&kt!="oval");o?(c=p._.arrows.startdx*mt||0,y=h.getTotalLength(pt.path)-ee*mt):(c=ee*mt,y=h.getTotalLength(pt.path)-(p._.arrows.enddx*mt||0)),(L={})["marker-"+X]="url(#"+Rt+")",(y||c)&&(L.d=h.getSubpath(pt.path,c,y)),V(it,L),p._.arrows[X+"Path"]=$t,p._.arrows[X+"Marker"]=Rt,p._.arrows[X+"dx"]=ee,p._.arrows[X+"Type"]=kt,p._.arrows[X+"String"]=u}else o?(c=p._.arrows.startdx*mt||0,y=h.getTotalLength(pt.path)-c):(c=0,y=h.getTotalLength(pt.path)-(p._.arrows.enddx*mt||0)),p._.arrows[X+"Path"]&&V(it,{d:h.getSubpath(pt.path,c,y)}),delete p._.arrows[X+"Path"],delete p._.arrows[X+"Marker"],delete p._.arrows[X+"dx"],delete p._.arrows[X+"Type"],delete p._.arrows[X+"String"];for(L in ht)if(ht[f](L)&&!ht[L]){var qt=h._g.doc.getElementById(L);qt&&qt.parentNode.removeChild(qt)}}},H={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},K=function(p,u,o){if(u=H[$(u).toLowerCase()]){for(var c=p.attrs["stroke-width"]||"1",y={round:c,square:c,butt:0}[p.attrs["stroke-linecap"]||o["stroke-linecap"]]||0,E=[],C=u.length;C--;)E[C]=u[C]*c+(C%2?1:-1)*y;V(p.node,{"stroke-dasharray":E.join(",")})}else V(p.node,{"stroke-dasharray":"none"})},G=function(p,u){var o=p.node,c=p.attrs,y=o.style.visibility;for(var E in o.style.visibility="hidden",u)if(u[f](E)){if(!h._availableAttrs[f](E))continue;var C=u[E];switch(c[E]=C,E){case"blur":p.blur(C);break;case"title":var L=o.getElementsByTagName("title");if(L.length&&(L=L[0]))L.firstChild.nodeValue=C;else{L=V("title");var M=h._g.doc.createTextNode(C);L.appendChild(M),o.appendChild(L)}break;case"href":case"target":var N=o.parentNode;if(N.tagName.toLowerCase()!="a"){var X=V("a");N.insertBefore(X,o),X.appendChild(o),N=X}E=="target"?N.setAttributeNS(Q,"show",C=="blank"?"new":C):N.setAttributeNS(Q,E,C);break;case"cursor":o.style.cursor=C;break;case"transform":p.transform(C);break;case"arrow-start":st(p,C);break;case"arrow-end":st(p,C,1);break;case"clip-rect":var it=$(C).split(_t);if(it.length==4){p.clip&&p.clip.parentNode.parentNode.removeChild(p.clip.parentNode);var pt=V("clipPath"),mt=V("rect");pt.id=h.createUUID(),V(mt,{x:it[0],y:it[1],width:it[2],height:it[3]}),pt.appendChild(mt),p.paper.defs.appendChild(pt),V(o,{"clip-path":"url(#"+pt.id+")"}),p.clip=mt}if(!C){var dt=o.getAttribute("clip-path");if(dt){var kt=h._g.doc.getElementById(dt.replace(/(^url\(#|\)$)/g,U));kt&&kt.parentNode.removeChild(kt),V(o,{"clip-path":U}),delete p.clip}}break;case"path":p.type=="path"&&(V(o,{d:C?c.path=h._pathToAbsolute(C):"M0,0"}),p._.dirty=1,p._.arrows&&("startString"in p._.arrows&&st(p,p._.arrows.startString),"endString"in p._.arrows&&st(p,p._.arrows.endString,1)));break;case"width":if(o.setAttribute(E,C),p._.dirty=1,!c.fx)break;E="x",C=c.x;case"x":c.fx&&(C=-c.x-(c.width||0));case"rx":if(E=="rx"&&p.type=="rect")break;case"cx":o.setAttribute(E,C),p.pattern&&wt(p),p._.dirty=1;break;case"height":if(o.setAttribute(E,C),p._.dirty=1,!c.fy)break;E="y",C=c.y;case"y":c.fy&&(C=-c.y-(c.height||0));case"ry":if(E=="ry"&&p.type=="rect")break;case"cy":o.setAttribute(E,C),p.pattern&&wt(p),p._.dirty=1;break;case"r":p.type=="rect"?V(o,{rx:C,ry:C}):o.setAttribute(E,C),p._.dirty=1;break;case"src":p.type=="image"&&o.setAttributeNS(Q,"href",C);break;case"stroke-width":p._.sx==1&&p._.sy==1||(C/=tt(nt(p._.sx),nt(p._.sy))||1),o.setAttribute(E,C),c["stroke-dasharray"]&&K(p,c["stroke-dasharray"],u),p._.arrows&&("startString"in p._.arrows&&st(p,p._.arrows.startString),"endString"in p._.arrows&&st(p,p._.arrows.endString,1));break;case"stroke-dasharray":K(p,C,u);break;case"fill":var Ct=$(C).match(h._ISURL);if(Ct){pt=V("pattern");var bt=V("image");pt.id=h.createUUID(),V(pt,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),V(bt,{x:0,y:0,"xlink:href":Ct[1]}),pt.appendChild(bt),(function(Tt){h._preload(Ct[1],function(){var ee=this.offsetWidth,qt=this.offsetHeight;V(Tt,{width:ee,height:qt}),V(bt,{width:ee,height:qt})})})(pt),p.paper.defs.appendChild(pt),V(o,{fill:"url(#"+pt.id+")"}),p.pattern=pt,p.pattern&&wt(p);break}var ot=h.getRGB(C);if(ot.error){if((p.type=="circle"||p.type=="ellipse"||$(C).charAt()!="r")&&et(p,C)){if("opacity"in c||"fill-opacity"in c){var $t=h._g.doc.getElementById(o.getAttribute("fill").replace(/^url\(#|\)$/g,U));if($t){var Rt=$t.getElementsByTagName("stop");V(Rt[Rt.length-1],{"stop-opacity":("opacity"in c?c.opacity:1)*("fill-opacity"in c?c["fill-opacity"]:1)})}}c.gradient=C,c.fill="none";break}}else delete u.gradient,delete c.gradient,!h.is(c.opacity,"undefined")&&h.is(u.opacity,"undefined")&&V(o,{opacity:c.opacity}),!h.is(c["fill-opacity"],"undefined")&&h.is(u["fill-opacity"],"undefined")&&V(o,{"fill-opacity":c["fill-opacity"]});ot[f]("opacity")&&V(o,{"fill-opacity":ot.opacity>1?ot.opacity/100:ot.opacity});case"stroke":ot=h.getRGB(C),o.setAttribute(E,ot.hex),E=="stroke"&&ot[f]("opacity")&&V(o,{"stroke-opacity":ot.opacity>1?ot.opacity/100:ot.opacity}),E=="stroke"&&p._.arrows&&("startString"in p._.arrows&&st(p,p._.arrows.startString),"endString"in p._.arrows&&st(p,p._.arrows.endString,1));break;case"gradient":(p.type=="circle"||p.type=="ellipse"||$(C).charAt()!="r")&&et(p,C);break;case"opacity":c.gradient&&!c[f]("stroke-opacity")&&V(o,{"stroke-opacity":C>1?C/100:C});case"fill-opacity":if(c.gradient){($t=h._g.doc.getElementById(o.getAttribute("fill").replace(/^url\(#|\)$/g,U)))&&(Rt=$t.getElementsByTagName("stop"),V(Rt[Rt.length-1],{"stop-opacity":C}));break}default:E=="font-size"&&(C=Z(C,10)+"px");var zt=E.replace(/(\-.)/g,function(Tt){return Tt.substring(1).toUpperCase()});o.style[zt]=C,p._.dirty=1,o.setAttribute(E,C)}}at(p,u),o.style.visibility=y},at=function(p,u){if(p.type=="text"&&(u[f]("text")||u[f]("font")||u[f]("font-size")||u[f]("x")||u[f]("y"))){var o=p.attrs,c=p.node,y=c.firstChild?Z(h._g.doc.defaultView.getComputedStyle(c.firstChild,U).getPropertyValue("font-size"),10):10;if(u[f]("text")){for(o.text=u.text;c.firstChild;)c.removeChild(c.firstChild);for(var E,C=$(u.text).split(`
|
|
5
|
+
`),L=[],M=0,N=C.length;M<N;M++)E=V("tspan"),M&&V(E,{dy:1.2*y,x:o.x}),E.appendChild(h._g.doc.createTextNode(C[M])),c.appendChild(E),L[M]=E}else for(M=0,N=(L=c.getElementsByTagName("tspan")).length;M<N;M++)M?V(L[M],{dy:1.2*y,x:o.x}):V(L[0],{dy:0});V(c,{x:o.x,y:o.y}),p._.dirty=1;var X=p._getBBox(),it=o.y-(X.y+X.height/2);it&&h.is(it,"finite")&&V(L[0],{dy:it})}},yt=function(p){return p.parentNode&&p.parentNode.tagName.toLowerCase()==="a"?p.parentNode:p},Mt=function(p,u){this[0]=this.node=p,p.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),p.raphaelid=this.id,this.matrix=h.matrix(),this.realPath=null,this.paper=u,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!u.bottom&&(u.bottom=this),this.prev=u.top,u.top&&(u.top.next=this),u.top=this,this.next=null},ct=h.el;Mt.prototype=ct,ct.constructor=Mt,h._engine.path=function(p,u){var o=V("path");u.canvas&&u.canvas.appendChild(o);var c=new Mt(o,u);return c.type="path",G(c,{fill:"none",stroke:"#000",path:p}),c},ct.rotate=function(p,u,o){if(this.removed)return this;if((p=$(p).split(_t)).length-1&&(u=z(p[1]),o=z(p[2])),p=z(p[0]),o==null&&(u=o),u==null||o==null){var c=this.getBBox(1);u=c.x+c.width/2,o=c.y+c.height/2}return this.transform(this._.transform.concat([["r",p,u,o]])),this},ct.scale=function(p,u,o,c){if(this.removed)return this;if((p=$(p).split(_t)).length-1&&(u=z(p[1]),o=z(p[2]),c=z(p[3])),p=z(p[0]),u==null&&(u=p),c==null&&(o=c),o==null||c==null)var y=this.getBBox(1);return o=o??y.x+y.width/2,c=c??y.y+y.height/2,this.transform(this._.transform.concat([["s",p,u,o,c]])),this},ct.translate=function(p,u){return this.removed?this:((p=$(p).split(_t)).length-1&&(u=z(p[1])),p=z(p[0])||0,u=+u||0,this.transform(this._.transform.concat([["t",p,u]])),this)},ct.transform=function(p){var u=this._;if(p==null)return u.transform;if(h._extractTransform(this,p),this.clip&&V(this.clip,{transform:this.matrix.invert()}),this.pattern&&wt(this),this.node&&V(this.node,{transform:this.matrix}),u.sx!=1||u.sy!=1){var o=this.attrs[f]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":o})}return this},ct.hide=function(){return this.removed||(this.node.style.display="none"),this},ct.show=function(){return this.removed||(this.node.style.display=""),this},ct.remove=function(){var p=yt(this.node);if(!this.removed&&p.parentNode){var u=this.paper;for(var o in u.__set__&&u.__set__.exclude(this),Ft.unbind("raphael.*.*."+this.id),this.gradient&&u.defs.removeChild(this.gradient),h._tear(this,u),p.parentNode.removeChild(p),this.removeData(),this)this[o]=typeof this[o]=="function"?h._removedFactory(o):null;this.removed=!0}},ct._getBBox=function(){if(this.node.style.display=="none"){this.show();var p=!0}var u,o=!1;this.paper.canvas.parentElement?u=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(u=this.paper.canvas.parentNode.style),u&&u.display=="none"&&(o=!0,u.display="");var c={};try{c=this.node.getBBox()}catch{c={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{c=c||{},o&&(u.display="none")}return p&&this.hide(),c},ct.attr=function(p,u){if(this.removed)return this;if(p==null){var o={};for(var c in this.attrs)this.attrs[f](c)&&(o[c]=this.attrs[c]);return o.gradient&&o.fill=="none"&&(o.fill=o.gradient)&&delete o.gradient,o.transform=this._.transform,o}if(u==null&&h.is(p,"string")){if(p=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(p=="transform")return this._.transform;for(var y=p.split(_t),E={},C=0,L=y.length;C<L;C++)(p=y[C])in this.attrs?E[p]=this.attrs[p]:h.is(this.paper.customAttributes[p],"function")?E[p]=this.paper.customAttributes[p].def:E[p]=h._availableAttrs[p];return L-1?E:E[y[0]]}if(u==null&&h.is(p,"array")){for(E={},C=0,L=p.length;C<L;C++)E[p[C]]=this.attr(p[C]);return E}if(u!=null){var M={};M[p]=u}else p!=null&&h.is(p,"object")&&(M=p);for(var N in M)Ft("raphael.attr."+N+"."+this.id,this,M[N]);for(N in this.paper.customAttributes)if(this.paper.customAttributes[f](N)&&M[f](N)&&h.is(this.paper.customAttributes[N],"function")){var X=this.paper.customAttributes[N].apply(this,[].concat(M[N]));for(var it in this.attrs[N]=M[N],X)X[f](it)&&(M[it]=X[it])}return G(this,M),this},ct.toFront=function(){if(this.removed)return this;var p=yt(this.node);p.parentNode.appendChild(p);var u=this.paper;return u.top!=this&&h._tofront(this,u),this},ct.toBack=function(){if(this.removed)return this;var p=yt(this.node),u=p.parentNode;return u.insertBefore(p,u.firstChild),h._toback(this,this.paper),this.paper,this},ct.insertAfter=function(p){if(this.removed||!p)return this;var u=yt(this.node),o=yt(p.node||p[p.length-1].node);return o.nextSibling?o.parentNode.insertBefore(u,o.nextSibling):o.parentNode.appendChild(u),h._insertafter(this,p,this.paper),this},ct.insertBefore=function(p){if(this.removed||!p)return this;var u=yt(this.node),o=yt(p.node||p[0].node);return o.parentNode.insertBefore(u,o),h._insertbefore(this,p,this.paper),this},ct.blur=function(p){var u=this;if(+p!=0){var o=V("filter"),c=V("feGaussianBlur");u.attrs.blur=p,o.id=h.createUUID(),V(c,{stdDeviation:+p||1.5}),o.appendChild(c),u.paper.defs.appendChild(o),u._blur=o,V(u.node,{filter:"url(#"+o.id+")"})}else u._blur&&(u._blur.parentNode.removeChild(u._blur),delete u._blur,delete u.attrs.blur),u.node.removeAttribute("filter");return u},h._engine.circle=function(p,u,o,c){var y=V("circle");p.canvas&&p.canvas.appendChild(y);var E=new Mt(y,p);return E.attrs={cx:u,cy:o,r:c,fill:"none",stroke:"#000"},E.type="circle",V(y,E.attrs),E},h._engine.rect=function(p,u,o,c,y,E){var C=V("rect");p.canvas&&p.canvas.appendChild(C);var L=new Mt(C,p);return L.attrs={x:u,y:o,width:c,height:y,rx:E||0,ry:E||0,fill:"none",stroke:"#000"},L.type="rect",V(C,L.attrs),L},h._engine.ellipse=function(p,u,o,c,y){var E=V("ellipse");p.canvas&&p.canvas.appendChild(E);var C=new Mt(E,p);return C.attrs={cx:u,cy:o,rx:c,ry:y,fill:"none",stroke:"#000"},C.type="ellipse",V(E,C.attrs),C},h._engine.image=function(p,u,o,c,y,E){var C=V("image");V(C,{x:o,y:c,width:y,height:E,preserveAspectRatio:"none"}),C.setAttributeNS(Q,"href",u),p.canvas&&p.canvas.appendChild(C);var L=new Mt(C,p);return L.attrs={x:o,y:c,width:y,height:E,src:u},L.type="image",L},h._engine.text=function(p,u,o,c){var y=V("text");p.canvas&&p.canvas.appendChild(y);var E=new Mt(y,p);return E.attrs={x:u,y:o,"text-anchor":"middle",text:c,"font-family":h._availableAttrs["font-family"],"font-size":h._availableAttrs["font-size"],stroke:"none",fill:"#000"},E.type="text",G(E,E.attrs),E},h._engine.setSize=function(p,u){return this.width=p||this.width,this.height=u||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},h._engine.create=function(){var p=h._getContainer.apply(0,arguments),u=p&&p.container;if(!u)throw new Error("SVG container not found.");var o,c=p.x,y=p.y,E=p.width,C=p.height,L=V("svg"),M="overflow:hidden;";return c=c||0,y=y||0,V(L,{height:C=C||342,version:1.1,width:E=E||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),u==1?(L.style.cssText=M+"position:absolute;left:"+c+"px;top:"+y+"px",h._g.doc.body.appendChild(L),o=1):(L.style.cssText=M+"position:relative",u.firstChild?u.insertBefore(L,u.firstChild):u.appendChild(L)),(u=new h._Paper).width=E,u.height=C,u.canvas=L,u.clear(),u._left=u._top=0,o&&(u.renderfix=function(){}),u.renderfix(),u},h._engine.setViewBox=function(p,u,o,c,y){Ft("raphael.setViewBox",this,this._viewBox,[p,u,o,c,y]);var E,C,L=this.getSize(),M=tt(o/L.width,c/L.height),N=this.top,X=y?"xMidYMid meet":"xMinYMin";for(p==null?(this._vbSize&&(M=1),delete this._vbSize,E="0 0 "+this.width+B+this.height):(this._vbSize=M,E=p+B+u+B+o+B+c),V(this.canvas,{viewBox:E,preserveAspectRatio:X});M&&N;)C="stroke-width"in N.attrs?N.attrs["stroke-width"]:1,N.attr({"stroke-width":C}),N._.dirty=1,N._.dirtyT=1,N=N.prev;return this._viewBox=[p,u,o,c,!!y],this},h.prototype.renderfix=function(){var p,u=this.canvas,o=u.style;try{p=u.getScreenCTM()||u.createSVGMatrix()}catch{p=u.createSVGMatrix()}var c=-p.e%1,y=-p.f%1;(c||y)&&(c&&(this._left=(this._left+c)%1,o.left=this._left+"px"),y&&(this._top=(this._top+y)%1,o.top=this._top+"px"))},h.prototype.clear=function(){h.eve("raphael.clear",this);for(var p=this.canvas;p.firstChild;)p.removeChild(p.firstChild);this.bottom=this.top=null,(this.desc=V("desc")).appendChild(h._g.doc.createTextNode("Created with Raphaël "+h.version)),p.appendChild(this.desc),p.appendChild(this.defs=V("defs"))},h.prototype.remove=function(){for(var p in Ft("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[p]=typeof this[p]=="function"?h._removedFactory(p):null};var xt=h.st;for(var te in ct)ct[f](te)&&!xt[f](te)&&(xt[te]=(function(p){return function(){var u=arguments;return this.forEach(function(o){o[p].apply(o,u)})}})(te))}}).apply(g,b))===void 0||(l.exports=w)},function(l,g,_){var b,w;b=[_(0)],(w=(function(h){if(!h||h.vml){var f="hasOwnProperty",$=String,z=parseFloat,Z=Math,Y=Z.round,tt=Z.max,nt=Z.min,W=Z.abs,_t=/[, ]+/,Ft=h.eve,U=" ",B="",Q={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},lt=/([clmz]),?([^clmz]*)/gi,ht=/ progid:\S+Blur\([^\)]+\)/g,V=/-?[^,\s-]+/g,et="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",rt=21600,wt={path:1,rect:1,image:1},st={circle:1,ellipse:1},H=function(u,o,c){var y=h.matrix();return y.rotate(-u,.5,.5),{dx:y.x(o,c),dy:y.y(o,c)}},K=function(u,o,c,y,E,C){var L=u._,M=u.matrix,N=L.fillpos,X=u.node,it=X.style,pt=1,mt="",dt=rt/o,kt=rt/c;if(it.visibility="hidden",o&&c){if(X.coordsize=W(dt)+U+W(kt),it.rotation=C*(o*c<0?-1:1),C){var Ct=H(C,y,E);y=Ct.dx,E=Ct.dy}if(o<0&&(mt+="x"),c<0&&(mt+=" y")&&(pt=-1),it.flip=mt,X.coordorigin=y*-dt+U+E*-kt,N||L.fillsize){var bt=X.getElementsByTagName("fill");bt=bt&&bt[0],X.removeChild(bt),N&&(Ct=H(C,M.x(N[0],N[1]),M.y(N[0],N[1])),bt.position=Ct.dx*pt+U+Ct.dy*pt),L.fillsize&&(bt.size=L.fillsize[0]*W(o)+U+L.fillsize[1]*W(c)),X.appendChild(bt)}it.visibility="visible"}};h.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
|
|
6
|
+
You are running Raphaël `+this.version};var G,at=function(u,o,c){for(var y=$(o).toLowerCase().split("-"),E=c?"end":"start",C=y.length,L="classic",M="medium",N="medium";C--;)switch(y[C]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":L=y[C];break;case"wide":case"narrow":N=y[C];break;case"long":case"short":M=y[C]}var X=u.node.getElementsByTagName("stroke")[0];X[E+"arrow"]=L,X[E+"arrowlength"]=M,X[E+"arrowwidth"]=N},yt=function(u,o){u.attrs=u.attrs||{};var c=u.node,y=u.attrs,E=c.style,C=wt[u.type]&&(o.x!=y.x||o.y!=y.y||o.width!=y.width||o.height!=y.height||o.cx!=y.cx||o.cy!=y.cy||o.rx!=y.rx||o.ry!=y.ry||o.r!=y.r),L=st[u.type]&&(y.cx!=o.cx||y.cy!=o.cy||y.r!=o.r||y.rx!=o.rx||y.ry!=o.ry),M=u;for(var N in o)o[f](N)&&(y[N]=o[N]);if(C&&(y.path=h._getPath[u.type](u),u._.dirty=1),o.href&&(c.href=o.href),o.title&&(c.title=o.title),o.target&&(c.target=o.target),o.cursor&&(E.cursor=o.cursor),"blur"in o&&u.blur(o.blur),(o.path&&u.type=="path"||C)&&(c.path=(function(Ot){var Ae=/[ahqstv]/gi,ei=h._pathToAbsolute;if($(Ot).match(Ae)&&(ei=h._path2curve),Ae=/[clmz]/g,ei==h._pathToAbsolute&&!$(Ot).match(Ae)){var se=$(Ot).replace(lt,function(Ir,ri,si){var Ne=[],Wi=ri.toLowerCase()=="m",Ye=Q[ri];return si.replace(V,function(Zi){Wi&&Ne.length==2&&(Ye+=Ne+Q[ri=="m"?"l":"L"],Ne=[]),Ne.push(Y(Zi*rt))}),Ye+Ne});return se}var ii,fe,Ei=ei(Ot);se=[];for(var ni=0,Ci=Ei.length;ni<Ci;ni++){ii=Ei[ni],(fe=Ei[ni][0].toLowerCase())=="z"&&(fe="x");for(var Te=1,Xt=ii.length;Te<Xt;Te++)fe+=Y(ii[Te]*rt)+(Te!=Xt-1?",":B);se.push(fe)}return se.join(U)})(~$(y.path).toLowerCase().indexOf("r")?h._pathToAbsolute(y.path):y.path),u._.dirty=1,u.type=="image"&&(u._.fillpos=[y.x,y.y],u._.fillsize=[y.width,y.height],K(u,1,1,0,0,0))),"transform"in o&&u.transform(o.transform),L){var X=+y.cx,it=+y.cy,pt=+y.rx||+y.r||0,mt=+y.ry||+y.r||0;c.path=h.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",Y((X-pt)*rt),Y((it-mt)*rt),Y((X+pt)*rt),Y((it+mt)*rt),Y(X*rt)),u._.dirty=1}if("clip-rect"in o){var dt=$(o["clip-rect"]).split(_t);if(dt.length==4){dt[2]=+dt[2]+ +dt[0],dt[3]=+dt[3]+ +dt[1];var kt=c.clipRect||h._g.doc.createElement("div"),Ct=kt.style;Ct.clip=h.format("rect({1}px {2}px {3}px {0}px)",dt),c.clipRect||(Ct.position="absolute",Ct.top=0,Ct.left=0,Ct.width=u.paper.width+"px",Ct.height=u.paper.height+"px",c.parentNode.insertBefore(kt,c),kt.appendChild(c),c.clipRect=kt)}o["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(u.textpath){var bt=u.textpath.style;o.font&&(bt.font=o.font),o["font-family"]&&(bt.fontFamily='"'+o["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,B)+'"'),o["font-size"]&&(bt.fontSize=o["font-size"]),o["font-weight"]&&(bt.fontWeight=o["font-weight"]),o["font-style"]&&(bt.fontStyle=o["font-style"])}if("arrow-start"in o&&at(M,o["arrow-start"]),"arrow-end"in o&&at(M,o["arrow-end"],1),o.opacity!=null||o.fill!=null||o.src!=null||o.stroke!=null||o["stroke-width"]!=null||o["stroke-opacity"]!=null||o["fill-opacity"]!=null||o["stroke-dasharray"]!=null||o["stroke-miterlimit"]!=null||o["stroke-linejoin"]!=null||o["stroke-linecap"]!=null){var ot=c.getElementsByTagName("fill");if(!(ot=ot&&ot[0])&&(ot=G("fill")),u.type=="image"&&o.src&&(ot.src=o.src),o.fill&&(ot.on=!0),ot.on!=null&&o.fill!="none"&&o.fill!==null||(ot.on=!1),ot.on&&o.fill){var $t=$(o.fill).match(h._ISURL);if($t){ot.parentNode==c&&c.removeChild(ot),ot.rotate=!0,ot.src=$t[1],ot.type="tile";var Rt=u.getBBox(1);ot.position=Rt.x+U+Rt.y,u._.fillpos=[Rt.x,Rt.y],h._preload($t[1],function(){u._.fillsize=[this.offsetWidth,this.offsetHeight]})}else ot.color=h.getRGB(o.fill).hex,ot.src=B,ot.type="solid",h.getRGB(o.fill).error&&(M.type in{circle:1,ellipse:1}||$(o.fill).charAt()!="r")&&Mt(M,o.fill,ot)&&(y.fill="none",y.gradient=o.fill,ot.rotate=!1)}if("fill-opacity"in o||"opacity"in o){var zt=((+y["fill-opacity"]+1||2)-1)*((+y.opacity+1||2)-1)*((+h.getRGB(o.fill).o+1||2)-1);zt=nt(tt(zt,0),1),ot.opacity=zt,ot.src&&(ot.color="none")}c.appendChild(ot);var Tt=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],ee=!1;!Tt&&(ee=Tt=G("stroke")),(o.stroke&&o.stroke!="none"||o["stroke-width"]||o["stroke-opacity"]!=null||o["stroke-dasharray"]||o["stroke-miterlimit"]||o["stroke-linejoin"]||o["stroke-linecap"])&&(Tt.on=!0),(o.stroke=="none"||o.stroke===null||Tt.on==null||o.stroke==0||o["stroke-width"]==0)&&(Tt.on=!1);var qt=h.getRGB(o.stroke);Tt.on&&o.stroke&&(Tt.color=qt.hex),zt=((+y["stroke-opacity"]+1||2)-1)*((+y.opacity+1||2)-1)*((+qt.o+1||2)-1);var Se=.75*(z(o["stroke-width"])||1);if(zt=nt(tt(zt,0),1),o["stroke-width"]==null&&(Se=y["stroke-width"]),o["stroke-width"]&&(Tt.weight=Se),Se&&Se<1&&(zt*=Se)&&(Tt.weight=1),Tt.opacity=zt,o["stroke-linejoin"]&&(Tt.joinstyle=o["stroke-linejoin"]||"miter"),Tt.miterlimit=o["stroke-miterlimit"]||8,o["stroke-linecap"]&&(Tt.endcap=o["stroke-linecap"]=="butt"?"flat":o["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in o){var wi={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Tt.dashstyle=wi[f](o["stroke-dasharray"])?wi[o["stroke-dasharray"]]:B}ee&&c.appendChild(Tt)}if(M.type=="text"){M.paper.canvas.style.display=B;var Fe=M.paper.span,Qe=y.font&&y.font.match(/\d+(?:\.\d*)?(?=px)/);E=Fe.style,y.font&&(E.font=y.font),y["font-family"]&&(E.fontFamily=y["font-family"]),y["font-weight"]&&(E.fontWeight=y["font-weight"]),y["font-style"]&&(E.fontStyle=y["font-style"]),Qe=z(y["font-size"]||Qe&&Qe[0])||10,E.fontSize=100*Qe+"px",M.textpath.string&&(Fe.innerHTML=$(M.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var Je=Fe.getBoundingClientRect();M.W=y.w=(Je.right-Je.left)/100,M.H=y.h=(Je.bottom-Je.top)/100,M.X=y.x,M.Y=y.y+M.H/2,("x"in o||"y"in o)&&(M.path.v=h.format("m{0},{1}l{2},{1}",Y(y.x*rt),Y(y.y*rt),Y(y.x*rt)+1));for(var ki=["x","y","text","font","font-family","font-weight","font-style","font-size"],ti=0,Ui=ki.length;ti<Ui;ti++)if(ki[ti]in o){M._.dirty=1;break}switch(y["text-anchor"]){case"start":M.textpath.style["v-text-align"]="left",M.bbx=M.W/2;break;case"end":M.textpath.style["v-text-align"]="right",M.bbx=-M.W/2;break;default:M.textpath.style["v-text-align"]="center",M.bbx=0}M.textpath.style["v-text-kern"]=!0}},Mt=function(u,o,c){u.attrs=u.attrs||{},u.attrs;var y=Math.pow,E="linear",C=".5 .5";if(u.attrs.gradient=o,o=(o=$(o).replace(h._radial_gradient,function(pt,mt,dt){return E="radial",mt&&dt&&(mt=z(mt),dt=z(dt),y(mt-.5,2)+y(dt-.5,2)>.25&&(dt=Z.sqrt(.25-y(mt-.5,2))*(2*(dt>.5)-1)+.5),C=mt+U+dt),B})).split(/\s*\-\s*/),E=="linear"){var L=o.shift();if(L=-z(L),isNaN(L))return null}var M=h._parseDots(o);if(!M)return null;if(u=u.shape||u.node,M.length){u.removeChild(c),c.on=!0,c.method="none",c.color=M[0].color,c.color2=M[M.length-1].color;for(var N=[],X=0,it=M.length;X<it;X++)M[X].offset&&N.push(M[X].offset+U+M[X].color);c.colors=N.length?N.join():"0% "+c.color,E=="radial"?(c.type="gradientTitle",c.focus="100%",c.focussize="0 0",c.focusposition=C,c.angle=0):(c.type="gradient",c.angle=(270-L)%360),u.appendChild(c)}return 1},ct=function(u,o){this[0]=this.node=u,u.raphael=!0,this.id=h._oid++,u.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=o,this.matrix=h.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!o.bottom&&(o.bottom=this),this.prev=o.top,o.top&&(o.top.next=this),o.top=this,this.next=null},xt=h.el;ct.prototype=xt,xt.constructor=ct,xt.transform=function(u){if(u==null)return this._.transform;var o,c=this.paper._viewBoxShift,y=c?"s"+[c.scale,c.scale]+"-1-1t"+[c.dx,c.dy]:B;c&&(o=u=$(u).replace(/\.{3}|\u2026/g,this._.transform||B)),h._extractTransform(this,y+u);var E,C=this.matrix.clone(),L=this.skew,M=this.node,N=~$(this.attrs.fill).indexOf("-"),X=!$(this.attrs.fill).indexOf("url(");if(C.translate(1,1),X||N||this.type=="image")if(L.matrix="1 0 0 1",L.offset="0 0",E=C.split(),N&&E.noRotation||!E.isSimple){M.style.filter=C.toFilter();var it=this.getBBox(),pt=this.getBBox(1),mt=it.x-pt.x,dt=it.y-pt.y;M.coordorigin=mt*-rt+U+dt*-rt,K(this,1,1,mt,dt,0)}else M.style.filter=B,K(this,E.scalex,E.scaley,E.dx,E.dy,E.rotate);else M.style.filter=B,L.matrix=$(C),L.offset=C.offset();return o!==null&&(this._.transform=o,h._extractTransform(this,o)),this},xt.rotate=function(u,o,c){if(this.removed)return this;if(u!=null){if((u=$(u).split(_t)).length-1&&(o=z(u[1]),c=z(u[2])),u=z(u[0]),c==null&&(o=c),o==null||c==null){var y=this.getBBox(1);o=y.x+y.width/2,c=y.y+y.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",u,o,c]])),this}},xt.translate=function(u,o){return this.removed?this:((u=$(u).split(_t)).length-1&&(o=z(u[1])),u=z(u[0])||0,o=+o||0,this._.bbox&&(this._.bbox.x+=u,this._.bbox.y+=o),this.transform(this._.transform.concat([["t",u,o]])),this)},xt.scale=function(u,o,c,y){if(this.removed)return this;if((u=$(u).split(_t)).length-1&&(o=z(u[1]),c=z(u[2]),y=z(u[3]),isNaN(c)&&(c=null),isNaN(y)&&(y=null)),u=z(u[0]),o==null&&(o=u),y==null&&(c=y),c==null||y==null)var E=this.getBBox(1);return c=c??E.x+E.width/2,y=y??E.y+E.height/2,this.transform(this._.transform.concat([["s",u,o,c,y]])),this._.dirtyT=1,this},xt.hide=function(){return!this.removed&&(this.node.style.display="none"),this},xt.show=function(){return!this.removed&&(this.node.style.display=B),this},xt.auxGetBBox=h.el.getBBox,xt.getBBox=function(){var u=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var o={},c=1/this.paper._viewBoxShift.scale;return o.x=u.x-this.paper._viewBoxShift.dx,o.x*=c,o.y=u.y-this.paper._viewBoxShift.dy,o.y*=c,o.width=u.width*c,o.height=u.height*c,o.x2=o.x+o.width,o.y2=o.y+o.height,o}return u},xt._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},xt.remove=function(){if(!this.removed&&this.node.parentNode){for(var u in this.paper.__set__&&this.paper.__set__.exclude(this),h.eve.unbind("raphael.*.*."+this.id),h._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[u]=typeof this[u]=="function"?h._removedFactory(u):null;this.removed=!0}},xt.attr=function(u,o){if(this.removed)return this;if(u==null){var c={};for(var y in this.attrs)this.attrs[f](y)&&(c[y]=this.attrs[y]);return c.gradient&&c.fill=="none"&&(c.fill=c.gradient)&&delete c.gradient,c.transform=this._.transform,c}if(o==null&&h.is(u,"string")){if(u=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var E=u.split(_t),C={},L=0,M=E.length;L<M;L++)(u=E[L])in this.attrs?C[u]=this.attrs[u]:h.is(this.paper.customAttributes[u],"function")?C[u]=this.paper.customAttributes[u].def:C[u]=h._availableAttrs[u];return M-1?C:C[E[0]]}if(this.attrs&&o==null&&h.is(u,"array")){for(C={},L=0,M=u.length;L<M;L++)C[u[L]]=this.attr(u[L]);return C}var N;for(var X in o!=null&&((N={})[u]=o),o==null&&h.is(u,"object")&&(N=u),N)Ft("raphael.attr."+X+"."+this.id,this,N[X]);if(N){for(X in this.paper.customAttributes)if(this.paper.customAttributes[f](X)&&N[f](X)&&h.is(this.paper.customAttributes[X],"function")){var it=this.paper.customAttributes[X].apply(this,[].concat(N[X]));for(var pt in this.attrs[X]=N[X],it)it[f](pt)&&(N[pt]=it[pt])}N.text&&this.type=="text"&&(this.textpath.string=N.text),yt(this,N)}return this},xt.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&h._tofront(this,this.paper),this},xt.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),h._toback(this,this.paper)),this)},xt.insertAfter=function(u){return this.removed?this:(u.constructor==h.st.constructor&&(u=u[u.length-1]),u.node.nextSibling?u.node.parentNode.insertBefore(this.node,u.node.nextSibling):u.node.parentNode.appendChild(this.node),h._insertafter(this,u,this.paper),this)},xt.insertBefore=function(u){return this.removed?this:(u.constructor==h.st.constructor&&(u=u[0]),u.node.parentNode.insertBefore(this.node,u.node),h._insertbefore(this,u,this.paper),this)},xt.blur=function(u){var o=this.node.runtimeStyle,c=o.filter;return c=c.replace(ht,B),+u!=0?(this.attrs.blur=u,o.filter=c+U+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+u||1.5)+")",o.margin=h.format("-{0}px 0 0 -{0}px",Y(+u||1.5))):(o.filter=c,o.margin=0,delete this.attrs.blur),this},h._engine.path=function(u,o){var c=G("shape");c.style.cssText=et,c.coordsize=rt+U+rt,c.coordorigin=o.coordorigin;var y=new ct(c,o),E={fill:"none",stroke:"#000"};u&&(E.path=u),y.type="path",y.path=[],y.Path=B,yt(y,E),o.canvas&&o.canvas.appendChild(c);var C=G("skew");return C.on=!0,c.appendChild(C),y.skew=C,y.transform(B),y},h._engine.rect=function(u,o,c,y,E,C){var L=h._rectPath(o,c,y,E,C),M=u.path(L),N=M.attrs;return M.X=N.x=o,M.Y=N.y=c,M.W=N.width=y,M.H=N.height=E,N.r=C,N.path=L,M.type="rect",M},h._engine.ellipse=function(u,o,c,y,E){var C=u.path();return C.attrs,C.X=o-y,C.Y=c-E,C.W=2*y,C.H=2*E,C.type="ellipse",yt(C,{cx:o,cy:c,rx:y,ry:E}),C},h._engine.circle=function(u,o,c,y){var E=u.path();return E.attrs,E.X=o-y,E.Y=c-y,E.W=E.H=2*y,E.type="circle",yt(E,{cx:o,cy:c,r:y}),E},h._engine.image=function(u,o,c,y,E,C){var L=h._rectPath(c,y,E,C),M=u.path(L).attr({stroke:"none"}),N=M.attrs,X=M.node,it=X.getElementsByTagName("fill")[0];return N.src=o,M.X=N.x=c,M.Y=N.y=y,M.W=N.width=E,M.H=N.height=C,N.path=L,M.type="image",it.parentNode==X&&X.removeChild(it),it.rotate=!0,it.src=o,it.type="tile",M._.fillpos=[c,y],M._.fillsize=[E,C],X.appendChild(it),K(M,1,1,0,0,0),M},h._engine.text=function(u,o,c,y){var E=G("shape"),C=G("path"),L=G("textpath");o=o||0,c=c||0,y=y||"",C.v=h.format("m{0},{1}l{2},{1}",Y(o*rt),Y(c*rt),Y(o*rt)+1),C.textpathok=!0,L.string=$(y),L.on=!0,E.style.cssText=et,E.coordsize=rt+U+rt,E.coordorigin="0 0";var M=new ct(E,u),N={fill:"#000",stroke:"none",font:h._availableAttrs.font,text:y};M.shape=E,M.path=C,M.textpath=L,M.type="text",M.attrs.text=$(y),M.attrs.x=o,M.attrs.y=c,M.attrs.w=1,M.attrs.h=1,yt(M,N),E.appendChild(L),E.appendChild(C),u.canvas.appendChild(E);var X=G("skew");return X.on=!0,E.appendChild(X),M.skew=X,M.transform(B),M},h._engine.setSize=function(u,o){var c=this.canvas.style;return this.width=u,this.height=o,u==+u&&(u+="px"),o==+o&&(o+="px"),c.width=u,c.height=o,c.clip="rect(0 "+u+" "+o+" 0)",this._viewBox&&h._engine.setViewBox.apply(this,this._viewBox),this},h._engine.setViewBox=function(u,o,c,y,E){h.eve("raphael.setViewBox",this,this._viewBox,[u,o,c,y,E]);var C,L,M=this.getSize(),N=M.width,X=M.height;return E&&(c*(C=X/y)<N&&(u-=(N-c*C)/2/C),y*(L=N/c)<X&&(o-=(X-y*L)/2/L)),this._viewBox=[u,o,c,y,!!E],this._viewBoxShift={dx:-u,dy:-o,scale:M},this.forEach(function(it){it.transform("...")}),this},h._engine.initWin=function(u){var o=u.document;o.styleSheets.length<31?o.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):o.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!o.namespaces.rvml&&o.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),G=function(c){return o.createElement("<rvml:"+c+' class="rvml">')}}catch{G=function(y){return o.createElement("<"+y+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},h._engine.initWin(h._g.win),h._engine.create=function(){var u=h._getContainer.apply(0,arguments),o=u.container,c=u.height,y=u.width,E=u.x,C=u.y;if(!o)throw new Error("VML container not found.");var L=new h._Paper,M=L.canvas=h._g.doc.createElement("div"),N=M.style;return E=E||0,C=C||0,y=y||512,c=c||342,L.width=y,L.height=c,y==+y&&(y+="px"),c==+c&&(c+="px"),L.coordsize=216e5+U+216e5,L.coordorigin="0 0",L.span=h._g.doc.createElement("span"),L.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",M.appendChild(L.span),N.cssText=h.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",y,c),o==1?(h._g.doc.body.appendChild(M),N.left=E+"px",N.top=C+"px",N.position="absolute"):o.firstChild?o.insertBefore(M,o.firstChild):o.appendChild(M),L.renderfix=function(){},L},h.prototype.clear=function(){h.eve("raphael.clear",this),this.canvas.innerHTML=B,this.span=h._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},h.prototype.remove=function(){for(var u in h.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[u]=typeof this[u]=="function"?h._removedFactory(u):null;return!0};var te=h.st;for(var p in xt)xt[f](p)&&!te[f](p)&&(te[p]=(function(u){return function(){var o=arguments;return this.forEach(function(c){c[u].apply(c,o)})}})(p))}}).apply(g,b))===void 0||(l.exports=w)}])})})(vn)),vn.exports}var wo=bo();const Gi=_o(wo);class ko{constructor(i){if(pe(i))throw new Error("* justgage: Make sure to pass options to the constructor!");this.events={},this.node=i.element;const l=this.node.dataset?this.node.dataset:{};(pe(i.defaults)?!1:i.defaults)!==!1&&(i=Eo({}),delete i.defaults),this.config={element:i.element,classId:Co(),value:ft("value",i,l,0,"float"),defaults:ft("defaults",i,l,0,!1),parentNode:ft("parentNode",i,l,null),width:ft("width",i,l,null),height:ft("height",i,l,null),valueFontColor:ft("valueFontColor",i,l,"#010101"),valueFontFamily:ft("valueFontFamily",i,l,"Arial"),symbol:ft("symbol",i,l,""),min:ft("min",i,l,0,"float"),minTxt:ft("minTxt",i,l,!1),max:ft("max",i,l,100,"float"),maxTxt:ft("maxTxt",i,l,!1),reverse:ft("reverse",i,l,!1),humanFriendlyDecimal:ft("humanFriendlyDecimal",i,l,0),textRenderer:ft("textRenderer",i,l,null),onAnimationEnd:ft("onAnimationEnd",i,l,null),gaugeWidthScale:ft("gaugeWidthScale",i,l,1),gaugeColor:ft("gaugeColor",i,l,"#edebeb"),label:ft("label",i,l,""),labelFontColor:ft("labelFontColor",i,l,"#b3b3b3"),labelFontFamily:ft("labelFontFamily",i,l,"Arial"),shadowOpacity:ft("shadowOpacity",i,l,.2),shadowSize:ft("shadowSize",i,l,5),shadowVerticalOffset:ft("shadowVerticalOffset",i,l,3),levelColors:ft("levelColors",i,l,["#a9d70b","#f9c802","#ff0000"],"array"),startAnimationTime:ft("startAnimationTime",i,l,700),startAnimationType:ft("startAnimationType",i,l,">"),refreshAnimationTime:ft("refreshAnimationTime",i,l,700),refreshAnimationType:ft("refreshAnimationType",i,l,">"),donutStartAngle:ft("donutStartAngle",i,l,90),valueMinFontSize:ft("valueMinFontSize",i,l,16),labelMinFontSize:ft("labelMinFontSize",i,l,10),minLabelMinFontSize:ft("minLabelMinFontSize",i,l,10),maxLabelMinFontSize:ft("maxLabelMinFontSize",i,l,10),hideValue:ft("hideValue",i,l,!1),hideMinMax:ft("hideMinMax",i,l,!1),showInnerShadow:ft("showInnerShadow",i,l,!1),humanFriendly:ft("humanFriendly",i,l,!1),noGradient:ft("noGradient",i,l,!1),donut:ft("donut",i,l,!1),relativeGaugeSize:ft("relativeGaugeSize",i,l,!1),counter:ft("counter",i,l,!1),decimals:ft("decimals",i,l,0),customSectors:ft("customSectors",i,l,{}),formatNumber:ft("formatNumber",i,l,!1),pointer:ft("pointer",i,l,!1),pointerOptions:ft("pointerOptions",i,l,{}),displayRemaining:ft("displayRemaining",i,l,!1)};let _,b,w,h,f,$,z,Z,Y,tt,nt,W,_t,Ft,U,B,Q,lt,ht;this.config.value>this.config.max&&(this.config.value=this.config.max),this.config.value<this.config.min&&(this.config.value=this.config.min),this.originalValue=ft("value",i,l,-1,"float"),this.canvas=Gi(this.config.element,"100%","100%"),this.config.relativeGaugeSize===!0?this.config.donut===!0?(this.canvas.setViewBox(0,0,200,200,!0),_=200,b=200):(this.canvas.setViewBox(0,0,200,100,!0),_=200,b=100):this.config.width!==null&&this.config.height!==null?(_=this.config.width,b=this.config.height):this.config.parentNode!==null?(this.canvas.setViewBox(0,0,200,100,!0),_=200,b=100):(_=Number(Br(this.config.element,"width").slice(0,-2))*1,b=Number(Br(this.config.element,"height").slice(0,-2))*1),this.config.donut===!0?(_>b?(h=b,w=h):(_<b,w=_,h=w),$=(_-w)/2,z=(b-h)/2,Z=h/6.4>16?h/5.4:18,Y=$+w/2,this.config.label!==""?tt=z+h/1.85:tt=z+h/1.7,nt=h/16>10?h/16:10,W=$+w/2,_t=tt+nt,Ft=h/16>10?h/16:10,U=$+w/10+w/6.666666666666667*this.config.gaugeWidthScale/2,B=_t,Q=h/16>10?h/16:10,lt=$+w-w/10-w/6.666666666666667*this.config.gaugeWidthScale/2,ht=_t):(_>b?(h=b,w=h*2,w>_&&(f=w/_,w=w/f,h=h/f)):_<b?(w=_,h=w/2):(w=_,h=w*.5),$=(_-w)/2,z=(b-h)/2,Z=h/6.5>this.config.valueMinFontSize?h/6.5:this.config.valueMinFontSize,Y=$+w/2,tt=z+h/1.275,nt=h/16>this.config.labelMinFontSize?h/16:this.config.labelMinFontSize,W=$+w/2,_t=tt+Z/2+5,Ft=h/16>this.config.minLabelMinFontSize?h/16:this.config.minLabelMinFontSize,U=$+w/10+w/6.666666666666667*this.config.gaugeWidthScale/2,B=_t,Q=h/16>this.config.maxLabelMinFontSize?h/16:this.config.maxLabelMinFontSize,lt=$+w-w/10-w/6.666666666666667*this.config.gaugeWidthScale/2,ht=_t),this.params={canvasW:_,canvasH:b,widgetW:w,widgetH:h,dx:$,dy:z,valueFontSize:Z,valueX:Y,valueY:tt,labelFontSize:nt,labelX:W,labelY:_t,minFontSize:Ft,minX:U,minY:B,maxFontSize:Q,maxX:lt,maxY:ht},this.canvas.customAttributes.pki=H=>{let K=this.config.min,G=this.config.max;const at=this.params.widgetW,yt=this.params.widgetH,Mt=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,te=this.config.donut;let p,u,o,c,y,E,C,L,M,N;return K<0&&(G-=K,H-=K,K=0),te?(p=(1-2*(H-K)/(G-K))*Math.PI,u=at/2-at/30,o=u-at/6.666666666666667*xt,c=at/2+Mt,y=yt/2+ct,E=c+u*Math.cos(p),C=y-u*Math.sin(p),L=c+o*Math.cos(p),M=y-o*Math.sin(p),N="M"+(c-o)+","+y+" ",N+="L"+(c-u)+","+y+" ",H-K>(G-K)/2&&(N+="A"+u+","+u+" 0 0 1 "+(c+u)+","+y+" "),N+="A"+u+","+u+" 0 0 1 "+E+","+C+" ",N+="L"+L+","+M+" ",H-K>(G-K)/2&&(N+="A"+o+","+o+" 0 0 0 "+(c+o)+","+y+" "),N+="A"+o+","+o+" 0 0 0 "+(c-o)+","+y+" ",N+="Z ",{path:N}):(p=(1-(H-K)/(G-K))*Math.PI,u=at/2-at/10,o=u-at/6.666666666666667*xt,c=at/2+Mt,y=yt/1.25+ct,E=c+u*Math.cos(p),C=y-u*Math.sin(p),L=c+o*Math.cos(p),M=y-o*Math.sin(p),N="M"+(c-o)+","+y+" ",N+="L"+(c-u)+","+y+" ",N+="A"+u+","+u+" 0 0 1 "+E+","+C+" ",N+="L"+L+","+M+" ",N+="A"+o+","+o+" 0 0 0 "+(c-o)+","+y+" ",N+="Z ",{path:N})},this.canvas.customAttributes.ndl=function(H){const K=this.config.min,G=this.config.max,at=this.params.widgetW,yt=this.params.widgetH,Mt=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,te=this.config.donut;let p=at*3.5/100,u=at/15,o=at/100;this.config.pointerOptions.toplength!=null&&this.config.pointerOptions.toplength!==void 0&&(p=this.config.pointerOptions.toplength),this.config.pointerOptions.bottomlength!=null&&this.config.pointerOptions.bottomlength!==void 0&&(u=this.config.pointerOptions.bottomlength),this.config.pointerOptions.bottomwidth!=null&&this.config.pointerOptions.bottomwidth!==void 0&&(o=this.config.pointerOptions.bottomwidth);let c,y,E,C,L,M,N,X,it,pt,mt,dt,kt,Ct,bt,ot,$t;return te?(c=(1-2*(H-K)/(G-K))*Math.PI,y=at/2-at/30,E=y-at/6.666666666666667*xt,C=yt/2+ct,L=at/2+Mt+y*Math.cos(c),M=yt-(yt-C)-y*Math.sin(c),N=at/2+Mt+E*Math.cos(c),X=yt-(yt-C)-E*Math.sin(c),it=L+p*Math.cos(c),pt=M-p*Math.sin(c),mt=N-u*Math.cos(c),dt=X+u*Math.sin(c),kt=mt+o*Math.sin(c),Ct=dt+o*Math.cos(c),bt=mt-o*Math.sin(c),ot=dt-o*Math.cos(c),$t="M"+kt+","+Ct+" ",$t+="L"+bt+","+ot+" ",$t+="L"+it+","+pt+" ",$t+="Z ",{path:$t}):(c=(1-(H-K)/(G-K))*Math.PI,y=at/2-at/10,E=y-at/6.666666666666667*xt,C=yt/1.25+ct,L=at/2+Mt+y*Math.cos(c),M=yt-(yt-C)-y*Math.sin(c),N=at/2+Mt+E*Math.cos(c),X=yt-(yt-C)-E*Math.sin(c),it=L+p*Math.cos(c),pt=M-p*Math.sin(c),mt=N-u*Math.cos(c),dt=X+u*Math.sin(c),kt=mt+o*Math.sin(c),Ct=dt+o*Math.cos(c),bt=mt-o*Math.sin(c),ot=dt-o*Math.cos(c),$t="M"+kt+","+Ct+" ",$t+="L"+bt+","+ot+" ",$t+="L"+it+","+pt+" ",$t+="Z ",{path:$t})},this.gauge=this.canvas.path().attr({stroke:"none",fill:this.config.gaugeColor,pki:[this.config.max]}),this.level=this.canvas.path().attr({stroke:"none",fill:Rr(this.config.value,(this.config.value-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors),pki:[this.config.min]}),this.config.donut&&this.level.transform("r"+this.config.donutStartAngle+", "+(this.params.widgetW/2+this.params.dx)+", "+(this.params.widgetH/2+this.params.dy)),this.config.pointer&&(this.needle=this.canvas.path().attr({stroke:pe(this.config.pointerOptions.stroke)?"none":this.config.pointerOptions.stroke,"stroke-width":pe(this.config.pointerOptions.stroke_width)?0:this.config.pointerOptions.stroke_width,"stroke-linecap":pe(this.config.pointerOptions.stroke_linecap)?"square":this.config.pointerOptions.stroke_linecap,fill:pe(this.config.pointerOptions.color)?"#000000":this.config.pointerOptions.color,ndl:[this.config.min]}),this.config.donut&&this.needle.transform("r"+this.config.donutStartAngle+", "+(this.params.widgetW/2+this.params.dx)+", "+(this.params.widgetH/2+this.params.dy))),this.txtValue=this.canvas.text(this.params.valueX,this.params.valueY,0),this.txtValue.attr({"font-size":this.params.valueFontSize,"font-weight":"bold","font-family":this.config.valueFontFamily,fill:this.config.valueFontColor,"fill-opacity":"0"}),Jt(this.txtValue,this.params.valueFontSize,this.params.valueY),this.txtLabel=this.canvas.text(this.params.labelX,this.params.labelY,this.config.label),this.txtLabel.attr({"font-size":this.params.labelFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":"0"}),Jt(this.txtLabel,this.params.labelFontSize,this.params.labelY);let V=this.config.min;this.config.reverse&&(V=this.config.max),this.txtMinimum=V,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=De(V,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=je(V)),this.txtMin=this.canvas.text(this.params.minX,this.params.minY,this.txtMinimum),this.txtMin.attr({"font-size":this.params.minFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":this.config.hideMinMax||this.config.donut?"0":"1"}),Jt(this.txtMin,this.params.minFontSize,this.params.minY);let et=this.config.max;this.config.reverse&&(et=this.config.min),this.txtMaximum=et,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=De(et,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=je(et)),this.txtMax=this.canvas.text(this.params.maxX,this.params.maxY,this.txtMaximum),this.txtMax.attr({"font-size":this.params.maxFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":this.config.hideMinMax||this.config.donut?"0":"1"}),Jt(this.txtMax,this.params.maxFontSize,this.params.maxY);const rt=this.canvas.canvas.childNodes[1],wt="http://www.w3.org/2000/svg";if(bi!==void 0&&bi<9||(bi!==void 0?Or(()=>{this.generateShadow(wt,rt)}):this.generateShadow(wt,rt)),this.config.textRenderer&&this.config.textRenderer(this.originalValue)!==!1?this.originalValue=this.config.textRenderer(this.originalValue):this.config.humanFriendly?this.originalValue=De(this.originalValue,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?this.originalValue=je(this.originalValue)+this.config.symbol:this.config.displayRemaining?this.originalValue=((this.config.max-this.originalValue)*1).toFixed(this.config.decimals)+this.config.symbol:this.originalValue=(this.originalValue*1).toFixed(this.config.decimals)+this.config.symbol,this.config.counter===!0){const H=()=>{let G=this.level.attr("pki")[0];this.config.reverse&&(G=this.config.max*1+this.config.min*1-this.level.attr("pki")[0]*1),this.config.textRenderer&&this.config.textRenderer(Math.floor(G))!==!1?this.txtValue.attr("text",this.config.textRenderer(Math.floor(G))):this.config.humanFriendly?this.txtValue.attr("text",De(Math.floor(G),this.config.humanFriendlyDecimal)+this.config.symbol):this.config.formatNumber?this.txtValue.attr("text",je(Math.floor(G))+this.config.symbol):this.config.displayRemaining?this.txtValue.attr("text",((this.config.max-G)*1).toFixed(this.config.decimals)+this.config.symbol):this.txtValue.attr("text",(G*1).toFixed(this.config.decimals)+this.config.symbol),Jt(this.txtValue,this.params.valueFontSize,this.params.valueY),G=null},K=()=>{this.txtValue.attr({text:this.originalValue}),Jt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.finish",K),this.bindEvent("raphael.anim.frame",H)}else{const H=()=>{this.txtValue.attr({text:this.originalValue}),Jt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.start",H)}let st=this.config.value;this.config.reverse&&(st=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[st]},this.config.startAnimationTime,this.config.startAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[st]},this.config.startAnimationTime,this.config.startAnimationType),this.txtValue.animate({"fill-opacity":this.config.hideValue?"0":"1"},this.config.startAnimationTime,this.config.startAnimationType),this.txtLabel.animate({"fill-opacity":"1"},this.config.startAnimationTime,this.config.startAnimationType)}bindEvent(i,l){i+="."+this.level.id,this.events[i]&&Gi.eve.off(i,this.events[i]),Gi.eve.on(i,l),this.events[i]=l}refresh(i,l,g,_){let b;l=Pr(l)?l:null,g=Pr(g)?g:null,_=_||null,_!==null&&(this.config.label=_,this.txtLabel.attr({text:this.config.label}),Jt(this.txtLabel,this.params.labelFontSize,this.params.labelY)),g!==null&&(this.config.min=g,this.txtMinimum=this.config.min,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=De(this.config.min,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=je(this.config.min)),this.config.reverse?(this.txtMax.attr({text:this.txtMinimum}),Jt(this.txtMax,this.params.minFontSize,this.params.minY)):(this.txtMin.attr({text:this.txtMinimum}),Jt(this.txtMin,this.params.minFontSize,this.params.minY))),l!==null&&(this.config.max=l,this.txtMaximum=this.config.max,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=De(this.config.max,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=je(this.config.max)),this.config.reverse?(this.txtMin.attr({text:this.txtMaximum}),Jt(this.txtMin,this.params.maxFontSize,this.params.maxY)):(this.txtMax.attr({text:this.txtMaximum}),Jt(this.txtMax,this.params.maxFontSize,this.params.maxY))),b=i,i*1>this.config.max*1&&(i=this.config.max*1),i*1<this.config.min*1&&(i=this.config.min*1);const w=Rr(i,(i-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors);this.config.textRenderer&&this.config.textRenderer(b)!==!1?b=this.config.textRenderer(b):this.config.humanFriendly?b=De(b,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?b=je((b*1).toFixed(this.config.decimals))+this.config.symbol:this.config.displayRemaining?b=((this.config.max-b)*1).toFixed(this.config.decimals)+this.config.symbol:b=(b*1).toFixed(this.config.decimals)+this.config.symbol,this.originalValue=b,this.config.value=i*1,this.config.counter||(this.txtValue.attr({text:b}),Jt(this.txtValue,this.params.valueFontSize,this.params.valueY));let h=this.config.value;this.config.reverse&&(h=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[h],fill:w},this.config.refreshAnimationTime,this.config.refreshAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[h]},this.config.refreshAnimationTime,this.config.refreshAnimationType)}update(i,l){const g=this;if(i instanceof Object)for(const _ in i)l=i[_],Lr(g,_,l);else Lr(g,i,l)}destroy(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const i in this.events)Gi.eve.off(i,this.events[i]);this.events={}}generateShadow(i,l){const g="inner-shadow-"+(this.config.element.id||this.config.classId),_=document.createElementNS(i,"filter");_.setAttribute("id",g),l.appendChild(_);const b=document.createElementNS(i,"feOffset");b.setAttribute("dx","0"),b.setAttribute("dy",this.config.shadowVerticalOffset),_.appendChild(b);const w=document.createElementNS(i,"feGaussianBlur");w.setAttribute("result","offset-blur"),w.setAttribute("stdDeviation",this.config.shadowSize),_.appendChild(w);const h=document.createElementNS(i,"feComposite");h.setAttribute("operator","out"),h.setAttribute("in","SourceGraphic"),h.setAttribute("in2","offset-blur"),h.setAttribute("result","inverse"),_.appendChild(h);const f=document.createElementNS(i,"feFlood");f.setAttribute("flood-color","black"),f.setAttribute("flood-opacity",this.config.shadowOpacity),f.setAttribute("result","color"),_.appendChild(f);const $=document.createElementNS(i,"feComposite");$.setAttribute("operator","in"),$.setAttribute("in","color"),$.setAttribute("in2","inverse"),$.setAttribute("result","shadow"),_.appendChild($);const z=document.createElementNS(i,"feComposite");z.setAttribute("operator","over"),z.setAttribute("in","shadow"),z.setAttribute("in2","SourceGraphic"),_.appendChild(z),this.config.showInnerShadow&&(this.canvas.canvas.childNodes[2].setAttribute("filter","url(#"+g+")"),this.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+g+")"))}}function Lr(r,i,l){switch(i){case"valueFontColor":if(!zr(l)){console.log("* justgage: the updated valueFontColor value is not a valid hex color");break}r.txtValue.attr({fill:l});break;case"labelFontColor":if(!zr(l)){console.log("* justgage: the updated labelFontColor value is not a valid hex color");break}r.txtMin.attr({fill:l}),r.txtMax.attr({fill:l}),r.txtLabel.attr({fill:l});break;default:console.log(`* justgage: "${i}" is not a supported update setting`)}}function ft(r,i,l,g,_,b){let w=g,h=!1;if(!pe(r)&&(!pe(l)&&typeof l=="object"&&r in l?(w=l[r],h=!0):!pe(i)&&typeof i=="object"&&r in i?(w=i[r],h=!0):w=g,h===!0&&!pe(_)))switch(_){case"int":w=parseInt(w,10);break;case"float":w=parseFloat(w);break}return w}function pe(r){return r==null}function Rr(r,i,l,g,_){let b,w,h,f,$,z,Z,Y,tt,nt,W;const _t=_&&_.ranges&&_.ranges.length>0;if(g=g||_t,_t){_.percents===!0&&(r=i*100);for(let Q=0;Q<_.ranges.length;Q++)if(r>=_.ranges[Q].lo&&r<=_.ranges[Q].hi)return _.ranges[Q].color}const Ft=l.length;if(Ft===1)return l[0];const U=g?1/Ft:1/(Ft-1),B=[];for(let Q=0;Q<l.length;Q++)b=g?U*(Q+1):U*Q,w=parseInt(mn(l[Q]).substring(0,2),16),h=parseInt(mn(l[Q]).substring(2,4),16),f=parseInt(mn(l[Q]).substring(4,6),16),B[Q]={pct:b,color:{r:w,g:h,b:f}};if(i===0)return"rgb("+[B[0].color.r,B[0].color.g,B[0].color.b].join(",")+")";for(let Q=0;Q<B.length;Q++)if(i<=B[Q].pct)return g?"rgb("+[B[Q].color.r,B[Q].color.g,B[Q].color.b].join(",")+")":($=B[Q-1],z=B[Q],Z=z.pct-$.pct,Y=(i-$.pct)/Z,tt=1-Y,nt=Y,W={r:Math.floor($.color.r*tt+z.color.r*nt),g:Math.floor($.color.g*tt+z.color.g*nt),b:Math.floor($.color.b*tt+z.color.b*nt)},"rgb("+[W.r,W.g,W.b].join(",")+")")}function Jt(r,i,l){(!bi||bi>9)&&r.node.firstChild.attributes.dy&&(r.node.firstChild.attributes.dy.value=0)}function mn(r){return r.charAt(0)==="#"?r.substring(1,7):r}function zr(r){return typeof r=="string"&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(r)}function De(r,i){const l=Math.pow(10,i),g=" KMGTPE";let _=0;const b=1e3;for(;(r>=b||r<=-b)&&++_<g.length;)r=r/b;return _=_>=g.length?g.length-1:_,Math.round(r*l)/l+g[_]}function je(r){const i=r.toString().split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function Br(r,i){let l="";return document.defaultView&&document.defaultView.getComputedStyle?l=document.defaultView.getComputedStyle(r,"").getPropertyValue(i):r.currentStyle&&(i=i.replace(/-(\w)/g,function(g,_){return _.toUpperCase()}),l=r.currentStyle[i]),l}function Or(r){document.createElementNS!==void 0?r():setTimeout(function(){Or(r)},100)}const bi=(function(){let r=3;const i=document.createElement("div"),l=i.getElementsByTagName("i");for(;l[0];)i.innerHTML="<!--[if gt IE "+ ++r+"]><i></i><![endif]-->";return r>4?r:void 0})();function Eo(r){r=r||{};for(let i=1;i<arguments.length;i++)if(arguments[i])for(const l in arguments[i])Object.prototype.hasOwnProperty.call(arguments[i],l)&&(r[l]=arguments[i][l]);return r}function Pr(r){return r!=null&&!isNaN(r)}function Co(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const i=Math.random()*16|0;return(r==="x"?i:i&3|8).toString(16)})}var Mo=ao('<div part="gauge" style="width:100%" id="gauge"></div>');const $o={hash:"svelte-1ozhsul",code:""};function Vr(r,i){Dn(i,!0),po(r,$o);let l=ce(void 0),g=ce(void 0),_=Ar(i,"id",7,""),b=Ar(i,"options");ar(()=>{b()&&typeof b()=="string"&&(b(JSON.parse(b())),Lt(l)&&Lt(g)&&w())});function w(){if(!Lt(l))return console.error("cannot recreateGauge gauge");Lt(g)&&Lt(g).destroy(),Kt(g,void 0),h()}function h(){if(!b()||!Lt(l))return console.error("cannot create gauge");if(Lt(g))console.error("cannot create html gauge");else{const Z=Object.assign({element:Lt(l)},b());Kt(g,new ko(Z),!0)}}Fr(()=>{Kt(l,i.$$host?.shadowRoot?.querySelector("#gauge"),!0),console.log("gaugeEl",Lt(l)),h()}),co(()=>{Lt(g)&&Lt(g).destroy(),Kt(g,void 0)});var f={get id(){return _()},set id(Z=""){_(Z),an()},get options(){return b()},set options(Z){b(Z),an()}},$=Mo(),z=Ps(()=>yo(w,200));return so("resize",fn,function(...Z){Lt(z)?.apply(this,Z)}),Mr(r,$),jn(f)}customElements.define("hb-gauge",xo(Vr,{id:{},options:{}},[],[],!0)),Mn.Component=Vr,Object.defineProperty(Mn,Symbol.toStringTag,{value:"Module"})})(this.gauge=this.gauge||{});
|
|
7
7
|
//# sourceMappingURL=main.iife.js.map
|