diff --git a/CNAME b/CNAME index 2617c5d..00eb06a 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -app.jimmi.party \ No newline at end of file +app.jimmi.party diff --git a/assets/Bot-0231bad4.js b/assets/Bot-0231bad4.js new file mode 100644 index 0000000..a675185 --- /dev/null +++ b/assets/Bot-0231bad4.js @@ -0,0 +1,6 @@ +var qt=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var J=(t,e,r)=>(qt(t,e,"read from private field"),r?r.call(t):e.get(t)),te=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},re=(t,e,r,n)=>(qt(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{g as Dr,$ as at,i as Lr,S as Ne,a as xe,s as Ce,e as E,b as C,t as ie,c as m,d as Qe,f as zt,h as Xe,j as M,k as h,l as Vt,m as K,n as ce,o as Kt,p as R,q as gr,r as Br,u as hr,v as jr,w as de,x as Ur,y as ye,z as Re,A as Ze,B as De,C as Le,D as Y,E as br,F as Sr,G as ee,H as Be,I as et,J as Gr,K as Wr,L as Jr,M as Hr,N as Qr,O as qr,P as zr,Q as ut,R as pt,T as Vr,U as Kr}from"./index-f3d341d7.js";function tt(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}var Yr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0},Yt=typeof Symbol<"u"&&Symbol,Xr=Yr,Zr=function(){return typeof Yt!="function"||typeof Symbol!="function"||typeof Yt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Xr()},en="Function.prototype.bind called on incompatible ",dt=Array.prototype.slice,tn=Object.prototype.toString,rn="[object Function]",nn=function(e){var r=this;if(typeof r!="function"||tn.call(r)!==rn)throw new TypeError(en+r);for(var n=dt.call(arguments,1),o,i=function(){if(this instanceof o){var f=r.apply(this,n.concat(dt.call(arguments)));return Object(f)===f?f:this}else return r.apply(e,n.concat(dt.call(arguments)))},l=Math.max(0,r.length-n.length),a=[],s=0;s"u"?N:ae(Uint8Array),Se={"%AggregateError%":typeof AggregateError>"u"?N:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?N:ArrayBuffer,"%ArrayIteratorPrototype%":ge?ae([][Symbol.iterator]()):N,"%AsyncFromSyncIteratorPrototype%":N,"%AsyncFunction%":he,"%AsyncGenerator%":he,"%AsyncGeneratorFunction%":he,"%AsyncIteratorPrototype%":he,"%Atomics%":typeof Atomics>"u"?N:Atomics,"%BigInt%":typeof BigInt>"u"?N:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?N:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?N:Float32Array,"%Float64Array%":typeof Float64Array>"u"?N:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?N:FinalizationRegistry,"%Function%":wr,"%GeneratorFunction%":he,"%Int8Array%":typeof Int8Array>"u"?N:Int8Array,"%Int16Array%":typeof Int16Array>"u"?N:Int16Array,"%Int32Array%":typeof Int32Array>"u"?N:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ge?ae(ae([][Symbol.iterator]())):N,"%JSON%":typeof JSON=="object"?JSON:N,"%Map%":typeof Map>"u"?N:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ge?N:ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?N:Promise,"%Proxy%":typeof Proxy>"u"?N:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?N:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?N:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ge?N:ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?N:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ge?ae(""[Symbol.iterator]()):N,"%Symbol%":ge?Symbol:N,"%SyntaxError%":je,"%ThrowTypeError%":sn,"%TypedArray%":cn,"%TypeError%":be,"%Uint8Array%":typeof Uint8Array>"u"?N:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?N:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?N:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?N:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?N:WeakMap,"%WeakRef%":typeof WeakRef>"u"?N:WeakRef,"%WeakSet%":typeof WeakSet>"u"?N:WeakSet},fn=function t(e){var r;if(e==="%AsyncFunction%")r=yt("async function () {}");else if(e==="%GeneratorFunction%")r=yt("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=yt("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&(r=ae(o.prototype))}return Se[e]=r,r},Xt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},lt=It,rt=ln,un=lt.call(Function.call,Array.prototype.concat),pn=lt.call(Function.apply,Array.prototype.splice),Zt=lt.call(Function.call,String.prototype.replace),nt=lt.call(Function.call,String.prototype.slice),dn=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yn=/\\(\\)?/g,mn=function(e){var r=nt(e,0,1),n=nt(e,-1);if(r==="%"&&n!=="%")throw new je("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new je("invalid intrinsic syntax, expected opening `%`");var o=[];return Zt(e,dn,function(i,l,a,s){o[o.length]=a?Zt(s,yn,"$1"):l||i}),o},vn=function(e,r){var n=e,o;if(rt(Xt,n)&&(o=Xt[n],n="%"+o[0]+"%"),rt(Se,n)){var i=Se[n];if(i===he&&(i=fn(n)),typeof i>"u"&&!r)throw new be("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new je("intrinsic "+e+" does not exist!")},$t=function(e,r){if(typeof e!="string"||e.length===0)throw new be("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new be('"allowMissing" argument must be a boolean');var n=mn(e),o=n.length>0?n[0]:"",i=vn("%"+o+"%",r),l=i.name,a=i.value,s=!1,c=i.alias;c&&(o=c[0],pn(n,un([0,1],c)));for(var f=1,p=!0;f=n.length){var d=me(a,y);p=!!d,p&&"get"in d&&!("originalValue"in d.get)?a=d.get:a=a[y]}else p=rt(a,y),a=a[y];p&&!s&&(Se[l]=a)}}return a},_r={exports:{}};(function(t){var e=It,r=$t,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,n),l=r("%Object.getOwnPropertyDescriptor%",!0),a=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}t.exports=function(p){var y=i(e,o,arguments);if(l&&a){var S=l(y,"length");S.configurable&&a(y,"length",{value:1+s(0,p.length-(arguments.length-1))})}return y};var c=function(){return i(e,n,arguments)};a?a(t.exports,"apply",{value:c}):t.exports.apply=c})(_r);var gn=_r.exports,Er=$t,Ar=gn,hn=Ar(Er("String.prototype.indexOf")),bn=function(e,r){var n=Er(e,!!r);return typeof n=="function"&&hn(e,".prototype.")>-1?Ar(n):n};const Sn={},wn=Object.freeze(Object.defineProperty({__proto__:null,default:Sn},Symbol.toStringTag,{value:"Module"})),_n=Dr(wn);var Tt=typeof Map=="function"&&Map.prototype,vt=Object.getOwnPropertyDescriptor&&Tt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,it=Tt&&vt&&typeof vt.get=="function"?vt.get:null,En=Tt&&Map.prototype.forEach,kt=typeof Set=="function"&&Set.prototype,gt=Object.getOwnPropertyDescriptor&&kt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ot=kt&>&&typeof gt.get=="function"?gt.get:null,An=kt&&Set.prototype.forEach,On=typeof WeakMap=="function"&&WeakMap.prototype,ke=On?WeakMap.prototype.has:null,Pn=typeof WeakSet=="function"&&WeakSet.prototype,Fe=Pn?WeakSet.prototype.has:null,Nn=typeof WeakRef=="function"&&WeakRef.prototype,er=Nn?WeakRef.prototype.deref:null,xn=Boolean.prototype.valueOf,Cn=Object.prototype.toString,In=Function.prototype.toString,$n=String.prototype.match,Ft=String.prototype.slice,se=String.prototype.replace,Tn=String.prototype.toUpperCase,tr=String.prototype.toLowerCase,Or=RegExp.prototype.test,rr=Array.prototype.concat,Z=Array.prototype.join,kn=Array.prototype.slice,nr=Math.floor,Ot=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ht=Object.getOwnPropertySymbols,Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",U=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oe||"symbol")?Symbol.toStringTag:null,Pr=Object.prototype.propertyIsEnumerable,ir=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function or(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Or.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-nr(-t):nr(t);if(n!==t){var o=String(n),i=Ft.call(e,o.length+1);return se.call(o,r,"$&_")+"."+se.call(se.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return se.call(e,r,"$&_")}var bt=_n.custom,St=bt&&xr(bt)?bt:null,Fn=function t(e,r,n,o){var i=r||{};if(le(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(le(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=le(i,"customInspect")?i.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(le(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(le(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Ir(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return a?or(e,s):s}if(typeof e=="bigint"){var c=String(e)+"n";return a?or(e,c):c}var f=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof e=="object")return Nt(e)?"[Array]":"[Object]";var p=Zn(i,n);if(typeof o>"u")o=[];else if(Cr(o,e)>=0)return"[Circular]";function y(x,_,G){if(_&&(o=kn.call(o),o.push(_)),G){var I={depth:i.depth};return le(i,"quoteStyle")&&(I.quoteStyle=i.quoteStyle),t(x,I,n+1,o)}return t(x,i,n+1,o)}if(typeof e=="function"){var S=Jn(e),g=qe(e,y);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(g.length>0?" { "+Z.call(g,", ")+" }":"")}if(xr(e)){var d=Oe?se.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Pt.call(e);return typeof e=="object"&&!Oe?Te(d):d}if(Kn(e)){for(var v="<"+tr.call(String(e.nodeName)),u=e.attributes||[],P=0;P",v}if(Nt(e)){if(e.length===0)return"[]";var w=qe(e,y);return p&&!Xn(w)?"["+xt(w,p)+"]":"[ "+Z.call(w,", ")+" ]"}if(Ln(e)){var A=qe(e,y);return"cause"in e&&!Pr.call(e,"cause")?"{ ["+String(e)+"] "+Z.call(rr.call("[cause]: "+y(e.cause),A),", ")+" }":A.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Z.call(A,", ")+" }"}if(typeof e=="object"&&l){if(St&&typeof e[St]=="function")return e[St]();if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Hn(e)){var L=[];return En.call(e,function(x,_){L.push(y(_,e,!0)+" => "+y(x,e))}),ar("Map",it.call(e),L,p)}if(zn(e)){var T=[];return An.call(e,function(x){T.push(y(x,e))}),ar("Set",ot.call(e),T,p)}if(Qn(e))return wt("WeakMap");if(Vn(e))return wt("WeakSet");if(qn(e))return wt("WeakRef");if(jn(e))return Te(y(Number(e)));if(Gn(e))return Te(y(Ot.call(e)));if(Un(e))return Te(xn.call(e));if(Bn(e))return Te(y(String(e)));if(!Rn(e)&&!Dn(e)){var B=qe(e,y),D=ir?ir(e)===Object.prototype:e instanceof Object||e.constructor===Object,H=e instanceof Object?"":"null prototype",q=!D&&U&&Object(e)===e&&U in e?Ft.call(fe(e),8,-1):H?"Object":"",k=D||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",b=k+(q||H?"["+Z.call(rr.call([],q||[],H||[]),": ")+"] ":"");return B.length===0?b+"{}":p?b+"{"+xt(B,p)+"}":b+"{ "+Z.call(B,", ")+" }"}return String(e)};function Nr(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Mn(t){return se.call(String(t),/"/g,""")}function Nt(t){return fe(t)==="[object Array]"&&(!U||!(typeof t=="object"&&U in t))}function Rn(t){return fe(t)==="[object Date]"&&(!U||!(typeof t=="object"&&U in t))}function Dn(t){return fe(t)==="[object RegExp]"&&(!U||!(typeof t=="object"&&U in t))}function Ln(t){return fe(t)==="[object Error]"&&(!U||!(typeof t=="object"&&U in t))}function Bn(t){return fe(t)==="[object String]"&&(!U||!(typeof t=="object"&&U in t))}function jn(t){return fe(t)==="[object Number]"&&(!U||!(typeof t=="object"&&U in t))}function Un(t){return fe(t)==="[object Boolean]"&&(!U||!(typeof t=="object"&&U in t))}function xr(t){if(Oe)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Pt)return!1;try{return Pt.call(t),!0}catch{}return!1}function Gn(t){if(!t||typeof t!="object"||!Ot)return!1;try{return Ot.call(t),!0}catch{}return!1}var Wn=Object.prototype.hasOwnProperty||function(t){return t in this};function le(t,e){return Wn.call(t,e)}function fe(t){return Cn.call(t)}function Jn(t){if(t.name)return t.name;var e=$n.call(In.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Cr(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Ir(Ft.call(t,0,e.maxStringLength),e)+n}var o=se.call(se.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Yn);return Nr(o,"single",e)}function Yn(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Tn.call(e.toString(16))}function Te(t){return"Object("+t+")"}function wt(t){return t+" { ? }"}function ar(t,e,r,n){var o=n?xt(r,n):Z.call(r,", ");return t+" ("+e+") {"+o+"}"}function Xn(t){for(var e=0;e=0)return!1;return!0}function Zn(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Z.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Z.call(Array(e+1),r)}}function xt(t,e){if(t.length===0)return"";var r=` +`+e.prev+e.base;return r+Z.call(t,","+r)+` +`+e.prev}function qe(t,e){var r=Nt(t),n=[];if(r){n.length=t.length;for(var o=0;o1;){var r=e.pop(),n=r.obj[r.prop];if(ue(n)){for(var o=[],i=0;i=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===yi.RFC1738&&(c===40||c===41)){a+=l.charAt(s);continue}if(c<128){a=a+X[c];continue}if(c<2048){a=a+(X[192|c>>6]+X[128|c&63]);continue}if(c<55296||c>=57344){a=a+(X[224|c>>12]+X[128|c>>6&63]+X[128|c&63]);continue}s+=1,c=65536+((c&1023)<<10|l.charCodeAt(s)&1023),a+=X[240|c>>18]+X[128|c>>12&63]+X[128|c>>6&63]+X[128|c&63]}return a},Si=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o"u"&&(w=0)}if(typeof s=="function"?u=s(r,u):u instanceof Date?u=p(u):n==="comma"&&ne(u)&&(u=Ye.maybeMap(u,function(I){return I instanceof Date?p(I):I})),u===null){if(i)return a&&!g?a(r,j.encoder,d,"key",y):r;u=""}if(xi(u)||Ye.isBuffer(u)){if(a){var T=g?r:a(r,j.encoder,d,"key",y);return[S(T)+"="+S(a(u,j.encoder,d,"value",y))]}return[S(r)+"="+S(String(u))]}var B=[];if(typeof u>"u")return B;var D;if(n==="comma"&&ne(u))g&&a&&(u=Ye.maybeMap(u,a)),D=[{value:u.length>0?u.join(",")||null:void 0}];else if(ne(s))D=s;else{var H=Object.keys(u);D=c?H.sort(c):H}for(var q=o&&ne(u)&&u.length===1?r+"[]":r,k=0;k"u"?j.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:j.charsetSentinel,delimiter:typeof e.delimiter>"u"?j.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:j.encode,encoder:typeof e.encoder=="function"?e.encoder:j.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:j.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:j.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:j.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:j.strictNullHandling}},$i=function(t,e){var r=t,n=Ii(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):ne(n.filter)&&(i=n.filter,o=i);var l=[];if(typeof r!="object"||r===null)return"";var a;e&&e.arrayFormat in lr?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var s=lr[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=s==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var f=kr(),p=0;p0?g+S:""},Pe=Tr,Ct=Object.prototype.hasOwnProperty,Ti=Array.isArray,F={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Pe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ki=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Mr=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Fi="utf8=%26%2310003%3B",Mi="utf8=%E2%9C%93",Ri=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,l=o.split(r.delimiter,i),a=-1,s,c=r.charset;if(r.charsetSentinel)for(s=0;s-1&&(g=Ti(g)?[g]:g),Ct.call(n,S)?n[S]=Pe.combine(n[S],g):n[S]=g}return n},Di=function(t,e,r,n){for(var o=n?e:Mr(e,r),i=t.length-1;i>=0;--i){var l,a=t[i];if(a==="[]"&&r.parseArrays)l=[].concat(o);else{l=r.plainObjects?Object.create(null):{};var s=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(s,10);!r.parseArrays&&s===""?l={0:o}:!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(l=[],l[c]=o):s!=="__proto__"&&(l[s]=o)}o=l}return o},Li=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=n.depth>0&&l.exec(i),c=s?i.slice(0,s.index):i,f=[];if(c){if(!n.plainObjects&&Ct.call(Object.prototype,c)&&!n.allowPrototypes)return;f.push(c)}for(var p=0;n.depth>0&&(s=a.exec(i))!==null&&p"u"?F.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?F.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:F.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:F.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:F.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:F.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:F.comma,decoder:typeof e.decoder=="function"?e.decoder:F.decoder,delimiter:typeof e.delimiter=="string"||Pe.isRegExp(e.delimiter)?e.delimiter:F.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:F.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:F.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:F.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:F.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:F.strictNullHandling}},ji=function(t,e){var r=Bi(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?Ri(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),l=0;lre(this,we,n))}get name(){return J(this,pe)}get pluginId(){return J(this,Ue)}exec(e){J(this,Ge).call(this,e.detail)}get description(){return J(this,we)?J(this,we).call(this,`plugins.${this.pluginId}.commands.${J(this,pe)}.usage`):""}}pe=new WeakMap,Ue=new WeakMap,Ge=new WeakMap,we=new WeakMap;function cr(t,{delay:e=0,duration:r=400,easing:n=Lr}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:i=>`opacity: ${i*o}`}}function fr(t,e,r){const n=t.slice();return n[27]=e[r],n[29]=r,n}function Qi(t){let e,r,n;return{c(){e=ye("svg"),r=ye("polygon"),n=ye("polygon"),m(r,"points","7,3 7,21"),m(n,"points","17,3 17,21"),m(e,"class","w-5 h-5"),m(e,"viewBox","0 0 24 24"),m(e,"fill","none"),m(e,"stroke","currentColor"),m(e,"stroke-width","2"),m(e,"stroke-linecap","round"),m(e,"stroke-linejoin","round")},m(o,i){M(o,e,i),h(e,r),h(e,n)},d(o){o&&R(e)}}}function qi(t){let e,r;return{c(){e=ye("svg"),r=ye("polygon"),m(r,"points","5 3 19 12 5 21 5 3"),m(e,"class","w-5 h-5"),m(e,"viewBox","0 0 24 24"),m(e,"fill","none"),m(e,"stroke","currentColor"),m(e,"stroke-width","2"),m(e,"stroke-linecap","round"),m(e,"stroke-linejoin","round")},m(n,o){M(n,e,o),h(e,r)},d(n){n&&R(e)}}}function ur(t){let e,r,n,o,i=t[27].title+"",l,a,s,c;function f(){return t[24](t[29])}return{c(){e=E("li"),r=E("button"),r.innerHTML='',n=C(),o=E("div"),l=ie(i),a=C(),m(r,"class","p-3 hover:bg-green-500 group focus:outline-none"),m(o,"class","flex-1"),m(e,"class","flex items-center space-x-3 hover:bg-gray-100")},m(p,y){M(p,e,y),h(e,r),h(e,n),h(e,o),h(o,l),h(e,a),s||(c=K(r,"click",f),s=!0)},p(p,y){t=p,y&64&&i!==(i=t[27].title+"")&&ce(l,i)},d(p){p&&R(e),s=!1,c()}}}function zi(t){var Wt;let e,r,n=!1,o,i,l,a,s,c,f,p,y,S,g,d=(((Wt=t[5])==null?void 0:Wt.title)||"N/A")+"",v,u,P,w,A,L,T,B,D=Ke(t[3],t[4])+"",H,q,k,b,x,_,G,I,Lt,st,Je=Ke(t[4])+"",ct,Bt,$e,z,ft,jt;function Ut(){cancelAnimationFrame(o),e.paused||(o=jr(Ut),n=!0),t[18].call(e)}function Gt(O,$){var Q;return(Q=O[2])!=null&&Q.paused?qi:Qi}let He=Gt(t),oe=He(t),ve=tt(t[6]),W=[];for(let O=0;O',x=C(),_=E("button"),oe.c(),G=C(),I=E("button"),I.innerHTML='',Lt=C(),st=E("div"),ct=ie(Je),Bt=C(),$e=E("ul");for(let Q=0;Qt[19].call(e)),Qe(c.src,f=($=t[5])==null?void 0:$.thumbnailUrl)||m(c,"src",f),m(c,"alt","Video thumbnail"),m(c,"class","h-80 w-full object-cover"),m(c,"crossorigin","anonymous"),m(c,"referrerpolicy","no-referrer"),Xe(c,"invisible",!t[7]),m(s,"class","h-80"),m(g,"class","font-bold"),m(S,"class","absolute p-4 inset-0 flex flex-col justify-end bg-gradient-to-b from-transparent to-gray-900 backdrop backdrop-blur-5 text-white"),m(a,"class","relative"),m(A,"type","range"),m(A,"min","0"),m(A,"max",t[4]),m(A,"class","absolute h-full w-full"),m(w,"class","relative h-1 bg-gray-200"),m(b,"class","focus:outline-none"),m(_,"class","rounded-full w-8 h-8 flex items-center justify-center pl-0.5 ring-2 ring-gray-100 focus:outline-none"),m(I,"class","focus:outline-none"),m(k,"class","flex space-x-3 p-2"),m(T,"class","flex justify-between text-xs font-semibold text-gray-500 px-4 py-2"),m($e,"class","text-xs sm:text-base divide-y border-t cursor-default"),m(l,"class","max-w-xl bg-white rounded-lg shadow-lg overflow-hidden")},m(O,$){M(O,e,$),t[17](e),M(O,i,$),M(O,l,$),h(l,a),h(a,s),h(s,c),h(a,y),h(a,S),h(S,g),h(g,v),h(l,u),h(l,P),h(P,w),h(w,A),Vt(A,t[3]),h(l,L),h(l,T),h(T,B),h(B,H),h(T,q),h(T,k),h(k,b),h(k,x),h(k,_),oe.m(_,null),h(k,G),h(k,I),h(T,Lt),h(T,st),h(st,ct),h(l,Bt),h(l,$e);for(let Q=0;Q{z&&(p||(p=Kt(c,cr,{},!0)),p.run(1))}),z=!0)},o(O){O&&(p||(p=Kt(c,cr,{},!1)),p.run(0)),z=!1},d(O){O&&(R(e),R(i),R(l)),t[17](null),O&&p&&p.end(),oe.d(),gr(W,O),ft=!1,Br(jt)}}}function Ke(t,e=t){if(!e)return"--:--";let r=Math.trunc(t/3600),n=Math.trunc(t%3600/60),o=Math.trunc(t%60);return r<10&&(r="0"+r),n<10&&(n="0"+n),o<10&&(o="0"+o),e>3600?`${r}:${n}:${o}`:e>60?`${n}:${o}`:o}function Vi(t,e,r){let n,o,i,l,a,s=0,c=0;function f(){return Math.floor(l.gain.value*100)}function p(_){l.gain.value=[0,_/100,1].sort()[1]}function y(){if(!a)throw new Error("Audio element not ready yet!");const _=new AudioContext,G=_.createMediaElementSource(a);l=_.createGain();const I=_.createMediaStreamDestination();p(Re.default.initialVolume),G.connect(l).connect(I),navigator.mediaDevices.getUserMedia=async function(){return await _.resume(),I.stream}}async function S(_){_?r(5,o=_):await(a==null?void 0:a.play())}async function g(_){r(6,n=n.concat(_))}function d(){return console.log(n),Object.freeze(n)}function v(_){S(n[_]),n.splice(_,1),r(6,n)}function u(){a&&(a.paused?a.play():a.pause())}function P(){return o}function w(_){a&&r(2,a.currentTime+=_,a)}function A(){n.length>0?(S(n.shift()),r(6,n)):(r(5,o=null),r(2,a.src="",a))}hr(y);const L=()=>S();function T(_){de[_?"unshift":"push"](()=>{a=_,r(2,a)})}function B(){s=this.currentTime,r(3,s)}function D(){c=this.duration,r(4,c)}const H=()=>r(7,i=!0);function q(){s=Ur(this.value),r(3,s)}const k=()=>w(-s),b=()=>w(c),x=_=>v(_);return r(6,n=[]),r(5,o=null),r(7,i=!1),[S,w,a,s,c,o,n,i,v,u,A,f,p,g,d,P,L,T,B,D,H,q,k,b,x]}class Ki extends Ne{constructor(e){super(),xe(this,e,Vi,zi,Ce,{getGain:11,setGain:12,play:0,addToQueue:13,getQueue:14,getCurrentTrack:15,forward:1})}get getGain(){return this.$$.ctx[11]}get setGain(){return this.$$.ctx[12]}get play(){return this.$$.ctx[0]}get addToQueue(){return this.$$.ctx[13]}get getQueue(){return this.$$.ctx[14]}get getCurrentTrack(){return this.$$.ctx[15]}get forward(){return this.$$.ctx[1]}}function Yi(t){let e,r,n,o,i=t[0].getDisplayName()+"",l;return{c(){e=E("div"),r=E("div"),r.innerHTML='',n=C(),o=E("h2"),l=ie(i),m(r,"class","w-8 h-8 mr-3 inline-flex items-center justify-center rounded-full bg-indigo-500 text-white flex-shrink-0"),m(o,"class","text-gray-900 break-words text-lg title-font font-medium"),m(e,"class","flex items-center mb-3")},m(a,s){M(a,e,s),h(e,r),h(e,n),h(e,o),h(o,l)},p(a,[s]){s&1&&i!==(i=a[0].getDisplayName()+"")&&ce(l,i)},i:Ze,o:Ze,d(a){a&&R(e)}}}function Xi(t,e,r){let{participant:n}=e;return t.$$set=o=>{"participant"in o&&r(0,n=o.participant)},[n]}class Zi extends Ne{constructor(e){super(),xe(this,e,Xi,Yi,Ce,{participant:0})}}var _e,Ee,Ae,We;class eo{constructor(e,r,n,o){te(this,_e,void 0);te(this,Ee,void 0);te(this,Ae,void 0);te(this,We,void 0);re(this,_e,e),re(this,Ee,r),re(this,We,n),re(this,Ae,o)}get text(){return J(this,_e)}get params(){const[,...e]=J(this,_e).split(" ");return e}get participant(){return J(this,Ee)}respond(e){J(this,We)?J(this,Ae).call(this,e,J(this,Ee).getId()):J(this,Ae).call(this,e)}}_e=new WeakMap,Ee=new WeakMap,Ae=new WeakMap,We=new WeakMap;class to{constructor(e,r){this.audio=e,this.conference=r,this.play.bind(this),this.mute.bind(this),this.unmute.bind(this)}async play(){await this.audio.play(),this.unmute()}mute(){}unmute(){}get queue(){return this.audio.getQueue()}addToQueue(e){this.audio.addToQueue(e)}get currentTrack(){return this.audio.getCurrentTrack()}set currentTrack(e){this.audio.play(e)}forward(e){this.audio.forward(e)}get volume(){return this.audio.getGain()}set volume(e){this.audio.setGain(e),e&&this.unmute()}}function pr(t,e,r){const n=t.slice();return n[25]=e[r],n}function dr(t){let e,r=t[3]("general.participants")+"",n;return{c(){e=E("h1"),n=ie(r),m(e,"class","text-gray-900 text-3xl title-font font-medium mb-4")},m(o,i){M(o,e,i),h(e,n)},p(o,i){i&8&&r!==(r=o[3]("general.participants")+"")&&ce(n,r)},d(o){o&&R(e)}}}function yr(t){let e,r;return e=new Zi({props:{participant:t[25]}}),{c(){De(e.$$.fragment)},m(n,o){Le(e,n,o),r=!0},p(n,o){const i={};o&4&&(i.participant=n[25]),e.$set(i)},i(n){r||(Y(e.$$.fragment,n),r=!0)},o(n){ee(e.$$.fragment,n),r=!1},d(n){Be(e,n)}}}function ro(t){let e,r,n,o,i,l,a,s,c,f,p={};l=new Ki({props:p}),t[11](l);let y=t[2].length&&dr(t),S=tt(t[2]),g=[];for(let v=0;vee(g[v],1,1,()=>{g[v]=null});return{c(){e=E("div"),r=C(),n=E("div"),o=E("div"),i=E("div"),De(l.$$.fragment),a=C(),s=E("div"),y&&y.c(),c=C();for(let v=0;vsetTimeout(e,t))}async function Rr(){const t=window.JitsiMeetJS;return typeof t<"u"?t:(await no(100),Rr())}function io(t,e,r){let n,o;et(t,at,b=>r(3,o=b));let{isJoined:i=!1}=e,{roomName:l}=e,{jimmiApi:a}=e,{conferencePassword:s=""}=e,c,f,p,y=[],S;const g=Gr();let d,v;function u(){r(2,n=p.getParticipants())}function P(){for(let b=0;bg("message",new eo(_,p.getParticipantById(x),G,p.sendMessage.bind(p)));p.addEventListener(d.events.conference.PRIVATE_MESSAGE_RECEIVED,(x,_)=>b(x,_,!0)),p.addEventListener(d.events.conference.MESSAGE_RECEIVED,(x,_)=>b(x,_,!1))}async function L(){console.info("Successfully joined conference!"),S(null),r(4,i=!0),w();const b=()=>{};p.addEventListener(d.events.conference.MESSAGE_RECEIVED,b),await(_=>new Promise(G=>setTimeout(G,_)))(1e3),p.removeEventListener(d.events.conference.MESSAGE_RECEIVED,b),A()}function T(){console.info("Connection established successfully");const b={startAudioMuted:!1};p=f.initJitsiConference(l.toLowerCase(),b),p.setDisplayName(Re.default.jitsiDisplayName),p.on(d.events.conference.CONFERENCE_JOINED,L),p.on(d.events.conference.USER_JOINED,u),p.on(d.events.conference.USER_LEFT,u),p.on(d.events.conference.DISPLAY_NAME_CHANGED,u),p.join(s)}function B(){console.info("disconnecting!"),f.removeEventListener(d.events.connection.CONNECTION_ESTABLISHED,T),f.removeEventListener(d.events.connection.CONNECTION_FAILED,mr),f.removeEventListener(d.events.connection.CONNECTION_DISCONNECTED,B)}async function D(b){let x=document.createElement("script");x.src=`https://${b.hosts.domain}/libs/lib-jitsi-meet.min.js`,v==null||v.append(x),d=await Rr(),d.setLogLevel(d.logLevels.WARN),window.addEventListener("beforeunload",P),window.addEventListener("unload",P);const _={disableAudioLevels:!0,disableThirdPartyRequests:!0,enableAnalyticsLogging:!1},G=new Promise(I=>{S=I});d.init(_),f=new d.JitsiConnection(void 0,null,b),f.addEventListener(d.events.connection.CONNECTION_ESTABLISHED,T),f.addEventListener(d.events.connection.CONNECTION_FAILED,mr),f.addEventListener(d.events.connection.CONNECTION_DISCONNECTED,B),f.connect(),d.createLocalTracks({devices:["audio"]}).then(w).catch(I=>{throw I}),await G,r(5,a=new to(c,p))}function H(b,x){p.addEventListener(b,x)}Wr(()=>{P()});function q(b){de[b?"unshift":"push"](()=>{v=b,r(1,v)})}function k(b){de[b?"unshift":"push"](()=>{c=b,r(0,c)})}return t.$$set=b=>{"isJoined"in b&&r(4,i=b.isJoined),"roomName"in b&&r(6,l=b.roomName),"jimmiApi"in b&&r(5,a=b.jimmiApi),"conferencePassword"in b&&r(7,s=b.conferencePassword)},r(2,n=[]),[c,v,n,o,i,a,l,s,D,H,q,k]}class oo extends Ne{constructor(e){super(),xe(this,e,io,ro,Ce,{isJoined:4,roomName:6,jimmiApi:5,conferencePassword:7,joinConference:8,addConferenceEventListener:9})}get joinConference(){return this.$$.ctx[8]}get addConferenceEventListener(){return this.$$.ctx[9]}}function ao(t){let e,r,n,o,i,l,a,s=t[0]("general.leave")+"",c,f,p,y,S,g;return{c(){e=E("header"),r=E("div"),n=E("a"),n.innerHTML=`Logo JIMMI`,o=C(),i=E("nav"),i.innerHTML="",l=C(),a=E("button"),c=ie(s),f=C(),p=ye("svg"),y=ye("path"),m(n,"href",Re.url),m(n,"class","flex title-font font-medium items-center text-gray-900 mb-4 sm:mb-0"),m(i,"class","sm:ml-auto flex flex-wrap items-center text-base justify-center"),m(y,"d","M5 12h14M12 5l7 7-7 7"),m(p,"fill","none"),m(p,"stroke","currentColor"),m(p,"stroke-linecap","round"),m(p,"stroke-linejoin","round"),m(p,"stroke-width","2"),m(p,"class","w-4 h-4 ml-1"),m(p,"viewBox","0 0 24 24"),m(a,"class","inline-flex items-center bg-gray-100 border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 sm:mt-0"),m(r,"class","container p-2 mx-auto flex flex-wrap p-1 flex-col sm:flex-row items-center"),m(e,"class","bg-indigo-500 text-lightgray-600 body-font")},m(d,v){M(d,e,v),h(e,r),h(r,n),h(r,o),h(r,i),h(r,l),h(r,a),h(a,c),h(a,f),h(a,p),h(p,y),S||(g=K(a,"click",t[1]),S=!0)},p(d,[v]){v&1&&s!==(s=d[0]("general.leave")+"")&&ce(c,s)},i:Ze,o:Ze,d(d){d&&R(e),S=!1,g()}}}function lo(t,e,r){let n;et(t,at,i=>r(0,n=i));function o(){Jr("/")}return[n,o]}class so extends Ne{constructor(e){super(),xe(this,e,lo,ao,Ce,{})}}function co(t){let e,r,n,o;const i=t[1].default,l=Hr(i,t,t[0],null);return{c(){e=E("div"),r=E("div"),n=C(),l&&l.c(),m(r,"class","ml-5 w-20 h-20 border-4 border-indigo-600 rounded-full loader svelte-1rc6lrp"),m(e,"class","absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")},m(a,s){M(a,e,s),h(e,r),h(e,n),l&&l.m(e,null),o=!0},p(a,[s]){l&&l.p&&(!o||s&1)&&Qr(l,i,a,a[0],o?zr(i,a[0],s,null):qr(a[0]),null)},i(a){o||(Y(l,a),o=!0)},o(a){ee(l,a),o=!1},d(a){a&&R(e),l&&l.d(a)}}}function fo(t,e,r){let{$$slots:n={},$$scope:o}=e;return t.$$set=i=>{"$$scope"in i&&r(0,o=i.$$scope)},[o,n]}class uo extends Ne{constructor(e){super(),xe(this,e,fo,co,Ce,{})}}function vr(t){let e,r,n;return r=new uo({props:{$$slots:{default:[po]},$$scope:{ctx:t}}}),{c(){e=E("div"),De(r.$$.fragment),m(e,"class","flex flex-col items-center justify-center")},m(o,i){M(o,e,i),Le(r,e,null),n=!0},p(o,i){const l={};i&16416&&(l.$$scope={dirty:i,ctx:o}),r.$set(l)},i(o){n||(Y(r.$$.fragment,o),n=!0)},o(o){ee(r.$$.fragment,o),n=!1},d(o){o&&R(e),Be(r)}}}function po(t){let e,r=t[5]("general.connecting")+"",n,o;return{c(){e=E("p"),n=ie(r),o=ie("..."),m(e,"class","p-5")},m(i,l){M(i,e,l),h(e,n),h(e,o)},p(i,l){l&32&&r!==(r=i[5]("general.connecting")+"")&&ce(n,r)},d(i){i&&R(e)}}}function yo(t){let e,r,n,o,i,l,a,s,c;e=new so({});let f=!t[2]&&vr(t);function p(d){t[9](d)}function y(d){t[10](d)}function S(d){t[11](d)}let g={roomName:t[0].room};return t[2]!==void 0&&(g.isJoined=t[2]),t[3]!==void 0&&(g.jimmiApi=t[3]),t[4].password!==void 0&&(g.conferencePassword=t[4].password),i=new oo({props:g}),t[8](i),de.push(()=>ut(i,"isJoined",p)),de.push(()=>ut(i,"jimmiApi",y)),de.push(()=>ut(i,"conferencePassword",S)),i.$on("message",t[6]),{c(){De(e.$$.fragment),r=C(),f&&f.c(),n=C(),o=E("div"),De(i.$$.fragment),Xe(o,"hidden",!t[2])},m(d,v){Le(e,d,v),M(d,r,v),f&&f.m(d,v),M(d,n,v),M(d,o,v),Le(i,o,null),c=!0},p(d,[v]){d[2]?f&&(br(),ee(f,1,1,()=>{f=null}),Sr()):f?(f.p(d,v),v&4&&Y(f,1)):(f=vr(d),f.c(),Y(f,1),f.m(n.parentNode,n));const u={};v&1&&(u.roomName=d[0].room),!l&&v&4&&(l=!0,u.isJoined=d[2],pt(()=>l=!1)),!a&&v&8&&(a=!0,u.jimmiApi=d[3],pt(()=>a=!1)),!s&&v&16&&(s=!0,u.conferencePassword=d[4].password,pt(()=>s=!1)),i.$set(u),(!c||v&4)&&Xe(o,"hidden",!d[2])},i(d){c||(Y(e.$$.fragment,d),Y(f),Y(i.$$.fragment,d),c=!0)},o(d){ee(e.$$.fragment,d),ee(f),ee(i.$$.fragment,d),c=!1},d(d){d&&(R(r),R(n),R(o)),Be(e,d),f&&f.d(d),t[8](null),Be(i)}}}function mo(t,e,r){let n,o,i;et(t,at,u=>r(5,o=u)),et(t,Vr,u=>r(7,i=u));let{params:l}=e,a,s,c;const f={};function p(u){if(!c)return;let P=Object.keys(f).reduce((w,A)=>w+=` +${f[A].description||o("general.noDescriptionForCommand")}`,`The following commands are available: +!help - Display this help menu`);u.respond(P)}function y(u){if(u.detail.text.startsWith("!")){let[P]=u.detail.text.split(" ");if(P=P.toLocaleLowerCase(),P==="!help")return p(u.detail);P in f&&f[P].exec(u)}}hr(async()=>{const u={hosts:{domain:l.instance,muc:`conference.${l.instance}`},bosh:`https://${l.instance}/http-bind?room=${l.room}`};await a.joinConference(u);const P=new RegExp(/^\w+$/);Re.plugins.map(w=>new w(c)).forEach(w=>{Object.keys(w.commands||{}).forEach(A=>{const L=`!${A}`;P.test(A)?L in f?console.warn(`Duplicate command: "${L}" provided by plugin "${w.meta.id}" is already used!`):f[L]=new Hi(A,w):console.error(`Invalid command: "${A}" provided by plugin "${w.meta.id}" is not a valid command name!`)}),Object.keys(w.events||{}).forEach(A=>{Object.values(Kr).includes(A)?a.addConferenceEventListener(A,w.events[A].bind(w)):console.error(`Invalid jitsi conference event: ${A} provided by plugin "${w.meta.id}"`)})})});function S(u){de[u?"unshift":"push"](()=>{a=u,r(1,a)})}function g(u){s=u,r(2,s)}function d(u){c=u,r(3,c)}function v(u){t.$$.not_equal(n.password,u)&&(n.password=u,r(4,n),r(7,i))}return t.$$set=u=>{"params"in u&&r(0,l=u.params)},t.$$.update=()=>{t.$$.dirty&128&&r(4,n=Ji.parse(i||""))},[l,a,s,c,n,o,y,i,S,g,d,v]}class ho extends Ne{constructor(e){super(),xe(this,e,mo,yo,Ce,{params:0})}}export{ho as default}; diff --git a/assets/Bot-cad5cf45.js b/assets/Bot-cad5cf45.js deleted file mode 100644 index 872af70..0000000 --- a/assets/Bot-cad5cf45.js +++ /dev/null @@ -1,6 +0,0 @@ -var Qt=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var J=(t,e,r)=>(Qt(t,e,"read from private field"),r?r.call(t):e.get(t)),te=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},re=(t,e,r,n)=>(Qt(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{g as Rr,X as ot,i as Dr,S as Ne,a as xe,s as Ce,e as E,b as C,t as ie,c as m,d as Te,f as qt,h as Xe,j as M,k as h,l as zt,m as K,n as fe,o as Vt,p as R,q as vr,r as Lr,u as gr,v as Br,w as ye,x as jr,y as de,z as De,A as Ze,B as Le,C as Be,D as Y,E as hr,F as br,G as ee,H as je,I as et,J as Ur,K as Gr,L as Wr,M as Jr,N as Hr,O as Qr,P as qr,Q as ct,R as ut,T as zr,U as Vr}from"./index-ab27dae8.js";var Kr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0},Kt=typeof Symbol<"u"&&Symbol,Yr=Kr,Xr=function(){return typeof Kt!="function"||typeof Symbol!="function"||typeof Kt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Yr()},Zr="Function.prototype.bind called on incompatible ",pt=Array.prototype.slice,en=Object.prototype.toString,tn="[object Function]",rn=function(e){var r=this;if(typeof r!="function"||en.call(r)!==tn)throw new TypeError(Zr+r);for(var n=pt.call(arguments,1),o,i=function(){if(this instanceof o){var c=r.apply(this,n.concat(pt.call(arguments)));return Object(c)===c?c:this}else return r.apply(e,n.concat(pt.call(arguments)))},l=Math.max(0,r.length-n.length),a=[],s=0;s"u"?N:ae(Uint8Array),Se={"%AggregateError%":typeof AggregateError>"u"?N:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?N:ArrayBuffer,"%ArrayIteratorPrototype%":ge?ae([][Symbol.iterator]()):N,"%AsyncFromSyncIteratorPrototype%":N,"%AsyncFunction%":he,"%AsyncGenerator%":he,"%AsyncGeneratorFunction%":he,"%AsyncIteratorPrototype%":he,"%Atomics%":typeof Atomics>"u"?N:Atomics,"%BigInt%":typeof BigInt>"u"?N:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?N:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?N:Float32Array,"%Float64Array%":typeof Float64Array>"u"?N:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?N:FinalizationRegistry,"%Function%":Sr,"%GeneratorFunction%":he,"%Int8Array%":typeof Int8Array>"u"?N:Int8Array,"%Int16Array%":typeof Int16Array>"u"?N:Int16Array,"%Int32Array%":typeof Int32Array>"u"?N:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ge?ae(ae([][Symbol.iterator]())):N,"%JSON%":typeof JSON=="object"?JSON:N,"%Map%":typeof Map>"u"?N:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ge?N:ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?N:Promise,"%Proxy%":typeof Proxy>"u"?N:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?N:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?N:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ge?N:ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?N:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ge?ae(""[Symbol.iterator]()):N,"%Symbol%":ge?Symbol:N,"%SyntaxError%":Ue,"%ThrowTypeError%":ln,"%TypedArray%":sn,"%TypeError%":be,"%Uint8Array%":typeof Uint8Array>"u"?N:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?N:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?N:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?N:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?N:WeakMap,"%WeakRef%":typeof WeakRef>"u"?N:WeakRef,"%WeakSet%":typeof WeakSet>"u"?N:WeakSet},fn=function t(e){var r;if(e==="%AsyncFunction%")r=yt("async function () {}");else if(e==="%GeneratorFunction%")r=yt("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=yt("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&(r=ae(o.prototype))}return Se[e]=r,r},Yt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},at=Ct,tt=an,cn=at.call(Function.call,Array.prototype.concat),un=at.call(Function.apply,Array.prototype.splice),Xt=at.call(Function.call,String.prototype.replace),rt=at.call(Function.call,String.prototype.slice),pn=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yn=/\\(\\)?/g,dn=function(e){var r=rt(e,0,1),n=rt(e,-1);if(r==="%"&&n!=="%")throw new Ue("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ue("invalid intrinsic syntax, expected opening `%`");var o=[];return Xt(e,pn,function(i,l,a,s){o[o.length]=a?Xt(s,yn,"$1"):l||i}),o},mn=function(e,r){var n=e,o;if(tt(Yt,n)&&(o=Yt[n],n="%"+o[0]+"%"),tt(Se,n)){var i=Se[n];if(i===he&&(i=fn(n)),typeof i>"u"&&!r)throw new be("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Ue("intrinsic "+e+" does not exist!")},It=function(e,r){if(typeof e!="string"||e.length===0)throw new be("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new be('"allowMissing" argument must be a boolean');var n=dn(e),o=n.length>0?n[0]:"",i=mn("%"+o+"%",r),l=i.name,a=i.value,s=!1,f=i.alias;f&&(o=f[0],un(n,cn([0,1],f)));for(var c=1,y=!0;c=n.length){var p=me(a,d);y=!!p,y&&"get"in p&&!("originalValue"in p.get)?a=p.get:a=a[d]}else y=tt(a,d),a=a[d];y&&!s&&(Se[l]=a)}}return a},wr={exports:{}};(function(t){var e=Ct,r=It,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,n),l=r("%Object.getOwnPropertyDescriptor%",!0),a=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}t.exports=function(y){var d=i(e,o,arguments);if(l&&a){var w=l(d,"length");w.configurable&&a(d,"length",{value:1+s(0,y.length-(arguments.length-1))})}return d};var f=function(){return i(e,n,arguments)};a?a(t.exports,"apply",{value:f}):t.exports.apply=f})(wr);var vn=wr.exports,_r=It,Er=vn,gn=Er(_r("String.prototype.indexOf")),hn=function(e,r){var n=_r(e,!!r);return typeof n=="function"&&gn(e,".prototype.")>-1?Er(n):n};const bn={},Sn=Object.freeze(Object.defineProperty({__proto__:null,default:bn},Symbol.toStringTag,{value:"Module"})),wn=Rr(Sn);var $t=typeof Map=="function"&&Map.prototype,mt=Object.getOwnPropertyDescriptor&&$t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,nt=$t&&mt&&typeof mt.get=="function"?mt.get:null,_n=$t&&Map.prototype.forEach,kt=typeof Set=="function"&&Set.prototype,vt=Object.getOwnPropertyDescriptor&&kt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,it=kt&&vt&&typeof vt.get=="function"?vt.get:null,En=kt&&Set.prototype.forEach,An=typeof WeakMap=="function"&&WeakMap.prototype,Fe=An?WeakMap.prototype.has:null,On=typeof WeakSet=="function"&&WeakSet.prototype,Me=On?WeakSet.prototype.has:null,Pn=typeof WeakRef=="function"&&WeakRef.prototype,Zt=Pn?WeakRef.prototype.deref:null,Nn=Boolean.prototype.valueOf,xn=Object.prototype.toString,Cn=Function.prototype.toString,In=String.prototype.match,Tt=String.prototype.slice,se=String.prototype.replace,$n=String.prototype.toUpperCase,er=String.prototype.toLowerCase,Ar=RegExp.prototype.test,tr=Array.prototype.concat,Z=Array.prototype.join,kn=Array.prototype.slice,rr=Math.floor,At=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gt=Object.getOwnPropertySymbols,Ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",U=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oe||"symbol")?Symbol.toStringTag:null,Or=Object.prototype.propertyIsEnumerable,nr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ir(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Ar.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-rr(-t):rr(t);if(n!==t){var o=String(n),i=Tt.call(e,o.length+1);return se.call(o,r,"$&_")+"."+se.call(se.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return se.call(e,r,"$&_")}var ht=wn.custom,bt=ht&&Nr(ht)?ht:null,Tn=function t(e,r,n,o){var i=r||{};if(le(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(le(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=le(i,"customInspect")?i.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(le(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(le(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Cr(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return a?ir(e,s):s}if(typeof e=="bigint"){var f=String(e)+"n";return a?ir(e,f):f}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Pt(e)?"[Array]":"[Object]";var y=Xn(i,n);if(typeof o>"u")o=[];else if(xr(o,e)>=0)return"[Circular]";function d(x,_,G){if(_&&(o=kn.call(o),o.push(_)),G){var I={depth:i.depth};return le(i,"quoteStyle")&&(I.quoteStyle=i.quoteStyle),t(x,I,n+1,o)}return t(x,i,n+1,o)}if(typeof e=="function"){var w=Wn(e),g=qe(e,d);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(g.length>0?" { "+Z.call(g,", ")+" }":"")}if(Nr(e)){var p=Oe?se.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ot.call(e);return typeof e=="object"&&!Oe?ke(p):p}if(Vn(e)){for(var v="<"+er.call(String(e.nodeName)),u=e.attributes||[],O=0;O",v}if(Pt(e)){if(e.length===0)return"[]";var S=qe(e,d);return y&&!Yn(S)?"["+Nt(S,y)+"]":"[ "+Z.call(S,", ")+" ]"}if(Dn(e)){var A=qe(e,d);return"cause"in e&&!Or.call(e,"cause")?"{ ["+String(e)+"] "+Z.call(tr.call("[cause]: "+d(e.cause),A),", ")+" }":A.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Z.call(A,", ")+" }"}if(typeof e=="object"&&l){if(bt&&typeof e[bt]=="function")return e[bt]();if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Jn(e)){var L=[];return _n.call(e,function(x,_){L.push(d(_,e,!0)+" => "+d(x,e))}),or("Map",nt.call(e),L,y)}if(qn(e)){var k=[];return En.call(e,function(x){k.push(d(x,e))}),or("Set",it.call(e),k,y)}if(Hn(e))return St("WeakMap");if(zn(e))return St("WeakSet");if(Qn(e))return St("WeakRef");if(Bn(e))return ke(d(Number(e)));if(Un(e))return ke(d(At.call(e)));if(jn(e))return ke(Nn.call(e));if(Ln(e))return ke(d(String(e)));if(!Mn(e)&&!Rn(e)){var B=qe(e,d),D=nr?nr(e)===Object.prototype:e instanceof Object||e.constructor===Object,H=e instanceof Object?"":"null prototype",q=!D&&U&&Object(e)===e&&U in e?Tt.call(ce(e),8,-1):H?"Object":"",T=D||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",b=T+(q||H?"["+Z.call(tr.call([],q||[],H||[]),": ")+"] ":"");return B.length===0?b+"{}":y?b+"{"+Nt(B,y)+"}":b+"{ "+Z.call(B,", ")+" }"}return String(e)};function Pr(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Fn(t){return se.call(String(t),/"/g,""")}function Pt(t){return ce(t)==="[object Array]"&&(!U||!(typeof t=="object"&&U in t))}function Mn(t){return ce(t)==="[object Date]"&&(!U||!(typeof t=="object"&&U in t))}function Rn(t){return ce(t)==="[object RegExp]"&&(!U||!(typeof t=="object"&&U in t))}function Dn(t){return ce(t)==="[object Error]"&&(!U||!(typeof t=="object"&&U in t))}function Ln(t){return ce(t)==="[object String]"&&(!U||!(typeof t=="object"&&U in t))}function Bn(t){return ce(t)==="[object Number]"&&(!U||!(typeof t=="object"&&U in t))}function jn(t){return ce(t)==="[object Boolean]"&&(!U||!(typeof t=="object"&&U in t))}function Nr(t){if(Oe)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ot)return!1;try{return Ot.call(t),!0}catch{}return!1}function Un(t){if(!t||typeof t!="object"||!At)return!1;try{return At.call(t),!0}catch{}return!1}var Gn=Object.prototype.hasOwnProperty||function(t){return t in this};function le(t,e){return Gn.call(t,e)}function ce(t){return xn.call(t)}function Wn(t){if(t.name)return t.name;var e=In.call(Cn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function xr(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Cr(Tt.call(t,0,e.maxStringLength),e)+n}var o=se.call(se.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Kn);return Pr(o,"single",e)}function Kn(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+$n.call(e.toString(16))}function ke(t){return"Object("+t+")"}function St(t){return t+" { ? }"}function or(t,e,r,n){var o=n?Nt(r,n):Z.call(r,", ");return t+" ("+e+") {"+o+"}"}function Yn(t){for(var e=0;e=0)return!1;return!0}function Xn(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Z.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Z.call(Array(e+1),r)}}function Nt(t,e){if(t.length===0)return"";var r=` -`+e.prev+e.base;return r+Z.call(t,","+r)+` -`+e.prev}function qe(t,e){var r=Pt(t),n=[];if(r){n.length=t.length;for(var o=0;o1;){var r=e.pop(),n=r.obj[r.prop];if(ue(n)){for(var o=[],i=0;i=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===yi.RFC1738&&(f===40||f===41)){a+=l.charAt(s);continue}if(f<128){a=a+X[f];continue}if(f<2048){a=a+(X[192|f>>6]+X[128|f&63]);continue}if(f<55296||f>=57344){a=a+(X[224|f>>12]+X[128|f>>6&63]+X[128|f&63]);continue}s+=1,f=65536+((f&1023)<<10|l.charCodeAt(s)&1023),a+=X[240|f>>18]+X[128|f>>12&63]+X[128|f>>6&63]+X[128|f&63]}return a},bi=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o"u"&&(S=0)}if(typeof s=="function"?u=s(r,u):u instanceof Date?u=y(u):n==="comma"&&ne(u)&&(u=Ye.maybeMap(u,function(I){return I instanceof Date?y(I):I})),u===null){if(i)return a&&!g?a(r,j.encoder,p,"key",d):r;u=""}if(Ni(u)||Ye.isBuffer(u)){if(a){var k=g?r:a(r,j.encoder,p,"key",d);return[w(k)+"="+w(a(u,j.encoder,p,"value",d))]}return[w(r)+"="+w(String(u))]}var B=[];if(typeof u>"u")return B;var D;if(n==="comma"&&ne(u))g&&a&&(u=Ye.maybeMap(u,a)),D=[{value:u.length>0?u.join(",")||null:void 0}];else if(ne(s))D=s;else{var H=Object.keys(u);D=f?H.sort(f):H}for(var q=o&&ne(u)&&u.length===1?r+"[]":r,T=0;T"u"?j.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:j.charsetSentinel,delimiter:typeof e.delimiter>"u"?j.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:j.encode,encoder:typeof e.encoder=="function"?e.encoder:j.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:j.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:j.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:j.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:j.strictNullHandling}},Ii=function(t,e){var r=t,n=Ci(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):ne(n.filter)&&(i=n.filter,o=i);var l=[];if(typeof r!="object"||r===null)return"";var a;e&&e.arrayFormat in ar?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var s=ar[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=s==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var c=kr(),y=0;y0?g+w:""},Pe=$r,xt=Object.prototype.hasOwnProperty,$i=Array.isArray,F={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Pe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ki=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Fr=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Ti="utf8=%26%2310003%3B",Fi="utf8=%E2%9C%93",Mi=function(e,r){var n={},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,l=o.split(r.delimiter,i),a=-1,s,f=r.charset;if(r.charsetSentinel)for(s=0;s-1&&(g=$i(g)?[g]:g),xt.call(n,w)?n[w]=Pe.combine(n[w],g):n[w]=g}return n},Ri=function(t,e,r,n){for(var o=n?e:Fr(e,r),i=t.length-1;i>=0;--i){var l,a=t[i];if(a==="[]"&&r.parseArrays)l=[].concat(o);else{l=r.plainObjects?Object.create(null):{};var s=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,f=parseInt(s,10);!r.parseArrays&&s===""?l={0:o}:!isNaN(f)&&a!==s&&String(f)===s&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(l=[],l[f]=o):s!=="__proto__"&&(l[s]=o)}o=l}return o},Di=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=n.depth>0&&l.exec(i),f=s?i.slice(0,s.index):i,c=[];if(f){if(!n.plainObjects&&xt.call(Object.prototype,f)&&!n.allowPrototypes)return;c.push(f)}for(var y=0;n.depth>0&&(s=a.exec(i))!==null&&y"u"?F.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?F.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:F.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:F.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:F.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:F.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:F.comma,decoder:typeof e.decoder=="function"?e.decoder:F.decoder,delimiter:typeof e.delimiter=="string"||Pe.isRegExp(e.delimiter)?e.delimiter:F.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:F.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:F.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:F.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:F.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:F.strictNullHandling}},Bi=function(t,e){var r=Li(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?Mi(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),l=0;lre(this,we,n))}get name(){return J(this,pe)}get pluginId(){return J(this,Ge)}exec(e){J(this,We).call(this,e.detail)}get description(){return J(this,we)?J(this,we).call(this,`plugins.${this.pluginId}.commands.${J(this,pe)}.usage`):""}}pe=new WeakMap,Ge=new WeakMap,We=new WeakMap,we=new WeakMap;function sr(t,{delay:e=0,duration:r=400,easing:n=Dr}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:i=>`opacity: ${i*o}`}}function fr(t,e,r){const n=t.slice();return n[27]=e[r],n[29]=r,n}function Hi(t){let e,r,n;return{c(){e=de("svg"),r=de("polygon"),n=de("polygon"),m(r,"points","7,3 7,21"),m(n,"points","17,3 17,21"),m(e,"class","w-5 h-5"),m(e,"viewBox","0 0 24 24"),m(e,"fill","none"),m(e,"stroke","currentColor"),m(e,"stroke-width","2"),m(e,"stroke-linecap","round"),m(e,"stroke-linejoin","round")},m(o,i){M(o,e,i),h(e,r),h(e,n)},d(o){o&&R(e)}}}function Qi(t){let e,r;return{c(){e=de("svg"),r=de("polygon"),m(r,"points","5 3 19 12 5 21 5 3"),m(e,"class","w-5 h-5"),m(e,"viewBox","0 0 24 24"),m(e,"fill","none"),m(e,"stroke","currentColor"),m(e,"stroke-width","2"),m(e,"stroke-linecap","round"),m(e,"stroke-linejoin","round")},m(n,o){M(n,e,o),h(e,r)},d(n){n&&R(e)}}}function cr(t){let e,r,n,o,i=t[27].title+"",l,a,s,f;function c(){return t[24](t[29])}return{c(){e=E("li"),r=E("button"),r.innerHTML='',n=C(),o=E("div"),l=ie(i),a=C(),m(r,"class","p-3 hover:bg-green-500 group focus:outline-none"),m(o,"class","flex-1"),m(e,"class","flex items-center space-x-3 hover:bg-gray-100")},m(y,d){M(y,e,d),h(e,r),h(e,n),h(e,o),h(o,l),h(e,a),s||(f=K(r,"click",c),s=!0)},p(y,d){t=y,d&64&&i!==(i=t[27].title+"")&&fe(l,i)},d(y){y&&R(e),s=!1,f()}}}function qi(t){var Gt;let e,r,n=!1,o,i,l,a,s,f,c,y,d,w,g,p=(((Gt=t[5])==null?void 0:Gt.title)||"N/A")+"",v,u,O,S,A,L,k,B,D=Ke(t[3],t[4])+"",H,q,T,b,x,_,G,I,Dt,lt,He=Ke(t[4])+"",st,Lt,$e,z,ft,Bt;function jt(){cancelAnimationFrame(o),e.paused||(o=Br(jt),n=!0),t[18].call(e)}function Ut(P,$){var Q;return(Q=P[2])!=null&&Q.paused?Qi:Hi}let Qe=Ut(t),oe=Qe(t),ve=t[6],W=[];for(let P=0;P',x=C(),_=E("button"),oe.c(),G=C(),I=E("button"),I.innerHTML='',Dt=C(),lt=E("div"),st=ie(He),Lt=C(),$e=E("ul");for(let Q=0;Qt[19].call(e)),Te(f.src,c=($=t[5])==null?void 0:$.thumbnailUrl)||m(f,"src",c),m(f,"alt","Video thumbnail"),m(f,"class","h-80 w-full object-cover"),m(f,"crossorigin","anonymous"),m(f,"referrerpolicy","no-referrer"),Xe(f,"invisible",!t[7]),m(s,"class","h-80"),m(g,"class","font-bold"),m(w,"class","absolute p-4 inset-0 flex flex-col justify-end bg-gradient-to-b from-transparent to-gray-900 backdrop backdrop-blur-5 text-white"),m(a,"class","relative"),m(A,"type","range"),m(A,"min","0"),m(A,"max",t[4]),m(A,"class","absolute h-full w-full"),m(S,"class","relative h-1 bg-gray-200"),m(b,"class","focus:outline-none"),m(_,"class","rounded-full w-8 h-8 flex items-center justify-center pl-0.5 ring-2 ring-gray-100 focus:outline-none"),m(I,"class","focus:outline-none"),m(T,"class","flex space-x-3 p-2"),m(k,"class","flex justify-between text-xs font-semibold text-gray-500 px-4 py-2"),m($e,"class","text-xs sm:text-base divide-y border-t cursor-default"),m(l,"class","max-w-xl bg-white rounded-lg shadow-lg overflow-hidden")},m(P,$){M(P,e,$),t[17](e),M(P,i,$),M(P,l,$),h(l,a),h(a,s),h(s,f),h(a,d),h(a,w),h(w,g),h(g,v),h(l,u),h(l,O),h(O,S),h(S,A),zt(A,t[3]),h(l,L),h(l,k),h(k,B),h(B,H),h(k,q),h(k,T),h(T,b),h(T,x),h(T,_),oe.m(_,null),h(T,G),h(T,I),h(k,Dt),h(k,lt),h(lt,st),h(l,Lt),h(l,$e);for(let Q=0;Q{z&&(y||(y=Vt(f,sr,{},!0)),y.run(1))}),z=!0)},o(P){y||(y=Vt(f,sr,{},!1)),y.run(0),z=!1},d(P){P&&R(e),t[17](null),P&&R(i),P&&R(l),P&&y&&y.end(),oe.d(),vr(W,P),ft=!1,Lr(Bt)}}}function Ke(t,e=t){if(!e)return"--:--";let r=Math.trunc(t/3600),n=Math.trunc(t%3600/60),o=Math.trunc(t%60);return r<10&&(r="0"+r),n<10&&(n="0"+n),o<10&&(o="0"+o),e>3600?`${r}:${n}:${o}`:e>60?`${n}:${o}`:o}function zi(t,e,r){let n,o,i,l,a,s=0,f=0;function c(){return Math.floor(l.gain.value*100)}function y(_){l.gain.value=[0,_/100,1].sort()[1]}function d(){if(!a)throw new Error("Audio element not ready yet!");const _=new AudioContext,G=_.createMediaElementSource(a);l=_.createGain();const I=_.createMediaStreamDestination();y(De.default.initialVolume),G.connect(l).connect(I),navigator.mediaDevices.getUserMedia=async function(){return await _.resume(),I.stream}}async function w(_){_?r(5,o=_):await(a==null?void 0:a.play())}async function g(_){r(6,n=n.concat(_))}function p(){return console.log(n),Object.freeze(n)}function v(_){w(n[_]),n.splice(_,1),r(6,n)}function u(){a&&(a.paused?a.play():a.pause())}function O(){return o}function S(_){a&&r(2,a.currentTime+=_,a)}function A(){n.length>0?(w(n.shift()),r(6,n)):(r(5,o=null),r(2,a.src="",a))}gr(d);const L=()=>w();function k(_){ye[_?"unshift":"push"](()=>{a=_,r(2,a)})}function B(){s=this.currentTime,r(3,s)}function D(){f=this.duration,r(4,f)}const H=()=>r(7,i=!0);function q(){s=jr(this.value),r(3,s)}const T=()=>S(-s),b=()=>S(f),x=_=>v(_);return r(6,n=[]),r(5,o=null),r(7,i=!1),[w,S,a,s,f,o,n,i,v,u,A,c,y,g,p,O,L,k,B,D,H,q,T,b,x]}class Vi extends Ne{constructor(e){super(),xe(this,e,zi,qi,Ce,{getGain:11,setGain:12,play:0,addToQueue:13,getQueue:14,getCurrentTrack:15,forward:1})}get getGain(){return this.$$.ctx[11]}get setGain(){return this.$$.ctx[12]}get play(){return this.$$.ctx[0]}get addToQueue(){return this.$$.ctx[13]}get getQueue(){return this.$$.ctx[14]}get getCurrentTrack(){return this.$$.ctx[15]}get forward(){return this.$$.ctx[1]}}function Ki(t){let e,r,n,o,i=t[0].getDisplayName()+"",l;return{c(){e=E("div"),r=E("div"),r.innerHTML='',n=C(),o=E("h2"),l=ie(i),m(r,"class","w-8 h-8 mr-3 inline-flex items-center justify-center rounded-full bg-indigo-500 text-white flex-shrink-0"),m(o,"class","text-gray-900 break-words text-lg title-font font-medium"),m(e,"class","flex items-center mb-3")},m(a,s){M(a,e,s),h(e,r),h(e,n),h(e,o),h(o,l)},p(a,[s]){s&1&&i!==(i=a[0].getDisplayName()+"")&&fe(l,i)},i:Ze,o:Ze,d(a){a&&R(e)}}}function Yi(t,e,r){let{participant:n}=e;return t.$$set=o=>{"participant"in o&&r(0,n=o.participant)},[n]}class Xi extends Ne{constructor(e){super(),xe(this,e,Yi,Ki,Ce,{participant:0})}}var _e,Ee,Ae,Je;class Zi{constructor(e,r,n,o){te(this,_e,void 0);te(this,Ee,void 0);te(this,Ae,void 0);te(this,Je,void 0);re(this,_e,e),re(this,Ee,r),re(this,Je,n),re(this,Ae,o)}get text(){return J(this,_e)}get params(){const[,...e]=J(this,_e).split(" ");return e}get participant(){return J(this,Ee)}respond(e){J(this,Je)?J(this,Ae).call(this,e,J(this,Ee).getId()):J(this,Ae).call(this,e)}}_e=new WeakMap,Ee=new WeakMap,Ae=new WeakMap,Je=new WeakMap;class eo{constructor(e,r){this.audio=e,this.conference=r,this.play.bind(this),this.mute.bind(this),this.unmute.bind(this)}async play(){await this.audio.play(),this.unmute()}mute(){}unmute(){}get queue(){return this.audio.getQueue()}addToQueue(e){this.audio.addToQueue(e)}get currentTrack(){return this.audio.getCurrentTrack()}set currentTrack(e){this.audio.play(e)}forward(e){this.audio.forward(e)}get volume(){return this.audio.getGain()}set volume(e){this.audio.setGain(e),e&&this.unmute()}}function ur(t,e,r){const n=t.slice();return n[25]=e[r],n}function pr(t){let e,r=t[3]("general.participants")+"",n;return{c(){e=E("h1"),n=ie(r),m(e,"class","text-gray-900 text-3xl title-font font-medium mb-4")},m(o,i){M(o,e,i),h(e,n)},p(o,i){i&8&&r!==(r=o[3]("general.participants")+"")&&fe(n,r)},d(o){o&&R(e)}}}function yr(t){let e,r;return e=new Xi({props:{participant:t[25]}}),{c(){Le(e.$$.fragment)},m(n,o){Be(e,n,o),r=!0},p(n,o){const i={};o&4&&(i.participant=n[25]),e.$set(i)},i(n){r||(Y(e.$$.fragment,n),r=!0)},o(n){ee(e.$$.fragment,n),r=!1},d(n){je(e,n)}}}function to(t){let e,r,n,o,i,l,a,s,f,c,y={};l=new Vi({props:y}),t[11](l);let d=t[2].length&&pr(t),w=t[2],g=[];for(let v=0;vee(g[v],1,1,()=>{g[v]=null});return{c(){e=E("div"),r=C(),n=E("div"),o=E("div"),i=E("div"),Le(l.$$.fragment),a=C(),s=E("div"),d&&d.c(),f=C();for(let v=0;vsetTimeout(e,t))}async function Mr(){const t=window.JitsiMeetJS;return typeof t<"u"?t:(await ro(100),Mr())}function no(t,e,r){let n,o;et(t,ot,b=>r(3,o=b));let{isJoined:i=!1}=e,{roomName:l}=e,{jimmiApi:a}=e,{conferencePassword:s=""}=e,f,c,y,d=[],w;const g=Ur();let p,v;function u(){r(2,n=y.getParticipants())}function O(){for(let b=0;bg("message",new Zi(_,y.getParticipantById(x),G,y.sendMessage.bind(y)));y.addEventListener(p.events.conference.PRIVATE_MESSAGE_RECEIVED,(x,_)=>b(x,_,!0)),y.addEventListener(p.events.conference.MESSAGE_RECEIVED,(x,_)=>b(x,_,!1))}async function L(){console.info("Successfully joined conference!"),w(null),r(4,i=!0),S();const b=()=>{};y.addEventListener(p.events.conference.MESSAGE_RECEIVED,b),await(_=>new Promise(G=>setTimeout(G,_)))(1e3),y.removeEventListener(p.events.conference.MESSAGE_RECEIVED,b),A()}function k(){console.info("Connection established successfully");const b={startAudioMuted:!1};y=c.initJitsiConference(l.toLowerCase(),b),y.setDisplayName(De.default.jitsiDisplayName),y.on(p.events.conference.CONFERENCE_JOINED,L),y.on(p.events.conference.USER_JOINED,u),y.on(p.events.conference.USER_LEFT,u),y.on(p.events.conference.DISPLAY_NAME_CHANGED,u),y.join(s)}function B(){console.info("disconnecting!"),c.removeEventListener(p.events.connection.CONNECTION_ESTABLISHED,k),c.removeEventListener(p.events.connection.CONNECTION_FAILED,dr),c.removeEventListener(p.events.connection.CONNECTION_DISCONNECTED,B)}async function D(b){let x=document.createElement("script");x.src=`https://${b.hosts.domain}/libs/lib-jitsi-meet.min.js`,v==null||v.append(x),p=await Mr(),p.setLogLevel(p.logLevels.WARN),window.addEventListener("beforeunload",O),window.addEventListener("unload",O);const _={disableAudioLevels:!0,disableThirdPartyRequests:!0,enableAnalyticsLogging:!1},G=new Promise(I=>{w=I});p.init(_),c=new p.JitsiConnection(void 0,null,b),c.addEventListener(p.events.connection.CONNECTION_ESTABLISHED,k),c.addEventListener(p.events.connection.CONNECTION_FAILED,dr),c.addEventListener(p.events.connection.CONNECTION_DISCONNECTED,B),c.connect(),p.createLocalTracks({devices:["audio"]}).then(S).catch(I=>{throw I}),await G,r(5,a=new eo(f,y))}function H(b,x){y.addEventListener(b,x)}Gr(()=>{O()});function q(b){ye[b?"unshift":"push"](()=>{v=b,r(1,v)})}function T(b){ye[b?"unshift":"push"](()=>{f=b,r(0,f)})}return t.$$set=b=>{"isJoined"in b&&r(4,i=b.isJoined),"roomName"in b&&r(6,l=b.roomName),"jimmiApi"in b&&r(5,a=b.jimmiApi),"conferencePassword"in b&&r(7,s=b.conferencePassword)},r(2,n=[]),[f,v,n,o,i,a,l,s,D,H,q,T]}class io extends Ne{constructor(e){super(),xe(this,e,no,to,Ce,{isJoined:4,roomName:6,jimmiApi:5,conferencePassword:7,joinConference:8,addConferenceEventListener:9})}get joinConference(){return this.$$.ctx[8]}get addConferenceEventListener(){return this.$$.ctx[9]}}function oo(t){let e,r,n,o,i,l,a,s,f,c,y,d=t[0]("general.leave")+"",w,g,p,v,u,O;return{c(){e=E("header"),r=E("div"),n=E("a"),o=E("img"),l=C(),a=E("span"),a.textContent="JIMMI",s=C(),f=E("nav"),c=C(),y=E("button"),w=ie(d),g=C(),p=de("svg"),v=de("path"),Te(o.src,i=De.logo)||m(o,"src",i),m(o,"alt","Logo"),m(o,"class","w-16 h-16"),m(a,"class","ml-3 text-white text-xl font-mono"),m(n,"href",De.url),m(n,"class","flex title-font font-medium items-center text-gray-900 mb-4 sm:mb-0"),m(f,"class","sm:ml-auto flex flex-wrap items-center text-base justify-center"),m(v,"d","M5 12h14M12 5l7 7-7 7"),m(p,"fill","none"),m(p,"stroke","currentColor"),m(p,"stroke-linecap","round"),m(p,"stroke-linejoin","round"),m(p,"stroke-width","2"),m(p,"class","w-4 h-4 ml-1"),m(p,"viewBox","0 0 24 24"),m(y,"class","inline-flex items-center bg-gray-100 border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 sm:mt-0"),m(r,"class","container p-2 mx-auto flex flex-wrap p-1 flex-col sm:flex-row items-center"),m(e,"class","bg-indigo-500 text-lightgray-600 body-font")},m(S,A){M(S,e,A),h(e,r),h(r,n),h(n,o),h(n,l),h(n,a),h(r,s),h(r,f),h(r,c),h(r,y),h(y,w),h(y,g),h(y,p),h(p,v),u||(O=K(y,"click",t[1]),u=!0)},p(S,[A]){A&1&&d!==(d=S[0]("general.leave")+"")&&fe(w,d)},i:Ze,o:Ze,d(S){S&&R(e),u=!1,O()}}}function ao(t,e,r){let n;et(t,ot,i=>r(0,n=i));function o(){Wr("/")}return[n,o]}class lo extends Ne{constructor(e){super(),xe(this,e,ao,oo,Ce,{})}}function so(t){let e,r,n,o;const i=t[1].default,l=Jr(i,t,t[0],null);return{c(){e=E("div"),r=E("div"),n=C(),l&&l.c(),m(r,"class","ml-5 w-20 h-20 border-4 border-indigo-600 rounded-full loader svelte-1rc6lrp"),m(e,"class","absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")},m(a,s){M(a,e,s),h(e,r),h(e,n),l&&l.m(e,null),o=!0},p(a,[s]){l&&l.p&&(!o||s&1)&&Hr(l,i,a,a[0],o?qr(i,a[0],s,null):Qr(a[0]),null)},i(a){o||(Y(l,a),o=!0)},o(a){ee(l,a),o=!1},d(a){a&&R(e),l&&l.d(a)}}}function fo(t,e,r){let{$$slots:n={},$$scope:o}=e;return t.$$set=i=>{"$$scope"in i&&r(0,o=i.$$scope)},[o,n]}class co extends Ne{constructor(e){super(),xe(this,e,fo,so,Ce,{})}}function mr(t){let e,r,n;return r=new co({props:{$$slots:{default:[uo]},$$scope:{ctx:t}}}),{c(){e=E("div"),Le(r.$$.fragment),m(e,"class","flex flex-col items-center justify-center")},m(o,i){M(o,e,i),Be(r,e,null),n=!0},p(o,i){const l={};i&16416&&(l.$$scope={dirty:i,ctx:o}),r.$set(l)},i(o){n||(Y(r.$$.fragment,o),n=!0)},o(o){ee(r.$$.fragment,o),n=!1},d(o){o&&R(e),je(r)}}}function uo(t){let e,r=t[5]("general.connecting")+"",n,o;return{c(){e=E("p"),n=ie(r),o=ie("..."),m(e,"class","p-5")},m(i,l){M(i,e,l),h(e,n),h(e,o)},p(i,l){l&32&&r!==(r=i[5]("general.connecting")+"")&&fe(n,r)},d(i){i&&R(e)}}}function po(t){let e,r,n,o,i,l,a,s,f;e=new lo({});let c=!t[2]&&mr(t);function y(p){t[9](p)}function d(p){t[10](p)}function w(p){t[11](p)}let g={roomName:t[0].room};return t[2]!==void 0&&(g.isJoined=t[2]),t[3]!==void 0&&(g.jimmiApi=t[3]),t[4].password!==void 0&&(g.conferencePassword=t[4].password),i=new io({props:g}),t[8](i),ye.push(()=>ct(i,"isJoined",y)),ye.push(()=>ct(i,"jimmiApi",d)),ye.push(()=>ct(i,"conferencePassword",w)),i.$on("message",t[6]),{c(){Le(e.$$.fragment),r=C(),c&&c.c(),n=C(),o=E("div"),Le(i.$$.fragment),Xe(o,"hidden",!t[2])},m(p,v){Be(e,p,v),M(p,r,v),c&&c.m(p,v),M(p,n,v),M(p,o,v),Be(i,o,null),f=!0},p(p,[v]){p[2]?c&&(hr(),ee(c,1,1,()=>{c=null}),br()):c?(c.p(p,v),v&4&&Y(c,1)):(c=mr(p),c.c(),Y(c,1),c.m(n.parentNode,n));const u={};v&1&&(u.roomName=p[0].room),!l&&v&4&&(l=!0,u.isJoined=p[2],ut(()=>l=!1)),!a&&v&8&&(a=!0,u.jimmiApi=p[3],ut(()=>a=!1)),!s&&v&16&&(s=!0,u.conferencePassword=p[4].password,ut(()=>s=!1)),i.$set(u),(!f||v&4)&&Xe(o,"hidden",!p[2])},i(p){f||(Y(e.$$.fragment,p),Y(c),Y(i.$$.fragment,p),f=!0)},o(p){ee(e.$$.fragment,p),ee(c),ee(i.$$.fragment,p),f=!1},d(p){je(e,p),p&&R(r),c&&c.d(p),p&&R(n),p&&R(o),t[8](null),je(i)}}}function yo(t,e,r){let n,o,i;et(t,ot,u=>r(5,o=u)),et(t,zr,u=>r(7,i=u));let{params:l}=e,a,s,f;const c={};function y(u){if(!f)return;let O=Object.keys(c).reduce((S,A)=>S+=` -${c[A].description||o("general.noDescriptionForCommand")}`,`The following commands are available: -!help - Display this help menu`);u.respond(O)}function d(u){if(u.detail.text.startsWith("!")){let[O]=u.detail.text.split(" ");if(O=O.toLocaleLowerCase(),O==="!help")return y(u.detail);O in c&&c[O].exec(u)}}gr(async()=>{const u={hosts:{domain:l.instance,muc:`conference.${l.instance}`},bosh:`https://${l.instance}/http-bind?room=${l.room}`};await a.joinConference(u);const O=new RegExp(/^\w+$/);De.plugins.map(S=>new S(f)).forEach(S=>{Object.keys(S.commands||{}).forEach(A=>{const L=`!${A}`;O.test(A)?L in c?console.warn(`Duplicate command: "${L}" provided by plugin "${S.meta.id}" is already used!`):c[L]=new Ji(A,S):console.error(`Invalid command: "${A}" provided by plugin "${S.meta.id}" is not a valid command name!`)}),Object.keys(S.events||{}).forEach(A=>{Object.values(Vr).includes(A)?a.addConferenceEventListener(A,S.events[A].bind(S)):console.error(`Invalid jitsi conference event: ${A} provided by plugin "${S.meta.id}"`)})})});function w(u){ye[u?"unshift":"push"](()=>{a=u,r(1,a)})}function g(u){s=u,r(2,s)}function p(u){f=u,r(3,f)}function v(u){t.$$.not_equal(n.password,u)&&(n.password=u,r(4,n),r(7,i))}return t.$$set=u=>{"params"in u&&r(0,l=u.params)},t.$$.update=()=>{t.$$.dirty&128&&r(4,n=Wi.parse(i||""))},[l,a,s,f,n,o,d,i,w,g,p,v]}class go extends Ne{constructor(e){super(),xe(this,e,yo,po,Ce,{params:0})}}export{go as default}; diff --git a/assets/index-5f06eedb.css b/assets/index-5f06eedb.css new file mode 100644 index 0000000..982f097 --- /dev/null +++ b/assets/index-5f06eedb.css @@ -0,0 +1 @@ +.toggle-path.svelte-4l3tce.svelte-4l3tce{transition:background .3s ease-in-out}.toggle-circle.svelte-4l3tce.svelte-4l3tce{top:.2rem;left:.25rem;transition:all .3s ease-in-out}input.svelte-4l3tce:checked~.toggle-circle.svelte-4l3tce{transform:translate(100%)}input.svelte-4l3tce:checked~.toggle-path.svelte-4l3tce{--tw-bg-opacity:1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.top-1\/2{top:50%}.mx-auto{margin-left:auto;margin-right:auto}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.mr-3{margin-right:.75rem}.mt-10{margin-top:2.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-1{height:.25rem}.h-16{height:4rem}.h-20{height:5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-80{height:20rem}.h-full{height:100%}.h-screen{height:100vh}.w-16{width:4rem}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-full{width:100%}.w-screen{width:100vw}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.overflow-hidden{overflow:hidden}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-4{border-width:4px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-gray-900{--tw-gradient-to: #111827 var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-0{padding-left:0}.pl-0\.5{padding-left:.125rem}.pl-4{padding-left:1rem}.pr-0{padding-right:0}.pt-1{padding-top:.25rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-relaxed{line-height:1.625}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(243 244 246 / var(--tw-ring-opacity))}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.hover\:bg-indigo-600:hover{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-indigo-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(199 210 254 / var(--tw-ring-opacity))}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:mb-0{margin-bottom:0}.sm\:ml-auto{margin-left:auto}.sm\:mt-0{margin-top:0}.sm\:w-1\/3{width:33.333333%}.sm\:w-2\/3{width:66.666667%}.sm\:flex-row{flex-direction:row}.sm\:py-2{padding-top:.5rem;padding-bottom:.5rem}.sm\:text-left{text-align:left}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:ml-auto{margin-left:auto}.md\:mt-0{margin-top:0}.md\:w-1\/2{width:50%}.md\:w-1\/4{width:25%}.md\:w-3\/4{width:75%}.md\:justify-start{justify-content:flex-start}.md\:pr-16{padding-right:4rem}}@media (min-width: 1024px){.lg\:w-2\/6{width:33.333333%}.lg\:w-3\/5{width:60%}.lg\:pr-0{padding-right:0}} diff --git a/assets/index-63b40b13.css b/assets/index-63b40b13.css deleted file mode 100644 index ae80c0c..0000000 --- a/assets/index-63b40b13.css +++ /dev/null @@ -1 +0,0 @@ -.toggle-path.svelte-4l3tce.svelte-4l3tce{transition:background .3s ease-in-out}.toggle-circle.svelte-4l3tce.svelte-4l3tce{top:.2rem;left:.25rem;transition:all .3s ease-in-out}input.svelte-4l3tce:checked~.toggle-circle.svelte-4l3tce{transform:translate(100%)}input.svelte-4l3tce:checked~.toggle-path.svelte-4l3tce{--tw-bg-opacity:1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0px}.inset-y-0{top:0px;bottom:0px}.bottom-0{bottom:0px}.left-0{left:0px}.left-1\/2{left:50%}.top-1\/2{top:50%}.mx-auto{margin-left:auto;margin-right:auto}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.mr-3{margin-right:.75rem}.mt-10{margin-top:2.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-1{height:.25rem}.h-16{height:4rem}.h-20{height:5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-80{height:20rem}.h-full{height:100%}.h-screen{height:100vh}.w-16{width:4rem}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-full{width:100%}.w-screen{width:100vw}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.overflow-hidden{overflow:hidden}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-4{border-width:4px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-gray-900{--tw-gradient-to: #111827 var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-0{padding-left:0}.pl-0\.5{padding-left:.125rem}.pl-4{padding-left:1rem}.pr-0{padding-right:0}.pt-1{padding-top:.25rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-relaxed{line-height:1.625}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(243 244 246 / var(--tw-ring-opacity))}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.hover\:bg-indigo-600:hover{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-indigo-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(199 210 254 / var(--tw-ring-opacity))}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:mb-0{margin-bottom:0}.sm\:ml-auto{margin-left:auto}.sm\:mt-0{margin-top:0}.sm\:w-1\/3{width:33.333333%}.sm\:w-2\/3{width:66.666667%}.sm\:flex-row{flex-direction:row}.sm\:py-2{padding-top:.5rem;padding-bottom:.5rem}.sm\:text-left{text-align:left}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:ml-auto{margin-left:auto}.md\:mt-0{margin-top:0}.md\:w-1\/2{width:50%}.md\:w-1\/4{width:25%}.md\:w-3\/4{width:75%}.md\:justify-start{justify-content:flex-start}.md\:pr-16{padding-right:4rem}}@media (min-width: 1024px){.lg\:w-2\/6{width:33.333333%}.lg\:w-3\/5{width:60%}.lg\:pr-0{padding-right:0}} diff --git a/assets/index-ab27dae8.js b/assets/index-ab27dae8.js deleted file mode 100644 index 9d29ff0..0000000 --- a/assets/index-ab27dae8.js +++ /dev/null @@ -1,20 +0,0 @@ -var vi=Object.defineProperty;var wi=(e,t,n)=>t in e?vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ie=(e,t,n)=>(wi(e,typeof t!="symbol"?t+"":t,n),n),Xn=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ft=(e,t,n)=>(Xn(e,t,"read from private field"),n?n.call(e):t.get(e)),dt=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},pt=(e,t,n,r)=>(Xn(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const Ti="modulepreload",Si=function(e){return"/"+e},Zn={},Tr=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Si(s),s in Zn)return;Zn[s]=!0;const o=s.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const h=i[c];if(h.href===s&&(!o||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":Ti,o||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),o)return new Promise((c,h)=>{l.addEventListener("load",c),l.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};function M(){}const Ai=e=>e;function wn(e,t){for(const n in t)e[n]=t[n];return e}function Sr(e){return e()}function Wn(){return Object.create(null)}function le(e){e.forEach(Sr)}function nt(e){return typeof e=="function"}function ye(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let mt;function Za(e,t){return mt||(mt=document.createElement("a")),mt.href=t,e===mt.href}function Oi(e){return Object.keys(e).length===0}function Tn(e,...t){if(e==null)return M;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Ni(e){let t;return Tn(e,n=>t=n)(),t}function _t(e,t,n){e.$$.on_destroy.push(Tn(t,n))}function Ii(e,t,n,r){if(e){const i=Ar(e,t,n,r);return e[0](i)}}function Ar(e,t,n,r){return e[1]&&r?wn(n.ctx.slice(),e[1](r(t))):n.ctx}function Ci(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(t.dirty===void 0)return i;if(typeof i=="object"){const s=[],o=Math.max(t.dirty.length,i.length);for(let a=0;a32){const t=[],n=e.ctx.length/32;for(let r=0;rwindow.performance.now():()=>Date.now(),Sn=Or?e=>requestAnimationFrame(e):M;const He=new Set;function Nr(e){He.forEach(t=>{t.c(e)||(He.delete(t),t.f())}),He.size!==0&&Sn(Nr)}function Ri(e){let t;return He.size===0&&Sn(Nr),{promise:new Promise(n=>{He.add(t={c:e,f:n})}),abort(){He.delete(t)}}}function m(e,t){e.appendChild(t)}function Ir(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Bi(e){const t=S("style");return Fi(Ir(e),t),t.sheet}function Fi(e,t){return m(e.head||e,t),t.sheet}function ne(e,t,n){e.insertBefore(t,n||null)}function W(e){e.parentNode&&e.parentNode.removeChild(e)}function Wa(e,t){for(let n=0;ne.removeEventListener(t,n,r)}function x(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Qa(e){return e===""?null:+e}function Li(e){return Array.from(e.childNodes)}function X(e,t){t=""+t,e.data!==t&&(e.data=t)}function Se(e,t){e.value=t??""}function Ka(e,t,n){e.classList[n?"add":"remove"](t)}function Cr(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,n,r,t),i}function St(e,t){return new e(t)}const At=new Map;let Ot=0;function ki(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Mi(e,t){const n={stylesheet:Bi(t),rules:{}};return At.set(e,n),n}function Qn(e,t,n,r,i,s,o,a=0){const u=16.666/r;let l=`{ -`;for(let y=0;y<=1;y+=u){const C=t+(n-t)*s(y);l+=y*100+`%{${o(C,1-C)}} -`}const c=l+`100% {${o(n,1-n)}} -}`,h=`__svelte_${ki(c)}_${a}`,f=Ir(e),{stylesheet:d,rules:g}=At.get(f)||Mi(f,e);g[h]||(g[h]=!0,d.insertRule(`@keyframes ${h} ${c}`,d.cssRules.length));const _=e.style.animation||"";return e.style.animation=`${_?`${_}, `:""}${h} ${r}ms linear ${i}ms 1 both`,Ot+=1,h}function $i(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),i=n.length-r.length;i&&(e.style.animation=r.join(", "),Ot-=i,Ot||Ui())}function Ui(){Sn(()=>{Ot||(At.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&W(t)}),At.clear())})}let Ye;function Xe(e){Ye=e}function Dt(){if(!Ye)throw new Error("Function called outside component initialization");return Ye}function Ja(e){Dt().$$.on_mount.push(e)}function Gi(e){Dt().$$.after_update.push(e)}function ji(e){Dt().$$.on_destroy.push(e)}function Vi(){const e=Dt();return(t,n,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[t];if(i){const s=Cr(t,n,{cancelable:r});return i.slice().forEach(o=>{o.call(e,s)}),!s.defaultPrevented}return!0}}function Kn(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(r=>r.call(this,t))}const Ie=[],Nt=[];let Pe=[];const on=[],Hr=Promise.resolve();let an=!1;function Pr(){an||(an=!0,Hr.then(Rr))}function Dr(){return Pr(),Hr}function It(e){Pe.push(e)}function Jn(e){on.push(e)}const Yt=new Set;let Ae=0;function Rr(){if(Ae!==0)return;const e=Ye;do{try{for(;Aee.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Pe=t}let Ve;function Xi(){return Ve||(Ve=Promise.resolve(),Ve.then(()=>{Ve=null})),Ve}function Qt(e,t,n){e.dispatchEvent(Cr(`${t?"intro":"outro"}${n}`))}const yt=new Set;let ue;function Rt(){ue={r:0,c:[],p:ue}}function Bt(){ue.r||le(ue.c),ue=ue.p}function z(e,t){e&&e.i&&(yt.delete(e),e.i(t))}function K(e,t,n,r){if(e&&e.o){if(yt.has(e))return;yt.add(e),ue.c.push(()=>{yt.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}const Zi={duration:0};function eu(e,t,n,r){const i={direction:"both"};let s=t(e,n,i),o=r?0:1,a=null,u=null,l=null;function c(){l&&$i(e,l)}function h(d,g){const _=d.b-o;return g*=Math.abs(_),{a:o,b:d.b,d:_,duration:g,start:d.start,end:d.start+g,group:d.group}}function f(d){const{delay:g=0,duration:_=300,easing:y=Ai,tick:C=M,css:P}=s||Zi,H={start:Di()+g,b:d};d||(H.group=ue,ue.r+=1),a||u?u=H:(P&&(c(),l=Qn(e,o,d,_,g,y,P)),d&&C(0,1),a=h(H,_),It(()=>Qt(e,d,"start")),Ri(v=>{if(u&&v>u.start&&(a=h(u,_),u=null,Qt(e,a.b,"start"),P&&(c(),l=Qn(e,o,a.b,a.duration,0,y,s.css))),a){if(v>=a.end)C(o=a.b,1-o),Qt(e,a.b,"end"),u||(a.b?c():--a.group.r||le(a.group.c)),a=null;else if(v>=a.start){const p=v-a.start;o=a.a+a.d*y(p/a.duration),C(o,1-o)}}return!!(a||u)}))}return{run(d){nt(s)?Xi().then(()=>{s=s(i),f(d)}):f(d)},end(){c(),a=u=null}}}function Br(e,t){const n={},r={},i={$$scope:1};let s=e.length;for(;s--;){const o=e[s],a=t[s];if(a){for(const u in o)u in a||(r[u]=1);for(const u in a)i[u]||(n[u]=a[u],i[u]=1);e[s]=a}else for(const u in o)i[u]=1}for(const o in r)o in n||(n[o]=void 0);return n}function Fr(e){return typeof e=="object"&&e!==null?e:{}}function er(e,t,n){const r=e.$$.props[t];r!==void 0&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function _e(e){e&&e.c()}function he(e,t,n,r){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),r||It(()=>{const o=e.$$.on_mount.map(Sr).filter(nt);e.$$.on_destroy?e.$$.on_destroy.push(...o):le(o),e.$$.on_mount=[]}),s.forEach(It)}function fe(e,t){const n=e.$$;n.fragment!==null&&(zi(n.after_update),le(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Wi(e,t){e.$$.dirty[0]===-1&&(Ie.push(e),Pr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const g=d.length?d[0]:f;return l.ctx&&i(l.ctx[h],l.ctx[h]=g)&&(!l.skip_bound&&l.bound[h]&&l.bound[h](g),c&&Wi(e,h)),f}):[],l.update(),c=!0,le(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const h=Li(t.target);l.fragment&&l.fragment.l(h),h.forEach(W)}else l.fragment&&l.fragment.c();t.intro&&z(e.$$.fragment),he(e,t.target,t.anchor,t.customElement),Rr()}Xe(u)}class Me{$destroy(){fe(this,1),this.$destroy=M}$on(t,n){if(!nt(n))return M;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Oi(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Oe=[];function Lr(e,t){return{subscribe:se(e,t).subscribe}}function se(e,t=M){let n;const r=new Set;function i(a){if(ye(e,a)&&(e=a,n)){const u=!Oe.length;for(const l of r)l[1](),Oe.push(l,e);if(u){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:s,subscribe:o}}function Q(e,t,n){const r=!Array.isArray(e),i=r?[e]:e,s=t.length<2;return Lr(n,o=>{let a=!1;const u=[];let l=0,c=M;const h=()=>{if(l)return;c();const d=t(r?u[0]:u,o);s?o(d):c=nt(d)?d:M},f=i.map((d,g)=>Tn(d,_=>{u[g]=_,l&=~(1<{l|=1<0}),n=[],r=0,i=t;r1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(_s,function(u,l,c,h,f,d){if(l)t.minimumIntegerDigits=c.length;else{if(h&&f)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Wr.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(rr.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(rr,function(u,l,c,h,f,d){return c==="*"?t.minimumFractionDigits=l.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:f&&d?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+d.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=I(I({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=I(I({},t),ir(s)));continue}if(Zr.test(i.stem)){t=I(I({},t),ir(i.stem));continue}var o=Yr(i.stem);o&&(t=I(I({},t),o));var a=ys(i.stem);a&&(t=I(I({},t),a))}return t}var gt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function xs(e,t){for(var n="",r=0;r>1),u="a",l=vs(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;o-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function vs(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=gt[r||""]||gt[n||""]||gt["".concat(n,"-001")]||gt["001"];return i[0]}var Jt,ws=new RegExp("^".concat(Xr.source,"*")),Ts=new RegExp("".concat(Xr.source,"*$"));function N(e,t){return{start:e,end:t}}var Ss=!!String.prototype.startsWith,As=!!String.fromCodePoint,Os=!!Object.fromEntries,Ns=!!String.prototype.codePointAt,Is=!!String.prototype.trimStart,Cs=!!String.prototype.trimEnd,Hs=!!Number.isSafeInteger,Ps=Hs?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},cn=!0;try{var Ds=Kr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");cn=((Jt=Ds.exec("a"))===null||Jt===void 0?void 0:Jt[0])==="a"}catch{cn=!1}var or=Ss?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},hn=As?String.fromCodePoint:function(){for(var t=[],n=0;ns;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},ar=Os?Object.fromEntries:function(t){for(var n={},r=0,i=t;r=r)){var i=t.charCodeAt(n),s;return i<55296||i>56319||n+1===r||(s=t.charCodeAt(n+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},Rs=Is?function(t){return t.trimStart()}:function(t){return t.replace(ws,"")},Bs=Cs?function(t){return t.trimEnd()}:function(t){return t.replace(Ts,"")};function Kr(e,t){return new RegExp(e,t)}var fn;if(cn){var ur=Kr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fn=function(t,n){var r;ur.lastIndex=n;var i=ur.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else fn=function(t,n){for(var r=[];;){var i=Qr(t,n);if(i===void 0||Jr(i)||Ms(i))break;r.push(i),n+=i>=65536?2:1}return hn.apply(void 0,r)};var Fs=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:R.pound,location:N(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(O.UNMATCHED_CLOSING_TAG,N(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&dn(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:R.literal,value:"<".concat(i,"/>"),location:N(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:R.tag,value:i,children:o,location:N(r,this.clonePosition())},err:null}:this.error(O.INVALID_TAG,N(a,this.clonePosition())))}else return this.error(O.UNCLOSED_TAG,N(r,this.clonePosition()))}else return this.error(O.INVALID_TAG,N(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ks(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var s=this.tryParseQuote(n);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=N(r,this.clonePosition());return{val:{type:R.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ls(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return hn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),hn(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(O.EMPTY_ARGUMENT,N(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(O.MALFORMED_ARGUMENT,N(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:R.argument,value:i,location:N(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(O.MALFORMED_ARGUMENT,N(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=fn(this.message,n),i=n+r.length;this.bumpTo(i);var s=this.clonePosition(),o=N(t,s);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(O.EXPECT_ARGUMENT_TYPE,N(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var f=Bs(h.val);if(f.length===0)return this.error(O.EXPECT_ARGUMENT_STYLE,N(this.clonePosition(),this.clonePosition()));var d=N(c,this.clonePosition());l={style:f,styleLocation:d}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var _=N(i,this.clonePosition());if(l&&or(l==null?void 0:l.style,"::",0)){var y=Rs(l.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(y,l.styleLocation);return h.err?h:{val:{type:R.number,value:r,location:_,style:h.val},err:null}}else{if(y.length===0)return this.error(O.EXPECT_DATE_TIME_SKELETON,_);var C=y;this.locale&&(C=xs(y,this.locale));var f={type:Be.dateTime,pattern:C,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ps(C):{}},P=a==="date"?R.date:R.time;return{val:{type:P,value:r,location:_,style:f},err:null}}}return{val:{type:a==="number"?R.number:a==="date"?R.date:R.time,value:r,location:_,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS,N(H,I({},H)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),p=0;if(a!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),v=this.parseIdentifierIfPossible(),p=h.val}var w=this.tryParsePluralOrSelectOptions(t,a,n,v);if(w.err)return w;var g=this.tryParseArgumentClose(i);if(g.err)return g;var D=N(i,this.clonePosition());return a==="select"?{val:{type:R.select,value:r,options:ar(w.val),location:D},err:null}:{val:{type:R.plural,value:r,options:ar(w.val),offset:p,pluralType:a==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(O.INVALID_ARGUMENT_TYPE,N(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,N(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,N(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=gs(t)}catch{return this.error(O.INVALID_NUMBER_SKELETON,n)}return{val:{type:Be.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Es(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var s,o=!1,a=[],u=new Set,l=i.value,c=i.location;;){if(l.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR,O.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=N(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?O.DUPLICATE_SELECT_ARGUMENT_SELECTOR:O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,N(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,n,r);if(g.err)return g;var _=this.tryParseArgumentClose(d);if(_.err)return _;a.push([l,{value:g.val,location:N(d,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,c=s.location}return a.length===0?this.error(n==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR:O.EXPECT_PLURAL_ARGUMENT_SELECTOR,N(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(O.MISSING_OTHER_CLAUSE,N(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var u=N(i,this.clonePosition());return s?(o*=r,Ps(o)?{val:o,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Qr(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(or(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Jr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function dn(e){return e>=97&&e<=122||e>=65&&e<=90}function Ls(e){return dn(e)||e===47}function ks(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Jr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ms(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function pn(e){e.forEach(function(t){if(delete t.location,jr(t)||Vr(t))for(var n in t.options)delete t.options[n].location,pn(t.options[n].value);else $r(t)&&zr(t.style)||(Ur(t)||Gr(t))&&ln(t.style)?delete t.style.location:qr(t)&&pn(t.children)})}function $s(e,t){t===void 0&&(t={}),t=I({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Fs(e,t).parse();if(n.err){var r=SyntaxError(O[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||pn(n.val),n.val}function en(e,t){var n=t&&t.cache?t.cache:zs,r=t&&t.serializer?t.serializer:qs,i=t&&t.strategy?t.strategy:Gs;return i(e,{cache:n,serializer:r})}function Us(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ei(e,t,n,r){var i=Us(r)?r:n(r),s=t.get(i);return typeof s>"u"&&(s=e.call(this,r),t.set(i,s)),s}function ti(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,r),t.set(i,s)),s}function On(e,t,n,r,i){return n.bind(t,e,r,i)}function Gs(e,t){var n=e.length===1?ei:ti;return On(e,this,n,t.cache.create(),t.serializer)}function js(e,t){return On(e,this,ti,t.cache.create(),t.serializer)}function Vs(e,t){return On(e,this,ei,t.cache.create(),t.serializer)}var qs=function(){return JSON.stringify(arguments)};function Nn(){this.cache=Object.create(null)}Nn.prototype.get=function(e){return this.cache[e]};Nn.prototype.set=function(e,t){this.cache[e]=t};var zs={create:function(){return new Nn}},tn={variadic:js,monadic:Vs},Fe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Fe||(Fe={}));var Lt=function(e){Ft(t,e);function t(n,r,i){var s=e.call(this,n)||this;return s.code=r,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),lr=function(e){Ft(t,e);function t(n,r,i,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Fe.INVALID_VALUE,s)||this}return t}(Lt),Xs=function(e){Ft(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Fe.INVALID_VALUE,i)||this}return t}(Lt),Zs=function(e){Ft(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Fe.MISSING_VALUE,r)||this}return t}(Lt),G;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(G||(G={}));function Ws(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==G.literal||n.type!==G.literal?t.push(n):r.value+=n.value,t},[])}function Ys(e){return typeof e=="function"}function Et(e,t,n,r,i,s,o){if(e.length===1&&nr(e[0]))return[{type:G.literal,value:e[0].value}];for(var a=[],u=0,l=e;u0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=$s,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const ce={},to=(e,t,n)=>n&&(t in ce||(ce[t]={}),e in ce[t]||(ce[t][e]=n),n),ni=(e,t)=>{if(t==null)return;if(t in ce&&e in ce[t])return ce[t][e];const n=rt(t);for(let r=0;r0){const u=s.slice(a,s.length).join(".");if(u in o){o=o[u];break}}o=o[s[a]]}else o=void 0;return o}(n,t)}function ri(e,...t){delete ce[e],$e.update(n=>(n[e]=cs.all([n[e]||{},...t]),n))}Q([$e],([e])=>Object.keys(e));$e.subscribe(e=>In=e);const Ze={};function We(e){return Ze[e]}function Ct(e){return e!=null&&rt(e).some(t=>{var n;return(n=We(t))===null||n===void 0?void 0:n.size})}function ro(e,t){return Promise.all(t.map(r=>(function(i,s){Ze[i].delete(s),Ze[i].size===0&&delete Ze[i]}(e,r),r().then(i=>i.default||i)))).then(r=>ri(e,...r))}const qe={};function ii(e){if(!Ct(e))return e in qe?qe[e]:Promise.resolve();const t=function(n){return rt(n).map(r=>{const i=We(r);return[r,i?[...i]:[]]}).filter(([,r])=>r.length>0)}(e);return qe[e]=Promise.all(t.map(([n,r])=>ro(n,r))).then(()=>{if(Ct(e))return ii(e);delete qe[e]}),qe[e]}function io(e,t){We(e)||function(r){Ze[r]=new Set}(e);const n=We(e);We(e).has(t)||(Cn(e)||$e.update(r=>(r[e]={},r)),n.add(t))}function so({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${rt(e).join('", "')}".${Ct(de())?` - -Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const ze={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Le(){return ze}function oo(e){const{formats:t,...n}=e,r=e.initialLocale||e.fallbackLocale;return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=so:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ze,n,{initialLocale:r}),t&&("number"in t&&Object.assign(ze.formats.number,t.number),"date"in t&&Object.assign(ze.formats.date,t.date),"time"in t&&Object.assign(ze.formats.time,t.time)),Ue.set(r)}const xt=se(!1);let mn;const vt=se(null);function cr(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function rt(e,t=Le().fallbackLocale){const n=cr(e);return t?[...new Set([...n,...cr(t)])]:n}function de(){return mn??void 0}vt.subscribe(e=>{mn=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ue={...vt,set:e=>{if(e&&function(t){if(t==null)return;const n=rt(t);for(let r=0;rxt.set(!0),t):xt.set(!0),ii(e).then(()=>{vt.set(e)}).finally(()=>{clearTimeout(n),xt.set(!1)})}return vt.set(e)}},ao=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],kt=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},Ke=(e,t)=>{const{formats:n}=Le();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},uo=kt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=Ke("number",t)),new Intl.NumberFormat(e,n)}),lo=kt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=Ke("date",t):Object.keys(n).length===0&&(n=Ke("date","short")),new Intl.DateTimeFormat(e,n)}),co=kt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=Ke("time",t):Object.keys(n).length===0&&(n=Ke("time","short")),new Intl.DateTimeFormat(e,n)}),ho=({locale:e=de(),...t}={})=>uo({locale:e,...t}),fo=({locale:e=de(),...t}={})=>lo({locale:e,...t}),po=({locale:e=de(),...t}={})=>co({locale:e,...t}),mo=kt((e,t=de())=>new eo(e,t,Le().formats,{ignoreTag:Le().ignoreTag})),go=(e,t={})=>{var n,r,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:u=de(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=ni(e,u);if(c){if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=(s=(i=(r=(n=Le()).handleMissingMessage)===null||r===void 0?void 0:r.call(n,{locale:u,id:e,defaultValue:l}))!==null&&i!==void 0?i:l)!==null&&s!==void 0?s:e;if(!a)return c;let h=c;try{h=mo(c,u).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return h},bo=(e,t)=>po(t).format(e),_o=(e,t)=>fo(t).format(e),yo=(e,t)=>ho(t).format(e),Eo=(e,t=de())=>ni(e,t),si=Q([Ue,$e],()=>go);Q([Ue],()=>bo);Q([Ue],()=>_o);Q([Ue],()=>yo);Q([Ue,$e],()=>Eo);function xo(e){if(!e)throw Error("Parameter args is required");if(!e.component==!e.asyncComponent)throw Error("One and only one of component and asyncComponent is required");if(e.component&&(e.asyncComponent=()=>Promise.resolve(e.component)),typeof e.asyncComponent!="function")throw Error("Parameter asyncComponent must be a function");if(e.conditions){Array.isArray(e.conditions)||(e.conditions=[e.conditions]);for(let n=0;n{fe(c,1)}),Bt()}s?(t=St(s,o()),t.$on("routeEvent",a[7]),_e(t.$$.fragment),z(t.$$.fragment,1),he(t,n.parentNode,n)):t=null}else s&&t.$set(l)},i(a){r||(t&&z(t.$$.fragment,a),r=!0)},o(a){t&&K(t.$$.fragment,a),r=!1},d(a){a&&W(n),t&&fe(t,a)}}}function To(e){let t,n,r;const i=[{params:e[1]},e[2]];var s=e[0];function o(a){let u={};for(let l=0;l{fe(c,1)}),Bt()}s?(t=St(s,o()),t.$on("routeEvent",a[6]),_e(t.$$.fragment),z(t.$$.fragment,1),he(t,n.parentNode,n)):t=null}else s&&t.$set(l)},i(a){r||(t&&z(t.$$.fragment,a),r=!0)},o(a){t&&K(t.$$.fragment,a),r=!1},d(a){a&&W(n),t&&fe(t,a)}}}function So(e){let t,n,r,i;const s=[To,wo],o=[];function a(u,l){return u[1]?0:1}return t=a(e),n=o[t]=s[t](e),{c(){n.c(),r=An()},m(u,l){o[t].m(u,l),ne(u,r,l),i=!0},p(u,[l]){let c=t;t=a(u),t===c?o[t].p(u,l):(Rt(),K(o[c],1,1,()=>{o[c]=null}),Bt(),n=o[t],n?n.p(u,l):(n=o[t]=s[t](u),n.c()),z(n,1),n.m(r.parentNode,r))},i(u){i||(z(n),i=!0)},o(u){K(n),i=!1},d(u){o[t].d(u),u&&W(r)}}}function hr(){const e=window.location.href.indexOf("#/");let t=e>-1?window.location.href.substr(e+1):"/";const n=t.indexOf("?");let r="";return n>-1&&(r=t.substr(n+1),t=t.substr(0,n)),{location:t,querystring:r}}const Hn=Lr(null,function(t){t(hr());const n=()=>{t(hr())};return window.addEventListener("hashchange",n,!1),function(){window.removeEventListener("hashchange",n,!1)}});Q(Hn,e=>e.location);const nu=Q(Hn,e=>e.querystring),fr=se(void 0);async function Ao(e){if(!e||e.length<1||e.charAt(0)!="/"&&e.indexOf("#/")!==0)throw Error("Invalid parameter location");await Dr(),history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=(e.charAt(0)=="#"?"":"#")+e}function Oo(e){e?window.scrollTo(e.__svelte_spa_router_scrollX,e.__svelte_spa_router_scrollY):window.scrollTo(0,0)}function No(e,t,n){let{routes:r={}}=t,{prefix:i=""}=t,{restoreScrollState:s=!1}=t;class o{constructor(p,w){if(!w||typeof w!="function"&&(typeof w!="object"||w._sveltesparouter!==!0))throw Error("Invalid component object");if(!p||typeof p=="string"&&(p.length<1||p.charAt(0)!="/"&&p.charAt(0)!="*")||typeof p=="object"&&!(p instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:D,keys:b}=vo(p);this.path=p,typeof w=="object"&&w._sveltesparouter===!0?(this.component=w.component,this.conditions=w.conditions||[],this.userData=w.userData,this.props=w.props||{}):(this.component=()=>Promise.resolve(w),this.conditions=[],this.props={}),this._pattern=D,this._keys=b}match(p){if(i){if(typeof i=="string")if(p.startsWith(i))p=p.substr(i.length)||"/";else return null;else if(i instanceof RegExp){const T=p.match(i);if(T&&T[0])p=p.substr(T[0].length)||"/";else return null}}const w=this._pattern.exec(p);if(w===null)return null;if(this._keys===!1)return w;const D={};let b=0;for(;b{a.push(new o(p,v))}):Object.keys(r).forEach(v=>{a.push(new o(v,r[v]))});let u=null,l=null,c={};const h=Vi();async function f(v,p){await Dr(),h(v,p)}let d=null,g=null;s&&(g=v=>{v.state&&(v.state.__svelte_spa_router_scrollY||v.state.__svelte_spa_router_scrollX)?d=v.state:d=null},window.addEventListener("popstate",g),Gi(()=>{Oo(d)}));let _=null,y=null;const C=Hn.subscribe(async v=>{_=v;let p=0;for(;p{fr.set(l)});return}n(0,u=null),y=null,fr.set(void 0)});ji(()=>{C(),g&&window.removeEventListener("popstate",g)});function P(v){Kn.call(this,e,v)}function H(v){Kn.call(this,e,v)}return e.$$set=v=>{"routes"in v&&n(3,r=v.routes),"prefix"in v&&n(4,i=v.prefix),"restoreScrollState"in v&&n(5,s=v.restoreScrollState)},e.$$.update=()=>{e.$$.dirty&32&&(history.scrollRestoration=s?"manual":"auto")},[u,l,c,r,i,s,P,H]}class Io extends Me{constructor(t){super(),ke(this,t,No,So,ye,{routes:3,prefix:4,restoreScrollState:5})}}var oi=(e=>(e.AUDIO_INPUT_STATE_CHANGE="conference.audio_input_state_changed",e.AUTH_STATUS_CHANGED="conference.auth_status_changed",e.BEFORE_STATISTICS_DISPOSED="conference.beforeStatisticsDisposed",e.CONFERENCE_ERROR="conference.error",e.CONFERENCE_FAILED="conference.failed",e.CONFERENCE_JOINED="conference.joined",e.CONFERENCE_LEFT="conference.left",e.CONFERENCE_UNIQUE_ID_SET="conference.unique_id_set",e.CONNECTION_ESTABLISHED="conference.connectionEstablished",e.CONNECTION_INTERRUPTED="conference.connectionInterrupted",e.CONNECTION_RESTORED="conference.connectionRestored",e.DATA_CHANNEL_OPENED="conference.dataChannelOpened",e.DISPLAY_NAME_CHANGED="conference.displayNameChanged",e.DOMINANT_SPEAKER_CHANGED="conference.dominantSpeaker",e.CONFERENCE_CREATED_TIMESTAMP="conference.createdTimestamp",e.DTMF_SUPPORT_CHANGED="conference.dtmfSupportChanged",e.ENDPOINT_MESSAGE_RECEIVED="conference.endpoint_message_received",e.ENDPOINT_STATS_RECEIVED="conference.endpoint_stats_received",e.JVB121_STATUS="conference.jvb121Status",e.KICKED="conference.kicked",e.PARTICIPANT_KICKED="conference.participant_kicked",e.LAST_N_ENDPOINTS_CHANGED="conference.lastNEndpointsChanged",e.LOCK_STATE_CHANGED="conference.lock_state_changed",e.SERVER_REGION_CHANGED="conference.server_region_changed",e._MEDIA_SESSION_STARTED="conference.media_session.started",e._MEDIA_SESSION_ACTIVE_CHANGED="conference.media_session.active_changed",e.MEMBERS_ONLY_CHANGED="conference.membersOnlyChanged",e.MESSAGE_RECEIVED="conference.messageReceived",e.NO_AUDIO_INPUT="conference.no_audio_input",e.NOISY_MIC="conference.noisy_mic",e.NON_PARTICIPANT_MESSAGE_RECEIVED="conference.non_participant_message_received",e.PRIVATE_MESSAGE_RECEIVED="conference.privateMessageReceived",e.PARTICIPANT_CONN_STATUS_CHANGED="conference.participant_conn_status_changed",e.PARTCIPANT_FEATURES_CHANGED="conference.partcipant_features_changed",e.PARTICIPANT_PROPERTY_CHANGED="conference.participant_property_changed",e.P2P_STATUS="conference.p2pStatus",e.PHONE_NUMBER_CHANGED="conference.phoneNumberChanged",e.PROPERTIES_CHANGED="conference.propertiesChanged",e.RECORDER_STATE_CHANGED="conference.recorderStateChanged",e.VIDEO_SIP_GW_AVAILABILITY_CHANGED="conference.videoSIPGWAvailabilityChanged",e.VIDEO_SIP_GW_SESSION_STATE_CHANGED="conference.videoSIPGWSessionStateChanged",e.START_MUTED_POLICY_CHANGED="conference.start_muted_policy_changed",e.STARTED_MUTED="conference.started_muted",e.SUBJECT_CHANGED="conference.subjectChanged",e.SUSPEND_DETECTED="conference.suspendDetected",e.TALK_WHILE_MUTED="conference.talk_while_muted",e.TRACK_ADDED="conference.trackAdded",e.TRACK_AUDIO_LEVEL_CHANGED="conference.audioLevelsChanged",e.TRACK_MUTE_CHANGED="conference.trackMuteChanged",e.TRACK_REMOVED="conference.trackRemoved",e.TRANSCRIPTION_STATUS_CHANGED="conference.transcriptionStatusChanged",e.USER_JOINED="conference.userJoined",e.USER_LEFT="conference.userLeft",e.USER_ROLE_CHANGED="conference.roleChanged",e.USER_STATUS_CHANGED="conference.statusChanged",e.BOT_TYPE_CHANGED="conference.bot_type_changed",e.LOBBY_USER_JOINED="conference.lobby.userJoined",e.LOBBY_USER_UPDATED="conference.lobby.userUpdated",e.LOBBY_USER_LEFT="conference.lobby.userLeft",e))(oi||{});class ai{constructor(t){ie(this,"translator");this.api=t,si.subscribe(n=>this.translator=n)}$t(t,n){return this.translator?this.translator(`plugins.${this.meta.id}.${t}`,n):""}}class Co extends ai{constructor(){super(...arguments);ie(this,"meta",{id:"xyz.jimmi.moderator",name:"Moderator",version:"1.0.0"});ie(this,"commands");ie(this,"events",{[oi.USER_JOINED]:this.onUserJoined});ie(this,"translations")}onUserJoined(n){const{conference:r}=this.api;r.isModerator()&&r.grantOwner(n)}}var Je,et,tt;class Ho{constructor(t){dt(this,Je,void 0);dt(this,et,void 0);dt(this,tt,void 0);pt(this,Je,t.videoThumbnails[0].url),pt(this,et,t.title),pt(this,tt,t.adaptiveFormats.filter(n=>n.encoding==="opus")[0].url)}get thumbnailUrl(){return ft(this,Je)}get title(){return ft(this,et)}get source(){return ft(this,tt)}}Je=new WeakMap,et=new WeakMap,tt=new WeakMap;class Po extends ai{constructor(){super(...arguments);ie(this,"meta",{id:"xyz.jimmi.music",name:"Music",version:"0.2.0"});ie(this,"commands",{play:this.play,queue:this.queue,cue:this.queue,track:this.track});ie(this,"events");ie(this,"translations",{en:{description:"A music plugin that allows for audio playback of youtube videos",commands:{play:{usage:"!play - Play a youtube video by url or search term",playingTrack:"Playing {title}"},queue:{usage:`!queue - Show the current queue. -!queue - Add a YouTube video to the queue.`,isEmpty:"The queue is currently empty",content:"Queue content",addedTrack:"Added {title} to queue"},cue:{usage:"!cue - Alias for !queue"},track:{usage:`!track - Display current track -!track skip - Skip the current track -!track ++ or !track -- - Fast forward or rewind. Add more + or - signs to increase duration -!track +10, !track +20, !track -15 - Fast forward or rewind with specific duration in seconds`,currentlyPlaying:"Currently playing {title}"}},general:{invalidArgs:"Invalid arguments. Usage:",noVideo:"Sorry, I cannot find any video at the moment"}}})}chooseRandomBaseUrl(){const n=["https://vid.puffyan.us","https://invidious.tiekoetter.com","https://invidious.flokinet.to","https://inv.bp.projectsegfau.lt","https://yt.artemislena.eu","https://invidious.projectsegfau.lt","https://invidious.lunar.icu"];return n[Math.floor(n.length*Math.random())]}async fetch(n){return await(await fetch(`${this.chooseRandomBaseUrl()}/api/v1/${n}`,{referrerPolicy:"no-referrer"})).json()}async searchYtVideo(n){if(new RegExp("https?://").test(n)){const r=new URLSearchParams(n.split("?")[1]).get("v");if(r)return r;const i=n.split("/");return i[i.length-1].split("?")[0]}else{const r=await this.fetch(`search/?q=${encodeURIComponent(n)}`);if(r.length>0)return r[0].videoId}return null}async getTrack(n){const r=await this.fetch(`videos/${n}`);return r.error?null:new Ho(r)}async query(n){const r=n.join(" "),i=await this.searchYtVideo(r);return i?this.getTrack(i):null}async play(n){if(n.params.length===0)n.respond(`:warning: ${this.$t("general.invalidArgs")} -${this.$t("commands.play.usage")}`);else{const r=await this.query(n.params);if(!r){n.respond(`${this.$t("general.noVideo")} :worried:`);return}this.api.currentTrack=r,this.api.conference.sendMessage(`:notes: ${this.$t("commands.play.playingTrack",{values:{title:r.title}})}`)}}async queue(n){if(n.params.length===0)if(this.api.queue.length===0)n.respond(`:notes: ${this.$t("commands.queue.isEmpty")}`);else{let r=0;const i=new RegExp(/(\d)/ig);n.respond(this.api.queue.reduce((s,o)=>`${s} -${(++r).toString().replaceAll(i,":$1:")} ${o.title}`,`:notes: ${this.$t("commands.queue.content")}`))}else{const r=await this.query(n.params);if(!r){n.respond(`${this.$t("general.noVideo")} :worried:`);return}this.api.currentTrack?this.api.addToQueue(r):this.api.currentTrack=r,n.respond(`:notes: ${this.$t("commands.queue.addedTrack",{values:{title:r.title}})}`)}}async track(n){var r;switch(n.params.length){case 0:n.respond(`:notes: ${this.$t("commands.track.currentlyPlaying",{values:{title:((r=this.api.currentTrack)==null?void 0:r.title)??"nothing"}})}`);break;case 1:const i=n.params[0];if(i==="skip"){this.api.currentTrack=void 0;return}let s=0;const o=a=>2*Math.E^a-1;/^\+\++$/.test(i)?s=o(i.length):/^--+$/.test(i)?s=-o(i.length):s=parseInt(i,10),s?this.api.forward(s):n.respond(`:warning: ${this.$t("general.invalidArgs")} -${this.$t("commands.track.usage")}`);break;default:n.respond(`:warning: ${this.$t("general.invalidArgs")} -${this.$t("commands.track.usage")}`)}}}const gn={default:{jitsiDisplayName:"DJ Jim",initialVolume:20},repoUrl:"https://github.com/p-fruck/Jimmi",url:"https://jimmi.xyz",logo:"/jimmi.svg",plugins:[Po,Co]};function ui(e,t){if(e.length===0)return t;let n={};return n[e.pop()]=t,ui(e,n)}gn.plugins.forEach(e=>{const t=new e({});t.translations&&Object.keys(t.translations).forEach(n=>{const r=ui(t.meta.id.split("."),t.translations[n]);ri(n,{plugins:r})})});io("en",()=>Tr(()=>import("./en-1af22869.js"),[]));function Do(){oo({fallbackLocale:"en",initialLocale:ao()})}var dr=Object.prototype.hasOwnProperty;function bn(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&bn(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(dr.call(e,n)&&++r&&!dr.call(t,n)||!(n in t)||!bn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Ro(e){return new Promise(t=>{e.subscribe(t)()})}function Bo(e,t,n){e.update(r=>(hi(r,t,n),r))}function Fo(e){return JSON.parse(JSON.stringify(e))}function Pn(e){return e==null}function li(e){return Pn(e)||Object.keys(e).length<=0}function ci(e){let t=[];for(const[,n]of Object.entries(e)){const r=typeof n=="object"?ci(n):[n];t=[...t,...r]}return t}function _n(e,t,n={}){for(const r in t)switch(!0){case(t[r].type==="object"&&!li(t[r].fields)):{n[r]=_n(e[r],t[r].fields,{...n[r]});break}case t[r].type==="array":{const i=e&&e[r]?e[r]:[];n[r]=i.map(s=>{const o=_n(s,t[r].innerType.fields,{...n[r]});return Object.keys(o).length>0?o:""});break}default:n[r]=""}return n}const Lo=bn;function yn(e,t){if(Array.isArray(e))return e.map(r=>yn(r,t));const n={};for(const r in e)n[r]=typeof e[r]=="object"&&!Pn(e[r])?yn(e[r],t):t;return n}function hi(e,t,n){if(new Object(e)!==e)return e;Array.isArray(t)||(t=t.toString().match(/[^.[\]]+/g)||[]);const r=t.slice(0,-1).reduce((i,s,o)=>new Object(i[s])===i[s]?i[s]:i[s]=Math.trunc(Math.abs(t[o+1]))===+t[o+1]?[]:{},e);return r[t[t.length-1]]=n,e}const L={assignDeep:yn,cloneDeep:Fo,deepEqual:Lo,getErrorsFromSchema:_n,getValues:ci,isEmpty:li,isNullish:Pn,set:hi,subscribeOnce:Ro,update:Bo},pr="",ko=!0;function Mo(e){return e.getAttribute&&e.getAttribute("type")==="checkbox"}function $o(e){return e.getAttribute&&e.getAttribute("type")==="file"}function Uo(e){return $o(e)?e.files:Mo(e)?e.checked:e.value}const Go=e=>{let t=e.initialValues||{};const n=e.validationSchema,r=e.validate,i=e.onSubmit,s={values:()=>L.cloneDeep(t),errors:()=>n?L.getErrorsFromSchema(t,n.fields):L.assignDeep(t,pr),touched:()=>L.assignDeep(t,!ko)},o=se(s.values()),a=se(s.errors()),u=se(s.touched()),l=se(!1),c=se(!1),h=Q(a,b=>L.getValues(b).every(E=>E===pr)),f=Q(o,b=>{const T=L.assignDeep(b,!1);for(let E in b)T[E]=!L.deepEqual(b[E],t[E]);return T}),d=Q(f,b=>L.getValues(b).includes(!0));function g(b){return L.subscribeOnce(o).then(T=>_(b,T[b]))}function _(b,T){return w(b,!0),n?(c.set(!0),n.validateAt(b,Ni(o)).then(()=>L.update(a,b,"")).catch(E=>L.update(a,b,E.message)).finally(()=>{c.set(!1)})):r?(c.set(!0),Promise.resolve().then(()=>r({[b]:T})).then(E=>L.update(a,b,L.isNullish(E)?"":E[b])).finally(()=>{c.set(!1)})):Promise.resolve()}function y(b,T){return p(b,T),_(b,T)}function C(b){const T=b.target,E=T.name||T.id,$=Uo(T);return y(E,$)}function P(b){return b&&b.preventDefault&&b.preventDefault(),l.set(!0),L.subscribeOnce(o).then(T=>typeof r=="function"?(c.set(!0),Promise.resolve().then(()=>r(T)).then(E=>{if(L.isNullish(E)||L.getValues(E).length===0)return v(T);a.set(E),l.set(!1)}).finally(()=>c.set(!1))):n?(c.set(!0),n.validate(T,{abortEarly:!1}).then(()=>v(T)).catch(E=>{if(E&&E.inner){const $=s.errors();E.inner.map(re=>L.set($,re.path,re.message)),a.set($)}l.set(!1)}).finally(()=>c.set(!1))):v(T))}function H(){o.set(s.values()),a.set(s.errors()),u.set(s.touched())}function v(b){return Promise.resolve().then(()=>a.set(s.errors())).then(()=>i(b,o,a)).finally(()=>l.set(!1))}function p(b,T){L.update(o,b,T)}function w(b,T){L.update(u,b,T)}function D(b){t=b,H()}return{form:o,errors:a,touched:u,modified:f,isValid:h,isSubmitting:l,isValidating:c,isModified:d,handleChange:C,handleSubmit:P,handleReset:H,updateField:p,updateValidateField:y,updateTouched:w,validateField:g,updateInitialValues:D,state:Q([o,a,u,f,h,c,l,d],([b,T,E,$,re,j,pe,ve])=>({form:b,errors:T,touched:E,modified:$,isValid:re,isSubmitting:pe,isValidating:j,isModified:ve}))}};function Ee(e){this._maxSize=e,this.clear()}Ee.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Ee.prototype.get=function(e){return this._values[e]};Ee.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var jo=/[^.^\]^[]+|(?=\[\]|\.\.)/g,fi=/^\d+$/,Vo=/^\d/,qo=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,zo=/^\s*(['"]?)(.*?)(\1)\s*$/,Dn=512,mr=new Ee(Dn),gr=new Ee(Dn),br=new Ee(Dn),be={Cache:Ee,split:En,normalizePath:rn,setter:function(e){var t=rn(e);return gr.get(e)||gr.set(e,function(r,i){for(var s=0,o=t.length,a=r;se.match(Qo)||[],$t=e=>e[0].toUpperCase()+e.slice(1),Bn=(e,t)=>Mt(e).join(t).toLowerCase(),di=e=>Mt(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),Ko=e=>$t(di(e)),Jo=e=>Bn(e,"_"),ea=e=>Bn(e,"-"),ta=e=>$t(Bn(e," ")),na=e=>Mt(e).map($t).join(" ");var sn={words:Mt,upperFirst:$t,camelCase:di,pascalCase:Ko,snakeCase:Jo,kebabCase:ea,sentenceCase:ta,titleCase:na},Fn={exports:{}};Fn.exports=function(e){return pi(ra(e),e)};Fn.exports.array=pi;function pi(e,t){var n=e.length,r=new Array(n),i={},s=n,o=ia(t),a=sa(e);for(t.forEach(function(l){if(!a.has(l[0])||!a.has(l[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)i[s]||u(e[s],s,new Set);return r;function u(l,c,h){if(h.has(l)){var f;try{f=", node was:"+JSON.stringify(l)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!a.has(l))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(l));if(!i[c]){i[c]=!0;var d=o.get(l)||new Set;if(d=Array.from(d),c=d.length){h.add(l);do{var g=d[--c];u(g,a.get(g),h)}while(c);h.delete(l)}r[--n]=l}}}function ra(e){for(var t=new Set,n=0,r=e.length;n"",fa=/^Symbol\((.*)\)(.*)$/;function da(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function _r(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return da(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return ha.call(e).replace(fa,"Symbol($1)");const r=ua.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+la.call(e)+"]":r==="RegExp"?ca.call(e):null}function De(e,t){let n=_r(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let s=_r(this[r],t);return s!==null?s:i},2)}function mi(e){return e==null?[]:[].concat(e)}let pa=/\$\{\s*(\w+)\s*\}/g;class Z extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(pa,(i,s)=>De(n[s])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],mi(t).forEach(s=>{Z.isError(s)?(this.errors.push(...s.errors),this.inner=this.inner.concat(s.inner.length?s.inner:s)):this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Z)}}let ae={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${De(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${De(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${De(n,!0)}\``+i}},ee={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},ma={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},xn={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ga={isValue:"${path} field must be ${value}"},vn={noUnknown:"${path} field has unspecified keys: ${unknown}"},ba={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:ae,string:ee,number:ma,date:xn,object:vn,array:ba,boolean:ga});const Ln=e=>e&&e.__isYupSchema__;class Ht{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:s}=n,o=typeof r=="function"?r:(...a)=>a.every(u=>u===r);return new Ht(t,(a,u)=>{var l;let c=o(...a)?i:s;return(l=c==null?void 0:c(u))!=null?l:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(s=>s.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!Ln(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const bt={context:"$",value:"."};class xe{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===bt.context,this.isValue=this.key[0]===bt.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?bt.context:this.isValue?bt.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&be.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}xe.prototype.__isYupRef=!0;const ge=e=>e==null;function Ne(e){function t({value:n,path:r="",options:i,originalValue:s,schema:o},a,u){const{name:l,test:c,params:h,message:f,skipAbsent:d}=e;let{parent:g,context:_,abortEarly:y=o.spec.abortEarly}=i;function C(E){return xe.isRef(E)?E.getValue(n,g,_):E}function P(E={}){const $=Object.assign({value:n,originalValue:s,label:o.spec.label,path:E.path||r,spec:o.spec},h,E.params);for(const j of Object.keys($))$[j]=C($[j]);const re=new Z(Z.formatError(E.message||f,$),n,$.path,E.type||l);return re.params=$,re}const H=y?a:u;let v={path:r,parent:g,type:l,from:i.from,createError:P,resolve:C,options:i,originalValue:s,schema:o};const p=E=>{Z.isError(E)?H(E):E?u(null):H(P())},w=E=>{Z.isError(E)?H(E):a(E)},D=d&&ge(n);if(!i.sync){try{Promise.resolve(D?!0:c.call(v,n,v)).then(p,w)}catch(E){w(E)}return}let b;try{var T;if(b=D?!0:c.call(v,n,v),typeof((T=b)==null?void 0:T.then)=="function")throw new Error(`Validation test of type: "${v.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(E){w(E);return}p(b)}return t.OPTIONS=e,t}function _a(e,t,n,r=n){let i,s,o;return t?(be.forEach(t,(a,u,l)=>{let c=u?a.slice(1,a.length-1):a;e=e.resolve({context:r,parent:i,value:n});let h=e.type==="tuple",f=l?parseInt(c,10):0;if(e.innerType||h){if(h&&!l)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[f],e=h?e.spec.types[f]:e.innerType}if(!l){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[c],e=e.fields[c]}s=c,o=u?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:s}):{parent:i,parentPath:t,schema:e}}class Pt extends Set{describe(){const t=[];for(const n of this.values())t.push(xe.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Pt(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Ce(e,t=new Map){if(Ln(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(ae.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Ce(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(s=>{t.tests.forEach(o=>{s.test(o.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,s)=>s.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",s=r._cast(t,n);if(n.assert!==!1&&!r.isType(s)){if(i&&ge(s))return s;let o=De(t),a=De(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". - -attempted value: ${o} -`+(a!==o?`result of cast: ${a}`:""))}return s}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,s)=>s.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:s,originalValue:o=t,strict:a=this.spec.strict}=n,u=t;a||(u=this._cast(u,Object.assign({assert:!1},n)));let l=[];for(let c of Object.values(this.internalTests))c&&l.push(c);this.runTests({path:s,value:u,originalValue:o,options:n,tests:l},r,c=>{if(c.length)return i(c,u);this.runTests({path:s,value:u,originalValue:o,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:s,value:o,originalValue:a,path:u,options:l}=t,c=_=>{i||(i=!0,n(_,o))},h=_=>{i||(i=!0,r(_,o))},f=s.length,d=[];if(!f)return h([]);let g={value:o,originalValue:a,path:u,options:l,schema:this};for(let _=0;_this.resolve(c)._validate(l,c,f,d)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((i,s)=>r._validate(t,n,(o,a)=>{Z.isError(o)&&(o.value=a),s(o)},(o,a)=>{o.length?s(new Z(o,a)):i(a)}))}validateSync(t,n){let r=this.resolve(Object.assign({},n,{value:t})),i;return r._validate(t,Object.assign({},n,{sync:!0}),(s,o)=>{throw Z.isError(s)&&(s.value=o),s},(s,o)=>{if(s.length)throw new Z(s,t);i=o}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Z.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Z.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this):Ce(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Ne({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Ne({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=ae.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=ae.notNull){return this.nullability(!1,t)}required(t=ae.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=ae.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ne(n),s=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(o=>!(o.OPTIONS.name===n.name&&(s||o.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=mi(t).map(s=>new xe(s));return i.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(typeof n=="function"?new Ht(i,n):Ht.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ne({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=ae.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ne({message:n,name:"oneOf",skipAbsent:!0,test(i){let s=this.schema._whitelist,o=s.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:o}})}}),r}notOneOf(t,n=ae.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ne({message:n,name:"notOneOf",test(i){let s=this.schema._blacklist,o=s.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(s).join(", "),resolved:o}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:s,nullable:o}=n.spec;return{meta:i,label:r,optional:s,nullable:o,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,l,c)=>c.findIndex(h=>h.name===u.name)===l)}}}oe.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])oe.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:s,schema:o}=_a(this,t,n,r.context);return o[e](i&&i[s],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])oe.prototype[e]=oe.prototype.oneOf;for(const e of["not","nope"])oe.prototype[e]=oe.prototype.notOneOf;let ya=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ea=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,xa=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,va=e=>ge(e)||e===e.trim(),wa={}.toString();function wt(){return new gi}class gi extends oe{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===wa?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||ae.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=ee.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=ee.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=ee.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,s;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:s}=n:i=n),this.test({name:s||"matches",message:i||ee.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=ee.email){return this.matches(ya,{name:"email",message:t,excludeEmptyString:!0})}url(t=ee.url){return this.matches(Ea,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ee.uuid){return this.matches(xa,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ee.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:va})}lowercase(t=ee.lowercase){return this.transform(n=>ge(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ge(n)||n===n.toLowerCase()})}uppercase(t=ee.uppercase){return this.transform(n=>ge(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ge(n)||n===n.toUpperCase()})}}wt.prototype=gi.prototype;var Ta=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function Sa(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=Ta.exec(e)){for(var s=0,o;o=t[s];++s)i[o]=+i[o]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(n=i[10]*60+i[11],i[9]==="+"&&(n=0-n)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+n,i[6],i[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let Aa=new Date(""),Oa=e=>Object.prototype.toString.call(e)==="[object Date]";class Ut extends oe{constructor(){super({type:"date",check(t){return Oa(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=Sa(t),isNaN(t)?Ut.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(xe.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=xn.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=xn.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}Ut.INVALID_DATE=Aa;Ut.prototype;function Na(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,a])=>`${o}-${a}`));function s(o,a){let u=be.split(o)[0];r.add(u),i.has(`${a}-${u}`)||n.push([a,u])}for(const o of Object.keys(e)){let a=e[o];r.add(o),xe.isRef(a)&&a.isSibling?s(a.path,o):Ln(a)&&"deps"in a&&a.deps.forEach(u=>s(u,o))}return aa.array(Array.from(r),n).reverse()}function yr(e,t){let n=1/0;return e.some((r,i)=>{var s;if((s=t.path)!=null&&s.includes(r))return n=i,!0}),n}function bi(e){return(t,n)=>yr(e,t)-yr(e,n)}const Ia=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Tt(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Tt(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Tt(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Tt)}):"optional"in e?e.optional():e}const Ca=(e,t)=>{const n=[...be.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=be.getter(be.join(n),!0)(e);return!!(i&&r in i)};let Er=e=>Object.prototype.toString.call(e)==="[object Object]";function Ha(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Pa=bi([]);function _i(e){return new yi(e)}class yi extends oe{constructor(t){super({type:"object",check(n){return Er(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Pa,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let s=this.fields,o=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(i).filter(h=>!this._nodes.includes(h))),u={},l=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),c=!1;for(const h of a){let f=s[h],d=h in i;if(f){let g,_=i[h];l.path=(n.path?`${n.path}.`:"")+h,f=f.resolve({value:_,context:n.context,parent:u});let y=f instanceof oe?f.spec:void 0,C=y==null?void 0:y.strict;if(y!=null&&y.strip){c=c||h in i;continue}g=!n.__validating||!C?f.cast(i[h],l):i[h],g!==void 0&&(u[h]=g)}else d&&!o&&(u[h]=i[h]);(d!==h in u||u[h]!==i[h])&&(c=!0)}return c?u:i}_validate(t,n={},r,i){let{from:s=[],originalValue:o=t,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:o},...s],n.__validating=!0,n.originalValue=o,super._validate(t,n,r,(u,l)=>{if(!a||!Er(l)){i(u,l);return}o=o||l;let c=[];for(let h of this._nodes){let f=this.fields[h];!f||xe.isRef(f)||c.push(f.asNestedTest({options:n,key:h,parent:l,parentPath:n.path,originalParent:o}))}this.runTests({tests:c,value:l,originalValue:o,options:n},r,h=>{i(h.sort(this._sortErrors).concat(u),l)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,s]of Object.entries(this.fields)){const o=r[i];r[i]=o===void 0?s:o}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const s=this.fields[r];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),n[r]=s&&"getDefault"in s?s.getDefault(o):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=Na(t,n),r._sortErrors=bi(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Tt(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n)}omit(t){const n=Object.assign({},this.fields);for(const r of t)delete n[r];return this.setFields(n)}from(t,n,r){let i=be.getter(t,!0);return this.transform(s=>{if(!s)return s;let o=s;return Ca(s,t)&&(o=Object.assign({},s),r||delete o[t],o[n]=i(s)),o})}json(){return this.transform(Ia)}noUnknown(t=!0,n=vn.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const s=Ha(this.schema,i);return!t||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=vn.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(sn.camelCase)}snakeCase(){return this.transformKeys(sn.snakeCase)}constantCase(){return this.transformKeys(t=>sn.snakeCase(t).toUpperCase())}describe(t){let n=super.describe(t);n.fields={};for(const[i,s]of Object.entries(this.fields)){var r;let o=t;(r=o)!=null&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[i]})),n.fields[i]=s.describe(o)}return n}}_i.prototype=yi.prototype;function Da(e){let t,n,r,i,s,o,a,u,l,c,h,f;const d=e[3].default,g=Ii(d,e,e[2],null);return{c(){t=S("label"),n=S("div"),r=S("input"),i=F(),s=S("div"),o=F(),a=S("div"),u=F(),l=S("div"),g&&g.c(),x(r,"id","toogleButton"),x(r,"type","checkbox"),x(r,"class","hidden svelte-4l3tce"),x(s,"class","toggle-path bg-gray-200 w-9 h-5 rounded-full shadow-inner svelte-4l3tce"),x(a,"class","toggle-circle absolute w-3.5 h-3.5 bg-white rounded-full shadow inset-y-0 left-0 svelte-4l3tce"),x(n,"class","relative"),x(l,"class","ml-3 text-gray-700 font-medium"),x(t,"class","flex items-center cursor-pointer")},m(_,y){ne(_,t,y),m(t,n),m(n,r),r.checked=e[0],m(n,i),m(n,s),m(n,o),m(n,a),m(t,u),m(t,l),g&&g.m(l,null),c=!0,h||(f=[te(r,"click",function(){nt(e[1])&&e[1].apply(this,arguments)}),te(r,"change",e[4])],h=!0)},p(_,[y]){e=_,y&1&&(r.checked=e[0]),g&&g.p&&(!c||y&4)&&Hi(g,d,e,e[2],c?Ci(d,e[2],y,null):Pi(e[2]),null)},i(_){c||(z(g,_),c=!0)},o(_){K(g,_),c=!1},d(_){_&&W(t),g&&g.d(_),h=!1,le(f)}}}function Ra(e,t,n){let{$$slots:r={},$$scope:i}=t,{checked:s=!1}=t,{onClick:o=()=>{}}=t;function a(){s=this.checked,n(0,s)}return e.$$set=u=>{"checked"in u&&n(0,s=u.checked),"onClick"in u&&n(1,o=u.onClick),"$$scope"in u&&n(2,i=u.$$scope)},[s,o,i,r,a]}class Ba extends Me{constructor(t){super(),ke(this,t,Ra,Da,ye,{checked:0,onClick:1})}}function Fa(e){let t=e[4]("routes.home.toggleBetaMode")+"",n;return{c(){n=k(t)},m(r,i){ne(r,n,i)},p(r,i){i&16&&t!==(t=r[4]("routes.home.toggleBetaMode")+"")&&X(n,t)},d(r){r&&W(n)}}}function xr(e){let t,n=e[4]("routes.home.domainError")+"",r;return{c(){t=S("p"),r=k(n),x(t,"class","text-xs text-red-500 mt-3")},m(i,s){ne(i,t,s),m(t,r)},p(i,s){s&16&&n!==(n=i[4]("routes.home.domainError")+"")&&X(r,n)},d(i){i&&W(t)}}}function vr(e){let t,n=e[4]("routes.home.roomError")+"",r;return{c(){t=S("p"),r=k(n),x(t,"class","text-xs text-red-500 mt-3")},m(i,s){ne(i,t,s),m(t,r)},p(i,s){s&16&&n!==(n=i[4]("routes.home.roomError")+"")&&X(r,n)},d(i){i&&W(t)}}}function La(e){let t,n,r,i,s=e[4]("routes.home.mainContent.heading")+"",o,a,u,l=e[4]("routes.home.mainContent.description")+"",c,h,f,d,g,_,y,C,P=e[4]("routes.home.joinRoomHeading")+"",H,v,p,w,D=e[4]("routes.home.domainLabel")+"",b,T,E,$,re,j,pe,ve=e[4]("routes.home.roomLabel")+"",Gt,kn,Y,Mn,$n,it,me,st,ot=e[4]("general.advancedConfiguration")+"",jt,Un,Ge,at=e[4]("general.password")+"",Vt,Gn,J,jn,je,ut=e[4]("routes.home.joinButtonText")+"",qt,Vn,we,lt=e[4]("routes.home.joinRoomFootnote")+"",zt,qn,Te,Xt,ct,U,Zt,zn;function Ei(A){e[11](A)}function xi(A){e[12](A)}let Wt={$$slots:{default:[Fa]},$$scope:{ctx:e}};e[1]!==void 0&&(Wt.onClick=e[1]),e[3]!==void 0&&(Wt.checked=e[3]),f=new Ba({props:Wt}),Nt.push(()=>er(f,"onClick",Ei)),Nt.push(()=>er(f,"checked",xi));let V=e[5].domain&&xr(e),q=e[5].room&&vr(e);return{c(){t=S("section"),n=S("div"),r=S("div"),i=S("h1"),o=k(s),a=F(),u=S("p"),c=k(l),h=F(),_e(f.$$.fragment),_=F(),y=S("form"),C=S("h2"),H=k(P),v=F(),p=S("div"),w=S("label"),b=k(D),T=F(),E=S("input"),$=F(),V&&V.c(),re=F(),j=S("div"),pe=S("label"),Gt=k(ve),kn=F(),Y=S("input"),Mn=F(),q&&q.c(),$n=F(),it=S("div"),me=S("details"),st=S("summary"),jt=k(ot),Un=F(),Ge=S("label"),Vt=k(at),Gn=F(),J=S("input"),jn=F(),je=S("button"),qt=k(ut),Vn=F(),we=S("p"),zt=k(lt),qn=F(),Te=S("a"),Xt=k(e[2]),x(i,"class","title-font font-medium text-3xl text-gray-900"),x(u,"class","leading-relaxed mt-4 mb-4"),x(r,"class","lg:w-3/5 md:w-1/2 md:pr-16 lg:pr-0 pr-0"),x(C,"class","text-gray-900 text-lg font-medium title-font mb-5"),x(w,"for","domain"),x(w,"class","leading-7 text-sm text-gray-600"),x(E,"type","text"),x(E,"id","domain"),x(E,"name","domain"),x(E,"placeholder","meet.jit.si"),x(E,"class","w-full bg-white rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"),x(p,"class","relative mb-4"),x(pe,"for","room"),x(pe,"class","leading-7 text-sm text-gray-600"),x(Y,"type","text"),x(Y,"id","room"),x(Y,"name","room"),x(Y,"class","w-full bg-white rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"),x(j,"class","relative mb-4"),x(st,"class","cursor-pointer"),x(Ge,"for","domain"),x(Ge,"class","leading-7 text-sm text-gray-600"),x(J,"type","password"),x(J,"id","password"),x(J,"name","password"),x(J,"class","w-full bg-white rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"),x(it,"class","relative mb-4"),x(je,"class","disabled:opacity-50 text-white bg-indigo-500 border-0 py-2 px-8 focus:outline-none hover:bg-indigo-600 rounded text-lg"),x(je,"type","submit"),x(Te,"class","text-indigo-500 break-words"),x(Te,"href",ct=`https://${e[2]}`),x(we,"class","text-xs text-gray-500 mt-3"),x(y,"class","lg:w-2/6 md:w-1/2 bg-gray-100 rounded-lg p-8 flex flex-col md:ml-auto w-full mt-10 md:mt-0"),x(n,"class","container px-5 py-24 mx-auto flex flex-wrap items-center"),x(t,"class","text-gray-600 body-font")},m(A,B){ne(A,t,B),m(t,n),m(n,r),m(r,i),m(i,o),m(r,a),m(r,u),m(u,c),m(r,h),he(f,r,null),m(n,_),m(n,y),m(y,C),m(C,H),m(y,v),m(y,p),m(p,w),m(w,b),m(p,T),m(p,E),Se(E,e[0].domain),m(p,$),V&&V.m(p,null),m(y,re),m(y,j),m(j,pe),m(pe,Gt),m(j,kn),m(j,Y),Se(Y,e[0].room),m(j,Mn),q&&q.m(j,null),m(y,$n),m(y,it),m(it,me),m(me,st),m(st,jt),m(me,Un),m(me,Ge),m(Ge,Vt),m(me,Gn),m(me,J),Se(J,e[0].password),m(y,jn),m(y,je),m(je,qt),m(y,Vn),m(y,we),m(we,zt),m(we,qn),m(we,Te),m(Te,Xt),U=!0,Zt||(zn=[te(E,"beforeinput",e[10]),te(E,"change",e[8]),te(E,"input",e[13]),te(Y,"beforeinput",e[10]),te(Y,"change",e[8]),te(Y,"input",e[14]),te(J,"change",e[8]),te(J,"input",e[15]),te(y,"submit",e[9])],Zt=!0)},p(A,[B]){(!U||B&16)&&s!==(s=A[4]("routes.home.mainContent.heading")+"")&&X(o,s),(!U||B&16)&&l!==(l=A[4]("routes.home.mainContent.description")+"")&&X(c,l);const ht={};B&262160&&(ht.$$scope={dirty:B,ctx:A}),!d&&B&2&&(d=!0,ht.onClick=A[1],Jn(()=>d=!1)),!g&&B&8&&(g=!0,ht.checked=A[3],Jn(()=>g=!1)),f.$set(ht),(!U||B&16)&&P!==(P=A[4]("routes.home.joinRoomHeading")+"")&&X(H,P),(!U||B&16)&&D!==(D=A[4]("routes.home.domainLabel")+"")&&X(b,D),B&1&&E.value!==A[0].domain&&Se(E,A[0].domain),A[5].domain?V?V.p(A,B):(V=xr(A),V.c(),V.m(p,null)):V&&(V.d(1),V=null),(!U||B&16)&&ve!==(ve=A[4]("routes.home.roomLabel")+"")&&X(Gt,ve),B&1&&Y.value!==A[0].room&&Se(Y,A[0].room),A[5].room?q?q.p(A,B):(q=vr(A),q.c(),q.m(j,null)):q&&(q.d(1),q=null),(!U||B&16)&&ot!==(ot=A[4]("general.advancedConfiguration")+"")&&X(jt,ot),(!U||B&16)&&at!==(at=A[4]("general.password")+"")&&X(Vt,at),B&1&&J.value!==A[0].password&&Se(J,A[0].password),(!U||B&16)&&ut!==(ut=A[4]("routes.home.joinButtonText")+"")&&X(qt,ut),(!U||B&16)&<!==(lt=A[4]("routes.home.joinRoomFootnote")+"")&&X(zt,lt),(!U||B&4)&&X(Xt,A[2]),(!U||B&4&&ct!==(ct=`https://${A[2]}`))&&x(Te,"href",ct)},i(A){U||(z(f.$$.fragment,A),U=!0)},o(A){K(f.$$.fragment,A),U=!1},d(A){A&&W(t),fe(f),V&&V.d(),q&&q.d(),Zt=!1,le(zn)}}}function ka(e,t,n){let r,i,s,o,a;_t(e,si,p=>n(4,o=p));let u=()=>{window.location.href=r?"/":"/beta"};const l=new RegExp(/^$|^((?:(?:(?:\w[\.\-\+]?)*)\w)+)((?:(?:(?:\w[\.\-\+]?){0,62})\w)+)\.(\w{2,6})$/),c=new RegExp(/^[^?&:"'%#]+$/),{form:h,errors:f,handleChange:d,handleSubmit:g}=Go({initialValues:{domain:"",room:"",password:""},validationSchema:_i().shape({domain:wt().trim().matches(l),room:wt().trim().min(1).matches(c).required(),password:wt().optional()}),onSubmit:p=>{const w=p.password?`?password=${p.password}`:"";Ao(`/bot/${i}${w}`)}});_t(e,h,p=>n(0,s=p)),_t(e,f,p=>n(5,a=p));function _(p){if(p instanceof InputEvent&&p.data&&p.inputType==="insertFromPaste"){const{data:w}=p,D=new RegExp("^http(s?)://(.*)/(.*)$");if(!D.test(w))return;const b=D.exec(w);if(!(b&&b.length>=4))return;const T=b[2],E=b[3];l.test(T)&&c.test(E)&&(p.preventDefault(),Yn(h,s.domain=T,s),Yn(h,s.room=E,s))}}function y(p){u=p,n(1,u)}function C(p){r=p,n(3,r)}function P(){s.domain=this.value,h.set(s)}function H(){s.room=this.value,h.set(s)}function v(){s.password=this.value,h.set(s)}return e.$$.update=()=>{e.$$.dirty&1&&n(2,i=`${s.domain||"meet.jit.si"}/${s.room}`)},n(3,r=window.location.href.split("/")[3].startsWith("beta")),[s,u,i,r,o,a,h,f,d,g,_,y,C,P,H,v]}class Ma extends Me{constructor(t){super(),ke(this,t,ka,La,ye,{})}}function $a(e){let t;return{c(){t=S("p"),t.textContent="404 - Not found"},m(n,r){ne(n,t,r)},p:M,i:M,o:M,d(n){n&&W(t)}}}class Ua extends Me{constructor(t){super(),ke(this,t,null,$a,ye,{})}}function Ga(e){let t,n,r,i,s,o,a,u,l,c,h,f,d,g;return{c(){t=S("footer"),n=S("div"),r=S("div"),i=S("div"),s=S("a"),o=k("JIMMI"),a=F(),u=S("p"),u.textContent="Still under heavy development",l=F(),c=S("div"),h=S("p"),f=k(`Fork me on - `),d=S("a"),g=k("GitHub"),x(s,"href",gn.url),x(s,"class","ml-3 text-xl"),x(u,"class","text-sm text-gray-500 ml-4 pl-4 border-l-2 border-gray-200 sm:py-2 sm:mt-0"),x(i,"class","flex items-center md:justify-start justify-center text-gray-900"),x(d,"href",gn.repoUrl),x(d,"class","text-indigo-500 ml-1"),x(d,"target","_blank"),x(d,"rel","noopener noreferrer"),x(h,"class","text-sm text-gray-500"),x(c,"class","sm:ml-auto sm:py-2 sm:mt-0 mt-4 sm:text-left text-center text-gray-500 text-sm"),x(r,"class","container mx-auto py-4 px-5 flex flex-wrap flex-col sm:flex-row"),x(n,"class","bg-gray-100 "),x(t,"class","text-gray-600 body-font absolute bottom-0 w-screen")},m(_,y){ne(_,t,y),m(t,n),m(n,r),m(r,i),m(i,s),m(s,o),m(i,a),m(i,u),m(r,l),m(r,c),m(c,h),m(h,f),m(h,d),m(d,g)},p:M,i:M,o:M,d(_){_&&W(t)}}}class ja extends Me{constructor(t){super(),ke(this,t,null,Ga,ye,{})}}function wr(e){let t,n;return t=new Io({props:{routes:e[1]}}),{c(){_e(t.$$.fragment)},m(r,i){he(t,r,i),n=!0},p:M,i(r){n||(z(t.$$.fragment,r),n=!0)},o(r){K(t.$$.fragment,r),n=!1},d(r){fe(t,r)}}}function Va(e){let t,n,r,i,s=!e[0]&&wr(e);return r=new ja({}),{c(){t=S("main"),s&&s.c(),n=F(),_e(r.$$.fragment),x(t,"class","h-screen")},m(o,a){ne(o,t,a),s&&s.m(t,null),m(t,n),he(r,t,null),i=!0},p(o,[a]){o[0]?s&&(Rt(),K(s,1,1,()=>{s=null}),Bt()):s?(s.p(o,a),a&1&&z(s,1)):(s=wr(o),s.c(),z(s,1),s.m(t,n))},i(o){i||(z(s),z(r.$$.fragment,o),i=!0)},o(o){K(s),K(r.$$.fragment,o),i=!1},d(o){o&&W(t),s&&s.d(),fe(r)}}}function qa(e,t,n){let r;_t(e,xt,s=>n(0,r=s)),Do();const i={"/":Ma,"/bot/:instance/:room":xo({asyncComponent:()=>Tr(()=>import("./Bot-cad5cf45.js"),["assets/Bot-cad5cf45.js","assets/Bot-b35bdf2e.css"])}),"*":Ua};return[r,i]}class za extends Me{constructor(t){super(),ke(this,t,qa,Va,ye,{})}}new za({target:document.getElementById("app")});export{M as A,_e as B,he as C,z as D,Rt as E,Bt as F,K as G,fe as H,_t as I,Vi as J,ji as K,Ao as L,Ii as M,Hi as N,Pi as O,Ci as P,er as Q,Jn as R,Me as S,nu as T,oi as U,si as X,ke as a,F as b,x as c,Za as d,S as e,It as f,tu as g,Ka as h,Ai as i,ne as j,m as k,Se as l,te as m,X as n,eu as o,W as p,Wa as q,le as r,ye as s,k as t,Ja as u,Sn as v,Nt as w,Qa as x,Ya as y,gn as z}; diff --git a/assets/index-f3d341d7.js b/assets/index-f3d341d7.js new file mode 100644 index 0000000..af1f431 --- /dev/null +++ b/assets/index-f3d341d7.js @@ -0,0 +1,20 @@ +var Ri=Object.defineProperty;var Bi=(e,t,r)=>t in e?Ri(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Q=(e,t,r)=>(Bi(e,typeof t!="symbol"?t+"":t,r),r),Kr=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var pt=(e,t,r)=>(Kr(e,t,"read from private field"),r?r.call(e):t.get(e)),mt=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},gt=(e,t,r,n)=>(Kr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();const Fi="modulepreload",$i=function(e){return"/"+e},Jr={},Rn=function(t,r,n){if(!r||r.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(r.map(s=>{if(s=$i(s),s in Jr)return;Jr[s]=!0;const o=s.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!n)for(let c=i.length-1;c>=0;c--){const f=i[c];if(f.href===s&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":Fi,o||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),o)return new Promise((c,f)=>{l.addEventListener("load",c),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};function M(){}const Li=e=>e;function Ar(e,t){for(const r in t)e[r]=t[r];return e}function Bn(e){return e()}function en(){return Object.create(null)}function he(e){e.forEach(Bn)}function it(e){return typeof e=="function"}function ve(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let bt;function Nu(e,t){return e===t?!0:(bt||(bt=document.createElement("a")),bt.href=t,e===bt.href)}function ki(e){return Object.keys(e).length===0}function Nr(e,...t){if(e==null){for(const n of t)n(void 0);return M}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Mi(e){let t;return Nr(e,r=>t=r)(),t}function Et(e,t,r){e.$$.on_destroy.push(Nr(t,r))}function Ui(e,t,r,n){if(e){const i=Fn(e,t,r,n);return e[0](i)}}function Fn(e,t,r,n){return e[1]&&n?Ar(r.ctx.slice(),e[1](n(t))):r.ctx}function ji(e,t,r,n){if(e[2]&&n){const i=e[2](n(r));if(t.dirty===void 0)return i;if(typeof i=="object"){const s=[],o=Math.max(t.dirty.length,i.length);for(let a=0;a32){const t=[],r=e.ctx.length/32;for(let n=0;nwindow.performance.now():()=>Date.now(),Pr=$n?e=>requestAnimationFrame(e):M;const De=new Set;function Ln(e){De.forEach(t=>{t.c(e)||(De.delete(t),t.f())}),De.size!==0&&Pr(Ln)}function zi(e){let t;return De.size===0&&Pr(Ln),{promise:new Promise(r=>{De.add(t={c:e,f:r})}),abort(){De.delete(t)}}}function y(e,t){e.appendChild(t)}function kn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Xi(e){const t=N("style");return t.textContent="/* empty */",Zi(kn(e),t),t.sheet}function Zi(e,t){return y(e.head||e,t),t.sheet}function ne(e,t,r){e.insertBefore(t,r||null)}function W(e){e.parentNode&&e.parentNode.removeChild(e)}function Pu(e,t){for(let r=0;re.removeEventListener(t,r,n)}function v(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Iu(e){return e===""?null:+e}function Wi(e){return Array.from(e.childNodes)}function Z(e,t){t=""+t,e.data!==t&&(e.data=t)}function Ae(e,t){e.value=t??""}function Cu(e,t,r){e.classList.toggle(t,!!r)}function Mn(e,t,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:n})}function Ot(e,t){return new e(t)}const At=new Map;let Nt=0;function Yi(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}function Qi(e,t){const r={stylesheet:Xi(t),rules:{}};return At.set(e,r),r}function rn(e,t,r,n,i,s,o,a=0){const u=16.666/n;let l=`{ +`;for(let m=0;m<=1;m+=u){const C=t+(r-t)*s(m);l+=m*100+`%{${o(C,1-C)}} +`}const c=l+`100% {${o(r,1-r)}} +}`,f=`__svelte_${Yi(c)}_${a}`,h=kn(e),{stylesheet:b,rules:p}=At.get(h)||Qi(h,e);p[f]||(p[f]=!0,b.insertRule(`@keyframes ${f} ${c}`,b.cssRules.length));const _=e.style.animation||"";return e.style.animation=`${_?`${_}, `:""}${f} ${n}ms linear ${i}ms 1 both`,Nt+=1,f}function Ki(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),i=r.length-n.length;i&&(e.style.animation=n.join(", "),Nt-=i,Nt||Ji())}function Ji(){Pr(()=>{Nt||(At.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&W(t)}),At.clear())})}let Ke;function We(e){Ke=e}function Lt(){if(!Ke)throw new Error("Function called outside component initialization");return Ke}function Du(e){Lt().$$.on_mount.push(e)}function es(e){Lt().$$.after_update.push(e)}function ts(e){Lt().$$.on_destroy.push(e)}function rs(){const e=Lt();return(t,r,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[t];if(i){const s=Mn(t,r,{cancelable:n});return i.slice().forEach(o=>{o.call(e,s)}),!s.defaultPrevented}return!0}}function nn(e,t){const r=e.$$.callbacks[t.type];r&&r.slice().forEach(n=>n.call(this,t))}const Ie=[],Pt=[];let Re=[];const cr=[],Un=Promise.resolve();let fr=!1;function jn(){fr||(fr=!0,Un.then(Vn))}function Gn(){return jn(),Un}function Ht(e){Re.push(e)}function sn(e){cr.push(e)}const tr=new Set;let Ne=0;function Vn(){if(Ne!==0)return;const e=Ke;do{try{for(;Nee.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Re=t}let ze;function ss(){return ze||(ze=Promise.resolve(),ze.then(()=>{ze=null})),ze}function rr(e,t,r){e.dispatchEvent(Mn(`${t?"intro":"outro"}${r}`))}const xt=new Set;let fe;function kt(){fe={r:0,c:[],p:fe}}function Mt(){fe.r||he(fe.c),fe=fe.p}function X(e,t){e&&e.i&&(xt.delete(e),e.i(t))}function J(e,t,r,n){if(e&&e.o){if(xt.has(e))return;xt.add(e),fe.c.push(()=>{xt.delete(e),n&&(r&&e.d(1),n())}),e.o(t)}else n&&n()}const os={duration:0};function Ru(e,t,r,n){let s=t(e,r,{direction:"both"}),o=n?0:1,a=null,u=null,l=null,c;function f(){l&&Ki(e,l)}function h(p,_){const m=p.b-o;return _*=Math.abs(m),{a:o,b:p.b,d:m,duration:_,start:p.start,end:p.start+_,group:p.group}}function b(p){const{delay:_=0,duration:m=300,easing:C=Li,tick:H=M,css:D}=s||os,x={start:qi()+_,b:p};p||(x.group=fe,fe.r+=1),"inert"in e&&(p?c!==void 0&&(e.inert=c):(c=e.inert,e.inert=!0)),a||u?u=x:(D&&(f(),l=rn(e,o,p,m,_,C,D)),p&&H(0,1),a=h(x,m),Ht(()=>rr(e,p,"start")),zi(d=>{if(u&&d>u.start&&(a=h(u,m),u=null,rr(e,a.b,"start"),D&&(f(),l=rn(e,o,a.b,a.duration,0,C,s.css))),a){if(d>=a.end)H(o=a.b,1-o),rr(e,a.b,"end"),u||(a.b?f():--a.group.r||he(a.group.c)),a=null;else if(d>=a.start){const E=d-a.start;o=a.a+a.d*C(E/a.duration),H(o,1-o)}}return!!(a||u)}))}return{run(p){it(s)?ss().then(()=>{s=s({direction:p?"in":"out"}),b(p)}):b(p)},end(){f(),a=u=null}}}function It(e,t){const r={},n={},i={$$scope:1};let s=e.length;for(;s--;){const o=e[s],a=t[s];if(a){for(const u in o)u in a||(n[u]=1);for(const u in a)i[u]||(r[u]=a[u],i[u]=1);e[s]=a}else for(const u in o)i[u]=1}for(const o in n)o in r||(r[o]=void 0);return r}function Ct(e){return typeof e=="object"&&e!==null?e:{}}function on(e,t,r){const n=e.$$.props[t];n!==void 0&&(e.$$.bound[n]=r,r(e.$$.ctx[n]))}function xe(e){e&&e.c()}function me(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Ht(()=>{const s=e.$$.on_mount.map(Bn).filter(it);e.$$.on_destroy?e.$$.on_destroy.push(...s):he(s),e.$$.on_mount=[]}),i.forEach(Ht)}function ge(e,t){const r=e.$$;r.fragment!==null&&(is(r.after_update),he(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function as(e,t){e.$$.dirty[0]===-1&&(Ie.push(e),jn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const p=b.length?b[0]:h;return l.ctx&&i(l.ctx[f],l.ctx[f]=p)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](p),c&&as(e,f)),h}):[],l.update(),c=!0,he(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const f=Wi(t.target);l.fragment&&l.fragment.l(f),f.forEach(W)}else l.fragment&&l.fragment.c();t.intro&&X(e.$$.fragment),me(e,t.target,t.anchor),Vn()}We(u)}class Me{constructor(){Q(this,"$$");Q(this,"$$set")}$destroy(){ge(this,1),this.$destroy=M}$on(t,r){if(!it(r))return M;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!ki(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const us="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(us);const Pe=[];function qn(e,t){return{subscribe:ae(e,t).subscribe}}function ae(e,t=M){let r;const n=new Set;function i(a){if(ve(e,a)&&(e=a,r)){const u=!Pe.length;for(const l of n)l[1](),Pe.push(l,e);if(u){for(let l=0;l{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:o}}function K(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return qn(r,(o,a)=>{let u=!1;const l=[];let c=0,f=M;const h=()=>{if(c)return;f();const p=t(n?l[0]:l,o,a);s?o(p):f=it(p)?p:M},b=i.map((p,_)=>Nr(p,m=>{l[_]=m,c&=~(1<<_),u&&h()},()=>{c|=1<<_}));return u=!0,h(),function(){he(b),f(),u=!1}})}function zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bu(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var ls=function(t){return cs(t)&&!fs(t)};function cs(e){return!!e&&typeof e=="object"}function fs(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ps(e)}var hs=typeof Symbol=="function"&&Symbol.for,ds=hs?Symbol.for("react.element"):60103;function ps(e){return e.$$typeof===ds}function ms(e){return Array.isArray(e)?[]:{}}function Je(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Be(ms(e),e,t):e}function gs(e,t,r){return e.concat(t).map(function(n){return Je(n,r)})}function bs(e,t){if(!t.customMerge)return Be;var r=t.customMerge(e);return typeof r=="function"?r:Be}function _s(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function an(e){return Object.keys(e).concat(_s(e))}function Xn(e,t){try{return t in e}catch{return!1}}function ys(e,t){return Xn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Es(e,t,r){var n={};return r.isMergeableObject(e)&&an(e).forEach(function(i){n[i]=Je(e[i],r)}),an(t).forEach(function(i){ys(e,i)||(Xn(e,i)&&r.isMergeableObject(t[i])?n[i]=bs(i,r)(e[i],t[i],r):n[i]=Je(t[i],r))}),n}function Be(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||gs,r.isMergeableObject=r.isMergeableObject||ls,r.cloneUnlessOtherwiseSpecified=Je;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Es(e,t,r):Je(t,r)}Be.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Be(n,i,r)},{})};var xs=Be,vs=xs;const ws=zn(vs);var hr=function(e,t){return hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},hr(e,t)};function Ut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var P=function(){return P=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0}),r=[],n=0,i=t;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Cs,function(u,l,c,f,h,b){if(l)t.minimumIntegerDigits=c.length;else{if(f&&h)throw new Error("We currently do not support maximum integer digits");if(b)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ni.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ln.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ln,function(u,l,c,f,h,b){return c==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&b?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+b.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=P(P({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=P(P({},t),cn(s)));continue}if(ri.test(i.stem)){t=P(P({},t),cn(i.stem));continue}var o=ii(i.stem);o&&(t=P(P({},t),o));var a=Ds(i.stem);a&&(t=P(P({},t),a))}return t}var _t={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Bs(e,t){for(var r="",n=0;n>1),u="a",l=Fs(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=u;for(;o-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function Fs(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=_t[n||""]||_t[r||""]||_t["".concat(r,"-001")]||_t["001"];return i[0]}var ir,$s=new RegExp("^".concat(ti.source,"*")),Ls=new RegExp("".concat(ti.source,"*$"));function A(e,t){return{start:e,end:t}}var ks=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ms=!!String.fromCodePoint,Us=!!Object.fromEntries,js=!!String.prototype.codePointAt,Gs=!!String.prototype.trimStart,Vs=!!String.prototype.trimEnd,qs=!!Number.isSafeInteger,zs=qs?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},pr=!0;try{var Xs=oi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");pr=((ir=Xs.exec("a"))===null||ir===void 0?void 0:ir[0])==="a"}catch{pr=!1}var hn=ks?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},mr=Ms?String.fromCodePoint:function(){for(var t=[],r=0;rs;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},dn=Us?Object.fromEntries:function(t){for(var r={},n=0,i=t;n=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},Zs=Gs?function(t){return t.trimStart()}:function(t){return t.replace($s,"")},Ws=Vs?function(t){return t.trimEnd()}:function(t){return t.replace(Ls,"")};function oi(e,t){return new RegExp(e,t)}var gr;if(pr){var pn=oi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");gr=function(t,r){var n;pn.lastIndex=r;var i=pn.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else gr=function(t,r){for(var n=[];;){var i=si(t,r);if(i===void 0||ai(i)||Js(i))break;n.push(i),r+=i>=65536?2:1}return mr.apply(void 0,n)};var Ys=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,n);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:B.pound,location:A(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(O.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&br(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:B.literal,value:"<".concat(i,"/>"),location:A(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:B.tag,value:i,children:o,location:A(n,this.clonePosition())},err:null}:this.error(O.INVALID_TAG,A(a,this.clonePosition())))}else return this.error(O.UNCLOSED_TAG,A(n,this.clonePosition()))}else return this.error(O.INVALID_TAG,A(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ks(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){i+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=A(n,this.clonePosition());return{val:{type:B.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Qs(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return mr.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),mr(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(O.EMPTY_ARGUMENT,A(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(O.MALFORMED_ARGUMENT,A(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:B.argument,value:i,location:A(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(O.MALFORMED_ARGUMENT,A(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=gr(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),o=A(t,s);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(O.EXPECT_ARGUMENT_TYPE,A(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=Ws(f.val);if(h.length===0)return this.error(O.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var b=A(c,this.clonePosition());l={style:h,styleLocation:b}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var _=A(i,this.clonePosition());if(l&&hn(l==null?void 0:l.style,"::",0)){var m=Zs(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(m,l.styleLocation);return f.err?f:{val:{type:B.number,value:n,location:_,style:f.val},err:null}}else{if(m.length===0)return this.error(O.EXPECT_DATE_TIME_SKELETON,_);var C=m;this.locale&&(C=Bs(m,this.locale));var h={type:Fe.dateTime,pattern:C,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ns(C):{}},H=a==="date"?B.date:B.time;return{val:{type:H,value:n,location:_,style:h},err:null}}}return{val:{type:a==="number"?B.number:a==="date"?B.date:B.time,value:n,location:_,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var D=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS,A(D,P({},D)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),d=0;if(a!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),x=this.parseIdentifierIfPossible(),d=f.val}var E=this.tryParsePluralOrSelectOptions(t,a,r,x);if(E.err)return E;var p=this.tryParseArgumentClose(i);if(p.err)return p;var R=A(i,this.clonePosition());return a==="select"?{val:{type:B.select,value:n,options:dn(E.val),location:R},err:null}:{val:{type:B.plural,value:n,options:dn(E.val),offset:d,pluralType:a==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(O.INVALID_ARGUMENT_TYPE,A(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,A(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Hs(t)}catch{return this.error(O.INVALID_NUMBER_SKELETON,r)}return{val:{type:Fe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Rs(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,o=!1,a=[],u=new Set,l=i.value,c=i.location;;){if(l.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR,O.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=A(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?O.DUPLICATE_SELECT_ARGUMENT_SELECTOR:O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(o=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,r,n);if(p.err)return p;var _=this.tryParseArgumentClose(b);if(_.err)return _;a.push([l,{value:p.val,location:A(b,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,c=s.location}return a.length===0?this.error(r==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR:O.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(O.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var u=A(i,this.clonePosition());return s?(o*=n,zs(o)?{val:o,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=si(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(hn(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ai(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function br(e){return e>=97&&e<=122||e>=65&&e<=90}function Qs(e){return br(e)||e===47}function Ks(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ai(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Js(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function _r(e){e.forEach(function(t){if(delete t.location,Qn(t)||Kn(t))for(var r in t.options)delete t.options[r].location,_r(t.options[r].value);else Zn(t)&&ei(t.style)||(Wn(t)||Yn(t))&&dr(t.style)?delete t.style.location:Jn(t)&&_r(t.children)})}function eo(e,t){t===void 0&&(t={}),t=P({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ys(e,t).parse();if(r.err){var n=SyntaxError(O[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||_r(r.val),r.val}function sr(e,t){var r=t&&t.cache?t.cache:oo,n=t&&t.serializer?t.serializer:so,i=t&&t.strategy?t.strategy:ro;return i(e,{cache:r,serializer:n})}function to(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ui(e,t,r,n){var i=to(n)?n:r(n),s=t.get(i);return typeof s>"u"&&(s=e.call(this,n),t.set(i,s)),s}function li(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,n),t.set(i,s)),s}function Ir(e,t,r,n,i){return r.bind(t,e,n,i)}function ro(e,t){var r=e.length===1?ui:li;return Ir(e,this,r,t.cache.create(),t.serializer)}function no(e,t){return Ir(e,this,li,t.cache.create(),t.serializer)}function io(e,t){return Ir(e,this,ui,t.cache.create(),t.serializer)}var so=function(){return JSON.stringify(arguments)};function Cr(){this.cache=Object.create(null)}Cr.prototype.get=function(e){return this.cache[e]};Cr.prototype.set=function(e,t){this.cache[e]=t};var oo={create:function(){return new Cr}},or={variadic:no,monadic:io},$e;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($e||($e={}));var jt=function(e){Ut(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),mn=function(e){Ut(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),$e.INVALID_VALUE,s)||this}return t}(jt),ao=function(e){Ut(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),$e.INVALID_VALUE,i)||this}return t}(jt),uo=function(e){Ut(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),$e.MISSING_VALUE,n)||this}return t}(jt),G;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(G||(G={}));function lo(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==G.literal||r.type!==G.literal?t.push(r):n.value+=r.value,t},[])}function co(e){return typeof e=="function"}function vt(e,t,r,n,i,s,o){if(e.length===1&&un(e[0]))return[{type:G.literal,value:e[0].value}];for(var a=[],u=0,l=e;u"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=eo,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function mo(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const de={},go=(e,t,r)=>r&&(t in de||(de[t]={}),e in de[t]||(de[t][e]=r),r),fi=(e,t)=>{if(t==null)return;if(t in de&&e in de[t])return de[t][e];const r=st(t);for(let n=0;n(r[e]=ws.all([r[e]||{},...t]),r))}K([Ue],([e])=>Object.keys(e));Ue.subscribe(e=>Dr=e);const Ye={};function Eo(e){Ye[e]=new Set}function xo(e,t){Ye[e].delete(t),Ye[e].size===0&&delete Ye[e]}function Qe(e){return Ye[e]}function vo(e){return st(e).map(t=>{const r=Qe(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Dt(e){return e==null?!1:st(e).some(t=>{var r;return(r=Qe(t))==null?void 0:r.size})}function wo(e,t){return Promise.all(t.map(n=>(xo(e,n),n().then(i=>i.default||i)))).then(n=>hi(e,...n))}const Xe={};function di(e){if(!Dt(e))return e in Xe?Xe[e]:Promise.resolve();const t=vo(e);return Xe[e]=Promise.all(t.map(([r,n])=>wo(r,n))).then(()=>{if(Dt(e))return di(e);delete Xe[e]}),Xe[e]}function To(e,t){Qe(e)||Eo(e);const r=Qe(e);Qe(e).has(t)||(Rr(e)||Ue.update(n=>(n[e]={},n)),r.add(t))}var gn=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable,Ao=(e,t)=>{var r={};for(var n in e)So.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gn)for(var n of gn(e))t.indexOf(n)<0&&Oo.call(e,n)&&(r[n]=e[n]);return r};const No={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function Po({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${st(e).join('", "')}".${Dt(be())?` + +Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Ho={fallbackLocale:null,loadingDelay:200,formats:No,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ze=Ho;function Le(){return Ze}function Io(e){const t=e,{formats:r}=t,n=Ao(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{ci.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=Po:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Ze,n,{initialLocale:i}),r&&("number"in r&&Object.assign(Ze.formats.number,r.number),"date"in r&&Object.assign(Ze.formats.date,r.date),"time"in r&&Object.assign(Ze.formats.time,r.time)),je.set(i)}const wt=ae(!1);var Co=Object.defineProperty,Do=Object.defineProperties,Ro=Object.getOwnPropertyDescriptors,bn=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,_n=(e,t,r)=>t in e?Co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$o=(e,t)=>{for(var r in t||(t={}))Bo.call(t,r)&&_n(e,r,t[r]);if(bn)for(var r of bn(t))Fo.call(t,r)&&_n(e,r,t[r]);return e},Lo=(e,t)=>Do(e,Ro(t));let yr;const Rt=ae(null);function yn(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function st(e,t=Le().fallbackLocale){const r=yn(e);return t?[...new Set([...r,...yn(t)])]:r}function be(){return yr??void 0}Rt.subscribe(e=>{yr=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ko=e=>{if(e&&yo(e)&&Dt(e)){const{loadingDelay:t}=Le();let r;return typeof window<"u"&&be()!=null&&t?r=window.setTimeout(()=>wt.set(!0),t):wt.set(!0),di(e).then(()=>{Rt.set(e)}).finally(()=>{clearTimeout(r),wt.set(!1)})}return Rt.set(e)},je=Lo($o({},Rt),{set:ko}),Mo=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],Gt=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Uo=Object.defineProperty,Bt=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable,En=(e,t,r)=>t in e?Uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Br=(e,t)=>{for(var r in t||(t={}))pi.call(t,r)&&En(e,r,t[r]);if(Bt)for(var r of Bt(t))mi.call(t,r)&&En(e,r,t[r]);return e},Ge=(e,t)=>{var r={};for(var n in e)pi.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Bt)for(var n of Bt(e))t.indexOf(n)<0&&mi.call(e,n)&&(r[n]=e[n]);return r};const et=(e,t)=>{const{formats:r}=Le();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},jo=Gt(e=>{var t=e,{locale:r,format:n}=t,i=Ge(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=et("number",n)),new Intl.NumberFormat(r,i)}),Go=Gt(e=>{var t=e,{locale:r,format:n}=t,i=Ge(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=et("date",n):Object.keys(i).length===0&&(i=et("date","short")),new Intl.DateTimeFormat(r,i)}),Vo=Gt(e=>{var t=e,{locale:r,format:n}=t,i=Ge(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=et("time",n):Object.keys(i).length===0&&(i=et("time","short")),new Intl.DateTimeFormat(r,i)}),qo=(e={})=>{var t=e,{locale:r=be()}=t,n=Ge(t,["locale"]);return jo(Br({locale:r},n))},zo=(e={})=>{var t=e,{locale:r=be()}=t,n=Ge(t,["locale"]);return Go(Br({locale:r},n))},Xo=(e={})=>{var t=e,{locale:r=be()}=t,n=Ge(t,["locale"]);return Vo(Br({locale:r},n))},Zo=Gt((e,t=be())=>new ci(e,t,Le().formats,{ignoreTag:Le().ignoreTag})),Wo=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:u=be(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=fi(e,u);if(!c)c=(s=(i=(n=(r=Le()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let f=c;try{f=Zo(c,u).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return f},Yo=(e,t)=>Xo(t).format(e),Qo=(e,t)=>zo(t).format(e),Ko=(e,t)=>qo(t).format(e),Jo=(e,t=be())=>fi(e,t),gi=K([je,Ue],()=>Wo);K([je],()=>Yo);K([je],()=>Qo);K([je],()=>Ko);K([je,Ue],()=>Jo);function ea(e){if(!e)throw Error("Parameter args is required");if(!e.component==!e.asyncComponent)throw Error("One and only one of component and asyncComponent is required");if(e.component&&(e.asyncComponent=()=>Promise.resolve(e.component)),typeof e.asyncComponent!="function")throw Error("Parameter asyncComponent must be a function");if(e.conditions){Array.isArray(e.conditions)||(e.conditions=[e.conditions]);for(let r=0;r{ge(l,1)}),Mt()}s?(t=Ot(s,o(a,u)),t.$on("routeEvent",a[7]),xe(t.$$.fragment),X(t.$$.fragment,1),me(t,r.parentNode,r)):t=null}else if(s){const l=u&4?It(i,[Ct(a[2])]):{};t.$set(l)}},i(a){n||(t&&X(t.$$.fragment,a),n=!0)},o(a){t&&J(t.$$.fragment,a),n=!1},d(a){a&&W(r),t&&ge(t,a)}}}function na(e){let t,r,n;const i=[{params:e[1]},e[2]];var s=e[0];function o(a,u){let l={};if(u!==void 0&&u&6)l=It(i,[u&2&&{params:a[1]},u&4&&Ct(a[2])]);else for(let c=0;c{ge(l,1)}),Mt()}s?(t=Ot(s,o(a,u)),t.$on("routeEvent",a[6]),xe(t.$$.fragment),X(t.$$.fragment,1),me(t,r.parentNode,r)):t=null}else if(s){const l=u&6?It(i,[u&2&&{params:a[1]},u&4&&Ct(a[2])]):{};t.$set(l)}},i(a){n||(t&&X(t.$$.fragment,a),n=!0)},o(a){t&&J(t.$$.fragment,a),n=!1},d(a){a&&W(r),t&&ge(t,a)}}}function ia(e){let t,r,n,i;const s=[na,ra],o=[];function a(u,l){return u[1]?0:1}return t=a(e),r=o[t]=s[t](e),{c(){r.c(),n=Hr()},m(u,l){o[t].m(u,l),ne(u,n,l),i=!0},p(u,[l]){let c=t;t=a(u),t===c?o[t].p(u,l):(kt(),J(o[c],1,1,()=>{o[c]=null}),Mt(),r=o[t],r?r.p(u,l):(r=o[t]=s[t](u),r.c()),X(r,1),r.m(n.parentNode,n))},i(u){i||(X(r),i=!0)},o(u){J(r),i=!1},d(u){u&&W(n),o[t].d(u)}}}function xn(){const e=window.location.href.indexOf("#/");let t=e>-1?window.location.href.substr(e+1):"/";const r=t.indexOf("?");let n="";return r>-1&&(n=t.substr(r+1),t=t.substr(0,r)),{location:t,querystring:n}}const Fr=qn(null,function(t){t(xn());const r=()=>{t(xn())};return window.addEventListener("hashchange",r,!1),function(){window.removeEventListener("hashchange",r,!1)}});K(Fr,e=>e.location);const Fu=K(Fr,e=>e.querystring),vn=ae(void 0);async function sa(e){if(!e||e.length<1||e.charAt(0)!="/"&&e.indexOf("#/")!==0)throw Error("Invalid parameter location");await Gn(),history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=(e.charAt(0)=="#"?"":"#")+e}function oa(e){e?window.scrollTo(e.__svelte_spa_router_scrollX,e.__svelte_spa_router_scrollY):window.scrollTo(0,0)}function aa(e,t,r){let{routes:n={}}=t,{prefix:i=""}=t,{restoreScrollState:s=!1}=t;class o{constructor(d,E){if(!E||typeof E!="function"&&(typeof E!="object"||E._sveltesparouter!==!0))throw Error("Invalid component object");if(!d||typeof d=="string"&&(d.length<1||d.charAt(0)!="/"&&d.charAt(0)!="*")||typeof d=="object"&&!(d instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:R,keys:g}=ta(d);this.path=d,typeof E=="object"&&E._sveltesparouter===!0?(this.component=E.component,this.conditions=E.conditions||[],this.userData=E.userData,this.props=E.props||{}):(this.component=()=>Promise.resolve(E),this.conditions=[],this.props={}),this._pattern=R,this._keys=g}match(d){if(i){if(typeof i=="string")if(d.startsWith(i))d=d.substr(i.length)||"/";else return null;else if(i instanceof RegExp){const w=d.match(i);if(w&&w[0])d=d.substr(w[0].length)||"/";else return null}}const E=this._pattern.exec(d);if(E===null)return null;if(this._keys===!1)return E;const R={};let g=0;for(;g{a.push(new o(d,x))}):Object.keys(n).forEach(x=>{a.push(new o(x,n[x]))});let u=null,l=null,c={};const f=rs();async function h(x,d){await Gn(),f(x,d)}let b=null,p=null;s&&(p=x=>{x.state&&(x.state.__svelte_spa_router_scrollY||x.state.__svelte_spa_router_scrollX)?b=x.state:b=null},window.addEventListener("popstate",p),es(()=>{oa(b)}));let _=null,m=null;const C=Fr.subscribe(async x=>{_=x;let d=0;for(;d{vn.set(l)});return}r(0,u=null),m=null,vn.set(void 0)});ts(()=>{C(),p&&window.removeEventListener("popstate",p)});function H(x){nn.call(this,e,x)}function D(x){nn.call(this,e,x)}return e.$$set=x=>{"routes"in x&&r(3,n=x.routes),"prefix"in x&&r(4,i=x.prefix),"restoreScrollState"in x&&r(5,s=x.restoreScrollState)},e.$$.update=()=>{e.$$.dirty&32&&(history.scrollRestoration=s?"manual":"auto")},[u,l,c,n,i,s,H,D]}class ua extends Me{constructor(t){super(),ke(this,t,aa,ia,ve,{routes:3,prefix:4,restoreScrollState:5})}}var bi=(e=>(e.AUDIO_INPUT_STATE_CHANGE="conference.audio_input_state_changed",e.AUTH_STATUS_CHANGED="conference.auth_status_changed",e.BEFORE_STATISTICS_DISPOSED="conference.beforeStatisticsDisposed",e.CONFERENCE_ERROR="conference.error",e.CONFERENCE_FAILED="conference.failed",e.CONFERENCE_JOINED="conference.joined",e.CONFERENCE_LEFT="conference.left",e.CONFERENCE_UNIQUE_ID_SET="conference.unique_id_set",e.CONNECTION_ESTABLISHED="conference.connectionEstablished",e.CONNECTION_INTERRUPTED="conference.connectionInterrupted",e.CONNECTION_RESTORED="conference.connectionRestored",e.DATA_CHANNEL_OPENED="conference.dataChannelOpened",e.DISPLAY_NAME_CHANGED="conference.displayNameChanged",e.DOMINANT_SPEAKER_CHANGED="conference.dominantSpeaker",e.CONFERENCE_CREATED_TIMESTAMP="conference.createdTimestamp",e.DTMF_SUPPORT_CHANGED="conference.dtmfSupportChanged",e.ENDPOINT_MESSAGE_RECEIVED="conference.endpoint_message_received",e.ENDPOINT_STATS_RECEIVED="conference.endpoint_stats_received",e.JVB121_STATUS="conference.jvb121Status",e.KICKED="conference.kicked",e.PARTICIPANT_KICKED="conference.participant_kicked",e.LAST_N_ENDPOINTS_CHANGED="conference.lastNEndpointsChanged",e.LOCK_STATE_CHANGED="conference.lock_state_changed",e.SERVER_REGION_CHANGED="conference.server_region_changed",e._MEDIA_SESSION_STARTED="conference.media_session.started",e._MEDIA_SESSION_ACTIVE_CHANGED="conference.media_session.active_changed",e.MEMBERS_ONLY_CHANGED="conference.membersOnlyChanged",e.MESSAGE_RECEIVED="conference.messageReceived",e.NO_AUDIO_INPUT="conference.no_audio_input",e.NOISY_MIC="conference.noisy_mic",e.NON_PARTICIPANT_MESSAGE_RECEIVED="conference.non_participant_message_received",e.PRIVATE_MESSAGE_RECEIVED="conference.privateMessageReceived",e.PARTICIPANT_CONN_STATUS_CHANGED="conference.participant_conn_status_changed",e.PARTCIPANT_FEATURES_CHANGED="conference.partcipant_features_changed",e.PARTICIPANT_PROPERTY_CHANGED="conference.participant_property_changed",e.P2P_STATUS="conference.p2pStatus",e.PHONE_NUMBER_CHANGED="conference.phoneNumberChanged",e.PROPERTIES_CHANGED="conference.propertiesChanged",e.RECORDER_STATE_CHANGED="conference.recorderStateChanged",e.VIDEO_SIP_GW_AVAILABILITY_CHANGED="conference.videoSIPGWAvailabilityChanged",e.VIDEO_SIP_GW_SESSION_STATE_CHANGED="conference.videoSIPGWSessionStateChanged",e.START_MUTED_POLICY_CHANGED="conference.start_muted_policy_changed",e.STARTED_MUTED="conference.started_muted",e.SUBJECT_CHANGED="conference.subjectChanged",e.SUSPEND_DETECTED="conference.suspendDetected",e.TALK_WHILE_MUTED="conference.talk_while_muted",e.TRACK_ADDED="conference.trackAdded",e.TRACK_AUDIO_LEVEL_CHANGED="conference.audioLevelsChanged",e.TRACK_MUTE_CHANGED="conference.trackMuteChanged",e.TRACK_REMOVED="conference.trackRemoved",e.TRANSCRIPTION_STATUS_CHANGED="conference.transcriptionStatusChanged",e.USER_JOINED="conference.userJoined",e.USER_LEFT="conference.userLeft",e.USER_ROLE_CHANGED="conference.roleChanged",e.USER_STATUS_CHANGED="conference.statusChanged",e.BOT_TYPE_CHANGED="conference.bot_type_changed",e.LOBBY_USER_JOINED="conference.lobby.userJoined",e.LOBBY_USER_UPDATED="conference.lobby.userUpdated",e.LOBBY_USER_LEFT="conference.lobby.userLeft",e))(bi||{});class _i{constructor(t){Q(this,"translator");this.api=t,gi.subscribe(r=>this.translator=r)}$t(t,r){return this.translator?this.translator(`plugins.${this.meta.id}.${t}`,r):""}}class la extends _i{constructor(){super(...arguments);Q(this,"meta",{id:"xyz.jimmi.moderator",name:"Moderator",version:"1.0.0"});Q(this,"commands");Q(this,"events",{[bi.USER_JOINED]:this.onUserJoined});Q(this,"translations")}onUserJoined(r){const{conference:n}=this.api;n.isModerator()&&n.grantOwner(r)}}var tt,rt,nt;class ca{constructor(t){mt(this,tt,void 0);mt(this,rt,void 0);mt(this,nt,void 0);gt(this,tt,t.videoThumbnails[0].url),gt(this,rt,t.title),gt(this,nt,t.adaptiveFormats.filter(r=>r.encoding==="opus")[0].url)}get thumbnailUrl(){return pt(this,tt)}get title(){return pt(this,rt)}get source(){return pt(this,nt)}}tt=new WeakMap,rt=new WeakMap,nt=new WeakMap;class fa extends _i{constructor(){super(...arguments);Q(this,"meta",{id:"xyz.jimmi.music",name:"Music",version:"0.2.0"});Q(this,"commands",{play:this.play,queue:this.queue,cue:this.queue,track:this.track});Q(this,"events");Q(this,"translations",{en:{description:"A music plugin that allows for audio playback of youtube videos",commands:{play:{usage:"!play - Play a youtube video by url or search term",playingTrack:"Playing {title}"},queue:{usage:`!queue - Show the current queue. +!queue - Add a YouTube video to the queue.`,isEmpty:"The queue is currently empty",content:"Queue content",addedTrack:"Added {title} to queue"},cue:{usage:"!cue - Alias for !queue"},track:{usage:`!track - Display current track +!track skip - Skip the current track +!track ++ or !track -- - Fast forward or rewind. Add more + or - signs to increase duration +!track +10, !track +20, !track -15 - Fast forward or rewind with specific duration in seconds`,currentlyPlaying:"Currently playing {title}"}},general:{invalidArgs:"Invalid arguments. Usage:",noVideo:"Sorry, I cannot find any video at the moment"}}})}chooseRandomBaseUrl(){const r=["https://vid.puffyan.us","https://invidious.tiekoetter.com","https://invidious.flokinet.to","https://inv.bp.projectsegfau.lt","https://yt.artemislena.eu","https://invidious.projectsegfau.lt","https://invidious.lunar.icu"];return r[Math.floor(r.length*Math.random())]}async fetch(r){return await(await fetch(`${this.chooseRandomBaseUrl()}/api/v1/${r}`,{referrerPolicy:"no-referrer"})).json()}async searchYtVideo(r){if(new RegExp("https?://").test(r)){const n=new URLSearchParams(r.split("?")[1]).get("v");if(n)return n;const i=r.split("/");return i[i.length-1].split("?")[0]}else{const n=await this.fetch(`search/?q=${encodeURIComponent(r)}`);if(n.length>0)return n[0].videoId}return null}async getTrack(r){const n=await this.fetch(`videos/${r}`);return n.error?null:new ca(n)}async query(r){const n=r.join(" "),i=await this.searchYtVideo(n);return i?this.getTrack(i):null}async play(r){if(r.params.length===0)r.respond(`:warning: ${this.$t("general.invalidArgs")} +${this.$t("commands.play.usage")}`);else{const n=await this.query(r.params);if(!n){r.respond(`${this.$t("general.noVideo")} :worried:`);return}this.api.currentTrack=n,this.api.conference.sendMessage(`:notes: ${this.$t("commands.play.playingTrack",{values:{title:n.title}})}`)}}async queue(r){if(r.params.length===0)if(this.api.queue.length===0)r.respond(`:notes: ${this.$t("commands.queue.isEmpty")}`);else{let n=0;const i=new RegExp(/(\d)/ig);r.respond(this.api.queue.reduce((s,o)=>`${s} +${(++n).toString().replaceAll(i,":$1:")} ${o.title}`,`:notes: ${this.$t("commands.queue.content")}`))}else{const n=await this.query(r.params);if(!n){r.respond(`${this.$t("general.noVideo")} :worried:`);return}this.api.currentTrack?this.api.addToQueue(n):this.api.currentTrack=n,r.respond(`:notes: ${this.$t("commands.queue.addedTrack",{values:{title:n.title}})}`)}}async track(r){var n;switch(r.params.length){case 0:r.respond(`:notes: ${this.$t("commands.track.currentlyPlaying",{values:{title:((n=this.api.currentTrack)==null?void 0:n.title)??"nothing"}})}`);break;case 1:const i=r.params[0];if(i==="skip"){this.api.currentTrack=void 0;return}let s=0;const o=a=>2*Math.E^a-1;/^\+\++$/.test(i)?s=o(i.length):/^--+$/.test(i)?s=-o(i.length):s=parseInt(i,10),s?this.api.forward(s):r.respond(`:warning: ${this.$t("general.invalidArgs")} +${this.$t("commands.track.usage")}`);break;default:r.respond(`:warning: ${this.$t("general.invalidArgs")} +${this.$t("commands.track.usage")}`)}}}const Er={default:{jitsiDisplayName:"DJ Jim",initialVolume:20},repoUrl:"https://github.com/p-fruck/Jimmi",url:"https://app.jimmi.party",logo:"/jimmi.svg",plugins:[fa,la]};function yi(e,t){if(e.length===0)return t;let r={};return r[e.pop()]=t,yi(e,r)}Er.plugins.forEach(e=>{const t=new e({});t.translations&&Object.keys(t.translations).forEach(r=>{const n=yi(t.meta.id.split("."),t.translations[r]);hi(r,{plugins:n})})});To("en",()=>Rn(()=>import("./en-1af22869.js"),[]));function ha(){Io({fallbackLocale:"en",initialLocale:Mo()})}var wn=Object.prototype.hasOwnProperty;function xr(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&xr(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(wn.call(e,r)&&++n&&!wn.call(t,r)||!(r in t)||!xr(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function da(e){return new Promise(t=>{e.subscribe(t)()})}function pa(e,t,r){e.update(n=>(vi(n,t,r),n))}function ma(e){return JSON.parse(JSON.stringify(e))}function $r(e){return e==null}function Ei(e){return $r(e)||Object.keys(e).length<=0}function xi(e){let t=[];for(const[,r]of Object.entries(e)){const n=typeof r=="object"?xi(r):[r];t=[...t,...n]}return t}function vr(e,t,r={}){for(const n in t)switch(!0){case(t[n].type==="object"&&!Ei(t[n].fields)):{r[n]=vr(e[n],t[n].fields,{...r[n]});break}case t[n].type==="array":{const i=e&&e[n]?e[n]:[];r[n]=i.map(s=>{const o=vr(s,t[n].innerType.fields,{...r[n]});return Object.keys(o).length>0?o:""});break}default:r[n]=""}return r}const ga=xr;function wr(e,t){if(Array.isArray(e))return e.map(n=>wr(n,t));const r={};for(const n in e)r[n]=typeof e[n]=="object"&&!$r(e[n])?wr(e[n],t):t;return r}function vi(e,t,r){if(new Object(e)!==e)return e;Array.isArray(t)||(t=t.toString().match(/[^.[\]]+/g)||[]);const n=t.slice(0,-1).reduce((i,s,o)=>new Object(i[s])===i[s]?i[s]:i[s]=Math.trunc(Math.abs(t[o+1]))===+t[o+1]?[]:{},e);return n[t[t.length-1]]=r,e}const $={assignDeep:wr,cloneDeep:ma,deepEqual:ga,getErrorsFromSchema:vr,getValues:xi,isEmpty:Ei,isNullish:$r,set:vi,subscribeOnce:da,update:pa},Tn="",ba=!0;function _a(e){return e.getAttribute&&e.getAttribute("type")==="checkbox"}function ya(e){return e.getAttribute&&e.getAttribute("type")==="file"}function Ea(e){return ya(e)?e.files:_a(e)?e.checked:e.value}const xa=e=>{let t=e.initialValues||{};const r=e.validationSchema,n=e.validate,i=e.onSubmit,s={values:()=>$.cloneDeep(t),errors:()=>r?$.getErrorsFromSchema(t,r.fields):$.assignDeep(t,Tn),touched:()=>$.assignDeep(t,!ba)},o=ae(s.values()),a=ae(s.errors()),u=ae(s.touched()),l=ae(!1),c=ae(!1),f=K(a,g=>$.getValues(g).every(T=>T===Tn)),h=K(o,g=>{const w=$.assignDeep(g,!1);for(let T in g)w[T]=!$.deepEqual(g[T],t[T]);return w}),b=K(h,g=>$.getValues(g).includes(!0));function p(g){return $.subscribeOnce(o).then(w=>_(g,w[g]))}function _(g,w){return E(g,!0),r?(c.set(!0),r.validateAt(g,Mi(o)).then(()=>$.update(a,g,"")).catch(T=>$.update(a,g,T.message)).finally(()=>{c.set(!1)})):n?(c.set(!0),Promise.resolve().then(()=>n({[g]:w})).then(T=>$.update(a,g,$.isNullish(T)?"":T[g])).finally(()=>{c.set(!1)})):Promise.resolve()}function m(g,w){return d(g,w),_(g,w)}function C(g){const w=g.target,T=w.name||w.id,I=Ea(w);return m(T,I)}function H(g){return g&&g.preventDefault&&g.preventDefault(),l.set(!0),$.subscribeOnce(o).then(w=>typeof n=="function"?(c.set(!0),Promise.resolve().then(()=>n(w)).then(T=>{if($.isNullish(T)||$.getValues(T).length===0)return x(w);a.set(T),l.set(!1)}).finally(()=>c.set(!1))):r?(c.set(!0),r.validate(w,{abortEarly:!1}).then(()=>x(w)).catch(T=>{if(T&&T.inner){const I=s.errors();T.inner.map(ie=>$.set(I,ie.path,ie.message)),a.set(I)}l.set(!1)}).finally(()=>c.set(!1))):x(w))}function D(){o.set(s.values()),a.set(s.errors()),u.set(s.touched())}function x(g){return Promise.resolve().then(()=>a.set(s.errors())).then(()=>i(g,o,a)).finally(()=>l.set(!1))}function d(g,w){$.update(o,g,w)}function E(g,w){$.update(u,g,w)}function R(g){t=g,D()}return{form:o,errors:a,touched:u,modified:h,isValid:f,isSubmitting:l,isValidating:c,isModified:b,handleChange:C,handleSubmit:H,handleReset:D,updateField:d,updateValidateField:m,updateTouched:E,validateField:p,updateInitialValues:R,state:K([o,a,u,h,f,c,l,b],([g,w,T,I,ie,k,se,le])=>({form:g,errors:w,touched:T,modified:I,isValid:ie,isSubmitting:se,isValidating:k,isModified:le}))}};function we(e){this._maxSize=e,this.clear()}we.prototype.clear=function(){this._size=0,this._values=Object.create(null)};we.prototype.get=function(e){return this._values[e]};we.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var va=/[^.^\]^[]+|(?=\[\]|\.\.)/g,wi=/^\d+$/,wa=/^\d/,Ta=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Sa=/^\s*(['"]?)(.*?)(\1)\s*$/,Lr=512,Sn=new we(Lr),On=new we(Lr),An=new we(Lr),Ee={Cache:we,split:Tr,normalizePath:ur,setter:function(e){var t=ur(e);return On.get(e)||On.set(e,function(n,i){for(var s=0,o=t.length,a=n;se.match(Ha)||[],qt=e=>e[0].toUpperCase()+e.slice(1),Mr=(e,t)=>Vt(e).join(t).toLowerCase(),Ti=e=>Vt(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),Ia=e=>qt(Ti(e)),Ca=e=>Mr(e,"_"),Da=e=>Mr(e,"-"),Ra=e=>qt(Mr(e," ")),Ba=e=>Vt(e).map(qt).join(" ");var lr={words:Vt,upperFirst:qt,camelCase:Ti,pascalCase:Ia,snakeCase:Ca,kebabCase:Da,sentenceCase:Ra,titleCase:Ba},Ur={exports:{}};Ur.exports=function(e){return Si(Fa(e),e)};Ur.exports.array=Si;function Si(e,t){var r=e.length,n=new Array(r),i={},s=r,o=$a(t),a=La(e);for(t.forEach(function(l){if(!a.has(l[0])||!a.has(l[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)i[s]||u(e[s],s,new Set);return n;function u(l,c,f){if(f.has(l)){var h;try{h=", node was:"+JSON.stringify(l)}catch{h=""}throw new Error("Cyclic dependency"+h)}if(!a.has(l))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(l));if(!i[c]){i[c]=!0;var b=o.get(l)||new Set;if(b=Array.from(b),c=b.length){f.add(l);do{var p=b[--c];u(p,a.get(p),f)}while(c);f.delete(l)}n[--r]=l}}}function Fa(e){for(var t=new Set,r=0,n=e.length;r"",qa=/^Symbol\((.*)\)(.*)$/;function za(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Nn(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return za(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return Va.call(e).replace(qa,"Symbol($1)");const n=Ua.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+ja.call(e)+"]":n==="RegExp"?Ga.call(e):null}function pe(e,t){let r=Nn(e,t);return r!==null?r:JSON.stringify(e,function(n,i){let s=Nn(this[n],t);return s!==null?s:i},2)}function Oi(e){return e==null?[]:[].concat(e)}let Ai,Xa=/\$\{\s*(\w+)\s*\}/g;Ai=Symbol.toStringTag;class z extends Error{static formatError(t,r){const n=r.label||r.path||"this";return n!==r.path&&(r=Object.assign({},r,{path:n})),typeof t=="string"?t.replace(Xa,(i,s)=>pe(r[s])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,i,s){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[Ai]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=i,this.errors=[],this.inner=[],Oi(t).forEach(o=>{if(z.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!s&&Error.captureStackTrace&&Error.captureStackTrace(this,z)}}let oe={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const i=n!=null&&n!==r?` (cast from the value \`${pe(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${pe(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${pe(r,!0)}\``+i}},te={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Za={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Sr={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Wa={isValue:"${path} field must be ${value}"},Or={noUnknown:"${path} field has unspecified keys: ${unknown}"},Ya={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Qa={notType:e=>{const{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.lengthi)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${pe(r,!0)}\``}return z.formatError(oe.notType,e)}};Object.assign(Object.create(null),{mixed:oe,string:te,number:Za,date:Sr,object:Or,array:Ya,boolean:Wa,tuple:Qa});const jr=e=>e&&e.__isYupSchema__;class Ft{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:s}=r,o=typeof n=="function"?n:(...a)=>a.every(u=>u===n);return new Ft(t,(a,u)=>{var l;let c=o(...a)?i:s;return(l=c==null?void 0:c(u))!=null?l:u})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(s=>s.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),i=this.fn(n,t,r);if(i===void 0||i===t)return t;if(!jr(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}}const yt={context:"$",value:"."};class Te{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===yt.context,this.isValue=this.key[0]===yt.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?yt.context:this.isValue?yt.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&Ee.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let i=this.isContext?n:this.isValue?t:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Te.prototype.__isYupRef=!0;const ye=e=>e==null;function He(e){function t({value:r,path:n="",options:i,originalValue:s,schema:o},a,u){const{name:l,test:c,params:f,message:h,skipAbsent:b}=e;let{parent:p,context:_,abortEarly:m=o.spec.abortEarly,disableStackTrace:C=o.spec.disableStackTrace}=i;function H(I){return Te.isRef(I)?I.getValue(r,p,_):I}function D(I={}){var ie;const k=Object.assign({value:r,originalValue:s,label:o.spec.label,path:I.path||n,spec:o.spec},f,I.params);for(const le of Object.keys(k))k[le]=H(k[le]);const se=new z(z.formatError(I.message||h,k),r,k.path,I.type||l,(ie=I.disableStackTrace)!=null?ie:C);return se.params=k,se}const x=m?a:u;let d={path:n,parent:p,type:l,from:i.from,createError:D,resolve:H,options:i,originalValue:s,schema:o};const E=I=>{z.isError(I)?x(I):I?u(null):x(D())},R=I=>{z.isError(I)?x(I):a(I)};if(b&&ye(r))return E(!0);let w;try{var T;if(w=c.call(d,r,d),typeof((T=w)==null?void 0:T.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${d.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(w).then(E,R)}}catch(I){R(I);return}E(w)}return t.OPTIONS=e,t}function Ka(e,t,r,n=r){let i,s,o;return t?(Ee.forEach(t,(a,u,l)=>{let c=u?a.slice(1,a.length-1):a;e=e.resolve({context:n,parent:i,value:r});let f=e.type==="tuple",h=l?parseInt(c,10):0;if(e.innerType||f){if(f&&!l)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(r&&h>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[h],e=f?e.spec.types[h]:e.innerType}if(!l){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=r,r=r&&r[c],e=e.fields[c]}s=c,o=u?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:s}):{parent:i,parentPath:t,schema:e}}class $t extends Set{describe(){const t=[];for(const r of this.values())t.push(Te.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new $t(this.values())}merge(t,r){const n=this.clone();return t.forEach(i=>n.add(i)),r.forEach(i=>n.delete(i)),n}}function Ce(e,t=new Map){if(jr(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n{this.typeError(oe.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Ce(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const i=Object.assign({},r.spec,n.spec);return n.spec=i,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(s=>{t.tests.forEach(o=>{s.test(o.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,s)=>s.resolve(i,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,i,s;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(s=t.disableStackTrace)!=null?s:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),i=r.assert==="ignore-optionality",s=n._cast(t,r);if(r.assert!==!1&&!n.isType(s)){if(i&&ye(s))return s;let o=pe(t),a=pe(s);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". + +attempted value: ${o} +`+(a!==o?`result of cast: ${a}`:""))}return s}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,s)=>s.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,i){let{path:s,originalValue:o=t,strict:a=this.spec.strict}=r,u=t;a||(u=this._cast(u,Object.assign({assert:!1},r)));let l=[];for(let c of Object.values(this.internalTests))c&&l.push(c);this.runTests({path:s,value:u,originalValue:o,options:r,tests:l},n,c=>{if(c.length)return i(c,u);this.runTests({path:s,value:u,originalValue:o,options:r,tests:this.tests},n,i)})}runTests(t,r,n){let i=!1,{tests:s,value:o,originalValue:a,path:u,options:l}=t,c=_=>{i||(i=!0,r(_,o))},f=_=>{i||(i=!0,n(_,o))},h=s.length,b=[];if(!h)return f([]);let p={value:o,originalValue:a,path:u,options:l,schema:this};for(let _=0;_this.resolve(c)._validate(l,c,h,b)}validate(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),s=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((o,a)=>i._validate(t,r,(u,l)=>{z.isError(u)&&(u.value=l),a(u)},(u,l)=>{u.length?a(new z(u,l,void 0,void 0,s)):o(l)}))}validateSync(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),s,o=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return i._validate(t,Object.assign({},r,{sync:!0}),(a,u)=>{throw z.isError(a)&&(a.value=u),a},(a,u)=>{if(a.length)throw new z(a,t,void 0,void 0,o);s=u}),s}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(z.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(z.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Ce(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=He({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=He({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=oe.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=oe.notNull){return this.nullability(!1,t)}required(t=oe.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=oe.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=He(r),s=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(s||o.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),i=Oi(t).map(s=>new Te(s));return i.forEach(s=>{s.isSibling&&n.deps.push(s.key)}),n.conditions.push(typeof r=="function"?new Ft(i,r):Ft.fromOptions(i,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=He({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=oe.oneOf){let n=this.clone();return t.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=He({message:r,name:"oneOf",skipAbsent:!0,test(i){let s=this.schema._whitelist,o=s.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:o}})}}),n}notOneOf(t,r=oe.notOneOf){let n=this.clone();return t.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=He({message:r,name:"notOneOf",test(i){let s=this.schema._blacklist,o=s.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(s).join(", "),resolved:o}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:i,optional:s,nullable:o}=r.spec;return{meta:i,label:n,optional:s,nullable:o,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,l,c)=>c.findIndex(f=>f.name===u.name)===l)}}}ue.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])ue.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:s,schema:o}=Ka(this,t,r,n.context);return o[e](i&&i[s],Object.assign({},n,{parent:i,path:t}))};for(const e of["equals","is"])ue.prototype[e]=ue.prototype.oneOf;for(const e of["not","nope"])ue.prototype[e]=ue.prototype.notOneOf;let Ja=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,eu=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,tu=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ru=e=>ye(e)||e===e.trim(),nu={}.toString();function Tt(){return new Ni}class Ni extends ue{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===nu?t:i})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||oe.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=te.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=te.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=te.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,i,s;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:s}=r:i=r),this.test({name:s||"matches",message:i||te.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&n||o.search(t)!==-1})}email(t=te.email){return this.matches(Ja,{name:"email",message:t,excludeEmptyString:!0})}url(t=te.url){return this.matches(eu,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=te.uuid){return this.matches(tu,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=te.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:ru})}lowercase(t=te.lowercase){return this.transform(r=>ye(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ye(r)||r===r.toLowerCase()})}uppercase(t=te.uppercase){return this.transform(r=>ye(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ye(r)||r===r.toUpperCase()})}}Tt.prototype=Ni.prototype;const iu=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ce(e,t=0){return Number(e)||t}function su(e){const t=iu.exec(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;const r={year:ce(t[1]),month:ce(t[2],1)-1,day:ce(t[3],1),hour:ce(t[4]),minute:ce(t[5]),second:ce(t[6]),millisecond:t[7]?ce(t[7].substring(0,3)):0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:ce(t[10]),minuteOffset:ce(t[11])};if(r.z===void 0&&r.plusMinus===void 0)return new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond).valueOf();let n=0;return r.z!=="Z"&&r.plusMinus!==void 0&&(n=r.hourOffset*60+r.minuteOffset,r.plusMinus==="+"&&(n=0-n)),Date.UTC(r.year,r.month,r.day,r.hour,r.minute+n,r.second,r.millisecond)}let ou=new Date(""),au=e=>Object.prototype.toString.call(e)==="[object Date]";class zt extends ue{constructor(){super({type:"date",check(t){return au(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=su(t),isNaN(t)?zt.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(Te.isRef(t))n=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(t,r=Sr.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(t,r=Sr.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}}zt.INVALID_DATE=ou;zt.prototype;function uu(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([o,a])=>`${o}-${a}`));function s(o,a){let u=Ee.split(o)[0];n.add(u),i.has(`${a}-${u}`)||r.push([a,u])}for(const o of Object.keys(e)){let a=e[o];n.add(o),Te.isRef(a)&&a.isSibling?s(a.path,o):jr(a)&&"deps"in a&&a.deps.forEach(u=>s(u,o))}return Ma.array(Array.from(n),r).reverse()}function Pn(e,t){let r=1/0;return e.some((n,i)=>{var s;if((s=t.path)!=null&&s.includes(n))return r=i,!0}),r}function Pi(e){return(t,r)=>Pn(e,t)-Pn(e,r)}const lu=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function St(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=St(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=St(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(St)}):"optional"in e?e.optional():e}const cu=(e,t)=>{const r=[...Ee.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),i=Ee.getter(Ee.join(r),!0)(e);return!!(i&&n in i)};let Hn=e=>Object.prototype.toString.call(e)==="[object Object]";function fu(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const hu=Pi([]);function Hi(e){return new Ii(e)}class Ii extends ue{constructor(t){super({type:"object",check(r){return Hn(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=hu,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let i=super._cast(t,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let s=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(i).filter(f=>!this._nodes.includes(f))),u={},l=Object.assign({},r,{parent:u,__validating:r.__validating||!1}),c=!1;for(const f of a){let h=s[f],b=f in i;if(h){let p,_=i[f];l.path=(r.path?`${r.path}.`:"")+f,h=h.resolve({value:_,context:r.context,parent:u});let m=h instanceof ue?h.spec:void 0,C=m==null?void 0:m.strict;if(m!=null&&m.strip){c=c||f in i;continue}p=!r.__validating||!C?h.cast(i[f],l):i[f],p!==void 0&&(u[f]=p)}else b&&!o&&(u[f]=i[f]);(b!==f in u||u[f]!==i[f])&&(c=!0)}return c?u:i}_validate(t,r={},n,i){let{from:s=[],originalValue:o=t,recursive:a=this.spec.recursive}=r;r.from=[{schema:this,value:o},...s],r.__validating=!0,r.originalValue=o,super._validate(t,r,n,(u,l)=>{if(!a||!Hn(l)){i(u,l);return}o=o||l;let c=[];for(let f of this._nodes){let h=this.fields[f];!h||Te.isRef(h)||c.push(h.asNestedTest({options:r,key:f,parent:l,parentPath:r.path,originalParent:o}))}this.runTests({tests:c,value:l,originalValue:o,options:r},n,f=>{i(f.sort(this._sortErrors).concat(u),l)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[i,s]of Object.entries(this.fields)){const o=n[i];n[i]=o===void 0?s:o}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var i;const s=this.fields[n];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=s&&"getDefault"in s?s.getDefault(o):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=uu(t,r),n._sortErrors=Pi(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),i)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return St(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,i])=>t.includes(n)&&t.includes(i)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let i=Ee.getter(t,!0);return this.transform(s=>{if(!s)return s;let o=s;return cu(s,t)&&(o=Object.assign({},s),n||delete o[t],o[r]=i(s)),o})}json(){return this.transform(lu)}noUnknown(t=!0,r=Or.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const s=fu(this.schema,i);return!t||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=Or.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const i of Object.keys(r))n[t(i)]=r[i];return n})}camelCase(){return this.transformKeys(lr.camelCase)}snakeCase(){return this.transformKeys(lr.snakeCase)}constantCase(){return this.transformKeys(t=>lr.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[s,o]of Object.entries(r.fields)){var i;let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[s]})),n.fields[s]=o.describe(a)}return n}}Hi.prototype=Ii.prototype;function du(e){let t,r,n,i,s,o,a,u,l,c,f,h;const b=e[3].default,p=Ui(b,e,e[2],null);return{c(){t=N("label"),r=N("div"),n=N("input"),i=L(),s=N("div"),o=L(),a=N("div"),u=L(),l=N("div"),p&&p.c(),v(n,"id","toogleButton"),v(n,"type","checkbox"),v(n,"class","hidden svelte-4l3tce"),v(s,"class","toggle-path bg-gray-200 w-9 h-5 rounded-full shadow-inner svelte-4l3tce"),v(a,"class","toggle-circle absolute w-3.5 h-3.5 bg-white rounded-full shadow inset-y-0 left-0 svelte-4l3tce"),v(r,"class","relative"),v(l,"class","ml-3 text-gray-700 font-medium"),v(t,"class","flex items-center cursor-pointer")},m(_,m){ne(_,t,m),y(t,r),y(r,n),n.checked=e[0],y(r,i),y(r,s),y(r,o),y(r,a),y(t,u),y(t,l),p&&p.m(l,null),c=!0,f||(h=[re(n,"click",function(){it(e[1])&&e[1].apply(this,arguments)}),re(n,"change",e[4])],f=!0)},p(_,[m]){e=_,m&1&&(n.checked=e[0]),p&&p.p&&(!c||m&4)&&Gi(p,b,e,e[2],c?ji(b,e[2],m,null):Vi(e[2]),null)},i(_){c||(X(p,_),c=!0)},o(_){J(p,_),c=!1},d(_){_&&W(t),p&&p.d(_),f=!1,he(h)}}}function pu(e,t,r){let{$$slots:n={},$$scope:i}=t,{checked:s=!1}=t,{onClick:o=()=>{}}=t;function a(){s=this.checked,r(0,s)}return e.$$set=u=>{"checked"in u&&r(0,s=u.checked),"onClick"in u&&r(1,o=u.onClick),"$$scope"in u&&r(2,i=u.$$scope)},[s,o,i,n,a]}class mu extends Me{constructor(t){super(),ke(this,t,pu,du,ve,{checked:0,onClick:1})}}function gu(e){let t=e[4]("routes.home.toggleBetaMode")+"",r;return{c(){r=j(t)},m(n,i){ne(n,r,i)},p(n,i){i&16&&t!==(t=n[4]("routes.home.toggleBetaMode")+"")&&Z(r,t)},d(n){n&&W(r)}}}function In(e){let t,r=e[4]("routes.home.domainError")+"",n;return{c(){t=N("p"),n=j(r),v(t,"class","text-xs text-red-500 mt-3")},m(i,s){ne(i,t,s),y(t,n)},p(i,s){s&16&&r!==(r=i[4]("routes.home.domainError")+"")&&Z(n,r)},d(i){i&&W(t)}}}function Cn(e){let t,r=e[4]("routes.home.roomError")+"",n;return{c(){t=N("p"),n=j(r),v(t,"class","text-xs text-red-500 mt-3")},m(i,s){ne(i,t,s),y(t,n)},p(i,s){s&16&&r!==(r=i[4]("routes.home.roomError")+"")&&Z(n,r)},d(i){i&&W(t)}}}function bu(e){let t,r,n,i,s=e[4]("routes.home.mainContent.heading")+"",o,a,u,l=e[4]("routes.home.mainContent.description")+"",c,f,h,b,p,_,m,C,H=e[4]("routes.home.joinRoomHeading")+"",D,x,d,E,R=e[4]("routes.home.domainLabel")+"",g,w,T,I,ie,k,se,le=e[4]("routes.home.roomLabel")+"",Xt,Gr,Y,Vr,qr,ot,_e,at,ut=e[4]("general.advancedConfiguration")+"",Zt,zr,Ve,lt=e[4]("general.password")+"",Wt,Xr,ee,Zr,qe,ct=e[4]("routes.home.joinButtonText")+"",Yt,Wr,Se,ft=e[4]("routes.home.joinRoomFootnote")+"",Qt,Yr,Oe,Kt,ht,U,Jt,Qr;function Ci(S){e[11](S)}function Di(S){e[12](S)}let er={$$slots:{default:[gu]},$$scope:{ctx:e}};e[1]!==void 0&&(er.onClick=e[1]),e[3]!==void 0&&(er.checked=e[3]),h=new mu({props:er}),Pt.push(()=>on(h,"onClick",Ci)),Pt.push(()=>on(h,"checked",Di));let V=e[5].domain&&In(e),q=e[5].room&&Cn(e);return{c(){t=N("section"),r=N("div"),n=N("div"),i=N("h1"),o=j(s),a=L(),u=N("p"),c=j(l),f=L(),xe(h.$$.fragment),_=L(),m=N("form"),C=N("h2"),D=j(H),x=L(),d=N("div"),E=N("label"),g=j(R),w=L(),T=N("input"),I=L(),V&&V.c(),ie=L(),k=N("div"),se=N("label"),Xt=j(le),Gr=L(),Y=N("input"),Vr=L(),q&&q.c(),qr=L(),ot=N("div"),_e=N("details"),at=N("summary"),Zt=j(ut),zr=L(),Ve=N("label"),Wt=j(lt),Xr=L(),ee=N("input"),Zr=L(),qe=N("button"),Yt=j(ct),Wr=L(),Se=N("p"),Qt=j(ft),Yr=L(),Oe=N("a"),Kt=j(e[2]),v(i,"class","title-font font-medium text-3xl text-gray-900"),v(u,"class","leading-relaxed mt-4 mb-4"),v(n,"class","lg:w-3/5 md:w-1/2 md:pr-16 lg:pr-0 pr-0"),v(C,"class","text-gray-900 text-lg font-medium title-font mb-5"),v(E,"for","domain"),v(E,"class","leading-7 text-sm text-gray-600"),v(T,"type","text"),v(T,"id","domain"),v(T,"name","domain"),v(T,"placeholder","meet.jit.si"),v(T,"class","w-full bg-white rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"),v(d,"class","relative mb-4"),v(se,"for","room"),v(se,"class","leading-7 text-sm text-gray-600"),v(Y,"type","text"),v(Y,"id","room"),v(Y,"name","room"),v(Y,"class","w-full bg-white rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"),v(k,"class","relative mb-4"),v(at,"class","cursor-pointer"),v(Ve,"for","domain"),v(Ve,"class","leading-7 text-sm text-gray-600"),v(ee,"type","password"),v(ee,"id","password"),v(ee,"name","password"),v(ee,"class","w-full bg-white rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"),v(ot,"class","relative mb-4"),v(qe,"class","disabled:opacity-50 text-white bg-indigo-500 border-0 py-2 px-8 focus:outline-none hover:bg-indigo-600 rounded text-lg"),v(qe,"type","submit"),v(Oe,"class","text-indigo-500 break-words"),v(Oe,"href",ht=`https://${e[2]}`),v(Se,"class","text-xs text-gray-500 mt-3"),v(m,"class","lg:w-2/6 md:w-1/2 bg-gray-100 rounded-lg p-8 flex flex-col md:ml-auto w-full mt-10 md:mt-0"),v(r,"class","container px-5 py-24 mx-auto flex flex-wrap items-center"),v(t,"class","text-gray-600 body-font")},m(S,F){ne(S,t,F),y(t,r),y(r,n),y(n,i),y(i,o),y(n,a),y(n,u),y(u,c),y(n,f),me(h,n,null),y(r,_),y(r,m),y(m,C),y(C,D),y(m,x),y(m,d),y(d,E),y(E,g),y(d,w),y(d,T),Ae(T,e[0].domain),y(d,I),V&&V.m(d,null),y(m,ie),y(m,k),y(k,se),y(se,Xt),y(k,Gr),y(k,Y),Ae(Y,e[0].room),y(k,Vr),q&&q.m(k,null),y(m,qr),y(m,ot),y(ot,_e),y(_e,at),y(at,Zt),y(_e,zr),y(_e,Ve),y(Ve,Wt),y(_e,Xr),y(_e,ee),Ae(ee,e[0].password),y(m,Zr),y(m,qe),y(qe,Yt),y(m,Wr),y(m,Se),y(Se,Qt),y(Se,Yr),y(Se,Oe),y(Oe,Kt),U=!0,Jt||(Qr=[re(T,"beforeinput",e[10]),re(T,"change",e[8]),re(T,"input",e[13]),re(Y,"beforeinput",e[10]),re(Y,"change",e[8]),re(Y,"input",e[14]),re(ee,"change",e[8]),re(ee,"input",e[15]),re(m,"submit",e[9])],Jt=!0)},p(S,[F]){(!U||F&16)&&s!==(s=S[4]("routes.home.mainContent.heading")+"")&&Z(o,s),(!U||F&16)&&l!==(l=S[4]("routes.home.mainContent.description")+"")&&Z(c,l);const dt={};F&262160&&(dt.$$scope={dirty:F,ctx:S}),!b&&F&2&&(b=!0,dt.onClick=S[1],sn(()=>b=!1)),!p&&F&8&&(p=!0,dt.checked=S[3],sn(()=>p=!1)),h.$set(dt),(!U||F&16)&&H!==(H=S[4]("routes.home.joinRoomHeading")+"")&&Z(D,H),(!U||F&16)&&R!==(R=S[4]("routes.home.domainLabel")+"")&&Z(g,R),F&1&&T.value!==S[0].domain&&Ae(T,S[0].domain),S[5].domain?V?V.p(S,F):(V=In(S),V.c(),V.m(d,null)):V&&(V.d(1),V=null),(!U||F&16)&&le!==(le=S[4]("routes.home.roomLabel")+"")&&Z(Xt,le),F&1&&Y.value!==S[0].room&&Ae(Y,S[0].room),S[5].room?q?q.p(S,F):(q=Cn(S),q.c(),q.m(k,null)):q&&(q.d(1),q=null),(!U||F&16)&&ut!==(ut=S[4]("general.advancedConfiguration")+"")&&Z(Zt,ut),(!U||F&16)&<!==(lt=S[4]("general.password")+"")&&Z(Wt,lt),F&1&&ee.value!==S[0].password&&Ae(ee,S[0].password),(!U||F&16)&&ct!==(ct=S[4]("routes.home.joinButtonText")+"")&&Z(Yt,ct),(!U||F&16)&&ft!==(ft=S[4]("routes.home.joinRoomFootnote")+"")&&Z(Qt,ft),(!U||F&4)&&Z(Kt,S[2]),(!U||F&4&&ht!==(ht=`https://${S[2]}`))&&v(Oe,"href",ht)},i(S){U||(X(h.$$.fragment,S),U=!0)},o(S){J(h.$$.fragment,S),U=!1},d(S){S&&W(t),ge(h),V&&V.d(),q&&q.d(),Jt=!1,he(Qr)}}}function _u(e,t,r){let n,i,s,o,a;Et(e,gi,d=>r(4,o=d));let u=()=>{window.location.href=n?"/":"/beta"};const l=new RegExp(/^$|^((?:(?:(?:\w[\.\-\+]?)*)\w)+)((?:(?:(?:\w[\.\-\+]?){0,62})\w)+)\.(\w{2,6})$/),c=new RegExp(/^[^?&:"'%#]+$/),{form:f,errors:h,handleChange:b,handleSubmit:p}=xa({initialValues:{domain:"",room:"",password:""},validationSchema:Hi().shape({domain:Tt().trim().matches(l),room:Tt().trim().min(1).matches(c).required(),password:Tt().optional()}),onSubmit:d=>{const E=d.password?`?password=${d.password}`:"";sa(`/bot/${i}${E}`)}});Et(e,f,d=>r(0,s=d)),Et(e,h,d=>r(5,a=d));function _(d){if(d instanceof InputEvent&&d.data&&d.inputType==="insertFromPaste"){const{data:E}=d,R=new RegExp("^http(s?)://(.*)/(.*)$");if(!R.test(E))return;const g=R.exec(E);if(!(g&&g.length>=4))return;const w=g[2],T=g[3];l.test(w)&&c.test(T)&&(d.preventDefault(),tn(f,s.domain=w,s),tn(f,s.room=T,s))}}function m(d){u=d,r(1,u)}function C(d){n=d,r(3,n)}function H(){s.domain=this.value,f.set(s)}function D(){s.room=this.value,f.set(s)}function x(){s.password=this.value,f.set(s)}return e.$$.update=()=>{e.$$.dirty&1&&r(2,i=`${s.domain||"meet.jit.si"}/${s.room}`)},r(3,n=window.location.href.split("/")[3].startsWith("beta")),[s,u,i,n,o,a,f,h,b,p,_,m,C,H,D,x]}class yu extends Me{constructor(t){super(),ke(this,t,_u,bu,ve,{})}}function Eu(e){let t;return{c(){t=N("p"),t.textContent="404 - Not found"},m(r,n){ne(r,t,n)},p:M,i:M,o:M,d(r){r&&W(t)}}}class xu extends Me{constructor(t){super(),ke(this,t,null,Eu,ve,{})}}function vu(e){let t;return{c(){t=N("footer"),t.innerHTML=`
JIMMI

Still under heavy development

Fork me on + GitHub

`,v(t,"class","text-gray-600 body-font absolute bottom-0 w-screen")},m(r,n){ne(r,t,n)},p:M,i:M,o:M,d(r){r&&W(t)}}}class wu extends Me{constructor(t){super(),ke(this,t,null,vu,ve,{})}}function Dn(e){let t,r;return t=new ua({props:{routes:e[1]}}),{c(){xe(t.$$.fragment)},m(n,i){me(t,n,i),r=!0},p:M,i(n){r||(X(t.$$.fragment,n),r=!0)},o(n){J(t.$$.fragment,n),r=!1},d(n){ge(t,n)}}}function Tu(e){let t,r,n,i,s=!e[0]&&Dn(e);return n=new wu({}),{c(){t=N("main"),s&&s.c(),r=L(),xe(n.$$.fragment),v(t,"class","h-screen")},m(o,a){ne(o,t,a),s&&s.m(t,null),y(t,r),me(n,t,null),i=!0},p(o,[a]){o[0]?s&&(kt(),J(s,1,1,()=>{s=null}),Mt()):s?(s.p(o,a),a&1&&X(s,1)):(s=Dn(o),s.c(),X(s,1),s.m(t,r))},i(o){i||(X(s),X(n.$$.fragment,o),i=!0)},o(o){J(s),J(n.$$.fragment,o),i=!1},d(o){o&&W(t),s&&s.d(),ge(n)}}}function Su(e,t,r){let n;Et(e,wt,s=>r(0,n=s)),ha();const i={"/":yu,"/bot/:instance/:room":ea({asyncComponent:()=>Rn(()=>import("./Bot-0231bad4.js"),["assets/Bot-0231bad4.js","assets/Bot-b35bdf2e.css"])}),"*":xu};return[n,i]}class Ou extends Me{constructor(t){super(),ke(this,t,Su,Tu,ve,{})}}new Ou({target:document.getElementById("app")});export{gi as $,M as A,xe as B,me as C,X as D,kt as E,Mt as F,J as G,ge as H,Et as I,rs as J,ts as K,sa as L,Ui as M,Gi as N,Vi as O,ji as P,on as Q,sn as R,Me as S,Fu as T,bi as U,ke as a,L as b,v as c,Nu as d,N as e,Ht as f,Bu as g,Cu as h,Li as i,ne as j,y as k,Ae as l,re as m,Z as n,Ru as o,W as p,Pu as q,he as r,ve as s,j as t,Du as u,Pr as v,Pt as w,Iu as x,Hu as y,Er as z}; diff --git a/index.html b/index.html index 9cf1630..1a72e1e 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,8 @@ JIMMI - - + +