@weavy/uikit-react 28.0.0 → 28.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/build/weavy.cjs
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}`,{label:"class",detail:"definition",type:"keyword"}),pi('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),pi('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Eq=BT.concat([pi("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),pi("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),pi("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),L4=new a6,FT=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function cc(n){return(t,e)=>{let i=t.node.getChild("VariableDefinition");return i&&e(i,n),!0}}h(cc,"lr$1");y(cc,"defID");const _q=["FunctionDeclaration"],zq={FunctionDeclaration:cc("function"),ClassDeclaration:cc("class"),ClassExpression:y(()=>!0,"ClassExpression"),EnumDeclaration:cc("constant"),TypeAliasDeclaration:cc("type"),NamespaceDeclaration:cc("namespace"),VariableDefinition(n,t){n.matchContext(_q)||t(n,"variable")},TypeDefinition(n,t){t(n,"type")},__proto__:null};function hS(n,t){let e=L4.get(t);if(e)return e;let i=[],s=!0;function r(a,o){let l=n.sliceString(a.from,a.to);i.push({label:l,type:o})}return h(r,"s"),y(r,"def"),t.cursor(Yt.IncludeAnonymous).iterate(a=>{if(s)s=!1;else if(a.name){let o=zq[a.name];if(o&&o(a,r)||FT.has(a.name))return!1}else if(a.to-a.from>8192){for(let o of hS(n,a.node))i.push(o);return!1}}),L4.set(t,i),i}h(hS,"om$1");y(hS,"getScope");const vv=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,dS=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function XT(n){let t=de(n.state).resolveInner(n.pos,-1);if(dS.indexOf(t.name)>-1)return null;let e=t.name=="VariableName"||t.to-t.from<20&&vv.test(n.state.sliceDoc(t.from,t.to));if(!e&&!n.explicit)return null;let i=[];for(let s=t;s;s=s.parent)FT.has(s.name)&&(i=i.concat(hS(n.state.doc,s)));return{options:i,from:e?t.from:n.pos,validFor:vv}}h(XT,"lm$1");y(XT,"localCompletionSource");function p1(n,t,e){var i;let s=[];for(;;){let r=t.firstChild,a;if((r==null?void 0:r.name)=="VariableName")return s.push(n(r)),{path:s.reverse(),name:e};if((r==null?void 0:r.name)=="MemberExpression"&&((i=a=r.lastChild)===null||i===void 0?void 0:i.name)=="PropertyName")s.push(n(a)),t=r;else return null}}h(p1,"Bo$1");y(p1,"pathFor");function NT(n){let t=y(i=>n.state.doc.sliceString(i.from,i.to),"read"),e=de(n.state).resolveInner(n.pos,-1);return e.name=="PropertyName"?p1(t,e.parent,t(e)):(e.name=="."||e.name=="?.")&&e.parent.name=="MemberExpression"?p1(t,e.parent,""):dS.indexOf(e.name)>-1?null:e.name=="VariableName"||e.to-e.from<20&&vv.test(t(e))?{path:[],name:t(e)}:e.name=="MemberExpression"?p1(t,e,""):n.explicit?{path:[],name:""}:null}h(NT,"am$1");y(NT,"completionPath");function HT(n,t){let e=[],i=new Set;for(let s=0;;s++){for(let a of(Object.getOwnPropertyNames||Object.keys)(n)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(a)||i.has(a))continue;i.add(a);let o;try{o=n[a]}catch{continue}e.push({label:a,type:typeof o=="function"?/^[A-Z]/.test(a)?"class":t?"function":"method":t?"variable":"property",boost:-s})}let r=Object.getPrototypeOf(n);if(!r)return e;n=r}}h(HT,"DS");y(HT,"enumeratePropertyCompletions");function Lq(n){let t=new Map;return e=>{let i=NT(e);if(!i)return null;let s=n;for(let a of i.path)if(s=s[a],!s)return null;let r=t.get(s);return r||t.set(s,r=HT(s,!i.path.length)),{from:e.pos-i.name.length,options:r,validFor:vv}}}h(Lq,"BS");y(Lq,"scopeCompletionSource");const bn=Q5.define({name:"javascript",parser:Rq.configure({props:[wy.add({IfStatement:ew({except:/^\s*({|else\b)/}),TryStatement:ew({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:QV,SwitchBody:y(n=>{let t=n.textAfter,e=/^\s*\}/.test(t),i=/^\s*(case|default)\b/.test(t);return n.baseIndent+(e?0:i?1:2)*n.unit},"SwitchBody"),Block:U6({closing:"}"}),ArrowFunction:y(n=>n.baseIndent+n.unit,"ArrowFunction"),"TemplateString BlockComment":y(()=>null,"TemplateString BlockComment"),"Statement Property":ew({except:/^{/}),JSXElement(n){let t=/^\s*<\//.test(n.textAfter);return n.lineIndent(n.node.from)+(t?0:n.unit)},JSXEscape(n){let t=/\s*\}/.test(n.textAfter);return n.lineIndent(n.node.from)+(t?0:n.unit)},"JSXOpenTag JSXSelfClosingTag"(n){return n.column(n.node.from)+n.unit}}),tg.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":R5,BlockComment(n){return{from:n.from+2,to:n.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),YT={test:y(n=>/^JSX/.test(n.name),"test"),facet:Jw({commentTokens:{block:{open:"{/*",close:"*/}"}}})},GT=bn.configure({dialect:"ts"},"typescript"),KT=bn.configure({dialect:"jsx",props:[C5.add(n=>n.isTop?[YT]:void 0)]}),JT=bn.configure({dialect:"jsx ts",props:[C5.add(n=>n.isTop?[YT]:void 0)]},"typescript");let tA=y(n=>({label:n,type:"keyword"}),"kwCompletion");const eA="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(tA),Iq=eA.concat(["declare","implements","private","protected","public"].map(tA));function iA(n={}){let t=n.jsx?n.typescript?JT:KT:n.typescript?GT:bn,e=n.typescript?Eq.concat(Iq):BT.concat(eA);return new jf(t,[bn.data.of({autocomplete:cM(dS,Z5(e))}),bn.data.of({autocomplete:XT}),n.jsx?Vq:[]])}h(iA,"um$1");y(iA,"javascript");function nA(n){for(;;){if(n.name=="JSXOpenTag"||n.name=="JSXSelfClosingTag"||n.name=="JSXFragmentTag")return n;if(n.name=="JSXEscape"||!n.parent)return null;n=n.parent}}h(nA,"NS");y(nA,"findOpenTag");function Ex(n,t,e=n.length){for(let i=t==null?void 0:t.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return n.sliceString(i.from,Math.min(i.to,e));return""}h(Ex,"gd$1");y(Ex,"elementName$1");const Zq=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Vq=St.inputHandler.of((n,t,e,i,s)=>{if((Zq?n.composing:n.compositionStarted)||n.state.readOnly||t!=e||i!=">"&&i!="/"||!bn.isActiveAt(n.state,t,-1))return!1;let r=s(),{state:a}=r,o=a.changeByRange(l=>{var c;let{head:d}=l,p=de(a).resolveInner(d-1,-1),f;if(p.name=="JSXStartTag"&&(p=p.parent),!(a.doc.sliceString(d-1,d)!=i||p.name=="JSXAttributeValue"&&p.to>d)){if(i==">"&&p.name=="JSXFragmentTag")return{range:l,changes:{from:d,insert:"</>"}};if(i=="/"&&p.name=="JSXStartCloseTag"){let m=p.parent,w=m.parent;if(w&&m.from==d-2&&((f=Ex(a.doc,w.firstChild,d))||((c=w.firstChild)===null||c===void 0?void 0:c.name)=="JSXFragmentTag")){let O=`${f}>`;return{range:nt.cursor(d+O.length,-1),changes:{from:d,insert:O}}}}else if(i==">"){let m=nA(p);if(m&&m.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(d,d+2))&&(f=Ex(a.doc,m,d)))return{range:l,changes:{from:d,insert:`</${f}>`}}}}return{range:l}});return o.changes.empty?!1:(n.dispatch([r,a.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function Wq(n,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},n.getRules().forEach((e,i)=>{e.meta.docs.recommended&&(t.rules[i]=2)})),e=>{let{state:i}=e,s=[];for(let{from:r,to:a}of bn.findRegions(i)){let o=i.doc.lineAt(r),l={line:o.number-1,col:r-o.from,pos:r};for(let c of n.verify(i.sliceDoc(r,a),t))s.push(sA(c,i.doc,l))}return s}}h(Wq,"HS");y(Wq,"esLint");function _x(n,t,e,i){return e.line(n+i.line).from+t+(n==1?i.col-1:-1)}h(_x,"yd$1");y(_x,"mapPos");function sA(n,t,e){let i=_x(n.line,n.column,t,e),s={from:i,to:n.endLine!=null&&n.endColumn!=1?_x(n.endLine,n.endColumn,t,e):i,message:n.message,source:n.ruleId?"eslint:"+n.ruleId:"eslint",severity:n.severity==1?"warning":"error"};if(n.fix){let{range:r,text:a}=n.fix,o=r[0]+e.pos-i,l=r[1]+e.pos-i;s.actions=[{name:"fix",apply(c,d){c.dispatch({changes:{from:d+o,to:d+l,insert:a},scrollIntoView:!0})}}]}return s}h(sA,"FS");y(sA,"translateDiagnostic");const Ey=["_blank","_self","_top","_parent"],MO=["ascii","utf-8","utf-16","latin1","latin1"],TO=["get","post","put","delete"],AO=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],zi=["true","false"],dt={},Dq={a:{attrs:{href:null,ping:null,type:null,media:null,target:Ey,hreflang:null}},abbr:dt,address:dt,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:dt,aside:dt,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:dt,base:{attrs:{href:null,target:Ey}},bdi:dt,bdo:dt,blockquote:{attrs:{cite:null}},body:dt,br:dt,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:AO,formmethod:TO,formnovalidate:["novalidate"],formtarget:Ey,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:dt,center:dt,cite:dt,code:dt,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:dt,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:dt,div:dt,dl:dt,dt,em:dt,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:dt,figure:dt,footer:dt,form:{attrs:{action:null,name:null,"accept-charset":MO,autocomplete:["on","off"],enctype:AO,method:TO,novalidate:["novalidate"],target:Ey}},h1:dt,h2:dt,h3:dt,h4:dt,h5:dt,h6:dt,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:dt,hgroup:dt,hr:dt,html:{attrs:{manifest:null}},i:dt,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:AO,formmethod:TO,formnovalidate:["novalidate"],formtarget:Ey,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:dt,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:dt,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:dt,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:MO,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:dt,noscript:dt,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:dt,param:{attrs:{name:null,value:null}},pre:dt,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:dt,rt:dt,ruby:dt,samp:dt,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:MO}},section:dt,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:dt,source:{attrs:{src:null,type:null,media:null}},span:dt,strong:dt,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:dt,summary:dt,sup:dt,table:dt,tbody:dt,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:dt,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:dt,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:dt,time:{attrs:{datetime:null}},title:dt,tr:dt,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:dt,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:dt},rA={accesskey:null,class:null,contenteditable:zi,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:zi,autocorrect:zi,autocapitalize:zi,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":zi,"aria-autocomplete":["inline","list","both","none"],"aria-busy":zi,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":zi,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":zi,"aria-hidden":zi,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":zi,"aria-multiselectable":zi,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":zi,"aria-relevant":null,"aria-required":zi,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},aA="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(n=>"on"+n);for(let n of aA)rA[n]=null;var Wd;const oA=(Wd=class{constructor(t,e){this.tags=Object.assign(Object.assign({},Dq),t),this.globalAttrs=Object.assign(Object.assign({},rA),e),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}},h(Wd,"xc"),Wd);y(oA,"Schema");let $w=oA;$w.default=new $w;function Wo(n,t,e=n.length){if(!t)return"";let i=t.firstChild,s=i&&i.getChild("TagName");return s?n.sliceString(s.from,Math.min(s.to,e)):""}h(Wo,"Hi$1");y(Wo,"elementName");function Do(n,t=!1){for(;n;n=n.parent)if(n.name=="Element")if(t)t=!1;else return n;return null}h(Do,"Fi$1");y(Do,"findParentElement");function uS(n,t,e){let i=e.tags[Wo(n,Do(t))];return(i==null?void 0:i.children)||e.allTags}h(uS,"mm$1");y(uS,"allowedChildren");function k0(n,t){let e=[];for(let i=Do(t);i&&!i.type.isTop;i=Do(i.parent)){let s=Wo(n,i);if(s&&i.lastChild.name=="CloseTag")break;s&&e.indexOf(s)<0&&(t.name=="EndTag"||t.from>=i.firstChild.to)&&e.push(s)}return e}h(k0,"Rh$1");y(k0,"openTags");const lA=/^[:\-\.\w\u00b7-\uffff]*$/;function zx(n,t,e,i,s){let r=/\s*>/.test(n.sliceDoc(s,s+5))?"":">",a=Do(e,!0);return{from:i,to:s,options:uS(n.doc,a,t).map(o=>({label:o,type:"type"})).concat(k0(n.doc,e).map((o,l)=>({label:"/"+o,apply:"/"+o+r,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}h(zx,"bd$1");y(zx,"completeTag");function Lx(n,t,e,i){let s=/\s*>/.test(n.sliceDoc(i,i+5))?"":">";return{from:e,to:i,options:k0(n.doc,t).map((r,a)=>({label:r,apply:r+s,type:"type",boost:99-a})),validFor:lA}}h(Lx,"Sd$1");y(Lx,"completeCloseTag");function cA(n,t,e,i){let s=[],r=0;for(let a of uS(n.doc,e,t))s.push({label:"<"+a,type:"type"});for(let a of k0(n.doc,e))s.push({label:"</"+a+">",type:"type",boost:99-r++});return{from:i,to:i,options:s,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}h(cA,"JS");y(cA,"completeStartTag");function hA(n,t,e,i,s){let r=Do(e),a=r?t.tags[Wo(n.doc,r)]:null,o=a&&a.attrs?Object.keys(a.attrs):[],l=a&&a.globalAttrs===!1?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:i,to:s,options:l.map(c=>({label:c,type:"property"})),validFor:lA}}h(hA,"eQ");y(hA,"completeAttrName");function dA(n,t,e,i,s){var r;let a=(r=e.parent)===null||r===void 0?void 0:r.getChild("AttributeName"),o=[],l;if(a){let c=n.sliceDoc(a.from,a.to),d=t.globalAttrs[c];if(!d){let p=Do(e),f=p?t.tags[Wo(n.doc,p)]:null;d=(f==null?void 0:f.attrs)&&f.attrs[c]}if(d){let p=n.sliceDoc(i,s).toLowerCase(),f='"',m='"';/^['"]/.test(p)?(l=p[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",m=n.sliceDoc(s,s+1)==p[0]?"":p[0],p=p.slice(1),i++):l=/^[^\s<>='"]*$/;for(let w of d)o.push({label:w,apply:f+w+m,type:"constant"})}}return{from:i,to:s,options:o,validFor:l}}h(dA,"tQ");y(dA,"completeAttrValue");function pS(n,t){let{state:e,pos:i}=t,s=de(e).resolveInner(i,-1),r=s.resolve(i);for(let a=i,o;r==s&&(o=s.childBefore(a));){let l=o.lastChild;if(!l||!l.type.isError||l.from<l.to)break;r=s=o,a=l.from}return s.name=="TagName"?s.parent&&/CloseTag$/.test(s.parent.name)?Lx(e,s,s.from,i):zx(e,n,s,s.from,i):s.name=="StartTag"?zx(e,n,s,i,i):s.name=="StartCloseTag"||s.name=="IncompleteCloseTag"?Lx(e,s,i,i):s.name=="OpenTag"||s.name=="SelfClosingTag"||s.name=="AttributeName"?hA(e,n,s,s.name=="AttributeName"?s.from:i,i):s.name=="Is"||s.name=="AttributeValue"||s.name=="UnquotedAttributeValue"?dA(e,n,s,s.name=="Is"?i:s.from,i):t.explicit&&(r.name=="Element"||r.name=="Text"||r.name=="Document")?cA(e,n,s,i):null}h(pS,"ym$1");y(pS,"htmlCompletionFor");function uA(n){return pS($w.default,n)}h(uA,"bm$1");y(uA,"htmlCompletionSource");function pA(n){let{extraTags:t,extraGlobalAttributes:e}=n,i=e||t?new $w(t,e):$w.default;return s=>pS(i,s)}h(pA,"Sm$1");y(pA,"htmlCompletionSourceWith");const qq=bn.parser.configure({top:"SingleExpression"}),fA=[{tag:"script",attrs:y(n=>n.type=="text/typescript"||n.lang=="ts","attrs"),parser:GT.parser},{tag:"script",attrs:y(n=>n.type=="text/babel"||n.type=="text/jsx","attrs"),parser:KT.parser},{tag:"script",attrs:y(n=>n.type=="text/typescript-jsx","attrs"),parser:JT.parser},{tag:"script",attrs(n){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(n.type)},parser:qq},{tag:"script",attrs(n){return!n.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(n.type)},parser:bn.parser},{tag:"style",attrs(n){return(!n.lang||n.lang=="css")&&(!n.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(n.type))},parser:gv.parser}],yA=[{name:"style",parser:gv.parser.configure({top:"Styles"})}].concat(aA.map(n=>({name:n,parser:bn.parser}))),mA=Q5.define({name:"html",parser:MD.configure({props:[wy.add({Element(n){let t=/^(\s*)(<\/)?/.exec(n.textAfter);return n.node.to<=n.pos+t[0].length?n.continue():n.lineIndent(n.node.from)+(t[2]?0:n.unit)},"OpenTag CloseTag SelfClosingTag"(n){return n.column(n.node.from)+n.unit},Document(n){if(n.pos+/\s*/.exec(n.textAfter)[0].length<n.node.to)return n.continue();let t=null,e;for(let i=n.node;;){let s=i.lastChild;if(!s||s.name!="Element"||s.to!=i.to)break;t=i=s}return t&&!((e=t.lastChild)&&(e.name=="CloseTag"||e.name=="SelfClosingTag"))?n.lineIndent(t.from)+n.unit:null}}),tg.add({Element(n){let t=n.firstChild,e=n.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:e.name=="CloseTag"?e.from:n.to}}}),N6.add({"OpenTag CloseTag":y(n=>n.getChild("TagName"),"OpenTag CloseTag")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),f1=mA.configure({wrap:oS(fA,yA)});function wA(n={}){let t="",e;n.matchClosingTags===!1&&(t="noMatch"),n.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(n.nestedLanguages&&n.nestedLanguages.length||n.nestedAttributes&&n.nestedAttributes.length)&&(e=oS((n.nestedLanguages||[]).concat(fA),(n.nestedAttributes||[]).concat(yA)));let i=e?mA.configure({wrap:e,dialect:t}):t?f1.configure({dialect:t}):f1;return new jf(i,[f1.data.of({autocomplete:pA(n)}),n.autoCloseTags!==!1?Uq:[],iA().support,UT().support])}h(wA,"xm$1");y(wA,"html");const I4=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Uq=St.inputHandler.of((n,t,e,i,s)=>{if(n.composing||n.state.readOnly||t!=e||i!=">"&&i!="/"||!f1.isActiveAt(n.state,t,-1))return!1;let r=s(),{state:a}=r,o=a.changeByRange(l=>{var c,d,p;let f=a.doc.sliceString(l.from-1,l.to)==i,{head:m}=l,w=de(a).resolveInner(m,-1),O;if(f&&i==">"&&w.name=="EndTag"){let x=w.parent;if(((d=(c=x.parent)===null||c===void 0?void 0:c.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(O=Wo(a.doc,x.parent,m))&&!I4.has(O)){let b=m+(a.doc.sliceString(m,m+1)===">"?1:0),P=`</${O}>`;return{range:l,changes:{from:m,to:b,insert:P}}}}else if(f&&i=="/"&&w.name=="IncompleteCloseTag"){let x=w.parent;if(w.from==m-2&&((p=x.lastChild)===null||p===void 0?void 0:p.name)!="CloseTag"&&(O=Wo(a.doc,x,m))&&!I4.has(O)){let b=m+(a.doc.sliceString(m,m+1)===">"?1:0),P=`${O}>`;return{range:nt.cursor(m+P.length,-1),changes:{from:m,to:b,insert:P}}}}return{range:l}});return o.changes.empty?!1:(n.dispatch([r,a.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),gA=Jw({commentTokens:{block:{open:"<!--",close:"-->"}}}),vA=new $t,OA=MW.configure({props:[tg.add(n=>!n.is("Block")||n.is("Document")||Ov(n)!=null||bA(n)?void 0:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})),vA.add(Ov),wy.add({Document:y(()=>null,"Document")}),gr.add({Document:gA})]});function Ov(n){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(n.name);return t?+t[1]:void 0}h(Ov,"Da$1");y(Ov,"isHeading");function bA(n){return n.name=="OrderedList"||n.name=="BulletList"}h(bA,"nQ");y(bA,"isList");function $A(n,t){let e=n;for(;;){let i=e.nextSibling,s;if(!i||(s=Ov(i.type))!=null&&s<=t)break;e=i}return e.to}h($A,"sQ");y($A,"findSectionEnd");const jq=MV.of((n,t,e)=>{for(let i=de(n).resolveInner(e,-1);i&&!(i.from<t);i=i.parent){let s=i.type.prop(vA);if(s==null)continue;let r=$A(i,s);if(r>e)return{from:e,to:r}}return null});function S0(n){return new Ui(gA,n,[jq],"markdown")}h(S0,"vh");y(S0,"mkLang");const Bq=S0(OA),Fq=OA.configure([IW,VW,ZW,WW,{props:[tg.add({Table:y((n,t)=>({from:t.doc.lineAt(n.from).to,to:n.to}),"Table")})]}]),xA=S0(Fq);function kA(n,t){return e=>{if(e&&n){let i=null;if(e=/\S*/.exec(e)[0],typeof n=="function"?i=n(e):i=o4.matchLanguageName(n,e,!0),i instanceof o4)return i.support?i.support.language.parser:lv.getSkippingParser(i.load());if(i)return i.parser}return t?t.parser:null}}h(kA,"aQ");y(kA,"getCodeParser");var Dd;const SA=(Dd=class{constructor(t,e,i,s,r,a,o){this.node=t,this.from=e,this.to=i,this.spaceBefore=s,this.spaceAfter=r,this.type=a,this.item=o}blank(t,e=!0){let i=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;i.length<t;)i+=" ";return i}else{for(let s=this.to-this.from-i.length-this.spaceAfter.length;s>0;s--)i+=" ";return i+(e?this.spaceAfter:"")}}marker(t,e){let i=this.node.name=="OrderedList"?String(+yS(this.item,t)[2]+e):"";return this.spaceBefore+i+this.type+this.spaceAfter}},h(Dd,"Pc"),Dd);y(SA,"Context");let RO=SA;function fS(n,t){let e=[],i=[];for(let s=n;s;s=s.parent){if(s.name=="FencedCode")return i;(s.name=="ListItem"||s.name=="Blockquote")&&e.push(s)}for(let s=e.length-1;s>=0;s--){let r=e[s],a,o=t.lineAt(r.from),l=r.from-o.from;if(r.name=="Blockquote"&&(a=/^ *>( ?)/.exec(o.text.slice(l))))i.push(new RO(r,l,l+a[0].length,"",a[1],">",null));else if(r.name=="ListItem"&&r.parent.name=="OrderedList"&&(a=/^( *)\d+([.)])( *)/.exec(o.text.slice(l)))){let c=a[3],d=a[0].length;c.length>=4&&(c=c.slice(0,c.length-4),d-=4),i.push(new RO(r.parent,l,l+d,a[1],c,a[2],r))}else if(r.name=="ListItem"&&r.parent.name=="BulletList"&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(l)))){let c=a[4],d=a[0].length;c.length>4&&(c=c.slice(0,c.length-4),d-=4);let p=a[2];a[3]&&(p+=a[3].replace(/[xX]/," ")),i.push(new RO(r.parent,l,l+d,a[1],c,p,r))}}return i}h(fS,"Tm");y(fS,"getContext");function yS(n,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(n.from,n.from+10))}h(yS,"Am$1");y(yS,"itemNumber");function y1(n,t,e,i=0){for(let s=-1,r=n;;){if(r.name=="ListItem"){let o=yS(r,t),l=+o[2];if(s>=0){if(l!=s+1)return;e.push({from:r.from+o[1].length,to:r.from+o[0].length,insert:String(s+2+i)})}s=l}let a=r.nextSibling;if(!a)break;r=a}}h(y1,"Ho$1");y(y1,"renumberList");function P0(n,t){let e=/^[ \t]*/.exec(n)[0].length;if(!e||t.facet(y0)!=" ")return n;let i=Br(n,4,e),s="";for(let r=i;r>0;)r>=4?(s+=" ",r-=4):(s+=" ",r--);return s+n.slice(e)}h(P0,"Ah$1");y(P0,"normalizeIndent");const Xq=y(({state:n,dispatch:t})=>{let e=de(n),{doc:i}=n,s=null,r=n.changeByRange(a=>{if(!a.empty||!xA.isActiveAt(n,a.from,0))return s={range:a};let o=a.from,l=i.lineAt(o),c=fS(e.resolveInner(o,-1),i);for(;c.length&&c[c.length-1].from>o-l.from;)c.pop();if(!c.length)return s={range:a};let d=c[c.length-1];if(d.to-d.spaceAfter.length>o-l.from)return s={range:a};let p=o>=d.to-d.spaceAfter.length&&!/\S/.test(l.text.slice(d.to));if(d.item&&p){let x=d.node.firstChild,b=d.node.getChild("ListItem","ListItem");if(x.to>=o||b&&b.to<o||l.from>0&&!/[^\s>]/.test(i.lineAt(l.from-1).text)){let P=c.length>1?c[c.length-2]:null,R,E="";P&&P.item?(R=l.from+P.from,E=P.marker(i,1)):R=l.from+(P?P.to:0);let T=[{from:R,to:o,insert:E}];return d.node.name=="OrderedList"&&y1(d.item,i,T,-2),P&&P.node.name=="OrderedList"&&y1(P.item,i,T),{range:nt.cursor(R+E.length),changes:T}}else{let P=Zx(c,n,l);return{range:nt.cursor(o+P.length+1),changes:{from:l.from,insert:P+n.lineBreak}}}}if(d.node.name=="Blockquote"&&p&&l.from){let x=i.lineAt(l.from-1),b=/>\s*$/.exec(x.text);if(b&&b.index==d.from){let P=n.changes([{from:x.from+b.index,to:x.to},{from:l.from+d.from,to:l.to}]);return{range:a.map(P),changes:P}}}let f=[];d.node.name=="OrderedList"&&y1(d.item,i,f);let m=d.item&&d.item.from<l.from,w="";if(!m||/^[\s\d.)\-+*>]*/.exec(l.text)[0].length>=d.to)for(let x=0,b=c.length-1;x<=b;x++)w+=x==b&&!m?c[x].marker(i,1):c[x].blank(x<b?Br(l.text,4,c[x+1].from)-w.length:null);let O=o;for(;O>l.from&&/\s/.test(l.text.charAt(O-l.from-1));)O--;return w=P0(w,n),PA(d.node,n.doc)&&(w=Zx(c,n,l)+n.lineBreak+w),f.push({from:O,to:o,insert:n.lineBreak+w}),{range:nt.cursor(O+w.length+1),changes:f}});return s?!1:(t(n.update(r,{scrollIntoView:!0,userEvent:"input"})),!0)},"insertNewlineContinueMarkup");function Ix(n){return n.name=="QuoteMark"||n.name=="ListMark"}h(Ix,"wd$1");y(Ix,"isMark");function PA(n,t){if(n.name!="OrderedList"&&n.name!="BulletList")return!1;let e=n.firstChild,i=n.getChild("ListItem","ListItem");if(!i)return!1;let s=t.lineAt(e.to),r=t.lineAt(i.from),a=/^[\s>]*$/.test(s.text);return s.number+(a?0:1)<r.number}h(PA,"hQ");y(PA,"nonTightList");function Zx(n,t,e){let i="";for(let s=0,r=n.length-2;s<=r;s++)i+=n[s].blank(s<r?Br(e.text,4,Math.min(e.text.length,n[s+1].from))-i.length:null,s<r);return P0(i,t)}h(Zx,"xd$1");y(Zx,"blankLine");function CA(n,t){let e=n.resolveInner(t,-1),i=t;Ix(e)&&(i=e.from,e=e.parent);for(let s;s=e.childBefore(i);)if(Ix(s))i=s.from;else if(s.name=="OrderedList"||s.name=="BulletList")e=s.lastChild,i=e.to;else break;return e}h(CA,"fQ");y(CA,"contextNodeForDelete");const Nq=y(({state:n,dispatch:t})=>{let e=de(n),i=null,s=n.changeByRange(r=>{let a=r.from,{doc:o}=n;if(r.empty&&xA.isActiveAt(n,r.from)){let l=o.lineAt(a),c=fS(CA(e,a),o);if(c.length){let d=c[c.length-1],p=d.to-d.spaceAfter.length+(d.spaceAfter?1:0);if(a-l.from>p&&!/\S/.test(l.text.slice(p,a-l.from)))return{range:nt.cursor(l.from+p),changes:{from:l.from+p,to:a}};if(a-l.from==p&&(!d.item||l.from<=d.item.from||!/\S/.test(l.text.slice(0,d.to)))){let f=l.from+d.from;if(d.item&&d.node.from<d.item.from&&/\S/.test(l.text.slice(d.from,d.to))){let m=d.blank(Br(l.text,4,d.to)-Br(l.text,4,d.from));return f==l.from&&(m=P0(m,n)),{range:nt.cursor(f+m.length),changes:{from:f,to:l.from+d.to,insert:m}}}if(f<a)return{range:nt.cursor(f),changes:{from:f,to:a}}}}}return i={range:r}});return i?!1:(t(n.update(s,{scrollIntoView:!0,userEvent:"delete"})),!0)},"deleteMarkupBackward"),Hq=[{key:"Enter",run:Xq},{key:"Backspace",run:Nq}],QA=wA({matchClosingTags:!1});function Yq(n={}){let{codeLanguages:t,defaultCodeLanguage:e,addKeymap:i=!0,base:{parser:s}=Bq,completeHTMLTags:r=!0,htmlTagLanguage:a=QA}=n;if(!(s instanceof NM))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let o=n.extensions?[n.extensions]:[],l=[a.support],c;e instanceof jf?(l.push(e.support),c=e.language):e&&(c=e);let d=t||c?kA(t,c):void 0;o.push(aT({codeParser:d,htmlParser:a.language.parser})),i&&l.push(sl.high(h0.of(Hq)));let p=S0(s.configure(o));return r&&l.push(p.data.of({autocomplete:MA})),new jf(p,l)}h(Yq,"Cm$1");y(Yq,"markdown");function MA(n){let{state:t,pos:e}=n,i=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(e-25,e));if(!i)return null;let s=de(t).resolveInner(e,-1);for(;s&&!s.type.isTop;){if(s.name=="CodeBlock"||s.name=="FencedCode"||s.name=="ProcessingInstructionBlock"||s.name=="CommentBlock"||s.name=="Link"||s.name=="Image")return null;s=s.parent}return{from:e-i[0].length,to:e,options:TA(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}h(MA,"cQ");y(MA,"htmlTagCompletion");let EO=null;function TA(){if(EO)return EO;let n=uA(new I5(_e.create({extensions:QA}),0,!0));return EO=n?n.options:[]}h(TA,"uQ");y(TA,"htmlTagCompletions");function Gq(n){return new jf(zV.define(n))}h(Gq,"w$1");y(Gq,"legacy");function Kq(n){return import(new URL("./@codemirror/lang-sql/dist/index.js",typeof WEAVY_IMPORT_URL=="string"&&(!(typeof document>"u"?require("url").pathToFileURL(__filename).href:wt&&wt.tagName.toUpperCase()==="SCRIPT"&&wt.src||new URL("weavy.cjs",document.baseURI).href)||!new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:wt&&wt.tagName.toUpperCase()==="SCRIPT"&&wt.src||new URL("weavy.cjs",document.baseURI).href).href.startsWith(WEAVY_IMPORT_URL))?WEAVY_IMPORT_URL:typeof document>"u"?require("url").pathToFileURL(__filename).href:wt&&wt.tagName.toUpperCase()==="SCRIPT"&&wt.src||new URL("weavy.cjs",document.baseURI).href).href).then(t=>t.sql({dialect:t[n]}))}h(Kq,"pt$2");y(Kq,"sql");function Jq(n){const t=new Event("Weavy-SoftSubmit");return n.dom.dispatchEvent(t),!0}h(Jq,"Em$1");y(Jq,"softSubmit");const Z4=new aV({regexp:/(\[(.+?)\])(\(@u(\d+)\))/g,decoration:y(n=>Jt.replace({inclusive:!0,widget:new tU(n)}),"decoration")});var qd;const AA=(qd=class extends my{constructor(t){super(),this.match=t}eq(t){return t.match[1]===this.match[1]}toDOM(){ii();const t=document.createElement("span");return t.className="wy-mention",t.innerHTML=typeof this.match[5]<"u"?this.match[5]:this.match[2],t}ignoreEvent(){return!1}},h(qd,"kc"),qd);y(AA,"MentionWidget");let tU=AA;qs.fromClass(class{constructor(n){this.mentions=Z4.createDeco(n)}update(n){this.mentions=Z4.updateDeco(n,this.mentions)}},{decorations:y(n=>n.mentions,"decorations"),provide:y(n=>St.atomicRanges.of(t=>{var e;return((e=t.plugin(n))==null?void 0:e.mentions)||Jt.none}),"provide")});function eU(n,t){return({state:e,dispatch:i})=>{if(e.readOnly)return!1;let s=n(t,e);return s?(i(e.update(s)),!0):!1}}h(eU,"Zh$1");y(eU,"command");function mS(n,t){let e=n.languageDataAt("commentTokens",t,1);return e.length?e[0]:{}}h(mS,"Lh");y(mS,"getConfig");const _y=50;function RA(n,{open:t,close:e},i,s){let r=n.sliceDoc(i-_y,i),a=n.sliceDoc(s,s+_y),o=/\s*$/.exec(r)[0].length,l=/^\s*/.exec(a)[0].length,c=r.length-o;if(r.slice(c-t.length,c)==t&&a.slice(l,l+e.length)==e)return{open:{pos:i-o,margin:o&&1},close:{pos:s+l,margin:l&&1}};let d,p;s-i<=2*_y?d=p=n.sliceDoc(i,s):(d=n.sliceDoc(i,i+_y),p=n.sliceDoc(s-_y,s));let f=/^\s*/.exec(d)[0].length,m=/\s*$/.exec(p)[0].length,w=p.length-m-e.length;return d.slice(f,f+t.length)==t&&p.slice(w,w+e.length)==e?{open:{pos:i+f+t.length,margin:/\s/.test(d.charAt(f+t.length))?1:0},close:{pos:s-m-e.length,margin:/\s/.test(p.charAt(w-1))?1:0}}:null}h(RA,"wQ");y(RA,"findBlockComment");function iU(n){let t=[];for(let e of n.selection.ranges){let i=n.doc.lineAt(e.from),s=e.to<=i.to?i:n.doc.lineAt(e.to);s.from>i.from&&s.from==e.to&&(s=e.to==i.to+1?i:n.doc.lineAt(e.to-1));let r=t.length-1;r>=0&&t[r].to>i.from?t[r].to=s.to:t.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:s.to})}return t}h(iU,"xQ");y(iU,"selectedLineRanges");function nU(n,t,e=t.selection.ranges){let i=e.map(r=>mS(t,r.from).block);if(!i.every(r=>r))return null;let s=e.map((r,a)=>RA(t,i[a],r.from,r.to));if(n!=2&&!s.every(r=>r))return{changes:t.changes(e.map((r,a)=>s[a]?[]:[{from:r.from,insert:i[a].open+" "},{from:r.to,insert:" "+i[a].close}]))};if(n!=1&&s.some(r=>r)){let r=[];for(let a=0,o;a<s.length;a++)if(o=s[a]){let l=i[a],{open:c,close:d}=o;r.push({from:c.pos-l.open.length,to:c.pos+c.margin},{from:d.pos-d.margin,to:d.pos+l.close.length})}return{changes:r}}return null}h(nU,"Vm");y(nU,"changeBlockComment");function sU(n,t,e=t.selection.ranges){let i=[],s=-1;for(let{from:r,to:a}of e){let o=i.length,l=1e9,c=mS(t,r).line;if(c){for(let d=r;d<=a;){let p=t.doc.lineAt(d);if(p.from>s&&(r==a||a>p.from)){s=p.from;let f=/^\s*/.exec(p.text)[0].length,m=f==p.length,w=p.text.slice(f,f+c.length)==c?f:-1;f<p.text.length&&f<l&&(l=f),i.push({line:p,comment:w,token:c,indent:f,empty:m,single:!1})}d=p.to+1}if(l<1e9)for(let d=o;d<i.length;d++)i[d].indent<i[d].line.text.length&&(i[d].indent=l);i.length==o+1&&(i[o].single=!0)}}if(n!=2&&i.some(r=>r.comment<0&&(!r.empty||r.single))){let r=[];for(let{line:o,token:l,indent:c,empty:d,single:p}of i)(p||!d)&&r.push({from:o.from+c,insert:l+" "});let a=t.changes(r);return{changes:a,selection:t.selection.map(a,1)}}else if(n!=1&&i.some(r=>r.comment>=0)){let r=[];for(let{line:a,comment:o,token:l}of i)if(o>=0){let c=a.from+o,d=c+l.length;a.text[d-a.from]==" "&&d++,r.push({from:c,to:d})}return{changes:r}}return null}h(sU,"PQ");y(sU,"changeLineComment");const Vx=Gs.define(),rU=Gs.define(),aU=vt.define(),EA=vt.define({combine(n){return jk(n,{minDepth:100,newGroupDelay:500,joinToEvent:y((t,e)=>e,"joinToEvent")},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:y((t,e)=>(i,s)=>t(i,s)||e(i,s),"joinToEvent")})}}),_A=Ys.define({create(){return iw.empty},update(n,t){let e=t.state.facet(EA),i=t.annotation(Vx);if(i){let l=Rs.fromTransaction(t,i.selection),c=i.side,d=c==0?n.undone:n.done;return l?d=xw(d,d.length,e.minDepth,l):d=vS(d,t.startState.selection),new iw(c==0?i.rest:d,c==0?d:i.rest)}let s=t.annotation(rU);if((s=="full"||s=="before")&&(n=n.isolate()),t.annotation(gi.addToHistory)===!1)return t.changes.empty?n:n.addMapping(t.changes.desc);let r=Rs.fromTransaction(t),a=t.annotation(gi.time),o=t.annotation(gi.userEvent);return r?n=n.addChanges(r,a,o,e,t):t.selection&&(n=n.addSelection(t.startState.selection,a,o,e.newGroupDelay)),(s=="full"||s=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(t=>t.toJSON()),undone:n.undone.map(t=>t.toJSON())}},fromJSON(n){return new iw(n.done.map(Rs.fromJSON),n.undone.map(Rs.fromJSON))}});function oU(n={}){return[_A,EA.of(n),St.domEventHandlers({beforeinput(t,e){let i=t.inputType=="historyUndo"?lU:t.inputType=="historyRedo"?cU:null;return i?(t.preventDefault(),i(e)):!1}})]}h(oU,"$Q");y(oU,"history");function wS(n,t){return function({state:e,dispatch:i}){if(!t&&e.readOnly)return!1;let s=e.field(_A,!1);if(!s)return!1;let r=s.pop(n,e,t);return r?(i(r),!0):!1}}h(wS,"bo$1");y(wS,"cmd");const lU=wS(0,!1),cU=wS(1,!1);var Jn;const zA=(Jn=class{constructor(t,e,i,s,r){this.changes=t,this.effects=e,this.mapped=i,this.startSelection=s,this.selectionsAfter=r}setSelAfter(t){return new Jn(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,i;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(e=this.mapped)===null||e===void 0?void 0:e.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(s=>s.toJSON())}}static fromJSON(t){return new Jn(t.changes&&xn.fromJSON(t.changes),[],t.mapped&&Rc.fromJSON(t.mapped),t.startSelection&&nt.fromJSON(t.startSelection),t.selectionsAfter.map(nt.fromJSON))}static fromTransaction(t,e){let i=en;for(let s of t.startState.facet(aU)){let r=s(t);r.length&&(i=i.concat(r))}return!i.length&&t.changes.empty?null:new Jn(t.changes.invert(t.startState.doc),i,void 0,e||t.startState.selection,en)}static selection(t){return new Jn(void 0,en,void 0,void 0,t)}},h(Jn,"Nt"),Jn);y(zA,"HistEvent");let Rs=zA;function xw(n,t,e,i){let s=t+1>e+20?t-e-1:0,r=n.slice(s,t);return r.push(i),r}h(xw,"Es$2");y(xw,"updateBranch");function LA(n,t){let e=[],i=!1;return n.iterChangedRanges((s,r)=>e.push(s,r)),t.iterChangedRanges((s,r,a,o)=>{for(let l=0;l<e.length;){let c=e[l++],d=e[l++];o>=c&&a<=d&&(i=!0)}}),i}h(LA,"AQ");y(LA,"isAdjacent");function IA(n,t){return n.ranges.length==t.ranges.length&&n.ranges.filter((e,i)=>e.empty!=t.ranges[i].empty).length===0}h(IA,"ZQ");y(IA,"eqSelectionShape");function gS(n,t){return n.length?t.length?n.concat(t):n:t}h(gS,"Ym$1");y(gS,"conc");const en=[],hU=200;function vS(n,t){if(n.length){let e=n[n.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-hU));return i.length&&i[i.length-1].eq(t)?n:(i.push(t),xw(n,n.length-1,1e9,e.setSelAfter(i)))}else return[Rs.selection([t])]}h(vS,"Im$1");y(vS,"addSelection");function ZA(n){let t=n[n.length-1],e=n.slice();return e[n.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),e}h(ZA,"MQ");y(ZA,"popSelection");function m1(n,t){if(!n.length)return n;let e=n.length,i=en;for(;e;){let s=VA(n[e-1],t,i);if(s.changes&&!s.changes.empty||s.effects.length){let r=n.slice(0,e);return r[e-1]=s,r}else t=s.mapped,e--,i=s.selectionsAfter}return i.length?[Rs.selection(i)]:en}h(m1,"Ko$1");y(m1,"addMappingToBranch");function VA(n,t,e){let i=gS(n.selectionsAfter.length?n.selectionsAfter.map(o=>o.map(t)):en,e);if(!n.changes)return Rs.selection(i);let s=n.changes.map(t),r=t.mapDesc(n.changes,!0),a=n.mapped?n.mapped.composeDesc(r):r;return new Rs(s,Xt.mapEffects(n.effects,t),a,n.startSelection.map(r),i)}h(VA,"_Q");y(VA,"mapEvent");const dU=/^(input\.type|delete)($|\.)/;var ts;const WA=(ts=class{constructor(t,e,i=0,s=void 0){this.done=t,this.undone=e,this.prevTime=i,this.prevUserEvent=s}isolate(){return this.prevTime?new ts(this.done,this.undone):this}addChanges(t,e,i,s,r){let a=this.done,o=a[a.length-1];return o&&o.changes&&!o.changes.empty&&t.changes&&(!i||dU.test(i))&&(!o.selectionsAfter.length&&e-this.prevTime<s.newGroupDelay&&s.joinToEvent(r,LA(o.changes,t.changes))||i=="input.type.compose")?a=xw(a,a.length-1,s.minDepth,new Rs(t.changes.compose(o.changes),gS(Xt.mapEffects(t.effects,o.changes),o.effects),o.mapped,o.startSelection,en)):a=xw(a,a.length,s.minDepth,t),new ts(a,en,e,i)}addSelection(t,e,i,s){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:en;return r.length>0&&e-this.prevTime<s&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&IA(r[r.length-1],t)?this:new ts(vS(this.done,t),this.undone,e,i)}addMapping(t){return new ts(m1(this.done,t),m1(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,i){let s=t==0?this.done:this.undone;if(s.length==0)return null;let r=s[s.length-1],a=r.selectionsAfter[0]||e.selection;if(i&&r.selectionsAfter.length)return e.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:Vx.of({side:t,rest:ZA(s),selection:a}),userEvent:t==0?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let o=s.length==1?en:s.slice(0,s.length-1);return r.mapped&&(o=m1(o,r.mapped)),e.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:Vx.of({side:t,rest:o,selection:a}),filter:!1,userEvent:t==0?"undo":"redo",scrollIntoView:!0})}else return null}},h(ts,"Gt"),ts);y(WA,"HistoryState");let iw=WA;iw.empty=new iw(en,en);function ig(n,t){return nt.create(n.ranges.map(t),n.mainIndex)}h(ig,"er$1");y(ig,"updateSel");function ng(n,t){return n.update({selection:t,scrollIntoView:!0,userEvent:"select"})}h(ng,"st$1");y(ng,"setSel");function C0({state:n,dispatch:t},e){let i=ig(n.selection,e);return i.eq(n.selection,!0)?!1:(t(ng(n,i)),!0)}h(C0,"De$2");y(C0,"moveSel");function sg(n,t){return nt.cursor(t?n.to:n.from)}h(sg,"So$1");y(sg,"rangeEnd");function uU(n,t){return C0(n,e=>e.empty?n.moveByChar(e,t):sg(e,t))}h(uU,"jm");y(uU,"cursorByChar");function pU(n){return n.textDirectionAt(n.state.selection.main.head)==Qe.LTR}h(pU,"he$2");y(pU,"ltrAtCursor");function fU(n,t){return C0(n,e=>e.empty?n.moveByGroup(e,t):sg(e,t))}h(fU,"Bm");y(fU,"cursorByGroup");function DA(n,t,e){if(t.type.prop(e))return!0;let i=t.to-t.from;return i&&(i>2||/[^\s,.;:]/.test(n.sliceDoc(t.from,t.to)))||t.firstChild}h(DA,"WQ");y(DA,"interestingNode");function yU(n,t,e){let i=de(n).resolveInner(t.head),s=e?$t.closedBy:$t.openedBy;for(let l=t.head;;){let c=e?i.childAfter(l):i.childBefore(l);if(!c)break;DA(n,c,s)?i=c:l=e?c.to:c.from}let r=i.type.prop(s),a,o;return r&&(a=e?qa(n,i.from,1):qa(n,i.to,-1))&&a.matched?o=e?a.end.to:a.end.from:o=e?i.to:i.from,nt.cursor(o,e?-1:1)}h(yU,"Qo$1");y(yU,"moveBySyntax");function mU(n,t){return C0(n,e=>{if(!e.empty)return sg(e,t);let i=n.moveVertically(e,t);return i.head!=e.head?i:n.moveToLineBoundary(e,t)})}h(mU,"zm$1");y(mU,"cursorByLine");function OS(n){let t=n.scrollDOM.clientHeight<n.scrollDOM.scrollHeight-2,e=0,i=0,s;if(t){for(let r of n.state.facet(St.scrollMargins)){let a=r(n);a!=null&&a.top&&(e=Math.max(a==null?void 0:a.top,e)),a!=null&&a.bottom&&(i=Math.max(a==null?void 0:a.bottom,i))}s=n.scrollDOM.clientHeight-e-i}else s=(n.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:e,marginBottom:i,selfScroll:t,height:Math.max(n.defaultLineHeight,s-5)}}h(OS,"Hm");y(OS,"pageInfo");function wU(n,t){let e=OS(n),{state:i}=n,s=ig(i.selection,a=>a.empty?n.moveVertically(a,t,e.height):sg(a,t));if(s.eq(i.selection))return!1;let r;if(e.selfScroll){let a=n.coordsAtPos(i.selection.main.head),o=n.scrollDOM.getBoundingClientRect(),l=o.top+e.marginTop,c=o.bottom-e.marginBottom;a&&a.top>l&&a.bottom<c&&(r=St.scrollIntoView(s.main.head,{y:"start",yMargin:a.top-l}))}return n.dispatch(ng(i,s),{effects:r}),!0}h(wU,"Fm$1");y(wU,"cursorByPage");function gU(n,t,e){let i=n.lineBlockAt(t.head),s=n.moveToLineBoundary(t,e);if(s.head==t.head&&s.head!=(e?i.to:i.from)&&(s=n.moveToLineBoundary(t,e,!1)),!e&&s.head==i.from&&i.length){let r=/^\s*/.exec(n.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;r&&t.head!=i.from+r&&(s=nt.cursor(i.from+r))}return s}h(gU,"_t$2");y(gU,"moveByLineBoundary");function vU(n,t,e){let i=!1,s=ig(n.selection,r=>{let a=qa(n,r.head,-1)||qa(n,r.head,1)||r.head>0&&qa(n,r.head-1,1)||r.head<n.doc.length&&qa(n,r.head+1,-1);if(!a||!a.end)return r;i=!0;let o=a.start.from==r.head?a.end.to:a.end.from;return nt.cursor(o)});return i?(t(ng(n,s)),!0):!1}h(vU,"NQ");y(vU,"toMatchingBracket");function rg(n,t){let e=ig(n.state.selection,i=>{let s=t(i);return nt.range(i.anchor,s.head,s.goalColumn,s.bidiLevel||void 0)});return e.eq(n.state.selection)?!1:(n.dispatch(ng(n.state,e)),!0)}h(rg,"Ue$2");y(rg,"extendSel");function OU(n,t){return rg(n,e=>n.moveByChar(e,t))}h(OU,"Km$1");y(OU,"selectByChar");function bU(n,t){return rg(n,e=>n.moveByGroup(e,t))}h(bU,"tg$1");y(bU,"selectByGroup");function $U(n,t){return rg(n,e=>n.moveVertically(e,t))}h($U,"ig$1");y($U,"selectByLine");function xU(n,t){return rg(n,e=>n.moveVertically(e,t,OS(n).height))}h(xU,"sg$1");y(xU,"selectByPage");function kU(n,t){if(n.state.readOnly)return!1;let e="delete.selection",{state:i}=n,s=i.changeByRange(r=>{let{from:a,to:o}=r;if(a==o){let l=t(r);l<a?(e="delete.backward",l=ym(n,l,!1)):l>a&&(e="delete.forward",l=ym(n,l,!0)),a=Math.min(a,l),o=Math.max(o,l)}else a=ym(n,a,!1),o=ym(n,o,!0);return a==o?{range:r}:{changes:{from:a,to:o},range:nt.cursor(a,a<r.head?-1:1)}});return s.changes.empty?!1:(n.dispatch(i.update(s,{scrollIntoView:!0,userEvent:e,effects:e=="delete.selection"?St.announce.of(i.phrase("Selection deleted")):void 0})),!0)}h(kU,"Sn$1");y(kU,"deleteBy");function ym(n,t,e){if(n instanceof St)for(let i of n.state.facet(St.atomicRanges).map(s=>s(n)))i.between(t,t,(s,r)=>{s<t&&r>t&&(t=e?r:s)});return t}h(ym,"In$1");y(ym,"skipAtomic");function bS(n){let t=[],e=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.from),r=n.doc.lineAt(i.to);if(!i.empty&&i.to==r.from&&(r=n.doc.lineAt(i.to-1)),e>=s.number){let a=t[t.length-1];a.to=r.to,a.ranges.push(i)}else t.push({from:s.from,to:r.to,ranges:[i]});e=r.number+1}return t}h(bS,"wo$1");y(bS,"selectedLineBlocks");function SU(n,t,e){if(n.readOnly)return!1;let i=[],s=[];for(let r of bS(n)){if(e?r.to==n.doc.length:r.from==0)continue;let a=n.doc.lineAt(e?r.to+1:r.from-1),o=a.length+1;if(e){i.push({from:r.to,to:a.to},{from:r.from,insert:a.text+n.lineBreak});for(let l of r.ranges)s.push(nt.range(Math.min(n.doc.length,l.anchor+o),Math.min(n.doc.length,l.head+o)))}else{i.push({from:a.from,to:r.from},{from:r.to,insert:n.lineBreak+a.text});for(let l of r.ranges)s.push(nt.range(l.anchor-o,l.head-o))}}return i.length?(t(n.update({changes:i,scrollIntoView:!0,selection:nt.create(s,n.selection.mainIndex),userEvent:"move.line"})),!0):!1}h(SU,"fg$1");y(SU,"moveLine");function PU(n,t,e){if(n.readOnly)return!1;let i=[];for(let s of bS(n))e?i.push({from:s.from,insert:n.doc.slice(s.from,s.to)+n.lineBreak}):i.push({from:s.to,insert:n.lineBreak+n.doc.slice(s.from,s.to)});return t(n.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}h(PU,"cg$1");y(PU,"copyLine");function qA(n,t){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(t-1,t+1)))return{from:t,to:t};let e=de(n).resolveInner(t),i=e.childBefore(t),s=e.childAfter(t),r;return i&&s&&i.to<=t&&s.from>=t&&(r=i.type.prop($t.closedBy))&&r.indexOf(s.name)>-1&&n.doc.lineAt(i.to).from==n.doc.lineAt(s.from).from&&!/\S/.test(n.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}h(qA,"Qw$1");y(qA,"isBetweenBrackets");function CU(n){return({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange(s=>{let{from:r,to:a}=s,o=t.doc.lineAt(r),l=!n&&r==a&&qA(t,r);n&&(r=a=(a<=o.to?o:t.doc.lineAt(a)).to);let c=new M5(t,{simulateBreak:r,simulateDoubleBreak:!!l}),d=_6(c,r);for(d==null&&(d=Br(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));a<o.to&&/\s/.test(o.text[a-o.from]);)a++;l?{from:r,to:a}=l:r>o.from&&r<o.from+100&&!/\S/.test(o.text.slice(0,r))&&(r=o.from);let p=["",lx(t,d)];return l&&p.push(lx(t,c.lineIndent(o.from,-1))),{changes:{from:r,to:a,insert:Dt.of(p)},range:nt.cursor(r+1+p[1].length)}});return e(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}h(CU,"ug$1");y(CU,"newlineAndIndent");function QU(n,t){let e=-1;return n.changeByRange(i=>{let s=[];for(let a=i.from;a<=i.to;){let o=n.doc.lineAt(a);o.number>e&&(i.empty||i.to>o.from)&&(t(o,s,i),e=o.number),a=o.to+1}let r=n.changes(s);return{changes:s,range:nt.range(r.mapPos(i.anchor,1),r.mapPos(i.head,1))}})}h(QU,"Mh$1");y(QU,"changeBySelectedLine");B6.define([{tag:M.meta,class:"code"},{tag:M.link,class:"wy-link"},{tag:M.heading,textDecoration:"underline",fontWeight:"bold"},{tag:M.emphasis,fontStyle:"italic"},{tag:M.strong,fontWeight:"bold"},{tag:M.strikethrough,textDecoration:"line-through"},{tag:M.keyword,class:"code token keyword"},{tag:[M.atom,M.bool],class:"code token builtin"},{tag:[M.url,M.contentSeparator,M.labelName],class:"code token prolog"},{tag:M.literal,class:"code token char"},{tag:M.inserted,class:"code token inserted"},{tag:M.deleted,class:"code token deleted"},{tag:M.string,class:"code token string"},{tag:[M.regexp,M.escape,M.special(M.string)],class:"code token regex"},{tag:M.definition(M.variableName),class:"code token constant"},{tag:M.local(M.variableName),class:"code token variable"},{tag:[M.typeName,M.namespace],class:"code token keyword"},{tag:M.className,class:"code token class-name"},{tag:[M.special(M.variableName),M.macroName],class:"code token function"},{tag:M.propertyName,class:"code token property"},{tag:M.comment,class:"code token comment"},{tag:M.invalid,color:"#f00",class:"code token"}]);function MU(n){$S(n,"start");var t={},e=n.languageData||{},i=!1;for(var s in n)if(s!=e&&n.hasOwnProperty(s))for(var r=t[s]=[],a=n[s],o=0;o<a.length;o++){var l=a[o];r.push(new BA(l,n)),(l.indent||l.dedent)&&(i=!0)}return{name:e.name,startState:y(function(){return{state:"start",pending:null,indent:i?[]:null}},"startState"),copyState:y(function(c){var d={state:c.state,pending:c.pending,indent:c.indent&&c.indent.slice(0)};return c.stack&&(d.stack=c.stack.slice(0)),d},"copyState"),token:FA(t),indent:XA(t,e),mergeTokens:e.mergeTokens,languageData:e}}h(MU,"Bw$1");y(MU,"simpleMode");function $S(n,t){if(!n.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}h($S,"dg$1");y($S,"ensureState");function UA(n,t){if(!n)return/(?:)/;var e="";return n instanceof RegExp?(n.ignoreCase&&(e="i"),n=n.source):n=String(n),new RegExp("^(?:"+n+")",e)}h(UA,"Zw$1");y(UA,"toRegex");function jA(n){if(!n)return null;if(n.apply)return n;if(typeof n=="string")return n.replace(/\./g," ");for(var t=[],e=0;e<n.length;e++)t.push(n[e]&&n[e].replace(/\./g," "));return t}h(jA,"Lw$1");y(jA,"asToken");function BA(n,t){(n.next||n.push)&&$S(t,n.next||n.push),this.regex=UA(n.regex),this.token=jA(n.token),this.data=n}h(BA,"Mw$1");y(BA,"Rule");function FA(n){return function(t,e){if(e.pending){var i=e.pending.shift();return e.pending.length==0&&(e.pending=null),t.pos+=i.text.length,i.token}for(var s=n[e.state],r=0;r<s.length;r++){var a=s[r],o=(!a.data.sol||t.sol())&&t.match(a.regex);if(o){a.data.next?e.state=a.data.next:a.data.push?((e.stack||(e.stack=[])).push(e.state),e.state=a.data.push):a.data.pop&&e.stack&&e.stack.length&&(e.state=e.stack.pop()),a.data.indent&&e.indent.push(t.indentation()+t.indentUnit),a.data.dedent&&e.indent.pop();var l=a.token;if(l&&l.apply&&(l=l(o)),o.length>2&&a.token&&typeof a.token!="string"){e.pending=[];for(var c=2;c<o.length;c++)o[c]&&e.pending.push({text:o[c],token:a.token[c-1]});return t.backUp(o[0].length-(o[1]?o[1].length:0)),l[0]}else return l&&l.join?l[0]:l}}return t.next(),null}}h(FA,"_w$1");y(FA,"tokenFunction");function XA(n,t){return function(e,i){if(e.indent==null||t.dontIndentStates&&t.dontIndentStates.indexOf(e.state)>-1)return null;var s=e.indent.length-1,r=n[e.state];t:for(;;){for(var a=0;a<r.length;a++){var o=r[a];if(o.data.dedent&&o.data.dedentIfLineStart!==!1){var l=o.regex.exec(i);if(l&&l[0]){s--,(o.next||o.push)&&(r=n[o.next||o.push]),i=i.slice(l[0].length);continue t}}}break}return s<0?0:e.indent[s]}}h(XA,"Cw$1");y(XA,"indentFunction");var TU=Object.defineProperty,pt=h((n,t)=>TU(n,"name",{value:t,configurable:!0}),"o$2");const Wx="lit-localize-status",AU=pt((n,...t)=>({strTag:!0,strings:n,values:t}),"_str"),at=AU,RU=pt(n=>typeof n!="string"&&"strTag"in n,"isStrTagged"),NA=pt((n,t,e)=>{let i=n[0];for(let s=1;s<n.length;s++)i+=t[e?e[s-1]:s-1],i+=n[s];return i},"joinStringsAndValues"),HA=pt(n=>RU(n)?NA(n.strings,n.values):n,"defaultMsg");let C=HA,V4=!1;function YA(n){if(V4)throw new Error("lit-localize can only be configured once");C=n,V4=!0}h(YA,"Ot$1");pt(YA,"_installMsgImplementation");var Ud;const GA=(Ud=class{constructor(t){this.__litLocalizeEventHandler=e=>{e.detail.status==="ready"&&this.host.requestUpdate()},this.host=t}hostConnected(){window.addEventListener(Wx,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(Wx,this.__litLocalizeEventHandler)}},h(Ud,"Fe"),Ud);pt(GA,"LocalizeController");let EU=GA;const _U=pt(n=>n.addController(new EU(n)),"_updateWhenLocaleChanges"),zU=_U,xt=pt(()=>(n,t)=>(n.addInitializer(zU),n),"localized");var jd;const KA=(jd=class{constructor(){this.settled=!1,this.promise=new Promise((t,e)=>{this._resolve=t,this._reject=e})}resolve(t){this.settled=!0,this._resolve(t)}reject(t){this.settled=!0,this._reject(t)}},h(jd,"Ge"),jd);pt(KA,"Deferred");let JA=KA;const ks=[];for(let n=0;n<256;n++)ks[n]=(n>>4&15).toString(16)+(n&15).toString(16);function tR(n){let t=0,e=8997,i=0,s=33826,r=0,a=40164,o=0,l=52210;for(let c=0;c<n.length;c++)e^=n.charCodeAt(c),t=e*435,i=s*435,r=a*435,o=l*435,r+=e<<8,o+=s<<8,i+=t>>>16,e=t&65535,r+=i>>>16,s=i&65535,l=o+(r>>>16)&65535,a=r&65535;return ks[l>>8]+ks[l&255]+ks[a>>8]+ks[a&255]+ks[s>>8]+ks[s&255]+ks[e>>8]+ks[e&255]}h(tR,"It$1");pt(tR,"fnv1a64");const LU="",IU="h",ZU="s";function eR(n,t){return(t?IU:ZU)+tR(typeof n=="string"?n:n.join(LU))}h(eR,"Wt$1");pt(eR,"generateMsgId");const W4=new WeakMap,D4=new Map;function iR(n,t,e){if(n){const i=(e==null?void 0:e.id)??nR(t),s=n[i];if(s){if(typeof s=="string")return s;if("strTag"in s)return NA(s.strings,t.values,s.values);{let r=W4.get(s);return r===void 0&&(r=s.values,W4.set(s,r)),{...s,values:r.map(a=>t.values[a])}}}}return HA(t)}h(iR,"Vt$1");pt(iR,"runtimeMsg");function nR(n){const t=typeof n=="string"?n:n.strings;let e=D4.get(t);return e===void 0&&(e=eR(t,typeof n!="string"&&!("strTag"in n)),D4.set(t,e)),e}h(nR,"zt");pt(nR,"generateId");function w1(n){window.dispatchEvent(new CustomEvent(Wx,{detail:n}))}h(w1,"Ae");pt(w1,"dispatchStatusEvent");let bv="",_O,sR,$v,Dx,rR,Ia=new JA;Ia.resolve();let Zg=0;const VU=pt(n=>(YA((t,e)=>iR(rR,t,e)),bv=sR=n.sourceLocale,$v=new Set(n.targetLocales),$v.add(n.sourceLocale),Dx=n.loadLocale,{getLocale:WU,setLocale:DU}),"configureLocalization"),WU=pt(()=>bv,"getLocale"),DU=pt(n=>{if(n===(_O??bv))return Ia.promise;if(!$v||!Dx)throw new Error("Internal error");if(!$v.has(n))throw new Error("Invalid locale code");Zg++;const t=Zg;return _O=n,Ia.settled&&(Ia=new JA),w1({status:"loading",loadingLocale:n}),(n===sR?Promise.resolve({templates:void 0}):Dx(n)).then(e=>{Zg===t&&(bv=n,_O=void 0,rR=e.templates,w1({status:"ready",readyLocale:n}),Ia.resolve())},e=>{Zg===t&&(w1({status:"error",errorLocale:n,errorMessage:e.toString()}),Ia.reject(e))}),Ia.promise},"setLocale");var zO,Bd;const qU=(zO=(Bd=class{get shadowRoot(){return this.__host.__shadowRoot}constructor(t){this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBrailleLabel="",this.ariaBrailleRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColSpan="",this.ariaCurrent="",this.ariaDescription="",this.ariaDisabled="",this.ariaExpanded="",this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=t}checkValidity(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}reportValidity(){return!0}setFormValue(){}setValidity(){}},h(Bd,"I"),Bd),pt(zO,"ElementInternals"),zO);var Dn=h(function(n,t,e,i,s){if(typeof t=="function"?n!==t||!0:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(n,e),e},"y$1"),He=h(function(n,t,e,i){if(typeof t=="function"?n!==t||!0:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?i:e==="a"?i.call(n):i?i.value:t.get(n)},"$"),Gl,Vg,Wg,zy,LO,Ly,Dg,xa,Iy,nr,qg,q4;const U4=pt(n=>typeof n=="boolean"?n:(n==null?void 0:n.capture)??!1,"isCaptureEventListener"),xv=0,qx=1,kv=2,Ux=3;var IO,Fd;const UU=(IO=(Fd=class{constructor(){this.__eventListeners=new Map,this.__captureEventListeners=new Map}addEventListener(t,e,i){var s;if(e==null)return;const r=U4(i)?this.__captureEventListeners:this.__eventListeners;let a=r.get(t);if(a===void 0)a=new Map,r.set(t,a);else if(a.has(e))return;const o=typeof i=="object"&&i?i:{};(s=o.signal)==null||s.addEventListener("abort",()=>this.removeEventListener(t,e,i)),a.set(e,o??{})}removeEventListener(t,e,i){if(e==null)return;const s=U4(i)?this.__captureEventListeners:this.__eventListeners,r=s.get(t);r!==void 0&&(r.delete(e),r.size||s.delete(t))}dispatchEvent(t){const e=[this];let i=this.__eventTargetParent;if(t.composed)for(;i;)e.push(i),i=i.__eventTargetParent;else for(;i&&i!==this.__host;)e.push(i),i=i.__eventTargetParent;let s=!1,r=!1,a=xv,o=null,l=null,c=null;const d=t.stopPropagation,p=t.stopImmediatePropagation;Object.defineProperties(t,{target:{get(){return o??l},...Bt},srcElement:{get(){return t.target},...Bt},currentTarget:{get(){return c},...Bt},eventPhase:{get(){return a},...Bt},composedPath:{value:pt(()=>e,"value"),...Bt},stopPropagation:{value:pt(()=>{s=!0,d.call(t)},"value"),...Bt},stopImmediatePropagation:{value:pt(()=>{r=!0,p.call(t)},"value"),...Bt}});const f=pt((b,P,R)=>{typeof b=="function"?b(t):typeof(b==null?void 0:b.handleEvent)=="function"&&b.handleEvent(t),P.once&&R.delete(b)},"invokeEventListener"),m=pt(()=>(c=null,a=xv,!t.defaultPrevented),"finishDispatch"),w=e.slice().reverse();o=!this.__host||!t.composed?this:null;const O=pt(b=>{for(l=this;l.__host&&b.includes(l.__host);)l=l.__host},"retarget");for(const b of w){!o&&(!l||l===b.__host)&&O(w.slice(w.indexOf(b))),c=b,a=b===t.target?kv:qx;const P=b.__captureEventListeners.get(t.type);if(P){for(const[R,E]of P)if(f(R,E,P),r)return m()}if(s)return m()}const x=t.bubbles?e:[this];l=null;for(const b of x){!o&&(!l||b===l.__host)&&O(x.slice(0,x.indexOf(b)+1)),c=b,a=b===t.target?kv:Ux;const P=b.__eventListeners.get(t.type);if(P){for(const[R,E]of P)if(f(R,E,P),r)return m()}if(s)return m()}return m()}},h(Fd,"j"),Fd),pt(IO,"EventTarget"),IO),jU=UU,Bt={__proto__:null};Bt.enumerable=!0;Object.freeze(Bt);var ZO,Xd;const xS=(nr=(ZO=(Xd=class{constructor(t,e={}){if(Gl.set(this,!1),Vg.set(this,!1),Wg.set(this,!1),zy.set(this,!1),LO.set(this,Date.now()),Ly.set(this,!1),Dg.set(this,void 0),xa.set(this,void 0),Iy.set(this,void 0),this.NONE=xv,this.CAPTURING_PHASE=qx,this.AT_TARGET=kv,this.BUBBLING_PHASE=Ux,arguments.length===0)throw new Error("The type argument must be specified");if(typeof e!="object"||!e)throw new Error('The "options" argument must be an object');const{bubbles:i,cancelable:s,composed:r}=e;Dn(this,Gl,!!s),Dn(this,Vg,!!i),Dn(this,Wg,!!r),Dn(this,Dg,`${t}`),Dn(this,xa,null),Dn(this,Iy,!1)}initEvent(t,e,i){throw new Error("Method not implemented.")}stopImmediatePropagation(){this.stopPropagation()}preventDefault(){Dn(this,zy,!0)}get target(){return He(this,xa,"f")}get currentTarget(){return He(this,xa,"f")}get srcElement(){return He(this,xa,"f")}get type(){return He(this,Dg,"f")}get cancelable(){return He(this,Gl,"f")}get defaultPrevented(){return He(this,Gl,"f")&&He(this,zy,"f")}get timeStamp(){return He(this,LO,"f")}composedPath(){return He(this,Iy,"f")?[He(this,xa,"f")]:[]}get returnValue(){return!He(this,Gl,"f")||!He(this,zy,"f")}get bubbles(){return He(this,Vg,"f")}get composed(){return He(this,Wg,"f")}get eventPhase(){return He(this,Iy,"f")?nr.AT_TARGET:nr.NONE}get cancelBubble(){return He(this,Ly,"f")}set cancelBubble(t){t&&Dn(this,Ly,!0)}stopPropagation(){Dn(this,Ly,!0)}get isTrusted(){return!1}},h(Xd,"D$1"),Xd),pt(ZO,"Event"),ZO),Gl=new WeakMap,Vg=new WeakMap,Wg=new WeakMap,zy=new WeakMap,LO=new WeakMap,Ly=new WeakMap,Dg=new WeakMap,xa=new WeakMap,Iy=new WeakMap,nr.NONE=xv,nr.CAPTURING_PHASE=qx,nr.AT_TARGET=kv,nr.BUBBLING_PHASE=Ux,nr);Object.defineProperties(xS.prototype,{initEvent:Bt,stopImmediatePropagation:Bt,preventDefault:Bt,target:Bt,currentTarget:Bt,srcElement:Bt,type:Bt,cancelable:Bt,defaultPrevented:Bt,timeStamp:Bt,composedPath:Bt,returnValue:Bt,bubbles:Bt,composed:Bt,eventPhase:Bt,cancelBubble:Bt,stopPropagation:Bt,isTrusted:Bt});var VO,Nd;const aR=(q4=(VO=(Nd=class extends xS{constructor(t,e={}){super(t,e),qg.set(this,void 0),Dn(this,qg,(e==null?void 0:e.detail)??null)}initCustomEvent(t,e,i,s){throw new Error("Method not implemented.")}get detail(){return He(this,qg,"f")}},h(Nd,"B"),Nd),pt(VO,"CustomEvent"),VO),qg=new WeakMap,q4);Object.defineProperties(aR.prototype,{detail:Bt});const BU=xS,FU=aR;globalThis.Event??(globalThis.Event=BU);globalThis.CustomEvent??(globalThis.CustomEvent=FU);const j4=new WeakMap,Zy=pt(n=>{let t=j4.get(n);return t===void 0&&j4.set(n,t=new Map),t},"attributesForElement");var WO,Hd;const XU=(WO=(Hd=class extends jU{constructor(){super(...arguments),this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(Zy(this)).map(([t,e])=>({name:t,value:e}))}get shadowRoot(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}get localName(){return this.constructor.__localName}get tagName(){var t;return(t=this.localName)==null?void 0:t.toUpperCase()}setAttribute(t,e){Zy(this).set(t,String(e))}removeAttribute(t){Zy(this).delete(t)}toggleAttribute(t,e){if(this.hasAttribute(t)){if(e===void 0||!e)return this.removeAttribute(t),!1}else return e===void 0||e?(this.setAttribute(t,""),!0):!1;return!0}hasAttribute(t){return Zy(this).has(t)}attachShadow(t){const e={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=e),e}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");const t=new qU(this);return this.__internals=t,t}getAttribute(t){return Zy(this).get(t)??null}},h(Hd,"W$1"),Hd),pt(WO,"Element"),WO);var DO,Yd;const NU=(DO=(Yd=class extends XU{},h(Yd,"V"),Yd),pt(DO,"HTMLElement"),DO),oR=NU;globalThis.litServerRoot??(globalThis.litServerRoot=Object.defineProperty(new oR,"localName",{get(){return"lit-server-root"}}));var qO,Gd;const HU=(qO=(Gd=class{constructor(){this.__definitions=new Map}define(t,e){if(this.__definitions.has(t))throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);e.__localName=t,this.__definitions.set(t,{ctor:e,observedAttributes:e.observedAttributes??[]})}get(t){const e=this.__definitions.get(t);return e==null?void 0:e.ctor}},h(Gd,"z"),Gd),pt(qO,"CustomElementRegistry"),qO),YU=HU,GU=new YU,nw=globalThis,Q0=nw.ShadowRoot&&(nw.ShadyCSS===void 0||nw.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kS=Symbol(),B4=new WeakMap;var UO,Kd;let lR=(UO=(Kd=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==kS)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Q0&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=B4.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&B4.set(e,t))}return t}toString(){return this.cssText}},h(Kd,"F"),Kd),pt(UO,"n"),UO);const cR=pt(n=>new lR(typeof n=="string"?n:n+"",void 0,kS),"r$2"),At=pt((n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,r)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[r+1],n[0]);return new lR(e,n,kS)},"i$2"),hR=pt((n,t)=>{if(Q0)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=nw.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)}},"S$1"),F4=Q0||nw.CSSStyleSheet===void 0?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return cR(e)})(n):n,{is:KU,defineProperty:JU,getOwnPropertyDescriptor:tj,getOwnPropertyNames:ej,getOwnPropertySymbols:ij,getPrototypeOf:nj}=Object,Gr=globalThis;Gr.customElements??(Gr.customElements=GU);const X4=Gr.trustedTypes,sj=X4?X4.emptyScript:"",N4=Gr.reactiveElementPolyfillSupport,sw=pt((n,t)=>n,"f$1"),Sv={toAttribute(n,t){switch(t){case Boolean:n=n?sj:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},SS=pt((n,t)=>!KU(n,t),"m$1"),H4={attribute:!0,type:String,converter:Sv,reflect:!1,useDefault:!1,hasChanged:SS};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Gr.litPropertyMetadata??(Gr.litPropertyMetadata=new WeakMap);var jO,Jd;let hc=(jO=(Jd=class extends(globalThis.HTMLElement??oR){static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=H4){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&JU(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:r}=tj(this.prototype,t)??{get(){return this[e]},set(a){this[e]=a}};return{get:s,set(a){const o=s==null?void 0:s.call(this);r==null||r.call(this,a),this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??H4}static _$Ei(){if(this.hasOwnProperty(sw("elementProperties")))return;const t=nj(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(sw("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(sw("properties"))){const e=this.properties,i=[...ej(e),...ij(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(F4(s))}else t!==void 0&&e.push(F4(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return hR(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){const a=(((i=s.converter)==null?void 0:i.toAttribute)!==void 0?s.converter:Sv).toAttribute(e,s.type);this._$Em=t,a==null?this.removeAttribute(r):this.setAttribute(r,a),this._$Em=null}}_$AK(t,e){var i,s;const r=this.constructor,a=r._$Eh.get(t);if(a!==void 0&&this._$Em!==a){const o=r.getPropertyOptions(a),l=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)==null?void 0:i.fromAttribute)!==void 0?o.converter:Sv;this._$Em=a,this[a]=l.fromAttribute(e,o.type)??((s=this._$Ej)==null?void 0:s.get(a))??null,this._$Em=null}}requestUpdate(t,e,i){var s;if(t!==void 0){const r=this.constructor,a=this[t];if(i??(i=r.getPropertyOptions(t)),!((i.hasChanged??SS)(a,e)||i.useDefault&&i.reflect&&a===((s=this._$Ej)==null?void 0:s.get(t))&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:r},a){i&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,a??e??this[t]),r!==!0||a!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,a]of this._$Ep)this[r]=a;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[r,a]of s){const{wrapped:o}=a,l=this[r];o!==!0||this._$AL.has(r)||l===void 0||this.C(r,void 0,a,l)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$EO)==null||t.forEach(s=>{var r;return(r=s.hostUpdate)==null?void 0:r.call(s)}),this.update(i)):this._$EM()}catch(s){throw e=!1,this._$EM(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}},h(Jd,"G$1"),Jd),pt(jO,"g"),jO);hc.elementStyles=[],hc.shadowRootOptions={mode:"open"},hc[sw("elementProperties")]=new Map,hc[sw("finalized")]=new Map,N4==null||N4({ReactiveElement:hc}),(Gr.reactiveElementVersions??(Gr.reactiveElementVersions=[])).push("2.1.0");const kw=globalThis,Pv=kw.trustedTypes,Y4=Pv?Pv.createPolicy("lit-html",{createHTML:pt(n=>n,"createHTML")}):void 0,dR="$lit$",mr=`lit$${Math.random().toFixed(9).slice(2)}$`,uR="?"+mr,rj=`<${uR}>`,qo=kw.document===void 0?{createTreeWalker:pt(()=>({}),"createTreeWalker")}:document,Sw=pt(()=>qo.createComment(""),"l"),Pw=pt(n=>n===null||typeof n!="object"&&typeof n!="function","c"),PS=Array.isArray,aj=pt(n=>PS(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function","u"),BO=`[
|
|
30
30
|
\f\r]`,Vy=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G4=/-->/g,K4=/>/g,ka=RegExp(`>|${BO}(?:([^\\s"'>=/]+)(${BO}*=${BO}*(?:[^
|
|
31
31
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),J4=/'/g,t3=/"/g,pR=/^(?:script|style|textarea|title)$/i,fR=pt(n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),"y"),v=fR(1),e3=fR(2),Pn=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),i3=new WeakMap,ja=qo.createTreeWalker(qo,129);function CS(n,t){if(!PS(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Y4!==void 0?Y4.createHTML(t):t}h(CS,"Rt");pt(CS,"P");const oj=pt((n,t)=>{const e=n.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",a=Vy;for(let o=0;o<e;o++){const l=n[o];let c,d,p=-1,f=0;for(;f<l.length&&(a.lastIndex=f,d=a.exec(l),d!==null);)f=a.lastIndex,a===Vy?d[1]==="!--"?a=G4:d[1]!==void 0?a=K4:d[2]!==void 0?(pR.test(d[2])&&(s=RegExp("</"+d[2],"g")),a=ka):d[3]!==void 0&&(a=ka):a===ka?d[0]===">"?(a=s??Vy,p=-1):d[1]===void 0?p=-2:(p=a.lastIndex-d[2].length,c=d[1],a=d[3]===void 0?ka:d[3]==='"'?t3:J4):a===t3||a===J4?a=ka:a===G4||a===K4?a=Vy:(a=ka,s=void 0);const m=a===ka&&n[o+1].startsWith("/>")?" ":"";r+=a===Vy?l+rj:p>=0?(i.push(c),l.slice(0,p)+dR+l.slice(p)+mr+m):l+mr+(p===-2?o:m)}return[CS(n,r+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},"V");var To;const yR=(To=class{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,a=0;const o=t.length-1,l=this.parts,[c,d]=oj(t,e);if(this.el=To.createElement(c,i),ja.currentNode=this.el.content,e===2||e===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=ja.nextNode())!==null&&l.length<o;){if(s.nodeType===1){if(s.hasAttributes())for(const p of s.getAttributeNames())if(p.endsWith(dR)){const f=d[a++],m=s.getAttribute(p).split(mr),w=/([.?@])?(.*)/.exec(f);l.push({type:1,index:r,name:w[2],strings:m,ctor:w[1]==="."?cj:w[1]==="?"?hj:w[1]==="@"?dj:T0}),s.removeAttribute(p)}else p.startsWith(mr)&&(l.push({type:6,index:r}),s.removeAttribute(p));if(pR.test(s.tagName)){const p=s.textContent.split(mr),f=p.length-1;if(f>0){s.textContent=Pv?Pv.emptyScript:"";for(let m=0;m<f;m++)s.append(p[m],Sw()),ja.nextNode(),l.push({type:2,index:++r});s.append(p[f],Sw())}}}else if(s.nodeType===8)if(s.data===uR)l.push({type:2,index:r});else{let p=-1;for(;(p=s.data.indexOf(mr,p+1))!==-1;)l.push({type:7,index:r}),p+=mr.length-1}r++}}static createElement(t,e){const i=qo.createElement("template");return i.innerHTML=t,i}},h(To,"_e"),To);pt(yR,"N");let jx=yR;function Uo(n,t,e=n,i){var s,r;if(t===Pn)return t;let a=i!==void 0?(s=e._$Co)==null?void 0:s[i]:e._$Cl;const o=Pw(t)?void 0:t._$litDirective$;return(a==null?void 0:a.constructor)!==o&&((r=a==null?void 0:a._$AO)==null||r.call(a,!1),o===void 0?a=void 0:(a=new o(n),a._$AT(n,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=a:e._$Cl=a),a!==void 0&&(t=Uo(n,a._$AS(n,t.values),a,i)),t}h(Uo,"K");pt(Uo,"S");var tu;const mR=(tu=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=((t==null?void 0:t.creationScope)??qo).importNode(e,!0);ja.currentNode=s;let r=ja.nextNode(),a=0,o=0,l=i[0];for(;l!==void 0;){if(a===l.index){let c;l.type===2?c=new M0(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new uj(r,this,t)),this._$AV.push(c),l=i[++o]}a!==(l==null?void 0:l.index)&&(r=ja.nextNode(),a++)}return ja.currentNode=qo,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},h(tu,"qe"),tu);pt(mR,"M");let lj=mR;var Ao;const wR=(Ao=class{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Uo(this,t,e),Pw(t)?t===Q||t==null||t===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==Pn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):aj(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Q&&Pw(this._$AH)?this._$AA.nextSibling.data=t:this.T(qo.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=jx.createElement(CS(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)==null?void 0:e._$AD)===r)this._$AH.p(i);else{const a=new lj(r,this),o=a.u(this.options);a.p(i),this.T(o),this._$AH=a}}_$AC(t){let e=i3.get(t.strings);return e===void 0&&i3.set(t.strings,e=new jx(t)),e}k(t){PS(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new Ao(this.O(Sw()),this.O(Sw()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},h(Ao,"ve"),Ao);pt(wR,"k");let M0=wR;var eu;const gR=(eu=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}_$AI(t,e=this,i,s){const r=this.strings;let a=!1;if(r===void 0)t=Uo(this,t,e,0),a=!Pw(t)||t!==this._$AH&&t!==Pn,a&&(this._$AH=t);else{const o=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=Uo(this,o[i+l],e,l),c===Pn&&(c=this._$AH[l]),a||(a=!Pw(c)||c!==this._$AH[l]),c===Q?t=Q:t!==Q&&(t+=(c??"")+r[l+1]),this._$AH[l]=c}a&&!s&&this.j(t)}j(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},h(eu,"Ke"),eu);pt(gR,"R");let T0=gR;var iu;const vR=(iu=class extends T0{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Q?void 0:t}},h(iu,"Ze"),iu);pt(vR,"H");let cj=vR;var nu;const OR=(nu=class extends T0{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Q)}},h(nu,"Je"),nu);pt(OR,"I");let hj=OR;var su;const bR=(su=class extends T0{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){if((t=Uo(this,t,e,0)??Q)===Pn)return;const i=this._$AH,s=t===Q&&i!==Q||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==Q&&(i===Q||s);s&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}},h(su,"Xe"),su);pt(bR,"L");let dj=bR;var ru;const $R=(ru=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Uo(this,t)}},h(ru,"Qe"),ru);pt($R,"z");let uj=$R;const pj={I:M0},n3=kw.litHtmlPolyfillSupport;n3==null||n3(jx,M0),(kw.litHtmlVersions??(kw.litHtmlVersions=[])).push("3.3.0");const fj=pt((n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const r=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new M0(t.insertBefore(Sw(),r),r,void 0,e??{})}return s._$AI(n),s},"j"),Cw=globalThis;var au;const xR=(au=class extends hc{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=fj(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Pn}},h(au,"Ye"),au);pt(xR,"i");let yt=xR;var s3;yt._$litElement$=!0,yt.finalized=!0,(s3=Cw.litElementHydrateSupport)==null||s3.call(Cw,{LitElement:yt});const r3=Cw.litElementPolyfillSupport;r3==null||r3({LitElement:yt});(Cw.litElementVersions??(Cw.litElementVersions=[])).push("4.2.0");v`<strong>${0}</strong> redigerade <em>${1}</em>`,v`<strong>${0}</strong> nämnde dig i ett inlägg`,v`<strong>${0}</strong> kommenterade på <strong>${1}</strong>`,v`<strong>${0}</strong> reagerade med ${1} på <em>${2}</em>`,v`<strong>${0}</strong> svarade på ett inlägg`,v`<strong>${0}</strong> redigerade ett inlägg`,v`<strong>${0}</strong> nämnde dig i ett meddelande`,v`<strong>${0}</strong> nämnde dig i en kommentar`,v`<strong>${0}</strong> och <strong>${1}</strong> röstade i din omröstning`,v`<strong>${0}</strong> reagerade med ${1} på ditt inlägg`,v`<strong>${0}</strong> reagerade med ${1} på din kommentar`,v`Nytt meddelande från <strong>${0}</strong>`,v`<strong>${0}</strong> svarade på ditt inlägg`,v`<strong>${0}</strong> röstade i din omröstning`,v`<strong>${0}</strong> publicerade ett inlägg i <strong>${1}</strong>`,v`<strong>${0}</strong> gillade ditt meddelande`,v`<strong>${0}</strong>, <strong>${1}</strong> och <strong>${2}</strong> röstade i din omröstning`,v`<strong>${0}</strong> lade till <em>${1}</em> till <strong>${2}</strong>`,v`<strong>${0}</strong> skickade ett meddelande i <strong>${1}</strong>`,v`<strong>${0}</strong> reagerade med ${1} på ditt meddelande`,v`<strong>${0}</strong> gillade <em>${1}</em>`,v`<strong>${0}</strong> gillade ditt inlägg`,v`<strong>${0}</strong> gillade din kommentar`,v`<strong>${0}</strong> och ${1} andra röstade i din omröstning`,v`<strong>${0}</strong> kommenterade på <em>${1}</em>`,at`${0} svarade på ditt inlägg`,at`${0} röstade i din omröstning`,at`Öppna i ${0}?`,at`${0} skriver${1}`,at`${0} och ${1} röstade i din omröstning`,at`${0} kommenterade på ${1}`,at`${0} gillade ${1}`,at`${0} skickade ett meddelande i ${1}`,at`${0} redigerade ett inlägg`,at`Röster på ${0}`,at`${0} kommentarer`,at`Sedd av ${0} vid ${1}`,at`${0} och ${1} andra röstade i din omröstning`,at`Nytt meddelande från ${0}`,at`${0} reagerade med ${1} på ditt inlägg`,at`${0} nämnde dig i ett inlägg`,at`${0} nämnde dig i en kommentar`,at`${0} publicerade ett inlägg i ${1}`,at`${0} gillade ditt inlägg`,at`${0} nämnde dig i ett meddelande`,at`${0} reagerade med ${1} på din kommentar`,at` Öppna i ${0}
|
|
32
|
-
`,at`${0} svarade på ett inlägg`,at`${0} lade till ${1} till ${2}`,at`${0} redigerade ${1}`,at`${0} gillade ditt meddelande`,at`${0}, ${1} och ${2} röstade i din omröstning`,at`${0} reagerade med ${1} på ${2}`,at`${0} reagerade med ${1} på ditt meddelande`,at`${0} gillade din kommentar`,at`${0} skriver${1}`;var yj=Object.defineProperty,kR=h(n=>{throw TypeError(n)},"Xp"),u=h((n,t)=>yj(n,"name",{value:t,configurable:!0}),"o$1"),QS=h((n,t,e)=>t.has(n)||kR("Cannot "+e),"gh"),k=h((n,t,e)=>(QS(n,t,"read from private field"),e?e.call(n):t.get(n)),"w"),q=h((n,t,e)=>t.has(n)?kR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),"T"),z=h((n,t,e,i)=>(QS(n,t,"write to private field"),t.set(n,e),e),"P"),gt=h((n,t,e)=>(QS(n,t,"access private method"),e),"tt"),Bx=h((n,t,e,i)=>({set _(s){z(n,t,s)},get _(){return k(n,t,i)}}),"Cl");function Qw(n){return Object.prototype.toString.call(n)==="[object Object]"}h(Qw,"Ll");u(Qw,"isObject");function Mw(n){if(Qw(n)===!1)return!1;const t=n.constructor;if(t===void 0)return!0;const e=t.prototype;return!(Qw(e)===!1||Object.prototype.hasOwnProperty.call(e,"isPrototypeOf")===!1)}h(Mw,"Il");u(Mw,"isPlainObject$1");function rw(n,t,e=!1){n=n||{},t=t||{};const i={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s]);for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e&&i[s]&&Mw(i[s])&&Mw(t[s])?i[s]=rw(i[s],t[s],e):i[s]=t[s]);return i}h(rw,"Pl");u(rw,"assign");function SR(n){return n&&(Array.isArray(n)?n:[n])||[]}h(SR,"Km");u(SR,"asArray");async function PR(n,t){for(const e of n)if(await t(e))return e}h(PR,"Gm");u(PR,"findAsyncSequential");function Wc(n,t,e=!1,i=!1){if(!i&&(!Mw(n)||!Mw(t))||i&&(!Qw(n)||!Qw(t)))return!1;const s=Object.getOwnPropertyNames(n),r=Object.getOwnPropertyNames(t);if(!e&&s.length!==r.length)return!1;for(let a=0;a<s.length;a++){const o=s[a],l=n[o],c=t[o];if(l!==c&&!Wc(l,c,e))return!1}return!0}h(Wc,"wc");u(Wc,"eqObjects");function MS(n){return Object.entries(n)}h(MS,"pw");u(MS,"objectAsIterable");function A0(n){return n.charAt(0).toUpperCase()+n.substring(1).toLowerCase()}h(A0,"Tu");u(A0,"toUpperCaseFirst");const mj='\\s,.:;"',wj=new RegExp(`^|[${mj}]|$`,"g"),gj=".!?",vj=new RegExp(`^|(?<=[${gj}])|$`);function TS(n){return n.length>0?n.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").replace(/_|\s+/g,"-").toLowerCase():n}h(TS,"yw");u(TS,"toKebabCase");function CR(n,t=2){if(!n)return null;let e="";const i=n.split(wj).filter(s=>s);return i.length==1?e=i[0]:i.forEach(s=>{e+=s.charAt(0)}),e.substring(0,t).toUpperCase()}h(CR,"t1");u(CR,"getInitials");function AS(n){let t;const e=n.split(vj).filter(i=>i);return e.length?t=e[0]:t=n,t}h(AS,"ww");u(AS,"getTitleFromText");function RS(n,t=256){return n.length>t&&(n=n.substring(0,t-1)+"…"),n}h(RS,"fw");u(RS,"truncateText");const Oj={credentials:"omit",headers:{"X-Requested-With":"XMLHttpRequest"},redirect:"manual"};function Xf(){return((1+Math.random())*65536|0).toString(16).substring(1)}h(Xf,"bc");u(Xf,"S4");function QR(n){if(n&&n.ok&&n.body){const t=n.body.getReader();return new ReadableStream({start(e){const i=u(()=>t.read().then(({done:s,value:r})=>{if(s){e.close();return}return e.enqueue(r),i()}),"pump");return i()}})}else throw new Error("Could not parse text stream")}h(QR,"i1");u(QR,"getTextStreamFromResponse");function MR(n){let t;try{if(t=window[n],t){const e="__storage_test__";t.setItem(e,e),t.removeItem(e)}}catch(e){e instanceof DOMException&&e.name==="QuotaExceededError"&&t&&t.length!==0&&console.error("Storage not available:",n)}return t}h(MR,"s1");u(MR,"getStorage");var ou;const TR=(ou=class extends Error{constructor(){super("Instance destroyed"),this.name="DestroyError"}},h(ou,"xp"),ou);u(TR,"DestroyError");let Ce=TR;var FO,lu,gy=(FO=(lu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},h(lu,"Kr"),lu),u(FO,"Subscribable"),FO),Nf=typeof window>"u"||"Deno"in globalThis;function Vi(){}h(Vi,"Ge");u(Vi,"noop$1");function AR(n,t){return typeof n=="function"?n(t):n}h(AR,"r1");u(AR,"functionalUpdate");function Cv(n){return typeof n=="number"&&n>=0&&n!==1/0}h(Cv,"Th");u(Cv,"isValidTimeout");function ES(n,t){return Math.max(n+(t||0)-Date.now(),0)}h(ES,"mw");u(ES,"timeUntilStale");function Xa(n,t){return typeof n=="function"?n(t):n}h(Xa,"jr");u(Xa,"resolveStaleTime");function Ki(n,t){return typeof n=="function"?n(t):n}h(Ki,"ri");u(Ki,"resolveEnabled");function Fx(n,t){const{type:e="all",exact:i,fetchStatus:s,predicate:r,queryKey:a,stale:o}=n;if(a){if(i){if(t.queryHash!==R0(a,t.options))return!1}else if(!Hf(t.queryKey,a))return!1}if(e!=="all"){const l=t.isActive();if(e==="active"&&!l||e==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||s&&s!==t.state.fetchStatus||r&&!r(t))}h(Fx,"ey");u(Fx,"matchQuery");function Xx(n,t){const{exact:e,status:i,predicate:s,mutationKey:r}=n;if(r){if(!t.options.mutationKey)return!1;if(e){if(Kr(t.options.mutationKey)!==Kr(r))return!1}else if(!Hf(t.options.mutationKey,r))return!1}return!(i&&t.state.status!==i||s&&!s(t))}h(Xx,"iy");u(Xx,"matchMutation");function R0(n,t){return((t==null?void 0:t.queryKeyHashFn)||Kr)(n)}h(R0,"Fu");u(R0,"hashQueryKeyByOptions");function Kr(n){return JSON.stringify(n,(t,e)=>Qv(e)?Object.keys(e).sort().reduce((i,s)=>(i[s]=e[s],i),{}):e)}h(Kr,"sr");u(Kr,"hashKey");function Hf(n,t){return n===t?!0:typeof n!=typeof t?!1:n&&t&&typeof n=="object"&&typeof t=="object"?Object.keys(t).every(e=>Hf(n[e],t[e])):!1}h(Hf,"xc");u(Hf,"partialMatchKey");function vy(n,t){if(n===t)return n;const e=Nx(n)&&Nx(t);if(e||Qv(n)&&Qv(t)){const i=e?n:Object.keys(n),s=i.length,r=e?t:Object.keys(t),a=r.length,o=e?[]:{};let l=0;for(let c=0;c<a;c++){const d=e?c:r[c];(!e&&i.includes(d)||e)&&n[d]===void 0&&t[d]===void 0?(o[d]=void 0,l++):(o[d]=vy(n[d],t[d]),o[d]===n[d]&&n[d]!==void 0&&l++)}return s===a&&l===s?n:o}return t}h(vy,"cl");u(vy,"replaceEqualDeep");function Tw(n,t){if(!t||Object.keys(n).length!==Object.keys(t).length)return!1;for(const e in n)if(n[e]!==t[e])return!1;return!0}h(Tw,"Tl");u(Tw,"shallowEqualObjects");function Nx(n){return Array.isArray(n)&&n.length===Object.keys(n).length}h(Nx,"sy");u(Nx,"isPlainArray");function Qv(n){if(!Hx(n))return!1;const t=n.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!Hx(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}h(Qv,"Fh");u(Qv,"isPlainObject");function Hx(n){return Object.prototype.toString.call(n)==="[object Object]"}h(Hx,"ry");u(Hx,"hasObjectPrototype");function RR(n){return new Promise(t=>{setTimeout(t,n)})}h(RR,"n1");u(RR,"sleep");function Mv(n,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(n,t):e.structuralSharing!==!1?vy(n,t):t}h(Mv,"Dh");u(Mv,"replaceData");function ER(n,t,e=0){const i=[...n,t];return e&&i.length>e?i.slice(1):i}h(ER,"a1");u(ER,"addToEnd");function _R(n,t,e=0){const i=[t,...n];return e&&i.length>e?i.slice(0,-1):i}h(_R,"o1");u(_R,"addToStart");var _S=Symbol();function zS(n,t){return!n.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!n.queryFn||n.queryFn===_S?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}h(zS,"vw");u(zS,"ensureQueryFn");var Kl,Sa,Wy,XO,cu,bj=(XO=(cu=class extends gy{constructor(){super(),q(this,Kl),q(this,Sa),q(this,Wy),z(this,Wy,t=>{if(!Nf&&window.addEventListener){const e=u(()=>t(),"listener");return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){k(this,Sa)||this.setEventListener(k(this,Wy))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Sa))==null||t.call(this),z(this,Sa,void 0))}setEventListener(t){var e;z(this,Wy,t),(e=k(this,Sa))==null||e.call(this),z(this,Sa,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){k(this,Kl)!==t&&(z(this,Kl,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof k(this,Kl)=="boolean"?k(this,Kl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},h(cu,"Zr"),cu),Kl=new WeakMap,Sa=new WeakMap,Wy=new WeakMap,u(XO,"FocusManager"),XO),LS=new bj,Dy,Pa,qy,NO,hu,$j=(NO=(hu=class extends gy{constructor(){super(),q(this,Dy,!0),q(this,Pa),q(this,qy),z(this,qy,t=>{if(!Nf&&window.addEventListener){const e=u(()=>t(!0),"onlineListener"),i=u(()=>t(!1),"offlineListener");return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){k(this,Pa)||this.setEventListener(k(this,qy))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Pa))==null||t.call(this),z(this,Pa,void 0))}setEventListener(t){var e;z(this,qy,t),(e=k(this,Pa))==null||e.call(this),z(this,Pa,t(this.setOnline.bind(this)))}setOnline(t){k(this,Dy)!==t&&(z(this,Dy,t),this.listeners.forEach(e=>{e(t)}))}isOnline(){return k(this,Dy)}},h(hu,"Jr"),hu),Dy=new WeakMap,Pa=new WeakMap,qy=new WeakMap,u(NO,"OnlineManager"),NO),Tv=new $j;function Av(){let n,t;const e=new Promise((s,r)=>{n=s,t=r});e.status="pending",e.catch(()=>{});function i(s){Object.assign(e,s),delete e.resolve,delete e.reject}return h(i,"s"),u(i,"finalize"),e.resolve=s=>{i({status:"fulfilled",value:s}),n(s)},e.reject=s=>{i({status:"rejected",reason:s}),t(s)},e}h(Av,"Hh");u(Av,"pendingThenable");function zR(n){return Math.min(1e3*2**n,3e4)}h(zR,"d1");u(zR,"defaultRetryDelay");function IS(n){return(n??"online")==="online"?Tv.isOnline():!0}h(IS,"gw");u(IS,"canFetch");var HO,du,LR=(HO=(du=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}},h(du,"tn"),du),u(HO,"CancelledError"),HO);function g1(n){return n instanceof LR}h(g1,"bh");u(g1,"isCancelledError");function ZS(n){let t=!1,e=0,i=!1,s;const r=Av(),a=u(O=>{var x;i||(f(new LR(O)),(x=n.abort)==null||x.call(n))},"cancel"),o=u(()=>{t=!0},"cancelRetry"),l=u(()=>{t=!1},"continueRetry"),c=u(()=>LS.isFocused()&&(n.networkMode==="always"||Tv.isOnline())&&n.canRun(),"canContinue"),d=u(()=>IS(n.networkMode)&&n.canRun(),"canStart"),p=u(O=>{var x;i||(i=!0,(x=n.onSuccess)==null||x.call(n,O),s==null||s(),r.resolve(O))},"resolve"),f=u(O=>{var x;i||(i=!0,(x=n.onError)==null||x.call(n,O),s==null||s(),r.reject(O))},"reject"),m=u(()=>new Promise(O=>{var x;s=u(b=>{(i||c())&&O(b)},"continueFn"),(x=n.onPause)==null||x.call(n)}).then(()=>{var O;s=void 0,i||(O=n.onContinue)==null||O.call(n)}),"pause"),w=u(()=>{if(i)return;let O;const x=e===0?n.initialPromise:void 0;try{O=x??n.fn()}catch(b){O=Promise.reject(b)}Promise.resolve(O).then(p).catch(b=>{var P;if(i)return;const R=n.retry??(Nf?0:3),E=n.retryDelay??zR,T=typeof E=="function"?E(e,b):E,I=R===!0||typeof R=="number"&&e<R||typeof R=="function"&&R(e,b);if(t||!I){f(b);return}e++,(P=n.onFail)==null||P.call(n,e,b),RR(T).then(()=>c()?void 0:m()).then(()=>{t?f(b):w()})})},"run");return{promise:r,cancel:a,continue:u(()=>(s==null||s(),r),"continue"),cancelRetry:o,continueRetry:l,canStart:d,start:u(()=>(d()?w():m().then(w),r),"start")}}h(ZS,"xw");u(ZS,"createRetryer");var xj=u(n=>setTimeout(n,0),"defaultScheduler");function IR(){let n=[],t=0,e=u(o=>{o()},"notifyFn"),i=u(o=>{o()},"batchNotifyFn"),s=xj;const r=u(o=>{t?n.push(o):s(()=>{e(o)})},"schedule"),a=u(()=>{const o=n;n=[],o.length&&s(()=>{i(()=>{o.forEach(l=>{e(l)})})})},"flush");return{batch:u(o=>{let l;t++;try{l=o()}finally{t--,t||a()}return l},"batch"),batchCalls:u(o=>(...l)=>{r(()=>{o(...l)})},"batchCalls"),schedule:r,setNotifyFunction:u(o=>{e=o},"setNotifyFunction"),setBatchNotifyFunction:u(o=>{i=o},"setBatchNotifyFunction"),setScheduler:u(o=>{s=o},"setScheduler")}}h(IR,"u1");u(IR,"createNotifyManager");var ei=IR(),Jl,YO,uu,ZR=(YO=(uu=class{constructor(){q(this,Jl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cv(this.gcTime)&&z(this,Jl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Nf?1/0:5*60*1e3))}clearGcTimeout(){k(this,Jl)&&(clearTimeout(k(this,Jl)),z(this,Jl,void 0))}},h(uu,"en"),uu),Jl=new WeakMap,u(YO,"Removable"),YO),Uy,jy,fn,tc,di,Ug,ec,In,Os,GO,pu,kj=(GO=(pu=class extends ZR{constructor(t){super(),q(this,In),q(this,Uy),q(this,jy),q(this,fn),q(this,tc),q(this,di),q(this,Ug),q(this,ec),z(this,ec,!1),z(this,Ug,t.defaultOptions),this.setOptions(t.options),this.observers=[],z(this,tc,t.client),z(this,fn,k(this,tc).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,z(this,Uy,VR(this.options)),this.state=t.state??k(this,Uy),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,di))==null?void 0:t.promise}setOptions(t){this.options={...k(this,Ug),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,fn).remove(this)}setData(t,e){const i=Mv(this.state.data,t,this.options);return gt(this,In,Os).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){gt(this,In,Os).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var e,i;const s=(e=k(this,di))==null?void 0:e.promise;return(i=k(this,di))==null||i.cancel(t),s?s.then(Vi).catch(Vi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Uy))}isActive(){return this.observers.some(t=>Ki(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_S||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!ES(this.state.dataUpdatedAt,t)}onFocus(){var t;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=k(this,di))==null||t.continue()}onOnline(){var t;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=k(this,di))==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,fn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(k(this,di)&&(k(this,ec)?k(this,di).cancel({revert:!0}):k(this,di).cancelRetry()),this.scheduleGc()),k(this,fn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||gt(this,In,Os).call(this,{type:"invalidate"})}fetch(t,e){var i,s,r;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&e!=null&&e.cancelRefetch)this.cancel({silent:!0});else if(k(this,di))return k(this,di).continueRetry(),k(this,di).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const a=new AbortController,o=u(p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:u(()=>(z(this,ec,!0),a.signal),"get")})},"addSignalProperty"),l=u(()=>{const p=zS(this.options,e),f={client:k(this,tc),queryKey:this.queryKey,meta:this.meta};return o(f),z(this,ec,!1),this.options.persister?this.options.persister(p,f,this):p(f)},"fetchFn"),c={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:k(this,tc),state:this.state,fetchFn:l};o(c),(i=this.options.behavior)==null||i.onFetch(c,this),z(this,jy,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=c.fetchOptions)==null?void 0:s.meta))&>(this,In,Os).call(this,{type:"fetch",meta:(r=c.fetchOptions)==null?void 0:r.meta});const d=u(p=>{var f,m,w,O;g1(p)&&p.silent||gt(this,In,Os).call(this,{type:"error",error:p}),g1(p)||((m=(f=k(this,fn).config).onError)==null||m.call(f,p,this),(O=(w=k(this,fn).config).onSettled)==null||O.call(w,this.state.data,p,this)),this.scheduleGc()},"onError");return z(this,di,ZS({initialPromise:e==null?void 0:e.initialPromise,fn:c.fetchFn,abort:a.abort.bind(a),onSuccess:u(p=>{var f,m,w,O;if(p===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(x){d(x);return}(m=(f=k(this,fn).config).onSuccess)==null||m.call(f,p,this),(O=(w=k(this,fn).config).onSettled)==null||O.call(w,p,this.state.error,this),this.scheduleGc()},"onSuccess"),onError:d,onFail:u((p,f)=>{gt(this,In,Os).call(this,{type:"failed",failureCount:p,error:f})},"onFail"),onPause:u(()=>{gt(this,In,Os).call(this,{type:"pause"})},"onPause"),onContinue:u(()=>{gt(this,In,Os).call(this,{type:"continue"})},"onContinue"),retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:u(()=>!0,"canRun")})),k(this,di).start()}},h(pu,"nn"),pu),Uy=new WeakMap,jy=new WeakMap,fn=new WeakMap,tc=new WeakMap,di=new WeakMap,Ug=new WeakMap,ec=new WeakMap,In=new WeakSet,Os=u(function(n){const t=u(e=>{switch(n.type){case"failed":return{...e,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...VS(e.data,this.options),fetchMeta:n.meta??null};case"success":return{...e,data:n.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=n.error;return g1(i)&&i.revert&&k(this,jy)?{...k(this,jy),fetchStatus:"idle"}:{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...n.state}}},"reducer");this.state=t(this.state),ei.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),k(this,fn).notify({query:this,type:"updated",action:n})})},"#dispatch"),u(GO,"Query"),GO);function VS(n,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:IS(t.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}h(VS,"Cw");u(VS,"fetchState");function VR(n){const t=typeof n.initialData=="function"?n.initialData():n.initialData,e=t!==void 0,i=e?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}h(VR,"y1");u(VR,"getDefaultState$1");var bs,KO,fu,Sj=(KO=(fu=class extends gy{constructor(t={}){super(),q(this,bs),this.config=t,z(this,bs,new Map)}build(t,e,i){const s=e.queryKey,r=e.queryHash??R0(s,e);let a=this.get(r);return a||(a=new kj({client:t,queryKey:s,queryHash:r,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){k(this,bs).has(t.queryHash)||(k(this,bs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=k(this,bs).get(t.queryHash);e&&(t.destroy(),e===t&&k(this,bs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ei.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,bs).get(t)}getAll(){return[...k(this,bs).values()]}find(t){const e={exact:!0,...t};return this.getAll().find(i=>Fx(e,i))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(i=>Fx(t,i)):e}notify(t){ei.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){ei.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ei.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},h(fu,"an"),fu),bs=new WeakMap,u(KO,"QueryCache"),KO),$s,$i,ic,xs,sr,JO,yu,Pj=(JO=(yu=class extends ZR{constructor(t){super(),q(this,xs),q(this,$s),q(this,$i),q(this,ic),this.mutationId=t.mutationId,z(this,$i,t.mutationCache),z(this,$s,[]),this.state=t.state||WS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,$s).includes(t)||(k(this,$s).push(t),this.clearGcTimeout(),k(this,$i).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){z(this,$s,k(this,$s).filter(e=>e!==t)),this.scheduleGc(),k(this,$i).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,$s).length||(this.state.status==="pending"?this.scheduleGc():k(this,$i).remove(this))}continue(){var t;return((t=k(this,ic))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var e,i,s,r,a,o,l,c,d,p,f,m,w,O,x,b,P,R,E,T;const I=u(()=>{gt(this,xs,sr).call(this,{type:"continue"})},"onContinue");z(this,ic,ZS({fn:u(()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),"fn"),onFail:u((B,tt)=>{gt(this,xs,sr).call(this,{type:"failed",failureCount:B,error:tt})},"onFail"),onPause:u(()=>{gt(this,xs,sr).call(this,{type:"pause"})},"onPause"),onContinue:I,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:u(()=>k(this,$i).canRun(this),"canRun")}));const Z=this.state.status==="pending",U=!k(this,ic).canStart();try{if(Z)I();else{gt(this,xs,sr).call(this,{type:"pending",variables:t,isPaused:U}),await((i=(e=k(this,$i).config).onMutate)==null?void 0:i.call(e,t,this));const tt=await((r=(s=this.options).onMutate)==null?void 0:r.call(s,t));tt!==this.state.context&>(this,xs,sr).call(this,{type:"pending",context:tt,variables:t,isPaused:U})}const B=await k(this,ic).start();return await((o=(a=k(this,$i).config).onSuccess)==null?void 0:o.call(a,B,t,this.state.context,this)),await((c=(l=this.options).onSuccess)==null?void 0:c.call(l,B,t,this.state.context)),await((p=(d=k(this,$i).config).onSettled)==null?void 0:p.call(d,B,null,this.state.variables,this.state.context,this)),await((m=(f=this.options).onSettled)==null?void 0:m.call(f,B,null,t,this.state.context)),gt(this,xs,sr).call(this,{type:"success",data:B}),B}catch(B){try{throw await((O=(w=k(this,$i).config).onError)==null?void 0:O.call(w,B,t,this.state.context,this)),await((b=(x=this.options).onError)==null?void 0:b.call(x,B,t,this.state.context)),await((R=(P=k(this,$i).config).onSettled)==null?void 0:R.call(P,void 0,B,this.state.variables,this.state.context,this)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,void 0,B,t,this.state.context)),B}finally{gt(this,xs,sr).call(this,{type:"error",error:B})}}finally{k(this,$i).runNext(this)}}},h(yu,"on"),yu),$s=new WeakMap,$i=new WeakMap,ic=new WeakMap,xs=new WeakSet,sr=u(function(n){const t=u(e=>{switch(n.type){case"failed":return{...e,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...e,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:n.error,failureCount:e.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}},"reducer");this.state=t(this.state),ei.batch(()=>{k(this,$s).forEach(e=>{e.onMutationUpdate(n)}),k(this,$i).notify({mutation:this,type:"updated",action:n})})},"#dispatch"),u(JO,"Mutation"),JO);function WS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}h(WS,"kw");u(WS,"getDefaultState");var rr,Zn,jg,tb,mu,Cj=(tb=(mu=class extends gy{constructor(t={}){super(),q(this,rr),q(this,Zn),q(this,jg),this.config=t,z(this,rr,new Set),z(this,Zn,new Map),z(this,jg,0)}build(t,e,i){const s=new Pj({mutationCache:this,mutationId:++Bx(this,jg)._,options:t.defaultMutationOptions(e),state:i});return this.add(s),s}add(t){k(this,rr).add(t);const e=mm(t);if(typeof e=="string"){const i=k(this,Zn).get(e);i?i.push(t):k(this,Zn).set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,rr).delete(t)){const e=mm(t);if(typeof e=="string"){const i=k(this,Zn).get(e);if(i)if(i.length>1){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}else i[0]===t&&k(this,Zn).delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=mm(t);if(typeof e=="string"){const i=k(this,Zn).get(e),s=i==null?void 0:i.find(r=>r.state.status==="pending");return!s||s===t}else return!0}runNext(t){var e;const i=mm(t);if(typeof i=="string"){const s=(e=k(this,Zn).get(i))==null?void 0:e.find(r=>r!==t&&r.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ei.batch(()=>{k(this,rr).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,rr).clear(),k(this,Zn).clear()})}getAll(){return Array.from(k(this,rr))}find(t){const e={exact:!0,...t};return this.getAll().find(i=>Xx(e,i))}findAll(t={}){return this.getAll().filter(e=>Xx(t,e))}notify(t){ei.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return ei.batch(()=>Promise.all(t.map(e=>e.continue().catch(Vi))))}},h(mu,"cn"),mu),rr=new WeakMap,Zn=new WeakMap,jg=new WeakMap,u(tb,"MutationCache"),tb);function mm(n){var t;return(t=n.options.scope)==null?void 0:t.id}h(mm,"kl");u(mm,"scopeFor");function Aw(n){return{onFetch:u((t,e)=>{var i,s,r,a,o;const l=t.options,c=(r=(s=(i=t.fetchOptions)==null?void 0:i.meta)==null?void 0:s.fetchMore)==null?void 0:r.direction,d=((a=t.state.data)==null?void 0:a.pages)||[],p=((o=t.state.data)==null?void 0:o.pageParams)||[];let f={pages:[],pageParams:[]},m=0;const w=u(async()=>{let O=!1;const x=u(R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:u(()=>(t.signal.aborted?O=!0:t.signal.addEventListener("abort",()=>{O=!0}),t.signal),"get")})},"addSignalProperty"),b=zS(t.options,t.fetchOptions),P=u(async(R,E,T)=>{if(O)return Promise.reject();if(E==null&&R.pages.length)return Promise.resolve(R);const I={client:t.client,queryKey:t.queryKey,pageParam:E,direction:T?"backward":"forward",meta:t.options.meta};x(I);const Z=await b(I),{maxPages:U}=t.options,B=T?_R:ER;return{pages:B(R.pages,Z,U),pageParams:B(R.pageParams,E,U)}},"fetchPage");if(c&&d.length){const R=c==="backward",E=R?DS:Rv,T={pages:d,pageParams:p},I=E(l,T);f=await P(T,I,R)}else{const R=n??d.length;do{const E=m===0?p[0]??l.initialPageParam:Rv(l,f);if(m>0&&E==null)break;f=await P(f,E),m++}while(m<R)}return f},"fetchFn");t.options.persister?t.fetchFn=()=>{var O,x;return(x=(O=t.options).persister)==null?void 0:x.call(O,w,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=w},"onFetch")}}h(Aw,"Dl");u(Aw,"infiniteQueryBehavior");function Rv(n,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?n.getNextPageParam(t[i],t,e[i],e):void 0}h(Rv,"Vh");u(Rv,"getNextPageParam");function DS(n,{pages:t,pageParams:e}){var i;return t.length>0?(i=n.getPreviousPageParam)==null?void 0:i.call(n,t[0],t,e[0],e):void 0}h(DS,"_w");u(DS,"getPreviousPageParam");function WR(n,t){return t?Rv(n,t)!=null:!1}h(WR,"v1");u(WR,"hasNextPage");function DR(n,t){return!t||!n.getPreviousPageParam?!1:DS(n,t)!=null}h(DR,"g1");u(DR,"hasPreviousPage");var ge,Ca,Qa,By,Fy,Ma,Xy,Ny,eb,wu,Qj=(eb=(wu=class{constructor(t={}){q(this,ge),q(this,Ca),q(this,Qa),q(this,By),q(this,Fy),q(this,Ma),q(this,Xy),q(this,Ny),z(this,ge,t.queryCache||new Sj),z(this,Ca,t.mutationCache||new Cj),z(this,Qa,t.defaultOptions||{}),z(this,By,new Map),z(this,Fy,new Map),z(this,Ma,0)}mount(){Bx(this,Ma)._++,k(this,Ma)===1&&(z(this,Xy,LS.subscribe(async t=>{t&&(await this.resumePausedMutations(),k(this,ge).onFocus())})),z(this,Ny,Tv.subscribe(async t=>{t&&(await this.resumePausedMutations(),k(this,ge).onOnline())})))}unmount(){var t,e;Bx(this,Ma)._--,k(this,Ma)===0&&((t=k(this,Xy))==null||t.call(this),z(this,Xy,void 0),(e=k(this,Ny))==null||e.call(this),z(this,Ny,void 0))}isFetching(t){return k(this,ge).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return k(this,Ca).findAll({...t,status:"pending"}).length}getQueryData(t){var e;const i=this.defaultQueryOptions({queryKey:t});return(e=k(this,ge).get(i.queryHash))==null?void 0:e.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),i=k(this,ge).build(this,e),s=i.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(Xa(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(t){return k(this,ge).findAll(t).map(({queryKey:e,state:i})=>{const s=i.data;return[e,s]})}setQueryData(t,e,i){const s=this.defaultQueryOptions({queryKey:t}),r=k(this,ge).get(s.queryHash),a=r==null?void 0:r.state.data,o=AR(e,a);if(o!==void 0)return k(this,ge).build(this,s).setData(o,{...i,manual:!0})}setQueriesData(t,e,i){return ei.batch(()=>k(this,ge).findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,e,i)]))}getQueryState(t){var e;const i=this.defaultQueryOptions({queryKey:t});return(e=k(this,ge).get(i.queryHash))==null?void 0:e.state}removeQueries(t){const e=k(this,ge);ei.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=k(this,ge);return ei.batch(()=>(i.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const i={revert:!0,...e},s=ei.batch(()=>k(this,ge).findAll(t).map(r=>r.cancel(i)));return Promise.all(s).then(Vi).catch(Vi)}invalidateQueries(t,e={}){return ei.batch(()=>(k(this,ge).findAll(t).forEach(i=>{i.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const i={...e,cancelRefetch:e.cancelRefetch??!0},s=ei.batch(()=>k(this,ge).findAll(t).filter(r=>!r.isDisabled()).map(r=>{let a=r.fetch(void 0,i);return i.throwOnError||(a=a.catch(Vi)),r.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(s).then(Vi)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=k(this,ge).build(this,e);return i.isStaleByTime(Xa(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Vi).catch(Vi)}fetchInfiniteQuery(t){return t.behavior=Aw(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Vi).catch(Vi)}ensureInfiniteQueryData(t){return t.behavior=Aw(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Tv.isOnline()?k(this,Ca).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,ge)}getMutationCache(){return k(this,Ca)}getDefaultOptions(){return k(this,Qa)}setDefaultOptions(t){z(this,Qa,t)}setQueryDefaults(t,e){k(this,By).set(Kr(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...k(this,By).values()],i={};return e.forEach(s=>{Hf(t,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(t,e){k(this,Fy).set(Kr(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...k(this,Fy).values()],i={};return e.forEach(s=>{Hf(t,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...k(this,Qa).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=R0(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===_S&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...k(this,Qa).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){k(this,ge).clear(),k(this,Ca).clear()}},h(wu,"pn"),wu),ge=new WeakMap,Ca=new WeakMap,Qa=new WeakMap,By=new WeakMap,Fy=new WeakMap,Ma=new WeakMap,Xy=new WeakMap,Ny=new WeakMap,u(eb,"QueryClient"),eb),Li,Lt,Bg,xi,nc,Hy,Ta,Aa,Fg,Yy,Gy,sc,rc,Ra,Ky,ve,Jy,ib,nb,sb,rb,ab,ob,lb,a3,cb,gu,qR=(cb=(gu=class extends gy{constructor(t,e){super(),q(this,ve),q(this,Li),q(this,Lt),q(this,Bg),q(this,xi),q(this,nc),q(this,Hy),q(this,Ta),q(this,Aa),q(this,Fg),q(this,Yy),q(this,Gy),q(this,sc),q(this,rc),q(this,Ra),q(this,Ky,new Set),this.options=e,z(this,Li,t),z(this,Aa,null),z(this,Ta,Av()),this.options.experimental_prefetchInRender||k(this,Ta).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,Lt).addObserver(this),Yx(k(this,Lt),this.options)?gt(this,ve,Jy).call(this):this.updateResult(),gt(this,ve,rb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ev(k(this,Lt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ev(k(this,Lt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,gt(this,ve,ab).call(this),gt(this,ve,ob).call(this),k(this,Lt).removeObserver(this)}setOptions(t){const e=this.options,i=k(this,Lt);if(this.options=k(this,Li).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ki(this.options.enabled,k(this,Lt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");gt(this,ve,lb).call(this),k(this,Lt).setOptions(this.options),e._defaulted&&!Tw(this.options,e)&&k(this,Li).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,Lt),observer:this});const s=this.hasListeners();s&&Gx(k(this,Lt),i,this.options,e)&>(this,ve,Jy).call(this),this.updateResult(),s&&(k(this,Lt)!==i||Ki(this.options.enabled,k(this,Lt))!==Ki(e.enabled,k(this,Lt))||Xa(this.options.staleTime,k(this,Lt))!==Xa(e.staleTime,k(this,Lt)))&>(this,ve,ib).call(this);const r=gt(this,ve,nb).call(this);s&&(k(this,Lt)!==i||Ki(this.options.enabled,k(this,Lt))!==Ki(e.enabled,k(this,Lt))||r!==k(this,Ra))&>(this,ve,sb).call(this,r)}getOptimisticResult(t){const e=k(this,Li).getQueryCache().build(k(this,Li),t),i=this.createResult(e,t);return jR(this,i)&&(z(this,xi,i),z(this,Hy,this.options),z(this,nc,k(this,Lt).state)),i}getCurrentResult(){return k(this,xi)}trackResult(t,e){return new Proxy(t,{get:u((i,s)=>(this.trackProp(s),e==null||e(s),Reflect.get(i,s)),"get")})}trackProp(t){k(this,Ky).add(t)}getCurrentQuery(){return k(this,Lt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=k(this,Li).defaultQueryOptions(t),i=k(this,Li).getQueryCache().build(k(this,Li),e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return gt(this,ve,Jy).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,xi)))}createResult(t,e){var i;const s=k(this,Lt),r=this.options,a=k(this,xi),o=k(this,nc),l=k(this,Hy),c=t!==s?t.state:k(this,Bg),{state:d}=t;let p={...d},f=!1,m;if(e._optimisticResults){const U=this.hasListeners(),B=!U&&Yx(t,e),tt=U&&Gx(t,s,e,r);(B||tt)&&(p={...p,...VS(d.data,t.options)}),e._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:O,status:x}=p;m=p.data;let b=!1;if(e.placeholderData!==void 0&&m===void 0&&x==="pending"){let U;a!=null&&a.isPlaceholderData&&e.placeholderData===(l==null?void 0:l.placeholderData)?(U=a.data,b=!0):U=typeof e.placeholderData=="function"?e.placeholderData((i=k(this,Gy))==null?void 0:i.state.data,k(this,Gy)):e.placeholderData,U!==void 0&&(x="success",m=Mv(a==null?void 0:a.data,U,e),f=!0)}if(e.select&&m!==void 0&&!b)if(a&&m===(o==null?void 0:o.data)&&e.select===k(this,Fg))m=k(this,Yy);else try{z(this,Fg,e.select),m=e.select(m),m=Mv(a==null?void 0:a.data,m,e),z(this,Yy,m),z(this,Aa,null)}catch(U){z(this,Aa,U)}k(this,Aa)&&(w=k(this,Aa),m=k(this,Yy),O=Date.now(),x="error");const P=p.fetchStatus==="fetching",R=x==="pending",E=x==="error",T=R&&P,I=m!==void 0,Z={status:x,fetchStatus:p.fetchStatus,isPending:R,isSuccess:x==="success",isError:E,isInitialLoading:T,isLoading:T,data:m,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:O,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>c.dataUpdateCount||p.errorUpdateCount>c.errorUpdateCount,isFetching:P,isRefetching:P&&!R,isLoadingError:E&&!I,isPaused:p.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:E&&I,isStale:E0(t,e),refetch:this.refetch,promise:k(this,Ta)};if(this.options.experimental_prefetchInRender){const U=u(K=>{Z.status==="error"?K.reject(Z.error):Z.data!==void 0&&K.resolve(Z.data)},"finalizeThenableIfPossible"),B=u(()=>{const K=z(this,Ta,Z.promise=Av());U(K)},"recreateThenable"),tt=k(this,Ta);switch(tt.status){case"pending":t.queryHash===s.queryHash&&U(tt);break;case"fulfilled":(Z.status==="error"||Z.data!==tt.value)&&B();break;case"rejected":(Z.status!=="error"||Z.error!==tt.reason)&&B();break}}return Z}updateResult(){const t=k(this,xi),e=this.createResult(k(this,Lt),this.options);if(z(this,nc,k(this,Lt).state),z(this,Hy,this.options),k(this,nc).data!==void 0&&z(this,Gy,k(this,Lt)),Tw(e,t))return;z(this,xi,e);const i=u(()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,r=typeof s=="function"?s():s;if(r==="all"||!r&&!k(this,Ky).size)return!0;const a=new Set(r??k(this,Ky));return this.options.throwOnError&&a.add("error"),Object.keys(k(this,xi)).some(o=>{const l=o;return k(this,xi)[l]!==t[l]&&a.has(l)})},"shouldNotifyListeners");gt(this,ve,a3).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&>(this,ve,rb).call(this)}},h(gu,"vn"),gu),Li=new WeakMap,Lt=new WeakMap,Bg=new WeakMap,xi=new WeakMap,nc=new WeakMap,Hy=new WeakMap,Ta=new WeakMap,Aa=new WeakMap,Fg=new WeakMap,Yy=new WeakMap,Gy=new WeakMap,sc=new WeakMap,rc=new WeakMap,Ra=new WeakMap,Ky=new WeakMap,ve=new WeakSet,Jy=u(function(n){gt(this,ve,lb).call(this);let t=k(this,Lt).fetch(this.options,n);return n!=null&&n.throwOnError||(t=t.catch(Vi)),t},"#executeFetch"),ib=u(function(){gt(this,ve,ab).call(this);const n=Xa(this.options.staleTime,k(this,Lt));if(Nf||k(this,xi).isStale||!Cv(n))return;const t=ES(k(this,xi).dataUpdatedAt,n)+1;z(this,sc,setTimeout(()=>{k(this,xi).isStale||this.updateResult()},t))},"#updateStaleTimeout"),nb=u(function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,Lt)):this.options.refetchInterval)??!1},"#computeRefetchInterval"),sb=u(function(n){gt(this,ve,ob).call(this),z(this,Ra,n),!(Nf||Ki(this.options.enabled,k(this,Lt))===!1||!Cv(k(this,Ra))||k(this,Ra)===0)&&z(this,rc,setInterval(()=>{(this.options.refetchIntervalInBackground||LS.isFocused())&>(this,ve,Jy).call(this)},k(this,Ra)))},"#updateRefetchInterval"),rb=u(function(){gt(this,ve,ib).call(this),gt(this,ve,sb).call(this,gt(this,ve,nb).call(this))},"#updateTimers"),ab=u(function(){k(this,sc)&&(clearTimeout(k(this,sc)),z(this,sc,void 0))},"#clearStaleTimeout"),ob=u(function(){k(this,rc)&&(clearInterval(k(this,rc)),z(this,rc,void 0))},"#clearRefetchInterval"),lb=u(function(){const n=k(this,Li).getQueryCache().build(k(this,Li),this.options);if(n===k(this,Lt))return;const t=k(this,Lt);z(this,Lt,n),z(this,Bg,n.state),this.hasListeners()&&(t==null||t.removeObserver(this),n.addObserver(this))},"#updateQuery"),a3=u(function(n){ei.batch(()=>{n.listeners&&this.listeners.forEach(t=>{t(k(this,xi))}),k(this,Li).getQueryCache().notify({query:k(this,Lt),type:"observerResultsUpdated"})})},"#notify"),u(cb,"QueryObserver"),cb);function UR(n,t){return Ki(t.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&t.retryOnMount===!1)}h(UR,"x1");u(UR,"shouldLoadOnMount");function Yx(n,t){return UR(n,t)||n.state.data!==void 0&&Ev(n,t,t.refetchOnMount)}h(Yx,"ny");u(Yx,"shouldFetchOnMount");function Ev(n,t,e){if(Ki(t.enabled,n)!==!1){const i=typeof e=="function"?e(n):e;return i==="always"||i!==!1&&E0(n,t)}return!1}h(Ev,"Kh");u(Ev,"shouldFetchOn");function Gx(n,t,e,i){return(n!==t||Ki(i.enabled,n)===!1)&&(!e.suspense||n.state.status!=="error")&&E0(n,e)}h(Gx,"ay");u(Gx,"shouldFetchOptionally");function E0(n,t){return Ki(t.enabled,n)!==!1&&n.isStaleByTime(Xa(t.staleTime,n))}h(E0,"Vu");u(E0,"isStale");function jR(n,t){return!Tw(n.getCurrentResult(),t)}h(jR,"$1");u(jR,"shouldAssignObserverCurrentProperties");var hb,vu,Mj=(hb=(vu=class extends qR{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:Aw()})}getOptimisticResult(t){return t.behavior=Aw(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){var i,s;const{state:r}=t,a=super.createResult(t,e),{isFetching:o,isRefetching:l,isError:c,isRefetchError:d}=a,p=(s=(i=r.fetchMeta)==null?void 0:i.fetchMore)==null?void 0:s.direction,f=c&&p==="forward",m=o&&p==="forward",w=c&&p==="backward",O=o&&p==="backward";return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:WR(e,r.data),hasPreviousPage:DR(e,r.data),isFetchNextPageError:f,isFetchingNextPage:m,isFetchPreviousPageError:w,isFetchingPreviousPage:O,isRefetchError:d&&!f&&!w,isRefetching:l&&!m&&!O}}},h(vu,"gn"),vu),u(hb,"InfiniteQueryObserver"),hb),Ea,_a,Ii,ar,za,Xg,db,ub,Ou,jt=(ub=(Ou=class extends gy{constructor(t,e){super(),q(this,za),q(this,Ea),q(this,_a),q(this,Ii),q(this,ar),z(this,Ea,t),this.setOptions(e),this.bindMethods(),gt(this,za,Xg).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;const i=this.options;this.options=k(this,Ea).defaultMutationOptions(t),Tw(this.options,i)||k(this,Ea).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Ii),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Kr(i.mutationKey)!==Kr(this.options.mutationKey)?this.reset():((e=k(this,Ii))==null?void 0:e.state.status)==="pending"&&k(this,Ii).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=k(this,Ii))==null||t.removeObserver(this)}onMutationUpdate(t){gt(this,za,Xg).call(this),gt(this,za,db).call(this,t)}getCurrentResult(){return k(this,_a)}reset(){var t;(t=k(this,Ii))==null||t.removeObserver(this),z(this,Ii,void 0),gt(this,za,Xg).call(this),gt(this,za,db).call(this)}mutate(t,e){var i;return z(this,ar,e),(i=k(this,Ii))==null||i.removeObserver(this),z(this,Ii,k(this,Ea).getMutationCache().build(k(this,Ea),this.options)),k(this,Ii).addObserver(this),k(this,Ii).execute(t)}},h(Ou,"bn"),Ou),Ea=new WeakMap,_a=new WeakMap,Ii=new WeakMap,ar=new WeakMap,za=new WeakSet,Xg=u(function(){var n;const t=((n=k(this,Ii))==null?void 0:n.state)??WS();z(this,_a,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},"#updateResult"),db=u(function(n){ei.batch(()=>{var t,e,i,s,r,a,o,l;if(k(this,ar)&&this.hasListeners()){const c=k(this,_a).variables,d=k(this,_a).context;(n==null?void 0:n.type)==="success"?((e=(t=k(this,ar)).onSuccess)==null||e.call(t,n.data,c,d),(s=(i=k(this,ar)).onSettled)==null||s.call(i,n.data,null,c,d)):(n==null?void 0:n.type)==="error"&&((a=(r=k(this,ar)).onError)==null||a.call(r,n.error,c,d),(l=(o=k(this,ar)).onSettled)==null||l.call(o,void 0,n.error,c,d))}this.listeners.forEach(c=>{c(k(this,_a))})})},"#notify"),u(ub,"MutationObserver"),ub);function qS(n){return n}h(qS,"Pw");u(qS,"defaultTransformerFn");function BR(n){return{mutationKey:n.options.mutationKey,state:n.state,...n.options.scope&&{scope:n.options.scope},...n.meta&&{meta:n.meta}}}h(BR,"k1");u(BR,"dehydrateMutation");function FR(n,t,e){var i;return{state:{...n.state,...n.state.data!==void 0&&{data:t(n.state.data)}},queryKey:n.queryKey,queryHash:n.queryHash,...n.state.status==="pending"&&{promise:(i=n.promise)==null?void 0:i.then(t).catch(s=>e(s)?Promise.reject(new Error("redacted")):Promise.reject(s))},...n.meta&&{meta:n.meta}}}h(FR,"_1");u(FR,"dehydrateQuery");function XR(n){return n.state.isPaused}h(XR,"M1");u(XR,"defaultShouldDehydrateMutation");function NR(n){return n.state.status==="success"}h(NR,"z1");u(NR,"defaultShouldDehydrateQuery");function HR(n){return!0}h(HR,"P1");u(HR,"defaultShouldRedactErrors");function YR(n,t={}){var e,i,s,r;const a=t.shouldDehydrateMutation??((e=n.getDefaultOptions().dehydrate)==null?void 0:e.shouldDehydrateMutation)??XR,o=n.getMutationCache().getAll().flatMap(f=>a(f)?[BR(f)]:[]),l=t.shouldDehydrateQuery??((i=n.getDefaultOptions().dehydrate)==null?void 0:i.shouldDehydrateQuery)??NR,c=t.shouldRedactErrors??((s=n.getDefaultOptions().dehydrate)==null?void 0:s.shouldRedactErrors)??HR,d=t.serializeData??((r=n.getDefaultOptions().dehydrate)==null?void 0:r.serializeData)??qS,p=n.getQueryCache().getAll().flatMap(f=>l(f)?[FR(f,d,c)]:[]);return{mutations:o,queries:p}}h(YR,"S1");u(YR,"dehydrate");function GR(n,t,e){var i;if(typeof t!="object"||t===null)return;const s=n.getMutationCache(),r=n.getQueryCache(),a=((i=n.getDefaultOptions().hydrate)==null?void 0:i.deserializeData)??qS,o=t.mutations||[],l=t.queries||[];o.forEach(({state:c,...d})=>{var p,f;s.build(n,{...(p=n.getDefaultOptions().hydrate)==null?void 0:p.mutations,...(f=e==null?void 0:e.defaultOptions)==null?void 0:f.mutations,...d},c)}),l.forEach(({queryKey:c,state:d,queryHash:p,meta:f,promise:m})=>{var w,O;let x=r.get(p);const b=d.data===void 0?d.data:a(d.data);if(x){if(x.state.dataUpdatedAt<d.dataUpdatedAt){const{fetchStatus:P,...R}=d;x.setState({...R,data:b})}}else x=r.build(n,{...(w=n.getDefaultOptions().hydrate)==null?void 0:w.queries,...(O=e==null?void 0:e.defaultOptions)==null?void 0:O.queries,queryKey:c,queryHash:p,meta:f},{...d,data:b,fetchStatus:"idle"});if(m){const P=Promise.resolve(m).then(a);x.fetch(void 0,{initialPromise:P})}})}h(GR,"A1");u(GR,"hydrate");var Pt=(n=>(n.Chat="d65dd4bc-418e-403c-9f56-f9cf4da931ed",n.Comments="88f96a08-c6c1-4eac-a0bd-5bf8fba1a3fd",n.Files="523edd88-4bbf-4547-b60f-2859a6d2ddc1",n.Posts="5ebfa152-de85-48da-82dd-30a1b560c313",n.ChatRoom="edb400ac-839b-45a7-b2a8-6a01820d1c44",n.PrivateChat="7e14f418-8f15-46f4-b182-f619b671e470",n.AgentChat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",n))(Pt||{}),vn=(n=>(n.Chat="chat",n.Comments="comments",n.Files="files",n.Posts="posts",n.ChatRoom="chat_room",n.PrivateChat="private_chat",n.AgentChat="agent_chat",n))(vn||{}),KR=(n=>(n["d65dd4bc-418e-403c-9f56-f9cf4da931ed"]="chat",n["88f96a08-c6c1-4eac-a0bd-5bf8fba1a3fd"]="comments",n["523edd88-4bbf-4547-b60f-2859a6d2ddc1"]="files",n["5ebfa152-de85-48da-82dd-30a1b560c313"]="posts",n["edb400ac-839b-45a7-b2a8-6a01820d1c44"]="chat_room",n["7e14f418-8f15-46f4-b182-f619b671e470"]="private_chat",n["2352a1c6-abc6-420e-8b85-ca7d5aed8779"]="agent_chat",n))(KR||{}),JR=(n=>(n.chat="d65dd4bc-418e-403c-9f56-f9cf4da931ed",n.comments="88f96a08-c6c1-4eac-a0bd-5bf8fba1a3fd",n.files="523edd88-4bbf-4547-b60f-2859a6d2ddc1",n.posts="5ebfa152-de85-48da-82dd-30a1b560c313",n.chat_room="edb400ac-839b-45a7-b2a8-6a01820d1c44",n.private_chat="7e14f418-8f15-46f4-b182-f619b671e470",n.agent_chat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",n))(JR||{}),tE=(n=>(n["2352a1c6-abc6-420e-8b85-ca7d5aed8779"]="agent_chat",n))(tE||{}),eE=(n=>(n.agent_chat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",n))(eE||{}),nn=(n=>(n.Unknown="unknown",n))(nn||{}),pr=(n=>(n.None="none",n.Read="read",n.Write="write",n.Admin="admin",n))(pr||{}),jo=(n=>(n.List="list",n.Read="read",n.Create="create",n.Update="update",n.Delete="delete",n.Admin="admin",n))(jo||{}),li=(n=>(n.App="app",n.File="file",n.Message="message",n.User="user",n.Comment="comment",n.Post="post",n))(li||{});function Jr(n,t,e,i,s,r="GET"){return{queryKey:t,queryFn:u(async()=>{const a=await n.fetch(e||"/api/"+t.join("/"),{method:r,body:s});if(a.ok)return await a.json();throw new Error(`Error calling ${e||"/api/"+t.join("/")}`)},"queryFn"),...i}}h(Jr,"nr");u(Jr,"getApiOptions");async function _v(n,t,e,i,s,r="GET",a=!1){const o=n.queryClient,l=Jr(n,t,e,i,s,r);return a?(l.staleTime=1,await o.fetchQuery(l)):await o.ensureQueryData(l)}h(_v,"Zh");u(_v,"getApi");function iE(n,t,e=nn.Unknown,i){return e===nn.Unknown||typeof t=="number"?_v(n,["apps",t]):_v(n,["apps",t],void 0,void 0,JSON.stringify({type:e,...i}),"PUT")}h(iE,"E1");u(iE,"getApp");function nE(n,t,e=nn.Unknown,i,s){return{queryKey:["apps",t],queryFn:u(async()=>{const r=[];e===nn.Unknown||typeof t=="number"?r.push(n.fetch(`/api/apps/${t}`)):r.push(n.fetch(`/api/apps/${t}`,{method:"PUT",body:JSON.stringify({uid:t,type:e,members:i,...s})}));const a=(await Promise.allSettled(r)).findLast(l=>{var c;return l.status==="fulfilled"&&((c=l.value)==null?void 0:c.ok)}),o=(a==null?void 0:a.status)==="fulfilled"&&a.value;if(o)return await o.json();throw new Error(`Error getting or creating app ${t}`)},"queryFn")}}h(nE,"O1");u(nE,"getOrCreateAppOptions");function sE(n){return{mutationFn:u(async({name:t,members:e,type:i,uid:s})=>await(await n.fetch("/api/apps",{method:"POST",body:JSON.stringify({name:t,members:e,type:i,uid:s})})).json(),"mutationFn"),onSettled:u(async()=>{await n.queryClient.invalidateQueries({queryKey:["apps"]})},"onSettled")}}h(sE,"R1");u(sE,"getCreateAppMutationOptions");function US(n){return new jt(n.queryClient,sE(n))}h(US,"Rw");u(US,"getCreateAppMutation");function jS(n,t){const e=n.queryClient,i=["apps",t.uid||t.id];return{mutationFn:u(async({subscribe:s})=>{if(t.id>=1){const r=await n.fetch(`/api/apps/${t.id}/${s?"subscribe":"unsubscribe"}`,{method:"POST"});if(!r.ok)throw await r.json()}else throw new Error(`Could not subscribe to app ${t.uid||t.id}.`)},"mutationFn"),onMutate:u(s=>{let r;return e.setQueryData(i,a=>(r=a.is_subscribed,{...a,is_subscribed:s.subscribe})),{previousSubscribe:r,subscribe:s.subscribe}},"onMutate"),onError(s,r,a){a&&a.previousSubscribe!==void 0&&e.setQueryData(i,o=>({...o,is_subscribed:a==null?void 0:a.previousSubscribe}))}}}h(jS,"Lw");u(jS,"getAppSubscribeMutationOptions");function rE(n,t=[Pt.ChatRoom,Pt.PrivateChat],e,i={}){const s=new URLSearchParams({count_only:"true",unread:"true"});e&&s.append("member",e),t==null||t.forEach(a=>s.append("type",a));const r=`/api/apps?${s.toString()}`;return Jr(n,["apps","badge",t],r,i)}h(rE,"L1");u(rE,"getBadgeOptions$1");function aE(n,t={},e,i,s,r,a){return{...t,initialPageParam:0,queryKey:["apps","list",e,i,r,a],queryFn:u(async o=>{var l;const c=new URLSearchParams;i&&c.append("member",i),o.pageParam&&typeof o.pageParam=="number"&&c.append("skip",(l=o.pageParam)==null?void 0:l.toString()),e==null||e.forEach(m=>c.append("type",m)),c.append("order_by",r);const d=s==null?void 0:s();d&&c.append("q",d),c.append("uid","false");const p=`/api/apps?${c.toString()}`,f=await(await n.fetch(p)).json();return f.data=f.data||[],f},"queryFn"),getNextPageParam:u(o=>{if(o.end&&(o==null?void 0:o.end)<(o==null?void 0:o.count))return o.end},"getNextPageParam")}}h(aE,"I1");u(aE,"getAppListOptions");const Tj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s);const r=this;this.api={apps:{async getApp(a){return await iE(r,a)}}}}},h(e,"t"),e),u(t,"WeavyApi"),t},"WeavyApiMixin"),Aj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._whenTokenFactory=new Promise(r=>{this._resolveTokenFactory=r}),this._whenUrlAndTokenFactory=new Promise(r=>{this._resolveUrlAndTokenFactory=r}),this._whenTokenIsValid=new Promise(r=>{this._resolveTokenIsValid=r}),this._tokenPromise=null,this._token="",this._validTokenFromFactory=async(r=!1)=>{var a,o;const l=[this.whenTokenFactory()];this.tokenFactoryRetryDelay!==1/0&&l.push(new Promise(d=>setTimeout(d,this.tokenFactoryRetryDelay))),await Promise.race(l);const c=await((a=this.tokenFactory)==null?void 0:a.call(this,r))??"";if(this._validateToken(c)){if(r&&c===this._token&&this.tokenFactoryRetryDelay!==1/0)return await new Promise(d=>setTimeout(d,this.tokenFactoryRetryDelay)),await this._validTokenFromFactory(!0)}else if(this._whenTokenFactory=new Promise(d=>{this._resolveTokenFactory=d}),!r)return await this._validTokenFromFactory(!1);if(!c)throw new TypeError("Could not get a valid token from tokenFactory.");return(o=this._resolveTokenFactory)==null||o.call(this,!0),this.whenUrl().then(this._resolveUrlAndTokenFactory),c},Promise.all([this.whenUrl(),this.whenTokenFactory()]).then(()=>{var r;this.url&&this.tokenFactory&&((r=this._resolveUrlAndTokenFactory)==null||r.call(this,!0))})}async whenTokenFactory(){await this._whenTokenFactory}async whenUrlAndTokenFactory(){await this._whenUrlAndTokenFactory}async whenTokenIsValid(){await this._whenTokenIsValid}get tokenFactory(){return this._tokenFactory}set tokenFactory(s){if(this.isDestroyed)throw new Ce;this._tokenFactory&&this._tokenFactory!==s&&this.whenTokenFactory().then(()=>{this.queryClient.refetchQueries({stale:!0})}),this._tokenFactory=s??void 0,this._tokenFactory&&queueMicrotask(()=>{var r;(r=this._resolveTokenFactory)==null||r.call(this,!0)})}get tokenUrl(){return this._tokenUrl}set tokenUrl(s){if(this.isDestroyed)throw new Ce;try{if(typeof s=="string")s&&(this._tokenUrl=new URL(s,window.location.toString()));else if(s instanceof URL)this._tokenUrl=s;else if(s==null)this._tokenUrl=void 0;else throw new Error}catch(r){throw new Error("Invalid url",r)}this._tokenUrl&&!this.tokenFactory&&(this.tokenFactory=async r=>{if(!this.tokenUrl)throw new Error("tokenURL property is not valid");const a=new URL(this.tokenUrl);r?a.searchParams.set("refresh","true"):a.searchParams.delete("refresh");const o=await fetch(a);if(o.ok){const l=await o.json();if(l.access_token===void 0)throw new Error("Token response does not contain required property: access_token");return l.access_token}else throw new Error("Could not get access token from server!")})}_validateToken(s){var r;if(!s)return!1;if(typeof s!="string")throw new TypeError(`You have provided an invalid string access token of type ${typeof s}.`);if(typeof s=="string"&&!s.startsWith("wyu_"))throw s.startsWith("wys_")?new TypeError("You have provided an API key for authentication. Provide a user access token instead."):new TypeError("You have provided an invalid string as access token.");return(r=this._resolveTokenIsValid)==null||r.call(this,s),!0}async getToken(s=!1){if(this.isDestroyed)throw new Ce;if(this._token&&!s)return this._token;if(this._tokenPromise)return await this._tokenPromise;this._tokenPromise=new Promise((r,a)=>{this._validTokenFromFactory(s).then(r).catch(a),this.tokenFactoryTimeout!==1/0&&setTimeout(()=>a(new Error("Token factory timeout.")),this.tokenFactoryTimeout),window.addEventListener("offline",()=>a(new Error("Network changed.")),{once:!0}),window.addEventListener("online",()=>a(new Error("Network changed.")),{once:!0})});try{const r=await this._tokenPromise;return this._tokenPromise=null,this._token=r,this._token}catch(r){throw this._tokenPromise=null,r}}},h(e,"t"),e),u(t,"WeavyAuthentication"),t},"WeavyAuthenticationMixin");var Ng=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oE(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}h(oE,"D1");u(oE,"getDefaultExportFromCjs");function v1(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}h(v1,"xh");u(v1,"commonjsRequire");var o3={exports:{}},l3;function lE(){return l3||(l3=1,function(n,t){var e;e=u(()=>(()=>{var wl,gl,vl,Ol,bl,$l,xl,kl,Sl,Pl,Cl,Ql,ws,Ml,Tl,Al,Rl,El,gs,_l,zl,Ll,Il,Oa,Zl,Vl,Wl,Dl,ql,Ul,jl,Bl,ba,Fl,Xl,Nl;var i={d:u((X,g)=>{for(var S in g)i.o(g,S)&&!i.o(X,S)&&Object.defineProperty(X,S,{enumerable:!0,get:g[S]})},"d")};i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(X,g)=>Object.prototype.hasOwnProperty.call(X,g),i.r=X=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(X,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(X,"t",{value:!0})};var s,r={};i.r(r),i.d(r,{AbortError:u(()=>p,"AbortError"),DefaultHttpClient:u(()=>rC,"DefaultHttpClient"),HttpClient:u(()=>B,"HttpClient"),HttpError:u(()=>o,"HttpError"),HttpResponse:u(()=>Z,"HttpResponse"),HttpTransportType:u(()=>Pe,"HttpTransportType"),HubConnection:u(()=>pC,"HubConnection"),HubConnectionBuilder:u(()=>yZ,"HubConnectionBuilder"),HubConnectionState:u(()=>Gt,"HubConnectionState"),JsonHubProtocol:u(()=>CC,"JsonHubProtocol"),LogLevel:u(()=>s,"LogLevel"),MessageType:u(()=>Ct,"MessageType"),NullLogger:u(()=>K,"NullLogger"),Subject:u(()=>cC,"Subject"),TimeoutError:u(()=>c,"TimeoutError"),TransferFormat:u(()=>Ne,"TransferFormat"),VERSION:u(()=>j,"VERSION")});const a=(wl=class extends Error{constructor(g,S){const A=new.target.prototype;super(`${g}: Status code '${S}'`),this.statusCode=S,this.__proto__=A}},h(wl,"Ud"),wl);u(a,"i");let o=a;const l=(gl=class extends Error{constructor(g="A timeout occurred."){const S=new.target.prototype;super(g),this.__proto__=S}},h(gl,"Bd"),gl);u(l,"n");let c=l;const d=(vl=class extends Error{constructor(g="An abort occurred."){const S=new.target.prototype;super(g),this.__proto__=S}},h(vl,"qd"),vl);u(d,"r");let p=d;const f=(Ol=class extends Error{constructor(g,S){const A=new.target.prototype;super(g),this.transport=S,this.errorType="UnsupportedTransportError",this.__proto__=A}},h(Ol,"Nd"),Ol);u(f,"o");let m=f;const w=(bl=class extends Error{constructor(g,S){const A=new.target.prototype;super(g),this.transport=S,this.errorType="DisabledTransportError",this.__proto__=A}},h(bl,"jd"),bl);u(w,"h");let O=w;const x=($l=class extends Error{constructor(g,S){const A=new.target.prototype;super(g),this.transport=S,this.errorType="FailedToStartTransportError",this.__proto__=A}},h($l,"Wd"),$l);u(x,"c");let b=x;const P=(xl=class extends Error{constructor(g){const S=new.target.prototype;super(g),this.errorType="FailedToNegotiateWithServerError",this.__proto__=S}},h(xl,"Qd"),xl);u(P,"a");let R=P;const E=(kl=class extends Error{constructor(g,S){const A=new.target.prototype;super(g),this.innerErrors=S,this.__proto__=A}},h(kl,"Kd"),kl);u(E,"l");let T=E;const I=(Sl=class{constructor(g,S,A){this.statusCode=g,this.statusText=S,this.content=A}},h(Sl,"Gd"),Sl);u(I,"u");let Z=I;const U=(Pl=class{get(g,S){return this.send({...S,method:"GET",url:g})}post(g,S){return this.send({...S,method:"POST",url:g})}delete(g,S){return this.send({...S,method:"DELETE",url:g})}getCookieString(g){return""}},h(Pl,"Zd"),Pl);u(U,"d");let B=U;(function(X){X[X.Trace=0]="Trace",X[X.Debug=1]="Debug",X[X.Information=2]="Information",X[X.Warning=3]="Warning",X[X.Error=4]="Error",X[X.Critical=5]="Critical",X[X.None=6]="None"})(s||(s={}));const tt=(Cl=class{constructor(){}log(g,S){}},h(Cl,"Yd"),Cl);u(tt,"f");let K=tt;K.instance=new K;const j="8.0.7",J=(Ql=class{static isRequired(g,S){if(g==null)throw new Error(`The '${S}' argument is required.`)}static isNotEmpty(g,S){if(!g||g.match(/^\s*$/))throw new Error(`The '${S}' argument should not be empty.`)}static isIn(g,S,A){if(!(g in S))throw new Error(`Unknown ${A} value: ${g}.`)}},h(Ql,"Xd"),Ql);u(J,"w");let it=J;const bt=(ws=class{static get isBrowser(){return!ws.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!ws.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!ws.isNode&&typeof window=="object"&&window.document===void 0}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}},h(ws,"Pr"),ws);u(bt,"g");let mt=bt;function Zt(X,g){let S="";return Vt(X)?(S=`Binary data of length ${X.byteLength}`,g&&(S+=`. Content: '${function(A){const _=new Uint8Array(A);let V="";return _.forEach(D=>{V+=`0x${D<16?"0":""}${D.toString(16)} `}),V.substr(0,V.length-1)}(X)}'`)):typeof X=="string"&&(S=`String data of length ${X.length}`,g&&(S+=`. Content: '${X}'`)),S}h(Zt,"q"),u(Zt,"m");function Vt(X){return X&&typeof ArrayBuffer<"u"&&(X instanceof ArrayBuffer||X.constructor&&X.constructor.name==="ArrayBuffer")}h(Vt,"E"),u(Vt,"y");async function Rt(X,g,S,A,_,V){const D={},[lt,ct]=we();D[lt]=ct,X.log(s.Trace,`(${g} transport) sending data. ${Zt(_,V.logMessageContent)}.`);const Tt=Vt(_)?"arraybuffer":"text",Ht=await S.post(A,{content:_,headers:{...D,...V.headers},responseType:Tt,timeout:V.timeout,withCredentials:V.withCredentials});X.log(s.Trace,`(${g} transport) request complete. Response status: ${Ht.statusCode}.`)}h(Rt,"F"),u(Rt,"b");const ie=(Ml=class{constructor(g,S){this.i=g,this.h=S}dispose(){const g=this.i.observers.indexOf(this.h);g>-1&&this.i.observers.splice(g,1),this.i.observers.length===0&&this.i.cancelCallback&&this.i.cancelCallback().catch(S=>{})}},h(Ml,"Jd"),Ml);u(ie,"v");let me=ie;const he=(Tl=class{constructor(g){this.l=g,this.out=console}log(g,S){if(g>=this.l){const A=`[${new Date().toISOString()}] ${s[g]}: ${S}`;switch(g){case s.Critical:case s.Error:this.out.error(A);break;case s.Warning:this.out.warn(A);break;case s.Information:this.out.info(A);break;default:this.out.log(A)}}}},h(Tl,"th"),Tl);u(he,"E");let ne=he;function we(){let X="X-SignalR-User-Agent";return mt.isNode&&(X="User-Agent"),[X,bi(j,Ei(),mt.isNode?"NodeJS":"Browser",Hi())]}h(we,"B"),u(we,"$");function bi(X,g,S,A){let _="Microsoft SignalR/";const V=X.split(".");return _+=`${V[0]}.${V[1]}`,_+=` (${X}; `,_+=g&&g!==""?`${g}; `:"Unknown OS; ",_+=`${S}`,_+=A?`; ${A}`:"; Unknown Runtime Version",_+=")",_}h(bi,"j"),u(bi,"C");function Ei(){if(!mt.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}h(Ei,"st"),u(Ei,"S");function Hi(){if(mt.isNode)return process.versions.node}h(Hi,"mt"),u(Hi,"k");function Nt(X){return X.stack?X.stack:X.message?X.message:`${X}`}h(Nt,"N"),u(Nt,"P");const pn=(Al=class extends B{constructor(g){if(super(),this.u=g,typeof fetch>"u"||mt.isNode){const S=v1;this.p=new(S("tough-cookie")).CookieJar,typeof fetch>"u"?this.m=S("node-fetch"):this.m=fetch,this.m=S("fetch-cookie")(this.m,this.p)}else this.m=fetch.bind(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(i.g!==void 0)return i.g;throw new Error("could not find global")}());if(typeof AbortController>"u"){const S=v1;this.v=S("abort-controller")}else this.v=AbortController}async send(g){if(g.abortSignal&&g.abortSignal.aborted)throw new p;if(!g.method)throw new Error("No method defined.");if(!g.url)throw new Error("No url defined.");const S=new this.v;let A;g.abortSignal&&(g.abortSignal.onabort=()=>{S.abort(),A=new p});let _,V=null;if(g.timeout){const ct=g.timeout;V=setTimeout(()=>{S.abort(),this.u.log(s.Warning,"Timeout from HTTP request."),A=new c},ct)}g.content===""&&(g.content=void 0),g.content&&(g.headers=g.headers||{},Vt(g.content)?g.headers["Content-Type"]="application/octet-stream":g.headers["Content-Type"]="text/plain;charset=UTF-8");try{_=await this.m(g.url,{body:g.content,cache:"no-cache",credentials:g.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...g.headers},method:g.method,mode:"cors",redirect:"follow",signal:S.signal})}catch(ct){throw A||(this.u.log(s.Warning,`Error from HTTP request. ${ct}.`),ct)}finally{V&&clearTimeout(V),g.abortSignal&&(g.abortSignal.onabort=null)}if(!_.ok){const ct=await ml(_,"text");throw new o(ct||_.statusText,_.status)}const D=ml(_,g.responseType),lt=await D;return new Z(_.status,_.statusText,lt)}getCookieString(g){let S="";return mt.isNode&&this.p&&this.p.getCookies(g,(A,_)=>S=_.join("; ")),S}},h(Al,"eh"),Al);u(pn,"T");let ga=pn;function ml(X,g){let S;switch(g){case"arraybuffer":S=X.arrayBuffer();break;case"text":default:S=X.text();break;case"blob":case"document":case"json":throw new Error(`${g} is not supported.`)}return S}h(ml,"Mt"),u(ml,"I");const nC=(Rl=class extends B{constructor(g){super(),this.u=g}send(g){return g.abortSignal&&g.abortSignal.aborted?Promise.reject(new p):g.method?g.url?new Promise((S,A)=>{const _=new XMLHttpRequest;_.open(g.method,g.url,!0),_.withCredentials=g.withCredentials===void 0||g.withCredentials,_.setRequestHeader("X-Requested-With","XMLHttpRequest"),g.content===""&&(g.content=void 0),g.content&&(Vt(g.content)?_.setRequestHeader("Content-Type","application/octet-stream"):_.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const V=g.headers;V&&Object.keys(V).forEach(D=>{_.setRequestHeader(D,V[D])}),g.responseType&&(_.responseType=g.responseType),g.abortSignal&&(g.abortSignal.onabort=()=>{_.abort(),A(new p)}),g.timeout&&(_.timeout=g.timeout),_.onload=()=>{g.abortSignal&&(g.abortSignal.onabort=null),_.status>=200&&_.status<300?S(new Z(_.status,_.statusText,_.response||_.responseText)):A(new o(_.response||_.responseText||_.statusText,_.status))},_.onerror=()=>{this.u.log(s.Warning,`Error from HTTP request. ${_.status}: ${_.statusText}.`),A(new o(_.statusText,_.status))},_.ontimeout=()=>{this.u.log(s.Warning,"Timeout from HTTP request."),A(new c)},_.send(g.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}},h(Rl,"ih"),Rl);u(nC,"_");let nZ=nC;const sC=(El=class extends B{constructor(g){if(super(),typeof fetch<"u"||mt.isNode)this.$=new ga(g);else{if(typeof XMLHttpRequest>"u")throw new Error("No usable HttpClient found.");this.$=new nZ(g)}}send(g){return g.abortSignal&&g.abortSignal.aborted?Promise.reject(new p):g.method?g.url?this.$.send(g):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(g){return this.$.getCookieString(g)}},h(El,"sh"),El);u(sC,"H");let rC=sC;const aC=(gs=class{static write(g){return`${g}${gs.RecordSeparator}`}static parse(g){if(g[g.length-1]!==gs.RecordSeparator)throw new Error("Message is incomplete.");const S=g.split(gs.RecordSeparator);return S.pop(),S}},h(gs,"Sr"),gs);u(aC,"D");let ms=aC;ms.RecordSeparatorCode=30,ms.RecordSeparator=String.fromCharCode(ms.RecordSeparatorCode);const oC=(_l=class{writeHandshakeRequest(g){return ms.write(JSON.stringify(g))}parseHandshakeResponse(g){let S,A;if(Vt(g)){const D=new Uint8Array(g),lt=D.indexOf(ms.RecordSeparatorCode);if(lt===-1)throw new Error("Message is incomplete.");const ct=lt+1;S=String.fromCharCode.apply(null,Array.prototype.slice.call(D.slice(0,ct))),A=D.byteLength>ct?D.slice(ct).buffer:null}else{const D=g,lt=D.indexOf(ms.RecordSeparator);if(lt===-1)throw new Error("Message is incomplete.");const ct=lt+1;S=D.substring(0,ct),A=D.length>ct?D.substring(ct):null}const _=ms.parse(S),V=JSON.parse(_[0]);if(V.type)throw new Error("Expected a handshake response from the server.");return[A,V]}},h(_l,"rh"),_l);u(oC,"R");let sZ=oC;var Ct,Gt;(function(X){X[X.Invocation=1]="Invocation",X[X.StreamItem=2]="StreamItem",X[X.Completion=3]="Completion",X[X.StreamInvocation=4]="StreamInvocation",X[X.CancelInvocation=5]="CancelInvocation",X[X.Ping=6]="Ping",X[X.Close=7]="Close",X[X.Ack=8]="Ack",X[X.Sequence=9]="Sequence"})(Ct||(Ct={}));const lC=(zl=class{constructor(){this.observers=[]}next(g){for(const S of this.observers)S.next(g)}error(g){for(const S of this.observers)S.error&&S.error(g)}complete(){for(const g of this.observers)g.complete&&g.complete()}subscribe(g){return this.observers.push(g),new me(this,g)}},h(zl,"nh"),zl);u(lC,"U");let cC=lC;const hC=(Ll=class{constructor(g,S,A){this.C=1e5,this.S=[],this.k=0,this.P=!1,this.T=1,this.I=0,this._=0,this.H=!1,this.D=g,this.R=S,this.C=A}async A(g){const S=this.D.writeMessage(g);let A=Promise.resolve();if(this.U(g)){this.k++;let _=u(()=>{},"t"),V=u(()=>{},"i");Vt(S)?this._+=S.byteLength:this._+=S.length,this._>=this.C&&(A=new Promise((D,lt)=>{_=D,V=lt})),this.S.push(new aZ(S,this.k,_,V))}try{this.H||await this.R.send(S)}catch{this.L()}await A}N(g){let S=-1;for(let A=0;A<this.S.length;A++){const _=this.S[A];if(_.q<=g.sequenceId)S=A,Vt(_.M)?this._-=_.M.byteLength:this._-=_.M.length,_.j();else{if(!(this._<this.C))break;_.j()}}S!==-1&&(this.S=this.S.slice(S+1))}W(g){if(this.P)return g.type===Ct.Sequence&&(this.P=!1,!0);if(!this.U(g))return!0;const S=this.T;return this.T++,S<=this.I?(S===this.I&&this.O(),!1):(this.I=S,this.O(),!0)}F(g){g.sequenceId>this.T?this.R.stop(new Error("Sequence ID greater than amount of messages we've received.")):this.T=g.sequenceId}L(){this.H=!0,this.P=!0}async B(){const g=this.S.length!==0?this.S[0].q:this.k+1;await this.R.send(this.D.writeMessage({type:Ct.Sequence,sequenceId:g}));const S=this.S;for(const A of S)await this.R.send(A.M);this.H=!1}X(g){g!=null||(g=new Error("Unable to reconnect to server."));for(const S of this.S)S.J(g)}U(g){switch(g.type){case Ct.Invocation:case Ct.StreamItem:case Ct.Completion:case Ct.StreamInvocation:case Ct.CancelInvocation:return!0;case Ct.Close:case Ct.Sequence:case Ct.Ping:case Ct.Ack:return!1}}O(){this.V===void 0&&(this.V=setTimeout(async()=>{try{this.H||await this.R.send(this.D.writeMessage({type:Ct.Ack,sequenceId:this.I}))}catch{}clearTimeout(this.V),this.V=void 0},1e3))}},h(Ll,"ah"),Ll);u(hC,"L");let rZ=hC;const dC=(Il=class{constructor(g,S,A,_){this.M=g,this.q=S,this.j=A,this.J=_}},h(Il,"oh"),Il);u(dC,"N");let aZ=dC;(function(X){X.Disconnected="Disconnected",X.Connecting="Connecting",X.Connected="Connected",X.Disconnecting="Disconnecting",X.Reconnecting="Reconnecting"})(Gt||(Gt={}));const uC=(Oa=class{static create(g,S,A,_,V,D,lt){return new Oa(g,S,A,_,V,D,lt)}constructor(g,S,A,_,V,D,lt){this.K=0,this.G=()=>{this.u.log(s.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},it.isRequired(g,"connection"),it.isRequired(S,"logger"),it.isRequired(A,"protocol"),this.serverTimeoutInMilliseconds=V??3e4,this.keepAliveIntervalInMilliseconds=D??15e3,this.Y=lt??1e5,this.u=S,this.D=A,this.connection=g,this.Z=_,this.tt=new sZ,this.connection.onreceive=ct=>this.et(ct),this.connection.onclose=ct=>this.st(ct),this.it={},this.nt={},this.rt=[],this.ot=[],this.ht=[],this.ct=0,this.lt=!1,this.ut=Gt.Disconnected,this.dt=!1,this.ft=this.D.writeMessage({type:Ct.Ping})}get state(){return this.ut}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(g){if(this.ut!==Gt.Disconnected&&this.ut!==Gt.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!g)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=g}start(){return this.wt=this.gt(),this.wt}async gt(){if(this.ut!==Gt.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this.ut=Gt.Connecting,this.u.log(s.Debug,"Starting HubConnection.");try{await this.yt(),mt.isBrowser&&window.document.addEventListener("freeze",this.G),this.ut=Gt.Connected,this.dt=!0,this.u.log(s.Debug,"HubConnection connected successfully.")}catch(g){return this.ut=Gt.Disconnected,this.u.log(s.Debug,`HubConnection failed to start successfully because of error '${g}'.`),Promise.reject(g)}}async yt(){this.bt=void 0,this.lt=!1;const g=new Promise((S,A)=>{this.vt=S,this.Et=A});await this.connection.start(this.D.transferFormat);try{let S=this.D.version;this.connection.features.reconnect||(S=1);const A={protocol:this.D.name,version:S};if(this.u.log(s.Debug,"Sending handshake request."),await this.$t(this.tt.writeHandshakeRequest(A)),this.u.log(s.Information,`Using HubProtocol '${this.D.name}'.`),this.Ct(),this.St(),this.kt(),await g,this.bt)throw this.bt;this.connection.features.reconnect&&(this.Pt=new rZ(this.D,this.connection,this.Y),this.connection.features.disconnected=this.Pt.L.bind(this.Pt),this.connection.features.resend=()=>{if(this.Pt)return this.Pt.B()}),this.connection.features.inherentKeepAlive||await this.$t(this.ft)}catch(S){throw this.u.log(s.Debug,`Hub handshake failed with error '${S}' during start(). Stopping HubConnection.`),this.Ct(),this.Tt(),await this.connection.stop(S),S}}async stop(){const g=this.wt;this.connection.features.reconnect=!1,this.It=this._t(),await this.It;try{await g}catch{}}_t(g){if(this.ut===Gt.Disconnected)return this.u.log(s.Debug,`Call to HubConnection.stop(${g}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this.ut===Gt.Disconnecting)return this.u.log(s.Debug,`Call to HttpConnection.stop(${g}) ignored because the connection is already in the disconnecting state.`),this.It;const S=this.ut;return this.ut=Gt.Disconnecting,this.u.log(s.Debug,"Stopping HubConnection."),this.Ht?(this.u.log(s.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.Ht),this.Ht=void 0,this.Dt(),Promise.resolve()):(S===Gt.Connected&&this.Rt(),this.Ct(),this.Tt(),this.bt=g||new p("The connection was stopped before the hub handshake could complete."),this.connection.stop(g))}async Rt(){try{await this.xt(this.At())}catch{}}stream(g,...S){const[A,_]=this.Ut(S),V=this.Lt(g,S,_);let D;const lt=new cC;return lt.cancelCallback=()=>{const ct=this.Nt(V.invocationId);return delete this.it[V.invocationId],D.then(()=>this.xt(ct))},this.it[V.invocationId]=(ct,Tt)=>{Tt?lt.error(Tt):ct&&(ct.type===Ct.Completion?ct.error?lt.error(new Error(ct.error)):lt.complete():lt.next(ct.item))},D=this.xt(V).catch(ct=>{lt.error(ct),delete this.it[V.invocationId]}),this.qt(A,D),lt}$t(g){return this.kt(),this.connection.send(g)}xt(g){return this.Pt?this.Pt.A(g):this.$t(this.D.writeMessage(g))}send(g,...S){const[A,_]=this.Ut(S),V=this.xt(this.Mt(g,S,!0,_));return this.qt(A,V),V}invoke(g,...S){const[A,_]=this.Ut(S),V=this.Mt(g,S,!1,_);return new Promise((D,lt)=>{this.it[V.invocationId]=(Tt,Ht)=>{Ht?lt(Ht):Tt&&(Tt.type===Ct.Completion?Tt.error?lt(new Error(Tt.error)):D(Tt.result):lt(new Error(`Unexpected message type: ${Tt.type}`)))};const ct=this.xt(V).catch(Tt=>{lt(Tt),delete this.it[V.invocationId]});this.qt(A,ct)})}on(g,S){g&&S&&(g=g.toLowerCase(),this.nt[g]||(this.nt[g]=[]),this.nt[g].indexOf(S)===-1&&this.nt[g].push(S))}off(g,S){if(!g)return;g=g.toLowerCase();const A=this.nt[g];if(A)if(S){const _=A.indexOf(S);_!==-1&&(A.splice(_,1),A.length===0&&delete this.nt[g])}else delete this.nt[g]}onclose(g){g&&this.rt.push(g)}onreconnecting(g){g&&this.ot.push(g)}onreconnected(g){g&&this.ht.push(g)}et(g){if(this.Ct(),this.lt||(g=this.jt(g),this.lt=!0),g){const S=this.D.parseMessages(g,this.u);for(const A of S)if(!this.Pt||this.Pt.W(A))switch(A.type){case Ct.Invocation:this.Wt(A).catch(_=>{this.u.log(s.Error,`Invoke client method threw error: ${Nt(_)}`)});break;case Ct.StreamItem:case Ct.Completion:{const _=this.it[A.invocationId];if(_){A.type===Ct.Completion&&delete this.it[A.invocationId];try{_(A)}catch(V){this.u.log(s.Error,`Stream callback threw error: ${Nt(V)}`)}}break}case Ct.Ping:break;case Ct.Close:{this.u.log(s.Information,"Close message received from server.");const _=A.error?new Error("Server returned an error on close: "+A.error):void 0;A.allowReconnect===!0?this.connection.stop(_):this.It=this._t(_);break}case Ct.Ack:this.Pt&&this.Pt.N(A);break;case Ct.Sequence:this.Pt&&this.Pt.F(A);break;default:this.u.log(s.Warning,`Invalid message type: ${A.type}.`)}}this.St()}jt(g){let S,A;try{[A,S]=this.tt.parseHandshakeResponse(g)}catch(_){const V="Error parsing handshake response: "+_;this.u.log(s.Error,V);const D=new Error(V);throw this.Et(D),D}if(S.error){const _="Server returned handshake error: "+S.error;this.u.log(s.Error,_);const V=new Error(_);throw this.Et(V),V}return this.u.log(s.Debug,"Server handshake complete."),this.vt(),A}kt(){this.connection.features.inherentKeepAlive||(this.K=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this.Tt())}St(){if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this.Ot=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this.Ft!==void 0))){let g=this.K-new Date().getTime();g<0&&(g=0),this.Ft=setTimeout(async()=>{if(this.ut===Gt.Connected)try{await this.$t(this.ft)}catch{this.Tt()}},g)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async Wt(g){const S=g.target.toLowerCase(),A=this.nt[S];if(!A)return this.u.log(s.Warning,`No client method with the name '${S}' found.`),void(g.invocationId&&(this.u.log(s.Warning,`No result given for '${S}' method and invocation ID '${g.invocationId}'.`),await this.xt(this.Bt(g.invocationId,"Client didn't provide a result.",null))));const _=A.slice(),V=!!g.invocationId;let D,lt,ct;for(const Tt of _)try{const Ht=D;D=await Tt.apply(this,g.arguments),V&&D&&Ht&&(this.u.log(s.Error,`Multiple results provided for '${S}'. Sending error to server.`),ct=this.Bt(g.invocationId,"Client provided multiple results.",null)),lt=void 0}catch(Ht){lt=Ht,this.u.log(s.Error,`A callback for the method '${S}' threw error '${Ht}'.`)}ct?await this.xt(ct):V?(lt?ct=this.Bt(g.invocationId,`${lt}`,null):D!==void 0?ct=this.Bt(g.invocationId,null,D):(this.u.log(s.Warning,`No result given for '${S}' method and invocation ID '${g.invocationId}'.`),ct=this.Bt(g.invocationId,"Client didn't provide a result.",null)),await this.xt(ct)):D&&this.u.log(s.Error,`Result given for '${S}' method but server is not expecting a result.`)}st(g){this.u.log(s.Debug,`HubConnection.connectionClosed(${g}) called while in state ${this.ut}.`),this.bt=this.bt||g||new p("The underlying connection was closed before the hub handshake could complete."),this.vt&&this.vt(),this.Xt(g||new Error("Invocation canceled due to the underlying connection being closed.")),this.Ct(),this.Tt(),this.ut===Gt.Disconnecting?this.Dt(g):this.ut===Gt.Connected&&this.Z?this.Jt(g):this.ut===Gt.Connected&&this.Dt(g)}Dt(g){if(this.dt){this.ut=Gt.Disconnected,this.dt=!1,this.Pt&&(this.Pt.X(g??new Error("Connection closed.")),this.Pt=void 0),mt.isBrowser&&window.document.removeEventListener("freeze",this.G);try{this.rt.forEach(S=>S.apply(this,[g]))}catch(S){this.u.log(s.Error,`An onclose callback called with error '${g}' threw error '${S}'.`)}}}async Jt(g){const S=Date.now();let A=0,_=g!==void 0?g:new Error("Attempting to reconnect due to a unknown error."),V=this.zt(A++,0,_);if(V===null)return this.u.log(s.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this.Dt(g);if(this.ut=Gt.Reconnecting,g?this.u.log(s.Information,`Connection reconnecting because of error '${g}'.`):this.u.log(s.Information,"Connection reconnecting."),this.ot.length!==0){try{this.ot.forEach(D=>D.apply(this,[g]))}catch(D){this.u.log(s.Error,`An onreconnecting callback called with error '${g}' threw error '${D}'.`)}if(this.ut!==Gt.Reconnecting)return void this.u.log(s.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;V!==null;){if(this.u.log(s.Information,`Reconnect attempt number ${A} will start in ${V} ms.`),await new Promise(D=>{this.Ht=setTimeout(D,V)}),this.Ht=void 0,this.ut!==Gt.Reconnecting)return void this.u.log(s.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(await this.yt(),this.ut=Gt.Connected,this.u.log(s.Information,"HubConnection reconnected successfully."),this.ht.length!==0)try{this.ht.forEach(D=>D.apply(this,[this.connection.connectionId]))}catch(D){this.u.log(s.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${D}'.`)}return}catch(D){if(this.u.log(s.Information,`Reconnect attempt failed because of error '${D}'.`),this.ut!==Gt.Reconnecting)return this.u.log(s.Debug,`Connection moved to the '${this.ut}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this.ut===Gt.Disconnecting&&this.Dt());_=D instanceof Error?D:new Error(D.toString()),V=this.zt(A++,Date.now()-S,_)}}this.u.log(s.Information,`Reconnect retries have been exhausted after ${Date.now()-S} ms and ${A} failed attempts. Connection disconnecting.`),this.Dt()}zt(g,S,A){try{return this.Z.nextRetryDelayInMilliseconds({elapsedMilliseconds:S,previousRetryCount:g,retryReason:A})}catch(_){return this.u.log(s.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${g}, ${S}) threw error '${_}'.`),null}}Xt(g){const S=this.it;this.it={},Object.keys(S).forEach(A=>{const _=S[A];try{_(null,g)}catch(V){this.u.log(s.Error,`Stream 'error' callback called with '${g}' threw error: ${Nt(V)}`)}})}Tt(){this.Ft&&(clearTimeout(this.Ft),this.Ft=void 0)}Ct(){this.Ot&&clearTimeout(this.Ot)}Mt(g,S,A,_){if(A)return _.length!==0?{arguments:S,streamIds:_,target:g,type:Ct.Invocation}:{arguments:S,target:g,type:Ct.Invocation};{const V=this.ct;return this.ct++,_.length!==0?{arguments:S,invocationId:V.toString(),streamIds:_,target:g,type:Ct.Invocation}:{arguments:S,invocationId:V.toString(),target:g,type:Ct.Invocation}}}qt(g,S){if(g.length!==0){S||(S=Promise.resolve());for(const A in g)g[A].subscribe({complete:u(()=>{S=S.then(()=>this.xt(this.Bt(A)))},"complete"),error:u(_=>{let V;V=_ instanceof Error?_.message:_&&_.toString?_.toString():"Unknown error",S=S.then(()=>this.xt(this.Bt(A,V)))},"error"),next:u(_=>{S=S.then(()=>this.xt(this.Vt(A,_)))},"next")})}}Ut(g){const S=[],A=[];for(let _=0;_<g.length;_++){const V=g[_];if(this.Kt(V)){const D=this.ct;this.ct++,S[D]=V,A.push(D.toString()),g.splice(_,1)}}return[S,A]}Kt(g){return g&&g.subscribe&&typeof g.subscribe=="function"}Lt(g,S,A){const _=this.ct;return this.ct++,A.length!==0?{arguments:S,invocationId:_.toString(),streamIds:A,target:g,type:Ct.StreamInvocation}:{arguments:S,invocationId:_.toString(),target:g,type:Ct.StreamInvocation}}Nt(g){return{invocationId:g,type:Ct.CancelInvocation}}Vt(g,S){return{invocationId:g,item:S,type:Ct.StreamItem}}Bt(g,S,A){return S?{error:S,invocationId:g,type:Ct.Completion}:{invocationId:g,result:A,type:Ct.Completion}}At(){return{type:Ct.Close}}},h(Oa,"xl"),Oa);u(uC,"q");let pC=uC;const oZ=[0,2e3,1e4,3e4,null],fC=(Zl=class{constructor(g){this.Gt=g!==void 0?[...g,null]:oZ}nextRetryDelayInMilliseconds(g){return this.Gt[g.previousRetryCount]}},h(Zl,"ch"),Zl);u(fC,"j");let yC=fC;const mC=(Vl=class{},h(Vl,"lh"),Vl);u(mC,"W");let va=mC;va.Authorization="Authorization",va.Cookie="Cookie";const wC=(Wl=class extends B{constructor(g,S){super(),this.Qt=g,this.Yt=S}async send(g){let S=!0;this.Yt&&(!this.Zt||g.url&&g.url.indexOf("/negotiate?")>0)&&(S=!1,this.Zt=await this.Yt()),this.te(g);const A=await this.Qt.send(g);return S&&A.statusCode===401&&this.Yt?(this.Zt=await this.Yt(),this.te(g),await this.Qt.send(g)):A}te(g){g.headers||(g.headers={}),this.Zt?g.headers[va.Authorization]=`Bearer ${this.Zt}`:this.Yt&&g.headers[va.Authorization]&&delete g.headers[va.Authorization]}getCookieString(g){return this.Qt.getCookieString(g)}},h(Wl,"dh"),Wl);u(wC,"O");let lZ=wC;var Pe,Ne;(function(X){X[X.None=0]="None",X[X.WebSockets=1]="WebSockets",X[X.ServerSentEvents=2]="ServerSentEvents",X[X.LongPolling=4]="LongPolling"})(Pe||(Pe={})),function(X){X[X.Text=1]="Text",X[X.Binary=2]="Binary"}(Ne||(Ne={}));const gC=(Dl=class{constructor(){this.ee=!1,this.onabort=null}abort(){this.ee||(this.ee=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this.ee}},h(Dl,"hh"),Dl);u(gC,"X");let cZ=gC;const vC=(ql=class{get pollAborted(){return this.se.aborted}constructor(g,S,A){this.$=g,this.u=S,this.se=new cZ,this.ie=A,this.ne=!1,this.onreceive=null,this.onclose=null}async connect(g,S){if(it.isRequired(g,"url"),it.isRequired(S,"transferFormat"),it.isIn(S,Ne,"transferFormat"),this.re=g,this.u.log(s.Trace,"(LongPolling transport) Connecting."),S===Ne.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[A,_]=we(),V={[A]:_,...this.ie.headers},D={abortSignal:this.se.signal,headers:V,timeout:1e5,withCredentials:this.ie.withCredentials};S===Ne.Binary&&(D.responseType="arraybuffer");const lt=`${g}&_=${Date.now()}`;this.u.log(s.Trace,`(LongPolling transport) polling: ${lt}.`);const ct=await this.$.get(lt,D);ct.statusCode!==200?(this.u.log(s.Error,`(LongPolling transport) Unexpected response code: ${ct.statusCode}.`),this.oe=new o(ct.statusText||"",ct.statusCode),this.ne=!1):this.ne=!0,this.he=this.ce(this.re,D)}async ce(g,S){try{for(;this.ne;)try{const A=`${g}&_=${Date.now()}`;this.u.log(s.Trace,`(LongPolling transport) polling: ${A}.`);const _=await this.$.get(A,S);_.statusCode===204?(this.u.log(s.Information,"(LongPolling transport) Poll terminated by server."),this.ne=!1):_.statusCode!==200?(this.u.log(s.Error,`(LongPolling transport) Unexpected response code: ${_.statusCode}.`),this.oe=new o(_.statusText||"",_.statusCode),this.ne=!1):_.content?(this.u.log(s.Trace,`(LongPolling transport) data received. ${Zt(_.content,this.ie.logMessageContent)}.`),this.onreceive&&this.onreceive(_.content)):this.u.log(s.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(A){this.ne?A instanceof c?this.u.log(s.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.oe=A,this.ne=!1):this.u.log(s.Trace,`(LongPolling transport) Poll errored after shutdown: ${A.message}`)}}finally{this.u.log(s.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.ae()}}async send(g){return this.ne?Rt(this.u,"LongPolling",this.$,this.re,g,this.ie):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this.u.log(s.Trace,"(LongPolling transport) Stopping polling."),this.ne=!1,this.se.abort();try{await this.he,this.u.log(s.Trace,`(LongPolling transport) sending DELETE request to ${this.re}.`);const g={},[S,A]=we();g[S]=A;const _={headers:{...g,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials};let V;try{await this.$.delete(this.re,_)}catch(D){V=D}V?V instanceof o&&(V.statusCode===404?this.u.log(s.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this.u.log(s.Trace,`(LongPolling transport) Error sending a DELETE request: ${V}`)):this.u.log(s.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this.u.log(s.Trace,"(LongPolling transport) Stop finished."),this.ae()}}ae(){if(this.onclose){let g="(LongPolling transport) Firing onclose event.";this.oe&&(g+=" Error: "+this.oe),this.u.log(s.Trace,g),this.onclose(this.oe)}}},h(ql,"uh"),ql);u(vC,"J");let OC=vC;const bC=(Ul=class{constructor(g,S,A,_){this.$=g,this.Zt=S,this.u=A,this.ie=_,this.onreceive=null,this.onclose=null}async connect(g,S){return it.isRequired(g,"url"),it.isRequired(S,"transferFormat"),it.isIn(S,Ne,"transferFormat"),this.u.log(s.Trace,"(SSE transport) Connecting."),this.re=g,this.Zt&&(g+=(g.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this.Zt)}`),new Promise((A,_)=>{let V,D=!1;if(S===Ne.Text){if(mt.isBrowser||mt.isWebWorker)V=new this.ie.EventSource(g,{withCredentials:this.ie.withCredentials});else{const lt=this.$.getCookieString(g),ct={};ct.Cookie=lt;const[Tt,Ht]=we();ct[Tt]=Ht,V=new this.ie.EventSource(g,{withCredentials:this.ie.withCredentials,headers:{...ct,...this.ie.headers}})}try{V.onmessage=lt=>{if(this.onreceive)try{this.u.log(s.Trace,`(SSE transport) data received. ${Zt(lt.data,this.ie.logMessageContent)}.`),this.onreceive(lt.data)}catch(ct){return void this.le(ct)}},V.onerror=lt=>{D?this.le():_(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},V.onopen=()=>{this.u.log(s.Information,`SSE connected to ${this.re}`),this.ue=V,D=!0,A()}}catch(lt){return void _(lt)}}else _(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})}async send(g){return this.ue?Rt(this.u,"SSE",this.$,this.re,g,this.ie):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this.le(),Promise.resolve()}le(g){this.ue&&(this.ue.close(),this.ue=void 0,this.onclose&&this.onclose(g))}},h(Ul,"ph"),Ul);u(bC,"z");let hZ=bC;const $C=(jl=class{constructor(g,S,A,_,V,D){this.u=A,this.Yt=S,this.de=_,this.fe=V,this.$=g,this.onreceive=null,this.onclose=null,this.pe=D}async connect(g,S){let A;return it.isRequired(g,"url"),it.isRequired(S,"transferFormat"),it.isIn(S,Ne,"transferFormat"),this.u.log(s.Trace,"(WebSockets transport) Connecting."),this.Yt&&(A=await this.Yt()),new Promise((_,V)=>{let D;g=g.replace(/^http/,"ws");const lt=this.$.getCookieString(g);let ct=!1;if(mt.isNode||mt.isReactNative){const Tt={},[Ht,Hl]=we();Tt[Ht]=Hl,A&&(Tt[va.Authorization]=`Bearer ${A}`),lt&&(Tt[va.Cookie]=lt),D=new this.fe(g,void 0,{headers:{...Tt,...this.pe}})}else A&&(g+=(g.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(A)}`);D||(D=new this.fe(g)),S===Ne.Binary&&(D.binaryType="arraybuffer"),D.onopen=Tt=>{this.u.log(s.Information,`WebSocket connected to ${g}.`),this.we=D,ct=!0,_()},D.onerror=Tt=>{let Ht=null;Ht=typeof ErrorEvent<"u"&&Tt instanceof ErrorEvent?Tt.error:"There was an error with the transport",this.u.log(s.Information,`(WebSockets transport) ${Ht}.`)},D.onmessage=Tt=>{if(this.u.log(s.Trace,`(WebSockets transport) data received. ${Zt(Tt.data,this.de)}.`),this.onreceive)try{this.onreceive(Tt.data)}catch(Ht){return void this.le(Ht)}},D.onclose=Tt=>{if(ct)this.le(Tt);else{let Ht=null;Ht=typeof ErrorEvent<"u"&&Tt instanceof ErrorEvent?Tt.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",V(new Error(Ht))}}})}send(g){return this.we&&this.we.readyState===this.fe.OPEN?(this.u.log(s.Trace,`(WebSockets transport) sending data. ${Zt(g,this.de)}.`),this.we.send(g),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this.we&&this.le(void 0),Promise.resolve()}le(g){this.we&&(this.we.onclose=()=>{},this.we.onmessage=()=>{},this.we.onerror=()=>{},this.we.close(),this.we=void 0),this.u.log(s.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this.ge(g)||g.wasClean!==!1&&g.code===1e3?g instanceof Error?this.onclose(g):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${g.code} (${g.reason||"no reason given"}).`)))}ge(g){return g&&typeof g.wasClean=="boolean"&&typeof g.code=="number"}},h(jl,"yh"),jl);u($C,"V");let dZ=$C;const xC=(Bl=class{constructor(g,S={}){var A;if(this.me=()=>{},this.features={},this.ye=1,it.isRequired(g,"url"),this.u=(A=S.logger)===void 0?new ne(s.Information):A===null?K.instance:A.log!==void 0?A:new ne(A),this.baseUrl=this.be(g),(S=S||{}).logMessageContent=S.logMessageContent!==void 0&&S.logMessageContent,typeof S.withCredentials!="boolean"&&S.withCredentials!==void 0)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");S.withCredentials=S.withCredentials===void 0||S.withCredentials,S.timeout=S.timeout===void 0?1e5:S.timeout;let _=null,V=null;if(mt.isNode){const D=v1;_=D("ws"),V=D("eventsource")}mt.isNode||typeof WebSocket>"u"||S.WebSocket?mt.isNode&&!S.WebSocket&&_&&(S.WebSocket=_):S.WebSocket=WebSocket,mt.isNode||typeof EventSource>"u"||S.EventSource?mt.isNode&&!S.EventSource&&V!==void 0&&(S.EventSource=V):S.EventSource=EventSource,this.$=new lZ(S.httpClient||new rC(this.u),S.accessTokenFactory),this.ut="Disconnected",this.dt=!1,this.ie=S,this.onreceive=null,this.onclose=null}async start(g){if(g=g||Ne.Binary,it.isIn(g,Ne,"transferFormat"),this.u.log(s.Debug,`Starting connection with transfer format '${Ne[g]}'.`),this.ut!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this.ut="Connecting",this.ve=this.yt(g),await this.ve,this.ut==="Disconnecting"){const S="Failed to start the HttpConnection before stop() was called.";return this.u.log(s.Error,S),await this.It,Promise.reject(new p(S))}if(this.ut!=="Connected"){const S="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this.u.log(s.Error,S),Promise.reject(new p(S))}this.dt=!0}send(g){return this.ut!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.Ee||(this.Ee=new pZ(this.transport)),this.Ee.send(g))}async stop(g){return this.ut==="Disconnected"?(this.u.log(s.Debug,`Call to HttpConnection.stop(${g}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):this.ut==="Disconnecting"?(this.u.log(s.Debug,`Call to HttpConnection.stop(${g}) ignored because the connection is already in the disconnecting state.`),this.It):(this.ut="Disconnecting",this.It=new Promise(S=>{this.me=S}),await this._t(g),void await this.It)}async _t(g){this.$e=g;try{await this.ve}catch{}if(this.transport){try{await this.transport.stop()}catch(S){this.u.log(s.Error,`HttpConnection.transport.stop() threw error '${S}'.`),this.Ce()}this.transport=void 0}else this.u.log(s.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async yt(g){let S=this.baseUrl;this.Yt=this.ie.accessTokenFactory,this.$.Yt=this.Yt;try{if(this.ie.skipNegotiation){if(this.ie.transport!==Pe.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this.Se(Pe.WebSockets),await this.ke(S,g)}else{let A=null,_=0;do{if(A=await this.Pe(S),this.ut==="Disconnecting"||this.ut==="Disconnected")throw new p("The connection was stopped during negotiation.");if(A.error)throw new Error(A.error);if(A.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(A.url&&(S=A.url),A.accessToken){const V=A.accessToken;this.Yt=()=>V,this.$.Zt=V,this.$.Yt=void 0}_++}while(A.url&&_<100);if(_===100&&A.url)throw new Error("Negotiate redirection limit exceeded.");await this.Te(S,this.ie.transport,A,g)}this.transport instanceof OC&&(this.features.inherentKeepAlive=!0),this.ut==="Connecting"&&(this.u.log(s.Debug,"The HttpConnection connected successfully."),this.ut="Connected")}catch(A){return this.u.log(s.Error,"Failed to start the connection: "+A),this.ut="Disconnected",this.transport=void 0,this.me(),Promise.reject(A)}}async Pe(g){const S={},[A,_]=we();S[A]=_;const V=this.Ie(g);this.u.log(s.Debug,`Sending negotiation request: ${V}.`);try{const D=await this.$.post(V,{content:"",headers:{...S,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials});if(D.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${D.statusCode}'`));const lt=JSON.parse(D.content);return(!lt.negotiateVersion||lt.negotiateVersion<1)&&(lt.connectionToken=lt.connectionId),lt.useStatefulReconnect&&this.ie._e!==!0?Promise.reject(new R("Client didn't negotiate Stateful Reconnect but the server did.")):lt}catch(D){let lt="Failed to complete negotiation with the server: "+D;return D instanceof o&&D.statusCode===404&&(lt+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this.u.log(s.Error,lt),Promise.reject(new R(lt))}}He(g,S){return S?g+(g.indexOf("?")===-1?"?":"&")+`id=${S}`:g}async Te(g,S,A,_){let V=this.He(g,A.connectionToken);if(this.De(S))return this.u.log(s.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=S,await this.ke(V,_),void(this.connectionId=A.connectionId);const D=[],lt=A.availableTransports||[];let ct=A;for(const Tt of lt){const Ht=this.Re(Tt,S,_,(ct==null?void 0:ct.useStatefulReconnect)===!0);if(Ht instanceof Error)D.push(`${Tt.transport} failed:`),D.push(Ht);else if(this.De(Ht)){if(this.transport=Ht,!ct){try{ct=await this.Pe(g)}catch(Hl){return Promise.reject(Hl)}V=this.He(g,ct.connectionToken)}try{return await this.ke(V,_),void(this.connectionId=ct.connectionId)}catch(Hl){if(this.u.log(s.Error,`Failed to start the transport '${Tt.transport}': ${Hl}`),ct=void 0,D.push(new b(`${Tt.transport} failed: ${Hl}`,Pe[Tt.transport])),this.ut!=="Connecting"){const MC="Failed to select transport before stop() was called.";return this.u.log(s.Debug,MC),Promise.reject(new p(MC))}}}}return D.length>0?Promise.reject(new T(`Unable to connect to the server with any of the available transports. ${D.join(" ")}`,D)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}Se(g){switch(g){case Pe.WebSockets:if(!this.ie.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new dZ(this.$,this.Yt,this.u,this.ie.logMessageContent,this.ie.WebSocket,this.ie.headers||{});case Pe.ServerSentEvents:if(!this.ie.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new hZ(this.$,this.$.Zt,this.u,this.ie);case Pe.LongPolling:return new OC(this.$,this.u,this.ie);default:throw new Error(`Unknown transport: ${g}.`)}}ke(g,S){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async A=>{let _=!1;if(this.features.reconnect){try{this.features.disconnected(),await this.transport.connect(g,S),await this.features.resend()}catch{_=!0}_&&this.Ce(A)}else this.Ce(A)}:this.transport.onclose=A=>this.Ce(A),this.transport.connect(g,S)}Re(g,S,A,_){const V=Pe[g.transport];if(V==null)return this.u.log(s.Debug,`Skipping transport '${g.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${g.transport}' because it is not supported by this client.`);if(!function(D,lt){return!D||(lt&D)!=0}(S,V))return this.u.log(s.Debug,`Skipping transport '${Pe[V]}' because it was disabled by the client.`),new O(`'${Pe[V]}' is disabled by the client.`,V);if(!(g.transferFormats.map(D=>Ne[D]).indexOf(A)>=0))return this.u.log(s.Debug,`Skipping transport '${Pe[V]}' because it does not support the requested transfer format '${Ne[A]}'.`),new Error(`'${Pe[V]}' does not support ${Ne[A]}.`);if(V===Pe.WebSockets&&!this.ie.WebSocket||V===Pe.ServerSentEvents&&!this.ie.EventSource)return this.u.log(s.Debug,`Skipping transport '${Pe[V]}' because it is not supported in your environment.'`),new m(`'${Pe[V]}' is not supported in your environment.`,V);this.u.log(s.Debug,`Selecting transport '${Pe[V]}'.`);try{return this.features.reconnect=V===Pe.WebSockets?_:void 0,this.Se(V)}catch(D){return D}}De(g){return g&&typeof g=="object"&&"connect"in g}Ce(g){if(this.u.log(s.Debug,`HttpConnection.stopConnection(${g}) called while in state ${this.ut}.`),this.transport=void 0,g=this.$e||g,this.$e=void 0,this.ut!=="Disconnected"){if(this.ut==="Connecting")throw this.u.log(s.Warning,`Call to HttpConnection.stopConnection(${g}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${g}) was called while the connection is still in the connecting state.`);if(this.ut==="Disconnecting"&&this.me(),g?this.u.log(s.Error,`Connection disconnected with error '${g}'.`):this.u.log(s.Information,"Connection disconnected."),this.Ee&&(this.Ee.stop().catch(S=>{this.u.log(s.Error,`TransportSendQueue.stop() threw error '${S}'.`)}),this.Ee=void 0),this.connectionId=void 0,this.ut="Disconnected",this.dt){this.dt=!1;try{this.onclose&&this.onclose(g)}catch(S){this.u.log(s.Error,`HttpConnection.onclose(${g}) threw error '${S}'.`)}}}else this.u.log(s.Debug,`Call to HttpConnection.stopConnection(${g}) was ignored because the connection is already in the disconnected state.`)}be(g){if(g.lastIndexOf("https://",0)===0||g.lastIndexOf("http://",0)===0)return g;if(!mt.isBrowser)throw new Error(`Cannot resolve '${g}'.`);const S=window.document.createElement("a");return S.href=g,this.u.log(s.Information,`Normalizing '${g}' to '${S.href}'.`),S.href}Ie(g){const S=new URL(g);S.pathname.endsWith("/")?S.pathname+="negotiate":S.pathname+="/negotiate";const A=new URLSearchParams(S.searchParams);return A.has("negotiateVersion")||A.append("negotiateVersion",this.ye.toString()),A.has("useStatefulReconnect")?A.get("useStatefulReconnect")==="true"&&(this.ie._e=!0):this.ie._e===!0&&A.append("useStatefulReconnect","true"),S.search=A.toString(),S.toString()}},h(Bl,"wh"),Bl);u(xC,"K");let uZ=xC;const kC=(ba=class{constructor(g){this.xe=g,this.Ae=[],this.Ue=!0,this.Le=new Sg,this.Ne=new Sg,this.qe=this.Me()}send(g){return this.je(g),this.Ne||(this.Ne=new Sg),this.Ne.promise}stop(){return this.Ue=!1,this.Le.resolve(),this.qe}je(g){if(this.Ae.length&&typeof this.Ae[0]!=typeof g)throw new Error(`Expected data to be of type ${typeof this.Ae} but was of type ${typeof g}`);this.Ae.push(g),this.Le.resolve()}async Me(){for(;;){if(await this.Le.promise,!this.Ue){this.Ne&&this.Ne.reject("Connection stopped.");break}this.Le=new Sg;const g=this.Ne;this.Ne=void 0;const S=typeof this.Ae[0]=="string"?this.Ae.join(""):ba.We(this.Ae);this.Ae.length=0;try{await this.xe.send(S),g.resolve()}catch(A){g.reject(A)}}}static We(g){const S=g.map(V=>V.byteLength).reduce((V,D)=>V+D),A=new Uint8Array(S);let _=0;for(const V of g)A.set(new Uint8Array(V),_),_+=V.byteLength;return A.buffer}},h(ba,"$l"),ba);u(kC,"G");let pZ=kC;const SC=(Fl=class{constructor(){this.promise=new Promise((g,S)=>[this.j,this.Oe]=[g,S])}resolve(){this.j()}reject(g){this.Oe(g)}},h(Fl,"fh"),Fl);u(SC,"Q");let Sg=SC;const PC=(Xl=class{constructor(){this.name="json",this.version=2,this.transferFormat=Ne.Text}parseMessages(g,S){if(typeof g!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!g)return[];S===null&&(S=K.instance);const A=ms.parse(g),_=[];for(const V of A){const D=JSON.parse(V);if(typeof D.type!="number")throw new Error("Invalid payload.");switch(D.type){case Ct.Invocation:this.U(D);break;case Ct.StreamItem:this.Fe(D);break;case Ct.Completion:this.Be(D);break;case Ct.Ping:case Ct.Close:break;case Ct.Ack:this.Xe(D);break;case Ct.Sequence:this.Je(D);break;default:S.log(s.Information,"Unknown message type '"+D.type+"' ignored.");continue}_.push(D)}return _}writeMessage(g){return ms.write(JSON.stringify(g))}U(g){this.ze(g.target,"Invalid payload for Invocation message."),g.invocationId!==void 0&&this.ze(g.invocationId,"Invalid payload for Invocation message.")}Fe(g){if(this.ze(g.invocationId,"Invalid payload for StreamItem message."),g.item===void 0)throw new Error("Invalid payload for StreamItem message.")}Be(g){if(g.result&&g.error)throw new Error("Invalid payload for Completion message.");!g.result&&g.error&&this.ze(g.error,"Invalid payload for Completion message."),this.ze(g.invocationId,"Invalid payload for Completion message.")}Xe(g){if(typeof g.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}Je(g){if(typeof g.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}ze(g,S){if(typeof g!="string"||g==="")throw new Error(S)}},h(Xl,"mh"),Xl);u(PC,"Y");let CC=PC;const fZ={trace:s.Trace,debug:s.Debug,info:s.Information,information:s.Information,warn:s.Warning,warning:s.Warning,error:s.Error,critical:s.Critical,none:s.None},QC=(Nl=class{configureLogging(g){if(it.isRequired(g,"logging"),g.log!==void 0)this.logger=g;else if(typeof g=="string"){const S=function(A){const _=fZ[A.toLowerCase()];if(_!==void 0)return _;throw new Error(`Unknown log level: ${A}`)}(g);this.logger=new ne(S)}else this.logger=new ne(g);return this}withUrl(g,S){return it.isRequired(g,"url"),it.isNotEmpty(g,"url"),this.url=g,this.httpConnectionOptions=typeof S=="object"?{...this.httpConnectionOptions,...S}:{...this.httpConnectionOptions,transport:S},this}withHubProtocol(g){return it.isRequired(g,"protocol"),this.protocol=g,this}withAutomaticReconnect(g){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return g?Array.isArray(g)?this.reconnectPolicy=new yC(g):this.reconnectPolicy=g:this.reconnectPolicy=new yC,this}withServerTimeout(g){return it.isRequired(g,"milliseconds"),this.Ve=g,this}withKeepAliveInterval(g){return it.isRequired(g,"milliseconds"),this.Ke=g,this}withStatefulReconnect(g){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._e=!0,this.Y=g==null?void 0:g.bufferSize,this}build(){const g=this.httpConnectionOptions||{};if(g.logger===void 0&&(g.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const S=new uZ(this.url,g);return pC.create(S,this.logger||K.instance,this.protocol||new CC,this.reconnectPolicy,this.Ve,this.Ke,this.Y)}},h(Nl,"vh"),Nl);u(QC,"tt");let yZ=QC;return Uint8Array.prototype.indexOf||Object.defineProperty(Uint8Array.prototype,"indexOf",{value:Array.prototype.indexOf,writable:!0}),Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:u(function(X,g){return new Uint8Array(Array.prototype.slice.call(this,X,g))},"value"),writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,"forEach",{value:Array.prototype.forEach,writable:!0}),r})(),"e"),n.exports=e()}(o3)),o3.exports}h(lE,"H1");u(lE,"requireSignalr_min");var c3=lE();const Rj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._whenConnectionRequested=new Promise(r=>{this._resolveConnectionRequested=r}),this._whenConnectionCreated=new Promise(r=>{this._resolveConnectionCreated=r}),this._connectionEventListeners=[],this.signalRAccessTokenRefresh=!1,this._whenConnectionStarted=new Promise((r,a)=>{this._whenConnectionStartedResolve=r,this._whenConnectionStartedReject=a}),this.whenConnectionRequested().then(()=>{this.isDestroyed||this.createConnection()})}async whenConnectionRequested(){await this._whenConnectionRequested}async whenConnectionCreated(){return await this._whenConnectionCreated}get rtmConnection(){return this._connection}async whenConnectionStarted(){return await this._whenConnectionStarted}async createConnection(){var s;if(this.isDestroyed)throw new Ce;if(this.networkStateIsPending=!0,await this.whenUrlAndTokenFactory(),this._connection){const r=new URL("/hubs/rtm",this.url);this._connection.baseUrl!==r.toString()&&(this.connectionState="reconnecting",console.info(this.weavyId,"Reconnecting due to changed url.",this._connection.baseUrl,"=>",r.toString()),await this.disconnect(),this._connection.baseUrl=r.toString(),this.connect())}else{this.connectionState="connecting";const r=new URL("/hubs/rtm",this.url);this._connection=new c3.HubConnectionBuilder().configureLogging(c3.LogLevel.None).withUrl(r.toString(),{accessTokenFactory:u(async()=>{try{if(this.signalRAccessTokenRefresh){const a=await this.getToken(!0);return this.signalRAccessTokenRefresh=!1,a}else return await this.getToken()}catch(a){throw console.error(a),a}},"accessTokenFactory")}).withAutomaticReconnect({nextRetryDelayInMilliseconds:u(a=>!this.isDestroyed&&window.navigator.onLine&&(document==null?void 0:document.visibilityState)!=="hidden"&&a.elapsedMilliseconds<6e4?[0,2e3,1e4][a.previousRetryCount]||1e4:null,"nextRetryDelayInMilliseconds")}).build(),this._connection.onclose(()=>{console.info(this.weavyId,"SignalR closed."),this.connectionState="disconnected",!this.isDestroyed&&(this.networkStateIsPending=!0,this._whenConnectionStarted=new Promise((a,o)=>{this._whenConnectionStartedResolve=a,this._whenConnectionStartedReject=o}),this.connect())}),this._connection.onreconnecting(()=>{console.info(this.weavyId,"SignalR reconnecting..."),this.connectionState="reconnecting"}),this._connection.onreconnected(()=>{var a;console.info(this.weavyId,"SignalR reconnected."),this.connectionState="connected",this.networkStateIsPending=!1;for(let o=0;o<this._connectionEventListeners.length;o++)(a=this._connection)==null||a.invoke("Subscribe",this._connectionEventListeners[o].name)}),(s=this._resolveConnectionCreated)==null||s.call(this,this._connection),this.connect()}return this._connection}async disconnect(){this._connection&&(await this._connection.stop(),this.connectionState="disconnected")}async connect(){var s;if(this.isDestroyed)throw new Ce;let r;this._connection?r=this._connection:r=await this.whenConnectionCreated(),console.info(this.weavyId,"Connecting SignalR...");try{if(!window.navigator.onLine)throw new Error;await Promise.race([r.start(),this.whenConnectionStarted()]),this.signalRAccessTokenRefresh=!1,this.networkStateIsPending=!1,this.connectionState="connected",(s=this._whenConnectionStartedResolve)==null||s.call(this,r),console.info(this.weavyId,"SignalR connected.")}catch(a){if(a instanceof Ce)return console.warn(this.weavyId,"SignalR connection aborted."),r;window.navigator.onLine?!this.signalRAccessTokenRefresh&&window.document.visibilityState!=="hidden"&&a.toString().includes("Unauthorized")?(console.info(this.weavyId,"Retrying SignalR connect with fresh token."),this.signalRAccessTokenRefresh=!0):(console.info(this.weavyId,"Server is probably down, retrying SignalR connect after a delay or when window regains focus."),this.connectionState="reconnecting",await new Promise(o=>{setTimeout(o,5e3),window.addEventListener("visibilitychange",o,{once:!0}),window.addEventListener("offline",o,{once:!0}),window.addEventListener("online",o,{once:!0})})):(this.networkStateIsPending=!1,console.info(this.weavyId,"Offline, reconnecting SignalR when online."),await new Promise(o=>{window.addEventListener("online",o,{once:!0})})),window.navigator.onLine&&(document==null?void 0:document.visibilityState)!=="hidden"&&await new Promise(o=>setTimeout(o,1e3)),this.checkVersion(),this.networkStateIsPending=!0,await this.connect()}return r}async subscribe(s,r,a){var o;if(this.isDestroyed)throw new Ce;(o=this._resolveConnectionRequested)==null||o.call(this,!0);try{const l=s?s+":"+r:r;if(this._connectionEventListeners||await new Promise(c=>queueMicrotask(()=>c(!0))),this._connectionEventListeners.some(c=>c.name===l&&c.callback===a))throw new Error("Duplicate subscribe: "+l);if(this._connectionEventListeners.push({name:l,callback:a}),await this.whenConnectionStarted(),!this._connection)throw new Error("Connection not created");this._connection.on(l,a),await this._connection.invoke("Subscribe",l)}catch(l){l instanceof Ce||console.error(this.weavyId,"Error in Subscribe:",l)}}async unsubscribe(s,r,a){var o;if(this.isDestroyed)throw new Ce;try{const l=s?s+":"+r:r,c=this._connectionEventListeners.findIndex(d=>d.name===l&&d.callback===a);if(c!==-1){if(this._connectionEventListeners.splice(c,1),await this.whenConnectionStarted(),!this._connection)throw new Error("Connection not created");(o=this._connection)==null||o.off(l,a),this._connectionEventListeners.some(d=>d.name===l)||await this._connection.invoke("Unsubscribe",l)}}catch(l){l instanceof Ce||console.error(this.weavyId,"Error in Unsubscribe:",l)}}destroy(){super.destroy(),this.disconnect(),this._whenConnectionStartedReject&&(this._whenConnectionStarted.catch(()=>{}),this._whenConnectionStartedReject(new Ce))}},h(e,"t"),e),u(t,"WeavyConnection"),t},"WeavyConnectionMixin");var zv=(n=>(n.JSON="application/json;charset=utf-8",n.FormData="multipart/form-data;charset=utf-8",n.URLEncoded="application/x-www-form-urlencoded;charset=utf-8",n.Text="text/plain;charset=utf-8",n.Auto="",n))(zv||{});const Ej=u(n=>{var e;var t;return t=(e=class extends n{async fetchOptions(s={},r=!0){if(this.isDestroyed)throw new Ce;const a={headers:{"X-Weavy-Source":`${Me.sourceName}@${Me.version}`,"Content-Type":zv.JSON},method:"GET"},o=rw(rw(Oj,a,!0),s,!0);return r?rw(o,{headers:{Authorization:"Bearer "+await this.getToken()}},!0):o}async fetch(s,r,a=!0){if(this.isDestroyed)throw new Ce;const o=await this.fetchOptions(r);this.networkStateIsPending=!0;const l=await fetch(new URL(s,this.url),o);if(l.ok)this.networkStateIsPending=!1,this.serverState="ok";else if(l.status===401||l.status===403){if(a)return await this.getToken(!0),await this.fetch(s,r,!1);this.networkStateIsPending=!1,this.serverState="unauthorized"}else this.networkStateIsPending=!1;return l}async upload(s,r,a,o=zv.JSON,l,c=!0){if(this.isDestroyed)throw new Ce;const d=await this.getToken();return await new Promise((p,f)=>{const m=new XMLHttpRequest;m.open(r,new URL(s,this.url),!0),m.setRequestHeader("Authorization","Bearer "+d),m.setRequestHeader("X-Weavy-Source",`${Me.sourceName}@${Me.version}`),o&&m.setRequestHeader("Content-Type",o),l&&m.upload.addEventListener("progress",w=>{l(w.loaded/w.total*100||100)}),m.onload=w=>{c&&(m.status===401||m.status===401)?this.getToken(!0).then(()=>this.upload(s,r,a,o,l,!1)).then(p).catch(f):p(new Response(m.response,{status:m.status,statusText:m.statusText}))},m.onerror=f,m.send(a)})}async get(s){return console.warn(`weavy.get() is deprecated, use weavy.fetch("${s}") instead.`),this.fetch(s)}async post(s,r,a,o){console.warn(`weavy.post() is deprecated, use weavy.fetch("${s}", { method: "${r}"}) instead.`);const l=o?{"Content-Type":o}:void 0;return this.fetch(s,{method:r,body:a,headers:l})}},h(e,"t"),e),u(t,"WeavyFetch"),t},"WeavyFetchMixin"),cE="en",_j=u(n=>{var e;var t;return t=(e=class extends n{constructor(){super(...arguments),this._locales=new Map([["sv-SE",()=>import(new URL("./es/locales/sv-SE.js",typeof WEAVY_IMPORT_URL=="string"&&(!(typeof document>"u"?require("url").pathToFileURL(__filename).href:wt&&wt.tagName.toUpperCase()==="SCRIPT"&&wt.src||new URL("weavy.cjs",document.baseURI).href)||!new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:wt&&wt.tagName.toUpperCase()==="SCRIPT"&&wt.src||new URL("weavy.cjs",document.baseURI).href).href.startsWith(WEAVY_IMPORT_URL))?WEAVY_IMPORT_URL:typeof document>"u"?require("url").pathToFileURL(__filename).href:wt&&wt.tagName.toUpperCase()==="SCRIPT"&&wt.src||new URL("weavy.cjs",document.baseURI).href).href).then(s=>s.svSE)]]),this._locale=t.sourceLocale}static get sourceLocale(){try{return cE}catch{return""}}get locales(){return Array.from(this._locales.entries())}set locales(s){if(this.isDestroyed)throw new Ce;if(this.localization)throw new Error("Locales may only be configured once");if(s){if(!Array.isArray(s))throw new TypeError("Provided locales have invalid format.");s.forEach(r=>{if(!Array.isArray(r)||r.length!==2||typeof r[0]!="string")throw new TypeError("Invalid locale provided: "+r[0]);this._locales.set(...r)}),this.configureLocalization()}}get localization(){return this._localization}get locale(){return this._locale}set locale(s){if(this.isDestroyed)throw new Ce;!this._locale&&!s||(s||(s=t.sourceLocale),this._locale=s,this.localization?this.localization.setLocale(this._locale):queueMicrotask(()=>{this.localization?this.localization.setLocale(this._locale):this._locale!==t.sourceLocale&&(this._locales.has(this._locale)&&this.configureLocalization(),this.localization?this.localization.setLocale(this._locale):console.error(this.weavyId,`You need to configure additional languages in config to use '${s}'.`))}))}async loadLocale(s){var r;if(this.isDestroyed)throw new Ce;if((r=this._locales)!=null&&r.has(s)){const a=this._locales.get(s);return console.info(this.weavyId,typeof a=="function"?"loading locale":"preloaded locale",s),await(typeof a=="function"?a():a)}else throw new Error("The requested locale is not configured")}configureLocalization(){var s;if(this.isDestroyed)throw new Ce;if((s=this._locales)!=null&&s.size&&!this.localization){const r=this._locales.keys();console.info(this.weavyId,"Configuring locales",r);const{getLocale:a,setLocale:o}=VU({sourceLocale:t.sourceLocale,targetLocales:r,loadLocale:u(l=>this.loadLocale(l),"loadLocale")});this._localization={getLocale:a,setLocale:o}}}},h(e,"t"),e),u(t,"WeavyLocalization"),t},"WeavyLocalizationMixin"),zj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._networkEvents=new Set,this._connectionState="connecting",this._serverState="ok",this._networkState=window.navigator.onLine?"online":"offline",this._networkStateIsPending=!1,window.addEventListener("online",()=>{this.networkState="online"}),window.addEventListener("offline",()=>{this.networkState="offline",this.networkStateIsPending=!1})}get networkState(){return this._networkState}set networkState(s){this._networkState=s,this.triggerNetworkChange()}get serverState(){return this._serverState}set serverState(s){this._serverState=s,this.triggerNetworkChange()}get connectionState(){return this._connectionState}set connectionState(s){this._connectionState=s,this.triggerNetworkChange()}get networkStateIsPending(){return this._networkStateIsPending}set networkStateIsPending(s){this._networkStateIsPending=s,this.triggerNetworkChange()}get network(){return{state:this._networkState==="online"?this._connectionState==="connected"||this._serverState==="ok"?"online":"unreachable":"offline",isPending:this._networkStateIsPending}}triggerNetworkChange(){const s=this.network;this._networkEvents.forEach(r=>{r(s)})}addNetworkListener(s){this._networkEvents.add(s)}removeNetworkListener(s){this._networkEvents.delete(s)}},h(e,"t"),e),u(t,"WeavyNetwork"),t},"WeavyNetworkMixin");function O1(){}h(O1,"Ch");u(O1,"noop");function hE({storage:n,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:e=1e3,serialize:i=JSON.stringify,deserialize:s=JSON.parse,retry:r}){if(n){const a=u(o=>{try{n.setItem(t,i(o));return}catch(l){return l}},"trySave");return{persistClient:dE(o=>{let l=o,c=a(l),d=0;for(;c&&l;)d++,l=r==null?void 0:r({persistedClient:l,error:c,errorCount:d}),l&&(c=a(l))},e),restoreClient:u(()=>{const o=n.getItem(t);if(o)return s(o)},"restoreClient"),removeClient:u(()=>{n.removeItem(t)},"removeClient")}}return{persistClient:O1,restoreClient:O1,removeClient:O1}}h(hE,"N1");u(hE,"createSyncStoragePersister");function dE(n,t=100){let e=null,i;return function(...s){i=s,e===null&&(e=setTimeout(()=>{n(...i),e=null},t))}}h(dE,"j1");u(dE,"throttle$1");var Lj=["added","removed","updated"];function Kx(n){return Lj.includes(n)}h(Kx,"ly");u(Kx,"isCacheEventType");async function uE({queryClient:n,persister:t,maxAge:e=1e3*60*60*24,buster:i="",hydrateOptions:s}){try{const r=await t.restoreClient();if(r)if(r.timestamp){const a=Date.now()-r.timestamp>e,o=r.buster!==i;if(a||o)return t.removeClient();GR(n,r.clientState,s)}else return t.removeClient()}catch(r){throw await t.removeClient(),r}}h(uE,"Q1");u(uE,"persistQueryClientRestore");async function Jx({queryClient:n,persister:t,buster:e="",dehydrateOptions:i}){const s={buster:e,timestamp:Date.now(),clientState:YR(n,i)};await t.persistClient(s)}h(Jx,"dy");u(Jx,"persistQueryClientSave");function pE(n){const t=n.queryClient.getQueryCache().subscribe(i=>{Kx(i.type)&&Jx(n)}),e=n.queryClient.getMutationCache().subscribe(i=>{Kx(i.type)&&Jx(n)});return()=>{t(),e()}}h(pE,"K1");u(pE,"persistQueryClientSubscribe");const Ij=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._queryClient=new Qj({defaultOptions:{queries:{staleTime:this.staleTime,gcTime:this.gcTime}}}),this.initQueryClient()}get queryClient(){return this._queryClient}async initQueryClient(){if(this.isDestroyed)throw new Ce;await this.whenUrl();try{this._sessionStoragePersister=hE({key:"WEAVY_QUERY_OFFLINE_CACHE",storage:window.sessionStorage,throttleTime:this.staleTime});const s={queryClient:this._queryClient,persister:this._sessionStoragePersister,maxAge:this.gcTime,buster:this.cachePrefix,hydrateOptions:void 0,dehydrateOptions:{shouldDehydrateMutation:u(r=>{var a,o;const l=((o=(a=r.state.context)==null?void 0:a.status)==null?void 0:o.state)==="pending";return!!(r.state.context&&!l||r.state.isPaused)},"shouldDehydrateMutation")}};await uE(s),this._unsubscribeQueryClient=pE(s)}catch{console.warn(this.weavyId,"Query cache persister not available.")}this.host.isConnected&&this._queryClient.mount(),this._hostIsConnectedObserver=H3(this.host,s=>{this.isDestroyed||(s?(console.info(this.weavyId,"Query client mounted"),this._queryClient.mount()):(console.info(this.weavyId,"Query client unmounted"),this._queryClient.unmount()))})}async disconnectQueryClient(){var s,r;console.info(this.weavyId,"Query client disconnected"),await this._queryClient.cancelQueries(),this.queryClient.setQueriesData({},void 0),await this.queryClient.resetQueries(),(s=this._sessionStoragePersister)==null||s.removeClient(),(r=this._unsubscribeQueryClient)==null||r.call(this),this._queryClient.unmount(),this._queryClient.clear()}destroy(){var s;super.destroy(),(s=this._hostIsConnectedObserver)==null||s.disconnect(),this.disconnectQueryClient()}},h(e,"t"),e),u(t,"WeavyQuery"),t},"WeavyQueryMixin"),Zj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._notificationEvents=Me.defaults.notificationEvents??!1,this.dispatchRealtimeEvent=r=>{ii();const a=this.host!==document.documentElement?{composed:!0}:{bubbles:!0};switch(r.action){case"notification_created":case"notification_updated":case"notification_deleted":case"notifications_marked":{const o=new CustomEvent("wy-notifications",{...a,detail:r});this.host.dispatchEvent(o)}}}}get notificationEvents(){return this._notificationEvents}set notificationEvents(s){this.realtimeUnsubscribe(),this._notificationEvents=s??!1,this.realtimeSubscribe()}realtimeSubscribe(){const s=this;this.notificationEvents&&(s.subscribe(null,"notification_created",this.dispatchRealtimeEvent),s.subscribe(null,"notification_updated",this.dispatchRealtimeEvent),s.subscribe(null,"notifications_marked",this.dispatchRealtimeEvent))}realtimeUnsubscribe(){const s=this;this.notificationEvents&&(s.unsubscribe(null,"notification_created",this.dispatchRealtimeEvent),s.unsubscribe(null,"notification_updated",this.dispatchRealtimeEvent),s.unsubscribe(null,"notifications_marked",this.dispatchRealtimeEvent))}destroy(){this.realtimeUnsubscribe(),super.destroy()}},h(e,"t"),e),u(t,"WeavyRealtime"),t},"WeavyRealtimeMixin"),Vj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s)}set notifications(s){this._notifications=s,this.updateContext()}get notifications(){return this._notifications??Me.defaults.notifications}set notificationsBadge(s){this._notificationsBadge=s,this.updateContext()}get notificationsBadge(){return this._notificationsBadge??Me.defaults.notificationsBadge}set reactions(s){this._reactions=s,this.updateContext()}get reactions(){return this._reactions??Me.defaults.reactions}},h(e,"t"),e),u(t,"WeavySettings"),t},"WeavySettingsMixin");function ui(n){return n<0?-1:n===0?0:1}h(ui,"Ee");u(ui,"signum");function Dc(n,t,e){return(1-e)*n+e*t}h(Dc,"fc");u(Dc,"lerp");function fE(n,t,e){return e<n?n:e>t?t:e}h(fE,"X1");u(fE,"clampInt");function Rw(n,t,e){return e<n?n:e>t?t:e}h(Rw,"Vl");u(Rw,"clampDouble");function _0(n){return n=n%360,n<0&&(n=n+360),n}h(_0,"Uu");u(_0,"sanitizeDegreesDouble");function yE(n,t){return _0(t-n)<=180?1:-1}h(yE,"J1");u(yE,"rotationDirection");function mE(n,t){return 180-Math.abs(Math.abs(n-t)-180)}h(mE,"tv");u(mE,"differenceDegrees");function Lv(n,t){const e=n[0]*t[0][0]+n[1]*t[0][1]+n[2]*t[0][2],i=n[0]*t[1][0]+n[1]*t[1][1]+n[2]*t[1][2],s=n[0]*t[2][0]+n[1]*t[2][1]+n[2]*t[2][2];return[e,i,s]}h(Lv,"Yh");u(Lv,"matrixMultiply");const Wj=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],Dj=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],qj=[95.047,100,108.883];function z0(n,t,e){return(255<<24|(n&255)<<16|(t&255)<<8|e&255)>>>0}h(z0,"Bu");u(z0,"argbFromRgb");function tk(n){const t=$r(n[0]),e=$r(n[1]),i=$r(n[2]);return z0(t,e,i)}h(tk,"hy");u(tk,"argbFromLinrgb");function BS(n){return n>>16&255}h(BS,"Tw");u(BS,"redFromArgb");function FS(n){return n>>8&255}h(FS,"Fw");u(FS,"greenFromArgb");function XS(n){return n&255}h(XS,"Dw");u(XS,"blueFromArgb");function wE(n,t,e){const i=Dj,s=i[0][0]*n+i[0][1]*t+i[0][2]*e,r=i[1][0]*n+i[1][1]*t+i[1][2]*e,a=i[2][0]*n+i[2][1]*t+i[2][2]*e,o=$r(s),l=$r(r),c=$r(a);return z0(o,l,c)}h(wE,"rv");u(wE,"argbFromXyz");function gE(n){const t=Na(BS(n)),e=Na(FS(n)),i=Na(XS(n));return Lv([t,e,i],Wj)}h(gE,"nv");u(gE,"xyzFromArgb");function vE(n){const t=Es(n),e=$r(t);return z0(e,e,e)}h(vE,"av");u(vE,"argbFromLstar");function Iv(n){const t=gE(n)[1];return 116*NS(t/100)-16}h(Iv,"Xh");u(Iv,"lstarFromArgb");function Es(n){return 100*bE((n+16)/116)}h(Es,"xs");u(Es,"yFromLstar");function Zv(n){return NS(n/100)*116-16}h(Zv,"Jh");u(Zv,"lstarFromY");function Na(n){const t=n/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}h(Na,"Wr");u(Na,"linearized");function $r(n){const t=n/100;let e=0;return t<=.0031308?e=t*12.92:e=1.055*Math.pow(t,1/2.4)-.055,fE(0,255,Math.round(e*255))}h($r,"tr");u($r,"delinearized");function OE(){return qj}h(OE,"ov");u(OE,"whitePointD65");function NS(n){const t=.008856451679035631,e=24389/27;return n>t?Math.pow(n,1/3):(e*n+16)/116}h(NS,"Hw");u(NS,"labF");function bE(n){const t=.008856451679035631,e=24389/27,i=n*n*n;return i>t?i:(116*n-16)/e}h(bE,"cv");u(bE,"labInvf");var Ro;const $E=(Ro=class{static make(t=OE(),e=200/Math.PI*Es(50)/100,i=50,s=2,r=!1){const a=t,o=a[0]*.401288+a[1]*.650173+a[2]*-.051461,l=a[0]*-.250268+a[1]*1.204414+a[2]*.045854,c=a[0]*-.002079+a[1]*.048952+a[2]*.953127,d=.8+s/10,p=d>=.9?Dc(.59,.69,(d-.9)*10):Dc(.525,.59,(d-.8)*10);let f=r?1:d*(1-1/3.6*Math.exp((-e-42)/92));f=f>1?1:f<0?0:f;const m=d,w=[f*(100/o)+1-f,f*(100/l)+1-f,f*(100/c)+1-f],O=1/(5*e+1),x=O*O*O*O,b=1-x,P=x*e+.1*b*b*Math.cbrt(5*e),R=Es(i)/t[1],E=1.48+Math.sqrt(R),T=.725/Math.pow(R,.2),I=T,Z=[Math.pow(P*w[0]*o/100,.42),Math.pow(P*w[1]*l/100,.42),Math.pow(P*w[2]*c/100,.42)],U=[400*Z[0]/(Z[0]+27.13),400*Z[1]/(Z[1]+27.13),400*Z[2]/(Z[2]+27.13)],B=(2*U[0]+U[1]+.05*U[2])*T;return new Ro(R,B,T,I,p,m,w,P,Math.pow(P,.25),E)}constructor(t,e,i,s,r,a,o,l,c,d){this.n=t,this.aw=e,this.nbb=i,this.ncb=s,this.c=r,this.nc=a,this.rgbD=o,this.fl=l,this.fLRoot=c,this.z=d}},h(Ro,"dd"),Ro);u($E,"ViewingConditions");let _s=$E;_s.DEFAULT=_s.make();var Di;const xE=(Di=class{constructor(t,e,i,s,r,a,o,l,c){this.hue=t,this.chroma=e,this.j=i,this.q=s,this.m=r,this.s=a,this.jstar=o,this.astar=l,this.bstar=c}distance(t){const e=this.jstar-t.jstar,i=this.astar-t.astar,s=this.bstar-t.bstar,r=Math.sqrt(e*e+i*i+s*s);return 1.41*Math.pow(r,.63)}static fromInt(t){return Di.fromIntInViewingConditions(t,_s.DEFAULT)}static fromIntInViewingConditions(t,e){const i=(t&16711680)>>16,s=(t&65280)>>8,r=t&255,a=Na(i),o=Na(s),l=Na(r),c=.41233895*a+.35762064*o+.18051042*l,d=.2126*a+.7152*o+.0722*l,p=.01932141*a+.11916382*o+.95034478*l,f=.401288*c+.650173*d-.051461*p,m=-.250268*c+1.204414*d+.045854*p,w=-.002079*c+.048952*d+.953127*p,O=e.rgbD[0]*f,x=e.rgbD[1]*m,b=e.rgbD[2]*w,P=Math.pow(e.fl*Math.abs(O)/100,.42),R=Math.pow(e.fl*Math.abs(x)/100,.42),E=Math.pow(e.fl*Math.abs(b)/100,.42),T=ui(O)*400*P/(P+27.13),I=ui(x)*400*R/(R+27.13),Z=ui(b)*400*E/(E+27.13),U=(11*T+-12*I+Z)/11,B=(T+I-2*Z)/9,tt=(20*T+20*I+21*Z)/20,K=(40*T+20*I+Z)/20,j=Math.atan2(B,U)*180/Math.PI,J=j<0?j+360:j>=360?j-360:j,it=J*Math.PI/180,bt=K*e.nbb,mt=100*Math.pow(bt/e.aw,e.c*e.z),Zt=4/e.c*Math.sqrt(mt/100)*(e.aw+4)*e.fLRoot,Vt=J<20.14?J+360:J,Rt=.25*(Math.cos(Vt*Math.PI/180+2)+3.8),ie=5e4/13*Rt*e.nc*e.ncb*Math.sqrt(U*U+B*B)/(tt+.305),me=Math.pow(ie,.9)*Math.pow(1.64-Math.pow(.29,e.n),.73),he=me*Math.sqrt(mt/100),ne=he*e.fLRoot,we=50*Math.sqrt(me*e.c/(e.aw+4)),bi=(1+100*.007)*mt/(1+.007*mt),Ei=1/.0228*Math.log(1+.0228*ne),Hi=Ei*Math.cos(it),Nt=Ei*Math.sin(it);return new Di(J,he,mt,Zt,ne,we,bi,Hi,Nt)}static fromJch(t,e,i){return Di.fromJchInViewingConditions(t,e,i,_s.DEFAULT)}static fromJchInViewingConditions(t,e,i,s){const r=4/s.c*Math.sqrt(t/100)*(s.aw+4)*s.fLRoot,a=e*s.fLRoot,o=e/Math.sqrt(t/100),l=50*Math.sqrt(o*s.c/(s.aw+4)),c=i*Math.PI/180,d=(1+100*.007)*t/(1+.007*t),p=1/.0228*Math.log(1+.0228*a),f=p*Math.cos(c),m=p*Math.sin(c);return new Di(i,e,t,r,a,l,d,f,m)}static fromUcs(t,e,i){return Di.fromUcsInViewingConditions(t,e,i,_s.DEFAULT)}static fromUcsInViewingConditions(t,e,i,s){const r=e,a=i,o=Math.sqrt(r*r+a*a),l=(Math.exp(o*.0228)-1)/.0228/s.fLRoot;let c=Math.atan2(a,r)*(180/Math.PI);c<0&&(c+=360);const d=t/(1-(t-100)*.007);return Di.fromJchInViewingConditions(d,l,c,s)}toInt(){return this.viewed(_s.DEFAULT)}viewed(t){const e=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),i=Math.pow(e/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),s=this.hue*Math.PI/180,r=.25*(Math.cos(s+2)+3.8),a=t.aw*Math.pow(this.j/100,1/t.c/t.z),o=r*(5e4/13)*t.nc*t.ncb,l=a/t.nbb,c=Math.sin(s),d=Math.cos(s),p=23*(l+.305)*i/(23*o+11*i*d+108*i*c),f=p*d,m=p*c,w=(460*l+451*f+288*m)/1403,O=(460*l-891*f-261*m)/1403,x=(460*l-220*f-6300*m)/1403,b=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),P=ui(w)*(100/t.fl)*Math.pow(b,1/.42),R=Math.max(0,27.13*Math.abs(O)/(400-Math.abs(O))),E=ui(O)*(100/t.fl)*Math.pow(R,1/.42),T=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),I=ui(x)*(100/t.fl)*Math.pow(T,1/.42),Z=P/t.rgbD[0],U=E/t.rgbD[1],B=I/t.rgbD[2],tt=1.86206786*Z-1.01125463*U+.14918677*B,K=.38752654*Z+.62144744*U-.00897398*B,j=-.0158415*Z-.03412294*U+1.04996444*B;return wE(tt,K,j)}static fromXyzInViewingConditions(t,e,i,s){const r=.401288*t+.650173*e-.051461*i,a=-.250268*t+1.204414*e+.045854*i,o=-.002079*t+.048952*e+.953127*i,l=s.rgbD[0]*r,c=s.rgbD[1]*a,d=s.rgbD[2]*o,p=Math.pow(s.fl*Math.abs(l)/100,.42),f=Math.pow(s.fl*Math.abs(c)/100,.42),m=Math.pow(s.fl*Math.abs(d)/100,.42),w=ui(l)*400*p/(p+27.13),O=ui(c)*400*f/(f+27.13),x=ui(d)*400*m/(m+27.13),b=(11*w+-12*O+x)/11,P=(w+O-2*x)/9,R=(20*w+20*O+21*x)/20,E=(40*w+20*O+x)/20,T=Math.atan2(P,b)*180/Math.PI,I=T<0?T+360:T>=360?T-360:T,Z=I*Math.PI/180,U=E*s.nbb,B=100*Math.pow(U/s.aw,s.c*s.z),tt=4/s.c*Math.sqrt(B/100)*(s.aw+4)*s.fLRoot,K=I<20.14?I+360:I,j=1/4*(Math.cos(K*Math.PI/180+2)+3.8),J=5e4/13*j*s.nc*s.ncb*Math.sqrt(b*b+P*P)/(R+.305),it=Math.pow(J,.9)*Math.pow(1.64-Math.pow(.29,s.n),.73),bt=it*Math.sqrt(B/100),mt=bt*s.fLRoot,Zt=50*Math.sqrt(it*s.c/(s.aw+4)),Vt=(1+100*.007)*B/(1+.007*B),Rt=Math.log(1+.0228*mt)/.0228,ie=Rt*Math.cos(Z),me=Rt*Math.sin(Z);return new Di(I,bt,B,tt,mt,Zt,Vt,ie,me)}xyzInViewingConditions(t){const e=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),i=Math.pow(e/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),s=this.hue*Math.PI/180,r=.25*(Math.cos(s+2)+3.8),a=t.aw*Math.pow(this.j/100,1/t.c/t.z),o=r*(5e4/13)*t.nc*t.ncb,l=a/t.nbb,c=Math.sin(s),d=Math.cos(s),p=23*(l+.305)*i/(23*o+11*i*d+108*i*c),f=p*d,m=p*c,w=(460*l+451*f+288*m)/1403,O=(460*l-891*f-261*m)/1403,x=(460*l-220*f-6300*m)/1403,b=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),P=ui(w)*(100/t.fl)*Math.pow(b,1/.42),R=Math.max(0,27.13*Math.abs(O)/(400-Math.abs(O))),E=ui(O)*(100/t.fl)*Math.pow(R,1/.42),T=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),I=ui(x)*(100/t.fl)*Math.pow(T,1/.42),Z=P/t.rgbD[0],U=E/t.rgbD[1],B=I/t.rgbD[2],tt=1.86206786*Z-1.01125463*U+.14918677*B,K=.38752654*Z+.62144744*U-.00897398*B,j=-.0158415*Z-.03412294*U+1.04996444*B;return[tt,K,j]}},h(Di,"fi"),Di);u(xE,"Cam16");let Fn=xE;var Ot;const kE=(Ot=class{static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const e=t/100;let i=0;return e<=.0031308?i=e*12.92:i=1.055*Math.pow(e,1/2.4)-.055,i*255}static chromaticAdaptation(t){const e=Math.pow(Math.abs(t),.42);return ui(t)*400*e/(e+27.13)}static hueOf(t){const e=Lv(t,Ot.SCALED_DISCOUNT_FROM_LINRGB),i=Ot.chromaticAdaptation(e[0]),s=Ot.chromaticAdaptation(e[1]),r=Ot.chromaticAdaptation(e[2]),a=(11*i+-12*s+r)/11,o=(i+s-2*r)/9;return Math.atan2(o,a)}static areInCyclicOrder(t,e,i){const s=Ot.sanitizeRadians(e-t),r=Ot.sanitizeRadians(i-t);return s<r}static intercept(t,e,i){return(e-t)/(i-t)}static lerpPoint(t,e,i){return[t[0]+(i[0]-t[0])*e,t[1]+(i[1]-t[1])*e,t[2]+(i[2]-t[2])*e]}static setCoordinate(t,e,i,s){const r=Ot.intercept(t[s],e,i[s]);return Ot.lerpPoint(t,r,i)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,e){const i=Ot.Y_FROM_LINRGB[0],s=Ot.Y_FROM_LINRGB[1],r=Ot.Y_FROM_LINRGB[2],a=e%4<=1?0:100,o=e%2===0?0:100;if(e<4){const l=a,c=o,d=(t-l*s-c*r)/i;return Ot.isBounded(d)?[d,l,c]:[-1,-1,-1]}else if(e<8){const l=a,c=o,d=(t-c*i-l*r)/s;return Ot.isBounded(d)?[c,d,l]:[-1,-1,-1]}else{const l=a,c=o,d=(t-l*i-c*s)/r;return Ot.isBounded(d)?[l,c,d]:[-1,-1,-1]}}static bisectToSegment(t,e){let i=[-1,-1,-1],s=i,r=0,a=0,o=!1,l=!0;for(let c=0;c<12;c++){const d=Ot.nthVertex(t,c);if(d[0]<0)continue;const p=Ot.hueOf(d);if(!o){i=d,s=d,r=p,a=p,o=!0;continue}(l||Ot.areInCyclicOrder(r,p,a))&&(l=!1,Ot.areInCyclicOrder(r,e,p)?(s=d,a=p):(i=d,r=p))}return[i,s]}static midpoint(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]}static criticalPlaneBelow(t){return Math.floor(t-.5)}static criticalPlaneAbove(t){return Math.ceil(t-.5)}static bisectToLimit(t,e){const i=Ot.bisectToSegment(t,e);let s=i[0],r=Ot.hueOf(s),a=i[1];for(let o=0;o<3;o++)if(s[o]!==a[o]){let l=-1,c=255;s[o]<a[o]?(l=Ot.criticalPlaneBelow(Ot.trueDelinearized(s[o])),c=Ot.criticalPlaneAbove(Ot.trueDelinearized(a[o]))):(l=Ot.criticalPlaneAbove(Ot.trueDelinearized(s[o])),c=Ot.criticalPlaneBelow(Ot.trueDelinearized(a[o])));for(let d=0;d<8&&!(Math.abs(c-l)<=1);d++){const p=Math.floor((l+c)/2),f=Ot.CRITICAL_PLANES[p],m=Ot.setCoordinate(s,f,a,o),w=Ot.hueOf(m);Ot.areInCyclicOrder(r,e,w)?(a=m,c=p):(s=m,r=w,l=p)}}return Ot.midpoint(s,a)}static inverseChromaticAdaptation(t){const e=Math.abs(t),i=Math.max(0,27.13*e/(400-e));return ui(t)*Math.pow(i,1/.42)}static findResultByJ(t,e,i){let s=Math.sqrt(i)*11;const r=_s.DEFAULT,a=1/Math.pow(1.64-Math.pow(.29,r.n),.73),o=.25*(Math.cos(t+2)+3.8)*(5e4/13)*r.nc*r.ncb,l=Math.sin(t),c=Math.cos(t);for(let d=0;d<5;d++){const p=s/100,f=e===0||s===0?0:e/Math.sqrt(p),m=Math.pow(f*a,1/.9),w=r.aw*Math.pow(p,1/r.c/r.z)/r.nbb,O=23*(w+.305)*m/(23*o+11*m*c+108*m*l),x=O*c,b=O*l,P=(460*w+451*x+288*b)/1403,R=(460*w-891*x-261*b)/1403,E=(460*w-220*x-6300*b)/1403,T=Ot.inverseChromaticAdaptation(P),I=Ot.inverseChromaticAdaptation(R),Z=Ot.inverseChromaticAdaptation(E),U=Lv([T,I,Z],Ot.LINRGB_FROM_SCALED_DISCOUNT);if(U[0]<0||U[1]<0||U[2]<0)return 0;const B=Ot.Y_FROM_LINRGB[0],tt=Ot.Y_FROM_LINRGB[1],K=Ot.Y_FROM_LINRGB[2],j=B*U[0]+tt*U[1]+K*U[2];if(j<=0)return 0;if(d===4||Math.abs(j-i)<.002)return U[0]>100.01||U[1]>100.01||U[2]>100.01?0:tk(U);s=s-(j-i)*s/(2*j)}return 0}static solveToInt(t,e,i){if(e<1e-4||i<1e-4||i>99.9999)return vE(i);t=_0(t);const s=t/180*Math.PI,r=Es(i),a=Ot.findResultByJ(s,e,r);if(a!==0)return a;const o=Ot.bisectToLimit(r,s);return tk(o)}static solveToCam(t,e,i){return Fn.fromInt(Ot.solveToInt(t,e,i))}},h(Ot,"nt"),Ot);u(kE,"HctSolver");let vr=kE;vr.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];vr.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];vr.Y_FROM_LINRGB=[.2126,.7152,.0722];vr.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];var Ds;const SE=(Ds=class{static from(t,e,i){return new Ds(vr.solveToInt(t,e,i))}static fromInt(t){return new Ds(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(vr.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(vr.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(vr.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const e=Fn.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=Iv(t),this.argb=t}setInternalState(t){const e=Fn.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=Iv(t),this.argb=t}inViewingConditions(t){const e=Fn.fromInt(this.toInt()).xyzInViewingConditions(t),i=Fn.fromXyzInViewingConditions(e[0],e[1],e[2],_s.make());return Ds.from(i.hue,i.chroma,Zv(e[1]))}},h(Ds,"Nr"),Ds);u(SE,"Hct");let Pi=SE;var Eo;const PE=(Eo=class{static harmonize(t,e){const i=Pi.fromInt(t),s=Pi.fromInt(e),r=mE(i.hue,s.hue),a=Math.min(r*.5,15),o=_0(i.hue+a*yE(i.hue,s.hue));return Pi.from(o,i.chroma,i.tone).toInt()}static hctHue(t,e,i){const s=Eo.cam16Ucs(t,e,i),r=Fn.fromInt(s),a=Fn.fromInt(t);return Pi.from(r.hue,a.chroma,Iv(t)).toInt()}static cam16Ucs(t,e,i){const s=Fn.fromInt(t),r=Fn.fromInt(e),a=s.jstar,o=s.astar,l=s.bstar,c=r.jstar,d=r.astar,p=r.bstar,f=a+(c-a)*i,m=o+(d-o)*i,w=l+(p-l)*i;return Fn.fromUcs(f,m,w).toInt()}},h(Eo,"hd"),Eo);u(PE,"Blend");let Vn=PE;var mn;const CE=(mn=class{static ratioOfTones(t,e){return t=Rw(0,100,t),e=Rw(0,100,e),mn.ratioOfYs(Es(t),Es(e))}static ratioOfYs(t,e){const i=t>e?t:e,s=i===e?t:e;return(i+5)/(s+5)}static lighter(t,e){if(t<0||t>100)return-1;const i=Es(t),s=e*(i+5)-5,r=mn.ratioOfYs(s,i),a=Math.abs(r-e);if(r<e&&a>.04)return-1;const o=Zv(s)+.4;return o<0||o>100?-1:o}static darker(t,e){if(t<0||t>100)return-1;const i=Es(t),s=(i+5)/e-5,r=mn.ratioOfYs(i,s),a=Math.abs(r-e);if(r<e&&a>.04)return-1;const o=Zv(s)-.4;return o<0||o>100?-1:o}static lighterUnsafe(t,e){const i=mn.lighter(t,e);return i<0?100:i}static darkerUnsafe(t,e){const i=mn.darker(t,e);return i<0?0:i}},h(mn,"cs"),mn);u(CE,"Contrast");let Yi=CE;var _o;const QE=(_o=class{static isDisliked(t){const e=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,i=Math.round(t.chroma)>16,s=Math.round(t.tone)<65;return e&&i&&s}static fixIfDisliked(t){return _o.isDisliked(t)?Pi.from(t.hue,t.chroma,70):t}},h(_o,"ud"),_o);u(QE,"DislikeAnalyzer");let Uj=QE;var We;const ME=(We=class{static fromPalette(t){return new We(t.name??"",t.palette,t.tone,t.isBackground??!1,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}constructor(t,e,i,s,r,a,o,l){if(this.name=t,this.palette=e,this.tone=i,this.isBackground=s,this.background=r,this.secondBackground=a,this.contrastCurve=o,this.toneDeltaPair=l,this.hctCache=new Map,!r&&a)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!r&&o)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(r&&!o)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(t){return this.getHct(t).toInt()}getHct(t){const e=this.hctCache.get(t);if(e!=null)return e;const i=this.getTone(t),s=this.palette(t).getHct(i);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,s),s}getTone(t){const e=t.contrastLevel<0;if(this.toneDeltaPair){const i=this.toneDeltaPair(t),s=i.roleA,r=i.roleB,a=i.delta,o=i.polarity,l=i.stayTogether,c=this.background(t).getTone(t),d=o==="nearer"||o==="lighter"&&!t.isDark||o==="darker"&&t.isDark,p=d?s:r,f=d?r:s,m=this.name===p.name,w=t.isDark?1:-1,O=p.contrastCurve.getContrast(t.contrastLevel),x=f.contrastCurve.getContrast(t.contrastLevel),b=p.tone(t);let P=Yi.ratioOfTones(c,b)>=O?b:We.foregroundTone(c,O);const R=f.tone(t);let E=Yi.ratioOfTones(c,R)>=x?R:We.foregroundTone(c,x);return e&&(P=We.foregroundTone(c,O),E=We.foregroundTone(c,x)),(E-P)*w>=a||(E=Rw(0,100,P+a*w),(E-P)*w>=a||(P=Rw(0,100,E-a*w))),50<=P&&P<60?w>0?(P=60,E=Math.max(E,P+a*w)):(P=49,E=Math.min(E,P+a*w)):50<=E&&E<60&&(l?w>0?(P=60,E=Math.max(E,P+a*w)):(P=49,E=Math.min(E,P+a*w)):w>0?E=60:E=49),m?P:E}else{let i=this.tone(t);if(this.background==null)return i;const s=this.background(t).getTone(t),r=this.contrastCurve.getContrast(t.contrastLevel);if(Yi.ratioOfTones(s,i)>=r||(i=We.foregroundTone(s,r)),e&&(i=We.foregroundTone(s,r)),this.isBackground&&50<=i&&i<60&&(Yi.ratioOfTones(49,s)>=r?i=49:i=60),this.secondBackground){const[a,o]=[this.background,this.secondBackground],[l,c]=[a(t).getTone(t),o(t).getTone(t)],[d,p]=[Math.max(l,c),Math.min(l,c)];if(Yi.ratioOfTones(d,i)>=r&&Yi.ratioOfTones(p,i)>=r)return i;const f=Yi.lighter(d,r),m=Yi.darker(p,r),w=[];return f!==-1&&w.push(f),m!==-1&&w.push(m),We.tonePrefersLightForeground(l)||We.tonePrefersLightForeground(c)?f<0?100:f:w.length===1?w[0]:m<0?0:m}return i}}static foregroundTone(t,e){const i=Yi.lighterUnsafe(t,e),s=Yi.darkerUnsafe(t,e),r=Yi.ratioOfTones(i,t),a=Yi.ratioOfTones(s,t);if(We.tonePrefersLightForeground(t)){const o=Math.abs(r-a)<.1&&r<e&&a<e;return r>=e||r>=a||o?i:s}else return a>=e||a>=r?s:i}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return We.tonePrefersLightForeground(t)&&!We.toneAllowsLightForeground(t)?49:t}},h(We,"_e"),We);u(ME,"DynamicColor");let ht=ME;var Ew;(function(n){n[n.MONOCHROME=0]="MONOCHROME",n[n.NEUTRAL=1]="NEUTRAL",n[n.TONAL_SPOT=2]="TONAL_SPOT",n[n.VIBRANT=3]="VIBRANT",n[n.EXPRESSIVE=4]="EXPRESSIVE",n[n.FIDELITY=5]="FIDELITY",n[n.CONTENT=6]="CONTENT",n[n.RAINBOW=7]="RAINBOW",n[n.FRUIT_SALAD=8]="FRUIT_SALAD"})(Ew||(Ew={}));var bu;const TE=(bu=class{constructor(t,e,i,s){this.low=t,this.normal=e,this.medium=i,this.high=s}getContrast(t){return t<=-1?this.low:t<0?Dc(this.low,this.normal,(t- -1)/1):t<.5?Dc(this.normal,this.medium,(t-0)/.5):t<1?Dc(this.medium,this.high,(t-.5)/.5):this.high}},h(bu,"$p"),bu);u(TE,"ContrastCurve");let _t=TE;var $u;const AE=($u=class{constructor(t,e,i,s,r){this.roleA=t,this.roleB=e,this.delta=i,this.polarity=s,this.stayTogether=r}},h($u,"Cp"),$u);u(AE,"ToneDeltaPair");let Ai=AE;function al(n){return n.variant===Ew.FIDELITY||n.variant===Ew.CONTENT}h(al,"ic");u(al,"isFidelity");function pe(n){return n.variant===Ew.MONOCHROME}h(pe,"Wt");u(pe,"isMonochrome");function RE(n,t,e,i){let s=e,r=Pi.from(n,t,e);if(r.chroma<t){let a=r.chroma;for(;r.chroma<t;){s+=i?-1:1;const o=Pi.from(n,t,s);if(a>o.chroma||Math.abs(o.chroma-t)<.4)break;const l=Math.abs(o.chroma-t),c=Math.abs(r.chroma-t);l<c&&(r=o),a=Math.max(a,o.chroma)}}return s}h(RE,"lv");u(RE,"findDesiredChromaByTone");function EE(n){return _s.make(void 0,void 0,n.isDark?30:80,void 0,void 0)}h(EE,"dv");u(EE,"viewingConditionsForAlbers");function L0(n,t){const e=n.inViewingConditions(EE(t));return ht.tonePrefersLightForeground(n.tone)&&!ht.toneAllowsLightForeground(e.tone)?ht.enableLightForeground(n.tone):ht.enableLightForeground(e.tone)}h(L0,"qu");u(L0,"performAlbers");var jr;const _E=(jr=class{static highestSurface(t){return t.isDark?jr.surfaceBright:jr.surfaceDim}},h(jr,"gc"),jr);u(_E,"MaterialDynamicColors");let W=_E;W.contentAccentToneDelta=15;W.primaryPaletteKeyColor=ht.fromPalette({name:"primary_palette_key_color",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>n.primaryPalette.keyColor.tone,"tone")});W.secondaryPaletteKeyColor=ht.fromPalette({name:"secondary_palette_key_color",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>n.secondaryPalette.keyColor.tone,"tone")});W.tertiaryPaletteKeyColor=ht.fromPalette({name:"tertiary_palette_key_color",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>n.tertiaryPalette.keyColor.tone,"tone")});W.neutralPaletteKeyColor=ht.fromPalette({name:"neutral_palette_key_color",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.neutralPalette.keyColor.tone,"tone")});W.neutralVariantPaletteKeyColor=ht.fromPalette({name:"neutral_variant_palette_key_color",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.neutralVariantPalette.keyColor.tone,"tone")});W.background=ht.fromPalette({name:"background",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?6:98,"tone"),isBackground:!0});W.onBackground=ht.fromPalette({name:"on_background",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?90:10,"tone"),background:u(n=>W.background,"background"),contrastCurve:new _t(3,3,4.5,7)});W.surface=ht.fromPalette({name:"surface",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?6:98,"tone"),isBackground:!0});W.surfaceDim=ht.fromPalette({name:"surface_dim",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?6:87,"tone"),isBackground:!0});W.surfaceBright=ht.fromPalette({name:"surface_bright",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?24:98,"tone"),isBackground:!0});W.surfaceContainerLowest=ht.fromPalette({name:"surface_container_lowest",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?4:100,"tone"),isBackground:!0});W.surfaceContainerLow=ht.fromPalette({name:"surface_container_low",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?10:96,"tone"),isBackground:!0});W.surfaceContainer=ht.fromPalette({name:"surface_container",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?12:94,"tone"),isBackground:!0});W.surfaceContainerHigh=ht.fromPalette({name:"surface_container_high",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?17:92,"tone"),isBackground:!0});W.surfaceContainerHighest=ht.fromPalette({name:"surface_container_highest",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?22:90,"tone"),isBackground:!0});W.onSurface=ht.fromPalette({name:"on_surface",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?90:10,"tone"),background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(4.5,7,11,21)});W.surfaceVariant=ht.fromPalette({name:"surface_variant",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.isDark?30:90,"tone"),isBackground:!0});W.onSurfaceVariant=ht.fromPalette({name:"on_surface_variant",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.isDark?80:30,"tone"),background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(3,4.5,7,11)});W.inverseSurface=ht.fromPalette({name:"inverse_surface",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?90:20,"tone")});W.inverseOnSurface=ht.fromPalette({name:"inverse_on_surface",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?20:95,"tone"),background:u(n=>W.inverseSurface,"background"),contrastCurve:new _t(4.5,7,11,21)});W.outline=ht.fromPalette({name:"outline",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.isDark?60:50,"tone"),background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1.5,3,4.5,7)});W.outlineVariant=ht.fromPalette({name:"outline_variant",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.isDark?30:80,"tone"),background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7)});W.shadow=ht.fromPalette({name:"shadow",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>0,"tone")});W.scrim=ht.fromPalette({name:"scrim",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>0,"tone")});W.surfaceTint=ht.fromPalette({name:"surface_tint",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>n.isDark?80:40,"tone"),isBackground:!0});W.primary=ht.fromPalette({name:"primary",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>pe(n)?n.isDark?100:0:n.isDark?80:40,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(3,4.5,7,11),toneDeltaPair:u(n=>new Ai(W.primaryContainer,W.primary,15,"nearer",!1),"toneDeltaPair")});W.onPrimary=ht.fromPalette({name:"on_primary",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>pe(n)?n.isDark?10:90:n.isDark?20:100,"tone"),background:u(n=>W.primary,"background"),contrastCurve:new _t(4.5,7,11,21)});W.primaryContainer=ht.fromPalette({name:"primary_container",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>al(n)?L0(n.sourceColorHct,n):pe(n)?n.isDark?85:25:n.isDark?30:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.primaryContainer,W.primary,15,"nearer",!1),"toneDeltaPair")});W.onPrimaryContainer=ht.fromPalette({name:"on_primary_container",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>al(n)?ht.foregroundTone(W.primaryContainer.tone(n),4.5):pe(n)?n.isDark?0:100:n.isDark?90:10,"tone"),background:u(n=>W.primaryContainer,"background"),contrastCurve:new _t(4.5,7,11,21)});W.inversePrimary=ht.fromPalette({name:"inverse_primary",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>n.isDark?40:80,"tone"),background:u(n=>W.inverseSurface,"background"),contrastCurve:new _t(3,4.5,7,11)});W.secondary=ht.fromPalette({name:"secondary",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>n.isDark?80:40,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(3,4.5,7,11),toneDeltaPair:u(n=>new Ai(W.secondaryContainer,W.secondary,15,"nearer",!1),"toneDeltaPair")});W.onSecondary=ht.fromPalette({name:"on_secondary",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>pe(n)?n.isDark?10:100:n.isDark?20:100,"tone"),background:u(n=>W.secondary,"background"),contrastCurve:new _t(4.5,7,11,21)});W.secondaryContainer=ht.fromPalette({name:"secondary_container",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>{const t=n.isDark?30:90;if(pe(n))return n.isDark?30:85;if(!al(n))return t;let e=RE(n.secondaryPalette.hue,n.secondaryPalette.chroma,t,!n.isDark);return e=L0(n.secondaryPalette.getHct(e),n),e},"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.secondaryContainer,W.secondary,15,"nearer",!1),"toneDeltaPair")});W.onSecondaryContainer=ht.fromPalette({name:"on_secondary_container",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>al(n)?ht.foregroundTone(W.secondaryContainer.tone(n),4.5):n.isDark?90:10,"tone"),background:u(n=>W.secondaryContainer,"background"),contrastCurve:new _t(4.5,7,11,21)});W.tertiary=ht.fromPalette({name:"tertiary",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?n.isDark?90:25:n.isDark?80:40,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(3,4.5,7,11),toneDeltaPair:u(n=>new Ai(W.tertiaryContainer,W.tertiary,15,"nearer",!1),"toneDeltaPair")});W.onTertiary=ht.fromPalette({name:"on_tertiary",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?n.isDark?10:90:n.isDark?20:100,"tone"),background:u(n=>W.tertiary,"background"),contrastCurve:new _t(4.5,7,11,21)});W.tertiaryContainer=ht.fromPalette({name:"tertiary_container",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>{if(pe(n))return n.isDark?60:49;if(!al(n))return n.isDark?30:90;const t=L0(n.tertiaryPalette.getHct(n.sourceColorHct.tone),n),e=n.tertiaryPalette.getHct(t);return Uj.fixIfDisliked(e).tone},"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.tertiaryContainer,W.tertiary,15,"nearer",!1),"toneDeltaPair")});W.onTertiaryContainer=ht.fromPalette({name:"on_tertiary_container",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?n.isDark?0:100:al(n)?ht.foregroundTone(W.tertiaryContainer.tone(n),4.5):n.isDark?90:10,"tone"),background:u(n=>W.tertiaryContainer,"background"),contrastCurve:new _t(4.5,7,11,21)});W.error=ht.fromPalette({name:"error",palette:u(n=>n.errorPalette,"palette"),tone:u(n=>n.isDark?80:40,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(3,4.5,7,11),toneDeltaPair:u(n=>new Ai(W.errorContainer,W.error,15,"nearer",!1),"toneDeltaPair")});W.onError=ht.fromPalette({name:"on_error",palette:u(n=>n.errorPalette,"palette"),tone:u(n=>n.isDark?20:100,"tone"),background:u(n=>W.error,"background"),contrastCurve:new _t(4.5,7,11,21)});W.errorContainer=ht.fromPalette({name:"error_container",palette:u(n=>n.errorPalette,"palette"),tone:u(n=>n.isDark?30:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.errorContainer,W.error,15,"nearer",!1),"toneDeltaPair")});W.onErrorContainer=ht.fromPalette({name:"on_error_container",palette:u(n=>n.errorPalette,"palette"),tone:u(n=>n.isDark?90:10,"tone"),background:u(n=>W.errorContainer,"background"),contrastCurve:new _t(4.5,7,11,21)});W.primaryFixed=ht.fromPalette({name:"primary_fixed",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>pe(n)?40:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.primaryFixed,W.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.primaryFixedDim=ht.fromPalette({name:"primary_fixed_dim",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>pe(n)?30:80,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.primaryFixed,W.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.onPrimaryFixed=ht.fromPalette({name:"on_primary_fixed",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>pe(n)?100:10,"tone"),background:u(n=>W.primaryFixedDim,"background"),secondBackground:u(n=>W.primaryFixed,"secondBackground"),contrastCurve:new _t(4.5,7,11,21)});W.onPrimaryFixedVariant=ht.fromPalette({name:"on_primary_fixed_variant",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>pe(n)?90:30,"tone"),background:u(n=>W.primaryFixedDim,"background"),secondBackground:u(n=>W.primaryFixed,"secondBackground"),contrastCurve:new _t(3,4.5,7,11)});W.secondaryFixed=ht.fromPalette({name:"secondary_fixed",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>pe(n)?80:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.secondaryFixed,W.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.secondaryFixedDim=ht.fromPalette({name:"secondary_fixed_dim",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>pe(n)?70:80,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.secondaryFixed,W.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.onSecondaryFixed=ht.fromPalette({name:"on_secondary_fixed",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>10,"tone"),background:u(n=>W.secondaryFixedDim,"background"),secondBackground:u(n=>W.secondaryFixed,"secondBackground"),contrastCurve:new _t(4.5,7,11,21)});W.onSecondaryFixedVariant=ht.fromPalette({name:"on_secondary_fixed_variant",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>pe(n)?25:30,"tone"),background:u(n=>W.secondaryFixedDim,"background"),secondBackground:u(n=>W.secondaryFixed,"secondBackground"),contrastCurve:new _t(3,4.5,7,11)});W.tertiaryFixed=ht.fromPalette({name:"tertiary_fixed",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?40:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.tertiaryFixed,W.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.tertiaryFixedDim=ht.fromPalette({name:"tertiary_fixed_dim",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?30:80,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.tertiaryFixed,W.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.onTertiaryFixed=ht.fromPalette({name:"on_tertiary_fixed",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?100:10,"tone"),background:u(n=>W.tertiaryFixedDim,"background"),secondBackground:u(n=>W.tertiaryFixed,"secondBackground"),contrastCurve:new _t(4.5,7,11,21)});W.onTertiaryFixedVariant=ht.fromPalette({name:"on_tertiary_fixed_variant",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?90:30,"tone"),background:u(n=>W.tertiaryFixedDim,"background"),secondBackground:u(n=>W.tertiaryFixed,"secondBackground"),contrastCurve:new _t(3,4.5,7,11)});var es;const zE=(es=class{static fromInt(t){const e=Pi.fromInt(t);return es.fromHct(e)}static fromHct(t){return new es(t.hue,t.chroma,t)}static fromHueAndChroma(t,e){return new es(t,e,es.createKeyColor(t,e))}constructor(t,e,i){this.hue=t,this.chroma=e,this.keyColor=i,this.cache=new Map}static createKeyColor(t,e){let i=Pi.from(t,e,50),s=Math.abs(i.chroma-e);for(let r=1;r<50;r+=1){if(Math.round(e)===Math.round(i.chroma))return i;const a=Pi.from(t,e,50+r),o=Math.abs(a.chroma-e);o<s&&(s=o,i=a);const l=Pi.from(t,e,50-r),c=Math.abs(l.chroma-e);c<s&&(s=c,i=l)}return i}tone(t){let e=this.cache.get(t);return e===void 0&&(e=Pi.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,e)),e}getHct(t){return Pi.fromInt(this.tone(t))}},h(es,"Ds"),es);u(zE,"TonalPalette");let se=zE;function ek(n){const t=BS(n),e=FS(n),i=XS(n),s=[t.toString(16),e.toString(16),i.toString(16)];for(const[r,a]of s.entries())a.length===1&&(s[r]="0"+a);return"#"+s.join("")}h(ek,"uy");u(ek,"hexFromArgb");function LE(n){n=n.replace("#","");const t=n.length===3,e=n.length===6,i=n.length===8;if(!t&&!e&&!i)throw new Error("unexpected hex "+n);let s=0,r=0,a=0;return t?(s=qn(n.slice(0,1).repeat(2)),r=qn(n.slice(1,2).repeat(2)),a=qn(n.slice(2,3).repeat(2))):e?(s=qn(n.slice(0,2)),r=qn(n.slice(2,4)),a=qn(n.slice(4,6))):i&&(s=qn(n.slice(2,4)),r=qn(n.slice(4,6)),a=qn(n.slice(6,8))),(255<<24|(s&255)<<16|(r&255)<<8|a&255)>>>0}h(LE,"hv");u(LE,"argbFromHex");function qn(n){return parseInt(n,16)}h(qn,"Ti");u(qn,"parseIntHex");function IE(n,t=!1){var e;const i=(e=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+\.{0,1}\d*))?\)$/))==null?void 0:e.slice(1).map((l,c)=>c===3?Math.round(parseFloat(l)*255):parseFloat(l));if(!i)throw new Error("Could not parse rgba color.");const[s,r,a,o]=i;return((t?255:o&255)<<24|(s&255)<<16|(r&255)<<8|a&255)>>>0}h(IE,"uv");u(IE,"argbFromRgba");function ZE(n){ii();const t=document.createElement("wy-compute-styles");t.setAttribute("style",`color: ${n} !important;`),document.documentElement.append(t);const e=window.getComputedStyle(t).color;return t.remove(),e}h(ZE,"pv");u(ZE,"getComputedColor");function Vv(n){return getComputedStyle(n).getPropertyValue("--wy-theme-color")||void 0}h(Vv,"eu");u(Vv,"getCSSThemeColor");function VE(n,t){let e=Vv(n);const i=new MutationObserver(()=>{const a=Vv(n);a!==e&&(e=a,t(a))}),s={attributes:!0,attributeFilter:["class","style"]};let r=n;for(;r&&r!==document;)i.observe(r,s),r=r.parentNode;return()=>i.disconnect()}h(VE,"yv");u(VE,"observeCSSThemeColor");function Wv(){var n;return ii(),((n=Array.from(document.head.querySelectorAll("meta[name='theme-color']")).filter(t=>{var e;const i=t.getAttribute("media");return!i||((e=window.matchMedia(i))==null?void 0:e.matches)}).pop())==null?void 0:n.getAttribute("content"))||void 0}h(Wv,"iu");u(Wv,"getMetaThemeColor");function WE(n){ii();const t=Array.from(document.head.querySelectorAll("meta[name='theme-color']"));if(!t)return()=>{};let e=Wv();const i=u(()=>{const o=Wv();o!==e&&(e=o,n(o))},"checkChangedColor"),s=new MutationObserver(i),r={attributes:!0,attributeFilter:["content"]},a=[];return t.forEach(o=>{s.observe(o,r);const l=o.getAttribute("media");if(l){const c=window.matchMedia(l);c.addEventListener("change",i),a.push(c)}}),()=>{s.disconnect(),a.forEach(o=>o.removeEventListener("change",i))}}h(WE,"wv");u(WE,"observeMetaThemeColor");const tm=[],jj=16;function DE(n,t=!1){var e;if(tm.some(T=>T.seedColor===n)){const T=(e=tm.find(I=>I.seedColor===n))==null?void 0:e.colors;if(T)return T}const i=[];t&&i.push(`--wy-theme-color:${n};`);let s=n;!n.startsWith("#")&&!n.startsWith("rgb")&&(s=ZE(n));const r=n.startsWith("#")?LE(s):IE(s),a=Pi.fromInt(r),o=a.hue,l=a.chroma,c=Math.max(48,l),d=Math.min(c,84),p=360/16,f=27.4,m=-8,w=(o+360-f-m+p/2)%p+f+m-p/2,O={primary:se.fromHueAndChroma(o,c),secondary:se.fromHueAndChroma(o,c/3),tertiary:se.fromHueAndChroma(o+60,c/2),neutral:se.fromHueAndChroma(o,Math.min(l/12,4)),"neutral-variant":se.fromHueAndChroma(o,Math.min(l/6,8)),error:se.fromHueAndChroma(w,84),warning:se.fromHueAndChroma(w+4*p,d),red:se.fromHueAndChroma(w,d),"deep-orange":se.fromHueAndChroma(w+1*p,d),orange:se.fromHueAndChroma(w+2*p,d),amber:se.fromHueAndChroma(w+3*p,d),yellow:se.fromHueAndChroma(w+4*p,d),lime:se.fromHueAndChroma(w+5*p,d),"light-green":se.fromHueAndChroma(w+6*p,d),green:se.fromHueAndChroma(w+7*p,d),teal:se.fromHueAndChroma(w+8*p,d),cyan:se.fromHueAndChroma(w+9*p,d),"light-blue":se.fromHueAndChroma(w+10*p,d),blue:se.fromHueAndChroma(w+11*p,d),indigo:se.fromHueAndChroma(w+12*p,d),"deep-purple":se.fromHueAndChroma(w+13*p,d),purple:se.fromHueAndChroma(w+14*p,d),pink:se.fromHueAndChroma(w+15*p,d),gray:se.fromHueAndChroma(o,4)},x={99:99,95:95,90:90,80:80,70:70,60:60,50:50,40:40,30:30,20:20,10:10},b={primary:x,secondary:x,tertiary:x,neutral:x,"neutral-variant":x,error:x,warning:x,blue:{light:70,dark:80},indigo:{light:60,dark:60},purple:{light:60,dark:70},pink:{light:60,dark:70},red:{light:60,dark:60},orange:{light:70,dark:70},yellow:{light:70,dark:80},green:{light:60,dark:60},teal:{light:60,dark:60},cyan:{light:50,dark:60},gray:{light:50,dark:60}};for(const T in b){const I=b[T];for(const Z in I){const U=ek(O[T].tone(I[Z]));i.push(`--wy-${T}-${Z}:${U};`)}}const P={light:O.primary.tone(40),dark:O.primary.tone(80)},R={light:O.neutral.tone(99),dark:O.neutral.tone(10)},E={"surface-1":{light:Vn.cam16Ucs(R.light,P.light,.05),dark:Vn.cam16Ucs(R.dark,P.dark,.05)},"surface-2":{light:Vn.cam16Ucs(R.light,P.light,.08),dark:Vn.cam16Ucs(R.dark,P.dark,.08)},"surface-3":{light:Vn.cam16Ucs(R.light,P.light,.11),dark:Vn.cam16Ucs(R.dark,P.dark,.11)},"surface-4":{light:Vn.cam16Ucs(R.light,P.light,.12),dark:Vn.cam16Ucs(R.dark,P.dark,.12)},"surface-5":{light:Vn.cam16Ucs(R.light,P.light,.14),dark:Vn.cam16Ucs(R.dark,P.dark,.14)}};for(const T in E){const I=E[T];for(const Z in I){const U=ek(I[Z]);i.push(`--wy-${T}-${Z}:${U};`)}}return tm.unshift({seedColor:n,colors:i}),tm.length=Math.min(tm.length,jj),i}h(DE,"mv");u(DE,"generateThemeColors");const Bj=u(n=>{if(ii(),Q0)document.adoptedStyleSheets=n.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of n){const e=document.createElement("style"),i=global.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,(document.head||document.documentElement).appendChild(e)}},"adoptGlobalStyles"),Xi=At`.wy-light :where(wy-chat),.wy-light :where(wy-comments),.wy-light :where(wy-component),.wy-light :where(wy-copilot),.wy-light :where(wy-files),.wy-light :where(wy-messenger),.wy-light :where(wy-notification-toasts),.wy-light :where(wy-notifications),.wy-light :where(wy-posts),:host(.wy-light),:host .wy-light,::slotted(.wy-light){color-scheme:light;--wy-primary: var(--wy-primary-40, #006399);--wy-on-primary: var(--wy-white, #ffffff);--wy-primary-container: var(--wy-primary-90, #cde5ff);--wy-on-primary-container: var(--wy-primary-10, #001d32);--wy-secondary: var(--wy-secondary-40, #3b6a1c);--wy-on-secondary: var(--wy-white, #ffffff);--wy-secondary-container: var(--wy-secondary-90, #bbf294);--wy-on-secondary-container: var(--wy-secondary-10, #0a2100);--wy-tertiary: var(--wy-tertiary-40, #3b6a1c);--wy-on-tertiary: var(--wy-white, #ffffff);--wy-tertiary-container: var(--wy-tertiary-90, #bbf294);--wy-on-tertiary-container: var(--wy-tertiary-10, #0a2100);--wy-error: var(--wy-error-40, #ba1824);--wy-on-error: var(--wy-white, #ffffff);--wy-error-container: var(--wy-error-90, #ffdad7);--wy-on-error-container: var(--wy-error-10, #410004);--wy-warning: var(--wy-warning-70, #afb140);--wy-on-warning: var(--wy-black, #000000);--wy-warning-container: var(--wy-warning-90, #e7e971);--wy-on-warning-container: var(--wy-warning-10, #1c1d00);--wy-background: var(--wy-neutral-99, #fcfcff);--wy-on-background: var(--wy-neutral-10, #1a1c1e);--wy-surface: var(--wy-neutral-99, #fcfcff);--wy-on-surface: var(--wy-neutral-10, #1a1c1e);--wy-surface-variant: var(--wy-neutral-variant-90, #dee3eb);--wy-on-surface-variant: var(--wy-neutral-variant-30, #42474e);--wy-outline: var(--wy-neutral-variant-50, #72777e);--wy-outline-variant: var(--wy-neutral-variant-80, #c2c7ce);--wy-inverse-surface: var(--wy-neutral-20, #2f3033);--wy-on-inverse-surface: var(--wy-neutral-95, #f0f0f4);--wy-inverse-primary: var(--wy-primary-80, #95ccff);--wy-surface-1: var(--wy-surface-1-light, #f1f2f7);--wy-surface-2: var(--wy-surface-2-light, #eaedf3);--wy-surface-3: var(--wy-surface-3-light, #e3e7ee);--wy-surface-4: var(--wy-surface-4-light, #e1e6ed);--wy-surface-5: var(--wy-surface-5-light, #dce2ea);--wy-highlight: var(--wy-primary-95, #e8f2ff);--wy-on-highlight: var(--wy-primary-10, #001d32);--wy-link: var(--wy-primary-40, #006399);--wy-presence-active: var(--wy-green-light, #00a38b);--wy-blue: var(--wy-blue-light, #89a9fc);--wy-indigo: var(--wy-indigo-light, #9185de);--wy-purple: var(--wy-purple-light, #c675b7);--wy-pink: var(--wy-pink-light, #d57194);--wy-red: var(--wy-red-light, #db726c);--wy-orange: var(--wy-orange-light, #e89a3a);--wy-yellow: var(--wy-yellow-light, #afb140);--wy-green: var(--wy-green-light, #00a38b);--wy-teal: var(--wy-teal-light, #00a0a8);--wy-cyan: var(--wy-cyan-light, #0082a1);--wy-gray: var(--wy-gray-light, #76777a);--wy-code-text: var(--wy-code-text-light, #3b3b3b);--wy-code-variable: var(--wy-code-variable-light, #001080);--wy-code-operator: var(--wy-code-operator-light, #000000);--wy-code-prolog: var(--wy-code-prolog-light, #000080);--wy-code-comment: var(--wy-code-comment-light, #008000);--wy-code-builtin: var(--wy-code-builtin-light, #0070C1);--wy-code-number: var(--wy-code-number-light, #098658);--wy-code-inserted: var(--wy-code-inserted-light, #098658);--wy-code-constant: var(--wy-code-constant-light, #811F3F);--wy-code-hexcode: var(--wy-code-hexcode-light, #811F3F);--wy-code-regex: var(--wy-code-regex-light, #811F3F);--wy-code-char: var(--wy-code-char-light, #811F3F);--wy-code-tag: var(--wy-code-tag-light, #800000);--wy-code-attr-name: var(--wy-code-attr-name-light, #E50000);--wy-code-selector: var(--wy-code-selector-light, #E50000);--wy-code-property: var(--wy-code-property-light, #E50000);--wy-code-deleted: var(--wy-code-deleted-light, #A31515);--wy-code-string: var(--wy-code-string-light, #A31515);--wy-code-changed: var(--wy-code-changed-light, #0451A5);--wy-code-punctuation: var(--wy-code-punctuation-light, #000000);--wy-code-function: var(--wy-code-function-light, #0000FF);--wy-code-keyword: var(--wy-code-keyword-light, #AF00DB);--wy-code-class-name: var(--wy-code-class-name-light, #267F99)}.wy-dark:not(.wy-light) :where(wy-chat),.wy-dark:not(.wy-light) :where(wy-comments),.wy-dark:not(.wy-light) :where(wy-component),.wy-dark:not(.wy-light) :where(wy-copilot),.wy-dark:not(.wy-light) :where(wy-files),.wy-dark:not(.wy-light) :where(wy-messenger),.wy-dark:not(.wy-light) :where(wy-notification-toasts),.wy-dark:not(.wy-light) :where(wy-notifications),.wy-dark:not(.wy-light) :where(wy-posts),:host(.wy-dark:not(.wy-light)),:host .wy-dark:not(.wy-light),::slotted(.wy-dark:not(.wy-light)){color-scheme:dark;--wy-primary: var(--wy-primary-80, #95ccff);--wy-on-primary: var(--wy-primary-20, #003352);--wy-primary-container: var(--wy-primary-30, #004a75);--wy-on-primary-container: var(--wy-primary-90, #cde5ff);--wy-secondary: var(--wy-secondary-80, #a0d57b);--wy-on-secondary: var(--wy-secondary-20, #163800);--wy-secondary-container: var(--wy-secondary-30, #245103);--wy-on-secondary-container: var(--wy-secondary-90, #bbf294);--wy-tertiary: var(--wy-tertiary-80, #a0d57b);--wy-on-tertiary: var(--wy-tertiary-20, #163800);--wy-tertiary-container: var(--wy-tertiary-30, #245103);--wy-on-tertiary-container: var(--wy-tertiary-90, #bbf294);--wy-error: var(--wy-error-80, #ffb3ae);--wy-on-error: var(--wy-error-20, #68000b);--wy-error-container: var(--wy-error-30, #930014);--wy-on-error-container: var(--wy-error-90, #ffdad7);--wy-warning: var(--wy-warning-90, #e7e971);--wy-on-warning: var(--wy-warning-30, #484a00);--wy-warning-container: var(--wy-warning-50, #7a7c05);--wy-on-warning-container: var(--wy-warning-95, #f5f77d);--wy-background: var(--wy-neutral-10, #1a1c1e);--wy-on-background: var(--wy-neutral-90, #e2e2e5);--wy-surface: var(--wy-neutral-10, #1a1c1e);--wy-on-surface: var(--wy-neutral-90, #e2e2e5);--wy-surface-variant: var(--wy-neutral-variant-30, #42474e);--wy-on-surface-variant: var(--wy-neutral-variant-80, #c2c7ce);--wy-outline: var(--wy-neutral-variant-60, #8c9198);--wy-outline-variant: var(--wy-neutral-variant-30, #42474e);--wy-inverse-surface: var(--wy-neutral-90, #e2e2e5);--wy-on-inverse-surface: var(--wy-neutral-20, #2f3033);--wy-inverse-primary: var(--wy-primary-40, #006399);--wy-surface-1: var(--wy-surface-1-dark, #212427);--wy-surface-2: var(--wy-surface-2-dark, #25292d);--wy-surface-3: var(--wy-surface-3-dark, #292e33);--wy-surface-4: var(--wy-surface-4-dark, #2b3035);--wy-surface-5: var(--wy-surface-5-dark, #2d3338);--wy-highlight: var(--wy-primary-20, #003352);--wy-on-highlight: var(--wy-primary-90, #cde5ff);--wy-link: var(--wy-primary-80, #95ccff);--wy-presence-active: var(--wy-green-dark, #00a38b);--wy-blue: var(--wy-blue-dark, #b1c5ff);--wy-indigo: var(--wy-indigo-dark, #9185de);--wy-purple: var(--wy-purple-dark, #e38fd3);--wy-pink: var(--wy-pink-dark, #f48bae);--wy-red: var(--wy-red-dark, #db726c);--wy-orange: var(--wy-orange-dark, #e89a3a);--wy-yellow: var(--wy-yellow-dark, #cacc58);--wy-green: var(--wy-green-dark, #00a38b);--wy-teal: var(--wy-teal-dark, #00a0a8);--wy-cyan: var(--wy-cyan-dark, #009dc3);--wy-gray: var(--wy-gray-dark, #909194);--wy-code-text: var(--wy-code-text-dark, #cccccc);--wy-code-variable: var(--wy-code-variable-dark, #9CDCFE);--wy-code-operator: var(--wy-code-operator-dark, #d4d4d4);--wy-code-prolog: var(--wy-code-prolog-dark, #569CD6);--wy-code-comment: var(--wy-code-comment-dark, #6a9955);--wy-code-builtin: var(--wy-code-builtin-dark, #4fc1ff);--wy-code-number: var(--wy-code-number-dark, #b5cea8);--wy-code-inserted: var(--wy-code-inserted-dark, #b5cea8);--wy-code-constant: var(--wy-code-constant-dark, #646695);--wy-code-hexcode: var(--wy-code-hexcode-dark, #646695);--wy-code-regex: var(--wy-code-regex-dark, #d16969);--wy-code-char: var(--wy-code-char-dark, #d16969);--wy-code-tag: var(--wy-code-tag-dark, #569cd6);--wy-code-attr-name: var(--wy-code-attr-name-dark, #9cdcfe);--wy-code-selector: var(--wy-code-selector-dark, #9cdcfe);--wy-code-property: var(--wy-code-property-dark, #9cdcfe);--wy-code-deleted: var(--wy-code-deleted-dark, #ce9178);--wy-code-string: var(--wy-code-string-dark, #ce9178);--wy-code-changed: var(--wy-code-changed-dark, #569cd6);--wy-code-punctuation: var(--wy-code-punctuation-dark, #D4D4D4);--wy-code-function: var(--wy-code-function-dark, #569cd6);--wy-code-keyword: var(--wy-code-keyword-dark, #C586C0);--wy-code-class-name: var(--wy-code-class-name-dark, #4ec9b0)}`,Fj=At`@property --wy-component-color{syntax: \"<color>\"; inherits: true; initial-value: currentColor;}@property --wy-component-background-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}`,Xj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),Bj([Fj,Xi])}},h(e,"t"),e),u(t,"WeavyStyles"),t},"WeavyStylesMixin"),Nj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this.version=Me.version,this.whenUrl().then(()=>{this.isDestroyed||this.checkVersion()})}async checkVersion(s=this.version){var r,a;await this.whenUrl(),this.networkStateIsPending=!0;let o;try{if(o=await fetch(new URL("/version",this.url),await this.fetchOptions({},!1)),!o.ok)throw new Error("Could not verify environment version.");this.networkStateIsPending=!1,this.serverState="ok"}catch(c){this.networkStateIsPending=!1,this.serverState="unreachable",console.warn("Could not check version: "+c.toString());return}const l=await o.text();if(l.startsWith("v")&&(!s||!l||s!==l))try{const c=s.split(".").slice(0,2),d=l.split(".").slice(0,2);if(c[0]!==d[0])throw new Error;c[1]!==d[1]&&console.warn(`Version inconsistency: ${Me.sourceName}@${this.version} ≠ ${(r=this.url)==null?void 0:r.hostname}@${l}`)}catch{throw new Error(`Version mismatch! ${Me.sourceName}@${this.version} ≠ ${(a=this.url)==null?void 0:a.hostname}@${l}`)}}},h(e,"t"),e),u(t,"WeavyVersion"),t},"WeavyVersionMixin");var pb,xu;let qE=(pb=(xu=class extends Event{constructor(t,e,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=i,this.subscribe=s??!1}},h(xu,"xn"),xu),u(pb,"s"),pb);var fb,ku;let ta=(fb=(ku=class{constructor(t,e,i,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){const r=e;this.context=r.context,this.callback=r.callback,this.subscribe=r.subscribe??!1}else this.context=e,this.callback=i,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new qE(this.context,this.host,this.t,this.subscribe))}},h(ku,"$n"),ku),u(fb,"s"),fb);var yb,Su;let Hj=(yb=(Su=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const i=e||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:i}]of this.subscriptions)e(this.o,i)},t!==void 0&&(this.value=t)}addCallback(t,e,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:u(()=>{this.subscriptions.delete(t)},"disposer"),consumerHost:e});const{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}},h(Su,"Cn"),Su),u(yb,"s"),yb);var mb,Pu;let Yj=(mb=(Pu=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h(Pu,"kn"),Pu),u(mb,"e"),mb);var wb,Cu;let ik=(wb=(Cu=class extends Hj{constructor(t,e,i){var s,r;super(e.context!==void 0?e.initialValue:i),this.onContextRequest=a=>{if(a.context!==this.context)return;const o=a.contextTarget??a.composedPath()[0];o!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,o,a.subscribe))},this.onProviderRequest=a=>{if(a.context!==this.context||(a.contextTarget??a.composedPath()[0])===this.host)return;const o=new Set;for(const[l,{consumerHost:c}]of this.subscriptions)o.has(l)||(o.add(l),c.dispatchEvent(new qE(this.context,c,l,!0)));a.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(r=(s=this.host).addController)==null||r.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Yj(this.context,this.host))}},h(Cu,"_n"),Cu),u(wb,"i"),wb);function ds({context:n}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(s){return i.get(this).setValue(s),t.set.call(this,s)},init(s){return i.set(this,new ik(this,{context:n,initialValue:s})),s}};{t.constructor.addInitializer(a=>{i.set(a,new ik(a,{context:n}))});const s=Object.getOwnPropertyDescriptor(t,e);let r;if(s===void 0){const a=new WeakMap;r={get(){return a.get(this)},set(o){i.get(this).setValue(o),a.set(this,o)},configurable:!0,enumerable:!0}}else{const a=s.set;r={...s,set(o){i.get(this).setValue(o),a==null||a.call(this,o)}}}return void Object.defineProperty(t,e,r)}}}h(ds,"Ji");u(ds,"e$5");function fe({context:n,subscribe:t}){return(e,i)=>{typeof i=="object"?i.addInitializer(function(){new ta(this,{context:n,callback:u(s=>{e.set.call(this,s)},"callback"),subscribe:t})}):e.constructor.addInitializer(s=>{new ta(s,{context:n,callback:u(r=>{s[i]=r},"callback"),subscribe:t})})}}h(fe,"Qt");u(fe,"c$2");var Qu;const UE=(Qu=class extends Event{constructor(t,e,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=i,this.subscribe=s??!1}},h(Qu,"kp"),Qu);u(UE,"ContextRequestEvent");let Gj=UE;var Mu;const jE=(Mu=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h(Mu,"_p"),Mu);u(jE,"ContextProviderEvent");let Kj=jE;var Tu;const BE=(Tu=class extends ik{constructor(t,e,i){e.context!==void 0?super(t,e):super(t,e,i),e.context!==void 0?this._context=e.context:this._context=e,this.isAttached=!0,this.host instanceof yt||this.dispatchWhenConnected()}dispatchWhenConnected(){this.isAttached&&(this.host.isConnected?this.host.dispatchEvent(new Kj(this._context,this.host)):requestAnimationFrame(()=>this.dispatchWhenConnected()))}detachListeners(){this.isAttached=!1,this.host.removeEventListener("context-request",this.onContextRequest),this.host.removeEventListener("context-provider",this.onProviderRequest)}},h(Tu,"Mp"),Tu);u(BE,"WyContextProvider");let FE=BE;const Le=Symbol.for("weavy-client");function XE(n,t){return ii(),new FE(n,{context:Le,initialValue:t})}h(XE,"kv");u(XE,"createWeavyContextProvider");const Zi=r0()?XE(document.documentElement):void 0,Jj=u(n=>{var i;var t,e;return e=(i=class extends n{constructor(...r){super(...r),q(this,t),this.host!==document.documentElement?(Zi==null||Zi.detachListeners(),z(this,t,new FE(this.host,{context:Le,initialValue:this}))):Zi==null||Zi.setValue(this)}updateContext(){var r;this.host!==document.documentElement?(r=k(this,t))==null||r.updateObservers():Zi==null||Zi.updateObservers()}destroy(){var r;super.destroy(),this.host!==document.documentElement?(r=k(this,t))==null||r.detachListeners():(Zi==null?void 0:Zi.value)===this&&(Zi==null||Zi.setValue(void 0))}},h(i,"e"),i),t=new WeakMap,u(e,"WeavyContextProvider"),e},"WeavyContextProviderMixin");var b1,$1,lr,wm,Ge;const gm=(Ge=class{constructor(t){q(this,b1),q(this,$1),q(this,lr),q(this,wm),this.weavySid=Xf(),this.weavyId=`${Ge.sourceName}#${this.weavySid}`,this.cloudFilePickerUrl=Ge.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=Ge.defaults.disableEnvironmentImports,this.gcTime=Ge.defaults.gcTime,this.scrollBehavior=Ge.defaults.scrollBehavior,this.staleTime=Ge.defaults.staleTime,this.tokenFactoryRetryDelay=Ge.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=Ge.defaults.tokenFactoryTimeout,z(this,$1,new Promise(i=>{z(this,b1,i)})),z(this,wm,!1),console.info(`${Ge.sourceName}@${Ge.version} #${this.weavySid}`),ii(),this.host=document.documentElement;const e={};for(const i in t){const s=i;t[s]!==void 0&&Object.assign(e,{[s]:t[s]})}e!=null&&e.host&&(this.host=e.host,delete e.host),e&&Object.assign(this,e)}async whenUrl(){await k(this,$1)}get url(){return k(this,lr)}set url(t){var e;if(this.isDestroyed)throw new Ce;try{if(typeof t=="string")t&&z(this,lr,new URL(t,window.location.toString()));else if(t instanceof URL)z(this,lr,t||void 0);else if(t==null)z(this,lr,void 0);else throw new Error}catch{throw new TypeError("Invalid url")}t&&!this.disableEnvironmentImports&&globalThis.WEAVY_IMPORT_URL===void 0&&(globalThis.WEAVY_IMPORT_URL=new URL("./uikit-web/",t).href),k(this,lr)&&((e=k(this,b1))==null||e.call(this,k(this,lr)))}get cachePrefix(){return`${Ge.version}:${this.url}`}get isDestroyed(){return k(this,wm)}destroy(){z(this,wm,!0),console.info(this.weavyId,"was destroyed")}},h(Ge,"he"),Ge);b1=new WeakMap,$1=new WeakMap,lr=new WeakMap,wm=new WeakMap,u(gm,"WeavyClient"),gm.version="28.0.0",gm.sourceName="@weavy/uikit-web",gm.defaults={cloudFilePickerUrl:"https://filebrowser.weavy.io/v14/",disableEnvironmentImports:!1,gcTime:1e3*60*60*24,locale:cE,notificationEvents:!1,scrollBehavior:"auto",staleTime:1e3*1,tokenFactoryRetryDelay:2e3,tokenFactoryTimeout:2e4,notifications:"button-list",notificationsBadge:"count",reactions:"😍 😎 😉 😜 👍"};let Me=gm;var Au;const NE=(Au=class extends Jj(Tj(Zj(_j(Rj(zj(Aj(Ij(Nj(Ej(Xj(Vj(Me)))))))))))){},h(Au,"zp"),Au);u(NE,"Weavy");let Oe=NE;var Ru;const HE=(Ru=class{constructor(t,e,i,s,r){var a,o;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this._callback=(l,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),(!this.provided||this.subscribe)&&(this.provided=!0,this.callback&&this.callback(l,c)),this.unsubscribe=c},this.host=t,e.context!==void 0){const l=e;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1,this.ref=l.ref??t}else this.context=e,this.callback=i,this.subscribe=s??!1,this.ref=r??t;(o=(a=this.host).addController)==null||o.call(a,this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.ref.dispatchEvent(new Gj(this.context,this.host,this._callback,this.subscribe))}},h(Ru,"Pp"),Ru);u(HE,"ContextConsumer");let tB=HE;var Eu;const YE=(Eu=class{constructor(t,e,i){this.whenRef=new Promise(s=>this.resolveRef=s),t.addController(this),this.host=t,this.ref=i,this.setContext(e)}get ref(){return this._ref}set ref(t){var e;this._ref=t,t&&((e=this.resolveRef)==null||e.call(this,t))}async setContext(t){this.whenContext=new Promise(i=>this.resolveContext=i);const e=await this.whenRef;this.context=new tB(this.host,{context:t,subscribe:!0,callback:u((i,s)=>{var r;(r=this.resolveContext)==null||r.call(this,i),this.host.requestUpdate()},"callback"),ref:e}),await Ek(e),this.context.dispatchRequest()}hostUpdate(){var t,e;(t=this.context)!=null&&t.value&&((e=this.resolveContext)==null||e.call(this,this.context.value))}},h(Eu,"Sp"),Eu);u(YE,"ContextController");let eB=YE;const iB={attribute:!0,type:String,converter:Sv,reflect:!1,hasChanged:SS},nB=u((n=iB,t,e)=>{const{kind:i,metadata:s}=e;let r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),i==="setter"&&((n=Object.create(n)).wrapped=!0),r.set(e.name,n),i==="accessor"){const{name:a}=e;return{set(o){const l=t.get.call(this);t.set.call(this,o),this.requestUpdate(a,l,n)},init(o){return o!==void 0&&this.C(a,void 0,n,o),o}}}if(i==="setter"){const{name:a}=e;return function(o){const l=this[a];t.call(this,o),this.requestUpdate(a,l,n)}}throw Error("Unsupported decorator location: "+i)},"r$3");function $(n){return(t,e)=>typeof e=="object"?nB(n,t,e):((i,s,r)=>{const a=s.hasOwnProperty(r);return s.constructor.createProperty(r,i),a?Object.getOwnPropertyDescriptor(s,r):void 0})(n,t,e)}h($,"y");u($,"n$3");function F(n){return $({...n,state:!0,attribute:!1})}h(F,"D");u(F,"r$2");const sB=u((n,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(n,t,e),e),"e$4");function GE(n){return(t,e)=>{const{slot:i,selector:s}=n??{},r="slot"+(i?`[name=${i}]`:":not([name])");return sB(t,e,{get(){var a;const o=(a=this.renderRoot)==null?void 0:a.querySelector(r),l=(o==null?void 0:o.assignedElements(n))??[];return s===void 0?l:l.filter(c=>c.matches(s))}})}}h(GE,"Sv");u(GE,"o$6");var x1,_u;const KE=(_u=class{constructor(t){q(this,x1),this.notifications=Me.defaults.notifications,this.notificationsBadge=Me.defaults.notificationsBadge,this.reactions=Me.defaults.reactions,z(this,x1,t),Object.keys(this).forEach(e=>{e in t&&Object.assign(this,{[e]:t[e]})})}get component(){return k(this,x1)}},h(_u,"Ap"),_u);x1=new WeakMap,u(KE,"WeavyComponentSettings");let h3=KE;const JE=Symbol.for("weavy-component-settings");var zu;const t_=(zu=class{get result(){return this._result&&this.observer?this.observer.trackResult(this._result):{isPending:!0}}constructor(t){t.addController(this),this.host=t,this.whenContext=new Promise(e=>this.resolveContext=e),this.whenQueryClient=new Promise(e=>this.resolveQueryClient=e),this.setContext()}async setContext(){await nl(this.host),this.context=new ta(this.host,{context:Le,subscribe:!0,callback:u(t=>{var e,i;t&&((e=this.resolveContext)==null||e.call(this,t),this.queryClient=t.queryClient,(i=this.resolveQueryClient)==null||i.call(this,t.queryClient))},"callback")})}async trackQuery(t,e=!0){var i;(i=this.observerUnsubscribe)==null||i.call(this);const s=await this.whenQueryClient;if(!s)throw new Error("No QueryClient provided");const r=new qR(s,t);this.observer=r,this.observerSubscribe(e)}observerSubscribe(t=!0){var e;if(this.queryClient&&this.observer){t?this._result=this.observer.getOptimisticResult(this.observer.options):this._result=this.observer.getCurrentResult(),this.observerUnsubscribe=this.observer.subscribe(()=>{if(this.observer){const s=vy(this.result,this.observer.getCurrentResult());s!==this._result&&(this._result=s,this.host.requestUpdate())}}),this.observer.updateResult(),this.host.requestUpdate();let i;t?i=this.observer.fetchOptimistic(this.observer.options):i=(e=this.queryClient.getQueryCache().get(this.observer.options.queryHash))==null?void 0:e.promise,i==null||i.catch(()=>{}).finally(()=>{var s;(s=this.observer)==null||s.updateResult()})}}untrackQuery(){var t;(t=this.observerUnsubscribe)==null||t.call(this),this.observerUnsubscribe=void 0,this._result=void 0,this.observer=void 0,this.host.requestUpdate()}hostConnected(){this.observerSubscribe()}hostDisconnected(){var t;(t=this.observerUnsubscribe)==null||t.call(this)}},h(zu,"Ep"),zu);u(t_,"QueryController");let sn=t_;const HS=Symbol.for("weavy-app"),I0=Symbol.for("weavy-user");var L=(n=>(n.Attachments="attachments",n.agents="agents",n.CloudFiles="cloud_files",n.ContextData="context_data",n.Comments="comments",n.Embeds="embeds",n.GoogleMeet="google_meet",n.Meetings="meetings",n.Mentions="mentions",n.MicrosoftTeams="microsoft_teams",n.Polls="polls",n.Previews="previews",n.Reactions="reactions",n.Receipts="receipts",n.Thumbnails="thumbnails",n.Typing="typing",n.Versions="versions",n.WebDAV="web_dav",n.ZoomMeetings="zoom_meetings",n))(L||{});const YS=Symbol.for("weavy-features");var Za,dc,Ss,zo;const e_=(zo=class{constructor(t,e){q(this,Za),q(this,dc),q(this,Ss),z(this,Za,Object.keys(t)),z(this,dc,Object.entries(t).reduce((i,[s,r])=>(r&&i.push(s),i),[])),z(this,Ss,e??k(this,dc))}features(){return k(this,Za)}supportedFeature(...t){return t.every(e=>k(this,Za).includes(e))}allowedFeatures(){return k(this,Ss)}allowsFeature(...t){return t.every(e=>this.supportedFeature(e)?k(this,Ss).includes(e):!1)}allowsAnyFeature(...t){return t.some(e=>this.supportedFeature(e)?k(this,Ss).includes(e):!1)}setAllowedFeatures(t){return z(this,Ss,typeof t=="string"?GS(t,k(this,Za)):k(this,dc)),k(this,Ss)}immutable(){const t=Z0(k(this,Za),k(this,dc));return new zo(t,k(this,Ss))}},h(zo,"pd"),zo);Za=new WeakMap,dc=new WeakMap,Ss=new WeakMap,u(e_,"ComponentFeatures");let $n=e_;function GS(n,t){return n.split(" ").filter(e=>{if(e){if(t.includes(e))return!0;console.warn("Unknown feature provided:",e)}return!1})}h(GS,"Bw");u(GS,"featureListFromString");function Z0(n,t){return t??(t=n),Object.fromEntries(n.map(e=>[e,t.includes(e)]))}h(Z0,"Wu");u(Z0,"featureConfigFromList");const nk=Object.values(L),i_=Symbol.for("weavy-link"),n_=Symbol.for("weavy-agent-user"),Ye=[];for(let n=0;n<256;++n)Ye.push((n+256).toString(16).slice(1));function s_(n,t=0){return(Ye[n[t+0]]+Ye[n[t+1]]+Ye[n[t+2]]+Ye[n[t+3]]+"-"+Ye[n[t+4]]+Ye[n[t+5]]+"-"+Ye[n[t+6]]+Ye[n[t+7]]+"-"+Ye[n[t+8]]+Ye[n[t+9]]+"-"+Ye[n[t+10]]+Ye[n[t+11]]+Ye[n[t+12]]+Ye[n[t+13]]+Ye[n[t+14]]+Ye[n[t+15]]).toLowerCase()}h(s_,"Av");u(s_,"unsafeStringify");let gb;const rB=new Uint8Array(16);function r_(){if(!gb){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");gb=crypto.getRandomValues.bind(crypto)}return gb(rB)}h(r_,"Ov");u(r_,"rng");const aB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),d3={randomUUID:aB};function _w(n,t,e){var i;if(d3.randomUUID&&!n)return d3.randomUUID();n=n||{};const s=n.random??((i=n.rng)==null?void 0:i.call(n))??r_();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,s_(s)}h(_w,"ql");u(_w,"v4");function a_(n){let t;return n instanceof URL?t={type:"url",item:n}:n instanceof File?t={type:"file",item:n}:n instanceof Blob?t={type:"file",item:new File([n],`${_w()}`,{type:n.type})}:typeof n=="string"&&(t={type:"file",item:new File([n],`${_w()}.data.txt`,{type:"text/plain;charset=UTF-8"})}),t}h(a_,"Lv");u(a_,"getContextDataRef");const ag=u((n,t=3)=>{const e=[" B"," KB"," MB"," GB"," TB"," PB"," EB"," ZB"," YB"];let i=n,s=0;for(;s<e.length-1&&i>=1024;)i=100*i/1024/100,s++;return i.toLocaleString(void 0,{maximumSignificantDigits:t})+e[s]},"fileSizeAsString");function Ni(n){return n.lastIndexOf(".")===-1?".":(n.substring(n.lastIndexOf("."),n.length)||n).toLowerCase()}h(Ni,"ei");u(Ni,"getExtension");function KS(n){switch(n){case".aac":case".aif":case".aiff":case".au":case".gsm":case".m4a":case".mid":case".midi":case".mka":case".mp3":case".oga":case".ogg":case".ra":case".ram":case".snd":case".spx":case".wav":case".wma":return!0;default:return!1}}h(KS,"jw");u(KS,"isAudio");function o_(n){switch(n){case".ai":case".apng":case".bmp":case".emf":case".eps":case".gif":case".heic":case".ico":case".jpg":case".jpeg":case".png":case".psd":case".svg":case".tif":case".tiff":case".webp":case".wmf":return!0;default:return!1}}h(o_,"Iv");u(o_,"isImage");function l_(n){switch(Ni(n)){case".apng":case".bmp":case".gif":case".ico":case".jpg":case".jpeg":case".png":case".svg":case".webp":return!0;default:return!1}}h(l_,"Tv");u(l_,"isWebImage");function JS(n){switch(n){case".3g2":case".asx":case".asf":case".avi":case".flv":case".mk3d":case".mkv":case".mov":case".mp4":case".mpeg":case".mpg":case".ogm":case".ogv":case".ogx":case".qt":case".rm":case".rv":case".smi":case".smil":case".swf":case".webm":case".wmv":case".xaml":return!0;default:return!1}}h(JS,"Ww");u(JS,"isVideo");function c_(n){switch(n){case".markdown":case".md":return!0;default:return!1}}h(c_,"Fv");u(c_,"isMarkdown");function tP(n){switch(n){case".htm":case".html":case".xhtml":case".xml":return!0;default:return!1}}h(tP,"Qw");u(tP,"isMarkup");function V0(n){if(tP(n))return!0;switch(n){case".as":case".as3":case".asm":case".aspx":case".bat":case".c":case".cc":case".cmake":case".coffee":case".cpp":case".cs":case".css":case".cxx":case".diff":case".erb":case".erl":case".groovy":case".gvy":case".h":case".haml":case".hh":case".hpp":case".hxx":case".java":case".js":case".json":case".jsx":case".less":case".lst":case".m":case".make":case".ml":case".mm":case".out":case".patch":case".php":case".pl":case".plist":case".properties":case".py":case".rb":case".sass":case".scala":case".scm":case".script":case".scss":case".sh":case".sml":case".sql":case".vb":case".vi":case".vim":case".xsd":case".xsl":case".yaml":case".yml":return!0;default:return!1}}h(V0,"Qu");u(V0,"isCode");function eP(n){if(V0(n)||c_(n))return!0;switch(n){case".txt":return!0;default:return!1}}h(eP,"Kw");u(eP,"isText");function us(n){const t=Ni(n);if(t==="")return{icon:"file"};if(KS(t))return{icon:"file-music",color:"indigo"};if(o_(t))return{icon:"file-image",color:"cyan"};if(JS(t))return{icon:"file-video",color:"pink"};if(tP(t))return{icon:"file-xml",color:"purple"};if(V0(t))return{icon:"file-code",color:"purple"};if(eP(t))return{icon:"file-document"};switch(t){case".7z":case".zip":return{icon:"file-compressed",color:"orange"};case".doc":case".docm":case".docx":case".dotm":case".dotx":return{icon:"file-word",color:"native"};case".eml":case".msg":return{icon:"email",color:""};case".xls":case".xlsm":case".xlsx":case".xltx":return{icon:"file-excel",color:"native"};case".pdf":return{icon:"file-pdf",color:"native"};case".ppt":case".pptm":case".pptx":case".potx":return{icon:"file-powerpoint",color:"native"};case".pages":return{icon:"file",color:"orange"};case".numbers":return{icon:"file",color:"green"};case".keynote":return{icon:"file",color:"blue"}}return{icon:"file"}}h(us,"ts");u(us,"getIcon");function h_(n){const t=Ni(n);return t===""?"none":l_(t)?"image":V0(t)?"code":eP(t)?"text":KS(t)?"audio":JS(t)?"video":"none"}h(h_,"Dv");u(h_,"getWebPreviewFormat");function ua(n){switch(n){case"Google Drive":return"google-drive";case"Dropbox":return"dropbox";case"OneDrive":return"onedrive";case"Box":return"box";default:return""}}h(ua,"br");u(ua,"getProvider");function og(n){let t="file";switch(Ni(n)){case".7z":case".zip":t="archive";break;case".aac":case".aif":case".aiff":case".au":case".gsm":case".m4a":case".mid":case".midi":case".mka":case".mp3":case".oga":case".ogg":case".ra":case".ram":case".snd":case".spx":case".wav":case".wma":t="audio";break;case".c":case".cgi":case".cpp":case".cs":case".cshtml":case".css":case".html":case".java":case".js":case".json":case".less":case".php":case".pl":case".ps1":case".py":case".rb":case".rs":case".scss":case".sh":case".swift":case".sql":case".ts":case".xml":case".yaml":case".yml":t="code";break;case".doc":case".docm":case".docx":case".dotm":case".dotx":case".gdoc":case".pages":case".pdf":t="document";break;case".eml":case".msg":t="email";break;case".gslides":case".keynote":case".ppt":case".pptm":case".pptx":case".potx":t="presentation";break;case".gsheet":case".numbers":case".xls":case".xlsm":case".xlsx":case".xltx":t="spreadsheet";break;case".ai":case".apng":case".bmp":case".emf":case".eps":case".gif":case".heic":case".ico":case".jpg":case".jpeg":case".png":case".psd":case".svg":case".tif":case".tiff":case".webp":case".wmf":t="image";break;case".md":case".markdown":case".txt":t="text";break;case".3g2":case".asx":case".asf":case".avi":case".flv":case".mk3d":case".mkv":case".mov":case".mp4":case".mpeg":case".mpg":case".ogm":case".ogv":case".ogx":case".qt":case".rm":case".rv":case".smi":case".smil":case".swf":case".webm":case".wmv":case".xaml":t="video";break}return t}h(og,"wd");u(og,"getKind");function W0(n){const t=n.target,e=t==null?void 0:t.value.lastIndexOf(".");e===-1?t==null||t.select():e!==void 0&&(t==null||t.setSelectionRange(0,e))}h(W0,"Ku");u(W0,"handleSelectFilename");async function Dv(n,t="SHA-256"){return await new Promise(e=>{if(n){const i=new FileReader;i.readAsArrayBuffer(n),i.onloadend=async()=>{const s=await crypto.subtle.digest(t,i.result);let r="";s&&(r=Array.from(new Uint8Array(s)).map(a=>a.toString(16).padStart(2,"0")).join("")),e(r)}}else e("")})}h(Dv,"cu");u(Dv,"getHash");function k1(n,t){return n.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}h(k1,"_h");u(k1,"getResult");var Lu;const d_=(Lu=class{constructor(t){this.alwaysUpdate=!1,t.addController(this),this.host=t,this.setContext()}async setContext(){this.whenContext=new Promise(t=>this.resolveContext=t),await nl(this.host),this.context=new ta(this.host,{context:Le,subscribe:!0})}hostUpdate(){var t,e;(t=this.context)!=null&&t.value&&((e=this.resolveContext)==null||e.call(this))}async trackMutationState(t,e){var i,s,r;if(e||(await this.whenContext,e=(s=(i=this.context)==null?void 0:i.value)==null?void 0:s.queryClient),!e)throw new Error("No QueryClient provided");return(r=this.mutationCacheUnsubscribe)==null||r.call(this),this.options=t,this.mutationCache=e.getMutationCache(),this.mutationCacheSubscribe(),this.result}mutationCacheSubscribe(){this.mutationCache&&this.options&&(this.result=k1(this.mutationCache,this.options),this.mutationCacheUnsubscribe=this.mutationCache.subscribe(t=>{if(this.mutationCache&&this.options&&/added|removed|updated/.test(t.type)){const e=k1(this.mutationCache,this.options);(this.result!==e||Wc(this.result,e))&&(this.result=e,this.host.requestUpdate())}}),this.host.requestUpdate())}get isMutating(){var t;return!this.mutationCache||!((t=this.options)!=null&&t.filters)?0:k1(this.mutationCache,{filters:{...this.options.filters,status:"pending"}}).length}untrackMutationState(){var t;(t=this.mutationCacheUnsubscribe)==null||t.call(this),this.mutationCacheUnsubscribe=void 0,this.result=void 0,this.options=void 0,this.mutationCache=void 0,this.host.requestUpdate()}hostConnected(){this.mutationCacheSubscribe()}hostDisconnected(){var t;(t=this.mutationCacheUnsubscribe)==null||t.call(this)}},h(Lu,"Op"),Lu);u(d_,"MutationStateController");let lg=d_;var Iu;const u_=(Iu=class{constructor(t){t.addController(this),this.host=t,this.whenContext=new Promise(e=>this.resolveContext=e),this.whenObserver=new Promise(e=>this.resolveObserver=e),this.setContext()}async setContext(){await nl(this.host),this.context=new ta(this.host,{context:Le,subscribe:!0})}hostUpdate(){var t,e;(t=this.context)!=null&&t.value&&((e=this.resolveContext)==null||e.call(this))}async trackMutation(t,e){var i,s,r,a;if(e||(await this.whenContext,e=(s=(i=this.context)==null?void 0:i.value)==null?void 0:s.queryClient),!e)throw new Error("No QueryClient provided");return(r=this.observerUnsubscribe)==null||r.call(this),this.observer&&(this.whenObserver=new Promise(o=>this.resolveObserver=o)),this.observer=new jt(e,{...t}),this.observerSubscribe(),(a=this.resolveObserver)==null||a.call(this,this.observer),this.observer}observerSubscribe(){this.observer&&(this.result=this.observer.getCurrentResult(),this.observerUnsubscribe??(this.observerUnsubscribe=this.observer.subscribe(()=>{if(this.observer){const t=vy(this.result,this.observer.getCurrentResult());this.result!==t&&(this.result=t,this.host.requestUpdate())}})),this.host.requestUpdate())}untrackMutation(){var t;(t=this.observerUnsubscribe)==null||t.call(this),this.observerUnsubscribe=void 0,this.result=void 0,this.observer=void 0,this.host.requestUpdate()}async mutate(t,e){return(await this.whenObserver).mutate(t,e)}hostConnected(){this.observerSubscribe()}hostDisconnected(){var t;(t=this.observerUnsubscribe)==null||t.call(this)}},h(Iu,"Rp"),Iu);u(u_,"MutationController");let rn=u_;function oe(n,t,e,i){const s=n.getMutationCache(),r=s.find({mutationKey:t,predicate:u(a=>a.state.variables===e,"predicate")});if(r&&r.state.context){const a={...r.state.context};i(a);const o={...r.state,context:a};r.state=o,s.notify({mutation:r,type:"updated",action:{type:"pending",context:r.state.context,variables:r.state.variables,isPaused:!1}})}}h(oe,"Dt");u(oe,"updateMutationContext");function iP(n,t,e){const i=n.getMutationCache().find({mutationKey:t,exact:!0,predicate:e});i&&n.getMutationCache().remove(i)}h(iP,"Gw");u(iP,"removeMutation");function p_(n,t){const e=n.getMutationCache();e.findAll({mutationKey:t,exact:!0}).forEach(i=>{e.remove(i)})}h(p_,"Hv");u(p_,"removeMutations");const nP=u((n,t,e=0,i="application/octet-stream",s,r=Date.now())=>{const a=n&&(n instanceof URL?n.toString():URL.createObjectURL(n));return{id:r,app:{id:-1},name:t,kind:og(t),size:e,media_type:i,embed_url:"",preview_format:h_(t),thumbnail_url:a,preview_url:a,download_url:a,rev:-1,created_by:s,created_at:new Date().toUTCString(),is_subscribed:!1,is_trashed:!1,is_starred:!1}},"getTempFile");function sP(n){const t=n?n.reduce((e,i)=>{var s,r;const a=(s=i.context)==null?void 0:s.file;return a&&(r=i.context)!=null&&r.status.progress&&a.size?{loaded:e.loaded+i.context.status.progress*a.size,total:e.total+a.size}:e},{loaded:0,total:0}):{loaded:0,total:0};return{loaded:t.loaded,total:t.total,percent:t.total>0?t.loaded/t.total:null}}h(sP,"Zw");u(sP,"getFileMutationsTotalProgress");function rP(n){return n?n.some(t=>{var e;return((e=t.context)==null?void 0:e.status.state)==="conflict"})?"conflict":n.some(t=>t.status==="error")?"error":n.every(t=>t.status==="success")?"ok":"pending":"ok"}h(rP,"Yw");u(rP,"getFileMutationsTotalStatus");function f_(n){return(n==null?void 0:n.filter(t=>{var e;return((e=t.context)==null?void 0:e.status.state)==="conflict"||t.status==="error"}))||[]}h(f_,"Vv");u(f_,"getFileMutationsByConflictOrError");function y_(n,t,e){const i=n.queryClient;i.getMutationCache().findAll({mutationKey:["apps",t.id,"files"],exact:!0,predicate:u(s=>{var r,a;return/error|success/.test(s.state.status)&&((a=(r=s.state.variables)==null?void 0:r.blob)==null?void 0:a.name)===e},"predicate")}).forEach(s=>{i.getMutationCache().remove(s)})}h(y_,"Uv");u(y_,"removeSettledFileMutations");function m_(n,t,e){const i=n.queryClient,s=["apps",e.id,"files"];return{mutationFn:u(async({blob:r,replace:a=!1})=>{const o=await n.fetch("/api/apps/"+e.id+"/files",{method:"POST",body:JSON.stringify({blob_id:r.id,replace:a})});if(!o.ok){const l=await o.json();throw new Error(l.detail||l.title,{cause:l})}return await o.json()},"mutationFn"),mutationKey:s,onMutate:u(async r=>{await i.cancelQueries({queryKey:s,exact:!0}),w_(n,e,r.blob.name),y_(n,e,r.blob.name);let a;try{a=r.blob.thumbnail_url&&new URL(r.blob.thumbnail_url)||void 0}catch{}const o=nP(a,r.blob.name,r.blob.size,r.blob.media_type,t);return{type:r.replace?"replace":"create",file:o,status:{state:"pending"}}},"onMutate"),onSuccess:u((r,a,o)=>(oe(i,s,a,l=>{l&&(l.status.state="ok",l.status.progress=void 0,l.status.text=void 0)}),i.invalidateQueries({queryKey:s})),"onSuccess"),onError(r,a,o){var l;((l=r==null?void 0:r.cause)==null?void 0:l.status)===409?oe(i,s,a,c=>{c&&(c.status.progress=void 0,c.status.state="conflict",c.status.text=r.message)}):oe(i,s,a,c=>{c&&(c.status.state="error",c.status.progress=void 0,c.status.text=r.message)})}}}h(m_,"Bv");u(m_,"getCreateFileMutationOptions");function w_(n,t,e,i,s="blobs"){const r=n.queryClient;r.getMutationCache().findAll({mutationKey:["apps",t.id,s,i],exact:!0,status:"success",predicate:u(a=>{var o;return((o=a.state.data)==null?void 0:o.name)===e},"predicate")}).forEach(a=>{r.getMutationCache().remove(a)})}h(w_,"qv");u(w_,"removeSuccessfulUploadBlobMutations");async function aP(n,t,e){const i=new FormData;i.append("blob",t);const s=await n.upload("/api/blobs","POST",i,zv.Auto,r=>{e&&e({progress:r})});if(!s.ok){const r=await s.json();throw new Error(r.detail||r.title,{cause:r})}return await s.json()}h(aP,"Xw");u(aP,"uploadBlob");function g_(n){return{mutationFn:u(async t=>await aP(n,t.file,t.onProgress),"mutationFn")}}h(g_,"Nv");u(g_,"getSimpleUploadBlobMutationOptions");function D0(n,t,e,i,s="blobs"){const r=n.queryClient,a=i?["apps",e,s,i]:["apps",e,s];return{mutationFn:u(async o=>await aP(n,o.file,o.onProgress),"mutationFn"),mutationKey:a,onMutate:u(async o=>{await r.cancelQueries({queryKey:a,exact:!0});const l=nP(o.file,o.file.name,o.file.size,o.file.type,t);o.onProgress=({progress:d})=>{oe(r,a,o,p=>{p.status.state="pending",p.status.progress=d})};const c=await Dv(o.file);return{type:"upload",file:l,status:{state:"pending"},sha256:c}},"onMutate"),onSuccess:u((o,l,c)=>{oe(r,a,l,d=>{d.status.state="ok",d.status.progress=void 0,d.status.text=void 0})},"onSuccess"),onError(o,l,c){const d=o.cause;d&&d.status===409?oe(r,a,l,p=>{p.status.state="conflict",p.status.progress=void 0,p.status.text=d.detail||d.title}):oe(r,a,l,p=>{p&&(p.status.state="error",p.status.progress=void 0,p.status.text=d.detail||d.title)})}}}h(D0,"Zu");u(D0,"getUploadBlobMutationOptions");const v_=Symbol.for("weavy-data-blobs"),O_=Symbol.for("weavy-context-id");function b_(n){if(n)return n.match(/^[0-9]+$/)?parseInt(n):n}h(b_,"jv");u(b_,"toIntOrString");var oB=Object.defineProperty,lB=Object.getOwnPropertyDescriptor,ye=u((n,t,e,i)=>{for(var s=i>1?void 0:i?lB(t,e):t,r=n.length-1,a;r>=0;r--)(a=n[r])&&(s=(i?a(t,e,s):a(s))||s);return i&&s&&oB(t,e,s),s},"__decorateClass$1b"),S1,P1,C1,vm,Om,bm,$m,xm,km,Sm,Pm,Cm,Qm,uc,pc,Mm,Tm,Am,Rm,Em,_m,Va,fc,Ps,Cs,zm,yc,Zu;const $_=(Zu=class extends yt{constructor(){super(),q(this,S1),q(this,P1),q(this,C1),q(this,vm),q(this,Om),q(this,bm),q(this,$m),q(this,xm),q(this,km),q(this,Sm),q(this,Pm),q(this,Cm),q(this,Qm),q(this,uc),q(this,pc),q(this,Mm),q(this,Tm),q(this,Am),q(this,Rm),q(this,Em),q(this,_m),q(this,Va),q(this,fc),q(this,Ps),q(this,Cs),q(this,zm),q(this,yc),this.storage=MR("localStorage"),this.contextId=_w(),this.storageLinkHandler=t=>{t.storageArea===this.storage&&t.key==="wy-link"&&t.newValue&&this.readStorageLink()},this.linkEventHandler=async t=>{t.defaultPrevented||(this.link&&this.link.id===t.detail.link.id&&(this.link=void 0,await this.updateComplete),this.link=t.detail.link,this.link||this.provideStorageLink(t.detail.link))},this.notificationEventHandler=t=>{t.stopPropagation(),t.defaultPrevented||this.isConnected&&this.checkVisibility(_k)&&this.matchesLink(t.detail.link)&&t.preventDefault()},z(this,Om,new Promise(t=>{z(this,vm,t)})),z(this,$m,new Promise(t=>{z(this,bm,t)})),z(this,km,new Promise(t=>{z(this,xm,t)})),z(this,Pm,new Promise(t=>{z(this,Sm,t)})),z(this,Qm,new Promise(t=>{z(this,Cm,t)})),z(this,pc,new Promise(t=>{z(this,uc,t)})),z(this,Tm,new Promise(t=>{z(this,Mm,t)})),z(this,Rm,new Promise(t=>{z(this,Am,t)})),z(this,_m,new Promise(t=>{z(this,Em,t)})),z(this,Va,new sn(this)),z(this,fc,new sn(this)),z(this,Ps,new sn(this)),z(this,Cs,new Map),z(this,zm,new rn(this)),z(this,yc,new lg(this)),this.settings=new h3(this)}reset(){this.app&&(this.app=void 0),this._appName!==this._initialAppName&&(this._appName=this._initialAppName)}matchesLink(t){var e,i,s,r;return(e=t==null?void 0:t.app)!=null&&e.type&&!this.componentType&&(i=this.appTypes)!=null&&i.includes(t.app.type)?t.agent?t.agent===this.agent:!0:!!(t&&t.app&&this.componentType!==nn.Unknown&&(typeof this.uid=="string"&&((s=t.app)==null?void 0:s.uid)===this.uid||typeof this.uid=="number"&&((r=t.app)==null?void 0:r.id)===this.uid||this.agent&&t.app.type===this.componentType&&t.agent===this.agent))}get link(){return this._link}set link(t){const e=this._link;!this.uid&&this.componentType&&this.componentType!==nn.Unknown?this.whenApp().then(()=>{this._link=this.matchesLink(t)?t:void 0,this.requestUpdate("link",e)}):(this._link=this.matchesLink(t)?t:void 0,this.requestUpdate("link",e))}clearLink(){this.link&&(z(this,pc,new Promise(t=>{z(this,uc,t)})),this.link=void 0)}provideStorageLink(t){var e;(e=this.storage)==null||e.setItem("wy-link",btoa(JSON.stringify(t)))}readStorageLink(){if(!this.storage){console.error("Storage not available");return}const t=this.storage.getItem("wy-link");if(t)try{const e=JSON.parse(atob(t));e&&(this.link=e)}catch(e){console.error("Error parsing link",e)}}consumeStorageLink(){var t;(t=this.storage)==null||t.removeItem("wy-link")}get agent(){return this._agentUid}set agent(t){this._agentUid=t||void 0}set name(t){this._initialAppName=t,this._appName=t}get name(){return this._appName}set notifications(t){z(this,S1,t)}get notifications(){var t;return k(this,S1)??((t=this.weavy)==null?void 0:t.notifications)??Me.defaults.notifications}set notificationsBadge(t){z(this,P1,t)}get notificationsBadge(){var t;return k(this,P1)??((t=this.weavy)==null?void 0:t.notificationsBadge)??Me.defaults.notificationsBadge}set reactions(t){z(this,C1,t)}get reactions(){var t;return k(this,C1)??((t=this.weavy)==null?void 0:t.reactions)??Me.defaults.reactions}async whenAgentUser(){return await k(this,Om)}async whenApp(){return await k(this,$m)}async whenContextDataBlobs(){return await k(this,km)}async whenContextId(){return await k(this,Pm)}async whenComponentFeatures(){return await k(this,Qm)}async whenLink(){return await k(this,pc)}async whenSettings(){return await k(this,Tm)}async whenUser(){return await k(this,Rm)}async whenWeavy(){return await k(this,_m)}connectedCallback(){super.connectedCallback(),document.addEventListener("wy-link",this.linkEventHandler),window.addEventListener("storage",this.storageLinkHandler),this.app&&this.requestUpdate("app"),this.agentUser&&this.requestUpdate("agentUser"),this.componentFeatures&&this.requestUpdate("componentFeatures"),this.contextDataBlobs&&this.requestUpdate("contextDataBlobs"),this.contextId&&this.requestUpdate("contextId"),this.link&&this.requestUpdate("link"),this.settings&&this.requestUpdate("settings"),this.user&&this.requestUpdate("user"),this.weavy&&this.requestUpdate("weavy")}disconnectedCallback(){var t;super.disconnectedCallback(),document.removeEventListener("wy-link",this.linkEventHandler),window.removeEventListener("storage",this.storageLinkHandler),(t=this.weavy)==null||t.host.removeEventListener("wy-notification",this.notificationEventHandler,{capture:!0})}async scheduleUpdate(){await nl(this),await super.scheduleUpdate()}async willUpdate(t){var e,i,s,r,a,o,l,c,d,p,f,m,w,O,x,b,P,R,E,T,I,Z,U,B;super.willUpdate(t),this.weavyContextConsumer??(this.weavyContextConsumer=new ta(this,{context:Le,subscribe:!0})),(e=this.weavyContextConsumer)!=null&&e.value&&this.weavy!==((i=this.weavyContextConsumer)==null?void 0:i.value)&&(this.weavy=(s=this.weavyContextConsumer)==null?void 0:s.value);const tt=Object.keys(this.settings);if((t.has("weavy")||tt.find(j=>t.has(j)))&&(this.settings=new h3(this)),t.has("weavy")&&this.weavy&&await k(this,Ps).trackQuery(Jr(this.weavy,["user"])),(r=k(this,Ps).result)!=null&&r.isPending||this.user&&k(this,Ps).result.data&&this.user.id!==k(this,Ps).result.data.id&&(console.warn("User changed, invalidating cache"),await((a=this.weavy)==null?void 0:a.queryClient.invalidateQueries())),(o=k(this,Ps).result)!=null&&o.isPending||(this.user=(l=k(this,Ps).result)==null?void 0:l.data),t.has("features")&&this.componentFeatures&&(this.componentFeatures.setAllowedFeatures(this.features),this.componentFeatures instanceof $n&&(this.componentFeatures=this.componentFeatures.immutable())),(t.has("autoUid")||t.has("user")||t.has("agent"))&&this.autoUid&&this.user&&(this.componentType&&sk.has(this.componentType)&&this.agent||this.componentType&&!sk.has(this.componentType))){const j=[this.autoUid];this.agent&&j.push(this.agent),this.user&&j.push(this.user.uid||this.user.id),this.uid=j.join("-")}const K=this.name;if(t.has("componentType")||t.has("uid")||t.has("agent")||t.has("name")||t.has("weavy"))if(this._appName!==this._initialAppName&&(this._appName=this._initialAppName,this.requestUpdate("name",K)),this.componentType&&this.uid&&this.weavy){const j=this.name?{name:this.name}:void 0,J=this.agent?[this.agent]:void 0;await k(this,Va).trackQuery(nE(this.weavy,this.uid,this.componentType,J,j))}else k(this,Va).untrackQuery();if((c=k(this,Va).result)!=null&&c.isPending||(this.app=(d=k(this,Va).result)==null?void 0:d.data,(p=this.app)!=null&&p.name&&(this.app.name!==this.name||this._appName!==this.app.name)&&(this._appName=this.app.name,this.requestUpdate("name",K))),(t.has("weavy")||t.has("agent"))&&this.weavy&&this.agent&&await k(this,fc).trackQuery(Jr(this.weavy,["users",this.agent])),(f=k(this,fc).result)!=null&&f.isPending||(this.agentUser=(m=k(this,fc).result)==null?void 0:m.data),(t.has("weavy")||t.has("contextId")||t.has("user")||t.has("componentFeatures"))&&this.weavy&&this.contextId&&this.user&&(w=this.componentFeatures)!=null&&w.allowsFeature(L.ContextData)&&(await k(this,zm).trackMutation(D0(this.weavy,this.user,this.contextId,void 0,"data")),await k(this,yc).trackMutationState({filters:{mutationKey:["apps",this.contextId,"data"],exact:!0}},this.weavy.queryClient)),t.has("data")||t.has("componentFeatures")){const j=k(this,Cs);if(z(this,Cs,new Map),(O=this.data)==null||O.forEach(J=>{const it=j.get(J);if(it)k(this,Cs).set(J,it);else{const bt=a_(J);bt&&k(this,Cs).set(J,bt)}}),k(this,Cs)&&(x=this.componentFeatures)!=null&&x.allowsFeature(L.ContextData)){for(const mt of Array.from(k(this,Cs).values()))if(mt.type==="file"){const Zt=await Dv(mt.item);await PR(k(this,yc).result??[],async Vt=>{var Rt,ie;return(((Rt=Vt.context)==null?void 0:Rt.sha256)??await Dv((ie=Vt.variables)==null?void 0:ie.file))===Zt})||await k(this,zm).mutate({file:mt.item})}const J=k(this,yc).result,it=J==null?void 0:J.some(mt=>mt.status==="pending"),bt=(J==null?void 0:J.map(mt=>{var Zt;return(Zt=mt.data)==null?void 0:Zt.id}).filter(mt=>mt).reverse())??[];it||(this.contextDataBlobs=bt)}else this.contextDataBlobs=[]}if(t.has("uid")&&(this.uid||t.get("uid"))&&this.uid!==t.get("uid")&&this.clearLink(),(!this.link&&(t.has("uid")&&this.uid||t.has("app")&&this.app)&&this.componentType&&this.componentType!==nn.Unknown||(t.has("appTypes")||t.has("agent"))&&this.appTypes)&&this.readStorageLink(),t.has("link")&&this.link&&(console.info(`Opening notification link in ${this.uid??oP.get(this.componentType)??this.constructor.name}`),this.consumeStorageLink()),t.has("app")&&this.app){const j=new CustomEvent("wy-app",{bubbles:!1,composed:!0,detail:{app:this.app}});this.dispatchEvent(j)}t.has("app")&&this.app&&(t.get("app")&&z(this,$m,new Promise(j=>{z(this,bm,j)})),(b=k(this,bm))==null||b.call(this,this.app)),t.has("agentUser")&&this.agentUser&&(t.get("agentUser")&&z(this,Om,new Promise(j=>{z(this,vm,j)})),(P=k(this,vm))==null||P.call(this,this.agentUser)),t.has("contextDataBlobs")&&this.contextDataBlobs&&(t.get("contextDataBlobs")&&z(this,km,new Promise(j=>{z(this,xm,j)})),(R=k(this,xm))==null||R.call(this,this.contextDataBlobs)),t.has("contextId")&&this.contextId&&(t.get("contextId")&&z(this,Pm,new Promise(j=>{z(this,Sm,j)})),(E=k(this,Sm))==null||E.call(this,this.contextId)),t.has("componentFeatures")&&this.componentFeatures&&(t.get("componentFeatures")&&z(this,Qm,new Promise(j=>{z(this,Cm,j)})),(T=k(this,Cm))==null||T.call(this,this.componentFeatures)),t.has("link")&&this.link&&(t.get("link")&&z(this,pc,new Promise(j=>{z(this,uc,j)})),(I=k(this,uc))==null||I.call(this,this.link)),t.has("settings")&&this.settings&&(t.get("settings")&&z(this,Tm,new Promise(j=>{z(this,Mm,j)})),(Z=k(this,Mm))==null||Z.call(this,this.settings)),t.has("user")&&this.user&&(t.get("user")&&z(this,Rm,new Promise(j=>{z(this,Am,j)})),(U=k(this,Am))==null||U.call(this,this.user)),t.has("weavy")&&this.weavy&&(t.get("weavy")&&z(this,_m,new Promise(j=>{z(this,Em,j)})),this.weavy.host.addEventListener("wy-notification",this.notificationEventHandler,{capture:!0}),(B=k(this,Em))==null||B.call(this,this.weavy)),t.has("bot")&&typeof this.bot=="string"&&console.error(`Using .bot property is deprecated. Use .agent = "${this.bot}"; instead`)}},h(Zu,"Lp"),Zu);S1=new WeakMap,P1=new WeakMap,C1=new WeakMap,vm=new WeakMap,Om=new WeakMap,bm=new WeakMap,$m=new WeakMap,xm=new WeakMap,km=new WeakMap,Sm=new WeakMap,Pm=new WeakMap,Cm=new WeakMap,Qm=new WeakMap,uc=new WeakMap,pc=new WeakMap,Mm=new WeakMap,Tm=new WeakMap,Am=new WeakMap,Rm=new WeakMap,Em=new WeakMap,_m=new WeakMap,Va=new WeakMap,fc=new WeakMap,Ps=new WeakMap,Cs=new WeakMap,zm=new WeakMap,yc=new WeakMap,u($_,"WeavyComponent");let qt=$_;ye([F()],qt.prototype,"weavy",2);ye([ds({context:HS}),F()],qt.prototype,"app",2);ye([ds({context:n_}),F()],qt.prototype,"agentUser",2);ye([ds({context:v_}),F()],qt.prototype,"contextDataBlobs",2);ye([ds({context:O_}),F()],qt.prototype,"contextId",2);ye([ds({context:YS}),F()],qt.prototype,"componentFeatures",2);ye([ds({context:JE}),F()],qt.prototype,"settings",2);ye([ds({context:I0}),F()],qt.prototype,"user",2);ye([ds({context:i_})],qt.prototype,"_link",2);ye([$({type:Object})],qt.prototype,"link",1);ye([F()],qt.prototype,"componentType",2);ye([F()],qt.prototype,"appTypes",2);ye([$()],qt.prototype,"features",2);ye([$({type:String})],qt.prototype,"agent",1);ye([$({attribute:!0,type:String,converter:{fromAttribute(n){return SR(n)}}})],qt.prototype,"data",2);ye([$()],qt.prototype,"autoUid",2);ye([$({converter:b_})],qt.prototype,"uid",2);ye([$({type:String})],qt.prototype,"name",1);ye([$({type:String})],qt.prototype,"notifications",1);ye([$({type:String})],qt.prototype,"notificationsBadge",1);ye([$({type:String})],qt.prototype,"reactions",1);ye([$()],qt.prototype,"bot",2);const oP=new Map(MS(KR)),x_=new Map(MS(JR)),sk=new Map(Object.entries(tE));new Map(Object.entries(eE));var cB=Object.defineProperty,Ks=u((n,t,e,i)=>{for(var s=void 0,r=n.length-1,a;r>=0;r--)(a=n[r])&&(s=a(t,e,s)||s);return s&&cB(t,e,s),s},"__decorateClass$1a"),Lm,Q1,Im,M1,Zm,T1,Vm,A1,Wm,R1,Dm,E1,qm,_1,Um,z1,jm,L1,Vu;const k_=(Vu=class extends yt{constructor(){super(),q(this,Lm),q(this,Q1,new Promise(t=>{z(this,Lm,t)})),q(this,Im),q(this,M1,new Promise(t=>{z(this,Im,t)})),q(this,Zm),q(this,T1,new Promise(t=>{z(this,Zm,t)})),q(this,Vm),q(this,A1,new Promise(t=>{z(this,Vm,t)})),q(this,Wm),q(this,R1,new Promise(t=>{z(this,Wm,t)})),q(this,Dm),q(this,E1,new Promise(t=>{z(this,Dm,t)})),q(this,qm),q(this,_1,new Promise(t=>{z(this,qm,t)})),q(this,Um),q(this,z1,new Promise(t=>{z(this,Um,t)})),q(this,jm),q(this,L1,new Promise(t=>{z(this,jm,t)}))}async whenApp(){return await k(this,Q1)}async whenAgentUser(){return await k(this,M1)}async whenContextDataBlobs(){return await k(this,T1)}async whenContextId(){return await k(this,A1)}async whenComponentFeatures(){return await k(this,R1)}async whenLink(){return await k(this,E1)}async whenSettings(){return await k(this,_1)}async whenUser(){return await k(this,z1)}async whenWeavy(){return await k(this,L1)}willUpdate(t){var e,i,s,r,a,o,l,c,d;super.willUpdate(t),t.has("agentUser")&&this.agentUser&&(t.get("agentUser")&&z(this,M1,new Promise(p=>{z(this,Im,p)})),(e=k(this,Im))==null||e.call(this,this.agentUser)),t.has("app")&&this.app&&(t.get("app")&&z(this,Q1,new Promise(p=>{z(this,Lm,p)})),(i=k(this,Lm))==null||i.call(this,this.app)),t.has("contextDataBlobs")&&this.contextDataBlobs&&(t.get("contextDataBlobs")&&z(this,T1,new Promise(p=>{z(this,Zm,p)})),(s=k(this,Zm))==null||s.call(this,this.contextDataBlobs)),t.has("contextId")&&this.contextId&&(t.get("contextId")&&z(this,A1,new Promise(p=>{z(this,Vm,p)})),(r=k(this,Vm))==null||r.call(this,this.contextId)),t.has("componentFeatures")&&this.componentFeatures&&(t.get("componentFeatures")&&z(this,R1,new Promise(p=>{z(this,Wm,p)})),(a=k(this,Wm))==null||a.call(this,this.componentFeatures)),t.has("link")&&this.link&&(t.get("link")&&z(this,E1,new Promise(p=>{z(this,Dm,p)})),(o=k(this,Dm))==null||o.call(this,this.link)),t.has("settings")&&this.settings&&(t.get("settings")&&z(this,_1,new Promise(p=>{z(this,qm,p)})),(l=k(this,qm))==null||l.call(this,this.settings)),t.has("user")&&this.user&&(t.get("user")&&z(this,z1,new Promise(p=>{z(this,Um,p)})),(c=k(this,Um))==null||c.call(this,this.user)),t.has("weavy")&&this.weavy&&(t.get("weavy")&&z(this,L1,new Promise(p=>{z(this,jm,p)})),(d=k(this,jm))==null||d.call(this,this.weavy))}connectedCallback(){super.connectedCallback(),this.agentUser&&this.requestUpdate("agentUser"),this.app&&this.requestUpdate("app"),this.contextDataBlobs&&this.requestUpdate("contextDataBlobs"),this.contextId&&this.requestUpdate("contextId"),this.componentFeatures&&this.requestUpdate("componentFeatures"),this.link&&this.requestUpdate("link"),this.settings&&this.requestUpdate("settings"),this.user&&this.requestUpdate("user"),this.weavy&&this.requestUpdate("weavy")}},h(Vu,"Ip"),Vu);Lm=new WeakMap,Q1=new WeakMap,Im=new WeakMap,M1=new WeakMap,Zm=new WeakMap,T1=new WeakMap,Vm=new WeakMap,A1=new WeakMap,Wm=new WeakMap,R1=new WeakMap,Dm=new WeakMap,E1=new WeakMap,qm=new WeakMap,_1=new WeakMap,Um=new WeakMap,z1=new WeakMap,jm=new WeakMap,L1=new WeakMap,u(k_,"WeavySubComponent");let zt=k_;Ks([fe({context:HS,subscribe:!0}),F()],zt.prototype,"app");Ks([fe({context:n_,subscribe:!0}),F()],zt.prototype,"agentUser");Ks([fe({context:v_,subscribe:!0}),F()],zt.prototype,"contextDataBlobs");Ks([fe({context:O_,subscribe:!0}),F()],zt.prototype,"contextId");Ks([fe({context:YS,subscribe:!0}),F()],zt.prototype,"componentFeatures");Ks([fe({context:i_,subscribe:!0}),F()],zt.prototype,"link");Ks([fe({context:JE,subscribe:!0}),F()],zt.prototype,"settings");Ks([fe({context:I0,subscribe:!0}),F()],zt.prototype,"user");Ks([fe({context:Le,subscribe:!0}),F()],zt.prototype,"weavy");function S_(n){return typeof n=="string"&&n?n=eval==null?void 0:(0,eval)(`"use strict";(${n})`):n=void 0,n}h(S_,"Zv");u(S_,"indirectEvalObject");function cg(n){if(n)try{return new URL(n,window.location.toString())}catch{console.warn("Invalid url: ",n)}}h(cg,"fd");u(cg,"toUrl");const Y=u(n=>(t,e)=>{e!==void 0?e.addInitializer(()=>{!customElements.get(n)&&customElements.define(n,t)}):!customElements.get(n)&&customElements.define(n,t)},"customElement"),ft=At`@charset \"UTF-8\";:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]){box-sizing:border-box;text-align:initial;font-size:var(--wy-font-size, var(--wy-size, 1em))}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:before,:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:after{box-sizing:inherit}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a){text-decoration:var(--wy-link-decoration, none);color:var(--wy-link, var(--wy-primary-40, #006399))}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a):hover,:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a):hover{text-decoration:var(--wy-link-hover-decoration, unset)}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a):where(:not([href]):not([class])),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a):where(:not([href]):not([class])):hover,:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a):where(:not([href]):not([class])),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a):where(:not([href]):not([class])):hover{text-decoration:none}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(p),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(p){margin-top:0;margin-bottom:calc(1 * var(--wy-size, 1rem))}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(label),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(label){cursor:inherit}:where(:host([hidden])),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"])[hidden],:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *[hidden]{display:none!important}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where([role=button]),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where([role=button]){cursor:pointer}.wy-scroll-y{scroll-padding-top:var(--wy-scrollbar-adjust-top, 0);scroll-padding-bottom:var(--wy-scrollbar-adjust-bottom, 0)}.wy-scroll-y{overflow-y:auto;max-height:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}.wy-scroll-y:not(body){-webkit-overflow-scrolling:touch}.wy-scroll-y:not(.wy-scroll-x){overflow-x:hidden;touch-action:pan-y}.wy-scroll-x{overflow-x:auto;max-width:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}.wy-scroll-x:not(.wy-scroll-y){overflow-y:hidden;touch-action:pan-x}.wy-appbars{--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));background-color:var(--wy-component-background-color);box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 calc(-1 * var(--wy-border, 1px)) 0 0 inset}@supports (position: sticky){.wy-appbars{position:sticky;top:0;z-index:1020}}.wy-appbars>.wy-appbar,.wy-appbars>.wy-toolbar{background-color:transparent;box-shadow:none}.wy-appbar{--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));display:grid;align-items:center;justify-content:space-between;justify-items:center;height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));padding:calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));flex:0 0 var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));grid-template-columns:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) minmax(0,max-content) var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));column-gap:calc(2 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))) + var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));line-height:var(--wy-line-height, 1.5);background-color:var(--wy-component-background-color);color:var(--wy-component-color);box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 calc(-1 * var(--wy-border, 1px)) 0 0 inset}.wy-appbar .wy-badge{align-self:center}.wy-appbar-buttons,.wy-toolbar-buttons,.wy-appbar-section{display:flex;flex:0 0 auto;align-items:center;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));max-width:100%}.wy-appbar-buttons-first{justify-content:flex-start}.wy-appbar-buttons-last{justify-content:flex-end}.wy-toolbar-buttons-last{margin-inline-start:auto}.wy-appbar-text{max-width:100%;display:block;color:inherit!important;-webkit-user-select:none;user-select:none}.wy-appbar-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-appbar-text a,.wy-appbar-text a:hover{color:inherit}.wy-appbar-text-trashed{text-decoration:line-through}.wy-toolbars-bottom{position:absolute;z-index:1030;bottom:calc(var(--wy-footerbar-height, calc(4 * var(--wy-size, 1rem))) / 2);left:0;right:0;min-height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));display:flex;flex-direction:column;justify-content:center;justify-items:center}.wy-toolbar{--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;justify-items:center;min-height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));padding:calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));flex:1 0 var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));column-gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));line-height:var(--wy-line-height, 1.5);background-color:var(--wy-component-background-color);color:var(--wy-component-color);box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 calc(-1 * var(--wy-border, 1px)) 0 0 inset}.wy-toolbar-center{margin:0 auto;border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)))}.wy-toolbar-center .wy-input{text-align:center}.wy-toolbar-text{margin-left:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}[part~=wy-button]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399));color:var(--wy-component-color);background:var(--wy-component-background-color, transparent);height:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));font-family:var(--wy-button-font-family, var(--wy-font-family, unset)),inherit;font-size:var(--wy-button-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-button-font-weight, var(--wy-font-weight, unset));line-height:var(--wy-button-line-height, var(--wy-line-height, 1.5));text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--wy-button-border-width, var(--wy-border-outline, 0)) solid var(--wy-outline, var(--wy-neutral-variant-50, #72777e));border-radius:var(--wy-button-border-radius, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));display:inline-flex;align-items:center;justify-content:center;gap:var(--wy-button-gap, var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))));position:relative}[part~=wy-button][part~=wy-button-sm]{height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .8);padding:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .25) calc(var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .5)}[part~=wy-button]:disabled{opacity:var(--wy-opacity-disabled, 38%);cursor:unset;pointer-events:none}[part~=wy-button-state-layer]>*{z-index:3}[part~=wy-button-state-layer]:before{content:\"\";z-index:2;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background:var(--wy-component-color);opacity:0%}[part~=wy-button-state-layer]:hover:before{opacity:8%}[part~=wy-button-state-layer]:focus:before,[part~=wy-button-state-layer]:active:before,[part~=wy-button-state-layer][part~=wy-active]:before{opacity:12%}[part~=wy-button-icon]{--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));width:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));height:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));line-height:1;align-items:center;justify-content:center}[part~=wy-button-icon][part~=wy-button-sm]{height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);width:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);padding:0;margin:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .5)}[part~=wy-button-icon][part~=wy-button-sm][part~=wy-button-state-layer]:before{margin:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * -.1)}[part~=wy-button-icon][part~=wy-active]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399))}[part~=wy-button-icon-inline]{height:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));width:auto;min-width:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));background:var(--wy-component-background-color);color:currentColor;display:flex;padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))}[part~=wy-button-icon-inline][part~=wy-button-sm]{height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);min-width:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);padding:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .25);margin:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .5)}[part~=wy-button-icon-inline][part~=wy-button-sm][part~=wy-button-state-layer]:before{margin:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * -.1)}[part~=wy-button-inline]{border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));padding:calc(.5 * var(--wy-size, 1rem)) calc(.75 * var(--wy-size, 1rem));margin-inline:calc(-.25 * var(--wy-size, 1rem))}[part~=wy-button-primary]{--wy-component-background-color: var(--wy-primary, var(--wy-primary-40, #006399));--wy-component-color: var(--wy-on-primary, var(--wy-white, #ffffff))}[part~=wy-button-variant]{--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}[part~=wy-button-primary-text]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399))}[part~=wy-button-inherit-color]{--wy-component-color: currentColor}[part~=wy-button-no-color]{--wy-component-color: unset}[part=wy-button-link]{padding:0;color:var(--wy-link-color, var(--wy-primary, var(--wy-primary-40, #006399)));text-decoration:var(--wy-link-decoration, none)}[part=wy-button-link]:hover,[part=wy-button-link]:focus{text-decoration:var(--wy-link-hover-decoration, unset)}[part~=wy-buttons]{display:flex;align-items:center;flex-wrap:wrap;gap:calc(.5 * var(--wy-size, 1rem))}[part~=wy-buttons-reverse]{flex-direction:row-reverse}[part~=wy-buttons-floating]{position:sticky;padding:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) 0;top:0;height:0;margin-bottom:calc(-1 * var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));z-index:1030;--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}.wy-code pre,.wy-editor .cm-content pre,.wy-content pre{text-wrap:pretty}.wy-code .code,.wy-code code[class*=language-],.wy-code pre[class*=language-],.wy-editor .cm-content .code,.wy-content .code,.wy-editor .cm-content code[class*=language-],.wy-content code[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{color:var(--wy-code-text, var(--wy-code-text-light, #3b3b3b));font-family:var(--wy-font-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);text-align:left;white-space:pre-wrap;word-spacing:normal;word-break:normal;word-wrap:break-word;line-height:1.25;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{.wy-code code[class*=language-],.wy-code pre[class*=language-],.wy-editor .cm-content code[class*=language-],.wy-content code[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{text-shadow:none}}.wy-code pre[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}.wy-code :not(pre)>code[class*=language-],.wy-code pre[class*=language-],.wy-editor .cm-content :not(pre)>code[class*=language-],.wy-content :not(pre)>code[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{color:var(--wy-code-text, var(--wy-code-text-light, #3b3b3b));background:var(--wy-background, var(--wy-neutral-99, #fcfcff))}.wy-code :not(pre)>code[class*=language-],.wy-editor .cm-content :not(pre)>code[class*=language-],.wy-content :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.wy-code .token.variable,.wy-editor .cm-content .token.variable,.wy-content .token.variable{color:var(--wy-code-variable, var(--wy-code-variable-light, #001080))}.wy-code .token.operator,.wy-editor .cm-content .token.operator,.wy-content .token.operator{color:var(--wy-code-operator, var(--wy-code-operator-light, #000000))}.wy-code .token.prolog,.wy-editor .cm-content .token.prolog,.wy-content .token.prolog{color:var(--wy-code-prolog, var(--wy-code-prolog-light, #000080))}.wy-code .token.comment,.wy-editor .cm-content .token.comment,.wy-content .token.comment{color:var(--wy-code-comment, var(--wy-code-comment-light, #008000))}.wy-code .token.builtin,.wy-editor .cm-content .token.builtin,.wy-content .token.builtin{color:var(--wy-code-builtin, var(--wy-code-builtin-light, #0070C1))}.wy-code .token.number,.wy-editor .cm-content .token.number,.wy-content .token.number{color:var(--wy-code-number, var(--wy-code-number-light, #098658))}.wy-code .token.inserted,.wy-editor .cm-content .token.inserted,.wy-content .token.inserted{color:var(--wy-code-inserted, var(--wy-code-inserted-light, #098658))}.wy-code .token.constant,.wy-editor .cm-content .token.constant,.wy-content .token.constant{color:var(--wy-code-constant, var(--wy-code-constant-light, #811F3F))}.wy-code .token.hexcode,.wy-editor .cm-content .token.hexcode,.wy-content .token.hexcode{color:var(--wy-code-hexcode, var(--wy-code-hexcode-light, #811F3F))}.wy-code .token.regex,.wy-editor .cm-content .token.regex,.wy-content .token.regex{color:var(--wy-code-regex, var(--wy-code-regex-light, #811F3F))}.wy-code .token.char,.wy-editor .cm-content .token.char,.wy-content .token.char{color:var(--wy-code-char, var(--wy-code-char-light, #811F3F))}.wy-code .token.tag,.wy-editor .cm-content .token.tag,.wy-content .token.tag{color:var(--wy-code-tag, var(--wy-code-tag-light, #800000))}.wy-code .token.attr-name,.wy-editor .cm-content .token.attr-name,.wy-content .token.attr-name{color:var(--wy-code-attr-name, var(--wy-code-attr-name-light, #E50000))}.wy-code .token.selector,.wy-editor .cm-content .token.selector,.wy-content .token.selector{color:var(--wy-code-selector, var(--wy-code-selector-light, #E50000))}.wy-code .token.property,.wy-editor .cm-content .token.property,.wy-content .token.property{color:var(--wy-code-property, var(--wy-code-property-light, #E50000))}.wy-code .token.deleted,.wy-editor .cm-content .token.deleted,.wy-content .token.deleted{color:var(--wy-code-deleted, var(--wy-code-deleted-light, #A31515))}.wy-code .token.string,.wy-editor .cm-content .token.string,.wy-content .token.string{color:var(--wy-code-string, var(--wy-code-string-light, #A31515))}.wy-code .token.changed,.wy-editor .cm-content .token.changed,.wy-content .token.changed{color:var(--wy-code-changed, var(--wy-code-changed-light, #0451A5))}.wy-code .token.punctuation,.wy-editor .cm-content .token.punctuation,.wy-content .token.punctuation{color:var(--wy-code-punctuation, var(--wy-code-punctuation-light, #000000))}.wy-code .token.function,.wy-editor .cm-content .token.function,.wy-content .token.function{color:var(--wy-code-function, var(--wy-code-function-light, #0000FF))}.wy-code .token.keyword,.wy-editor .cm-content .token.keyword,.wy-content .token.keyword{color:var(--wy-code-keyword, var(--wy-code-keyword-light, #AF00DB))}.wy-code .token.class-name,.wy-editor .cm-content .token.class-name,.wy-content .token.class-name{color:var(--wy-code-class-name, var(--wy-code-class-name-light, #267F99))}.wy-code .token.important,.wy-code .token.bold,.wy-editor .cm-content .token.important,.wy-content .token.important,.wy-editor .cm-content .token.bold,.wy-content .token.bold{font-weight:700}.wy-code .token.italic,.wy-editor .cm-content .token.italic,.wy-content .token.italic{font-style:italic}.wy-content{overflow-wrap:break-word;min-width:0}.wy-content:empty{display:none}.wy-content>:first-child{margin-top:0}.wy-content>:last-child{margin-bottom:0}.wy-content b,.wy-content strong{font-weight:var(--wy-font-weight-bold, 600)}.wy-content blockquote{border-left:calc(2 * var(--wy-border, 1px)) solid var(--wy-neutral-80, #c6c6c9);margin:var(--wy-size, 1rem) 0;padding:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));padding-left:var(--wy-size, 1rem)}.wy-content blockquote>p{margin:0}.wy-content pre,.wy-content code{font-family:var(--wy-font-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-content :not(pre)>code{overflow-wrap:inherit}.wy-content pre>code{font-size:var(--wy-font-size, var(--wy-size, 1em));white-space:pre-wrap}.wy-content h1,.wy-content h2,.wy-content h3,.wy-content h4,.wy-content h5,.wy-content h6{font-family:var(--wy-headings-font-family, var(--wy-font-family, unset));font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600));line-height:var(--wy-headings-line-height, var(--wy-line-height, 1.2));margin:0 0 var(--wy-gap, calc(.5 * var(--wy-size, 1rem))) 0}.wy-content h1{font-size:calc(2 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h2{font-size:calc(1.8 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h3{font-size:calc(1.6 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h4{font-size:calc(1.4 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h5{font-size:calc(1.2 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h6{font-size:var(--wy-font-size, var(--wy-size, 1em))}.wy-content table{display:block;width:100%;max-width:-moz-max-content;max-width:max-content;margin:0 auto;overflow-x:auto;white-space:nowrap;border-collapse:separate;border-spacing:0 0;margin-bottom:var(--wy-size, 1rem)}.wy-content table th,.wy-content table td{padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));border-color:inherit;border-style:solid}.wy-content table th{text-align:inherit;text-align:-webkit-match-parent;border-width:var(--wy-border, 1px) 0 var(--wy-border, 1px) var(--wy-border, 1px);font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600))}.wy-content table th:first-child{border-top-left-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-content table th:last-child{border-top-right-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));border-right-width:var(--wy-border, 1px)}.wy-content table td{border-width:0 0 var(--wy-border, 1px) var(--wy-border, 1px)}.wy-content table td:last-child{border-right-width:var(--wy-border, 1px)}.wy-content table tr:last-child td:first-child{border-bottom-left-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-content table tr:last-child td:last-child{border-bottom-right-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-content table>tbody{vertical-align:inherit}.wy-content table>thead{vertical-align:bottom}.wy-content img{max-width:100%;border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));margin-block:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}ol{list-style-type:decimal}ul{list-style-type:disc}li{margin:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))) 0}ol,ul{margin:var(--wy-size, 1rem) 0;padding:0 0 0 1.625em}ol>li,ul>li{padding-left:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}ol>li>:first-child,ul>li>:first-child{margin-bottom:0;margin-top:0}ol>li>:last-child,ul>li>:last-child{margin-bottom:0}.wy-hashtag{color:var(--wy-primary, var(--wy-primary-40, #006399))}.wy-mention{font-weight:700}.wy-emoji-icon{display:inline-flex;justify-content:center;align-items:center;line-height:1;width:1em;height:1em;font-size:calc(1.25 * var(--wy-size, 1rem))}.wy-emoji-icon-sm{width:calc(1.125 * var(--wy-size, 1rem));height:calc(1.125 * var(--wy-size, 1rem));font-size:calc(1.125 * var(--wy-size, 1rem))}.wy-empty{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;position:relative;flex-direction:column;gap:var(--wy-gap-lg, calc(1.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}[part~=wy-icon]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;position:relative;width:var(--wy-component-icon-width);height:var(--wy-component-icon-height)}[part~=wy-icon][width=\"24\"]{width:var(--wy-component-icon-width, calc(1.5 * var(--wy-size, 1rem)))}[part~=wy-icon][height=\"24\"]{height:var(--wy-component-icon-height, calc(1.5 * var(--wy-size, 1rem)))}[part~=wy-icon-first]{margin-left:calc(-.5 * var(--wy-size, 1rem))}[part~=wy-icon-last]{margin-right:calc(-.5 * var(--wy-size, 1rem))}[part~=wy-icon-padded]{margin:16.66666667%}[part~=wy-icon-inline]{vertical-align:-.25em}[part~=wy-icon-overlay]{position:absolute;bottom:0;right:0;border-radius:50%}:host(wy-icon-stack),[part~=wy-icon-stack]{display:inline-flex;position:relative;line-height:1}[part~=wy-icon-stack-layer]{position:absolute}[part~=wy-icon-stack-overlay]{position:absolute;bottom:0;right:0;border-radius:50%;width:calc(var(--wy-component-icon-width) / 2);height:calc(var(--wy-component-icon-height) / 2)}[part~=wy-icon-current-color]{fill:currentColor}[part~=wy-icon-state]{transition:opacity var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));align-self:center;justify-self:center;margin:auto;opacity:0}[part~=wy-icon-state][part~=wy-active]{opacity:1}[part~=wy-icon-display]{color:var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));border-radius:var(--wy-component-border-radius, var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))));display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:calc(1 * var(--wy-size, 1rem)) calc(2 * var(--wy-size, 1rem));margin:auto}[part~=wy-icon-display-icon]{color:var(--wy-component-color);--wy-component-icon-width: calc(4 * var(--wy-size, 1rem));--wy-component-icon-height: calc(4 * var(--wy-size, 1rem));padding:calc(1 * var(--wy-size, 1rem)) calc(2 * var(--wy-size, 1rem))}[part~=wy-icon-display-text],[part~=wy-icon-display-meta]{color:var(--wy-component-color);padding:calc(1 * var(--wy-size, 1rem)) calc(2 * var(--wy-size, 1rem));text-align:center}[part~=wy-icon-color-primary]{fill:var(--wy-primary, var(--wy-primary-40, #006399))}[part~=wy-icon-color-secondary]{fill:var(--wy-secondary, var(--wy-secondary-40, #3b6a1c))}[part~=wy-icon-color-tertiary]{fill:var(--wy-tertiary, var(--wy-tertiary-40, #3b6a1c))}[part~=wy-icon-color-surface]{fill:var(--wy-surface, var(--wy-neutral-99, #fcfcff))}[part~=wy-icon-color-surface-variant]{fill:var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb))}[part~=wy-icon-color-error]{fill:var(--wy-error, var(--wy-error-40, #ba1824))}[part~=wy-icon-color-warning]{fill:var(--wy-warning, var(--wy-warning-70, #afb140))}[part~=wy-icon-color-blue]{fill:var(--wy-blue, var(--wy-blue-light, #89a9fc))}[part~=wy-icon-color-indigo]{fill:var(--wy-indigo, var(--wy-indigo-light, #9185de))}[part~=wy-icon-color-purple]{fill:var(--wy-purple, var(--wy-purple-light, #c675b7))}[part~=wy-icon-color-pink]{fill:var(--wy-pink, var(--wy-pink-light, #d57194))}[part~=wy-icon-color-red]{fill:var(--wy-red, var(--wy-red-light, #db726c))}[part~=wy-icon-color-orange]{fill:var(--wy-orange, var(--wy-orange-light, #e89a3a))}[part~=wy-icon-color-yellow]{fill:var(--wy-yellow, var(--wy-yellow-light, #afb140))}[part~=wy-icon-color-green]{fill:var(--wy-green, var(--wy-green-light, #00a38b))}[part~=wy-icon-color-teal]{fill:var(--wy-teal, var(--wy-teal-light, #00a0a8))}[part~=wy-icon-color-cyan]{fill:var(--wy-cyan, var(--wy-cyan-light, #0082a1))}[part~=wy-icon-color-gray]{fill:var(--wy-gray, var(--wy-gray-light, #76777a))}[part~=wy-icon-color-black]{fill:var(--wy-black, var(--wy-black, #000000))}[part~=wy-icon-color-white]{fill:var(--wy-white, var(--wy-white, #ffffff))}[part*=wy-kind-]{fill:var(--wy-gray, var(--wy-gray-light, #76777a))}[part~=wy-kind-archive]{fill:var(--wy-orange, var(--wy-orange-light, #e89a3a))}[part~=wy-kind-audio]{fill:var(--wy-teal, var(--wy-teal-light, #00a0a8))}[part~=wy-kind-code]{fill:var(--wy-green, var(--wy-green-light, #00a38b))}[part~=wy-kind-document]{fill:var(--wy-blue, var(--wy-blue-light, #89a9fc))}[part~=wy-kind-email]{fill:var(--wy-red, var(--wy-red-light, #db726c))}[part~=wy-kind-presentation]{fill:var(--wy-orange, var(--wy-orange-light, #e89a3a))}[part~=wy-kind-spreadsheet]{fill:var(--wy-green, var(--wy-green-light, #00a38b))}[part~=wy-kind-image]{fill:var(--wy-pink, var(--wy-pink-light, #d57194))}[part~=wy-kind-text]{fill:var(--wy-cyan, var(--wy-cyan-light, #0082a1))}[part~=wy-kind-video]{fill:var(--wy-purple, var(--wy-purple-light, #c675b7))}[part~=wy-ext-pdf]{fill:var(--wy-red, var(--wy-red-light, #db726c))}[part~=wy-kind-text-icon]{width:calc(1.25 * var(--wy-size, 1rem));height:calc(1.25 * var(--wy-size, 1rem));vertical-align:calc(-.3125 * var(--wy-size, 1rem))}.wy-title{font-family:var(--wy-headings-font-family, var(--wy-font-family, unset));font-size:var(--wy-headings-font-size, 1.25em);font-style:var(--wy-headings-font-style, unset);font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600));line-height:var(--wy-headings-line-height, var(--wy-line-height, 1.2));margin-block:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))}.wy-input{--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);border:var(--wy-input-border-width, var(--wy-border, 1px)) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));display:block;width:100%;min-height:calc(var(--wy-input-font-size, var(--wy-font-size, 1em)) * 1.5 * var(--wy-size, 1rem) + var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * 2 + var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) * 2);padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));font-family:var(--wy-input-font-family, var(--wy-font-family, inherit)),inherit;font-size:var(--wy-input-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-input-font-weight, var(--wy-font-weight, unset));line-height:var(--wy-input-line-height, var(--wy-line-height, calc(1.5 * var(--wy-size, 1rem))));background-clip:padding-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--wy-input-border-radius, var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))))}.wy-input:focus{--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));color:var(--wy-component-color);border-color:var(--wy-primary, var(--wy-primary-40, #006399));outline:0}.wy-input::placeholder{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));opacity:1}.wy-input:disabled{opacity:38%}.wy-input::file-selector-button,.wy-input::-webkit-file-upload-button{color:var(--wy-component-color);background-color:var(--wy-component-background-color);padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));margin:calc(-1 * var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) calc(-1 * var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));margin-inline-end:var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--wy-input-border-width, var(--wy-border, 1px));border-radius:0}.wy-input:hover:not(:disabled):not([readonly])::file-selector-button,.wy-input:hover:not(:disabled):not([readonly]) ::-webkit-file-upload-button{background-color:var(--wy-component-background-color)}.wy-input[type=file]{overflow:hidden}.wy-input[type=file]:not(:disabled):not([readonly]){cursor:pointer}.wy-input::-webkit-date-and-time-value{height:calc(var(--wy-input-line-height, var(--wy-line-height, calc(1.5 * var(--wy-size, 1rem)))) * 1em)}.wy-input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.wy-input-filled{--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);border-radius:var(--wy-input-filled-border-radius, var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem)))));border-color:var(--wy-component-background-color)}.wy-input-filled:focus{border-color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-label{display:inline-block;margin-bottom:calc(.5 * var(--wy-size, 1rem))}.wy-description{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)));margin-top:calc(.25 * var(--wy-size, 1rem))}.wy-is-invalid,.wy-is-invalid:focus{border-color:var(--wy-error, var(--wy-error-40, #ba1824))}.wy-invalid-feedback{margin-top:calc(.25 * var(--wy-size, 1rem));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)));color:var(--wy-error, var(--wy-error-40, #ba1824))}.wy-input-group{position:relative;display:flex;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));align-items:center}.wy-input-group-button-icon{position:absolute;top:0;right:0;z-index:4;border-radius:var(--wy-input-border-radius, var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))));--wy-component-background-color: transparent}.wy-input-group-input:placeholder-shown~.wy-input-group-button-icon[type=reset]{display:none}.wy-input-group-input:not(:placeholder-shown)~.wy-input-group-button-icon[type=reset]+.wy-input-group-button-icon{display:none}.wy-item{--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));position:relative;display:flex;align-items:center;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));text-decoration:none}.wy-list-item{min-height:calc(3 * var(--wy-size, 1rem))}.wy-list-item-lg{min-height:calc(4.5 * var(--wy-size, 1rem))}.wy-item-inner{display:flex;align-items:center;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));flex:1 1 100%}.wy-item-body{width:100%;min-width:0}.wy-item-rows{display:flex;flex-direction:column;width:100%;row-gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));min-width:0}.wy-item-rows:only-child{margin-inline-start:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-item-rows-compact{row-gap:0}.wy-item-rows-single{margin-inline-start:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-item-title{color:var(--wy-component-color);font-size:var(--wy-item-title-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-item-title-font-weight, var(--wy-font-weight, unset))}.wy-item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-item-title-lg{color:var(--wy-component-color);font-size:var(--wy-item-title-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-item-title-font-weight, var(--wy-font-weight, unset))}.wy-item-title-lg{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.wy-item-text{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-item-text .wy-icon{width:calc(1.25 * var(--wy-size, 1rem));height:calc(1.25 * var(--wy-size, 1rem));vertical-align:calc(-.3125 * var(--wy-size, 1rem))}.wy-item-quote{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e))}.wy-item-quote:before,.wy-item-quote:after{content:'\"'}.wy-item-actions{--wy-component-background-color: transparent;display:flex;align-items:center;justify-items:flex-end;flex:0 0 auto;margin:calc(-.25 * var(--wy-size, 1rem))}.wy-item-top{align-self:flex-start}.wy-item-actions-bottom{align-self:flex-start;margin-block:calc(-.5 * var(--wy-size, 1rem))}.wy-item-row{display:flex;align-items:center;column-gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}.wy-item-row .wy-item-title,.wy-item-row .wy-item-text{margin-right:auto}.wy-item-row .wy-meta{white-space:nowrap}.wy-item-right{margin-left:auto}.wy-item-hover{-webkit-user-select:none;user-select:none;cursor:pointer}.wy-item-hover:hover,.wy-item-hover:focus{--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);text-decoration:none}.wy-item-hover:active{--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-item-hover.wy-disabled,.wy-item-hover:disabled{opacity:var(--wy-opacity-disabled, 38%);pointer-events:none}.wy-item-hover.wy-active{--wy-component-background-color: var(--wy-primary-container, var(--wy-primary-90, #cde5ff));--wy-component-color: var(--wy-on-primary-container, var(--wy-primary-10, #001d32));background-color:var(--wy-component-background-color);color:var(--wy-component-color);border-color:var(--wy-component-background-color)}.wy-item-trashed{text-decoration:line-through;opacity:var(--wy-opacity-disabled, 38%)}.wy-item-trashed.wy-item-hover:hover{opacity:1}.wy-list{border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));display:flex;flex-direction:column;gap:var(--wy-border);min-width:0}.wy-list .wy-item:not(.wy-item-hover){--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-list .wy-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.wy-list .wy-item:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.wy-list-bordered{border:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));gap:0}.wy-list-bordered .wy-item{border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));border-left:none;border-right:none}.wy-list-bordered .wy-item:first-child{border-top:none}.wy-list-bordered .wy-item:last-child{border-bottom:none}.wy-list-bordered .wy-item+.wy-list-bordered .wy-item{border-top-width:0}@keyframes wy-highlight{0%{--wy-component-background-color: var(--wy-highlight, var(--wy-primary-95, #e8f2ff));--wy-component-color: var(--wy-on-highlight, var(--wy-primary-10, #001d32))}}.wy-messages{padding:var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));flex:1 1 100%}.wy-message-placeholder{opacity:.5}.wy-date-separator{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));pointer-events:none;margin:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));text-align:center;position:sticky;top:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));z-index:10}.wy-date-separator time{background:var(--wy-surface-3, var(--wy-surface-3-light, #e3e7ee));color:var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));display:inline-block}.wy-message{display:flex;flex-direction:row;align-items:flex-start;margin-bottom:calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + .5 * var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));scroll-margin-block:6rem;--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}.wy-message[part~=wy-highlight]{animation:wy-highlight 3s 1.5s ease-in-out both}.wy-message-area{border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-message-meta{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));margin:0 0 calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))));color:var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}.wy-message-bubble{background-color:var(--wy-component-background-color);color:var(--wy-component-color);border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));display:flex;flex-direction:column;padding:var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));max-width:min(32 * var(--wy-size, 1rem),100% - 2 * var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))))}.wy-message-bubble>div{flex:1 1 100%}.wy-message-author{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));margin:calc(1lh + .5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) calc(.5 * var(--wy-size, 1rem)) 0 0}.wy-message-content{display:flex;flex-direction:column;width:100%;align-items:flex-start;flex-wrap:wrap;min-width:0;position:relative}.wy-message-content-row{display:flex;flex-direction:row;align-items:center;max-width:100%}.wy-message-agent{--wy-component-background-color: var(--wy-tertiary-container, var(--wy-tertiary-90, #bbf294));--wy-component-color: var(--wy-on-tertiary-container, var(--wy-tertiary-10, #0a2100))}.wy-message-me{margin-right:0;margin-left:calc(2.5 * var(--wy-size, 1rem));align-items:flex-end;--wy-component-background-color: var(--wy-primary-container, var(--wy-primary-90, #cde5ff));--wy-component-color: var(--wy-on-primary-container, var(--wy-primary-10, #001d32))}.wy-message-me .wy-message-meta{margin:0 calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) 0}.wy-message-me .wy-message-content{align-items:flex-end}.wy-message-me .wy-message-content-row{flex-direction:row-reverse}.wy-message-emoji .wy-message-bubble{background:none;padding:0 0 var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))))}.wy-message-emoji .wy-content .wy-emoji{width:calc(3 * var(--wy-size, 1rem));height:calc(3 * var(--wy-size, 1rem));margin:0}.wy-message-emoji.wy-message-me .wy-content{text-align:end}.wy-readby-status{display:flex;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));height:calc(1.125 * var(--wy-size, 1rem));justify-content:flex-end;margin-top:calc(-.125 * var(--wy-size, 1rem))}.wy-message-readmore{justify-self:center;text-align:center}.wy-meta{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-meta-sm{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)))}.wy-dialog{background:none;border:none;padding:0;margin:0}.wy-dialog[popover]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1055}.wy-overlay-dialog{width:100%;height:100%;align-items:center;justify-content:center;overflow:visible;max-width:100%;max-height:100%}.wy-overlay-dialog[open]{display:flex}.wy-overlay-dialog:popover-open{display:flex}.wy-overlay-dialog:focus-visible{outline:none}.wy-overlay{--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);display:flex;flex-direction:column}.wy-overlay.wy-modal{width:100%;height:100%;overflow:hidden;border-radius:0}@media (min-width: 768px){.wy-overlay.wy-modal-padded{border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));box-shadow:var(--wy-shadow-level4, 0 calc(1 * var(--wy-size, 1rem)) calc(2.25 * var(--wy-size, 1rem)) calc(.125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .14), 0 calc(.375 * var(--wy-size, 1rem)) calc(1.875 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .12), 0 calc(.5 * var(--wy-size, 1rem)) calc(.625 * var(--wy-size, 1rem)) calc(-.3125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2));margin-left:calc(4 * var(--wy-size, 1rem));margin-top:auto;margin-right:calc(4 * var(--wy-size, 1rem));margin-bottom:auto;width:calc(32 * var(--wy-size, 1rem));max-height:calc(32 * var(--wy-size, 1rem))}}@media (min-width: 768px){.wy-overlay.wy-modal-full{margin:0;border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));box-shadow:var(--wy-shadow-level4, 0 calc(1 * var(--wy-size, 1rem)) calc(2.25 * var(--wy-size, 1rem)) calc(.125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .14), 0 calc(.375 * var(--wy-size, 1rem)) calc(1.875 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .12), 0 calc(.5 * var(--wy-size, 1rem)) calc(.625 * var(--wy-size, 1rem)) calc(-.3125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2));max-width:calc(100% - 2 * var(--wy-size, 1rem));max-height:calc(100% - 2 * var(--wy-size, 1rem))}}.wy-overlay{opacity:0;visibility:hidden;transition:opacity var(--wy-transition-fast, var(--wy-transition-duration-fast, .1s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))) .01s,transform var(--wy-transition-fast, var(--wy-transition-duration-fast, .1s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))) .01s,visibility .01s step-end var(--wy-transition-duration-fast, .1s)}.wy-overlay.wy-open{transition:opacity var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))),transform var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))),visibility var(--wy-transition-duration, .2s) step-start;visibility:visible}.wy-overlay.wy-open.wy-transition{opacity:1;transform:none}.wy-pane{display:flex;flex-direction:column;position:relative;min-height:0;height:100%;flex:1 1 auto}.wy-pane-body{display:flex;flex-direction:column;flex:1}.wy-pane-group{padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))}.wy-pane-background{--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-pane-toolbar{display:flex;flex:1;justify-content:space-evenly;align-items:center;padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-picker-list{background:var(--wy-component-background-color);color:var(--wy-component-color);border:none}.wy-picker-list>.wy-picker-list-item:first-child,.wy-picker-list>:first-child .wy-picker-list-item{border-top:none}.wy-picker-list>.wy-picker-list-item:last-child,.wy-picker-list>:last-child .wy-picker-list-item{border-bottom:none}.wy-picker-list-item{display:flex;align-items:center;padding:calc(.25 * var(--wy-size, 1rem)) calc(.5 * var(--wy-size, 1rem))}.wy-picker-list-item>wy-icon{margin-left:calc(.25 * var(--wy-size, 1rem));margin-right:calc(.25 * var(--wy-size, 1rem));flex:0 0 auto}.wy-picker-list-item>button{margin-block-start:auto;flex:0 0 auto}.wy-picker-list-item-title{flex-grow:1}.wy-picker-list-item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-main{display:flex;height:calc(100% - var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem))))));min-height:0}@media (max-width: 767.98px){.wy-main{flex-direction:column}}.wy-preview{--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch;position:relative;flex:1 1 100%;min-width:calc(16 * var(--wy-size, 1rem));min-height:calc(16 * var(--wy-size, 1rem));max-height:100%;max-width:100%}.wy-preview-layout{width:100%;height:100%}.wy-preview-swiper{display:flex;flex-direction:row;flex:1 1 100%;align-items:center;justify-content:start;min-width:calc(16 * var(--wy-size, 1rem));min-height:calc(16 * var(--wy-size, 1rem));max-height:100%;max-width:100%;overflow-x:scroll;scroll-snap-type:x mandatory;scroll-behavior:auto;overscroll-behavior-x:none;scrollbar-width:none}.wy-preview-swiper::-webkit-scrollbar{display:none}.wy-preview-swiper-disabled{overflow-x:hidden}.wy-preview-area{position:relative;min-width:100%;min-height:100%;width:100%;height:100%;flex:1 1 auto;display:flex;flex-direction:column;scroll-snap-stop:always;scroll-snap-align:center}.wy-nav-prev,.wy-nav-next{--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));background-color:var(--wy-component-background-color);position:absolute;top:50%;z-index:1000;border-radius:50%}.wy-nav-prev{left:calc(.5 * var(--wy-size, 1rem))}.wy-nav-next{right:calc(.5 * var(--wy-size, 1rem))}.wy-document{--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);align-self:flex-start;padding:calc(2 * var(--wy-size, 1rem)) calc(3.5 * var(--wy-size, 1rem));width:100%;min-height:100%;flex:1 0 auto}@media (min-width: 768px){.wy-document{padding:calc(3 * var(--wy-size, 1rem)) calc(4 * var(--wy-size, 1rem));margin:calc(2 * var(--wy-size, 1rem)) auto;border-radius:calc(.125 * var(--wy-size, 1rem));box-shadow:var(--wy-shadow-level2, 0 calc(.25 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .14), 0 calc(.0625 * var(--wy-size, 1rem)) calc(.625 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .12), 0 calc(.125 * var(--wy-size, 1rem)) calc(.25 * var(--wy-size, 1rem)) calc(-.0625 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2));width:120ch;min-height:170ch;max-width:calc(100% - 3.5 * var(--wy-size, 1rem))}}.wy-content-code{align-self:flex-start;width:100%;padding:calc(2 * var(--wy-size, 1rem)) calc(3.5 * var(--wy-size, 1rem));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-content-iframe{border:0;display:block;width:100%;height:100%;top:0;left:0;flex:1 1 100%}.wy-content-iframe.wy-loaded{--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-content-iframe.wy-loaded~.wy-content-iframe-fallback,.wy-content-iframe.wy-loaded~.wy-spinner,.wy-content-iframe.wy-loaded~wy-spinner{display:none}.wy-content-iframe.wy-loading:not(.wy-loaded){position:absolute;visibility:hidden;z-index:-1;pointer-events:none}.wy-content-iframe.wy-loading:not(.wy-loaded):not(.wy-fallback)~.wy-content-iframe-fallback{display:none}.wy-content-iframe.wy-loading:not(.wy-loaded).wy-fallback~.wy-spinner,.wy-content-iframe.wy-loading:not(.wy-loaded).wy-fallback~wy-spinner{display:none}.wy-content-iframe~.wy-spinner,.wy-content-iframe~wy-spinner{margin:auto}.wy-content-html pre,.wy-content-html code{word-break:break-word;white-space:pre-wrap}.wy-content-image{min-width:0;display:flex;align-items:center;justify-content:center;position:relative;margin:auto;max-height:100%;max-width:100%;transition:transform var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))),transform-origin var(--wy-transition-duration, .2s) step-end}.wy-content-image.wy-zoom{cursor:zoom-out;transition:transform var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))),transform-origin var(--wy-transition-duration, .2s) step-start}.wy-content-image img{min-width:0;min-height:0;width:100%;height:100%}.wy-content-image img:not(.wy-loading-transition):not([data-controller~=image])~.wy-spinner,.wy-content-image img:not(.wy-loading-transition):not([data-controller~=image])~wy-spinner{display:none}.wy-content-image img.wy-loading,.wy-content-image img[data-controller~=image]{transition:opacity .15s ease-out;opacity:0}.wy-content-image img.wy-loading.wy-loaded,.wy-content-image img[data-controller~=image].wy-loaded{opacity:1;transition:opacity .15s ease-out}.wy-content-image img.wy-loading.wy-loaded~img,.wy-content-image img[data-controller~=image].wy-loaded~img{transition-delay:.15s;opacity:0}.wy-content-image img.wy-loading.wy-loaded~.wy-spinner,.wy-content-image img.wy-loading.wy-loaded~wy-spinner,.wy-content-image img[data-controller~=image].wy-loaded~.wy-spinner,.wy-content-image img[data-controller~=image].wy-loaded~wy-spinner{display:none}.wy-content-image img.wy-responsive-image-thumb{position:absolute;z-index:-1}.wy-content-image img~.wy-spinner,.wy-content-image img~wy-spinner{position:absolute}.wy-content-video:not(.wy-error){min-height:0;max-width:100%;max-height:100%;flex:1 1 auto}.wy-content-video,.wy-content-audio{margin:auto}.wy-content-video.wy-loading:not(.wy-loaded),.wy-content-video[data-controller~=media]:not(.wy-loaded),.wy-content-audio.wy-loading:not(.wy-loaded),.wy-content-audio[data-controller~=media]:not(.wy-loaded){visibility:hidden}.wy-content-video.wy-loading.wy-loaded~.wy-spinner,.wy-content-video.wy-loading.wy-loaded~wy-spinner,.wy-content-video[data-controller~=media].wy-loaded~.wy-spinner,.wy-content-video[data-controller~=media].wy-loaded~wy-spinner,.wy-content-audio.wy-loading.wy-loaded~.wy-spinner,.wy-content-audio.wy-loading.wy-loaded~wy-spinner,.wy-content-audio[data-controller~=media].wy-loaded~.wy-spinner,.wy-content-audio[data-controller~=media].wy-loaded~wy-spinner{display:none}.wy-content-video:focus,.wy-content-audio:focus{outline:none}.wy-pdf-container{position:absolute;width:100%;height:100%;bottom:0;left:0}.wy-pdf-container{overflow-y:auto;max-height:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}.wy-pdf-container:not(body){-webkit-overflow-scrolling:touch}.wy-pdf-container{overflow-x:auto;max-width:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}.wy-content-pdf .textLayer{position:absolute;text-align:initial;top:0;right:0;bottom:0;left:0;overflow:clip;opacity:1;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;caret-color:CanvasText;z-index:0}.wy-content-pdf .textLayer.highlighting{touch-action:none}.wy-content-pdf .textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}.wy-content-pdf .textLayer>:not(.markedContent),.wy-content-pdf .textLayer .markedContent span:not(.markedContent){z-index:1}.wy-content-pdf .textLayer span.markedContent{top:0;height:0}.wy-content-pdf .textLayer span[role=img]{-webkit-user-select:none;user-select:none;cursor:default}.wy-content-pdf .textLayer .highlight{--highlight-bg-color: rgb(180 0 170 / .25);--highlight-selected-bg-color: rgb(0 100 0 / .25);--highlight-backdrop-filter: none;--highlight-selected-backdrop-filter: none}@media screen and (forced-colors: active){.wy-content-pdf .textLayer .highlight{--highlight-bg-color: transparent;--highlight-selected-bg-color: transparent;--highlight-backdrop-filter: var(--hcm-highlight-filter);--highlight-selected-backdrop-filter: var(--hcm-highlight-selected-filter)}}.wy-content-pdf .textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);-webkit-backdrop-filter:var(--highlight-backdrop-filter);backdrop-filter:var(--highlight-backdrop-filter);border-radius:4px}.wy-content-pdf .textLayer .highlight.appended{position:initial}.wy-content-pdf .textLayer .highlight.begin{border-radius:4px 0 0 4px}.wy-content-pdf .textLayer .highlight.end{border-radius:0 4px 4px 0}.wy-content-pdf .textLayer .highlight.middle{border-radius:0}.wy-content-pdf .textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color);-webkit-backdrop-filter:var(--highlight-selected-backdrop-filter);backdrop-filter:var(--highlight-selected-backdrop-filter)}.wy-content-pdf .textLayer ::selection{background:#0000ff40;background:color-mix(in srgb,AccentColor,transparent 75%)}.wy-content-pdf .textLayer br::selection{background:transparent}.wy-content-pdf .textLayer .endOfContent{display:block;position:absolute;top:100%;right:0;bottom:0;left:0;z-index:0;cursor:default;-webkit-user-select:none;user-select:none}.wy-content-pdf .textLayer.selecting .endOfContent{top:0}.wy-content-pdf .annotationLayer{--annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors: active){.wy-content-pdf .annotationLayer{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea):required,.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:required,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.wy-content-pdf .annotationLayer .linkAnnotation{outline:var(--link-outline)}.wy-content-pdf .annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:var(--hcm-highlight-filter);backdrop-filter:var(--hcm-highlight-filter)}.wy-content-pdf .annotationLayer .linkAnnotation>a:hover{opacity:0!important;background:none!important;box-shadow:none}.wy-content-pdf .annotationLayer .popupAnnotation .popup{outline:calc(1.5px * var(--scale-factor)) solid CanvasText!important;background-color:ButtonFace!important;color:ButtonText!important}.wy-content-pdf .annotationLayer .highlightArea:hover:after{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-backdrop-filter:var(--hcm-highlight-filter);backdrop-filter:var(--hcm-highlight-filter);content:\"\";pointer-events:none}.wy-content-pdf .annotationLayer .popupAnnotation.focused .popup{outline:calc(3px * var(--scale-factor)) solid Highlight!important}}.wy-content-pdf .annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0}.wy-content-pdf .annotationLayer[data-main-rotation=\"90\"] .norotate{transform:rotate(270deg) translate(-100%)}.wy-content-pdf .annotationLayer[data-main-rotation=\"180\"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.wy-content-pdf .annotationLayer[data-main-rotation=\"270\"] .norotate{transform:rotate(90deg) translateY(-100%)}.wy-content-pdf .annotationLayer.disabled section,.wy-content-pdf .annotationLayer.disabled .popup{pointer-events:none}.wy-content-pdf .annotationLayer .annotationContent{position:absolute;width:100%;height:100%;pointer-events:none}.wy-content-pdf .annotationLayer .annotationContent.freetext{background:transparent;border:none;top:0;right:0;bottom:0;left:0;overflow:visible;white-space:nowrap;font:10px sans-serif;line-height:1.35;-webkit-user-select:none;user-select:none}.wy-content-pdf .annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0}.wy-content-pdf .annotationLayer section:has(div.annotationContent) canvas.annotationContent{display:none}.textLayer.selecting~.wy-content-pdf .annotationLayer section{pointer-events:none}.wy-content-pdf .annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.wy-content-pdf .annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton):not(.hasBorder)>a:hover{opacity:.2;background-color:#ff0;box-shadow:0 2px 10px #ff0}.wy-content-pdf .annotationLayer .linkAnnotation.hasBorder:hover{background-color:#ff03}.wy-content-pdf .annotationLayer .hasBorder{background-size:100% 100%}.wy-content-pdf .annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea),.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea):required,.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:required,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select option{padding:0}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.wy-content-pdf .annotationLayer .textWidgetAnnotation textarea{resize:none}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select[disabled],.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:hover,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:hover,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:\"\";display:block;position:absolute}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:25%;top:25%;width:50%}.wy-content-pdf .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.wy-content-pdf .annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.wy-content-pdf .annotationLayer .fileAttachmentAnnotation .popupTriggerArea{height:100%;width:100%}.wy-content-pdf .annotationLayer .popupAnnotation{position:absolute;font-size:calc(9px * var(--scale-factor));pointer-events:none;width:max-content;max-width:45%;height:auto}.wy-content-pdf .annotationLayer .popup{background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));outline:1.5px solid rgb(255,255,74);padding:calc(6px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.wy-content-pdf .annotationLayer .popupAnnotation.focused .popup{outline-width:3px}.wy-content-pdf .annotationLayer .popup *{font-size:calc(9px * var(--scale-factor))}.wy-content-pdf .annotationLayer .popup>.header{display:inline-block}.wy-content-pdf .annotationLayer .popup>.header h1{display:inline}.wy-content-pdf .annotationLayer .popup>.header .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor));width:fit-content}.wy-content-pdf .annotationLayer .popupContent{border-top:1px solid rgb(51,51,51);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.wy-content-pdf .annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.wy-content-pdf .annotationLayer .popupTriggerArea{cursor:pointer}.wy-content-pdf .annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.wy-content-pdf .annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.wy-content-pdf .annotationLayer .annotationTextContent span{width:100%;display:inline-block}.wy-content-pdf .annotationLayer svg.quadrilateralsContainer{contain:strict;width:0;height:0;position:absolute;top:0;left:0;z-index:-1}:host{--xfa-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");--xfa-focus-outline: auto}@media screen and (forced-colors: active){:host{--xfa-focus-outline: 2px solid CanvasText}.wy-content-pdf .xfaLayer *:required{outline:1.5px solid selectedItem}}.wy-content-pdf .xfaLayer{background-color:transparent}.wy-content-pdf .xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}.wy-content-pdf .xfaLayer .highlight.appended{position:initial}.wy-content-pdf .xfaLayer .highlight.begin{border-radius:4px 0 0 4px}.wy-content-pdf .xfaLayer .highlight.end{border-radius:0 4px 4px 0}.wy-content-pdf .xfaLayer .highlight.middle{border-radius:0}.wy-content-pdf .xfaLayer .highlight.selected{background-color:#cbdfcb}.wy-content-pdf .xfaPage{overflow:hidden;position:relative}.wy-content-pdf .xfaContentarea{position:absolute}.wy-content-pdf .xfaPrintOnly{display:none}.wy-content-pdf .xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}.wy-content-pdf .xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}.wy-content-pdf .xfaLayer *:required{outline:1.5px solid red}.wy-content-pdf .xfaLayer div,.wy-content-pdf .xfaLayer svg,.wy-content-pdf .xfaLayer svg *{pointer-events:none}.wy-content-pdf .xfaLayer a{color:#00f}.wy-content-pdf .xfaRich li{margin-left:3em}.wy-content-pdf .xfaFont{color:#000;font-weight:400;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}.wy-content-pdf .xfaCaption{overflow:hidden;flex:0 0 auto}.wy-content-pdf .xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}.wy-content-pdf .xfaLabel{height:100%;width:100%}.wy-content-pdf .xfaLeft{display:flex;flex-direction:row;align-items:center}.wy-content-pdf .xfaRight{display:flex;flex-direction:row-reverse;align-items:center}.wy-content-pdf :is(.xfaLeft,.xfaRight)>:is(.xfaCaption,.xfaCaptionForCheckButton){max-height:100%}.wy-content-pdf .xfaTop{display:flex;flex-direction:column;align-items:flex-start}.wy-content-pdf .xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}.wy-content-pdf :is(.xfaTop,.xfaBottom)>:is(.xfaCaption,.xfaCaptionForCheckButton){width:100%}.wy-content-pdf .xfaBorder{background-color:transparent;position:absolute;pointer-events:none}.wy-content-pdf .xfaWrapped{width:100%;height:100%}.wy-content-pdf :is(.xfaTextfield,.xfaSelect):focus{background-image:none;background-color:transparent;outline:var(--xfa-focus-outline);outline-offset:-1px}.wy-content-pdf :is(.xfaCheckbox,.xfaRadio):focus{outline:var(--xfa-focus-outline)}.wy-content-pdf .xfaTextfield,.wy-content-pdf .xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}.wy-content-pdf .xfaSelect{padding-inline:2px}.wy-content-pdf :is(.xfaTop,.xfaBottom)>:is(.xfaTextfield,.xfaSelect){flex:0 1 auto}.wy-content-pdf .xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}.wy-content-pdf .xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}.wy-content-pdf .xfaCheckbox,.wy-content-pdf .xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}.wy-content-pdf .xfaRich{white-space:pre-wrap;width:100%;height:100%}.wy-content-pdf .xfaImage{object-position:left top;object-fit:contain;width:100%;height:100%}.wy-content-pdf .xfaLrTb,.wy-content-pdf .xfaRlTb,.wy-content-pdf .xfaTb{display:flex;flex-direction:column;align-items:stretch}.wy-content-pdf .xfaLr{display:flex;flex-direction:row;align-items:stretch}.wy-content-pdf .xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}.wy-content-pdf .xfaTb>div{justify-content:left}.wy-content-pdf .xfaPosition,.wy-content-pdf .xfaArea{position:relative}.wy-content-pdf .xfaValignMiddle{display:flex;align-items:center}.wy-content-pdf .xfaTable{display:flex;flex-direction:column;align-items:stretch}.wy-content-pdf .xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}.wy-content-pdf .xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}.wy-content-pdf .xfaTable .xfaRlRow>div{flex:1}.wy-content-pdf :is(.xfaNonInteractive,.xfaDisabled,.xfaReadOnly) :is(input,textarea){background:initial}@media print{.wy-content-pdf .xfaTextfield,.wy-content-pdf .xfaSelect{background:transparent}.wy-content-pdf .xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:\"\"}}:host{--viewer-container-height: 0;--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--spreadHorizontalWrapped-margin-LR: -3.5px;--loading-icon-delay: .4s}@media screen and (forced-colors: active){:host{--pdfViewer-padding-bottom: 9px;--page-margin: 8px auto -1px;--page-border: 1px solid CanvasText;--spreadHorizontalWrapped-margin-LR: 3.5px}}.wy-content-pdf [data-main-rotation=\"90\"]{transform:rotate(90deg) translateY(-100%)}.wy-content-pdf [data-main-rotation=\"180\"]{transform:rotate(180deg) translate(-100%,-100%)}.wy-content-pdf [data-main-rotation=\"270\"]{transform:rotate(270deg) translate(-100%)}.wy-content-pdf #hiddenCopyElement,.wy-content-pdf .hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}.wy-content-pdf .pdfViewer{--scale-factor: 1;--page-bg-color: unset;padding-bottom:var(--pdfViewer-padding-bottom);--hcm-highlight-filter: none;--hcm-highlight-selected-filter: none}@media screen and (forced-colors: active){.wy-content-pdf .pdfViewer{--hcm-highlight-filter: invert(100%)}}.wy-content-pdf .pdfViewer.copyAll{cursor:wait}.wy-content-pdf .pdfViewer .canvasWrapper{overflow:hidden;width:100%;height:100%}.wy-content-pdf .pdfViewer .canvasWrapper canvas{position:absolute;top:0;left:0;margin:0;display:block;width:100%;height:100%;contain:content}.wy-content-pdf .pdfViewer .canvasWrapper canvas .structTree{contain:strict}.wy-content-pdf .pdfViewer .page{--scale-round-x: 1px;--scale-round-y: 1px;direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);background-clip:content-box;background-color:var(--page-bg-color, rgb(255, 255, 255))}.wy-content-pdf .pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}.wy-content-pdf .pdfViewer.noUserSelect{-webkit-user-select:none;user-select:none}.wy-content-pdf .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}.wy-content-pdf .pdfViewer.singlePageView{display:inline-block}.wy-content-pdf .pdfViewer.singlePageView .page{margin:0;border:none}.wy-content-pdf .pdfViewer:is(.scrollHorizontal,.scrollWrapped),.wy-content-pdf .spread{margin-inline:3.5px;text-align:center}.wy-content-pdf .pdfViewer.scrollHorizontal,.wy-content-pdf .spread{white-space:nowrap}.wy-content-pdf .pdfViewer.removePageBorders,.wy-content-pdf .pdfViewer:is(.scrollHorizontal,.scrollWrapped) .spread{margin-inline:0}.wy-content-pdf .spread :is(.page,.dummyPage),.wy-content-pdf .pdfViewer:is(.scrollHorizontal,.scrollWrapped) :is(.page,.spread){display:inline-block;vertical-align:middle}.wy-content-pdf .spread .page,.wy-content-pdf .pdfViewer:is(.scrollHorizontal,.scrollWrapped) .page{margin-inline:var(--spreadHorizontalWrapped-margin-LR)}.wy-content-pdf .pdfViewer.removePageBorders .spread .page,.wy-content-pdf .pdfViewer.removePageBorders:is(.scrollHorizontal,.scrollWrapped) .page{margin-inline:5px}.wy-content-pdf .pdfViewer .page.loadingIcon:after{position:absolute;top:0;left:0;content:\"\";width:100%;height:100%;display:none;transition-property:display;transition-delay:var(--loading-icon-delay);z-index:5;contain:strict}.wy-content-pdf .pdfViewer .page.loading:after{display:block}.wy-content-pdf .pdfViewer .page:not(.loading):after{transition-property:none;display:none}.wy-content-pdf .pdfPresentationMode .pdfViewer{padding-bottom:0}.wy-content-pdf .pdfPresentationMode .spread{margin:0}.wy-content-pdf .pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}.wy-content-pdf .pdfViewer .page{box-shadow:var(--wy-shadow-level2, 0 calc(.25 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .14), 0 calc(.0625 * var(--wy-size, 1rem)) calc(.625 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .12), 0 calc(.125 * var(--wy-size, 1rem)) calc(.25 * var(--wy-size, 1rem)) calc(-.0625 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2));background-color:var(--wy-white, var(--wy-white, #ffffff))}.wy-content-pdf .pdfViewer .page.loadingIcon:after{background:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cstyle type='text/css'%3Eg%7Banimation:rotate 2s linear infinite;transform-origin:center center%7Dcircle%7Bstroke-dasharray:1,100;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite,color 6s ease-in-out infinite%7D@keyframes rotate%7B100%25%7Btransform:rotate(360deg)%7D%7D@keyframes dash%7B0%25%7Bstroke-dasharray:1,100;stroke-dashoffset:0%7D50%25%7Bstroke-dasharray:44.5,100;stroke-dashoffset:-17.5px%7D100%25%7Bstroke-dasharray:44.5,100;stroke-dashoffset:-62px%7D%7D@keyframes color%7B0%25,100%25%7Bstroke:%23216eb4%7D40%25%7Bstroke:%2328b7cf%7D66%25%7Bstroke:%23216eb4%7D80%25,90%25%7Bstroke:%2328b7cf%7D%7D%3C/style%3E%3Cg%3E%3Ccircle fill='none' cx='12' cy='12' r='11' stroke-linecap='butt' stroke-width='2' /%3E%3C/g%3E%3C/svg%3E\") center no-repeat}.wy-pdf-page-number{width:calc(3 * var(--wy-size, 1rem))}.wy-pdf-zoom-level{width:calc(5 * var(--wy-size, 1rem))}.wy-content-text{word-break:break-word;white-space:pre-wrap}.wy-sheet{--wy-scrollbar-adjust-top: 0;--wy-scrollbar-adjust-bottom: 0;--wy-component-background-color: var(--wy-surface-3, var(--wy-surface-3-light, #e3e7ee));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);position:fixed;z-index:1055;display:flex;flex-direction:column;overflow:hidden;bottom:calc(.5 * var(--wy-size, 1rem));left:calc(.5 * var(--wy-size, 1rem));right:calc(.5 * var(--wy-size, 1rem));max-height:max(50vh,50%);min-height:calc(3 * var(--wy-size, 1rem));margin:calc(.5 * var(--wy-size, 1rem)) auto;max-width:calc(32 * var(--wy-size, 1rem));transition:opacity var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));box-shadow:var(--wy-shadow-level1, 0 calc(.125 * var(--wy-size, 1rem)) calc(.125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .14), 0 calc(.1875 * var(--wy-size, 1rem)) calc(.0625 * var(--wy-size, 1rem)) calc(-.125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2), 0 calc(.0625 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .12))}.wy-sheet>.wy-appbars,.wy-sheet>.wy-appbar{border-top-left-radius:inherit;border-top-right-radius:inherit}.wy-sheet-body{overflow:hidden;padding:calc(.5 * var(--wy-size, 1rem));position:relative;min-height:calc(3 * var(--wy-size, 1rem))}.wy-sheet-body.wy-scroll-y{overflow-y:auto}.wy-sheet-no-padding{padding:0}.wy-sheet:not(.wy-show){opacity:0;transform:translateY(calc(32 * var(--wy-size, 1rem)))}.wy-sheet.wy-show{opacity:1;transform:none;transition:transform var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))),opacity var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));pointer-events:auto}@starting-style{.wy-sheet.wy-show{opacity:0;transform:translateY(calc(32 * var(--wy-size, 1rem)))}}.wy-toasts{background:none;border:none;padding:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));margin:0;width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;align-items:flex-end;justify-content:flex-end;pointer-events:none}.wy-toasts[popover]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1070}.wy-toasts>::slotted(*){pointer-events:auto}.wy-toast{--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));--wy-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background:var(--wy-component-background-color);color:var(--wy-component-color);gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));margin-top:0;margin-bottom:var(--wy-gap-lg, calc(1.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));display:flex;cursor:pointer;border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));padding:0;-webkit-user-select:none;user-select:none;box-shadow:var(--wy-shadow-level2, 0 calc(.25 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .14), 0 calc(.0625 * var(--wy-size, 1rem)) calc(.625 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .12), 0 calc(.125 * var(--wy-size, 1rem)) calc(.25 * var(--wy-size, 1rem)) calc(-.0625 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2));position:relative;overflow:hidden;min-height:calc(4.5 * var(--wy-size, 1rem));max-width:calc(32 * var(--wy-size, 1rem))}.wy-toast.wy-fade{transition-property:opacity,min-height,padding-top,padding-bottom,margin-top,margin-bottom,height;transition-duration:var(--wy-transition-duration, .2s);transition-timing-function:var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))}.wy-toast.wy-fade:not(.wy-show){opacity:0;min-height:0;height:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;pointer-events:none}.wy-toast-action{position:sticky;top:calc(4.5 * var(--wy-size, 1rem));bottom:calc(4.5 * var(--wy-size, 1rem));z-index:990;background-color:var(--wy-primary, var(--wy-primary-40, #006399));color:var(--wy-on-primary, var(--wy-white, #ffffff));padding:calc(.5 * var(--wy-size, 1rem)) calc(1 * var(--wy-size, 1rem));margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:calc(.5 * var(--wy-size, 1rem));border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));width:max-content;min-height:0;max-width:calc(100% - 3 * var(--wy-size, 1rem));height:auto;align-self:center;text-align:center;box-shadow:none}.wy-toast-primary{background:var(--wy-on-primary-container, var(--wy-primary-10, #001d32));color:var(--wy-primary-container, var(--wy-primary-90, #cde5ff))}.wy-placeholder{cursor:wait;color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));background:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));opacity:.5;animation:wy-placeholder-glow 2s ease-in-out infinite}@keyframes wy-placeholder-glow{50%{opacity:.2}}.wy-meeting .wy-item-title{font-weight:700}.wy-meeting .wy-item-text{font-size:var(--wy-font-size, var(--wy-size, 1em))}.wy-meeting.wy-disabled .wy-item-title{font-weight:400}.wy-dragging:after{content:attr(data-drag-title);background-color:#ffffff80;display:flex;justify-content:center;align-items:center;border:calc(.125 * var(--wy-size, 1rem)) dashed var(--wy-primary, var(--wy-primary-40, #006399));font-weight:var(--wy-font-weight-bold, 600);z-index:10000;position:absolute;top:0;left:0;bottom:0;right:0}.wy-message-editor-top{background-color:var(--wy-component-background-color);color:var(--wy-component-color)}@supports (position: sticky){.wy-message-editor-top{position:sticky;top:0;z-index:1020}}.wy-message-editor-bottom{background-color:var(--wy-component-background-color);color:var(--wy-component-color)}@supports (position: sticky){.wy-message-editor-bottom{position:sticky;bottom:0;z-index:1020}}.wy-message-form .wy-spinner{display:none}.wy-message-form.wy-uploading .wy-spinner{display:block}.wy-message-form.wy-uploading [data-icon=plus]{display:none}.wy-message-form .wy-picker-list:not(:empty){border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-message-editor-inputs{display:flex;flex-direction:row;align-items:flex-end;padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));min-height:calc(var(--wy-input-font-size, var(--wy-font-size, 1em)) * 1.5 * var(--wy-size, 1rem) + var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * 2 + var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) * 2)}.wy-message-editor-buttons{flex:1 0 auto}.wy-message-editor-text{flex:1 1 100%;display:flex;flex-direction:column;margin-inline:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-message-editor-mention,.wy-message-editor-link{background:#00f;color:#fff}.wy-message-editor .cm-editor,.wy-message-editor-grow:after,.wy-message-editor-grow>textarea,.wy-message-editor-textfield{flex:1 1 100%;max-height:11.25em;background-color:var(--wy-background, var(--wy-neutral-99, #fcfcff));color:var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));border-radius:var(--wy-input-filled-border-radius, var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem)))));border:var(--wy-input-border-width, var(--wy-border, 1px)) solid var(--wy-background, var(--wy-neutral-99, #fcfcff))}.wy-message-editor .cm-editor:focus,.wy-message-editor-grow:focus:after,.wy-message-editor-grow>textarea:focus,.wy-message-editor-textfield:focus{border-color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-message-editor .cm-editor .cm-content,.wy-message-editor-textcontent{font-family:var(--wy-input-font-family, var(--wy-font-family, inherit)), inherit;font-size:var(--wy-input-font-size, var(--wy-font-size, 1em));padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));min-height:calc(var(--wy-input-font-size, var(--wy-font-size, 1em)) * 1.5 * var(--wy-size, 1rem) + var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * 2 - var(--wy-input-border-width, var(--wy-border, 1px)));line-height:calc(1.5 * var(--wy-size, 1rem))}.wy-message-editor-grow{display:grid}.wy-message-editor-grow:after,.wy-message-editor-grow>textarea{grid-area:1/1/2/2}.wy-message-editor-grow:after{content:attr(data-replicated-value) \" \";white-space:pre-wrap;visibility:hidden}.wy-message-editor-grow>textarea{resize:none;overflow:hidden}.wy-editor .cm-scroller{font-family:unset;line-height:1.5}.wy-editor .cm-widgetBuffer{vertical-align:unset}.wy-editor .cm-placeholder{pointer-events:none;color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e))}.wy-editor .cm-content{caret-color:var(--wy-on-background, var(--wy-neutral-10, #1a1c1e))}.wy-editor .cm-content .wy-link{text-decoration:var(--wy-link-decoration, none);color:var(--wy-link, var(--wy-primary-40, #006399))}.wy-editor .cm-editor{box-sizing:border-box;flex-direction:column;position:relative!important;display:flex!important}.wy-editor .cm-editor.cm-focused{--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));color:var(--wy-component-color);border-color:var(--wy-primary, var(--wy-primary-40, #006399));outline:0}.wy-editor .cm-editor .cm-scroller{overflow:auto}.wy-editor .cm-editor .cm-line{display:block;padding:0px var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) 0px var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-editor .cm-tooltip.cm-tooltip-autocomplete>ul{font-family:unset;max-height:calc(15 * var(--wy-size, 1rem))}.wy-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li{padding:0}.wy-editor .cm-tooltip{border:none;background-clip:padding-box;background-color:var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));color:var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));box-shadow:var(--wy-shadow-level1, 0 calc(.125 * var(--wy-size, 1rem)) calc(.125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .14), 0 calc(.1875 * var(--wy-size, 1rem)) calc(.0625 * var(--wy-size, 1rem)) calc(-.125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2), 0 calc(.0625 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .12));overflow:hidden;z-index:1000}.wy-editor .cm-tooltip-autocomplete ul li[aria-selected]{background:var(--wy-primary-container, var(--wy-primary-90, #cde5ff));color:unset}.wy-editor .cm-tooltip-autocomplete .cm-completionLabel{display:none}.wy-editor .cm-tooltip-autocomplete .wy-item-hover:hover,.wy-editor .cm-tooltip-autocomplete .wy-item-hover:focus{background:var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb))}.wy-message-editor .cm-editor.cm-focused{border-color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-message-editor .wy-is-invalid+[data-editor-target] .cm-editor,.wy-message-editor .wy-is-invalid .cm-editor{border-color:var(--wy-error, var(--wy-error-40, #ba1824))!important}.wy-chat-conversation{overflow-anchor:none;display:flex;flex-direction:column;flex:1 0 min-content;height:100%;width:100%;min-height:0;min-width:0}.wy-truncated-text-and-icon{display:flex;align-items:center;gap:.25rem}.wy-truncated-text-and-icon>:first-child{line-height:var(--wy-line-height, 1.5);flex:0 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wy-truncated-text-and-icon>:last-child:not(:first-child){flex:0 0 auto;white-space:nowrap}[part~=wy-filename]{font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)));height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);display:flex;flex-direction:column;justify-content:center}[part~=wy-filename] .wy-truncated-text-and-icon{justify-content:space-between}.wy-files{position:relative;display:flex;flex-direction:column;flex:1;min-height:0;container-type:inline-size}@supports (position: sticky){wy-files-appbar{position:sticky;top:0;z-index:1020}}.wy-table-files thead{text-align:left;display:none}@container (inline-size >= 576px){.wy-table-files thead{display:table-header-group}}.wy-table-files tr[part~=wy-highlight]{animation:wy-highlight 3s 1.5s ease-in-out both}.wy-table-files tr>:nth-child(2){width:100%}.wy-table-files tr>:nth-child(2) td{padding:0 var(--wy-table-cell-padding-x, var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))))}.wy-table-files tr>:nth-child(4){width:calc(7 * var(--wy-size, 1rem));display:none}@container (inline-size >= 768px){.wy-table-files tr>:nth-child(4){display:table-cell}}.wy-table-files tr>:nth-child(4){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-table-files tr>:nth-child(5){width:calc(7.5 * var(--wy-size, 1rem));text-align:right;display:none}@container (inline-size >= 768px){.wy-table-files tr>:nth-child(5){display:table-cell}}.wy-table-files tr>:nth-child(5){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-table-files tr>:nth-child(6){width:calc(7 * var(--wy-size, 1rem));text-align:right;display:none}@container (inline-size >= 576px){.wy-table-files tr>:nth-child(6){display:table-cell}}.wy-table-files tr>:nth-child(6){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-sidebar{--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background:var(--wy-component-background-color);color:var(--wy-component-color);min-width:0;min-height:0;flex-grow:0;flex-shrink:0;flex-basis:calc(18 * var(--wy-size, 1rem));z-index:10;display:flex;flex-direction:column;transition:flex-basis var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));position:relative;order:9999;overflow:clip}.wy-sidebar>*{transition:opacity var(--wy-transition-fast, var(--wy-transition-duration-fast, .1s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))) calc(var(--wy-transition-duration, .2s) - var(--wy-transition-duration-fast, .1s));min-width:calc(18 * var(--wy-size, 1rem))}.wy-sidebar[hidden]{display:flex!important;flex-basis:0}.wy-sidebar[hidden]>*{transition:opacity var(--wy-transition-fast, var(--wy-transition-duration-fast, .1s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));opacity:0}@media (min-width: 768px){.wy-sidebar>*{min-width:calc(18 * var(--wy-size, 1rem))}.wy-sidebar .wy-sidebar-handle{display:none}}@media (max-width: 767.98px){.wy-sidebar{transition:flex-basis var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))),margin-top var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));border-top-left-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));border-top-right-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));flex-basis:50vh}.wy-sidebar:not([hidden]){margin-top:calc(-1 * var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))))}.wy-sidebar:not([hidden]).wy-maximized{flex-basis:calc(100% - var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem))))) * .5);margin-top:calc(-50% + var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem))))) * 2.5 - var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))))}.wy-sidebar:not([hidden]).wy-maximized~* .wy-nav-prev,.wy-sidebar:not([hidden]).wy-maximized~* .wy-nav-next{display:none}.wy-sidebar>*{min-height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))))}}.wy-sidebar-handle{width:calc(4 * var(--wy-size, 1rem));background-clip:content-box;background-color:var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));height:calc(1 * var(--wy-size, 1rem));border:calc(.375 * var(--wy-size, 1rem)) solid transparent;position:absolute;top:0;z-index:2;left:50%;margin-left:calc(-2 * var(--wy-size, 1rem));border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));cursor:pointer}.wy-table{table-layout:fixed;width:100%;vertical-align:top;border-collapse:collapse}.wy-table th,.wy-table td{background-color:var(--wy-component-background-color);padding:var(--wy-table-cell-padding-y, var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) var(--wy-table-cell-padding-x, var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))));box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 -1px 0 0 inset;line-height:1;vertical-align:middle;height:calc(2.5 * var(--wy-size, 1rem))}.wy-table th:first-child,.wy-table td:first-child{padding-left:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))}.wy-table th:last-child,.wy-table td:last-child{padding-right:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))}.wy-table>tbody{vertical-align:inherit}.wy-table>thead{vertical-align:bottom}.wy-table .wy-table-cell-icon{vertical-align:middle;text-align:center;padding:calc(var(--wy-table-cell-padding-y, var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .5) var(--wy-table-cell-padding-x, var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))));width:calc(calc(2.5 * var(--wy-size, 1rem)) + var(--wy-table-cell-padding-x, var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))) * 2);font-size:var(--wy-font-size, var(--wy-size, 1em));font-weight:var(--wy-font-weight, unset);text-transform:none;letter-spacing:normal}.wy-table .wy-table-cell-text{width:100%}.wy-table .wy-table-cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-table-hover>tbody>tr:hover>*{--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));color:var(--wy-component-color);cursor:pointer}.wy-table-row-trashed th,.wy-table-row-trashed td{text-decoration:line-through}.wy-table-row-trashed th:not(:last-child)>*,.wy-table-row-trashed td:not(:last-child)>*{opacity:var(--wy-opacity-disabled, 38%)}.wy-table-row-trashed th>a,.wy-table-row-trashed td>a{color:var(--wy-component-color)}.wy-table-row-trashed:hover th,.wy-table-row-trashed:hover td{opacity:1}.wy-table-no-result{text-align:center;padding:calc(1 * var(--wy-size, 1rem))}.wy-table-sort-link{display:inline-flex;align-items:center;color:var(--wy-link, var(--wy-primary-40, #006399));cursor:pointer}[part~=wy-image]{padding:0;width:50%;position:relative;flex:auto;background-color:inherit;background-clip:content-box}[part~=wy-image-full-width]{flex-basis:100%!important}[part~=wy-image-grid]{display:flex;flex-wrap:wrap;justify-content:space-evenly;position:relative;overflow:hidden;column-gap:1px;row-gap:1px}[part~=wy-image-area]{display:block;height:100%;cursor:pointer}[part~=wy-image-content]{position:absolute;height:100%;width:100%;object-fit:contain}[part~=wy-image-content][part~=wy-loading]{transition:opacity .15s ease-out;opacity:0}[part~=wy-image-content][part~=wy-loading][part~=wy-loaded]{opacity:1;transition:opacity .15s ease-out}[part~=wy-image-content][part~=wy-loading][part~=wy-loaded]~[part~=wy-image-preview]{transition-delay:.15s;opacity:0}[part~=wy-image-grid-more]{position:absolute;line-height:100%;color:var(--wy-white, #ffffff);top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center;font-size:calc(1.5 * var(--wy-size, 1rem));background:rgba(0,0,0,var(--wy-opacity-disabled, 38%))}.wy-posts{display:flex;flex-direction:column;gap:calc(1 * var(--wy-size, 1rem))}.wy-post{--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);display:flex;flex-direction:column;position:relative;--wy-component-border-radius: var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));border-radius:var(--wy-component-border-radius)}.wy-post[part~=wy-highlight]{animation:wy-highlight 3s 1.5s ease-in-out both}.wy-post wy-comment-list{border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-post-area{border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-post-area-full-width{border-radius:0}.wy-post-body{display:flex;flex-direction:column;padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));gap:var(--wy-gap-lg, calc(1.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-post-body:empty{display:none}.wy-post-footer{display:flex;align-items:center;justify-content:space-between;padding:0 calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) * .75) calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) * .75)}.wy-post-footer .wy-meta{margin-right:calc(.5 * var(--wy-size, 1rem))}.wy-post-comments:not(:empty){padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))}.wy-post-dragging:after{content:attr(data-drag-title,\"Drop files here to upload.\");background-color:#ffffff80;display:flex;justify-content:center;align-items:center;border:calc(.125 * var(--wy-size, 1rem)) dashed var(--wy-primary, var(--wy-primary-40, #006399));font-weight:var(--wy-font-weight-bold, 600);z-index:10000;position:absolute;top:0;left:0;bottom:0;right:0}.wy-poll{flex:1 1 100%;min-width:0;display:flex;flex-direction:column;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-poll-form{background:var(--wy-component-background-color);color:var(--wy-component-color);display:flex;flex-direction:column;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-poll-form:empty{display:none}.wy-poll-option{overflow:hidden;position:relative;background-color:var(--wy-background, var(--wy-neutral-99, #fcfcff));border:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));min-height:calc(2.5 * var(--wy-size, 1rem));cursor:pointer}.wy-poll-option .wy-progress{position:absolute;top:0;left:0;bottom:0;background-color:var(--wy-surface-5, var(--wy-surface-5-light, #dce2ea))}.wy-poll-option>:not(.wy-progress){z-index:1}.wy-embed{display:flex;flex-direction:column;word-wrap:break-word;border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));clip-path:border-box;overflow:hidden}.wy-embed-photo a{display:flex}.wy-embed-photo img{width:100%;height:auto}.wy-embed-photo-sm a{padding:0 calc(1 * var(--wy-size, 1rem))}.wy-embed-photo-sm img{display:block;margin:0 auto;width:auto;max-width:100%;border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-embed-video{position:relative;display:block;width:100%;padding:0;overflow:hidden}.wy-embed-video:before{display:block;content:\"\";padding-top:56.25%}.wy-embed-video iframe,.wy-embed-video embed,.wy-embed-video object,.wy-embed-video video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.wy-embed-caption{--wy-component-background-color: var(--wy-surface-3, var(--wy-surface-3-light, #e3e7ee));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);padding:calc(.5 * var(--wy-size, 1rem)) calc(1 * var(--wy-size, 1rem)) calc(1 * var(--wy-size, 1rem));position:relative}.wy-embed-link{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));text-transform:uppercase;font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-embed-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:\"\"}.wy-embed-title{font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600));margin-bottom:calc(.5 * var(--wy-size, 1rem))}.wy-embed-description{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e))}.wy-embed-preview a[target=_blank]{pointer-events:none}.wy-embed-preview .wy-embed{border:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));display:none}.wy-embed-preview .wy-embed:first-child{display:block}.wy-embed-preview .wy-embed-caption{border-bottom-left-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));border-bottom-right-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)))}.wy-embed-preview .wy-embed-actions{display:flex}.wy-embed-actions{display:none;justify-content:space-between;padding:calc(.5 * var(--wy-size, 1rem)) calc(.25 * var(--wy-size, 1rem))}.wy-embed-cycle{visibility:hidden}.wy-embed-show-cycle .wy-embed-cycle{visibility:visible}.wy-post-editor{padding:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));display:flex;flex-direction:column;gap:var(--wy-gap-lg, calc(1.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-post-editor.wy-uploading .wy-icon-active-stack>:first-child{opacity:0}.wy-post-editor.wy-uploading .wy-icon-active-stack>:last-child{opacity:1}.wy-post-editor .wy-picker-list:not(:empty){margin-top:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-post-editor-inputs{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-post-editor-buttons{display:flex;flex-direction:row;align-items:flex-end;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));flex:1 0 auto}.wy-post-editor-text{flex:1 1 100%;display:flex;flex-direction:column}.wy-post-editor-mention,.wy-post-editor-link{background:#00f;color:#fff}.wy-post-editor .cm-editor,.wy-post-editor-grow:after,.wy-post-editor-grow>textarea,.wy-post-editor-textfield{flex:1 1 100%;max-height:11.25em;min-height:4em;background-color:var(--wy-background, var(--wy-neutral-99, #fcfcff));color:var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));border:var(--wy-input-border-width, var(--wy-border, 1px)) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));caret-color:var(--wy-primary, var(--wy-primary-40, #006399))}.wy-post-editor .cm-editor:focus,.wy-post-editor-grow:focus:after,.wy-post-editor-grow>textarea:focus,.wy-post-editor-textfield:focus{border-color:var(--wy-primary, var(--wy-primary-40, #006399))}.wy-post-editor .cm-editor .cm-content,.wy-post-editor-textcontent{font-family:var(--wy-input-font-family, var(--wy-font-family, inherit)),inherit;font-size:var(--wy-input-font-size, var(--wy-font-size, 1em));padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))))}.wy-post-editor-grow{display:grid}.wy-post-editor-grow:after,.wy-post-editor-grow>textarea{grid-area:1/1/2/2}.wy-post-editor-grow:after{content:attr(data-replicated-value) \" \";white-space:pre-wrap;visibility:hidden}.wy-post-editor-grow>textarea{resize:none;overflow:hidden}.wy-post-editor .cm-editor .cm-line{padding:0}.wy-post-editor .wy-is-invalid+[data-editor-target] .cm-editor,.wy-post-editor .wy-is-invalid .cm-editor{border-color:var(--wy-error, var(--wy-error-40, #ba1824))!important}.wy-comments{display:flex;flex-direction:column;gap:var(--wy-gap-xl, calc(2 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));margin-bottom:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}.wy-comments-padded{margin:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}.wy-comment{--wy-component-background-color: var(--wy-surface-3, var(--wy-surface-3-light, #e3e7ee));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));--wy-component-border-radius: var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));border-radius:var(--wy-component-border-radius);background-color:var(--wy-component-background-color);color:var(--wy-component-color);display:flex;flex-direction:column;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));position:relative}.wy-comment[part~=wy-highlight]{animation:wy-highlight 3s 1.5s ease-in-out both}.wy-comment-body{flex:1 0 auto;z-index:1}.wy-comment-content{padding:0 var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));display:flex;flex-direction:column;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}.wy-comment-area{border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-comment-editor .wy-spinner{display:none}.wy-comment-editor.wy-uploading .wy-spinner{display:block}.wy-comment-editor.wy-uploading [data-icon=plus]{display:none}.wy-comment-editor .wy-picker-list:not(:empty){border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-comment-editor.wy-comment-editor-bottom{position:sticky;bottom:0;z-index:999;background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-comment-editor-inputs{display:flex;flex-direction:row;align-items:flex-end;padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));min-height:calc(3.5 * var(--wy-size, 1rem));gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-comment-editor-buttons{flex:1 0 auto}.wy-comment-editor-text{flex:1 1 100%;display:flex;flex-direction:column}.wy-comment-editor-mention,.wy-comment-editor-link{background:#00f;color:#fff}.wy-comment-editor .cm-editor,.wy-comment-editor-grow:after,.wy-comment-editor-grow>textarea,.wy-comment-editor-textfield{flex:1 1 100%;max-height:calc(11.25 * var(--wy-size, 1rem));background-color:var(--wy-background, var(--wy-neutral-99, #fcfcff));color:var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));border-radius:calc(1.25 * var(--wy-size, 1rem));border:var(--wy-input-border-width, var(--wy-border, 1px)) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-comment-editor .cm-editor:focus,.wy-comment-editor-grow:focus:after,.wy-comment-editor-grow>textarea:focus,.wy-comment-editor-textfield:focus{border-color:var(--wy-primary, var(--wy-primary-40, #006399))}.wy-comment-editor .cm-editor .cm-content,.wy-comment-editor-textcontent{font-family:var(--wy-input-font-family, var(--wy-font-family, inherit)),inherit;font-size:var(--wy-input-font-size, var(--wy-font-size, 1em));padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))))}.wy-comment-editor-grow{display:grid}.wy-comment-editor-grow:after,.wy-comment-editor-grow>textarea{grid-area:1/1/2/2}.wy-comment-editor-grow:after{content:attr(data-replicated-value) \" \";white-space:pre-wrap;visibility:hidden}.wy-comment-editor-grow>textarea{resize:none;overflow:hidden}.wy-comment-editor{position:relative}.wy-comment-editor .wy-is-invalid+.cm-editor,.wy-comment-editor .wy-is-invalid .cm-editor{border-color:var(--wy-error, var(--wy-error-40, #ba1824))!important}.wy-badge{display:inline-block;padding:.35em .65em;font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));font-weight:var(--wy-font-weight-bold, 600);line-height:1;color:var(--wy-on-primary, var(--wy-white, #ffffff));text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));background-color:var(--wy-primary, var(--wy-primary-40, #006399))}.wy-badge:empty{display:none}.wy-badge-reveal{opacity:1;transition:opacity var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))) calc(var(--wy-transition-duration, .2s) + var(--wy-transition-reveal-delay, 1s))}@starting-style{.wy-badge-reveal{opacity:0}}.wy-button-badge{position:absolute;right:0;top:0;margin:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .5);padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));min-width:calc(var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em))) + var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));max-width:calc(var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em))) * 3 + var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) * 2);height:calc(var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em))) + var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));line-height:calc(var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em))) - var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));display:block;text-align:center}.wy-button-badge{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-button-badge:empty{display:none}.wy-button-dot{position:absolute;right:0;top:0;content-visibility:hidden;padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));margin:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));line-height:0;min-width:0;height:0}.wy-button-dot:empty{display:none}[part~=wy-tabs]{display:flex;overflow-y:hidden;padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));flex:1 1 auto}[part~=wy-tabs]{overflow-x:auto;max-width:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}[part~=wy-tabs]{scrollbar-width:thin;scrollbar-color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) transparent}[part~=wy-tabs]::-webkit-scrollbar{height:.375rem;width:.375rem;background:transparent;z-index:999}[part~=wy-tabs]::-webkit-scrollbar-track{background:transparent}[part~=wy-tabs]::-webkit-scrollbar-thumb{background-color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));opacity:75%;border:0 solid transparent;border-radius:0;background-clip:padding-box}[part~=wy-tabs]::-webkit-scrollbar-thumb:hover{background-color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));opacity:75%}[part~=wy-tabs]::-webkit-scrollbar-thumb:window-inactive{background-color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));opacity:50%}[part~=wy-tab]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399));--wy-component-background-color: transparent;color:var(--wy-component-color);background:var(--wy-component-background-color);border:none;border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));position:relative;text-align:center;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none}[part~=wy-tab] .wy-tab-icon{position:relative;padding:calc(.25 * var(--wy-size, 1rem)) calc(1 * var(--wy-size, 1rem));border-radius:var(--wy-button-border-radius, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));display:inline-flex}[part~=wy-tab] .wy-tab-icon:before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;background:var(--wy-component-color);opacity:0%}[part~=wy-tab]:hover .wy-tab-icon:before{opacity:8%}[part~=wy-tab]:focus .wy-tab-icon:before,[part~=wy-tab]:active .wy-tab-icon:before,[part~=wy-tab].wy-active .wy-tab-icon:before{opacity:12%}[part~=wy-tab] .wy-tab-label{font-family:var(--wy-button-font-family, var(--wy-font-family, unset)),inherit;line-height:var(--wy-button-line-height, var(--wy-line-height, 1.5));font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));font-weight:var(--wy-font-weight, unset)}[part~=wy-button-state-layer][part~=wy-button-sm][part~=wy-tab-sm]{padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) calc(var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .5);margin:var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) auto;font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)));height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6)}[part~=wy-button-state-layer][part~=wy-button-sm][part~=wy-tab-sm]:before{margin:calc(var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * -.25) calc(var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * 0)}.wy-conversations{position:relative}.wy-conversation{display:flex;position:relative}.wy-conversation .wy-item-title{font-weight:var(--wy-item-title-font-weight, var(--wy-font-weight, unset));font-size:var(--wy-item-title-font-size, var(--wy-font-size, 1em))}.wy-conversation.wy-unread .wy-item-title{font-weight:var(--wy-font-weight-bold, 600)}.wy-conversation.wy-unread .wy-item-text,.wy-conversation.wy-unread .wy-meta{color:var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));font-weight:var(--wy-font-weight-bold, 600)}.wy-conversation .wy-item-text .wy-typing-show{font-weight:var(--wy-font-weight, unset)}.wy-conversation .wy-item-text .wy-typing-show{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}`,Wt=At`:host{display:contents}`;var hB=Object.defineProperty,dB=Object.getOwnPropertyDescriptor,Ie=u((n,t,e,i)=>{for(var s=i>1?void 0:i?dB(t,e):t,r=n.length-1,a;r>=0;r--)(a=n[r])&&(s=(i?a(t,e,s):a(s))||s);return i&&s&&hB(t,e,s),s},"__decorateClass$19");function rk(n){return n!=null&&n!==!1}h(rk,"wy");u(rk,"acceptedValue");const P_="wy-context";var vb,Wu;let ue=(vb=(Wu=class extends yt{constructor(){super(),this.provider=!1,this.cloudFilePickerUrl=Oe.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=Oe.defaults.disableEnvironmentImports,this.locale=Oe.defaults.locale,this.locales=Oe.defaults.locales,this.gcTime=Oe.defaults.gcTime,this.notificationEvents=Oe.defaults.notificationEvents,this.scrollBehavior=Oe.defaults.scrollBehavior,this.staleTime=Oe.defaults.staleTime,this.tokenFactory=Oe.defaults.tokenFactory,this.tokenFactoryRetryDelay=Oe.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=Oe.defaults.tokenFactoryTimeout,this.tokenUrl=Oe.defaults.tokenUrl,this.url=Oe.defaults.url,this.notifications=Oe.defaults.notifications,this.notificationsBadge=Oe.defaults.notificationsBadge,this.reactions=Oe.defaults.reactions,this.childElementCount&&(this.provider=!0),this.weavy??(this.weavy=new Oe({host:this.provider?this:void 0}))}get version(){return Oe.version}get sourceName(){return Oe.sourceName}willUpdate(t){if(super.willUpdate(t),this.weavy){const e={};Array.from(t.keys()).forEach(i=>{i!=="weavy"&&(rk(this[i])||rk(t.get(i)))&&Object.assign(e,{[i]:this[i]})}),Object.assign(this.weavy,e)}}render(){return v` <slot></slot> `}},h(Wu,"Jn"),Wu),u(vb,"WyContext"),vb);ue.styles=[ft,Xi,Wt];Ie([$({attribute:!0,type:Boolean})],ue.prototype,"provider",2);Ie([$({attribute:!0,converter:{fromAttribute:u(n=>cg(n),"fromAttribute")}})],ue.prototype,"cloudFilePickerUrl",2);Ie([$({attribute:!0,converter:{fromAttribute:u(n=>cg(n),"fromAttribute")}}),$({type:Boolean})],ue.prototype,"disableEnvironmentImports",2);Ie([$({attribute:!0})],ue.prototype,"locale",2);Ie([$({attribute:!0,type:Array})],ue.prototype,"locales",2);Ie([$({attribute:!0,type:Number})],ue.prototype,"gcTime",2);Ie([$({type:Boolean})],ue.prototype,"notificationEvents",2);Ie([$({attribute:!0})],ue.prototype,"scrollBehavior",2);Ie([$({attribute:!0,type:Number})],ue.prototype,"staleTime",2);Ie([$({attribute:!0,converter:{fromAttribute:u(n=>S_(n),"fromAttribute")}})],ue.prototype,"tokenFactory",2);Ie([$({attribute:!0,type:Number})],ue.prototype,"tokenFactoryRetryDelay",2);Ie([$({attribute:!0,type:Number})],ue.prototype,"tokenFactoryTimeout",2);Ie([$({attribute:!0,converter:{fromAttribute:u(n=>cg(n),"fromAttribute")}})],ue.prototype,"tokenUrl",2);Ie([$({attribute:!0,converter:{fromAttribute:u(n=>cg(n),"fromAttribute")}})],ue.prototype,"url",2);Ie([$({attribute:!0})],ue.prototype,"notifications",2);Ie([$({attribute:!0})],ue.prototype,"notificationsBadge",2);Ie([$({attribute:!0})],ue.prototype,"reactions",2);Ie([F()],ue.prototype,"weavy",2);ue=Ie([Y(P_)],ue);var Bm,I1,Du;const C_=(Du=class{constructor(t,e){q(this,Bm),q(this,I1),z(this,Bm,!0),this.styles=[],t.addController(this),this.host=t,e&&(this.styles=e)}get themeColor(){return k(this,I1)}set themeColor(t){z(this,I1,t),this.checkThemeUpdate()}checkThemeUpdate(){const t=this.themeColor||Vv(this.host)||Wv();if(t&&t!==this._resolvedThemeColor){this._resolvedThemeColor=t,console.info("Configuring theme",this._resolvedThemeColor);const e=DE(this._resolvedThemeColor).join(""),i=At`
|
|
32
|
+
`,at`${0} svarade på ett inlägg`,at`${0} lade till ${1} till ${2}`,at`${0} redigerade ${1}`,at`${0} gillade ditt meddelande`,at`${0}, ${1} och ${2} röstade i din omröstning`,at`${0} reagerade med ${1} på ${2}`,at`${0} reagerade med ${1} på ditt meddelande`,at`${0} gillade din kommentar`,at`${0} skriver${1}`;var yj=Object.defineProperty,kR=h(n=>{throw TypeError(n)},"Xp"),u=h((n,t)=>yj(n,"name",{value:t,configurable:!0}),"o$1"),QS=h((n,t,e)=>t.has(n)||kR("Cannot "+e),"gh"),k=h((n,t,e)=>(QS(n,t,"read from private field"),e?e.call(n):t.get(n)),"w"),q=h((n,t,e)=>t.has(n)?kR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),"T"),z=h((n,t,e,i)=>(QS(n,t,"write to private field"),t.set(n,e),e),"P"),gt=h((n,t,e)=>(QS(n,t,"access private method"),e),"tt"),Bx=h((n,t,e,i)=>({set _(s){z(n,t,s)},get _(){return k(n,t,i)}}),"Cl");function Qw(n){return Object.prototype.toString.call(n)==="[object Object]"}h(Qw,"Ll");u(Qw,"isObject");function Mw(n){if(Qw(n)===!1)return!1;const t=n.constructor;if(t===void 0)return!0;const e=t.prototype;return!(Qw(e)===!1||Object.prototype.hasOwnProperty.call(e,"isPrototypeOf")===!1)}h(Mw,"Il");u(Mw,"isPlainObject$1");function rw(n,t,e=!1){n=n||{},t=t||{};const i={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s]);for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e&&i[s]&&Mw(i[s])&&Mw(t[s])?i[s]=rw(i[s],t[s],e):i[s]=t[s]);return i}h(rw,"Pl");u(rw,"assign");function SR(n){return n&&(Array.isArray(n)?n:[n])||[]}h(SR,"Km");u(SR,"asArray");async function PR(n,t){for(const e of n)if(await t(e))return e}h(PR,"Gm");u(PR,"findAsyncSequential");function Wc(n,t,e=!1,i=!1){if(!i&&(!Mw(n)||!Mw(t))||i&&(!Qw(n)||!Qw(t)))return!1;const s=Object.getOwnPropertyNames(n),r=Object.getOwnPropertyNames(t);if(!e&&s.length!==r.length)return!1;for(let a=0;a<s.length;a++){const o=s[a],l=n[o],c=t[o];if(l!==c&&!Wc(l,c,e))return!1}return!0}h(Wc,"wc");u(Wc,"eqObjects");function MS(n){return Object.entries(n)}h(MS,"pw");u(MS,"objectAsIterable");function A0(n){return n.charAt(0).toUpperCase()+n.substring(1).toLowerCase()}h(A0,"Tu");u(A0,"toUpperCaseFirst");const mj='\\s,.:;"',wj=new RegExp(`^|[${mj}]|$`,"g"),gj=".!?",vj=new RegExp(`^|(?<=[${gj}])|$`);function TS(n){return n.length>0?n.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").replace(/_|\s+/g,"-").toLowerCase():n}h(TS,"yw");u(TS,"toKebabCase");function CR(n,t=2){if(!n)return null;let e="";const i=n.split(wj).filter(s=>s);return i.length==1?e=i[0]:i.forEach(s=>{e+=s.charAt(0)}),e.substring(0,t).toUpperCase()}h(CR,"t1");u(CR,"getInitials");function AS(n){let t;const e=n.split(vj).filter(i=>i);return e.length?t=e[0]:t=n,t}h(AS,"ww");u(AS,"getTitleFromText");function RS(n,t=256){return n.length>t&&(n=n.substring(0,t-1)+"…"),n}h(RS,"fw");u(RS,"truncateText");const Oj={credentials:"omit",headers:{"X-Requested-With":"XMLHttpRequest"},redirect:"manual"};function Xf(){return((1+Math.random())*65536|0).toString(16).substring(1)}h(Xf,"bc");u(Xf,"S4");function QR(n){if(n&&n.ok&&n.body){const t=n.body.getReader();return new ReadableStream({start(e){const i=u(()=>t.read().then(({done:s,value:r})=>{if(s){e.close();return}return e.enqueue(r),i()}),"pump");return i()}})}else throw new Error("Could not parse text stream")}h(QR,"i1");u(QR,"getTextStreamFromResponse");function MR(n){let t;try{if(t=window[n],t){const e="__storage_test__";t.setItem(e,e),t.removeItem(e)}}catch(e){e instanceof DOMException&&e.name==="QuotaExceededError"&&t&&t.length!==0&&console.error("Storage not available:",n)}return t}h(MR,"s1");u(MR,"getStorage");var ou;const TR=(ou=class extends Error{constructor(){super("Instance destroyed"),this.name="DestroyError"}},h(ou,"xp"),ou);u(TR,"DestroyError");let Ce=TR;var FO,lu,gy=(FO=(lu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},h(lu,"Kr"),lu),u(FO,"Subscribable"),FO),Nf=typeof window>"u"||"Deno"in globalThis;function Vi(){}h(Vi,"Ge");u(Vi,"noop$1");function AR(n,t){return typeof n=="function"?n(t):n}h(AR,"r1");u(AR,"functionalUpdate");function Cv(n){return typeof n=="number"&&n>=0&&n!==1/0}h(Cv,"Th");u(Cv,"isValidTimeout");function ES(n,t){return Math.max(n+(t||0)-Date.now(),0)}h(ES,"mw");u(ES,"timeUntilStale");function Xa(n,t){return typeof n=="function"?n(t):n}h(Xa,"jr");u(Xa,"resolveStaleTime");function Ki(n,t){return typeof n=="function"?n(t):n}h(Ki,"ri");u(Ki,"resolveEnabled");function Fx(n,t){const{type:e="all",exact:i,fetchStatus:s,predicate:r,queryKey:a,stale:o}=n;if(a){if(i){if(t.queryHash!==R0(a,t.options))return!1}else if(!Hf(t.queryKey,a))return!1}if(e!=="all"){const l=t.isActive();if(e==="active"&&!l||e==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||s&&s!==t.state.fetchStatus||r&&!r(t))}h(Fx,"ey");u(Fx,"matchQuery");function Xx(n,t){const{exact:e,status:i,predicate:s,mutationKey:r}=n;if(r){if(!t.options.mutationKey)return!1;if(e){if(Kr(t.options.mutationKey)!==Kr(r))return!1}else if(!Hf(t.options.mutationKey,r))return!1}return!(i&&t.state.status!==i||s&&!s(t))}h(Xx,"iy");u(Xx,"matchMutation");function R0(n,t){return((t==null?void 0:t.queryKeyHashFn)||Kr)(n)}h(R0,"Fu");u(R0,"hashQueryKeyByOptions");function Kr(n){return JSON.stringify(n,(t,e)=>Qv(e)?Object.keys(e).sort().reduce((i,s)=>(i[s]=e[s],i),{}):e)}h(Kr,"sr");u(Kr,"hashKey");function Hf(n,t){return n===t?!0:typeof n!=typeof t?!1:n&&t&&typeof n=="object"&&typeof t=="object"?Object.keys(t).every(e=>Hf(n[e],t[e])):!1}h(Hf,"xc");u(Hf,"partialMatchKey");function vy(n,t){if(n===t)return n;const e=Nx(n)&&Nx(t);if(e||Qv(n)&&Qv(t)){const i=e?n:Object.keys(n),s=i.length,r=e?t:Object.keys(t),a=r.length,o=e?[]:{};let l=0;for(let c=0;c<a;c++){const d=e?c:r[c];(!e&&i.includes(d)||e)&&n[d]===void 0&&t[d]===void 0?(o[d]=void 0,l++):(o[d]=vy(n[d],t[d]),o[d]===n[d]&&n[d]!==void 0&&l++)}return s===a&&l===s?n:o}return t}h(vy,"cl");u(vy,"replaceEqualDeep");function Tw(n,t){if(!t||Object.keys(n).length!==Object.keys(t).length)return!1;for(const e in n)if(n[e]!==t[e])return!1;return!0}h(Tw,"Tl");u(Tw,"shallowEqualObjects");function Nx(n){return Array.isArray(n)&&n.length===Object.keys(n).length}h(Nx,"sy");u(Nx,"isPlainArray");function Qv(n){if(!Hx(n))return!1;const t=n.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!Hx(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}h(Qv,"Fh");u(Qv,"isPlainObject");function Hx(n){return Object.prototype.toString.call(n)==="[object Object]"}h(Hx,"ry");u(Hx,"hasObjectPrototype");function RR(n){return new Promise(t=>{setTimeout(t,n)})}h(RR,"n1");u(RR,"sleep");function Mv(n,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(n,t):e.structuralSharing!==!1?vy(n,t):t}h(Mv,"Dh");u(Mv,"replaceData");function ER(n,t,e=0){const i=[...n,t];return e&&i.length>e?i.slice(1):i}h(ER,"a1");u(ER,"addToEnd");function _R(n,t,e=0){const i=[t,...n];return e&&i.length>e?i.slice(0,-1):i}h(_R,"o1");u(_R,"addToStart");var _S=Symbol();function zS(n,t){return!n.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!n.queryFn||n.queryFn===_S?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}h(zS,"vw");u(zS,"ensureQueryFn");var Kl,Sa,Wy,XO,cu,bj=(XO=(cu=class extends gy{constructor(){super(),q(this,Kl),q(this,Sa),q(this,Wy),z(this,Wy,t=>{if(!Nf&&window.addEventListener){const e=u(()=>t(),"listener");return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){k(this,Sa)||this.setEventListener(k(this,Wy))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Sa))==null||t.call(this),z(this,Sa,void 0))}setEventListener(t){var e;z(this,Wy,t),(e=k(this,Sa))==null||e.call(this),z(this,Sa,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){k(this,Kl)!==t&&(z(this,Kl,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof k(this,Kl)=="boolean"?k(this,Kl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},h(cu,"Zr"),cu),Kl=new WeakMap,Sa=new WeakMap,Wy=new WeakMap,u(XO,"FocusManager"),XO),LS=new bj,Dy,Pa,qy,NO,hu,$j=(NO=(hu=class extends gy{constructor(){super(),q(this,Dy,!0),q(this,Pa),q(this,qy),z(this,qy,t=>{if(!Nf&&window.addEventListener){const e=u(()=>t(!0),"onlineListener"),i=u(()=>t(!1),"offlineListener");return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){k(this,Pa)||this.setEventListener(k(this,qy))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Pa))==null||t.call(this),z(this,Pa,void 0))}setEventListener(t){var e;z(this,qy,t),(e=k(this,Pa))==null||e.call(this),z(this,Pa,t(this.setOnline.bind(this)))}setOnline(t){k(this,Dy)!==t&&(z(this,Dy,t),this.listeners.forEach(e=>{e(t)}))}isOnline(){return k(this,Dy)}},h(hu,"Jr"),hu),Dy=new WeakMap,Pa=new WeakMap,qy=new WeakMap,u(NO,"OnlineManager"),NO),Tv=new $j;function Av(){let n,t;const e=new Promise((s,r)=>{n=s,t=r});e.status="pending",e.catch(()=>{});function i(s){Object.assign(e,s),delete e.resolve,delete e.reject}return h(i,"s"),u(i,"finalize"),e.resolve=s=>{i({status:"fulfilled",value:s}),n(s)},e.reject=s=>{i({status:"rejected",reason:s}),t(s)},e}h(Av,"Hh");u(Av,"pendingThenable");function zR(n){return Math.min(1e3*2**n,3e4)}h(zR,"d1");u(zR,"defaultRetryDelay");function IS(n){return(n??"online")==="online"?Tv.isOnline():!0}h(IS,"gw");u(IS,"canFetch");var HO,du,LR=(HO=(du=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}},h(du,"tn"),du),u(HO,"CancelledError"),HO);function g1(n){return n instanceof LR}h(g1,"bh");u(g1,"isCancelledError");function ZS(n){let t=!1,e=0,i=!1,s;const r=Av(),a=u(O=>{var x;i||(f(new LR(O)),(x=n.abort)==null||x.call(n))},"cancel"),o=u(()=>{t=!0},"cancelRetry"),l=u(()=>{t=!1},"continueRetry"),c=u(()=>LS.isFocused()&&(n.networkMode==="always"||Tv.isOnline())&&n.canRun(),"canContinue"),d=u(()=>IS(n.networkMode)&&n.canRun(),"canStart"),p=u(O=>{var x;i||(i=!0,(x=n.onSuccess)==null||x.call(n,O),s==null||s(),r.resolve(O))},"resolve"),f=u(O=>{var x;i||(i=!0,(x=n.onError)==null||x.call(n,O),s==null||s(),r.reject(O))},"reject"),m=u(()=>new Promise(O=>{var x;s=u(b=>{(i||c())&&O(b)},"continueFn"),(x=n.onPause)==null||x.call(n)}).then(()=>{var O;s=void 0,i||(O=n.onContinue)==null||O.call(n)}),"pause"),w=u(()=>{if(i)return;let O;const x=e===0?n.initialPromise:void 0;try{O=x??n.fn()}catch(b){O=Promise.reject(b)}Promise.resolve(O).then(p).catch(b=>{var P;if(i)return;const R=n.retry??(Nf?0:3),E=n.retryDelay??zR,T=typeof E=="function"?E(e,b):E,I=R===!0||typeof R=="number"&&e<R||typeof R=="function"&&R(e,b);if(t||!I){f(b);return}e++,(P=n.onFail)==null||P.call(n,e,b),RR(T).then(()=>c()?void 0:m()).then(()=>{t?f(b):w()})})},"run");return{promise:r,cancel:a,continue:u(()=>(s==null||s(),r),"continue"),cancelRetry:o,continueRetry:l,canStart:d,start:u(()=>(d()?w():m().then(w),r),"start")}}h(ZS,"xw");u(ZS,"createRetryer");var xj=u(n=>setTimeout(n,0),"defaultScheduler");function IR(){let n=[],t=0,e=u(o=>{o()},"notifyFn"),i=u(o=>{o()},"batchNotifyFn"),s=xj;const r=u(o=>{t?n.push(o):s(()=>{e(o)})},"schedule"),a=u(()=>{const o=n;n=[],o.length&&s(()=>{i(()=>{o.forEach(l=>{e(l)})})})},"flush");return{batch:u(o=>{let l;t++;try{l=o()}finally{t--,t||a()}return l},"batch"),batchCalls:u(o=>(...l)=>{r(()=>{o(...l)})},"batchCalls"),schedule:r,setNotifyFunction:u(o=>{e=o},"setNotifyFunction"),setBatchNotifyFunction:u(o=>{i=o},"setBatchNotifyFunction"),setScheduler:u(o=>{s=o},"setScheduler")}}h(IR,"u1");u(IR,"createNotifyManager");var ei=IR(),Jl,YO,uu,ZR=(YO=(uu=class{constructor(){q(this,Jl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cv(this.gcTime)&&z(this,Jl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Nf?1/0:5*60*1e3))}clearGcTimeout(){k(this,Jl)&&(clearTimeout(k(this,Jl)),z(this,Jl,void 0))}},h(uu,"en"),uu),Jl=new WeakMap,u(YO,"Removable"),YO),Uy,jy,fn,tc,di,Ug,ec,In,Os,GO,pu,kj=(GO=(pu=class extends ZR{constructor(t){super(),q(this,In),q(this,Uy),q(this,jy),q(this,fn),q(this,tc),q(this,di),q(this,Ug),q(this,ec),z(this,ec,!1),z(this,Ug,t.defaultOptions),this.setOptions(t.options),this.observers=[],z(this,tc,t.client),z(this,fn,k(this,tc).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,z(this,Uy,VR(this.options)),this.state=t.state??k(this,Uy),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,di))==null?void 0:t.promise}setOptions(t){this.options={...k(this,Ug),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,fn).remove(this)}setData(t,e){const i=Mv(this.state.data,t,this.options);return gt(this,In,Os).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){gt(this,In,Os).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var e,i;const s=(e=k(this,di))==null?void 0:e.promise;return(i=k(this,di))==null||i.cancel(t),s?s.then(Vi).catch(Vi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Uy))}isActive(){return this.observers.some(t=>Ki(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_S||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!ES(this.state.dataUpdatedAt,t)}onFocus(){var t;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=k(this,di))==null||t.continue()}onOnline(){var t;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=k(this,di))==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,fn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(k(this,di)&&(k(this,ec)?k(this,di).cancel({revert:!0}):k(this,di).cancelRetry()),this.scheduleGc()),k(this,fn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||gt(this,In,Os).call(this,{type:"invalidate"})}fetch(t,e){var i,s,r;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&e!=null&&e.cancelRefetch)this.cancel({silent:!0});else if(k(this,di))return k(this,di).continueRetry(),k(this,di).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const a=new AbortController,o=u(p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:u(()=>(z(this,ec,!0),a.signal),"get")})},"addSignalProperty"),l=u(()=>{const p=zS(this.options,e),f={client:k(this,tc),queryKey:this.queryKey,meta:this.meta};return o(f),z(this,ec,!1),this.options.persister?this.options.persister(p,f,this):p(f)},"fetchFn"),c={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:k(this,tc),state:this.state,fetchFn:l};o(c),(i=this.options.behavior)==null||i.onFetch(c,this),z(this,jy,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=c.fetchOptions)==null?void 0:s.meta))&>(this,In,Os).call(this,{type:"fetch",meta:(r=c.fetchOptions)==null?void 0:r.meta});const d=u(p=>{var f,m,w,O;g1(p)&&p.silent||gt(this,In,Os).call(this,{type:"error",error:p}),g1(p)||((m=(f=k(this,fn).config).onError)==null||m.call(f,p,this),(O=(w=k(this,fn).config).onSettled)==null||O.call(w,this.state.data,p,this)),this.scheduleGc()},"onError");return z(this,di,ZS({initialPromise:e==null?void 0:e.initialPromise,fn:c.fetchFn,abort:a.abort.bind(a),onSuccess:u(p=>{var f,m,w,O;if(p===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(x){d(x);return}(m=(f=k(this,fn).config).onSuccess)==null||m.call(f,p,this),(O=(w=k(this,fn).config).onSettled)==null||O.call(w,p,this.state.error,this),this.scheduleGc()},"onSuccess"),onError:d,onFail:u((p,f)=>{gt(this,In,Os).call(this,{type:"failed",failureCount:p,error:f})},"onFail"),onPause:u(()=>{gt(this,In,Os).call(this,{type:"pause"})},"onPause"),onContinue:u(()=>{gt(this,In,Os).call(this,{type:"continue"})},"onContinue"),retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:u(()=>!0,"canRun")})),k(this,di).start()}},h(pu,"nn"),pu),Uy=new WeakMap,jy=new WeakMap,fn=new WeakMap,tc=new WeakMap,di=new WeakMap,Ug=new WeakMap,ec=new WeakMap,In=new WeakSet,Os=u(function(n){const t=u(e=>{switch(n.type){case"failed":return{...e,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...VS(e.data,this.options),fetchMeta:n.meta??null};case"success":return{...e,data:n.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=n.error;return g1(i)&&i.revert&&k(this,jy)?{...k(this,jy),fetchStatus:"idle"}:{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...n.state}}},"reducer");this.state=t(this.state),ei.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),k(this,fn).notify({query:this,type:"updated",action:n})})},"#dispatch"),u(GO,"Query"),GO);function VS(n,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:IS(t.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}h(VS,"Cw");u(VS,"fetchState");function VR(n){const t=typeof n.initialData=="function"?n.initialData():n.initialData,e=t!==void 0,i=e?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}h(VR,"y1");u(VR,"getDefaultState$1");var bs,KO,fu,Sj=(KO=(fu=class extends gy{constructor(t={}){super(),q(this,bs),this.config=t,z(this,bs,new Map)}build(t,e,i){const s=e.queryKey,r=e.queryHash??R0(s,e);let a=this.get(r);return a||(a=new kj({client:t,queryKey:s,queryHash:r,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){k(this,bs).has(t.queryHash)||(k(this,bs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=k(this,bs).get(t.queryHash);e&&(t.destroy(),e===t&&k(this,bs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ei.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,bs).get(t)}getAll(){return[...k(this,bs).values()]}find(t){const e={exact:!0,...t};return this.getAll().find(i=>Fx(e,i))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(i=>Fx(t,i)):e}notify(t){ei.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){ei.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ei.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},h(fu,"an"),fu),bs=new WeakMap,u(KO,"QueryCache"),KO),$s,$i,ic,xs,sr,JO,yu,Pj=(JO=(yu=class extends ZR{constructor(t){super(),q(this,xs),q(this,$s),q(this,$i),q(this,ic),this.mutationId=t.mutationId,z(this,$i,t.mutationCache),z(this,$s,[]),this.state=t.state||WS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,$s).includes(t)||(k(this,$s).push(t),this.clearGcTimeout(),k(this,$i).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){z(this,$s,k(this,$s).filter(e=>e!==t)),this.scheduleGc(),k(this,$i).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,$s).length||(this.state.status==="pending"?this.scheduleGc():k(this,$i).remove(this))}continue(){var t;return((t=k(this,ic))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var e,i,s,r,a,o,l,c,d,p,f,m,w,O,x,b,P,R,E,T;const I=u(()=>{gt(this,xs,sr).call(this,{type:"continue"})},"onContinue");z(this,ic,ZS({fn:u(()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),"fn"),onFail:u((B,tt)=>{gt(this,xs,sr).call(this,{type:"failed",failureCount:B,error:tt})},"onFail"),onPause:u(()=>{gt(this,xs,sr).call(this,{type:"pause"})},"onPause"),onContinue:I,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:u(()=>k(this,$i).canRun(this),"canRun")}));const Z=this.state.status==="pending",U=!k(this,ic).canStart();try{if(Z)I();else{gt(this,xs,sr).call(this,{type:"pending",variables:t,isPaused:U}),await((i=(e=k(this,$i).config).onMutate)==null?void 0:i.call(e,t,this));const tt=await((r=(s=this.options).onMutate)==null?void 0:r.call(s,t));tt!==this.state.context&>(this,xs,sr).call(this,{type:"pending",context:tt,variables:t,isPaused:U})}const B=await k(this,ic).start();return await((o=(a=k(this,$i).config).onSuccess)==null?void 0:o.call(a,B,t,this.state.context,this)),await((c=(l=this.options).onSuccess)==null?void 0:c.call(l,B,t,this.state.context)),await((p=(d=k(this,$i).config).onSettled)==null?void 0:p.call(d,B,null,this.state.variables,this.state.context,this)),await((m=(f=this.options).onSettled)==null?void 0:m.call(f,B,null,t,this.state.context)),gt(this,xs,sr).call(this,{type:"success",data:B}),B}catch(B){try{throw await((O=(w=k(this,$i).config).onError)==null?void 0:O.call(w,B,t,this.state.context,this)),await((b=(x=this.options).onError)==null?void 0:b.call(x,B,t,this.state.context)),await((R=(P=k(this,$i).config).onSettled)==null?void 0:R.call(P,void 0,B,this.state.variables,this.state.context,this)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,void 0,B,t,this.state.context)),B}finally{gt(this,xs,sr).call(this,{type:"error",error:B})}}finally{k(this,$i).runNext(this)}}},h(yu,"on"),yu),$s=new WeakMap,$i=new WeakMap,ic=new WeakMap,xs=new WeakSet,sr=u(function(n){const t=u(e=>{switch(n.type){case"failed":return{...e,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...e,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:n.error,failureCount:e.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}},"reducer");this.state=t(this.state),ei.batch(()=>{k(this,$s).forEach(e=>{e.onMutationUpdate(n)}),k(this,$i).notify({mutation:this,type:"updated",action:n})})},"#dispatch"),u(JO,"Mutation"),JO);function WS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}h(WS,"kw");u(WS,"getDefaultState");var rr,Zn,jg,tb,mu,Cj=(tb=(mu=class extends gy{constructor(t={}){super(),q(this,rr),q(this,Zn),q(this,jg),this.config=t,z(this,rr,new Set),z(this,Zn,new Map),z(this,jg,0)}build(t,e,i){const s=new Pj({mutationCache:this,mutationId:++Bx(this,jg)._,options:t.defaultMutationOptions(e),state:i});return this.add(s),s}add(t){k(this,rr).add(t);const e=mm(t);if(typeof e=="string"){const i=k(this,Zn).get(e);i?i.push(t):k(this,Zn).set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,rr).delete(t)){const e=mm(t);if(typeof e=="string"){const i=k(this,Zn).get(e);if(i)if(i.length>1){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}else i[0]===t&&k(this,Zn).delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=mm(t);if(typeof e=="string"){const i=k(this,Zn).get(e),s=i==null?void 0:i.find(r=>r.state.status==="pending");return!s||s===t}else return!0}runNext(t){var e;const i=mm(t);if(typeof i=="string"){const s=(e=k(this,Zn).get(i))==null?void 0:e.find(r=>r!==t&&r.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ei.batch(()=>{k(this,rr).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,rr).clear(),k(this,Zn).clear()})}getAll(){return Array.from(k(this,rr))}find(t){const e={exact:!0,...t};return this.getAll().find(i=>Xx(e,i))}findAll(t={}){return this.getAll().filter(e=>Xx(t,e))}notify(t){ei.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return ei.batch(()=>Promise.all(t.map(e=>e.continue().catch(Vi))))}},h(mu,"cn"),mu),rr=new WeakMap,Zn=new WeakMap,jg=new WeakMap,u(tb,"MutationCache"),tb);function mm(n){var t;return(t=n.options.scope)==null?void 0:t.id}h(mm,"kl");u(mm,"scopeFor");function Aw(n){return{onFetch:u((t,e)=>{var i,s,r,a,o;const l=t.options,c=(r=(s=(i=t.fetchOptions)==null?void 0:i.meta)==null?void 0:s.fetchMore)==null?void 0:r.direction,d=((a=t.state.data)==null?void 0:a.pages)||[],p=((o=t.state.data)==null?void 0:o.pageParams)||[];let f={pages:[],pageParams:[]},m=0;const w=u(async()=>{let O=!1;const x=u(R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:u(()=>(t.signal.aborted?O=!0:t.signal.addEventListener("abort",()=>{O=!0}),t.signal),"get")})},"addSignalProperty"),b=zS(t.options,t.fetchOptions),P=u(async(R,E,T)=>{if(O)return Promise.reject();if(E==null&&R.pages.length)return Promise.resolve(R);const I={client:t.client,queryKey:t.queryKey,pageParam:E,direction:T?"backward":"forward",meta:t.options.meta};x(I);const Z=await b(I),{maxPages:U}=t.options,B=T?_R:ER;return{pages:B(R.pages,Z,U),pageParams:B(R.pageParams,E,U)}},"fetchPage");if(c&&d.length){const R=c==="backward",E=R?DS:Rv,T={pages:d,pageParams:p},I=E(l,T);f=await P(T,I,R)}else{const R=n??d.length;do{const E=m===0?p[0]??l.initialPageParam:Rv(l,f);if(m>0&&E==null)break;f=await P(f,E),m++}while(m<R)}return f},"fetchFn");t.options.persister?t.fetchFn=()=>{var O,x;return(x=(O=t.options).persister)==null?void 0:x.call(O,w,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=w},"onFetch")}}h(Aw,"Dl");u(Aw,"infiniteQueryBehavior");function Rv(n,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?n.getNextPageParam(t[i],t,e[i],e):void 0}h(Rv,"Vh");u(Rv,"getNextPageParam");function DS(n,{pages:t,pageParams:e}){var i;return t.length>0?(i=n.getPreviousPageParam)==null?void 0:i.call(n,t[0],t,e[0],e):void 0}h(DS,"_w");u(DS,"getPreviousPageParam");function WR(n,t){return t?Rv(n,t)!=null:!1}h(WR,"v1");u(WR,"hasNextPage");function DR(n,t){return!t||!n.getPreviousPageParam?!1:DS(n,t)!=null}h(DR,"g1");u(DR,"hasPreviousPage");var ge,Ca,Qa,By,Fy,Ma,Xy,Ny,eb,wu,Qj=(eb=(wu=class{constructor(t={}){q(this,ge),q(this,Ca),q(this,Qa),q(this,By),q(this,Fy),q(this,Ma),q(this,Xy),q(this,Ny),z(this,ge,t.queryCache||new Sj),z(this,Ca,t.mutationCache||new Cj),z(this,Qa,t.defaultOptions||{}),z(this,By,new Map),z(this,Fy,new Map),z(this,Ma,0)}mount(){Bx(this,Ma)._++,k(this,Ma)===1&&(z(this,Xy,LS.subscribe(async t=>{t&&(await this.resumePausedMutations(),k(this,ge).onFocus())})),z(this,Ny,Tv.subscribe(async t=>{t&&(await this.resumePausedMutations(),k(this,ge).onOnline())})))}unmount(){var t,e;Bx(this,Ma)._--,k(this,Ma)===0&&((t=k(this,Xy))==null||t.call(this),z(this,Xy,void 0),(e=k(this,Ny))==null||e.call(this),z(this,Ny,void 0))}isFetching(t){return k(this,ge).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return k(this,Ca).findAll({...t,status:"pending"}).length}getQueryData(t){var e;const i=this.defaultQueryOptions({queryKey:t});return(e=k(this,ge).get(i.queryHash))==null?void 0:e.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),i=k(this,ge).build(this,e),s=i.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(Xa(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(t){return k(this,ge).findAll(t).map(({queryKey:e,state:i})=>{const s=i.data;return[e,s]})}setQueryData(t,e,i){const s=this.defaultQueryOptions({queryKey:t}),r=k(this,ge).get(s.queryHash),a=r==null?void 0:r.state.data,o=AR(e,a);if(o!==void 0)return k(this,ge).build(this,s).setData(o,{...i,manual:!0})}setQueriesData(t,e,i){return ei.batch(()=>k(this,ge).findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,e,i)]))}getQueryState(t){var e;const i=this.defaultQueryOptions({queryKey:t});return(e=k(this,ge).get(i.queryHash))==null?void 0:e.state}removeQueries(t){const e=k(this,ge);ei.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=k(this,ge);return ei.batch(()=>(i.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const i={revert:!0,...e},s=ei.batch(()=>k(this,ge).findAll(t).map(r=>r.cancel(i)));return Promise.all(s).then(Vi).catch(Vi)}invalidateQueries(t,e={}){return ei.batch(()=>(k(this,ge).findAll(t).forEach(i=>{i.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const i={...e,cancelRefetch:e.cancelRefetch??!0},s=ei.batch(()=>k(this,ge).findAll(t).filter(r=>!r.isDisabled()).map(r=>{let a=r.fetch(void 0,i);return i.throwOnError||(a=a.catch(Vi)),r.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(s).then(Vi)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=k(this,ge).build(this,e);return i.isStaleByTime(Xa(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Vi).catch(Vi)}fetchInfiniteQuery(t){return t.behavior=Aw(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Vi).catch(Vi)}ensureInfiniteQueryData(t){return t.behavior=Aw(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Tv.isOnline()?k(this,Ca).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,ge)}getMutationCache(){return k(this,Ca)}getDefaultOptions(){return k(this,Qa)}setDefaultOptions(t){z(this,Qa,t)}setQueryDefaults(t,e){k(this,By).set(Kr(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...k(this,By).values()],i={};return e.forEach(s=>{Hf(t,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(t,e){k(this,Fy).set(Kr(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...k(this,Fy).values()],i={};return e.forEach(s=>{Hf(t,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...k(this,Qa).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=R0(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===_S&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...k(this,Qa).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){k(this,ge).clear(),k(this,Ca).clear()}},h(wu,"pn"),wu),ge=new WeakMap,Ca=new WeakMap,Qa=new WeakMap,By=new WeakMap,Fy=new WeakMap,Ma=new WeakMap,Xy=new WeakMap,Ny=new WeakMap,u(eb,"QueryClient"),eb),Li,Lt,Bg,xi,nc,Hy,Ta,Aa,Fg,Yy,Gy,sc,rc,Ra,Ky,ve,Jy,ib,nb,sb,rb,ab,ob,lb,a3,cb,gu,qR=(cb=(gu=class extends gy{constructor(t,e){super(),q(this,ve),q(this,Li),q(this,Lt),q(this,Bg),q(this,xi),q(this,nc),q(this,Hy),q(this,Ta),q(this,Aa),q(this,Fg),q(this,Yy),q(this,Gy),q(this,sc),q(this,rc),q(this,Ra),q(this,Ky,new Set),this.options=e,z(this,Li,t),z(this,Aa,null),z(this,Ta,Av()),this.options.experimental_prefetchInRender||k(this,Ta).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,Lt).addObserver(this),Yx(k(this,Lt),this.options)?gt(this,ve,Jy).call(this):this.updateResult(),gt(this,ve,rb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ev(k(this,Lt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ev(k(this,Lt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,gt(this,ve,ab).call(this),gt(this,ve,ob).call(this),k(this,Lt).removeObserver(this)}setOptions(t){const e=this.options,i=k(this,Lt);if(this.options=k(this,Li).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ki(this.options.enabled,k(this,Lt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");gt(this,ve,lb).call(this),k(this,Lt).setOptions(this.options),e._defaulted&&!Tw(this.options,e)&&k(this,Li).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,Lt),observer:this});const s=this.hasListeners();s&&Gx(k(this,Lt),i,this.options,e)&>(this,ve,Jy).call(this),this.updateResult(),s&&(k(this,Lt)!==i||Ki(this.options.enabled,k(this,Lt))!==Ki(e.enabled,k(this,Lt))||Xa(this.options.staleTime,k(this,Lt))!==Xa(e.staleTime,k(this,Lt)))&>(this,ve,ib).call(this);const r=gt(this,ve,nb).call(this);s&&(k(this,Lt)!==i||Ki(this.options.enabled,k(this,Lt))!==Ki(e.enabled,k(this,Lt))||r!==k(this,Ra))&>(this,ve,sb).call(this,r)}getOptimisticResult(t){const e=k(this,Li).getQueryCache().build(k(this,Li),t),i=this.createResult(e,t);return jR(this,i)&&(z(this,xi,i),z(this,Hy,this.options),z(this,nc,k(this,Lt).state)),i}getCurrentResult(){return k(this,xi)}trackResult(t,e){return new Proxy(t,{get:u((i,s)=>(this.trackProp(s),e==null||e(s),Reflect.get(i,s)),"get")})}trackProp(t){k(this,Ky).add(t)}getCurrentQuery(){return k(this,Lt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=k(this,Li).defaultQueryOptions(t),i=k(this,Li).getQueryCache().build(k(this,Li),e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return gt(this,ve,Jy).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,xi)))}createResult(t,e){var i;const s=k(this,Lt),r=this.options,a=k(this,xi),o=k(this,nc),l=k(this,Hy),c=t!==s?t.state:k(this,Bg),{state:d}=t;let p={...d},f=!1,m;if(e._optimisticResults){const U=this.hasListeners(),B=!U&&Yx(t,e),tt=U&&Gx(t,s,e,r);(B||tt)&&(p={...p,...VS(d.data,t.options)}),e._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:O,status:x}=p;m=p.data;let b=!1;if(e.placeholderData!==void 0&&m===void 0&&x==="pending"){let U;a!=null&&a.isPlaceholderData&&e.placeholderData===(l==null?void 0:l.placeholderData)?(U=a.data,b=!0):U=typeof e.placeholderData=="function"?e.placeholderData((i=k(this,Gy))==null?void 0:i.state.data,k(this,Gy)):e.placeholderData,U!==void 0&&(x="success",m=Mv(a==null?void 0:a.data,U,e),f=!0)}if(e.select&&m!==void 0&&!b)if(a&&m===(o==null?void 0:o.data)&&e.select===k(this,Fg))m=k(this,Yy);else try{z(this,Fg,e.select),m=e.select(m),m=Mv(a==null?void 0:a.data,m,e),z(this,Yy,m),z(this,Aa,null)}catch(U){z(this,Aa,U)}k(this,Aa)&&(w=k(this,Aa),m=k(this,Yy),O=Date.now(),x="error");const P=p.fetchStatus==="fetching",R=x==="pending",E=x==="error",T=R&&P,I=m!==void 0,Z={status:x,fetchStatus:p.fetchStatus,isPending:R,isSuccess:x==="success",isError:E,isInitialLoading:T,isLoading:T,data:m,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:O,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>c.dataUpdateCount||p.errorUpdateCount>c.errorUpdateCount,isFetching:P,isRefetching:P&&!R,isLoadingError:E&&!I,isPaused:p.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:E&&I,isStale:E0(t,e),refetch:this.refetch,promise:k(this,Ta)};if(this.options.experimental_prefetchInRender){const U=u(K=>{Z.status==="error"?K.reject(Z.error):Z.data!==void 0&&K.resolve(Z.data)},"finalizeThenableIfPossible"),B=u(()=>{const K=z(this,Ta,Z.promise=Av());U(K)},"recreateThenable"),tt=k(this,Ta);switch(tt.status){case"pending":t.queryHash===s.queryHash&&U(tt);break;case"fulfilled":(Z.status==="error"||Z.data!==tt.value)&&B();break;case"rejected":(Z.status!=="error"||Z.error!==tt.reason)&&B();break}}return Z}updateResult(){const t=k(this,xi),e=this.createResult(k(this,Lt),this.options);if(z(this,nc,k(this,Lt).state),z(this,Hy,this.options),k(this,nc).data!==void 0&&z(this,Gy,k(this,Lt)),Tw(e,t))return;z(this,xi,e);const i=u(()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,r=typeof s=="function"?s():s;if(r==="all"||!r&&!k(this,Ky).size)return!0;const a=new Set(r??k(this,Ky));return this.options.throwOnError&&a.add("error"),Object.keys(k(this,xi)).some(o=>{const l=o;return k(this,xi)[l]!==t[l]&&a.has(l)})},"shouldNotifyListeners");gt(this,ve,a3).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&>(this,ve,rb).call(this)}},h(gu,"vn"),gu),Li=new WeakMap,Lt=new WeakMap,Bg=new WeakMap,xi=new WeakMap,nc=new WeakMap,Hy=new WeakMap,Ta=new WeakMap,Aa=new WeakMap,Fg=new WeakMap,Yy=new WeakMap,Gy=new WeakMap,sc=new WeakMap,rc=new WeakMap,Ra=new WeakMap,Ky=new WeakMap,ve=new WeakSet,Jy=u(function(n){gt(this,ve,lb).call(this);let t=k(this,Lt).fetch(this.options,n);return n!=null&&n.throwOnError||(t=t.catch(Vi)),t},"#executeFetch"),ib=u(function(){gt(this,ve,ab).call(this);const n=Xa(this.options.staleTime,k(this,Lt));if(Nf||k(this,xi).isStale||!Cv(n))return;const t=ES(k(this,xi).dataUpdatedAt,n)+1;z(this,sc,setTimeout(()=>{k(this,xi).isStale||this.updateResult()},t))},"#updateStaleTimeout"),nb=u(function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,Lt)):this.options.refetchInterval)??!1},"#computeRefetchInterval"),sb=u(function(n){gt(this,ve,ob).call(this),z(this,Ra,n),!(Nf||Ki(this.options.enabled,k(this,Lt))===!1||!Cv(k(this,Ra))||k(this,Ra)===0)&&z(this,rc,setInterval(()=>{(this.options.refetchIntervalInBackground||LS.isFocused())&>(this,ve,Jy).call(this)},k(this,Ra)))},"#updateRefetchInterval"),rb=u(function(){gt(this,ve,ib).call(this),gt(this,ve,sb).call(this,gt(this,ve,nb).call(this))},"#updateTimers"),ab=u(function(){k(this,sc)&&(clearTimeout(k(this,sc)),z(this,sc,void 0))},"#clearStaleTimeout"),ob=u(function(){k(this,rc)&&(clearInterval(k(this,rc)),z(this,rc,void 0))},"#clearRefetchInterval"),lb=u(function(){const n=k(this,Li).getQueryCache().build(k(this,Li),this.options);if(n===k(this,Lt))return;const t=k(this,Lt);z(this,Lt,n),z(this,Bg,n.state),this.hasListeners()&&(t==null||t.removeObserver(this),n.addObserver(this))},"#updateQuery"),a3=u(function(n){ei.batch(()=>{n.listeners&&this.listeners.forEach(t=>{t(k(this,xi))}),k(this,Li).getQueryCache().notify({query:k(this,Lt),type:"observerResultsUpdated"})})},"#notify"),u(cb,"QueryObserver"),cb);function UR(n,t){return Ki(t.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&t.retryOnMount===!1)}h(UR,"x1");u(UR,"shouldLoadOnMount");function Yx(n,t){return UR(n,t)||n.state.data!==void 0&&Ev(n,t,t.refetchOnMount)}h(Yx,"ny");u(Yx,"shouldFetchOnMount");function Ev(n,t,e){if(Ki(t.enabled,n)!==!1){const i=typeof e=="function"?e(n):e;return i==="always"||i!==!1&&E0(n,t)}return!1}h(Ev,"Kh");u(Ev,"shouldFetchOn");function Gx(n,t,e,i){return(n!==t||Ki(i.enabled,n)===!1)&&(!e.suspense||n.state.status!=="error")&&E0(n,e)}h(Gx,"ay");u(Gx,"shouldFetchOptionally");function E0(n,t){return Ki(t.enabled,n)!==!1&&n.isStaleByTime(Xa(t.staleTime,n))}h(E0,"Vu");u(E0,"isStale");function jR(n,t){return!Tw(n.getCurrentResult(),t)}h(jR,"$1");u(jR,"shouldAssignObserverCurrentProperties");var hb,vu,Mj=(hb=(vu=class extends qR{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:Aw()})}getOptimisticResult(t){return t.behavior=Aw(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){var i,s;const{state:r}=t,a=super.createResult(t,e),{isFetching:o,isRefetching:l,isError:c,isRefetchError:d}=a,p=(s=(i=r.fetchMeta)==null?void 0:i.fetchMore)==null?void 0:s.direction,f=c&&p==="forward",m=o&&p==="forward",w=c&&p==="backward",O=o&&p==="backward";return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:WR(e,r.data),hasPreviousPage:DR(e,r.data),isFetchNextPageError:f,isFetchingNextPage:m,isFetchPreviousPageError:w,isFetchingPreviousPage:O,isRefetchError:d&&!f&&!w,isRefetching:l&&!m&&!O}}},h(vu,"gn"),vu),u(hb,"InfiniteQueryObserver"),hb),Ea,_a,Ii,ar,za,Xg,db,ub,Ou,jt=(ub=(Ou=class extends gy{constructor(t,e){super(),q(this,za),q(this,Ea),q(this,_a),q(this,Ii),q(this,ar),z(this,Ea,t),this.setOptions(e),this.bindMethods(),gt(this,za,Xg).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;const i=this.options;this.options=k(this,Ea).defaultMutationOptions(t),Tw(this.options,i)||k(this,Ea).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Ii),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Kr(i.mutationKey)!==Kr(this.options.mutationKey)?this.reset():((e=k(this,Ii))==null?void 0:e.state.status)==="pending"&&k(this,Ii).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=k(this,Ii))==null||t.removeObserver(this)}onMutationUpdate(t){gt(this,za,Xg).call(this),gt(this,za,db).call(this,t)}getCurrentResult(){return k(this,_a)}reset(){var t;(t=k(this,Ii))==null||t.removeObserver(this),z(this,Ii,void 0),gt(this,za,Xg).call(this),gt(this,za,db).call(this)}mutate(t,e){var i;return z(this,ar,e),(i=k(this,Ii))==null||i.removeObserver(this),z(this,Ii,k(this,Ea).getMutationCache().build(k(this,Ea),this.options)),k(this,Ii).addObserver(this),k(this,Ii).execute(t)}},h(Ou,"bn"),Ou),Ea=new WeakMap,_a=new WeakMap,Ii=new WeakMap,ar=new WeakMap,za=new WeakSet,Xg=u(function(){var n;const t=((n=k(this,Ii))==null?void 0:n.state)??WS();z(this,_a,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},"#updateResult"),db=u(function(n){ei.batch(()=>{var t,e,i,s,r,a,o,l;if(k(this,ar)&&this.hasListeners()){const c=k(this,_a).variables,d=k(this,_a).context;(n==null?void 0:n.type)==="success"?((e=(t=k(this,ar)).onSuccess)==null||e.call(t,n.data,c,d),(s=(i=k(this,ar)).onSettled)==null||s.call(i,n.data,null,c,d)):(n==null?void 0:n.type)==="error"&&((a=(r=k(this,ar)).onError)==null||a.call(r,n.error,c,d),(l=(o=k(this,ar)).onSettled)==null||l.call(o,void 0,n.error,c,d))}this.listeners.forEach(c=>{c(k(this,_a))})})},"#notify"),u(ub,"MutationObserver"),ub);function qS(n){return n}h(qS,"Pw");u(qS,"defaultTransformerFn");function BR(n){return{mutationKey:n.options.mutationKey,state:n.state,...n.options.scope&&{scope:n.options.scope},...n.meta&&{meta:n.meta}}}h(BR,"k1");u(BR,"dehydrateMutation");function FR(n,t,e){var i;return{state:{...n.state,...n.state.data!==void 0&&{data:t(n.state.data)}},queryKey:n.queryKey,queryHash:n.queryHash,...n.state.status==="pending"&&{promise:(i=n.promise)==null?void 0:i.then(t).catch(s=>e(s)?Promise.reject(new Error("redacted")):Promise.reject(s))},...n.meta&&{meta:n.meta}}}h(FR,"_1");u(FR,"dehydrateQuery");function XR(n){return n.state.isPaused}h(XR,"M1");u(XR,"defaultShouldDehydrateMutation");function NR(n){return n.state.status==="success"}h(NR,"z1");u(NR,"defaultShouldDehydrateQuery");function HR(n){return!0}h(HR,"P1");u(HR,"defaultShouldRedactErrors");function YR(n,t={}){var e,i,s,r;const a=t.shouldDehydrateMutation??((e=n.getDefaultOptions().dehydrate)==null?void 0:e.shouldDehydrateMutation)??XR,o=n.getMutationCache().getAll().flatMap(f=>a(f)?[BR(f)]:[]),l=t.shouldDehydrateQuery??((i=n.getDefaultOptions().dehydrate)==null?void 0:i.shouldDehydrateQuery)??NR,c=t.shouldRedactErrors??((s=n.getDefaultOptions().dehydrate)==null?void 0:s.shouldRedactErrors)??HR,d=t.serializeData??((r=n.getDefaultOptions().dehydrate)==null?void 0:r.serializeData)??qS,p=n.getQueryCache().getAll().flatMap(f=>l(f)?[FR(f,d,c)]:[]);return{mutations:o,queries:p}}h(YR,"S1");u(YR,"dehydrate");function GR(n,t,e){var i;if(typeof t!="object"||t===null)return;const s=n.getMutationCache(),r=n.getQueryCache(),a=((i=n.getDefaultOptions().hydrate)==null?void 0:i.deserializeData)??qS,o=t.mutations||[],l=t.queries||[];o.forEach(({state:c,...d})=>{var p,f;s.build(n,{...(p=n.getDefaultOptions().hydrate)==null?void 0:p.mutations,...(f=e==null?void 0:e.defaultOptions)==null?void 0:f.mutations,...d},c)}),l.forEach(({queryKey:c,state:d,queryHash:p,meta:f,promise:m})=>{var w,O;let x=r.get(p);const b=d.data===void 0?d.data:a(d.data);if(x){if(x.state.dataUpdatedAt<d.dataUpdatedAt){const{fetchStatus:P,...R}=d;x.setState({...R,data:b})}}else x=r.build(n,{...(w=n.getDefaultOptions().hydrate)==null?void 0:w.queries,...(O=e==null?void 0:e.defaultOptions)==null?void 0:O.queries,queryKey:c,queryHash:p,meta:f},{...d,data:b,fetchStatus:"idle"});if(m){const P=Promise.resolve(m).then(a);x.fetch(void 0,{initialPromise:P})}})}h(GR,"A1");u(GR,"hydrate");var Pt=(n=>(n.Chat="d65dd4bc-418e-403c-9f56-f9cf4da931ed",n.Comments="88f96a08-c6c1-4eac-a0bd-5bf8fba1a3fd",n.Files="523edd88-4bbf-4547-b60f-2859a6d2ddc1",n.Posts="5ebfa152-de85-48da-82dd-30a1b560c313",n.ChatRoom="edb400ac-839b-45a7-b2a8-6a01820d1c44",n.PrivateChat="7e14f418-8f15-46f4-b182-f619b671e470",n.AgentChat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",n))(Pt||{}),vn=(n=>(n.Chat="chat",n.Comments="comments",n.Files="files",n.Posts="posts",n.ChatRoom="chat_room",n.PrivateChat="private_chat",n.AgentChat="agent_chat",n))(vn||{}),KR=(n=>(n["d65dd4bc-418e-403c-9f56-f9cf4da931ed"]="chat",n["88f96a08-c6c1-4eac-a0bd-5bf8fba1a3fd"]="comments",n["523edd88-4bbf-4547-b60f-2859a6d2ddc1"]="files",n["5ebfa152-de85-48da-82dd-30a1b560c313"]="posts",n["edb400ac-839b-45a7-b2a8-6a01820d1c44"]="chat_room",n["7e14f418-8f15-46f4-b182-f619b671e470"]="private_chat",n["2352a1c6-abc6-420e-8b85-ca7d5aed8779"]="agent_chat",n))(KR||{}),JR=(n=>(n.chat="d65dd4bc-418e-403c-9f56-f9cf4da931ed",n.comments="88f96a08-c6c1-4eac-a0bd-5bf8fba1a3fd",n.files="523edd88-4bbf-4547-b60f-2859a6d2ddc1",n.posts="5ebfa152-de85-48da-82dd-30a1b560c313",n.chat_room="edb400ac-839b-45a7-b2a8-6a01820d1c44",n.private_chat="7e14f418-8f15-46f4-b182-f619b671e470",n.agent_chat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",n))(JR||{}),tE=(n=>(n["2352a1c6-abc6-420e-8b85-ca7d5aed8779"]="agent_chat",n))(tE||{}),eE=(n=>(n.agent_chat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",n))(eE||{}),nn=(n=>(n.Unknown="unknown",n))(nn||{}),pr=(n=>(n.None="none",n.Read="read",n.Write="write",n.Admin="admin",n))(pr||{}),jo=(n=>(n.List="list",n.Read="read",n.Create="create",n.Update="update",n.Delete="delete",n.Admin="admin",n))(jo||{}),li=(n=>(n.App="app",n.File="file",n.Message="message",n.User="user",n.Comment="comment",n.Post="post",n))(li||{});function Jr(n,t,e,i,s,r="GET"){return{queryKey:t,queryFn:u(async()=>{const a=await n.fetch(e||"/api/"+t.join("/"),{method:r,body:s});if(a.ok)return await a.json();throw new Error(`Error calling ${e||"/api/"+t.join("/")}`)},"queryFn"),...i}}h(Jr,"nr");u(Jr,"getApiOptions");async function _v(n,t,e,i,s,r="GET",a=!1){const o=n.queryClient,l=Jr(n,t,e,i,s,r);return a?(l.staleTime=1,await o.fetchQuery(l)):await o.ensureQueryData(l)}h(_v,"Zh");u(_v,"getApi");function iE(n,t,e=nn.Unknown,i){return e===nn.Unknown||typeof t=="number"?_v(n,["apps",t]):_v(n,["apps",t],void 0,void 0,JSON.stringify({type:e,...i}),"PUT")}h(iE,"E1");u(iE,"getApp");function nE(n,t,e=nn.Unknown,i,s){return{queryKey:["apps",t],queryFn:u(async()=>{const r=[];e===nn.Unknown||typeof t=="number"?r.push(n.fetch(`/api/apps/${t}`)):r.push(n.fetch(`/api/apps/${t}`,{method:"PUT",body:JSON.stringify({type:e,members:i,...s})}));const a=(await Promise.allSettled(r)).findLast(l=>{var c;return l.status==="fulfilled"&&((c=l.value)==null?void 0:c.ok)}),o=(a==null?void 0:a.status)==="fulfilled"&&a.value;if(o)return await o.json();throw new Error(`Error getting or creating app ${t}`)},"queryFn")}}h(nE,"O1");u(nE,"getOrCreateAppOptions");function sE(n){return{mutationFn:u(async({name:t,members:e,type:i,uid:s})=>await(await n.fetch("/api/apps",{method:"POST",body:JSON.stringify({name:t,members:e,type:i,uid:s})})).json(),"mutationFn"),onSettled:u(async()=>{await n.queryClient.invalidateQueries({queryKey:["apps"]})},"onSettled")}}h(sE,"R1");u(sE,"getCreateAppMutationOptions");function US(n){return new jt(n.queryClient,sE(n))}h(US,"Rw");u(US,"getCreateAppMutation");function jS(n,t){const e=n.queryClient,i=["apps",t.uid||t.id];return{mutationFn:u(async({subscribe:s})=>{if(t.id>=1){const r=await n.fetch(`/api/apps/${t.id}/${s?"subscribe":"unsubscribe"}`,{method:"POST"});if(!r.ok)throw await r.json()}else throw new Error(`Could not subscribe to app ${t.uid||t.id}.`)},"mutationFn"),onMutate:u(s=>{let r;return e.setQueryData(i,a=>(r=a.is_subscribed,{...a,is_subscribed:s.subscribe})),{previousSubscribe:r,subscribe:s.subscribe}},"onMutate"),onError(s,r,a){a&&a.previousSubscribe!==void 0&&e.setQueryData(i,o=>({...o,is_subscribed:a==null?void 0:a.previousSubscribe}))}}}h(jS,"Lw");u(jS,"getAppSubscribeMutationOptions");function rE(n,t=[Pt.ChatRoom,Pt.PrivateChat],e,i={}){const s=new URLSearchParams({count_only:"true",unread:"true"});e&&s.append("member",e),t==null||t.forEach(a=>s.append("type",a));const r=`/api/apps?${s.toString()}`;return Jr(n,["apps","badge",t],r,i)}h(rE,"L1");u(rE,"getBadgeOptions$1");function aE(n,t={},e,i,s,r,a){return{...t,initialPageParam:0,queryKey:["apps","list",e,i,r,a],queryFn:u(async o=>{var l;const c=new URLSearchParams;i&&c.append("member",i),o.pageParam&&typeof o.pageParam=="number"&&c.append("skip",(l=o.pageParam)==null?void 0:l.toString()),e==null||e.forEach(m=>c.append("type",m)),c.append("order_by",r);const d=s==null?void 0:s();d&&c.append("q",d),c.append("uid","false");const p=`/api/apps?${c.toString()}`,f=await(await n.fetch(p)).json();return f.data=f.data||[],f},"queryFn"),getNextPageParam:u(o=>{if(o.end&&(o==null?void 0:o.end)<(o==null?void 0:o.count))return o.end},"getNextPageParam")}}h(aE,"I1");u(aE,"getAppListOptions");const Tj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s);const r=this;this.api={apps:{async getApp(a){return await iE(r,a)}}}}},h(e,"t"),e),u(t,"WeavyApi"),t},"WeavyApiMixin"),Aj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._whenTokenFactory=new Promise(r=>{this._resolveTokenFactory=r}),this._whenUrlAndTokenFactory=new Promise(r=>{this._resolveUrlAndTokenFactory=r}),this._whenTokenIsValid=new Promise(r=>{this._resolveTokenIsValid=r}),this._tokenPromise=null,this._token="",this._validTokenFromFactory=async(r=!1)=>{var a,o;const l=[this.whenTokenFactory()];this.tokenFactoryRetryDelay!==1/0&&l.push(new Promise(d=>setTimeout(d,this.tokenFactoryRetryDelay))),await Promise.race(l);const c=await((a=this.tokenFactory)==null?void 0:a.call(this,r))??"";if(this._validateToken(c)){if(r&&c===this._token&&this.tokenFactoryRetryDelay!==1/0)return await new Promise(d=>setTimeout(d,this.tokenFactoryRetryDelay)),await this._validTokenFromFactory(!0)}else if(this._whenTokenFactory=new Promise(d=>{this._resolveTokenFactory=d}),!r)return await this._validTokenFromFactory(!1);if(!c)throw new TypeError("Could not get a valid token from tokenFactory.");return(o=this._resolveTokenFactory)==null||o.call(this,!0),this.whenUrl().then(this._resolveUrlAndTokenFactory),c},Promise.all([this.whenUrl(),this.whenTokenFactory()]).then(()=>{var r;this.url&&this.tokenFactory&&((r=this._resolveUrlAndTokenFactory)==null||r.call(this,!0))})}async whenTokenFactory(){await this._whenTokenFactory}async whenUrlAndTokenFactory(){await this._whenUrlAndTokenFactory}async whenTokenIsValid(){await this._whenTokenIsValid}get tokenFactory(){return this._tokenFactory}set tokenFactory(s){if(this.isDestroyed)throw new Ce;this._tokenFactory&&this._tokenFactory!==s&&this.whenTokenFactory().then(()=>{this.queryClient.refetchQueries({stale:!0})}),this._tokenFactory=s??void 0,this._tokenFactory&&queueMicrotask(()=>{var r;(r=this._resolveTokenFactory)==null||r.call(this,!0)})}get tokenUrl(){return this._tokenUrl}set tokenUrl(s){if(this.isDestroyed)throw new Ce;try{if(typeof s=="string")s&&(this._tokenUrl=new URL(s,window.location.toString()));else if(s instanceof URL)this._tokenUrl=s;else if(s==null)this._tokenUrl=void 0;else throw new Error}catch(r){throw new Error("Invalid url",r)}this._tokenUrl&&!this.tokenFactory&&(this.tokenFactory=async r=>{if(!this.tokenUrl)throw new Error("tokenURL property is not valid");const a=new URL(this.tokenUrl);r?a.searchParams.set("refresh","true"):a.searchParams.delete("refresh");const o=await fetch(a);if(o.ok){const l=await o.json();if(l.access_token===void 0)throw new Error("Token response does not contain required property: access_token");return l.access_token}else throw new Error("Could not get access token from server!")})}_validateToken(s){var r;if(!s)return!1;if(typeof s!="string")throw new TypeError(`You have provided an invalid string access token of type ${typeof s}.`);if(typeof s=="string"&&!s.startsWith("wyu_"))throw s.startsWith("wys_")?new TypeError("You have provided an API key for authentication. Provide a user access token instead."):new TypeError("You have provided an invalid string as access token.");return(r=this._resolveTokenIsValid)==null||r.call(this,s),!0}async getToken(s=!1){if(this.isDestroyed)throw new Ce;if(this._token&&!s)return this._token;if(this._tokenPromise)return await this._tokenPromise;this._tokenPromise=new Promise((r,a)=>{this._validTokenFromFactory(s).then(r).catch(a),this.tokenFactoryTimeout!==1/0&&setTimeout(()=>a(new Error("Token factory timeout.")),this.tokenFactoryTimeout),window.addEventListener("offline",()=>a(new Error("Network changed.")),{once:!0}),window.addEventListener("online",()=>a(new Error("Network changed.")),{once:!0})});try{const r=await this._tokenPromise;return this._tokenPromise=null,this._token=r,this._token}catch(r){throw this._tokenPromise=null,r}}},h(e,"t"),e),u(t,"WeavyAuthentication"),t},"WeavyAuthenticationMixin");var Ng=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oE(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}h(oE,"D1");u(oE,"getDefaultExportFromCjs");function v1(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}h(v1,"xh");u(v1,"commonjsRequire");var o3={exports:{}},l3;function lE(){return l3||(l3=1,function(n,t){var e;e=u(()=>(()=>{var wl,gl,vl,Ol,bl,$l,xl,kl,Sl,Pl,Cl,Ql,ws,Ml,Tl,Al,Rl,El,gs,_l,zl,Ll,Il,Oa,Zl,Vl,Wl,Dl,ql,Ul,jl,Bl,ba,Fl,Xl,Nl;var i={d:u((X,g)=>{for(var S in g)i.o(g,S)&&!i.o(X,S)&&Object.defineProperty(X,S,{enumerable:!0,get:g[S]})},"d")};i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(X,g)=>Object.prototype.hasOwnProperty.call(X,g),i.r=X=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(X,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(X,"t",{value:!0})};var s,r={};i.r(r),i.d(r,{AbortError:u(()=>p,"AbortError"),DefaultHttpClient:u(()=>rC,"DefaultHttpClient"),HttpClient:u(()=>B,"HttpClient"),HttpError:u(()=>o,"HttpError"),HttpResponse:u(()=>Z,"HttpResponse"),HttpTransportType:u(()=>Pe,"HttpTransportType"),HubConnection:u(()=>pC,"HubConnection"),HubConnectionBuilder:u(()=>yZ,"HubConnectionBuilder"),HubConnectionState:u(()=>Gt,"HubConnectionState"),JsonHubProtocol:u(()=>CC,"JsonHubProtocol"),LogLevel:u(()=>s,"LogLevel"),MessageType:u(()=>Ct,"MessageType"),NullLogger:u(()=>K,"NullLogger"),Subject:u(()=>cC,"Subject"),TimeoutError:u(()=>c,"TimeoutError"),TransferFormat:u(()=>Ne,"TransferFormat"),VERSION:u(()=>j,"VERSION")});const a=(wl=class extends Error{constructor(g,S){const A=new.target.prototype;super(`${g}: Status code '${S}'`),this.statusCode=S,this.__proto__=A}},h(wl,"Ud"),wl);u(a,"i");let o=a;const l=(gl=class extends Error{constructor(g="A timeout occurred."){const S=new.target.prototype;super(g),this.__proto__=S}},h(gl,"Bd"),gl);u(l,"n");let c=l;const d=(vl=class extends Error{constructor(g="An abort occurred."){const S=new.target.prototype;super(g),this.__proto__=S}},h(vl,"qd"),vl);u(d,"r");let p=d;const f=(Ol=class extends Error{constructor(g,S){const A=new.target.prototype;super(g),this.transport=S,this.errorType="UnsupportedTransportError",this.__proto__=A}},h(Ol,"Nd"),Ol);u(f,"o");let m=f;const w=(bl=class extends Error{constructor(g,S){const A=new.target.prototype;super(g),this.transport=S,this.errorType="DisabledTransportError",this.__proto__=A}},h(bl,"jd"),bl);u(w,"h");let O=w;const x=($l=class extends Error{constructor(g,S){const A=new.target.prototype;super(g),this.transport=S,this.errorType="FailedToStartTransportError",this.__proto__=A}},h($l,"Wd"),$l);u(x,"c");let b=x;const P=(xl=class extends Error{constructor(g){const S=new.target.prototype;super(g),this.errorType="FailedToNegotiateWithServerError",this.__proto__=S}},h(xl,"Qd"),xl);u(P,"a");let R=P;const E=(kl=class extends Error{constructor(g,S){const A=new.target.prototype;super(g),this.innerErrors=S,this.__proto__=A}},h(kl,"Kd"),kl);u(E,"l");let T=E;const I=(Sl=class{constructor(g,S,A){this.statusCode=g,this.statusText=S,this.content=A}},h(Sl,"Gd"),Sl);u(I,"u");let Z=I;const U=(Pl=class{get(g,S){return this.send({...S,method:"GET",url:g})}post(g,S){return this.send({...S,method:"POST",url:g})}delete(g,S){return this.send({...S,method:"DELETE",url:g})}getCookieString(g){return""}},h(Pl,"Zd"),Pl);u(U,"d");let B=U;(function(X){X[X.Trace=0]="Trace",X[X.Debug=1]="Debug",X[X.Information=2]="Information",X[X.Warning=3]="Warning",X[X.Error=4]="Error",X[X.Critical=5]="Critical",X[X.None=6]="None"})(s||(s={}));const tt=(Cl=class{constructor(){}log(g,S){}},h(Cl,"Yd"),Cl);u(tt,"f");let K=tt;K.instance=new K;const j="8.0.7",J=(Ql=class{static isRequired(g,S){if(g==null)throw new Error(`The '${S}' argument is required.`)}static isNotEmpty(g,S){if(!g||g.match(/^\s*$/))throw new Error(`The '${S}' argument should not be empty.`)}static isIn(g,S,A){if(!(g in S))throw new Error(`Unknown ${A} value: ${g}.`)}},h(Ql,"Xd"),Ql);u(J,"w");let it=J;const bt=(ws=class{static get isBrowser(){return!ws.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!ws.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!ws.isNode&&typeof window=="object"&&window.document===void 0}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}},h(ws,"Pr"),ws);u(bt,"g");let mt=bt;function Zt(X,g){let S="";return Vt(X)?(S=`Binary data of length ${X.byteLength}`,g&&(S+=`. Content: '${function(A){const _=new Uint8Array(A);let V="";return _.forEach(D=>{V+=`0x${D<16?"0":""}${D.toString(16)} `}),V.substr(0,V.length-1)}(X)}'`)):typeof X=="string"&&(S=`String data of length ${X.length}`,g&&(S+=`. Content: '${X}'`)),S}h(Zt,"q"),u(Zt,"m");function Vt(X){return X&&typeof ArrayBuffer<"u"&&(X instanceof ArrayBuffer||X.constructor&&X.constructor.name==="ArrayBuffer")}h(Vt,"E"),u(Vt,"y");async function Rt(X,g,S,A,_,V){const D={},[lt,ct]=we();D[lt]=ct,X.log(s.Trace,`(${g} transport) sending data. ${Zt(_,V.logMessageContent)}.`);const Tt=Vt(_)?"arraybuffer":"text",Ht=await S.post(A,{content:_,headers:{...D,...V.headers},responseType:Tt,timeout:V.timeout,withCredentials:V.withCredentials});X.log(s.Trace,`(${g} transport) request complete. Response status: ${Ht.statusCode}.`)}h(Rt,"F"),u(Rt,"b");const ie=(Ml=class{constructor(g,S){this.i=g,this.h=S}dispose(){const g=this.i.observers.indexOf(this.h);g>-1&&this.i.observers.splice(g,1),this.i.observers.length===0&&this.i.cancelCallback&&this.i.cancelCallback().catch(S=>{})}},h(Ml,"Jd"),Ml);u(ie,"v");let me=ie;const he=(Tl=class{constructor(g){this.l=g,this.out=console}log(g,S){if(g>=this.l){const A=`[${new Date().toISOString()}] ${s[g]}: ${S}`;switch(g){case s.Critical:case s.Error:this.out.error(A);break;case s.Warning:this.out.warn(A);break;case s.Information:this.out.info(A);break;default:this.out.log(A)}}}},h(Tl,"th"),Tl);u(he,"E");let ne=he;function we(){let X="X-SignalR-User-Agent";return mt.isNode&&(X="User-Agent"),[X,bi(j,Ei(),mt.isNode?"NodeJS":"Browser",Hi())]}h(we,"B"),u(we,"$");function bi(X,g,S,A){let _="Microsoft SignalR/";const V=X.split(".");return _+=`${V[0]}.${V[1]}`,_+=` (${X}; `,_+=g&&g!==""?`${g}; `:"Unknown OS; ",_+=`${S}`,_+=A?`; ${A}`:"; Unknown Runtime Version",_+=")",_}h(bi,"j"),u(bi,"C");function Ei(){if(!mt.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}h(Ei,"st"),u(Ei,"S");function Hi(){if(mt.isNode)return process.versions.node}h(Hi,"mt"),u(Hi,"k");function Nt(X){return X.stack?X.stack:X.message?X.message:`${X}`}h(Nt,"N"),u(Nt,"P");const pn=(Al=class extends B{constructor(g){if(super(),this.u=g,typeof fetch>"u"||mt.isNode){const S=v1;this.p=new(S("tough-cookie")).CookieJar,typeof fetch>"u"?this.m=S("node-fetch"):this.m=fetch,this.m=S("fetch-cookie")(this.m,this.p)}else this.m=fetch.bind(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(i.g!==void 0)return i.g;throw new Error("could not find global")}());if(typeof AbortController>"u"){const S=v1;this.v=S("abort-controller")}else this.v=AbortController}async send(g){if(g.abortSignal&&g.abortSignal.aborted)throw new p;if(!g.method)throw new Error("No method defined.");if(!g.url)throw new Error("No url defined.");const S=new this.v;let A;g.abortSignal&&(g.abortSignal.onabort=()=>{S.abort(),A=new p});let _,V=null;if(g.timeout){const ct=g.timeout;V=setTimeout(()=>{S.abort(),this.u.log(s.Warning,"Timeout from HTTP request."),A=new c},ct)}g.content===""&&(g.content=void 0),g.content&&(g.headers=g.headers||{},Vt(g.content)?g.headers["Content-Type"]="application/octet-stream":g.headers["Content-Type"]="text/plain;charset=UTF-8");try{_=await this.m(g.url,{body:g.content,cache:"no-cache",credentials:g.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...g.headers},method:g.method,mode:"cors",redirect:"follow",signal:S.signal})}catch(ct){throw A||(this.u.log(s.Warning,`Error from HTTP request. ${ct}.`),ct)}finally{V&&clearTimeout(V),g.abortSignal&&(g.abortSignal.onabort=null)}if(!_.ok){const ct=await ml(_,"text");throw new o(ct||_.statusText,_.status)}const D=ml(_,g.responseType),lt=await D;return new Z(_.status,_.statusText,lt)}getCookieString(g){let S="";return mt.isNode&&this.p&&this.p.getCookies(g,(A,_)=>S=_.join("; ")),S}},h(Al,"eh"),Al);u(pn,"T");let ga=pn;function ml(X,g){let S;switch(g){case"arraybuffer":S=X.arrayBuffer();break;case"text":default:S=X.text();break;case"blob":case"document":case"json":throw new Error(`${g} is not supported.`)}return S}h(ml,"Mt"),u(ml,"I");const nC=(Rl=class extends B{constructor(g){super(),this.u=g}send(g){return g.abortSignal&&g.abortSignal.aborted?Promise.reject(new p):g.method?g.url?new Promise((S,A)=>{const _=new XMLHttpRequest;_.open(g.method,g.url,!0),_.withCredentials=g.withCredentials===void 0||g.withCredentials,_.setRequestHeader("X-Requested-With","XMLHttpRequest"),g.content===""&&(g.content=void 0),g.content&&(Vt(g.content)?_.setRequestHeader("Content-Type","application/octet-stream"):_.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const V=g.headers;V&&Object.keys(V).forEach(D=>{_.setRequestHeader(D,V[D])}),g.responseType&&(_.responseType=g.responseType),g.abortSignal&&(g.abortSignal.onabort=()=>{_.abort(),A(new p)}),g.timeout&&(_.timeout=g.timeout),_.onload=()=>{g.abortSignal&&(g.abortSignal.onabort=null),_.status>=200&&_.status<300?S(new Z(_.status,_.statusText,_.response||_.responseText)):A(new o(_.response||_.responseText||_.statusText,_.status))},_.onerror=()=>{this.u.log(s.Warning,`Error from HTTP request. ${_.status}: ${_.statusText}.`),A(new o(_.statusText,_.status))},_.ontimeout=()=>{this.u.log(s.Warning,"Timeout from HTTP request."),A(new c)},_.send(g.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}},h(Rl,"ih"),Rl);u(nC,"_");let nZ=nC;const sC=(El=class extends B{constructor(g){if(super(),typeof fetch<"u"||mt.isNode)this.$=new ga(g);else{if(typeof XMLHttpRequest>"u")throw new Error("No usable HttpClient found.");this.$=new nZ(g)}}send(g){return g.abortSignal&&g.abortSignal.aborted?Promise.reject(new p):g.method?g.url?this.$.send(g):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(g){return this.$.getCookieString(g)}},h(El,"sh"),El);u(sC,"H");let rC=sC;const aC=(gs=class{static write(g){return`${g}${gs.RecordSeparator}`}static parse(g){if(g[g.length-1]!==gs.RecordSeparator)throw new Error("Message is incomplete.");const S=g.split(gs.RecordSeparator);return S.pop(),S}},h(gs,"Sr"),gs);u(aC,"D");let ms=aC;ms.RecordSeparatorCode=30,ms.RecordSeparator=String.fromCharCode(ms.RecordSeparatorCode);const oC=(_l=class{writeHandshakeRequest(g){return ms.write(JSON.stringify(g))}parseHandshakeResponse(g){let S,A;if(Vt(g)){const D=new Uint8Array(g),lt=D.indexOf(ms.RecordSeparatorCode);if(lt===-1)throw new Error("Message is incomplete.");const ct=lt+1;S=String.fromCharCode.apply(null,Array.prototype.slice.call(D.slice(0,ct))),A=D.byteLength>ct?D.slice(ct).buffer:null}else{const D=g,lt=D.indexOf(ms.RecordSeparator);if(lt===-1)throw new Error("Message is incomplete.");const ct=lt+1;S=D.substring(0,ct),A=D.length>ct?D.substring(ct):null}const _=ms.parse(S),V=JSON.parse(_[0]);if(V.type)throw new Error("Expected a handshake response from the server.");return[A,V]}},h(_l,"rh"),_l);u(oC,"R");let sZ=oC;var Ct,Gt;(function(X){X[X.Invocation=1]="Invocation",X[X.StreamItem=2]="StreamItem",X[X.Completion=3]="Completion",X[X.StreamInvocation=4]="StreamInvocation",X[X.CancelInvocation=5]="CancelInvocation",X[X.Ping=6]="Ping",X[X.Close=7]="Close",X[X.Ack=8]="Ack",X[X.Sequence=9]="Sequence"})(Ct||(Ct={}));const lC=(zl=class{constructor(){this.observers=[]}next(g){for(const S of this.observers)S.next(g)}error(g){for(const S of this.observers)S.error&&S.error(g)}complete(){for(const g of this.observers)g.complete&&g.complete()}subscribe(g){return this.observers.push(g),new me(this,g)}},h(zl,"nh"),zl);u(lC,"U");let cC=lC;const hC=(Ll=class{constructor(g,S,A){this.C=1e5,this.S=[],this.k=0,this.P=!1,this.T=1,this.I=0,this._=0,this.H=!1,this.D=g,this.R=S,this.C=A}async A(g){const S=this.D.writeMessage(g);let A=Promise.resolve();if(this.U(g)){this.k++;let _=u(()=>{},"t"),V=u(()=>{},"i");Vt(S)?this._+=S.byteLength:this._+=S.length,this._>=this.C&&(A=new Promise((D,lt)=>{_=D,V=lt})),this.S.push(new aZ(S,this.k,_,V))}try{this.H||await this.R.send(S)}catch{this.L()}await A}N(g){let S=-1;for(let A=0;A<this.S.length;A++){const _=this.S[A];if(_.q<=g.sequenceId)S=A,Vt(_.M)?this._-=_.M.byteLength:this._-=_.M.length,_.j();else{if(!(this._<this.C))break;_.j()}}S!==-1&&(this.S=this.S.slice(S+1))}W(g){if(this.P)return g.type===Ct.Sequence&&(this.P=!1,!0);if(!this.U(g))return!0;const S=this.T;return this.T++,S<=this.I?(S===this.I&&this.O(),!1):(this.I=S,this.O(),!0)}F(g){g.sequenceId>this.T?this.R.stop(new Error("Sequence ID greater than amount of messages we've received.")):this.T=g.sequenceId}L(){this.H=!0,this.P=!0}async B(){const g=this.S.length!==0?this.S[0].q:this.k+1;await this.R.send(this.D.writeMessage({type:Ct.Sequence,sequenceId:g}));const S=this.S;for(const A of S)await this.R.send(A.M);this.H=!1}X(g){g!=null||(g=new Error("Unable to reconnect to server."));for(const S of this.S)S.J(g)}U(g){switch(g.type){case Ct.Invocation:case Ct.StreamItem:case Ct.Completion:case Ct.StreamInvocation:case Ct.CancelInvocation:return!0;case Ct.Close:case Ct.Sequence:case Ct.Ping:case Ct.Ack:return!1}}O(){this.V===void 0&&(this.V=setTimeout(async()=>{try{this.H||await this.R.send(this.D.writeMessage({type:Ct.Ack,sequenceId:this.I}))}catch{}clearTimeout(this.V),this.V=void 0},1e3))}},h(Ll,"ah"),Ll);u(hC,"L");let rZ=hC;const dC=(Il=class{constructor(g,S,A,_){this.M=g,this.q=S,this.j=A,this.J=_}},h(Il,"oh"),Il);u(dC,"N");let aZ=dC;(function(X){X.Disconnected="Disconnected",X.Connecting="Connecting",X.Connected="Connected",X.Disconnecting="Disconnecting",X.Reconnecting="Reconnecting"})(Gt||(Gt={}));const uC=(Oa=class{static create(g,S,A,_,V,D,lt){return new Oa(g,S,A,_,V,D,lt)}constructor(g,S,A,_,V,D,lt){this.K=0,this.G=()=>{this.u.log(s.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},it.isRequired(g,"connection"),it.isRequired(S,"logger"),it.isRequired(A,"protocol"),this.serverTimeoutInMilliseconds=V??3e4,this.keepAliveIntervalInMilliseconds=D??15e3,this.Y=lt??1e5,this.u=S,this.D=A,this.connection=g,this.Z=_,this.tt=new sZ,this.connection.onreceive=ct=>this.et(ct),this.connection.onclose=ct=>this.st(ct),this.it={},this.nt={},this.rt=[],this.ot=[],this.ht=[],this.ct=0,this.lt=!1,this.ut=Gt.Disconnected,this.dt=!1,this.ft=this.D.writeMessage({type:Ct.Ping})}get state(){return this.ut}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(g){if(this.ut!==Gt.Disconnected&&this.ut!==Gt.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!g)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=g}start(){return this.wt=this.gt(),this.wt}async gt(){if(this.ut!==Gt.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this.ut=Gt.Connecting,this.u.log(s.Debug,"Starting HubConnection.");try{await this.yt(),mt.isBrowser&&window.document.addEventListener("freeze",this.G),this.ut=Gt.Connected,this.dt=!0,this.u.log(s.Debug,"HubConnection connected successfully.")}catch(g){return this.ut=Gt.Disconnected,this.u.log(s.Debug,`HubConnection failed to start successfully because of error '${g}'.`),Promise.reject(g)}}async yt(){this.bt=void 0,this.lt=!1;const g=new Promise((S,A)=>{this.vt=S,this.Et=A});await this.connection.start(this.D.transferFormat);try{let S=this.D.version;this.connection.features.reconnect||(S=1);const A={protocol:this.D.name,version:S};if(this.u.log(s.Debug,"Sending handshake request."),await this.$t(this.tt.writeHandshakeRequest(A)),this.u.log(s.Information,`Using HubProtocol '${this.D.name}'.`),this.Ct(),this.St(),this.kt(),await g,this.bt)throw this.bt;this.connection.features.reconnect&&(this.Pt=new rZ(this.D,this.connection,this.Y),this.connection.features.disconnected=this.Pt.L.bind(this.Pt),this.connection.features.resend=()=>{if(this.Pt)return this.Pt.B()}),this.connection.features.inherentKeepAlive||await this.$t(this.ft)}catch(S){throw this.u.log(s.Debug,`Hub handshake failed with error '${S}' during start(). Stopping HubConnection.`),this.Ct(),this.Tt(),await this.connection.stop(S),S}}async stop(){const g=this.wt;this.connection.features.reconnect=!1,this.It=this._t(),await this.It;try{await g}catch{}}_t(g){if(this.ut===Gt.Disconnected)return this.u.log(s.Debug,`Call to HubConnection.stop(${g}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this.ut===Gt.Disconnecting)return this.u.log(s.Debug,`Call to HttpConnection.stop(${g}) ignored because the connection is already in the disconnecting state.`),this.It;const S=this.ut;return this.ut=Gt.Disconnecting,this.u.log(s.Debug,"Stopping HubConnection."),this.Ht?(this.u.log(s.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.Ht),this.Ht=void 0,this.Dt(),Promise.resolve()):(S===Gt.Connected&&this.Rt(),this.Ct(),this.Tt(),this.bt=g||new p("The connection was stopped before the hub handshake could complete."),this.connection.stop(g))}async Rt(){try{await this.xt(this.At())}catch{}}stream(g,...S){const[A,_]=this.Ut(S),V=this.Lt(g,S,_);let D;const lt=new cC;return lt.cancelCallback=()=>{const ct=this.Nt(V.invocationId);return delete this.it[V.invocationId],D.then(()=>this.xt(ct))},this.it[V.invocationId]=(ct,Tt)=>{Tt?lt.error(Tt):ct&&(ct.type===Ct.Completion?ct.error?lt.error(new Error(ct.error)):lt.complete():lt.next(ct.item))},D=this.xt(V).catch(ct=>{lt.error(ct),delete this.it[V.invocationId]}),this.qt(A,D),lt}$t(g){return this.kt(),this.connection.send(g)}xt(g){return this.Pt?this.Pt.A(g):this.$t(this.D.writeMessage(g))}send(g,...S){const[A,_]=this.Ut(S),V=this.xt(this.Mt(g,S,!0,_));return this.qt(A,V),V}invoke(g,...S){const[A,_]=this.Ut(S),V=this.Mt(g,S,!1,_);return new Promise((D,lt)=>{this.it[V.invocationId]=(Tt,Ht)=>{Ht?lt(Ht):Tt&&(Tt.type===Ct.Completion?Tt.error?lt(new Error(Tt.error)):D(Tt.result):lt(new Error(`Unexpected message type: ${Tt.type}`)))};const ct=this.xt(V).catch(Tt=>{lt(Tt),delete this.it[V.invocationId]});this.qt(A,ct)})}on(g,S){g&&S&&(g=g.toLowerCase(),this.nt[g]||(this.nt[g]=[]),this.nt[g].indexOf(S)===-1&&this.nt[g].push(S))}off(g,S){if(!g)return;g=g.toLowerCase();const A=this.nt[g];if(A)if(S){const _=A.indexOf(S);_!==-1&&(A.splice(_,1),A.length===0&&delete this.nt[g])}else delete this.nt[g]}onclose(g){g&&this.rt.push(g)}onreconnecting(g){g&&this.ot.push(g)}onreconnected(g){g&&this.ht.push(g)}et(g){if(this.Ct(),this.lt||(g=this.jt(g),this.lt=!0),g){const S=this.D.parseMessages(g,this.u);for(const A of S)if(!this.Pt||this.Pt.W(A))switch(A.type){case Ct.Invocation:this.Wt(A).catch(_=>{this.u.log(s.Error,`Invoke client method threw error: ${Nt(_)}`)});break;case Ct.StreamItem:case Ct.Completion:{const _=this.it[A.invocationId];if(_){A.type===Ct.Completion&&delete this.it[A.invocationId];try{_(A)}catch(V){this.u.log(s.Error,`Stream callback threw error: ${Nt(V)}`)}}break}case Ct.Ping:break;case Ct.Close:{this.u.log(s.Information,"Close message received from server.");const _=A.error?new Error("Server returned an error on close: "+A.error):void 0;A.allowReconnect===!0?this.connection.stop(_):this.It=this._t(_);break}case Ct.Ack:this.Pt&&this.Pt.N(A);break;case Ct.Sequence:this.Pt&&this.Pt.F(A);break;default:this.u.log(s.Warning,`Invalid message type: ${A.type}.`)}}this.St()}jt(g){let S,A;try{[A,S]=this.tt.parseHandshakeResponse(g)}catch(_){const V="Error parsing handshake response: "+_;this.u.log(s.Error,V);const D=new Error(V);throw this.Et(D),D}if(S.error){const _="Server returned handshake error: "+S.error;this.u.log(s.Error,_);const V=new Error(_);throw this.Et(V),V}return this.u.log(s.Debug,"Server handshake complete."),this.vt(),A}kt(){this.connection.features.inherentKeepAlive||(this.K=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this.Tt())}St(){if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this.Ot=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this.Ft!==void 0))){let g=this.K-new Date().getTime();g<0&&(g=0),this.Ft=setTimeout(async()=>{if(this.ut===Gt.Connected)try{await this.$t(this.ft)}catch{this.Tt()}},g)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async Wt(g){const S=g.target.toLowerCase(),A=this.nt[S];if(!A)return this.u.log(s.Warning,`No client method with the name '${S}' found.`),void(g.invocationId&&(this.u.log(s.Warning,`No result given for '${S}' method and invocation ID '${g.invocationId}'.`),await this.xt(this.Bt(g.invocationId,"Client didn't provide a result.",null))));const _=A.slice(),V=!!g.invocationId;let D,lt,ct;for(const Tt of _)try{const Ht=D;D=await Tt.apply(this,g.arguments),V&&D&&Ht&&(this.u.log(s.Error,`Multiple results provided for '${S}'. Sending error to server.`),ct=this.Bt(g.invocationId,"Client provided multiple results.",null)),lt=void 0}catch(Ht){lt=Ht,this.u.log(s.Error,`A callback for the method '${S}' threw error '${Ht}'.`)}ct?await this.xt(ct):V?(lt?ct=this.Bt(g.invocationId,`${lt}`,null):D!==void 0?ct=this.Bt(g.invocationId,null,D):(this.u.log(s.Warning,`No result given for '${S}' method and invocation ID '${g.invocationId}'.`),ct=this.Bt(g.invocationId,"Client didn't provide a result.",null)),await this.xt(ct)):D&&this.u.log(s.Error,`Result given for '${S}' method but server is not expecting a result.`)}st(g){this.u.log(s.Debug,`HubConnection.connectionClosed(${g}) called while in state ${this.ut}.`),this.bt=this.bt||g||new p("The underlying connection was closed before the hub handshake could complete."),this.vt&&this.vt(),this.Xt(g||new Error("Invocation canceled due to the underlying connection being closed.")),this.Ct(),this.Tt(),this.ut===Gt.Disconnecting?this.Dt(g):this.ut===Gt.Connected&&this.Z?this.Jt(g):this.ut===Gt.Connected&&this.Dt(g)}Dt(g){if(this.dt){this.ut=Gt.Disconnected,this.dt=!1,this.Pt&&(this.Pt.X(g??new Error("Connection closed.")),this.Pt=void 0),mt.isBrowser&&window.document.removeEventListener("freeze",this.G);try{this.rt.forEach(S=>S.apply(this,[g]))}catch(S){this.u.log(s.Error,`An onclose callback called with error '${g}' threw error '${S}'.`)}}}async Jt(g){const S=Date.now();let A=0,_=g!==void 0?g:new Error("Attempting to reconnect due to a unknown error."),V=this.zt(A++,0,_);if(V===null)return this.u.log(s.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this.Dt(g);if(this.ut=Gt.Reconnecting,g?this.u.log(s.Information,`Connection reconnecting because of error '${g}'.`):this.u.log(s.Information,"Connection reconnecting."),this.ot.length!==0){try{this.ot.forEach(D=>D.apply(this,[g]))}catch(D){this.u.log(s.Error,`An onreconnecting callback called with error '${g}' threw error '${D}'.`)}if(this.ut!==Gt.Reconnecting)return void this.u.log(s.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;V!==null;){if(this.u.log(s.Information,`Reconnect attempt number ${A} will start in ${V} ms.`),await new Promise(D=>{this.Ht=setTimeout(D,V)}),this.Ht=void 0,this.ut!==Gt.Reconnecting)return void this.u.log(s.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(await this.yt(),this.ut=Gt.Connected,this.u.log(s.Information,"HubConnection reconnected successfully."),this.ht.length!==0)try{this.ht.forEach(D=>D.apply(this,[this.connection.connectionId]))}catch(D){this.u.log(s.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${D}'.`)}return}catch(D){if(this.u.log(s.Information,`Reconnect attempt failed because of error '${D}'.`),this.ut!==Gt.Reconnecting)return this.u.log(s.Debug,`Connection moved to the '${this.ut}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this.ut===Gt.Disconnecting&&this.Dt());_=D instanceof Error?D:new Error(D.toString()),V=this.zt(A++,Date.now()-S,_)}}this.u.log(s.Information,`Reconnect retries have been exhausted after ${Date.now()-S} ms and ${A} failed attempts. Connection disconnecting.`),this.Dt()}zt(g,S,A){try{return this.Z.nextRetryDelayInMilliseconds({elapsedMilliseconds:S,previousRetryCount:g,retryReason:A})}catch(_){return this.u.log(s.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${g}, ${S}) threw error '${_}'.`),null}}Xt(g){const S=this.it;this.it={},Object.keys(S).forEach(A=>{const _=S[A];try{_(null,g)}catch(V){this.u.log(s.Error,`Stream 'error' callback called with '${g}' threw error: ${Nt(V)}`)}})}Tt(){this.Ft&&(clearTimeout(this.Ft),this.Ft=void 0)}Ct(){this.Ot&&clearTimeout(this.Ot)}Mt(g,S,A,_){if(A)return _.length!==0?{arguments:S,streamIds:_,target:g,type:Ct.Invocation}:{arguments:S,target:g,type:Ct.Invocation};{const V=this.ct;return this.ct++,_.length!==0?{arguments:S,invocationId:V.toString(),streamIds:_,target:g,type:Ct.Invocation}:{arguments:S,invocationId:V.toString(),target:g,type:Ct.Invocation}}}qt(g,S){if(g.length!==0){S||(S=Promise.resolve());for(const A in g)g[A].subscribe({complete:u(()=>{S=S.then(()=>this.xt(this.Bt(A)))},"complete"),error:u(_=>{let V;V=_ instanceof Error?_.message:_&&_.toString?_.toString():"Unknown error",S=S.then(()=>this.xt(this.Bt(A,V)))},"error"),next:u(_=>{S=S.then(()=>this.xt(this.Vt(A,_)))},"next")})}}Ut(g){const S=[],A=[];for(let _=0;_<g.length;_++){const V=g[_];if(this.Kt(V)){const D=this.ct;this.ct++,S[D]=V,A.push(D.toString()),g.splice(_,1)}}return[S,A]}Kt(g){return g&&g.subscribe&&typeof g.subscribe=="function"}Lt(g,S,A){const _=this.ct;return this.ct++,A.length!==0?{arguments:S,invocationId:_.toString(),streamIds:A,target:g,type:Ct.StreamInvocation}:{arguments:S,invocationId:_.toString(),target:g,type:Ct.StreamInvocation}}Nt(g){return{invocationId:g,type:Ct.CancelInvocation}}Vt(g,S){return{invocationId:g,item:S,type:Ct.StreamItem}}Bt(g,S,A){return S?{error:S,invocationId:g,type:Ct.Completion}:{invocationId:g,result:A,type:Ct.Completion}}At(){return{type:Ct.Close}}},h(Oa,"xl"),Oa);u(uC,"q");let pC=uC;const oZ=[0,2e3,1e4,3e4,null],fC=(Zl=class{constructor(g){this.Gt=g!==void 0?[...g,null]:oZ}nextRetryDelayInMilliseconds(g){return this.Gt[g.previousRetryCount]}},h(Zl,"ch"),Zl);u(fC,"j");let yC=fC;const mC=(Vl=class{},h(Vl,"lh"),Vl);u(mC,"W");let va=mC;va.Authorization="Authorization",va.Cookie="Cookie";const wC=(Wl=class extends B{constructor(g,S){super(),this.Qt=g,this.Yt=S}async send(g){let S=!0;this.Yt&&(!this.Zt||g.url&&g.url.indexOf("/negotiate?")>0)&&(S=!1,this.Zt=await this.Yt()),this.te(g);const A=await this.Qt.send(g);return S&&A.statusCode===401&&this.Yt?(this.Zt=await this.Yt(),this.te(g),await this.Qt.send(g)):A}te(g){g.headers||(g.headers={}),this.Zt?g.headers[va.Authorization]=`Bearer ${this.Zt}`:this.Yt&&g.headers[va.Authorization]&&delete g.headers[va.Authorization]}getCookieString(g){return this.Qt.getCookieString(g)}},h(Wl,"dh"),Wl);u(wC,"O");let lZ=wC;var Pe,Ne;(function(X){X[X.None=0]="None",X[X.WebSockets=1]="WebSockets",X[X.ServerSentEvents=2]="ServerSentEvents",X[X.LongPolling=4]="LongPolling"})(Pe||(Pe={})),function(X){X[X.Text=1]="Text",X[X.Binary=2]="Binary"}(Ne||(Ne={}));const gC=(Dl=class{constructor(){this.ee=!1,this.onabort=null}abort(){this.ee||(this.ee=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this.ee}},h(Dl,"hh"),Dl);u(gC,"X");let cZ=gC;const vC=(ql=class{get pollAborted(){return this.se.aborted}constructor(g,S,A){this.$=g,this.u=S,this.se=new cZ,this.ie=A,this.ne=!1,this.onreceive=null,this.onclose=null}async connect(g,S){if(it.isRequired(g,"url"),it.isRequired(S,"transferFormat"),it.isIn(S,Ne,"transferFormat"),this.re=g,this.u.log(s.Trace,"(LongPolling transport) Connecting."),S===Ne.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[A,_]=we(),V={[A]:_,...this.ie.headers},D={abortSignal:this.se.signal,headers:V,timeout:1e5,withCredentials:this.ie.withCredentials};S===Ne.Binary&&(D.responseType="arraybuffer");const lt=`${g}&_=${Date.now()}`;this.u.log(s.Trace,`(LongPolling transport) polling: ${lt}.`);const ct=await this.$.get(lt,D);ct.statusCode!==200?(this.u.log(s.Error,`(LongPolling transport) Unexpected response code: ${ct.statusCode}.`),this.oe=new o(ct.statusText||"",ct.statusCode),this.ne=!1):this.ne=!0,this.he=this.ce(this.re,D)}async ce(g,S){try{for(;this.ne;)try{const A=`${g}&_=${Date.now()}`;this.u.log(s.Trace,`(LongPolling transport) polling: ${A}.`);const _=await this.$.get(A,S);_.statusCode===204?(this.u.log(s.Information,"(LongPolling transport) Poll terminated by server."),this.ne=!1):_.statusCode!==200?(this.u.log(s.Error,`(LongPolling transport) Unexpected response code: ${_.statusCode}.`),this.oe=new o(_.statusText||"",_.statusCode),this.ne=!1):_.content?(this.u.log(s.Trace,`(LongPolling transport) data received. ${Zt(_.content,this.ie.logMessageContent)}.`),this.onreceive&&this.onreceive(_.content)):this.u.log(s.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(A){this.ne?A instanceof c?this.u.log(s.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.oe=A,this.ne=!1):this.u.log(s.Trace,`(LongPolling transport) Poll errored after shutdown: ${A.message}`)}}finally{this.u.log(s.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.ae()}}async send(g){return this.ne?Rt(this.u,"LongPolling",this.$,this.re,g,this.ie):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this.u.log(s.Trace,"(LongPolling transport) Stopping polling."),this.ne=!1,this.se.abort();try{await this.he,this.u.log(s.Trace,`(LongPolling transport) sending DELETE request to ${this.re}.`);const g={},[S,A]=we();g[S]=A;const _={headers:{...g,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials};let V;try{await this.$.delete(this.re,_)}catch(D){V=D}V?V instanceof o&&(V.statusCode===404?this.u.log(s.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this.u.log(s.Trace,`(LongPolling transport) Error sending a DELETE request: ${V}`)):this.u.log(s.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this.u.log(s.Trace,"(LongPolling transport) Stop finished."),this.ae()}}ae(){if(this.onclose){let g="(LongPolling transport) Firing onclose event.";this.oe&&(g+=" Error: "+this.oe),this.u.log(s.Trace,g),this.onclose(this.oe)}}},h(ql,"uh"),ql);u(vC,"J");let OC=vC;const bC=(Ul=class{constructor(g,S,A,_){this.$=g,this.Zt=S,this.u=A,this.ie=_,this.onreceive=null,this.onclose=null}async connect(g,S){return it.isRequired(g,"url"),it.isRequired(S,"transferFormat"),it.isIn(S,Ne,"transferFormat"),this.u.log(s.Trace,"(SSE transport) Connecting."),this.re=g,this.Zt&&(g+=(g.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this.Zt)}`),new Promise((A,_)=>{let V,D=!1;if(S===Ne.Text){if(mt.isBrowser||mt.isWebWorker)V=new this.ie.EventSource(g,{withCredentials:this.ie.withCredentials});else{const lt=this.$.getCookieString(g),ct={};ct.Cookie=lt;const[Tt,Ht]=we();ct[Tt]=Ht,V=new this.ie.EventSource(g,{withCredentials:this.ie.withCredentials,headers:{...ct,...this.ie.headers}})}try{V.onmessage=lt=>{if(this.onreceive)try{this.u.log(s.Trace,`(SSE transport) data received. ${Zt(lt.data,this.ie.logMessageContent)}.`),this.onreceive(lt.data)}catch(ct){return void this.le(ct)}},V.onerror=lt=>{D?this.le():_(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},V.onopen=()=>{this.u.log(s.Information,`SSE connected to ${this.re}`),this.ue=V,D=!0,A()}}catch(lt){return void _(lt)}}else _(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})}async send(g){return this.ue?Rt(this.u,"SSE",this.$,this.re,g,this.ie):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this.le(),Promise.resolve()}le(g){this.ue&&(this.ue.close(),this.ue=void 0,this.onclose&&this.onclose(g))}},h(Ul,"ph"),Ul);u(bC,"z");let hZ=bC;const $C=(jl=class{constructor(g,S,A,_,V,D){this.u=A,this.Yt=S,this.de=_,this.fe=V,this.$=g,this.onreceive=null,this.onclose=null,this.pe=D}async connect(g,S){let A;return it.isRequired(g,"url"),it.isRequired(S,"transferFormat"),it.isIn(S,Ne,"transferFormat"),this.u.log(s.Trace,"(WebSockets transport) Connecting."),this.Yt&&(A=await this.Yt()),new Promise((_,V)=>{let D;g=g.replace(/^http/,"ws");const lt=this.$.getCookieString(g);let ct=!1;if(mt.isNode||mt.isReactNative){const Tt={},[Ht,Hl]=we();Tt[Ht]=Hl,A&&(Tt[va.Authorization]=`Bearer ${A}`),lt&&(Tt[va.Cookie]=lt),D=new this.fe(g,void 0,{headers:{...Tt,...this.pe}})}else A&&(g+=(g.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(A)}`);D||(D=new this.fe(g)),S===Ne.Binary&&(D.binaryType="arraybuffer"),D.onopen=Tt=>{this.u.log(s.Information,`WebSocket connected to ${g}.`),this.we=D,ct=!0,_()},D.onerror=Tt=>{let Ht=null;Ht=typeof ErrorEvent<"u"&&Tt instanceof ErrorEvent?Tt.error:"There was an error with the transport",this.u.log(s.Information,`(WebSockets transport) ${Ht}.`)},D.onmessage=Tt=>{if(this.u.log(s.Trace,`(WebSockets transport) data received. ${Zt(Tt.data,this.de)}.`),this.onreceive)try{this.onreceive(Tt.data)}catch(Ht){return void this.le(Ht)}},D.onclose=Tt=>{if(ct)this.le(Tt);else{let Ht=null;Ht=typeof ErrorEvent<"u"&&Tt instanceof ErrorEvent?Tt.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",V(new Error(Ht))}}})}send(g){return this.we&&this.we.readyState===this.fe.OPEN?(this.u.log(s.Trace,`(WebSockets transport) sending data. ${Zt(g,this.de)}.`),this.we.send(g),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this.we&&this.le(void 0),Promise.resolve()}le(g){this.we&&(this.we.onclose=()=>{},this.we.onmessage=()=>{},this.we.onerror=()=>{},this.we.close(),this.we=void 0),this.u.log(s.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this.ge(g)||g.wasClean!==!1&&g.code===1e3?g instanceof Error?this.onclose(g):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${g.code} (${g.reason||"no reason given"}).`)))}ge(g){return g&&typeof g.wasClean=="boolean"&&typeof g.code=="number"}},h(jl,"yh"),jl);u($C,"V");let dZ=$C;const xC=(Bl=class{constructor(g,S={}){var A;if(this.me=()=>{},this.features={},this.ye=1,it.isRequired(g,"url"),this.u=(A=S.logger)===void 0?new ne(s.Information):A===null?K.instance:A.log!==void 0?A:new ne(A),this.baseUrl=this.be(g),(S=S||{}).logMessageContent=S.logMessageContent!==void 0&&S.logMessageContent,typeof S.withCredentials!="boolean"&&S.withCredentials!==void 0)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");S.withCredentials=S.withCredentials===void 0||S.withCredentials,S.timeout=S.timeout===void 0?1e5:S.timeout;let _=null,V=null;if(mt.isNode){const D=v1;_=D("ws"),V=D("eventsource")}mt.isNode||typeof WebSocket>"u"||S.WebSocket?mt.isNode&&!S.WebSocket&&_&&(S.WebSocket=_):S.WebSocket=WebSocket,mt.isNode||typeof EventSource>"u"||S.EventSource?mt.isNode&&!S.EventSource&&V!==void 0&&(S.EventSource=V):S.EventSource=EventSource,this.$=new lZ(S.httpClient||new rC(this.u),S.accessTokenFactory),this.ut="Disconnected",this.dt=!1,this.ie=S,this.onreceive=null,this.onclose=null}async start(g){if(g=g||Ne.Binary,it.isIn(g,Ne,"transferFormat"),this.u.log(s.Debug,`Starting connection with transfer format '${Ne[g]}'.`),this.ut!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this.ut="Connecting",this.ve=this.yt(g),await this.ve,this.ut==="Disconnecting"){const S="Failed to start the HttpConnection before stop() was called.";return this.u.log(s.Error,S),await this.It,Promise.reject(new p(S))}if(this.ut!=="Connected"){const S="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this.u.log(s.Error,S),Promise.reject(new p(S))}this.dt=!0}send(g){return this.ut!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.Ee||(this.Ee=new pZ(this.transport)),this.Ee.send(g))}async stop(g){return this.ut==="Disconnected"?(this.u.log(s.Debug,`Call to HttpConnection.stop(${g}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):this.ut==="Disconnecting"?(this.u.log(s.Debug,`Call to HttpConnection.stop(${g}) ignored because the connection is already in the disconnecting state.`),this.It):(this.ut="Disconnecting",this.It=new Promise(S=>{this.me=S}),await this._t(g),void await this.It)}async _t(g){this.$e=g;try{await this.ve}catch{}if(this.transport){try{await this.transport.stop()}catch(S){this.u.log(s.Error,`HttpConnection.transport.stop() threw error '${S}'.`),this.Ce()}this.transport=void 0}else this.u.log(s.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async yt(g){let S=this.baseUrl;this.Yt=this.ie.accessTokenFactory,this.$.Yt=this.Yt;try{if(this.ie.skipNegotiation){if(this.ie.transport!==Pe.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this.Se(Pe.WebSockets),await this.ke(S,g)}else{let A=null,_=0;do{if(A=await this.Pe(S),this.ut==="Disconnecting"||this.ut==="Disconnected")throw new p("The connection was stopped during negotiation.");if(A.error)throw new Error(A.error);if(A.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(A.url&&(S=A.url),A.accessToken){const V=A.accessToken;this.Yt=()=>V,this.$.Zt=V,this.$.Yt=void 0}_++}while(A.url&&_<100);if(_===100&&A.url)throw new Error("Negotiate redirection limit exceeded.");await this.Te(S,this.ie.transport,A,g)}this.transport instanceof OC&&(this.features.inherentKeepAlive=!0),this.ut==="Connecting"&&(this.u.log(s.Debug,"The HttpConnection connected successfully."),this.ut="Connected")}catch(A){return this.u.log(s.Error,"Failed to start the connection: "+A),this.ut="Disconnected",this.transport=void 0,this.me(),Promise.reject(A)}}async Pe(g){const S={},[A,_]=we();S[A]=_;const V=this.Ie(g);this.u.log(s.Debug,`Sending negotiation request: ${V}.`);try{const D=await this.$.post(V,{content:"",headers:{...S,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials});if(D.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${D.statusCode}'`));const lt=JSON.parse(D.content);return(!lt.negotiateVersion||lt.negotiateVersion<1)&&(lt.connectionToken=lt.connectionId),lt.useStatefulReconnect&&this.ie._e!==!0?Promise.reject(new R("Client didn't negotiate Stateful Reconnect but the server did.")):lt}catch(D){let lt="Failed to complete negotiation with the server: "+D;return D instanceof o&&D.statusCode===404&&(lt+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this.u.log(s.Error,lt),Promise.reject(new R(lt))}}He(g,S){return S?g+(g.indexOf("?")===-1?"?":"&")+`id=${S}`:g}async Te(g,S,A,_){let V=this.He(g,A.connectionToken);if(this.De(S))return this.u.log(s.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=S,await this.ke(V,_),void(this.connectionId=A.connectionId);const D=[],lt=A.availableTransports||[];let ct=A;for(const Tt of lt){const Ht=this.Re(Tt,S,_,(ct==null?void 0:ct.useStatefulReconnect)===!0);if(Ht instanceof Error)D.push(`${Tt.transport} failed:`),D.push(Ht);else if(this.De(Ht)){if(this.transport=Ht,!ct){try{ct=await this.Pe(g)}catch(Hl){return Promise.reject(Hl)}V=this.He(g,ct.connectionToken)}try{return await this.ke(V,_),void(this.connectionId=ct.connectionId)}catch(Hl){if(this.u.log(s.Error,`Failed to start the transport '${Tt.transport}': ${Hl}`),ct=void 0,D.push(new b(`${Tt.transport} failed: ${Hl}`,Pe[Tt.transport])),this.ut!=="Connecting"){const MC="Failed to select transport before stop() was called.";return this.u.log(s.Debug,MC),Promise.reject(new p(MC))}}}}return D.length>0?Promise.reject(new T(`Unable to connect to the server with any of the available transports. ${D.join(" ")}`,D)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}Se(g){switch(g){case Pe.WebSockets:if(!this.ie.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new dZ(this.$,this.Yt,this.u,this.ie.logMessageContent,this.ie.WebSocket,this.ie.headers||{});case Pe.ServerSentEvents:if(!this.ie.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new hZ(this.$,this.$.Zt,this.u,this.ie);case Pe.LongPolling:return new OC(this.$,this.u,this.ie);default:throw new Error(`Unknown transport: ${g}.`)}}ke(g,S){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async A=>{let _=!1;if(this.features.reconnect){try{this.features.disconnected(),await this.transport.connect(g,S),await this.features.resend()}catch{_=!0}_&&this.Ce(A)}else this.Ce(A)}:this.transport.onclose=A=>this.Ce(A),this.transport.connect(g,S)}Re(g,S,A,_){const V=Pe[g.transport];if(V==null)return this.u.log(s.Debug,`Skipping transport '${g.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${g.transport}' because it is not supported by this client.`);if(!function(D,lt){return!D||(lt&D)!=0}(S,V))return this.u.log(s.Debug,`Skipping transport '${Pe[V]}' because it was disabled by the client.`),new O(`'${Pe[V]}' is disabled by the client.`,V);if(!(g.transferFormats.map(D=>Ne[D]).indexOf(A)>=0))return this.u.log(s.Debug,`Skipping transport '${Pe[V]}' because it does not support the requested transfer format '${Ne[A]}'.`),new Error(`'${Pe[V]}' does not support ${Ne[A]}.`);if(V===Pe.WebSockets&&!this.ie.WebSocket||V===Pe.ServerSentEvents&&!this.ie.EventSource)return this.u.log(s.Debug,`Skipping transport '${Pe[V]}' because it is not supported in your environment.'`),new m(`'${Pe[V]}' is not supported in your environment.`,V);this.u.log(s.Debug,`Selecting transport '${Pe[V]}'.`);try{return this.features.reconnect=V===Pe.WebSockets?_:void 0,this.Se(V)}catch(D){return D}}De(g){return g&&typeof g=="object"&&"connect"in g}Ce(g){if(this.u.log(s.Debug,`HttpConnection.stopConnection(${g}) called while in state ${this.ut}.`),this.transport=void 0,g=this.$e||g,this.$e=void 0,this.ut!=="Disconnected"){if(this.ut==="Connecting")throw this.u.log(s.Warning,`Call to HttpConnection.stopConnection(${g}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${g}) was called while the connection is still in the connecting state.`);if(this.ut==="Disconnecting"&&this.me(),g?this.u.log(s.Error,`Connection disconnected with error '${g}'.`):this.u.log(s.Information,"Connection disconnected."),this.Ee&&(this.Ee.stop().catch(S=>{this.u.log(s.Error,`TransportSendQueue.stop() threw error '${S}'.`)}),this.Ee=void 0),this.connectionId=void 0,this.ut="Disconnected",this.dt){this.dt=!1;try{this.onclose&&this.onclose(g)}catch(S){this.u.log(s.Error,`HttpConnection.onclose(${g}) threw error '${S}'.`)}}}else this.u.log(s.Debug,`Call to HttpConnection.stopConnection(${g}) was ignored because the connection is already in the disconnected state.`)}be(g){if(g.lastIndexOf("https://",0)===0||g.lastIndexOf("http://",0)===0)return g;if(!mt.isBrowser)throw new Error(`Cannot resolve '${g}'.`);const S=window.document.createElement("a");return S.href=g,this.u.log(s.Information,`Normalizing '${g}' to '${S.href}'.`),S.href}Ie(g){const S=new URL(g);S.pathname.endsWith("/")?S.pathname+="negotiate":S.pathname+="/negotiate";const A=new URLSearchParams(S.searchParams);return A.has("negotiateVersion")||A.append("negotiateVersion",this.ye.toString()),A.has("useStatefulReconnect")?A.get("useStatefulReconnect")==="true"&&(this.ie._e=!0):this.ie._e===!0&&A.append("useStatefulReconnect","true"),S.search=A.toString(),S.toString()}},h(Bl,"wh"),Bl);u(xC,"K");let uZ=xC;const kC=(ba=class{constructor(g){this.xe=g,this.Ae=[],this.Ue=!0,this.Le=new Sg,this.Ne=new Sg,this.qe=this.Me()}send(g){return this.je(g),this.Ne||(this.Ne=new Sg),this.Ne.promise}stop(){return this.Ue=!1,this.Le.resolve(),this.qe}je(g){if(this.Ae.length&&typeof this.Ae[0]!=typeof g)throw new Error(`Expected data to be of type ${typeof this.Ae} but was of type ${typeof g}`);this.Ae.push(g),this.Le.resolve()}async Me(){for(;;){if(await this.Le.promise,!this.Ue){this.Ne&&this.Ne.reject("Connection stopped.");break}this.Le=new Sg;const g=this.Ne;this.Ne=void 0;const S=typeof this.Ae[0]=="string"?this.Ae.join(""):ba.We(this.Ae);this.Ae.length=0;try{await this.xe.send(S),g.resolve()}catch(A){g.reject(A)}}}static We(g){const S=g.map(V=>V.byteLength).reduce((V,D)=>V+D),A=new Uint8Array(S);let _=0;for(const V of g)A.set(new Uint8Array(V),_),_+=V.byteLength;return A.buffer}},h(ba,"$l"),ba);u(kC,"G");let pZ=kC;const SC=(Fl=class{constructor(){this.promise=new Promise((g,S)=>[this.j,this.Oe]=[g,S])}resolve(){this.j()}reject(g){this.Oe(g)}},h(Fl,"fh"),Fl);u(SC,"Q");let Sg=SC;const PC=(Xl=class{constructor(){this.name="json",this.version=2,this.transferFormat=Ne.Text}parseMessages(g,S){if(typeof g!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!g)return[];S===null&&(S=K.instance);const A=ms.parse(g),_=[];for(const V of A){const D=JSON.parse(V);if(typeof D.type!="number")throw new Error("Invalid payload.");switch(D.type){case Ct.Invocation:this.U(D);break;case Ct.StreamItem:this.Fe(D);break;case Ct.Completion:this.Be(D);break;case Ct.Ping:case Ct.Close:break;case Ct.Ack:this.Xe(D);break;case Ct.Sequence:this.Je(D);break;default:S.log(s.Information,"Unknown message type '"+D.type+"' ignored.");continue}_.push(D)}return _}writeMessage(g){return ms.write(JSON.stringify(g))}U(g){this.ze(g.target,"Invalid payload for Invocation message."),g.invocationId!==void 0&&this.ze(g.invocationId,"Invalid payload for Invocation message.")}Fe(g){if(this.ze(g.invocationId,"Invalid payload for StreamItem message."),g.item===void 0)throw new Error("Invalid payload for StreamItem message.")}Be(g){if(g.result&&g.error)throw new Error("Invalid payload for Completion message.");!g.result&&g.error&&this.ze(g.error,"Invalid payload for Completion message."),this.ze(g.invocationId,"Invalid payload for Completion message.")}Xe(g){if(typeof g.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}Je(g){if(typeof g.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}ze(g,S){if(typeof g!="string"||g==="")throw new Error(S)}},h(Xl,"mh"),Xl);u(PC,"Y");let CC=PC;const fZ={trace:s.Trace,debug:s.Debug,info:s.Information,information:s.Information,warn:s.Warning,warning:s.Warning,error:s.Error,critical:s.Critical,none:s.None},QC=(Nl=class{configureLogging(g){if(it.isRequired(g,"logging"),g.log!==void 0)this.logger=g;else if(typeof g=="string"){const S=function(A){const _=fZ[A.toLowerCase()];if(_!==void 0)return _;throw new Error(`Unknown log level: ${A}`)}(g);this.logger=new ne(S)}else this.logger=new ne(g);return this}withUrl(g,S){return it.isRequired(g,"url"),it.isNotEmpty(g,"url"),this.url=g,this.httpConnectionOptions=typeof S=="object"?{...this.httpConnectionOptions,...S}:{...this.httpConnectionOptions,transport:S},this}withHubProtocol(g){return it.isRequired(g,"protocol"),this.protocol=g,this}withAutomaticReconnect(g){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return g?Array.isArray(g)?this.reconnectPolicy=new yC(g):this.reconnectPolicy=g:this.reconnectPolicy=new yC,this}withServerTimeout(g){return it.isRequired(g,"milliseconds"),this.Ve=g,this}withKeepAliveInterval(g){return it.isRequired(g,"milliseconds"),this.Ke=g,this}withStatefulReconnect(g){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._e=!0,this.Y=g==null?void 0:g.bufferSize,this}build(){const g=this.httpConnectionOptions||{};if(g.logger===void 0&&(g.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const S=new uZ(this.url,g);return pC.create(S,this.logger||K.instance,this.protocol||new CC,this.reconnectPolicy,this.Ve,this.Ke,this.Y)}},h(Nl,"vh"),Nl);u(QC,"tt");let yZ=QC;return Uint8Array.prototype.indexOf||Object.defineProperty(Uint8Array.prototype,"indexOf",{value:Array.prototype.indexOf,writable:!0}),Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:u(function(X,g){return new Uint8Array(Array.prototype.slice.call(this,X,g))},"value"),writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,"forEach",{value:Array.prototype.forEach,writable:!0}),r})(),"e"),n.exports=e()}(o3)),o3.exports}h(lE,"H1");u(lE,"requireSignalr_min");var c3=lE();const Rj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._whenConnectionRequested=new Promise(r=>{this._resolveConnectionRequested=r}),this._whenConnectionCreated=new Promise(r=>{this._resolveConnectionCreated=r}),this._connectionEventListeners=[],this.signalRAccessTokenRefresh=!1,this._whenConnectionStarted=new Promise((r,a)=>{this._whenConnectionStartedResolve=r,this._whenConnectionStartedReject=a}),this.whenConnectionRequested().then(()=>{this.isDestroyed||this.createConnection()})}async whenConnectionRequested(){await this._whenConnectionRequested}async whenConnectionCreated(){return await this._whenConnectionCreated}get rtmConnection(){return this._connection}async whenConnectionStarted(){return await this._whenConnectionStarted}async createConnection(){var s;if(this.isDestroyed)throw new Ce;if(this.networkStateIsPending=!0,await this.whenUrlAndTokenFactory(),this._connection){const r=new URL("/hubs/rtm",this.url);this._connection.baseUrl!==r.toString()&&(this.connectionState="reconnecting",console.info(this.weavyId,"Reconnecting due to changed url.",this._connection.baseUrl,"=>",r.toString()),await this.disconnect(),this._connection.baseUrl=r.toString(),this.connect())}else{this.connectionState="connecting";const r=new URL("/hubs/rtm",this.url);this._connection=new c3.HubConnectionBuilder().configureLogging(c3.LogLevel.None).withUrl(r.toString(),{accessTokenFactory:u(async()=>{try{if(this.signalRAccessTokenRefresh){const a=await this.getToken(!0);return this.signalRAccessTokenRefresh=!1,a}else return await this.getToken()}catch(a){throw console.error(a),a}},"accessTokenFactory")}).withAutomaticReconnect({nextRetryDelayInMilliseconds:u(a=>!this.isDestroyed&&window.navigator.onLine&&(document==null?void 0:document.visibilityState)!=="hidden"&&a.elapsedMilliseconds<6e4?[0,2e3,1e4][a.previousRetryCount]||1e4:null,"nextRetryDelayInMilliseconds")}).build(),this._connection.onclose(()=>{console.info(this.weavyId,"SignalR closed."),this.connectionState="disconnected",!this.isDestroyed&&(this.networkStateIsPending=!0,this._whenConnectionStarted=new Promise((a,o)=>{this._whenConnectionStartedResolve=a,this._whenConnectionStartedReject=o}),this.connect())}),this._connection.onreconnecting(()=>{console.info(this.weavyId,"SignalR reconnecting..."),this.connectionState="reconnecting"}),this._connection.onreconnected(()=>{var a;console.info(this.weavyId,"SignalR reconnected."),this.connectionState="connected",this.networkStateIsPending=!1;for(let o=0;o<this._connectionEventListeners.length;o++)(a=this._connection)==null||a.invoke("Subscribe",this._connectionEventListeners[o].name)}),(s=this._resolveConnectionCreated)==null||s.call(this,this._connection),this.connect()}return this._connection}async disconnect(){this._connection&&(await this._connection.stop(),this.connectionState="disconnected")}async connect(){var s;if(this.isDestroyed)throw new Ce;let r;this._connection?r=this._connection:r=await this.whenConnectionCreated(),console.info(this.weavyId,"Connecting SignalR...");try{if(!window.navigator.onLine)throw new Error;await Promise.race([r.start(),this.whenConnectionStarted()]),this.signalRAccessTokenRefresh=!1,this.networkStateIsPending=!1,this.connectionState="connected",(s=this._whenConnectionStartedResolve)==null||s.call(this,r),console.info(this.weavyId,"SignalR connected.")}catch(a){if(a instanceof Ce)return console.warn(this.weavyId,"SignalR connection aborted."),r;window.navigator.onLine?!this.signalRAccessTokenRefresh&&window.document.visibilityState!=="hidden"&&a.toString().includes("Unauthorized")?(console.info(this.weavyId,"Retrying SignalR connect with fresh token."),this.signalRAccessTokenRefresh=!0):(console.info(this.weavyId,"Server is probably down, retrying SignalR connect after a delay or when window regains focus."),this.connectionState="reconnecting",await new Promise(o=>{setTimeout(o,5e3),window.addEventListener("visibilitychange",o,{once:!0}),window.addEventListener("offline",o,{once:!0}),window.addEventListener("online",o,{once:!0})})):(this.networkStateIsPending=!1,console.info(this.weavyId,"Offline, reconnecting SignalR when online."),await new Promise(o=>{window.addEventListener("online",o,{once:!0})})),window.navigator.onLine&&(document==null?void 0:document.visibilityState)!=="hidden"&&await new Promise(o=>setTimeout(o,1e3)),this.checkVersion(),this.networkStateIsPending=!0,await this.connect()}return r}async subscribe(s,r,a){var o;if(this.isDestroyed)throw new Ce;(o=this._resolveConnectionRequested)==null||o.call(this,!0);try{const l=s?s+":"+r:r;if(this._connectionEventListeners||await new Promise(c=>queueMicrotask(()=>c(!0))),this._connectionEventListeners.some(c=>c.name===l&&c.callback===a))throw new Error("Duplicate subscribe: "+l);if(this._connectionEventListeners.push({name:l,callback:a}),await this.whenConnectionStarted(),!this._connection)throw new Error("Connection not created");this._connection.on(l,a),await this._connection.invoke("Subscribe",l)}catch(l){l instanceof Ce||console.error(this.weavyId,"Error in Subscribe:",l)}}async unsubscribe(s,r,a){var o;if(this.isDestroyed)throw new Ce;try{const l=s?s+":"+r:r,c=this._connectionEventListeners.findIndex(d=>d.name===l&&d.callback===a);if(c!==-1){if(this._connectionEventListeners.splice(c,1),await this.whenConnectionStarted(),!this._connection)throw new Error("Connection not created");(o=this._connection)==null||o.off(l,a),this._connectionEventListeners.some(d=>d.name===l)||await this._connection.invoke("Unsubscribe",l)}}catch(l){l instanceof Ce||console.error(this.weavyId,"Error in Unsubscribe:",l)}}destroy(){super.destroy(),this.disconnect(),this._whenConnectionStartedReject&&(this._whenConnectionStarted.catch(()=>{}),this._whenConnectionStartedReject(new Ce))}},h(e,"t"),e),u(t,"WeavyConnection"),t},"WeavyConnectionMixin");var zv=(n=>(n.JSON="application/json;charset=utf-8",n.FormData="multipart/form-data;charset=utf-8",n.URLEncoded="application/x-www-form-urlencoded;charset=utf-8",n.Text="text/plain;charset=utf-8",n.Auto="",n))(zv||{});const Ej=u(n=>{var e;var t;return t=(e=class extends n{async fetchOptions(s={},r=!0){if(this.isDestroyed)throw new Ce;const a={headers:{"X-Weavy-Source":`${Me.sourceName}@${Me.version}`,"Content-Type":zv.JSON},method:"GET"},o=rw(rw(Oj,a,!0),s,!0);return r?rw(o,{headers:{Authorization:"Bearer "+await this.getToken()}},!0):o}async fetch(s,r,a=!0){if(this.isDestroyed)throw new Ce;const o=await this.fetchOptions(r);this.networkStateIsPending=!0;const l=await fetch(new URL(s,this.url),o);if(l.ok)this.networkStateIsPending=!1,this.serverState="ok";else if(l.status===401||l.status===403){if(a)return await this.getToken(!0),await this.fetch(s,r,!1);this.networkStateIsPending=!1,this.serverState="unauthorized"}else this.networkStateIsPending=!1;return l}async upload(s,r,a,o=zv.JSON,l,c=!0){if(this.isDestroyed)throw new Ce;const d=await this.getToken();return await new Promise((p,f)=>{const m=new XMLHttpRequest;m.open(r,new URL(s,this.url),!0),m.setRequestHeader("Authorization","Bearer "+d),m.setRequestHeader("X-Weavy-Source",`${Me.sourceName}@${Me.version}`),o&&m.setRequestHeader("Content-Type",o),l&&m.upload.addEventListener("progress",w=>{l(w.loaded/w.total*100||100)}),m.onload=w=>{c&&(m.status===401||m.status===401)?this.getToken(!0).then(()=>this.upload(s,r,a,o,l,!1)).then(p).catch(f):p(new Response(m.response,{status:m.status,statusText:m.statusText}))},m.onerror=f,m.send(a)})}async get(s){return console.warn(`weavy.get() is deprecated, use weavy.fetch("${s}") instead.`),this.fetch(s)}async post(s,r,a,o){console.warn(`weavy.post() is deprecated, use weavy.fetch("${s}", { method: "${r}"}) instead.`);const l=o?{"Content-Type":o}:void 0;return this.fetch(s,{method:r,body:a,headers:l})}},h(e,"t"),e),u(t,"WeavyFetch"),t},"WeavyFetchMixin"),cE="en",_j=u(n=>{var e;var t;return t=(e=class extends n{constructor(){super(...arguments),this._locales=new Map([["sv-SE",()=>import(new URL("./es/locales/sv-SE.js",typeof WEAVY_IMPORT_URL=="string"&&(!(typeof document>"u"?require("url").pathToFileURL(__filename).href:wt&&wt.tagName.toUpperCase()==="SCRIPT"&&wt.src||new URL("weavy.cjs",document.baseURI).href)||!new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:wt&&wt.tagName.toUpperCase()==="SCRIPT"&&wt.src||new URL("weavy.cjs",document.baseURI).href).href.startsWith(WEAVY_IMPORT_URL))?WEAVY_IMPORT_URL:typeof document>"u"?require("url").pathToFileURL(__filename).href:wt&&wt.tagName.toUpperCase()==="SCRIPT"&&wt.src||new URL("weavy.cjs",document.baseURI).href).href).then(s=>s.svSE)]]),this._locale=t.sourceLocale}static get sourceLocale(){try{return cE}catch{return""}}get locales(){return Array.from(this._locales.entries())}set locales(s){if(this.isDestroyed)throw new Ce;if(this.localization)throw new Error("Locales may only be configured once");if(s){if(!Array.isArray(s))throw new TypeError("Provided locales have invalid format.");s.forEach(r=>{if(!Array.isArray(r)||r.length!==2||typeof r[0]!="string")throw new TypeError("Invalid locale provided: "+r[0]);this._locales.set(...r)}),this.configureLocalization()}}get localization(){return this._localization}get locale(){return this._locale}set locale(s){if(this.isDestroyed)throw new Ce;!this._locale&&!s||(s||(s=t.sourceLocale),this._locale=s,this.localization?this.localization.setLocale(this._locale):queueMicrotask(()=>{this.localization?this.localization.setLocale(this._locale):this._locale!==t.sourceLocale&&(this._locales.has(this._locale)&&this.configureLocalization(),this.localization?this.localization.setLocale(this._locale):console.error(this.weavyId,`You need to configure additional languages in config to use '${s}'.`))}))}async loadLocale(s){var r;if(this.isDestroyed)throw new Ce;if((r=this._locales)!=null&&r.has(s)){const a=this._locales.get(s);return console.info(this.weavyId,typeof a=="function"?"loading locale":"preloaded locale",s),await(typeof a=="function"?a():a)}else throw new Error("The requested locale is not configured")}configureLocalization(){var s;if(this.isDestroyed)throw new Ce;if((s=this._locales)!=null&&s.size&&!this.localization){const r=this._locales.keys();console.info(this.weavyId,"Configuring locales",r);const{getLocale:a,setLocale:o}=VU({sourceLocale:t.sourceLocale,targetLocales:r,loadLocale:u(l=>this.loadLocale(l),"loadLocale")});this._localization={getLocale:a,setLocale:o}}}},h(e,"t"),e),u(t,"WeavyLocalization"),t},"WeavyLocalizationMixin"),zj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._networkEvents=new Set,this._connectionState="connecting",this._serverState="ok",this._networkState=window.navigator.onLine?"online":"offline",this._networkStateIsPending=!1,window.addEventListener("online",()=>{this.networkState="online"}),window.addEventListener("offline",()=>{this.networkState="offline",this.networkStateIsPending=!1})}get networkState(){return this._networkState}set networkState(s){this._networkState=s,this.triggerNetworkChange()}get serverState(){return this._serverState}set serverState(s){this._serverState=s,this.triggerNetworkChange()}get connectionState(){return this._connectionState}set connectionState(s){this._connectionState=s,this.triggerNetworkChange()}get networkStateIsPending(){return this._networkStateIsPending}set networkStateIsPending(s){this._networkStateIsPending=s,this.triggerNetworkChange()}get network(){return{state:this._networkState==="online"?this._connectionState==="connected"||this._serverState==="ok"?"online":"unreachable":"offline",isPending:this._networkStateIsPending}}triggerNetworkChange(){const s=this.network;this._networkEvents.forEach(r=>{r(s)})}addNetworkListener(s){this._networkEvents.add(s)}removeNetworkListener(s){this._networkEvents.delete(s)}},h(e,"t"),e),u(t,"WeavyNetwork"),t},"WeavyNetworkMixin");function O1(){}h(O1,"Ch");u(O1,"noop");function hE({storage:n,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:e=1e3,serialize:i=JSON.stringify,deserialize:s=JSON.parse,retry:r}){if(n){const a=u(o=>{try{n.setItem(t,i(o));return}catch(l){return l}},"trySave");return{persistClient:dE(o=>{let l=o,c=a(l),d=0;for(;c&&l;)d++,l=r==null?void 0:r({persistedClient:l,error:c,errorCount:d}),l&&(c=a(l))},e),restoreClient:u(()=>{const o=n.getItem(t);if(o)return s(o)},"restoreClient"),removeClient:u(()=>{n.removeItem(t)},"removeClient")}}return{persistClient:O1,restoreClient:O1,removeClient:O1}}h(hE,"N1");u(hE,"createSyncStoragePersister");function dE(n,t=100){let e=null,i;return function(...s){i=s,e===null&&(e=setTimeout(()=>{n(...i),e=null},t))}}h(dE,"j1");u(dE,"throttle$1");var Lj=["added","removed","updated"];function Kx(n){return Lj.includes(n)}h(Kx,"ly");u(Kx,"isCacheEventType");async function uE({queryClient:n,persister:t,maxAge:e=1e3*60*60*24,buster:i="",hydrateOptions:s}){try{const r=await t.restoreClient();if(r)if(r.timestamp){const a=Date.now()-r.timestamp>e,o=r.buster!==i;if(a||o)return t.removeClient();GR(n,r.clientState,s)}else return t.removeClient()}catch(r){throw await t.removeClient(),r}}h(uE,"Q1");u(uE,"persistQueryClientRestore");async function Jx({queryClient:n,persister:t,buster:e="",dehydrateOptions:i}){const s={buster:e,timestamp:Date.now(),clientState:YR(n,i)};await t.persistClient(s)}h(Jx,"dy");u(Jx,"persistQueryClientSave");function pE(n){const t=n.queryClient.getQueryCache().subscribe(i=>{Kx(i.type)&&Jx(n)}),e=n.queryClient.getMutationCache().subscribe(i=>{Kx(i.type)&&Jx(n)});return()=>{t(),e()}}h(pE,"K1");u(pE,"persistQueryClientSubscribe");const Ij=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._queryClient=new Qj({defaultOptions:{queries:{staleTime:this.staleTime,gcTime:this.gcTime}}}),this.initQueryClient()}get queryClient(){return this._queryClient}async initQueryClient(){if(this.isDestroyed)throw new Ce;await this.whenUrl();try{this._sessionStoragePersister=hE({key:"WEAVY_QUERY_OFFLINE_CACHE",storage:window.sessionStorage,throttleTime:this.staleTime});const s={queryClient:this._queryClient,persister:this._sessionStoragePersister,maxAge:this.gcTime,buster:this.cachePrefix,hydrateOptions:void 0,dehydrateOptions:{shouldDehydrateMutation:u(r=>{var a,o;const l=((o=(a=r.state.context)==null?void 0:a.status)==null?void 0:o.state)==="pending";return!!(r.state.context&&!l||r.state.isPaused)},"shouldDehydrateMutation")}};await uE(s),this._unsubscribeQueryClient=pE(s)}catch{console.warn(this.weavyId,"Query cache persister not available.")}this.host.isConnected&&this._queryClient.mount(),this._hostIsConnectedObserver=H3(this.host,s=>{this.isDestroyed||(s?(console.info(this.weavyId,"Query client mounted"),this._queryClient.mount()):(console.info(this.weavyId,"Query client unmounted"),this._queryClient.unmount()))})}async disconnectQueryClient(){var s,r;console.info(this.weavyId,"Query client disconnected"),await this._queryClient.cancelQueries(),this.queryClient.setQueriesData({},void 0),await this.queryClient.resetQueries(),(s=this._sessionStoragePersister)==null||s.removeClient(),(r=this._unsubscribeQueryClient)==null||r.call(this),this._queryClient.unmount(),this._queryClient.clear()}destroy(){var s;super.destroy(),(s=this._hostIsConnectedObserver)==null||s.disconnect(),this.disconnectQueryClient()}},h(e,"t"),e),u(t,"WeavyQuery"),t},"WeavyQueryMixin"),Zj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._notificationEvents=Me.defaults.notificationEvents??!1,this.dispatchRealtimeEvent=r=>{ii();const a=this.host!==document.documentElement?{composed:!0}:{bubbles:!0};switch(r.action){case"notification_created":case"notification_updated":case"notification_deleted":case"notifications_marked":{const o=new CustomEvent("wy-notifications",{...a,detail:r});this.host.dispatchEvent(o)}}}}get notificationEvents(){return this._notificationEvents}set notificationEvents(s){this.realtimeUnsubscribe(),this._notificationEvents=s??!1,this.realtimeSubscribe()}realtimeSubscribe(){const s=this;this.notificationEvents&&(s.subscribe(null,"notification_created",this.dispatchRealtimeEvent),s.subscribe(null,"notification_updated",this.dispatchRealtimeEvent),s.subscribe(null,"notifications_marked",this.dispatchRealtimeEvent))}realtimeUnsubscribe(){const s=this;this.notificationEvents&&(s.unsubscribe(null,"notification_created",this.dispatchRealtimeEvent),s.unsubscribe(null,"notification_updated",this.dispatchRealtimeEvent),s.unsubscribe(null,"notifications_marked",this.dispatchRealtimeEvent))}destroy(){this.realtimeUnsubscribe(),super.destroy()}},h(e,"t"),e),u(t,"WeavyRealtime"),t},"WeavyRealtimeMixin"),Vj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s)}set notifications(s){this._notifications=s,this.updateContext()}get notifications(){return this._notifications??Me.defaults.notifications}set notificationsBadge(s){this._notificationsBadge=s,this.updateContext()}get notificationsBadge(){return this._notificationsBadge??Me.defaults.notificationsBadge}set reactions(s){this._reactions=s,this.updateContext()}get reactions(){return this._reactions??Me.defaults.reactions}},h(e,"t"),e),u(t,"WeavySettings"),t},"WeavySettingsMixin");function ui(n){return n<0?-1:n===0?0:1}h(ui,"Ee");u(ui,"signum");function Dc(n,t,e){return(1-e)*n+e*t}h(Dc,"fc");u(Dc,"lerp");function fE(n,t,e){return e<n?n:e>t?t:e}h(fE,"X1");u(fE,"clampInt");function Rw(n,t,e){return e<n?n:e>t?t:e}h(Rw,"Vl");u(Rw,"clampDouble");function _0(n){return n=n%360,n<0&&(n=n+360),n}h(_0,"Uu");u(_0,"sanitizeDegreesDouble");function yE(n,t){return _0(t-n)<=180?1:-1}h(yE,"J1");u(yE,"rotationDirection");function mE(n,t){return 180-Math.abs(Math.abs(n-t)-180)}h(mE,"tv");u(mE,"differenceDegrees");function Lv(n,t){const e=n[0]*t[0][0]+n[1]*t[0][1]+n[2]*t[0][2],i=n[0]*t[1][0]+n[1]*t[1][1]+n[2]*t[1][2],s=n[0]*t[2][0]+n[1]*t[2][1]+n[2]*t[2][2];return[e,i,s]}h(Lv,"Yh");u(Lv,"matrixMultiply");const Wj=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],Dj=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],qj=[95.047,100,108.883];function z0(n,t,e){return(255<<24|(n&255)<<16|(t&255)<<8|e&255)>>>0}h(z0,"Bu");u(z0,"argbFromRgb");function tk(n){const t=$r(n[0]),e=$r(n[1]),i=$r(n[2]);return z0(t,e,i)}h(tk,"hy");u(tk,"argbFromLinrgb");function BS(n){return n>>16&255}h(BS,"Tw");u(BS,"redFromArgb");function FS(n){return n>>8&255}h(FS,"Fw");u(FS,"greenFromArgb");function XS(n){return n&255}h(XS,"Dw");u(XS,"blueFromArgb");function wE(n,t,e){const i=Dj,s=i[0][0]*n+i[0][1]*t+i[0][2]*e,r=i[1][0]*n+i[1][1]*t+i[1][2]*e,a=i[2][0]*n+i[2][1]*t+i[2][2]*e,o=$r(s),l=$r(r),c=$r(a);return z0(o,l,c)}h(wE,"rv");u(wE,"argbFromXyz");function gE(n){const t=Na(BS(n)),e=Na(FS(n)),i=Na(XS(n));return Lv([t,e,i],Wj)}h(gE,"nv");u(gE,"xyzFromArgb");function vE(n){const t=Es(n),e=$r(t);return z0(e,e,e)}h(vE,"av");u(vE,"argbFromLstar");function Iv(n){const t=gE(n)[1];return 116*NS(t/100)-16}h(Iv,"Xh");u(Iv,"lstarFromArgb");function Es(n){return 100*bE((n+16)/116)}h(Es,"xs");u(Es,"yFromLstar");function Zv(n){return NS(n/100)*116-16}h(Zv,"Jh");u(Zv,"lstarFromY");function Na(n){const t=n/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}h(Na,"Wr");u(Na,"linearized");function $r(n){const t=n/100;let e=0;return t<=.0031308?e=t*12.92:e=1.055*Math.pow(t,1/2.4)-.055,fE(0,255,Math.round(e*255))}h($r,"tr");u($r,"delinearized");function OE(){return qj}h(OE,"ov");u(OE,"whitePointD65");function NS(n){const t=.008856451679035631,e=24389/27;return n>t?Math.pow(n,1/3):(e*n+16)/116}h(NS,"Hw");u(NS,"labF");function bE(n){const t=.008856451679035631,e=24389/27,i=n*n*n;return i>t?i:(116*n-16)/e}h(bE,"cv");u(bE,"labInvf");var Ro;const $E=(Ro=class{static make(t=OE(),e=200/Math.PI*Es(50)/100,i=50,s=2,r=!1){const a=t,o=a[0]*.401288+a[1]*.650173+a[2]*-.051461,l=a[0]*-.250268+a[1]*1.204414+a[2]*.045854,c=a[0]*-.002079+a[1]*.048952+a[2]*.953127,d=.8+s/10,p=d>=.9?Dc(.59,.69,(d-.9)*10):Dc(.525,.59,(d-.8)*10);let f=r?1:d*(1-1/3.6*Math.exp((-e-42)/92));f=f>1?1:f<0?0:f;const m=d,w=[f*(100/o)+1-f,f*(100/l)+1-f,f*(100/c)+1-f],O=1/(5*e+1),x=O*O*O*O,b=1-x,P=x*e+.1*b*b*Math.cbrt(5*e),R=Es(i)/t[1],E=1.48+Math.sqrt(R),T=.725/Math.pow(R,.2),I=T,Z=[Math.pow(P*w[0]*o/100,.42),Math.pow(P*w[1]*l/100,.42),Math.pow(P*w[2]*c/100,.42)],U=[400*Z[0]/(Z[0]+27.13),400*Z[1]/(Z[1]+27.13),400*Z[2]/(Z[2]+27.13)],B=(2*U[0]+U[1]+.05*U[2])*T;return new Ro(R,B,T,I,p,m,w,P,Math.pow(P,.25),E)}constructor(t,e,i,s,r,a,o,l,c,d){this.n=t,this.aw=e,this.nbb=i,this.ncb=s,this.c=r,this.nc=a,this.rgbD=o,this.fl=l,this.fLRoot=c,this.z=d}},h(Ro,"dd"),Ro);u($E,"ViewingConditions");let _s=$E;_s.DEFAULT=_s.make();var Di;const xE=(Di=class{constructor(t,e,i,s,r,a,o,l,c){this.hue=t,this.chroma=e,this.j=i,this.q=s,this.m=r,this.s=a,this.jstar=o,this.astar=l,this.bstar=c}distance(t){const e=this.jstar-t.jstar,i=this.astar-t.astar,s=this.bstar-t.bstar,r=Math.sqrt(e*e+i*i+s*s);return 1.41*Math.pow(r,.63)}static fromInt(t){return Di.fromIntInViewingConditions(t,_s.DEFAULT)}static fromIntInViewingConditions(t,e){const i=(t&16711680)>>16,s=(t&65280)>>8,r=t&255,a=Na(i),o=Na(s),l=Na(r),c=.41233895*a+.35762064*o+.18051042*l,d=.2126*a+.7152*o+.0722*l,p=.01932141*a+.11916382*o+.95034478*l,f=.401288*c+.650173*d-.051461*p,m=-.250268*c+1.204414*d+.045854*p,w=-.002079*c+.048952*d+.953127*p,O=e.rgbD[0]*f,x=e.rgbD[1]*m,b=e.rgbD[2]*w,P=Math.pow(e.fl*Math.abs(O)/100,.42),R=Math.pow(e.fl*Math.abs(x)/100,.42),E=Math.pow(e.fl*Math.abs(b)/100,.42),T=ui(O)*400*P/(P+27.13),I=ui(x)*400*R/(R+27.13),Z=ui(b)*400*E/(E+27.13),U=(11*T+-12*I+Z)/11,B=(T+I-2*Z)/9,tt=(20*T+20*I+21*Z)/20,K=(40*T+20*I+Z)/20,j=Math.atan2(B,U)*180/Math.PI,J=j<0?j+360:j>=360?j-360:j,it=J*Math.PI/180,bt=K*e.nbb,mt=100*Math.pow(bt/e.aw,e.c*e.z),Zt=4/e.c*Math.sqrt(mt/100)*(e.aw+4)*e.fLRoot,Vt=J<20.14?J+360:J,Rt=.25*(Math.cos(Vt*Math.PI/180+2)+3.8),ie=5e4/13*Rt*e.nc*e.ncb*Math.sqrt(U*U+B*B)/(tt+.305),me=Math.pow(ie,.9)*Math.pow(1.64-Math.pow(.29,e.n),.73),he=me*Math.sqrt(mt/100),ne=he*e.fLRoot,we=50*Math.sqrt(me*e.c/(e.aw+4)),bi=(1+100*.007)*mt/(1+.007*mt),Ei=1/.0228*Math.log(1+.0228*ne),Hi=Ei*Math.cos(it),Nt=Ei*Math.sin(it);return new Di(J,he,mt,Zt,ne,we,bi,Hi,Nt)}static fromJch(t,e,i){return Di.fromJchInViewingConditions(t,e,i,_s.DEFAULT)}static fromJchInViewingConditions(t,e,i,s){const r=4/s.c*Math.sqrt(t/100)*(s.aw+4)*s.fLRoot,a=e*s.fLRoot,o=e/Math.sqrt(t/100),l=50*Math.sqrt(o*s.c/(s.aw+4)),c=i*Math.PI/180,d=(1+100*.007)*t/(1+.007*t),p=1/.0228*Math.log(1+.0228*a),f=p*Math.cos(c),m=p*Math.sin(c);return new Di(i,e,t,r,a,l,d,f,m)}static fromUcs(t,e,i){return Di.fromUcsInViewingConditions(t,e,i,_s.DEFAULT)}static fromUcsInViewingConditions(t,e,i,s){const r=e,a=i,o=Math.sqrt(r*r+a*a),l=(Math.exp(o*.0228)-1)/.0228/s.fLRoot;let c=Math.atan2(a,r)*(180/Math.PI);c<0&&(c+=360);const d=t/(1-(t-100)*.007);return Di.fromJchInViewingConditions(d,l,c,s)}toInt(){return this.viewed(_s.DEFAULT)}viewed(t){const e=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),i=Math.pow(e/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),s=this.hue*Math.PI/180,r=.25*(Math.cos(s+2)+3.8),a=t.aw*Math.pow(this.j/100,1/t.c/t.z),o=r*(5e4/13)*t.nc*t.ncb,l=a/t.nbb,c=Math.sin(s),d=Math.cos(s),p=23*(l+.305)*i/(23*o+11*i*d+108*i*c),f=p*d,m=p*c,w=(460*l+451*f+288*m)/1403,O=(460*l-891*f-261*m)/1403,x=(460*l-220*f-6300*m)/1403,b=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),P=ui(w)*(100/t.fl)*Math.pow(b,1/.42),R=Math.max(0,27.13*Math.abs(O)/(400-Math.abs(O))),E=ui(O)*(100/t.fl)*Math.pow(R,1/.42),T=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),I=ui(x)*(100/t.fl)*Math.pow(T,1/.42),Z=P/t.rgbD[0],U=E/t.rgbD[1],B=I/t.rgbD[2],tt=1.86206786*Z-1.01125463*U+.14918677*B,K=.38752654*Z+.62144744*U-.00897398*B,j=-.0158415*Z-.03412294*U+1.04996444*B;return wE(tt,K,j)}static fromXyzInViewingConditions(t,e,i,s){const r=.401288*t+.650173*e-.051461*i,a=-.250268*t+1.204414*e+.045854*i,o=-.002079*t+.048952*e+.953127*i,l=s.rgbD[0]*r,c=s.rgbD[1]*a,d=s.rgbD[2]*o,p=Math.pow(s.fl*Math.abs(l)/100,.42),f=Math.pow(s.fl*Math.abs(c)/100,.42),m=Math.pow(s.fl*Math.abs(d)/100,.42),w=ui(l)*400*p/(p+27.13),O=ui(c)*400*f/(f+27.13),x=ui(d)*400*m/(m+27.13),b=(11*w+-12*O+x)/11,P=(w+O-2*x)/9,R=(20*w+20*O+21*x)/20,E=(40*w+20*O+x)/20,T=Math.atan2(P,b)*180/Math.PI,I=T<0?T+360:T>=360?T-360:T,Z=I*Math.PI/180,U=E*s.nbb,B=100*Math.pow(U/s.aw,s.c*s.z),tt=4/s.c*Math.sqrt(B/100)*(s.aw+4)*s.fLRoot,K=I<20.14?I+360:I,j=1/4*(Math.cos(K*Math.PI/180+2)+3.8),J=5e4/13*j*s.nc*s.ncb*Math.sqrt(b*b+P*P)/(R+.305),it=Math.pow(J,.9)*Math.pow(1.64-Math.pow(.29,s.n),.73),bt=it*Math.sqrt(B/100),mt=bt*s.fLRoot,Zt=50*Math.sqrt(it*s.c/(s.aw+4)),Vt=(1+100*.007)*B/(1+.007*B),Rt=Math.log(1+.0228*mt)/.0228,ie=Rt*Math.cos(Z),me=Rt*Math.sin(Z);return new Di(I,bt,B,tt,mt,Zt,Vt,ie,me)}xyzInViewingConditions(t){const e=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),i=Math.pow(e/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),s=this.hue*Math.PI/180,r=.25*(Math.cos(s+2)+3.8),a=t.aw*Math.pow(this.j/100,1/t.c/t.z),o=r*(5e4/13)*t.nc*t.ncb,l=a/t.nbb,c=Math.sin(s),d=Math.cos(s),p=23*(l+.305)*i/(23*o+11*i*d+108*i*c),f=p*d,m=p*c,w=(460*l+451*f+288*m)/1403,O=(460*l-891*f-261*m)/1403,x=(460*l-220*f-6300*m)/1403,b=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),P=ui(w)*(100/t.fl)*Math.pow(b,1/.42),R=Math.max(0,27.13*Math.abs(O)/(400-Math.abs(O))),E=ui(O)*(100/t.fl)*Math.pow(R,1/.42),T=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),I=ui(x)*(100/t.fl)*Math.pow(T,1/.42),Z=P/t.rgbD[0],U=E/t.rgbD[1],B=I/t.rgbD[2],tt=1.86206786*Z-1.01125463*U+.14918677*B,K=.38752654*Z+.62144744*U-.00897398*B,j=-.0158415*Z-.03412294*U+1.04996444*B;return[tt,K,j]}},h(Di,"fi"),Di);u(xE,"Cam16");let Fn=xE;var Ot;const kE=(Ot=class{static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const e=t/100;let i=0;return e<=.0031308?i=e*12.92:i=1.055*Math.pow(e,1/2.4)-.055,i*255}static chromaticAdaptation(t){const e=Math.pow(Math.abs(t),.42);return ui(t)*400*e/(e+27.13)}static hueOf(t){const e=Lv(t,Ot.SCALED_DISCOUNT_FROM_LINRGB),i=Ot.chromaticAdaptation(e[0]),s=Ot.chromaticAdaptation(e[1]),r=Ot.chromaticAdaptation(e[2]),a=(11*i+-12*s+r)/11,o=(i+s-2*r)/9;return Math.atan2(o,a)}static areInCyclicOrder(t,e,i){const s=Ot.sanitizeRadians(e-t),r=Ot.sanitizeRadians(i-t);return s<r}static intercept(t,e,i){return(e-t)/(i-t)}static lerpPoint(t,e,i){return[t[0]+(i[0]-t[0])*e,t[1]+(i[1]-t[1])*e,t[2]+(i[2]-t[2])*e]}static setCoordinate(t,e,i,s){const r=Ot.intercept(t[s],e,i[s]);return Ot.lerpPoint(t,r,i)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,e){const i=Ot.Y_FROM_LINRGB[0],s=Ot.Y_FROM_LINRGB[1],r=Ot.Y_FROM_LINRGB[2],a=e%4<=1?0:100,o=e%2===0?0:100;if(e<4){const l=a,c=o,d=(t-l*s-c*r)/i;return Ot.isBounded(d)?[d,l,c]:[-1,-1,-1]}else if(e<8){const l=a,c=o,d=(t-c*i-l*r)/s;return Ot.isBounded(d)?[c,d,l]:[-1,-1,-1]}else{const l=a,c=o,d=(t-l*i-c*s)/r;return Ot.isBounded(d)?[l,c,d]:[-1,-1,-1]}}static bisectToSegment(t,e){let i=[-1,-1,-1],s=i,r=0,a=0,o=!1,l=!0;for(let c=0;c<12;c++){const d=Ot.nthVertex(t,c);if(d[0]<0)continue;const p=Ot.hueOf(d);if(!o){i=d,s=d,r=p,a=p,o=!0;continue}(l||Ot.areInCyclicOrder(r,p,a))&&(l=!1,Ot.areInCyclicOrder(r,e,p)?(s=d,a=p):(i=d,r=p))}return[i,s]}static midpoint(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]}static criticalPlaneBelow(t){return Math.floor(t-.5)}static criticalPlaneAbove(t){return Math.ceil(t-.5)}static bisectToLimit(t,e){const i=Ot.bisectToSegment(t,e);let s=i[0],r=Ot.hueOf(s),a=i[1];for(let o=0;o<3;o++)if(s[o]!==a[o]){let l=-1,c=255;s[o]<a[o]?(l=Ot.criticalPlaneBelow(Ot.trueDelinearized(s[o])),c=Ot.criticalPlaneAbove(Ot.trueDelinearized(a[o]))):(l=Ot.criticalPlaneAbove(Ot.trueDelinearized(s[o])),c=Ot.criticalPlaneBelow(Ot.trueDelinearized(a[o])));for(let d=0;d<8&&!(Math.abs(c-l)<=1);d++){const p=Math.floor((l+c)/2),f=Ot.CRITICAL_PLANES[p],m=Ot.setCoordinate(s,f,a,o),w=Ot.hueOf(m);Ot.areInCyclicOrder(r,e,w)?(a=m,c=p):(s=m,r=w,l=p)}}return Ot.midpoint(s,a)}static inverseChromaticAdaptation(t){const e=Math.abs(t),i=Math.max(0,27.13*e/(400-e));return ui(t)*Math.pow(i,1/.42)}static findResultByJ(t,e,i){let s=Math.sqrt(i)*11;const r=_s.DEFAULT,a=1/Math.pow(1.64-Math.pow(.29,r.n),.73),o=.25*(Math.cos(t+2)+3.8)*(5e4/13)*r.nc*r.ncb,l=Math.sin(t),c=Math.cos(t);for(let d=0;d<5;d++){const p=s/100,f=e===0||s===0?0:e/Math.sqrt(p),m=Math.pow(f*a,1/.9),w=r.aw*Math.pow(p,1/r.c/r.z)/r.nbb,O=23*(w+.305)*m/(23*o+11*m*c+108*m*l),x=O*c,b=O*l,P=(460*w+451*x+288*b)/1403,R=(460*w-891*x-261*b)/1403,E=(460*w-220*x-6300*b)/1403,T=Ot.inverseChromaticAdaptation(P),I=Ot.inverseChromaticAdaptation(R),Z=Ot.inverseChromaticAdaptation(E),U=Lv([T,I,Z],Ot.LINRGB_FROM_SCALED_DISCOUNT);if(U[0]<0||U[1]<0||U[2]<0)return 0;const B=Ot.Y_FROM_LINRGB[0],tt=Ot.Y_FROM_LINRGB[1],K=Ot.Y_FROM_LINRGB[2],j=B*U[0]+tt*U[1]+K*U[2];if(j<=0)return 0;if(d===4||Math.abs(j-i)<.002)return U[0]>100.01||U[1]>100.01||U[2]>100.01?0:tk(U);s=s-(j-i)*s/(2*j)}return 0}static solveToInt(t,e,i){if(e<1e-4||i<1e-4||i>99.9999)return vE(i);t=_0(t);const s=t/180*Math.PI,r=Es(i),a=Ot.findResultByJ(s,e,r);if(a!==0)return a;const o=Ot.bisectToLimit(r,s);return tk(o)}static solveToCam(t,e,i){return Fn.fromInt(Ot.solveToInt(t,e,i))}},h(Ot,"nt"),Ot);u(kE,"HctSolver");let vr=kE;vr.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];vr.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];vr.Y_FROM_LINRGB=[.2126,.7152,.0722];vr.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];var Ds;const SE=(Ds=class{static from(t,e,i){return new Ds(vr.solveToInt(t,e,i))}static fromInt(t){return new Ds(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(vr.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(vr.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(vr.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const e=Fn.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=Iv(t),this.argb=t}setInternalState(t){const e=Fn.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=Iv(t),this.argb=t}inViewingConditions(t){const e=Fn.fromInt(this.toInt()).xyzInViewingConditions(t),i=Fn.fromXyzInViewingConditions(e[0],e[1],e[2],_s.make());return Ds.from(i.hue,i.chroma,Zv(e[1]))}},h(Ds,"Nr"),Ds);u(SE,"Hct");let Pi=SE;var Eo;const PE=(Eo=class{static harmonize(t,e){const i=Pi.fromInt(t),s=Pi.fromInt(e),r=mE(i.hue,s.hue),a=Math.min(r*.5,15),o=_0(i.hue+a*yE(i.hue,s.hue));return Pi.from(o,i.chroma,i.tone).toInt()}static hctHue(t,e,i){const s=Eo.cam16Ucs(t,e,i),r=Fn.fromInt(s),a=Fn.fromInt(t);return Pi.from(r.hue,a.chroma,Iv(t)).toInt()}static cam16Ucs(t,e,i){const s=Fn.fromInt(t),r=Fn.fromInt(e),a=s.jstar,o=s.astar,l=s.bstar,c=r.jstar,d=r.astar,p=r.bstar,f=a+(c-a)*i,m=o+(d-o)*i,w=l+(p-l)*i;return Fn.fromUcs(f,m,w).toInt()}},h(Eo,"hd"),Eo);u(PE,"Blend");let Vn=PE;var mn;const CE=(mn=class{static ratioOfTones(t,e){return t=Rw(0,100,t),e=Rw(0,100,e),mn.ratioOfYs(Es(t),Es(e))}static ratioOfYs(t,e){const i=t>e?t:e,s=i===e?t:e;return(i+5)/(s+5)}static lighter(t,e){if(t<0||t>100)return-1;const i=Es(t),s=e*(i+5)-5,r=mn.ratioOfYs(s,i),a=Math.abs(r-e);if(r<e&&a>.04)return-1;const o=Zv(s)+.4;return o<0||o>100?-1:o}static darker(t,e){if(t<0||t>100)return-1;const i=Es(t),s=(i+5)/e-5,r=mn.ratioOfYs(i,s),a=Math.abs(r-e);if(r<e&&a>.04)return-1;const o=Zv(s)-.4;return o<0||o>100?-1:o}static lighterUnsafe(t,e){const i=mn.lighter(t,e);return i<0?100:i}static darkerUnsafe(t,e){const i=mn.darker(t,e);return i<0?0:i}},h(mn,"cs"),mn);u(CE,"Contrast");let Yi=CE;var _o;const QE=(_o=class{static isDisliked(t){const e=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,i=Math.round(t.chroma)>16,s=Math.round(t.tone)<65;return e&&i&&s}static fixIfDisliked(t){return _o.isDisliked(t)?Pi.from(t.hue,t.chroma,70):t}},h(_o,"ud"),_o);u(QE,"DislikeAnalyzer");let Uj=QE;var We;const ME=(We=class{static fromPalette(t){return new We(t.name??"",t.palette,t.tone,t.isBackground??!1,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}constructor(t,e,i,s,r,a,o,l){if(this.name=t,this.palette=e,this.tone=i,this.isBackground=s,this.background=r,this.secondBackground=a,this.contrastCurve=o,this.toneDeltaPair=l,this.hctCache=new Map,!r&&a)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!r&&o)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(r&&!o)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(t){return this.getHct(t).toInt()}getHct(t){const e=this.hctCache.get(t);if(e!=null)return e;const i=this.getTone(t),s=this.palette(t).getHct(i);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,s),s}getTone(t){const e=t.contrastLevel<0;if(this.toneDeltaPair){const i=this.toneDeltaPair(t),s=i.roleA,r=i.roleB,a=i.delta,o=i.polarity,l=i.stayTogether,c=this.background(t).getTone(t),d=o==="nearer"||o==="lighter"&&!t.isDark||o==="darker"&&t.isDark,p=d?s:r,f=d?r:s,m=this.name===p.name,w=t.isDark?1:-1,O=p.contrastCurve.getContrast(t.contrastLevel),x=f.contrastCurve.getContrast(t.contrastLevel),b=p.tone(t);let P=Yi.ratioOfTones(c,b)>=O?b:We.foregroundTone(c,O);const R=f.tone(t);let E=Yi.ratioOfTones(c,R)>=x?R:We.foregroundTone(c,x);return e&&(P=We.foregroundTone(c,O),E=We.foregroundTone(c,x)),(E-P)*w>=a||(E=Rw(0,100,P+a*w),(E-P)*w>=a||(P=Rw(0,100,E-a*w))),50<=P&&P<60?w>0?(P=60,E=Math.max(E,P+a*w)):(P=49,E=Math.min(E,P+a*w)):50<=E&&E<60&&(l?w>0?(P=60,E=Math.max(E,P+a*w)):(P=49,E=Math.min(E,P+a*w)):w>0?E=60:E=49),m?P:E}else{let i=this.tone(t);if(this.background==null)return i;const s=this.background(t).getTone(t),r=this.contrastCurve.getContrast(t.contrastLevel);if(Yi.ratioOfTones(s,i)>=r||(i=We.foregroundTone(s,r)),e&&(i=We.foregroundTone(s,r)),this.isBackground&&50<=i&&i<60&&(Yi.ratioOfTones(49,s)>=r?i=49:i=60),this.secondBackground){const[a,o]=[this.background,this.secondBackground],[l,c]=[a(t).getTone(t),o(t).getTone(t)],[d,p]=[Math.max(l,c),Math.min(l,c)];if(Yi.ratioOfTones(d,i)>=r&&Yi.ratioOfTones(p,i)>=r)return i;const f=Yi.lighter(d,r),m=Yi.darker(p,r),w=[];return f!==-1&&w.push(f),m!==-1&&w.push(m),We.tonePrefersLightForeground(l)||We.tonePrefersLightForeground(c)?f<0?100:f:w.length===1?w[0]:m<0?0:m}return i}}static foregroundTone(t,e){const i=Yi.lighterUnsafe(t,e),s=Yi.darkerUnsafe(t,e),r=Yi.ratioOfTones(i,t),a=Yi.ratioOfTones(s,t);if(We.tonePrefersLightForeground(t)){const o=Math.abs(r-a)<.1&&r<e&&a<e;return r>=e||r>=a||o?i:s}else return a>=e||a>=r?s:i}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return We.tonePrefersLightForeground(t)&&!We.toneAllowsLightForeground(t)?49:t}},h(We,"_e"),We);u(ME,"DynamicColor");let ht=ME;var Ew;(function(n){n[n.MONOCHROME=0]="MONOCHROME",n[n.NEUTRAL=1]="NEUTRAL",n[n.TONAL_SPOT=2]="TONAL_SPOT",n[n.VIBRANT=3]="VIBRANT",n[n.EXPRESSIVE=4]="EXPRESSIVE",n[n.FIDELITY=5]="FIDELITY",n[n.CONTENT=6]="CONTENT",n[n.RAINBOW=7]="RAINBOW",n[n.FRUIT_SALAD=8]="FRUIT_SALAD"})(Ew||(Ew={}));var bu;const TE=(bu=class{constructor(t,e,i,s){this.low=t,this.normal=e,this.medium=i,this.high=s}getContrast(t){return t<=-1?this.low:t<0?Dc(this.low,this.normal,(t- -1)/1):t<.5?Dc(this.normal,this.medium,(t-0)/.5):t<1?Dc(this.medium,this.high,(t-.5)/.5):this.high}},h(bu,"$p"),bu);u(TE,"ContrastCurve");let _t=TE;var $u;const AE=($u=class{constructor(t,e,i,s,r){this.roleA=t,this.roleB=e,this.delta=i,this.polarity=s,this.stayTogether=r}},h($u,"Cp"),$u);u(AE,"ToneDeltaPair");let Ai=AE;function al(n){return n.variant===Ew.FIDELITY||n.variant===Ew.CONTENT}h(al,"ic");u(al,"isFidelity");function pe(n){return n.variant===Ew.MONOCHROME}h(pe,"Wt");u(pe,"isMonochrome");function RE(n,t,e,i){let s=e,r=Pi.from(n,t,e);if(r.chroma<t){let a=r.chroma;for(;r.chroma<t;){s+=i?-1:1;const o=Pi.from(n,t,s);if(a>o.chroma||Math.abs(o.chroma-t)<.4)break;const l=Math.abs(o.chroma-t),c=Math.abs(r.chroma-t);l<c&&(r=o),a=Math.max(a,o.chroma)}}return s}h(RE,"lv");u(RE,"findDesiredChromaByTone");function EE(n){return _s.make(void 0,void 0,n.isDark?30:80,void 0,void 0)}h(EE,"dv");u(EE,"viewingConditionsForAlbers");function L0(n,t){const e=n.inViewingConditions(EE(t));return ht.tonePrefersLightForeground(n.tone)&&!ht.toneAllowsLightForeground(e.tone)?ht.enableLightForeground(n.tone):ht.enableLightForeground(e.tone)}h(L0,"qu");u(L0,"performAlbers");var jr;const _E=(jr=class{static highestSurface(t){return t.isDark?jr.surfaceBright:jr.surfaceDim}},h(jr,"gc"),jr);u(_E,"MaterialDynamicColors");let W=_E;W.contentAccentToneDelta=15;W.primaryPaletteKeyColor=ht.fromPalette({name:"primary_palette_key_color",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>n.primaryPalette.keyColor.tone,"tone")});W.secondaryPaletteKeyColor=ht.fromPalette({name:"secondary_palette_key_color",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>n.secondaryPalette.keyColor.tone,"tone")});W.tertiaryPaletteKeyColor=ht.fromPalette({name:"tertiary_palette_key_color",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>n.tertiaryPalette.keyColor.tone,"tone")});W.neutralPaletteKeyColor=ht.fromPalette({name:"neutral_palette_key_color",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.neutralPalette.keyColor.tone,"tone")});W.neutralVariantPaletteKeyColor=ht.fromPalette({name:"neutral_variant_palette_key_color",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.neutralVariantPalette.keyColor.tone,"tone")});W.background=ht.fromPalette({name:"background",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?6:98,"tone"),isBackground:!0});W.onBackground=ht.fromPalette({name:"on_background",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?90:10,"tone"),background:u(n=>W.background,"background"),contrastCurve:new _t(3,3,4.5,7)});W.surface=ht.fromPalette({name:"surface",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?6:98,"tone"),isBackground:!0});W.surfaceDim=ht.fromPalette({name:"surface_dim",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?6:87,"tone"),isBackground:!0});W.surfaceBright=ht.fromPalette({name:"surface_bright",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?24:98,"tone"),isBackground:!0});W.surfaceContainerLowest=ht.fromPalette({name:"surface_container_lowest",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?4:100,"tone"),isBackground:!0});W.surfaceContainerLow=ht.fromPalette({name:"surface_container_low",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?10:96,"tone"),isBackground:!0});W.surfaceContainer=ht.fromPalette({name:"surface_container",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?12:94,"tone"),isBackground:!0});W.surfaceContainerHigh=ht.fromPalette({name:"surface_container_high",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?17:92,"tone"),isBackground:!0});W.surfaceContainerHighest=ht.fromPalette({name:"surface_container_highest",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?22:90,"tone"),isBackground:!0});W.onSurface=ht.fromPalette({name:"on_surface",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?90:10,"tone"),background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(4.5,7,11,21)});W.surfaceVariant=ht.fromPalette({name:"surface_variant",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.isDark?30:90,"tone"),isBackground:!0});W.onSurfaceVariant=ht.fromPalette({name:"on_surface_variant",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.isDark?80:30,"tone"),background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(3,4.5,7,11)});W.inverseSurface=ht.fromPalette({name:"inverse_surface",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?90:20,"tone")});W.inverseOnSurface=ht.fromPalette({name:"inverse_on_surface",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?20:95,"tone"),background:u(n=>W.inverseSurface,"background"),contrastCurve:new _t(4.5,7,11,21)});W.outline=ht.fromPalette({name:"outline",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.isDark?60:50,"tone"),background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1.5,3,4.5,7)});W.outlineVariant=ht.fromPalette({name:"outline_variant",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.isDark?30:80,"tone"),background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7)});W.shadow=ht.fromPalette({name:"shadow",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>0,"tone")});W.scrim=ht.fromPalette({name:"scrim",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>0,"tone")});W.surfaceTint=ht.fromPalette({name:"surface_tint",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>n.isDark?80:40,"tone"),isBackground:!0});W.primary=ht.fromPalette({name:"primary",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>pe(n)?n.isDark?100:0:n.isDark?80:40,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(3,4.5,7,11),toneDeltaPair:u(n=>new Ai(W.primaryContainer,W.primary,15,"nearer",!1),"toneDeltaPair")});W.onPrimary=ht.fromPalette({name:"on_primary",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>pe(n)?n.isDark?10:90:n.isDark?20:100,"tone"),background:u(n=>W.primary,"background"),contrastCurve:new _t(4.5,7,11,21)});W.primaryContainer=ht.fromPalette({name:"primary_container",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>al(n)?L0(n.sourceColorHct,n):pe(n)?n.isDark?85:25:n.isDark?30:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.primaryContainer,W.primary,15,"nearer",!1),"toneDeltaPair")});W.onPrimaryContainer=ht.fromPalette({name:"on_primary_container",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>al(n)?ht.foregroundTone(W.primaryContainer.tone(n),4.5):pe(n)?n.isDark?0:100:n.isDark?90:10,"tone"),background:u(n=>W.primaryContainer,"background"),contrastCurve:new _t(4.5,7,11,21)});W.inversePrimary=ht.fromPalette({name:"inverse_primary",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>n.isDark?40:80,"tone"),background:u(n=>W.inverseSurface,"background"),contrastCurve:new _t(3,4.5,7,11)});W.secondary=ht.fromPalette({name:"secondary",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>n.isDark?80:40,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(3,4.5,7,11),toneDeltaPair:u(n=>new Ai(W.secondaryContainer,W.secondary,15,"nearer",!1),"toneDeltaPair")});W.onSecondary=ht.fromPalette({name:"on_secondary",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>pe(n)?n.isDark?10:100:n.isDark?20:100,"tone"),background:u(n=>W.secondary,"background"),contrastCurve:new _t(4.5,7,11,21)});W.secondaryContainer=ht.fromPalette({name:"secondary_container",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>{const t=n.isDark?30:90;if(pe(n))return n.isDark?30:85;if(!al(n))return t;let e=RE(n.secondaryPalette.hue,n.secondaryPalette.chroma,t,!n.isDark);return e=L0(n.secondaryPalette.getHct(e),n),e},"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.secondaryContainer,W.secondary,15,"nearer",!1),"toneDeltaPair")});W.onSecondaryContainer=ht.fromPalette({name:"on_secondary_container",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>al(n)?ht.foregroundTone(W.secondaryContainer.tone(n),4.5):n.isDark?90:10,"tone"),background:u(n=>W.secondaryContainer,"background"),contrastCurve:new _t(4.5,7,11,21)});W.tertiary=ht.fromPalette({name:"tertiary",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?n.isDark?90:25:n.isDark?80:40,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(3,4.5,7,11),toneDeltaPair:u(n=>new Ai(W.tertiaryContainer,W.tertiary,15,"nearer",!1),"toneDeltaPair")});W.onTertiary=ht.fromPalette({name:"on_tertiary",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?n.isDark?10:90:n.isDark?20:100,"tone"),background:u(n=>W.tertiary,"background"),contrastCurve:new _t(4.5,7,11,21)});W.tertiaryContainer=ht.fromPalette({name:"tertiary_container",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>{if(pe(n))return n.isDark?60:49;if(!al(n))return n.isDark?30:90;const t=L0(n.tertiaryPalette.getHct(n.sourceColorHct.tone),n),e=n.tertiaryPalette.getHct(t);return Uj.fixIfDisliked(e).tone},"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.tertiaryContainer,W.tertiary,15,"nearer",!1),"toneDeltaPair")});W.onTertiaryContainer=ht.fromPalette({name:"on_tertiary_container",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?n.isDark?0:100:al(n)?ht.foregroundTone(W.tertiaryContainer.tone(n),4.5):n.isDark?90:10,"tone"),background:u(n=>W.tertiaryContainer,"background"),contrastCurve:new _t(4.5,7,11,21)});W.error=ht.fromPalette({name:"error",palette:u(n=>n.errorPalette,"palette"),tone:u(n=>n.isDark?80:40,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(3,4.5,7,11),toneDeltaPair:u(n=>new Ai(W.errorContainer,W.error,15,"nearer",!1),"toneDeltaPair")});W.onError=ht.fromPalette({name:"on_error",palette:u(n=>n.errorPalette,"palette"),tone:u(n=>n.isDark?20:100,"tone"),background:u(n=>W.error,"background"),contrastCurve:new _t(4.5,7,11,21)});W.errorContainer=ht.fromPalette({name:"error_container",palette:u(n=>n.errorPalette,"palette"),tone:u(n=>n.isDark?30:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.errorContainer,W.error,15,"nearer",!1),"toneDeltaPair")});W.onErrorContainer=ht.fromPalette({name:"on_error_container",palette:u(n=>n.errorPalette,"palette"),tone:u(n=>n.isDark?90:10,"tone"),background:u(n=>W.errorContainer,"background"),contrastCurve:new _t(4.5,7,11,21)});W.primaryFixed=ht.fromPalette({name:"primary_fixed",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>pe(n)?40:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.primaryFixed,W.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.primaryFixedDim=ht.fromPalette({name:"primary_fixed_dim",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>pe(n)?30:80,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.primaryFixed,W.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.onPrimaryFixed=ht.fromPalette({name:"on_primary_fixed",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>pe(n)?100:10,"tone"),background:u(n=>W.primaryFixedDim,"background"),secondBackground:u(n=>W.primaryFixed,"secondBackground"),contrastCurve:new _t(4.5,7,11,21)});W.onPrimaryFixedVariant=ht.fromPalette({name:"on_primary_fixed_variant",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>pe(n)?90:30,"tone"),background:u(n=>W.primaryFixedDim,"background"),secondBackground:u(n=>W.primaryFixed,"secondBackground"),contrastCurve:new _t(3,4.5,7,11)});W.secondaryFixed=ht.fromPalette({name:"secondary_fixed",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>pe(n)?80:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.secondaryFixed,W.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.secondaryFixedDim=ht.fromPalette({name:"secondary_fixed_dim",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>pe(n)?70:80,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.secondaryFixed,W.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.onSecondaryFixed=ht.fromPalette({name:"on_secondary_fixed",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>10,"tone"),background:u(n=>W.secondaryFixedDim,"background"),secondBackground:u(n=>W.secondaryFixed,"secondBackground"),contrastCurve:new _t(4.5,7,11,21)});W.onSecondaryFixedVariant=ht.fromPalette({name:"on_secondary_fixed_variant",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>pe(n)?25:30,"tone"),background:u(n=>W.secondaryFixedDim,"background"),secondBackground:u(n=>W.secondaryFixed,"secondBackground"),contrastCurve:new _t(3,4.5,7,11)});W.tertiaryFixed=ht.fromPalette({name:"tertiary_fixed",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?40:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.tertiaryFixed,W.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.tertiaryFixedDim=ht.fromPalette({name:"tertiary_fixed_dim",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?30:80,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new _t(1,1,3,7),toneDeltaPair:u(n=>new Ai(W.tertiaryFixed,W.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.onTertiaryFixed=ht.fromPalette({name:"on_tertiary_fixed",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?100:10,"tone"),background:u(n=>W.tertiaryFixedDim,"background"),secondBackground:u(n=>W.tertiaryFixed,"secondBackground"),contrastCurve:new _t(4.5,7,11,21)});W.onTertiaryFixedVariant=ht.fromPalette({name:"on_tertiary_fixed_variant",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>pe(n)?90:30,"tone"),background:u(n=>W.tertiaryFixedDim,"background"),secondBackground:u(n=>W.tertiaryFixed,"secondBackground"),contrastCurve:new _t(3,4.5,7,11)});var es;const zE=(es=class{static fromInt(t){const e=Pi.fromInt(t);return es.fromHct(e)}static fromHct(t){return new es(t.hue,t.chroma,t)}static fromHueAndChroma(t,e){return new es(t,e,es.createKeyColor(t,e))}constructor(t,e,i){this.hue=t,this.chroma=e,this.keyColor=i,this.cache=new Map}static createKeyColor(t,e){let i=Pi.from(t,e,50),s=Math.abs(i.chroma-e);for(let r=1;r<50;r+=1){if(Math.round(e)===Math.round(i.chroma))return i;const a=Pi.from(t,e,50+r),o=Math.abs(a.chroma-e);o<s&&(s=o,i=a);const l=Pi.from(t,e,50-r),c=Math.abs(l.chroma-e);c<s&&(s=c,i=l)}return i}tone(t){let e=this.cache.get(t);return e===void 0&&(e=Pi.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,e)),e}getHct(t){return Pi.fromInt(this.tone(t))}},h(es,"Ds"),es);u(zE,"TonalPalette");let se=zE;function ek(n){const t=BS(n),e=FS(n),i=XS(n),s=[t.toString(16),e.toString(16),i.toString(16)];for(const[r,a]of s.entries())a.length===1&&(s[r]="0"+a);return"#"+s.join("")}h(ek,"uy");u(ek,"hexFromArgb");function LE(n){n=n.replace("#","");const t=n.length===3,e=n.length===6,i=n.length===8;if(!t&&!e&&!i)throw new Error("unexpected hex "+n);let s=0,r=0,a=0;return t?(s=qn(n.slice(0,1).repeat(2)),r=qn(n.slice(1,2).repeat(2)),a=qn(n.slice(2,3).repeat(2))):e?(s=qn(n.slice(0,2)),r=qn(n.slice(2,4)),a=qn(n.slice(4,6))):i&&(s=qn(n.slice(2,4)),r=qn(n.slice(4,6)),a=qn(n.slice(6,8))),(255<<24|(s&255)<<16|(r&255)<<8|a&255)>>>0}h(LE,"hv");u(LE,"argbFromHex");function qn(n){return parseInt(n,16)}h(qn,"Ti");u(qn,"parseIntHex");function IE(n,t=!1){var e;const i=(e=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+\.{0,1}\d*))?\)$/))==null?void 0:e.slice(1).map((l,c)=>c===3?Math.round(parseFloat(l)*255):parseFloat(l));if(!i)throw new Error("Could not parse rgba color.");const[s,r,a,o]=i;return((t?255:o&255)<<24|(s&255)<<16|(r&255)<<8|a&255)>>>0}h(IE,"uv");u(IE,"argbFromRgba");function ZE(n){ii();const t=document.createElement("wy-compute-styles");t.setAttribute("style",`color: ${n} !important;`),document.documentElement.append(t);const e=window.getComputedStyle(t).color;return t.remove(),e}h(ZE,"pv");u(ZE,"getComputedColor");function Vv(n){return getComputedStyle(n).getPropertyValue("--wy-theme-color")||void 0}h(Vv,"eu");u(Vv,"getCSSThemeColor");function VE(n,t){let e=Vv(n);const i=new MutationObserver(()=>{const a=Vv(n);a!==e&&(e=a,t(a))}),s={attributes:!0,attributeFilter:["class","style"]};let r=n;for(;r&&r!==document;)i.observe(r,s),r=r.parentNode;return()=>i.disconnect()}h(VE,"yv");u(VE,"observeCSSThemeColor");function Wv(){var n;return ii(),((n=Array.from(document.head.querySelectorAll("meta[name='theme-color']")).filter(t=>{var e;const i=t.getAttribute("media");return!i||((e=window.matchMedia(i))==null?void 0:e.matches)}).pop())==null?void 0:n.getAttribute("content"))||void 0}h(Wv,"iu");u(Wv,"getMetaThemeColor");function WE(n){ii();const t=Array.from(document.head.querySelectorAll("meta[name='theme-color']"));if(!t)return()=>{};let e=Wv();const i=u(()=>{const o=Wv();o!==e&&(e=o,n(o))},"checkChangedColor"),s=new MutationObserver(i),r={attributes:!0,attributeFilter:["content"]},a=[];return t.forEach(o=>{s.observe(o,r);const l=o.getAttribute("media");if(l){const c=window.matchMedia(l);c.addEventListener("change",i),a.push(c)}}),()=>{s.disconnect(),a.forEach(o=>o.removeEventListener("change",i))}}h(WE,"wv");u(WE,"observeMetaThemeColor");const tm=[],jj=16;function DE(n,t=!1){var e;if(tm.some(T=>T.seedColor===n)){const T=(e=tm.find(I=>I.seedColor===n))==null?void 0:e.colors;if(T)return T}const i=[];t&&i.push(`--wy-theme-color:${n};`);let s=n;!n.startsWith("#")&&!n.startsWith("rgb")&&(s=ZE(n));const r=n.startsWith("#")?LE(s):IE(s),a=Pi.fromInt(r),o=a.hue,l=a.chroma,c=Math.max(48,l),d=Math.min(c,84),p=360/16,f=27.4,m=-8,w=(o+360-f-m+p/2)%p+f+m-p/2,O={primary:se.fromHueAndChroma(o,c),secondary:se.fromHueAndChroma(o,c/3),tertiary:se.fromHueAndChroma(o+60,c/2),neutral:se.fromHueAndChroma(o,Math.min(l/12,4)),"neutral-variant":se.fromHueAndChroma(o,Math.min(l/6,8)),error:se.fromHueAndChroma(w,84),warning:se.fromHueAndChroma(w+4*p,d),red:se.fromHueAndChroma(w,d),"deep-orange":se.fromHueAndChroma(w+1*p,d),orange:se.fromHueAndChroma(w+2*p,d),amber:se.fromHueAndChroma(w+3*p,d),yellow:se.fromHueAndChroma(w+4*p,d),lime:se.fromHueAndChroma(w+5*p,d),"light-green":se.fromHueAndChroma(w+6*p,d),green:se.fromHueAndChroma(w+7*p,d),teal:se.fromHueAndChroma(w+8*p,d),cyan:se.fromHueAndChroma(w+9*p,d),"light-blue":se.fromHueAndChroma(w+10*p,d),blue:se.fromHueAndChroma(w+11*p,d),indigo:se.fromHueAndChroma(w+12*p,d),"deep-purple":se.fromHueAndChroma(w+13*p,d),purple:se.fromHueAndChroma(w+14*p,d),pink:se.fromHueAndChroma(w+15*p,d),gray:se.fromHueAndChroma(o,4)},x={99:99,95:95,90:90,80:80,70:70,60:60,50:50,40:40,30:30,20:20,10:10},b={primary:x,secondary:x,tertiary:x,neutral:x,"neutral-variant":x,error:x,warning:x,blue:{light:70,dark:80},indigo:{light:60,dark:60},purple:{light:60,dark:70},pink:{light:60,dark:70},red:{light:60,dark:60},orange:{light:70,dark:70},yellow:{light:70,dark:80},green:{light:60,dark:60},teal:{light:60,dark:60},cyan:{light:50,dark:60},gray:{light:50,dark:60}};for(const T in b){const I=b[T];for(const Z in I){const U=ek(O[T].tone(I[Z]));i.push(`--wy-${T}-${Z}:${U};`)}}const P={light:O.primary.tone(40),dark:O.primary.tone(80)},R={light:O.neutral.tone(99),dark:O.neutral.tone(10)},E={"surface-1":{light:Vn.cam16Ucs(R.light,P.light,.05),dark:Vn.cam16Ucs(R.dark,P.dark,.05)},"surface-2":{light:Vn.cam16Ucs(R.light,P.light,.08),dark:Vn.cam16Ucs(R.dark,P.dark,.08)},"surface-3":{light:Vn.cam16Ucs(R.light,P.light,.11),dark:Vn.cam16Ucs(R.dark,P.dark,.11)},"surface-4":{light:Vn.cam16Ucs(R.light,P.light,.12),dark:Vn.cam16Ucs(R.dark,P.dark,.12)},"surface-5":{light:Vn.cam16Ucs(R.light,P.light,.14),dark:Vn.cam16Ucs(R.dark,P.dark,.14)}};for(const T in E){const I=E[T];for(const Z in I){const U=ek(I[Z]);i.push(`--wy-${T}-${Z}:${U};`)}}return tm.unshift({seedColor:n,colors:i}),tm.length=Math.min(tm.length,jj),i}h(DE,"mv");u(DE,"generateThemeColors");const Bj=u(n=>{if(ii(),Q0)document.adoptedStyleSheets=n.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of n){const e=document.createElement("style"),i=global.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,(document.head||document.documentElement).appendChild(e)}},"adoptGlobalStyles"),Xi=At`.wy-light :where(wy-chat),.wy-light :where(wy-comments),.wy-light :where(wy-component),.wy-light :where(wy-copilot),.wy-light :where(wy-files),.wy-light :where(wy-messenger),.wy-light :where(wy-notification-toasts),.wy-light :where(wy-notifications),.wy-light :where(wy-posts),:host(.wy-light),:host .wy-light,::slotted(.wy-light){color-scheme:light;--wy-primary: var(--wy-primary-40, #006399);--wy-on-primary: var(--wy-white, #ffffff);--wy-primary-container: var(--wy-primary-90, #cde5ff);--wy-on-primary-container: var(--wy-primary-10, #001d32);--wy-secondary: var(--wy-secondary-40, #3b6a1c);--wy-on-secondary: var(--wy-white, #ffffff);--wy-secondary-container: var(--wy-secondary-90, #bbf294);--wy-on-secondary-container: var(--wy-secondary-10, #0a2100);--wy-tertiary: var(--wy-tertiary-40, #3b6a1c);--wy-on-tertiary: var(--wy-white, #ffffff);--wy-tertiary-container: var(--wy-tertiary-90, #bbf294);--wy-on-tertiary-container: var(--wy-tertiary-10, #0a2100);--wy-error: var(--wy-error-40, #ba1824);--wy-on-error: var(--wy-white, #ffffff);--wy-error-container: var(--wy-error-90, #ffdad7);--wy-on-error-container: var(--wy-error-10, #410004);--wy-warning: var(--wy-warning-70, #afb140);--wy-on-warning: var(--wy-black, #000000);--wy-warning-container: var(--wy-warning-90, #e7e971);--wy-on-warning-container: var(--wy-warning-10, #1c1d00);--wy-background: var(--wy-neutral-99, #fcfcff);--wy-on-background: var(--wy-neutral-10, #1a1c1e);--wy-surface: var(--wy-neutral-99, #fcfcff);--wy-on-surface: var(--wy-neutral-10, #1a1c1e);--wy-surface-variant: var(--wy-neutral-variant-90, #dee3eb);--wy-on-surface-variant: var(--wy-neutral-variant-30, #42474e);--wy-outline: var(--wy-neutral-variant-50, #72777e);--wy-outline-variant: var(--wy-neutral-variant-80, #c2c7ce);--wy-inverse-surface: var(--wy-neutral-20, #2f3033);--wy-on-inverse-surface: var(--wy-neutral-95, #f0f0f4);--wy-inverse-primary: var(--wy-primary-80, #95ccff);--wy-surface-1: var(--wy-surface-1-light, #f1f2f7);--wy-surface-2: var(--wy-surface-2-light, #eaedf3);--wy-surface-3: var(--wy-surface-3-light, #e3e7ee);--wy-surface-4: var(--wy-surface-4-light, #e1e6ed);--wy-surface-5: var(--wy-surface-5-light, #dce2ea);--wy-highlight: var(--wy-primary-95, #e8f2ff);--wy-on-highlight: var(--wy-primary-10, #001d32);--wy-link: var(--wy-primary-40, #006399);--wy-presence-active: var(--wy-green-light, #00a38b);--wy-blue: var(--wy-blue-light, #89a9fc);--wy-indigo: var(--wy-indigo-light, #9185de);--wy-purple: var(--wy-purple-light, #c675b7);--wy-pink: var(--wy-pink-light, #d57194);--wy-red: var(--wy-red-light, #db726c);--wy-orange: var(--wy-orange-light, #e89a3a);--wy-yellow: var(--wy-yellow-light, #afb140);--wy-green: var(--wy-green-light, #00a38b);--wy-teal: var(--wy-teal-light, #00a0a8);--wy-cyan: var(--wy-cyan-light, #0082a1);--wy-gray: var(--wy-gray-light, #76777a);--wy-code-text: var(--wy-code-text-light, #3b3b3b);--wy-code-variable: var(--wy-code-variable-light, #001080);--wy-code-operator: var(--wy-code-operator-light, #000000);--wy-code-prolog: var(--wy-code-prolog-light, #000080);--wy-code-comment: var(--wy-code-comment-light, #008000);--wy-code-builtin: var(--wy-code-builtin-light, #0070C1);--wy-code-number: var(--wy-code-number-light, #098658);--wy-code-inserted: var(--wy-code-inserted-light, #098658);--wy-code-constant: var(--wy-code-constant-light, #811F3F);--wy-code-hexcode: var(--wy-code-hexcode-light, #811F3F);--wy-code-regex: var(--wy-code-regex-light, #811F3F);--wy-code-char: var(--wy-code-char-light, #811F3F);--wy-code-tag: var(--wy-code-tag-light, #800000);--wy-code-attr-name: var(--wy-code-attr-name-light, #E50000);--wy-code-selector: var(--wy-code-selector-light, #E50000);--wy-code-property: var(--wy-code-property-light, #E50000);--wy-code-deleted: var(--wy-code-deleted-light, #A31515);--wy-code-string: var(--wy-code-string-light, #A31515);--wy-code-changed: var(--wy-code-changed-light, #0451A5);--wy-code-punctuation: var(--wy-code-punctuation-light, #000000);--wy-code-function: var(--wy-code-function-light, #0000FF);--wy-code-keyword: var(--wy-code-keyword-light, #AF00DB);--wy-code-class-name: var(--wy-code-class-name-light, #267F99)}.wy-dark:not(.wy-light) :where(wy-chat),.wy-dark:not(.wy-light) :where(wy-comments),.wy-dark:not(.wy-light) :where(wy-component),.wy-dark:not(.wy-light) :where(wy-copilot),.wy-dark:not(.wy-light) :where(wy-files),.wy-dark:not(.wy-light) :where(wy-messenger),.wy-dark:not(.wy-light) :where(wy-notification-toasts),.wy-dark:not(.wy-light) :where(wy-notifications),.wy-dark:not(.wy-light) :where(wy-posts),:host(.wy-dark:not(.wy-light)),:host .wy-dark:not(.wy-light),::slotted(.wy-dark:not(.wy-light)){color-scheme:dark;--wy-primary: var(--wy-primary-80, #95ccff);--wy-on-primary: var(--wy-primary-20, #003352);--wy-primary-container: var(--wy-primary-30, #004a75);--wy-on-primary-container: var(--wy-primary-90, #cde5ff);--wy-secondary: var(--wy-secondary-80, #a0d57b);--wy-on-secondary: var(--wy-secondary-20, #163800);--wy-secondary-container: var(--wy-secondary-30, #245103);--wy-on-secondary-container: var(--wy-secondary-90, #bbf294);--wy-tertiary: var(--wy-tertiary-80, #a0d57b);--wy-on-tertiary: var(--wy-tertiary-20, #163800);--wy-tertiary-container: var(--wy-tertiary-30, #245103);--wy-on-tertiary-container: var(--wy-tertiary-90, #bbf294);--wy-error: var(--wy-error-80, #ffb3ae);--wy-on-error: var(--wy-error-20, #68000b);--wy-error-container: var(--wy-error-30, #930014);--wy-on-error-container: var(--wy-error-90, #ffdad7);--wy-warning: var(--wy-warning-90, #e7e971);--wy-on-warning: var(--wy-warning-30, #484a00);--wy-warning-container: var(--wy-warning-50, #7a7c05);--wy-on-warning-container: var(--wy-warning-95, #f5f77d);--wy-background: var(--wy-neutral-10, #1a1c1e);--wy-on-background: var(--wy-neutral-90, #e2e2e5);--wy-surface: var(--wy-neutral-10, #1a1c1e);--wy-on-surface: var(--wy-neutral-90, #e2e2e5);--wy-surface-variant: var(--wy-neutral-variant-30, #42474e);--wy-on-surface-variant: var(--wy-neutral-variant-80, #c2c7ce);--wy-outline: var(--wy-neutral-variant-60, #8c9198);--wy-outline-variant: var(--wy-neutral-variant-30, #42474e);--wy-inverse-surface: var(--wy-neutral-90, #e2e2e5);--wy-on-inverse-surface: var(--wy-neutral-20, #2f3033);--wy-inverse-primary: var(--wy-primary-40, #006399);--wy-surface-1: var(--wy-surface-1-dark, #212427);--wy-surface-2: var(--wy-surface-2-dark, #25292d);--wy-surface-3: var(--wy-surface-3-dark, #292e33);--wy-surface-4: var(--wy-surface-4-dark, #2b3035);--wy-surface-5: var(--wy-surface-5-dark, #2d3338);--wy-highlight: var(--wy-primary-20, #003352);--wy-on-highlight: var(--wy-primary-90, #cde5ff);--wy-link: var(--wy-primary-80, #95ccff);--wy-presence-active: var(--wy-green-dark, #00a38b);--wy-blue: var(--wy-blue-dark, #b1c5ff);--wy-indigo: var(--wy-indigo-dark, #9185de);--wy-purple: var(--wy-purple-dark, #e38fd3);--wy-pink: var(--wy-pink-dark, #f48bae);--wy-red: var(--wy-red-dark, #db726c);--wy-orange: var(--wy-orange-dark, #e89a3a);--wy-yellow: var(--wy-yellow-dark, #cacc58);--wy-green: var(--wy-green-dark, #00a38b);--wy-teal: var(--wy-teal-dark, #00a0a8);--wy-cyan: var(--wy-cyan-dark, #009dc3);--wy-gray: var(--wy-gray-dark, #909194);--wy-code-text: var(--wy-code-text-dark, #cccccc);--wy-code-variable: var(--wy-code-variable-dark, #9CDCFE);--wy-code-operator: var(--wy-code-operator-dark, #d4d4d4);--wy-code-prolog: var(--wy-code-prolog-dark, #569CD6);--wy-code-comment: var(--wy-code-comment-dark, #6a9955);--wy-code-builtin: var(--wy-code-builtin-dark, #4fc1ff);--wy-code-number: var(--wy-code-number-dark, #b5cea8);--wy-code-inserted: var(--wy-code-inserted-dark, #b5cea8);--wy-code-constant: var(--wy-code-constant-dark, #646695);--wy-code-hexcode: var(--wy-code-hexcode-dark, #646695);--wy-code-regex: var(--wy-code-regex-dark, #d16969);--wy-code-char: var(--wy-code-char-dark, #d16969);--wy-code-tag: var(--wy-code-tag-dark, #569cd6);--wy-code-attr-name: var(--wy-code-attr-name-dark, #9cdcfe);--wy-code-selector: var(--wy-code-selector-dark, #9cdcfe);--wy-code-property: var(--wy-code-property-dark, #9cdcfe);--wy-code-deleted: var(--wy-code-deleted-dark, #ce9178);--wy-code-string: var(--wy-code-string-dark, #ce9178);--wy-code-changed: var(--wy-code-changed-dark, #569cd6);--wy-code-punctuation: var(--wy-code-punctuation-dark, #D4D4D4);--wy-code-function: var(--wy-code-function-dark, #569cd6);--wy-code-keyword: var(--wy-code-keyword-dark, #C586C0);--wy-code-class-name: var(--wy-code-class-name-dark, #4ec9b0)}`,Fj=At`@property --wy-component-color{syntax: \"<color>\"; inherits: true; initial-value: currentColor;}@property --wy-component-background-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}`,Xj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),Bj([Fj,Xi])}},h(e,"t"),e),u(t,"WeavyStyles"),t},"WeavyStylesMixin"),Nj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this.version=Me.version,this.whenUrl().then(()=>{this.isDestroyed||this.checkVersion()})}async checkVersion(s=this.version){var r,a;await this.whenUrl(),this.networkStateIsPending=!0;let o;try{if(o=await fetch(new URL("/version",this.url),await this.fetchOptions({},!1)),!o.ok)throw new Error("Could not verify environment version.");this.networkStateIsPending=!1,this.serverState="ok"}catch(c){this.networkStateIsPending=!1,this.serverState="unreachable",console.warn("Could not check version: "+c.toString());return}const l=await o.text();if(l.startsWith("v")&&(!s||!l||s!==l))try{const c=s.split(".").slice(0,2),d=l.split(".").slice(0,2);if(c[0]!==d[0])throw new Error;c[1]!==d[1]&&console.warn(`Version inconsistency: ${Me.sourceName}@${this.version} ≠ ${(r=this.url)==null?void 0:r.hostname}@${l}`)}catch{throw new Error(`Version mismatch! ${Me.sourceName}@${this.version} ≠ ${(a=this.url)==null?void 0:a.hostname}@${l}`)}}},h(e,"t"),e),u(t,"WeavyVersion"),t},"WeavyVersionMixin");var pb,xu;let qE=(pb=(xu=class extends Event{constructor(t,e,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=i,this.subscribe=s??!1}},h(xu,"xn"),xu),u(pb,"s"),pb);var fb,ku;let ta=(fb=(ku=class{constructor(t,e,i,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){const r=e;this.context=r.context,this.callback=r.callback,this.subscribe=r.subscribe??!1}else this.context=e,this.callback=i,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new qE(this.context,this.host,this.t,this.subscribe))}},h(ku,"$n"),ku),u(fb,"s"),fb);var yb,Su;let Hj=(yb=(Su=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const i=e||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:i}]of this.subscriptions)e(this.o,i)},t!==void 0&&(this.value=t)}addCallback(t,e,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:u(()=>{this.subscriptions.delete(t)},"disposer"),consumerHost:e});const{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}},h(Su,"Cn"),Su),u(yb,"s"),yb);var mb,Pu;let Yj=(mb=(Pu=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h(Pu,"kn"),Pu),u(mb,"e"),mb);var wb,Cu;let ik=(wb=(Cu=class extends Hj{constructor(t,e,i){var s,r;super(e.context!==void 0?e.initialValue:i),this.onContextRequest=a=>{if(a.context!==this.context)return;const o=a.contextTarget??a.composedPath()[0];o!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,o,a.subscribe))},this.onProviderRequest=a=>{if(a.context!==this.context||(a.contextTarget??a.composedPath()[0])===this.host)return;const o=new Set;for(const[l,{consumerHost:c}]of this.subscriptions)o.has(l)||(o.add(l),c.dispatchEvent(new qE(this.context,c,l,!0)));a.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(r=(s=this.host).addController)==null||r.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Yj(this.context,this.host))}},h(Cu,"_n"),Cu),u(wb,"i"),wb);function ds({context:n}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(s){return i.get(this).setValue(s),t.set.call(this,s)},init(s){return i.set(this,new ik(this,{context:n,initialValue:s})),s}};{t.constructor.addInitializer(a=>{i.set(a,new ik(a,{context:n}))});const s=Object.getOwnPropertyDescriptor(t,e);let r;if(s===void 0){const a=new WeakMap;r={get(){return a.get(this)},set(o){i.get(this).setValue(o),a.set(this,o)},configurable:!0,enumerable:!0}}else{const a=s.set;r={...s,set(o){i.get(this).setValue(o),a==null||a.call(this,o)}}}return void Object.defineProperty(t,e,r)}}}h(ds,"Ji");u(ds,"e$5");function fe({context:n,subscribe:t}){return(e,i)=>{typeof i=="object"?i.addInitializer(function(){new ta(this,{context:n,callback:u(s=>{e.set.call(this,s)},"callback"),subscribe:t})}):e.constructor.addInitializer(s=>{new ta(s,{context:n,callback:u(r=>{s[i]=r},"callback"),subscribe:t})})}}h(fe,"Qt");u(fe,"c$2");var Qu;const UE=(Qu=class extends Event{constructor(t,e,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=i,this.subscribe=s??!1}},h(Qu,"kp"),Qu);u(UE,"ContextRequestEvent");let Gj=UE;var Mu;const jE=(Mu=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h(Mu,"_p"),Mu);u(jE,"ContextProviderEvent");let Kj=jE;var Tu;const BE=(Tu=class extends ik{constructor(t,e,i){e.context!==void 0?super(t,e):super(t,e,i),e.context!==void 0?this._context=e.context:this._context=e,this.isAttached=!0,this.host instanceof yt||this.dispatchWhenConnected()}dispatchWhenConnected(){this.isAttached&&(this.host.isConnected?this.host.dispatchEvent(new Kj(this._context,this.host)):requestAnimationFrame(()=>this.dispatchWhenConnected()))}detachListeners(){this.isAttached=!1,this.host.removeEventListener("context-request",this.onContextRequest),this.host.removeEventListener("context-provider",this.onProviderRequest)}},h(Tu,"Mp"),Tu);u(BE,"WyContextProvider");let FE=BE;const Le=Symbol.for("weavy-client");function XE(n,t){return ii(),new FE(n,{context:Le,initialValue:t})}h(XE,"kv");u(XE,"createWeavyContextProvider");const Zi=r0()?XE(document.documentElement):void 0,Jj=u(n=>{var i;var t,e;return e=(i=class extends n{constructor(...r){super(...r),q(this,t),this.host!==document.documentElement?(Zi==null||Zi.detachListeners(),z(this,t,new FE(this.host,{context:Le,initialValue:this}))):Zi==null||Zi.setValue(this)}updateContext(){var r;this.host!==document.documentElement?(r=k(this,t))==null||r.updateObservers():Zi==null||Zi.updateObservers()}destroy(){var r;super.destroy(),this.host!==document.documentElement?(r=k(this,t))==null||r.detachListeners():(Zi==null?void 0:Zi.value)===this&&(Zi==null||Zi.setValue(void 0))}},h(i,"e"),i),t=new WeakMap,u(e,"WeavyContextProvider"),e},"WeavyContextProviderMixin");var b1,$1,lr,wm,Ge;const gm=(Ge=class{constructor(t){q(this,b1),q(this,$1),q(this,lr),q(this,wm),this.weavySid=Xf(),this.weavyId=`${Ge.sourceName}#${this.weavySid}`,this.cloudFilePickerUrl=Ge.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=Ge.defaults.disableEnvironmentImports,this.gcTime=Ge.defaults.gcTime,this.scrollBehavior=Ge.defaults.scrollBehavior,this.staleTime=Ge.defaults.staleTime,this.tokenFactoryRetryDelay=Ge.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=Ge.defaults.tokenFactoryTimeout,z(this,$1,new Promise(i=>{z(this,b1,i)})),z(this,wm,!1),console.info(`${Ge.sourceName}@${Ge.version} #${this.weavySid}`),ii(),this.host=document.documentElement;const e={};for(const i in t){const s=i;t[s]!==void 0&&Object.assign(e,{[s]:t[s]})}e!=null&&e.host&&(this.host=e.host,delete e.host),e&&Object.assign(this,e)}async whenUrl(){await k(this,$1)}get url(){return k(this,lr)}set url(t){var e;if(this.isDestroyed)throw new Ce;try{if(typeof t=="string")t&&z(this,lr,new URL(t,window.location.toString()));else if(t instanceof URL)z(this,lr,t||void 0);else if(t==null)z(this,lr,void 0);else throw new Error}catch{throw new TypeError("Invalid url")}t&&!this.disableEnvironmentImports&&globalThis.WEAVY_IMPORT_URL===void 0&&(globalThis.WEAVY_IMPORT_URL=new URL("./uikit-web/",t).href),k(this,lr)&&((e=k(this,b1))==null||e.call(this,k(this,lr)))}get cachePrefix(){return`${Ge.version}:${this.url}`}get isDestroyed(){return k(this,wm)}destroy(){z(this,wm,!0),console.info(this.weavyId,"was destroyed")}},h(Ge,"he"),Ge);b1=new WeakMap,$1=new WeakMap,lr=new WeakMap,wm=new WeakMap,u(gm,"WeavyClient"),gm.version="28.0.1",gm.sourceName="@weavy/uikit-web",gm.defaults={cloudFilePickerUrl:"https://filebrowser.weavy.io/v14/",disableEnvironmentImports:!1,gcTime:1e3*60*60*24,locale:cE,notificationEvents:!1,scrollBehavior:"auto",staleTime:1e3*1,tokenFactoryRetryDelay:2e3,tokenFactoryTimeout:2e4,notifications:"button-list",notificationsBadge:"count",reactions:"😍 😎 😉 😜 👍"};let Me=gm;var Au;const NE=(Au=class extends Jj(Tj(Zj(_j(Rj(zj(Aj(Ij(Nj(Ej(Xj(Vj(Me)))))))))))){},h(Au,"zp"),Au);u(NE,"Weavy");let Oe=NE;var Ru;const HE=(Ru=class{constructor(t,e,i,s,r){var a,o;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this._callback=(l,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),(!this.provided||this.subscribe)&&(this.provided=!0,this.callback&&this.callback(l,c)),this.unsubscribe=c},this.host=t,e.context!==void 0){const l=e;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1,this.ref=l.ref??t}else this.context=e,this.callback=i,this.subscribe=s??!1,this.ref=r??t;(o=(a=this.host).addController)==null||o.call(a,this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.ref.dispatchEvent(new Gj(this.context,this.host,this._callback,this.subscribe))}},h(Ru,"Pp"),Ru);u(HE,"ContextConsumer");let tB=HE;var Eu;const YE=(Eu=class{constructor(t,e,i){this.whenRef=new Promise(s=>this.resolveRef=s),t.addController(this),this.host=t,this.ref=i,this.setContext(e)}get ref(){return this._ref}set ref(t){var e;this._ref=t,t&&((e=this.resolveRef)==null||e.call(this,t))}async setContext(t){this.whenContext=new Promise(i=>this.resolveContext=i);const e=await this.whenRef;this.context=new tB(this.host,{context:t,subscribe:!0,callback:u((i,s)=>{var r;(r=this.resolveContext)==null||r.call(this,i),this.host.requestUpdate()},"callback"),ref:e}),await Ek(e),this.context.dispatchRequest()}hostUpdate(){var t,e;(t=this.context)!=null&&t.value&&((e=this.resolveContext)==null||e.call(this,this.context.value))}},h(Eu,"Sp"),Eu);u(YE,"ContextController");let eB=YE;const iB={attribute:!0,type:String,converter:Sv,reflect:!1,hasChanged:SS},nB=u((n=iB,t,e)=>{const{kind:i,metadata:s}=e;let r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),i==="setter"&&((n=Object.create(n)).wrapped=!0),r.set(e.name,n),i==="accessor"){const{name:a}=e;return{set(o){const l=t.get.call(this);t.set.call(this,o),this.requestUpdate(a,l,n)},init(o){return o!==void 0&&this.C(a,void 0,n,o),o}}}if(i==="setter"){const{name:a}=e;return function(o){const l=this[a];t.call(this,o),this.requestUpdate(a,l,n)}}throw Error("Unsupported decorator location: "+i)},"r$3");function $(n){return(t,e)=>typeof e=="object"?nB(n,t,e):((i,s,r)=>{const a=s.hasOwnProperty(r);return s.constructor.createProperty(r,i),a?Object.getOwnPropertyDescriptor(s,r):void 0})(n,t,e)}h($,"y");u($,"n$3");function F(n){return $({...n,state:!0,attribute:!1})}h(F,"D");u(F,"r$2");const sB=u((n,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(n,t,e),e),"e$4");function GE(n){return(t,e)=>{const{slot:i,selector:s}=n??{},r="slot"+(i?`[name=${i}]`:":not([name])");return sB(t,e,{get(){var a;const o=(a=this.renderRoot)==null?void 0:a.querySelector(r),l=(o==null?void 0:o.assignedElements(n))??[];return s===void 0?l:l.filter(c=>c.matches(s))}})}}h(GE,"Sv");u(GE,"o$6");var x1,_u;const KE=(_u=class{constructor(t){q(this,x1),this.notifications=Me.defaults.notifications,this.notificationsBadge=Me.defaults.notificationsBadge,this.reactions=Me.defaults.reactions,z(this,x1,t),Object.keys(this).forEach(e=>{e in t&&Object.assign(this,{[e]:t[e]})})}get component(){return k(this,x1)}},h(_u,"Ap"),_u);x1=new WeakMap,u(KE,"WeavyComponentSettings");let h3=KE;const JE=Symbol.for("weavy-component-settings");var zu;const t_=(zu=class{get result(){return this._result&&this.observer?this.observer.trackResult(this._result):{isPending:!0}}constructor(t){t.addController(this),this.host=t,this.whenContext=new Promise(e=>this.resolveContext=e),this.whenQueryClient=new Promise(e=>this.resolveQueryClient=e),this.setContext()}async setContext(){await nl(this.host),this.context=new ta(this.host,{context:Le,subscribe:!0,callback:u(t=>{var e,i;t&&((e=this.resolveContext)==null||e.call(this,t),this.queryClient=t.queryClient,(i=this.resolveQueryClient)==null||i.call(this,t.queryClient))},"callback")})}async trackQuery(t,e=!0){var i;(i=this.observerUnsubscribe)==null||i.call(this);const s=await this.whenQueryClient;if(!s)throw new Error("No QueryClient provided");const r=new qR(s,t);this.observer=r,this.observerSubscribe(e)}observerSubscribe(t=!0){var e;if(this.queryClient&&this.observer){t?this._result=this.observer.getOptimisticResult(this.observer.options):this._result=this.observer.getCurrentResult(),this.observerUnsubscribe=this.observer.subscribe(()=>{if(this.observer){const s=vy(this.result,this.observer.getCurrentResult());s!==this._result&&(this._result=s,this.host.requestUpdate())}}),this.observer.updateResult(),this.host.requestUpdate();let i;t?i=this.observer.fetchOptimistic(this.observer.options):i=(e=this.queryClient.getQueryCache().get(this.observer.options.queryHash))==null?void 0:e.promise,i==null||i.catch(()=>{}).finally(()=>{var s;(s=this.observer)==null||s.updateResult()})}}untrackQuery(){var t;(t=this.observerUnsubscribe)==null||t.call(this),this.observerUnsubscribe=void 0,this._result=void 0,this.observer=void 0,this.host.requestUpdate()}hostConnected(){this.observerSubscribe()}hostDisconnected(){var t;(t=this.observerUnsubscribe)==null||t.call(this)}},h(zu,"Ep"),zu);u(t_,"QueryController");let sn=t_;const HS=Symbol.for("weavy-app"),I0=Symbol.for("weavy-user");var L=(n=>(n.Attachments="attachments",n.agents="agents",n.CloudFiles="cloud_files",n.ContextData="context_data",n.Comments="comments",n.Embeds="embeds",n.GoogleMeet="google_meet",n.Meetings="meetings",n.Mentions="mentions",n.MicrosoftTeams="microsoft_teams",n.Polls="polls",n.Previews="previews",n.Reactions="reactions",n.Receipts="receipts",n.Thumbnails="thumbnails",n.Typing="typing",n.Versions="versions",n.WebDAV="web_dav",n.ZoomMeetings="zoom_meetings",n))(L||{});const YS=Symbol.for("weavy-features");var Za,dc,Ss,zo;const e_=(zo=class{constructor(t,e){q(this,Za),q(this,dc),q(this,Ss),z(this,Za,Object.keys(t)),z(this,dc,Object.entries(t).reduce((i,[s,r])=>(r&&i.push(s),i),[])),z(this,Ss,e??k(this,dc))}features(){return k(this,Za)}supportedFeature(...t){return t.every(e=>k(this,Za).includes(e))}allowedFeatures(){return k(this,Ss)}allowsFeature(...t){return t.every(e=>this.supportedFeature(e)?k(this,Ss).includes(e):!1)}allowsAnyFeature(...t){return t.some(e=>this.supportedFeature(e)?k(this,Ss).includes(e):!1)}setAllowedFeatures(t){return z(this,Ss,typeof t=="string"?GS(t,k(this,Za)):k(this,dc)),k(this,Ss)}immutable(){const t=Z0(k(this,Za),k(this,dc));return new zo(t,k(this,Ss))}},h(zo,"pd"),zo);Za=new WeakMap,dc=new WeakMap,Ss=new WeakMap,u(e_,"ComponentFeatures");let $n=e_;function GS(n,t){return n.split(" ").filter(e=>{if(e){if(t.includes(e))return!0;console.warn("Unknown feature provided:",e)}return!1})}h(GS,"Bw");u(GS,"featureListFromString");function Z0(n,t){return t??(t=n),Object.fromEntries(n.map(e=>[e,t.includes(e)]))}h(Z0,"Wu");u(Z0,"featureConfigFromList");const nk=Object.values(L),i_=Symbol.for("weavy-link"),n_=Symbol.for("weavy-agent-user"),Ye=[];for(let n=0;n<256;++n)Ye.push((n+256).toString(16).slice(1));function s_(n,t=0){return(Ye[n[t+0]]+Ye[n[t+1]]+Ye[n[t+2]]+Ye[n[t+3]]+"-"+Ye[n[t+4]]+Ye[n[t+5]]+"-"+Ye[n[t+6]]+Ye[n[t+7]]+"-"+Ye[n[t+8]]+Ye[n[t+9]]+"-"+Ye[n[t+10]]+Ye[n[t+11]]+Ye[n[t+12]]+Ye[n[t+13]]+Ye[n[t+14]]+Ye[n[t+15]]).toLowerCase()}h(s_,"Av");u(s_,"unsafeStringify");let gb;const rB=new Uint8Array(16);function r_(){if(!gb){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");gb=crypto.getRandomValues.bind(crypto)}return gb(rB)}h(r_,"Ov");u(r_,"rng");const aB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),d3={randomUUID:aB};function _w(n,t,e){var i;if(d3.randomUUID&&!n)return d3.randomUUID();n=n||{};const s=n.random??((i=n.rng)==null?void 0:i.call(n))??r_();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,s_(s)}h(_w,"ql");u(_w,"v4");function a_(n){let t;return n instanceof URL?t={type:"url",item:n}:n instanceof File?t={type:"file",item:n}:n instanceof Blob?t={type:"file",item:new File([n],`${_w()}`,{type:n.type})}:typeof n=="string"&&(t={type:"file",item:new File([n],`${_w()}.data.txt`,{type:"text/plain;charset=UTF-8"})}),t}h(a_,"Lv");u(a_,"getContextDataRef");const ag=u((n,t=3)=>{const e=[" B"," KB"," MB"," GB"," TB"," PB"," EB"," ZB"," YB"];let i=n,s=0;for(;s<e.length-1&&i>=1024;)i=100*i/1024/100,s++;return i.toLocaleString(void 0,{maximumSignificantDigits:t})+e[s]},"fileSizeAsString");function Ni(n){return n.lastIndexOf(".")===-1?".":(n.substring(n.lastIndexOf("."),n.length)||n).toLowerCase()}h(Ni,"ei");u(Ni,"getExtension");function KS(n){switch(n){case".aac":case".aif":case".aiff":case".au":case".gsm":case".m4a":case".mid":case".midi":case".mka":case".mp3":case".oga":case".ogg":case".ra":case".ram":case".snd":case".spx":case".wav":case".wma":return!0;default:return!1}}h(KS,"jw");u(KS,"isAudio");function o_(n){switch(n){case".ai":case".apng":case".bmp":case".emf":case".eps":case".gif":case".heic":case".ico":case".jpg":case".jpeg":case".png":case".psd":case".svg":case".tif":case".tiff":case".webp":case".wmf":return!0;default:return!1}}h(o_,"Iv");u(o_,"isImage");function l_(n){switch(Ni(n)){case".apng":case".bmp":case".gif":case".ico":case".jpg":case".jpeg":case".png":case".svg":case".webp":return!0;default:return!1}}h(l_,"Tv");u(l_,"isWebImage");function JS(n){switch(n){case".3g2":case".asx":case".asf":case".avi":case".flv":case".mk3d":case".mkv":case".mov":case".mp4":case".mpeg":case".mpg":case".ogm":case".ogv":case".ogx":case".qt":case".rm":case".rv":case".smi":case".smil":case".swf":case".webm":case".wmv":case".xaml":return!0;default:return!1}}h(JS,"Ww");u(JS,"isVideo");function c_(n){switch(n){case".markdown":case".md":return!0;default:return!1}}h(c_,"Fv");u(c_,"isMarkdown");function tP(n){switch(n){case".htm":case".html":case".xhtml":case".xml":return!0;default:return!1}}h(tP,"Qw");u(tP,"isMarkup");function V0(n){if(tP(n))return!0;switch(n){case".as":case".as3":case".asm":case".aspx":case".bat":case".c":case".cc":case".cmake":case".coffee":case".cpp":case".cs":case".css":case".cxx":case".diff":case".erb":case".erl":case".groovy":case".gvy":case".h":case".haml":case".hh":case".hpp":case".hxx":case".java":case".js":case".json":case".jsx":case".less":case".lst":case".m":case".make":case".ml":case".mm":case".out":case".patch":case".php":case".pl":case".plist":case".properties":case".py":case".rb":case".sass":case".scala":case".scm":case".script":case".scss":case".sh":case".sml":case".sql":case".vb":case".vi":case".vim":case".xsd":case".xsl":case".yaml":case".yml":return!0;default:return!1}}h(V0,"Qu");u(V0,"isCode");function eP(n){if(V0(n)||c_(n))return!0;switch(n){case".txt":return!0;default:return!1}}h(eP,"Kw");u(eP,"isText");function us(n){const t=Ni(n);if(t==="")return{icon:"file"};if(KS(t))return{icon:"file-music",color:"indigo"};if(o_(t))return{icon:"file-image",color:"cyan"};if(JS(t))return{icon:"file-video",color:"pink"};if(tP(t))return{icon:"file-xml",color:"purple"};if(V0(t))return{icon:"file-code",color:"purple"};if(eP(t))return{icon:"file-document"};switch(t){case".7z":case".zip":return{icon:"file-compressed",color:"orange"};case".doc":case".docm":case".docx":case".dotm":case".dotx":return{icon:"file-word",color:"native"};case".eml":case".msg":return{icon:"email",color:""};case".xls":case".xlsm":case".xlsx":case".xltx":return{icon:"file-excel",color:"native"};case".pdf":return{icon:"file-pdf",color:"native"};case".ppt":case".pptm":case".pptx":case".potx":return{icon:"file-powerpoint",color:"native"};case".pages":return{icon:"file",color:"orange"};case".numbers":return{icon:"file",color:"green"};case".keynote":return{icon:"file",color:"blue"}}return{icon:"file"}}h(us,"ts");u(us,"getIcon");function h_(n){const t=Ni(n);return t===""?"none":l_(t)?"image":V0(t)?"code":eP(t)?"text":KS(t)?"audio":JS(t)?"video":"none"}h(h_,"Dv");u(h_,"getWebPreviewFormat");function ua(n){switch(n){case"Google Drive":return"google-drive";case"Dropbox":return"dropbox";case"OneDrive":return"onedrive";case"Box":return"box";default:return""}}h(ua,"br");u(ua,"getProvider");function og(n){let t="file";switch(Ni(n)){case".7z":case".zip":t="archive";break;case".aac":case".aif":case".aiff":case".au":case".gsm":case".m4a":case".mid":case".midi":case".mka":case".mp3":case".oga":case".ogg":case".ra":case".ram":case".snd":case".spx":case".wav":case".wma":t="audio";break;case".c":case".cgi":case".cpp":case".cs":case".cshtml":case".css":case".html":case".java":case".js":case".json":case".less":case".php":case".pl":case".ps1":case".py":case".rb":case".rs":case".scss":case".sh":case".swift":case".sql":case".ts":case".xml":case".yaml":case".yml":t="code";break;case".doc":case".docm":case".docx":case".dotm":case".dotx":case".gdoc":case".pages":case".pdf":t="document";break;case".eml":case".msg":t="email";break;case".gslides":case".keynote":case".ppt":case".pptm":case".pptx":case".potx":t="presentation";break;case".gsheet":case".numbers":case".xls":case".xlsm":case".xlsx":case".xltx":t="spreadsheet";break;case".ai":case".apng":case".bmp":case".emf":case".eps":case".gif":case".heic":case".ico":case".jpg":case".jpeg":case".png":case".psd":case".svg":case".tif":case".tiff":case".webp":case".wmf":t="image";break;case".md":case".markdown":case".txt":t="text";break;case".3g2":case".asx":case".asf":case".avi":case".flv":case".mk3d":case".mkv":case".mov":case".mp4":case".mpeg":case".mpg":case".ogm":case".ogv":case".ogx":case".qt":case".rm":case".rv":case".smi":case".smil":case".swf":case".webm":case".wmv":case".xaml":t="video";break}return t}h(og,"wd");u(og,"getKind");function W0(n){const t=n.target,e=t==null?void 0:t.value.lastIndexOf(".");e===-1?t==null||t.select():e!==void 0&&(t==null||t.setSelectionRange(0,e))}h(W0,"Ku");u(W0,"handleSelectFilename");async function Dv(n,t="SHA-256"){return await new Promise(e=>{if(n){const i=new FileReader;i.readAsArrayBuffer(n),i.onloadend=async()=>{const s=await crypto.subtle.digest(t,i.result);let r="";s&&(r=Array.from(new Uint8Array(s)).map(a=>a.toString(16).padStart(2,"0")).join("")),e(r)}}else e("")})}h(Dv,"cu");u(Dv,"getHash");function k1(n,t){return n.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}h(k1,"_h");u(k1,"getResult");var Lu;const d_=(Lu=class{constructor(t){this.alwaysUpdate=!1,t.addController(this),this.host=t,this.setContext()}async setContext(){this.whenContext=new Promise(t=>this.resolveContext=t),await nl(this.host),this.context=new ta(this.host,{context:Le,subscribe:!0})}hostUpdate(){var t,e;(t=this.context)!=null&&t.value&&((e=this.resolveContext)==null||e.call(this))}async trackMutationState(t,e){var i,s,r;if(e||(await this.whenContext,e=(s=(i=this.context)==null?void 0:i.value)==null?void 0:s.queryClient),!e)throw new Error("No QueryClient provided");return(r=this.mutationCacheUnsubscribe)==null||r.call(this),this.options=t,this.mutationCache=e.getMutationCache(),this.mutationCacheSubscribe(),this.result}mutationCacheSubscribe(){this.mutationCache&&this.options&&(this.result=k1(this.mutationCache,this.options),this.mutationCacheUnsubscribe=this.mutationCache.subscribe(t=>{if(this.mutationCache&&this.options&&/added|removed|updated/.test(t.type)){const e=k1(this.mutationCache,this.options);(this.result!==e||Wc(this.result,e))&&(this.result=e,this.host.requestUpdate())}}),this.host.requestUpdate())}get isMutating(){var t;return!this.mutationCache||!((t=this.options)!=null&&t.filters)?0:k1(this.mutationCache,{filters:{...this.options.filters,status:"pending"}}).length}untrackMutationState(){var t;(t=this.mutationCacheUnsubscribe)==null||t.call(this),this.mutationCacheUnsubscribe=void 0,this.result=void 0,this.options=void 0,this.mutationCache=void 0,this.host.requestUpdate()}hostConnected(){this.mutationCacheSubscribe()}hostDisconnected(){var t;(t=this.mutationCacheUnsubscribe)==null||t.call(this)}},h(Lu,"Op"),Lu);u(d_,"MutationStateController");let lg=d_;var Iu;const u_=(Iu=class{constructor(t){t.addController(this),this.host=t,this.whenContext=new Promise(e=>this.resolveContext=e),this.whenObserver=new Promise(e=>this.resolveObserver=e),this.setContext()}async setContext(){await nl(this.host),this.context=new ta(this.host,{context:Le,subscribe:!0})}hostUpdate(){var t,e;(t=this.context)!=null&&t.value&&((e=this.resolveContext)==null||e.call(this))}async trackMutation(t,e){var i,s,r,a;if(e||(await this.whenContext,e=(s=(i=this.context)==null?void 0:i.value)==null?void 0:s.queryClient),!e)throw new Error("No QueryClient provided");return(r=this.observerUnsubscribe)==null||r.call(this),this.observer&&(this.whenObserver=new Promise(o=>this.resolveObserver=o)),this.observer=new jt(e,{...t}),this.observerSubscribe(),(a=this.resolveObserver)==null||a.call(this,this.observer),this.observer}observerSubscribe(){this.observer&&(this.result=this.observer.getCurrentResult(),this.observerUnsubscribe??(this.observerUnsubscribe=this.observer.subscribe(()=>{if(this.observer){const t=vy(this.result,this.observer.getCurrentResult());this.result!==t&&(this.result=t,this.host.requestUpdate())}})),this.host.requestUpdate())}untrackMutation(){var t;(t=this.observerUnsubscribe)==null||t.call(this),this.observerUnsubscribe=void 0,this.result=void 0,this.observer=void 0,this.host.requestUpdate()}async mutate(t,e){return(await this.whenObserver).mutate(t,e)}hostConnected(){this.observerSubscribe()}hostDisconnected(){var t;(t=this.observerUnsubscribe)==null||t.call(this)}},h(Iu,"Rp"),Iu);u(u_,"MutationController");let rn=u_;function oe(n,t,e,i){const s=n.getMutationCache(),r=s.find({mutationKey:t,predicate:u(a=>a.state.variables===e,"predicate")});if(r&&r.state.context){const a={...r.state.context};i(a);const o={...r.state,context:a};r.state=o,s.notify({mutation:r,type:"updated",action:{type:"pending",context:r.state.context,variables:r.state.variables,isPaused:!1}})}}h(oe,"Dt");u(oe,"updateMutationContext");function iP(n,t,e){const i=n.getMutationCache().find({mutationKey:t,exact:!0,predicate:e});i&&n.getMutationCache().remove(i)}h(iP,"Gw");u(iP,"removeMutation");function p_(n,t){const e=n.getMutationCache();e.findAll({mutationKey:t,exact:!0}).forEach(i=>{e.remove(i)})}h(p_,"Hv");u(p_,"removeMutations");const nP=u((n,t,e=0,i="application/octet-stream",s,r=Date.now())=>{const a=n&&(n instanceof URL?n.toString():URL.createObjectURL(n));return{id:r,app:{id:-1},name:t,kind:og(t),size:e,media_type:i,embed_url:"",preview_format:h_(t),thumbnail_url:a,preview_url:a,download_url:a,rev:-1,created_by:s,created_at:new Date().toUTCString(),is_subscribed:!1,is_trashed:!1,is_starred:!1}},"getTempFile");function sP(n){const t=n?n.reduce((e,i)=>{var s,r;const a=(s=i.context)==null?void 0:s.file;return a&&(r=i.context)!=null&&r.status.progress&&a.size?{loaded:e.loaded+i.context.status.progress*a.size,total:e.total+a.size}:e},{loaded:0,total:0}):{loaded:0,total:0};return{loaded:t.loaded,total:t.total,percent:t.total>0?t.loaded/t.total:null}}h(sP,"Zw");u(sP,"getFileMutationsTotalProgress");function rP(n){return n?n.some(t=>{var e;return((e=t.context)==null?void 0:e.status.state)==="conflict"})?"conflict":n.some(t=>t.status==="error")?"error":n.every(t=>t.status==="success")?"ok":"pending":"ok"}h(rP,"Yw");u(rP,"getFileMutationsTotalStatus");function f_(n){return(n==null?void 0:n.filter(t=>{var e;return((e=t.context)==null?void 0:e.status.state)==="conflict"||t.status==="error"}))||[]}h(f_,"Vv");u(f_,"getFileMutationsByConflictOrError");function y_(n,t,e){const i=n.queryClient;i.getMutationCache().findAll({mutationKey:["apps",t.id,"files"],exact:!0,predicate:u(s=>{var r,a;return/error|success/.test(s.state.status)&&((a=(r=s.state.variables)==null?void 0:r.blob)==null?void 0:a.name)===e},"predicate")}).forEach(s=>{i.getMutationCache().remove(s)})}h(y_,"Uv");u(y_,"removeSettledFileMutations");function m_(n,t,e){const i=n.queryClient,s=["apps",e.id,"files"];return{mutationFn:u(async({blob:r,replace:a=!1})=>{const o=await n.fetch("/api/apps/"+e.id+"/files",{method:"POST",body:JSON.stringify({blob_id:r.id,replace:a})});if(!o.ok){const l=await o.json();throw new Error(l.detail||l.title,{cause:l})}return await o.json()},"mutationFn"),mutationKey:s,onMutate:u(async r=>{await i.cancelQueries({queryKey:s,exact:!0}),w_(n,e,r.blob.name),y_(n,e,r.blob.name);let a;try{a=r.blob.thumbnail_url&&new URL(r.blob.thumbnail_url)||void 0}catch{}const o=nP(a,r.blob.name,r.blob.size,r.blob.media_type,t);return{type:r.replace?"replace":"create",file:o,status:{state:"pending"}}},"onMutate"),onSuccess:u((r,a,o)=>(oe(i,s,a,l=>{l&&(l.status.state="ok",l.status.progress=void 0,l.status.text=void 0)}),i.invalidateQueries({queryKey:s})),"onSuccess"),onError(r,a,o){var l;((l=r==null?void 0:r.cause)==null?void 0:l.status)===409?oe(i,s,a,c=>{c&&(c.status.progress=void 0,c.status.state="conflict",c.status.text=r.message)}):oe(i,s,a,c=>{c&&(c.status.state="error",c.status.progress=void 0,c.status.text=r.message)})}}}h(m_,"Bv");u(m_,"getCreateFileMutationOptions");function w_(n,t,e,i,s="blobs"){const r=n.queryClient;r.getMutationCache().findAll({mutationKey:["apps",t.id,s,i],exact:!0,status:"success",predicate:u(a=>{var o;return((o=a.state.data)==null?void 0:o.name)===e},"predicate")}).forEach(a=>{r.getMutationCache().remove(a)})}h(w_,"qv");u(w_,"removeSuccessfulUploadBlobMutations");async function aP(n,t,e){const i=new FormData;i.append("blob",t);const s=await n.upload("/api/blobs","POST",i,zv.Auto,r=>{e&&e({progress:r})});if(!s.ok){const r=await s.json();throw new Error(r.detail||r.title,{cause:r})}return await s.json()}h(aP,"Xw");u(aP,"uploadBlob");function g_(n){return{mutationFn:u(async t=>await aP(n,t.file,t.onProgress),"mutationFn")}}h(g_,"Nv");u(g_,"getSimpleUploadBlobMutationOptions");function D0(n,t,e,i,s="blobs"){const r=n.queryClient,a=i?["apps",e,s,i]:["apps",e,s];return{mutationFn:u(async o=>await aP(n,o.file,o.onProgress),"mutationFn"),mutationKey:a,onMutate:u(async o=>{await r.cancelQueries({queryKey:a,exact:!0});const l=nP(o.file,o.file.name,o.file.size,o.file.type,t);o.onProgress=({progress:d})=>{oe(r,a,o,p=>{p.status.state="pending",p.status.progress=d})};const c=await Dv(o.file);return{type:"upload",file:l,status:{state:"pending"},sha256:c}},"onMutate"),onSuccess:u((o,l,c)=>{oe(r,a,l,d=>{d.status.state="ok",d.status.progress=void 0,d.status.text=void 0})},"onSuccess"),onError(o,l,c){const d=o.cause;d&&d.status===409?oe(r,a,l,p=>{p.status.state="conflict",p.status.progress=void 0,p.status.text=d.detail||d.title}):oe(r,a,l,p=>{p&&(p.status.state="error",p.status.progress=void 0,p.status.text=d.detail||d.title)})}}}h(D0,"Zu");u(D0,"getUploadBlobMutationOptions");const v_=Symbol.for("weavy-data-blobs"),O_=Symbol.for("weavy-context-id");function b_(n){if(n)return n.match(/^[0-9]+$/)?parseInt(n):n}h(b_,"jv");u(b_,"toIntOrString");var oB=Object.defineProperty,lB=Object.getOwnPropertyDescriptor,ye=u((n,t,e,i)=>{for(var s=i>1?void 0:i?lB(t,e):t,r=n.length-1,a;r>=0;r--)(a=n[r])&&(s=(i?a(t,e,s):a(s))||s);return i&&s&&oB(t,e,s),s},"__decorateClass$1b"),S1,P1,C1,vm,Om,bm,$m,xm,km,Sm,Pm,Cm,Qm,uc,pc,Mm,Tm,Am,Rm,Em,_m,Va,fc,Ps,Cs,zm,yc,Zu;const $_=(Zu=class extends yt{constructor(){super(),q(this,S1),q(this,P1),q(this,C1),q(this,vm),q(this,Om),q(this,bm),q(this,$m),q(this,xm),q(this,km),q(this,Sm),q(this,Pm),q(this,Cm),q(this,Qm),q(this,uc),q(this,pc),q(this,Mm),q(this,Tm),q(this,Am),q(this,Rm),q(this,Em),q(this,_m),q(this,Va),q(this,fc),q(this,Ps),q(this,Cs),q(this,zm),q(this,yc),this.storage=MR("localStorage"),this.contextId=_w(),this.storageLinkHandler=t=>{t.storageArea===this.storage&&t.key==="wy-link"&&t.newValue&&this.readStorageLink()},this.linkEventHandler=async t=>{t.defaultPrevented||(this.link&&this.link.id===t.detail.link.id&&(this.link=void 0,await this.updateComplete),this.link=t.detail.link,this.link||this.provideStorageLink(t.detail.link))},this.notificationEventHandler=t=>{t.stopPropagation(),t.defaultPrevented||this.isConnected&&this.checkVisibility(_k)&&this.matchesLink(t.detail.link)&&t.preventDefault()},z(this,Om,new Promise(t=>{z(this,vm,t)})),z(this,$m,new Promise(t=>{z(this,bm,t)})),z(this,km,new Promise(t=>{z(this,xm,t)})),z(this,Pm,new Promise(t=>{z(this,Sm,t)})),z(this,Qm,new Promise(t=>{z(this,Cm,t)})),z(this,pc,new Promise(t=>{z(this,uc,t)})),z(this,Tm,new Promise(t=>{z(this,Mm,t)})),z(this,Rm,new Promise(t=>{z(this,Am,t)})),z(this,_m,new Promise(t=>{z(this,Em,t)})),z(this,Va,new sn(this)),z(this,fc,new sn(this)),z(this,Ps,new sn(this)),z(this,Cs,new Map),z(this,zm,new rn(this)),z(this,yc,new lg(this)),this.settings=new h3(this)}reset(){this.app&&(this.app=void 0),this._appName!==this._initialAppName&&(this._appName=this._initialAppName)}matchesLink(t){var e,i,s,r;return(e=t==null?void 0:t.app)!=null&&e.type&&!this.componentType&&(i=this.appTypes)!=null&&i.includes(t.app.type)?t.agent?t.agent===this.agent:!0:!!(t&&t.app&&this.componentType!==nn.Unknown&&(typeof this.uid=="string"&&((s=t.app)==null?void 0:s.uid)===this.uid||typeof this.uid=="number"&&((r=t.app)==null?void 0:r.id)===this.uid||this.agent&&t.app.type===this.componentType&&t.agent===this.agent))}get link(){return this._link}set link(t){const e=this._link;!this.uid&&this.componentType&&this.componentType!==nn.Unknown?this.whenApp().then(()=>{this._link=this.matchesLink(t)?t:void 0,this.requestUpdate("link",e)}):(this._link=this.matchesLink(t)?t:void 0,this.requestUpdate("link",e))}clearLink(){this.link&&(z(this,pc,new Promise(t=>{z(this,uc,t)})),this.link=void 0)}provideStorageLink(t){var e;(e=this.storage)==null||e.setItem("wy-link",btoa(JSON.stringify(t)))}readStorageLink(){if(!this.storage){console.error("Storage not available");return}const t=this.storage.getItem("wy-link");if(t)try{const e=JSON.parse(atob(t));e&&(this.link=e)}catch(e){console.error("Error parsing link",e)}}consumeStorageLink(){var t;(t=this.storage)==null||t.removeItem("wy-link")}get agent(){return this._agentUid}set agent(t){this._agentUid=t||void 0}set name(t){this._initialAppName=t,this._appName=t}get name(){return this._appName}set notifications(t){z(this,S1,t)}get notifications(){var t;return k(this,S1)??((t=this.weavy)==null?void 0:t.notifications)??Me.defaults.notifications}set notificationsBadge(t){z(this,P1,t)}get notificationsBadge(){var t;return k(this,P1)??((t=this.weavy)==null?void 0:t.notificationsBadge)??Me.defaults.notificationsBadge}set reactions(t){z(this,C1,t)}get reactions(){var t;return k(this,C1)??((t=this.weavy)==null?void 0:t.reactions)??Me.defaults.reactions}async whenAgentUser(){return await k(this,Om)}async whenApp(){return await k(this,$m)}async whenContextDataBlobs(){return await k(this,km)}async whenContextId(){return await k(this,Pm)}async whenComponentFeatures(){return await k(this,Qm)}async whenLink(){return await k(this,pc)}async whenSettings(){return await k(this,Tm)}async whenUser(){return await k(this,Rm)}async whenWeavy(){return await k(this,_m)}connectedCallback(){super.connectedCallback(),document.addEventListener("wy-link",this.linkEventHandler),window.addEventListener("storage",this.storageLinkHandler),this.app&&this.requestUpdate("app"),this.agentUser&&this.requestUpdate("agentUser"),this.componentFeatures&&this.requestUpdate("componentFeatures"),this.contextDataBlobs&&this.requestUpdate("contextDataBlobs"),this.contextId&&this.requestUpdate("contextId"),this.link&&this.requestUpdate("link"),this.settings&&this.requestUpdate("settings"),this.user&&this.requestUpdate("user"),this.weavy&&this.requestUpdate("weavy")}disconnectedCallback(){var t;super.disconnectedCallback(),document.removeEventListener("wy-link",this.linkEventHandler),window.removeEventListener("storage",this.storageLinkHandler),(t=this.weavy)==null||t.host.removeEventListener("wy-notification",this.notificationEventHandler,{capture:!0})}async scheduleUpdate(){await nl(this),await super.scheduleUpdate()}async willUpdate(t){var e,i,s,r,a,o,l,c,d,p,f,m,w,O,x,b,P,R,E,T,I,Z,U,B;super.willUpdate(t),this.weavyContextConsumer??(this.weavyContextConsumer=new ta(this,{context:Le,subscribe:!0})),(e=this.weavyContextConsumer)!=null&&e.value&&this.weavy!==((i=this.weavyContextConsumer)==null?void 0:i.value)&&(this.weavy=(s=this.weavyContextConsumer)==null?void 0:s.value);const tt=Object.keys(this.settings);if((t.has("weavy")||tt.find(j=>t.has(j)))&&(this.settings=new h3(this)),t.has("weavy")&&this.weavy&&await k(this,Ps).trackQuery(Jr(this.weavy,["user"])),(r=k(this,Ps).result)!=null&&r.isPending||this.user&&k(this,Ps).result.data&&this.user.id!==k(this,Ps).result.data.id&&(console.warn("User changed, invalidating cache"),await((a=this.weavy)==null?void 0:a.queryClient.invalidateQueries())),(o=k(this,Ps).result)!=null&&o.isPending||(this.user=(l=k(this,Ps).result)==null?void 0:l.data),t.has("features")&&this.componentFeatures&&(this.componentFeatures.setAllowedFeatures(this.features),this.componentFeatures instanceof $n&&(this.componentFeatures=this.componentFeatures.immutable())),(t.has("autoUid")||t.has("user")||t.has("agent"))&&this.autoUid&&this.user&&(this.componentType&&sk.has(this.componentType)&&this.agent||this.componentType&&!sk.has(this.componentType))){const j=[this.autoUid];this.agent&&j.push(this.agent),this.user&&j.push(this.user.uid||this.user.id),this.uid=j.join("-")}const K=this.name;if(t.has("componentType")||t.has("uid")||t.has("agent")||t.has("name")||t.has("weavy"))if(this._appName!==this._initialAppName&&(this._appName=this._initialAppName,this.requestUpdate("name",K)),this.componentType&&this.uid&&this.weavy){const j=this.name?{name:this.name}:void 0,J=this.agent?[this.agent]:void 0;await k(this,Va).trackQuery(nE(this.weavy,this.uid,this.componentType,J,j))}else k(this,Va).untrackQuery();if((c=k(this,Va).result)!=null&&c.isPending||(this.app=(d=k(this,Va).result)==null?void 0:d.data,(p=this.app)!=null&&p.name&&(this.app.name!==this.name||this._appName!==this.app.name)&&(this._appName=this.app.name,this.requestUpdate("name",K))),(t.has("weavy")||t.has("agent"))&&this.weavy&&this.agent&&await k(this,fc).trackQuery(Jr(this.weavy,["users",this.agent])),(f=k(this,fc).result)!=null&&f.isPending||(this.agentUser=(m=k(this,fc).result)==null?void 0:m.data),(t.has("weavy")||t.has("contextId")||t.has("user")||t.has("componentFeatures"))&&this.weavy&&this.contextId&&this.user&&(w=this.componentFeatures)!=null&&w.allowsFeature(L.ContextData)&&(await k(this,zm).trackMutation(D0(this.weavy,this.user,this.contextId,void 0,"data")),await k(this,yc).trackMutationState({filters:{mutationKey:["apps",this.contextId,"data"],exact:!0}},this.weavy.queryClient)),t.has("data")||t.has("componentFeatures")){const j=k(this,Cs);if(z(this,Cs,new Map),(O=this.data)==null||O.forEach(J=>{const it=j.get(J);if(it)k(this,Cs).set(J,it);else{const bt=a_(J);bt&&k(this,Cs).set(J,bt)}}),k(this,Cs)&&(x=this.componentFeatures)!=null&&x.allowsFeature(L.ContextData)){for(const mt of Array.from(k(this,Cs).values()))if(mt.type==="file"){const Zt=await Dv(mt.item);await PR(k(this,yc).result??[],async Vt=>{var Rt,ie;return(((Rt=Vt.context)==null?void 0:Rt.sha256)??await Dv((ie=Vt.variables)==null?void 0:ie.file))===Zt})||await k(this,zm).mutate({file:mt.item})}const J=k(this,yc).result,it=J==null?void 0:J.some(mt=>mt.status==="pending"),bt=(J==null?void 0:J.map(mt=>{var Zt;return(Zt=mt.data)==null?void 0:Zt.id}).filter(mt=>mt).reverse())??[];it||(this.contextDataBlobs=bt)}else this.contextDataBlobs=[]}if(t.has("uid")&&(this.uid||t.get("uid"))&&this.uid!==t.get("uid")&&this.clearLink(),(!this.link&&(t.has("uid")&&this.uid||t.has("app")&&this.app)&&this.componentType&&this.componentType!==nn.Unknown||(t.has("appTypes")||t.has("agent"))&&this.appTypes)&&this.readStorageLink(),t.has("link")&&this.link&&(console.info(`Opening notification link in ${this.uid??oP.get(this.componentType)??this.constructor.name}`),this.consumeStorageLink()),t.has("app")&&this.app){const j=new CustomEvent("wy-app",{bubbles:!1,composed:!0,detail:{app:this.app}});this.dispatchEvent(j)}t.has("app")&&this.app&&(t.get("app")&&z(this,$m,new Promise(j=>{z(this,bm,j)})),(b=k(this,bm))==null||b.call(this,this.app)),t.has("agentUser")&&this.agentUser&&(t.get("agentUser")&&z(this,Om,new Promise(j=>{z(this,vm,j)})),(P=k(this,vm))==null||P.call(this,this.agentUser)),t.has("contextDataBlobs")&&this.contextDataBlobs&&(t.get("contextDataBlobs")&&z(this,km,new Promise(j=>{z(this,xm,j)})),(R=k(this,xm))==null||R.call(this,this.contextDataBlobs)),t.has("contextId")&&this.contextId&&(t.get("contextId")&&z(this,Pm,new Promise(j=>{z(this,Sm,j)})),(E=k(this,Sm))==null||E.call(this,this.contextId)),t.has("componentFeatures")&&this.componentFeatures&&(t.get("componentFeatures")&&z(this,Qm,new Promise(j=>{z(this,Cm,j)})),(T=k(this,Cm))==null||T.call(this,this.componentFeatures)),t.has("link")&&this.link&&(t.get("link")&&z(this,pc,new Promise(j=>{z(this,uc,j)})),(I=k(this,uc))==null||I.call(this,this.link)),t.has("settings")&&this.settings&&(t.get("settings")&&z(this,Tm,new Promise(j=>{z(this,Mm,j)})),(Z=k(this,Mm))==null||Z.call(this,this.settings)),t.has("user")&&this.user&&(t.get("user")&&z(this,Rm,new Promise(j=>{z(this,Am,j)})),(U=k(this,Am))==null||U.call(this,this.user)),t.has("weavy")&&this.weavy&&(t.get("weavy")&&z(this,_m,new Promise(j=>{z(this,Em,j)})),this.weavy.host.addEventListener("wy-notification",this.notificationEventHandler,{capture:!0}),(B=k(this,Em))==null||B.call(this,this.weavy)),t.has("bot")&&typeof this.bot=="string"&&console.error(`Using .bot property is deprecated. Use .agent = "${this.bot}"; instead`)}},h(Zu,"Lp"),Zu);S1=new WeakMap,P1=new WeakMap,C1=new WeakMap,vm=new WeakMap,Om=new WeakMap,bm=new WeakMap,$m=new WeakMap,xm=new WeakMap,km=new WeakMap,Sm=new WeakMap,Pm=new WeakMap,Cm=new WeakMap,Qm=new WeakMap,uc=new WeakMap,pc=new WeakMap,Mm=new WeakMap,Tm=new WeakMap,Am=new WeakMap,Rm=new WeakMap,Em=new WeakMap,_m=new WeakMap,Va=new WeakMap,fc=new WeakMap,Ps=new WeakMap,Cs=new WeakMap,zm=new WeakMap,yc=new WeakMap,u($_,"WeavyComponent");let qt=$_;ye([F()],qt.prototype,"weavy",2);ye([ds({context:HS}),F()],qt.prototype,"app",2);ye([ds({context:n_}),F()],qt.prototype,"agentUser",2);ye([ds({context:v_}),F()],qt.prototype,"contextDataBlobs",2);ye([ds({context:O_}),F()],qt.prototype,"contextId",2);ye([ds({context:YS}),F()],qt.prototype,"componentFeatures",2);ye([ds({context:JE}),F()],qt.prototype,"settings",2);ye([ds({context:I0}),F()],qt.prototype,"user",2);ye([ds({context:i_})],qt.prototype,"_link",2);ye([$({type:Object})],qt.prototype,"link",1);ye([F()],qt.prototype,"componentType",2);ye([F()],qt.prototype,"appTypes",2);ye([$()],qt.prototype,"features",2);ye([$({type:String})],qt.prototype,"agent",1);ye([$({attribute:!0,type:String,converter:{fromAttribute(n){return SR(n)}}})],qt.prototype,"data",2);ye([$()],qt.prototype,"autoUid",2);ye([$({converter:b_})],qt.prototype,"uid",2);ye([$({type:String})],qt.prototype,"name",1);ye([$({type:String})],qt.prototype,"notifications",1);ye([$({type:String})],qt.prototype,"notificationsBadge",1);ye([$({type:String})],qt.prototype,"reactions",1);ye([$()],qt.prototype,"bot",2);const oP=new Map(MS(KR)),x_=new Map(MS(JR)),sk=new Map(Object.entries(tE));new Map(Object.entries(eE));var cB=Object.defineProperty,Ks=u((n,t,e,i)=>{for(var s=void 0,r=n.length-1,a;r>=0;r--)(a=n[r])&&(s=a(t,e,s)||s);return s&&cB(t,e,s),s},"__decorateClass$1a"),Lm,Q1,Im,M1,Zm,T1,Vm,A1,Wm,R1,Dm,E1,qm,_1,Um,z1,jm,L1,Vu;const k_=(Vu=class extends yt{constructor(){super(),q(this,Lm),q(this,Q1,new Promise(t=>{z(this,Lm,t)})),q(this,Im),q(this,M1,new Promise(t=>{z(this,Im,t)})),q(this,Zm),q(this,T1,new Promise(t=>{z(this,Zm,t)})),q(this,Vm),q(this,A1,new Promise(t=>{z(this,Vm,t)})),q(this,Wm),q(this,R1,new Promise(t=>{z(this,Wm,t)})),q(this,Dm),q(this,E1,new Promise(t=>{z(this,Dm,t)})),q(this,qm),q(this,_1,new Promise(t=>{z(this,qm,t)})),q(this,Um),q(this,z1,new Promise(t=>{z(this,Um,t)})),q(this,jm),q(this,L1,new Promise(t=>{z(this,jm,t)}))}async whenApp(){return await k(this,Q1)}async whenAgentUser(){return await k(this,M1)}async whenContextDataBlobs(){return await k(this,T1)}async whenContextId(){return await k(this,A1)}async whenComponentFeatures(){return await k(this,R1)}async whenLink(){return await k(this,E1)}async whenSettings(){return await k(this,_1)}async whenUser(){return await k(this,z1)}async whenWeavy(){return await k(this,L1)}willUpdate(t){var e,i,s,r,a,o,l,c,d;super.willUpdate(t),t.has("agentUser")&&this.agentUser&&(t.get("agentUser")&&z(this,M1,new Promise(p=>{z(this,Im,p)})),(e=k(this,Im))==null||e.call(this,this.agentUser)),t.has("app")&&this.app&&(t.get("app")&&z(this,Q1,new Promise(p=>{z(this,Lm,p)})),(i=k(this,Lm))==null||i.call(this,this.app)),t.has("contextDataBlobs")&&this.contextDataBlobs&&(t.get("contextDataBlobs")&&z(this,T1,new Promise(p=>{z(this,Zm,p)})),(s=k(this,Zm))==null||s.call(this,this.contextDataBlobs)),t.has("contextId")&&this.contextId&&(t.get("contextId")&&z(this,A1,new Promise(p=>{z(this,Vm,p)})),(r=k(this,Vm))==null||r.call(this,this.contextId)),t.has("componentFeatures")&&this.componentFeatures&&(t.get("componentFeatures")&&z(this,R1,new Promise(p=>{z(this,Wm,p)})),(a=k(this,Wm))==null||a.call(this,this.componentFeatures)),t.has("link")&&this.link&&(t.get("link")&&z(this,E1,new Promise(p=>{z(this,Dm,p)})),(o=k(this,Dm))==null||o.call(this,this.link)),t.has("settings")&&this.settings&&(t.get("settings")&&z(this,_1,new Promise(p=>{z(this,qm,p)})),(l=k(this,qm))==null||l.call(this,this.settings)),t.has("user")&&this.user&&(t.get("user")&&z(this,z1,new Promise(p=>{z(this,Um,p)})),(c=k(this,Um))==null||c.call(this,this.user)),t.has("weavy")&&this.weavy&&(t.get("weavy")&&z(this,L1,new Promise(p=>{z(this,jm,p)})),(d=k(this,jm))==null||d.call(this,this.weavy))}connectedCallback(){super.connectedCallback(),this.agentUser&&this.requestUpdate("agentUser"),this.app&&this.requestUpdate("app"),this.contextDataBlobs&&this.requestUpdate("contextDataBlobs"),this.contextId&&this.requestUpdate("contextId"),this.componentFeatures&&this.requestUpdate("componentFeatures"),this.link&&this.requestUpdate("link"),this.settings&&this.requestUpdate("settings"),this.user&&this.requestUpdate("user"),this.weavy&&this.requestUpdate("weavy")}},h(Vu,"Ip"),Vu);Lm=new WeakMap,Q1=new WeakMap,Im=new WeakMap,M1=new WeakMap,Zm=new WeakMap,T1=new WeakMap,Vm=new WeakMap,A1=new WeakMap,Wm=new WeakMap,R1=new WeakMap,Dm=new WeakMap,E1=new WeakMap,qm=new WeakMap,_1=new WeakMap,Um=new WeakMap,z1=new WeakMap,jm=new WeakMap,L1=new WeakMap,u(k_,"WeavySubComponent");let zt=k_;Ks([fe({context:HS,subscribe:!0}),F()],zt.prototype,"app");Ks([fe({context:n_,subscribe:!0}),F()],zt.prototype,"agentUser");Ks([fe({context:v_,subscribe:!0}),F()],zt.prototype,"contextDataBlobs");Ks([fe({context:O_,subscribe:!0}),F()],zt.prototype,"contextId");Ks([fe({context:YS,subscribe:!0}),F()],zt.prototype,"componentFeatures");Ks([fe({context:i_,subscribe:!0}),F()],zt.prototype,"link");Ks([fe({context:JE,subscribe:!0}),F()],zt.prototype,"settings");Ks([fe({context:I0,subscribe:!0}),F()],zt.prototype,"user");Ks([fe({context:Le,subscribe:!0}),F()],zt.prototype,"weavy");function S_(n){return typeof n=="string"&&n?n=eval==null?void 0:(0,eval)(`"use strict";(${n})`):n=void 0,n}h(S_,"Zv");u(S_,"indirectEvalObject");function cg(n){if(n)try{return new URL(n,window.location.toString())}catch{console.warn("Invalid url: ",n)}}h(cg,"fd");u(cg,"toUrl");const Y=u(n=>(t,e)=>{e!==void 0?e.addInitializer(()=>{!customElements.get(n)&&customElements.define(n,t)}):!customElements.get(n)&&customElements.define(n,t)},"customElement"),ft=At`@charset \"UTF-8\";:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]){box-sizing:border-box;text-align:initial;font-size:var(--wy-font-size, var(--wy-size, 1em))}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:before,:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:after{box-sizing:inherit}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a){text-decoration:var(--wy-link-decoration, none);color:var(--wy-link, var(--wy-primary-40, #006399))}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a):hover,:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a):hover{text-decoration:var(--wy-link-hover-decoration, unset)}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a):where(:not([href]):not([class])),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a):where(:not([href]):not([class])):hover,:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a):where(:not([href]):not([class])),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a):where(:not([href]):not([class])):hover{text-decoration:none}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(p),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(p){margin-top:0;margin-bottom:calc(1 * var(--wy-size, 1rem))}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(label),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(label){cursor:inherit}:where(:host([hidden])),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"])[hidden],:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *[hidden]{display:none!important}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where([role=button]),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where([role=button]){cursor:pointer}.wy-scroll-y{scroll-padding-top:var(--wy-scrollbar-adjust-top, 0);scroll-padding-bottom:var(--wy-scrollbar-adjust-bottom, 0)}.wy-scroll-y{overflow-y:auto;max-height:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}.wy-scroll-y:not(body){-webkit-overflow-scrolling:touch}.wy-scroll-y:not(.wy-scroll-x){overflow-x:hidden;touch-action:pan-y}.wy-scroll-x{overflow-x:auto;max-width:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}.wy-scroll-x:not(.wy-scroll-y){overflow-y:hidden;touch-action:pan-x}.wy-appbars{--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));background-color:var(--wy-component-background-color);box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 calc(-1 * var(--wy-border, 1px)) 0 0 inset}@supports (position: sticky){.wy-appbars{position:sticky;top:0;z-index:1020}}.wy-appbars>.wy-appbar,.wy-appbars>.wy-toolbar{background-color:transparent;box-shadow:none}.wy-appbar{--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));display:grid;align-items:center;justify-content:space-between;justify-items:center;height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));padding:calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));flex:0 0 var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));grid-template-columns:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) minmax(0,max-content) var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));column-gap:calc(2 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))) + var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));line-height:var(--wy-line-height, 1.5);background-color:var(--wy-component-background-color);color:var(--wy-component-color);box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 calc(-1 * var(--wy-border, 1px)) 0 0 inset}.wy-appbar .wy-badge{align-self:center}.wy-appbar-buttons,.wy-toolbar-buttons,.wy-appbar-section{display:flex;flex:0 0 auto;align-items:center;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));max-width:100%}.wy-appbar-buttons-first{justify-content:flex-start}.wy-appbar-buttons-last{justify-content:flex-end}.wy-toolbar-buttons-last{margin-inline-start:auto}.wy-appbar-text{max-width:100%;display:block;color:inherit!important;-webkit-user-select:none;user-select:none}.wy-appbar-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-appbar-text a,.wy-appbar-text a:hover{color:inherit}.wy-appbar-text-trashed{text-decoration:line-through}.wy-toolbars-bottom{position:absolute;z-index:1030;bottom:calc(var(--wy-footerbar-height, calc(4 * var(--wy-size, 1rem))) / 2);left:0;right:0;min-height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));display:flex;flex-direction:column;justify-content:center;justify-items:center}.wy-toolbar{--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;justify-items:center;min-height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));padding:calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));flex:1 0 var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));column-gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));line-height:var(--wy-line-height, 1.5);background-color:var(--wy-component-background-color);color:var(--wy-component-color);box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 calc(-1 * var(--wy-border, 1px)) 0 0 inset}.wy-toolbar-center{margin:0 auto;border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)))}.wy-toolbar-center .wy-input{text-align:center}.wy-toolbar-text{margin-left:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}[part~=wy-button]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399));color:var(--wy-component-color);background:var(--wy-component-background-color, transparent);height:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));font-family:var(--wy-button-font-family, var(--wy-font-family, unset)),inherit;font-size:var(--wy-button-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-button-font-weight, var(--wy-font-weight, unset));line-height:var(--wy-button-line-height, var(--wy-line-height, 1.5));text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--wy-button-border-width, var(--wy-border-outline, 0)) solid var(--wy-outline, var(--wy-neutral-variant-50, #72777e));border-radius:var(--wy-button-border-radius, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));display:inline-flex;align-items:center;justify-content:center;gap:var(--wy-button-gap, var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))));position:relative}[part~=wy-button][part~=wy-button-sm]{height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .8);padding:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .25) calc(var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .5)}[part~=wy-button]:disabled{opacity:var(--wy-opacity-disabled, 38%);cursor:unset;pointer-events:none}[part~=wy-button-state-layer]>*{z-index:3}[part~=wy-button-state-layer]:before{content:\"\";z-index:2;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background:var(--wy-component-color);opacity:0%}[part~=wy-button-state-layer]:hover:before{opacity:8%}[part~=wy-button-state-layer]:focus:before,[part~=wy-button-state-layer]:active:before,[part~=wy-button-state-layer][part~=wy-active]:before{opacity:12%}[part~=wy-button-icon]{--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));width:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));height:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));line-height:1;align-items:center;justify-content:center}[part~=wy-button-icon][part~=wy-button-sm]{height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);width:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);padding:0;margin:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .5)}[part~=wy-button-icon][part~=wy-button-sm][part~=wy-button-state-layer]:before{margin:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * -.1)}[part~=wy-button-icon][part~=wy-active]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399))}[part~=wy-button-icon-inline]{height:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));width:auto;min-width:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));background:var(--wy-component-background-color);color:currentColor;display:flex;padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))}[part~=wy-button-icon-inline][part~=wy-button-sm]{height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);min-width:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);padding:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .25);margin:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .5)}[part~=wy-button-icon-inline][part~=wy-button-sm][part~=wy-button-state-layer]:before{margin:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * -.1)}[part~=wy-button-inline]{border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));padding:calc(.5 * var(--wy-size, 1rem)) calc(.75 * var(--wy-size, 1rem));margin-inline:calc(-.25 * var(--wy-size, 1rem))}[part~=wy-button-primary]{--wy-component-background-color: var(--wy-primary, var(--wy-primary-40, #006399));--wy-component-color: var(--wy-on-primary, var(--wy-white, #ffffff))}[part~=wy-button-variant]{--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}[part~=wy-button-primary-text]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399))}[part~=wy-button-inherit-color]{--wy-component-color: currentColor}[part~=wy-button-no-color]{--wy-component-color: unset}[part=wy-button-link]{padding:0;color:var(--wy-link-color, var(--wy-primary, var(--wy-primary-40, #006399)));text-decoration:var(--wy-link-decoration, none)}[part=wy-button-link]:hover,[part=wy-button-link]:focus{text-decoration:var(--wy-link-hover-decoration, unset)}[part~=wy-buttons]{display:flex;align-items:center;flex-wrap:wrap;gap:calc(.5 * var(--wy-size, 1rem))}[part~=wy-buttons-reverse]{flex-direction:row-reverse}[part~=wy-buttons-floating]{position:sticky;padding:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) 0;top:0;height:0;margin-bottom:calc(-1 * var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));z-index:1030;--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}.wy-code pre,.wy-editor .cm-content pre,.wy-content pre{text-wrap:pretty}.wy-code .code,.wy-code code[class*=language-],.wy-code pre[class*=language-],.wy-editor .cm-content .code,.wy-content .code,.wy-editor .cm-content code[class*=language-],.wy-content code[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{color:var(--wy-code-text, var(--wy-code-text-light, #3b3b3b));font-family:var(--wy-font-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);text-align:left;white-space:pre-wrap;word-spacing:normal;word-break:normal;word-wrap:break-word;line-height:1.25;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{.wy-code code[class*=language-],.wy-code pre[class*=language-],.wy-editor .cm-content code[class*=language-],.wy-content code[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{text-shadow:none}}.wy-code pre[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}.wy-code :not(pre)>code[class*=language-],.wy-code pre[class*=language-],.wy-editor .cm-content :not(pre)>code[class*=language-],.wy-content :not(pre)>code[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{color:var(--wy-code-text, var(--wy-code-text-light, #3b3b3b));background:var(--wy-background, var(--wy-neutral-99, #fcfcff))}.wy-code :not(pre)>code[class*=language-],.wy-editor .cm-content :not(pre)>code[class*=language-],.wy-content :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.wy-code .token.variable,.wy-editor .cm-content .token.variable,.wy-content .token.variable{color:var(--wy-code-variable, var(--wy-code-variable-light, #001080))}.wy-code .token.operator,.wy-editor .cm-content .token.operator,.wy-content .token.operator{color:var(--wy-code-operator, var(--wy-code-operator-light, #000000))}.wy-code .token.prolog,.wy-editor .cm-content .token.prolog,.wy-content .token.prolog{color:var(--wy-code-prolog, var(--wy-code-prolog-light, #000080))}.wy-code .token.comment,.wy-editor .cm-content .token.comment,.wy-content .token.comment{color:var(--wy-code-comment, var(--wy-code-comment-light, #008000))}.wy-code .token.builtin,.wy-editor .cm-content .token.builtin,.wy-content .token.builtin{color:var(--wy-code-builtin, var(--wy-code-builtin-light, #0070C1))}.wy-code .token.number,.wy-editor .cm-content .token.number,.wy-content .token.number{color:var(--wy-code-number, var(--wy-code-number-light, #098658))}.wy-code .token.inserted,.wy-editor .cm-content .token.inserted,.wy-content .token.inserted{color:var(--wy-code-inserted, var(--wy-code-inserted-light, #098658))}.wy-code .token.constant,.wy-editor .cm-content .token.constant,.wy-content .token.constant{color:var(--wy-code-constant, var(--wy-code-constant-light, #811F3F))}.wy-code .token.hexcode,.wy-editor .cm-content .token.hexcode,.wy-content .token.hexcode{color:var(--wy-code-hexcode, var(--wy-code-hexcode-light, #811F3F))}.wy-code .token.regex,.wy-editor .cm-content .token.regex,.wy-content .token.regex{color:var(--wy-code-regex, var(--wy-code-regex-light, #811F3F))}.wy-code .token.char,.wy-editor .cm-content .token.char,.wy-content .token.char{color:var(--wy-code-char, var(--wy-code-char-light, #811F3F))}.wy-code .token.tag,.wy-editor .cm-content .token.tag,.wy-content .token.tag{color:var(--wy-code-tag, var(--wy-code-tag-light, #800000))}.wy-code .token.attr-name,.wy-editor .cm-content .token.attr-name,.wy-content .token.attr-name{color:var(--wy-code-attr-name, var(--wy-code-attr-name-light, #E50000))}.wy-code .token.selector,.wy-editor .cm-content .token.selector,.wy-content .token.selector{color:var(--wy-code-selector, var(--wy-code-selector-light, #E50000))}.wy-code .token.property,.wy-editor .cm-content .token.property,.wy-content .token.property{color:var(--wy-code-property, var(--wy-code-property-light, #E50000))}.wy-code .token.deleted,.wy-editor .cm-content .token.deleted,.wy-content .token.deleted{color:var(--wy-code-deleted, var(--wy-code-deleted-light, #A31515))}.wy-code .token.string,.wy-editor .cm-content .token.string,.wy-content .token.string{color:var(--wy-code-string, var(--wy-code-string-light, #A31515))}.wy-code .token.changed,.wy-editor .cm-content .token.changed,.wy-content .token.changed{color:var(--wy-code-changed, var(--wy-code-changed-light, #0451A5))}.wy-code .token.punctuation,.wy-editor .cm-content .token.punctuation,.wy-content .token.punctuation{color:var(--wy-code-punctuation, var(--wy-code-punctuation-light, #000000))}.wy-code .token.function,.wy-editor .cm-content .token.function,.wy-content .token.function{color:var(--wy-code-function, var(--wy-code-function-light, #0000FF))}.wy-code .token.keyword,.wy-editor .cm-content .token.keyword,.wy-content .token.keyword{color:var(--wy-code-keyword, var(--wy-code-keyword-light, #AF00DB))}.wy-code .token.class-name,.wy-editor .cm-content .token.class-name,.wy-content .token.class-name{color:var(--wy-code-class-name, var(--wy-code-class-name-light, #267F99))}.wy-code .token.important,.wy-code .token.bold,.wy-editor .cm-content .token.important,.wy-content .token.important,.wy-editor .cm-content .token.bold,.wy-content .token.bold{font-weight:700}.wy-code .token.italic,.wy-editor .cm-content .token.italic,.wy-content .token.italic{font-style:italic}.wy-content{overflow-wrap:break-word;min-width:0}.wy-content:empty{display:none}.wy-content>:first-child{margin-top:0}.wy-content>:last-child{margin-bottom:0}.wy-content b,.wy-content strong{font-weight:var(--wy-font-weight-bold, 600)}.wy-content blockquote{border-left:calc(2 * var(--wy-border, 1px)) solid var(--wy-neutral-80, #c6c6c9);margin:var(--wy-size, 1rem) 0;padding:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));padding-left:var(--wy-size, 1rem)}.wy-content blockquote>p{margin:0}.wy-content pre,.wy-content code{font-family:var(--wy-font-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-content :not(pre)>code{overflow-wrap:inherit}.wy-content pre>code{font-size:var(--wy-font-size, var(--wy-size, 1em));white-space:pre-wrap}.wy-content h1,.wy-content h2,.wy-content h3,.wy-content h4,.wy-content h5,.wy-content h6{font-family:var(--wy-headings-font-family, var(--wy-font-family, unset));font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600));line-height:var(--wy-headings-line-height, var(--wy-line-height, 1.2));margin:0 0 var(--wy-gap, calc(.5 * var(--wy-size, 1rem))) 0}.wy-content h1{font-size:calc(2 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h2{font-size:calc(1.8 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h3{font-size:calc(1.6 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h4{font-size:calc(1.4 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h5{font-size:calc(1.2 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h6{font-size:var(--wy-font-size, var(--wy-size, 1em))}.wy-content table{display:block;width:100%;max-width:-moz-max-content;max-width:max-content;margin:0 auto;overflow-x:auto;white-space:nowrap;border-collapse:separate;border-spacing:0 0;margin-bottom:var(--wy-size, 1rem)}.wy-content table th,.wy-content table td{padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));border-color:inherit;border-style:solid}.wy-content table th{text-align:inherit;text-align:-webkit-match-parent;border-width:var(--wy-border, 1px) 0 var(--wy-border, 1px) var(--wy-border, 1px);font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600))}.wy-content table th:first-child{border-top-left-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-content table th:last-child{border-top-right-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));border-right-width:var(--wy-border, 1px)}.wy-content table td{border-width:0 0 var(--wy-border, 1px) var(--wy-border, 1px)}.wy-content table td:last-child{border-right-width:var(--wy-border, 1px)}.wy-content table tr:last-child td:first-child{border-bottom-left-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-content table tr:last-child td:last-child{border-bottom-right-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-content table>tbody{vertical-align:inherit}.wy-content table>thead{vertical-align:bottom}.wy-content img{max-width:100%;border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));margin-block:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}ol{list-style-type:decimal}ul{list-style-type:disc}li{margin:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))) 0}ol,ul{margin:var(--wy-size, 1rem) 0;padding:0 0 0 1.625em}ol>li,ul>li{padding-left:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}ol>li>:first-child,ul>li>:first-child{margin-bottom:0;margin-top:0}ol>li>:last-child,ul>li>:last-child{margin-bottom:0}.wy-hashtag{color:var(--wy-primary, var(--wy-primary-40, #006399))}.wy-mention{font-weight:700}.wy-emoji-icon{display:inline-flex;justify-content:center;align-items:center;line-height:1;width:1em;height:1em;font-size:calc(1.25 * var(--wy-size, 1rem))}.wy-emoji-icon-sm{width:calc(1.125 * var(--wy-size, 1rem));height:calc(1.125 * var(--wy-size, 1rem));font-size:calc(1.125 * var(--wy-size, 1rem))}.wy-empty{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;position:relative;flex-direction:column;gap:var(--wy-gap-lg, calc(1.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}[part~=wy-icon]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;position:relative;width:var(--wy-component-icon-width);height:var(--wy-component-icon-height)}[part~=wy-icon][width=\"24\"]{width:var(--wy-component-icon-width, calc(1.5 * var(--wy-size, 1rem)))}[part~=wy-icon][height=\"24\"]{height:var(--wy-component-icon-height, calc(1.5 * var(--wy-size, 1rem)))}[part~=wy-icon-first]{margin-left:calc(-.5 * var(--wy-size, 1rem))}[part~=wy-icon-last]{margin-right:calc(-.5 * var(--wy-size, 1rem))}[part~=wy-icon-padded]{margin:16.66666667%}[part~=wy-icon-inline]{vertical-align:-.25em}[part~=wy-icon-overlay]{position:absolute;bottom:0;right:0;border-radius:50%}:host(wy-icon-stack),[part~=wy-icon-stack]{display:inline-flex;position:relative;line-height:1}[part~=wy-icon-stack-layer]{position:absolute}[part~=wy-icon-stack-overlay]{position:absolute;bottom:0;right:0;border-radius:50%;width:calc(var(--wy-component-icon-width) / 2);height:calc(var(--wy-component-icon-height) / 2)}[part~=wy-icon-current-color]{fill:currentColor}[part~=wy-icon-state]{transition:opacity var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));align-self:center;justify-self:center;margin:auto;opacity:0}[part~=wy-icon-state][part~=wy-active]{opacity:1}[part~=wy-icon-display]{color:var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));border-radius:var(--wy-component-border-radius, var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))));display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:calc(1 * var(--wy-size, 1rem)) calc(2 * var(--wy-size, 1rem));margin:auto}[part~=wy-icon-display-icon]{color:var(--wy-component-color);--wy-component-icon-width: calc(4 * var(--wy-size, 1rem));--wy-component-icon-height: calc(4 * var(--wy-size, 1rem));padding:calc(1 * var(--wy-size, 1rem)) calc(2 * var(--wy-size, 1rem))}[part~=wy-icon-display-text],[part~=wy-icon-display-meta]{color:var(--wy-component-color);padding:calc(1 * var(--wy-size, 1rem)) calc(2 * var(--wy-size, 1rem));text-align:center}[part~=wy-icon-color-primary]{fill:var(--wy-primary, var(--wy-primary-40, #006399))}[part~=wy-icon-color-secondary]{fill:var(--wy-secondary, var(--wy-secondary-40, #3b6a1c))}[part~=wy-icon-color-tertiary]{fill:var(--wy-tertiary, var(--wy-tertiary-40, #3b6a1c))}[part~=wy-icon-color-surface]{fill:var(--wy-surface, var(--wy-neutral-99, #fcfcff))}[part~=wy-icon-color-surface-variant]{fill:var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb))}[part~=wy-icon-color-error]{fill:var(--wy-error, var(--wy-error-40, #ba1824))}[part~=wy-icon-color-warning]{fill:var(--wy-warning, var(--wy-warning-70, #afb140))}[part~=wy-icon-color-blue]{fill:var(--wy-blue, var(--wy-blue-light, #89a9fc))}[part~=wy-icon-color-indigo]{fill:var(--wy-indigo, var(--wy-indigo-light, #9185de))}[part~=wy-icon-color-purple]{fill:var(--wy-purple, var(--wy-purple-light, #c675b7))}[part~=wy-icon-color-pink]{fill:var(--wy-pink, var(--wy-pink-light, #d57194))}[part~=wy-icon-color-red]{fill:var(--wy-red, var(--wy-red-light, #db726c))}[part~=wy-icon-color-orange]{fill:var(--wy-orange, var(--wy-orange-light, #e89a3a))}[part~=wy-icon-color-yellow]{fill:var(--wy-yellow, var(--wy-yellow-light, #afb140))}[part~=wy-icon-color-green]{fill:var(--wy-green, var(--wy-green-light, #00a38b))}[part~=wy-icon-color-teal]{fill:var(--wy-teal, var(--wy-teal-light, #00a0a8))}[part~=wy-icon-color-cyan]{fill:var(--wy-cyan, var(--wy-cyan-light, #0082a1))}[part~=wy-icon-color-gray]{fill:var(--wy-gray, var(--wy-gray-light, #76777a))}[part~=wy-icon-color-black]{fill:var(--wy-black, var(--wy-black, #000000))}[part~=wy-icon-color-white]{fill:var(--wy-white, var(--wy-white, #ffffff))}[part*=wy-kind-]{fill:var(--wy-gray, var(--wy-gray-light, #76777a))}[part~=wy-kind-archive]{fill:var(--wy-orange, var(--wy-orange-light, #e89a3a))}[part~=wy-kind-audio]{fill:var(--wy-teal, var(--wy-teal-light, #00a0a8))}[part~=wy-kind-code]{fill:var(--wy-green, var(--wy-green-light, #00a38b))}[part~=wy-kind-document]{fill:var(--wy-blue, var(--wy-blue-light, #89a9fc))}[part~=wy-kind-email]{fill:var(--wy-red, var(--wy-red-light, #db726c))}[part~=wy-kind-presentation]{fill:var(--wy-orange, var(--wy-orange-light, #e89a3a))}[part~=wy-kind-spreadsheet]{fill:var(--wy-green, var(--wy-green-light, #00a38b))}[part~=wy-kind-image]{fill:var(--wy-pink, var(--wy-pink-light, #d57194))}[part~=wy-kind-text]{fill:var(--wy-cyan, var(--wy-cyan-light, #0082a1))}[part~=wy-kind-video]{fill:var(--wy-purple, var(--wy-purple-light, #c675b7))}[part~=wy-ext-pdf]{fill:var(--wy-red, var(--wy-red-light, #db726c))}[part~=wy-kind-text-icon]{width:calc(1.25 * var(--wy-size, 1rem));height:calc(1.25 * var(--wy-size, 1rem));vertical-align:calc(-.3125 * var(--wy-size, 1rem))}.wy-title{font-family:var(--wy-headings-font-family, var(--wy-font-family, unset));font-size:var(--wy-headings-font-size, 1.25em);font-style:var(--wy-headings-font-style, unset);font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600));line-height:var(--wy-headings-line-height, var(--wy-line-height, 1.2));margin-block:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))}.wy-input{--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);border:var(--wy-input-border-width, var(--wy-border, 1px)) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));display:block;width:100%;min-height:calc(var(--wy-input-font-size, var(--wy-font-size, 1em)) * 1.5 * var(--wy-size, 1rem) + var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * 2 + var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) * 2);padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));font-family:var(--wy-input-font-family, var(--wy-font-family, inherit)),inherit;font-size:var(--wy-input-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-input-font-weight, var(--wy-font-weight, unset));line-height:var(--wy-input-line-height, var(--wy-line-height, calc(1.5 * var(--wy-size, 1rem))));background-clip:padding-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--wy-input-border-radius, var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))))}.wy-input:focus{--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));color:var(--wy-component-color);border-color:var(--wy-primary, var(--wy-primary-40, #006399));outline:0}.wy-input::placeholder{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));opacity:1}.wy-input:disabled{opacity:38%}.wy-input::file-selector-button,.wy-input::-webkit-file-upload-button{color:var(--wy-component-color);background-color:var(--wy-component-background-color);padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));margin:calc(-1 * var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) calc(-1 * var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));margin-inline-end:var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--wy-input-border-width, var(--wy-border, 1px));border-radius:0}.wy-input:hover:not(:disabled):not([readonly])::file-selector-button,.wy-input:hover:not(:disabled):not([readonly]) ::-webkit-file-upload-button{background-color:var(--wy-component-background-color)}.wy-input[type=file]{overflow:hidden}.wy-input[type=file]:not(:disabled):not([readonly]){cursor:pointer}.wy-input::-webkit-date-and-time-value{height:calc(var(--wy-input-line-height, var(--wy-line-height, calc(1.5 * var(--wy-size, 1rem)))) * 1em)}.wy-input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.wy-input-filled{--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);border-radius:var(--wy-input-filled-border-radius, var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem)))));border-color:var(--wy-component-background-color)}.wy-input-filled:focus{border-color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-label{display:inline-block;margin-bottom:calc(.5 * var(--wy-size, 1rem))}.wy-description{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)));margin-top:calc(.25 * var(--wy-size, 1rem))}.wy-is-invalid,.wy-is-invalid:focus{border-color:var(--wy-error, var(--wy-error-40, #ba1824))}.wy-invalid-feedback{margin-top:calc(.25 * var(--wy-size, 1rem));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)));color:var(--wy-error, var(--wy-error-40, #ba1824))}.wy-input-group{position:relative;display:flex;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));align-items:center}.wy-input-group-button-icon{position:absolute;top:0;right:0;z-index:4;border-radius:var(--wy-input-border-radius, var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))));--wy-component-background-color: transparent}.wy-input-group-input:placeholder-shown~.wy-input-group-button-icon[type=reset]{display:none}.wy-input-group-input:not(:placeholder-shown)~.wy-input-group-button-icon[type=reset]+.wy-input-group-button-icon{display:none}.wy-item{--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));position:relative;display:flex;align-items:center;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));text-decoration:none}.wy-list-item{min-height:calc(3 * var(--wy-size, 1rem))}.wy-list-item-lg{min-height:calc(4.5 * var(--wy-size, 1rem))}.wy-item-inner{display:flex;align-items:center;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));flex:1 1 100%}.wy-item-body{width:100%;min-width:0}.wy-item-rows{display:flex;flex-direction:column;width:100%;row-gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));min-width:0}.wy-item-rows:only-child{margin-inline-start:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-item-rows-compact{row-gap:0}.wy-item-rows-single{margin-inline-start:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-item-title{color:var(--wy-component-color);font-size:var(--wy-item-title-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-item-title-font-weight, var(--wy-font-weight, unset))}.wy-item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-item-title-lg{color:var(--wy-component-color);font-size:var(--wy-item-title-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-item-title-font-weight, var(--wy-font-weight, unset))}.wy-item-title-lg{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.wy-item-text{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-item-text .wy-icon{width:calc(1.25 * var(--wy-size, 1rem));height:calc(1.25 * var(--wy-size, 1rem));vertical-align:calc(-.3125 * var(--wy-size, 1rem))}.wy-item-quote{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e))}.wy-item-quote:before,.wy-item-quote:after{content:'\"'}.wy-item-actions{--wy-component-background-color: transparent;display:flex;align-items:center;justify-items:flex-end;flex:0 0 auto;margin:calc(-.25 * var(--wy-size, 1rem))}.wy-item-top{align-self:flex-start}.wy-item-actions-bottom{align-self:flex-start;margin-block:calc(-.5 * var(--wy-size, 1rem))}.wy-item-row{display:flex;align-items:center;column-gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}.wy-item-row .wy-item-title,.wy-item-row .wy-item-text{margin-right:auto}.wy-item-row .wy-meta{white-space:nowrap}.wy-item-right{margin-left:auto}.wy-item-hover{-webkit-user-select:none;user-select:none;cursor:pointer}.wy-item-hover:hover,.wy-item-hover:focus{--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);text-decoration:none}.wy-item-hover:active{--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-item-hover.wy-disabled,.wy-item-hover:disabled{opacity:var(--wy-opacity-disabled, 38%);pointer-events:none}.wy-item-hover.wy-active{--wy-component-background-color: var(--wy-primary-container, var(--wy-primary-90, #cde5ff));--wy-component-color: var(--wy-on-primary-container, var(--wy-primary-10, #001d32));background-color:var(--wy-component-background-color);color:var(--wy-component-color);border-color:var(--wy-component-background-color)}.wy-item-trashed{text-decoration:line-through;opacity:var(--wy-opacity-disabled, 38%)}.wy-item-trashed.wy-item-hover:hover{opacity:1}.wy-list{border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));display:flex;flex-direction:column;gap:var(--wy-border);min-width:0}.wy-list .wy-item:not(.wy-item-hover){--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-list .wy-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.wy-list .wy-item:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.wy-list-bordered{border:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));gap:0}.wy-list-bordered .wy-item{border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));border-left:none;border-right:none}.wy-list-bordered .wy-item:first-child{border-top:none}.wy-list-bordered .wy-item:last-child{border-bottom:none}.wy-list-bordered .wy-item+.wy-list-bordered .wy-item{border-top-width:0}@keyframes wy-highlight{0%{--wy-component-background-color: var(--wy-highlight, var(--wy-primary-95, #e8f2ff));--wy-component-color: var(--wy-on-highlight, var(--wy-primary-10, #001d32))}}.wy-messages{padding:var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));flex:1 1 100%}.wy-message-placeholder{opacity:.5}.wy-date-separator{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));pointer-events:none;margin:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));text-align:center;position:sticky;top:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));z-index:10}.wy-date-separator time{background:var(--wy-surface-3, var(--wy-surface-3-light, #e3e7ee));color:var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));display:inline-block}.wy-message{display:flex;flex-direction:row;align-items:flex-start;margin-bottom:calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + .5 * var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));scroll-margin-block:6rem;--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}.wy-message[part~=wy-highlight]{animation:wy-highlight 3s 1.5s ease-in-out both}.wy-message-area{border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-message-meta{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));margin:0 0 calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))));color:var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}.wy-message-bubble{background-color:var(--wy-component-background-color);color:var(--wy-component-color);border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));display:flex;flex-direction:column;padding:var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));max-width:min(32 * var(--wy-size, 1rem),100% - 2 * var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))))}.wy-message-bubble>div{flex:1 1 100%}.wy-message-author{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));margin:calc(1lh + .5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) calc(.5 * var(--wy-size, 1rem)) 0 0}.wy-message-content{display:flex;flex-direction:column;width:100%;align-items:flex-start;flex-wrap:wrap;min-width:0;position:relative}.wy-message-content-row{display:flex;flex-direction:row;align-items:center;max-width:100%}.wy-message-agent{--wy-component-background-color: var(--wy-tertiary-container, var(--wy-tertiary-90, #bbf294));--wy-component-color: var(--wy-on-tertiary-container, var(--wy-tertiary-10, #0a2100))}.wy-message-me{margin-right:0;margin-left:calc(2.5 * var(--wy-size, 1rem));align-items:flex-end;--wy-component-background-color: var(--wy-primary-container, var(--wy-primary-90, #cde5ff));--wy-component-color: var(--wy-on-primary-container, var(--wy-primary-10, #001d32))}.wy-message-me .wy-message-meta{margin:0 calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) 0}.wy-message-me .wy-message-content{align-items:flex-end}.wy-message-me .wy-message-content-row{flex-direction:row-reverse}.wy-message-emoji .wy-message-bubble{background:none;padding:0 0 var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))))}.wy-message-emoji .wy-content .wy-emoji{width:calc(3 * var(--wy-size, 1rem));height:calc(3 * var(--wy-size, 1rem));margin:0}.wy-message-emoji.wy-message-me .wy-content{text-align:end}.wy-readby-status{display:flex;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));height:calc(1.125 * var(--wy-size, 1rem));justify-content:flex-end;margin-top:calc(-.125 * var(--wy-size, 1rem))}.wy-message-readmore{justify-self:center;text-align:center}.wy-meta{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-meta-sm{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)))}.wy-dialog{background:none;border:none;padding:0;margin:0}.wy-dialog[popover]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1055}.wy-overlay-dialog{width:100%;height:100%;align-items:center;justify-content:center;overflow:visible;max-width:100%;max-height:100%}.wy-overlay-dialog[open]{display:flex}.wy-overlay-dialog:popover-open{display:flex}.wy-overlay-dialog:focus-visible{outline:none}.wy-overlay{--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);display:flex;flex-direction:column}.wy-overlay.wy-modal{width:100%;height:100%;overflow:hidden;border-radius:0}@media (min-width: 768px){.wy-overlay.wy-modal-padded{border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));box-shadow:var(--wy-shadow-level4, 0 calc(1 * var(--wy-size, 1rem)) calc(2.25 * var(--wy-size, 1rem)) calc(.125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .14), 0 calc(.375 * var(--wy-size, 1rem)) calc(1.875 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .12), 0 calc(.5 * var(--wy-size, 1rem)) calc(.625 * var(--wy-size, 1rem)) calc(-.3125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2));margin-left:calc(4 * var(--wy-size, 1rem));margin-top:auto;margin-right:calc(4 * var(--wy-size, 1rem));margin-bottom:auto;width:calc(32 * var(--wy-size, 1rem));max-height:calc(32 * var(--wy-size, 1rem))}}@media (min-width: 768px){.wy-overlay.wy-modal-full{margin:0;border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));box-shadow:var(--wy-shadow-level4, 0 calc(1 * var(--wy-size, 1rem)) calc(2.25 * var(--wy-size, 1rem)) calc(.125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .14), 0 calc(.375 * var(--wy-size, 1rem)) calc(1.875 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .12), 0 calc(.5 * var(--wy-size, 1rem)) calc(.625 * var(--wy-size, 1rem)) calc(-.3125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2));max-width:calc(100% - 2 * var(--wy-size, 1rem));max-height:calc(100% - 2 * var(--wy-size, 1rem))}}.wy-overlay{opacity:0;visibility:hidden;transition:opacity var(--wy-transition-fast, var(--wy-transition-duration-fast, .1s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))) .01s,transform var(--wy-transition-fast, var(--wy-transition-duration-fast, .1s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))) .01s,visibility .01s step-end var(--wy-transition-duration-fast, .1s)}.wy-overlay.wy-open{transition:opacity var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))),transform var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))),visibility var(--wy-transition-duration, .2s) step-start;visibility:visible}.wy-overlay.wy-open.wy-transition{opacity:1;transform:none}.wy-pane{display:flex;flex-direction:column;position:relative;min-height:0;height:100%;flex:1 1 auto}.wy-pane-body{display:flex;flex-direction:column;flex:1}.wy-pane-group{padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))}.wy-pane-background{--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-pane-toolbar{display:flex;flex:1;justify-content:space-evenly;align-items:center;padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-picker-list{background:var(--wy-component-background-color);color:var(--wy-component-color);border:none}.wy-picker-list>.wy-picker-list-item:first-child,.wy-picker-list>:first-child .wy-picker-list-item{border-top:none}.wy-picker-list>.wy-picker-list-item:last-child,.wy-picker-list>:last-child .wy-picker-list-item{border-bottom:none}.wy-picker-list-item{display:flex;align-items:center;padding:calc(.25 * var(--wy-size, 1rem)) calc(.5 * var(--wy-size, 1rem))}.wy-picker-list-item>wy-icon{margin-left:calc(.25 * var(--wy-size, 1rem));margin-right:calc(.25 * var(--wy-size, 1rem));flex:0 0 auto}.wy-picker-list-item>button{margin-block-start:auto;flex:0 0 auto}.wy-picker-list-item-title{flex-grow:1}.wy-picker-list-item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-main{display:flex;height:calc(100% - var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem))))));min-height:0}@media (max-width: 767.98px){.wy-main{flex-direction:column}}.wy-preview{--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch;position:relative;flex:1 1 100%;min-width:calc(16 * var(--wy-size, 1rem));min-height:calc(16 * var(--wy-size, 1rem));max-height:100%;max-width:100%}.wy-preview-layout{width:100%;height:100%}.wy-preview-swiper{display:flex;flex-direction:row;flex:1 1 100%;align-items:center;justify-content:start;min-width:calc(16 * var(--wy-size, 1rem));min-height:calc(16 * var(--wy-size, 1rem));max-height:100%;max-width:100%;overflow-x:scroll;scroll-snap-type:x mandatory;scroll-behavior:auto;overscroll-behavior-x:none;scrollbar-width:none}.wy-preview-swiper::-webkit-scrollbar{display:none}.wy-preview-swiper-disabled{overflow-x:hidden}.wy-preview-area{position:relative;min-width:100%;min-height:100%;width:100%;height:100%;flex:1 1 auto;display:flex;flex-direction:column;scroll-snap-stop:always;scroll-snap-align:center}.wy-nav-prev,.wy-nav-next{--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));background-color:var(--wy-component-background-color);position:absolute;top:50%;z-index:1000;border-radius:50%}.wy-nav-prev{left:calc(.5 * var(--wy-size, 1rem))}.wy-nav-next{right:calc(.5 * var(--wy-size, 1rem))}.wy-document{--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);align-self:flex-start;padding:calc(2 * var(--wy-size, 1rem)) calc(3.5 * var(--wy-size, 1rem));width:100%;min-height:100%;flex:1 0 auto}@media (min-width: 768px){.wy-document{padding:calc(3 * var(--wy-size, 1rem)) calc(4 * var(--wy-size, 1rem));margin:calc(2 * var(--wy-size, 1rem)) auto;border-radius:calc(.125 * var(--wy-size, 1rem));box-shadow:var(--wy-shadow-level2, 0 calc(.25 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .14), 0 calc(.0625 * var(--wy-size, 1rem)) calc(.625 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .12), 0 calc(.125 * var(--wy-size, 1rem)) calc(.25 * var(--wy-size, 1rem)) calc(-.0625 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2));width:120ch;min-height:170ch;max-width:calc(100% - 3.5 * var(--wy-size, 1rem))}}.wy-content-code{align-self:flex-start;width:100%;padding:calc(2 * var(--wy-size, 1rem)) calc(3.5 * var(--wy-size, 1rem));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-content-iframe{border:0;display:block;width:100%;height:100%;top:0;left:0;flex:1 1 100%}.wy-content-iframe.wy-loaded{--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-content-iframe.wy-loaded~.wy-content-iframe-fallback,.wy-content-iframe.wy-loaded~.wy-spinner,.wy-content-iframe.wy-loaded~wy-spinner{display:none}.wy-content-iframe.wy-loading:not(.wy-loaded){position:absolute;visibility:hidden;z-index:-1;pointer-events:none}.wy-content-iframe.wy-loading:not(.wy-loaded):not(.wy-fallback)~.wy-content-iframe-fallback{display:none}.wy-content-iframe.wy-loading:not(.wy-loaded).wy-fallback~.wy-spinner,.wy-content-iframe.wy-loading:not(.wy-loaded).wy-fallback~wy-spinner{display:none}.wy-content-iframe~.wy-spinner,.wy-content-iframe~wy-spinner{margin:auto}.wy-content-html pre,.wy-content-html code{word-break:break-word;white-space:pre-wrap}.wy-content-image{min-width:0;display:flex;align-items:center;justify-content:center;position:relative;margin:auto;max-height:100%;max-width:100%;transition:transform var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))),transform-origin var(--wy-transition-duration, .2s) step-end}.wy-content-image.wy-zoom{cursor:zoom-out;transition:transform var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))),transform-origin var(--wy-transition-duration, .2s) step-start}.wy-content-image img{min-width:0;min-height:0;width:100%;height:100%}.wy-content-image img:not(.wy-loading-transition):not([data-controller~=image])~.wy-spinner,.wy-content-image img:not(.wy-loading-transition):not([data-controller~=image])~wy-spinner{display:none}.wy-content-image img.wy-loading,.wy-content-image img[data-controller~=image]{transition:opacity .15s ease-out;opacity:0}.wy-content-image img.wy-loading.wy-loaded,.wy-content-image img[data-controller~=image].wy-loaded{opacity:1;transition:opacity .15s ease-out}.wy-content-image img.wy-loading.wy-loaded~img,.wy-content-image img[data-controller~=image].wy-loaded~img{transition-delay:.15s;opacity:0}.wy-content-image img.wy-loading.wy-loaded~.wy-spinner,.wy-content-image img.wy-loading.wy-loaded~wy-spinner,.wy-content-image img[data-controller~=image].wy-loaded~.wy-spinner,.wy-content-image img[data-controller~=image].wy-loaded~wy-spinner{display:none}.wy-content-image img.wy-responsive-image-thumb{position:absolute;z-index:-1}.wy-content-image img~.wy-spinner,.wy-content-image img~wy-spinner{position:absolute}.wy-content-video:not(.wy-error){min-height:0;max-width:100%;max-height:100%;flex:1 1 auto}.wy-content-video,.wy-content-audio{margin:auto}.wy-content-video.wy-loading:not(.wy-loaded),.wy-content-video[data-controller~=media]:not(.wy-loaded),.wy-content-audio.wy-loading:not(.wy-loaded),.wy-content-audio[data-controller~=media]:not(.wy-loaded){visibility:hidden}.wy-content-video.wy-loading.wy-loaded~.wy-spinner,.wy-content-video.wy-loading.wy-loaded~wy-spinner,.wy-content-video[data-controller~=media].wy-loaded~.wy-spinner,.wy-content-video[data-controller~=media].wy-loaded~wy-spinner,.wy-content-audio.wy-loading.wy-loaded~.wy-spinner,.wy-content-audio.wy-loading.wy-loaded~wy-spinner,.wy-content-audio[data-controller~=media].wy-loaded~.wy-spinner,.wy-content-audio[data-controller~=media].wy-loaded~wy-spinner{display:none}.wy-content-video:focus,.wy-content-audio:focus{outline:none}.wy-pdf-container{position:absolute;width:100%;height:100%;bottom:0;left:0}.wy-pdf-container{overflow-y:auto;max-height:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}.wy-pdf-container:not(body){-webkit-overflow-scrolling:touch}.wy-pdf-container{overflow-x:auto;max-width:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}.wy-content-pdf .textLayer{position:absolute;text-align:initial;top:0;right:0;bottom:0;left:0;overflow:clip;opacity:1;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;caret-color:CanvasText;z-index:0}.wy-content-pdf .textLayer.highlighting{touch-action:none}.wy-content-pdf .textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}.wy-content-pdf .textLayer>:not(.markedContent),.wy-content-pdf .textLayer .markedContent span:not(.markedContent){z-index:1}.wy-content-pdf .textLayer span.markedContent{top:0;height:0}.wy-content-pdf .textLayer span[role=img]{-webkit-user-select:none;user-select:none;cursor:default}.wy-content-pdf .textLayer .highlight{--highlight-bg-color: rgb(180 0 170 / .25);--highlight-selected-bg-color: rgb(0 100 0 / .25);--highlight-backdrop-filter: none;--highlight-selected-backdrop-filter: none}@media screen and (forced-colors: active){.wy-content-pdf .textLayer .highlight{--highlight-bg-color: transparent;--highlight-selected-bg-color: transparent;--highlight-backdrop-filter: var(--hcm-highlight-filter);--highlight-selected-backdrop-filter: var(--hcm-highlight-selected-filter)}}.wy-content-pdf .textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);-webkit-backdrop-filter:var(--highlight-backdrop-filter);backdrop-filter:var(--highlight-backdrop-filter);border-radius:4px}.wy-content-pdf .textLayer .highlight.appended{position:initial}.wy-content-pdf .textLayer .highlight.begin{border-radius:4px 0 0 4px}.wy-content-pdf .textLayer .highlight.end{border-radius:0 4px 4px 0}.wy-content-pdf .textLayer .highlight.middle{border-radius:0}.wy-content-pdf .textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color);-webkit-backdrop-filter:var(--highlight-selected-backdrop-filter);backdrop-filter:var(--highlight-selected-backdrop-filter)}.wy-content-pdf .textLayer ::selection{background:#0000ff40;background:color-mix(in srgb,AccentColor,transparent 75%)}.wy-content-pdf .textLayer br::selection{background:transparent}.wy-content-pdf .textLayer .endOfContent{display:block;position:absolute;top:100%;right:0;bottom:0;left:0;z-index:0;cursor:default;-webkit-user-select:none;user-select:none}.wy-content-pdf .textLayer.selecting .endOfContent{top:0}.wy-content-pdf .annotationLayer{--annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors: active){.wy-content-pdf .annotationLayer{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea):required,.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:required,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.wy-content-pdf .annotationLayer .linkAnnotation{outline:var(--link-outline)}.wy-content-pdf .annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:var(--hcm-highlight-filter);backdrop-filter:var(--hcm-highlight-filter)}.wy-content-pdf .annotationLayer .linkAnnotation>a:hover{opacity:0!important;background:none!important;box-shadow:none}.wy-content-pdf .annotationLayer .popupAnnotation .popup{outline:calc(1.5px * var(--scale-factor)) solid CanvasText!important;background-color:ButtonFace!important;color:ButtonText!important}.wy-content-pdf .annotationLayer .highlightArea:hover:after{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-backdrop-filter:var(--hcm-highlight-filter);backdrop-filter:var(--hcm-highlight-filter);content:\"\";pointer-events:none}.wy-content-pdf .annotationLayer .popupAnnotation.focused .popup{outline:calc(3px * var(--scale-factor)) solid Highlight!important}}.wy-content-pdf .annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0}.wy-content-pdf .annotationLayer[data-main-rotation=\"90\"] .norotate{transform:rotate(270deg) translate(-100%)}.wy-content-pdf .annotationLayer[data-main-rotation=\"180\"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.wy-content-pdf .annotationLayer[data-main-rotation=\"270\"] .norotate{transform:rotate(90deg) translateY(-100%)}.wy-content-pdf .annotationLayer.disabled section,.wy-content-pdf .annotationLayer.disabled .popup{pointer-events:none}.wy-content-pdf .annotationLayer .annotationContent{position:absolute;width:100%;height:100%;pointer-events:none}.wy-content-pdf .annotationLayer .annotationContent.freetext{background:transparent;border:none;top:0;right:0;bottom:0;left:0;overflow:visible;white-space:nowrap;font:10px sans-serif;line-height:1.35;-webkit-user-select:none;user-select:none}.wy-content-pdf .annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0}.wy-content-pdf .annotationLayer section:has(div.annotationContent) canvas.annotationContent{display:none}.textLayer.selecting~.wy-content-pdf .annotationLayer section{pointer-events:none}.wy-content-pdf .annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.wy-content-pdf .annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton):not(.hasBorder)>a:hover{opacity:.2;background-color:#ff0;box-shadow:0 2px 10px #ff0}.wy-content-pdf .annotationLayer .linkAnnotation.hasBorder:hover{background-color:#ff03}.wy-content-pdf .annotationLayer .hasBorder{background-size:100% 100%}.wy-content-pdf .annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea),.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea):required,.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:required,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select option{padding:0}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.wy-content-pdf .annotationLayer .textWidgetAnnotation textarea{resize:none}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select[disabled],.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:hover,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:hover,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.wy-content-pdf .annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:\"\";display:block;position:absolute}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:25%;top:25%;width:50%}.wy-content-pdf .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.wy-content-pdf .annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.wy-content-pdf .annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.wy-content-pdf .annotationLayer .fileAttachmentAnnotation .popupTriggerArea{height:100%;width:100%}.wy-content-pdf .annotationLayer .popupAnnotation{position:absolute;font-size:calc(9px * var(--scale-factor));pointer-events:none;width:max-content;max-width:45%;height:auto}.wy-content-pdf .annotationLayer .popup{background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));outline:1.5px solid rgb(255,255,74);padding:calc(6px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.wy-content-pdf .annotationLayer .popupAnnotation.focused .popup{outline-width:3px}.wy-content-pdf .annotationLayer .popup *{font-size:calc(9px * var(--scale-factor))}.wy-content-pdf .annotationLayer .popup>.header{display:inline-block}.wy-content-pdf .annotationLayer .popup>.header h1{display:inline}.wy-content-pdf .annotationLayer .popup>.header .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor));width:fit-content}.wy-content-pdf .annotationLayer .popupContent{border-top:1px solid rgb(51,51,51);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.wy-content-pdf .annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.wy-content-pdf .annotationLayer .popupTriggerArea{cursor:pointer}.wy-content-pdf .annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.wy-content-pdf .annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.wy-content-pdf .annotationLayer .annotationTextContent span{width:100%;display:inline-block}.wy-content-pdf .annotationLayer svg.quadrilateralsContainer{contain:strict;width:0;height:0;position:absolute;top:0;left:0;z-index:-1}:host{--xfa-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");--xfa-focus-outline: auto}@media screen and (forced-colors: active){:host{--xfa-focus-outline: 2px solid CanvasText}.wy-content-pdf .xfaLayer *:required{outline:1.5px solid selectedItem}}.wy-content-pdf .xfaLayer{background-color:transparent}.wy-content-pdf .xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}.wy-content-pdf .xfaLayer .highlight.appended{position:initial}.wy-content-pdf .xfaLayer .highlight.begin{border-radius:4px 0 0 4px}.wy-content-pdf .xfaLayer .highlight.end{border-radius:0 4px 4px 0}.wy-content-pdf .xfaLayer .highlight.middle{border-radius:0}.wy-content-pdf .xfaLayer .highlight.selected{background-color:#cbdfcb}.wy-content-pdf .xfaPage{overflow:hidden;position:relative}.wy-content-pdf .xfaContentarea{position:absolute}.wy-content-pdf .xfaPrintOnly{display:none}.wy-content-pdf .xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}.wy-content-pdf .xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}.wy-content-pdf .xfaLayer *:required{outline:1.5px solid red}.wy-content-pdf .xfaLayer div,.wy-content-pdf .xfaLayer svg,.wy-content-pdf .xfaLayer svg *{pointer-events:none}.wy-content-pdf .xfaLayer a{color:#00f}.wy-content-pdf .xfaRich li{margin-left:3em}.wy-content-pdf .xfaFont{color:#000;font-weight:400;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}.wy-content-pdf .xfaCaption{overflow:hidden;flex:0 0 auto}.wy-content-pdf .xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}.wy-content-pdf .xfaLabel{height:100%;width:100%}.wy-content-pdf .xfaLeft{display:flex;flex-direction:row;align-items:center}.wy-content-pdf .xfaRight{display:flex;flex-direction:row-reverse;align-items:center}.wy-content-pdf :is(.xfaLeft,.xfaRight)>:is(.xfaCaption,.xfaCaptionForCheckButton){max-height:100%}.wy-content-pdf .xfaTop{display:flex;flex-direction:column;align-items:flex-start}.wy-content-pdf .xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}.wy-content-pdf :is(.xfaTop,.xfaBottom)>:is(.xfaCaption,.xfaCaptionForCheckButton){width:100%}.wy-content-pdf .xfaBorder{background-color:transparent;position:absolute;pointer-events:none}.wy-content-pdf .xfaWrapped{width:100%;height:100%}.wy-content-pdf :is(.xfaTextfield,.xfaSelect):focus{background-image:none;background-color:transparent;outline:var(--xfa-focus-outline);outline-offset:-1px}.wy-content-pdf :is(.xfaCheckbox,.xfaRadio):focus{outline:var(--xfa-focus-outline)}.wy-content-pdf .xfaTextfield,.wy-content-pdf .xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}.wy-content-pdf .xfaSelect{padding-inline:2px}.wy-content-pdf :is(.xfaTop,.xfaBottom)>:is(.xfaTextfield,.xfaSelect){flex:0 1 auto}.wy-content-pdf .xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}.wy-content-pdf .xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}.wy-content-pdf .xfaCheckbox,.wy-content-pdf .xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}.wy-content-pdf .xfaRich{white-space:pre-wrap;width:100%;height:100%}.wy-content-pdf .xfaImage{object-position:left top;object-fit:contain;width:100%;height:100%}.wy-content-pdf .xfaLrTb,.wy-content-pdf .xfaRlTb,.wy-content-pdf .xfaTb{display:flex;flex-direction:column;align-items:stretch}.wy-content-pdf .xfaLr{display:flex;flex-direction:row;align-items:stretch}.wy-content-pdf .xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}.wy-content-pdf .xfaTb>div{justify-content:left}.wy-content-pdf .xfaPosition,.wy-content-pdf .xfaArea{position:relative}.wy-content-pdf .xfaValignMiddle{display:flex;align-items:center}.wy-content-pdf .xfaTable{display:flex;flex-direction:column;align-items:stretch}.wy-content-pdf .xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}.wy-content-pdf .xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}.wy-content-pdf .xfaTable .xfaRlRow>div{flex:1}.wy-content-pdf :is(.xfaNonInteractive,.xfaDisabled,.xfaReadOnly) :is(input,textarea){background:initial}@media print{.wy-content-pdf .xfaTextfield,.wy-content-pdf .xfaSelect{background:transparent}.wy-content-pdf .xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:\"\"}}:host{--viewer-container-height: 0;--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--spreadHorizontalWrapped-margin-LR: -3.5px;--loading-icon-delay: .4s}@media screen and (forced-colors: active){:host{--pdfViewer-padding-bottom: 9px;--page-margin: 8px auto -1px;--page-border: 1px solid CanvasText;--spreadHorizontalWrapped-margin-LR: 3.5px}}.wy-content-pdf [data-main-rotation=\"90\"]{transform:rotate(90deg) translateY(-100%)}.wy-content-pdf [data-main-rotation=\"180\"]{transform:rotate(180deg) translate(-100%,-100%)}.wy-content-pdf [data-main-rotation=\"270\"]{transform:rotate(270deg) translate(-100%)}.wy-content-pdf #hiddenCopyElement,.wy-content-pdf .hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}.wy-content-pdf .pdfViewer{--scale-factor: 1;--page-bg-color: unset;padding-bottom:var(--pdfViewer-padding-bottom);--hcm-highlight-filter: none;--hcm-highlight-selected-filter: none}@media screen and (forced-colors: active){.wy-content-pdf .pdfViewer{--hcm-highlight-filter: invert(100%)}}.wy-content-pdf .pdfViewer.copyAll{cursor:wait}.wy-content-pdf .pdfViewer .canvasWrapper{overflow:hidden;width:100%;height:100%}.wy-content-pdf .pdfViewer .canvasWrapper canvas{position:absolute;top:0;left:0;margin:0;display:block;width:100%;height:100%;contain:content}.wy-content-pdf .pdfViewer .canvasWrapper canvas .structTree{contain:strict}.wy-content-pdf .pdfViewer .page{--scale-round-x: 1px;--scale-round-y: 1px;direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);background-clip:content-box;background-color:var(--page-bg-color, rgb(255, 255, 255))}.wy-content-pdf .pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}.wy-content-pdf .pdfViewer.noUserSelect{-webkit-user-select:none;user-select:none}.wy-content-pdf .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}.wy-content-pdf .pdfViewer.singlePageView{display:inline-block}.wy-content-pdf .pdfViewer.singlePageView .page{margin:0;border:none}.wy-content-pdf .pdfViewer:is(.scrollHorizontal,.scrollWrapped),.wy-content-pdf .spread{margin-inline:3.5px;text-align:center}.wy-content-pdf .pdfViewer.scrollHorizontal,.wy-content-pdf .spread{white-space:nowrap}.wy-content-pdf .pdfViewer.removePageBorders,.wy-content-pdf .pdfViewer:is(.scrollHorizontal,.scrollWrapped) .spread{margin-inline:0}.wy-content-pdf .spread :is(.page,.dummyPage),.wy-content-pdf .pdfViewer:is(.scrollHorizontal,.scrollWrapped) :is(.page,.spread){display:inline-block;vertical-align:middle}.wy-content-pdf .spread .page,.wy-content-pdf .pdfViewer:is(.scrollHorizontal,.scrollWrapped) .page{margin-inline:var(--spreadHorizontalWrapped-margin-LR)}.wy-content-pdf .pdfViewer.removePageBorders .spread .page,.wy-content-pdf .pdfViewer.removePageBorders:is(.scrollHorizontal,.scrollWrapped) .page{margin-inline:5px}.wy-content-pdf .pdfViewer .page.loadingIcon:after{position:absolute;top:0;left:0;content:\"\";width:100%;height:100%;display:none;transition-property:display;transition-delay:var(--loading-icon-delay);z-index:5;contain:strict}.wy-content-pdf .pdfViewer .page.loading:after{display:block}.wy-content-pdf .pdfViewer .page:not(.loading):after{transition-property:none;display:none}.wy-content-pdf .pdfPresentationMode .pdfViewer{padding-bottom:0}.wy-content-pdf .pdfPresentationMode .spread{margin:0}.wy-content-pdf .pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}.wy-content-pdf .pdfViewer .page{box-shadow:var(--wy-shadow-level2, 0 calc(.25 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .14), 0 calc(.0625 * var(--wy-size, 1rem)) calc(.625 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .12), 0 calc(.125 * var(--wy-size, 1rem)) calc(.25 * var(--wy-size, 1rem)) calc(-.0625 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2));background-color:var(--wy-white, var(--wy-white, #ffffff))}.wy-content-pdf .pdfViewer .page.loadingIcon:after{background:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cstyle type='text/css'%3Eg%7Banimation:rotate 2s linear infinite;transform-origin:center center%7Dcircle%7Bstroke-dasharray:1,100;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite,color 6s ease-in-out infinite%7D@keyframes rotate%7B100%25%7Btransform:rotate(360deg)%7D%7D@keyframes dash%7B0%25%7Bstroke-dasharray:1,100;stroke-dashoffset:0%7D50%25%7Bstroke-dasharray:44.5,100;stroke-dashoffset:-17.5px%7D100%25%7Bstroke-dasharray:44.5,100;stroke-dashoffset:-62px%7D%7D@keyframes color%7B0%25,100%25%7Bstroke:%23216eb4%7D40%25%7Bstroke:%2328b7cf%7D66%25%7Bstroke:%23216eb4%7D80%25,90%25%7Bstroke:%2328b7cf%7D%7D%3C/style%3E%3Cg%3E%3Ccircle fill='none' cx='12' cy='12' r='11' stroke-linecap='butt' stroke-width='2' /%3E%3C/g%3E%3C/svg%3E\") center no-repeat}.wy-pdf-page-number{width:calc(3 * var(--wy-size, 1rem))}.wy-pdf-zoom-level{width:calc(5 * var(--wy-size, 1rem))}.wy-content-text{word-break:break-word;white-space:pre-wrap}.wy-sheet{--wy-scrollbar-adjust-top: 0;--wy-scrollbar-adjust-bottom: 0;--wy-component-background-color: var(--wy-surface-3, var(--wy-surface-3-light, #e3e7ee));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);position:fixed;z-index:1055;display:flex;flex-direction:column;overflow:hidden;bottom:calc(.5 * var(--wy-size, 1rem));left:calc(.5 * var(--wy-size, 1rem));right:calc(.5 * var(--wy-size, 1rem));max-height:max(50vh,50%);min-height:calc(3 * var(--wy-size, 1rem));margin:calc(.5 * var(--wy-size, 1rem)) auto;max-width:calc(32 * var(--wy-size, 1rem));transition:opacity var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));box-shadow:var(--wy-shadow-level1, 0 calc(.125 * var(--wy-size, 1rem)) calc(.125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .14), 0 calc(.1875 * var(--wy-size, 1rem)) calc(.0625 * var(--wy-size, 1rem)) calc(-.125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2), 0 calc(.0625 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .12))}.wy-sheet>.wy-appbars,.wy-sheet>.wy-appbar{border-top-left-radius:inherit;border-top-right-radius:inherit}.wy-sheet-body{overflow:hidden;padding:calc(.5 * var(--wy-size, 1rem));position:relative;min-height:calc(3 * var(--wy-size, 1rem))}.wy-sheet-body.wy-scroll-y{overflow-y:auto}.wy-sheet-no-padding{padding:0}.wy-sheet:not(.wy-show){opacity:0;transform:translateY(calc(32 * var(--wy-size, 1rem)))}.wy-sheet.wy-show{opacity:1;transform:none;transition:transform var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))),opacity var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));pointer-events:auto}@starting-style{.wy-sheet.wy-show{opacity:0;transform:translateY(calc(32 * var(--wy-size, 1rem)))}}.wy-toasts{background:none;border:none;padding:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));margin:0;width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;align-items:flex-end;justify-content:flex-end;pointer-events:none}.wy-toasts[popover]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1070}.wy-toasts>::slotted(*){pointer-events:auto}.wy-toast{--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));--wy-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background:var(--wy-component-background-color);color:var(--wy-component-color);gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));margin-top:0;margin-bottom:var(--wy-gap-lg, calc(1.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));display:flex;cursor:pointer;border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));padding:0;-webkit-user-select:none;user-select:none;box-shadow:var(--wy-shadow-level2, 0 calc(.25 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .14), 0 calc(.0625 * var(--wy-size, 1rem)) calc(.625 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .12), 0 calc(.125 * var(--wy-size, 1rem)) calc(.25 * var(--wy-size, 1rem)) calc(-.0625 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2));position:relative;overflow:hidden;min-height:calc(4.5 * var(--wy-size, 1rem));max-width:calc(32 * var(--wy-size, 1rem))}.wy-toast.wy-fade{transition-property:opacity,min-height,padding-top,padding-bottom,margin-top,margin-bottom,height;transition-duration:var(--wy-transition-duration, .2s);transition-timing-function:var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))}.wy-toast.wy-fade:not(.wy-show){opacity:0;min-height:0;height:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;pointer-events:none}.wy-toast-action{position:sticky;top:calc(4.5 * var(--wy-size, 1rem));bottom:calc(4.5 * var(--wy-size, 1rem));z-index:990;background-color:var(--wy-primary, var(--wy-primary-40, #006399));color:var(--wy-on-primary, var(--wy-white, #ffffff));padding:calc(.5 * var(--wy-size, 1rem)) calc(1 * var(--wy-size, 1rem));margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:calc(.5 * var(--wy-size, 1rem));border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));width:max-content;min-height:0;max-width:calc(100% - 3 * var(--wy-size, 1rem));height:auto;align-self:center;text-align:center;box-shadow:none}.wy-toast-primary{background:var(--wy-on-primary-container, var(--wy-primary-10, #001d32));color:var(--wy-primary-container, var(--wy-primary-90, #cde5ff))}.wy-placeholder{cursor:wait;color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));background:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));opacity:.5;animation:wy-placeholder-glow 2s ease-in-out infinite}@keyframes wy-placeholder-glow{50%{opacity:.2}}.wy-meeting .wy-item-title{font-weight:700}.wy-meeting .wy-item-text{font-size:var(--wy-font-size, var(--wy-size, 1em))}.wy-meeting.wy-disabled .wy-item-title{font-weight:400}.wy-dragging:after{content:attr(data-drag-title);background-color:#ffffff80;display:flex;justify-content:center;align-items:center;border:calc(.125 * var(--wy-size, 1rem)) dashed var(--wy-primary, var(--wy-primary-40, #006399));font-weight:var(--wy-font-weight-bold, 600);z-index:10000;position:absolute;top:0;left:0;bottom:0;right:0}.wy-message-editor-top{background-color:var(--wy-component-background-color);color:var(--wy-component-color)}@supports (position: sticky){.wy-message-editor-top{position:sticky;top:0;z-index:1020}}.wy-message-editor-bottom{background-color:var(--wy-component-background-color);color:var(--wy-component-color)}@supports (position: sticky){.wy-message-editor-bottom{position:sticky;bottom:0;z-index:1020}}.wy-message-form .wy-spinner{display:none}.wy-message-form.wy-uploading .wy-spinner{display:block}.wy-message-form.wy-uploading [data-icon=plus]{display:none}.wy-message-form .wy-picker-list:not(:empty){border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-message-editor-inputs{display:flex;flex-direction:row;align-items:flex-end;padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));min-height:calc(var(--wy-input-font-size, var(--wy-font-size, 1em)) * 1.5 * var(--wy-size, 1rem) + var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * 2 + var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) * 2)}.wy-message-editor-buttons{flex:1 0 auto}.wy-message-editor-text{flex:1 1 100%;display:flex;flex-direction:column;margin-inline:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-message-editor-mention,.wy-message-editor-link{background:#00f;color:#fff}.wy-message-editor .cm-editor,.wy-message-editor-grow:after,.wy-message-editor-grow>textarea,.wy-message-editor-textfield{flex:1 1 100%;max-height:11.25em;background-color:var(--wy-background, var(--wy-neutral-99, #fcfcff));color:var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));border-radius:var(--wy-input-filled-border-radius, var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem)))));border:var(--wy-input-border-width, var(--wy-border, 1px)) solid var(--wy-background, var(--wy-neutral-99, #fcfcff))}.wy-message-editor .cm-editor:focus,.wy-message-editor-grow:focus:after,.wy-message-editor-grow>textarea:focus,.wy-message-editor-textfield:focus{border-color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-message-editor .cm-editor .cm-content,.wy-message-editor-textcontent{font-family:var(--wy-input-font-family, var(--wy-font-family, inherit)), inherit;font-size:var(--wy-input-font-size, var(--wy-font-size, 1em));padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));min-height:calc(var(--wy-input-font-size, var(--wy-font-size, 1em)) * 1.5 * var(--wy-size, 1rem) + var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * 2 - var(--wy-input-border-width, var(--wy-border, 1px)));line-height:calc(1.5 * var(--wy-size, 1rem))}.wy-message-editor-grow{display:grid}.wy-message-editor-grow:after,.wy-message-editor-grow>textarea{grid-area:1/1/2/2}.wy-message-editor-grow:after{content:attr(data-replicated-value) \" \";white-space:pre-wrap;visibility:hidden}.wy-message-editor-grow>textarea{resize:none;overflow:hidden}.wy-editor .cm-scroller{font-family:unset;line-height:1.5}.wy-editor .cm-widgetBuffer{vertical-align:unset}.wy-editor .cm-placeholder{pointer-events:none;color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e))}.wy-editor .cm-content{caret-color:var(--wy-on-background, var(--wy-neutral-10, #1a1c1e))}.wy-editor .cm-content .wy-link{text-decoration:var(--wy-link-decoration, none);color:var(--wy-link, var(--wy-primary-40, #006399))}.wy-editor .cm-editor{box-sizing:border-box;flex-direction:column;position:relative!important;display:flex!important}.wy-editor .cm-editor.cm-focused{--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));color:var(--wy-component-color);border-color:var(--wy-primary, var(--wy-primary-40, #006399));outline:0}.wy-editor .cm-editor .cm-scroller{overflow:auto}.wy-editor .cm-editor .cm-line{display:block;padding:0px var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) 0px var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-editor .cm-tooltip.cm-tooltip-autocomplete>ul{font-family:unset;max-height:calc(15 * var(--wy-size, 1rem))}.wy-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li{padding:0}.wy-editor .cm-tooltip{border:none;background-clip:padding-box;background-color:var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));color:var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));box-shadow:var(--wy-shadow-level1, 0 calc(.125 * var(--wy-size, 1rem)) calc(.125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .14), 0 calc(.1875 * var(--wy-size, 1rem)) calc(.0625 * var(--wy-size, 1rem)) calc(-.125 * var(--wy-size, 1rem)) rgba(0, 0, 0, .2), 0 calc(.0625 * var(--wy-size, 1rem)) calc(.3125 * var(--wy-size, 1rem)) 0 rgba(0, 0, 0, .12));overflow:hidden;z-index:1000}.wy-editor .cm-tooltip-autocomplete ul li[aria-selected]{background:var(--wy-primary-container, var(--wy-primary-90, #cde5ff));color:unset}.wy-editor .cm-tooltip-autocomplete .cm-completionLabel{display:none}.wy-editor .cm-tooltip-autocomplete .wy-item-hover:hover,.wy-editor .cm-tooltip-autocomplete .wy-item-hover:focus{background:var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb))}.wy-message-editor .cm-editor.cm-focused{border-color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-message-editor .wy-is-invalid+[data-editor-target] .cm-editor,.wy-message-editor .wy-is-invalid .cm-editor{border-color:var(--wy-error, var(--wy-error-40, #ba1824))!important}.wy-chat-conversation{overflow-anchor:none;display:flex;flex-direction:column;flex:1 0 min-content;height:100%;width:100%;min-height:0;min-width:0}.wy-truncated-text-and-icon{display:flex;align-items:center;gap:.25rem}.wy-truncated-text-and-icon>:first-child{line-height:var(--wy-line-height, 1.5);flex:0 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wy-truncated-text-and-icon>:last-child:not(:first-child){flex:0 0 auto;white-space:nowrap}[part~=wy-filename]{font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)));height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);display:flex;flex-direction:column;justify-content:center}[part~=wy-filename] .wy-truncated-text-and-icon{justify-content:space-between}.wy-files{position:relative;display:flex;flex-direction:column;flex:1;min-height:0;container-type:inline-size}@supports (position: sticky){wy-files-appbar{position:sticky;top:0;z-index:1020}}.wy-table-files thead{text-align:left;display:none}@container (inline-size >= 576px){.wy-table-files thead{display:table-header-group}}.wy-table-files tr[part~=wy-highlight]{animation:wy-highlight 3s 1.5s ease-in-out both}.wy-table-files tr>:nth-child(2){width:100%}.wy-table-files tr>:nth-child(2) td{padding:0 var(--wy-table-cell-padding-x, var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))))}.wy-table-files tr>:nth-child(4){width:calc(7 * var(--wy-size, 1rem));display:none}@container (inline-size >= 768px){.wy-table-files tr>:nth-child(4){display:table-cell}}.wy-table-files tr>:nth-child(4){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-table-files tr>:nth-child(5){width:calc(7.5 * var(--wy-size, 1rem));text-align:right;display:none}@container (inline-size >= 768px){.wy-table-files tr>:nth-child(5){display:table-cell}}.wy-table-files tr>:nth-child(5){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-table-files tr>:nth-child(6){width:calc(7 * var(--wy-size, 1rem));text-align:right;display:none}@container (inline-size >= 576px){.wy-table-files tr>:nth-child(6){display:table-cell}}.wy-table-files tr>:nth-child(6){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-sidebar{--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background:var(--wy-component-background-color);color:var(--wy-component-color);min-width:0;min-height:0;flex-grow:0;flex-shrink:0;flex-basis:calc(18 * var(--wy-size, 1rem));z-index:10;display:flex;flex-direction:column;transition:flex-basis var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));position:relative;order:9999;overflow:clip}.wy-sidebar>*{transition:opacity var(--wy-transition-fast, var(--wy-transition-duration-fast, .1s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))) calc(var(--wy-transition-duration, .2s) - var(--wy-transition-duration-fast, .1s));min-width:calc(18 * var(--wy-size, 1rem))}.wy-sidebar[hidden]{display:flex!important;flex-basis:0}.wy-sidebar[hidden]>*{transition:opacity var(--wy-transition-fast, var(--wy-transition-duration-fast, .1s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));opacity:0}@media (min-width: 768px){.wy-sidebar>*{min-width:calc(18 * var(--wy-size, 1rem))}.wy-sidebar .wy-sidebar-handle{display:none}}@media (max-width: 767.98px){.wy-sidebar{transition:flex-basis var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))),margin-top var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));border-top-left-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));border-top-right-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));flex-basis:50vh}.wy-sidebar:not([hidden]){margin-top:calc(-1 * var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))))}.wy-sidebar:not([hidden]).wy-maximized{flex-basis:calc(100% - var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem))))) * .5);margin-top:calc(-50% + var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem))))) * 2.5 - var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))))}.wy-sidebar:not([hidden]).wy-maximized~* .wy-nav-prev,.wy-sidebar:not([hidden]).wy-maximized~* .wy-nav-next{display:none}.wy-sidebar>*{min-height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))))}}.wy-sidebar-handle{width:calc(4 * var(--wy-size, 1rem));background-clip:content-box;background-color:var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));height:calc(1 * var(--wy-size, 1rem));border:calc(.375 * var(--wy-size, 1rem)) solid transparent;position:absolute;top:0;z-index:2;left:50%;margin-left:calc(-2 * var(--wy-size, 1rem));border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));cursor:pointer}.wy-table{table-layout:fixed;width:100%;vertical-align:top;border-collapse:collapse}.wy-table th,.wy-table td{background-color:var(--wy-component-background-color);padding:var(--wy-table-cell-padding-y, var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) var(--wy-table-cell-padding-x, var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))));box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 -1px 0 0 inset;line-height:1;vertical-align:middle;height:calc(2.5 * var(--wy-size, 1rem))}.wy-table th:first-child,.wy-table td:first-child{padding-left:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))}.wy-table th:last-child,.wy-table td:last-child{padding-right:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))}.wy-table>tbody{vertical-align:inherit}.wy-table>thead{vertical-align:bottom}.wy-table .wy-table-cell-icon{vertical-align:middle;text-align:center;padding:calc(var(--wy-table-cell-padding-y, var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .5) var(--wy-table-cell-padding-x, var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))));width:calc(calc(2.5 * var(--wy-size, 1rem)) + var(--wy-table-cell-padding-x, var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))) * 2);font-size:var(--wy-font-size, var(--wy-size, 1em));font-weight:var(--wy-font-weight, unset);text-transform:none;letter-spacing:normal}.wy-table .wy-table-cell-text{width:100%}.wy-table .wy-table-cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-table-hover>tbody>tr:hover>*{--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));color:var(--wy-component-color);cursor:pointer}.wy-table-row-trashed th,.wy-table-row-trashed td{text-decoration:line-through}.wy-table-row-trashed th:not(:last-child)>*,.wy-table-row-trashed td:not(:last-child)>*{opacity:var(--wy-opacity-disabled, 38%)}.wy-table-row-trashed th>a,.wy-table-row-trashed td>a{color:var(--wy-component-color)}.wy-table-row-trashed:hover th,.wy-table-row-trashed:hover td{opacity:1}.wy-table-no-result{text-align:center;padding:calc(1 * var(--wy-size, 1rem))}.wy-table-sort-link{display:inline-flex;align-items:center;color:var(--wy-link, var(--wy-primary-40, #006399));cursor:pointer}[part~=wy-image]{padding:0;width:50%;position:relative;flex:auto;background-color:inherit;background-clip:content-box}[part~=wy-image-full-width]{flex-basis:100%!important}[part~=wy-image-grid]{display:flex;flex-wrap:wrap;justify-content:space-evenly;position:relative;overflow:hidden;column-gap:1px;row-gap:1px}[part~=wy-image-area]{display:block;height:100%;cursor:pointer}[part~=wy-image-content]{position:absolute;height:100%;width:100%;object-fit:contain}[part~=wy-image-content][part~=wy-loading]{transition:opacity .15s ease-out;opacity:0}[part~=wy-image-content][part~=wy-loading][part~=wy-loaded]{opacity:1;transition:opacity .15s ease-out}[part~=wy-image-content][part~=wy-loading][part~=wy-loaded]~[part~=wy-image-preview]{transition-delay:.15s;opacity:0}[part~=wy-image-grid-more]{position:absolute;line-height:100%;color:var(--wy-white, #ffffff);top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center;font-size:calc(1.5 * var(--wy-size, 1rem));background:rgba(0,0,0,var(--wy-opacity-disabled, 38%))}.wy-posts{display:flex;flex-direction:column;gap:calc(1 * var(--wy-size, 1rem))}.wy-post{--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);display:flex;flex-direction:column;position:relative;--wy-component-border-radius: var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));border-radius:var(--wy-component-border-radius)}.wy-post[part~=wy-highlight]{animation:wy-highlight 3s 1.5s ease-in-out both}.wy-post wy-comment-list{border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-post-area{border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-post-area-full-width{border-radius:0}.wy-post-body{display:flex;flex-direction:column;padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));gap:var(--wy-gap-lg, calc(1.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-post-body:empty{display:none}.wy-post-footer{display:flex;align-items:center;justify-content:space-between;padding:0 calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) * .75) calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) * .75)}.wy-post-footer .wy-meta{margin-right:calc(.5 * var(--wy-size, 1rem))}.wy-post-comments:not(:empty){padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))}.wy-post-dragging:after{content:attr(data-drag-title,\"Drop files here to upload.\");background-color:#ffffff80;display:flex;justify-content:center;align-items:center;border:calc(.125 * var(--wy-size, 1rem)) dashed var(--wy-primary, var(--wy-primary-40, #006399));font-weight:var(--wy-font-weight-bold, 600);z-index:10000;position:absolute;top:0;left:0;bottom:0;right:0}.wy-poll{flex:1 1 100%;min-width:0;display:flex;flex-direction:column;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-poll-form{background:var(--wy-component-background-color);color:var(--wy-component-color);display:flex;flex-direction:column;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-poll-form:empty{display:none}.wy-poll-option{overflow:hidden;position:relative;background-color:var(--wy-background, var(--wy-neutral-99, #fcfcff));border:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));min-height:calc(2.5 * var(--wy-size, 1rem));cursor:pointer}.wy-poll-option .wy-progress{position:absolute;top:0;left:0;bottom:0;background-color:var(--wy-surface-5, var(--wy-surface-5-light, #dce2ea))}.wy-poll-option>:not(.wy-progress){z-index:1}.wy-embed{display:flex;flex-direction:column;word-wrap:break-word;border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));clip-path:border-box;overflow:hidden}.wy-embed-photo a{display:flex}.wy-embed-photo img{width:100%;height:auto}.wy-embed-photo-sm a{padding:0 calc(1 * var(--wy-size, 1rem))}.wy-embed-photo-sm img{display:block;margin:0 auto;width:auto;max-width:100%;border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-embed-video{position:relative;display:block;width:100%;padding:0;overflow:hidden}.wy-embed-video:before{display:block;content:\"\";padding-top:56.25%}.wy-embed-video iframe,.wy-embed-video embed,.wy-embed-video object,.wy-embed-video video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.wy-embed-caption{--wy-component-background-color: var(--wy-surface-3, var(--wy-surface-3-light, #e3e7ee));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);padding:calc(.5 * var(--wy-size, 1rem)) calc(1 * var(--wy-size, 1rem)) calc(1 * var(--wy-size, 1rem));position:relative}.wy-embed-link{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));text-transform:uppercase;font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-embed-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:\"\"}.wy-embed-title{font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600));margin-bottom:calc(.5 * var(--wy-size, 1rem))}.wy-embed-description{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e))}.wy-embed-preview a[target=_blank]{pointer-events:none}.wy-embed-preview .wy-embed{border:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));display:none}.wy-embed-preview .wy-embed:first-child{display:block}.wy-embed-preview .wy-embed-caption{border-bottom-left-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));border-bottom-right-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)))}.wy-embed-preview .wy-embed-actions{display:flex}.wy-embed-actions{display:none;justify-content:space-between;padding:calc(.5 * var(--wy-size, 1rem)) calc(.25 * var(--wy-size, 1rem))}.wy-embed-cycle{visibility:hidden}.wy-embed-show-cycle .wy-embed-cycle{visibility:visible}.wy-post-editor{padding:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));display:flex;flex-direction:column;gap:var(--wy-gap-lg, calc(1.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-post-editor.wy-uploading .wy-icon-active-stack>:first-child{opacity:0}.wy-post-editor.wy-uploading .wy-icon-active-stack>:last-child{opacity:1}.wy-post-editor .wy-picker-list:not(:empty){margin-top:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-post-editor-inputs{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-post-editor-buttons{display:flex;flex-direction:row;align-items:flex-end;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));flex:1 0 auto}.wy-post-editor-text{flex:1 1 100%;display:flex;flex-direction:column}.wy-post-editor-mention,.wy-post-editor-link{background:#00f;color:#fff}.wy-post-editor .cm-editor,.wy-post-editor-grow:after,.wy-post-editor-grow>textarea,.wy-post-editor-textfield{flex:1 1 100%;max-height:11.25em;min-height:4em;background-color:var(--wy-background, var(--wy-neutral-99, #fcfcff));color:var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));border:var(--wy-input-border-width, var(--wy-border, 1px)) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));caret-color:var(--wy-primary, var(--wy-primary-40, #006399))}.wy-post-editor .cm-editor:focus,.wy-post-editor-grow:focus:after,.wy-post-editor-grow>textarea:focus,.wy-post-editor-textfield:focus{border-color:var(--wy-primary, var(--wy-primary-40, #006399))}.wy-post-editor .cm-editor .cm-content,.wy-post-editor-textcontent{font-family:var(--wy-input-font-family, var(--wy-font-family, inherit)),inherit;font-size:var(--wy-input-font-size, var(--wy-font-size, 1em));padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))))}.wy-post-editor-grow{display:grid}.wy-post-editor-grow:after,.wy-post-editor-grow>textarea{grid-area:1/1/2/2}.wy-post-editor-grow:after{content:attr(data-replicated-value) \" \";white-space:pre-wrap;visibility:hidden}.wy-post-editor-grow>textarea{resize:none;overflow:hidden}.wy-post-editor .cm-editor .cm-line{padding:0}.wy-post-editor .wy-is-invalid+[data-editor-target] .cm-editor,.wy-post-editor .wy-is-invalid .cm-editor{border-color:var(--wy-error, var(--wy-error-40, #ba1824))!important}.wy-comments{display:flex;flex-direction:column;gap:var(--wy-gap-xl, calc(2 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));margin-bottom:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}.wy-comments-padded{margin:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}.wy-comment{--wy-component-background-color: var(--wy-surface-3, var(--wy-surface-3-light, #e3e7ee));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));--wy-component-border-radius: var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));border-radius:var(--wy-component-border-radius);background-color:var(--wy-component-background-color);color:var(--wy-component-color);display:flex;flex-direction:column;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));position:relative}.wy-comment[part~=wy-highlight]{animation:wy-highlight 3s 1.5s ease-in-out both}.wy-comment-body{flex:1 0 auto;z-index:1}.wy-comment-content{padding:0 var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));display:flex;flex-direction:column;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}.wy-comment-area{border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-comment-editor .wy-spinner{display:none}.wy-comment-editor.wy-uploading .wy-spinner{display:block}.wy-comment-editor.wy-uploading [data-icon=plus]{display:none}.wy-comment-editor .wy-picker-list:not(:empty){border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-comment-editor.wy-comment-editor-bottom{position:sticky;bottom:0;z-index:999;background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-comment-editor-inputs{display:flex;flex-direction:row;align-items:flex-end;padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));min-height:calc(3.5 * var(--wy-size, 1rem));gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-comment-editor-buttons{flex:1 0 auto}.wy-comment-editor-text{flex:1 1 100%;display:flex;flex-direction:column}.wy-comment-editor-mention,.wy-comment-editor-link{background:#00f;color:#fff}.wy-comment-editor .cm-editor,.wy-comment-editor-grow:after,.wy-comment-editor-grow>textarea,.wy-comment-editor-textfield{flex:1 1 100%;max-height:calc(11.25 * var(--wy-size, 1rem));background-color:var(--wy-background, var(--wy-neutral-99, #fcfcff));color:var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));border-radius:calc(1.25 * var(--wy-size, 1rem));border:var(--wy-input-border-width, var(--wy-border, 1px)) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-comment-editor .cm-editor:focus,.wy-comment-editor-grow:focus:after,.wy-comment-editor-grow>textarea:focus,.wy-comment-editor-textfield:focus{border-color:var(--wy-primary, var(--wy-primary-40, #006399))}.wy-comment-editor .cm-editor .cm-content,.wy-comment-editor-textcontent{font-family:var(--wy-input-font-family, var(--wy-font-family, inherit)),inherit;font-size:var(--wy-input-font-size, var(--wy-font-size, 1em));padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))))}.wy-comment-editor-grow{display:grid}.wy-comment-editor-grow:after,.wy-comment-editor-grow>textarea{grid-area:1/1/2/2}.wy-comment-editor-grow:after{content:attr(data-replicated-value) \" \";white-space:pre-wrap;visibility:hidden}.wy-comment-editor-grow>textarea{resize:none;overflow:hidden}.wy-comment-editor{position:relative}.wy-comment-editor .wy-is-invalid+.cm-editor,.wy-comment-editor .wy-is-invalid .cm-editor{border-color:var(--wy-error, var(--wy-error-40, #ba1824))!important}.wy-badge{display:inline-block;padding:.35em .65em;font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));font-weight:var(--wy-font-weight-bold, 600);line-height:1;color:var(--wy-on-primary, var(--wy-white, #ffffff));text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));background-color:var(--wy-primary, var(--wy-primary-40, #006399))}.wy-badge:empty{display:none}.wy-badge-reveal{opacity:1;transition:opacity var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1))) calc(var(--wy-transition-duration, .2s) + var(--wy-transition-reveal-delay, 1s))}@starting-style{.wy-badge-reveal{opacity:0}}.wy-button-badge{position:absolute;right:0;top:0;margin:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .5);padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));min-width:calc(var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em))) + var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));max-width:calc(var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em))) * 3 + var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) * 2);height:calc(var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em))) + var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));line-height:calc(var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em))) - var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));display:block;text-align:center}.wy-button-badge{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-button-badge:empty{display:none}.wy-button-dot{position:absolute;right:0;top:0;content-visibility:hidden;padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));margin:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));line-height:0;min-width:0;height:0}.wy-button-dot:empty{display:none}[part~=wy-tabs]{display:flex;overflow-y:hidden;padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));flex:1 1 auto}[part~=wy-tabs]{overflow-x:auto;max-width:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}[part~=wy-tabs]{scrollbar-width:thin;scrollbar-color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) transparent}[part~=wy-tabs]::-webkit-scrollbar{height:.375rem;width:.375rem;background:transparent;z-index:999}[part~=wy-tabs]::-webkit-scrollbar-track{background:transparent}[part~=wy-tabs]::-webkit-scrollbar-thumb{background-color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));opacity:75%;border:0 solid transparent;border-radius:0;background-clip:padding-box}[part~=wy-tabs]::-webkit-scrollbar-thumb:hover{background-color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));opacity:75%}[part~=wy-tabs]::-webkit-scrollbar-thumb:window-inactive{background-color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));opacity:50%}[part~=wy-tab]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399));--wy-component-background-color: transparent;color:var(--wy-component-color);background:var(--wy-component-background-color);border:none;border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));position:relative;text-align:center;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none}[part~=wy-tab] .wy-tab-icon{position:relative;padding:calc(.25 * var(--wy-size, 1rem)) calc(1 * var(--wy-size, 1rem));border-radius:var(--wy-button-border-radius, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));display:inline-flex}[part~=wy-tab] .wy-tab-icon:before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;background:var(--wy-component-color);opacity:0%}[part~=wy-tab]:hover .wy-tab-icon:before{opacity:8%}[part~=wy-tab]:focus .wy-tab-icon:before,[part~=wy-tab]:active .wy-tab-icon:before,[part~=wy-tab].wy-active .wy-tab-icon:before{opacity:12%}[part~=wy-tab] .wy-tab-label{font-family:var(--wy-button-font-family, var(--wy-font-family, unset)),inherit;line-height:var(--wy-button-line-height, var(--wy-line-height, 1.5));font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));font-weight:var(--wy-font-weight, unset)}[part~=wy-button-state-layer][part~=wy-button-sm][part~=wy-tab-sm]{padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) calc(var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .5);margin:var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) auto;font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)));height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6)}[part~=wy-button-state-layer][part~=wy-button-sm][part~=wy-tab-sm]:before{margin:calc(var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * -.25) calc(var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * 0)}.wy-conversations{position:relative}.wy-conversation{display:flex;position:relative}.wy-conversation .wy-item-title{font-weight:var(--wy-item-title-font-weight, var(--wy-font-weight, unset));font-size:var(--wy-item-title-font-size, var(--wy-font-size, 1em))}.wy-conversation.wy-unread .wy-item-title{font-weight:var(--wy-font-weight-bold, 600)}.wy-conversation.wy-unread .wy-item-text,.wy-conversation.wy-unread .wy-meta{color:var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));font-weight:var(--wy-font-weight-bold, 600)}.wy-conversation .wy-item-text .wy-typing-show{font-weight:var(--wy-font-weight, unset)}.wy-conversation .wy-item-text .wy-typing-show{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}`,Wt=At`:host{display:contents}`;var hB=Object.defineProperty,dB=Object.getOwnPropertyDescriptor,Ie=u((n,t,e,i)=>{for(var s=i>1?void 0:i?dB(t,e):t,r=n.length-1,a;r>=0;r--)(a=n[r])&&(s=(i?a(t,e,s):a(s))||s);return i&&s&&hB(t,e,s),s},"__decorateClass$19");function rk(n){return n!=null&&n!==!1}h(rk,"wy");u(rk,"acceptedValue");const P_="wy-context";var vb,Wu;let ue=(vb=(Wu=class extends yt{constructor(){super(),this.provider=!1,this.cloudFilePickerUrl=Oe.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=Oe.defaults.disableEnvironmentImports,this.locale=Oe.defaults.locale,this.locales=Oe.defaults.locales,this.gcTime=Oe.defaults.gcTime,this.notificationEvents=Oe.defaults.notificationEvents,this.scrollBehavior=Oe.defaults.scrollBehavior,this.staleTime=Oe.defaults.staleTime,this.tokenFactory=Oe.defaults.tokenFactory,this.tokenFactoryRetryDelay=Oe.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=Oe.defaults.tokenFactoryTimeout,this.tokenUrl=Oe.defaults.tokenUrl,this.url=Oe.defaults.url,this.notifications=Oe.defaults.notifications,this.notificationsBadge=Oe.defaults.notificationsBadge,this.reactions=Oe.defaults.reactions,this.childElementCount&&(this.provider=!0),this.weavy??(this.weavy=new Oe({host:this.provider?this:void 0}))}get version(){return Oe.version}get sourceName(){return Oe.sourceName}willUpdate(t){if(super.willUpdate(t),this.weavy){const e={};Array.from(t.keys()).forEach(i=>{i!=="weavy"&&(rk(this[i])||rk(t.get(i)))&&Object.assign(e,{[i]:this[i]})}),Object.assign(this.weavy,e)}}render(){return v` <slot></slot> `}},h(Wu,"Jn"),Wu),u(vb,"WyContext"),vb);ue.styles=[ft,Xi,Wt];Ie([$({attribute:!0,type:Boolean})],ue.prototype,"provider",2);Ie([$({attribute:!0,converter:{fromAttribute:u(n=>cg(n),"fromAttribute")}})],ue.prototype,"cloudFilePickerUrl",2);Ie([$({attribute:!0,converter:{fromAttribute:u(n=>cg(n),"fromAttribute")}}),$({type:Boolean})],ue.prototype,"disableEnvironmentImports",2);Ie([$({attribute:!0})],ue.prototype,"locale",2);Ie([$({attribute:!0,type:Array})],ue.prototype,"locales",2);Ie([$({attribute:!0,type:Number})],ue.prototype,"gcTime",2);Ie([$({type:Boolean})],ue.prototype,"notificationEvents",2);Ie([$({attribute:!0})],ue.prototype,"scrollBehavior",2);Ie([$({attribute:!0,type:Number})],ue.prototype,"staleTime",2);Ie([$({attribute:!0,converter:{fromAttribute:u(n=>S_(n),"fromAttribute")}})],ue.prototype,"tokenFactory",2);Ie([$({attribute:!0,type:Number})],ue.prototype,"tokenFactoryRetryDelay",2);Ie([$({attribute:!0,type:Number})],ue.prototype,"tokenFactoryTimeout",2);Ie([$({attribute:!0,converter:{fromAttribute:u(n=>cg(n),"fromAttribute")}})],ue.prototype,"tokenUrl",2);Ie([$({attribute:!0,converter:{fromAttribute:u(n=>cg(n),"fromAttribute")}})],ue.prototype,"url",2);Ie([$({attribute:!0})],ue.prototype,"notifications",2);Ie([$({attribute:!0})],ue.prototype,"notificationsBadge",2);Ie([$({attribute:!0})],ue.prototype,"reactions",2);Ie([F()],ue.prototype,"weavy",2);ue=Ie([Y(P_)],ue);var Bm,I1,Du;const C_=(Du=class{constructor(t,e){q(this,Bm),q(this,I1),z(this,Bm,!0),this.styles=[],t.addController(this),this.host=t,e&&(this.styles=e)}get themeColor(){return k(this,I1)}set themeColor(t){z(this,I1,t),this.checkThemeUpdate()}checkThemeUpdate(){const t=this.themeColor||Vv(this.host)||Wv();if(t&&t!==this._resolvedThemeColor){this._resolvedThemeColor=t,console.info("Configuring theme",this._resolvedThemeColor);const e=DE(this._resolvedThemeColor).join(""),i=At`
|
|
33
33
|
:host {
|
|
34
34
|
${cR(e)};
|
|
35
35
|
}
|
|
@@ -3182,4 +3182,4 @@ ${s.join(`
|
|
|
3182
3182
|
>
|
|
3183
3183
|
<wy-icon name="send"></wy-icon>
|
|
3184
3184
|
</wy-button>
|
|
3185
|
-
</div>`}renderBottomSlot(){return Q}},h(_f,"Io"),_f),u(s$,"WyMessageEditor"),s$);Tk=OY([Y("wy-message-editor"),xt()],Tk);const ot=Object.freeze(Object.defineProperty({__proto__:null,get WyAttachment(){return js},get WyAttachmentsList(){return ey},get WyAvatar(){return Us},get WyAvatarGroup(){return Xo},get WyBlobUpload(){return hy},get WyButton(){return as},get WyButtons(){return No},get WyCloudFiles(){return il},get WyComment(){return $e},get WyCommentEdit(){return dn},get WyCommentEditor(){return Pk},get WyCommentList(){return tl},get WyCommentTrashed(){return Bw},get WyCommentView(){return ze},get WyConversation(){return Bi},get WyConversationAppbar(){return ls},get WyConversationList(){return cs},get WyConversationListItem(){return ni},get WyConversationNew(){return uy},get WyDropdown(){return Ti},get WyDropdownDivider(){return Kv},get WyDropdownItem(){return jw},get WyDropdownOption(){return ry},get WyEditor(){return Ut},get WyEmbed(){return Jf},get WyEmpty(){return Kf},get WyFileItem(){return Xs},get WyFileMenu(){return oa},get WyFileVersions(){return oy},get WyFilesAppbar(){return la},get WyFilesList(){return Mn},get WyIcon(){return le},get WyImageGrid(){return ty},get WyMeetingCard(){return qw},get WyMessage(){return xe},get WyMessageEditor(){return Tk},get WyMessageTyping(){return ji},get WyMessages(){return Qn},get WyMessengerBadge(){return ha},get WyNotificationBadge(){return Nw},get WyNotificationButtonList(){return e0},get WyNotificationList(){return py},get WyNotificationListItem(){return da},get WyOverlay(){return ra},get WyPdfViewer(){return Ko},get WyPoll(){return Fw},get WyPollOption(){return Jo},get WyPost(){return ke},get WyPostEdit(){return je},get WyPostTrashed(){return Gw},get WyPostView(){return ce},get WyPresence(){return Gf},get WyPreview(){return Ae},get WyPreviewEmbed(){return aa},get WyPreviewIcon(){return Yo},get WyPreviewImage(){return Go},get WyPreviewItem(){return ay},get WyPreviewMedia(){return Fs},get WyPreviewText(){return os},get WyProgressLinear(){return hn},get WyReactionItem(){return Dw},get WyReactions(){return be},get WySheet(){return sy},get WySkeleton(){return Uw},get WySpinner(){return ss},get WyToast(){return Hs},get WyToasts(){return Yw},get WyTyping(){return dy},get WyUsersSearch(){return Tn}},Symbol.toStringTag,{value:"Module"}));Me.version="28.0.0";Me.sourceName="@weavy/uikit-react";const JI=H.createContext(null);function bY(n,t=[]){var o,l,c,d,p;const[e,i]=H.useState(),s={...n,cloudFilePickerUrl:(o=n.cloudFilePickerUrl)==null?void 0:o.toString(),locales:H.useMemo(()=>n.locales,[(l=n.locales)==null?void 0:l.length]),tokenUrl:(c=n.tokenUrl)==null?void 0:c.toString(),tokenFactory:H.useMemo(()=>n.tokenFactory,[(d=n.tokenFactory)==null?void 0:d.toString(),...t]),url:(p=n.url)==null?void 0:p.toString()},[r,a]=H.useState(s);return H.useEffect(()=>{if(!e){const m=(Zi==null?void 0:Zi.value)??new Oe(s);i(m)}},[]),H.useEffect(()=>{if(e&&!e.isDestroyed){const f={};Object.entries(s).forEach(([m,w])=>{w!==r[m]&&Object.assign(f,{[m]:w})}),Object.keys(f).length&&(a(s),Object.assign(e,f))}},[s]),e}h(bY,"useWeavy");const tZ=Promise.resolve(),iC=class iC{constructor(t,e){this.o=[],this.t=!0,this.i=!1,this.l=t,this.h=e,this.u=new Promise((i,s)=>{this.p=i})}addController(t){this.o.push(t)}removeController(t){var e;(e=this.o)==null||e.splice(this.o.indexOf(t)>>>0,1)}requestUpdate(){this.t||(this.t=!0,tZ.then(()=>this.h(++this.l)))}get updateComplete(){return this.u}m(){this.i=!0,this.o.forEach(t=>{var e;return(e=t.hostConnected)==null?void 0:e.call(t)})}_(){this.i=!1,this.o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}v(){this.o.forEach(t=>{var e;return(e=t.hostUpdate)==null?void 0:e.call(t)})}C(){this.t=!1;const t=this.p;this.u=new Promise((e,i)=>{this.p=e}),this.o.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),t(this.t)}};h(iC,"s");let Ak=iC;const $Y=h((n,t)=>{const{useState:e,useLayoutEffect:i}=n,[s,r]=e(0);let a=!1;const[o]=e(()=>{const l=new Ak(s,r),c=t(l);return l.M=c,l.m(),a=!0,tZ.then(()=>{a&&l._()}),l});return o.t=!0,i(()=>(a=!1,o.i||o.m(),()=>o._()),[]),i(()=>o.C()),o.v(),o.M},"e$1");function eZ(n,t){var r;const i=(h(a=>!!a&&a.current!==void 0,"isRef")(n)?n.current:n)||void 0,s=$Y(H,a=>new eB(a,t??Le,i));return H.useEffect(()=>{i&&(s.ref=i)},[s,i]),(r=s.context)==null?void 0:r.value}h(eZ,"useWeavyContext");var iZ=(n=>(n.Attachments="attachments",n.agents="agents",n.CloudFiles="cloud_files",n.ContextData="context_data",n.Comments="comments",n.Embeds="embeds",n.GoogleMeet="google_meet",n.Meetings="meetings",n.Mentions="mentions",n.MicrosoftTeams="microsoft_teams",n.Polls="polls",n.Previews="previews",n.Reactions="reactions",n.Receipts="receipts",n.Thumbnails="thumbnails",n.Typing="typing",n.Versions="versions",n.WebDAV="web_dav",n.ZoomMeetings="zoom_meetings",n))(iZ||{});const xY=new Set(["children","localName","ref","style","className"]),X3=new WeakMap,N3=h((n,t,e,i,s)=>{const r=s==null?void 0:s[t];r===void 0?(n[t]=e,e==null&&t in HTMLElement.prototype&&n.removeAttribute(t)):e!==i&&((a,o,l)=>{let c=X3.get(a);c===void 0&&X3.set(a,c=new Map);let d=c.get(o);l!==void 0?d===void 0?(c.set(o,d={handleEvent:l}),a.addEventListener(o,d)):d.handleEvent=l:d!==void 0&&(c.delete(o),a.removeEventListener(o,d))})(n,r,e)},"t"),et=h(({react:n,tagName:t,elementClass:e,events:i,displayName:s})=>{const r=new Set(Object.keys(i??{})),a=n.forwardRef((o,l)=>{const c=n.useRef(new Map),d=n.useRef(null),p={},f={};for(const[m,w]of Object.entries(o))xY.has(m)?p[m==="className"?"class":m]=w:r.has(m)||m in e.prototype?f[m]=w:p[m]=w;return n.useLayoutEffect(()=>{if(d.current===null)return;const m=new Map;for(const w in f)N3(d.current,w,o[w],c.current.get(w),i),c.current.delete(w),m.set(w,o[w]);for(const[w,O]of c.current)N3(d.current,w,void 0,O,i);c.current=m}),n.useLayoutEffect(()=>{var m;(m=d.current)==null||m.removeAttribute("defer-hydration")},[]),p.suppressHydrationWarning=!0,n.createElement(t,{...p,ref:n.useCallback(m=>{d.current=m,typeof l=="function"?l(m):l!==null&&(l.current=m)},[l])})});return a.displayName=s??e.name,a},"o"),kY=et({react:H,tagName:JL,elementClass:ly,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),SY=et({react:H,tagName:eI,elementClass:cy,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),PY=et({react:H,tagName:Q_,elementClass:Bo,events:{onWyApp:"wy-app"}}),CY=et({react:H,tagName:P_,elementClass:ue,events:{onWyNotifications:"wy-notifications"}});function QY({children:n,...t}){const e=H.useRef(null),i=eZ(e.current);return H.createElement(CY,{ref:e,...t},H.createElement(JI.Provider,{value:i??null},n))}h(QY,"WyContext");const MY=et({react:H,tagName:nI,elementClass:el,events:{onWyApp:"wy-app",onWyMessage:"wy-message",onWyPreviewOpen:"wy-preview-open"}}),TY=et({react:H,tagName:$I,elementClass:ca,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),AY=et({react:H,tagName:AI,elementClass:Ns,events:{onWyPreviewOpen:"wy-preview-open"}}),RY=et({react:H,tagName:_I,elementClass:Hw,events:{onWyApp:"wy-app",onWyLink:"wy-link"}}),EY=et({react:H,tagName:II,elementClass:hs,events:{onWyApp:"wy-app",onWyLink:"wy-link",onWyNotification:"wy-notification"}}),_Y=et({react:H,tagName:KI,elementClass:fy,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),zY=et({react:H,tagName:"wy-attachment",elementClass:ot.WyAttachment}),LY=et({react:H,tagName:"wy-attachments-list",elementClass:ot.WyAttachmentsList,events:{onFileOpen:"file-open"}}),IY=et({react:H,tagName:"wy-avatar",elementClass:ot.WyAvatar}),ZY=et({react:H,tagName:"wy-blob-upload",elementClass:ot.WyBlobUpload}),VY=et({react:H,tagName:"wy-button",elementClass:ot.WyButton}),WY=et({react:H,tagName:"wy-buttons",elementClass:ot.WyButtons}),DY=et({react:H,tagName:"wy-cloud-files",elementClass:ot.WyCloudFiles,events:{onExternalBlobs:"external-blobs",onReleaseFocus:"release-focus"}}),qY=et({react:H,tagName:"wy-comment-list",elementClass:ot.WyCommentList}),UY=et({react:H,tagName:"wy-comment",elementClass:ot.WyComment,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),jY=et({react:H,tagName:"wy-comment-view",elementClass:ot.WyCommentView,events:{onVote:"vote",onTrash:"trash",onEdit:"edit"}}),BY=et({react:H,tagName:"wy-comment-edit",elementClass:ot.WyCommentEdit,events:{onEdit:"edit"}}),FY=et({react:H,tagName:"wy-comment-editor",elementClass:ot.WyCommentEditor,events:{onSubmit:"submit"}}),XY=et({react:H,tagName:"wy-comment-trashed",elementClass:ot.WyCommentTrashed,events:{onRestore:"restore"}}),NY=et({react:H,tagName:"wy-conversation",elementClass:ot.WyConversation,events:{onReleaseFocus:"release-focus"}}),HY=et({react:H,tagName:"wy-conversation-appbar",elementClass:ot.WyConversationAppbar,events:{onReleaseFocus:"release-focus"}}),YY=et({react:H,tagName:"wy-conversation-new",elementClass:ot.WyConversationNew,events:{onReleaseFocus:"release-focus"}}),GY=et({react:H,tagName:"wy-conversation-list",elementClass:ot.WyConversationList,events:{onConversationSelected:"conversation-selected"}}),KY=et({react:H,tagName:"wy-conversation-list-item",elementClass:ot.WyConversationListItem,events:{onRefetch:"refetch",onSelected:"selected",onStar:"star",onPin:"pin",onMark:"mark",onLeave:"leave"}}),JY=et({react:H,tagName:"wy-dropdown",elementClass:ot.WyDropdown}),tG=et({react:H,tagName:"wy-dropdown-item",elementClass:ot.WyDropdownItem}),eG=et({react:H,tagName:"wy-dropdown-option",elementClass:ot.WyDropdownOption}),iG=et({react:H,tagName:"wy-dropdown-divider",elementClass:ot.WyDropdownDivider}),nG=et({react:H,tagName:"wy-editor",elementClass:ot.WyEditor,events:{onSubmit:"submit"}}),sG=et({react:H,tagName:"wy-embed",elementClass:ot.WyEmbed,events:{onEmbedRemove:"embed-remove",onEmbedSwap:"embed-swap"}}),rG=et({react:H,tagName:"wy-empty",elementClass:ot.WyEmpty}),aG=et({react:H,tagName:"wy-file-item",elementClass:ot.WyFileItem,events:{onEditName:"edit-name",onRename:"rename",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever",onSubscribe:"subscribe"}}),oG=et({react:H,tagName:"wy-file-menu",elementClass:ot.WyFileMenu,events:{onEditName:"edit-name",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever"}}),lG=et({react:H,tagName:"wy-file-versions",elementClass:ot.WyFileVersions,events:{onFileVersionSelect:"file-version-select"}}),cG=et({react:H,tagName:"wy-files-appbar",elementClass:ot.WyFilesAppbar,events:{onReleaseFocus:"release-focus",onUploadFiles:"upload-files",onExternalBlobs:"external-blobs",onCreateFiles:"create-files",onOrder:"order",onView:"view",onShowTrashed:"show-trashed",onSubscribe:"subscribe"}}),hG=et({react:H,tagName:"wy-files-list",elementClass:ot.WyFilesList,events:{onFileOpen:"file-open",onOrder:"order",onEditName:"edit-name",onRename:"rename",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever",onSubscribe:"subscribe"}}),dG=et({react:H,tagName:"wy-icon",elementClass:ot.WyIcon}),uG=et({react:H,tagName:"wy-image-grid",elementClass:ot.WyImageGrid,events:{onFileOpen:"file-open"}}),pG=et({react:H,tagName:"wy-meeting-card",elementClass:ot.WyMeetingCard}),fG=et({react:H,tagName:"wy-message",elementClass:ot.WyMessage}),yG=et({react:H,tagName:"wy-messages",elementClass:ot.WyMessages,events:{onScrollToBottom:"scroll-to-bottom"}}),mG=et({react:H,tagName:"wy-message-editor",elementClass:ot.WyMessageEditor,events:{onSubmit:"submit"}}),wG=et({react:H,tagName:"wy-message-typing",elementClass:ot.WyMessageTyping}),gG=et({react:H,tagName:"wy-messenger-badge",elementClass:ot.WyMessengerBadge}),vG=et({react:H,tagName:"wy-notification-badge",elementClass:ot.WyNotificationBadge}),OG=et({react:H,tagName:"wy-notification-button-list",elementClass:ot.WyNotificationButtonList}),bG=et({react:H,tagName:"wy-notification-list",elementClass:ot.WyNotificationList}),$G=et({react:H,tagName:"wy-notification-list-item",elementClass:ot.WyNotificationListItem}),xG=et({react:H,tagName:"wy-overlay",elementClass:ot.WyOverlay,events:{onReleaseFocus:"release-focus",onClose:"close"}}),kG=et({react:H,tagName:"wy-pdf-viewer",elementClass:ot.WyPdfViewer}),SG=et({react:H,tagName:"wy-poll",elementClass:ot.WyPoll,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),PG=et({react:H,tagName:"wy-poll-option",elementClass:ot.WyPollOption,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),CG=et({react:H,tagName:"wy-post",elementClass:ot.WyPost,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),QG=et({react:H,tagName:"wy-post-view",elementClass:ot.WyPostView,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onEdit:"edit"}}),MG=et({react:H,tagName:"wy-post-edit",elementClass:ot.WyPostEdit,events:{onEdit:"edit"}}),TG=et({react:H,tagName:"wy-post-trashed",elementClass:ot.WyPostTrashed,events:{onRestore:"restore"}}),AG=et({react:H,tagName:"wy-presence",elementClass:ot.WyPresence}),RG=et({react:H,tagName:"wy-preview",elementClass:ot.WyPreview,events:{onReleaseFocus:"release-focus",onWyPreviewOpen:"wy-preview-open",onWyPreviewClose:"wy-preview-close"}}),EG=et({react:H,tagName:"wy-preview-item",elementClass:ot.WyPreviewItem}),_G=et({react:H,tagName:"wy-preview-embed",elementClass:ot.WyPreviewEmbed}),zG=et({react:H,tagName:"wy-preview-icon",elementClass:ot.WyPreviewIcon}),LG=et({react:H,tagName:"wy-preview-image",elementClass:ot.WyPreviewImage}),IG=et({react:H,tagName:"wy-preview-media",elementClass:ot.WyPreviewMedia}),ZG=et({react:H,tagName:"wy-preview-text",elementClass:ot.WyPreviewText}),VG=et({react:H,tagName:"wy-reactions",elementClass:ot.WyReactions,events:{onReleaseFocus:"release-focus"}}),WG=et({react:H,tagName:"wy-reaction-item",elementClass:ot.WyReactionItem}),DG=et({react:H,tagName:"wy-sheet",elementClass:ot.WySheet,events:{onReleaseFocus:"release-focus",onClose:"close"}}),qG=et({react:H,tagName:"wy-skeleton",elementClass:ot.WySkeleton}),UG=et({react:H,tagName:"wy-spinner",elementClass:ot.WySpinner}),jG=et({react:H,tagName:"wy-typing",elementClass:ot.WyTyping}),BG=et({react:H,tagName:"wy-users-search",elementClass:ot.WyUsersSearch,events:{onSubmit:"submit"}}),FG=Object.freeze(Object.defineProperty({__proto__:null,WyAttachment:zY,WyAttachmentsList:LY,WyAvatar:IY,WyBlobUpload:ZY,WyButton:VY,WyButtons:WY,WyCloudFiles:DY,WyComment:UY,WyCommentEdit:BY,WyCommentEditor:FY,WyCommentList:qY,WyCommentTrashed:XY,WyCommentView:jY,WyConversation:NY,WyConversationAppbar:HY,WyConversationList:GY,WyConversationListItem:KY,WyConversationNew:YY,WyDropdown:JY,WyDropdownDivider:iG,WyDropdownItem:tG,WyDropdownOption:eG,WyEditor:nG,WyEmbed:sG,WyEmpty:rG,WyFileItem:aG,WyFileMenu:oG,WyFileVersions:lG,WyFilesAppbar:cG,WyFilesList:hG,WyIcon:dG,WyImageGrid:uG,WyMeetingCard:pG,WyMessage:fG,WyMessageEditor:mG,WyMessageTyping:wG,WyMessages:yG,WyMessengerBadge:gG,WyNotificationBadge:vG,WyNotificationButtonList:OG,WyNotificationList:bG,WyNotificationListitem:$G,WyOverlay:xG,WyPdfViewer:kG,WyPoll:SG,WyPollOption:PG,WyPost:CG,WyPostEdit:MG,WyPostTrashed:TG,WyPostView:QG,WyPresence:AG,WyPreview:RG,WyPreviewEmbed:_G,WyPreviewIcon:zG,WyPreviewImage:LG,WyPreviewItem:EG,WyPreviewMedia:IG,WyPreviewText:ZG,WyReactionItem:WG,WyReactions:VG,WySheet:DG,WySkeleton:qG,WySpinner:UG,WyTyping:jG,WyUsersSearch:BG},Symbol.toStringTag,{value:"Module"}));exports.AppTypeGuids=oP;exports.AppTypeStrings=x_;exports.Feature=iZ;exports.MessengerTypes=jH;exports.Weavy=Oe;exports.WeavyComponents=FG;exports.WeavyContext=JI;exports.WyChat=kY;exports.WyComments=SY;exports.WyComponent=PY;exports.WyContext=QY;exports.WyCopilot=MY;exports.WyFiles=TY;exports.WyMessenger=AY;exports.WyNotificationToasts=EY;exports.WyNotifications=RY;exports.WyPosts=_Y;exports.useWeavy=bY;exports.useWeavyContext=eZ;
|
|
3185
|
+
</div>`}renderBottomSlot(){return Q}},h(_f,"Io"),_f),u(s$,"WyMessageEditor"),s$);Tk=OY([Y("wy-message-editor"),xt()],Tk);const ot=Object.freeze(Object.defineProperty({__proto__:null,get WyAttachment(){return js},get WyAttachmentsList(){return ey},get WyAvatar(){return Us},get WyAvatarGroup(){return Xo},get WyBlobUpload(){return hy},get WyButton(){return as},get WyButtons(){return No},get WyCloudFiles(){return il},get WyComment(){return $e},get WyCommentEdit(){return dn},get WyCommentEditor(){return Pk},get WyCommentList(){return tl},get WyCommentTrashed(){return Bw},get WyCommentView(){return ze},get WyConversation(){return Bi},get WyConversationAppbar(){return ls},get WyConversationList(){return cs},get WyConversationListItem(){return ni},get WyConversationNew(){return uy},get WyDropdown(){return Ti},get WyDropdownDivider(){return Kv},get WyDropdownItem(){return jw},get WyDropdownOption(){return ry},get WyEditor(){return Ut},get WyEmbed(){return Jf},get WyEmpty(){return Kf},get WyFileItem(){return Xs},get WyFileMenu(){return oa},get WyFileVersions(){return oy},get WyFilesAppbar(){return la},get WyFilesList(){return Mn},get WyIcon(){return le},get WyImageGrid(){return ty},get WyMeetingCard(){return qw},get WyMessage(){return xe},get WyMessageEditor(){return Tk},get WyMessageTyping(){return ji},get WyMessages(){return Qn},get WyMessengerBadge(){return ha},get WyNotificationBadge(){return Nw},get WyNotificationButtonList(){return e0},get WyNotificationList(){return py},get WyNotificationListItem(){return da},get WyOverlay(){return ra},get WyPdfViewer(){return Ko},get WyPoll(){return Fw},get WyPollOption(){return Jo},get WyPost(){return ke},get WyPostEdit(){return je},get WyPostTrashed(){return Gw},get WyPostView(){return ce},get WyPresence(){return Gf},get WyPreview(){return Ae},get WyPreviewEmbed(){return aa},get WyPreviewIcon(){return Yo},get WyPreviewImage(){return Go},get WyPreviewItem(){return ay},get WyPreviewMedia(){return Fs},get WyPreviewText(){return os},get WyProgressLinear(){return hn},get WyReactionItem(){return Dw},get WyReactions(){return be},get WySheet(){return sy},get WySkeleton(){return Uw},get WySpinner(){return ss},get WyToast(){return Hs},get WyToasts(){return Yw},get WyTyping(){return dy},get WyUsersSearch(){return Tn}},Symbol.toStringTag,{value:"Module"}));Me.version="28.0.1";Me.sourceName="@weavy/uikit-react";const JI=H.createContext(null);function bY(n,t=[]){var o,l,c,d,p;const[e,i]=H.useState(),s={...n,cloudFilePickerUrl:(o=n.cloudFilePickerUrl)==null?void 0:o.toString(),locales:H.useMemo(()=>n.locales,[(l=n.locales)==null?void 0:l.length]),tokenUrl:(c=n.tokenUrl)==null?void 0:c.toString(),tokenFactory:H.useMemo(()=>n.tokenFactory,[(d=n.tokenFactory)==null?void 0:d.toString(),...t]),url:(p=n.url)==null?void 0:p.toString()},[r,a]=H.useState(s);return H.useEffect(()=>{if(!e){const m=(Zi==null?void 0:Zi.value)??new Oe(s);i(m)}},[]),H.useEffect(()=>{if(e&&!e.isDestroyed){const f={};Object.entries(s).forEach(([m,w])=>{w!==r[m]&&Object.assign(f,{[m]:w})}),Object.keys(f).length&&(a(s),Object.assign(e,f))}},[s]),e}h(bY,"useWeavy");const tZ=Promise.resolve(),iC=class iC{constructor(t,e){this.o=[],this.t=!0,this.i=!1,this.l=t,this.h=e,this.u=new Promise((i,s)=>{this.p=i})}addController(t){this.o.push(t)}removeController(t){var e;(e=this.o)==null||e.splice(this.o.indexOf(t)>>>0,1)}requestUpdate(){this.t||(this.t=!0,tZ.then(()=>this.h(++this.l)))}get updateComplete(){return this.u}m(){this.i=!0,this.o.forEach(t=>{var e;return(e=t.hostConnected)==null?void 0:e.call(t)})}_(){this.i=!1,this.o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}v(){this.o.forEach(t=>{var e;return(e=t.hostUpdate)==null?void 0:e.call(t)})}C(){this.t=!1;const t=this.p;this.u=new Promise((e,i)=>{this.p=e}),this.o.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),t(this.t)}};h(iC,"s");let Ak=iC;const $Y=h((n,t)=>{const{useState:e,useLayoutEffect:i}=n,[s,r]=e(0);let a=!1;const[o]=e(()=>{const l=new Ak(s,r),c=t(l);return l.M=c,l.m(),a=!0,tZ.then(()=>{a&&l._()}),l});return o.t=!0,i(()=>(a=!1,o.i||o.m(),()=>o._()),[]),i(()=>o.C()),o.v(),o.M},"e$1");function eZ(n,t){var r;const i=(h(a=>!!a&&a.current!==void 0,"isRef")(n)?n.current:n)||void 0,s=$Y(H,a=>new eB(a,t??Le,i));return H.useEffect(()=>{i&&(s.ref=i)},[s,i]),(r=s.context)==null?void 0:r.value}h(eZ,"useWeavyContext");var iZ=(n=>(n.Attachments="attachments",n.agents="agents",n.CloudFiles="cloud_files",n.ContextData="context_data",n.Comments="comments",n.Embeds="embeds",n.GoogleMeet="google_meet",n.Meetings="meetings",n.Mentions="mentions",n.MicrosoftTeams="microsoft_teams",n.Polls="polls",n.Previews="previews",n.Reactions="reactions",n.Receipts="receipts",n.Thumbnails="thumbnails",n.Typing="typing",n.Versions="versions",n.WebDAV="web_dav",n.ZoomMeetings="zoom_meetings",n))(iZ||{});const xY=new Set(["children","localName","ref","style","className"]),X3=new WeakMap,N3=h((n,t,e,i,s)=>{const r=s==null?void 0:s[t];r===void 0?(n[t]=e,e==null&&t in HTMLElement.prototype&&n.removeAttribute(t)):e!==i&&((a,o,l)=>{let c=X3.get(a);c===void 0&&X3.set(a,c=new Map);let d=c.get(o);l!==void 0?d===void 0?(c.set(o,d={handleEvent:l}),a.addEventListener(o,d)):d.handleEvent=l:d!==void 0&&(c.delete(o),a.removeEventListener(o,d))})(n,r,e)},"t"),et=h(({react:n,tagName:t,elementClass:e,events:i,displayName:s})=>{const r=new Set(Object.keys(i??{})),a=n.forwardRef((o,l)=>{const c=n.useRef(new Map),d=n.useRef(null),p={},f={};for(const[m,w]of Object.entries(o))xY.has(m)?p[m==="className"?"class":m]=w:r.has(m)||m in e.prototype?f[m]=w:p[m]=w;return n.useLayoutEffect(()=>{if(d.current===null)return;const m=new Map;for(const w in f)N3(d.current,w,o[w],c.current.get(w),i),c.current.delete(w),m.set(w,o[w]);for(const[w,O]of c.current)N3(d.current,w,void 0,O,i);c.current=m}),n.useLayoutEffect(()=>{var m;(m=d.current)==null||m.removeAttribute("defer-hydration")},[]),p.suppressHydrationWarning=!0,n.createElement(t,{...p,ref:n.useCallback(m=>{d.current=m,typeof l=="function"?l(m):l!==null&&(l.current=m)},[l])})});return a.displayName=s??e.name,a},"o"),kY=et({react:H,tagName:JL,elementClass:ly,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),SY=et({react:H,tagName:eI,elementClass:cy,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),PY=et({react:H,tagName:Q_,elementClass:Bo,events:{onWyApp:"wy-app"}}),CY=et({react:H,tagName:P_,elementClass:ue,events:{onWyNotifications:"wy-notifications"}});function QY({children:n,...t}){const e=H.useRef(null),i=eZ(e.current);return H.createElement(CY,{ref:e,...t},H.createElement(JI.Provider,{value:i??null},n))}h(QY,"WyContext");const MY=et({react:H,tagName:nI,elementClass:el,events:{onWyApp:"wy-app",onWyMessage:"wy-message",onWyPreviewOpen:"wy-preview-open"}}),TY=et({react:H,tagName:$I,elementClass:ca,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),AY=et({react:H,tagName:AI,elementClass:Ns,events:{onWyPreviewOpen:"wy-preview-open"}}),RY=et({react:H,tagName:_I,elementClass:Hw,events:{onWyApp:"wy-app",onWyLink:"wy-link"}}),EY=et({react:H,tagName:II,elementClass:hs,events:{onWyApp:"wy-app",onWyLink:"wy-link",onWyNotification:"wy-notification"}}),_Y=et({react:H,tagName:KI,elementClass:fy,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),zY=et({react:H,tagName:"wy-attachment",elementClass:ot.WyAttachment}),LY=et({react:H,tagName:"wy-attachments-list",elementClass:ot.WyAttachmentsList,events:{onFileOpen:"file-open"}}),IY=et({react:H,tagName:"wy-avatar",elementClass:ot.WyAvatar}),ZY=et({react:H,tagName:"wy-blob-upload",elementClass:ot.WyBlobUpload}),VY=et({react:H,tagName:"wy-button",elementClass:ot.WyButton}),WY=et({react:H,tagName:"wy-buttons",elementClass:ot.WyButtons}),DY=et({react:H,tagName:"wy-cloud-files",elementClass:ot.WyCloudFiles,events:{onExternalBlobs:"external-blobs",onReleaseFocus:"release-focus"}}),qY=et({react:H,tagName:"wy-comment-list",elementClass:ot.WyCommentList}),UY=et({react:H,tagName:"wy-comment",elementClass:ot.WyComment,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),jY=et({react:H,tagName:"wy-comment-view",elementClass:ot.WyCommentView,events:{onVote:"vote",onTrash:"trash",onEdit:"edit"}}),BY=et({react:H,tagName:"wy-comment-edit",elementClass:ot.WyCommentEdit,events:{onEdit:"edit"}}),FY=et({react:H,tagName:"wy-comment-editor",elementClass:ot.WyCommentEditor,events:{onSubmit:"submit"}}),XY=et({react:H,tagName:"wy-comment-trashed",elementClass:ot.WyCommentTrashed,events:{onRestore:"restore"}}),NY=et({react:H,tagName:"wy-conversation",elementClass:ot.WyConversation,events:{onReleaseFocus:"release-focus"}}),HY=et({react:H,tagName:"wy-conversation-appbar",elementClass:ot.WyConversationAppbar,events:{onReleaseFocus:"release-focus"}}),YY=et({react:H,tagName:"wy-conversation-new",elementClass:ot.WyConversationNew,events:{onReleaseFocus:"release-focus"}}),GY=et({react:H,tagName:"wy-conversation-list",elementClass:ot.WyConversationList,events:{onConversationSelected:"conversation-selected"}}),KY=et({react:H,tagName:"wy-conversation-list-item",elementClass:ot.WyConversationListItem,events:{onRefetch:"refetch",onSelected:"selected",onStar:"star",onPin:"pin",onMark:"mark",onLeave:"leave"}}),JY=et({react:H,tagName:"wy-dropdown",elementClass:ot.WyDropdown}),tG=et({react:H,tagName:"wy-dropdown-item",elementClass:ot.WyDropdownItem}),eG=et({react:H,tagName:"wy-dropdown-option",elementClass:ot.WyDropdownOption}),iG=et({react:H,tagName:"wy-dropdown-divider",elementClass:ot.WyDropdownDivider}),nG=et({react:H,tagName:"wy-editor",elementClass:ot.WyEditor,events:{onSubmit:"submit"}}),sG=et({react:H,tagName:"wy-embed",elementClass:ot.WyEmbed,events:{onEmbedRemove:"embed-remove",onEmbedSwap:"embed-swap"}}),rG=et({react:H,tagName:"wy-empty",elementClass:ot.WyEmpty}),aG=et({react:H,tagName:"wy-file-item",elementClass:ot.WyFileItem,events:{onEditName:"edit-name",onRename:"rename",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever",onSubscribe:"subscribe"}}),oG=et({react:H,tagName:"wy-file-menu",elementClass:ot.WyFileMenu,events:{onEditName:"edit-name",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever"}}),lG=et({react:H,tagName:"wy-file-versions",elementClass:ot.WyFileVersions,events:{onFileVersionSelect:"file-version-select"}}),cG=et({react:H,tagName:"wy-files-appbar",elementClass:ot.WyFilesAppbar,events:{onReleaseFocus:"release-focus",onUploadFiles:"upload-files",onExternalBlobs:"external-blobs",onCreateFiles:"create-files",onOrder:"order",onView:"view",onShowTrashed:"show-trashed",onSubscribe:"subscribe"}}),hG=et({react:H,tagName:"wy-files-list",elementClass:ot.WyFilesList,events:{onFileOpen:"file-open",onOrder:"order",onEditName:"edit-name",onRename:"rename",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever",onSubscribe:"subscribe"}}),dG=et({react:H,tagName:"wy-icon",elementClass:ot.WyIcon}),uG=et({react:H,tagName:"wy-image-grid",elementClass:ot.WyImageGrid,events:{onFileOpen:"file-open"}}),pG=et({react:H,tagName:"wy-meeting-card",elementClass:ot.WyMeetingCard}),fG=et({react:H,tagName:"wy-message",elementClass:ot.WyMessage}),yG=et({react:H,tagName:"wy-messages",elementClass:ot.WyMessages,events:{onScrollToBottom:"scroll-to-bottom"}}),mG=et({react:H,tagName:"wy-message-editor",elementClass:ot.WyMessageEditor,events:{onSubmit:"submit"}}),wG=et({react:H,tagName:"wy-message-typing",elementClass:ot.WyMessageTyping}),gG=et({react:H,tagName:"wy-messenger-badge",elementClass:ot.WyMessengerBadge}),vG=et({react:H,tagName:"wy-notification-badge",elementClass:ot.WyNotificationBadge}),OG=et({react:H,tagName:"wy-notification-button-list",elementClass:ot.WyNotificationButtonList}),bG=et({react:H,tagName:"wy-notification-list",elementClass:ot.WyNotificationList}),$G=et({react:H,tagName:"wy-notification-list-item",elementClass:ot.WyNotificationListItem}),xG=et({react:H,tagName:"wy-overlay",elementClass:ot.WyOverlay,events:{onReleaseFocus:"release-focus",onClose:"close"}}),kG=et({react:H,tagName:"wy-pdf-viewer",elementClass:ot.WyPdfViewer}),SG=et({react:H,tagName:"wy-poll",elementClass:ot.WyPoll,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),PG=et({react:H,tagName:"wy-poll-option",elementClass:ot.WyPollOption,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),CG=et({react:H,tagName:"wy-post",elementClass:ot.WyPost,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),QG=et({react:H,tagName:"wy-post-view",elementClass:ot.WyPostView,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onEdit:"edit"}}),MG=et({react:H,tagName:"wy-post-edit",elementClass:ot.WyPostEdit,events:{onEdit:"edit"}}),TG=et({react:H,tagName:"wy-post-trashed",elementClass:ot.WyPostTrashed,events:{onRestore:"restore"}}),AG=et({react:H,tagName:"wy-presence",elementClass:ot.WyPresence}),RG=et({react:H,tagName:"wy-preview",elementClass:ot.WyPreview,events:{onReleaseFocus:"release-focus",onWyPreviewOpen:"wy-preview-open",onWyPreviewClose:"wy-preview-close"}}),EG=et({react:H,tagName:"wy-preview-item",elementClass:ot.WyPreviewItem}),_G=et({react:H,tagName:"wy-preview-embed",elementClass:ot.WyPreviewEmbed}),zG=et({react:H,tagName:"wy-preview-icon",elementClass:ot.WyPreviewIcon}),LG=et({react:H,tagName:"wy-preview-image",elementClass:ot.WyPreviewImage}),IG=et({react:H,tagName:"wy-preview-media",elementClass:ot.WyPreviewMedia}),ZG=et({react:H,tagName:"wy-preview-text",elementClass:ot.WyPreviewText}),VG=et({react:H,tagName:"wy-reactions",elementClass:ot.WyReactions,events:{onReleaseFocus:"release-focus"}}),WG=et({react:H,tagName:"wy-reaction-item",elementClass:ot.WyReactionItem}),DG=et({react:H,tagName:"wy-sheet",elementClass:ot.WySheet,events:{onReleaseFocus:"release-focus",onClose:"close"}}),qG=et({react:H,tagName:"wy-skeleton",elementClass:ot.WySkeleton}),UG=et({react:H,tagName:"wy-spinner",elementClass:ot.WySpinner}),jG=et({react:H,tagName:"wy-typing",elementClass:ot.WyTyping}),BG=et({react:H,tagName:"wy-users-search",elementClass:ot.WyUsersSearch,events:{onSubmit:"submit"}}),FG=Object.freeze(Object.defineProperty({__proto__:null,WyAttachment:zY,WyAttachmentsList:LY,WyAvatar:IY,WyBlobUpload:ZY,WyButton:VY,WyButtons:WY,WyCloudFiles:DY,WyComment:UY,WyCommentEdit:BY,WyCommentEditor:FY,WyCommentList:qY,WyCommentTrashed:XY,WyCommentView:jY,WyConversation:NY,WyConversationAppbar:HY,WyConversationList:GY,WyConversationListItem:KY,WyConversationNew:YY,WyDropdown:JY,WyDropdownDivider:iG,WyDropdownItem:tG,WyDropdownOption:eG,WyEditor:nG,WyEmbed:sG,WyEmpty:rG,WyFileItem:aG,WyFileMenu:oG,WyFileVersions:lG,WyFilesAppbar:cG,WyFilesList:hG,WyIcon:dG,WyImageGrid:uG,WyMeetingCard:pG,WyMessage:fG,WyMessageEditor:mG,WyMessageTyping:wG,WyMessages:yG,WyMessengerBadge:gG,WyNotificationBadge:vG,WyNotificationButtonList:OG,WyNotificationList:bG,WyNotificationListitem:$G,WyOverlay:xG,WyPdfViewer:kG,WyPoll:SG,WyPollOption:PG,WyPost:CG,WyPostEdit:MG,WyPostTrashed:TG,WyPostView:QG,WyPresence:AG,WyPreview:RG,WyPreviewEmbed:_G,WyPreviewIcon:zG,WyPreviewImage:LG,WyPreviewItem:EG,WyPreviewMedia:IG,WyPreviewText:ZG,WyReactionItem:WG,WyReactions:VG,WySheet:DG,WySkeleton:qG,WySpinner:UG,WyTyping:jG,WyUsersSearch:BG},Symbol.toStringTag,{value:"Module"}));exports.AppTypeGuids=oP;exports.AppTypeStrings=x_;exports.Feature=iZ;exports.MessengerTypes=jH;exports.Weavy=Oe;exports.WeavyComponents=FG;exports.WeavyContext=JI;exports.WyChat=kY;exports.WyComments=SY;exports.WyComponent=PY;exports.WyContext=QY;exports.WyCopilot=MY;exports.WyFiles=TY;exports.WyMessenger=AY;exports.WyNotificationToasts=EY;exports.WyNotifications=RY;exports.WyPosts=_Y;exports.useWeavy=bY;exports.useWeavyContext=eZ;
|