fcf-deployer
Version:
A GUI to help you deploy your Firebase Cloud Functions when working locally
185 lines • 233 kB
JavaScript
import{s as ot,c as qe,f as z,h as de,i as Fe,u as Ge,g as We,d as ze,r as It,j as Le,k as ht,l as Ne,o as mt,m as en,p as _t,b as Me,q as cn,v as Be,n as Ot,w as $s,e as Nt,x as on,y as An}from"../chunks/scheduler.18f76329.js";import{S as ut,i as ct,s as Ie,g as ae,c as ge,h as oe,j as be,f as O,z as ne,a as K,A as Ee,d as H,t as B,B as dn,r as he,u as Ae,v as me,w as _e,q as Sn,e as Qe,p as dt,b as ft,k as ce,y as Te,m as je,n as Ke,o as bt,C as Nn,D as Un,E as $i,F as yn,l as jn,G as Xn}from"../chunks/index.6f2b8e44.js";import{g as er,_ as Lt,a as it,M as vt,n as st,b as is,c as tr,d as nr,K as pn,e as ee,u as Je,f as ye,h as pt,i as ue,j as Pe,p as Jn,S as Tn,R as ln,k as Gt,l as sr,m as ir,P as rr,o as lr,q as xt}from"../chunks/Ripple.6649fc0f.js";import{w as an}from"../chunks/singletons.8dae8caa.js";const ar=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function ei(n,e){return function(){return n.apply(e,arguments)}}const{toString:or}=Object.prototype,{getPrototypeOf:Qn}=Object,On=(n=>e=>{const t=or.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Dt=n=>(n=n.toLowerCase(),e=>On(e)===n),Ln=n=>e=>typeof e===n,{isArray:tn}=Array,un=Ln("undefined");function ur(n){return n!==null&&!un(n)&&n.constructor!==null&&!un(n.constructor)&&Rt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const ti=Dt("ArrayBuffer");function cr(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&ti(n.buffer),e}const dr=Ln("string"),Rt=Ln("function"),ni=Ln("number"),vn=n=>n!==null&&typeof n=="object",fr=n=>n===!0||n===!1,gn=n=>{if(On(n)!=="object")return!1;const e=Qn(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},hr=Dt("Date"),mr=Dt("File"),_r=Dt("Blob"),pr=Dt("FileList"),Ir=n=>vn(n)&&Rt(n.pipe),gr=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||Rt(n.append)&&((e=On(n))==="formdata"||e==="object"&&Rt(n.toString)&&n.toString()==="[object FormData]"))},Er=Dt("URLSearchParams"),br=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fn(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let s,i;if(typeof n!="object"&&(n=[n]),tn(n))for(s=0,i=n.length;s<i;s++)e.call(null,n[s],s,n);else{const r=t?Object.getOwnPropertyNames(n):Object.keys(n),l=r.length;let a;for(s=0;s<l;s++)a=r[s],e.call(null,n[a],a,n)}}function si(n,e){e=e.toLowerCase();const t=Object.keys(n);let s=t.length,i;for(;s-- >0;)if(i=t[s],e===i.toLowerCase())return i;return null}const ii=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ri=n=>!un(n)&&n!==ii;function Kn(){const{caseless:n}=ri(this)&&this||{},e={},t=(s,i)=>{const r=n&&si(e,i)||i;gn(e[r])&&gn(s)?e[r]=Kn(e[r],s):gn(s)?e[r]=Kn({},s):tn(s)?e[r]=s.slice():e[r]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&fn(arguments[s],t);return e}const Cr=(n,e,t,{allOwnKeys:s}={})=>(fn(e,(i,r)=>{t&&Rt(i)?n[r]=ei(i,t):n[r]=i},{allOwnKeys:s}),n),Ar=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Sr=(n,e,t,s)=>{n.prototype=Object.create(e.prototype,s),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},Tr=(n,e,t,s)=>{let i,r,l;const a={};if(e=e||{},n==null)return e;do{for(i=Object.getOwnPropertyNames(n),r=i.length;r-- >0;)l=i[r],(!s||s(l,n,e))&&!a[l]&&(e[l]=n[l],a[l]=!0);n=t!==!1&&Qn(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},Rr=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const s=n.indexOf(e,t);return s!==-1&&s===t},yr=n=>{if(!n)return null;if(tn(n))return n;let e=n.length;if(!ni(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},Or=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Qn(Uint8Array)),Lr=(n,e)=>{const s=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=s.next())&&!i.done;){const r=i.value;e.call(n,r[0],r[1])}},vr=(n,e)=>{let t;const s=[];for(;(t=n.exec(e))!==null;)s.push(t);return s},Dr=Dt("HTMLFormElement"),Mr=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,s,i){return s.toUpperCase()+i}),rs=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),kr=Dt("RegExp"),li=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),s={};fn(t,(i,r)=>{let l;(l=e(i,r,n))!==!1&&(s[r]=l||i)}),Object.defineProperties(n,s)},Nr=n=>{li(n,(e,t)=>{if(Rt(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const s=n[t];if(Rt(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Ur=(n,e)=>{const t={},s=i=>{i.forEach(r=>{t[r]=!0})};return tn(n)?s(n):s(String(n).split(e)),t},Hr=()=>{},wr=(n,e)=>(n=+n,Number.isFinite(n)?n:e),Hn="abcdefghijklmnopqrstuvwxyz",ls="0123456789",ai={DIGIT:ls,ALPHA:Hn,ALPHA_DIGIT:Hn+Hn.toUpperCase()+ls},Fr=(n=16,e=ai.ALPHA_DIGIT)=>{let t="";const{length:s}=e;for(;n--;)t+=e[Math.random()*s|0];return t};function Pr(n){return!!(n&&Rt(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Br=n=>{const e=new Array(10),t=(s,i)=>{if(vn(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[i]=s;const r=tn(s)?[]:{};return fn(s,(l,a)=>{const o=t(l,i+1);!un(o)&&(r[a]=o)}),e[i]=void 0,r}}return s};return t(n,0)},Vr=Dt("AsyncFunction"),jr=n=>n&&(vn(n)||Rt(n))&&Rt(n.then)&&Rt(n.catch),D={isArray:tn,isArrayBuffer:ti,isBuffer:ur,isFormData:gr,isArrayBufferView:cr,isString:dr,isNumber:ni,isBoolean:fr,isObject:vn,isPlainObject:gn,isUndefined:un,isDate:hr,isFile:mr,isBlob:_r,isRegExp:kr,isFunction:Rt,isStream:Ir,isURLSearchParams:Er,isTypedArray:Or,isFileList:pr,forEach:fn,merge:Kn,extend:Cr,trim:br,stripBOM:Ar,inherits:Sr,toFlatObject:Tr,kindOf:On,kindOfTest:Dt,endsWith:Rr,toArray:yr,forEachEntry:Lr,matchAll:vr,isHTMLForm:Dr,hasOwnProperty:rs,hasOwnProp:rs,reduceDescriptors:li,freezeMethods:Nr,toObjectSet:Ur,toCamelCase:Mr,noop:Hr,toFiniteNumber:wr,findKey:si,global:ii,isContextDefined:ri,ALPHABET:ai,generateString:Fr,isSpecCompliantForm:Pr,toJSONObject:Br,isAsyncFn:Vr,isThenable:jr};function De(n,e,t,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),s&&(this.request=s),i&&(this.response=i)}D.inherits(De,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const oi=De.prototype,ui={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{ui[n]={value:n}});Object.defineProperties(De,ui);Object.defineProperty(oi,"isAxiosError",{value:!0});De.from=(n,e,t,s,i,r)=>{const l=Object.create(oi);return D.toFlatObject(n,l,function(o){return o!==Error.prototype},a=>a!=="isAxiosError"),De.call(l,n.message,e,t,s,i),l.cause=n,l.name=n.name,r&&Object.assign(l,r),l};const Kr=null;function qn(n){return D.isPlainObject(n)||D.isArray(n)}function ci(n){return D.endsWith(n,"[]")?n.slice(0,-2):n}function as(n,e,t){return n?n.concat(e).map(function(i,r){return i=ci(i),!t&&r?"["+i+"]":i}).join(t?".":""):e}function qr(n){return D.isArray(n)&&!n.some(qn)}const Gr=D.toFlatObject(D,{},null,function(e){return/^is[A-Z]/.test(e)});function Dn(n,e,t){if(!D.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=D.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,f){return!D.isUndefined(f[h])});const s=t.metaTokens,i=t.visitor||d,r=t.dots,l=t.indexes,o=(t.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(e);if(!D.isFunction(i))throw new TypeError("visitor must be a function");function u(_){if(_===null)return"";if(D.isDate(_))return _.toISOString();if(!o&&D.isBlob(_))throw new De("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(_)||D.isTypedArray(_)?o&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function d(_,h,f){let E=_;if(_&&!f&&typeof _=="object"){if(D.endsWith(h,"{}"))h=s?h:h.slice(0,-2),_=JSON.stringify(_);else if(D.isArray(_)&&qr(_)||(D.isFileList(_)||D.endsWith(h,"[]"))&&(E=D.toArray(_)))return h=ci(h),E.forEach(function(w,N){!(D.isUndefined(w)||w===null)&&e.append(l===!0?as([h],N,r):l===null?h:h+"[]",u(w))}),!1}return qn(_)?!0:(e.append(as(f,h,r),u(_)),!1)}const c=[],m=Object.assign(Gr,{defaultVisitor:d,convertValue:u,isVisitable:qn});function p(_,h){if(!D.isUndefined(_)){if(c.indexOf(_)!==-1)throw Error("Circular reference detected in "+h.join("."));c.push(_),D.forEach(_,function(E,S){(!(D.isUndefined(E)||E===null)&&i.call(e,E,D.isString(S)?S.trim():S,h,m))===!0&&p(E,h?h.concat(S):[S])}),c.pop()}}if(!D.isObject(n))throw new TypeError("data must be an object");return p(n),e}function os(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function Yn(n,e){this._pairs=[],n&&Dn(n,this,e)}const di=Yn.prototype;di.append=function(e,t){this._pairs.push([e,t])};di.toString=function(e){const t=e?function(s){return e.call(this,s,os)}:os;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};function Wr(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fi(n,e,t){if(!e)return n;const s=t&&t.encode||Wr,i=t&&t.serialize;let r;if(i?r=i(e,t):r=D.isURLSearchParams(e)?e.toString():new Yn(e,t).toString(s),r){const l=n.indexOf("#");l!==-1&&(n=n.slice(0,l)),n+=(n.indexOf("?")===-1?"?":"&")+r}return n}class zr{constructor(){this.handlers=[]}use(e,t,s){return this.handlers.push({fulfilled:e,rejected:t,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){D.forEach(this.handlers,function(s){s!==null&&e(s)})}}const us=zr,hi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xr=typeof URLSearchParams<"u"?URLSearchParams:Yn,Jr=typeof FormData<"u"?FormData:null,Qr=typeof Blob<"u"?Blob:null,Yr=(()=>{let n;return typeof navigator<"u"&&((n=navigator.product)==="ReactNative"||n==="NativeScript"||n==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),xr=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),yt={isBrowser:!0,classes:{URLSearchParams:Xr,FormData:Jr,Blob:Qr},isStandardBrowserEnv:Yr,isStandardBrowserWebWorkerEnv:xr,protocols:["http","https","file","blob","url","data"]};function Zr(n,e){return Dn(n,new yt.classes.URLSearchParams,Object.assign({visitor:function(t,s,i,r){return yt.isNode&&D.isBuffer(t)?(this.append(s,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}function $r(n){return D.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function el(n){const e={},t=Object.keys(n);let s;const i=t.length;let r;for(s=0;s<i;s++)r=t[s],e[r]=n[r];return e}function mi(n){function e(t,s,i,r){let l=t[r++];const a=Number.isFinite(+l),o=r>=t.length;return l=!l&&D.isArray(i)?i.length:l,o?(D.hasOwnProp(i,l)?i[l]=[i[l],s]:i[l]=s,!a):((!i[l]||!D.isObject(i[l]))&&(i[l]=[]),e(t,s,i[l],r)&&D.isArray(i[l])&&(i[l]=el(i[l])),!a)}if(D.isFormData(n)&&D.isFunction(n.entries)){const t={};return D.forEachEntry(n,(s,i)=>{e($r(s),i,t,0)}),t}return null}function tl(n,e,t){if(D.isString(n))try{return(e||JSON.parse)(n),D.trim(n)}catch(s){if(s.name!=="SyntaxError")throw s}return(t||JSON.stringify)(n)}const xn={transitional:hi,adapter:yt.isNode?"http":"xhr",transformRequest:[function(e,t){const s=t.getContentType()||"",i=s.indexOf("application/json")>-1,r=D.isObject(e);if(r&&D.isHTMLForm(e)&&(e=new FormData(e)),D.isFormData(e))return i&&i?JSON.stringify(mi(e)):e;if(D.isArrayBuffer(e)||D.isBuffer(e)||D.isStream(e)||D.isFile(e)||D.isBlob(e))return e;if(D.isArrayBufferView(e))return e.buffer;if(D.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Zr(e,this.formSerializer).toString();if((a=D.isFileList(e))||s.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return Dn(a?{"files[]":e}:e,o&&new o,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),tl(e)):e}],transformResponse:[function(e){const t=this.transitional||xn.transitional,s=t&&t.forcedJSONParsing,i=this.responseType==="json";if(e&&D.isString(e)&&(s&&!this.responseType||i)){const l=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(l)throw a.name==="SyntaxError"?De.from(a,De.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],n=>{xn.headers[n]={}});const Zn=xn,nl=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sl=n=>{const e={};let t,s,i;return n&&n.split(`
`).forEach(function(l){i=l.indexOf(":"),t=l.substring(0,i).trim().toLowerCase(),s=l.substring(i+1).trim(),!(!t||e[t]&&nl[t])&&(t==="set-cookie"?e[t]?e[t].push(s):e[t]=[s]:e[t]=e[t]?e[t]+", "+s:s)}),e},cs=Symbol("internals");function nn(n){return n&&String(n).trim().toLowerCase()}function En(n){return n===!1||n==null?n:D.isArray(n)?n.map(En):String(n)}function il(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=t.exec(n);)e[s[1]]=s[2];return e}const rl=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function wn(n,e,t,s,i){if(D.isFunction(s))return s.call(this,e,t);if(i&&(e=t),!!D.isString(e)){if(D.isString(s))return e.indexOf(s)!==-1;if(D.isRegExp(s))return s.test(e)}}function ll(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,s)=>t.toUpperCase()+s)}function al(n,e){const t=D.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(n,s+t,{value:function(i,r,l){return this[s].call(this,e,i,r,l)},configurable:!0})})}class Mn{constructor(e){e&&this.set(e)}set(e,t,s){const i=this;function r(a,o,u){const d=nn(o);if(!d)throw new Error("header name must be a non-empty string");const c=D.findKey(i,d);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||o]=En(a))}const l=(a,o)=>D.forEach(a,(u,d)=>r(u,d,o));return D.isPlainObject(e)||e instanceof this.constructor?l(e,t):D.isString(e)&&(e=e.trim())&&!rl(e)?l(sl(e),t):e!=null&&r(t,e,s),this}get(e,t){if(e=nn(e),e){const s=D.findKey(this,e);if(s){const i=this[s];if(!t)return i;if(t===!0)return il(i);if(D.isFunction(t))return t.call(this,i,s);if(D.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=nn(e),e){const s=D.findKey(this,e);return!!(s&&this[s]!==void 0&&(!t||wn(this,this[s],s,t)))}return!1}delete(e,t){const s=this;let i=!1;function r(l){if(l=nn(l),l){const a=D.findKey(s,l);a&&(!t||wn(s,s[a],a,t))&&(delete s[a],i=!0)}}return D.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let s=t.length,i=!1;for(;s--;){const r=t[s];(!e||wn(this,this[r],r,e,!0))&&(delete this[r],i=!0)}return i}normalize(e){const t=this,s={};return D.forEach(this,(i,r)=>{const l=D.findKey(s,r);if(l){t[l]=En(i),delete t[r];return}const a=e?ll(r):String(r).trim();a!==r&&delete t[r],t[a]=En(i),s[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return D.forEach(this,(s,i)=>{s!=null&&s!==!1&&(t[i]=e&&D.isArray(s)?s.join(", "):s)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const s=new this(e);return t.forEach(i=>s.set(i)),s}static accessor(e){const s=(this[cs]=this[cs]={accessors:{}}).accessors,i=this.prototype;function r(l){const a=nn(l);s[a]||(al(i,l),s[a]=!0)}return D.isArray(e)?e.forEach(r):r(e),this}}Mn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(Mn.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(s){this[t]=s}}});D.freezeMethods(Mn);const Ut=Mn;function Fn(n,e){const t=this||Zn,s=e||t,i=Ut.from(s.headers);let r=s.data;return D.forEach(n,function(a){r=a.call(t,r,i.normalize(),e?e.status:void 0)}),i.normalize(),r}function _i(n){return!!(n&&n.__CANCEL__)}function hn(n,e,t){De.call(this,n??"canceled",De.ERR_CANCELED,e,t),this.name="CanceledError"}D.inherits(hn,De,{__CANCEL__:!0});function ol(n,e,t){const s=t.config.validateStatus;!t.status||!s||s(t.status)?n(t):e(new De("Request failed with status code "+t.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const ul=yt.isStandardBrowserEnv?function(){return{write:function(t,s,i,r,l,a){const o=[];o.push(t+"="+encodeURIComponent(s)),D.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),D.isString(r)&&o.push("path="+r),D.isString(l)&&o.push("domain="+l),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){const s=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function cl(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function dl(n,e){return e?n.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):n}function pi(n,e){return n&&!cl(e)?dl(n,e):e}const fl=yt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let s;function i(r){let l=r;return e&&(t.setAttribute("href",l),l=t.href),t.setAttribute("href",l),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return s=i(window.location.href),function(l){const a=D.isString(l)?i(l):l;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function hl(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function ml(n,e){n=n||10;const t=new Array(n),s=new Array(n);let i=0,r=0,l;return e=e!==void 0?e:1e3,function(o){const u=Date.now(),d=s[r];l||(l=u),t[i]=o,s[i]=u;let c=r,m=0;for(;c!==i;)m+=t[c++],c=c%n;if(i=(i+1)%n,i===r&&(r=(r+1)%n),u-l<e)return;const p=d&&u-d;return p?Math.round(m*1e3/p):void 0}}function ds(n,e){let t=0;const s=ml(50,250);return i=>{const r=i.loaded,l=i.lengthComputable?i.total:void 0,a=r-t,o=s(a),u=r<=l;t=r;const d={loaded:r,total:l,progress:l?r/l:void 0,bytes:a,rate:o||void 0,estimated:o&&l&&u?(l-r)/o:void 0,event:i};d[e?"download":"upload"]=!0,n(d)}}const _l=typeof XMLHttpRequest<"u",pl=_l&&function(n){return new Promise(function(t,s){let i=n.data;const r=Ut.from(n.headers).normalize(),l=n.responseType;let a;function o(){n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}D.isFormData(i)&&(yt.isStandardBrowserEnv||yt.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(n.auth){const p=n.auth.username||"",_=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";r.set("Authorization","Basic "+btoa(p+":"+_))}const d=pi(n.baseURL,n.url);u.open(n.method.toUpperCase(),fi(d,n.params,n.paramsSerializer),!0),u.timeout=n.timeout;function c(){if(!u)return;const p=Ut.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),h={data:!l||l==="text"||l==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:n,request:u};ol(function(E){t(E),o()},function(E){s(E),o()},h),u=null}if("onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(c)},u.onabort=function(){u&&(s(new De("Request aborted",De.ECONNABORTED,n,u)),u=null)},u.onerror=function(){s(new De("Network Error",De.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let _=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const h=n.transitional||hi;n.timeoutErrorMessage&&(_=n.timeoutErrorMessage),s(new De(_,h.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,n,u)),u=null},yt.isStandardBrowserEnv){const p=(n.withCredentials||fl(d))&&n.xsrfCookieName&&ul.read(n.xsrfCookieName);p&&r.set(n.xsrfHeaderName,p)}i===void 0&&r.setContentType(null),"setRequestHeader"in u&&D.forEach(r.toJSON(),function(_,h){u.setRequestHeader(h,_)}),D.isUndefined(n.withCredentials)||(u.withCredentials=!!n.withCredentials),l&&l!=="json"&&(u.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&u.addEventListener("progress",ds(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",ds(n.onUploadProgress)),(n.cancelToken||n.signal)&&(a=p=>{u&&(s(!p||p.type?new hn(null,n,u):p),u.abort(),u=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const m=hl(d);if(m&&yt.protocols.indexOf(m)===-1){s(new De("Unsupported protocol "+m+":",De.ERR_BAD_REQUEST,n));return}u.send(i||null)})},bn={http:Kr,xhr:pl};D.forEach(bn,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Ii={getAdapter:n=>{n=D.isArray(n)?n:[n];const{length:e}=n;let t,s;for(let i=0;i<e&&(t=n[i],!(s=D.isString(t)?bn[t.toLowerCase()]:t));i++);if(!s)throw s===!1?new De(`Adapter ${t} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(D.hasOwnProp(bn,t)?`Adapter '${t}' is not available in the build`:`Unknown adapter '${t}'`);if(!D.isFunction(s))throw new TypeError("adapter is not a function");return s},adapters:bn};function Pn(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new hn(null,n)}function fs(n){return Pn(n),n.headers=Ut.from(n.headers),n.data=Fn.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Ii.getAdapter(n.adapter||Zn.adapter)(n).then(function(s){return Pn(n),s.data=Fn.call(n,n.transformResponse,s),s.headers=Ut.from(s.headers),s},function(s){return _i(s)||(Pn(n),s&&s.response&&(s.response.data=Fn.call(n,n.transformResponse,s.response),s.response.headers=Ut.from(s.response.headers))),Promise.reject(s)})}const hs=n=>n instanceof Ut?n.toJSON():n;function Zt(n,e){e=e||{};const t={};function s(u,d,c){return D.isPlainObject(u)&&D.isPlainObject(d)?D.merge.call({caseless:c},u,d):D.isPlainObject(d)?D.merge({},d):D.isArray(d)?d.slice():d}function i(u,d,c){if(D.isUndefined(d)){if(!D.isUndefined(u))return s(void 0,u,c)}else return s(u,d,c)}function r(u,d){if(!D.isUndefined(d))return s(void 0,d)}function l(u,d){if(D.isUndefined(d)){if(!D.isUndefined(u))return s(void 0,u)}else return s(void 0,d)}function a(u,d,c){if(c in e)return s(u,d);if(c in n)return s(void 0,u)}const o={url:r,method:r,data:r,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(u,d)=>i(hs(u),hs(d),!0)};return D.forEach(Object.keys(Object.assign({},n,e)),function(d){const c=o[d]||i,m=c(n[d],e[d],d);D.isUndefined(m)&&c!==a||(t[d]=m)}),t}const gi="1.5.0",$n={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{$n[n]=function(s){return typeof s===n||"a"+(e<1?"n ":" ")+n}});const ms={};$n.transitional=function(e,t,s){function i(r,l){return"[Axios v"+gi+"] Transitional option '"+r+"'"+l+(s?". "+s:"")}return(r,l,a)=>{if(e===!1)throw new De(i(l," has been removed"+(t?" in "+t:"")),De.ERR_DEPRECATED);return t&&!ms[l]&&(ms[l]=!0,console.warn(i(l," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(r,l,a):!0}};function Il(n,e,t){if(typeof n!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const s=Object.keys(n);let i=s.length;for(;i-- >0;){const r=s[i],l=e[r];if(l){const a=n[r],o=a===void 0||l(a,r,n);if(o!==!0)throw new De("option "+r+" must be "+o,De.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new De("Unknown option "+r,De.ERR_BAD_OPTION)}}const Gn={assertOptions:Il,validators:$n},Ht=Gn.validators;class Rn{constructor(e){this.defaults=e,this.interceptors={request:new us,response:new us}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Zt(this.defaults,t);const{transitional:s,paramsSerializer:i,headers:r}=t;s!==void 0&&Gn.assertOptions(s,{silentJSONParsing:Ht.transitional(Ht.boolean),forcedJSONParsing:Ht.transitional(Ht.boolean),clarifyTimeoutError:Ht.transitional(Ht.boolean)},!1),i!=null&&(D.isFunction(i)?t.paramsSerializer={serialize:i}:Gn.assertOptions(i,{encode:Ht.function,serialize:Ht.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=r&&D.merge(r.common,r[t.method]);r&&D.forEach(["delete","get","head","post","put","patch","common"],_=>{delete r[_]}),t.headers=Ut.concat(l,r);const a=[];let o=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(o=o&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let d,c=0,m;if(!o){const _=[fs.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,u),m=_.length,d=Promise.resolve(t);c<m;)d=d.then(_[c++],_[c++]);return d}m=a.length;let p=t;for(c=0;c<m;){const _=a[c++],h=a[c++];try{p=_(p)}catch(f){h.call(this,f);break}}try{d=fs.call(this,p)}catch(_){return Promise.reject(_)}for(c=0,m=u.length;c<m;)d=d.then(u[c++],u[c++]);return d}getUri(e){e=Zt(this.defaults,e);const t=pi(e.baseURL,e.url);return fi(t,e.params,e.paramsSerializer)}}D.forEach(["delete","get","head","options"],function(e){Rn.prototype[e]=function(t,s){return this.request(Zt(s||{},{method:e,url:t,data:(s||{}).data}))}});D.forEach(["post","put","patch"],function(e){function t(s){return function(r,l,a){return this.request(Zt(a||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:r,data:l}))}}Rn.prototype[e]=t(),Rn.prototype[e+"Form"]=t(!0)});const Cn=Rn;class es{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(r){t=r});const s=this;this.promise.then(i=>{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](i);s._listeners=null}),this.promise.then=i=>{let r;const l=new Promise(a=>{s.subscribe(a),r=a}).then(i);return l.cancel=function(){s.unsubscribe(r)},l},e(function(r,l,a){s.reason||(s.reason=new hn(r,l,a),t(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new es(function(i){e=i}),cancel:e}}}const gl=es;function El(n){return function(t){return n.apply(null,t)}}function bl(n){return D.isObject(n)&&n.isAxiosError===!0}const Wn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Wn).forEach(([n,e])=>{Wn[e]=n});const Cl=Wn;function Ei(n){const e=new Cn(n),t=ei(Cn.prototype.request,e);return D.extend(t,Cn.prototype,e,{allOwnKeys:!0}),D.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return Ei(Zt(n,i))},t}const rt=Ei(Zn);rt.Axios=Cn;rt.CanceledError=hn;rt.CancelToken=gl;rt.isCancel=_i;rt.VERSION=gi;rt.toFormData=Dn;rt.AxiosError=De;rt.Cancel=rt.CanceledError;rt.all=function(e){return Promise.all(e)};rt.spread=El;rt.isAxiosError=bl;rt.mergeConfig=Zt;rt.AxiosHeaders=Ut;rt.formToJSON=n=>mi(D.isHTMLForm(n)?new FormData(n):n);rt.getAdapter=Ii.getAdapter;rt.HttpStatusCode=Cl;rt.default=rt;const Al=rt,Wt=async(n,e)=>{try{return{data:(await Al({url:er(n),method:(e==null?void 0:e.method)||"get",data:e==null?void 0:e.body,headers:e==null?void 0:e.headers})).data,error:null}}catch(t){const s=t,i={message:s.message};return s.response?(i.data=s.response.data,i.status=s.response.status,i.headers=s.response.headers,i.message=s.response.data.error||i.message):s.request&&(i.message="Could not send request. Please check if you're online"),{data:null,error:i}}},Sl=async()=>{const{data:n}=await Wt("/git/is-git-repo");return(n==null?void 0:n.isGitRepo)||!1},Tl=async()=>{const{data:n}=await Wt("/git/list-branches");return(n==null?void 0:n.branches)||[]},Rl=async n=>{const{data:e}=await Wt("/git/switch-branch",{method:"post",body:{branchName:n}});return(e==null?void 0:e.successful)||!1},yl=async()=>{const{data:n}=await Wt("/git/active-branch");return(n==null?void 0:n.branch)||null},_s=async()=>{const{data:n}=await Wt("/functions/list");return(n==null?void 0:n.functions)||[]},Ol=async()=>{const{data:n}=await Wt("/functions/environments");return(n==null?void 0:n.environments)||[]},Ll=async(n,e)=>{const{data:t}=await Wt("/functions/start-deployment",{method:"post",body:{functionsList:n,environment:e}});return(t==null?void 0:t.jobId)||null};function $t(n,e){let t=Object.getOwnPropertyNames(n);const s={};for(let i=0;i<t.length;i++){const r=t[i],l=r.indexOf("$");l!==-1&&e.indexOf(r.substring(0,l+1))!==-1||e.indexOf(r)===-1&&(s[r]=n[r])}return s}function ke(n,e){let t=Object.getOwnPropertyNames(n);const s={};for(let i=0;i<t.length;i++){const r=t[i];r.substring(0,e.length)===e&&(s[r.substring(e.length)]=n[r])}return s}/**
* @license
* Copyright 2016 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/var vl={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"};/**
* @license
* Copyright 2016 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/var Dl=function(n){Lt(e,n);function e(t){var s=n.call(this,it(it({},e.defaultAdapter),t))||this;return s.shakeAnimationEndHandler=function(){s.handleShakeAnimationEnd()},s}return Object.defineProperty(e,"cssClasses",{get:function(){return vl},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.getWidth=function(){return this.adapter.getWidth()},e.prototype.shake=function(t){var s=e.cssClasses.LABEL_SHAKE;t?this.adapter.addClass(s):this.adapter.removeClass(s)},e.prototype.float=function(t){var s=e.cssClasses,i=s.LABEL_FLOAT_ABOVE,r=s.LABEL_SHAKE;t?this.adapter.addClass(i):(this.adapter.removeClass(i),this.adapter.removeClass(r))},e.prototype.setRequired=function(t){var s=e.cssClasses.LABEL_REQUIRED;t?this.adapter.addClass(s):this.adapter.removeClass(s)},e.prototype.handleShakeAnimationEnd=function(){var t=e.cssClasses.LABEL_SHAKE;this.adapter.removeClass(t)},e}(vt);/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/var Bt={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"};/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/var Ml=function(n){Lt(e,n);function e(t){var s=n.call(this,it(it({},e.defaultAdapter),t))||this;return s.transitionEndHandler=function(i){s.handleTransitionEnd(i)},s}return Object.defineProperty(e,"cssClasses",{get:function(){return Bt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},e.prototype.activate=function(){this.adapter.removeClass(Bt.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(Bt.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},e.prototype.deactivate=function(){this.adapter.addClass(Bt.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(t){var s=this.adapter.hasClass(Bt.LINE_RIPPLE_DEACTIVATING);t.propertyName==="opacity"&&s&&(this.adapter.removeClass(Bt.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(Bt.LINE_RIPPLE_DEACTIVATING))},e}(vt);/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/var kl={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},Nl={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},sn={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30},Ze;(function(n){n[n.BOTTOM=1]="BOTTOM",n[n.CENTER=2]="CENTER",n[n.RIGHT=4]="RIGHT",n[n.FLIP_RTL=8]="FLIP_RTL"})(Ze||(Ze={}));var qt;(function(n){n[n.TOP_LEFT=0]="TOP_LEFT",n[n.TOP_RIGHT=4]="TOP_RIGHT",n[n.BOTTOM_LEFT=1]="BOTTOM_LEFT",n[n.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",n[n.TOP_START=8]="TOP_START",n[n.TOP_END=12]="TOP_END",n[n.BOTTOM_START=9]="BOTTOM_START",n[n.BOTTOM_END=13]="BOTTOM_END"})(qt||(qt={}));/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/var wt,Mt,Re={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"};wt={},wt[""+Re.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",wt[""+Re.LIST_ITEM_CLASS]="mdc-list-item",wt[""+Re.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",wt[""+Re.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",wt[""+Re.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",wt[""+Re.ROOT]="mdc-list";var Xt=(Mt={},Mt[""+Re.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",Mt[""+Re.LIST_ITEM_CLASS]="mdc-deprecated-list-item",Mt[""+Re.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",Mt[""+Re.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",Mt[""+Re.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",Mt[""+Re.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",Mt[""+Re.ROOT]="mdc-deprecated-list",Mt),Ft={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:`
.`+Re.LIST_ITEM_CLASS+` button:not(:disabled),
.`+Re.LIST_ITEM_CLASS+` a,
.`+Xt[Re.LIST_ITEM_CLASS]+` button:not(:disabled),
.`+Xt[Re.LIST_ITEM_CLASS]+` a
`,DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:`
.`+Re.LIST_ITEM_CLASS+` button:not(:disabled),
.`+Re.LIST_ITEM_CLASS+` a,
.`+Re.LIST_ITEM_CLASS+` input[type="radio"]:not(:disabled),
.`+Re.LIST_ITEM_CLASS+` input[type="checkbox"]:not(:disabled),
.`+Xt[Re.LIST_ITEM_CLASS]+` button:not(:disabled),
.`+Xt[Re.LIST_ITEM_CLASS]+` a,
.`+Xt[Re.LIST_ITEM_CLASS]+` input[type="radio"]:not(:disabled),
.`+Xt[Re.LIST_ITEM_CLASS]+` input[type="checkbox"]:not(:disabled)
`,RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},xe={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};/**
* @license
* Copyright 2020 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/var Ul=["input","button","textarea","select"],Tt=function(n){var e=n.target;if(e){var t=(""+e.tagName).toLowerCase();Ul.indexOf(t)===-1&&n.preventDefault()}};/**
* @license
* Copyright 2020 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/function Hl(){var n={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""};return n}function wl(n,e){for(var t=new Map,s=0;s<n;s++){var i=e(s).trim();if(i){var r=i[0].toLowerCase();t.has(r)||t.set(r,[]),t.get(r).push({text:i.toLowerCase(),index:s})}}return t.forEach(function(l){l.sort(function(a,o){return a.index-o.index})}),t}function zn(n,e){var t=n.nextChar,s=n.focusItemAtIndex,i=n.sortedIndexByFirstChar,r=n.focusedItemIndex,l=n.skipFocus,a=n.isItemAtIndexDisabled;clearTimeout(e.bufferClearTimeout),e.bufferClearTimeout=setTimeout(function(){Ci(e)},xe.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),e.typeaheadBuffer=e.typeaheadBuffer+t;var o;return e.typeaheadBuffer.length===1?o=Fl(i,r,a,e):o=Pl(i,a,e),o!==-1&&!l&&s(o),o}function Fl(n,e,t,s){var i=s.typeaheadBuffer[0],r=n.get(i);if(!r)return-1;if(i===s.currentFirstChar&&r[s.sortedIndexCursor].index===e){s.sortedIndexCursor=(s.sortedIndexCursor+1)%r.length;var l=r[s.sortedIndexCursor].index;if(!t(l))return l}s.currentFirstChar=i;var a=-1,o;for(o=0;o<r.length;o++)if(!t(r[o].index)){a=o;break}for(;o<r.length;o++)if(r[o].index>e&&!t(r[o].index)){a=o;break}return a!==-1?(s.sortedIndexCursor=a,r[s.sortedIndexCursor].index):-1}function Pl(n,e,t){var s=t.typeaheadBuffer[0],i=n.get(s);if(!i)return-1;var r=i[t.sortedIndexCursor];if(r.text.lastIndexOf(t.typeaheadBuffer,0)===0&&!e(r.index))return r.index;for(var l=(t.sortedIndexCursor+1)%i.length,a=-1;l!==t.sortedIndexCursor;){var o=i[l],u=o.text.lastIndexOf(t.typeaheadBuffer,0)===0,d=!e(o.index);if(u&&d){a=l;break}l=(l+1)%i.length}return a!==-1?(t.sortedIndexCursor=a,i[t.sortedIndexCursor].index):-1}function bi(n){return n.typeaheadBuffer.length>0}function Ci(n){n.typeaheadBuffer=""}function ps(n,e){var t=n.event,s=n.isTargetListItem,i=n.focusedItemIndex,r=n.focusItemAtIndex,l=n.sortedIndexByFirstChar,a=n.isItemAtIndexDisabled,o=st(t)==="ArrowLeft",u=st(t)==="ArrowUp",d=st(t)==="ArrowRight",c=st(t)==="ArrowDown",m=st(t)==="Home",p=st(t)==="End",_=st(t)==="Enter",h=st(t)==="Spacebar";if(t.altKey||t.ctrlKey||t.metaKey||o||u||d||c||m||p||_)return-1;var f=!h&&t.key.length===1;if(f){Tt(t);var E={focusItemAtIndex:r,focusedItemIndex:i,nextChar:t.key.toLowerCase(),