Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
4.5 KiB

function M(){}function T(t,n){for(const e in n)t[e]=n[e];return t}function N(t){return t()}function v(){return Object.create(null)}function g(t){t.forEach(N)}function D(t){return typeof t=="function"}function R(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let m;function V(t,n){return m||(m=document.createElement("a")),m.href=n,t===m.href}function U(t){return Object.keys(t).length===0}function W(t,n,e,r){if(t){const o=O(t,n,e,r);return t[0](o)}}function O(t,n,e,r){return t[1]&&r?T(e.ctx.slice(),t[1](r(n))):e.ctx}function X(t,n,e,r){if(t[2]&&r){const o=t[2](r(e));if(n.dirty===void 0)return o;if(typeof o=="object"){const f=[],s=Math.max(n.dirty.length,o.length);for(let i=0;i<s;i+=1)f[i]=n.dirty[i]|o[i];return f}return n.dirty|o}return n.dirty}function Y(t,n,e,r,o,f){if(o){const s=O(n,e,r,f);t.p(s,o)}}function Z(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 tt(t,n){t.appendChild(n)}function nt(t,n,e){t.insertBefore(n,e||null)}function G(t){t.parentNode.removeChild(t)}function et(t){return document.createElement(t)}function P(t){return document.createTextNode(t)}function rt(){return P(" ")}function ot(){return P("")}function ct(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function H(t){return Array.from(t.childNodes)}function ut(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function st(t,n,e,r){e===null?t.style.removeProperty(n):t.style.setProperty(n,e,r?"important":"")}let h;function _(t){h=t}function k(){if(!h)throw new Error("Function called outside component initialization");return h}function it(t){k().$$.on_mount.push(t)}function ft(t){k().$$.after_update.push(t)}function at(t,n){return k().$$.context.set(t,n),n}const d=[],S=[],y=[],q=[],z=Promise.resolve();let b=!1;function B(){b||(b=!0,z.then(F))}function lt(){return B(),z}function w(t){y.push(t)}const $=new Set;let p=0;function F(){const t=h;do{for(;p<d.length;){const n=d[p];p++,_(n),I(n.$$)}for(_(null),d.length=0,p=0;S.length;)S.pop()();for(let n=0;n<y.length;n+=1){const e=y[n];$.has(e)||($.add(e),e())}y.length=0}while(d.length);for(;q.length;)q.pop()();b=!1,$.clear(),_(t)}function I(t){if(t.fragment!==null){t.update(),g(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(w)}}const x=new Set;let l;function dt(){l={r:0,c:[],p:l}}function _t(){l.r||g(l.c),l=l.p}function J(t,n){t&&t.i&&(x.delete(t),t.i(n))}function ht(t,n,e,r){if(t&&t.o){if(x.has(t))return;x.add(t),l.c.push(()=>{x.delete(t),r&&(e&&t.d(1),r())}),t.o(n)}}function gt(t,n){const e={},r={},o={$$scope:1};let f=t.length;for(;f--;){const s=t[f],i=n[f];if(i){for(const c in s)c in i||(r[c]=1);for(const c in i)o[c]||(e[c]=i[c],o[c]=1);t[f]=i}else for(const c in s)o[c]=1}for(const s in r)s in e||(e[s]=void 0);return e}function mt(t){return typeof t=="object"&&t!==null?t:{}}function pt(t){t&&t.c()}function K(t,n,e,r){const{fragment:o,on_mount:f,on_destroy:s,after_update:i}=t.$$;o&&o.m(n,e),r||w(()=>{const c=f.map(N).filter(D);s?s.push(...c):g(c),t.$$.on_mount=[]}),i.forEach(w)}function L(t,n){const e=t.$$;e.fragment!==null&&(g(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Q(t,n){t.$$.dirty[0]===-1&&(d.push(t),B(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function yt(t,n,e,r,o,f,s,i=[-1]){const c=h;_(t);const u=t.$$={fragment:null,ctx:null,props:f,update:M,not_equal:o,bound:v(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(c?c.$$.context:[])),callbacks:v(),dirty:i,skip_bound:!1,root:n.target||c.$$.root};s&&s(u.root);let E=!1;if(u.ctx=e?e(t,n.props||{},(a,j,...A)=>{const C=A.length?A[0]:j;return u.ctx&&o(u.ctx[a],u.ctx[a]=C)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](C),E&&Q(t,a)),j}):[],u.update(),E=!0,g(u.before_update),u.fragment=r?r(u.ctx):!1,n.target){if(n.hydrate){const a=H(n.target);u.fragment&&u.fragment.l(a),a.forEach(G)}else u.fragment&&u.fragment.c();n.intro&&J(t.$$.fragment),K(t,n.target,n.anchor,n.customElement),F()}_(c)}class xt{$destroy(){L(this,1),this.$destroy=M}$on(n,e){const r=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return r.push(e),()=>{const o=r.indexOf(e);o!==-1&&r.splice(o,1)}}$set(n){this.$$set&&!U(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}export{W as A,V as B,tt as C,Y as D,Z as E,X as F,xt as S,ct as a,st as b,nt as c,ut as d,et as e,G as f,rt as g,ot as h,yt as i,dt as j,ht as k,_t as l,J as m,M as n,at as o,ft as p,it as q,pt as r,R as s,P as t,K as u,gt as v,mt as w,L as x,T as y,lt as z};