1 line
1.8 KiB
JavaScript
1 line
1.8 KiB
JavaScript
function f(){}const b=t=>t;function _(t,n){for(const e in n)t[e]=n[e];return t}function d(t){return t()}function h(){return Object.create(null)}function p(t){t.forEach(d)}function y(t){return typeof t=="function"}function g(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let c;function x(t,n){return t===n?!0:(c||(c=document.createElement("a")),c.href=n,t===c.href)}function m(t){return Object.keys(t).length===0}function a(t,...n){if(t==null){for(const r of n)r(void 0);return f}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function j(t){let n;return a(t,e=>n=e)(),n}function k(t,n,e){t.$$.on_destroy.push(a(n,e))}function q(t,n,e,r){if(t){const s=l(t,n,e,r);return t[0](s)}}function l(t,n,e,r){return t[1]&&r?_(e.ctx.slice(),t[1](r(n))):e.ctx}function v(t,n,e,r){if(t[2]&&r){const s=t[2](r(e));if(n.dirty===void 0)return s;if(typeof s=="object"){const o=[],i=Math.max(n.dirty.length,s.length);for(let u=0;u<i;u+=1)o[u]=n.dirty[u]|s[u];return o}return n.dirty|s}return n.dirty}function w(t,n,e,r,s,o){if(s){const i=l(n,e,r,o);t.p(i,s)}}function E(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let r=0;r<e;r++)n[r]=-1;return n}return-1}function O(t){const n={};for(const e in t)e[0]!=="$"&&(n[e]=t[e]);return n}function F(t,n){const e={};n=new Set(n);for(const r in t)!n.has(r)&&r[0]!=="$"&&(e[r]=t[r]);return e}function M(t){const n={};for(const e in t)n[e]=!0;return n}function S(t,n,e){return t.set(e),n}function z(t){return t&&y(t.destroy)?t.destroy:f}function A(t){const n=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return n?[parseFloat(n[1]),n[2]||"px"]:[t,"px"]}export{g as a,_ as b,q as c,v as d,F as e,O as f,E as g,b as h,y as i,h as j,m as k,d as l,j as m,f as n,A as o,k as p,M as q,p as r,a as s,z as t,w as u,x as v,S as w};
|