fcf-deployer
Version:
A GUI to help you deploy your Firebase Cloud Functions when working locally
2 lines (1 loc) • 7.91 kB
JavaScript
var O=Object.defineProperty;var P=(e,t,n)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _=(e,t,n)=>(P(e,typeof t!="symbol"?t+"":t,n),n);import{z as j,r as p,n as x,A as E,B as G,i as H,C as I,D as N,E as R,F as z,G as A,H as F,I as J,J as q}from"./scheduler.18f76329.js";let y=!1;function K(){y=!0}function V(){y=!1}function W(e,t,n,i){for(;e<t;){const s=e+(t-e>>1);n(s)<=i?e=s+1:t=s}return e}function Q(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if(e.nodeName==="HEAD"){const r=[];for(let c=0;c<t.length;c++){const u=t[c];u.claim_order!==void 0&&r.push(u)}t=r}const n=new Int32Array(t.length+1),i=new Int32Array(t.length);n[0]=-1;let s=0;for(let r=0;r<t.length;r++){const c=t[r].claim_order,u=(s>0&&t[n[s]].claim_order<=c?s+1:W(1,s,h=>t[n[h]].claim_order,c))-1;i[r]=n[u]+1;const o=u+1;n[o]=r,s=Math.max(o,s)}const a=[],l=[];let f=t.length-1;for(let r=n[s]+1;r!=0;r=i[r-1]){for(a.push(t[r-1]);f>=r;f--)l.push(t[f]);f--}for(;f>=0;f--)l.push(t[f]);a.reverse(),l.sort((r,c)=>r.claim_order-c.claim_order);for(let r=0,c=0;r<l.length;r++){for(;c<a.length&&l[r].claim_order>=a[c].claim_order;)c++;const u=c<a.length?a[c]:null;e.insertBefore(l[r],u)}}function U(e,t){if(y){for(Q(e),(e.actual_end_child===void 0||e.actual_end_child!==null&&e.actual_end_child.parentNode!==e)&&(e.actual_end_child=e.firstChild);e.actual_end_child!==null&&e.actual_end_child.claim_order===void 0;)e.actual_end_child=e.actual_end_child.nextSibling;t!==e.actual_end_child?(t.claim_order!==void 0||t.parentNode!==e)&&e.insertBefore(t,e.actual_end_child):e.actual_end_child=t.nextSibling}else(t.parentNode!==e||t.nextSibling!==null)&&e.appendChild(t)}function X(e,t,n){e.insertBefore(t,n||null)}function Y(e,t,n){y&&!n?U(e,t):(t.parentNode!==e||t.nextSibling!=n)&&e.insertBefore(t,n||null)}function $(e){e.parentNode&&e.parentNode.removeChild(e)}function he(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function C(e){return document.createElement(e)}function L(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function g(e){return document.createTextNode(e)}function me(){return g(" ")}function $e(){return g("")}function pe(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function T(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const Z=["width","height"];function k(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)t[i]==null?e.removeAttribute(i):i==="style"?e.style.cssText=t[i]:i==="__value"?e.value=e[i]=t[i]:n[i]&&n[i].set&&Z.indexOf(i)===-1?e[i]=t[i]:T(e,i,t[i])}function ye(e,t){for(const n in t)T(e,n,t[n])}function ee(e,t){Object.keys(t).forEach(n=>{te(e,n,t[n])})}function te(e,t,n){t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:T(e,t,n)}function xe(e){return/-/.test(e)?ee:k}function ge(e){return e.dataset.svelteH}function ne(e){return Array.from(e.childNodes)}function M(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function D(e,t,n,i,s=!1){M(e);const a=(()=>{for(let l=e.claim_info.last_index;l<e.length;l++){const f=e[l];if(t(f)){const r=n(f);return r===void 0?e.splice(l,1):e[l]=r,s||(e.claim_info.last_index=l),f}}for(let l=e.claim_info.last_index-1;l>=0;l--){const f=e[l];if(t(f)){const r=n(f);return r===void 0?e.splice(l,1):e[l]=r,s?r===void 0&&e.claim_info.last_index--:e.claim_info.last_index=l,f}}return i()})();return a.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,a}function B(e,t,n,i){return D(e,s=>s.nodeName===t,s=>{const a=[];for(let l=0;l<s.attributes.length;l++){const f=s.attributes[l];n[f.name]||a.push(f.name)}a.forEach(l=>s.removeAttribute(l))},()=>i(t))}function Te(e,t,n){return B(e,t,n,C)}function ve(e,t,n){return B(e,t,n,L)}function ie(e,t){return D(e,n=>n.nodeType===3,n=>{const i=""+t;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>g(t),!0)}function we(e){return ie(e," ")}function b(e,t,n){for(let i=n;i<e.length;i+=1){const s=e[i];if(s.nodeType===8&&s.textContent.trim()===t)return i}return-1}function Ee(e,t){const n=b(e,"HTML_TAG_START",0),i=b(e,"HTML_TAG_END",n+1);if(n===-1||i===-1)return new S(t);M(e);const s=e.splice(n,i-n+1);$(s[0]),$(s[s.length-1]);const a=s.slice(1,s.length-1);for(const l of a)l.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1;return new S(t,a)}function se(e,t){t=""+t,e.data!==t&&(e.data=t)}function re(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function Ne(e,t,n){~j.indexOf(n)?re(e,t):se(e,t)}function Ae(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function be(e,t){const n=[];let i=0;for(const s of t.childNodes)if(s.nodeType===8){const a=s.textContent.trim();a===`HEAD_${e}_END`?(i-=1,n.push(s)):a===`HEAD_${e}_START`&&(i+=1,n.push(s))}else i>0&&n.push(s);return n}class le{constructor(t=!1){_(this,"is_svg",!1);_(this,"e");_(this,"n");_(this,"t");_(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,i=null){this.e||(this.is_svg?this.e=L(n.nodeName):this.e=C(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(i)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)X(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach($)}}class S extends le{constructor(n=!1,i){super(n);_(this,"l");this.e=this.n=null,this.l=i}c(n){this.l?this.n=this.l:super.c(n)}i(n){for(let i=0;i<this.n.length;i+=1)Y(this.t,this.n[i],n)}}function Se(e,t){return new e(t)}const m=new Set;let d;function He(){d={r:0,c:[],p:d}}function Ce(){d.r||p(d.c),d=d.p}function ce(e,t){e&&e.i&&(m.delete(e),e.i(t))}function Le(e,t,n,i){if(e&&e.o){if(m.has(e))return;m.add(e),d.c.push(()=>{m.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Me(e,t,n){const i=e.$$.props[t];i!==void 0&&(e.$$.bound[i]=n,n(e.$$.ctx[i]))}function De(e){e&&e.c()}function Be(e,t){e&&e.l(t)}function ae(e,t,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),N(()=>{const a=e.$$.on_mount.map(F).filter(H);e.$$.on_destroy?e.$$.on_destroy.push(...a):p(a),e.$$.on_mount=[]}),s.forEach(N)}function fe(e,t){const n=e.$$;n.fragment!==null&&(R(n.after_update),p(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function oe(e,t){e.$$.dirty[0]===-1&&(J.push(e),q(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Oe(e,t,n,i,s,a,l,f=[-1]){const r=z;A(e);const c=e.$$={fragment:null,ctx:[],props:a,update:x,not_equal:s,bound:E(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(r?r.$$.context:[])),callbacks:E(),dirty:f,skip_bound:!1,root:t.target||r.$$.root};l&&l(c.root);let u=!1;if(c.ctx=n?n(e,t.props||{},(o,h,...v)=>{const w=v.length?v[0]:h;return c.ctx&&s(c.ctx[o],c.ctx[o]=w)&&(!c.skip_bound&&c.bound[o]&&c.bound[o](w),u&&oe(e,o)),h}):[],c.update(),u=!0,p(c.before_update),c.fragment=i?i(c.ctx):!1,t.target){if(t.hydrate){K();const o=ne(t.target);c.fragment&&c.fragment.l(o),o.forEach($)}else c.fragment&&c.fragment.c();t.intro&&ce(e.$$.fragment),ae(e,t.target,t.anchor),V(),G()}A(r)}class Pe{constructor(){_(this,"$$");_(this,"$$set")}$destroy(){fe(this,1),this.$destroy=x}$on(t,n){if(!H(n))return x;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!I(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ue="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ue);export{pe as A,Me as B,L as C,ve as D,Ne as E,ge as F,he as G,S as H,Ee as I,ye as J,xe as K,Pe as S,Y as a,Ce as b,we as c,ce as d,$e as e,$ as f,C as g,Te as h,Oe as i,ne as j,T as k,Ae as l,g as m,ie as n,se as o,He as p,Se as q,De as r,me as s,Le as t,Be as u,ae as v,fe as w,be as x,U as y,k as z};