@htmlbricks/hb-area-code 0.66.0 → 0.66.2

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 CHANGED
@@ -1,3 +1,3 @@
1
- (function(ft){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ln=2,lt="[",ut="[!",ot="]",_e={},m=Symbol(),Ye=!1;var un=Array.isArray,on=Array.prototype.indexOf,an=Array.from,Ee=Object.keys,xe=Object.defineProperty,le=Object.getOwnPropertyDescriptor,cn=Object.prototype,hn=Array.prototype,dn=Object.getPrototypeOf,at=Object.isExtensible;function _n(e){for(var t=0;t<e.length;t++)e[t]()}function ct(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const y=2,Ve=4,He=8,B=16,te=32,G=64,Te=128,P=512,b=1024,R=2048,Y=4096,J=8192,V=16384,Ue=32768,ke=65536,ht=1<<17,dt=1<<18,ne=1<<19,vn=1<<20,re=32768,Ke=1<<21,ze=1<<22,X=1<<23,We=Symbol("$state"),pn=Symbol("legacy props"),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},_t=3,Se=8;function $n(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function gn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function yn(){throw new Error("https://svelte.dev/e/hydration_failed")}function wn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function mn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function bn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function En(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function xn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function Re(e){w=e}let $;function H(e){if(e===null)throw Ge(),_e;return $=e}function vt(){return H(Q($))}function Ae(e){if(w){if(Q($)!==null)throw Ge(),_e;$=e}}function Tn(e=1){if(w){for(var t=e,n=$;t--;)n=Q(n);$=n}}function kn(e=!0){for(var t=0,n=$;;){if(n.nodeType===Se){var r=n.data;if(r===ot){if(t===0)return n;t-=1}else(r===lt||r===ut)&&(t+=1)}var i=Q(n);e&&n.remove(),n=i}}function pt(e){return e===this.v}function Sn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Rn(e){return!Sn(e,this.v)}let An=!1,D=null;function oe(e){D=e}function $t(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,l:null}}function gt(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)Un(r)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function yt(){return!0}let se=[];function wt(){var e=se;se=[],_n(e)}function Je(e){if(se.length===0&&!ve){var t=se;queueMicrotask(()=>{t===se&&wt()})}se.push(e)}function Cn(){for(;se.length>0;)wt()}function mt(e){var t=v;if(t===null)return _.f|=X,e;if((t.f&Ue)===0){if((t.f&Te)===0)throw e;t.b.error(e)}else ae(e,t)}function ae(e,t){for(;t!==null;){if((t.f&Te)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Ce=new Set;let g=null,C=null,O=[],Oe=null,Xe=!1,ve=!1;class F{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#u=0;#i=0;#o=null;#f=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#i>0}process(t){O=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#n(r,n);this.is_fork||this.#a(),this.is_deferred()?(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects)):(g=null,Et(n.render_effects),Et(n.effects),this.#o?.resolve()),C=null}#n(t,n){t.f^=b;for(var r=t.first;r!==null;){var i=r.f,s=(i&(te|G))!==0,l=s&&(i&b)!==0,u=l||(i&J)!==0||this.skipped_effects.has(r);if((r.f&Te)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!u&&r.fn!==null){s?r.f^=b:(i&Ve)!==0?n.effects.push(r):me(r)&&((r.f&B)!==0&&n.block_effects.push(r),be(r));var f=r.first;if(f!==null){r=f;continue}}var o=r.parent;for(r=r.next;r===null&&o!==null;)o===n.effect&&(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects),n=n.parent),r=o.next,o=o.parent}}#r(t){for(const n of t)((n.f&R)!==0?this.#f:this.#s).push(n),this.#l(n.deps),x(n,b)}#l(t){if(t!==null)for(const n of t)(n.f&y)===0||(n.f&re)===0||(n.f^=re,this.#l(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&X)===0&&(this.current.set(t,t.v),C?.set(t,t.v))}activate(){g=this,this.apply()}deactivate(){g===this&&(g=null,C=null)}flush(){if(this.activate(),O.length>0){if(bt(),g!==null&&g!==this)return}else this.#u===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#a(){if(this.#i===0){for(const t of this.#t)t();this.#t.clear()}this.#u===0&&this.#c()}#c(){if(Ce.size>1){this.previous.clear();var t=C,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Ce){if(s===this){n=!1;continue}const l=[];for(const[f,o]of this.current){if(s.current.has(f))if(n&&o!==s.current.get(f))s.current.set(f,o);else continue;l.push(f)}if(l.length===0)continue;const u=[...s.current.keys()].filter(f=>!this.current.has(f));if(u.length>0){var i=O;O=[];const f=new Set,o=new Map;for(const c of l)xt(c,u,f,o);if(O.length>0){g=s,s.apply();for(const c of O)s.#n(c,r);s.deactivate()}O=i}}g=null,C=t}this.committed=!0,Ce.delete(this)}increment(t){this.#u+=1,t&&(this.#i+=1)}decrement(t){this.#u-=1,t&&(this.#i-=1),this.revive()}revive(){for(const t of this.#f)x(t,R),ce(t);for(const t of this.#s)x(t,Y),ce(t);this.#f=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=ct()).promise}static ensure(){if(g===null){const t=g=new F;Ce.add(g),ve||F.enqueue(()=>{g===t&&t.flush()})}return g}static enqueue(t){Je(t)}apply(){}}function Ze(e){var t=ve;ve=!0;try{for(var n;;){if(Cn(),O.length===0&&(g?.flush(),O.length===0))return Oe=null,n;bt()}}finally{ve=t}}function bt(){var e=ee;Xe=!0;var t=null;try{var n=0;for(Me(!0);O.length>0;){var r=F.ensure();if(n++>1e3){var i,s;On()}r.process(O),Z.clear()}}finally{Xe=!1,Me(e),Oe=null}}function On(){try{gn()}catch(e){ae(e,Oe)}}let U=null;function Et(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|J))===0&&me(r)&&(U=new Set,be(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?qt(r):r.fn=null),U?.size>0)){Z.clear();for(const i of U){if((i.f&(V|J))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)U.has(l)&&(U.delete(l),s.push(l)),l=l.parent;for(let u=s.length-1;u>=0;u--){const f=s[u];(f.f&(V|J))===0&&be(f)}}U.clear()}}U=null}}function xt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&y)!==0?xt(i,t,n,r):(s&(ze|B))!==0&&(s&R)===0&&Tt(i,t,r)&&(x(i,R),ce(i))}}function Tt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&y)!==0&&Tt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ce(e){for(var t=Oe=e;t.parent!==null;){t=t.parent;var n=t.f;if(Xe&&t===v&&(n&B)!==0&&(n&dt)===0)return;if((n&(G|te))!==0){if((n&b)===0)return;t.f^=b}}O.push(t)}function Nn(e){let t=0,n=pe(0),r;return()=>{Ie()&&(S(n),Lt(()=>(t===0&&(r=ir(()=>e(()=>$e(n)))),t+=1,()=>{Je(()=>{t-=1,t===0&&(r?.(),r=void 0,$e(n))})})))}}var Pn=ke|ne|Te;function Dn(e,t,n){new Fn(e,t,n)}class Fn{parent;#t=!1;#e;#u=w?$:null;#i;#o;#f;#s=null;#n=null;#r=null;#l=null;#a=null;#c=0;#h=0;#_=!1;#d=null;#y=Nn(()=>(this.#d=pe(this.#c),()=>{this.#d=null}));constructor(t,n,r){this.#e=t,this.#i=n,this.#o=r,this.parent=v.b,this.#t=!!this.#i.pending,this.#f=Xn(()=>{if(v.b=this,w){const s=this.#u;vt(),s.nodeType===Se&&s.data===ut?this.#m():this.#w()}else{var i=this.#$();try{this.#s=ie(()=>r(i))}catch(s){this.error(s)}this.#h>0?this.#p():this.#t=!1}return()=>{this.#a?.remove()}},Pn),w&&(this.#e=$)}#w(){try{this.#s=ie(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#m(){const t=this.#i.pending;t&&(this.#n=ie(()=>t(this.#e)),F.enqueue(()=>{var n=this.#$();this.#s=this.#v(()=>(F.ensure(),ie(()=>this.#o(n)))),this.#h>0?this.#p():(Le(this.#n,()=>{this.#n=null}),this.#t=!1)}))}#$(){var t=this.#e;return this.#t&&(this.#a=ye(),this.#e.before(this.#a),t=this.#a),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#v(t){var n=v,r=_,i=D;q(this.#f),k(this.#f),oe(this.#f.ctx);try{return t()}catch(s){return mt(s),null}finally{q(n),k(r),oe(i)}}#p(){const t=this.#i.pending;this.#s!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#a),tr(this.#s,this.#l)),this.#n===null&&(this.#n=ie(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#h+=t,this.#h===0&&(this.#t=!1,this.#n&&Le(this.#n,()=>{this.#n=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#d&&Pe(this.#d,this.#c)}get_effect_pending(){return this.#y(),S(this.#d)}error(t){var n=this.#i.onerror;let r=this.#i.failed;if(this.#_||!n&&!r)throw t;this.#s&&(L(this.#s),this.#s=null),this.#n&&(L(this.#n),this.#n=null),this.#r&&(L(this.#r),this.#r=null),w&&(H(this.#u),Tn(),H(kn()));var i=!1,s=!1;const l=()=>{if(i){xn();return}i=!0,s&&En(),F.ensure(),this.#c=0,this.#r!==null&&Le(this.#r,()=>{this.#r=null}),this.#t=this.has_pending_snippet(),this.#s=this.#v(()=>(this.#_=!1,ie(()=>this.#o(this.#e)))),this.#h>0?this.#p():this.#t=!1};var u=_;try{k(null),s=!0,n?.(t,l),s=!1}catch(f){ae(f,this.#f&&this.#f.parent)}finally{k(u)}r&&Je(()=>{this.#r=this.#v(()=>{F.ensure(),this.#_=!0;try{return ie(()=>{r(this.#e,()=>t,()=>l)})}catch(f){return ae(f,this.#f.parent),null}finally{this.#_=!1}})})}}function In(e,t,n,r){const i=kt;if(n.length===0&&e.length===0){r(t.map(i));return}var s=g,l=v,u=Ln();function f(){Promise.all(n.map(o=>Mn(o))).then(o=>{u();try{r([...t.map(i),...o])}catch(c){(l.f&V)===0&&ae(c,l)}s?.deactivate(),Ne()}).catch(o=>{ae(o,l)})}e.length>0?Promise.all(e).then(()=>{u();try{return f()}finally{s?.deactivate(),Ne()}}):f()}function Ln(){var e=v,t=_,n=D,r=g;return function(s=!0){q(e),k(t),oe(n),s&&r?.activate()}}function Ne(){q(null),k(null),oe(null)}function kt(e){var t=y|R,n=_!==null&&(_.f&y)!==0?_:null;return v!==null&&(v.f|=ne),{ctx:D,deps:null,effects:null,equals:pt,f:t,fn:e,reactions:null,rv:0,v:m,wv:0,parent:n??v,ac:null}}function Mn(e,t){let n=v;n===null&&$n();var r=n.b,i=void 0,s=pe(m),l=!_,u=new Map;return Gn(()=>{var f=ct();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{o===g&&o.committed&&o.deactivate(),Ne()})}catch(a){f.reject(a),Ne()}var o=g;if(l){var c=!r.is_pending();r.update_pending_count(1),o.increment(c),u.get(o)?.reject(ue),u.delete(o),u.set(o,f)}const d=(a,h=void 0)=>{if(o.activate(),h)h!==ue&&(s.f|=X,Pe(s,h));else{(s.f&X)!==0&&(s.f^=X),Pe(s,a);for(const[p,T]of u){if(u.delete(p),p===o)break;T.reject(ue)}}l&&(r.update_pending_count(-1),o.decrement(c))};f.promise.then(d,a=>d(null,a||"unknown"))}),Hn(()=>{for(const f of u.values())f.reject(ue)}),new Promise(f=>{function o(c){function d(){c===i?f(s):o(i)}c.then(d,d)}o(i)})}function St(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)L(t[n])}}function jn(e){for(var t=e.parent;t!==null;){if((t.f&y)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function Qe(e){var t,n=v;q(jn(e));try{e.f&=~re,St(e),t=zt(e)}finally{q(n)}return t}function Rt(e){var t=Qe(e);if(e.equals(t)||(g?.is_fork||(e.v=t),e.wv=Ut()),!he)if(C!==null)Ie()&&C.set(e,t);else{var n=(e.f&P)===0?Y:b;x(e,n)}}let et=new Set;const Z=new Map;let At=!1;function pe(e,t){var n={f:0,v:e,reactions:null,equals:pt,rv:0,wv:0};return n}function K(e,t){const n=pe(e);return nr(n),n}function qn(e,t=!1,n=!0){const r=pe(e);return t||(r.equals=Rn),r}function I(e,t,n=!1){_!==null&&(!j||(_.f&ht)!==0)&&yt()&&(_.f&(y|B|ze|ht))!==0&&!z?.includes(e)&&bn();let r=n?ge(t):t;return Pe(e,r)}function Pe(e,t){if(!e.equals(t)){var n=e.v;he?Z.set(e,t):Z.set(e,n),e.v=t;var r=F.ensure();r.capture(e,n),(e.f&y)!==0&&((e.f&R)!==0&&Qe(e),x(e,(e.f&P)!==0?b:Y)),e.wv=Ut(),Ct(e,R),v!==null&&(v.f&b)!==0&&(v.f&(te|G))===0&&(N===null?rr([e]):N.push(e)),!r.is_fork&&et.size>0&&!At&&Bn()}return t}function Bn(){At=!1;var e=ee;Me(!0);const t=Array.from(et);try{for(const n of t)(n.f&b)!==0&&x(n,Y),me(n)&&be(n)}finally{Me(e)}et.clear()}function $e(e){I(e,e.v+1)}function Ct(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],l=s.f,u=(l&R)===0;if(u&&x(s,t),(l&y)!==0){var f=s;C?.delete(f),(l&re)===0&&(l&P&&(s.f|=re),Ct(f,Y))}else u&&((l&B)!==0&&U!==null&&U.add(s),ce(s))}}function ge(e){if(typeof e!="object"||e===null||We in e)return e;const t=dn(e);if(t!==cn&&t!==hn)return e;var n=new Map,r=un(e),i=K(0),s=fe,l=u=>{if(fe===s)return u();var f=_,o=fe;k(null),Ht(s);var c=u();return k(f),Ht(o),c};return r&&n.set("length",K(e.length)),new Proxy(e,{defineProperty(u,f,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&wn();var c=n.get(f);return c===void 0?c=l(()=>{var d=K(o.value);return n.set(f,d),d}):I(c,o.value,!0),!0},deleteProperty(u,f){var o=n.get(f);if(o===void 0){if(f in u){const c=l(()=>K(m));n.set(f,c),$e(i)}}else I(o,m),$e(i);return!0},get(u,f,o){if(f===We)return e;var c=n.get(f),d=f in u;if(c===void 0&&(!d||le(u,f)?.writable)&&(c=l(()=>{var h=ge(d?u[f]:m),p=K(h);return p}),n.set(f,c)),c!==void 0){var a=S(c);return a===m?void 0:a}return Reflect.get(u,f,o)},getOwnPropertyDescriptor(u,f){var o=Reflect.getOwnPropertyDescriptor(u,f);if(o&&"value"in o){var c=n.get(f);c&&(o.value=S(c))}else if(o===void 0){var d=n.get(f),a=d?.v;if(d!==void 0&&a!==m)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return o},has(u,f){if(f===We)return!0;var o=n.get(f),c=o!==void 0&&o.v!==m||Reflect.has(u,f);if(o!==void 0||v!==null&&(!c||le(u,f)?.writable)){o===void 0&&(o=l(()=>{var a=c?ge(u[f]):m,h=K(a);return h}),n.set(f,o));var d=S(o);if(d===m)return!1}return c},set(u,f,o,c){var d=n.get(f),a=f in u;if(r&&f==="length")for(var h=o;h<d.v;h+=1){var p=n.get(h+"");p!==void 0?I(p,m):h in u&&(p=l(()=>K(m)),n.set(h+"",p))}if(d===void 0)(!a||le(u,f)?.writable)&&(d=l(()=>K(void 0)),I(d,ge(o)),n.set(f,d));else{a=d.v!==m;var T=l(()=>ge(o));I(d,T)}var W=Reflect.getOwnPropertyDescriptor(u,f);if(W?.set&&W.set.call(c,o),!a){if(r&&typeof f=="string"){var fn=n.get("length"),it=Number(f);Number.isInteger(it)&&it>=fn.v&&I(fn,it+1)}$e(i)}return!0},ownKeys(u){S(i);var f=Reflect.ownKeys(u).filter(d=>{var a=n.get(d);return a===void 0||a.v!==m});for(var[o,c]of n)c.v!==m&&!(o in u)&&f.push(o);return f},setPrototypeOf(){mn()}})}var Ot,Nt,Pt,Dt;function tt(){if(Ot===void 0){Ot=window,Nt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Pt=le(t,"firstChild").get,Dt=le(t,"nextSibling").get,at(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),at(n)&&(n.__t=void 0)}}function ye(e=""){return document.createTextNode(e)}function De(e){return Pt.call(e)}function Q(e){return Dt.call(e)}function Fe(e,t){if(!w)return De(e);var n=De($);if(n===null)n=$.appendChild(ye());else if(t&&n.nodeType!==_t){var r=ye();return n?.before(r),H(r),r}return H(n),n}function Ft(e,t=1,n=!1){let r=w?$:e;for(var i;t--;)i=r,r=Q(r);if(!w)return r;if(n&&r?.nodeType!==_t){var s=ye();return r===null?i?.after(s):r.before(s),H(s),s}return H(r),r}function Yn(e){e.textContent=""}function It(e){var t=_,n=v;k(null),q(null);try{return e()}finally{k(t),q(n)}}function Vn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function M(e,t,n){var r=v;r!==null&&(r.f&J)!==0&&(e|=J);var i={ctx:D,deps:null,nodes_start:null,nodes_end:null,f:e|R|P,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{be(i),i.f|=Ue}catch(u){throw L(i),u}else t!==null&&ce(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&ne)===0&&(s=s.first,(e&B)!==0&&(e&ke)!==0&&s!==null&&(s.f|=ke)),s!==null&&(s.parent=r,r!==null&&Vn(s,r),_!==null&&(_.f&y)!==0&&(e&G)===0)){var l=_;(l.effects??=[]).push(s)}return i}function Ie(){return _!==null&&!j}function Hn(e){const t=M(He,null,!1);return x(t,b),t.teardown=e,t}function Un(e){return M(Ve|vn,e,!1)}function Kn(e){F.ensure();const t=M(G|ne,e,!0);return()=>{L(t)}}function zn(e){F.ensure();const t=M(G|ne,e,!0);return(n={})=>new Promise(r=>{n.outro?Le(t,()=>{L(t),r(void 0)}):(L(t),r(void 0))})}function Wn(e){return M(Ve,e,!1)}function Gn(e){return M(ze|ne,e,!0)}function Lt(e,t=0){return M(He|t,e,!0)}function Jn(e,t=[],n=[],r=[]){In(r,t,n,i=>{M(He,()=>e(...i.map(S)),!0)})}function Xn(e,t=0){var n=M(B|t,e,!0);return n}function ie(e){return M(te|ne,e,!0)}function Mt(e){var t=e.teardown;if(t!==null){const n=he,r=_;Yt(!0),k(null);try{t.call(null)}finally{Yt(n),k(r)}}}function jt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&It(()=>{i.abort(ue)});var r=n.next;(n.f&G)!==0?n.parent=null:L(n,t),n=r}}function Zn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&te)===0&&L(t),t=n}}function L(e,t=!0){var n=!1;(t||(e.f&dt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Qn(e.nodes_start,e.nodes_end),n=!0),jt(e,t&&!n),je(e,0),x(e,V);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Mt(e);var i=e.parent;i!==null&&i.first!==null&&qt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Qn(e,t){for(;e!==null;){var n=e===t?null:Q(e);e.remove(),e=n}}function qt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Le(e,t,n=!0){var r=[];Bt(e,r,!0),er(r,()=>{n&&L(e),t&&t()})}function er(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Bt(e,t,n){if((e.f&J)===0){if(e.f^=J,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&ke)!==0||(r.f&te)!==0&&(e.f&B)!==0;Bt(r,t,s?n:!1),r=i}}}function tr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:Q(n);t.append(n),n=i}}let ee=!1;function Me(e){ee=e}let he=!1;function Yt(e){he=e}let _=null,j=!1;function k(e){_=e}let v=null;function q(e){v=e}let z=null;function nr(e){_!==null&&(z===null?z=[e]:z.push(e))}let E=null,A=0,N=null;function rr(e){N=e}let Vt=1,we=0,fe=we;function Ht(e){fe=e}function Ut(){return++Vt}function me(e){var t=e.f;if((t&R)!==0)return!0;if(t&y&&(e.f&=~re),(t&Y)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(me(s)&&Rt(s),s.wv>e.wv)return!0}(t&P)!==0&&C===null&&x(e,b)}return!1}function Kt(e,t,n=!0){var r=e.reactions;if(r!==null&&!z?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&y)!==0?Kt(s,t,!1):t===s&&(n?x(s,R):(s.f&b)!==0&&x(s,Y),ce(s))}}function zt(e){var t=E,n=A,r=N,i=_,s=z,l=D,u=j,f=fe,o=e.f;E=null,A=0,N=null,_=(o&(te|G))===0?e:null,z=null,oe(e.ctx),j=!1,fe=++we,e.ac!==null&&(It(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=Ke;var c=e.fn,d=c(),a=e.deps;if(E!==null){var h;if(je(e,A),a!==null&&A>0)for(a.length=A+E.length,h=0;h<E.length;h++)a[A+h]=E[h];else e.deps=a=E;if(ee&&Ie()&&(e.f&P)!==0)for(h=A;h<a.length;h++)(a[h].reactions??=[]).push(e)}else a!==null&&A<a.length&&(je(e,A),a.length=A);if(yt()&&N!==null&&!j&&a!==null&&(e.f&(y|Y|R))===0)for(h=0;h<N.length;h++)Kt(N[h],e);return i!==null&&i!==e&&(we++,N!==null&&(r===null?r=N:r.push(...N))),(e.f&X)!==0&&(e.f^=X),d}catch(p){return mt(p)}finally{e.f^=Ke,E=t,A=n,N=r,_=i,z=s,oe(l),j=u,fe=f}}function sr(e,t){let n=t.reactions;if(n!==null){var r=on.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&y)!==0&&(E===null||!E.includes(t))&&(x(t,Y),(t.f&P)!==0&&(t.f^=P,t.f&=~re),St(t),je(t,0))}function je(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)sr(e,n[r])}function be(e){var t=e.f;if((t&V)===0){x(e,b);var n=v,r=ee;v=e,ee=!0;try{(t&B)!==0?Zn(e):jt(e),Mt(e);var i=zt(e);e.teardown=typeof i=="function"?i:null,e.wv=Vt;var s;Ye&&An&&(e.f&R)!==0&&e.deps}finally{ee=r,v=n}}}function S(e){var t=e.f,n=(t&y)!==0;if(_!==null&&!j){var r=v!==null&&(v.f&V)!==0;if(!r&&!z?.includes(e)){var i=_.deps;if((_.f&Ke)!==0)e.rv<we&&(e.rv=we,E===null&&i!==null&&i[A]===e?A++:E===null?E=[e]:E.includes(e)||E.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if(he){if(Z.has(e))return Z.get(e);if(n){var l=e,u=l.v;return((l.f&b)===0&&l.reactions!==null||Gt(l))&&(u=Qe(l)),Z.set(l,u),u}}else n&&!C?.has(e)&&(l=e,me(l)&&Rt(l),ee&&Ie()&&(l.f&P)===0&&Wt(l));if(C?.has(e))return C.get(e);if((e.f&X)!==0)throw e.v;return e.v}function Wt(e){if(e.deps!==null){e.f^=P;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&y)!==0&&(t.f&P)===0&&Wt(t)}}function Gt(e){if(e.v===m)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Z.has(t)||(t.f&y)!==0&&Gt(t))return!0;return!1}function ir(e){var t=j;try{return j=!0,e()}finally{j=t}}const fr=-7169;function x(e,t){e.f=e.f&fr|t}const Jt=new Set,nt=new Set;function lr(e){for(var t=0;t<e.length;t++)Jt.add(e[t]);for(var n of nt)n(e)}let Xt=null;function qe(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Xt=e;var l=0,u=Xt===e&&e.__root;if(u){var f=i.indexOf(u);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var o=i.indexOf(t);if(o===-1)return;f<=o&&(l=f)}if(s=i[l]||e.target,s!==t){xe(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=_,d=v;k(null),q(null);try{for(var a,h=[];s!==null;){var p=s.assignedSlot||s.parentNode||s.host||null;try{var T=s["__"+r];T!=null&&(!s.disabled||e.target===s)&&T.call(s,e)}catch(W){a?h.push(W):a=W}if(e.cancelBubble||p===t||p===null)break;s=p}if(a){for(let W of h)queueMicrotask(()=>{throw W});throw a}}finally{e.__root=t,delete e.currentTarget,k(c),q(d)}}}function ur(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function rt(e,t){var n=v;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function or(e,t){var n=(t&ln)!==0,r,i=!e.startsWith("<!>");return()=>{if(w)return rt($,null),$;r===void 0&&(r=ur(i?e:"<!>"+e),r=De(r));var s=n||Nt?document.importNode(r,!0):r.cloneNode(!0);return rt(s,s),s}}function Zt(e,t){if(w){var n=v;((n.f&Ue)===0||n.nodes_end===null)&&(n.nodes_end=$),vt();return}e!==null&&e.before(t)}const ar=["touchstart","touchmove"];function cr(e){return ar.includes(e)}function Qt(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function en(e,t){return tn(e,t)}function hr(e,t){tt(),t.intro=t.intro??!1;const n=t.target,r=w,i=$;try{for(var s=De(n);s&&(s.nodeType!==Se||s.data!==lt);)s=Q(s);if(!s)throw _e;Re(!0),H(s);const l=tn(e,{...t,anchor:s});return Re(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(u=>u.startsWith("https://svelte.dev/e/")))throw l;return l!==_e&&console.warn("Failed to hydrate: ",l),t.recover===!1&&yn(),tt(),Yn(n),Re(!1),en(e,t)}finally{Re(r),H(i)}}const de=new Map;function tn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0}){tt();var u=new Set,f=d=>{for(var a=0;a<d.length;a++){var h=d[a];if(!u.has(h)){u.add(h);var p=cr(h);t.addEventListener(h,qe,{passive:p});var T=de.get(h);T===void 0?(document.addEventListener(h,qe,{passive:p}),de.set(h,1)):de.set(h,T+1)}}};f(an(Jt)),nt.add(f);var o=void 0,c=zn(()=>{var d=n??t.appendChild(ye());return Dn(d,{pending:()=>{}},a=>{if(s){$t({});var h=D;h.c=s}if(i&&(r.$$events=i),w&&rt(a,null),o=e(a,r)||{},w&&(v.nodes_end=$,$===null||$.nodeType!==Se||$.data!==ot))throw Ge(),_e;s&&gt()}),()=>{for(var a of u){t.removeEventListener(a,qe);var h=de.get(a);--h===0?(document.removeEventListener(a,qe),de.delete(a)):de.set(a,h)}nt.delete(f),d!==n&&d.parentNode?.removeChild(d)}});return st.set(o,c),o}let st=new WeakMap;function dr(e,t){const n=st.get(e);return n?(st.delete(e),n(t)):Promise.resolve()}function _r(e,t){Wn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function vr(e,t){return e==null?null:String(e)}function pr(e,t,n,r){var i=e.__style;if(w||i!==t){var s=vr(t);(!w||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}function nn(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),u;u=e[t],u===void 0&&r!==void 0&&(u=l());var f;f=()=>{var a=e[t];return a===void 0?l():(s=!0,a)};var o=!1,c=kt(()=>(o=!1,f())),d=v;return(function(a,h){if(arguments.length>0){const p=h?S(c):a;return I(c,p),o=!0,i!==void 0&&(i=p),a}return he&&o||(d.f&V)!==0?c.v:S(c)})}function $r(e){return new gr(e)}class gr{#t;#e;constructor(t){var n=new Map,r=(s,l)=>{var u=qn(l,!1,!1);return n.set(s,u),u};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return S(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===pn?!0:(S(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,u){return I(n.get(l)??r(l,u),u),Reflect.set(s,l,u)}});this.#e=(t.hydrate?hr:en)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ze(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||xe(this,s,{get(){return this.#e[s]},set(l){this.#e[s]=l},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{dr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let rn;typeof HTMLElement=="function"&&(rn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Zt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=yr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Be(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=$r({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Kn(()=>{Lt(()=>{this.$$r=!0;for(const r of Ee(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Be(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Be(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ee(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Be(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function yr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function wr(e,t,n,r,i,s){let l=class extends rn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ee(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Ee(t).forEach(u=>{xe(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(f){f=Be(u,f,t),this.$$d[u]=f;var o=this.$$c;if(o){var c=le(o,u)?.get;c?o[u]=f:o.$set({[u]:f})}}})}),r.forEach(u=>{xe(l.prototype,u,{get(){return this.$$c?.[u]}})}),e.element=l,l}var mr=or('<div id="content" part="content" class="svelte-d9fq57"><div id="copycode" class="svelte-d9fq57"><div id="flash">copied to the clipboard</div> <button id="copybutton" class="svelte-d9fq57"> </button></div> <code part="content" style="overflow-wrap: break-word;"> </code></div>');const br={hash:"svelte-d9fq57",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;--hb-area-code-background: rgb(232 232 232 / 57%);}#content.svelte-d9fq57 {background-color:var(--hb-area-code-background);padding:28px 12px 28px 12px;position:relative;}#copycode.svelte-d9fq57 {position:absolute;right:6px;top:6px;font-size:0.6em;}#copybutton.svelte-d9fq57 {cursor:pointer;}'};function sn(e,t){$t(t,!0),_r(e,br);let n=nn(t,"id",7,""),r=nn(t,"content",7,"");function i(T,W){t.$$host.dispatchEvent(new CustomEvent(T,{detail:W}))}let s=K(!1);function l(){S(s)||(navigator.clipboard.writeText(r()),I(s,!0),i("clipboardCopyText",{text:r()}),setInterval(()=>{I(s,!1)},5e3))}var u={get id(){return n()},set id(T=""){n(T),Ze()},get content(){return r()},set content(T=""){r(T),Ze()}},f=mr(),o=Fe(f),c=Fe(o),d=Ft(c,2);d.__click=l;var a=Fe(d,!0);Ae(d),Ae(o);var h=Ft(o,2),p=Fe(h,!0);return Ae(h),Ae(f),Jn(()=>{pr(c,`display:${S(s)?"inline-block":"none"}`),Qt(a,S(s)?"ok!":"copy"),Qt(p,r())}),Zt(e,f),gt(u)}lr(["click"]),customElements.define("hb-area-code",wr(sn,{id:{},content:{}},[],[],!0)),ft.Component=sn,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})})(this["area-code"]=this["area-code"]||{});
1
+ (function(ht){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const yn=2,dt="[",_t="[!",vt="[?",pt="]",we={},T=Symbol(),wn="http://www.w3.org/1999/xhtml",bn=!1;var mn=Array.isArray,En=Array.prototype.indexOf,he=Array.prototype.includes,Tn=Array.from,Ae=Object.keys,Ne=Object.defineProperty,de=Object.getOwnPropertyDescriptor,xn=Object.prototype,Sn=Array.prototype,kn=Object.getPrototypeOf,gt=Object.isExtensible;const Rn=()=>{};function An(e){for(var t=0;t<e.length;t++)e[t]()}function $t(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const b=2,_e=4,Oe=8,yt=1<<24,K=16,W=32,J=64,Be=128,N=512,m=1024,S=2048,V=4096,X=8192,D=16384,se=32768,wt=1<<25,Ce=65536,bt=1<<17,Nn=1<<18,ie=1<<19,On=1<<20,le=65536,ze=1<<21,Ue=1<<22,Z=1<<23,Ge=Symbol("$state"),Cn=Symbol("legacy props"),B=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ke=3,We=8;function Pn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Dn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Mn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Fn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function In(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ln(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function jn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Je(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function qn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let x=!1;function Pe(e){x=e}let y;function z(e){if(e===null)throw Je(),we;return y=e}function mt(){return z(re(y))}function De(e){if(x){if(re(y)!==null)throw Je(),we;y=e}}function Vn(e=1){if(x){for(var t=e,n=y;t--;)n=re(n);y=n}}function Yn(e=!0){for(var t=0,n=y;;){if(n.nodeType===We){var r=n.data;if(r===pt){if(t===0)return n;t-=1}else(r===dt||r===_t||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=re(n);e&&n.remove(),n=s}}function Et(e){return e===this.v}function Hn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Bn(e){return!Hn(e,this.v)}let zn=!1,M=null;function ve(e){M=e}function Tt(e,t=!1,n){M={p:M,i:!1,c:null,e:null,s:e,x:null,r:p,l:null}}function xt(e){var t=M,n=t.e;if(n!==null){t.e=null;for(var r of n)cr(r)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function St(){return!0}let fe=[];function kt(){var e=fe;fe=[],An(e)}function pe(e){if(fe.length===0&&!be){var t=fe;queueMicrotask(()=>{t===fe&&kt()})}fe.push(e)}function Un(){for(;fe.length>0;)kt()}function Rt(e){var t=p;if(t===null)return v.f|=Z,e;if((t.f&se)===0&&(t.f&_e)===0)throw e;Q(e,t)}function Q(e,t){for(;t!==null;){if((t.f&Be)!==0){if((t.f&se)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Gn=-7169;function w(e,t){e.f=e.f&Gn|t}function Xe(e){(e.f&N)!==0||e.deps===null?w(e,m):w(e,V)}function At(e){if(e!==null)for(const t of e)(t.f&b)===0||(t.f&le)===0||(t.f^=le,At(t.deps))}function Nt(e,t,n){(e.f&S)!==0?t.add(e):(e.f&V)!==0&&n.add(e),At(e.deps),w(e,m)}const ee=new Set;let $=null,F=null,Ze=null,be=!1,Qe=!1,ge=null,Me=null;var Ot=0;let Kn=1;class te{id=Kn++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#i=new Map;#o=new Map;#l=null;#t=[];#r=new Set;#s=new Set;#f=new Map;is_fork=!1;#c=!1;#u=new Set;#h(){return this.is_fork||this.#o.size>0}#_(){for(const r of this.#u)for(const s of r.#o.keys()){for(var t=!1,n=s;n.parent!==null;){if(this.#f.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#f.has(t)||this.#f.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#f.get(t);if(n){this.#f.delete(t);for(var r of n.d)w(r,S),this.schedule(r);for(r of n.m)w(r,V),this.schedule(r)}}#d(){if(Ot++>1e3&&(ee.delete(this),Wn()),!this.#h()){for(const l of this.#r)this.#s.delete(l),w(l,S),this.schedule(l);for(const l of this.#s)w(l,V),this.schedule(l)}const t=this.#t;this.#t=[],this.apply();var n=ge=[],r=[],s=Me=[];for(const l of t)try{this.#a(l,n,r)}catch(u){throw Ft(l),u}if($=null,s.length>0){var i=te.ensure();for(const l of s)i.schedule(l)}if(ge=null,Me=null,this.#h()||this.#_()){this.#v(r),this.#v(n);for(const[l,u]of this.#f)Mt(l,u)}else{this.#i.size===0&&ee.delete(this),this.#r.clear(),this.#s.clear();for(const l of this.#e)l(this);this.#e.clear(),Ct(r),Ct(n),this.#l?.resolve()}var o=$;if(this.#t.length>0){const l=o??=this;l.#t.push(...this.#t.filter(u=>!l.#t.includes(u)))}o!==null&&(ee.add(o),o.#d()),ee.has(this)||this.#p()}#a(t,n,r){t.f^=m;for(var s=t.first;s!==null;){var i=s.f,o=(i&(W|J))!==0,l=o&&(i&m)!==0,u=l||(i&X)!==0||this.#f.has(s);if(!u&&s.fn!==null){o?s.f^=m:(i&_e)!==0?n.push(s):Se(s)&&((i&K)!==0&&this.#s.add(s),$e(s));var f=s.first;if(f!==null){s=f;continue}}for(;s!==null;){var a=s.next;if(a!==null){s=a;break}s=s.parent}}}#v(t){for(var n=0;n<t.length;n+=1)Nt(t[n],this.#r,this.#s)}capture(t,n,r=!1){n!==T&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Z)===0&&(this.current.set(t,[t.v,r]),F?.set(t,t.v))}activate(){$=this}deactivate(){$=null,F=null}flush(){try{Qe=!0,$=this,this.#d()}finally{Ot=0,Ze=null,ge=null,Me=null,Qe=!1,$=null,F=null,ne.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ee.delete(this)}#p(){for(const f of ee){var t=f.id<this.id,n=[];for(const[a,[h,c]]of this.current){if(f.current.has(a)){var r=f.current.get(a)[0];if(t&&h!==r)f.current.set(a,[h,c]);else continue}n.push(a)}var s=[...f.current.keys()].filter(a=>!this.current.has(a));if(s.length===0)t&&f.discard();else if(n.length>0){f.activate();var i=new Set,o=new Map;for(var l of n)Pt(l,s,i,o);if(f.#t.length>0){f.apply();for(var u of f.#t)f.#a(u,[],[]);f.#t=[]}f.deactivate()}}for(const f of ee)f.#u.has(this)&&(f.#u.delete(this),f.#u.size===0&&!f.#h()&&(f.activate(),f.#d()))}increment(t,n){let r=this.#i.get(n)??0;if(this.#i.set(n,r+1),t){let s=this.#o.get(n)??0;this.#o.set(n,s+1)}}decrement(t,n,r){let s=this.#i.get(n)??0;if(s===1?this.#i.delete(n):this.#i.set(n,s-1),t){let i=this.#o.get(n)??0;i===1?this.#o.delete(n):this.#o.set(n,i-1)}this.#c||r||(this.#c=!0,pe(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#r.add(r);for(const r of n)this.#s.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#l??=$t()).promise}static ensure(){if($===null){const t=$=new te;Qe||(ee.add($),be||pe(()=>{$===t&&t.flush()}))}return $}apply(){{F=null;return}}schedule(t){if(Ze=t,t.b?.is_pending&&(t.f&(_e|Oe|yt))!==0&&(t.f&se)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(ge!==null&&n===p&&(v===null||(v.f&b)===0))return;if((r&(J|W))!==0){if((r&m)===0)return;n.f^=m}}this.#t.push(n)}}function et(e){var t=be;be=!0;try{for(var n;;){if(Un(),$===null)return n;$.flush()}}finally{be=t}}function Wn(){try{Dn()}catch(e){Q(e,Ze)}}let U=null;function Ct(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(D|X))===0&&Se(r)&&(U=new Set,$e(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Zt(r),U?.size>0)){ne.clear();for(const s of U){if((s.f&(D|X))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)U.has(o)&&(U.delete(o),i.push(o)),o=o.parent;for(let l=i.length-1;l>=0;l--){const u=i[l];(u.f&(D|X))===0&&$e(u)}}U.clear()}}U=null}}function Pt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&b)!==0?Pt(s,t,n,r):(i&(Ue|K))!==0&&(i&S)===0&&Dt(s,t,r)&&(w(s,S),tt(s))}}function Dt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(he.call(t,s))return!0;if((s.f&b)!==0&&Dt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function tt(e){$.schedule(e)}function Mt(e,t){if(!((e.f&W)!==0&&(e.f&m)!==0)){(e.f&S)!==0?t.d.push(e):(e.f&V)!==0&&t.m.push(e),w(e,m);for(var n=e.first;n!==null;)Mt(n,t),n=n.next}}function Ft(e){w(e,m);for(var t=e.first;t!==null;)Ft(t),t=t.next}function Jn(e){let t=0,n=me(0),r;return()=>{lt()&&(R(n),Jt(()=>(t===0&&(r=Tr(()=>e(()=>Ee(n)))),t+=1,()=>{pe(()=>{t-=1,t===0&&(r?.(),r=void 0,Ee(n))})})))}}var Xn=Ce|ie;function Zn(e,t,n,r){new Qn(e,t,n,r)}class Qn{parent;is_pending=!1;transform_error;#e;#n=x?y:null;#i;#o;#l;#t=null;#r=null;#s=null;#f=null;#c=0;#u=0;#h=!1;#_=new Set;#d=new Set;#a=null;#v=Jn(()=>(this.#a=me(this.#c),()=>{this.#a=null}));constructor(t,n,r,s){this.#e=t,this.#i=n,this.#o=i=>{var o=p;o.b=this,o.f|=Be,r(i)},this.parent=p.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#l=gr(()=>{if(x){const i=this.#n;mt();const o=i.data===_t;if(i.data.startsWith(vt)){const u=JSON.parse(i.data.slice(vt.length));this.#b(u)}else o?this.#m():this.#p()}else this.#y()},Xn),x&&(this.#e=y)}#p(){try{this.#t=oe(()=>this.#o(this.#e))}catch(t){this.error(t)}}#b(t){const n=this.#i.failed;n&&(this.#s=oe(()=>{n(this.#e,()=>t,()=>()=>{})}))}#m(){const t=this.#i.pending;t&&(this.is_pending=!0,this.#r=oe(()=>t(this.#e)),pe(()=>{var n=this.#f=document.createDocumentFragment(),r=xe();n.append(r),this.#t=this.#$(()=>oe(()=>this.#o(r))),this.#u===0&&(this.#e.before(n),this.#f=null,qe(this.#r,()=>{this.#r=null}),this.#g($))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#t=oe(()=>{this.#o(this.#e)}),this.#u>0){var t=this.#f=document.createDocumentFragment();wr(this.#t,t);const n=this.#i.pending;this.#r=oe(()=>n(this.#e))}else this.#g($)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#_,this.#d)}defer_effect(t){Nt(t,this.#_,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#$(t){var n=p,r=v,s=M;H(this.#l),O(this.#l),ve(this.#l.ctx);try{return te.ensure(),t()}catch(i){return Rt(i),null}finally{H(n),O(r),ve(s)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#u+=t,this.#u===0&&(this.#g(n),this.#r&&qe(this.#r,()=>{this.#r=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#a||this.#h)&&(this.#h=!0,pe(()=>{this.#h=!1,this.#a&&Ie(this.#a,this.#c)}))}get_effect_pending(){return this.#v(),R(this.#a)}error(t){var n=this.#i.onerror;let r=this.#i.failed;if(!n&&!r)throw t;this.#t&&(L(this.#t),this.#t=null),this.#r&&(L(this.#r),this.#r=null),this.#s&&(L(this.#s),this.#s=null),x&&(z(this.#n),Vn(),z(Yn()));var s=!1,i=!1;const o=()=>{if(s){qn();return}s=!0,i&&jn(),this.#s!==null&&qe(this.#s,()=>{this.#s=null}),this.#$(()=>{this.#y()})},l=u=>{try{i=!0,n?.(u,o),i=!1}catch(f){Q(f,this.#l&&this.#l.parent)}r&&(this.#s=this.#$(()=>{try{return oe(()=>{var f=p;f.b=this,f.f|=Be,r(this.#e,()=>u,()=>o)})}catch(f){return Q(f,this.#l.parent),null}}))};pe(()=>{var u;try{u=this.transform_error(t)}catch(f){Q(f,this.#l&&this.#l.parent);return}u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(l,f=>Q(f,this.#l&&this.#l.parent)):l(u)})}}function er(e,t,n,r){const s=Lt;var i=e.filter(c=>!c.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var o=p,l=tr(),u=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(c=>c.promise)):null;function f(c){l();try{r(c)}catch(_){(o.f&D)===0&&Q(_,o)}Fe()}if(n.length===0){u.then(()=>f(t.map(s)));return}var a=It();function h(){Promise.all(n.map(c=>nr(c))).then(c=>f([...t.map(s),...c])).catch(c=>Q(c,o)).finally(()=>a())}u?u.then(()=>{l(),h(),Fe()}):h()}function tr(){var e=p,t=v,n=M,r=$;return function(i=!0){H(e),O(t),ve(n),i&&(e.f&D)===0&&(r?.activate(),r?.apply())}}function Fe(e=!0){H(null),O(null),ve(null),e&&$?.deactivate()}function It(){var e=p,t=e.b,n=$,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(s=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,s)}}function Lt(e){var t=b|S,n=v!==null&&(v.f&b)!==0?v:null;return p!==null&&(p.f|=ie),{ctx:M,deps:null,effects:null,equals:Et,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??p,ac:null}}function nr(e,t,n){let r=p;r===null&&Pn();var s=void 0,i=me(T),o=!v,l=new Map;return vr(()=>{var u=p,f=$t();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Fe)}catch(_){f.reject(_),Fe()}var a=$;if(o){if((u.f&se)!==0)var h=It();if(r.b.is_rendered())l.get(a)?.reject(B),l.delete(a);else{for(const _ of l.values())_.reject(B);l.clear()}l.set(a,f)}const c=(_,d=void 0)=>{if(h){var g=d===B;h(g)}if(!(d===B||(u.f&D)!==0)){if(a.activate(),d)i.f|=Z,Ie(i,d);else{(i.f&Z)!==0&&(i.f^=Z),Ie(i,_);for(const[E,q]of l){if(l.delete(E),E===a)break;q.reject(B)}}a.deactivate()}};f.promise.then(c,_=>c(null,_||"unknown"))}),ar(()=>{for(const u of l.values())u.reject(B)}),new Promise(u=>{function f(a){function h(){a===s?u(i):f(s)}a.then(h,h)}f(s)})}function rr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)L(t[n])}}function sr(e){for(var t=e.parent;t!==null;){if((t.f&b)===0)return(t.f&D)===0?t:null;t=t.parent}return null}function nt(e){var t,n=p;H(sr(e));try{e.f&=~le,rr(e),t=ln(e)}finally{H(n)}return t}function jt(e){var t=e.v,n=nt(e);if(!e.equals(n)&&(e.wv=rn(),(!$?.is_fork||e.deps===null)&&(e.v=n,$?.capture(e,t,!0),e.deps===null))){w(e,m);return}ue||(F!==null?(lt()||$?.is_fork)&&F.set(e,n):Xe(e))}function ir(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(B),t.teardown=Rn,t.ac=null,ke(t,0),ft(t))}function qt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&$e(t)}let rt=new Set;const ne=new Map;let Vt=!1;function me(e,t){var n={f:0,v:e,reactions:null,equals:Et,rv:0,wv:0};return n}function G(e,t){const n=me(e);return br(n),n}function lr(e,t=!1,n=!0){const r=me(e);return t||(r.equals=Bn),r}function I(e,t,n=!1){v!==null&&(!j||(v.f&bt)!==0)&&St()&&(v.f&(b|K|Ue|bt))!==0&&(C===null||!he.call(C,e))&&Ln();let r=n?Te(t):t;return Ie(e,r,Me)}function Ie(e,t,n=null){if(!e.equals(t)){var r=e.v;ue?ne.set(e,t):ne.set(e,r),e.v=t;var s=te.ensure();if(s.capture(e,r),(e.f&b)!==0){const i=e;(e.f&S)!==0&&nt(i),F===null&&Xe(i)}e.wv=rn(),Yt(e,S,n),p!==null&&(p.f&m)!==0&&(p.f&(W|J))===0&&(P===null?mr([e]):P.push(e)),!s.is_fork&&rt.size>0&&!Vt&&fr()}return t}function fr(){Vt=!1;for(const e of rt)(e.f&m)!==0&&w(e,V),Se(e)&&$e(e);rt.clear()}function Ee(e){I(e,e.v+1)}function Yt(e,t,n){var r=e.reactions;if(r!==null)for(var s=r.length,i=0;i<s;i++){var o=r[i],l=o.f,u=(l&S)===0;if(u&&w(o,t),(l&b)!==0){var f=o;F?.delete(f),(l&le)===0&&(l&N&&(o.f|=le),Yt(f,V,n))}else if(u){var a=o;(l&K)!==0&&U!==null&&U.add(a),n!==null?n.push(a):tt(a)}}}function Te(e){if(typeof e!="object"||e===null||Ge in e)return e;const t=kn(e);if(t!==xn&&t!==Sn)return e;var n=new Map,r=mn(e),s=G(0),i=ce,o=l=>{if(ce===i)return l();var u=v,f=ce;O(null),nn(i);var a=l();return O(u),nn(f),a};return r&&n.set("length",G(e.length)),new Proxy(e,{defineProperty(l,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Fn();var a=n.get(u);return a===void 0?o(()=>{var h=G(f.value);return n.set(u,h),h}):I(a,f.value,!0),!0},deleteProperty(l,u){var f=n.get(u);if(f===void 0){if(u in l){const a=o(()=>G(T));n.set(u,a),Ee(s)}}else I(f,T),Ee(s);return!0},get(l,u,f){if(u===Ge)return e;var a=n.get(u),h=u in l;if(a===void 0&&(!h||de(l,u)?.writable)&&(a=o(()=>{var _=Te(h?l[u]:T),d=G(_);return d}),n.set(u,a)),a!==void 0){var c=R(a);return c===T?void 0:c}return Reflect.get(l,u,f)},getOwnPropertyDescriptor(l,u){var f=Reflect.getOwnPropertyDescriptor(l,u);if(f&&"value"in f){var a=n.get(u);a&&(f.value=R(a))}else if(f===void 0){var h=n.get(u),c=h?.v;if(h!==void 0&&c!==T)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(l,u){if(u===Ge)return!0;var f=n.get(u),a=f!==void 0&&f.v!==T||Reflect.has(l,u);if(f!==void 0||p!==null&&(!a||de(l,u)?.writable)){f===void 0&&(f=o(()=>{var c=a?Te(l[u]):T,_=G(c);return _}),n.set(u,f));var h=R(f);if(h===T)return!1}return a},set(l,u,f,a){var h=n.get(u),c=u in l;if(r&&u==="length")for(var _=f;_<h.v;_+=1){var d=n.get(_+"");d!==void 0?I(d,T):_ in l&&(d=o(()=>G(T)),n.set(_+"",d))}if(h===void 0)(!c||de(l,u)?.writable)&&(h=o(()=>G(void 0)),I(h,Te(f)),n.set(u,h));else{c=h.v!==T;var g=o(()=>Te(f));I(h,g)}var E=Reflect.getOwnPropertyDescriptor(l,u);if(E?.set&&E.set.call(a,f),!c){if(r&&typeof u=="string"){var q=n.get("length"),ye=Number(u);Number.isInteger(ye)&&ye>=q.v&&I(q,ye+1)}Ee(s)}return!0},ownKeys(l){R(s);var u=Reflect.ownKeys(l).filter(h=>{var c=n.get(h);return c===void 0||c.v!==T});for(var[f,a]of n)a.v!==T&&!(f in l)&&u.push(f);return u},setPrototypeOf(){In()}})}var Ht,Bt,zt,Ut;function st(){if(Ht===void 0){Ht=window,Bt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;zt=de(t,"firstChild").get,Ut=de(t,"nextSibling").get,gt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),gt(n)&&(n.__t=void 0)}}function xe(e=""){return document.createTextNode(e)}function Le(e){return zt.call(e)}function re(e){return Ut.call(e)}function je(e,t){if(!x)return Le(e);var n=Le(y);if(n===null)n=y.appendChild(xe());else if(t&&n.nodeType!==Ke){var r=xe();return n?.before(r),z(r),r}return t&&Kt(n),z(n),n}function Gt(e,t=1,n=!1){let r=x?y:e;for(var s;t--;)s=r,r=re(r);if(!x)return r;if(n){if(r?.nodeType!==Ke){var i=xe();return r===null?s?.after(i):r.before(i),z(i),i}Kt(r)}return z(r),r}function or(e){e.textContent=""}function it(e,t,n){return document.createElementNS(wn,e,void 0)}function Kt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ke;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Wt(e){var t=v,n=p;O(null),H(null);try{return e()}finally{O(t),H(n)}}function ur(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Y(e,t){var n=p;n!==null&&(n.f&X)!==0&&(e|=X);var r={ctx:M,deps:null,nodes:null,f:e|S|N,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&_e)!==0)ge!==null?ge.push(r):te.ensure().schedule(r);else if(t!==null){try{$e(r)}catch(o){throw L(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&ie)===0&&(s=s.first,(e&K)!==0&&(e&Ce)!==0&&s!==null&&(s.f|=Ce))}if(s!==null&&(s.parent=n,n!==null&&ur(s,n),v!==null&&(v.f&b)!==0&&(e&J)===0)){var i=v;(i.effects??=[]).push(s)}return r}function lt(){return v!==null&&!j}function ar(e){const t=Y(Oe,null);return w(t,m),t.teardown=e,t}function cr(e){return Y(_e|On,e)}function hr(e){te.ensure();const t=Y(J|ie,e);return()=>{L(t)}}function dr(e){te.ensure();const t=Y(J|ie,e);return(n={})=>new Promise(r=>{n.outro?qe(t,()=>{L(t),r(void 0)}):(L(t),r(void 0))})}function _r(e){return Y(_e,e)}function vr(e){return Y(Ue|ie,e)}function Jt(e,t=0){return Y(Oe|t,e)}function pr(e,t=[],n=[],r=[]){er(r,t,n,s=>{Y(Oe,()=>e(...s.map(R)))})}function gr(e,t=0){var n=Y(K|t,e);return n}function oe(e){return Y(W|ie,e)}function Xt(e){var t=e.teardown;if(t!==null){const n=ue,r=v;en(!0),O(null);try{t.call(null)}finally{en(n),O(r)}}}function ft(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Wt(()=>{s.abort(B)});var r=n.next;(n.f&J)!==0?n.parent=null:L(n,t),n=r}}function $r(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&W)===0&&L(t),t=n}}function L(e,t=!0){var n=!1;(t||(e.f&Nn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(yr(e.nodes.start,e.nodes.end),n=!0),w(e,wt),ft(e,t&&!n),ke(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();Xt(e),e.f^=wt,e.f|=D;var s=e.parent;s!==null&&s.first!==null&&Zt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function yr(e,t){for(;e!==null;){var n=e===t?null:re(e);e.remove(),e=n}}function Zt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function qe(e,t,n=!0){var r=[];Qt(e,r,!0);var s=()=>{n&&L(e),t&&t()},i=r.length;if(i>0){var o=()=>--i||s();for(var l of r)l.out(o)}else s()}function Qt(e,t,n){if((e.f&X)===0){e.f^=X;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,o=(s.f&Ce)!==0||(s.f&W)!==0&&(e.f&K)!==0;Qt(s,t,o?n:!1),s=i}}}function wr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:re(n);t.append(n),n=s}}let Ve=!1,ue=!1;function en(e){ue=e}let v=null,j=!1;function O(e){v=e}let p=null;function H(e){p=e}let C=null;function br(e){v!==null&&(C===null?C=[e]:C.push(e))}let k=null,A=0,P=null;function mr(e){P=e}let tn=1,ae=0,ce=ae;function nn(e){ce=e}function rn(){return++tn}function Se(e){var t=e.f;if((t&S)!==0)return!0;if(t&b&&(e.f&=~le),(t&V)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(Se(i)&&jt(i),i.wv>e.wv)return!0}(t&N)!==0&&F===null&&w(e,m)}return!1}function sn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(C!==null&&he.call(C,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&b)!==0?sn(i,t,!1):t===i&&(n?w(i,S):(i.f&m)!==0&&w(i,V),tt(i))}}function ln(e){var t=k,n=A,r=P,s=v,i=C,o=M,l=j,u=ce,f=e.f;k=null,A=0,P=null,v=(f&(W|J))===0?e:null,C=null,ve(e.ctx),j=!1,ce=++ae,e.ac!==null&&(Wt(()=>{e.ac.abort(B)}),e.ac=null);try{e.f|=ze;var a=e.fn,h=a();e.f|=se;var c=e.deps,_=$?.is_fork;if(k!==null){var d;if(_||ke(e,A),c!==null&&A>0)for(c.length=A+k.length,d=0;d<k.length;d++)c[A+d]=k[d];else e.deps=c=k;if(lt()&&(e.f&N)!==0)for(d=A;d<c.length;d++)(c[d].reactions??=[]).push(e)}else!_&&c!==null&&A<c.length&&(ke(e,A),c.length=A);if(St()&&P!==null&&!j&&c!==null&&(e.f&(b|V|S))===0)for(d=0;d<P.length;d++)sn(P[d],e);if(s!==null&&s!==e){if(ae++,s.deps!==null)for(let g=0;g<n;g+=1)s.deps[g].rv=ae;if(t!==null)for(const g of t)g.rv=ae;P!==null&&(r===null?r=P:r.push(...P))}return(e.f&Z)!==0&&(e.f^=Z),h}catch(g){return Rt(g)}finally{e.f^=ze,k=t,A=n,P=r,v=s,C=i,ve(o),j=l,ce=u}}function Er(e,t){let n=t.reactions;if(n!==null){var r=En.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&b)!==0&&(k===null||!he.call(k,t))){var i=t;(i.f&N)!==0&&(i.f^=N,i.f&=~le),Xe(i),ir(i),ke(i,0)}}function ke(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Er(e,n[r])}function $e(e){var t=e.f;if((t&D)===0){w(e,m);var n=p,r=Ve;p=e,Ve=!0;try{(t&(K|yt))!==0?$r(e):ft(e),Xt(e);var s=ln(e);e.teardown=typeof s=="function"?s:null,e.wv=tn;var i;bn&&zn&&(e.f&S)!==0&&e.deps}finally{Ve=r,p=n}}}function R(e){var t=e.f,n=(t&b)!==0;if(v!==null&&!j){var r=p!==null&&(p.f&D)!==0;if(!r&&(C===null||!he.call(C,e))){var s=v.deps;if((v.f&ze)!==0)e.rv<ae&&(e.rv=ae,k===null&&s!==null&&s[A]===e?A++:k===null?k=[e]:k.push(e));else{(v.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[v]:he.call(i,v)||i.push(v)}}}if(ue&&ne.has(e))return ne.get(e);if(n){var o=e;if(ue){var l=o.v;return((o.f&m)===0&&o.reactions!==null||on(o))&&(l=nt(o)),ne.set(o,l),l}var u=(o.f&N)===0&&!j&&v!==null&&(Ve||(v.f&N)!==0),f=(o.f&se)===0;Se(o)&&(u&&(o.f|=N),jt(o)),u&&!f&&(qt(o),fn(o))}if(F?.has(e))return F.get(e);if((e.f&Z)!==0)throw e.v;return e.v}function fn(e){if(e.f|=N,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&b)!==0&&(t.f&N)===0&&(qt(t),fn(t))}function on(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ne.has(t)||(t.f&b)!==0&&on(t))return!0;return!1}function Tr(e){var t=j;try{return j=!0,e()}finally{j=t}}const Re=Symbol("events"),un=new Set,ot=new Set;function xr(e,t,n){(t[Re]??={})[e]=n}function Sr(e){for(var t=0;t<e.length;t++)un.add(e[t]);for(var n of ot)n(e)}let an=null;function cn(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;an=e;var o=0,l=an===e&&e[Re];if(l){var u=s.indexOf(l);if(u!==-1&&(t===document||t===window)){e[Re]=t;return}var f=s.indexOf(t);if(f===-1)return;u<=f&&(o=u)}if(i=s[o]||e.target,i!==t){Ne(e,"currentTarget",{configurable:!0,get(){return i||n}});var a=v,h=p;O(null),H(null);try{for(var c,_=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var g=i[Re]?.[r];g!=null&&(!i.disabled||e.target===i)&&g.call(i,e)}catch(E){c?_.push(E):c=E}if(e.cancelBubble||d===t||d===null)break;i=d}if(c){for(let E of _)queueMicrotask(()=>{throw E});throw c}}finally{e[Re]=t,delete e.currentTarget,O(a),H(h)}}}const kr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Rr(e){return kr?.createHTML(e)??e}function Ar(e){var t=it("template");return t.innerHTML=Rr(e.replaceAll("<!>","<!---->")),t.content}function ut(e,t){var n=p;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Nr(e,t){var n=(t&yn)!==0,r,s=!e.startsWith("<!>");return()=>{if(x)return ut(y,null),y;r===void 0&&(r=Ar(s?e:"<!>"+e),r=Le(r));var i=n||Bt?document.importNode(r,!0):r.cloneNode(!0);return ut(i,i),i}}function hn(e,t){if(x){var n=p;((n.f&se)===0||n.nodes.end===null)&&(n.nodes.end=y),mt();return}e!==null&&e.before(t)}const Or=["touchstart","touchmove"];function Cr(e){return Or.includes(e)}function dn(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function _n(e,t){return vn(e,t)}function Pr(e,t){st(),t.intro=t.intro??!1;const n=t.target,r=x,s=y;try{for(var i=Le(n);i&&(i.nodeType!==We||i.data!==dt);)i=re(i);if(!i)throw we;Pe(!0),z(i);const o=vn(e,{...t,anchor:i});return Pe(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==we&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Mn(),st(),or(n),Pe(!1),_n(e,t)}finally{Pe(r),z(s)}}const Ye=new Map;function vn(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:o=!0,transformError:l}){st();var u=void 0,f=dr(()=>{var a=n??t.appendChild(xe());Zn(a,{pending:()=>{}},_=>{Tt({});var d=M;if(i&&(d.c=i),s&&(r.$$events=s),x&&ut(_,null),u=e(_,r)||{},x&&(p.nodes.end=y,y===null||y.nodeType!==We||y.data!==pt))throw Je(),we;xt()},l);var h=new Set,c=_=>{for(var d=0;d<_.length;d++){var g=_[d];if(!h.has(g)){h.add(g);var E=Cr(g);for(const ct of[t,document]){var q=Ye.get(ct);q===void 0&&(q=new Map,Ye.set(ct,q));var ye=q.get(g);ye===void 0?(ct.addEventListener(g,cn,{passive:E}),q.set(g,1)):q.set(g,ye+1)}}}};return c(Tn(un)),ot.add(c),()=>{for(var _ of h)for(const E of[t,document]){var d=Ye.get(E),g=d.get(_);--g==0?(E.removeEventListener(_,cn),d.delete(_),d.size===0&&Ye.delete(E)):d.set(_,g)}ot.delete(c),a!==n&&a.parentNode?.removeChild(a)}});return at.set(u,f),u}let at=new WeakMap;function Dr(e,t){const n=at.get(e);return n?(at.delete(e),n(t)):Promise.resolve()}function Mr(e,t){_r(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=it("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function Fr(e,t){return e==null?null:String(e)}function Ir(e,t,n,r){var s=e.__style;if(x||s!==t){var i=Fr(t);(!x||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}function pn(e,t,n,r){var s=r,i=!0,o=()=>(i&&(i=!1,s=r),s),l;l=e[t],l===void 0&&r!==void 0&&(l=o());var u;u=()=>{var c=e[t];return c===void 0?o():(i=!0,c)};var f=!1,a=Lt(()=>(f=!1,u())),h=p;return(function(c,_){if(arguments.length>0){const d=_?R(a):c;return I(a,d),f=!0,s!==void 0&&(s=d),c}return ue&&f||(h.f&D)!==0?a.v:R(a)})}function Lr(e){return new jr(e)}class jr{#e;#n;constructor(t){var n=new Map,r=(i,o)=>{var l=lr(o,!1,!1);return n.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return R(n.get(o)??r(o,Reflect.get(i,o)))},has(i,o){return o===Cn?!0:(R(n.get(o)??r(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,l){return I(n.get(o)??r(o,l),l),Reflect.set(i,o,l)}});this.#n=(t.hydrate?Pr:_n)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&et(),this.#e=s.$$events;for(const i of Object.keys(this.#n))i==="$set"||i==="$destroy"||i==="$on"||Ne(this,i,{get(){return this.#n[i]},set(o){this.#n[i]=o},enumerable:!0});this.#n.$set=i=>{Object.assign(s,i)},this.#n.$destroy=()=>{Dr(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...s)=>n.call(this,...s);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(s=>s!==r)}}$destroy(){this.#n.$destroy()}}let gn;typeof HTMLElement=="function"&&(gn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=it("slot");r!=="default"&&(i.name=r),hn(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=qr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=He(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Lr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=hr(()=>{Jt(()=>{this.$$r=!0;for(const r of Ae(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=He(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=He(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ae(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function He(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function qr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Vr(e,t,n,r,s,i){let o=class extends gn{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Ae(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ae(t).forEach(l=>{Ne(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){u=He(l,u,t),this.$$d[l]=u;var f=this.$$c;if(f){var a=de(f,l)?.get;a?f[l]=u:f.$set({[l]:u})}}})}),r.forEach(l=>{Ne(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}var Yr=Nr('<div id="content" part="content" class="svelte-d9fq57"><div id="copycode" class="svelte-d9fq57"><div id="flash">copied to the clipboard</div> <button id="copybutton" class="svelte-d9fq57"> </button></div> <code part="content" style="overflow-wrap: break-word;"> </code></div>');const Hr={hash:"svelte-d9fq57",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;--hb-area-code-background: rgb(232 232 232 / 57%);}#content.svelte-d9fq57 {background-color:var(--hb-area-code-background);padding:28px 12px 28px 12px;position:relative;}#copycode.svelte-d9fq57 {position:absolute;right:6px;top:6px;font-size:0.6em;}#copybutton.svelte-d9fq57 {cursor:pointer;}'};function $n(e,t){Tt(t,!0),Mr(e,Hr);let n=pn(t,"id",7,""),r=pn(t,"content",7,"");function s(g,E){t.$$host.dispatchEvent(new CustomEvent(g,{detail:E}))}let i=G(!1);function o(){R(i)||(navigator.clipboard.writeText(r()),I(i,!0),s("clipboardCopyText",{text:r()}),setInterval(()=>{I(i,!1)},5e3))}var l={get id(){return n()},set id(g=""){n(g),et()},get content(){return r()},set content(g=""){r(g),et()}},u=Yr(),f=je(u),a=je(f),h=Gt(a,2),c=je(h,!0);De(h),De(f);var _=Gt(f,2),d=je(_,!0);return De(_),De(u),pr(()=>{Ir(a,`display:${R(i)?"inline-block":"none"}`),dn(c,R(i)?"ok!":"copy"),dn(d,r())}),xr("click",h,o),hn(e,u),xt(l)}Sr(["click"]),customElements.define("hb-area-code",Vr($n,{id:{},content:{}},[],[],{mode:"open"})),ht.Component=$n,Object.defineProperty(ht,Symbol.toStringTag,{value:"Module"})})(this["area-code"]=this["area-code"]||{});
3
3
  //# sourceMappingURL=main.iife.js.map