aberdeen 1.7.0 → 1.7.1

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.
@@ -1,11 +1,11 @@
1
- class v{keyProp;tail;symbols;constructor(J){this.keyProp=J;this.tail={},this.symbols=[Symbol(0)]}add(J){if(this.symbols[0]in J)return!1;let X=1+(Math.clz32(Math.random()*4294967295)>>2);for(let F=this.symbols.length;F<X;F++)this.symbols.push(Symbol(F));let W=this.keyProp,z=J[W],U,Z=this.tail;for(let F=this.symbols.length-1;F>=0;F--){let q=this.symbols[F];while((U=Z[q])&&U[W]>z)Z=U;if(F<X)J[q]=Z[q],Z[q]=J}return!0}has(J){return this.symbols[0]in J}fetchLast(){let J=this.tail[this.symbols[0]];if(J)return this.remove(J),J}isEmpty(){return this.tail[this.symbols[0]]===void 0}get(J){let X=this.keyProp,W,z=this.tail;for(let U=this.symbols.length-1;U>=0;U--){let Z=this.symbols[U];while((W=z[Z])&&W[X]>J)z=W}return z[this.symbols[0]]?.[X]===J?z[this.symbols[0]]:void 0}*[Symbol.iterator](){let J=this.symbols[0],X=this.tail[J];while(X)yield X,X=X[J]}prev(J){return J[this.symbols[0]]}remove(J){if(!(this.symbols[0]in J))return!1;let X=this.keyProp,W=J[X],z,U=this.tail;for(let Z=this.symbols.length-1;Z>=0;Z--){let F=this.symbols[Z];while((z=U[F])&&z[X]>=W&&z!==J)U=z;if(z===J)U[F]=z[F],delete z[F]}return z===J}clear(){let J=this.symbols[0],X=this.tail;while(X){let W=X[J];for(let z of this.symbols){if(!(z in X))break;delete X[z]}X=W}this.tail={}}}var h,M=0,f;function e(J){if(!h)h=new v("prio"),setTimeout(OJ,0);else if(!(M&1)){if(M++,M>98)throw Error("Too many recursive updates from observes")}h.add(J)}function OJ(){let J=Date.now();while(h){let X=h.fetchLast();if(!X)break;if(M&1)M++;X.queueRun()}if(h=void 0,M=0,J=Date.now()-J,J>9)console.debug(`Aberdeen queue took ${J}ms`)}function UJ(J){if(typeof J==="string")return`${J}\x01`;let X="",W=Math.abs(Math.round(J)),z=J<0;while(W>0)X=String.fromCharCode(z?65534-W%65533:2+W%65533)+X,W=Math.floor(W/65533);return String.fromCharCode(128+(z?-X.length:X.length))+X}function nJ(J){let X="";for(let W=0;W<J.length;W++)X+=String.fromCodePoint(65535-J.charCodeAt(W));return X}var KJ=0;class JJ{prio=--KJ;remove(){let J=this.getLastNode();if(J)y(J,this.getPrecedingNode());this.delete()}}class GJ{queueRun;prio=--KJ;constructor(J){this.queueRun=J;e(this)}}class D extends JJ{cleaners;changes;constructor(J=[]){super();this.cleaners=J}lastChild;redraw(){}getLastNode(){return P(this.lastChild)}delete(){for(let J of this.cleaners)if(typeof J==="function")J();else J.delete(this);this.cleaners.length=0,h?.remove(this),this.lastChild=void 0}onChange(J,X,W,z){if(!this.changes)this.changes=new Map,e(this);let U=this.changes.get(J);if(!U)U=new Map,this.changes.set(J,U);if(U.has(X)){if(U.get(X)===W)U.delete(X)}else U.set(X,z)}fetchHasChanges(){if(!this.changes)return!1;for(let J of this.changes.values())if(J.size>0)return delete this.changes,!0;return delete this.changes,!1}queueRun(){if(!this.fetchHasChanges())return;this.remove(),f=this,this.redraw(),f=void 0}getInsertAfterNode(){return this.getLastNode()||this.getPrecedingNode()}getChildPrevSibling(){return this.lastChild}}class c extends D{el;svg;prevSibling;constructor(J,X,W=!1){super(W?H.cleaners:[]);this.el=J;this.svg=X;if(J===H.el)this.prevSibling=H.getChildPrevSibling(),H.lastChild=this;else this.prevSibling=J.lastChild||void 0;if(!W)H.cleaners.push(this)}getPrecedingNode(){return P(this.prevSibling)}getChildPrevSibling(){return this.lastChild||this.prevSibling}}class XJ extends c{renderer;constructor(J,X,W){super(J,X);this.renderer=W;this.redraw()}redraw(){let J=H;H=this;try{this.renderer()}catch(X){zJ(X,!0)}H=J}}class WJ extends D{el=document.body;svg=!1;getPrecedingNode(){return}}class NJ extends D{el;renderer;svg;constructor(J,X){super();this.el=J;this.renderer=X;this.svg=J.namespaceURI==="http://www.w3.org/2000/svg",this.redraw(),H.cleaners.push(this)}redraw(){XJ.prototype.redraw.call(this)}getPrecedingNode(){return}delete(){y(this.getLastNode(),this.getPrecedingNode()),super.delete()}remove(){this.delete()}}function y(J,X){while(J&&J!==X){let W=J.previousSibling,z=s.get(J);if(z&&J instanceof Element){if(z!==!0){if(typeof z==="function")z(J);else kJ(J,z);s.set(J,!0)}}else J.remove();J=W}}function P(J){if(!J||J instanceof Node)return J;return J.getLastNode()||J.getPrecedingNode()}class BJ extends c{renderer;result=N({value:void 0});constructor(J){super(H.el,H.svg);this.renderer=J;this.redraw()}redraw(){let J=H;H=this;try{this.result.value=this.renderer()}catch(X){zJ(X,!0)}H=J}}class AJ extends c{key;target;svg=!1;constructor(J,X,W){super(J,J.namespaceURI==="http://www.w3.org/2000/svg");this.key=X;this.target=W;this.redraw()}redraw(){let J=H;H=this,L(this.el,this.key,this.target.value),H=J}}class VJ extends JJ{renderer;makeSortKey;parentElement=H.el;prevSibling;target;byIndex=new Map;sortedSet=new v("sortKey");changedIndexes=new Map;constructor(J,X,W){super();this.renderer=X;this.makeSortKey=W;let z=this.target=J[Q]||J;if(B(z,C,this),this.prevSibling=H.getChildPrevSibling(),H.lastChild=this,H.cleaners.push(this),z instanceof Array)for(let U=0;U<z.length;U++)new x(this,U,!1);else for(let U of z instanceof Map?z.keys():Object.keys(z))new x(this,U,!1)}getPrecedingNode(){return P(this.prevSibling)}onChange(J,X,W,z){if(!(J instanceof Array)||typeof X==="number")if(this.changedIndexes.has(X)){if(this.changedIndexes.get(X)===W)this.changedIndexes.delete(X)}else this.changedIndexes.set(X,z),e(this)}queueRun(){let J=this.changedIndexes;this.changedIndexes=new Map;for(let X of J.keys()){let W=this.byIndex.get(X);if(W)W.remove();if(this.target instanceof Map?this.target.has(X):(X in this.target))new x(this,X,!0);else this.byIndex.delete(X)}f=void 0}delete(){for(let J of this.byIndex.values())J.delete();h?.remove(this),this.byIndex.clear(),setTimeout(()=>{this.sortedSet.clear()},1)}getLastNode(){for(let J of this.sortedSet){let X=J.getActualLastNode();if(X)return X}}}class x extends D{parent;itemIndex;sortKey;el;svg;constructor(J,X,W){super();this.parent=J;this.itemIndex=X;if(this.el=J.parentElement,this.svg=H.svg,this.parent.byIndex.set(this.itemIndex,this),this.lastChild=this,W)f=this;this.redraw()}getPrecedingNode(){this.parent.sortedSet.add(this);let J=this.parent.sortedSet.prev(this);if(J)return P(J.lastChild);return this.parent.getPrecedingNode()}getLastNode(){return this.getPrecedingNode()}getActualLastNode(){let J=this.lastChild;while(J&&J!==this){if(J instanceof Node)return J;let X=J.getLastNode();if(X)return X;J=J.getPrecedingNode()}}queueRun(){if(H!==m)QJ(4);if(!this.fetchHasChanges())return;if(this.sortKey!==void 0){let J=this.getActualLastNode();if(J)y(J,this.getPrecedingNode())}this.delete(),this.lastChild=this,f=this,this.redraw(),f=void 0}redraw(){let J,X=this.parent.target,W=this.itemIndex;if(X instanceof Map)J=N(X.get(W)),W=N(W);else J=N(X[W]);let z=H;H=this;let U;try{if(this.parent.makeSortKey){let Z=this.parent.makeSortKey(J,W);if(Z!=null)U=Z instanceof Array?Z.map(UJ).join(""):Z}else U=W;if(typeof U==="number")U=UJ(U);if(this.sortKey!==U)this.parent.sortedSet.remove(this),this.sortKey=U;if(U!=null)this.parent.renderer(J,W)}catch(Z){zJ(Z,U!=null)}H=z}getInsertAfterNode(){if(this.sortKey==null)QJ(1);return P(this.lastChild)}remove(){if(this.sortKey!==void 0){let J=this.getActualLastNode();if(J)y(J,this.getPrecedingNode());this.parent.sortedSet.remove(this),this.sortKey=void 0}this.delete()}}function i(J,X){if(J!==H.el){J.appendChild(X);return}let W=H.el,z=H.getInsertAfterNode();W.insertBefore(X,z?z.nextSibling:W.firstChild),H.lastChild=X}var m=new WJ,H=m;function TJ(J){let X=H;H=new WJ;try{return J()}finally{H=X}}var C=Symbol("any"),Q=Symbol("target"),T=Symbol("mapSize"),n=new WeakMap,g=0;function B(J,X,W=H){if(W===m||g)return;let z=n.get(J);if(!z)n.set(J,z=new Map);if(X!==C&&z.get(C)?.has(W))return;let U=z.get(X);if(!U)z.set(X,U=new Set);if(U.has(W))return;if(U.add(W),W===H)H.cleaners.push(U);else H.cleaners.push(()=>{U.delete(W)})}function d(J,X,W){if(!J||typeof J!=="object")throw Error("onEach requires an object");J=J[Q]||J,new VJ(J,X,W)}function o(J){for(let X of Object.keys(J))return!1;return!0}var K=Symbol("empty");function bJ(J){let X=J[Q]||J,W=H;if(X instanceof Array)return B(X,"length",(U,Z,F)=>{if(!Z!==!F)W.onChange(X,K,!Z,!F)}),!X.length;if(X instanceof Map)return B(X,T,(U,Z,F)=>{if(!Z!==!F)W.onChange(X,K,!Z,!F)}),!X.size;let z=o(X);return B(X,C,(U,Z,F)=>{if(Z===K!==(F===K)){let q=o(X);W.onChange(X,K,q,z),z=q}}),z}function oJ(J){if(J instanceof Array)return r(J,"length");if(J instanceof Map)return r(J,"size");let X=J[Q]||J,W=0;for(let U of Object.keys(X))if(X[U]!==void 0)W++;let z=CJ(W);return B(X,C,(U,Z,F)=>{if(F===Z);else if(F===K)z.value=++W;else if(Z===K)z.value=--W}),z}function PJ(J,X,W,z){if(W===z&&W!==void 0)return;let U=n.get(J);if(U===void 0)return;for(let Z of[X,C]){let F=U.get(Z);if(F)for(let q of F)if(typeof q==="function")q(X,W,z);else q.onChange(J,X,W,z)}}var G=PJ,EJ={get(J,X){if(X===Q)return J;return B(J,X),N(J[X])},set(J,X,W){if(typeof W==="object"&&W)W=W[Q]||W;let z=J.hasOwnProperty(X)?J[X]:K;if(W!==z)J[X]=W,G(J,X,W,z);return!0},deleteProperty(J,X){let W=J.hasOwnProperty(X)?J[X]:K;return delete J[X],G(J,X,K,W),!0},has(J,X){return B(J,X),J.hasOwnProperty(X)},ownKeys(J){return B(J,C),Reflect.ownKeys(J)}};function DJ(J,X,W){if(typeof W==="object"&&W)W=W[Q]||W;let z=J[X];if(z===void 0&&!J.hasOwnProperty(X))z=K;if(W!==z){let U=J.length;if(X==="length"){J.length=W;for(let Z=W;Z<U;Z++)G(J,Z,K,J[Z])}else{if(typeof X==="string"){let Z=0|X;if(String(Z)===X&&Z>=0)X=Z}J[X]=W,G(J,X,W,z)}if(J.length!==U)G(J,"length",J.length,U)}return!0}var mJ={get(J,X){if(X===Q)return J;if(typeof X==="string"){let W=0|X;if(String(W)===X&&W>=0)X=W}return B(J,X),N(J[X])},set:DJ,deleteProperty(J,X){if(typeof X==="string"){let z=0|X;if(String(z)===X&&z>=0)X=z}let W=J[X];if(W===void 0&&!J.hasOwnProperty(X))W=K;return delete J[X],G(J,X,K,W),!0}};function ZJ(J){return{[Symbol.iterator](){return this},next(){let X=J.next();if(X.done)return X;return{done:!1,value:N(X.value)}}}}function FJ(J){return{[Symbol.iterator](){return this},next(){let X=J.next();if(X.done)return X;return{done:!1,value:[N(X.value[0]),N(X.value[1])]}}}}var qJ={get(J){let X=this[Q];if(typeof J==="object"&&J)J=J[Q]||J;return B(X,J),N(X.get(J))},set(J,X){let W=this[Q];if(typeof J==="object"&&J)J=J[Q]||J;if(typeof X==="object"&&X)X=X[Q]||X;let z=W.get(J);if(z===void 0&&!W.has(J))z=K;if(X!==z){let U=W.size;W.set(J,X),G(W,J,X,z),G(W,T,W.size,U)}return this},delete(J){let X=this[Q];if(typeof J==="object"&&J)J=J[Q]||J;let W=X.get(J);if(W===void 0&&!X.has(J))W=K;let z=X.delete(J);if(z)G(X,J,K,W),G(X,T,X.size,X.size+1);return z},clear(){let J=this[Q],X=J.size;for(let W of J.keys())G(J,W,void 0,J.get(W));J.clear(),G(J,T,0,X)},has(J){let X=this[Q];if(typeof J==="object"&&J)J=J[Q]||J;return B(X,J),X.has(J)},keys(){let J=this[Q];return B(J,C),ZJ(J.keys())},values(){let J=this[Q];return B(J,C),ZJ(J.values())},entries(){let J=this[Q];return B(J,C),FJ(J.entries())},[Symbol.iterator](){let J=this[Q];return B(J,C),FJ(J[Symbol.iterator]())}},vJ={get(J,X){if(X===Q)return J;if(qJ.hasOwnProperty(X))return qJ[X];if(X==="size")return B(J,T),J.size;return J[X]}},HJ=new WeakMap;function N(J){if(typeof J!=="object"||!J||J[Q]!==void 0||Y in J)return J;let X=HJ.get(J);if(X)return X;let W;if(J instanceof Array)W=mJ;else if(J instanceof Map)W=vJ;else W=EJ;return X=new Proxy(J,W),HJ.set(J,X),X}function CJ(J){if(J instanceof Promise){let X=N({busy:!0});return J.then((W)=>{X.value=W,X.busy=!1}).catch((W)=>{X.error=W,X.busy=!1}),X}return N(typeof J==="object"&&J!==null?J:{value:J})}function LJ(J){return J?J[Q]||J:J}var s=new WeakMap;function kJ(J,X){let W=X.split(".").filter((z)=>z);J.classList.add(...W),setTimeout(()=>J.remove(),2000)}function sJ(J,X,W){if(arguments.length>2)return IJ(J,X,W,0);return p(J,X,0)}function IJ(J,X,W,z){let U=cJ(J,X);if(W===U)return!1;if(typeof U==="object"&&U&&typeof W==="object"&&W&&U.constructor===W.constructor)return p(U,W,z);if(W=b(W),J instanceof Map)J.set(X,W);else J[X]=b(W);return!0}function aJ(J,X,W){if(arguments.length>2)return IJ(J,X,W,E);return p(J,X,E)}function p(J,X,W){let z=J[Q];if(z)J=z,W|=_;if(z=X[Q],z){if(X=z,H!==m&&!g)W|=RJ}return S(J,X,W)}function S(J,X,W){if(W&RJ)B(X,C);let z=!1;if(X instanceof Array&&J instanceof Array){let U=J.length,Z=X.length;for(let F=0;F<Z;F++){let q=J[F];if(q===void 0&&!J.hasOwnProperty(F))q=K;let $=X[F];if($===void 0&&!X.hasOwnProperty(F)){if(delete J[F],W&_)G(J,F,K,q);z=!0}else if(q!==$){if($&&typeof $==="object"){if(typeof q==="object"&&q&&$.constructor===q.constructor&&!(Y in $)){z=S(q,$,W)||z;continue}$=b($)}if(J[F]=$,W&_)G(J,F,$,q);z=!0}}if(Z!==U){if(W&_){for(let F=Z;F<U;F++){let q=J[F];delete J[F],G(J,F,K,q)}J.length=Z,G(J,"length",Z,U)}else J.length=Z;z=!0}}else if(X instanceof Map&&J instanceof Map){for(let U of X.keys()){let Z=X.get(U),F=J.get(U);if(F===void 0&&!J.has(U))F=K;if(F!==Z){if(Z&&typeof Z==="object"){if(typeof F==="object"&&F&&Z.constructor===F.constructor&&!(Y in Z)){z=S(F,Z,W)||z;continue}Z=b(Z)}if(J.set(U,Z),W&_)G(J,U,Z,F);z=!0}}if(!(W&E)){for(let U of J.keys())if(!X.has(U)){let Z=J.get(U);if(J.delete(U),W&_)G(J,U,K,Z);z=!0}}}else if(X.constructor===J.constructor){for(let U of Object.keys(X)){let Z=X[U],F=J.hasOwnProperty(U)?J[U]:K;if(F!==Z){if(Z&&typeof Z==="object"){if(typeof F==="object"&&F&&Z.constructor===F.constructor&&!(Y in Z)){z=S(F,Z,W)||z;continue}Z=b(Z)}if(J[U]=Z,W&_)G(J,U,Z,F);z=!0}}if(!(W&E)){for(let U of Object.keys(J))if(!X.hasOwnProperty(U)){let Z=J[U];if(delete J[U],W&_&&Z!==void 0)G(J,U,K,Z);z=!0}}}else throw Error(`Incompatible or non-object types: ${X?.constructor?.name||typeof X} vs ${J?.constructor?.name||typeof J}`);return z}var E=1,RJ=32,_=64,Y=Symbol("NO_COPY");Promise.prototype[Y]=!0;var a=N({});function rJ(J=1,X="rem"){for(let W=0;W<=12;W++)a[W]=2**(W-3)*J+X}var xJ=/(\([^)]*\))|("[^"]*")|(^| )\$(\w+)/g,_J=/^\d/;function hJ(J){if(J.indexOf("$")<0)return J;return J.replace(xJ,(X,W,z,U,Z)=>{if(W||z)return X;let F=_J.test(Z)?`m${Z}`:Z;return`${U}var(--${F})`})}if(typeof document<"u")TJ(()=>{V(()=>{if(!bJ(a))uJ(document.head,()=>{V("style",()=>{let J=`:root {
2
- `;for(let[X,W]of Object.entries(a)){let z=_J.test(String(X))?`m${X}`:X;J+=` --${z}: ${W};
3
- `}J+="}",V(`#${J}`)})})})});var k;function tJ(){if(!k){if(typeof window>"u"||!window.matchMedia)return!1;let J=window.matchMedia("(prefers-color-scheme: dark)");k=CJ({value:J.matches}),J.addEventListener("change",()=>k.value=J.matches)}return k.value}function b(J){if(Y in J)return J;let X=Array.isArray(J)?[]:J instanceof Map?new Map:Object.create(Object.getPrototypeOf(J));return p(X,J,E),X}var SJ={get(J,X){if(X===Q)return r(LJ(J.proxy),J.index);if(X==="value")return J.proxy[J.index]},set(J,X,W){if(X==="value")return J.proxy[J.index]=W,!0;return!1}};function r(J,X){return new Proxy({proxy:J,index:X},SJ)}function yJ(J,X){let W,z,U=J.getAttribute("type"),Z=LJ(X).value;if(U==="checkbox"){if(Z===void 0)X.value=J.checked;W=()=>{J.checked=X.value},z=()=>{X.value=J.checked}}else if(U==="radio"){if(Z===void 0&&J.checked)X.value=J.value;W=()=>{J.checked=X.value===J.value},z=()=>{if(J.checked)X.value=J.value}}else{if(z=()=>{X.value=U==="number"||U==="range"?J.value===""?null:+J.value:J.value},Z===void 0)z();W=()=>{if(J.value=X.value,J.tagName==="SELECT"&&J.value!=X.value)new GJ(()=>J.value=X.value)}}gJ(W),J.addEventListener("input",z),O(()=>{J.removeEventListener("input",z)})}var jJ={create:(J,X)=>{if(H!==f)return;if(typeof X==="function")X(J);else{let W=X.split(".").filter((z)=>z);J.classList.add(...W),(async()=>{J.offsetHeight,J.classList.remove(...W)})()}},destroy:(J,X)=>{s.set(J,X)},html:(J,X)=>{let W=document.createElement(H.el.tagName);W.innerHTML=`${X}`;while(W.firstChild)i(J,W.firstChild)},text:(J,X)=>{i(J,document.createTextNode(X))}};function V(...J){let{el:X,svg:W}=H,z=J.length;for(let U=0;U<z;U++){let Z=J[U];if(Z==null||Z===!1);else if(typeof Z==="string"){let F=Z.length,q=0;for(let $=0;$<F;$=q+1){q=w(Z," .=:#",$);let R=Z[q];if(R===":"){let j="$"+Z.substring($,q);if(q+1>=F){L(X,j,J[++U]);break}if(Z[q+1]===" "){let A=w(Z,";",q+2),I=Z.substring(q+2,A).trim();L(X,j,I),q=A}else{let A=w(Z," ",q+1),I=Z.substring(q+1,A);L(X,j,I),q=A}}else if(R==="="){let j=Z.substring($,q);if(q+1>=F){L(X,j,J[++U]);break}let A=Z[q+1];if(A==='"'||A==="'"||A==="`"){let I=w(Z,A,q+2),l=Z.substring(q+2,I);L(X,j,l),q=I}else{let I=w(Z," ",q+1),l=Z.substring(q+1,I);L(X,j,l),q=I}}else{if(q>$){let j=Z.substring($,q);W||=j==="svg";let A=W?document.createElementNS("http://www.w3.org/2000/svg",j):document.createElement(j);i(X,A),X=A}if(R==="#"){let j=q+1<F?Z.substring(q+1):J[++U];L(X,"text",j);break}if(R==="."){let j=w(Z," #=.",q+1);if(Z[j]==="="&&j+1>=F)L(X,Z.substring(q,j),J[++U]),q=j;else{let A=Z.substring(q+1,j);X.classList.add(A||J[++U]),q=j-1}}}}}else if(typeof Z==="object")if(Z.constructor!==Object)if(Z instanceof Node){if(i(X,Z),Z instanceof Element)X=Z,W=Z.namespaceURI==="http://www.w3.org/2000/svg"}else throw Error(`Unexpected argument: ${Z}`);else for(let F of Object.keys(Z))L(X,F,Z[F]);else if(typeof Z==="function")new XJ(X,W,Z);else throw Error(`Unexpected argument: ${Z}`)}return X}function w(J,X,W){if(X.length===1){let U=J.indexOf(X,W);return U>=0?U:J.length}let z=J.length;for(let U=W;U<z;U++)if(X.indexOf(J[U])>=0)return U;return z}var fJ=0;function eJ(J){let X=`.AbdStl${++fJ}`,W=typeof J==="string"?t(J,X):u(J,X);if(W)V(`style#${W}`);return X}function u(J,X){let W="";for(let[z,U]of Object.entries(J))if(U&&typeof U==="object")if(z.startsWith("@"))W+=`${z}{
1
+ class v{keyProp;tail;symbols;constructor(J){this.keyProp=J;this.tail={},this.symbols=[Symbol(0)]}add(J){if(this.symbols[0]in J)return!1;let X=1+(Math.clz32(Math.random()*4294967295)>>2);for(let F=this.symbols.length;F<X;F++)this.symbols.push(Symbol(F));let W=this.keyProp,z=J[W],U,Z=this.tail;for(let F=this.symbols.length-1;F>=0;F--){let q=this.symbols[F];while((U=Z[q])&&U[W]>z)Z=U;if(F<X)J[q]=Z[q],Z[q]=J}return!0}has(J){return this.symbols[0]in J}fetchLast(){let J=this.tail[this.symbols[0]];if(J)return this.remove(J),J}isEmpty(){return this.tail[this.symbols[0]]===void 0}get(J){let X=this.keyProp,W,z=this.tail;for(let U=this.symbols.length-1;U>=0;U--){let Z=this.symbols[U];while((W=z[Z])&&W[X]>J)z=W}return z[this.symbols[0]]?.[X]===J?z[this.symbols[0]]:void 0}*[Symbol.iterator](){let J=this.symbols[0],X=this.tail[J];while(X)yield X,X=X[J]}prev(J){return J[this.symbols[0]]}remove(J){if(!(this.symbols[0]in J))return!1;let X=this.keyProp,W=J[X],z,U=this.tail;for(let Z=this.symbols.length-1;Z>=0;Z--){let F=this.symbols[Z];while((z=U[F])&&z[X]>=W&&z!==J)U=z;if(z===J)U[F]=z[F],delete z[F]}return z===J}clear(){let J=this.symbols[0],X=this.tail;while(X){let W=X[J];for(let z of this.symbols){if(!(z in X))break;delete X[z]}X=W}this.tail={}}}var h,M=0,f;function e(J){if(!h)h=new v("prio"),setTimeout(TJ,0);else if(!(M&1)){if(M++,M>98)throw Error("Too many recursive updates from observes")}h.add(J)}function TJ(){let J=Date.now();while(h){let X=h.fetchLast();if(!X)break;if(M&1)M++;X.queueRun()}if(h=void 0,M=0,J=Date.now()-J,J>9)console.debug(`Aberdeen queue took ${J}ms`)}function UJ(J){if(typeof J==="string")return`${J}\x01`;let X="",W=Math.abs(Math.round(J)),z=J<0;while(W>0)X=String.fromCharCode(z?65534-W%65533:2+W%65533)+X,W=Math.floor(W/65533);return String.fromCharCode(128+(z?-X.length:X.length))+X}function oJ(J){let X="";for(let W=0;W<J.length;W++)X+=String.fromCodePoint(65535-J.charCodeAt(W));return X}var GJ=0;class JJ{prio=--GJ;remove(){let J=this.getLastNode();if(J)y(J,this.getPrecedingNode());this.delete()}}class NJ{queueRun;prio=--GJ;constructor(J){this.queueRun=J;e(this)}}class D extends JJ{cleaners;changes;constructor(J=[]){super();this.cleaners=J}lastChild;redraw(){}getLastNode(){return E(this.lastChild)}delete(){for(let J of this.cleaners)if(typeof J==="function")J();else J.delete(this);this.cleaners.length=0,h?.remove(this),this.lastChild=void 0}onChange(J,X,W,z){if(!this.changes)this.changes=new Map,e(this);let U=this.changes.get(J);if(!U)U=new Map,this.changes.set(J,U);if(U.has(X)){if(U.get(X)===W)U.delete(X)}else U.set(X,z)}fetchHasChanges(){if(!this.changes)return!1;for(let J of this.changes.values())if(J.size>0)return delete this.changes,!0;return delete this.changes,!1}queueRun(){if(!this.fetchHasChanges())return;this.remove(),f=this,this.redraw(),f=void 0}getInsertAfterNode(){return this.getLastNode()||this.getPrecedingNode()}getChildPrevSibling(){return this.lastChild}}class c extends D{el;svg;prevSibling;constructor(J,X,W=!1){super(W?H.cleaners:[]);this.el=J;this.svg=X;if(J===H.el)this.prevSibling=H.getChildPrevSibling(),H.lastChild=this;else this.prevSibling=J.lastChild||void 0;if(!W)H.cleaners.push(this)}getPrecedingNode(){return E(this.prevSibling)}getChildPrevSibling(){return this.lastChild||this.prevSibling}}class XJ extends c{renderer;constructor(J,X,W){super(J,X);this.renderer=W;this.redraw()}redraw(){let J=H;H=this;try{this.renderer()}catch(X){zJ(X,!0)}H=J}}class WJ extends D{el=document.body;svg=!1;getPrecedingNode(){return}}class BJ extends D{el;renderer;svg;constructor(J,X){super();this.el=J;this.renderer=X;this.svg=J.namespaceURI==="http://www.w3.org/2000/svg",this.redraw(),H.cleaners.push(this)}redraw(){XJ.prototype.redraw.call(this)}getPrecedingNode(){return}delete(){y(this.getLastNode(),this.getPrecedingNode()),super.delete()}remove(){this.delete()}}function y(J,X){while(J&&J!==X){let W=J.previousSibling,z=s.get(J);if(z&&J instanceof Element){if(z!==!0){if(typeof z==="function")z(J);else xJ(J,z);s.set(J,!0)}}else J.remove();J=W}}function E(J){if(!J||J instanceof Node)return J;return J.getLastNode()||J.getPrecedingNode()}class AJ extends c{renderer;result=N({value:void 0});constructor(J){super(H.el,H.svg);this.renderer=J;this.redraw()}redraw(){let J=H;H=this;try{this.result.value=this.renderer()}catch(X){zJ(X,!0)}H=J}}class VJ extends c{key;target;svg=!1;constructor(J,X,W){super(J,J.namespaceURI==="http://www.w3.org/2000/svg");this.key=X;this.target=W;this.redraw()}redraw(){let J=H;H=this,L(this.el,this.key,this.target.value),H=J}}class CJ extends JJ{renderer;makeSortKey;parentElement=H.el;prevSibling;target;byIndex=new Map;sortedSet=new v("sortKey");changedIndexes=new Map;constructor(J,X,W){super();this.renderer=X;this.makeSortKey=W;let z=this.target=J[Q]||J;if(B(z,C,this),this.prevSibling=H.getChildPrevSibling(),H.lastChild=this,H.cleaners.push(this),z instanceof Array)for(let U=0;U<z.length;U++)new x(this,U,!1);else for(let U of z instanceof Map?z.keys():Object.keys(z))new x(this,U,!1)}getPrecedingNode(){return E(this.prevSibling)}onChange(J,X,W,z){if(!(J instanceof Array)||typeof X==="number")if(this.changedIndexes.has(X)){if(this.changedIndexes.get(X)===W)this.changedIndexes.delete(X)}else this.changedIndexes.set(X,z),e(this)}queueRun(){let J=this.changedIndexes;this.changedIndexes=new Map;for(let X of J.keys()){let W=this.byIndex.get(X);if(W)W.remove();if(this.target instanceof Map?this.target.has(X):(X in this.target))new x(this,X,!0);else this.byIndex.delete(X)}f=void 0}delete(){for(let J of this.byIndex.values())J.delete();h?.remove(this),this.byIndex.clear(),setTimeout(()=>{this.sortedSet.clear()},1)}getLastNode(){for(let J of this.sortedSet){let X=J.getActualLastNode();if(X)return X}}}class x extends D{parent;itemIndex;sortKey;el;svg;constructor(J,X,W){super();this.parent=J;this.itemIndex=X;if(this.el=J.parentElement,this.svg=H.svg,this.parent.byIndex.set(this.itemIndex,this),this.lastChild=this,W)f=this;this.redraw()}getPrecedingNode(){this.parent.sortedSet.add(this);let J=this.parent.sortedSet.prev(this);if(J)return E(J.lastChild);return this.parent.getPrecedingNode()}getLastNode(){return this.getPrecedingNode()}getActualLastNode(){let J=this.lastChild;while(J&&J!==this){if(J instanceof Node)return J;let X=J.getLastNode();if(X)return X;J=J.getPrecedingNode()}}queueRun(){if(H!==m)KJ(4);if(!this.fetchHasChanges())return;if(this.sortKey!==void 0){let J=this.getActualLastNode();if(J)y(J,this.getPrecedingNode())}this.delete(),this.lastChild=this,f=this,this.redraw(),f=void 0}redraw(){let J,X=this.parent.target,W=this.itemIndex;if(X instanceof Map)J=N(X.get(W)),W=N(W);else J=N(X[W]);let z=H;H=this;let U;try{if(this.parent.makeSortKey){let Z=this.parent.makeSortKey(J,W);if(Z!=null)U=Z instanceof Array?Z.map(UJ).join(""):Z}else U=W;if(typeof U==="number")U=UJ(U);if(this.sortKey!==U)this.parent.sortedSet.remove(this),this.sortKey=U;if(U!=null)this.parent.renderer(J,W)}catch(Z){zJ(Z,U!=null)}H=z}getInsertAfterNode(){if(this.sortKey==null)KJ(1);return E(this.lastChild)}remove(){if(this.sortKey!==void 0){let J=this.getActualLastNode();if(J)y(J,this.getPrecedingNode());this.parent.sortedSet.remove(this),this.sortKey=void 0}this.delete()}}function i(J,X){if(J!==H.el){J.appendChild(X);return}let W=H.el,z=H.getInsertAfterNode();W.insertBefore(X,z?z.nextSibling:W.firstChild),H.lastChild=X}var m=new WJ,H=m;function bJ(J){let X=H;H=new WJ;try{return J()}finally{H=X}}var C=Symbol("any"),Q=Symbol("target"),T=Symbol("mapSize"),n=new WeakMap,g=0;function B(J,X,W=H){if(W===m||g)return;let z=n.get(J);if(!z)n.set(J,z=new Map);if(X!==C&&z.get(C)?.has(W))return;let U=z.get(X);if(!U)z.set(X,U=new Set);if(U.has(W))return;if(U.add(W),W===H)H.cleaners.push(U);else H.cleaners.push(()=>{U.delete(W)})}function d(J,X,W){if(!J||typeof J!=="object")throw Error("onEach requires an object");J=J[Q]||J,new CJ(J,X,W)}function o(J){for(let X of Object.keys(J))return!1;return!0}var K=Symbol("empty");function EJ(J){let X=J[Q]||J,W=H;if(X instanceof Array)return B(X,"length",(U,Z,F)=>{if(!Z!==!F)W.onChange(X,K,!Z,!F)}),!X.length;if(X instanceof Map)return B(X,T,(U,Z,F)=>{if(!Z!==!F)W.onChange(X,K,!Z,!F)}),!X.size;let z=o(X);return B(X,C,(U,Z,F)=>{if(Z===K!==(F===K)){let q=o(X);W.onChange(X,K,q,z),z=q}}),z}function sJ(J){if(J instanceof Array)return r(J,"length");if(J instanceof Map)return r(J,"size");let X=J[Q]||J,W=0;for(let U of Object.keys(X))if(X[U]!==void 0)W++;let z=LJ(W);return B(X,C,(U,Z,F)=>{if(F===Z);else if(F===K)z.value=++W;else if(Z===K)z.value=--W}),z}function PJ(J,X,W,z){if(W===z&&W!==void 0)return;let U=n.get(J);if(U===void 0)return;for(let Z of[X,C]){let F=U.get(Z);if(F)for(let q of F)if(typeof q==="function")q(X,W,z);else q.onChange(J,X,W,z)}}var G=PJ,DJ={get(J,X){if(X===Q)return J;return B(J,X),N(J[X])},set(J,X,W){if(typeof W==="object"&&W)W=W[Q]||W;let z=J.hasOwnProperty(X)?J[X]:K;if(W!==z)J[X]=W,G(J,X,W,z);return!0},deleteProperty(J,X){let W=J.hasOwnProperty(X)?J[X]:K;return delete J[X],G(J,X,K,W),!0},has(J,X){return B(J,X),J.hasOwnProperty(X)},ownKeys(J){return B(J,C),Reflect.ownKeys(J)}};function mJ(J,X,W){if(typeof W==="object"&&W)W=W[Q]||W;let z=J[X];if(z===void 0&&!J.hasOwnProperty(X))z=K;if(W!==z){let U=J.length;if(X==="length"){J.length=W;for(let Z=W;Z<U;Z++)G(J,Z,K,J[Z])}else{if(typeof X==="string"){let Z=0|X;if(String(Z)===X&&Z>=0)X=Z}J[X]=W,G(J,X,W,z)}if(J.length!==U)G(J,"length",J.length,U)}return!0}var vJ={get(J,X){if(X===Q)return J;if(typeof X==="string"){let W=0|X;if(String(W)===X&&W>=0)X=W}return B(J,X),N(J[X])},set:mJ,deleteProperty(J,X){if(typeof X==="string"){let z=0|X;if(String(z)===X&&z>=0)X=z}let W=J[X];if(W===void 0&&!J.hasOwnProperty(X))W=K;return delete J[X],G(J,X,K,W),!0}};function ZJ(J){return{[Symbol.iterator](){return this},next(){let X=J.next();if(X.done)return X;return{done:!1,value:N(X.value)}}}}function FJ(J){return{[Symbol.iterator](){return this},next(){let X=J.next();if(X.done)return X;return{done:!1,value:[N(X.value[0]),N(X.value[1])]}}}}var qJ={get(J){let X=this[Q];if(typeof J==="object"&&J)J=J[Q]||J;return B(X,J),N(X.get(J))},set(J,X){let W=this[Q];if(typeof J==="object"&&J)J=J[Q]||J;if(typeof X==="object"&&X)X=X[Q]||X;let z=W.get(J);if(z===void 0&&!W.has(J))z=K;if(X!==z){let U=W.size;W.set(J,X),G(W,J,X,z),G(W,T,W.size,U)}return this},delete(J){let X=this[Q];if(typeof J==="object"&&J)J=J[Q]||J;let W=X.get(J);if(W===void 0&&!X.has(J))W=K;let z=X.delete(J);if(z)G(X,J,K,W),G(X,T,X.size,X.size+1);return z},clear(){let J=this[Q],X=J.size;for(let W of J.keys())G(J,W,void 0,J.get(W));J.clear(),G(J,T,0,X)},has(J){let X=this[Q];if(typeof J==="object"&&J)J=J[Q]||J;return B(X,J),X.has(J)},keys(){let J=this[Q];return B(J,C),ZJ(J.keys())},values(){let J=this[Q];return B(J,C),ZJ(J.values())},entries(){let J=this[Q];return B(J,C),FJ(J.entries())},[Symbol.iterator](){let J=this[Q];return B(J,C),FJ(J[Symbol.iterator]())}},kJ={get(J,X){if(X===Q)return J;if(qJ.hasOwnProperty(X))return qJ[X];if(X==="size")return B(J,T),J.size;return J[X]}},HJ=new WeakMap;function N(J){if(typeof J!=="object"||!J||J[Q]!==void 0||Y in J)return J;let X=HJ.get(J);if(X)return X;let W;if(J instanceof Array)W=vJ;else if(J instanceof Map)W=kJ;else W=DJ;return X=new Proxy(J,W),HJ.set(J,X),X}function LJ(J){if(J instanceof Promise){let X=N({busy:!0});return J.then((W)=>{X.value=W,X.busy=!1}).catch((W)=>{X.error=W,X.busy=!1}),X}return N(typeof J==="object"&&J!==null?J:{value:J})}function IJ(J){return J?J[Q]||J:J}var s=new WeakMap;function xJ(J,X){let W=X.split(".").filter((z)=>z);J.classList.add(...W),setTimeout(()=>J.remove(),2000)}function aJ(J,X,W){if(arguments.length>2)return RJ(J,X,W,0);return p(J,X,0)}function RJ(J,X,W,z){let U=dJ(J,X);if(W===U)return!1;if(typeof U==="object"&&U&&typeof W==="object"&&W&&U.constructor===W.constructor)return p(U,W,z);if(W=b(W),J instanceof Map)J.set(X,W);else J[X]=b(W);return!0}function rJ(J,X,W){if(arguments.length>2)return RJ(J,X,W,P);return p(J,X,P)}function p(J,X,W){let z=J[Q];if(z)J=z,W|=_;if(z=X[Q],z){if(X=z,H!==m&&!g)W|=_J}return S(J,X,W)}function S(J,X,W){if(W&_J)B(X,C);let z=!1;if(X instanceof Array&&J instanceof Array){let U=J.length,Z=X.length;for(let F=0;F<Z;F++){let q=J[F];if(q===void 0&&!J.hasOwnProperty(F))q=K;let $=X[F];if($===void 0&&!X.hasOwnProperty(F)){if(delete J[F],W&_)G(J,F,K,q);z=!0}else if(q!==$){if($&&typeof $==="object"){if(typeof q==="object"&&q&&$.constructor===q.constructor&&!(Y in $)){z=S(q,$,W)||z;continue}$=b($)}if(J[F]=$,W&_)G(J,F,$,q);z=!0}}if(Z!==U){if(W&_){for(let F=Z;F<U;F++){let q=J[F];delete J[F],G(J,F,K,q)}J.length=Z,G(J,"length",Z,U)}else J.length=Z;z=!0}}else if(X instanceof Map&&J instanceof Map){for(let U of X.keys()){let Z=X.get(U),F=J.get(U);if(F===void 0&&!J.has(U))F=K;if(F!==Z){if(Z&&typeof Z==="object"){if(typeof F==="object"&&F&&Z.constructor===F.constructor&&!(Y in Z)){z=S(F,Z,W)||z;continue}Z=b(Z)}if(J.set(U,Z),W&_)G(J,U,Z,F);z=!0}}if(!(W&P)){for(let U of J.keys())if(!X.has(U)){let Z=J.get(U);if(J.delete(U),W&_)G(J,U,K,Z);z=!0}}}else if(X.constructor===J.constructor){for(let U of Object.keys(X)){let Z=X[U],F=J.hasOwnProperty(U)?J[U]:K;if(F!==Z){if(Z&&typeof Z==="object"){if(typeof F==="object"&&F&&Z.constructor===F.constructor&&!(Y in Z)){z=S(F,Z,W)||z;continue}Z=b(Z)}if(J[U]=Z,W&_)G(J,U,Z,F);z=!0}}if(!(W&P)){for(let U of Object.keys(J))if(!X.hasOwnProperty(U)){let Z=J[U];if(delete J[U],W&_&&Z!==void 0)G(J,U,K,Z);z=!0}}}else throw Error(`Incompatible or non-object types: ${X?.constructor?.name||typeof X} vs ${J?.constructor?.name||typeof J}`);return z}var P=1,_J=32,_=64,Y=Symbol("NO_COPY");Promise.prototype[Y]=!0;var a=N({});function tJ(J=1,X="rem"){for(let W=0;W<=12;W++)a[W]=2**(W-3)*J+X}var SJ=/(\([^)]*\))|("[^"]*")|(^| )\$(\w+)/g,hJ=/^\d/;function fJ(J){if(J.indexOf("$")<0)return J;return J.replace(SJ,(X,W,z,U,Z)=>{if(W||z)return X;let F=hJ.test(Z)?`m${Z}`:Z;return`${U}var(--${F})`})}if(typeof document<"u")bJ(()=>{V(()=>{if(!EJ(a))cJ(document.head,()=>{V("style",()=>{let J=`:root {
2
+ `;for(let[X,W]of Object.entries(a)){let z=hJ.test(String(X))?`m${X}`:X;J+=` --${z}: ${W};
3
+ `}J+="}",V(`#${J}`)})})})});var k;function eJ(){if(!k){if(typeof window>"u"||!window.matchMedia)return!1;let J=window.matchMedia("(prefers-color-scheme: dark)");k=LJ({value:J.matches}),J.addEventListener("change",()=>k.value=J.matches)}return k.value}function b(J){if(Y in J)return J;let X=Array.isArray(J)?[]:J instanceof Map?new Map:Object.create(Object.getPrototypeOf(J));return p(X,J,P),X}var yJ={get(J,X){if(X===Q)return r(IJ(J.proxy),J.index);if(X==="value")return J.proxy[J.index]},set(J,X,W){if(X==="value")return J.proxy[J.index]=W,!0;return!1}};function r(J,X){return new Proxy({proxy:J,index:X},yJ)}function iJ(J,X){let W,z,U=J.getAttribute("type"),Z=IJ(X).value;if(U==="checkbox"){if(Z===void 0)X.value=J.checked;W=()=>{J.checked=X.value},z=()=>{X.value=J.checked}}else if(U==="radio"){if(Z===void 0&&J.checked)X.value=J.value;W=()=>{J.checked=X.value===J.value},z=()=>{if(J.checked)X.value=J.value}}else{if(z=()=>{X.value=U==="number"||U==="range"?J.value===""?null:+J.value:J.value},Z===void 0)z();W=()=>{if(J.value=X.value,J.tagName==="SELECT"&&J.value!=X.value)new NJ(()=>J.value=X.value)}}uJ(W),J.addEventListener("input",z),O(()=>{J.removeEventListener("input",z)})}var jJ={create:(J,X)=>{if(H!==f)return;if(typeof X==="function")X(J);else{let W=X.split(".").filter((z)=>z);J.classList.add(...W),(async()=>{J.offsetHeight,J.classList.remove(...W)})()}},destroy:(J,X)=>{s.set(J,X)},html:(J,X)=>{let W=document.createElement(H.el.tagName);W.innerHTML=`${X}`;while(W.firstChild)i(J,W.firstChild)},text:(J,X)=>{i(J,document.createTextNode(X))}};function V(...J){let{el:X,svg:W}=H,z=J.length;for(let U=0;U<z;U++){let Z=J[U];if(Z==null||Z===!1);else if(typeof Z==="string"){let F=Z.length,q=0;for(let $=0;$<F;$=q+1){q=w(Z," .=:#",$);let R=Z[q];if(R===":"){let j="$"+Z.substring($,q);if(q+1>=F){L(X,j,J[++U]);break}if(Z[q+1]===" "){let A=w(Z,";",q+2),I=Z.substring(q+2,A).trim();L(X,j,I),q=A}else{let A=w(Z," ",q+1),I=Z.substring(q+1,A);L(X,j,I),q=A}}else if(R==="="){let j=Z.substring($,q);if(q+1>=F){L(X,j,J[++U]);break}let A=Z[q+1];if(A==='"'||A==="'"||A==="`"){let I=w(Z,A,q+2),l=Z.substring(q+2,I);L(X,j,l),q=I}else{let I=w(Z," ",q+1),l=Z.substring(q+1,I);L(X,j,l),q=I}}else{if(q>$){let j=Z.substring($,q);W||=j==="svg";let A=W?document.createElementNS("http://www.w3.org/2000/svg",j):document.createElement(j);i(X,A),X=A}if(R==="#"){let j=q+1<F?Z.substring(q+1):J[++U];L(X,"text",j);break}if(R==="."){let j=w(Z," #=.",q+1);if(Z[j]==="="&&j+1>=F)L(X,Z.substring(q,j),J[++U]),q=j;else{let A=Z.substring(q+1,j);X.classList.add(A||J[++U]),q=j-1}}}}}else if(typeof Z==="object")if(Z.constructor!==Object)if(Z instanceof Node){if(i(X,Z),Z instanceof Element)X=Z,W=Z.namespaceURI==="http://www.w3.org/2000/svg"}else throw Error(`Unexpected argument: ${Z}`);else for(let F of Object.keys(Z))L(X,F,Z[F]);else if(typeof Z==="function")new XJ(X,W,Z);else throw Error(`Unexpected argument: ${Z}`)}return X}function w(J,X,W){if(X.length===1){let U=J.indexOf(X,W);return U>=0?U:J.length}let z=J.length;for(let U=W;U<z;U++)if(X.indexOf(J[U])>=0)return U;return z}var YJ=0;function JX(J){let X=`.AbdStl${++YJ}`,W=typeof J==="string"?t(J,X):u(J,X);if(W)V(`style#${W}`);return X}function $J(J,X){let W=[];for(let z of J.split(","))for(let U of X.split(","))W.push(U.includes("&")?U.trim().replace(/&/g,z):`${z} ${U.trim()}`.trim());return W.join(",")}function u(J,X){let W="";for(let[z,U]of Object.entries(J))if(U&&typeof U==="object")if(z.startsWith("@"))W+=`${z}{
4
4
  ${u(U,X)}}
5
- `;else{let Z=z==="&"?X:z.includes("&")?z.replace(/&/g,X):`${X} ${z}`.trim();W+=u(U,Z)}else if(typeof U==="string")if(z.startsWith("@"))W+=`${z}{
5
+ `;else W+=u(U,$J(X,z));else if(typeof U==="string")if(z.startsWith("@"))W+=`${z}{
6
6
  ${t(U,X)}}
7
- `;else{let Z=z.includes("&")?z.replace(/&/g,X):`${X} ${z}`.trim();W+=t(U,Z)}return W}var iJ=/-([a-z])/g;function $J(J){return J.replace(iJ,(X,W)=>W.toUpperCase())}function t(J,X){let W="";for(let z=0,U=J.length;z<U;){while(J[z]===" ")z++;if(z>=U)break;let Z=J.indexOf(":",z);if(Z===-1)break;let F=J.substring(z,Z);z=Z+1;let q;if(J[z]===" "){z++;let j=J.indexOf(";",z);q=J.substring(z,j===-1?U:j).trim(),z=j===-1?U:j+1}else{let j=J.indexOf(" ",z);q=J.substring(z,j===-1?U:j),z=j===-1?U:j}let $=hJ(q),R=YJ[F]||F;W+=typeof R==="string"?`${R}:${$};`:R.map((j)=>`${j}:${$};`).join("")}return W?`${X}{${W}}
8
- `:""}function JX(J){let X=u(J,"");if(X)V(`style#${X}`)}var YJ={m:"margin",mt:"margin-top",mb:"margin-bottom",ml:"margin-left",mr:"margin-right",mh:["margin-left","margin-right"],mv:["margin-top","margin-bottom"],p:"padding",pt:"padding-top",pb:"padding-bottom",pl:"padding-left",pr:"padding-right",ph:["padding-left","padding-right"],pv:["padding-top","padding-bottom"],w:"width",h:"height",bg:"background",fg:"color",r:"border-radius"};function L(J,X,W){if(typeof W==="object"&&W!==null&&W[Q])if(X==="bind")yJ(J,W);else new AJ(J,X,W);else if(X[0]==="."){let z=X.substring(1).split(".");if(W)J.classList.add(...z);else J.classList.remove(...z)}else if(X[0]==="$"){X=X.substring(1);let z=W==null||W===!1?"":typeof W==="string"?hJ(W):String(W),U=YJ[X]||X;if(typeof U==="string")J.style[$J(U)]=z;else for(let Z of U)J.style[$J(Z)]=z}else if(W==null);else if(X in jJ)jJ[X](J,W);else if(typeof W==="function"){if(J.addEventListener(X,W),J===H.el)O(()=>J.removeEventListener(X,W))}else if(W===!0||W===!1||X==="value"||X==="selectedIndex")J[X]=W;else J.setAttribute(X,W)}function wJ(J){return console.error("Error while in Aberdeen render:",J),!0}var MJ=wJ;function XX(J){MJ=J||wJ}function O(J){H.cleaners.push(J)}function gJ(J){return new BJ(J).result}function uJ(J,X){new NJ(J,X)}function WX(){m.remove(),fJ=0}function cJ(J,X){g++;try{if(arguments.length===1)return J();else return J instanceof Map?J.get(X):J[X]}finally{g--}}function zX(J,X){let W;if(J instanceof Array)W=N([]);else if(J instanceof Map)W=N(new Map);else W=N({});return d(J,(z,U)=>{let Z=X(z,U);if(Z!==void 0)if(W instanceof Map)W.set(U,Z),O(()=>{W.delete(U)});else W[U]=Z,O(()=>{delete W[U]})}),W}function UX(J,X){let W=N({});return d(J,(z,U)=>{let Z=X(z,U);if(Z){for(let F of Object.keys(Z))W[F]=Z[F];O(()=>{for(let F of Object.keys(Z))delete W[F]})}}),W}function ZX(J,X){let W={},z=N(W);return d(J,(U,Z)=>{let F=X(U,Z);if(F!=null){let q=F instanceof Array?F:[F];if(q.length){for(let $ of q)if(W[$])z[$][Z]=U;else z[$]={[Z]:U};O(()=>{for(let $ of q)if(delete z[$][Z],o(W[$]))delete z[$]})}}}),z}function dJ(J){if(J&&typeof J==="object"){let X=J.constructor.name.toLowerCase()||"unknown object";if(V(`#<${X}>`),Y in J)V("# [NO_COPY]");else V("ul",()=>{d(J,(W,z)=>{V("li",()=>{V(`#${JSON.stringify(z)}: `),dJ(W)})})})}else if(J!==void 0)V("#"+JSON.stringify(J));return J}function QJ(J){throw Error(`Aberdeen internal error ${J}`)}function zJ(J,X){try{if(MJ(J)===!1)X=!1}catch(W){console.error(W)}try{if(X)V("div.aberdeen-error#Error")}catch{}}function FX(J,X){let W=G;G=J;try{X()}finally{G=W}}export{FX as withEmitHandler,LJ as unproxy,WX as unmountAll,rJ as setSpacingCssVars,XX as setErrorHandler,OJ as runQueue,r as ref,CJ as proxy,cJ as peek,ZX as partition,d as onEach,UX as multiMap,uJ as mount,aJ as merge,zX as map,TJ as leakScope,bJ as isEmpty,nJ as invertString,JX as insertGlobalCss,eJ as insertCss,dJ as dump,gJ as derive,PJ as defaultEmitHandler,tJ as darkMode,a as cssVars,oJ as count,sJ as copy,b as clone,O as clean,Y as NO_COPY,V as $};
7
+ `;else W+=t(U,$J(X,z));return W}var gJ=/-([a-z])/g;function QJ(J){return J.replace(gJ,(X,W)=>W.toUpperCase())}function t(J,X){let W="";for(let z=0,U=J.length;z<U;){while(J[z]===" ")z++;if(z>=U)break;let Z=J.indexOf(":",z);if(Z===-1)break;let F=J.substring(z,Z);z=Z+1;let q;if(J[z]===" "){z++;let j=J.indexOf(";",z);q=J.substring(z,j===-1?U:j).trim(),z=j===-1?U:j+1}else{let j=J.indexOf(" ",z);q=J.substring(z,j===-1?U:j),z=j===-1?U:j}let $=fJ(q),R=wJ[F]||F;W+=typeof R==="string"?`${R}:${$};`:R.map((j)=>`${j}:${$};`).join("")}return W?`${X}{${W}}
8
+ `:""}function XX(J){let X=u(J,"");if(X)V(`style#${X}`)}var wJ={m:"margin",mt:"margin-top",mb:"margin-bottom",ml:"margin-left",mr:"margin-right",mh:["margin-left","margin-right"],mv:["margin-top","margin-bottom"],p:"padding",pt:"padding-top",pb:"padding-bottom",pl:"padding-left",pr:"padding-right",ph:["padding-left","padding-right"],pv:["padding-top","padding-bottom"],w:"width",h:"height",bg:"background",fg:"color",r:"border-radius"};function L(J,X,W){if(typeof W==="object"&&W!==null&&W[Q])if(X==="bind")iJ(J,W);else new VJ(J,X,W);else if(X[0]==="."){let z=X.substring(1).split(".");if(W)J.classList.add(...z);else J.classList.remove(...z)}else if(X[0]==="$"){X=X.substring(1);let z=W==null||W===!1?"":typeof W==="string"?fJ(W):String(W),U=wJ[X]||X;if(typeof U==="string")J.style[QJ(U)]=z;else for(let Z of U)J.style[QJ(Z)]=z}else if(W==null);else if(X in jJ)jJ[X](J,W);else if(typeof W==="function"){if(J.addEventListener(X,W),J===H.el)O(()=>J.removeEventListener(X,W))}else if(W===!0||W===!1||X==="value"||X==="selectedIndex")J[X]=W;else J.setAttribute(X,W)}function MJ(J){return console.error("Error while in Aberdeen render:",J),!0}var OJ=MJ;function WX(J){OJ=J||MJ}function O(J){H.cleaners.push(J)}function uJ(J){return new AJ(J).result}function cJ(J,X){new BJ(J,X)}function zX(){m.remove(),YJ=0}function dJ(J,X){g++;try{if(arguments.length===1)return J();else return J instanceof Map?J.get(X):J[X]}finally{g--}}function UX(J,X){let W;if(J instanceof Array)W=N([]);else if(J instanceof Map)W=N(new Map);else W=N({});return d(J,(z,U)=>{let Z=X(z,U);if(Z!==void 0)if(W instanceof Map)W.set(U,Z),O(()=>{W.delete(U)});else W[U]=Z,O(()=>{delete W[U]})}),W}function ZX(J,X){let W=N({});return d(J,(z,U)=>{let Z=X(z,U);if(Z){for(let F of Object.keys(Z))W[F]=Z[F];O(()=>{for(let F of Object.keys(Z))delete W[F]})}}),W}function FX(J,X){let W={},z=N(W);return d(J,(U,Z)=>{let F=X(U,Z);if(F!=null){let q=F instanceof Array?F:[F];if(q.length){for(let $ of q)if(W[$])z[$][Z]=U;else z[$]={[Z]:U};O(()=>{for(let $ of q)if(delete z[$][Z],o(W[$]))delete z[$]})}}}),z}function pJ(J){if(J&&typeof J==="object"){let X=J.constructor.name.toLowerCase()||"unknown object";if(V(`#<${X}>`),Y in J)V("# [NO_COPY]");else V("ul",()=>{d(J,(W,z)=>{V("li",()=>{V(`#${JSON.stringify(z)}: `),pJ(W)})})})}else if(J!==void 0)V("#"+JSON.stringify(J));return J}function KJ(J){throw Error(`Aberdeen internal error ${J}`)}function zJ(J,X){try{if(OJ(J)===!1)X=!1}catch(W){console.error(W)}try{if(X)V("div.aberdeen-error#Error")}catch{}}function qX(J,X){let W=G;G=J;try{X()}finally{G=W}}export{qX as withEmitHandler,IJ as unproxy,zX as unmountAll,tJ as setSpacingCssVars,WX as setErrorHandler,TJ as runQueue,r as ref,LJ as proxy,dJ as peek,FX as partition,d as onEach,ZX as multiMap,cJ as mount,rJ as merge,UX as map,bJ as leakScope,EJ as isEmpty,oJ as invertString,XX as insertGlobalCss,JX as insertCss,pJ as dump,uJ as derive,PJ as defaultEmitHandler,eJ as darkMode,a as cssVars,sJ as count,aJ as copy,b as clone,O as clean,Y as NO_COPY,V as $};
9
9
 
10
- //# debugId=4FF89A88B326BB3764756E2164756E21
10
+ //# debugId=2B628B8F207DC70364756E2164756E21
11
11
  //# sourceMappingURL=aberdeen.js.map