@bloxbean/yaci-viewer
Version:
A Cardano blockchain data viewer for developers. It works with the Yaci-Store backend, supporting both a local devnet and public networks.
2 lines (1 loc) • 2.37 kB
JavaScript
import{at as g,K as R,au as S,V,av as m,q as _,o as b,j as k,x as l,L as I,aw as D,ax as O,F as j,A as C,ay as M,y as H,v as Y,p as B,i as E,B as P,b as W,Z as $}from"./runtime.NVyxXVLy.js";import{b as q,d as A,h as p,f as x}from"./disclose-version.BTC8Bk4r.js";function Q(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const z=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function X(e){return z.includes(e)}const F={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function ee(e){return e=e.toLowerCase(),F[e]??e}const G=["touchstart","touchmove"];function K(e){return G.includes(e)}function te(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r==null?"":r+"")}function U(e,t){return L(e,t)}function re(e,t){g(),t.intro=t.intro??!1;const r=t.target,c=E,f=l;try{for(var o=R(r);o&&(o.nodeType!==8||o.data!==S);)o=V(o);if(!o)throw m;_(!0),b(o),k();const u=L(e,{...t,anchor:o});if(l===null||l.nodeType!==8||l.data!==I)throw D(),m;return _(!1),u}catch(u){if(u===m)return t.recover===!1&&O(),g(),j(r),_(!1),U(e,t);throw u}finally{_(c),b(f)}}const i=new Map;function L(e,{target:t,anchor:r,props:c={},events:f,context:o,intro:u=!0}){g();var h=new Set,v=s=>{for(var n=0;n<s.length;n++){var a=s[n];if(!h.has(a)){h.add(a);var d=K(a);t.addEventListener(a,p,{passive:d});var T=i.get(a);T===void 0?(document.addEventListener(a,p,{passive:d}),i.set(a,1)):i.set(a,T+1)}}};v(C(q)),A.add(v);var y=void 0,N=M(()=>{var s=r??t.appendChild(H());return Y(()=>{if(o){B({});var n=$;n.c=o}f&&(c.$$events=f),E&&x(s,null),y=e(s,c)||{},E&&(P.nodes_end=l),o&&W()}),()=>{var d;for(var n of h){t.removeEventListener(n,p);var a=i.get(n);--a===0?(document.removeEventListener(n,p),i.delete(n)):i.set(n,a)}A.delete(v),s!==r&&((d=s.parentNode)==null||d.removeChild(s))}});return w.set(y,N),y}let w=new WeakMap;function oe(e,t){const r=w.get(e);return r?(w.delete(e),r(t)):Promise.resolve()}export{X as a,re as h,Q as i,U as m,ee as n,te as s,oe as u};