@weavy/uikit-react 29.2.0 → 29.2.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"}),ui('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ui('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],qV=GT.concat([ui("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ui("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ui("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),V4=new u6,KT=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function uc(n){return(t,e)=>{let i=t.node.getChild("VariableDefinition");return i&&e(i,n),!0}}h(uc,"ar$1");y(uc,"defID");const VV=["FunctionDeclaration"],UV={FunctionDeclaration:uc("function"),ClassDeclaration:uc("class"),ClassExpression:y(()=>!0,"ClassExpression"),EnumDeclaration:uc("constant"),TypeAliasDeclaration:uc("type"),NamespaceDeclaration:uc("namespace"),VariableDefinition(n,t){n.matchContext(VV)||t(n,"variable")},TypeDefinition(n,t){t(n,"type")},__proto__:null};function gS(n,t){let e=V4.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(Gt.IncludeAnonymous).iterate(a=>{if(s)s=!1;else if(a.name){let o=UV[a.name];if(o&&o(a,r)||KT.has(a.name))return!1}else if(a.to-a.from>8192){for(let o of gS(n,a.node))i.push(o);return!1}}),V4.set(t,i),i}h(gS,"om$1");y(gS,"getScope");const bv=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,vS=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function JT(n){let t=fe(n.state).resolveInner(n.pos,-1);if(vS.indexOf(t.name)>-1)return null;let e=t.name=="VariableName"||t.to-t.from<20&&bv.test(n.state.sliceDoc(t.from,t.to));if(!e&&!n.explicit)return null;let i=[];for(let s=t;s;s=s.parent)KT.has(s.name)&&(i=i.concat(gS(n.state.doc,s)));return{options:i,from:e?t.from:n.pos,validFor:bv}}h(JT,"lm$1");y(JT,"localCompletionSource");function u1(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(u1,"zo$1");y(u1,"pathFor");function tA(n){let t=y(i=>n.state.doc.sliceString(i.from,i.to),"read"),e=fe(n.state).resolveInner(n.pos,-1);return e.name=="PropertyName"?u1(t,e.parent,t(e)):(e.name=="."||e.name=="?.")&&e.parent.name=="MemberExpression"?u1(t,e.parent,""):vS.indexOf(e.name)>-1?null:e.name=="VariableName"||e.to-e.from<20&&bv.test(t(e))?{path:[],name:t(e)}:e.name=="MemberExpression"?u1(t,e,""):n.explicit?{path:[],name:""}:null}h(tA,"am$1");y(tA,"completionPath");function eA(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(eA,"DS");y(eA,"enumeratePropertyCompletions");function jV(n){let t=new Map;return e=>{let i=tA(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=eA(s,!i.path.length)),{from:e.pos-i.name.length,options:r,validFor:bv}}}h(jV,"BS");y(jV,"scopeCompletionSource");const $n=L5.define({name:"javascript",parser:WV.configure({props:[$y.add({IfStatement:iw({except:/^\s*({|else\b)/}),TryStatement:iw({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:LD,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:H6({closing:"}"}),ArrowFunction:y(n=>n.baseIndent+n.unit,"ArrowFunction"),"TemplateString BlockComment":y(()=>null,"TemplateString BlockComment"),"Statement Property":iw({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":W5,BlockComment(n){return{from:n.from+2,to:n.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),iA={test:y(n=>/^JSX/.test(n.name),"test"),facet:Jw({commentTokens:{block:{open:"{/*",close:"*/}"}}})},nA=$n.configure({dialect:"ts"},"typescript"),sA=$n.configure({dialect:"jsx",props:[_5.add(n=>n.isTop?[iA]:void 0)]}),rA=$n.configure({dialect:"jsx ts",props:[_5.add(n=>n.isTop?[iA]:void 0)]},"typescript");let aA=y(n=>({label:n,type:"keyword"}),"kwCompletion");const oA="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(aA),FV=oA.concat(["declare","implements","private","protected","public"].map(aA));function lA(n={}){let t=n.jsx?n.typescript?rA:sA:n.typescript?nA:$n,e=n.typescript?qV.concat(FV):GT.concat(oA);return new Yf(t,[$n.data.of({autocomplete:yM(vS,B5(e))}),$n.data.of({autocomplete:JT}),n.jsx?NV:[]])}h(lA,"um$1");y(lA,"javascript");function cA(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(cA,"NS");y(cA,"findOpenTag");function Vx(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(Vx,"gd$1");y(Vx,"elementName$1");const BV=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),NV=St.inputHandler.of((n,t,e,i,s)=>{if((BV?n.composing:n.compositionStarted)||n.state.readOnly||t!=e||i!=">"&&i!="/"||!$n.isActiveAt(n.state,t,-1))return!1;let r=s(),{state:a}=r,o=a.changeByRange(l=>{var c;let{head:d}=l,p=fe(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=Vx(a.doc,w.firstChild,d))||((c=w.firstChild)===null||c===void 0?void 0:c.name)=="JSXFragmentTag")){let b=`${f}>`;return{range:nt.cursor(d+b.length,-1),changes:{from:d,insert:b}}}}else if(i==">"){let m=cA(p);if(m&&m.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(d,d+2))&&(f=Vx(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 XV(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 $n.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(hA(c,i.doc,l))}return s}}h(XV,"HS");y(XV,"esLint");function Ux(n,t,e,i){return e.line(n+i.line).from+t+(n==1?i.col-1:-1)}h(Ux,"yd$1");y(Ux,"mapPos");function hA(n,t,e){let i=Ux(n.line,n.column,t,e),s={from:i,to:n.endLine!=null&&n.endColumn!=1?Ux(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(hA,"FS");y(hA,"translateDiagnostic");const Dy=["_blank","_self","_top","_parent"],Lb=["ascii","utf-8","utf-16","latin1","latin1"],Ib=["get","post","put","delete"],Zb=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Zi=["true","false"],ut={},HV={a:{attrs:{href:null,ping:null,type:null,media:null,target:Dy,hreflang:null}},abbr:ut,address:ut,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:ut,aside:ut,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:ut,base:{attrs:{href:null,target:Dy}},bdi:ut,bdo:ut,blockquote:{attrs:{cite:null}},body:ut,br:ut,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Zb,formmethod:Ib,formnovalidate:["novalidate"],formtarget:Dy,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:ut,center:ut,cite:ut,code:ut,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:ut,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:ut,div:ut,dl:ut,dt:ut,em:ut,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:ut,figure:ut,footer:ut,form:{attrs:{action:null,name:null,"accept-charset":Lb,autocomplete:["on","off"],enctype:Zb,method:Ib,novalidate:["novalidate"],target:Dy}},h1:ut,h2:ut,h3:ut,h4:ut,h5:ut,h6:ut,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:ut,hgroup:ut,hr:ut,html:{attrs:{manifest:null}},i:ut,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:Zb,formmethod:Ib,formnovalidate:["novalidate"],formtarget:Dy,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:ut,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:ut,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:ut,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Lb,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:ut,noscript:ut,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:ut,param:{attrs:{name:null,value:null}},pre:ut,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:ut,rt:ut,ruby:ut,samp:ut,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Lb}},section:ut,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:ut,source:{attrs:{src:null,type:null,media:null}},span:ut,strong:ut,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:ut,summary:ut,sup:ut,table:ut,tbody:ut,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:ut,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:ut,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:ut,time:{attrs:{datetime:null}},title:ut,tr:ut,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:ut,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:ut},dA={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},uA="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 uA)dA[n]=null;var jd;const pA=(jd=class{constructor(t,e){this.tags=Object.assign(Object.assign({},HV),t),this.globalAttrs=Object.assign(Object.assign({},dA),e),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}},h(jd,"xc"),jd);y(pA,"Schema");let xw=pA;xw.default=new xw;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,"Fi$1");y(Wo,"elementName");function qo(n,t=!1){for(;n;n=n.parent)if(n.name=="Element")if(t)t=!1;else return n;return null}h(qo,"Ki$1");y(qo,"findParentElement");function bS(n,t,e){let i=e.tags[Wo(n,qo(t))];return(i==null?void 0:i.children)||e.allTags}h(bS,"mm$1");y(bS,"allowedChildren");function Q0(n,t){let e=[];for(let i=qo(t);i&&!i.type.isTop;i=qo(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(Q0,"$h");y(Q0,"openTags");const fA=/^[:\-\.\w\u00b7-\uffff]*$/;function jx(n,t,e,i,s){let r=/\s*>/.test(n.sliceDoc(s,s+5))?"":">",a=qo(e,!0);return{from:i,to:s,options:bS(n.doc,a,t).map(o=>({label:o,type:"type"})).concat(Q0(n.doc,e).map((o,l)=>({label:"/"+o,apply:"/"+o+r,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}h(jx,"bd$1");y(jx,"completeTag");function Fx(n,t,e,i){let s=/\s*>/.test(n.sliceDoc(i,i+5))?"":">";return{from:e,to:i,options:Q0(n.doc,t).map((r,a)=>({label:r,apply:r+s,type:"type",boost:99-a})),validFor:fA}}h(Fx,"Sd$1");y(Fx,"completeCloseTag");function yA(n,t,e,i){let s=[],r=0;for(let a of bS(n.doc,e,t))s.push({label:"<"+a,type:"type"});for(let a of Q0(n.doc,e))s.push({label:"</"+a+">",type:"type",boost:99-r++});return{from:i,to:i,options:s,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}h(yA,"JS");y(yA,"completeStartTag");function mA(n,t,e,i,s){let r=qo(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:fA}}h(mA,"eQ");y(mA,"completeAttrName");function wA(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=qo(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(wA,"tQ");y(wA,"completeAttrValue");function OS(n,t){let{state:e,pos:i}=t,s=fe(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)?Fx(e,s,s.from,i):jx(e,n,s,s.from,i):s.name=="StartTag"?jx(e,n,s,i,i):s.name=="StartCloseTag"||s.name=="IncompleteCloseTag"?Fx(e,s,i,i):s.name=="OpenTag"||s.name=="SelfClosingTag"||s.name=="AttributeName"?mA(e,n,s,s.name=="AttributeName"?s.from:i,i):s.name=="Is"||s.name=="AttributeValue"||s.name=="UnquotedAttributeValue"?wA(e,n,s,s.name=="Is"?i:s.from,i):t.explicit&&(r.name=="Element"||r.name=="Text"||r.name=="Document")?yA(e,n,s,i):null}h(OS,"ym$1");y(OS,"htmlCompletionFor");function gA(n){return OS(xw.default,n)}h(gA,"bm");y(gA,"htmlCompletionSource");function vA(n){let{extraTags:t,extraGlobalAttributes:e}=n,i=e||t?new xw(t,e):xw.default;return s=>OS(i,s)}h(vA,"Sm$1");y(vA,"htmlCompletionSourceWith");const YV=$n.parser.configure({top:"SingleExpression"}),bA=[{tag:"script",attrs:y(n=>n.type=="text/typescript"||n.lang=="ts","attrs"),parser:nA.parser},{tag:"script",attrs:y(n=>n.type=="text/babel"||n.type=="text/jsx","attrs"),parser:sA.parser},{tag:"script",attrs:y(n=>n.type=="text/typescript-jsx","attrs"),parser:rA.parser},{tag:"script",attrs(n){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(n.type)},parser:YV},{tag:"script",attrs(n){return!n.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(n.type)},parser:$n.parser},{tag:"style",attrs(n){return(!n.lang||n.lang=="css")&&(!n.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(n.type))},parser:vv.parser}],OA=[{name:"style",parser:vv.parser.configure({top:"Styles"})}].concat(uA.map(n=>({name:n,parser:$n.parser}))),$A=L5.define({name:"html",parser:Iq.configure({props:[$y.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}}}),tM.add({"OpenTag CloseTag":y(n=>n.getChild("TagName"),"OpenTag CloseTag")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),p1=$A.configure({wrap:yS(bA,OA)});function xA(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=yS((n.nestedLanguages||[]).concat(bA),(n.nestedAttributes||[]).concat(OA)));let i=e?$A.configure({wrap:e,dialect:t}):t?p1.configure({dialect:t}):p1;return new Yf(i,[p1.data.of({autocomplete:vA(n)}),n.autoCloseTags!==!1?GV:[],lA().support,HT().support])}h(xA,"xm$1");y(xA,"html");const U4=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),GV=St.inputHandler.of((n,t,e,i,s)=>{if(n.composing||n.state.readOnly||t!=e||i!=">"&&i!="/"||!p1.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=fe(a).resolveInner(m,-1),b;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"&&(b=Wo(a.doc,x.parent,m))&&!U4.has(b)){let O=m+(a.doc.sliceString(m,m+1)===">"?1:0),P=`</${b}>`;return{range:l,changes:{from:m,to:O,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"&&(b=Wo(a.doc,x,m))&&!U4.has(b)){let O=m+(a.doc.sliceString(m,m+1)===">"?1:0),P=`${b}>`;return{range:nt.cursor(m+P.length,-1),changes:{from:m,to:O,insert:P}}}}return{range:l}});return o.changes.empty?!1:(n.dispatch([r,a.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),kA=Jw({commentTokens:{block:{open:"<!--",close:"-->"}}}),SA=new kt,PA=IW.configure({props:[tg.add(n=>!n.is("Block")||n.is("Document")||Ov(n)!=null||CA(n)?void 0:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})),SA.add(Ov),$y.add({Document:y(()=>null,"Document")}),Or.add({Document:kA})]});function Ov(n){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(n.name);return t?+t[1]:void 0}h(Ov,"Ba$1");y(Ov,"isHeading");function CA(n){return n.name=="OrderedList"||n.name=="BulletList"}h(CA,"nQ");y(CA,"isList");function QA(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(QA,"sQ");y(QA,"findSectionEnd");const KV=ID.of((n,t,e)=>{for(let i=fe(n).resolveInner(e,-1);i&&!(i.from<t);i=i.parent){let s=i.type.prop(SA);if(s==null)continue;let r=QA(i,s);if(r>e)return{from:e,to:r}}return null});function M0(n){return new Fi(kA,n,[KV],"markdown")}h(M0,"Th$1");y(M0,"mkLang");const JV=M0(PA),tU=PA.configure([FW,NW,BW,XW,{props:[tg.add({Table:y((n,t)=>({from:t.doc.lineAt(n.from).to,to:n.to}),"Table")})]}]),Bx=M0(tU);function MA(n,t){return e=>{if(e&&n){let i=null;if(e=/\S*/.exec(e)[0],typeof n=="function"?i=n(e):i=p4.matchLanguageName(n,e,!0),i instanceof p4)return i.support?i.support.language.parser:cv.getSkippingParser(i.load());if(i)return i.parser}return t?t.parser:null}}h(MA,"aQ");y(MA,"getCodeParser");var Fd;const TA=(Fd=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(+xS(this.item,t)[2]+e):"";return this.spaceBefore+i+this.type+this.spaceAfter}},h(Fd,"Pc"),Fd);y(TA,"Context");let Db=TA;function $S(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 Db(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 Db(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 Db(r.parent,l,l+d,a[1],c,p,r))}}return i}h($S,"Tm$1");y($S,"getContext");function xS(n,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(n.from,n.from+10))}h(xS,"Am$1");y(xS,"itemNumber");function f1(n,t,e,i=0){for(let s=-1,r=n;;){if(r.name=="ListItem"){let o=xS(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(f1,"Fo$1");y(f1,"renumberList");function T0(n,t){let e=/^[ \t]*/.exec(n)[0].length;if(!e||t.facet(v0)!=" ")return n;let i=Nr(n,4,e),s="";for(let r=i;r>0;)r>=4?(s+=" ",r-=4):(s+=" ",r--);return s+n.slice(e)}h(T0,"Ah$1");y(T0,"normalizeIndent");const eU=y(({state:n,dispatch:t})=>{let e=fe(n),{doc:i}=n,s=null,r=n.changeByRange(a=>{if(!a.empty||!Bx.isActiveAt(n,a.from,-1)&&!Bx.isActiveAt(n,a.from,1))return s={range:a};let o=a.from,l=i.lineAt(o),c=$S(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,O=d.node.getChild("ListItem","ListItem");if(x.to>=o||O&&O.to<o||l.from>0&&!/[^\s>]/.test(i.lineAt(l.from-1).text)){let P=c.length>1?c[c.length-2]:null,A,R="";P&&P.item?(A=l.from+P.from,R=P.marker(i,1)):A=l.from+(P?P.to:0);let T=[{from:A,to:o,insert:R}];return d.node.name=="OrderedList"&&f1(d.item,i,T,-2),P&&P.node.name=="OrderedList"&&f1(P.item,i,T),{range:nt.cursor(A+R.length),changes:T}}else{let P=Xx(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),O=/>\s*$/.exec(x.text);if(O&&O.index==d.from){let P=n.changes([{from:x.from+O.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"&&f1(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,O=c.length-1;x<=O;x++)w+=x==O&&!m?c[x].marker(i,1):c[x].blank(x<O?Nr(l.text,4,c[x+1].from)-w.length:null);let b=o;for(;b>l.from&&/\s/.test(l.text.charAt(b-l.from-1));)b--;return w=T0(w,n),AA(d.node,n.doc)&&(w=Xx(c,n,l)+n.lineBreak+w),f.push({from:b,to:o,insert:n.lineBreak+w}),{range:nt.cursor(b+w.length+1),changes:f}});return s?!1:(t(n.update(r,{scrollIntoView:!0,userEvent:"input"})),!0)},"insertNewlineContinueMarkup");function Nx(n){return n.name=="QuoteMark"||n.name=="ListMark"}h(Nx,"wd$1");y(Nx,"isMark");function AA(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(AA,"hQ");y(AA,"nonTightList");function Xx(n,t,e){let i="";for(let s=0,r=n.length-2;s<=r;s++)i+=n[s].blank(s<r?Nr(e.text,4,n[s+1].from)-i.length:null,s<r);return T0(i,t)}h(Xx,"xd$1");y(Xx,"blankLine");function RA(n,t){let e=n.resolveInner(t,-1),i=t;Nx(e)&&(i=e.from,e=e.parent);for(let s;s=e.childBefore(i);)if(Nx(s))i=s.from;else if(s.name=="OrderedList"||s.name=="BulletList")e=s.lastChild,i=e.to;else break;return e}h(RA,"fQ");y(RA,"contextNodeForDelete");const iU=y(({state:n,dispatch:t})=>{let e=fe(n),i=null,s=n.changeByRange(r=>{let a=r.from,{doc:o}=n;if(r.empty&&Bx.isActiveAt(n,r.from)){let l=o.lineAt(a),c=$S(RA(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(Nr(l.text,4,d.to)-Nr(l.text,4,d.from));return f==l.from&&(m=T0(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"),nU=[{key:"Enter",run:eU},{key:"Backspace",run:iU}],EA=xA({matchClosingTags:!1});function sU(n={}){let{codeLanguages:t,defaultCodeLanguage:e,addKeymap:i=!0,base:{parser:s}=JV,completeHTMLTags:r=!0,htmlTagLanguage:a=EA}=n;if(!(s instanceof tT))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 Yf?(l.push(e.support),c=e.language):e&&(c=e);let d=t||c?MA(t,c):void 0;o.push(uT({codeParser:d,htmlParser:a.language.parser})),i&&l.push(al.high(f0.of(nU)));let p=M0(s.configure(o));return r&&l.push(p.data.of({autocomplete:zA})),new Yf(p,l)}h(sU,"Cm$1");y(sU,"markdown");function zA(n){let{state:t,pos:e}=n,i=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(e-25,e));if(!i)return null;let s=fe(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:_A(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}h(zA,"cQ");y(zA,"htmlTagCompletion");let Wb=null;function _A(){if(Wb)return Wb;let n=gA(new F5(Le.create({extensions:EA}),0,!0));return Wb=n?n.options:[]}h(_A,"uQ");y(_A,"htmlTagCompletions");function rU(n){return new Yf(UD.define(n))}h(rU,"w");y(rU,"legacy");function aU(n){return import(new URL("./@codemirror/lang-sql/dist/index.js",typeof WEAVY_IMPORT_URL=="string"&&(!(typeof document>"u"?require("url").pathToFileURL(__filename).href:mt&&mt.tagName.toUpperCase()==="SCRIPT"&&mt.src||new URL("weavy.cjs",document.baseURI).href)||!new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:mt&&mt.tagName.toUpperCase()==="SCRIPT"&&mt.src||new URL("weavy.cjs",document.baseURI).href).href.startsWith(WEAVY_IMPORT_URL))?WEAVY_IMPORT_URL:typeof document>"u"?require("url").pathToFileURL(__filename).href:mt&&mt.tagName.toUpperCase()==="SCRIPT"&&mt.src||new URL("weavy.cjs",document.baseURI).href).href).then(t=>t.sql({dialect:t[n]}))}h(aU,"pt$2");y(aU,"sql");function oU(n){const t=new Event("Weavy-SoftSubmit");return n.dom.dispatchEvent(t),!0}h(oU,"Em$1");y(oU,"softSubmit");const j4=new fD({regexp:/(\[(.+?)\])(\(@u(\d+)\))/g,decoration:y(n=>te.replace({inclusive:!0,widget:new lU(n)}),"decoration")});var Bd;const LA=(Bd=class extends Oy{constructor(t){super(),this.match=t}eq(t){return t.match[1]===this.match[1]}toDOM(){ei();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(Bd,"kc"),Bd);y(LA,"MentionWidget");let lU=LA;qs.fromClass(class{constructor(n){this.mentions=j4.createDeco(n)}update(n){this.mentions=j4.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)||te.none}),"provide")});function cU(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(cU,"Zh$1");y(cU,"command");function kS(n,t){let e=n.languageDataAt("commentTokens",t,1);return e.length?e[0]:{}}h(kS,"Lh$1");y(kS,"getConfig");const Wy=50;function IA(n,{open:t,close:e},i,s){let r=n.sliceDoc(i-Wy,i),a=n.sliceDoc(s,s+Wy),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*Wy?d=p=n.sliceDoc(i,s):(d=n.sliceDoc(i,i+Wy),p=n.sliceDoc(s-Wy,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(IA,"wQ");y(IA,"findBlockComment");function hU(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(hU,"xQ");y(hU,"selectedLineRanges");function dU(n,t,e=t.selection.ranges){let i=e.map(r=>kS(t,r.from).block);if(!i.every(r=>r))return null;let s=e.map((r,a)=>IA(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(dU,"Vm");y(dU,"changeBlockComment");function uU(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=kS(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(uU,"PQ");y(uU,"changeLineComment");const Hx=Gs.define(),pU=Gs.define(),fU=vt.define(),ZA=vt.define({combine(n){return Kk(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")})}}),DA=Ys.define({create(){return nw.empty},update(n,t){let e=t.state.facet(ZA),i=t.annotation(Hx);if(i){let l=Ms.fromTransaction(t,i.selection),c=i.side,d=c==0?n.undone:n.done;return l?d=kw(d,d.length,e.minDepth,l):d=CS(d,t.startState.selection),new nw(c==0?i.rest:d,c==0?d:i.rest)}let s=t.annotation(pU);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=Ms.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 nw(n.done.map(Ms.fromJSON),n.undone.map(Ms.fromJSON))}});function yU(n={}){return[DA,ZA.of(n),St.domEventHandlers({beforeinput(t,e){let i=t.inputType=="historyUndo"?mU:t.inputType=="historyRedo"?wU:null;return i?(t.preventDefault(),i(e)):!1}})]}h(yU,"$Q");y(yU,"history");function SS(n,t){return function({state:e,dispatch:i}){if(!t&&e.readOnly)return!1;let s=e.field(DA,!1);if(!s)return!1;let r=s.pop(n,e,t);return r?(i(r),!0):!1}}h(SS,"So$1");y(SS,"cmd");const mU=SS(0,!1),wU=SS(1,!1);var es;const WA=(es=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 es(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 es(t.changes&&kn.fromJSON(t.changes),[],t.mapped&&_c.fromJSON(t.mapped),t.startSelection&&nt.fromJSON(t.startSelection),t.selectionsAfter.map(nt.fromJSON))}static fromTransaction(t,e){let i=nn;for(let s of t.startState.facet(fU)){let r=s(t);r.length&&(i=i.concat(r))}return!i.length&&t.changes.empty?null:new es(t.changes.invert(t.startState.doc),i,void 0,e||t.startState.selection,nn)}static selection(t){return new es(void 0,nn,void 0,void 0,t)}},h(es,"Nt"),es);y(WA,"HistEvent");let Ms=WA;function kw(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(kw,"Vs$1");y(kw,"updateBranch");function qA(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(qA,"AQ");y(qA,"isAdjacent");function VA(n,t){return n.ranges.length==t.ranges.length&&n.ranges.filter((e,i)=>e.empty!=t.ranges[i].empty).length===0}h(VA,"ZQ");y(VA,"eqSelectionShape");function PS(n,t){return n.length?t.length?n.concat(t):n:t}h(PS,"Ym");y(PS,"conc");const nn=[],gU=200;function CS(n,t){if(n.length){let e=n[n.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-gU));return i.length&&i[i.length-1].eq(t)?n:(i.push(t),kw(n,n.length-1,1e9,e.setSelAfter(i)))}else return[Ms.selection([t])]}h(CS,"Im$1");y(CS,"addSelection");function UA(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(UA,"MQ");y(UA,"popSelection");function y1(n,t){if(!n.length)return n;let e=n.length,i=nn;for(;e;){let s=jA(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?[Ms.selection(i)]:nn}h(y1,"Jo$1");y(y1,"addMappingToBranch");function jA(n,t,e){let i=PS(n.selectionsAfter.length?n.selectionsAfter.map(o=>o.map(t)):nn,e);if(!n.changes)return Ms.selection(i);let s=n.changes.map(t),r=t.mapDesc(n.changes,!0),a=n.mapped?n.mapped.composeDesc(r):r;return new Ms(s,Nt.mapEffects(n.effects,t),a,n.startSelection.map(r),i)}h(jA,"_Q");y(jA,"mapEvent");const vU=/^(input\.type|delete)($|\.)/;var is;const FA=(is=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 is(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||vU.test(i))&&(!o.selectionsAfter.length&&e-this.prevTime<s.newGroupDelay&&s.joinToEvent(r,qA(o.changes,t.changes))||i=="input.type.compose")?a=kw(a,a.length-1,s.minDepth,new Ms(t.changes.compose(o.changes),PS(Nt.mapEffects(t.effects,o.changes),o.effects),o.mapped,o.startSelection,nn)):a=kw(a,a.length,s.minDepth,t),new is(a,nn,e,i)}addSelection(t,e,i,s){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:nn;return r.length>0&&e-this.prevTime<s&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&VA(r[r.length-1],t)?this:new is(CS(this.done,t),this.undone,e,i)}addMapping(t){return new is(y1(this.done,t),y1(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:Hx.of({side:t,rest:UA(s),selection:a}),userEvent:t==0?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let o=s.length==1?nn:s.slice(0,s.length-1);return r.mapped&&(o=y1(o,r.mapped)),e.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:Hx.of({side:t,rest:o,selection:a}),filter:!1,userEvent:t==0?"undo":"redo",scrollIntoView:!0})}else return null}},h(is,"Gt"),is);y(FA,"HistoryState");let nw=FA;nw.empty=new nw(nn,nn);function ig(n,t){return nt.create(n.ranges.map(t),n.mainIndex)}h(ig,"tr$1");y(ig,"updateSel");function ng(n,t){return n.update({selection:t,scrollIntoView:!0,userEvent:"select"})}h(ng,"st$2");y(ng,"setSel");function A0({state:n,dispatch:t},e){let i=ig(n.selection,e);return i.eq(n.selection,!0)?!1:(t(ng(n,i)),!0)}h(A0,"De$2");y(A0,"moveSel");function sg(n,t){return nt.cursor(t?n.to:n.from)}h(sg,"Qo$1");y(sg,"rangeEnd");function bU(n,t){return A0(n,e=>e.empty?n.moveByChar(e,t):sg(e,t))}h(bU,"jm");y(bU,"cursorByChar");function OU(n){return n.textDirectionAt(n.state.selection.main.head)==Qe.LTR}h(OU,"he$2");y(OU,"ltrAtCursor");function $U(n,t){return A0(n,e=>e.empty?n.moveByGroup(e,t):sg(e,t))}h($U,"Bm$1");y($U,"cursorByGroup");function BA(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(BA,"WQ");y(BA,"interestingNode");function xU(n,t,e){let i=fe(n).resolveInner(t.head),s=e?kt.closedBy:kt.openedBy;for(let l=t.head;;){let c=e?i.childAfter(l):i.childBefore(l);if(!c)break;BA(n,c,s)?i=c:l=e?c.to:c.from}let r=i.type.prop(s),a,o;return r&&(a=e?Ua(n,i.from,1):Ua(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(xU,"wo$1");y(xU,"moveBySyntax");function kU(n,t){return A0(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(kU,"zm$1");y(kU,"cursorByLine");function QS(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(QS,"Hm$1");y(QS,"pageInfo");function SU(n,t){let e=QS(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(SU,"Fm$1");y(SU,"cursorByPage");function PU(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(PU,"_t$1");y(PU,"moveByLineBoundary");function CU(n,t,e){let i=!1,s=ig(n.selection,r=>{let a=Ua(n,r.head,-1)||Ua(n,r.head,1)||r.head>0&&Ua(n,r.head-1,1)||r.head<n.doc.length&&Ua(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(CU,"NQ");y(CU,"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 QU(n,t){return rg(n,e=>n.moveByChar(e,t))}h(QU,"Km");y(QU,"selectByChar");function MU(n,t){return rg(n,e=>n.moveByGroup(e,t))}h(MU,"tg$1");y(MU,"selectByGroup");function TU(n,t){return rg(n,e=>n.moveVertically(e,t))}h(TU,"ig$1");y(TU,"selectByLine");function AU(n,t){return rg(n,e=>n.moveVertically(e,t,QS(n).height))}h(AU,"sg$1");y(AU,"selectByPage");function RU(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=vm(n,l,!1)):l>a&&(e="delete.forward",l=vm(n,l,!0)),a=Math.min(a,l),o=Math.max(o,l)}else a=vm(n,a,!1),o=vm(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(RU,"Sn$1");y(RU,"deleteBy");function vm(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(vm,"In$1");y(vm,"skipAtomic");function MS(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(MS,"xo$1");y(MS,"selectedLineBlocks");function EU(n,t,e){if(n.readOnly)return!1;let i=[],s=[];for(let r of MS(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(EU,"fg$1");y(EU,"moveLine");function zU(n,t,e){if(n.readOnly)return!1;let i=[];for(let s of MS(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(zU,"cg$1");y(zU,"copyLine");function NA(n,t){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(t-1,t+1)))return{from:t,to:t};let e=fe(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(kt.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(NA,"Qw$1");y(NA,"isBetweenBrackets");function _U(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&&NA(t,r);n&&(r=a=(a<=o.to?o:t.doc.lineAt(a)).to);let c=new I5(t,{simulateBreak:r,simulateDoubleBreak:!!l}),d=W6(c,r);for(d==null&&(d=Nr(/^\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=["",wx(t,d)];return l&&p.push(wx(t,c.lineIndent(o.from,-1))),{changes:{from:r,to:a,insert:Wt.of(p)},range:nt.cursor(r+1+p[1].length)}});return e(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}h(_U,"ug$1");y(_U,"newlineAndIndent");function LU(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(LU,"Mh$1");y(LU,"changeBySelectedLine");G6.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 IU(n){TS(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 YA(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:GA(t),indent:KA(t,e),mergeTokens:e.mergeTokens,languageData:e}}h(IU,"Bw$1");y(IU,"simpleMode");function TS(n,t){if(!n.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}h(TS,"dg$1");y(TS,"ensureState");function XA(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(XA,"Zw$1");y(XA,"toRegex");function HA(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(HA,"Lw$1");y(HA,"asToken");function YA(n,t){(n.next||n.push)&&TS(t,n.next||n.push),this.regex=XA(n.regex),this.token=HA(n.token),this.data=n}h(YA,"Mw$1");y(YA,"Rule");function GA(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(GA,"_w$1");y(GA,"tokenFunction");function KA(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(KA,"Cw$1");y(KA,"indentFunction");var ZU=Object.defineProperty,pt=h((n,t)=>ZU(n,"name",{value:t,configurable:!0}),"o$2");const Yx="lit-localize-status",DU=pt((n,...t)=>({strTag:!0,strings:n,values:t}),"_str"),at=DU,WU=pt(n=>typeof n!="string"&&"strTag"in n,"isStrTagged"),JA=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"),tR=pt(n=>WU(n)?JA(n.strings,n.values):n,"defaultMsg");let C=tR,F4=!1;function eR(n){if(F4)throw new Error("lit-localize can only be configured once");C=n,F4=!0}h(eR,"Ot");pt(eR,"_installMsgImplementation");var Nd;const iR=(Nd=class{constructor(t){this.__litLocalizeEventHandler=e=>{e.detail.status==="ready"&&this.host.requestUpdate()},this.host=t}hostConnected(){window.addEventListener(Yx,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(Yx,this.__litLocalizeEventHandler)}},h(Nd,"Fe"),Nd);pt(iR,"LocalizeController");let qU=iR;const VU=pt(n=>n.addController(new qU(n)),"_updateWhenLocaleChanges"),UU=VU,$t=pt(()=>(n,t)=>(n.addInitializer(UU),n),"localized");var Xd;const nR=(Xd=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(Xd,"Ge"),Xd);pt(nR,"Deferred");let sR=nR;const $s=[];for(let n=0;n<256;n++)$s[n]=(n>>4&15).toString(16)+(n&15).toString(16);function rR(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 $s[l>>8]+$s[l&255]+$s[a>>8]+$s[a&255]+$s[s>>8]+$s[s&255]+$s[e>>8]+$s[e&255]}h(rR,"It$1");pt(rR,"fnv1a64");const jU="",FU="h",BU="s";function aR(n,t){return(t?FU:BU)+rR(typeof n=="string"?n:n.join(jU))}h(aR,"Wt$1");pt(aR,"generateMsgId");const B4=new WeakMap,N4=new Map;function oR(n,t,e){if(n){const i=(e==null?void 0:e.id)??lR(t),s=n[i];if(s){if(typeof s=="string")return s;if("strTag"in s)return JA(s.strings,t.values,s.values);{let r=B4.get(s);return r===void 0&&(r=s.values,B4.set(s,r)),{...s,values:r.map(a=>t.values[a])}}}}return tR(t)}h(oR,"Vt$1");pt(oR,"runtimeMsg");function lR(n){const t=typeof n=="string"?n:n.strings;let e=N4.get(t);return e===void 0&&(e=aR(t,typeof n!="string"&&!("strTag"in n)),N4.set(t,e)),e}h(lR,"zt");pt(lR,"generateId");function m1(n){window.dispatchEvent(new CustomEvent(Yx,{detail:n}))}h(m1,"Ae$1");pt(m1,"dispatchStatusEvent");let $v="",qb,cR,xv,Gx,hR,Za=new sR;Za.resolve();let Ig=0;const NU=pt(n=>(eR((t,e)=>oR(hR,t,e)),$v=cR=n.sourceLocale,xv=new Set(n.targetLocales),xv.add(n.sourceLocale),Gx=n.loadLocale,{getLocale:XU,setLocale:HU}),"configureLocalization"),XU=pt(()=>$v,"getLocale"),HU=pt(n=>{if(n===(qb??$v))return Za.promise;if(!xv||!Gx)throw new Error("Internal error");if(!xv.has(n))throw new Error("Invalid locale code");Ig++;const t=Ig;return qb=n,Za.settled&&(Za=new sR),m1({status:"loading",loadingLocale:n}),(n===cR?Promise.resolve({templates:void 0}):Gx(n)).then(e=>{Ig===t&&($v=n,qb=void 0,hR=e.templates,m1({status:"ready",readyLocale:n}),Za.resolve())},e=>{Ig===t&&(m1({status:"error",errorLocale:n,errorMessage:e.toString()}),Za.reject(e))}),Za.promise},"setLocale");var Vb,Hd;const YU=(Vb=(Hd=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(Hd,"I"),Hd),pt(Vb,"ElementInternals"),Vb);var Un=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"),Xe=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)},"$"),Jl,Zg,Dg,qy,Ub,Vy,Wg,ka,Uy,rr,qg,X4;const H4=pt(n=>typeof n=="boolean"?n:(n==null?void 0:n.capture)??!1,"isCaptureEventListener"),kv=0,Kx=1,Sv=2,Jx=3;var jb,Yd;const GU=(jb=(Yd=class{constructor(){this.__eventListeners=new Map,this.__captureEventListeners=new Map}addEventListener(t,e,i){var s;if(e==null)return;const r=H4(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=H4(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=kv,o=null,l=null,c=null;const d=t.stopPropagation,p=t.stopImmediatePropagation;Object.defineProperties(t,{target:{get(){return o??l},...Ft},srcElement:{get(){return t.target},...Ft},currentTarget:{get(){return c},...Ft},eventPhase:{get(){return a},...Ft},composedPath:{value:pt(()=>e,"value"),...Ft},stopPropagation:{value:pt(()=>{s=!0,d.call(t)},"value"),...Ft},stopImmediatePropagation:{value:pt(()=>{r=!0,p.call(t)},"value"),...Ft}});const f=pt((O,P,A)=>{typeof O=="function"?O(t):typeof(O==null?void 0:O.handleEvent)=="function"&&O.handleEvent(t),P.once&&A.delete(O)},"invokeEventListener"),m=pt(()=>(c=null,a=kv,!t.defaultPrevented),"finishDispatch"),w=e.slice().reverse();o=!this.__host||!t.composed?this:null;const b=pt(O=>{for(l=this;l.__host&&O.includes(l.__host);)l=l.__host},"retarget");for(const O of w){!o&&(!l||l===O.__host)&&b(w.slice(w.indexOf(O))),c=O,a=O===t.target?Sv:Kx;const P=O.__captureEventListeners.get(t.type);if(P){for(const[A,R]of P)if(f(A,R,P),r)return m()}if(s)return m()}const x=t.bubbles?e:[this];l=null;for(const O of x){!o&&(!l||O===l.__host)&&b(x.slice(0,x.indexOf(O)+1)),c=O,a=O===t.target?Sv:Jx;const P=O.__eventListeners.get(t.type);if(P){for(const[A,R]of P)if(f(A,R,P),r)return m()}if(s)return m()}return m()}},h(Yd,"j"),Yd),pt(jb,"EventTarget"),jb),KU=GU,Ft={__proto__:null};Ft.enumerable=!0;Object.freeze(Ft);var Fb,Gd;const AS=(rr=(Fb=(Gd=class{constructor(t,e={}){if(Jl.set(this,!1),Zg.set(this,!1),Dg.set(this,!1),qy.set(this,!1),Ub.set(this,Date.now()),Vy.set(this,!1),Wg.set(this,void 0),ka.set(this,void 0),Uy.set(this,void 0),this.NONE=kv,this.CAPTURING_PHASE=Kx,this.AT_TARGET=Sv,this.BUBBLING_PHASE=Jx,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;Un(this,Jl,!!s),Un(this,Zg,!!i),Un(this,Dg,!!r),Un(this,Wg,`${t}`),Un(this,ka,null),Un(this,Uy,!1)}initEvent(t,e,i){throw new Error("Method not implemented.")}stopImmediatePropagation(){this.stopPropagation()}preventDefault(){Un(this,qy,!0)}get target(){return Xe(this,ka,"f")}get currentTarget(){return Xe(this,ka,"f")}get srcElement(){return Xe(this,ka,"f")}get type(){return Xe(this,Wg,"f")}get cancelable(){return Xe(this,Jl,"f")}get defaultPrevented(){return Xe(this,Jl,"f")&&Xe(this,qy,"f")}get timeStamp(){return Xe(this,Ub,"f")}composedPath(){return Xe(this,Uy,"f")?[Xe(this,ka,"f")]:[]}get returnValue(){return!Xe(this,Jl,"f")||!Xe(this,qy,"f")}get bubbles(){return Xe(this,Zg,"f")}get composed(){return Xe(this,Dg,"f")}get eventPhase(){return Xe(this,Uy,"f")?rr.AT_TARGET:rr.NONE}get cancelBubble(){return Xe(this,Vy,"f")}set cancelBubble(t){t&&Un(this,Vy,!0)}stopPropagation(){Un(this,Vy,!0)}get isTrusted(){return!1}},h(Gd,"D"),Gd),pt(Fb,"Event"),Fb),Jl=new WeakMap,Zg=new WeakMap,Dg=new WeakMap,qy=new WeakMap,Ub=new WeakMap,Vy=new WeakMap,Wg=new WeakMap,ka=new WeakMap,Uy=new WeakMap,rr.NONE=kv,rr.CAPTURING_PHASE=Kx,rr.AT_TARGET=Sv,rr.BUBBLING_PHASE=Jx,rr);Object.defineProperties(AS.prototype,{initEvent:Ft,stopImmediatePropagation:Ft,preventDefault:Ft,target:Ft,currentTarget:Ft,srcElement:Ft,type:Ft,cancelable:Ft,defaultPrevented:Ft,timeStamp:Ft,composedPath:Ft,returnValue:Ft,bubbles:Ft,composed:Ft,eventPhase:Ft,cancelBubble:Ft,stopPropagation:Ft,isTrusted:Ft});var Bb,Kd;const dR=(X4=(Bb=(Kd=class extends AS{constructor(t,e={}){super(t,e),qg.set(this,void 0),Un(this,qg,(e==null?void 0:e.detail)??null)}initCustomEvent(t,e,i,s){throw new Error("Method not implemented.")}get detail(){return Xe(this,qg,"f")}},h(Kd,"B"),Kd),pt(Bb,"CustomEvent"),Bb),qg=new WeakMap,X4);Object.defineProperties(dR.prototype,{detail:Ft});const JU=AS,tj=dR;globalThis.Event??(globalThis.Event=JU);globalThis.CustomEvent??(globalThis.CustomEvent=tj);const Y4=new WeakMap,jy=pt(n=>{let t=Y4.get(n);return t===void 0&&Y4.set(n,t=new Map),t},"attributesForElement");var Nb,Jd;const ej=(Nb=(Jd=class extends KU{constructor(){super(...arguments),this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(jy(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){jy(this).set(t,String(e))}removeAttribute(t){jy(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 jy(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 YU(this);return this.__internals=t,t}getAttribute(t){return jy(this).get(t)??null}},h(Jd,"W$1"),Jd),pt(Nb,"Element"),Nb);var Xb,tu;const ij=(Xb=(tu=class extends ej{},h(tu,"V"),tu),pt(Xb,"HTMLElement"),Xb),uR=ij;globalThis.litServerRoot??(globalThis.litServerRoot=Object.defineProperty(new uR,"localName",{get(){return"lit-server-root"}}));var Hb,eu;const nj=(Hb=(eu=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(eu,"z"),eu),pt(Hb,"CustomElementRegistry"),Hb),sj=nj,rj=new sj,sw=globalThis,R0=sw.ShadowRoot&&(sw.ShadyCSS===void 0||sw.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,RS=Symbol(),G4=new WeakMap;var Yb,iu;let pR=(Yb=(iu=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==RS)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(R0&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=G4.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&G4.set(e,t))}return t}toString(){return this.cssText}},h(iu,"F"),iu),pt(Yb,"n"),Yb);const fR=pt(n=>new pR(typeof n=="string"?n:n+"",void 0,RS),"r$2"),Tt=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 pR(e,n,RS)},"i$2"),yR=pt((n,t)=>{if(R0)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=sw.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)}},"S$1"),K4=R0||sw.CSSStyleSheet===void 0?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return fR(e)})(n):n,{is:aj,defineProperty:oj,getOwnPropertyDescriptor:lj,getOwnPropertyNames:cj,getOwnPropertySymbols:hj,getPrototypeOf:dj}=Object,Jr=globalThis;Jr.customElements??(Jr.customElements=rj);const J4=Jr.trustedTypes,uj=J4?J4.emptyScript:"",t3=Jr.reactiveElementPolyfillSupport,rw=pt((n,t)=>n,"f$1"),Pv={toAttribute(n,t){switch(t){case Boolean:n=n?uj: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}},ES=pt((n,t)=>!aj(n,t),"m$1"),e3={attribute:!0,type:String,converter:Pv,reflect:!1,useDefault:!1,hasChanged:ES};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Jr.litPropertyMetadata??(Jr.litPropertyMetadata=new WeakMap);var Gb,nu;let pc=(Gb=(nu=class extends(globalThis.HTMLElement??uR){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=e3){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&&oj(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:r}=lj(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)??e3}static _$Ei(){if(this.hasOwnProperty(rw("elementProperties")))return;const t=dj(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(rw("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(rw("properties"))){const e=this.properties,i=[...cj(e),...hj(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(K4(s))}else t!==void 0&&e.push(K4(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 yR(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:Pv).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:Pv;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??ES)(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(nu,"G$1"),nu),pt(Gb,"g"),Gb);pc.elementStyles=[],pc.shadowRootOptions={mode:"open"},pc[rw("elementProperties")]=new Map,pc[rw("finalized")]=new Map,t3==null||t3({ReactiveElement:pc}),(Jr.reactiveElementVersions??(Jr.reactiveElementVersions=[])).push("2.1.0");const Sw=globalThis,Cv=Sw.trustedTypes,i3=Cv?Cv.createPolicy("lit-html",{createHTML:pt(n=>n,"createHTML")}):void 0,mR="$lit$",vr=`lit$${Math.random().toFixed(9).slice(2)}$`,wR="?"+vr,pj=`<${wR}>`,Vo=Sw.document===void 0?{createTreeWalker:pt(()=>({}),"createTreeWalker")}:document,Pw=pt(()=>Vo.createComment(""),"l"),Cw=pt(n=>n===null||typeof n!="object"&&typeof n!="function","c"),zS=Array.isArray,fj=pt(n=>zS(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function","u"),Kb=`[
|
|
30
30
|
\f\r]`,Fy=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,n3=/-->/g,s3=/>/g,Sa=RegExp(`>|${Kb}(?:([^\\s"'>=/]+)(${Kb}*=${Kb}*(?:[^
|
|
31
31
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),r3=/'/g,a3=/"/g,gR=/^(?:script|style|textarea|title)$/i,vR=pt(n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),"y"),v=vR(1),o3=vR(2),Cn=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),l3=new WeakMap,Fa=Vo.createTreeWalker(Vo,129);function _S(n,t){if(!zS(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return i3!==void 0?i3.createHTML(t):t}h(_S,"Rt$1");pt(_S,"P");const yj=pt((n,t)=>{const e=n.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",a=Fy;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===Fy?d[1]==="!--"?a=n3:d[1]!==void 0?a=s3:d[2]!==void 0?(gR.test(d[2])&&(s=RegExp("</"+d[2],"g")),a=Sa):d[3]!==void 0&&(a=Sa):a===Sa?d[0]===">"?(a=s??Fy,p=-1):d[1]===void 0?p=-2:(p=a.lastIndex-d[2].length,c=d[1],a=d[3]===void 0?Sa:d[3]==='"'?a3:r3):a===a3||a===r3?a=Sa:a===n3||a===s3?a=Fy:(a=Sa,s=void 0);const m=a===Sa&&n[o+1].startsWith("/>")?" ":"";r+=a===Fy?l+pj:p>=0?(i.push(c),l.slice(0,p)+mR+l.slice(p)+vr+m):l+vr+(p===-2?o:m)}return[_S(n,r+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},"V");var To;const bR=(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]=yj(t,e);if(this.el=To.createElement(c,i),Fa.currentNode=this.el.content,e===2||e===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=Fa.nextNode())!==null&&l.length<o;){if(s.nodeType===1){if(s.hasAttributes())for(const p of s.getAttributeNames())if(p.endsWith(mR)){const f=d[a++],m=s.getAttribute(p).split(vr),w=/([.?@])?(.*)/.exec(f);l.push({type:1,index:r,name:w[2],strings:m,ctor:w[1]==="."?wj:w[1]==="?"?gj:w[1]==="@"?vj:z0}),s.removeAttribute(p)}else p.startsWith(vr)&&(l.push({type:6,index:r}),s.removeAttribute(p));if(gR.test(s.tagName)){const p=s.textContent.split(vr),f=p.length-1;if(f>0){s.textContent=Cv?Cv.emptyScript:"";for(let m=0;m<f;m++)s.append(p[m],Pw()),Fa.nextNode(),l.push({type:2,index:++r});s.append(p[f],Pw())}}}else if(s.nodeType===8)if(s.data===wR)l.push({type:2,index:r});else{let p=-1;for(;(p=s.data.indexOf(vr,p+1))!==-1;)l.push({type:7,index:r}),p+=vr.length-1}r++}}static createElement(t,e){const i=Vo.createElement("template");return i.innerHTML=t,i}},h(To,"_e"),To);pt(bR,"N");let tk=bR;function Uo(n,t,e=n,i){var s,r;if(t===Cn)return t;let a=i!==void 0?(s=e._$Co)==null?void 0:s[i]:e._$Cl;const o=Cw(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 su;const OR=(su=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)??Vo).importNode(e,!0);Fa.currentNode=s;let r=Fa.nextNode(),a=0,o=0,l=i[0];for(;l!==void 0;){if(a===l.index){let c;l.type===2?c=new E0(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new bj(r,this,t)),this._$AV.push(c),l=i[++o]}a!==(l==null?void 0:l.index)&&(r=Fa.nextNode(),a++)}return Fa.currentNode=Vo,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(su,"qe"),su);pt(OR,"M");let mj=OR;var Ao;const $R=(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),Cw(t)?t===Q||t==null||t===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==Cn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):fj(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&&Cw(this._$AH)?this._$AA.nextSibling.data=t:this.T(Vo.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=tk.createElement(_S(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 mj(r,this),o=a.u(this.options);a.p(i),this.T(o),this._$AH=a}}_$AC(t){let e=l3.get(t.strings);return e===void 0&&l3.set(t.strings,e=new tk(t)),e}k(t){zS(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(Pw()),this.O(Pw()),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($R,"k");let E0=$R;var ru;const xR=(ru=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=!Cw(t)||t!==this._$AH&&t!==Cn,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===Cn&&(c=this._$AH[l]),a||(a=!Cw(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(ru,"Ke"),ru);pt(xR,"R");let z0=xR;var au;const kR=(au=class extends z0{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Q?void 0:t}},h(au,"Ze"),au);pt(kR,"H");let wj=kR;var ou;const SR=(ou=class extends z0{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Q)}},h(ou,"Je"),ou);pt(SR,"I");let gj=SR;var lu;const PR=(lu=class extends z0{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)===Cn)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(lu,"Xe"),lu);pt(PR,"L");let vj=PR;var cu;const CR=(cu=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(cu,"Qe"),cu);pt(CR,"z");let bj=CR;const Oj={I:E0},c3=Sw.litHtmlPolyfillSupport;c3==null||c3(tk,E0),(Sw.litHtmlVersions??(Sw.litHtmlVersions=[])).push("3.3.0");const $j=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 E0(t.insertBefore(Pw(),r),r,void 0,e??{})}return s._$AI(n),s},"j"),Qw=globalThis;var hu;const QR=(hu=class extends pc{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=$j(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 Cn}},h(hu,"Ye"),hu);pt(QR,"i");let ft=QR;var h3;ft._$litElement$=!0,ft.finalized=!0,(h3=Qw.litElementHydrateSupport)==null||h3.call(Qw,{LitElement:ft});const d3=Qw.litElementPolyfillSupport;d3==null||d3({LitElement:ft});(Qw.litElementVersions??(Qw.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 xj=Object.defineProperty,MR=h(n=>{throw TypeError(n)},"ty"),u=h((n,t)=>xj(n,"name",{value:t,configurable:!0}),"o$1"),LS=h((n,t,e)=>t.has(n)||MR("Cannot "+e),"_h"),k=h((n,t,e)=>(LS(n,t,"read from private field"),e?e.call(n):t.get(n)),"f"),j=h((n,t,e)=>t.has(n)?MR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),"T"),I=h((n,t,e,i)=>(LS(n,t,"write to private field"),t.set(n,e),e),"S"),wt=h((n,t,e)=>(LS(n,t,"access private method"),e),"et"),ek=h((n,t,e,i)=>({set _(s){I(n,t,s)},get _(){return k(n,t,i)}}),"zl");function Mw(n){return Object.prototype.toString.call(n)==="[object Object]"}h(Mw,"Dl");u(Mw,"isObject");function jo(n){if(Mw(n)===!1)return!1;const t=n.constructor;if(t===void 0)return!0;const e=t.prototype;return!(Mw(e)===!1||Object.prototype.hasOwnProperty.call(e,"isPrototypeOf")===!1)}h(jo,"Lo");u(jo,"isPlainObject$1");function Qv(n){return typeof n.toJSON=="function"}h(Qv,"Uh");u(Qv,"hasToJSON");function TR(n){return typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n===null||jo(n)||Array.isArray(n)}h(TR,"Xm");u(TR,"isJSONSerializable");function aw(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]&&jo(i[s])&&jo(t[s])?i[s]=aw(i[s],t[s],e):i[s]=t[s]);return i}h(aw,"El");u(aw,"assign");function AR(n){return n?Array.isArray(n)?n:[n]:[]}h(AR,"Jm");u(AR,"asArray");async function RR(n,t){for(const e of n)if(await t(e))return e}h(RR,"tv");u(RR,"findAsyncSequential");function Uc(n,t,e=!1,i=!1){if(!i&&(!jo(n)||!jo(t))||i&&(!Mw(n)||!Mw(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&&!Uc(l,c,e))return!1}return!0}h(Uc,"yc");u(Uc,"eqObjects");function IS(n){return Object.entries(n)}h(IS,"ww");u(IS,"objectAsIterable");function _0(n){return n.charAt(0).toUpperCase()+n.substring(1).toLowerCase()}h(_0,"Bu");u(_0,"toUpperCaseFirst");const kj='\\s,.:;"',Sj=new RegExp(`^|[${kj}]|$`,"g"),Pj=".!?",Cj=new RegExp(`^|(?<=[${Pj}])|$`);function ZS(n){return n.length>0?n.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").replace(/_|\s+/g,"-").toLowerCase():n}h(ZS,"fw");u(ZS,"toKebabCase");function ER(n,t=2){if(!n)return null;let e="";const i=n.split(Sj).filter(s=>s);return i.length==1?e=i[0]:i.forEach(s=>{e+=s.charAt(0)}),e.substring(0,t).toUpperCase()}h(ER,"nv");u(ER,"getInitials");function DS(n){let t;const e=n.split(Cj).filter(i=>i);return e.length?t=e[0]:t=n,t}h(DS,"mw");u(DS,"getTitleFromText");function WS(n,t=256){return n.length>t&&(n=n.substring(0,t-1)+"…"),n}h(WS,"vw");u(WS,"truncateText");const Qj={credentials:"omit",headers:{"X-Requested-With":"XMLHttpRequest"},redirect:"manual"};function zR(){const n=new WeakSet,t=u(function(e,i){if(Qv(i)&&(i=i.toJSON()),!(i!==null&&typeof i=="object"))return i;if(n.has(i))return"[Circular]";let s;if(n.add(i),jo(i)){const r={};Object.keys(i).forEach(a=>{r[a]=t(a,i[a])}),s=r}else Array.isArray(i)&&(s=i.map((r,a)=>t(a,r)));return n.delete(i),s},"replacer");return t}h(zR,"ov");u(zR,"getCircularReferenceReplacer");function Jf(){return((1+Math.random())*65536|0).toString(16).substring(1)}h(Jf,"bc");u(Jf,"S4");function _R(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(_R,"cv");u(_R,"getTextStreamFromResponse");function qS(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(qS,"gw");u(qS,"getStorage");var du;const LR=(du=class extends Error{constructor(){super("Instance destroyed"),this.name="DestroyError"}},h(du,"Cp"),du);u(LR,"DestroyError");let Ce=LR;var Jb,uu,xy=(Jb=(uu=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(uu,"Kr"),uu),u(Jb,"Subscribable"),Jb),ty=typeof window>"u"||"Deno"in globalThis;function yi(){}h(yi,"Re");u(yi,"noop$1");function IR(n,t){return typeof n=="function"?n(t):n}h(IR,"lv");u(IR,"functionalUpdate");function Mv(n){return typeof n=="number"&&n>=0&&n!==1/0}h(Mv,"qh");u(Mv,"isValidTimeout");function VS(n,t){return Math.max(n+(t||0)-Date.now(),0)}h(VS,"bw");u(VS,"timeUntilStale");function Ws(n,t){return typeof n=="function"?n(t):n}h(Ws,"xs");u(Ws,"resolveStaleTime");function Ji(n,t){return typeof n=="function"?n(t):n}h(Ji,"ai");u(Ji,"resolveEnabled");function ik(n,t){const{type:e="all",exact:i,fetchStatus:s,predicate:r,queryKey:a,stale:o}=n;if(a){if(i){if(t.queryHash!==L0(a,t.options))return!1}else if(!ey(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(ik,"sy");u(ik,"matchQuery");function nk(n,t){const{exact:e,status:i,predicate:s,mutationKey:r}=n;if(r){if(!t.options.mutationKey)return!1;if(e){if(ta(t.options.mutationKey)!==ta(r))return!1}else if(!ey(t.options.mutationKey,r))return!1}return!(i&&t.state.status!==i||s&&!s(t))}h(nk,"ry");u(nk,"matchMutation");function L0(n,t){return((t==null?void 0:t.queryKeyHashFn)||ta)(n)}h(L0,"Uu");u(L0,"hashQueryKeyByOptions");function ta(n){return JSON.stringify(n,(t,e)=>Tv(e)?Object.keys(e).sort().reduce((i,s)=>(i[s]=e[s],i),{}):e)}h(ta,"ar");u(ta,"hashKey");function ey(n,t){return n===t?!0:typeof n!=typeof t?!1:n&&t&&typeof n=="object"&&typeof t=="object"?Object.keys(t).every(e=>ey(n[e],t[e])):!1}h(ey,"xc");u(ey,"partialMatchKey");function ky(n,t){if(n===t)return n;const e=sk(n)&&sk(t);if(e||Tv(n)&&Tv(t)){const i=e?n:Object.keys(n),s=i.length,r=e?t:Object.keys(t),a=r.length,o=e?[]:{},l=new Set(i);let c=0;for(let d=0;d<a;d++){const p=e?d:r[d];(!e&&l.has(p)||e)&&n[p]===void 0&&t[p]===void 0?(o[p]=void 0,c++):(o[p]=ky(n[p],t[p]),o[p]===n[p]&&n[p]!==void 0&&c++)}return s===a&&c===s?n:o}return t}h(ky,"dl");u(ky,"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,"Hl");u(Tw,"shallowEqualObjects");function sk(n){return Array.isArray(n)&&n.length===Object.keys(n).length}h(sk,"ny");u(sk,"isPlainArray");function Tv(n){if(!rk(n))return!1;const t=n.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!rk(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}h(Tv,"Nh");u(Tv,"isPlainObject");function rk(n){return Object.prototype.toString.call(n)==="[object Object]"}h(rk,"ay");u(rk,"hasObjectPrototype");function ZR(n){return new Promise(t=>{setTimeout(t,n)})}h(ZR,"dv");u(ZR,"sleep");function Av(n,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(n,t):e.structuralSharing!==!1?ky(n,t):t}h(Av,"jh");u(Av,"replaceData");function DR(n,t,e=0){const i=[...n,t];return e&&i.length>e?i.slice(1):i}h(DR,"hv");u(DR,"addToEnd");function WR(n,t,e=0){const i=[t,...n];return e&&i.length>e?i.slice(0,-1):i}h(WR,"uv");u(WR,"addToStart");var US=Symbol();function jS(n,t){return!n.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!n.queryFn||n.queryFn===US?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}h(jS,"xw");u(jS,"ensureQueryFn");var tc,Pa,By,tO,pu,Mj=(tO=(pu=class extends xy{constructor(){super(),j(this,tc),j(this,Pa),j(this,By),I(this,By,t=>{if(!ty&&window.addEventListener){const e=u(()=>t(),"listener");return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){k(this,Pa)||this.setEventListener(k(this,By))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Pa))==null||t.call(this),I(this,Pa,void 0))}setEventListener(t){var e;I(this,By,t),(e=k(this,Pa))==null||e.call(this),I(this,Pa,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){k(this,tc)!==t&&(I(this,tc,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof k(this,tc)=="boolean"?k(this,tc):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},h(pu,"Zr"),pu),tc=new WeakMap,Pa=new WeakMap,By=new WeakMap,u(tO,"FocusManager"),tO),FS=new Mj,Ny,Ca,Xy,eO,fu,Tj=(eO=(fu=class extends xy{constructor(){super(),j(this,Ny,!0),j(this,Ca),j(this,Xy),I(this,Xy,t=>{if(!ty&&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,Ca)||this.setEventListener(k(this,Xy))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Ca))==null||t.call(this),I(this,Ca,void 0))}setEventListener(t){var e;I(this,Xy,t),(e=k(this,Ca))==null||e.call(this),I(this,Ca,t(this.setOnline.bind(this)))}setOnline(t){k(this,Ny)!==t&&(I(this,Ny,t),this.listeners.forEach(e=>{e(t)}))}isOnline(){return k(this,Ny)}},h(fu,"Jr"),fu),Ny=new WeakMap,Ca=new WeakMap,Xy=new WeakMap,u(eO,"OnlineManager"),eO),Rv=new Tj;function Ev(){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,"i"),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(Ev,"Wh");u(Ev,"pendingThenable");function qR(n){var t;let e;if((t=n.then(i=>(e=i,i),yi))==null||t.catch(yi),e!==void 0)return{data:e}}h(qR,"wv");u(qR,"tryResolveSync");function VR(n){return Math.min(1e3*2**n,3e4)}h(VR,"fv");u(VR,"defaultRetryDelay");function BS(n){return(n??"online")==="online"?Rv.isOnline():!0}h(BS,"$w");u(BS,"canFetch");var iO,yu,UR=(iO=(yu=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}},h(yu,"tn"),yu),u(iO,"CancelledError"),iO);function w1(n){return n instanceof UR}h(w1,"zh");u(w1,"isCancelledError");function NS(n){let t=!1,e=0,i=!1,s;const r=Ev(),a=u(b=>{var x;i||(f(new UR(b)),(x=n.abort)==null||x.call(n))},"cancel"),o=u(()=>{t=!0},"cancelRetry"),l=u(()=>{t=!1},"continueRetry"),c=u(()=>FS.isFocused()&&(n.networkMode==="always"||Rv.isOnline())&&n.canRun(),"canContinue"),d=u(()=>BS(n.networkMode)&&n.canRun(),"canStart"),p=u(b=>{var x;i||(i=!0,(x=n.onSuccess)==null||x.call(n,b),s==null||s(),r.resolve(b))},"resolve"),f=u(b=>{var x;i||(i=!0,(x=n.onError)==null||x.call(n,b),s==null||s(),r.reject(b))},"reject"),m=u(()=>new Promise(b=>{var x;s=u(O=>{(i||c())&&b(O)},"continueFn"),(x=n.onPause)==null||x.call(n)}).then(()=>{var b;s=void 0,i||(b=n.onContinue)==null||b.call(n)}),"pause"),w=u(()=>{if(i)return;let b;const x=e===0?n.initialPromise:void 0;try{b=x??n.fn()}catch(O){b=Promise.reject(O)}Promise.resolve(b).then(p).catch(O=>{var P;if(i)return;const A=n.retry??(ty?0:3),R=n.retryDelay??VR,T=typeof R=="function"?R(e,O):R,Z=A===!0||typeof A=="number"&&e<A||typeof A=="function"&&A(e,O);if(t||!Z){f(O);return}e++,(P=n.onFail)==null||P.call(n,e,O),ZR(T).then(()=>c()?void 0:m()).then(()=>{t?f(O):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(NS,"kw");u(NS,"createRetryer");var Aj=u(n=>setTimeout(n,0),"defaultScheduler");function jR(){let n=[],t=0,e=u(o=>{o()},"notifyFn"),i=u(o=>{o()},"batchNotifyFn"),s=Aj;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(jR,"vv");u(jR,"createNotifyManager");var ti=jR(),ec,nO,mu,FR=(nO=(mu=class{constructor(){j(this,ec)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mv(this.gcTime)&&I(this,ec,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ty?1/0:5*60*1e3))}clearGcTimeout(){k(this,ec)&&(clearTimeout(k(this,ec)),I(this,ec,void 0))}},h(mu,"en"),mu),ec=new WeakMap,u(nO,"Removable"),nO),Hy,ic,yn,nc,hi,Vg,sc,Dn,gs,sO,wu,Rj=(sO=(wu=class extends FR{constructor(t){super(),j(this,Dn),j(this,Hy),j(this,ic),j(this,yn),j(this,nc),j(this,hi),j(this,Vg),j(this,sc),I(this,sc,!1),I(this,Vg,t.defaultOptions),this.setOptions(t.options),this.observers=[],I(this,nc,t.client),I(this,yn,k(this,nc).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,I(this,Hy,BR(this.options)),this.state=t.state??k(this,Hy),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,hi))==null?void 0:t.promise}setOptions(t){this.options={...k(this,Vg),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,yn).remove(this)}setData(t,e){const i=Av(this.state.data,t,this.options);return wt(this,Dn,gs).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){wt(this,Dn,gs).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var e,i;const s=(e=k(this,hi))==null?void 0:e.promise;return(i=k(this,hi))==null||i.cancel(t),s?s.then(yi).catch(yi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Hy))}isActive(){return this.observers.some(t=>Ji(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===US||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ws(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!VS(this.state.dataUpdatedAt,t)}onFocus(){var t;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=k(this,hi))==null||t.continue()}onOnline(){var t;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=k(this,hi))==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,yn).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,hi)&&(k(this,sc)?k(this,hi).cancel({revert:!0}):k(this,hi).cancelRetry()),this.scheduleGc()),k(this,yn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||wt(this,Dn,gs).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,hi))return k(this,hi).continueRetry(),k(this,hi).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(()=>(I(this,sc,!0),a.signal),"get")})},"addSignalProperty"),l=u(()=>{const p=jS(this.options,e),f=u(()=>{const m={client:k(this,nc),queryKey:this.queryKey,meta:this.meta};return o(m),m},"createQueryFnContext")();return I(this,sc,!1),this.options.persister?this.options.persister(p,f,this):p(f)},"fetchFn"),c=u(()=>{const p={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:k(this,nc),state:this.state,fetchFn:l};return o(p),p},"createFetchContext")();(i=this.options.behavior)==null||i.onFetch(c,this),I(this,ic,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=c.fetchOptions)==null?void 0:s.meta))&&wt(this,Dn,gs).call(this,{type:"fetch",meta:(r=c.fetchOptions)==null?void 0:r.meta});const d=u(p=>{var f,m,w,b;w1(p)&&p.silent||wt(this,Dn,gs).call(this,{type:"error",error:p}),w1(p)||((m=(f=k(this,yn).config).onError)==null||m.call(f,p,this),(b=(w=k(this,yn).config).onSettled)==null||b.call(w,this.state.data,p,this)),this.scheduleGc()},"onError");return I(this,hi,NS({initialPromise:e==null?void 0:e.initialPromise,fn:c.fetchFn,abort:a.abort.bind(a),onSuccess:u(p=>{var f,m,w,b;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,yn).config).onSuccess)==null||m.call(f,p,this),(b=(w=k(this,yn).config).onSettled)==null||b.call(w,p,this.state.error,this),this.scheduleGc()},"onSuccess"),onError:d,onFail:u((p,f)=>{wt(this,Dn,gs).call(this,{type:"failed",failureCount:p,error:f})},"onFail"),onPause:u(()=>{wt(this,Dn,gs).call(this,{type:"pause"})},"onPause"),onContinue:u(()=>{wt(this,Dn,gs).call(this,{type:"continue"})},"onContinue"),retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:u(()=>!0,"canRun")})),k(this,hi).start()}},h(wu,"rn"),wu),Hy=new WeakMap,ic=new WeakMap,yn=new WeakMap,nc=new WeakMap,hi=new WeakMap,Vg=new WeakMap,sc=new WeakMap,Dn=new WeakSet,gs=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,...XS(e.data,this.options),fetchMeta:n.meta??null};case"success":return I(this,ic,void 0),{...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 w1(i)&&i.revert&&k(this,ic)?{...k(this,ic),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),ti.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),k(this,yn).notify({query:this,type:"updated",action:n})})},"#dispatch"),u(sO,"Query"),sO);function XS(n,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:BS(t.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}h(XS,"zw");u(XS,"fetchState");function BR(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(BR,"bv");u(BR,"getDefaultState$1");var vs,rO,gu,Ej=(rO=(gu=class extends xy{constructor(t={}){super(),j(this,vs),this.config=t,I(this,vs,new Map)}build(t,e,i){const s=e.queryKey,r=e.queryHash??L0(s,e);let a=this.get(r);return a||(a=new Rj({client:t,queryKey:s,queryHash:r,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){k(this,vs).has(t.queryHash)||(k(this,vs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=k(this,vs).get(t.queryHash);e&&(t.destroy(),e===t&&k(this,vs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ti.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,vs).get(t)}getAll(){return[...k(this,vs).values()]}find(t){const e={exact:!0,...t};return this.getAll().find(i=>ik(e,i))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(i=>ik(t,i)):e}notify(t){ti.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){ti.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ti.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},h(gu,"nn"),gu),vs=new WeakMap,u(rO,"QueryCache"),rO),bs,xi,rc,Os,ar,aO,vu,zj=(aO=(vu=class extends FR{constructor(t){super(),j(this,Os),j(this,bs),j(this,xi),j(this,rc),this.mutationId=t.mutationId,I(this,xi,t.mutationCache),I(this,bs,[]),this.state=t.state||HS(),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,bs).includes(t)||(k(this,bs).push(t),this.clearGcTimeout(),k(this,xi).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){I(this,bs,k(this,bs).filter(e=>e!==t)),this.scheduleGc(),k(this,xi).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,bs).length||(this.state.status==="pending"?this.scheduleGc():k(this,xi).remove(this))}continue(){var t;return((t=k(this,rc))==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,b,x,O,P,A,R,T;const Z=u(()=>{wt(this,Os,ar).call(this,{type:"continue"})},"onContinue");I(this,rc,NS({fn:u(()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),"fn"),onFail:u((V,G)=>{wt(this,Os,ar).call(this,{type:"failed",failureCount:V,error:G})},"onFail"),onPause:u(()=>{wt(this,Os,ar).call(this,{type:"pause"})},"onPause"),onContinue:Z,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:u(()=>k(this,xi).canRun(this),"canRun")}));const z=this.state.status==="pending",q=!k(this,rc).canStart();try{if(z)Z();else{wt(this,Os,ar).call(this,{type:"pending",variables:t,isPaused:q}),await((i=(e=k(this,xi).config).onMutate)==null?void 0:i.call(e,t,this));const G=await((r=(s=this.options).onMutate)==null?void 0:r.call(s,t));G!==this.state.context&&wt(this,Os,ar).call(this,{type:"pending",context:G,variables:t,isPaused:q})}const V=await k(this,rc).start();return await((o=(a=k(this,xi).config).onSuccess)==null?void 0:o.call(a,V,t,this.state.context,this)),await((c=(l=this.options).onSuccess)==null?void 0:c.call(l,V,t,this.state.context)),await((p=(d=k(this,xi).config).onSettled)==null?void 0:p.call(d,V,null,this.state.variables,this.state.context,this)),await((m=(f=this.options).onSettled)==null?void 0:m.call(f,V,null,t,this.state.context)),wt(this,Os,ar).call(this,{type:"success",data:V}),V}catch(V){try{throw await((b=(w=k(this,xi).config).onError)==null?void 0:b.call(w,V,t,this.state.context,this)),await((O=(x=this.options).onError)==null?void 0:O.call(x,V,t,this.state.context)),await((A=(P=k(this,xi).config).onSettled)==null?void 0:A.call(P,void 0,V,this.state.variables,this.state.context,this)),await((T=(R=this.options).onSettled)==null?void 0:T.call(R,void 0,V,t,this.state.context)),V}finally{wt(this,Os,ar).call(this,{type:"error",error:V})}}finally{k(this,xi).runNext(this)}}},h(vu,"an"),vu),bs=new WeakMap,xi=new WeakMap,rc=new WeakMap,Os=new WeakSet,ar=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),ti.batch(()=>{k(this,bs).forEach(e=>{e.onMutationUpdate(n)}),k(this,xi).notify({mutation:this,type:"updated",action:n})})},"#dispatch"),u(aO,"Mutation"),aO);function HS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}h(HS,"Mw");u(HS,"getDefaultState");var or,Wn,Ug,oO,bu,_j=(oO=(bu=class extends xy{constructor(t={}){super(),j(this,or),j(this,Wn),j(this,Ug),this.config=t,I(this,or,new Set),I(this,Wn,new Map),I(this,Ug,0)}build(t,e,i){const s=new zj({mutationCache:this,mutationId:++ek(this,Ug)._,options:t.defaultMutationOptions(e),state:i});return this.add(s),s}add(t){k(this,or).add(t);const e=bm(t);if(typeof e=="string"){const i=k(this,Wn).get(e);i?i.push(t):k(this,Wn).set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,or).delete(t)){const e=bm(t);if(typeof e=="string"){const i=k(this,Wn).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,Wn).delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=bm(t);if(typeof e=="string"){const i=k(this,Wn).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=bm(t);if(typeof i=="string"){const s=(e=k(this,Wn).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(){ti.batch(()=>{k(this,or).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,or).clear(),k(this,Wn).clear()})}getAll(){return Array.from(k(this,or))}find(t){const e={exact:!0,...t};return this.getAll().find(i=>nk(e,i))}findAll(t={}){return this.getAll().filter(e=>nk(t,e))}notify(t){ti.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return ti.batch(()=>Promise.all(t.map(e=>e.continue().catch(yi))))}},h(bu,"on"),bu),or=new WeakMap,Wn=new WeakMap,Ug=new WeakMap,u(oO,"MutationCache"),oO);function bm(n){var t;return(t=n.options.scope)==null?void 0:t.id}h(bm,"Ml");u(bm,"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 b=!1;const x=u(A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:u(()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal),"get")})},"addSignalProperty"),O=jS(t.options,t.fetchOptions),P=u(async(A,R,T)=>{if(b)return Promise.reject();if(R==null&&A.pages.length)return Promise.resolve(A);const Z=u(()=>{const G={client:t.client,queryKey:t.queryKey,pageParam:R,direction:T?"backward":"forward",meta:t.options.meta};return x(G),G},"createQueryFnContext")(),z=await O(Z),{maxPages:q}=t.options,V=T?WR:DR;return{pages:V(A.pages,z,q),pageParams:V(A.pageParams,R,q)}},"fetchPage");if(c&&d.length){const A=c==="backward",R=A?YS:zv,T={pages:d,pageParams:p},Z=R(l,T);f=await P(T,Z,A)}else{const A=n??d.length;do{const R=m===0?p[0]??l.initialPageParam:zv(l,f);if(m>0&&R==null)break;f=await P(f,R),m++}while(m<A)}return f},"fetchFn");t.options.persister?t.fetchFn=()=>{var b,x;return(x=(b=t.options).persister)==null?void 0:x.call(b,w,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=w},"onFetch")}}h(Aw,"Bl");u(Aw,"infiniteQueryBehavior");function zv(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(zv,"Qh");u(zv,"getNextPageParam");function YS(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(YS,"Pw");u(YS,"getPreviousPageParam");function NR(n,t){return t?zv(n,t)!=null:!1}h(NR,"kv");u(NR,"hasNextPage");function XR(n,t){return!t||!n.getPreviousPageParam?!1:YS(n,t)!=null}h(XR,"_v");u(XR,"hasPreviousPage");var ve,Qa,Ma,Yy,Gy,Ta,Ky,Jy,lO,Ou,Lj=(lO=(Ou=class{constructor(t={}){j(this,ve),j(this,Qa),j(this,Ma),j(this,Yy),j(this,Gy),j(this,Ta),j(this,Ky),j(this,Jy),I(this,ve,t.queryCache||new Ej),I(this,Qa,t.mutationCache||new _j),I(this,Ma,t.defaultOptions||{}),I(this,Yy,new Map),I(this,Gy,new Map),I(this,Ta,0)}mount(){ek(this,Ta)._++,k(this,Ta)===1&&(I(this,Ky,FS.subscribe(async t=>{t&&(await this.resumePausedMutations(),k(this,ve).onFocus())})),I(this,Jy,Rv.subscribe(async t=>{t&&(await this.resumePausedMutations(),k(this,ve).onOnline())})))}unmount(){var t,e;ek(this,Ta)._--,k(this,Ta)===0&&((t=k(this,Ky))==null||t.call(this),I(this,Ky,void 0),(e=k(this,Jy))==null||e.call(this),I(this,Jy,void 0))}isFetching(t){return k(this,ve).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return k(this,Qa).findAll({...t,status:"pending"}).length}getQueryData(t){var e;const i=this.defaultQueryOptions({queryKey:t});return(e=k(this,ve).get(i.queryHash))==null?void 0:e.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),i=k(this,ve).build(this,e),s=i.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(Ws(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(t){return k(this,ve).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,ve).get(s.queryHash),a=r==null?void 0:r.state.data,o=IR(e,a);if(o!==void 0)return k(this,ve).build(this,s).setData(o,{...i,manual:!0})}setQueriesData(t,e,i){return ti.batch(()=>k(this,ve).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,ve).get(i.queryHash))==null?void 0:e.state}removeQueries(t){const e=k(this,ve);ti.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=k(this,ve);return ti.batch(()=>(i.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const i={revert:!0,...e},s=ti.batch(()=>k(this,ve).findAll(t).map(r=>r.cancel(i)));return Promise.all(s).then(yi).catch(yi)}invalidateQueries(t,e={}){return ti.batch(()=>(k(this,ve).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=ti.batch(()=>k(this,ve).findAll(t).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let a=r.fetch(void 0,i);return i.throwOnError||(a=a.catch(yi)),r.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(s).then(yi)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=k(this,ve).build(this,e);return i.isStaleByTime(Ws(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(yi).catch(yi)}fetchInfiniteQuery(t){return t.behavior=Aw(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(yi).catch(yi)}ensureInfiniteQueryData(t){return t.behavior=Aw(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Rv.isOnline()?k(this,Qa).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,ve)}getMutationCache(){return k(this,Qa)}getDefaultOptions(){return k(this,Ma)}setDefaultOptions(t){I(this,Ma,t)}setQueryDefaults(t,e){k(this,Yy).set(ta(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...k(this,Yy).values()],i={};return e.forEach(s=>{ey(t,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(t,e){k(this,Gy).set(ta(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...k(this,Gy).values()],i={};return e.forEach(s=>{ey(t,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...k(this,Ma).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=L0(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===US&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...k(this,Ma).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){k(this,ve).clear(),k(this,Qa).clear()}},h(Ou,"un"),Ou),ve=new WeakMap,Qa=new WeakMap,Ma=new WeakMap,Yy=new WeakMap,Gy=new WeakMap,Ta=new WeakMap,Ky=new WeakMap,Jy=new WeakMap,u(lO,"QueryClient"),lO),Di,Lt,jg,ki,ac,tm,Aa,Ra,Fg,em,im,oc,lc,Ea,nm,be,sm,cO,hO,dO,uO,pO,fO,yO,u3,mO,$u,HR=(mO=($u=class extends xy{constructor(t,e){super(),j(this,be),j(this,Di),j(this,Lt),j(this,jg),j(this,ki),j(this,ac),j(this,tm),j(this,Aa),j(this,Ra),j(this,Fg),j(this,em),j(this,im),j(this,oc),j(this,lc),j(this,Ea),j(this,nm,new Set),this.options=e,I(this,Di,t),I(this,Ra,null),I(this,Aa,Ev()),this.options.experimental_prefetchInRender||k(this,Aa).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),ak(k(this,Lt),this.options)?wt(this,be,sm).call(this):this.updateResult(),wt(this,be,uO).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _v(k(this,Lt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _v(k(this,Lt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,wt(this,be,pO).call(this),wt(this,be,fO).call(this),k(this,Lt).removeObserver(this)}setOptions(t){const e=this.options,i=k(this,Lt);if(this.options=k(this,Di).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ji(this.options.enabled,k(this,Lt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");wt(this,be,yO).call(this),k(this,Lt).setOptions(this.options),e._defaulted&&!Tw(this.options,e)&&k(this,Di).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,Lt),observer:this});const s=this.hasListeners();s&&ok(k(this,Lt),i,this.options,e)&&wt(this,be,sm).call(this),this.updateResult(),s&&(k(this,Lt)!==i||Ji(this.options.enabled,k(this,Lt))!==Ji(e.enabled,k(this,Lt))||Ws(this.options.staleTime,k(this,Lt))!==Ws(e.staleTime,k(this,Lt)))&&wt(this,be,cO).call(this);const r=wt(this,be,hO).call(this);s&&(k(this,Lt)!==i||Ji(this.options.enabled,k(this,Lt))!==Ji(e.enabled,k(this,Lt))||r!==k(this,Ea))&&wt(this,be,dO).call(this,r)}getOptimisticResult(t){const e=k(this,Di).getQueryCache().build(k(this,Di),t),i=this.createResult(e,t);return GR(this,i)&&(I(this,ki,i),I(this,tm,this.options),I(this,ac,k(this,Lt).state)),i}getCurrentResult(){return k(this,ki)}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,nm).add(t)}getCurrentQuery(){return k(this,Lt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=k(this,Di).defaultQueryOptions(t),i=k(this,Di).getQueryCache().build(k(this,Di),e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return wt(this,be,sm).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,ki)))}createResult(t,e){var i;const s=k(this,Lt),r=this.options,a=k(this,ki),o=k(this,ac),l=k(this,tm),c=t!==s?t.state:k(this,jg),{state:d}=t;let p={...d},f=!1,m;if(e._optimisticResults){const q=this.hasListeners(),V=!q&&ak(t,e),G=q&&ok(t,s,e,r);(V||G)&&(p={...p,...XS(d.data,t.options)}),e._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:b,status:x}=p;m=p.data;let O=!1;if(e.placeholderData!==void 0&&m===void 0&&x==="pending"){let q;a!=null&&a.isPlaceholderData&&e.placeholderData===(l==null?void 0:l.placeholderData)?(q=a.data,O=!0):q=typeof e.placeholderData=="function"?e.placeholderData((i=k(this,im))==null?void 0:i.state.data,k(this,im)):e.placeholderData,q!==void 0&&(x="success",m=Av(a==null?void 0:a.data,q,e),f=!0)}if(e.select&&m!==void 0&&!O)if(a&&m===(o==null?void 0:o.data)&&e.select===k(this,Fg))m=k(this,em);else try{I(this,Fg,e.select),m=e.select(m),m=Av(a==null?void 0:a.data,m,e),I(this,em,m),I(this,Ra,null)}catch(q){I(this,Ra,q)}k(this,Ra)&&(w=k(this,Ra),m=k(this,em),b=Date.now(),x="error");const P=p.fetchStatus==="fetching",A=x==="pending",R=x==="error",T=A&&P,Z=m!==void 0,z={status:x,fetchStatus:p.fetchStatus,isPending:A,isSuccess:x==="success",isError:R,isInitialLoading:T,isLoading:T,data:m,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:b,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&&!A,isLoadingError:R&&!Z,isPaused:p.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:R&&Z,isStale:I0(t,e),refetch:this.refetch,promise:k(this,Aa)};if(this.options.experimental_prefetchInRender){const q=u(K=>{z.status==="error"?K.reject(z.error):z.data!==void 0&&K.resolve(z.data)},"finalizeThenableIfPossible"),V=u(()=>{const K=I(this,Aa,z.promise=Ev());q(K)},"recreateThenable"),G=k(this,Aa);switch(G.status){case"pending":t.queryHash===s.queryHash&&q(G);break;case"fulfilled":(z.status==="error"||z.data!==G.value)&&V();break;case"rejected":(z.status!=="error"||z.error!==G.reason)&&V();break}}return z}updateResult(){const t=k(this,ki),e=this.createResult(k(this,Lt),this.options);if(I(this,ac,k(this,Lt).state),I(this,tm,this.options),k(this,ac).data!==void 0&&I(this,im,k(this,Lt)),Tw(e,t))return;I(this,ki,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,nm).size)return!0;const a=new Set(r??k(this,nm));return this.options.throwOnError&&a.add("error"),Object.keys(k(this,ki)).some(o=>{const l=o;return k(this,ki)[l]!==t[l]&&a.has(l)})},"shouldNotifyListeners");wt(this,be,u3).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&wt(this,be,uO).call(this)}},h($u,"mn"),$u),Di=new WeakMap,Lt=new WeakMap,jg=new WeakMap,ki=new WeakMap,ac=new WeakMap,tm=new WeakMap,Aa=new WeakMap,Ra=new WeakMap,Fg=new WeakMap,em=new WeakMap,im=new WeakMap,oc=new WeakMap,lc=new WeakMap,Ea=new WeakMap,nm=new WeakMap,be=new WeakSet,sm=u(function(n){wt(this,be,yO).call(this);let t=k(this,Lt).fetch(this.options,n);return n!=null&&n.throwOnError||(t=t.catch(yi)),t},"#executeFetch"),cO=u(function(){wt(this,be,pO).call(this);const n=Ws(this.options.staleTime,k(this,Lt));if(ty||k(this,ki).isStale||!Mv(n))return;const t=VS(k(this,ki).dataUpdatedAt,n)+1;I(this,oc,setTimeout(()=>{k(this,ki).isStale||this.updateResult()},t))},"#updateStaleTimeout"),hO=u(function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,Lt)):this.options.refetchInterval)??!1},"#computeRefetchInterval"),dO=u(function(n){wt(this,be,fO).call(this),I(this,Ea,n),!(ty||Ji(this.options.enabled,k(this,Lt))===!1||!Mv(k(this,Ea))||k(this,Ea)===0)&&I(this,lc,setInterval(()=>{(this.options.refetchIntervalInBackground||FS.isFocused())&&wt(this,be,sm).call(this)},k(this,Ea)))},"#updateRefetchInterval"),uO=u(function(){wt(this,be,cO).call(this),wt(this,be,dO).call(this,wt(this,be,hO).call(this))},"#updateTimers"),pO=u(function(){k(this,oc)&&(clearTimeout(k(this,oc)),I(this,oc,void 0))},"#clearStaleTimeout"),fO=u(function(){k(this,lc)&&(clearInterval(k(this,lc)),I(this,lc,void 0))},"#clearRefetchInterval"),yO=u(function(){const n=k(this,Di).getQueryCache().build(k(this,Di),this.options);if(n===k(this,Lt))return;const t=k(this,Lt);I(this,Lt,n),I(this,jg,n.state),this.hasListeners()&&(t==null||t.removeObserver(this),n.addObserver(this))},"#updateQuery"),u3=u(function(n){ti.batch(()=>{n.listeners&&this.listeners.forEach(t=>{t(k(this,ki))}),k(this,Di).getQueryCache().notify({query:k(this,Lt),type:"observerResultsUpdated"})})},"#notify"),u(mO,"QueryObserver"),mO);function YR(n,t){return Ji(t.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&t.retryOnMount===!1)}h(YR,"Mv");u(YR,"shouldLoadOnMount");function ak(n,t){return YR(n,t)||n.state.data!==void 0&&_v(n,t,t.refetchOnMount)}h(ak,"oy");u(ak,"shouldFetchOnMount");function _v(n,t,e){if(Ji(t.enabled,n)!==!1&&Ws(t.staleTime,n)!=="static"){const i=typeof e=="function"?e(n):e;return i==="always"||i!==!1&&I0(n,t)}return!1}h(_v,"eu");u(_v,"shouldFetchOn");function ok(n,t,e,i){return(n!==t||Ji(i.enabled,n)===!1)&&(!e.suspense||n.state.status!=="error")&&I0(n,e)}h(ok,"cy");u(ok,"shouldFetchOptionally");function I0(n,t){return Ji(t.enabled,n)!==!1&&n.isStaleByTime(Ws(t.staleTime,n))}h(I0,"ju");u(I0,"isStale");function GR(n,t){return!Tw(n.getCurrentResult(),t)}h(GR,"Pv");u(GR,"shouldAssignObserverCurrentProperties");var wO,xu,Ij=(wO=(xu=class extends HR{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",b=o&&p==="backward";return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:NR(e,r.data),hasPreviousPage:XR(e,r.data),isFetchNextPageError:f,isFetchingNextPage:m,isFetchPreviousPageError:w,isFetchingPreviousPage:b,isRefetchError:d&&!f&&!w,isRefetching:l&&!m&&!b}}},h(xu,"vn"),xu),u(wO,"InfiniteQueryObserver"),wO),za,_a,Wi,lr,La,Bg,gO,vO,ku,jt=(vO=(ku=class extends xy{constructor(t,e){super(),j(this,La),j(this,za),j(this,_a),j(this,Wi),j(this,lr),I(this,za,t),this.setOptions(e),this.bindMethods(),wt(this,La,Bg).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,za).defaultMutationOptions(t),Tw(this.options,i)||k(this,za).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Wi),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&ta(i.mutationKey)!==ta(this.options.mutationKey)?this.reset():((e=k(this,Wi))==null?void 0:e.state.status)==="pending"&&k(this,Wi).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=k(this,Wi))==null||t.removeObserver(this)}onMutationUpdate(t){wt(this,La,Bg).call(this),wt(this,La,gO).call(this,t)}getCurrentResult(){return k(this,_a)}reset(){var t;(t=k(this,Wi))==null||t.removeObserver(this),I(this,Wi,void 0),wt(this,La,Bg).call(this),wt(this,La,gO).call(this)}mutate(t,e){var i;return I(this,lr,e),(i=k(this,Wi))==null||i.removeObserver(this),I(this,Wi,k(this,za).getMutationCache().build(k(this,za),this.options)),k(this,Wi).addObserver(this),k(this,Wi).execute(t)}},h(ku,"gn"),ku),za=new WeakMap,_a=new WeakMap,Wi=new WeakMap,lr=new WeakMap,La=new WeakSet,Bg=u(function(){var n;const t=((n=k(this,Wi))==null?void 0:n.state)??HS();I(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"),gO=u(function(n){ti.batch(()=>{var t,e,i,s,r,a,o,l;if(k(this,lr)&&this.hasListeners()){const c=k(this,_a).variables,d=k(this,_a).context;(n==null?void 0:n.type)==="success"?((e=(t=k(this,lr)).onSuccess)==null||e.call(t,n.data,c,d),(s=(i=k(this,lr)).onSettled)==null||s.call(i,n.data,null,c,d)):(n==null?void 0:n.type)==="error"&&((a=(r=k(this,lr)).onError)==null||a.call(r,n.error,c,d),(l=(o=k(this,lr)).onSettled)==null||l.call(o,void 0,n.error,c,d))}this.listeners.forEach(c=>{c(k(this,_a))})})},"#notify"),u(vO,"MutationObserver"),vO);function GS(n){return n}h(GS,"Ew");u(GS,"defaultTransformerFn");function KR(n){return{mutationKey:n.options.mutationKey,state:n.state,...n.options.scope&&{scope:n.options.scope},...n.meta&&{meta:n.meta}}}h(KR,"Av");u(KR,"dehydrateMutation");function JR(n,t,e){var i;return{dehydratedAt:Date.now(),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(JR,"Ev");u(JR,"dehydrateQuery");function tE(n){return n.state.isPaused}h(tE,"Ov");u(tE,"defaultShouldDehydrateMutation");function eE(n){return n.state.status==="success"}h(eE,"Rv");u(eE,"defaultShouldDehydrateQuery");function iE(n){return!0}h(iE,"Lv");u(iE,"defaultShouldRedactErrors");function nE(n,t={}){var e,i,s,r;const a=t.shouldDehydrateMutation??((e=n.getDefaultOptions().dehydrate)==null?void 0:e.shouldDehydrateMutation)??tE,o=n.getMutationCache().getAll().flatMap(f=>a(f)?[KR(f)]:[]),l=t.shouldDehydrateQuery??((i=n.getDefaultOptions().dehydrate)==null?void 0:i.shouldDehydrateQuery)??eE,c=t.shouldRedactErrors??((s=n.getDefaultOptions().dehydrate)==null?void 0:s.shouldRedactErrors)??iE,d=t.serializeData??((r=n.getDefaultOptions().dehydrate)==null?void 0:r.serializeData)??GS,p=n.getQueryCache().getAll().flatMap(f=>l(f)?[JR(f,d,c)]:[]);return{mutations:o,queries:p}}h(nE,"Iv");u(nE,"dehydrate");function sE(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)??GS,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,dehydratedAt:w})=>{var b,x;const O=m?qR(m):void 0,P=d.data===void 0?O==null?void 0:O.data:d.data,A=P===void 0?P:a(P);let R=r.get(p);const T=(R==null?void 0:R.state.status)==="pending",Z=(R==null?void 0:R.state.fetchStatus)==="fetching";if(R){const z=O&&w!==void 0&&w>R.state.dataUpdatedAt;if(d.dataUpdatedAt>R.state.dataUpdatedAt||z){const{fetchStatus:q,...V}=d;R.setState({...V,data:A})}}else R=r.build(n,{...(b=n.getDefaultOptions().hydrate)==null?void 0:b.queries,...(x=e==null?void 0:e.defaultOptions)==null?void 0:x.queries,queryKey:c,queryHash:p,meta:f},{...d,data:A,fetchStatus:"idle",status:A!==void 0?"success":d.status});m&&!T&&!Z&&(w===void 0||w>R.state.dataUpdatedAt)&&R.fetch(void 0,{initialPromise:Promise.resolve(m).then(a)})})}h(sE,"Tv");u(sE,"hydrate");var Ct=(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))(Ct||{}),bn=(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))(bn||{}),rE=(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))(rE||{}),aE=(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))(aE||{}),oE=(n=>(n["2352a1c6-abc6-420e-8b85-ca7d5aed8779"]="agent_chat",n))(oE||{}),lE=(n=>(n.agent_chat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",n))(lE||{}),sn=(n=>(n.Unknown="unknown",n))(sn||{}),mr=(n=>(n.None="none",n.Read="read",n.Write="write",n.Admin="admin",n))(mr||{}),Fo=(n=>(n.List="list",n.Read="read",n.Create="create",n.Update="update",n.Delete="delete",n.Admin="admin",n))(Fo||{}),li=(n=>(n.App="app",n.File="file",n.Message="message",n.User="user",n.Comment="comment",n.Post="post",n))(li||{});function ll(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(ll,"tc");u(ll,"getApiOptions");async function Lv(n,t,e,i,s,r="GET",a=!1){const o=n.queryClient,l=ll(n,t,e,i,s,r);return a?(l.staleTime=1,await o.fetchQuery(l)):await o.ensureQueryData(l)}h(Lv,"su");u(Lv,"getApi");function cE(n,t,e=sn.Unknown,i){return e===sn.Unknown||typeof t=="number"?Lv(n,["apps",t]):Lv(n,["apps",t],void 0,void 0,JSON.stringify({type:e,...i}),"PUT")}h(cE,"Fv");u(cE,"getApp");function hE(n,t,e=sn.Unknown,i,s){return{queryKey:["apps",t],queryFn:u(async()=>{const r=[];e===sn.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(hE,"Dv");u(hE,"getOrCreateAppOptions");function dE(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(dE,"Hv");u(dE,"getCreateAppMutationOptions");function KS(n){return new jt(n.queryClient,dE(n))}h(KS,"Tw");u(KS,"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,"Fw");u(JS,"getAppSubscribeMutationOptions");function uE(n,t=[Ct.ChatRoom,Ct.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 ll(n,["apps","badge",t],r,i)}h(uE,"Vv");u(uE,"getBadgeOptions$1");function pE(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(pE,"Bv");u(pE,"getAppListOptions");const Zj=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 cE(r,a)}}}}},h(e,"t"),e),u(t,"WeavyApi"),t},"WeavyApiMixin"),Dj=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 fE(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}h(fE,"Nv");u(fE,"getDefaultExportFromCjs");function g1(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(g1,"Mh");u(g1,"commonjsRequire");var p3={exports:{}},f3;function yE(){return f3||(f3=1,function(n,t){var e;e=u(()=>(()=>{var vl,bl,Ol,$l,xl,kl,Sl,Pl,Cl,Ql,Ml,Tl,ys,Al,Rl,El,zl,_l,ms,Ll,Il,Zl,Dl,Oa,Wl,ql,Vl,Ul,jl,Fl,Bl,Nl,$a,Xl,Hl,Yl;var i={d:u((B,g)=>{for(var S in g)i.o(g,S)&&!i.o(B,S)&&Object.defineProperty(B,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=(B,g)=>Object.prototype.hasOwnProperty.call(B,g),i.r=B=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"t",{value:!0})};var s,r={};i.r(r),i.d(r,{AbortError:u(()=>p,"AbortError"),DefaultHttpClient:u(()=>dC,"DefaultHttpClient"),HttpClient:u(()=>V,"HttpClient"),HttpError:u(()=>o,"HttpError"),HttpResponse:u(()=>z,"HttpResponse"),HttpTransportType:u(()=>Pe,"HttpTransportType"),HubConnection:u(()=>vC,"HubConnection"),HubConnectionBuilder:u(()=>xZ,"HubConnectionBuilder"),HubConnectionState:u(()=>Kt,"HubConnectionState"),JsonHubProtocol:u(()=>EC,"JsonHubProtocol"),LogLevel:u(()=>s,"LogLevel"),MessageType:u(()=>Pt,"MessageType"),NullLogger:u(()=>K,"NullLogger"),Subject:u(()=>yC,"Subject"),TimeoutError:u(()=>c,"TimeoutError"),TransferFormat:u(()=>Ne,"TransferFormat"),VERSION:u(()=>N,"VERSION")});const a=(vl=class extends Error{constructor(g,S){const E=new.target.prototype;super(`${g}: Status code '${S}'`),this.statusCode=S,this.__proto__=E}},h(vl,"Qd"),vl);u(a,"i");let o=a;const l=(bl=class extends Error{constructor(g="A timeout occurred."){const S=new.target.prototype;super(g),this.__proto__=S}},h(bl,"Kd"),bl);u(l,"n");let c=l;const d=(Ol=class extends Error{constructor(g="An abort occurred."){const S=new.target.prototype;super(g),this.__proto__=S}},h(Ol,"Gd"),Ol);u(d,"r");let p=d;const f=($l=class extends Error{constructor(g,S){const E=new.target.prototype;super(g),this.transport=S,this.errorType="UnsupportedTransportError",this.__proto__=E}},h($l,"Zd"),$l);u(f,"o");let m=f;const w=(xl=class extends Error{constructor(g,S){const E=new.target.prototype;super(g),this.transport=S,this.errorType="DisabledTransportError",this.__proto__=E}},h(xl,"Yd"),xl);u(w,"h");let b=w;const x=(kl=class extends Error{constructor(g,S){const E=new.target.prototype;super(g),this.transport=S,this.errorType="FailedToStartTransportError",this.__proto__=E}},h(kl,"Xd"),kl);u(x,"c");let O=x;const P=(Sl=class extends Error{constructor(g){const S=new.target.prototype;super(g),this.errorType="FailedToNegotiateWithServerError",this.__proto__=S}},h(Sl,"Jd"),Sl);u(P,"a");let A=P;const R=(Pl=class extends Error{constructor(g,S){const E=new.target.prototype;super(g),this.innerErrors=S,this.__proto__=E}},h(Pl,"th"),Pl);u(R,"l");let T=R;const Z=(Cl=class{constructor(g,S,E){this.statusCode=g,this.statusText=S,this.content=E}},h(Cl,"eh"),Cl);u(Z,"u");let z=Z;const q=(Ql=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(Ql,"ih"),Ql);u(q,"d");let V=q;(function(B){B[B.Trace=0]="Trace",B[B.Debug=1]="Debug",B[B.Information=2]="Information",B[B.Warning=3]="Warning",B[B.Error=4]="Error",B[B.Critical=5]="Critical",B[B.None=6]="None"})(s||(s={}));const G=(Ml=class{constructor(){}log(g,S){}},h(Ml,"sh"),Ml);u(G,"f");let K=G;K.instance=new K;const N="8.0.7",st=(Tl=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,E){if(!(g in S))throw new Error(`Unknown ${E} value: ${g}.`)}},h(Tl,"rh"),Tl);u(st,"w");let tt=st;const Mt=(ys=class{static get isBrowser(){return!ys.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!ys.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!ys.isNode&&typeof window=="object"&&window.document===void 0}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}},h(ys,"Sr"),ys);u(Mt,"g");let bt=Mt;function Zt(B,g){let S="";return qt(B)?(S=`Binary data of length ${B.byteLength}`,g&&(S+=`. Content: '${function(E){const _=new Uint8Array(E);let D="";return _.forEach(U=>{D+=`0x${U<16?"0":""}${U.toString(16)} `}),D.substr(0,D.length-1)}(B)}'`)):typeof B=="string"&&(S=`String data of length ${B.length}`,g&&(S+=`. Content: '${B}'`)),S}h(Zt,"N"),u(Zt,"m");function qt(B){return B&&typeof ArrayBuffer<"u"&&(B instanceof ArrayBuffer||B.constructor&&B.constructor.name==="ArrayBuffer")}h(qt,"O"),u(qt,"y");async function Vt(B,g,S,E,_,D){const U={},[ct,ht]=ge();U[ct]=ht,B.log(s.Trace,`(${g} transport) sending data. ${Zt(_,D.logMessageContent)}.`);const At=qt(_)?"arraybuffer":"text",Yt=await S.post(E,{content:_,headers:{...U,...D.headers},responseType:At,timeout:D.timeout,withCredentials:D.withCredentials});B.log(s.Trace,`(${g} transport) request complete. Response status: ${Yt.statusCode}.`)}h(Vt,"F"),u(Vt,"b");const Oi=(Al=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(Al,"nh"),Al);u(Oi,"v");let _e=Oi;const ue=(Rl=class{constructor(g){this.l=g,this.out=console}log(g,S){if(g>=this.l){const E=`[${new Date().toISOString()}] ${s[g]}: ${S}`;switch(g){case s.Critical:case s.Error:this.out.error(E);break;case s.Warning:this.out.warn(E);break;case s.Information:this.out.info(E);break;default:this.out.log(E)}}}},h(Rl,"ah"),Rl);u(ue,"E");let ie=ue;function ge(){let B="X-SignalR-User-Agent";return bt.isNode&&(B="User-Agent"),[B,$i(N,Li(),bt.isNode?"NodeJS":"Browser",Yi())]}h(ge,"U"),u(ge,"$");function $i(B,g,S,E){let _="Microsoft SignalR/";const D=B.split(".");return _+=`${D[0]}.${D[1]}`,_+=` (${B}; `,_+=g&&g!==""?`${g}; `:"Unknown OS; ",_+=`${S}`,_+=E?`; ${E}`:"; Unknown Runtime Version",_+=")",_}h($i,"j"),u($i,"C");function Li(){if(!bt.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}h(Li,"J"),u(Li,"S");function Yi(){if(bt.isNode)return process.versions.node}h(Yi,"wt"),u(Yi,"k");function Ht(B){return B.stack?B.stack:B.message?B.message:`${B}`}h(Ht,"Y"),u(Ht,"P");const fn=(El=class extends V{constructor(g){if(super(),this.u=g,typeof fetch>"u"||bt.isNode){const S=g1;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=g1;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 E;g.abortSignal&&(g.abortSignal.onabort=()=>{S.abort(),E=new p});let _,D=null;if(g.timeout){const ht=g.timeout;D=setTimeout(()=>{S.abort(),this.u.log(s.Warning,"Timeout from HTTP request."),E=new c},ht)}g.content===""&&(g.content=void 0),g.content&&(g.headers=g.headers||{},qt(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(ht){throw E||(this.u.log(s.Warning,`Error from HTTP request. ${ht}.`),ht)}finally{D&&clearTimeout(D),g.abortSignal&&(g.abortSignal.onabort=null)}if(!_.ok){const ht=await gl(_,"text");throw new o(ht||_.statusText,_.status)}const U=gl(_,g.responseType),ct=await U;return new z(_.status,_.statusText,ct)}getCookieString(g){let S="";return bt.isNode&&this.p&&this.p.getCookies(g,(E,_)=>S=_.join("; ")),S}},h(El,"oh"),El);u(fn,"T");let va=fn;function gl(B,g){let S;switch(g){case"arraybuffer":S=B.arrayBuffer();break;case"text":default:S=B.text();break;case"blob":case"document":case"json":throw new Error(`${g} is not supported.`)}return S}h(gl,"Nt"),u(gl,"I");const cC=(zl=class extends V{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,E)=>{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&&(qt(g.content)?_.setRequestHeader("Content-Type","application/octet-stream"):_.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const D=g.headers;D&&Object.keys(D).forEach(U=>{_.setRequestHeader(U,D[U])}),g.responseType&&(_.responseType=g.responseType),g.abortSignal&&(g.abortSignal.onabort=()=>{_.abort(),E(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)):E(new o(_.response||_.responseText||_.statusText,_.status))},_.onerror=()=>{this.u.log(s.Warning,`Error from HTTP request. ${_.status}: ${_.statusText}.`),E(new o(_.statusText,_.status))},_.ontimeout=()=>{this.u.log(s.Warning,"Timeout from HTTP request."),E(new c)},_.send(g.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}},h(zl,"ch"),zl);u(cC,"_");let dZ=cC;const hC=(_l=class extends V{constructor(g){if(super(),typeof fetch<"u"||bt.isNode)this.$=new va(g);else{if(typeof XMLHttpRequest>"u")throw new Error("No usable HttpClient found.");this.$=new dZ(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(_l,"lh"),_l);u(hC,"H");let dC=hC;const uC=(ms=class{static write(g){return`${g}${ms.RecordSeparator}`}static parse(g){if(g[g.length-1]!==ms.RecordSeparator)throw new Error("Message is incomplete.");const S=g.split(ms.RecordSeparator);return S.pop(),S}},h(ms,"Ar"),ms);u(uC,"D");let fs=uC;fs.RecordSeparatorCode=30,fs.RecordSeparator=String.fromCharCode(fs.RecordSeparatorCode);const pC=(Ll=class{writeHandshakeRequest(g){return fs.write(JSON.stringify(g))}parseHandshakeResponse(g){let S,E;if(qt(g)){const U=new Uint8Array(g),ct=U.indexOf(fs.RecordSeparatorCode);if(ct===-1)throw new Error("Message is incomplete.");const ht=ct+1;S=String.fromCharCode.apply(null,Array.prototype.slice.call(U.slice(0,ht))),E=U.byteLength>ht?U.slice(ht).buffer:null}else{const U=g,ct=U.indexOf(fs.RecordSeparator);if(ct===-1)throw new Error("Message is incomplete.");const ht=ct+1;S=U.substring(0,ht),E=U.length>ht?U.substring(ht):null}const _=fs.parse(S),D=JSON.parse(_[0]);if(D.type)throw new Error("Expected a handshake response from the server.");return[E,D]}},h(Ll,"dh"),Ll);u(pC,"R");let uZ=pC;var Pt,Kt;(function(B){B[B.Invocation=1]="Invocation",B[B.StreamItem=2]="StreamItem",B[B.Completion=3]="Completion",B[B.StreamInvocation=4]="StreamInvocation",B[B.CancelInvocation=5]="CancelInvocation",B[B.Ping=6]="Ping",B[B.Close=7]="Close",B[B.Ack=8]="Ack",B[B.Sequence=9]="Sequence"})(Pt||(Pt={}));const fC=(Il=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 _e(this,g)}},h(Il,"hh"),Il);u(fC,"U");let yC=fC;const mC=(Zl=class{constructor(g,S,E){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=E}async A(g){const S=this.D.writeMessage(g);let E=Promise.resolve();if(this.U(g)){this.k++;let _=u(()=>{},"t"),D=u(()=>{},"i");qt(S)?this._+=S.byteLength:this._+=S.length,this._>=this.C&&(E=new Promise((U,ct)=>{_=U,D=ct})),this.S.push(new fZ(S,this.k,_,D))}try{this.H||await this.R.send(S)}catch{this.L()}await E}N(g){let S=-1;for(let E=0;E<this.S.length;E++){const _=this.S[E];if(_.q<=g.sequenceId)S=E,qt(_.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===Pt.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:Pt.Sequence,sequenceId:g}));const S=this.S;for(const E of S)await this.R.send(E.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 Pt.Invocation:case Pt.StreamItem:case Pt.Completion:case Pt.StreamInvocation:case Pt.CancelInvocation:return!0;case Pt.Close:case Pt.Sequence:case Pt.Ping:case Pt.Ack:return!1}}O(){this.V===void 0&&(this.V=setTimeout(async()=>{try{this.H||await this.R.send(this.D.writeMessage({type:Pt.Ack,sequenceId:this.I}))}catch{}clearTimeout(this.V),this.V=void 0},1e3))}},h(Zl,"uh"),Zl);u(mC,"L");let pZ=mC;const wC=(Dl=class{constructor(g,S,E,_){this.M=g,this.q=S,this.j=E,this.J=_}},h(Dl,"ph"),Dl);u(wC,"N");let fZ=wC;(function(B){B.Disconnected="Disconnected",B.Connecting="Connecting",B.Connected="Connected",B.Disconnecting="Disconnecting",B.Reconnecting="Reconnecting"})(Kt||(Kt={}));const gC=(Oa=class{static create(g,S,E,_,D,U,ct){return new Oa(g,S,E,_,D,U,ct)}constructor(g,S,E,_,D,U,ct){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")},tt.isRequired(g,"connection"),tt.isRequired(S,"logger"),tt.isRequired(E,"protocol"),this.serverTimeoutInMilliseconds=D??3e4,this.keepAliveIntervalInMilliseconds=U??15e3,this.Y=ct??1e5,this.u=S,this.D=E,this.connection=g,this.Z=_,this.tt=new uZ,this.connection.onreceive=ht=>this.et(ht),this.connection.onclose=ht=>this.st(ht),this.it={},this.nt={},this.rt=[],this.ot=[],this.ht=[],this.ct=0,this.lt=!1,this.ut=Kt.Disconnected,this.dt=!1,this.ft=this.D.writeMessage({type:Pt.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!==Kt.Disconnected&&this.ut!==Kt.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!==Kt.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this.ut=Kt.Connecting,this.u.log(s.Debug,"Starting HubConnection.");try{await this.yt(),bt.isBrowser&&window.document.addEventListener("freeze",this.G),this.ut=Kt.Connected,this.dt=!0,this.u.log(s.Debug,"HubConnection connected successfully.")}catch(g){return this.ut=Kt.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,E)=>{this.vt=S,this.Et=E});await this.connection.start(this.D.transferFormat);try{let S=this.D.version;this.connection.features.reconnect||(S=1);const E={protocol:this.D.name,version:S};if(this.u.log(s.Debug,"Sending handshake request."),await this.$t(this.tt.writeHandshakeRequest(E)),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 pZ(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===Kt.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===Kt.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=Kt.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===Kt.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[E,_]=this.Ut(S),D=this.Lt(g,S,_);let U;const ct=new yC;return ct.cancelCallback=()=>{const ht=this.Nt(D.invocationId);return delete this.it[D.invocationId],U.then(()=>this.xt(ht))},this.it[D.invocationId]=(ht,At)=>{At?ct.error(At):ht&&(ht.type===Pt.Completion?ht.error?ct.error(new Error(ht.error)):ct.complete():ct.next(ht.item))},U=this.xt(D).catch(ht=>{ct.error(ht),delete this.it[D.invocationId]}),this.qt(E,U),ct}$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[E,_]=this.Ut(S),D=this.xt(this.Mt(g,S,!0,_));return this.qt(E,D),D}invoke(g,...S){const[E,_]=this.Ut(S),D=this.Mt(g,S,!1,_);return new Promise((U,ct)=>{this.it[D.invocationId]=(At,Yt)=>{Yt?ct(Yt):At&&(At.type===Pt.Completion?At.error?ct(new Error(At.error)):U(At.result):ct(new Error(`Unexpected message type: ${At.type}`)))};const ht=this.xt(D).catch(At=>{ct(At),delete this.it[D.invocationId]});this.qt(E,ht)})}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 E=this.nt[g];if(E)if(S){const _=E.indexOf(S);_!==-1&&(E.splice(_,1),E.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 E of S)if(!this.Pt||this.Pt.W(E))switch(E.type){case Pt.Invocation:this.Wt(E).catch(_=>{this.u.log(s.Error,`Invoke client method threw error: ${Ht(_)}`)});break;case Pt.StreamItem:case Pt.Completion:{const _=this.it[E.invocationId];if(_){E.type===Pt.Completion&&delete this.it[E.invocationId];try{_(E)}catch(D){this.u.log(s.Error,`Stream callback threw error: ${Ht(D)}`)}}break}case Pt.Ping:break;case Pt.Close:{this.u.log(s.Information,"Close message received from server.");const _=E.error?new Error("Server returned an error on close: "+E.error):void 0;E.allowReconnect===!0?this.connection.stop(_):this.It=this._t(_);break}case Pt.Ack:this.Pt&&this.Pt.N(E);break;case Pt.Sequence:this.Pt&&this.Pt.F(E);break;default:this.u.log(s.Warning,`Invalid message type: ${E.type}.`)}}this.St()}jt(g){let S,E;try{[E,S]=this.tt.parseHandshakeResponse(g)}catch(_){const D="Error parsing handshake response: "+_;this.u.log(s.Error,D);const U=new Error(D);throw this.Et(U),U}if(S.error){const _="Server returned handshake error: "+S.error;this.u.log(s.Error,_);const D=new Error(_);throw this.Et(D),D}return this.u.log(s.Debug,"Server handshake complete."),this.vt(),E}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===Kt.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(),E=this.nt[S];if(!E)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 _=E.slice(),D=!!g.invocationId;let U,ct,ht;for(const At of _)try{const Yt=U;U=await At.apply(this,g.arguments),D&&U&&Yt&&(this.u.log(s.Error,`Multiple results provided for '${S}'. Sending error to server.`),ht=this.Bt(g.invocationId,"Client provided multiple results.",null)),ct=void 0}catch(Yt){ct=Yt,this.u.log(s.Error,`A callback for the method '${S}' threw error '${Yt}'.`)}ht?await this.xt(ht):D?(ct?ht=this.Bt(g.invocationId,`${ct}`,null):U!==void 0?ht=this.Bt(g.invocationId,null,U):(this.u.log(s.Warning,`No result given for '${S}' method and invocation ID '${g.invocationId}'.`),ht=this.Bt(g.invocationId,"Client didn't provide a result.",null)),await this.xt(ht)):U&&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===Kt.Disconnecting?this.Dt(g):this.ut===Kt.Connected&&this.Z?this.Jt(g):this.ut===Kt.Connected&&this.Dt(g)}Dt(g){if(this.dt){this.ut=Kt.Disconnected,this.dt=!1,this.Pt&&(this.Pt.X(g??new Error("Connection closed.")),this.Pt=void 0),bt.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 E=0,_=g!==void 0?g:new Error("Attempting to reconnect due to a unknown error."),D=this.zt(E++,0,_);if(D===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=Kt.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(U=>U.apply(this,[g]))}catch(U){this.u.log(s.Error,`An onreconnecting callback called with error '${g}' threw error '${U}'.`)}if(this.ut!==Kt.Reconnecting)return void this.u.log(s.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;D!==null;){if(this.u.log(s.Information,`Reconnect attempt number ${E} will start in ${D} ms.`),await new Promise(U=>{this.Ht=setTimeout(U,D)}),this.Ht=void 0,this.ut!==Kt.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=Kt.Connected,this.u.log(s.Information,"HubConnection reconnected successfully."),this.ht.length!==0)try{this.ht.forEach(U=>U.apply(this,[this.connection.connectionId]))}catch(U){this.u.log(s.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${U}'.`)}return}catch(U){if(this.u.log(s.Information,`Reconnect attempt failed because of error '${U}'.`),this.ut!==Kt.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===Kt.Disconnecting&&this.Dt());_=U instanceof Error?U:new Error(U.toString()),D=this.zt(E++,Date.now()-S,_)}}this.u.log(s.Information,`Reconnect retries have been exhausted after ${Date.now()-S} ms and ${E} failed attempts. Connection disconnecting.`),this.Dt()}zt(g,S,E){try{return this.Z.nextRetryDelayInMilliseconds({elapsedMilliseconds:S,previousRetryCount:g,retryReason:E})}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(E=>{const _=S[E];try{_(null,g)}catch(D){this.u.log(s.Error,`Stream 'error' callback called with '${g}' threw error: ${Ht(D)}`)}})}Tt(){this.Ft&&(clearTimeout(this.Ft),this.Ft=void 0)}Ct(){this.Ot&&clearTimeout(this.Ot)}Mt(g,S,E,_){if(E)return _.length!==0?{arguments:S,streamIds:_,target:g,type:Pt.Invocation}:{arguments:S,target:g,type:Pt.Invocation};{const D=this.ct;return this.ct++,_.length!==0?{arguments:S,invocationId:D.toString(),streamIds:_,target:g,type:Pt.Invocation}:{arguments:S,invocationId:D.toString(),target:g,type:Pt.Invocation}}}qt(g,S){if(g.length!==0){S||(S=Promise.resolve());for(const E in g)g[E].subscribe({complete:u(()=>{S=S.then(()=>this.xt(this.Bt(E)))},"complete"),error:u(_=>{let D;D=_ instanceof Error?_.message:_&&_.toString?_.toString():"Unknown error",S=S.then(()=>this.xt(this.Bt(E,D)))},"error"),next:u(_=>{S=S.then(()=>this.xt(this.Vt(E,_)))},"next")})}}Ut(g){const S=[],E=[];for(let _=0;_<g.length;_++){const D=g[_];if(this.Kt(D)){const U=this.ct;this.ct++,S[U]=D,E.push(U.toString()),g.splice(_,1)}}return[S,E]}Kt(g){return g&&g.subscribe&&typeof g.subscribe=="function"}Lt(g,S,E){const _=this.ct;return this.ct++,E.length!==0?{arguments:S,invocationId:_.toString(),streamIds:E,target:g,type:Pt.StreamInvocation}:{arguments:S,invocationId:_.toString(),target:g,type:Pt.StreamInvocation}}Nt(g){return{invocationId:g,type:Pt.CancelInvocation}}Vt(g,S){return{invocationId:g,item:S,type:Pt.StreamItem}}Bt(g,S,E){return S?{error:S,invocationId:g,type:Pt.Completion}:{invocationId:g,result:E,type:Pt.Completion}}At(){return{type:Pt.Close}}},h(Oa,"kl"),Oa);u(gC,"q");let vC=gC;const yZ=[0,2e3,1e4,3e4,null],bC=(Wl=class{constructor(g){this.Gt=g!==void 0?[...g,null]:yZ}nextRetryDelayInMilliseconds(g){return this.Gt[g.previousRetryCount]}},h(Wl,"yh"),Wl);u(bC,"j");let OC=bC;const $C=(ql=class{},h(ql,"wh"),ql);u($C,"W");let ba=$C;ba.Authorization="Authorization",ba.Cookie="Cookie";const xC=(Vl=class extends V{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 E=await this.Qt.send(g);return S&&E.statusCode===401&&this.Yt?(this.Zt=await this.Yt(),this.te(g),await this.Qt.send(g)):E}te(g){g.headers||(g.headers={}),this.Zt?g.headers[ba.Authorization]=`Bearer ${this.Zt}`:this.Yt&&g.headers[ba.Authorization]&&delete g.headers[ba.Authorization]}getCookieString(g){return this.Qt.getCookieString(g)}},h(Vl,"fh"),Vl);u(xC,"O");let mZ=xC;var Pe,Ne;(function(B){B[B.None=0]="None",B[B.WebSockets=1]="WebSockets",B[B.ServerSentEvents=2]="ServerSentEvents",B[B.LongPolling=4]="LongPolling"})(Pe||(Pe={})),function(B){B[B.Text=1]="Text",B[B.Binary=2]="Binary"}(Ne||(Ne={}));const kC=(Ul=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(Ul,"mh"),Ul);u(kC,"X");let wZ=kC;const SC=(jl=class{get pollAborted(){return this.se.aborted}constructor(g,S,E){this.$=g,this.u=S,this.se=new wZ,this.ie=E,this.ne=!1,this.onreceive=null,this.onclose=null}async connect(g,S){if(tt.isRequired(g,"url"),tt.isRequired(S,"transferFormat"),tt.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[E,_]=ge(),D={[E]:_,...this.ie.headers},U={abortSignal:this.se.signal,headers:D,timeout:1e5,withCredentials:this.ie.withCredentials};S===Ne.Binary&&(U.responseType="arraybuffer");const ct=`${g}&_=${Date.now()}`;this.u.log(s.Trace,`(LongPolling transport) polling: ${ct}.`);const ht=await this.$.get(ct,U);ht.statusCode!==200?(this.u.log(s.Error,`(LongPolling transport) Unexpected response code: ${ht.statusCode}.`),this.oe=new o(ht.statusText||"",ht.statusCode),this.ne=!1):this.ne=!0,this.he=this.ce(this.re,U)}async ce(g,S){try{for(;this.ne;)try{const E=`${g}&_=${Date.now()}`;this.u.log(s.Trace,`(LongPolling transport) polling: ${E}.`);const _=await this.$.get(E,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(E){this.ne?E instanceof c?this.u.log(s.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.oe=E,this.ne=!1):this.u.log(s.Trace,`(LongPolling transport) Poll errored after shutdown: ${E.message}`)}}finally{this.u.log(s.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.ae()}}async send(g){return this.ne?Vt(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,E]=ge();g[S]=E;const _={headers:{...g,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials};let D;try{await this.$.delete(this.re,_)}catch(U){D=U}D?D instanceof o&&(D.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: ${D}`)):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(jl,"vh"),jl);u(SC,"J");let PC=SC;const CC=(Fl=class{constructor(g,S,E,_){this.$=g,this.Zt=S,this.u=E,this.ie=_,this.onreceive=null,this.onclose=null}async connect(g,S){return tt.isRequired(g,"url"),tt.isRequired(S,"transferFormat"),tt.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((E,_)=>{let D,U=!1;if(S===Ne.Text){if(bt.isBrowser||bt.isWebWorker)D=new this.ie.EventSource(g,{withCredentials:this.ie.withCredentials});else{const ct=this.$.getCookieString(g),ht={};ht.Cookie=ct;const[At,Yt]=ge();ht[At]=Yt,D=new this.ie.EventSource(g,{withCredentials:this.ie.withCredentials,headers:{...ht,...this.ie.headers}})}try{D.onmessage=ct=>{if(this.onreceive)try{this.u.log(s.Trace,`(SSE transport) data received. ${Zt(ct.data,this.ie.logMessageContent)}.`),this.onreceive(ct.data)}catch(ht){return void this.le(ht)}},D.onerror=ct=>{U?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."))},D.onopen=()=>{this.u.log(s.Information,`SSE connected to ${this.re}`),this.ue=D,U=!0,E()}}catch(ct){return void _(ct)}}else _(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})}async send(g){return this.ue?Vt(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(Fl,"gh"),Fl);u(CC,"z");let gZ=CC;const QC=(Bl=class{constructor(g,S,E,_,D,U){this.u=E,this.Yt=S,this.de=_,this.fe=D,this.$=g,this.onreceive=null,this.onclose=null,this.pe=U}async connect(g,S){let E;return tt.isRequired(g,"url"),tt.isRequired(S,"transferFormat"),tt.isIn(S,Ne,"transferFormat"),this.u.log(s.Trace,"(WebSockets transport) Connecting."),this.Yt&&(E=await this.Yt()),new Promise((_,D)=>{let U;g=g.replace(/^http/,"ws");const ct=this.$.getCookieString(g);let ht=!1;if(bt.isNode||bt.isReactNative){const At={},[Yt,Gl]=ge();At[Yt]=Gl,E&&(At[ba.Authorization]=`Bearer ${E}`),ct&&(At[ba.Cookie]=ct),U=new this.fe(g,void 0,{headers:{...At,...this.pe}})}else E&&(g+=(g.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(E)}`);U||(U=new this.fe(g)),S===Ne.Binary&&(U.binaryType="arraybuffer"),U.onopen=At=>{this.u.log(s.Information,`WebSocket connected to ${g}.`),this.we=U,ht=!0,_()},U.onerror=At=>{let Yt=null;Yt=typeof ErrorEvent<"u"&&At instanceof ErrorEvent?At.error:"There was an error with the transport",this.u.log(s.Information,`(WebSockets transport) ${Yt}.`)},U.onmessage=At=>{if(this.u.log(s.Trace,`(WebSockets transport) data received. ${Zt(At.data,this.de)}.`),this.onreceive)try{this.onreceive(At.data)}catch(Yt){return void this.le(Yt)}},U.onclose=At=>{if(ht)this.le(At);else{let Yt=null;Yt=typeof ErrorEvent<"u"&&At instanceof ErrorEvent?At.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.",D(new Error(Yt))}}})}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(Bl,"bh"),Bl);u(QC,"V");let vZ=QC;const MC=(Nl=class{constructor(g,S={}){var E;if(this.me=()=>{},this.features={},this.ye=1,tt.isRequired(g,"url"),this.u=(E=S.logger)===void 0?new ie(s.Information):E===null?K.instance:E.log!==void 0?E:new ie(E),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,D=null;if(bt.isNode){const U=g1;_=U("ws"),D=U("eventsource")}bt.isNode||typeof WebSocket>"u"||S.WebSocket?bt.isNode&&!S.WebSocket&&_&&(S.WebSocket=_):S.WebSocket=WebSocket,bt.isNode||typeof EventSource>"u"||S.EventSource?bt.isNode&&!S.EventSource&&D!==void 0&&(S.EventSource=D):S.EventSource=EventSource,this.$=new mZ(S.httpClient||new dC(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,tt.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 OZ(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 E=null,_=0;do{if(E=await this.Pe(S),this.ut==="Disconnecting"||this.ut==="Disconnected")throw new p("The connection was stopped during negotiation.");if(E.error)throw new Error(E.error);if(E.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(E.url&&(S=E.url),E.accessToken){const D=E.accessToken;this.Yt=()=>D,this.$.Zt=D,this.$.Yt=void 0}_++}while(E.url&&_<100);if(_===100&&E.url)throw new Error("Negotiate redirection limit exceeded.");await this.Te(S,this.ie.transport,E,g)}this.transport instanceof PC&&(this.features.inherentKeepAlive=!0),this.ut==="Connecting"&&(this.u.log(s.Debug,"The HttpConnection connected successfully."),this.ut="Connected")}catch(E){return this.u.log(s.Error,"Failed to start the connection: "+E),this.ut="Disconnected",this.transport=void 0,this.me(),Promise.reject(E)}}async Pe(g){const S={},[E,_]=ge();S[E]=_;const D=this.Ie(g);this.u.log(s.Debug,`Sending negotiation request: ${D}.`);try{const U=await this.$.post(D,{content:"",headers:{...S,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials});if(U.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${U.statusCode}'`));const ct=JSON.parse(U.content);return(!ct.negotiateVersion||ct.negotiateVersion<1)&&(ct.connectionToken=ct.connectionId),ct.useStatefulReconnect&&this.ie._e!==!0?Promise.reject(new A("Client didn't negotiate Stateful Reconnect but the server did.")):ct}catch(U){let ct="Failed to complete negotiation with the server: "+U;return U instanceof o&&U.statusCode===404&&(ct+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this.u.log(s.Error,ct),Promise.reject(new A(ct))}}He(g,S){return S?g+(g.indexOf("?")===-1?"?":"&")+`id=${S}`:g}async Te(g,S,E,_){let D=this.He(g,E.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(D,_),void(this.connectionId=E.connectionId);const U=[],ct=E.availableTransports||[];let ht=E;for(const At of ct){const Yt=this.Re(At,S,_,(ht==null?void 0:ht.useStatefulReconnect)===!0);if(Yt instanceof Error)U.push(`${At.transport} failed:`),U.push(Yt);else if(this.De(Yt)){if(this.transport=Yt,!ht){try{ht=await this.Pe(g)}catch(Gl){return Promise.reject(Gl)}D=this.He(g,ht.connectionToken)}try{return await this.ke(D,_),void(this.connectionId=ht.connectionId)}catch(Gl){if(this.u.log(s.Error,`Failed to start the transport '${At.transport}': ${Gl}`),ht=void 0,U.push(new O(`${At.transport} failed: ${Gl}`,Pe[At.transport])),this.ut!=="Connecting"){const _C="Failed to select transport before stop() was called.";return this.u.log(s.Debug,_C),Promise.reject(new p(_C))}}}}return U.length>0?Promise.reject(new T(`Unable to connect to the server with any of the available transports. ${U.join(" ")}`,U)):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 vZ(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 gZ(this.$,this.$.Zt,this.u,this.ie);case Pe.LongPolling:return new PC(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 E=>{let _=!1;if(this.features.reconnect){try{this.features.disconnected(),await this.transport.connect(g,S),await this.features.resend()}catch{_=!0}_&&this.Ce(E)}else this.Ce(E)}:this.transport.onclose=E=>this.Ce(E),this.transport.connect(g,S)}Re(g,S,E,_){const D=Pe[g.transport];if(D==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(U,ct){return!U||(ct&U)!=0}(S,D))return this.u.log(s.Debug,`Skipping transport '${Pe[D]}' because it was disabled by the client.`),new b(`'${Pe[D]}' is disabled by the client.`,D);if(!(g.transferFormats.map(U=>Ne[U]).indexOf(E)>=0))return this.u.log(s.Debug,`Skipping transport '${Pe[D]}' because it does not support the requested transfer format '${Ne[E]}'.`),new Error(`'${Pe[D]}' does not support ${Ne[E]}.`);if(D===Pe.WebSockets&&!this.ie.WebSocket||D===Pe.ServerSentEvents&&!this.ie.EventSource)return this.u.log(s.Debug,`Skipping transport '${Pe[D]}' because it is not supported in your environment.'`),new m(`'${Pe[D]}' is not supported in your environment.`,D);this.u.log(s.Debug,`Selecting transport '${Pe[D]}'.`);try{return this.features.reconnect=D===Pe.WebSockets?_:void 0,this.Se(D)}catch(U){return U}}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(!bt.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 E=new URLSearchParams(S.searchParams);return E.has("negotiateVersion")||E.append("negotiateVersion",this.ye.toString()),E.has("useStatefulReconnect")?E.get("useStatefulReconnect")==="true"&&(this.ie._e=!0):this.ie._e===!0&&E.append("useStatefulReconnect","true"),S.search=E.toString(),S.toString()}},h(Nl,"xh"),Nl);u(MC,"K");let bZ=MC;const TC=($a=class{constructor(g){this.xe=g,this.Ae=[],this.Ue=!0,this.Le=new kg,this.Ne=new kg,this.qe=this.Me()}send(g){return this.je(g),this.Ne||(this.Ne=new kg),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 kg;const g=this.Ne;this.Ne=void 0;const S=typeof this.Ae[0]=="string"?this.Ae.join(""):$a.We(this.Ae);this.Ae.length=0;try{await this.xe.send(S),g.resolve()}catch(E){g.reject(E)}}}static We(g){const S=g.map(D=>D.byteLength).reduce((D,U)=>D+U),E=new Uint8Array(S);let _=0;for(const D of g)E.set(new Uint8Array(D),_),_+=D.byteLength;return E.buffer}},h($a,"_l"),$a);u(TC,"G");let OZ=TC;const AC=(Xl=class{constructor(){this.promise=new Promise((g,S)=>[this.j,this.Oe]=[g,S])}resolve(){this.j()}reject(g){this.Oe(g)}},h(Xl,"$h"),Xl);u(AC,"Q");let kg=AC;const RC=(Hl=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 E=fs.parse(g),_=[];for(const D of E){const U=JSON.parse(D);if(typeof U.type!="number")throw new Error("Invalid payload.");switch(U.type){case Pt.Invocation:this.U(U);break;case Pt.StreamItem:this.Fe(U);break;case Pt.Completion:this.Be(U);break;case Pt.Ping:case Pt.Close:break;case Pt.Ack:this.Xe(U);break;case Pt.Sequence:this.Je(U);break;default:S.log(s.Information,"Unknown message type '"+U.type+"' ignored.");continue}_.push(U)}return _}writeMessage(g){return fs.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(Hl,"Ch"),Hl);u(RC,"Y");let EC=RC;const $Z={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},zC=(Yl=class{configureLogging(g){if(tt.isRequired(g,"logging"),g.log!==void 0)this.logger=g;else if(typeof g=="string"){const S=function(E){const _=$Z[E.toLowerCase()];if(_!==void 0)return _;throw new Error(`Unknown log level: ${E}`)}(g);this.logger=new ie(S)}else this.logger=new ie(g);return this}withUrl(g,S){return tt.isRequired(g,"url"),tt.isNotEmpty(g,"url"),this.url=g,this.httpConnectionOptions=typeof S=="object"?{...this.httpConnectionOptions,...S}:{...this.httpConnectionOptions,transport:S},this}withHubProtocol(g){return tt.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 OC(g):this.reconnectPolicy=g:this.reconnectPolicy=new OC,this}withServerTimeout(g){return tt.isRequired(g,"milliseconds"),this.Ve=g,this}withKeepAliveInterval(g){return tt.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 bZ(this.url,g);return vC.create(S,this.logger||K.instance,this.protocol||new EC,this.reconnectPolicy,this.Ve,this.Ke,this.Y)}},h(Yl,"kh"),Yl);u(zC,"tt");let xZ=zC;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(B,g){return new Uint8Array(Array.prototype.slice.call(this,B,g))},"value"),writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,"forEach",{value:Array.prototype.forEach,writable:!0}),r})(),"e"),n.exports=e()}(p3)),p3.exports}h(yE,"jv");u(yE,"requireSignalr_min");var y3=yE();const Wj=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 y3.HubConnectionBuilder().configureLogging(y3.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(a=>{var o;console.info(this.weavyId,`SignalR reconnected ${a}`),this.connectionState="connected",this.networkStateIsPending=!1;for(let l=0;l<this._connectionEventListeners.length;l++)(o=this._connection)==null||o.invoke("Subscribe",this._connectionEventListeners[l].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 ${r.connectionId}`)}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,l;if(this.isDestroyed)throw new Ce;(o=this._resolveConnectionRequested)==null||o.call(this,!0);const c=s?s+":"+r:r;try{if(this._connectionEventListeners||await new Promise(d=>queueMicrotask(()=>d(!0))),this._connectionEventListeners.some(d=>d.name===c&&d.callback===a))throw new Error("Duplicate subscribe: "+c);if(this._connectionEventListeners.push({name:c,callback:a}),await this.whenConnectionStarted(),!this._connection)throw new Error("Connection not created");if(this._connection.on(c,a),await this._connection.invoke("Subscribe",c)===!1)throw new Error("Could not subscribe to "+c);return!0}catch(d){d instanceof Ce||console.error(this.weavyId,"Error in Subscribe:",d);const p=this._connectionEventListeners.findIndex(f=>f.name===c&&f.callback===a);return p!==-1&&(this._connectionEventListeners.splice(p,1),(l=this._connection)==null||l.off(c,a)),!1}}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 Iv=(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))(Iv||{});const qj=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":`${ae.sourceName}@${ae.version}`,"Content-Type":Iv.JSON},method:"GET"},o=aw(aw(Qj,a,!0),s,!0);return r?aw(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=Iv.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",`${ae.sourceName}@${ae.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"),mE="en",Vj=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:mt&&mt.tagName.toUpperCase()==="SCRIPT"&&mt.src||new URL("weavy.cjs",document.baseURI).href)||!new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:mt&&mt.tagName.toUpperCase()==="SCRIPT"&&mt.src||new URL("weavy.cjs",document.baseURI).href).href.startsWith(WEAVY_IMPORT_URL))?WEAVY_IMPORT_URL:typeof document>"u"?require("url").pathToFileURL(__filename).href:mt&&mt.tagName.toUpperCase()==="SCRIPT"&&mt.src||new URL("weavy.cjs",document.baseURI).href).href).then(s=>s.svSE)]]),this._locale=t.sourceLocale}static get sourceLocale(){try{return mE}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}=NU({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"),Uj=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 v1(){}h(v1,"Sh");u(v1,"noop");function wE({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:gE(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:v1,restoreClient:v1,removeClient:v1}}h(wE,"Zv");u(wE,"createSyncStoragePersister");function gE(n,t=100){let e=null,i;return function(...s){i=s,e===null&&(e=setTimeout(()=>{n(...i),e=null},t))}}h(gE,"Yv");u(gE,"throttle$1");var jj=["added","removed","updated"];function lk(n){return jj.includes(n)}h(lk,"hy");u(lk,"isCacheEventType");async function vE({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();sE(n,r.clientState,s)}else return t.removeClient()}catch(r){throw await t.removeClient(),r}}h(vE,"Jv");u(vE,"persistQueryClientRestore");async function ck({queryClient:n,persister:t,buster:e="",dehydrateOptions:i}){const s={buster:e,timestamp:Date.now(),clientState:nE(n,i)};await t.persistClient(s)}h(ck,"uy");u(ck,"persistQueryClientSave");function bE(n){const t=n.queryClient.getQueryCache().subscribe(i=>{lk(i.type)&&ck(n)}),e=n.queryClient.getMutationCache().subscribe(i=>{lk(i.type)&&ck(n)});return()=>{t(),e()}}h(bE,"t1");u(bE,"persistQueryClientSubscribe");const Fj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._queryClient=new Lj({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=wE({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 vE(s),this._unsubscribeQueryClient=bE(s)}catch{console.warn(this.weavyId,"Query cache persister not available.")}this.host.isConnected&&this._queryClient.mount(),this._hostIsConnectedObserver=e9(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 reset(){var s;await super.reset(),await this._queryClient.cancelQueries(),await((s=this._sessionStoragePersister)==null?void 0:s.removeClient()),await this.queryClient.resetQueries()}async disconnectQueryClient(){var s,r;console.info(this.weavyId,"Query client disconnected"),await this._queryClient.cancelQueries(),await((s=this._sessionStoragePersister)==null?void 0: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"),Bj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._notificationEvents=ae.defaults.notificationEvents??!1,this.dispatchRealtimeEvent=r=>{ei();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"),Nj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s)}set annotations(s){this._annotations=s,this.updateContext()}get annotations(){return this._annotations??ae.defaults.annotations}set notifications(s){this._notifications=s,this.updateContext()}get notifications(){return this._notifications??ae.defaults.notifications}set notificationsBadge(s){this._notificationsBadge=s,this.updateContext()}get notificationsBadge(){return this._notificationsBadge??ae.defaults.notificationsBadge}set reactions(s){this._reactions=s,this.updateContext()}get reactions(){return this._reactions??ae.defaults.reactions}},h(e,"t"),e),u(t,"WeavySettings"),t},"WeavySettingsMixin");function di(n){return n<0?-1:n===0?0:1}h(di,"Se");u(di,"signum");function jc(n,t,e){return(1-e)*n+e*t}h(jc,"wc");u(jc,"lerp");function OE(n,t,e){return e<n?n:e>t?t:e}h(OE,"r1");u(OE,"clampInt");function Rw(n,t,e){return e<n?n:e>t?t:e}h(Rw,"ql");u(Rw,"clampDouble");function Z0(n){return n=n%360,n<0&&(n=n+360),n}h(Z0,"Wu");u(Z0,"sanitizeDegreesDouble");function $E(n,t){return Z0(t-n)<=180?1:-1}h($E,"n1");u($E,"rotationDirection");function xE(n,t){return 180-Math.abs(Math.abs(n-t)-180)}h(xE,"a1");u(xE,"differenceDegrees");function Zv(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(Zv,"ru");u(Zv,"matrixMultiply");const Xj=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],Hj=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],Yj=[95.047,100,108.883];function D0(n,t,e){return(255<<24|(n&255)<<16|(t&255)<<8|e&255)>>>0}h(D0,"Qu");u(D0,"argbFromRgb");function hk(n){const t=Sr(n[0]),e=Sr(n[1]),i=Sr(n[2]);return D0(t,e,i)}h(hk,"py");u(hk,"argbFromLinrgb");function tP(n){return n>>16&255}h(tP,"Hw");u(tP,"redFromArgb");function eP(n){return n>>8&255}h(eP,"Vw");u(eP,"greenFromArgb");function iP(n){return n&255}h(iP,"Bw");u(iP,"blueFromArgb");function kE(n,t,e){const i=Hj,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=Sr(s),l=Sr(r),c=Sr(a);return D0(o,l,c)}h(kE,"d1");u(kE,"argbFromXyz");function SE(n){const t=Xa(tP(n)),e=Xa(eP(n)),i=Xa(iP(n));return Zv([t,e,i],Xj)}h(SE,"h1");u(SE,"xyzFromArgb");function PE(n){const t=Ts(n),e=Sr(t);return D0(e,e,e)}h(PE,"u1");u(PE,"argbFromLstar");function Dv(n){const t=SE(n)[1];return 116*nP(t/100)-16}h(Dv,"nu");u(Dv,"lstarFromArgb");function Ts(n){return 100*QE((n+16)/116)}h(Ts,"gs");u(Ts,"yFromLstar");function Wv(n){return nP(n/100)*116-16}h(Wv,"au");u(Wv,"lstarFromY");function Xa(n){const t=n/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}h(Xa,"Wr");u(Xa,"linearized");function Sr(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,OE(0,255,Math.round(e*255))}h(Sr,"rr");u(Sr,"delinearized");function CE(){return Yj}h(CE,"p1");u(CE,"whitePointD65");function nP(n){const t=.008856451679035631,e=24389/27;return n>t?Math.pow(n,1/3):(e*n+16)/116}h(nP,"Uw");u(nP,"labF");function QE(n){const t=.008856451679035631,e=24389/27,i=n*n*n;return i>t?i:(116*n-16)/e}h(QE,"y1");u(QE,"labInvf");var Ro;const ME=(Ro=class{static make(t=CE(),e=200/Math.PI*Ts(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?jc(.59,.69,(d-.9)*10):jc(.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],b=1/(5*e+1),x=b*b*b*b,O=1-x,P=x*e+.1*O*O*Math.cbrt(5*e),A=Ts(i)/t[1],R=1.48+Math.sqrt(A),T=.725/Math.pow(A,.2),Z=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)],q=[400*z[0]/(z[0]+27.13),400*z[1]/(z[1]+27.13),400*z[2]/(z[2]+27.13)],V=(2*q[0]+q[1]+.05*q[2])*T;return new Ro(A,V,T,Z,p,m,w,P,Math.pow(P,.25),R)}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,"yd"),Ro);u(ME,"ViewingConditions");let As=ME;As.DEFAULT=As.make();var Ui;const TE=(Ui=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 Ui.fromIntInViewingConditions(t,As.DEFAULT)}static fromIntInViewingConditions(t,e){const i=(t&16711680)>>16,s=(t&65280)>>8,r=t&255,a=Xa(i),o=Xa(s),l=Xa(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,b=e.rgbD[0]*f,x=e.rgbD[1]*m,O=e.rgbD[2]*w,P=Math.pow(e.fl*Math.abs(b)/100,.42),A=Math.pow(e.fl*Math.abs(x)/100,.42),R=Math.pow(e.fl*Math.abs(O)/100,.42),T=di(b)*400*P/(P+27.13),Z=di(x)*400*A/(A+27.13),z=di(O)*400*R/(R+27.13),q=(11*T+-12*Z+z)/11,V=(T+Z-2*z)/9,G=(20*T+20*Z+21*z)/20,K=(40*T+20*Z+z)/20,N=Math.atan2(V,q)*180/Math.PI,st=N<0?N+360:N>=360?N-360:N,tt=st*Math.PI/180,Mt=K*e.nbb,bt=100*Math.pow(Mt/e.aw,e.c*e.z),Zt=4/e.c*Math.sqrt(bt/100)*(e.aw+4)*e.fLRoot,qt=st<20.14?st+360:st,Vt=.25*(Math.cos(qt*Math.PI/180+2)+3.8),Oi=5e4/13*Vt*e.nc*e.ncb*Math.sqrt(q*q+V*V)/(G+.305),_e=Math.pow(Oi,.9)*Math.pow(1.64-Math.pow(.29,e.n),.73),ue=_e*Math.sqrt(bt/100),ie=ue*e.fLRoot,ge=50*Math.sqrt(_e*e.c/(e.aw+4)),$i=(1+100*.007)*bt/(1+.007*bt),Li=1/.0228*Math.log(1+.0228*ie),Yi=Li*Math.cos(tt),Ht=Li*Math.sin(tt);return new Ui(st,ue,bt,Zt,ie,ge,$i,Yi,Ht)}static fromJch(t,e,i){return Ui.fromJchInViewingConditions(t,e,i,As.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 Ui(i,e,t,r,a,l,d,f,m)}static fromUcs(t,e,i){return Ui.fromUcsInViewingConditions(t,e,i,As.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 Ui.fromJchInViewingConditions(d,l,c,s)}toInt(){return this.viewed(As.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,b=(460*l-891*f-261*m)/1403,x=(460*l-220*f-6300*m)/1403,O=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),P=di(w)*(100/t.fl)*Math.pow(O,1/.42),A=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),R=di(b)*(100/t.fl)*Math.pow(A,1/.42),T=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),Z=di(x)*(100/t.fl)*Math.pow(T,1/.42),z=P/t.rgbD[0],q=R/t.rgbD[1],V=Z/t.rgbD[2],G=1.86206786*z-1.01125463*q+.14918677*V,K=.38752654*z+.62144744*q-.00897398*V,N=-.0158415*z-.03412294*q+1.04996444*V;return kE(G,K,N)}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=di(l)*400*p/(p+27.13),b=di(c)*400*f/(f+27.13),x=di(d)*400*m/(m+27.13),O=(11*w+-12*b+x)/11,P=(w+b-2*x)/9,A=(20*w+20*b+21*x)/20,R=(40*w+20*b+x)/20,T=Math.atan2(P,O)*180/Math.PI,Z=T<0?T+360:T>=360?T-360:T,z=Z*Math.PI/180,q=R*s.nbb,V=100*Math.pow(q/s.aw,s.c*s.z),G=4/s.c*Math.sqrt(V/100)*(s.aw+4)*s.fLRoot,K=Z<20.14?Z+360:Z,N=1/4*(Math.cos(K*Math.PI/180+2)+3.8),st=5e4/13*N*s.nc*s.ncb*Math.sqrt(O*O+P*P)/(A+.305),tt=Math.pow(st,.9)*Math.pow(1.64-Math.pow(.29,s.n),.73),Mt=tt*Math.sqrt(V/100),bt=Mt*s.fLRoot,Zt=50*Math.sqrt(tt*s.c/(s.aw+4)),qt=(1+100*.007)*V/(1+.007*V),Vt=Math.log(1+.0228*bt)/.0228,Oi=Vt*Math.cos(z),_e=Vt*Math.sin(z);return new Ui(Z,Mt,V,G,bt,Zt,qt,Oi,_e)}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,b=(460*l-891*f-261*m)/1403,x=(460*l-220*f-6300*m)/1403,O=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),P=di(w)*(100/t.fl)*Math.pow(O,1/.42),A=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),R=di(b)*(100/t.fl)*Math.pow(A,1/.42),T=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),Z=di(x)*(100/t.fl)*Math.pow(T,1/.42),z=P/t.rgbD[0],q=R/t.rgbD[1],V=Z/t.rgbD[2],G=1.86206786*z-1.01125463*q+.14918677*V,K=.38752654*z+.62144744*q-.00897398*V,N=-.0158415*z-.03412294*q+1.04996444*V;return[G,K,N]}},h(Ui,"mi"),Ui);u(TE,"Cam16");let Xn=TE;var Ot;const AE=(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 di(t)*400*e/(e+27.13)}static hueOf(t){const e=Zv(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 di(t)*Math.pow(i,1/.42)}static findResultByJ(t,e,i){let s=Math.sqrt(i)*11;const r=As.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,b=23*(w+.305)*m/(23*o+11*m*c+108*m*l),x=b*c,O=b*l,P=(460*w+451*x+288*O)/1403,A=(460*w-891*x-261*O)/1403,R=(460*w-220*x-6300*O)/1403,T=Ot.inverseChromaticAdaptation(P),Z=Ot.inverseChromaticAdaptation(A),z=Ot.inverseChromaticAdaptation(R),q=Zv([T,Z,z],Ot.LINRGB_FROM_SCALED_DISCOUNT);if(q[0]<0||q[1]<0||q[2]<0)return 0;const V=Ot.Y_FROM_LINRGB[0],G=Ot.Y_FROM_LINRGB[1],K=Ot.Y_FROM_LINRGB[2],N=V*q[0]+G*q[1]+K*q[2];if(N<=0)return 0;if(d===4||Math.abs(N-i)<.002)return q[0]>100.01||q[1]>100.01||q[2]>100.01?0:hk(q);s=s-(N-i)*s/(2*N)}return 0}static solveToInt(t,e,i){if(e<1e-4||i<1e-4||i>99.9999)return PE(i);t=Z0(t);const s=t/180*Math.PI,r=Ts(i),a=Ot.findResultByJ(s,e,r);if(a!==0)return a;const o=Ot.bisectToLimit(r,s);return hk(o)}static solveToCam(t,e,i){return Xn.fromInt(Ot.solveToInt(t,e,i))}},h(Ot,"ot"),Ot);u(AE,"HctSolver");let $r=AE;$r.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];$r.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];$r.Y_FROM_LINRGB=[.2126,.7152,.0722];$r.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 RE=(Ds=class{static from(t,e,i){return new Ds($r.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($r.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState($r.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState($r.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const e=Xn.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=Dv(t),this.argb=t}setInternalState(t){const e=Xn.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=Dv(t),this.argb=t}inViewingConditions(t){const e=Xn.fromInt(this.toInt()).xyzInViewingConditions(t),i=Xn.fromXyzInViewingConditions(e[0],e[1],e[2],As.make());return Ds.from(i.hue,i.chroma,Wv(e[1]))}},h(Ds,"jr"),Ds);u(RE,"Hct");let Ci=RE;var Eo;const EE=(Eo=class{static harmonize(t,e){const i=Ci.fromInt(t),s=Ci.fromInt(e),r=xE(i.hue,s.hue),a=Math.min(r*.5,15),o=Z0(i.hue+a*$E(i.hue,s.hue));return Ci.from(o,i.chroma,i.tone).toInt()}static hctHue(t,e,i){const s=Eo.cam16Ucs(t,e,i),r=Xn.fromInt(s),a=Xn.fromInt(t);return Ci.from(r.hue,a.chroma,Dv(t)).toInt()}static cam16Ucs(t,e,i){const s=Xn.fromInt(t),r=Xn.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 Xn.fromUcs(f,m,w).toInt()}},h(Eo,"wd"),Eo);u(EE,"Blend");let qn=EE;var wn;const zE=(wn=class{static ratioOfTones(t,e){return t=Rw(0,100,t),e=Rw(0,100,e),wn.ratioOfYs(Ts(t),Ts(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=Ts(t),s=e*(i+5)-5,r=wn.ratioOfYs(s,i),a=Math.abs(r-e);if(r<e&&a>.04)return-1;const o=Wv(s)+.4;return o<0||o>100?-1:o}static darker(t,e){if(t<0||t>100)return-1;const i=Ts(t),s=(i+5)/e-5,r=wn.ratioOfYs(i,s),a=Math.abs(r-e);if(r<e&&a>.04)return-1;const o=Wv(s)-.4;return o<0||o>100?-1:o}static lighterUnsafe(t,e){const i=wn.lighter(t,e);return i<0?100:i}static darkerUnsafe(t,e){const i=wn.darker(t,e);return i<0?0:i}},h(wn,"as"),wn);u(zE,"Contrast");let Gi=zE;var zo;const _E=(zo=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 zo.isDisliked(t)?Ci.from(t.hue,t.chroma,70):t}},h(zo,"fd"),zo);u(_E,"DislikeAnalyzer");let Gj=_E;var Ve;const LE=(Ve=class{static fromPalette(t){return new Ve(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,b=p.contrastCurve.getContrast(t.contrastLevel),x=f.contrastCurve.getContrast(t.contrastLevel),O=p.tone(t);let P=Gi.ratioOfTones(c,O)>=b?O:Ve.foregroundTone(c,b);const A=f.tone(t);let R=Gi.ratioOfTones(c,A)>=x?A:Ve.foregroundTone(c,x);return e&&(P=Ve.foregroundTone(c,b),R=Ve.foregroundTone(c,x)),(R-P)*w>=a||(R=Rw(0,100,P+a*w),(R-P)*w>=a||(P=Rw(0,100,R-a*w))),50<=P&&P<60?w>0?(P=60,R=Math.max(R,P+a*w)):(P=49,R=Math.min(R,P+a*w)):50<=R&&R<60&&(l?w>0?(P=60,R=Math.max(R,P+a*w)):(P=49,R=Math.min(R,P+a*w)):w>0?R=60:R=49),m?P:R}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(Gi.ratioOfTones(s,i)>=r||(i=Ve.foregroundTone(s,r)),e&&(i=Ve.foregroundTone(s,r)),this.isBackground&&50<=i&&i<60&&(Gi.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(Gi.ratioOfTones(d,i)>=r&&Gi.ratioOfTones(p,i)>=r)return i;const f=Gi.lighter(d,r),m=Gi.darker(p,r),w=[];return f!==-1&&w.push(f),m!==-1&&w.push(m),Ve.tonePrefersLightForeground(l)||Ve.tonePrefersLightForeground(c)?f<0?100:f:w.length===1?w[0]:m<0?0:m}return i}}static foregroundTone(t,e){const i=Gi.lighterUnsafe(t,e),s=Gi.darkerUnsafe(t,e),r=Gi.ratioOfTones(i,t),a=Gi.ratioOfTones(s,t);if(Ve.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 Ve.tonePrefersLightForeground(t)&&!Ve.toneAllowsLightForeground(t)?49:t}},h(Ve,"ke"),Ve);u(LE,"DynamicColor");let dt=LE;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 Su;const IE=(Su=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?jc(this.low,this.normal,(t- -1)/1):t<.5?jc(this.normal,this.medium,(t-0)/.5):t<1?jc(this.medium,this.high,(t-.5)/.5):this.high}},h(Su,"kp"),Su);u(IE,"ContrastCurve");let zt=IE;var Pu;const ZE=(Pu=class{constructor(t,e,i,s,r){this.roleA=t,this.roleB=e,this.delta=i,this.polarity=s,this.stayTogether=r}},h(Pu,"_p"),Pu);u(ZE,"ToneDeltaPair");let Ei=ZE;function cl(n){return n.variant===Ew.FIDELITY||n.variant===Ew.CONTENT}h(cl,"ec");u(cl,"isFidelity");function we(n){return n.variant===Ew.MONOCHROME}h(we,"Qt");u(we,"isMonochrome");function DE(n,t,e,i){let s=e,r=Ci.from(n,t,e);if(r.chroma<t){let a=r.chroma;for(;r.chroma<t;){s+=i?-1:1;const o=Ci.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(DE,"w1");u(DE,"findDesiredChromaByTone");function WE(n){return As.make(void 0,void 0,n.isDark?30:80,void 0,void 0)}h(WE,"f1");u(WE,"viewingConditionsForAlbers");function W0(n,t){const e=n.inViewingConditions(WE(t));return dt.tonePrefersLightForeground(n.tone)&&!dt.toneAllowsLightForeground(e.tone)?dt.enableLightForeground(n.tone):dt.enableLightForeground(e.tone)}h(W0,"Ku");u(W0,"performAlbers");var Br;const qE=(Br=class{static highestSurface(t){return t.isDark?Br.surfaceBright:Br.surfaceDim}},h(Br,"gc"),Br);u(qE,"MaterialDynamicColors");let W=qE;W.contentAccentToneDelta=15;W.primaryPaletteKeyColor=dt.fromPalette({name:"primary_palette_key_color",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>n.primaryPalette.keyColor.tone,"tone")});W.secondaryPaletteKeyColor=dt.fromPalette({name:"secondary_palette_key_color",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>n.secondaryPalette.keyColor.tone,"tone")});W.tertiaryPaletteKeyColor=dt.fromPalette({name:"tertiary_palette_key_color",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>n.tertiaryPalette.keyColor.tone,"tone")});W.neutralPaletteKeyColor=dt.fromPalette({name:"neutral_palette_key_color",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.neutralPalette.keyColor.tone,"tone")});W.neutralVariantPaletteKeyColor=dt.fromPalette({name:"neutral_variant_palette_key_color",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.neutralVariantPalette.keyColor.tone,"tone")});W.background=dt.fromPalette({name:"background",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?6:98,"tone"),isBackground:!0});W.onBackground=dt.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 zt(3,3,4.5,7)});W.surface=dt.fromPalette({name:"surface",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?6:98,"tone"),isBackground:!0});W.surfaceDim=dt.fromPalette({name:"surface_dim",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?6:87,"tone"),isBackground:!0});W.surfaceBright=dt.fromPalette({name:"surface_bright",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?24:98,"tone"),isBackground:!0});W.surfaceContainerLowest=dt.fromPalette({name:"surface_container_lowest",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?4:100,"tone"),isBackground:!0});W.surfaceContainerLow=dt.fromPalette({name:"surface_container_low",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?10:96,"tone"),isBackground:!0});W.surfaceContainer=dt.fromPalette({name:"surface_container",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?12:94,"tone"),isBackground:!0});W.surfaceContainerHigh=dt.fromPalette({name:"surface_container_high",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?17:92,"tone"),isBackground:!0});W.surfaceContainerHighest=dt.fromPalette({name:"surface_container_highest",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?22:90,"tone"),isBackground:!0});W.onSurface=dt.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 zt(4.5,7,11,21)});W.surfaceVariant=dt.fromPalette({name:"surface_variant",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.isDark?30:90,"tone"),isBackground:!0});W.onSurfaceVariant=dt.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 zt(3,4.5,7,11)});W.inverseSurface=dt.fromPalette({name:"inverse_surface",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?90:20,"tone")});W.inverseOnSurface=dt.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 zt(4.5,7,11,21)});W.outline=dt.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 zt(1.5,3,4.5,7)});W.outlineVariant=dt.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 zt(1,1,3,7)});W.shadow=dt.fromPalette({name:"shadow",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>0,"tone")});W.scrim=dt.fromPalette({name:"scrim",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>0,"tone")});W.surfaceTint=dt.fromPalette({name:"surface_tint",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>n.isDark?80:40,"tone"),isBackground:!0});W.primary=dt.fromPalette({name:"primary",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>we(n)?n.isDark?100:0:n.isDark?80:40,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(3,4.5,7,11),toneDeltaPair:u(n=>new Ei(W.primaryContainer,W.primary,15,"nearer",!1),"toneDeltaPair")});W.onPrimary=dt.fromPalette({name:"on_primary",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>we(n)?n.isDark?10:90:n.isDark?20:100,"tone"),background:u(n=>W.primary,"background"),contrastCurve:new zt(4.5,7,11,21)});W.primaryContainer=dt.fromPalette({name:"primary_container",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>cl(n)?W0(n.sourceColorHct,n):we(n)?n.isDark?85:25:n.isDark?30:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.primaryContainer,W.primary,15,"nearer",!1),"toneDeltaPair")});W.onPrimaryContainer=dt.fromPalette({name:"on_primary_container",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>cl(n)?dt.foregroundTone(W.primaryContainer.tone(n),4.5):we(n)?n.isDark?0:100:n.isDark?90:10,"tone"),background:u(n=>W.primaryContainer,"background"),contrastCurve:new zt(4.5,7,11,21)});W.inversePrimary=dt.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 zt(3,4.5,7,11)});W.secondary=dt.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 zt(3,4.5,7,11),toneDeltaPair:u(n=>new Ei(W.secondaryContainer,W.secondary,15,"nearer",!1),"toneDeltaPair")});W.onSecondary=dt.fromPalette({name:"on_secondary",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>we(n)?n.isDark?10:100:n.isDark?20:100,"tone"),background:u(n=>W.secondary,"background"),contrastCurve:new zt(4.5,7,11,21)});W.secondaryContainer=dt.fromPalette({name:"secondary_container",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>{const t=n.isDark?30:90;if(we(n))return n.isDark?30:85;if(!cl(n))return t;let e=DE(n.secondaryPalette.hue,n.secondaryPalette.chroma,t,!n.isDark);return e=W0(n.secondaryPalette.getHct(e),n),e},"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.secondaryContainer,W.secondary,15,"nearer",!1),"toneDeltaPair")});W.onSecondaryContainer=dt.fromPalette({name:"on_secondary_container",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>cl(n)?dt.foregroundTone(W.secondaryContainer.tone(n),4.5):n.isDark?90:10,"tone"),background:u(n=>W.secondaryContainer,"background"),contrastCurve:new zt(4.5,7,11,21)});W.tertiary=dt.fromPalette({name:"tertiary",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?n.isDark?90:25:n.isDark?80:40,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(3,4.5,7,11),toneDeltaPair:u(n=>new Ei(W.tertiaryContainer,W.tertiary,15,"nearer",!1),"toneDeltaPair")});W.onTertiary=dt.fromPalette({name:"on_tertiary",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?n.isDark?10:90:n.isDark?20:100,"tone"),background:u(n=>W.tertiary,"background"),contrastCurve:new zt(4.5,7,11,21)});W.tertiaryContainer=dt.fromPalette({name:"tertiary_container",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>{if(we(n))return n.isDark?60:49;if(!cl(n))return n.isDark?30:90;const t=W0(n.tertiaryPalette.getHct(n.sourceColorHct.tone),n),e=n.tertiaryPalette.getHct(t);return Gj.fixIfDisliked(e).tone},"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.tertiaryContainer,W.tertiary,15,"nearer",!1),"toneDeltaPair")});W.onTertiaryContainer=dt.fromPalette({name:"on_tertiary_container",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?n.isDark?0:100:cl(n)?dt.foregroundTone(W.tertiaryContainer.tone(n),4.5):n.isDark?90:10,"tone"),background:u(n=>W.tertiaryContainer,"background"),contrastCurve:new zt(4.5,7,11,21)});W.error=dt.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 zt(3,4.5,7,11),toneDeltaPair:u(n=>new Ei(W.errorContainer,W.error,15,"nearer",!1),"toneDeltaPair")});W.onError=dt.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 zt(4.5,7,11,21)});W.errorContainer=dt.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 zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.errorContainer,W.error,15,"nearer",!1),"toneDeltaPair")});W.onErrorContainer=dt.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 zt(4.5,7,11,21)});W.primaryFixed=dt.fromPalette({name:"primary_fixed",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>we(n)?40:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.primaryFixed,W.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.primaryFixedDim=dt.fromPalette({name:"primary_fixed_dim",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>we(n)?30:80,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.primaryFixed,W.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.onPrimaryFixed=dt.fromPalette({name:"on_primary_fixed",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>we(n)?100:10,"tone"),background:u(n=>W.primaryFixedDim,"background"),secondBackground:u(n=>W.primaryFixed,"secondBackground"),contrastCurve:new zt(4.5,7,11,21)});W.onPrimaryFixedVariant=dt.fromPalette({name:"on_primary_fixed_variant",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>we(n)?90:30,"tone"),background:u(n=>W.primaryFixedDim,"background"),secondBackground:u(n=>W.primaryFixed,"secondBackground"),contrastCurve:new zt(3,4.5,7,11)});W.secondaryFixed=dt.fromPalette({name:"secondary_fixed",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>we(n)?80:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.secondaryFixed,W.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.secondaryFixedDim=dt.fromPalette({name:"secondary_fixed_dim",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>we(n)?70:80,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.secondaryFixed,W.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.onSecondaryFixed=dt.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 zt(4.5,7,11,21)});W.onSecondaryFixedVariant=dt.fromPalette({name:"on_secondary_fixed_variant",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>we(n)?25:30,"tone"),background:u(n=>W.secondaryFixedDim,"background"),secondBackground:u(n=>W.secondaryFixed,"secondBackground"),contrastCurve:new zt(3,4.5,7,11)});W.tertiaryFixed=dt.fromPalette({name:"tertiary_fixed",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?40:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.tertiaryFixed,W.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.tertiaryFixedDim=dt.fromPalette({name:"tertiary_fixed_dim",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?30:80,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.tertiaryFixed,W.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.onTertiaryFixed=dt.fromPalette({name:"on_tertiary_fixed",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?100:10,"tone"),background:u(n=>W.tertiaryFixedDim,"background"),secondBackground:u(n=>W.tertiaryFixed,"secondBackground"),contrastCurve:new zt(4.5,7,11,21)});W.onTertiaryFixedVariant=dt.fromPalette({name:"on_tertiary_fixed_variant",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?90:30,"tone"),background:u(n=>W.tertiaryFixedDim,"background"),secondBackground:u(n=>W.tertiaryFixed,"secondBackground"),contrastCurve:new zt(3,4.5,7,11)});var ns;const VE=(ns=class{static fromInt(t){const e=Ci.fromInt(t);return ns.fromHct(e)}static fromHct(t){return new ns(t.hue,t.chroma,t)}static fromHueAndChroma(t,e){return new ns(t,e,ns.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=Ci.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=Ci.from(t,e,50+r),o=Math.abs(a.chroma-e);o<s&&(s=o,i=a);const l=Ci.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=Ci.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,e)),e}getHct(t){return Ci.fromInt(this.tone(t))}},h(ns,"Us"),ns);u(VE,"TonalPalette");let ne=VE;function dk(n){const t=tP(n),e=eP(n),i=iP(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(dk,"yy");u(dk,"hexFromArgb");function UE(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=jn(n.slice(0,1).repeat(2)),r=jn(n.slice(1,2).repeat(2)),a=jn(n.slice(2,3).repeat(2))):e?(s=jn(n.slice(0,2)),r=jn(n.slice(2,4)),a=jn(n.slice(4,6))):i&&(s=jn(n.slice(2,4)),r=jn(n.slice(4,6)),a=jn(n.slice(6,8))),(255<<24|(s&255)<<16|(r&255)<<8|a&255)>>>0}h(UE,"m1");u(UE,"argbFromHex");function jn(n){return parseInt(n,16)}h(jn,"Ti");u(jn,"parseIntHex");function jE(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(jE,"v1");u(jE,"argbFromRgba");function FE(n){ei();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(FE,"g1");u(FE,"getComputedColor");function qv(n){return getComputedStyle(n).getPropertyValue("--wy-theme-color")||void 0}h(qv,"cu");u(qv,"getCSSThemeColor");function BE(n,t){let e=qv(n);const i=new MutationObserver(()=>{const a=qv(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(BE,"b1");u(BE,"observeCSSThemeColor");function Vv(){var n;return ei(),((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(Vv,"lu");u(Vv,"getMetaThemeColor");function NE(n){ei();const t=Array.from(document.head.querySelectorAll("meta[name='theme-color']"));if(!t)return()=>{};let e=Vv();const i=u(()=>{const o=Vv();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(NE,"x1");u(NE,"observeMetaThemeColor");const rm=[],Kj=16;function XE(n,t=!1){var e;if(rm.some(T=>T.seedColor===n)){const T=(e=rm.find(Z=>Z.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=FE(n));const r=n.startsWith("#")?UE(s):jE(s),a=Ci.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,b={primary:ne.fromHueAndChroma(o,c),secondary:ne.fromHueAndChroma(o,c/3),tertiary:ne.fromHueAndChroma(o+60,c/2),neutral:ne.fromHueAndChroma(o,Math.min(l/12,4)),"neutral-variant":ne.fromHueAndChroma(o,Math.min(l/6,8)),error:ne.fromHueAndChroma(w,84),warning:ne.fromHueAndChroma(w+4*p,d),red:ne.fromHueAndChroma(w,d),"deep-orange":ne.fromHueAndChroma(w+1*p,d),orange:ne.fromHueAndChroma(w+2*p,d),amber:ne.fromHueAndChroma(w+3*p,d),yellow:ne.fromHueAndChroma(w+4*p,d),lime:ne.fromHueAndChroma(w+5*p,d),"light-green":ne.fromHueAndChroma(w+6*p,d),green:ne.fromHueAndChroma(w+7*p,d),teal:ne.fromHueAndChroma(w+8*p,d),cyan:ne.fromHueAndChroma(w+9*p,d),"light-blue":ne.fromHueAndChroma(w+10*p,d),blue:ne.fromHueAndChroma(w+11*p,d),indigo:ne.fromHueAndChroma(w+12*p,d),"deep-purple":ne.fromHueAndChroma(w+13*p,d),purple:ne.fromHueAndChroma(w+14*p,d),pink:ne.fromHueAndChroma(w+15*p,d),gray:ne.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},O={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 O){const Z=O[T];for(const z in Z){const q=dk(b[T].tone(Z[z]));i.push(`--wy-${T}-${z}:${q};`)}}const P={light:b.primary.tone(40),dark:b.primary.tone(80)},A={light:b.neutral.tone(99),dark:b.neutral.tone(10)},R={"surface-1":{light:qn.cam16Ucs(A.light,P.light,.05),dark:qn.cam16Ucs(A.dark,P.dark,.05)},"surface-2":{light:qn.cam16Ucs(A.light,P.light,.08),dark:qn.cam16Ucs(A.dark,P.dark,.08)},"surface-3":{light:qn.cam16Ucs(A.light,P.light,.11),dark:qn.cam16Ucs(A.dark,P.dark,.11)},"surface-4":{light:qn.cam16Ucs(A.light,P.light,.12),dark:qn.cam16Ucs(A.dark,P.dark,.12)},"surface-5":{light:qn.cam16Ucs(A.light,P.light,.14),dark:qn.cam16Ucs(A.dark,P.dark,.14)}};for(const T in R){const Z=R[T];for(const z in Z){const q=dk(Z[z]);i.push(`--wy-${T}-${z}:${q};`)}}return rm.unshift({seedColor:n,colors:i}),rm.length=Math.min(rm.length,Kj),i}h(XE,"C1");u(XE,"generateThemeColors");const Jj=u(n=>{if(ei(),R0)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=Tt`.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)}`,tF=Tt`@property --wy-component-color{syntax: \"<color>\"; inherits: true; initial-value: currentColor;}@property --wy-component-background-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}`,eF=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),Jj([tF,Xi])}},h(e,"t"),e),u(t,"WeavyStyles"),t},"WeavyStylesMixin"),iF=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this.version=ae.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: ${ae.sourceName}@${this.version} ≠ ${(r=this.url)==null?void 0:r.hostname}@${l}`)}catch{throw new Error(`Version mismatch! ${ae.sourceName}@${this.version} ≠ ${(a=this.url)==null?void 0:a.hostname}@${l}`)}}},h(e,"t"),e),u(t,"WeavyVersion"),t},"WeavyVersionMixin");var bO,Cu;let HE=(bO=(Cu=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(Cu,"bn"),Cu),u(bO,"s"),bO);var OO,Qu;let Vs=(OO=(Qu=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 HE(this.context,this.host,this.t,this.subscribe))}},h(Qu,"xn"),Qu),u(OO,"s"),OO);var $O,Mu;let nF=($O=(Mu=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(Mu,"$n"),Mu),u($O,"s"),$O);var xO,Tu;let sF=(xO=(Tu=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h(Tu,"Cn"),Tu),u(xO,"e"),xO);var kO,Au;let uk=(kO=(Au=class extends nF{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 HE(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 sF(this.context,this.host))}},h(Au,"kn"),Au),u(kO,"i"),kO);function Ks({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 uk(this,{context:n,initialValue:s})),s}};{t.constructor.addInitializer(a=>{i.set(a,new uk(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(Ks,"Rs");u(Ks,"e$5");function xe({context:n,subscribe:t}){return(e,i)=>{typeof i=="object"?i.addInitializer(function(){new Vs(this,{context:n,callback:u(s=>{e.set.call(this,s)},"callback"),subscribe:t})}):e.constructor.addInitializer(s=>{new Vs(s,{context:n,callback:u(r=>{s[i]=r},"callback"),subscribe:t})})}}h(xe,"ee");u(xe,"c$2");var Ru;const YE=(Ru=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(Ru,"zp"),Ru);u(YE,"ContextRequestEvent");let rF=YE;var Eu;const GE=(Eu=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h(Eu,"Mp"),Eu);u(GE,"ContextProviderEvent");let aF=GE;var zu;const KE=(zu=class extends uk{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 ft||this.dispatchWhenConnected()}dispatchWhenConnected(){this.isAttached&&(this.host.isConnected?this.host.dispatchEvent(new aF(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(zu,"Pp"),zu);u(KE,"WyContextProvider");let JE=KE;const Ie=Symbol.for("weavy-client");function tz(n,t){return ei(),new JE(n,{context:Ie,initialValue:t})}h(tz,"A1");u(tz,"createWeavyContextProvider");const qi=c0()?tz(document.documentElement):void 0,oF=u(n=>{var i;var t,e;return e=(i=class extends n{constructor(...r){super(...r),j(this,t),this.host!==document.documentElement?(qi==null||qi.detachListeners(),I(this,t,new JE(this.host,{context:Ie,initialValue:this}))):qi==null||qi.setValue(this)}updateContext(){var r;this.host!==document.documentElement?(r=k(this,t))==null||r.updateObservers():qi==null||qi.updateObservers()}destroy(){var r;super.destroy(),this.host!==document.documentElement?(r=k(this,t))==null||r.detachListeners():(qi==null?void 0:qi.value)===this&&(qi==null||qi.setValue(void 0))}},h(i,"e"),i),t=new WeakMap,u(e,"WeavyContextProvider"),e},"WeavyContextProviderMixin");var b1,O1,hr,Om,Ye;const $m=(Ye=class{constructor(t){j(this,b1),j(this,O1),j(this,hr),j(this,Om),this.weavySid=Jf(),this.weavyId=`${Ye.sourceName}#${this.weavySid}`,this.cloudFilePickerUrl=Ye.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=Ye.defaults.disableEnvironmentImports,this.gcTime=Ye.defaults.gcTime,this.scrollBehavior=Ye.defaults.scrollBehavior,this.staleTime=Ye.defaults.staleTime,this.tokenFactoryRetryDelay=Ye.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=Ye.defaults.tokenFactoryTimeout,I(this,O1,new Promise(i=>{I(this,b1,i)})),I(this,Om,!1),console.info(`${Ye.sourceName}@${Ye.version} #${this.weavySid}`),ei(),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,O1)}get url(){return k(this,hr)}set url(t){var e;if(this.isDestroyed)throw new Ce;try{if(typeof t=="string")t&&I(this,hr,new URL(t,window.location.toString()));else if(t instanceof URL)I(this,hr,t||void 0);else if(t==null)I(this,hr,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,hr)&&((e=k(this,b1))==null||e.call(this,k(this,hr)))}get cachePrefix(){return`${Ye.version}:${this.url}`}async reset(){console.info(this.weavyId,"is reset")}get isDestroyed(){return k(this,Om)}destroy(){I(this,Om,!0),console.info(this.weavyId,"was destroyed")}},h(Ye,"he"),Ye);b1=new WeakMap,O1=new WeakMap,hr=new WeakMap,Om=new WeakMap,u($m,"WeavyClient"),$m.version="29.2.0",$m.sourceName="@weavy/uikit-web",$m.defaults={cloudFilePickerUrl:"https://filebrowser.weavy.io/v14/",disableEnvironmentImports:!1,gcTime:1e3*60*60*24,locale:mE,notificationEvents:!1,scrollBehavior:"auto",staleTime:1e3*1,tokenFactoryRetryDelay:2e3,tokenFactoryTimeout:2e4,annotations:"buttons-inline",notifications:"button-list",notificationsBadge:"count",reactions:"😍 😎 😉 😜 👍"};let ae=$m;var _u;const ez=(_u=class extends oF(Zj(Bj(Vj(Wj(Uj(Dj(Fj(iF(qj(eF(Nj(ae)))))))))))){},h(_u,"Sp"),_u);u(ez,"Weavy");let pe=ez;var Lu;const iz=(Lu=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 rF(this.context,this.host,this._callback,this.subscribe))}},h(Lu,"Ap"),Lu);u(iz,"ContextConsumer");let lF=iz;var Iu;const nz=(Iu=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 lF(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 qk(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(Iu,"Ep"),Iu);u(nz,"ContextController");let cF=nz;const hF={attribute:!0,type:String,converter:Pv,reflect:!1,hasChanged:ES},dF=u((n=hF,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"?dF(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,"H");u(F,"r$2");const uF=u((n,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(n,t,e),e),"e$4");function sP(n){return(t,e)=>{const{slot:i,selector:s}=n??{},r="slot"+(i?`[name=${i}]`:":not([name])");return uF(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(sP,"Nw");u(sP,"o$6");var $1,Zu;const sz=(Zu=class{constructor(t){j(this,$1),this.notifications=ae.defaults.notifications,this.notificationsBadge=ae.defaults.notificationsBadge,this.reactions=ae.defaults.reactions,this.annotations=ae.defaults.annotations,I(this,$1,t),Object.keys(this).forEach(e=>{e in t&&Object.assign(this,{[e]:t[e]})})}get component(){return k(this,$1)}},h(Zu,"Op"),Zu);$1=new WeakMap,u(sz,"WeavyComponentSettings");let m3=sz;const rz=Symbol.for("weavy-component-settings");var Du;const az=(Du=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 rl(this.host),this.context=new Vs(this.host,{context:Ie,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 HR(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=ky(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(Du,"Rp"),Du);u(az,"QueryController");let Qn=az;const rP=Symbol.for("weavy-app"),q0=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 V0=Symbol.for("weavy-features");var Da,fc,xs,_o;const oz=(_o=class{constructor(t,e){j(this,Da),j(this,fc),j(this,xs),I(this,Da,Object.keys(t)),I(this,fc,Object.entries(t).reduce((i,[s,r])=>(r&&i.push(s),i),[])),I(this,xs,e??k(this,fc))}features(){return k(this,Da)}supportedFeature(...t){return t.every(e=>k(this,Da).includes(e))}allowedFeatures(){return k(this,xs)}allowsFeature(...t){return t.every(e=>this.supportedFeature(e)?k(this,xs).includes(e):!1)}allowsAnyFeature(...t){return t.some(e=>this.supportedFeature(e)?k(this,xs).includes(e):!1)}setAllowedFeatures(t){return I(this,xs,typeof t=="string"?aP(t,k(this,Da)):k(this,fc)),k(this,xs)}immutable(){const t=U0(k(this,Da),k(this,fc));return new _o(t,k(this,xs))}},h(_o,"md"),_o);Da=new WeakMap,fc=new WeakMap,xs=new WeakMap,u(oz,"ComponentFeatures");let xn=oz;function aP(n,t){return n.split(" ").filter(e=>{if(e){if(t.includes(e))return!0;console.warn("Unknown feature provided:",e)}return!1})}h(aP,"Ww");u(aP,"featureListFromString");function U0(n,t){return t??(t=n),Object.fromEntries(n.map(e=>[e,t.includes(e)]))}h(U0,"Zu");u(U0,"featureConfigFromList");const pk=Object.values(L),lz=Symbol.for("weavy-link"),He=[];for(let n=0;n<256;++n)He.push((n+256).toString(16).slice(1));function cz(n,t=0){return(He[n[t+0]]+He[n[t+1]]+He[n[t+2]]+He[n[t+3]]+"-"+He[n[t+4]]+He[n[t+5]]+"-"+He[n[t+6]]+He[n[t+7]]+"-"+He[n[t+8]]+He[n[t+9]]+"-"+He[n[t+10]]+He[n[t+11]]+He[n[t+12]]+He[n[t+13]]+He[n[t+14]]+He[n[t+15]]).toLowerCase()}h(cz,"I1");u(cz,"unsafeStringify");let SO;const pF=new Uint8Array(16);function hz(){if(!SO){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");SO=crypto.getRandomValues.bind(crypto)}return SO(pF)}h(hz,"F1");u(hz,"rng");const fF=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),w3={randomUUID:fF};function Fc(n,t,e){var i;if(w3.randomUUID&&!n)return w3.randomUUID();n=n||{};const s=n.random??((i=n.rng)==null?void 0:i.call(n))??hz();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,cz(s)}h(Fc,"fc");u(Fc,"v4");function dz(n){let t;if(n instanceof URL)t={type:"url",item:n};else if(n instanceof File)t={type:"file",item:n};else if(n instanceof Blob)t={type:"file",item:new File([n],`${Fc()}`,{type:n.type})};else if(typeof n=="string")t={type:"file",item:new File([n],`${Fc()}.data.txt`,{type:"text/plain;charset=UTF-8"})};else if(TR(n)||Qv(n))try{const e=Qv(n)?n.toJSON():JSON.stringify(n,zR(),2);t={type:"file",item:new File([e],`${Fc()}.json.txt`,{type:"text/plain;charset=UTF-8"})}}catch(e){console.error("Could not serialize context data to JSON.",e)}return t}h(dz,"H1");u(dz,"getContextDataRef");const Sy=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 zi(n){return n.lastIndexOf(".")===-1?".":(n.substring(n.lastIndexOf("."),n.length)||n).toLowerCase()}h(zi,"Qe");u(zi,"getExtension");function oP(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(oP,"Kw");u(oP,"isAudio");function uz(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(uz,"V1");u(uz,"isImage");function pz(n){switch(zi(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(pz,"B1");u(pz,"isWebImage");function lP(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(lP,"Gw");u(lP,"isVideo");function fz(n){switch(n){case".markdown":case".md":return!0;default:return!1}}h(fz,"U1");u(fz,"isMarkdown");function cP(n){switch(n){case".htm":case".html":case".xhtml":case".xml":return!0;default:return!1}}h(cP,"Zw");u(cP,"isMarkup");function j0(n){if(cP(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(j0,"Yu");u(j0,"isCode");function hP(n){if(j0(n)||fz(n))return!0;switch(n){case".txt":return!0;default:return!1}}h(hP,"Yw");u(hP,"isText");function Rn(n){const t=zi(n);if(t==="")return{icon:"file"};if(oP(t))return{icon:"file-music",color:"indigo"};if(uz(t))return{icon:"file-image",color:"cyan"};if(lP(t))return{icon:"file-video",color:"pink"};if(cP(t))return{icon:"file-xml",color:"purple"};if(j0(t))return{icon:"file-code",color:"purple"};if(hP(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(Rn,"Ei");u(Rn,"getIcon");function yz(n){const t=zi(n);return t===""?"none":pz(t)?"image":j0(t)?"code":hP(t)?"text":oP(t)?"audio":lP(t)?"video":"none"}h(yz,"q1");u(yz,"getWebPreviewFormat");function Js(n){switch(n){case"Google Drive":return"google-drive";case"Dropbox":return"dropbox";case"OneDrive":return"onedrive";case"Box":return"box";default:return""}}h(Js,"Ls");u(Js,"getProvider");function Py(n){let t="file";switch(zi(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(Py,"hl");u(Py,"getKind");function F0(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(F0,"Xu");u(F0,"handleSelectFilename");async function Uv(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(Uv,"wu");u(Uv,"getHash");function x1(n,t){return n.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}h(x1,"Eh");u(x1,"getResult");var Wu;const mz=(Wu=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 rl(this.host),this.context=new Vs(this.host,{context:Ie,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=x1(this.mutationCache,this.options),this.mutationCacheUnsubscribe=this.mutationCache.subscribe(t=>{if(this.mutationCache&&this.options&&/added|removed|updated/.test(t.type)){const e=x1(this.mutationCache,this.options);(this.result!==e||Uc(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:x1(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(Wu,"Lp"),Wu);u(mz,"MutationStateController");let ag=mz;var qu;const wz=(qu=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 rl(this.host),this.context=new Vs(this.host,{context:Ie,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=ky(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(qu,"Ip"),qu);u(wz,"MutationController");let rn=wz;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,"Vt");u(oe,"updateMutationContext");function dP(n,t,e){const i=n.getMutationCache().find({mutationKey:t,exact:!0,predicate:e});i&&n.getMutationCache().remove(i)}h(dP,"Xw");u(dP,"removeMutation");function gz(n,t){const e=n.getMutationCache();e.findAll({mutationKey:t,exact:!0}).forEach(i=>{e.remove(i)})}h(gz,"N1");u(gz,"removeMutations");const uP=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:Py(t),size:e,media_type:i,embed_url:"",preview_format:yz(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 pP(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(pP,"Jw");u(pP,"getFileMutationsTotalProgress");function fP(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(fP,"tf");u(fP,"getFileMutationsTotalStatus");function vz(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(vz,"j1");u(vz,"getFileMutationsByConflictOrError");function bz(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(bz,"W1");u(bz,"removeSettledFileMutations");function Oz(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}),$z(n,e,r.blob.name),bz(n,e,r.blob.name);let a;try{a=r.blob.thumbnail_url&&new URL(r.blob.thumbnail_url)||void 0}catch{}const o=uP(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(Oz,"Q1");u(Oz,"getCreateFileMutationOptions");function $z(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($z,"K1");u($z,"removeSuccessfulUploadBlobMutations");async function yP(n,t,e){const i=new FormData;i.append("blob",t);const s=await n.upload("/api/blobs","POST",i,Iv.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(yP,"ef");u(yP,"uploadBlob");function xz(n){return{mutationFn:u(async t=>await yP(n,t.file,t.onProgress),"mutationFn")}}h(xz,"G1");u(xz,"getSimpleUploadBlobMutationOptions");function B0(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 yP(n,o.file,o.onProgress),"mutationFn"),mutationKey:a,onMutate:u(async o=>{await r.cancelQueries({queryKey:a,exact:!0});const l=uP(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 Uv(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(B0,"tp");u(B0,"getUploadBlobMutationOptions");const kz=Symbol.for("weavy-data-blobs"),Sz=Symbol.for("weavy-context-id");function Pz(n){if(n)return n.match(/^[0-9]+$/)?parseInt(n):n}h(Pz,"Z1");u(Pz,"toIntOrString");var yF=Object.defineProperty,mF=Object.getOwnPropertyDescriptor,de=u((n,t,e,i)=>{for(var s=i>1?void 0:i?mF(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&&yF(t,e,s),s},"__decorateClass$1d"),k1,S1,P1,C1,Q1,xm,km,Sm,Pm,Cm,Qm,Mm,Tm,yc,mc,Am,Rm,Em,zm,_m,Lm,Wa,dr,ks,Im,wc,Vu;const Cz=(Vu=class extends ft{constructor(){super(),j(this,k1),j(this,S1),j(this,P1),j(this,C1),j(this,Q1),j(this,xm),j(this,km),j(this,Sm),j(this,Pm),j(this,Cm),j(this,Qm),j(this,Mm),j(this,Tm),j(this,yc),j(this,mc),j(this,Am),j(this,Rm),j(this,Em),j(this,zm),j(this,_m),j(this,Lm),j(this,Wa),j(this,dr),j(this,ks),j(this,Im),j(this,wc),this.storage=qS("localStorage"),this.contextId=Fc(),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(Vk)&&this.matchesLink(t.detail.link)&&t.preventDefault()},I(this,km,new Promise(t=>{I(this,xm,t)})),I(this,Pm,new Promise(t=>{I(this,Sm,t)})),I(this,Qm,new Promise(t=>{I(this,Cm,t)})),I(this,Tm,new Promise(t=>{I(this,Mm,t)})),I(this,mc,new Promise(t=>{I(this,yc,t)})),I(this,Rm,new Promise(t=>{I(this,Am,t)})),I(this,zm,new Promise(t=>{I(this,Em,t)})),I(this,Lm,new Promise(t=>{I(this,_m,t)})),I(this,Wa,new Qn(this)),I(this,dr,new Qn(this)),I(this,ks,new Map),I(this,Im,new rn(this)),I(this,wc,new ag(this)),this.settings=new m3(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!==sn.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))}set link(t){const e=this._link;!this.uid&&this.componentType&&this.componentType!==sn.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))}get link(){return this._link}clearLink(){this.link&&(I(this,mc,new Promise(t=>{I(this,yc,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")}set agent(t){this._agentUid=t||void 0}get agent(){return this._agentUid}set data(t){console.warn(".data property array is deprecated. Use .contextualData string instead."),I(this,k1,t)}get data(){return k(this,k1)}set name(t){this._initialAppName=t,this._appName=t}get name(){return this._appName}set annotations(t){I(this,S1,t)}get annotations(){var t;return k(this,S1)??((t=this.weavy)==null?void 0:t.annotations)??ae.defaults.annotations}set notifications(t){I(this,P1,t)}get notifications(){var t;return k(this,P1)??((t=this.weavy)==null?void 0:t.notifications)??ae.defaults.notifications}set notificationsBadge(t){I(this,C1,t)}get notificationsBadge(){var t;return k(this,C1)??((t=this.weavy)==null?void 0:t.notificationsBadge)??ae.defaults.notificationsBadge}set reactions(t){I(this,Q1,t)}get reactions(){var t;return k(this,Q1)??((t=this.weavy)==null?void 0:t.reactions)??ae.defaults.reactions}async whenApp(){return await k(this,km)}async whenContextDataBlobs(){return await k(this,Pm)}async whenContextId(){return await k(this,Qm)}async whenComponentFeatures(){return await k(this,Tm)}async whenLink(){return await k(this,mc)}async whenSettings(){return await k(this,Rm)}async whenUser(){return await k(this,zm)}async whenWeavy(){return await k(this,Lm)}connectedCallback(){super.connectedCallback(),document.addEventListener("wy-link",this.linkEventHandler),window.addEventListener("storage",this.storageLinkHandler),this.app&&this.requestUpdate("app"),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 rl(this),await super.scheduleUpdate()}async willUpdate(t){var e,i,s,r,a,o,l,c,d,p,f,m,w,b,x,O,P,A,R;super.willUpdate(t),this.weavyContextConsumer??(this.weavyContextConsumer=new Vs(this,{context:Ie,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 T=Object.keys(this.settings);if((t.has("weavy")||T.find(z=>t.has(z)))&&(this.settings=new m3(this)),t.has("weavy")&&this.weavy&&await k(this,dr).trackQuery(ll(this.weavy,["user"])),(r=k(this,dr).result)!=null&&r.isPending||(this.user&&k(this,dr).result.data&&this.user.id!==k(this,dr).result.data.id&&(console.warn("User mismatch, resetting"),(a=this.weavy)==null||a.reset()),this.user=(o=k(this,dr).result)==null?void 0:o.data),t.has("features")&&this.componentFeatures&&(this.componentFeatures.setAllowedFeatures(this.features),this.componentFeatures instanceof xn&&(this.componentFeatures=this.componentFeatures.immutable())),(t.has("autoUid")||t.has("user")||t.has("agent"))&&this.autoUid&&this.user&&(this.componentType&&jv.has(this.componentType)&&this.agent||this.componentType&&!jv.has(this.componentType))){const z=[this.autoUid];this.agent&&z.push(this.agent),this.user&&z.push(this.user.uid||this.user.id),this.uid=z.join("-")}const Z=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",Z)),this.componentType&&this.uid&&this.weavy){const z=this.name?{name:this.name}:void 0,q=this.agent?[this.agent]:void 0;await k(this,Wa).trackQuery(hE(this.weavy,this.uid,this.componentType,q,z))}else k(this,Wa).untrackQuery();if((l=k(this,Wa).result)!=null&&l.isPending||(this.app=(c=k(this,Wa).result)==null?void 0:c.data,(d=this.app)!=null&&d.name&&(this.app.name!==this.name||this._appName!==this.app.name)&&(this._appName=this.app.name,this.requestUpdate("name",Z))),(t.has("weavy")||t.has("contextId")||t.has("user")||t.has("componentFeatures"))&&this.weavy&&this.contextId&&this.user&&(p=this.componentFeatures)!=null&&p.allowsFeature(L.ContextData)&&(await k(this,Im).trackMutation(B0(this.weavy,this.user,this.contextId,void 0,"data")),await k(this,wc).trackMutationState({filters:{mutationKey:["apps",this.contextId,"data"],exact:!0}},this.weavy.queryClient)),t.has("contextualData")||t.has("data")||t.has("componentFeatures")){const z=this.contextualData?[this.contextualData]:this.data?this.data:[],q=k(this,ks);if(I(this,ks,new Map),z.forEach(V=>{const G=q.get(V);if(G)k(this,ks).set(V,G);else{const K=dz(V);K&&k(this,ks).set(V,K)}}),k(this,ks)&&(f=this.componentFeatures)!=null&&f.allowsFeature(L.ContextData)){for(const N of Array.from(k(this,ks).values()))if(N.type==="file"){const st=await Uv(N.item);await RR(k(this,wc).result??[],async tt=>{var Mt,bt;return(((Mt=tt.context)==null?void 0:Mt.sha256)??await Uv((bt=tt.variables)==null?void 0:bt.file))===st})||await k(this,Im).mutate({file:N.item})}const V=k(this,wc).result,G=V==null?void 0:V.some(N=>N.status==="pending"),K=(V==null?void 0:V.map(N=>{var st;return(st=N.data)==null?void 0:st.id}).filter(N=>N).reverse())??[];G||(this.contextDataBlobs=K)}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!==sn.Unknown||(t.has("appTypes")||t.has("agent"))&&this.appTypes)&&this.readStorageLink(),t.has("link")&&this.link&&(console.info(`Opening notification link in ${this.uid??mP.get(this.componentType)??this.constructor.name}`),this.consumeStorageLink()),t.has("app")&&this.app){const z=new CustomEvent("wy-app",{bubbles:!1,composed:!0,detail:{app:this.app}});this.dispatchEvent(z)}t.has("app")&&this.app&&(t.get("app")&&I(this,km,new Promise(z=>{I(this,xm,z)})),(m=k(this,xm))==null||m.call(this,this.app)),t.has("contextDataBlobs")&&this.contextDataBlobs&&(t.get("contextDataBlobs")&&I(this,Pm,new Promise(z=>{I(this,Sm,z)})),(w=k(this,Sm))==null||w.call(this,this.contextDataBlobs)),t.has("contextId")&&this.contextId&&(t.get("contextId")&&I(this,Qm,new Promise(z=>{I(this,Cm,z)})),(b=k(this,Cm))==null||b.call(this,this.contextId)),t.has("componentFeatures")&&this.componentFeatures&&(t.get("componentFeatures")&&I(this,Tm,new Promise(z=>{I(this,Mm,z)})),(x=k(this,Mm))==null||x.call(this,this.componentFeatures)),t.has("link")&&this.link&&(t.get("link")&&I(this,mc,new Promise(z=>{I(this,yc,z)})),(O=k(this,yc))==null||O.call(this,this.link)),t.has("settings")&&this.settings&&(t.get("settings")&&I(this,Rm,new Promise(z=>{I(this,Am,z)})),(P=k(this,Am))==null||P.call(this,this.settings)),t.has("user")&&this.user&&(t.get("user")&&I(this,zm,new Promise(z=>{I(this,Em,z)})),(A=k(this,Em))==null||A.call(this,this.user)),t.has("weavy")&&this.weavy&&(t.get("weavy")&&I(this,Lm,new Promise(z=>{I(this,_m,z)})),this.weavy.host.addEventListener("wy-notification",this.notificationEventHandler,{capture:!0}),(R=k(this,_m))==null||R.call(this,this.weavy)),t.has("bot")&&typeof this.bot=="string"&&console.error(`Using .bot property is deprecated. Use .agent = "${this.bot}"; instead`)}},h(Vu,"Tp"),Vu);k1=new WeakMap,S1=new WeakMap,P1=new WeakMap,C1=new WeakMap,Q1=new WeakMap,xm=new WeakMap,km=new WeakMap,Sm=new WeakMap,Pm=new WeakMap,Cm=new WeakMap,Qm=new WeakMap,Mm=new WeakMap,Tm=new WeakMap,yc=new WeakMap,mc=new WeakMap,Am=new WeakMap,Rm=new WeakMap,Em=new WeakMap,zm=new WeakMap,_m=new WeakMap,Lm=new WeakMap,Wa=new WeakMap,dr=new WeakMap,ks=new WeakMap,Im=new WeakMap,wc=new WeakMap,u(Cz,"WeavyComponent");let Dt=Cz;de([F()],Dt.prototype,"weavy",2);de([Ks({context:rP}),F()],Dt.prototype,"app",2);de([Ks({context:kz}),F()],Dt.prototype,"contextDataBlobs",2);de([Ks({context:Sz}),F()],Dt.prototype,"contextId",2);de([Ks({context:V0}),F()],Dt.prototype,"componentFeatures",2);de([Ks({context:rz}),F()],Dt.prototype,"settings",2);de([Ks({context:q0}),F()],Dt.prototype,"user",2);de([Ks({context:lz})],Dt.prototype,"_link",2);de([$({type:Object})],Dt.prototype,"link",1);de([F()],Dt.prototype,"componentType",2);de([F()],Dt.prototype,"appTypes",2);de([$()],Dt.prototype,"features",2);de([$({type:String})],Dt.prototype,"agent",1);de([$({attribute:!0,type:String})],Dt.prototype,"contextualData",2);de([$({attribute:!0,type:String,converter:{fromAttribute(n){return AR(n)}}})],Dt.prototype,"data",1);de([$()],Dt.prototype,"autoUid",2);de([$({converter:Pz})],Dt.prototype,"uid",2);de([$({type:String})],Dt.prototype,"name",1);de([$({type:String})],Dt.prototype,"annotations",1);de([$({type:String})],Dt.prototype,"notifications",1);de([$({type:String})],Dt.prototype,"notificationsBadge",1);de([$({type:String})],Dt.prototype,"reactions",1);de([$()],Dt.prototype,"bot",2);const mP=new Map(IS(rE)),Qz=new Map(IS(aE)),jv=new Map(Object.entries(oE));new Map(Object.entries(lE));var wF=Object.defineProperty,pa=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&&wF(t,e,s),s},"__decorateClass$1c"),Zm,M1,Dm,T1,Wm,A1,qm,R1,Vm,E1,Um,z1,jm,_1,Fm,L1,Uu;const Mz=(Uu=class extends ft{constructor(){super(),j(this,Zm),j(this,M1,new Promise(t=>{I(this,Zm,t)})),j(this,Dm),j(this,T1,new Promise(t=>{I(this,Dm,t)})),j(this,Wm),j(this,A1,new Promise(t=>{I(this,Wm,t)})),j(this,qm),j(this,R1,new Promise(t=>{I(this,qm,t)})),j(this,Vm),j(this,E1,new Promise(t=>{I(this,Vm,t)})),j(this,Um),j(this,z1,new Promise(t=>{I(this,Um,t)})),j(this,jm),j(this,_1,new Promise(t=>{I(this,jm,t)})),j(this,Fm),j(this,L1,new Promise(t=>{I(this,Fm,t)}))}async whenApp(){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,z1)}async whenUser(){return await k(this,_1)}async whenWeavy(){return await k(this,L1)}willUpdate(t){var e,i,s,r,a,o,l,c;super.willUpdate(t),t.has("app")&&this.app&&(t.get("app")&&I(this,M1,new Promise(d=>{I(this,Zm,d)})),(e=k(this,Zm))==null||e.call(this,this.app)),t.has("contextDataBlobs")&&this.contextDataBlobs&&(t.get("contextDataBlobs")&&I(this,T1,new Promise(d=>{I(this,Dm,d)})),(i=k(this,Dm))==null||i.call(this,this.contextDataBlobs)),t.has("contextId")&&this.contextId&&(t.get("contextId")&&I(this,A1,new Promise(d=>{I(this,Wm,d)})),(s=k(this,Wm))==null||s.call(this,this.contextId)),t.has("componentFeatures")&&this.componentFeatures&&(t.get("componentFeatures")&&I(this,R1,new Promise(d=>{I(this,qm,d)})),(r=k(this,qm))==null||r.call(this,this.componentFeatures)),t.has("link")&&this.link&&(t.get("link")&&I(this,E1,new Promise(d=>{I(this,Vm,d)})),(a=k(this,Vm))==null||a.call(this,this.link)),t.has("settings")&&this.settings&&(t.get("settings")&&I(this,z1,new Promise(d=>{I(this,Um,d)})),(o=k(this,Um))==null||o.call(this,this.settings)),t.has("user")&&this.user&&(t.get("user")&&I(this,_1,new Promise(d=>{I(this,jm,d)})),(l=k(this,jm))==null||l.call(this,this.user)),t.has("weavy")&&this.weavy&&(t.get("weavy")&&I(this,L1,new Promise(d=>{I(this,Fm,d)})),(c=k(this,Fm))==null||c.call(this,this.weavy))}connectedCallback(){super.connectedCallback(),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(Uu,"Fp"),Uu);Zm=new WeakMap,M1=new WeakMap,Dm=new WeakMap,T1=new WeakMap,Wm=new WeakMap,A1=new WeakMap,qm=new WeakMap,R1=new WeakMap,Vm=new WeakMap,E1=new WeakMap,Um=new WeakMap,z1=new WeakMap,jm=new WeakMap,_1=new WeakMap,Fm=new WeakMap,L1=new WeakMap,u(Mz,"WeavySubComponent");let _t=Mz;pa([xe({context:rP,subscribe:!0}),F()],_t.prototype,"app");pa([xe({context:kz,subscribe:!0}),F()],_t.prototype,"contextDataBlobs");pa([xe({context:Sz,subscribe:!0}),F()],_t.prototype,"contextId");pa([xe({context:V0,subscribe:!0}),F()],_t.prototype,"componentFeatures");pa([xe({context:lz,subscribe:!0}),F()],_t.prototype,"link");pa([xe({context:rz,subscribe:!0}),F()],_t.prototype,"settings");pa([xe({context:q0,subscribe:!0}),F()],_t.prototype,"user");pa([xe({context:Ie,subscribe:!0}),F()],_t.prototype,"weavy");function Tz(n){return typeof n=="string"&&n?n=eval==null?void 0:(0,eval)(`"use strict";(${n})`):n=void 0,n}h(Tz,"eg");u(Tz,"indirectEvalObject");function og(n){if(n)try{return new URL(n,window.location.toString())}catch{console.warn("Invalid url: ",n)}}h(og,"bd");u(og,"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"),yt=Tt`@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, calc(.5 * var(--wy-size, 1rem))) var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) 0;top:0;height:0;margin-bottom:calc(-1 * 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))}[part~=wy-buttons-sticky]{position:sticky;padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));top:0;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;flex:1 0 auto}.wy-input-group-button-icon{--wy-component-background-color: transparent}.wy-input-group-input-with-overlay{padding-right:calc(var(--wy-input-padding-y, var(--wy-padding, 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)))))))}.wy-input-group-button-icon-overlay{position:absolute;display:inline-flex;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}`,Rt=Tt`:host{display:contents}`;var gF=Object.defineProperty,vF=Object.getOwnPropertyDescriptor,Re=u((n,t,e,i)=>{for(var s=i>1?void 0:i?vF(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&&gF(t,e,s),s},"__decorateClass$1b");function fk(n){return n!=null&&n!==!1}h(fk,"my");u(fk,"acceptedValue");const Az="wy-context";var PO,ju;let le=(PO=(ju=class extends ft{constructor(){super(),this.provider=!1,this.annotations=pe.defaults.annotations,this.cloudFilePickerUrl=pe.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=pe.defaults.disableEnvironmentImports,this.locale=pe.defaults.locale,this.locales=pe.defaults.locales,this.gcTime=pe.defaults.gcTime,this.notificationEvents=pe.defaults.notificationEvents,this.scrollBehavior=pe.defaults.scrollBehavior,this.staleTime=pe.defaults.staleTime,this.tokenFactory=pe.defaults.tokenFactory,this.tokenFactoryRetryDelay=pe.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=pe.defaults.tokenFactoryTimeout,this.tokenUrl=pe.defaults.tokenUrl,this.url=pe.defaults.url,this.notifications=pe.defaults.notifications,this.notificationsBadge=pe.defaults.notificationsBadge,this.reactions=pe.defaults.reactions,this.childElementCount&&(this.provider=!0),this.weavy??(this.weavy=new pe({host:this.provider?this:void 0}))}get version(){return pe.version}get sourceName(){return pe.sourceName}willUpdate(t){if(super.willUpdate(t),this.weavy){const e={};Array.from(t.keys()).forEach(i=>{i!=="weavy"&&(fk(this[i])||fk(t.get(i)))&&Object.assign(e,{[i]:this[i]})}),Object.assign(this.weavy,e)}}render(){return v` <slot></slot> `}},h(ju,"Gn"),ju),u(PO,"WyContext"),PO);le.styles=[yt,Xi,Rt];Re([$({attribute:!0,type:Boolean})],le.prototype,"provider",2);Re([$()],le.prototype,"annotations",2);Re([$({attribute:!0,converter:{fromAttribute:u(n=>og(n),"fromAttribute")}})],le.prototype,"cloudFilePickerUrl",2);Re([$({attribute:!0,converter:{fromAttribute:u(n=>og(n),"fromAttribute")}}),$({type:Boolean})],le.prototype,"disableEnvironmentImports",2);Re([$({attribute:!0})],le.prototype,"locale",2);Re([$({attribute:!0,type:Array})],le.prototype,"locales",2);Re([$({attribute:!0,type:Number})],le.prototype,"gcTime",2);Re([$({type:Boolean})],le.prototype,"notificationEvents",2);Re([$({attribute:!0})],le.prototype,"scrollBehavior",2);Re([$({attribute:!0,type:Number})],le.prototype,"staleTime",2);Re([$({attribute:!0,converter:{fromAttribute:u(n=>Tz(n),"fromAttribute")}})],le.prototype,"tokenFactory",2);Re([$({attribute:!0,type:Number})],le.prototype,"tokenFactoryRetryDelay",2);Re([$({attribute:!0,type:Number})],le.prototype,"tokenFactoryTimeout",2);Re([$({attribute:!0,converter:{fromAttribute:u(n=>og(n),"fromAttribute")}})],le.prototype,"tokenUrl",2);Re([$({attribute:!0,converter:{fromAttribute:u(n=>og(n),"fromAttribute")}})],le.prototype,"url",2);Re([$({attribute:!0})],le.prototype,"notifications",2);Re([$({attribute:!0})],le.prototype,"notificationsBadge",2);Re([$({attribute:!0})],le.prototype,"reactions",2);Re([F()],le.prototype,"weavy",2);le=Re([Y(Az)],le);var Bm,I1,Fu;const Rz=(Fu=class{constructor(t,e){j(this,Bm),j(this,I1),I(this,Bm,!0),this.styles=[],t.addController(this),this.host=t,e&&(this.styles=e)}get themeColor(){return k(this,I1)}set themeColor(t){I(this,I1,t),this.checkThemeUpdate()}checkThemeUpdate(){const t=this.themeColor||qv(this.host)||Vv();if(t&&t!==this._resolvedThemeColor){this._resolvedThemeColor=t,console.info("Configuring theme",this._resolvedThemeColor);const e=XE(this._resolvedThemeColor).join(""),i=Tt`
|
|
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 xj=Object.defineProperty,MR=h(n=>{throw TypeError(n)},"ty"),u=h((n,t)=>xj(n,"name",{value:t,configurable:!0}),"o$1"),LS=h((n,t,e)=>t.has(n)||MR("Cannot "+e),"_h"),k=h((n,t,e)=>(LS(n,t,"read from private field"),e?e.call(n):t.get(n)),"f"),j=h((n,t,e)=>t.has(n)?MR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),"T"),I=h((n,t,e,i)=>(LS(n,t,"write to private field"),t.set(n,e),e),"S"),wt=h((n,t,e)=>(LS(n,t,"access private method"),e),"et"),ek=h((n,t,e,i)=>({set _(s){I(n,t,s)},get _(){return k(n,t,i)}}),"zl");function Mw(n){return Object.prototype.toString.call(n)==="[object Object]"}h(Mw,"Dl");u(Mw,"isObject");function jo(n){if(Mw(n)===!1)return!1;const t=n.constructor;if(t===void 0)return!0;const e=t.prototype;return!(Mw(e)===!1||Object.prototype.hasOwnProperty.call(e,"isPrototypeOf")===!1)}h(jo,"Lo");u(jo,"isPlainObject$1");function Qv(n){return typeof n.toJSON=="function"}h(Qv,"Uh");u(Qv,"hasToJSON");function TR(n){return typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n===null||jo(n)||Array.isArray(n)}h(TR,"Xm");u(TR,"isJSONSerializable");function aw(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]&&jo(i[s])&&jo(t[s])?i[s]=aw(i[s],t[s],e):i[s]=t[s]);return i}h(aw,"El");u(aw,"assign");function AR(n){return n?Array.isArray(n)?n:[n]:[]}h(AR,"Jm");u(AR,"asArray");async function RR(n,t){for(const e of n)if(await t(e))return e}h(RR,"tv");u(RR,"findAsyncSequential");function Uc(n,t,e=!1,i=!1){if(!i&&(!jo(n)||!jo(t))||i&&(!Mw(n)||!Mw(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&&!Uc(l,c,e))return!1}return!0}h(Uc,"yc");u(Uc,"eqObjects");function IS(n){return Object.entries(n)}h(IS,"ww");u(IS,"objectAsIterable");function _0(n){return n.charAt(0).toUpperCase()+n.substring(1).toLowerCase()}h(_0,"Bu");u(_0,"toUpperCaseFirst");const kj='\\s,.:;"',Sj=new RegExp(`^|[${kj}]|$`,"g"),Pj=".!?",Cj=new RegExp(`^|(?<=[${Pj}])|$`);function ZS(n){return n.length>0?n.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").replace(/_|\s+/g,"-").toLowerCase():n}h(ZS,"fw");u(ZS,"toKebabCase");function ER(n,t=2){if(!n)return null;let e="";const i=n.split(Sj).filter(s=>s);return i.length==1?e=i[0]:i.forEach(s=>{e+=s.charAt(0)}),e.substring(0,t).toUpperCase()}h(ER,"nv");u(ER,"getInitials");function DS(n){let t;const e=n.split(Cj).filter(i=>i);return e.length?t=e[0]:t=n,t}h(DS,"mw");u(DS,"getTitleFromText");function WS(n,t=256){return n.length>t&&(n=n.substring(0,t-1)+"…"),n}h(WS,"vw");u(WS,"truncateText");const Qj={credentials:"omit",headers:{"X-Requested-With":"XMLHttpRequest"},redirect:"manual"};function zR(){const n=new WeakSet,t=u(function(e,i){if(Qv(i)&&(i=i.toJSON()),!(i!==null&&typeof i=="object"))return i;if(n.has(i))return"[Circular]";let s;if(n.add(i),jo(i)){const r={};Object.keys(i).forEach(a=>{r[a]=t(a,i[a])}),s=r}else Array.isArray(i)&&(s=i.map((r,a)=>t(a,r)));return n.delete(i),s},"replacer");return t}h(zR,"ov");u(zR,"getCircularReferenceReplacer");function Jf(){return((1+Math.random())*65536|0).toString(16).substring(1)}h(Jf,"bc");u(Jf,"S4");function _R(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(_R,"cv");u(_R,"getTextStreamFromResponse");function qS(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(qS,"gw");u(qS,"getStorage");var du;const LR=(du=class extends Error{constructor(){super("Instance destroyed"),this.name="DestroyError"}},h(du,"Cp"),du);u(LR,"DestroyError");let Ce=LR;var Jb,uu,xy=(Jb=(uu=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(uu,"Kr"),uu),u(Jb,"Subscribable"),Jb),ty=typeof window>"u"||"Deno"in globalThis;function yi(){}h(yi,"Re");u(yi,"noop$1");function IR(n,t){return typeof n=="function"?n(t):n}h(IR,"lv");u(IR,"functionalUpdate");function Mv(n){return typeof n=="number"&&n>=0&&n!==1/0}h(Mv,"qh");u(Mv,"isValidTimeout");function VS(n,t){return Math.max(n+(t||0)-Date.now(),0)}h(VS,"bw");u(VS,"timeUntilStale");function Ws(n,t){return typeof n=="function"?n(t):n}h(Ws,"xs");u(Ws,"resolveStaleTime");function Ji(n,t){return typeof n=="function"?n(t):n}h(Ji,"ai");u(Ji,"resolveEnabled");function ik(n,t){const{type:e="all",exact:i,fetchStatus:s,predicate:r,queryKey:a,stale:o}=n;if(a){if(i){if(t.queryHash!==L0(a,t.options))return!1}else if(!ey(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(ik,"sy");u(ik,"matchQuery");function nk(n,t){const{exact:e,status:i,predicate:s,mutationKey:r}=n;if(r){if(!t.options.mutationKey)return!1;if(e){if(ta(t.options.mutationKey)!==ta(r))return!1}else if(!ey(t.options.mutationKey,r))return!1}return!(i&&t.state.status!==i||s&&!s(t))}h(nk,"ry");u(nk,"matchMutation");function L0(n,t){return((t==null?void 0:t.queryKeyHashFn)||ta)(n)}h(L0,"Uu");u(L0,"hashQueryKeyByOptions");function ta(n){return JSON.stringify(n,(t,e)=>Tv(e)?Object.keys(e).sort().reduce((i,s)=>(i[s]=e[s],i),{}):e)}h(ta,"ar");u(ta,"hashKey");function ey(n,t){return n===t?!0:typeof n!=typeof t?!1:n&&t&&typeof n=="object"&&typeof t=="object"?Object.keys(t).every(e=>ey(n[e],t[e])):!1}h(ey,"xc");u(ey,"partialMatchKey");function ky(n,t){if(n===t)return n;const e=sk(n)&&sk(t);if(e||Tv(n)&&Tv(t)){const i=e?n:Object.keys(n),s=i.length,r=e?t:Object.keys(t),a=r.length,o=e?[]:{},l=new Set(i);let c=0;for(let d=0;d<a;d++){const p=e?d:r[d];(!e&&l.has(p)||e)&&n[p]===void 0&&t[p]===void 0?(o[p]=void 0,c++):(o[p]=ky(n[p],t[p]),o[p]===n[p]&&n[p]!==void 0&&c++)}return s===a&&c===s?n:o}return t}h(ky,"dl");u(ky,"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,"Hl");u(Tw,"shallowEqualObjects");function sk(n){return Array.isArray(n)&&n.length===Object.keys(n).length}h(sk,"ny");u(sk,"isPlainArray");function Tv(n){if(!rk(n))return!1;const t=n.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!rk(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}h(Tv,"Nh");u(Tv,"isPlainObject");function rk(n){return Object.prototype.toString.call(n)==="[object Object]"}h(rk,"ay");u(rk,"hasObjectPrototype");function ZR(n){return new Promise(t=>{setTimeout(t,n)})}h(ZR,"dv");u(ZR,"sleep");function Av(n,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(n,t):e.structuralSharing!==!1?ky(n,t):t}h(Av,"jh");u(Av,"replaceData");function DR(n,t,e=0){const i=[...n,t];return e&&i.length>e?i.slice(1):i}h(DR,"hv");u(DR,"addToEnd");function WR(n,t,e=0){const i=[t,...n];return e&&i.length>e?i.slice(0,-1):i}h(WR,"uv");u(WR,"addToStart");var US=Symbol();function jS(n,t){return!n.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!n.queryFn||n.queryFn===US?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}h(jS,"xw");u(jS,"ensureQueryFn");var tc,Pa,By,tO,pu,Mj=(tO=(pu=class extends xy{constructor(){super(),j(this,tc),j(this,Pa),j(this,By),I(this,By,t=>{if(!ty&&window.addEventListener){const e=u(()=>t(),"listener");return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){k(this,Pa)||this.setEventListener(k(this,By))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Pa))==null||t.call(this),I(this,Pa,void 0))}setEventListener(t){var e;I(this,By,t),(e=k(this,Pa))==null||e.call(this),I(this,Pa,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){k(this,tc)!==t&&(I(this,tc,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof k(this,tc)=="boolean"?k(this,tc):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},h(pu,"Zr"),pu),tc=new WeakMap,Pa=new WeakMap,By=new WeakMap,u(tO,"FocusManager"),tO),FS=new Mj,Ny,Ca,Xy,eO,fu,Tj=(eO=(fu=class extends xy{constructor(){super(),j(this,Ny,!0),j(this,Ca),j(this,Xy),I(this,Xy,t=>{if(!ty&&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,Ca)||this.setEventListener(k(this,Xy))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Ca))==null||t.call(this),I(this,Ca,void 0))}setEventListener(t){var e;I(this,Xy,t),(e=k(this,Ca))==null||e.call(this),I(this,Ca,t(this.setOnline.bind(this)))}setOnline(t){k(this,Ny)!==t&&(I(this,Ny,t),this.listeners.forEach(e=>{e(t)}))}isOnline(){return k(this,Ny)}},h(fu,"Jr"),fu),Ny=new WeakMap,Ca=new WeakMap,Xy=new WeakMap,u(eO,"OnlineManager"),eO),Rv=new Tj;function Ev(){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,"i"),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(Ev,"Wh");u(Ev,"pendingThenable");function qR(n){var t;let e;if((t=n.then(i=>(e=i,i),yi))==null||t.catch(yi),e!==void 0)return{data:e}}h(qR,"wv");u(qR,"tryResolveSync");function VR(n){return Math.min(1e3*2**n,3e4)}h(VR,"fv");u(VR,"defaultRetryDelay");function BS(n){return(n??"online")==="online"?Rv.isOnline():!0}h(BS,"$w");u(BS,"canFetch");var iO,yu,UR=(iO=(yu=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}},h(yu,"tn"),yu),u(iO,"CancelledError"),iO);function w1(n){return n instanceof UR}h(w1,"zh");u(w1,"isCancelledError");function NS(n){let t=!1,e=0,i=!1,s;const r=Ev(),a=u(b=>{var x;i||(f(new UR(b)),(x=n.abort)==null||x.call(n))},"cancel"),o=u(()=>{t=!0},"cancelRetry"),l=u(()=>{t=!1},"continueRetry"),c=u(()=>FS.isFocused()&&(n.networkMode==="always"||Rv.isOnline())&&n.canRun(),"canContinue"),d=u(()=>BS(n.networkMode)&&n.canRun(),"canStart"),p=u(b=>{var x;i||(i=!0,(x=n.onSuccess)==null||x.call(n,b),s==null||s(),r.resolve(b))},"resolve"),f=u(b=>{var x;i||(i=!0,(x=n.onError)==null||x.call(n,b),s==null||s(),r.reject(b))},"reject"),m=u(()=>new Promise(b=>{var x;s=u(O=>{(i||c())&&b(O)},"continueFn"),(x=n.onPause)==null||x.call(n)}).then(()=>{var b;s=void 0,i||(b=n.onContinue)==null||b.call(n)}),"pause"),w=u(()=>{if(i)return;let b;const x=e===0?n.initialPromise:void 0;try{b=x??n.fn()}catch(O){b=Promise.reject(O)}Promise.resolve(b).then(p).catch(O=>{var P;if(i)return;const A=n.retry??(ty?0:3),R=n.retryDelay??VR,T=typeof R=="function"?R(e,O):R,Z=A===!0||typeof A=="number"&&e<A||typeof A=="function"&&A(e,O);if(t||!Z){f(O);return}e++,(P=n.onFail)==null||P.call(n,e,O),ZR(T).then(()=>c()?void 0:m()).then(()=>{t?f(O):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(NS,"kw");u(NS,"createRetryer");var Aj=u(n=>setTimeout(n,0),"defaultScheduler");function jR(){let n=[],t=0,e=u(o=>{o()},"notifyFn"),i=u(o=>{o()},"batchNotifyFn"),s=Aj;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(jR,"vv");u(jR,"createNotifyManager");var ti=jR(),ec,nO,mu,FR=(nO=(mu=class{constructor(){j(this,ec)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mv(this.gcTime)&&I(this,ec,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ty?1/0:5*60*1e3))}clearGcTimeout(){k(this,ec)&&(clearTimeout(k(this,ec)),I(this,ec,void 0))}},h(mu,"en"),mu),ec=new WeakMap,u(nO,"Removable"),nO),Hy,ic,yn,nc,hi,Vg,sc,Dn,gs,sO,wu,Rj=(sO=(wu=class extends FR{constructor(t){super(),j(this,Dn),j(this,Hy),j(this,ic),j(this,yn),j(this,nc),j(this,hi),j(this,Vg),j(this,sc),I(this,sc,!1),I(this,Vg,t.defaultOptions),this.setOptions(t.options),this.observers=[],I(this,nc,t.client),I(this,yn,k(this,nc).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,I(this,Hy,BR(this.options)),this.state=t.state??k(this,Hy),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,hi))==null?void 0:t.promise}setOptions(t){this.options={...k(this,Vg),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,yn).remove(this)}setData(t,e){const i=Av(this.state.data,t,this.options);return wt(this,Dn,gs).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){wt(this,Dn,gs).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var e,i;const s=(e=k(this,hi))==null?void 0:e.promise;return(i=k(this,hi))==null||i.cancel(t),s?s.then(yi).catch(yi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Hy))}isActive(){return this.observers.some(t=>Ji(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===US||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ws(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!VS(this.state.dataUpdatedAt,t)}onFocus(){var t;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=k(this,hi))==null||t.continue()}onOnline(){var t;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=k(this,hi))==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,yn).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,hi)&&(k(this,sc)?k(this,hi).cancel({revert:!0}):k(this,hi).cancelRetry()),this.scheduleGc()),k(this,yn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||wt(this,Dn,gs).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,hi))return k(this,hi).continueRetry(),k(this,hi).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(()=>(I(this,sc,!0),a.signal),"get")})},"addSignalProperty"),l=u(()=>{const p=jS(this.options,e),f=u(()=>{const m={client:k(this,nc),queryKey:this.queryKey,meta:this.meta};return o(m),m},"createQueryFnContext")();return I(this,sc,!1),this.options.persister?this.options.persister(p,f,this):p(f)},"fetchFn"),c=u(()=>{const p={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:k(this,nc),state:this.state,fetchFn:l};return o(p),p},"createFetchContext")();(i=this.options.behavior)==null||i.onFetch(c,this),I(this,ic,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=c.fetchOptions)==null?void 0:s.meta))&&wt(this,Dn,gs).call(this,{type:"fetch",meta:(r=c.fetchOptions)==null?void 0:r.meta});const d=u(p=>{var f,m,w,b;w1(p)&&p.silent||wt(this,Dn,gs).call(this,{type:"error",error:p}),w1(p)||((m=(f=k(this,yn).config).onError)==null||m.call(f,p,this),(b=(w=k(this,yn).config).onSettled)==null||b.call(w,this.state.data,p,this)),this.scheduleGc()},"onError");return I(this,hi,NS({initialPromise:e==null?void 0:e.initialPromise,fn:c.fetchFn,abort:a.abort.bind(a),onSuccess:u(p=>{var f,m,w,b;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,yn).config).onSuccess)==null||m.call(f,p,this),(b=(w=k(this,yn).config).onSettled)==null||b.call(w,p,this.state.error,this),this.scheduleGc()},"onSuccess"),onError:d,onFail:u((p,f)=>{wt(this,Dn,gs).call(this,{type:"failed",failureCount:p,error:f})},"onFail"),onPause:u(()=>{wt(this,Dn,gs).call(this,{type:"pause"})},"onPause"),onContinue:u(()=>{wt(this,Dn,gs).call(this,{type:"continue"})},"onContinue"),retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:u(()=>!0,"canRun")})),k(this,hi).start()}},h(wu,"rn"),wu),Hy=new WeakMap,ic=new WeakMap,yn=new WeakMap,nc=new WeakMap,hi=new WeakMap,Vg=new WeakMap,sc=new WeakMap,Dn=new WeakSet,gs=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,...XS(e.data,this.options),fetchMeta:n.meta??null};case"success":return I(this,ic,void 0),{...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 w1(i)&&i.revert&&k(this,ic)?{...k(this,ic),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),ti.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),k(this,yn).notify({query:this,type:"updated",action:n})})},"#dispatch"),u(sO,"Query"),sO);function XS(n,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:BS(t.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}h(XS,"zw");u(XS,"fetchState");function BR(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(BR,"bv");u(BR,"getDefaultState$1");var vs,rO,gu,Ej=(rO=(gu=class extends xy{constructor(t={}){super(),j(this,vs),this.config=t,I(this,vs,new Map)}build(t,e,i){const s=e.queryKey,r=e.queryHash??L0(s,e);let a=this.get(r);return a||(a=new Rj({client:t,queryKey:s,queryHash:r,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){k(this,vs).has(t.queryHash)||(k(this,vs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=k(this,vs).get(t.queryHash);e&&(t.destroy(),e===t&&k(this,vs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ti.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,vs).get(t)}getAll(){return[...k(this,vs).values()]}find(t){const e={exact:!0,...t};return this.getAll().find(i=>ik(e,i))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(i=>ik(t,i)):e}notify(t){ti.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){ti.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ti.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},h(gu,"nn"),gu),vs=new WeakMap,u(rO,"QueryCache"),rO),bs,xi,rc,Os,ar,aO,vu,zj=(aO=(vu=class extends FR{constructor(t){super(),j(this,Os),j(this,bs),j(this,xi),j(this,rc),this.mutationId=t.mutationId,I(this,xi,t.mutationCache),I(this,bs,[]),this.state=t.state||HS(),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,bs).includes(t)||(k(this,bs).push(t),this.clearGcTimeout(),k(this,xi).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){I(this,bs,k(this,bs).filter(e=>e!==t)),this.scheduleGc(),k(this,xi).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,bs).length||(this.state.status==="pending"?this.scheduleGc():k(this,xi).remove(this))}continue(){var t;return((t=k(this,rc))==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,b,x,O,P,A,R,T;const Z=u(()=>{wt(this,Os,ar).call(this,{type:"continue"})},"onContinue");I(this,rc,NS({fn:u(()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),"fn"),onFail:u((V,G)=>{wt(this,Os,ar).call(this,{type:"failed",failureCount:V,error:G})},"onFail"),onPause:u(()=>{wt(this,Os,ar).call(this,{type:"pause"})},"onPause"),onContinue:Z,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:u(()=>k(this,xi).canRun(this),"canRun")}));const z=this.state.status==="pending",q=!k(this,rc).canStart();try{if(z)Z();else{wt(this,Os,ar).call(this,{type:"pending",variables:t,isPaused:q}),await((i=(e=k(this,xi).config).onMutate)==null?void 0:i.call(e,t,this));const G=await((r=(s=this.options).onMutate)==null?void 0:r.call(s,t));G!==this.state.context&&wt(this,Os,ar).call(this,{type:"pending",context:G,variables:t,isPaused:q})}const V=await k(this,rc).start();return await((o=(a=k(this,xi).config).onSuccess)==null?void 0:o.call(a,V,t,this.state.context,this)),await((c=(l=this.options).onSuccess)==null?void 0:c.call(l,V,t,this.state.context)),await((p=(d=k(this,xi).config).onSettled)==null?void 0:p.call(d,V,null,this.state.variables,this.state.context,this)),await((m=(f=this.options).onSettled)==null?void 0:m.call(f,V,null,t,this.state.context)),wt(this,Os,ar).call(this,{type:"success",data:V}),V}catch(V){try{throw await((b=(w=k(this,xi).config).onError)==null?void 0:b.call(w,V,t,this.state.context,this)),await((O=(x=this.options).onError)==null?void 0:O.call(x,V,t,this.state.context)),await((A=(P=k(this,xi).config).onSettled)==null?void 0:A.call(P,void 0,V,this.state.variables,this.state.context,this)),await((T=(R=this.options).onSettled)==null?void 0:T.call(R,void 0,V,t,this.state.context)),V}finally{wt(this,Os,ar).call(this,{type:"error",error:V})}}finally{k(this,xi).runNext(this)}}},h(vu,"an"),vu),bs=new WeakMap,xi=new WeakMap,rc=new WeakMap,Os=new WeakSet,ar=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),ti.batch(()=>{k(this,bs).forEach(e=>{e.onMutationUpdate(n)}),k(this,xi).notify({mutation:this,type:"updated",action:n})})},"#dispatch"),u(aO,"Mutation"),aO);function HS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}h(HS,"Mw");u(HS,"getDefaultState");var or,Wn,Ug,oO,bu,_j=(oO=(bu=class extends xy{constructor(t={}){super(),j(this,or),j(this,Wn),j(this,Ug),this.config=t,I(this,or,new Set),I(this,Wn,new Map),I(this,Ug,0)}build(t,e,i){const s=new zj({mutationCache:this,mutationId:++ek(this,Ug)._,options:t.defaultMutationOptions(e),state:i});return this.add(s),s}add(t){k(this,or).add(t);const e=bm(t);if(typeof e=="string"){const i=k(this,Wn).get(e);i?i.push(t):k(this,Wn).set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,or).delete(t)){const e=bm(t);if(typeof e=="string"){const i=k(this,Wn).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,Wn).delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=bm(t);if(typeof e=="string"){const i=k(this,Wn).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=bm(t);if(typeof i=="string"){const s=(e=k(this,Wn).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(){ti.batch(()=>{k(this,or).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,or).clear(),k(this,Wn).clear()})}getAll(){return Array.from(k(this,or))}find(t){const e={exact:!0,...t};return this.getAll().find(i=>nk(e,i))}findAll(t={}){return this.getAll().filter(e=>nk(t,e))}notify(t){ti.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return ti.batch(()=>Promise.all(t.map(e=>e.continue().catch(yi))))}},h(bu,"on"),bu),or=new WeakMap,Wn=new WeakMap,Ug=new WeakMap,u(oO,"MutationCache"),oO);function bm(n){var t;return(t=n.options.scope)==null?void 0:t.id}h(bm,"Ml");u(bm,"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 b=!1;const x=u(A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:u(()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal),"get")})},"addSignalProperty"),O=jS(t.options,t.fetchOptions),P=u(async(A,R,T)=>{if(b)return Promise.reject();if(R==null&&A.pages.length)return Promise.resolve(A);const Z=u(()=>{const G={client:t.client,queryKey:t.queryKey,pageParam:R,direction:T?"backward":"forward",meta:t.options.meta};return x(G),G},"createQueryFnContext")(),z=await O(Z),{maxPages:q}=t.options,V=T?WR:DR;return{pages:V(A.pages,z,q),pageParams:V(A.pageParams,R,q)}},"fetchPage");if(c&&d.length){const A=c==="backward",R=A?YS:zv,T={pages:d,pageParams:p},Z=R(l,T);f=await P(T,Z,A)}else{const A=n??d.length;do{const R=m===0?p[0]??l.initialPageParam:zv(l,f);if(m>0&&R==null)break;f=await P(f,R),m++}while(m<A)}return f},"fetchFn");t.options.persister?t.fetchFn=()=>{var b,x;return(x=(b=t.options).persister)==null?void 0:x.call(b,w,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=w},"onFetch")}}h(Aw,"Bl");u(Aw,"infiniteQueryBehavior");function zv(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(zv,"Qh");u(zv,"getNextPageParam");function YS(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(YS,"Pw");u(YS,"getPreviousPageParam");function NR(n,t){return t?zv(n,t)!=null:!1}h(NR,"kv");u(NR,"hasNextPage");function XR(n,t){return!t||!n.getPreviousPageParam?!1:YS(n,t)!=null}h(XR,"_v");u(XR,"hasPreviousPage");var ve,Qa,Ma,Yy,Gy,Ta,Ky,Jy,lO,Ou,Lj=(lO=(Ou=class{constructor(t={}){j(this,ve),j(this,Qa),j(this,Ma),j(this,Yy),j(this,Gy),j(this,Ta),j(this,Ky),j(this,Jy),I(this,ve,t.queryCache||new Ej),I(this,Qa,t.mutationCache||new _j),I(this,Ma,t.defaultOptions||{}),I(this,Yy,new Map),I(this,Gy,new Map),I(this,Ta,0)}mount(){ek(this,Ta)._++,k(this,Ta)===1&&(I(this,Ky,FS.subscribe(async t=>{t&&(await this.resumePausedMutations(),k(this,ve).onFocus())})),I(this,Jy,Rv.subscribe(async t=>{t&&(await this.resumePausedMutations(),k(this,ve).onOnline())})))}unmount(){var t,e;ek(this,Ta)._--,k(this,Ta)===0&&((t=k(this,Ky))==null||t.call(this),I(this,Ky,void 0),(e=k(this,Jy))==null||e.call(this),I(this,Jy,void 0))}isFetching(t){return k(this,ve).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return k(this,Qa).findAll({...t,status:"pending"}).length}getQueryData(t){var e;const i=this.defaultQueryOptions({queryKey:t});return(e=k(this,ve).get(i.queryHash))==null?void 0:e.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),i=k(this,ve).build(this,e),s=i.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(Ws(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(t){return k(this,ve).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,ve).get(s.queryHash),a=r==null?void 0:r.state.data,o=IR(e,a);if(o!==void 0)return k(this,ve).build(this,s).setData(o,{...i,manual:!0})}setQueriesData(t,e,i){return ti.batch(()=>k(this,ve).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,ve).get(i.queryHash))==null?void 0:e.state}removeQueries(t){const e=k(this,ve);ti.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=k(this,ve);return ti.batch(()=>(i.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const i={revert:!0,...e},s=ti.batch(()=>k(this,ve).findAll(t).map(r=>r.cancel(i)));return Promise.all(s).then(yi).catch(yi)}invalidateQueries(t,e={}){return ti.batch(()=>(k(this,ve).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=ti.batch(()=>k(this,ve).findAll(t).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let a=r.fetch(void 0,i);return i.throwOnError||(a=a.catch(yi)),r.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(s).then(yi)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=k(this,ve).build(this,e);return i.isStaleByTime(Ws(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(yi).catch(yi)}fetchInfiniteQuery(t){return t.behavior=Aw(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(yi).catch(yi)}ensureInfiniteQueryData(t){return t.behavior=Aw(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Rv.isOnline()?k(this,Qa).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,ve)}getMutationCache(){return k(this,Qa)}getDefaultOptions(){return k(this,Ma)}setDefaultOptions(t){I(this,Ma,t)}setQueryDefaults(t,e){k(this,Yy).set(ta(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...k(this,Yy).values()],i={};return e.forEach(s=>{ey(t,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(t,e){k(this,Gy).set(ta(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...k(this,Gy).values()],i={};return e.forEach(s=>{ey(t,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...k(this,Ma).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=L0(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===US&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...k(this,Ma).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){k(this,ve).clear(),k(this,Qa).clear()}},h(Ou,"un"),Ou),ve=new WeakMap,Qa=new WeakMap,Ma=new WeakMap,Yy=new WeakMap,Gy=new WeakMap,Ta=new WeakMap,Ky=new WeakMap,Jy=new WeakMap,u(lO,"QueryClient"),lO),Di,Lt,jg,ki,ac,tm,Aa,Ra,Fg,em,im,oc,lc,Ea,nm,be,sm,cO,hO,dO,uO,pO,fO,yO,u3,mO,$u,HR=(mO=($u=class extends xy{constructor(t,e){super(),j(this,be),j(this,Di),j(this,Lt),j(this,jg),j(this,ki),j(this,ac),j(this,tm),j(this,Aa),j(this,Ra),j(this,Fg),j(this,em),j(this,im),j(this,oc),j(this,lc),j(this,Ea),j(this,nm,new Set),this.options=e,I(this,Di,t),I(this,Ra,null),I(this,Aa,Ev()),this.options.experimental_prefetchInRender||k(this,Aa).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),ak(k(this,Lt),this.options)?wt(this,be,sm).call(this):this.updateResult(),wt(this,be,uO).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _v(k(this,Lt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _v(k(this,Lt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,wt(this,be,pO).call(this),wt(this,be,fO).call(this),k(this,Lt).removeObserver(this)}setOptions(t){const e=this.options,i=k(this,Lt);if(this.options=k(this,Di).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ji(this.options.enabled,k(this,Lt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");wt(this,be,yO).call(this),k(this,Lt).setOptions(this.options),e._defaulted&&!Tw(this.options,e)&&k(this,Di).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,Lt),observer:this});const s=this.hasListeners();s&&ok(k(this,Lt),i,this.options,e)&&wt(this,be,sm).call(this),this.updateResult(),s&&(k(this,Lt)!==i||Ji(this.options.enabled,k(this,Lt))!==Ji(e.enabled,k(this,Lt))||Ws(this.options.staleTime,k(this,Lt))!==Ws(e.staleTime,k(this,Lt)))&&wt(this,be,cO).call(this);const r=wt(this,be,hO).call(this);s&&(k(this,Lt)!==i||Ji(this.options.enabled,k(this,Lt))!==Ji(e.enabled,k(this,Lt))||r!==k(this,Ea))&&wt(this,be,dO).call(this,r)}getOptimisticResult(t){const e=k(this,Di).getQueryCache().build(k(this,Di),t),i=this.createResult(e,t);return GR(this,i)&&(I(this,ki,i),I(this,tm,this.options),I(this,ac,k(this,Lt).state)),i}getCurrentResult(){return k(this,ki)}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,nm).add(t)}getCurrentQuery(){return k(this,Lt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=k(this,Di).defaultQueryOptions(t),i=k(this,Di).getQueryCache().build(k(this,Di),e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return wt(this,be,sm).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,ki)))}createResult(t,e){var i;const s=k(this,Lt),r=this.options,a=k(this,ki),o=k(this,ac),l=k(this,tm),c=t!==s?t.state:k(this,jg),{state:d}=t;let p={...d},f=!1,m;if(e._optimisticResults){const q=this.hasListeners(),V=!q&&ak(t,e),G=q&&ok(t,s,e,r);(V||G)&&(p={...p,...XS(d.data,t.options)}),e._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:b,status:x}=p;m=p.data;let O=!1;if(e.placeholderData!==void 0&&m===void 0&&x==="pending"){let q;a!=null&&a.isPlaceholderData&&e.placeholderData===(l==null?void 0:l.placeholderData)?(q=a.data,O=!0):q=typeof e.placeholderData=="function"?e.placeholderData((i=k(this,im))==null?void 0:i.state.data,k(this,im)):e.placeholderData,q!==void 0&&(x="success",m=Av(a==null?void 0:a.data,q,e),f=!0)}if(e.select&&m!==void 0&&!O)if(a&&m===(o==null?void 0:o.data)&&e.select===k(this,Fg))m=k(this,em);else try{I(this,Fg,e.select),m=e.select(m),m=Av(a==null?void 0:a.data,m,e),I(this,em,m),I(this,Ra,null)}catch(q){I(this,Ra,q)}k(this,Ra)&&(w=k(this,Ra),m=k(this,em),b=Date.now(),x="error");const P=p.fetchStatus==="fetching",A=x==="pending",R=x==="error",T=A&&P,Z=m!==void 0,z={status:x,fetchStatus:p.fetchStatus,isPending:A,isSuccess:x==="success",isError:R,isInitialLoading:T,isLoading:T,data:m,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:b,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&&!A,isLoadingError:R&&!Z,isPaused:p.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:R&&Z,isStale:I0(t,e),refetch:this.refetch,promise:k(this,Aa)};if(this.options.experimental_prefetchInRender){const q=u(K=>{z.status==="error"?K.reject(z.error):z.data!==void 0&&K.resolve(z.data)},"finalizeThenableIfPossible"),V=u(()=>{const K=I(this,Aa,z.promise=Ev());q(K)},"recreateThenable"),G=k(this,Aa);switch(G.status){case"pending":t.queryHash===s.queryHash&&q(G);break;case"fulfilled":(z.status==="error"||z.data!==G.value)&&V();break;case"rejected":(z.status!=="error"||z.error!==G.reason)&&V();break}}return z}updateResult(){const t=k(this,ki),e=this.createResult(k(this,Lt),this.options);if(I(this,ac,k(this,Lt).state),I(this,tm,this.options),k(this,ac).data!==void 0&&I(this,im,k(this,Lt)),Tw(e,t))return;I(this,ki,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,nm).size)return!0;const a=new Set(r??k(this,nm));return this.options.throwOnError&&a.add("error"),Object.keys(k(this,ki)).some(o=>{const l=o;return k(this,ki)[l]!==t[l]&&a.has(l)})},"shouldNotifyListeners");wt(this,be,u3).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&wt(this,be,uO).call(this)}},h($u,"mn"),$u),Di=new WeakMap,Lt=new WeakMap,jg=new WeakMap,ki=new WeakMap,ac=new WeakMap,tm=new WeakMap,Aa=new WeakMap,Ra=new WeakMap,Fg=new WeakMap,em=new WeakMap,im=new WeakMap,oc=new WeakMap,lc=new WeakMap,Ea=new WeakMap,nm=new WeakMap,be=new WeakSet,sm=u(function(n){wt(this,be,yO).call(this);let t=k(this,Lt).fetch(this.options,n);return n!=null&&n.throwOnError||(t=t.catch(yi)),t},"#executeFetch"),cO=u(function(){wt(this,be,pO).call(this);const n=Ws(this.options.staleTime,k(this,Lt));if(ty||k(this,ki).isStale||!Mv(n))return;const t=VS(k(this,ki).dataUpdatedAt,n)+1;I(this,oc,setTimeout(()=>{k(this,ki).isStale||this.updateResult()},t))},"#updateStaleTimeout"),hO=u(function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,Lt)):this.options.refetchInterval)??!1},"#computeRefetchInterval"),dO=u(function(n){wt(this,be,fO).call(this),I(this,Ea,n),!(ty||Ji(this.options.enabled,k(this,Lt))===!1||!Mv(k(this,Ea))||k(this,Ea)===0)&&I(this,lc,setInterval(()=>{(this.options.refetchIntervalInBackground||FS.isFocused())&&wt(this,be,sm).call(this)},k(this,Ea)))},"#updateRefetchInterval"),uO=u(function(){wt(this,be,cO).call(this),wt(this,be,dO).call(this,wt(this,be,hO).call(this))},"#updateTimers"),pO=u(function(){k(this,oc)&&(clearTimeout(k(this,oc)),I(this,oc,void 0))},"#clearStaleTimeout"),fO=u(function(){k(this,lc)&&(clearInterval(k(this,lc)),I(this,lc,void 0))},"#clearRefetchInterval"),yO=u(function(){const n=k(this,Di).getQueryCache().build(k(this,Di),this.options);if(n===k(this,Lt))return;const t=k(this,Lt);I(this,Lt,n),I(this,jg,n.state),this.hasListeners()&&(t==null||t.removeObserver(this),n.addObserver(this))},"#updateQuery"),u3=u(function(n){ti.batch(()=>{n.listeners&&this.listeners.forEach(t=>{t(k(this,ki))}),k(this,Di).getQueryCache().notify({query:k(this,Lt),type:"observerResultsUpdated"})})},"#notify"),u(mO,"QueryObserver"),mO);function YR(n,t){return Ji(t.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&t.retryOnMount===!1)}h(YR,"Mv");u(YR,"shouldLoadOnMount");function ak(n,t){return YR(n,t)||n.state.data!==void 0&&_v(n,t,t.refetchOnMount)}h(ak,"oy");u(ak,"shouldFetchOnMount");function _v(n,t,e){if(Ji(t.enabled,n)!==!1&&Ws(t.staleTime,n)!=="static"){const i=typeof e=="function"?e(n):e;return i==="always"||i!==!1&&I0(n,t)}return!1}h(_v,"eu");u(_v,"shouldFetchOn");function ok(n,t,e,i){return(n!==t||Ji(i.enabled,n)===!1)&&(!e.suspense||n.state.status!=="error")&&I0(n,e)}h(ok,"cy");u(ok,"shouldFetchOptionally");function I0(n,t){return Ji(t.enabled,n)!==!1&&n.isStaleByTime(Ws(t.staleTime,n))}h(I0,"ju");u(I0,"isStale");function GR(n,t){return!Tw(n.getCurrentResult(),t)}h(GR,"Pv");u(GR,"shouldAssignObserverCurrentProperties");var wO,xu,Ij=(wO=(xu=class extends HR{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",b=o&&p==="backward";return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:NR(e,r.data),hasPreviousPage:XR(e,r.data),isFetchNextPageError:f,isFetchingNextPage:m,isFetchPreviousPageError:w,isFetchingPreviousPage:b,isRefetchError:d&&!f&&!w,isRefetching:l&&!m&&!b}}},h(xu,"vn"),xu),u(wO,"InfiniteQueryObserver"),wO),za,_a,Wi,lr,La,Bg,gO,vO,ku,jt=(vO=(ku=class extends xy{constructor(t,e){super(),j(this,La),j(this,za),j(this,_a),j(this,Wi),j(this,lr),I(this,za,t),this.setOptions(e),this.bindMethods(),wt(this,La,Bg).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,za).defaultMutationOptions(t),Tw(this.options,i)||k(this,za).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Wi),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&ta(i.mutationKey)!==ta(this.options.mutationKey)?this.reset():((e=k(this,Wi))==null?void 0:e.state.status)==="pending"&&k(this,Wi).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=k(this,Wi))==null||t.removeObserver(this)}onMutationUpdate(t){wt(this,La,Bg).call(this),wt(this,La,gO).call(this,t)}getCurrentResult(){return k(this,_a)}reset(){var t;(t=k(this,Wi))==null||t.removeObserver(this),I(this,Wi,void 0),wt(this,La,Bg).call(this),wt(this,La,gO).call(this)}mutate(t,e){var i;return I(this,lr,e),(i=k(this,Wi))==null||i.removeObserver(this),I(this,Wi,k(this,za).getMutationCache().build(k(this,za),this.options)),k(this,Wi).addObserver(this),k(this,Wi).execute(t)}},h(ku,"gn"),ku),za=new WeakMap,_a=new WeakMap,Wi=new WeakMap,lr=new WeakMap,La=new WeakSet,Bg=u(function(){var n;const t=((n=k(this,Wi))==null?void 0:n.state)??HS();I(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"),gO=u(function(n){ti.batch(()=>{var t,e,i,s,r,a,o,l;if(k(this,lr)&&this.hasListeners()){const c=k(this,_a).variables,d=k(this,_a).context;(n==null?void 0:n.type)==="success"?((e=(t=k(this,lr)).onSuccess)==null||e.call(t,n.data,c,d),(s=(i=k(this,lr)).onSettled)==null||s.call(i,n.data,null,c,d)):(n==null?void 0:n.type)==="error"&&((a=(r=k(this,lr)).onError)==null||a.call(r,n.error,c,d),(l=(o=k(this,lr)).onSettled)==null||l.call(o,void 0,n.error,c,d))}this.listeners.forEach(c=>{c(k(this,_a))})})},"#notify"),u(vO,"MutationObserver"),vO);function GS(n){return n}h(GS,"Ew");u(GS,"defaultTransformerFn");function KR(n){return{mutationKey:n.options.mutationKey,state:n.state,...n.options.scope&&{scope:n.options.scope},...n.meta&&{meta:n.meta}}}h(KR,"Av");u(KR,"dehydrateMutation");function JR(n,t,e){var i;return{dehydratedAt:Date.now(),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(JR,"Ev");u(JR,"dehydrateQuery");function tE(n){return n.state.isPaused}h(tE,"Ov");u(tE,"defaultShouldDehydrateMutation");function eE(n){return n.state.status==="success"}h(eE,"Rv");u(eE,"defaultShouldDehydrateQuery");function iE(n){return!0}h(iE,"Lv");u(iE,"defaultShouldRedactErrors");function nE(n,t={}){var e,i,s,r;const a=t.shouldDehydrateMutation??((e=n.getDefaultOptions().dehydrate)==null?void 0:e.shouldDehydrateMutation)??tE,o=n.getMutationCache().getAll().flatMap(f=>a(f)?[KR(f)]:[]),l=t.shouldDehydrateQuery??((i=n.getDefaultOptions().dehydrate)==null?void 0:i.shouldDehydrateQuery)??eE,c=t.shouldRedactErrors??((s=n.getDefaultOptions().dehydrate)==null?void 0:s.shouldRedactErrors)??iE,d=t.serializeData??((r=n.getDefaultOptions().dehydrate)==null?void 0:r.serializeData)??GS,p=n.getQueryCache().getAll().flatMap(f=>l(f)?[JR(f,d,c)]:[]);return{mutations:o,queries:p}}h(nE,"Iv");u(nE,"dehydrate");function sE(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)??GS,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,dehydratedAt:w})=>{var b,x;const O=m?qR(m):void 0,P=d.data===void 0?O==null?void 0:O.data:d.data,A=P===void 0?P:a(P);let R=r.get(p);const T=(R==null?void 0:R.state.status)==="pending",Z=(R==null?void 0:R.state.fetchStatus)==="fetching";if(R){const z=O&&w!==void 0&&w>R.state.dataUpdatedAt;if(d.dataUpdatedAt>R.state.dataUpdatedAt||z){const{fetchStatus:q,...V}=d;R.setState({...V,data:A})}}else R=r.build(n,{...(b=n.getDefaultOptions().hydrate)==null?void 0:b.queries,...(x=e==null?void 0:e.defaultOptions)==null?void 0:x.queries,queryKey:c,queryHash:p,meta:f},{...d,data:A,fetchStatus:"idle",status:A!==void 0?"success":d.status});m&&!T&&!Z&&(w===void 0||w>R.state.dataUpdatedAt)&&R.fetch(void 0,{initialPromise:Promise.resolve(m).then(a)})})}h(sE,"Tv");u(sE,"hydrate");var Ct=(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))(Ct||{}),bn=(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))(bn||{}),rE=(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))(rE||{}),aE=(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))(aE||{}),oE=(n=>(n["2352a1c6-abc6-420e-8b85-ca7d5aed8779"]="agent_chat",n))(oE||{}),lE=(n=>(n.agent_chat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",n))(lE||{}),sn=(n=>(n.Unknown="unknown",n))(sn||{}),mr=(n=>(n.None="none",n.Read="read",n.Write="write",n.Admin="admin",n))(mr||{}),Fo=(n=>(n.List="list",n.Read="read",n.Create="create",n.Update="update",n.Delete="delete",n.Admin="admin",n))(Fo||{}),li=(n=>(n.App="app",n.File="file",n.Message="message",n.User="user",n.Comment="comment",n.Post="post",n))(li||{});function ll(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(ll,"tc");u(ll,"getApiOptions");async function Lv(n,t,e,i,s,r="GET",a=!1){const o=n.queryClient,l=ll(n,t,e,i,s,r);return a?(l.staleTime=1,await o.fetchQuery(l)):await o.ensureQueryData(l)}h(Lv,"su");u(Lv,"getApi");function cE(n,t,e=sn.Unknown,i){return e===sn.Unknown||typeof t=="number"?Lv(n,["apps",t]):Lv(n,["apps",t],void 0,void 0,JSON.stringify({type:e,...i}),"PUT")}h(cE,"Fv");u(cE,"getApp");function hE(n,t,e=sn.Unknown,i,s){return{queryKey:["apps",t],queryFn:u(async()=>{const r=[];e===sn.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(hE,"Dv");u(hE,"getOrCreateAppOptions");function dE(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(dE,"Hv");u(dE,"getCreateAppMutationOptions");function KS(n){return new jt(n.queryClient,dE(n))}h(KS,"Tw");u(KS,"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,"Fw");u(JS,"getAppSubscribeMutationOptions");function uE(n,t=[Ct.ChatRoom,Ct.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 ll(n,["apps","badge",t],r,i)}h(uE,"Vv");u(uE,"getBadgeOptions$1");function pE(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(pE,"Bv");u(pE,"getAppListOptions");const Zj=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 cE(r,a)}}}}},h(e,"t"),e),u(t,"WeavyApi"),t},"WeavyApiMixin"),Dj=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 fE(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}h(fE,"Nv");u(fE,"getDefaultExportFromCjs");function g1(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(g1,"Mh");u(g1,"commonjsRequire");var p3={exports:{}},f3;function yE(){return f3||(f3=1,function(n,t){var e;e=u(()=>(()=>{var vl,bl,Ol,$l,xl,kl,Sl,Pl,Cl,Ql,Ml,Tl,ys,Al,Rl,El,zl,_l,ms,Ll,Il,Zl,Dl,Oa,Wl,ql,Vl,Ul,jl,Fl,Bl,Nl,$a,Xl,Hl,Yl;var i={d:u((B,g)=>{for(var S in g)i.o(g,S)&&!i.o(B,S)&&Object.defineProperty(B,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=(B,g)=>Object.prototype.hasOwnProperty.call(B,g),i.r=B=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"t",{value:!0})};var s,r={};i.r(r),i.d(r,{AbortError:u(()=>p,"AbortError"),DefaultHttpClient:u(()=>dC,"DefaultHttpClient"),HttpClient:u(()=>V,"HttpClient"),HttpError:u(()=>o,"HttpError"),HttpResponse:u(()=>z,"HttpResponse"),HttpTransportType:u(()=>Pe,"HttpTransportType"),HubConnection:u(()=>vC,"HubConnection"),HubConnectionBuilder:u(()=>xZ,"HubConnectionBuilder"),HubConnectionState:u(()=>Kt,"HubConnectionState"),JsonHubProtocol:u(()=>EC,"JsonHubProtocol"),LogLevel:u(()=>s,"LogLevel"),MessageType:u(()=>Pt,"MessageType"),NullLogger:u(()=>K,"NullLogger"),Subject:u(()=>yC,"Subject"),TimeoutError:u(()=>c,"TimeoutError"),TransferFormat:u(()=>Ne,"TransferFormat"),VERSION:u(()=>N,"VERSION")});const a=(vl=class extends Error{constructor(g,S){const E=new.target.prototype;super(`${g}: Status code '${S}'`),this.statusCode=S,this.__proto__=E}},h(vl,"Qd"),vl);u(a,"i");let o=a;const l=(bl=class extends Error{constructor(g="A timeout occurred."){const S=new.target.prototype;super(g),this.__proto__=S}},h(bl,"Kd"),bl);u(l,"n");let c=l;const d=(Ol=class extends Error{constructor(g="An abort occurred."){const S=new.target.prototype;super(g),this.__proto__=S}},h(Ol,"Gd"),Ol);u(d,"r");let p=d;const f=($l=class extends Error{constructor(g,S){const E=new.target.prototype;super(g),this.transport=S,this.errorType="UnsupportedTransportError",this.__proto__=E}},h($l,"Zd"),$l);u(f,"o");let m=f;const w=(xl=class extends Error{constructor(g,S){const E=new.target.prototype;super(g),this.transport=S,this.errorType="DisabledTransportError",this.__proto__=E}},h(xl,"Yd"),xl);u(w,"h");let b=w;const x=(kl=class extends Error{constructor(g,S){const E=new.target.prototype;super(g),this.transport=S,this.errorType="FailedToStartTransportError",this.__proto__=E}},h(kl,"Xd"),kl);u(x,"c");let O=x;const P=(Sl=class extends Error{constructor(g){const S=new.target.prototype;super(g),this.errorType="FailedToNegotiateWithServerError",this.__proto__=S}},h(Sl,"Jd"),Sl);u(P,"a");let A=P;const R=(Pl=class extends Error{constructor(g,S){const E=new.target.prototype;super(g),this.innerErrors=S,this.__proto__=E}},h(Pl,"th"),Pl);u(R,"l");let T=R;const Z=(Cl=class{constructor(g,S,E){this.statusCode=g,this.statusText=S,this.content=E}},h(Cl,"eh"),Cl);u(Z,"u");let z=Z;const q=(Ql=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(Ql,"ih"),Ql);u(q,"d");let V=q;(function(B){B[B.Trace=0]="Trace",B[B.Debug=1]="Debug",B[B.Information=2]="Information",B[B.Warning=3]="Warning",B[B.Error=4]="Error",B[B.Critical=5]="Critical",B[B.None=6]="None"})(s||(s={}));const G=(Ml=class{constructor(){}log(g,S){}},h(Ml,"sh"),Ml);u(G,"f");let K=G;K.instance=new K;const N="8.0.7",st=(Tl=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,E){if(!(g in S))throw new Error(`Unknown ${E} value: ${g}.`)}},h(Tl,"rh"),Tl);u(st,"w");let tt=st;const Mt=(ys=class{static get isBrowser(){return!ys.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!ys.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!ys.isNode&&typeof window=="object"&&window.document===void 0}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}},h(ys,"Sr"),ys);u(Mt,"g");let bt=Mt;function Zt(B,g){let S="";return qt(B)?(S=`Binary data of length ${B.byteLength}`,g&&(S+=`. Content: '${function(E){const _=new Uint8Array(E);let D="";return _.forEach(U=>{D+=`0x${U<16?"0":""}${U.toString(16)} `}),D.substr(0,D.length-1)}(B)}'`)):typeof B=="string"&&(S=`String data of length ${B.length}`,g&&(S+=`. Content: '${B}'`)),S}h(Zt,"N"),u(Zt,"m");function qt(B){return B&&typeof ArrayBuffer<"u"&&(B instanceof ArrayBuffer||B.constructor&&B.constructor.name==="ArrayBuffer")}h(qt,"O"),u(qt,"y");async function Vt(B,g,S,E,_,D){const U={},[ct,ht]=ge();U[ct]=ht,B.log(s.Trace,`(${g} transport) sending data. ${Zt(_,D.logMessageContent)}.`);const At=qt(_)?"arraybuffer":"text",Yt=await S.post(E,{content:_,headers:{...U,...D.headers},responseType:At,timeout:D.timeout,withCredentials:D.withCredentials});B.log(s.Trace,`(${g} transport) request complete. Response status: ${Yt.statusCode}.`)}h(Vt,"F"),u(Vt,"b");const Oi=(Al=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(Al,"nh"),Al);u(Oi,"v");let _e=Oi;const ue=(Rl=class{constructor(g){this.l=g,this.out=console}log(g,S){if(g>=this.l){const E=`[${new Date().toISOString()}] ${s[g]}: ${S}`;switch(g){case s.Critical:case s.Error:this.out.error(E);break;case s.Warning:this.out.warn(E);break;case s.Information:this.out.info(E);break;default:this.out.log(E)}}}},h(Rl,"ah"),Rl);u(ue,"E");let ie=ue;function ge(){let B="X-SignalR-User-Agent";return bt.isNode&&(B="User-Agent"),[B,$i(N,Li(),bt.isNode?"NodeJS":"Browser",Yi())]}h(ge,"U"),u(ge,"$");function $i(B,g,S,E){let _="Microsoft SignalR/";const D=B.split(".");return _+=`${D[0]}.${D[1]}`,_+=` (${B}; `,_+=g&&g!==""?`${g}; `:"Unknown OS; ",_+=`${S}`,_+=E?`; ${E}`:"; Unknown Runtime Version",_+=")",_}h($i,"j"),u($i,"C");function Li(){if(!bt.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}h(Li,"J"),u(Li,"S");function Yi(){if(bt.isNode)return process.versions.node}h(Yi,"wt"),u(Yi,"k");function Ht(B){return B.stack?B.stack:B.message?B.message:`${B}`}h(Ht,"Y"),u(Ht,"P");const fn=(El=class extends V{constructor(g){if(super(),this.u=g,typeof fetch>"u"||bt.isNode){const S=g1;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=g1;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 E;g.abortSignal&&(g.abortSignal.onabort=()=>{S.abort(),E=new p});let _,D=null;if(g.timeout){const ht=g.timeout;D=setTimeout(()=>{S.abort(),this.u.log(s.Warning,"Timeout from HTTP request."),E=new c},ht)}g.content===""&&(g.content=void 0),g.content&&(g.headers=g.headers||{},qt(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(ht){throw E||(this.u.log(s.Warning,`Error from HTTP request. ${ht}.`),ht)}finally{D&&clearTimeout(D),g.abortSignal&&(g.abortSignal.onabort=null)}if(!_.ok){const ht=await gl(_,"text");throw new o(ht||_.statusText,_.status)}const U=gl(_,g.responseType),ct=await U;return new z(_.status,_.statusText,ct)}getCookieString(g){let S="";return bt.isNode&&this.p&&this.p.getCookies(g,(E,_)=>S=_.join("; ")),S}},h(El,"oh"),El);u(fn,"T");let va=fn;function gl(B,g){let S;switch(g){case"arraybuffer":S=B.arrayBuffer();break;case"text":default:S=B.text();break;case"blob":case"document":case"json":throw new Error(`${g} is not supported.`)}return S}h(gl,"Nt"),u(gl,"I");const cC=(zl=class extends V{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,E)=>{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&&(qt(g.content)?_.setRequestHeader("Content-Type","application/octet-stream"):_.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const D=g.headers;D&&Object.keys(D).forEach(U=>{_.setRequestHeader(U,D[U])}),g.responseType&&(_.responseType=g.responseType),g.abortSignal&&(g.abortSignal.onabort=()=>{_.abort(),E(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)):E(new o(_.response||_.responseText||_.statusText,_.status))},_.onerror=()=>{this.u.log(s.Warning,`Error from HTTP request. ${_.status}: ${_.statusText}.`),E(new o(_.statusText,_.status))},_.ontimeout=()=>{this.u.log(s.Warning,"Timeout from HTTP request."),E(new c)},_.send(g.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}},h(zl,"ch"),zl);u(cC,"_");let dZ=cC;const hC=(_l=class extends V{constructor(g){if(super(),typeof fetch<"u"||bt.isNode)this.$=new va(g);else{if(typeof XMLHttpRequest>"u")throw new Error("No usable HttpClient found.");this.$=new dZ(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(_l,"lh"),_l);u(hC,"H");let dC=hC;const uC=(ms=class{static write(g){return`${g}${ms.RecordSeparator}`}static parse(g){if(g[g.length-1]!==ms.RecordSeparator)throw new Error("Message is incomplete.");const S=g.split(ms.RecordSeparator);return S.pop(),S}},h(ms,"Ar"),ms);u(uC,"D");let fs=uC;fs.RecordSeparatorCode=30,fs.RecordSeparator=String.fromCharCode(fs.RecordSeparatorCode);const pC=(Ll=class{writeHandshakeRequest(g){return fs.write(JSON.stringify(g))}parseHandshakeResponse(g){let S,E;if(qt(g)){const U=new Uint8Array(g),ct=U.indexOf(fs.RecordSeparatorCode);if(ct===-1)throw new Error("Message is incomplete.");const ht=ct+1;S=String.fromCharCode.apply(null,Array.prototype.slice.call(U.slice(0,ht))),E=U.byteLength>ht?U.slice(ht).buffer:null}else{const U=g,ct=U.indexOf(fs.RecordSeparator);if(ct===-1)throw new Error("Message is incomplete.");const ht=ct+1;S=U.substring(0,ht),E=U.length>ht?U.substring(ht):null}const _=fs.parse(S),D=JSON.parse(_[0]);if(D.type)throw new Error("Expected a handshake response from the server.");return[E,D]}},h(Ll,"dh"),Ll);u(pC,"R");let uZ=pC;var Pt,Kt;(function(B){B[B.Invocation=1]="Invocation",B[B.StreamItem=2]="StreamItem",B[B.Completion=3]="Completion",B[B.StreamInvocation=4]="StreamInvocation",B[B.CancelInvocation=5]="CancelInvocation",B[B.Ping=6]="Ping",B[B.Close=7]="Close",B[B.Ack=8]="Ack",B[B.Sequence=9]="Sequence"})(Pt||(Pt={}));const fC=(Il=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 _e(this,g)}},h(Il,"hh"),Il);u(fC,"U");let yC=fC;const mC=(Zl=class{constructor(g,S,E){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=E}async A(g){const S=this.D.writeMessage(g);let E=Promise.resolve();if(this.U(g)){this.k++;let _=u(()=>{},"t"),D=u(()=>{},"i");qt(S)?this._+=S.byteLength:this._+=S.length,this._>=this.C&&(E=new Promise((U,ct)=>{_=U,D=ct})),this.S.push(new fZ(S,this.k,_,D))}try{this.H||await this.R.send(S)}catch{this.L()}await E}N(g){let S=-1;for(let E=0;E<this.S.length;E++){const _=this.S[E];if(_.q<=g.sequenceId)S=E,qt(_.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===Pt.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:Pt.Sequence,sequenceId:g}));const S=this.S;for(const E of S)await this.R.send(E.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 Pt.Invocation:case Pt.StreamItem:case Pt.Completion:case Pt.StreamInvocation:case Pt.CancelInvocation:return!0;case Pt.Close:case Pt.Sequence:case Pt.Ping:case Pt.Ack:return!1}}O(){this.V===void 0&&(this.V=setTimeout(async()=>{try{this.H||await this.R.send(this.D.writeMessage({type:Pt.Ack,sequenceId:this.I}))}catch{}clearTimeout(this.V),this.V=void 0},1e3))}},h(Zl,"uh"),Zl);u(mC,"L");let pZ=mC;const wC=(Dl=class{constructor(g,S,E,_){this.M=g,this.q=S,this.j=E,this.J=_}},h(Dl,"ph"),Dl);u(wC,"N");let fZ=wC;(function(B){B.Disconnected="Disconnected",B.Connecting="Connecting",B.Connected="Connected",B.Disconnecting="Disconnecting",B.Reconnecting="Reconnecting"})(Kt||(Kt={}));const gC=(Oa=class{static create(g,S,E,_,D,U,ct){return new Oa(g,S,E,_,D,U,ct)}constructor(g,S,E,_,D,U,ct){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")},tt.isRequired(g,"connection"),tt.isRequired(S,"logger"),tt.isRequired(E,"protocol"),this.serverTimeoutInMilliseconds=D??3e4,this.keepAliveIntervalInMilliseconds=U??15e3,this.Y=ct??1e5,this.u=S,this.D=E,this.connection=g,this.Z=_,this.tt=new uZ,this.connection.onreceive=ht=>this.et(ht),this.connection.onclose=ht=>this.st(ht),this.it={},this.nt={},this.rt=[],this.ot=[],this.ht=[],this.ct=0,this.lt=!1,this.ut=Kt.Disconnected,this.dt=!1,this.ft=this.D.writeMessage({type:Pt.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!==Kt.Disconnected&&this.ut!==Kt.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!==Kt.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this.ut=Kt.Connecting,this.u.log(s.Debug,"Starting HubConnection.");try{await this.yt(),bt.isBrowser&&window.document.addEventListener("freeze",this.G),this.ut=Kt.Connected,this.dt=!0,this.u.log(s.Debug,"HubConnection connected successfully.")}catch(g){return this.ut=Kt.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,E)=>{this.vt=S,this.Et=E});await this.connection.start(this.D.transferFormat);try{let S=this.D.version;this.connection.features.reconnect||(S=1);const E={protocol:this.D.name,version:S};if(this.u.log(s.Debug,"Sending handshake request."),await this.$t(this.tt.writeHandshakeRequest(E)),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 pZ(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===Kt.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===Kt.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=Kt.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===Kt.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[E,_]=this.Ut(S),D=this.Lt(g,S,_);let U;const ct=new yC;return ct.cancelCallback=()=>{const ht=this.Nt(D.invocationId);return delete this.it[D.invocationId],U.then(()=>this.xt(ht))},this.it[D.invocationId]=(ht,At)=>{At?ct.error(At):ht&&(ht.type===Pt.Completion?ht.error?ct.error(new Error(ht.error)):ct.complete():ct.next(ht.item))},U=this.xt(D).catch(ht=>{ct.error(ht),delete this.it[D.invocationId]}),this.qt(E,U),ct}$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[E,_]=this.Ut(S),D=this.xt(this.Mt(g,S,!0,_));return this.qt(E,D),D}invoke(g,...S){const[E,_]=this.Ut(S),D=this.Mt(g,S,!1,_);return new Promise((U,ct)=>{this.it[D.invocationId]=(At,Yt)=>{Yt?ct(Yt):At&&(At.type===Pt.Completion?At.error?ct(new Error(At.error)):U(At.result):ct(new Error(`Unexpected message type: ${At.type}`)))};const ht=this.xt(D).catch(At=>{ct(At),delete this.it[D.invocationId]});this.qt(E,ht)})}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 E=this.nt[g];if(E)if(S){const _=E.indexOf(S);_!==-1&&(E.splice(_,1),E.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 E of S)if(!this.Pt||this.Pt.W(E))switch(E.type){case Pt.Invocation:this.Wt(E).catch(_=>{this.u.log(s.Error,`Invoke client method threw error: ${Ht(_)}`)});break;case Pt.StreamItem:case Pt.Completion:{const _=this.it[E.invocationId];if(_){E.type===Pt.Completion&&delete this.it[E.invocationId];try{_(E)}catch(D){this.u.log(s.Error,`Stream callback threw error: ${Ht(D)}`)}}break}case Pt.Ping:break;case Pt.Close:{this.u.log(s.Information,"Close message received from server.");const _=E.error?new Error("Server returned an error on close: "+E.error):void 0;E.allowReconnect===!0?this.connection.stop(_):this.It=this._t(_);break}case Pt.Ack:this.Pt&&this.Pt.N(E);break;case Pt.Sequence:this.Pt&&this.Pt.F(E);break;default:this.u.log(s.Warning,`Invalid message type: ${E.type}.`)}}this.St()}jt(g){let S,E;try{[E,S]=this.tt.parseHandshakeResponse(g)}catch(_){const D="Error parsing handshake response: "+_;this.u.log(s.Error,D);const U=new Error(D);throw this.Et(U),U}if(S.error){const _="Server returned handshake error: "+S.error;this.u.log(s.Error,_);const D=new Error(_);throw this.Et(D),D}return this.u.log(s.Debug,"Server handshake complete."),this.vt(),E}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===Kt.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(),E=this.nt[S];if(!E)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 _=E.slice(),D=!!g.invocationId;let U,ct,ht;for(const At of _)try{const Yt=U;U=await At.apply(this,g.arguments),D&&U&&Yt&&(this.u.log(s.Error,`Multiple results provided for '${S}'. Sending error to server.`),ht=this.Bt(g.invocationId,"Client provided multiple results.",null)),ct=void 0}catch(Yt){ct=Yt,this.u.log(s.Error,`A callback for the method '${S}' threw error '${Yt}'.`)}ht?await this.xt(ht):D?(ct?ht=this.Bt(g.invocationId,`${ct}`,null):U!==void 0?ht=this.Bt(g.invocationId,null,U):(this.u.log(s.Warning,`No result given for '${S}' method and invocation ID '${g.invocationId}'.`),ht=this.Bt(g.invocationId,"Client didn't provide a result.",null)),await this.xt(ht)):U&&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===Kt.Disconnecting?this.Dt(g):this.ut===Kt.Connected&&this.Z?this.Jt(g):this.ut===Kt.Connected&&this.Dt(g)}Dt(g){if(this.dt){this.ut=Kt.Disconnected,this.dt=!1,this.Pt&&(this.Pt.X(g??new Error("Connection closed.")),this.Pt=void 0),bt.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 E=0,_=g!==void 0?g:new Error("Attempting to reconnect due to a unknown error."),D=this.zt(E++,0,_);if(D===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=Kt.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(U=>U.apply(this,[g]))}catch(U){this.u.log(s.Error,`An onreconnecting callback called with error '${g}' threw error '${U}'.`)}if(this.ut!==Kt.Reconnecting)return void this.u.log(s.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;D!==null;){if(this.u.log(s.Information,`Reconnect attempt number ${E} will start in ${D} ms.`),await new Promise(U=>{this.Ht=setTimeout(U,D)}),this.Ht=void 0,this.ut!==Kt.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=Kt.Connected,this.u.log(s.Information,"HubConnection reconnected successfully."),this.ht.length!==0)try{this.ht.forEach(U=>U.apply(this,[this.connection.connectionId]))}catch(U){this.u.log(s.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${U}'.`)}return}catch(U){if(this.u.log(s.Information,`Reconnect attempt failed because of error '${U}'.`),this.ut!==Kt.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===Kt.Disconnecting&&this.Dt());_=U instanceof Error?U:new Error(U.toString()),D=this.zt(E++,Date.now()-S,_)}}this.u.log(s.Information,`Reconnect retries have been exhausted after ${Date.now()-S} ms and ${E} failed attempts. Connection disconnecting.`),this.Dt()}zt(g,S,E){try{return this.Z.nextRetryDelayInMilliseconds({elapsedMilliseconds:S,previousRetryCount:g,retryReason:E})}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(E=>{const _=S[E];try{_(null,g)}catch(D){this.u.log(s.Error,`Stream 'error' callback called with '${g}' threw error: ${Ht(D)}`)}})}Tt(){this.Ft&&(clearTimeout(this.Ft),this.Ft=void 0)}Ct(){this.Ot&&clearTimeout(this.Ot)}Mt(g,S,E,_){if(E)return _.length!==0?{arguments:S,streamIds:_,target:g,type:Pt.Invocation}:{arguments:S,target:g,type:Pt.Invocation};{const D=this.ct;return this.ct++,_.length!==0?{arguments:S,invocationId:D.toString(),streamIds:_,target:g,type:Pt.Invocation}:{arguments:S,invocationId:D.toString(),target:g,type:Pt.Invocation}}}qt(g,S){if(g.length!==0){S||(S=Promise.resolve());for(const E in g)g[E].subscribe({complete:u(()=>{S=S.then(()=>this.xt(this.Bt(E)))},"complete"),error:u(_=>{let D;D=_ instanceof Error?_.message:_&&_.toString?_.toString():"Unknown error",S=S.then(()=>this.xt(this.Bt(E,D)))},"error"),next:u(_=>{S=S.then(()=>this.xt(this.Vt(E,_)))},"next")})}}Ut(g){const S=[],E=[];for(let _=0;_<g.length;_++){const D=g[_];if(this.Kt(D)){const U=this.ct;this.ct++,S[U]=D,E.push(U.toString()),g.splice(_,1)}}return[S,E]}Kt(g){return g&&g.subscribe&&typeof g.subscribe=="function"}Lt(g,S,E){const _=this.ct;return this.ct++,E.length!==0?{arguments:S,invocationId:_.toString(),streamIds:E,target:g,type:Pt.StreamInvocation}:{arguments:S,invocationId:_.toString(),target:g,type:Pt.StreamInvocation}}Nt(g){return{invocationId:g,type:Pt.CancelInvocation}}Vt(g,S){return{invocationId:g,item:S,type:Pt.StreamItem}}Bt(g,S,E){return S?{error:S,invocationId:g,type:Pt.Completion}:{invocationId:g,result:E,type:Pt.Completion}}At(){return{type:Pt.Close}}},h(Oa,"kl"),Oa);u(gC,"q");let vC=gC;const yZ=[0,2e3,1e4,3e4,null],bC=(Wl=class{constructor(g){this.Gt=g!==void 0?[...g,null]:yZ}nextRetryDelayInMilliseconds(g){return this.Gt[g.previousRetryCount]}},h(Wl,"yh"),Wl);u(bC,"j");let OC=bC;const $C=(ql=class{},h(ql,"wh"),ql);u($C,"W");let ba=$C;ba.Authorization="Authorization",ba.Cookie="Cookie";const xC=(Vl=class extends V{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 E=await this.Qt.send(g);return S&&E.statusCode===401&&this.Yt?(this.Zt=await this.Yt(),this.te(g),await this.Qt.send(g)):E}te(g){g.headers||(g.headers={}),this.Zt?g.headers[ba.Authorization]=`Bearer ${this.Zt}`:this.Yt&&g.headers[ba.Authorization]&&delete g.headers[ba.Authorization]}getCookieString(g){return this.Qt.getCookieString(g)}},h(Vl,"fh"),Vl);u(xC,"O");let mZ=xC;var Pe,Ne;(function(B){B[B.None=0]="None",B[B.WebSockets=1]="WebSockets",B[B.ServerSentEvents=2]="ServerSentEvents",B[B.LongPolling=4]="LongPolling"})(Pe||(Pe={})),function(B){B[B.Text=1]="Text",B[B.Binary=2]="Binary"}(Ne||(Ne={}));const kC=(Ul=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(Ul,"mh"),Ul);u(kC,"X");let wZ=kC;const SC=(jl=class{get pollAborted(){return this.se.aborted}constructor(g,S,E){this.$=g,this.u=S,this.se=new wZ,this.ie=E,this.ne=!1,this.onreceive=null,this.onclose=null}async connect(g,S){if(tt.isRequired(g,"url"),tt.isRequired(S,"transferFormat"),tt.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[E,_]=ge(),D={[E]:_,...this.ie.headers},U={abortSignal:this.se.signal,headers:D,timeout:1e5,withCredentials:this.ie.withCredentials};S===Ne.Binary&&(U.responseType="arraybuffer");const ct=`${g}&_=${Date.now()}`;this.u.log(s.Trace,`(LongPolling transport) polling: ${ct}.`);const ht=await this.$.get(ct,U);ht.statusCode!==200?(this.u.log(s.Error,`(LongPolling transport) Unexpected response code: ${ht.statusCode}.`),this.oe=new o(ht.statusText||"",ht.statusCode),this.ne=!1):this.ne=!0,this.he=this.ce(this.re,U)}async ce(g,S){try{for(;this.ne;)try{const E=`${g}&_=${Date.now()}`;this.u.log(s.Trace,`(LongPolling transport) polling: ${E}.`);const _=await this.$.get(E,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(E){this.ne?E instanceof c?this.u.log(s.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.oe=E,this.ne=!1):this.u.log(s.Trace,`(LongPolling transport) Poll errored after shutdown: ${E.message}`)}}finally{this.u.log(s.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.ae()}}async send(g){return this.ne?Vt(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,E]=ge();g[S]=E;const _={headers:{...g,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials};let D;try{await this.$.delete(this.re,_)}catch(U){D=U}D?D instanceof o&&(D.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: ${D}`)):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(jl,"vh"),jl);u(SC,"J");let PC=SC;const CC=(Fl=class{constructor(g,S,E,_){this.$=g,this.Zt=S,this.u=E,this.ie=_,this.onreceive=null,this.onclose=null}async connect(g,S){return tt.isRequired(g,"url"),tt.isRequired(S,"transferFormat"),tt.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((E,_)=>{let D,U=!1;if(S===Ne.Text){if(bt.isBrowser||bt.isWebWorker)D=new this.ie.EventSource(g,{withCredentials:this.ie.withCredentials});else{const ct=this.$.getCookieString(g),ht={};ht.Cookie=ct;const[At,Yt]=ge();ht[At]=Yt,D=new this.ie.EventSource(g,{withCredentials:this.ie.withCredentials,headers:{...ht,...this.ie.headers}})}try{D.onmessage=ct=>{if(this.onreceive)try{this.u.log(s.Trace,`(SSE transport) data received. ${Zt(ct.data,this.ie.logMessageContent)}.`),this.onreceive(ct.data)}catch(ht){return void this.le(ht)}},D.onerror=ct=>{U?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."))},D.onopen=()=>{this.u.log(s.Information,`SSE connected to ${this.re}`),this.ue=D,U=!0,E()}}catch(ct){return void _(ct)}}else _(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})}async send(g){return this.ue?Vt(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(Fl,"gh"),Fl);u(CC,"z");let gZ=CC;const QC=(Bl=class{constructor(g,S,E,_,D,U){this.u=E,this.Yt=S,this.de=_,this.fe=D,this.$=g,this.onreceive=null,this.onclose=null,this.pe=U}async connect(g,S){let E;return tt.isRequired(g,"url"),tt.isRequired(S,"transferFormat"),tt.isIn(S,Ne,"transferFormat"),this.u.log(s.Trace,"(WebSockets transport) Connecting."),this.Yt&&(E=await this.Yt()),new Promise((_,D)=>{let U;g=g.replace(/^http/,"ws");const ct=this.$.getCookieString(g);let ht=!1;if(bt.isNode||bt.isReactNative){const At={},[Yt,Gl]=ge();At[Yt]=Gl,E&&(At[ba.Authorization]=`Bearer ${E}`),ct&&(At[ba.Cookie]=ct),U=new this.fe(g,void 0,{headers:{...At,...this.pe}})}else E&&(g+=(g.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(E)}`);U||(U=new this.fe(g)),S===Ne.Binary&&(U.binaryType="arraybuffer"),U.onopen=At=>{this.u.log(s.Information,`WebSocket connected to ${g}.`),this.we=U,ht=!0,_()},U.onerror=At=>{let Yt=null;Yt=typeof ErrorEvent<"u"&&At instanceof ErrorEvent?At.error:"There was an error with the transport",this.u.log(s.Information,`(WebSockets transport) ${Yt}.`)},U.onmessage=At=>{if(this.u.log(s.Trace,`(WebSockets transport) data received. ${Zt(At.data,this.de)}.`),this.onreceive)try{this.onreceive(At.data)}catch(Yt){return void this.le(Yt)}},U.onclose=At=>{if(ht)this.le(At);else{let Yt=null;Yt=typeof ErrorEvent<"u"&&At instanceof ErrorEvent?At.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.",D(new Error(Yt))}}})}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(Bl,"bh"),Bl);u(QC,"V");let vZ=QC;const MC=(Nl=class{constructor(g,S={}){var E;if(this.me=()=>{},this.features={},this.ye=1,tt.isRequired(g,"url"),this.u=(E=S.logger)===void 0?new ie(s.Information):E===null?K.instance:E.log!==void 0?E:new ie(E),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,D=null;if(bt.isNode){const U=g1;_=U("ws"),D=U("eventsource")}bt.isNode||typeof WebSocket>"u"||S.WebSocket?bt.isNode&&!S.WebSocket&&_&&(S.WebSocket=_):S.WebSocket=WebSocket,bt.isNode||typeof EventSource>"u"||S.EventSource?bt.isNode&&!S.EventSource&&D!==void 0&&(S.EventSource=D):S.EventSource=EventSource,this.$=new mZ(S.httpClient||new dC(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,tt.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 OZ(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 E=null,_=0;do{if(E=await this.Pe(S),this.ut==="Disconnecting"||this.ut==="Disconnected")throw new p("The connection was stopped during negotiation.");if(E.error)throw new Error(E.error);if(E.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(E.url&&(S=E.url),E.accessToken){const D=E.accessToken;this.Yt=()=>D,this.$.Zt=D,this.$.Yt=void 0}_++}while(E.url&&_<100);if(_===100&&E.url)throw new Error("Negotiate redirection limit exceeded.");await this.Te(S,this.ie.transport,E,g)}this.transport instanceof PC&&(this.features.inherentKeepAlive=!0),this.ut==="Connecting"&&(this.u.log(s.Debug,"The HttpConnection connected successfully."),this.ut="Connected")}catch(E){return this.u.log(s.Error,"Failed to start the connection: "+E),this.ut="Disconnected",this.transport=void 0,this.me(),Promise.reject(E)}}async Pe(g){const S={},[E,_]=ge();S[E]=_;const D=this.Ie(g);this.u.log(s.Debug,`Sending negotiation request: ${D}.`);try{const U=await this.$.post(D,{content:"",headers:{...S,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials});if(U.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${U.statusCode}'`));const ct=JSON.parse(U.content);return(!ct.negotiateVersion||ct.negotiateVersion<1)&&(ct.connectionToken=ct.connectionId),ct.useStatefulReconnect&&this.ie._e!==!0?Promise.reject(new A("Client didn't negotiate Stateful Reconnect but the server did.")):ct}catch(U){let ct="Failed to complete negotiation with the server: "+U;return U instanceof o&&U.statusCode===404&&(ct+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this.u.log(s.Error,ct),Promise.reject(new A(ct))}}He(g,S){return S?g+(g.indexOf("?")===-1?"?":"&")+`id=${S}`:g}async Te(g,S,E,_){let D=this.He(g,E.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(D,_),void(this.connectionId=E.connectionId);const U=[],ct=E.availableTransports||[];let ht=E;for(const At of ct){const Yt=this.Re(At,S,_,(ht==null?void 0:ht.useStatefulReconnect)===!0);if(Yt instanceof Error)U.push(`${At.transport} failed:`),U.push(Yt);else if(this.De(Yt)){if(this.transport=Yt,!ht){try{ht=await this.Pe(g)}catch(Gl){return Promise.reject(Gl)}D=this.He(g,ht.connectionToken)}try{return await this.ke(D,_),void(this.connectionId=ht.connectionId)}catch(Gl){if(this.u.log(s.Error,`Failed to start the transport '${At.transport}': ${Gl}`),ht=void 0,U.push(new O(`${At.transport} failed: ${Gl}`,Pe[At.transport])),this.ut!=="Connecting"){const _C="Failed to select transport before stop() was called.";return this.u.log(s.Debug,_C),Promise.reject(new p(_C))}}}}return U.length>0?Promise.reject(new T(`Unable to connect to the server with any of the available transports. ${U.join(" ")}`,U)):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 vZ(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 gZ(this.$,this.$.Zt,this.u,this.ie);case Pe.LongPolling:return new PC(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 E=>{let _=!1;if(this.features.reconnect){try{this.features.disconnected(),await this.transport.connect(g,S),await this.features.resend()}catch{_=!0}_&&this.Ce(E)}else this.Ce(E)}:this.transport.onclose=E=>this.Ce(E),this.transport.connect(g,S)}Re(g,S,E,_){const D=Pe[g.transport];if(D==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(U,ct){return!U||(ct&U)!=0}(S,D))return this.u.log(s.Debug,`Skipping transport '${Pe[D]}' because it was disabled by the client.`),new b(`'${Pe[D]}' is disabled by the client.`,D);if(!(g.transferFormats.map(U=>Ne[U]).indexOf(E)>=0))return this.u.log(s.Debug,`Skipping transport '${Pe[D]}' because it does not support the requested transfer format '${Ne[E]}'.`),new Error(`'${Pe[D]}' does not support ${Ne[E]}.`);if(D===Pe.WebSockets&&!this.ie.WebSocket||D===Pe.ServerSentEvents&&!this.ie.EventSource)return this.u.log(s.Debug,`Skipping transport '${Pe[D]}' because it is not supported in your environment.'`),new m(`'${Pe[D]}' is not supported in your environment.`,D);this.u.log(s.Debug,`Selecting transport '${Pe[D]}'.`);try{return this.features.reconnect=D===Pe.WebSockets?_:void 0,this.Se(D)}catch(U){return U}}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(!bt.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 E=new URLSearchParams(S.searchParams);return E.has("negotiateVersion")||E.append("negotiateVersion",this.ye.toString()),E.has("useStatefulReconnect")?E.get("useStatefulReconnect")==="true"&&(this.ie._e=!0):this.ie._e===!0&&E.append("useStatefulReconnect","true"),S.search=E.toString(),S.toString()}},h(Nl,"xh"),Nl);u(MC,"K");let bZ=MC;const TC=($a=class{constructor(g){this.xe=g,this.Ae=[],this.Ue=!0,this.Le=new kg,this.Ne=new kg,this.qe=this.Me()}send(g){return this.je(g),this.Ne||(this.Ne=new kg),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 kg;const g=this.Ne;this.Ne=void 0;const S=typeof this.Ae[0]=="string"?this.Ae.join(""):$a.We(this.Ae);this.Ae.length=0;try{await this.xe.send(S),g.resolve()}catch(E){g.reject(E)}}}static We(g){const S=g.map(D=>D.byteLength).reduce((D,U)=>D+U),E=new Uint8Array(S);let _=0;for(const D of g)E.set(new Uint8Array(D),_),_+=D.byteLength;return E.buffer}},h($a,"_l"),$a);u(TC,"G");let OZ=TC;const AC=(Xl=class{constructor(){this.promise=new Promise((g,S)=>[this.j,this.Oe]=[g,S])}resolve(){this.j()}reject(g){this.Oe(g)}},h(Xl,"$h"),Xl);u(AC,"Q");let kg=AC;const RC=(Hl=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 E=fs.parse(g),_=[];for(const D of E){const U=JSON.parse(D);if(typeof U.type!="number")throw new Error("Invalid payload.");switch(U.type){case Pt.Invocation:this.U(U);break;case Pt.StreamItem:this.Fe(U);break;case Pt.Completion:this.Be(U);break;case Pt.Ping:case Pt.Close:break;case Pt.Ack:this.Xe(U);break;case Pt.Sequence:this.Je(U);break;default:S.log(s.Information,"Unknown message type '"+U.type+"' ignored.");continue}_.push(U)}return _}writeMessage(g){return fs.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(Hl,"Ch"),Hl);u(RC,"Y");let EC=RC;const $Z={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},zC=(Yl=class{configureLogging(g){if(tt.isRequired(g,"logging"),g.log!==void 0)this.logger=g;else if(typeof g=="string"){const S=function(E){const _=$Z[E.toLowerCase()];if(_!==void 0)return _;throw new Error(`Unknown log level: ${E}`)}(g);this.logger=new ie(S)}else this.logger=new ie(g);return this}withUrl(g,S){return tt.isRequired(g,"url"),tt.isNotEmpty(g,"url"),this.url=g,this.httpConnectionOptions=typeof S=="object"?{...this.httpConnectionOptions,...S}:{...this.httpConnectionOptions,transport:S},this}withHubProtocol(g){return tt.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 OC(g):this.reconnectPolicy=g:this.reconnectPolicy=new OC,this}withServerTimeout(g){return tt.isRequired(g,"milliseconds"),this.Ve=g,this}withKeepAliveInterval(g){return tt.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 bZ(this.url,g);return vC.create(S,this.logger||K.instance,this.protocol||new EC,this.reconnectPolicy,this.Ve,this.Ke,this.Y)}},h(Yl,"kh"),Yl);u(zC,"tt");let xZ=zC;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(B,g){return new Uint8Array(Array.prototype.slice.call(this,B,g))},"value"),writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,"forEach",{value:Array.prototype.forEach,writable:!0}),r})(),"e"),n.exports=e()}(p3)),p3.exports}h(yE,"jv");u(yE,"requireSignalr_min");var y3=yE();const Wj=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 y3.HubConnectionBuilder().configureLogging(y3.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(a=>{var o;console.info(this.weavyId,`SignalR reconnected ${a}`),this.connectionState="connected",this.networkStateIsPending=!1;for(let l=0;l<this._connectionEventListeners.length;l++)(o=this._connection)==null||o.invoke("Subscribe",this._connectionEventListeners[l].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 ${r.connectionId}`)}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,l;if(this.isDestroyed)throw new Ce;(o=this._resolveConnectionRequested)==null||o.call(this,!0);const c=s?s+":"+r:r;try{if(this._connectionEventListeners||await new Promise(d=>queueMicrotask(()=>d(!0))),this._connectionEventListeners.some(d=>d.name===c&&d.callback===a))throw new Error("Duplicate subscribe: "+c);if(this._connectionEventListeners.push({name:c,callback:a}),await this.whenConnectionStarted(),!this._connection)throw new Error("Connection not created");if(this._connection.on(c,a),await this._connection.invoke("Subscribe",c)===!1)throw new Error("Could not subscribe to "+c);return!0}catch(d){d instanceof Ce||console.error(this.weavyId,"Error in Subscribe:",d);const p=this._connectionEventListeners.findIndex(f=>f.name===c&&f.callback===a);return p!==-1&&(this._connectionEventListeners.splice(p,1),(l=this._connection)==null||l.off(c,a)),!1}}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 Iv=(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))(Iv||{});const qj=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":`${ae.sourceName}@${ae.version}`,"Content-Type":Iv.JSON},method:"GET"},o=aw(aw(Qj,a,!0),s,!0);return r?aw(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=Iv.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",`${ae.sourceName}@${ae.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"),mE="en",Vj=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:mt&&mt.tagName.toUpperCase()==="SCRIPT"&&mt.src||new URL("weavy.cjs",document.baseURI).href)||!new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:mt&&mt.tagName.toUpperCase()==="SCRIPT"&&mt.src||new URL("weavy.cjs",document.baseURI).href).href.startsWith(WEAVY_IMPORT_URL))?WEAVY_IMPORT_URL:typeof document>"u"?require("url").pathToFileURL(__filename).href:mt&&mt.tagName.toUpperCase()==="SCRIPT"&&mt.src||new URL("weavy.cjs",document.baseURI).href).href).then(s=>s.svSE)]]),this._locale=t.sourceLocale}static get sourceLocale(){try{return mE}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}=NU({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"),Uj=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 v1(){}h(v1,"Sh");u(v1,"noop");function wE({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:gE(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:v1,restoreClient:v1,removeClient:v1}}h(wE,"Zv");u(wE,"createSyncStoragePersister");function gE(n,t=100){let e=null,i;return function(...s){i=s,e===null&&(e=setTimeout(()=>{n(...i),e=null},t))}}h(gE,"Yv");u(gE,"throttle$1");var jj=["added","removed","updated"];function lk(n){return jj.includes(n)}h(lk,"hy");u(lk,"isCacheEventType");async function vE({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();sE(n,r.clientState,s)}else return t.removeClient()}catch(r){throw await t.removeClient(),r}}h(vE,"Jv");u(vE,"persistQueryClientRestore");async function ck({queryClient:n,persister:t,buster:e="",dehydrateOptions:i}){const s={buster:e,timestamp:Date.now(),clientState:nE(n,i)};await t.persistClient(s)}h(ck,"uy");u(ck,"persistQueryClientSave");function bE(n){const t=n.queryClient.getQueryCache().subscribe(i=>{lk(i.type)&&ck(n)}),e=n.queryClient.getMutationCache().subscribe(i=>{lk(i.type)&&ck(n)});return()=>{t(),e()}}h(bE,"t1");u(bE,"persistQueryClientSubscribe");const Fj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._queryClient=new Lj({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=wE({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 vE(s),this._unsubscribeQueryClient=bE(s)}catch{console.warn(this.weavyId,"Query cache persister not available.")}this.host.isConnected&&this._queryClient.mount(),this._hostIsConnectedObserver=e9(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 reset(){var s;await super.reset(),await this._queryClient.cancelQueries(),await((s=this._sessionStoragePersister)==null?void 0:s.removeClient()),await this.queryClient.resetQueries()}async disconnectQueryClient(){var s,r;console.info(this.weavyId,"Query client disconnected"),await this._queryClient.cancelQueries(),await((s=this._sessionStoragePersister)==null?void 0: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"),Bj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this._notificationEvents=ae.defaults.notificationEvents??!1,this.dispatchRealtimeEvent=r=>{ei();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"),Nj=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s)}set annotations(s){this._annotations=s,this.updateContext()}get annotations(){return this._annotations??ae.defaults.annotations}set notifications(s){this._notifications=s,this.updateContext()}get notifications(){return this._notifications??ae.defaults.notifications}set notificationsBadge(s){this._notificationsBadge=s,this.updateContext()}get notificationsBadge(){return this._notificationsBadge??ae.defaults.notificationsBadge}set reactions(s){this._reactions=s,this.updateContext()}get reactions(){return this._reactions??ae.defaults.reactions}},h(e,"t"),e),u(t,"WeavySettings"),t},"WeavySettingsMixin");function di(n){return n<0?-1:n===0?0:1}h(di,"Se");u(di,"signum");function jc(n,t,e){return(1-e)*n+e*t}h(jc,"wc");u(jc,"lerp");function OE(n,t,e){return e<n?n:e>t?t:e}h(OE,"r1");u(OE,"clampInt");function Rw(n,t,e){return e<n?n:e>t?t:e}h(Rw,"ql");u(Rw,"clampDouble");function Z0(n){return n=n%360,n<0&&(n=n+360),n}h(Z0,"Wu");u(Z0,"sanitizeDegreesDouble");function $E(n,t){return Z0(t-n)<=180?1:-1}h($E,"n1");u($E,"rotationDirection");function xE(n,t){return 180-Math.abs(Math.abs(n-t)-180)}h(xE,"a1");u(xE,"differenceDegrees");function Zv(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(Zv,"ru");u(Zv,"matrixMultiply");const Xj=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],Hj=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],Yj=[95.047,100,108.883];function D0(n,t,e){return(255<<24|(n&255)<<16|(t&255)<<8|e&255)>>>0}h(D0,"Qu");u(D0,"argbFromRgb");function hk(n){const t=Sr(n[0]),e=Sr(n[1]),i=Sr(n[2]);return D0(t,e,i)}h(hk,"py");u(hk,"argbFromLinrgb");function tP(n){return n>>16&255}h(tP,"Hw");u(tP,"redFromArgb");function eP(n){return n>>8&255}h(eP,"Vw");u(eP,"greenFromArgb");function iP(n){return n&255}h(iP,"Bw");u(iP,"blueFromArgb");function kE(n,t,e){const i=Hj,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=Sr(s),l=Sr(r),c=Sr(a);return D0(o,l,c)}h(kE,"d1");u(kE,"argbFromXyz");function SE(n){const t=Xa(tP(n)),e=Xa(eP(n)),i=Xa(iP(n));return Zv([t,e,i],Xj)}h(SE,"h1");u(SE,"xyzFromArgb");function PE(n){const t=Ts(n),e=Sr(t);return D0(e,e,e)}h(PE,"u1");u(PE,"argbFromLstar");function Dv(n){const t=SE(n)[1];return 116*nP(t/100)-16}h(Dv,"nu");u(Dv,"lstarFromArgb");function Ts(n){return 100*QE((n+16)/116)}h(Ts,"gs");u(Ts,"yFromLstar");function Wv(n){return nP(n/100)*116-16}h(Wv,"au");u(Wv,"lstarFromY");function Xa(n){const t=n/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}h(Xa,"Wr");u(Xa,"linearized");function Sr(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,OE(0,255,Math.round(e*255))}h(Sr,"rr");u(Sr,"delinearized");function CE(){return Yj}h(CE,"p1");u(CE,"whitePointD65");function nP(n){const t=.008856451679035631,e=24389/27;return n>t?Math.pow(n,1/3):(e*n+16)/116}h(nP,"Uw");u(nP,"labF");function QE(n){const t=.008856451679035631,e=24389/27,i=n*n*n;return i>t?i:(116*n-16)/e}h(QE,"y1");u(QE,"labInvf");var Ro;const ME=(Ro=class{static make(t=CE(),e=200/Math.PI*Ts(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?jc(.59,.69,(d-.9)*10):jc(.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],b=1/(5*e+1),x=b*b*b*b,O=1-x,P=x*e+.1*O*O*Math.cbrt(5*e),A=Ts(i)/t[1],R=1.48+Math.sqrt(A),T=.725/Math.pow(A,.2),Z=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)],q=[400*z[0]/(z[0]+27.13),400*z[1]/(z[1]+27.13),400*z[2]/(z[2]+27.13)],V=(2*q[0]+q[1]+.05*q[2])*T;return new Ro(A,V,T,Z,p,m,w,P,Math.pow(P,.25),R)}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,"yd"),Ro);u(ME,"ViewingConditions");let As=ME;As.DEFAULT=As.make();var Ui;const TE=(Ui=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 Ui.fromIntInViewingConditions(t,As.DEFAULT)}static fromIntInViewingConditions(t,e){const i=(t&16711680)>>16,s=(t&65280)>>8,r=t&255,a=Xa(i),o=Xa(s),l=Xa(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,b=e.rgbD[0]*f,x=e.rgbD[1]*m,O=e.rgbD[2]*w,P=Math.pow(e.fl*Math.abs(b)/100,.42),A=Math.pow(e.fl*Math.abs(x)/100,.42),R=Math.pow(e.fl*Math.abs(O)/100,.42),T=di(b)*400*P/(P+27.13),Z=di(x)*400*A/(A+27.13),z=di(O)*400*R/(R+27.13),q=(11*T+-12*Z+z)/11,V=(T+Z-2*z)/9,G=(20*T+20*Z+21*z)/20,K=(40*T+20*Z+z)/20,N=Math.atan2(V,q)*180/Math.PI,st=N<0?N+360:N>=360?N-360:N,tt=st*Math.PI/180,Mt=K*e.nbb,bt=100*Math.pow(Mt/e.aw,e.c*e.z),Zt=4/e.c*Math.sqrt(bt/100)*(e.aw+4)*e.fLRoot,qt=st<20.14?st+360:st,Vt=.25*(Math.cos(qt*Math.PI/180+2)+3.8),Oi=5e4/13*Vt*e.nc*e.ncb*Math.sqrt(q*q+V*V)/(G+.305),_e=Math.pow(Oi,.9)*Math.pow(1.64-Math.pow(.29,e.n),.73),ue=_e*Math.sqrt(bt/100),ie=ue*e.fLRoot,ge=50*Math.sqrt(_e*e.c/(e.aw+4)),$i=(1+100*.007)*bt/(1+.007*bt),Li=1/.0228*Math.log(1+.0228*ie),Yi=Li*Math.cos(tt),Ht=Li*Math.sin(tt);return new Ui(st,ue,bt,Zt,ie,ge,$i,Yi,Ht)}static fromJch(t,e,i){return Ui.fromJchInViewingConditions(t,e,i,As.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 Ui(i,e,t,r,a,l,d,f,m)}static fromUcs(t,e,i){return Ui.fromUcsInViewingConditions(t,e,i,As.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 Ui.fromJchInViewingConditions(d,l,c,s)}toInt(){return this.viewed(As.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,b=(460*l-891*f-261*m)/1403,x=(460*l-220*f-6300*m)/1403,O=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),P=di(w)*(100/t.fl)*Math.pow(O,1/.42),A=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),R=di(b)*(100/t.fl)*Math.pow(A,1/.42),T=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),Z=di(x)*(100/t.fl)*Math.pow(T,1/.42),z=P/t.rgbD[0],q=R/t.rgbD[1],V=Z/t.rgbD[2],G=1.86206786*z-1.01125463*q+.14918677*V,K=.38752654*z+.62144744*q-.00897398*V,N=-.0158415*z-.03412294*q+1.04996444*V;return kE(G,K,N)}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=di(l)*400*p/(p+27.13),b=di(c)*400*f/(f+27.13),x=di(d)*400*m/(m+27.13),O=(11*w+-12*b+x)/11,P=(w+b-2*x)/9,A=(20*w+20*b+21*x)/20,R=(40*w+20*b+x)/20,T=Math.atan2(P,O)*180/Math.PI,Z=T<0?T+360:T>=360?T-360:T,z=Z*Math.PI/180,q=R*s.nbb,V=100*Math.pow(q/s.aw,s.c*s.z),G=4/s.c*Math.sqrt(V/100)*(s.aw+4)*s.fLRoot,K=Z<20.14?Z+360:Z,N=1/4*(Math.cos(K*Math.PI/180+2)+3.8),st=5e4/13*N*s.nc*s.ncb*Math.sqrt(O*O+P*P)/(A+.305),tt=Math.pow(st,.9)*Math.pow(1.64-Math.pow(.29,s.n),.73),Mt=tt*Math.sqrt(V/100),bt=Mt*s.fLRoot,Zt=50*Math.sqrt(tt*s.c/(s.aw+4)),qt=(1+100*.007)*V/(1+.007*V),Vt=Math.log(1+.0228*bt)/.0228,Oi=Vt*Math.cos(z),_e=Vt*Math.sin(z);return new Ui(Z,Mt,V,G,bt,Zt,qt,Oi,_e)}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,b=(460*l-891*f-261*m)/1403,x=(460*l-220*f-6300*m)/1403,O=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),P=di(w)*(100/t.fl)*Math.pow(O,1/.42),A=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),R=di(b)*(100/t.fl)*Math.pow(A,1/.42),T=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),Z=di(x)*(100/t.fl)*Math.pow(T,1/.42),z=P/t.rgbD[0],q=R/t.rgbD[1],V=Z/t.rgbD[2],G=1.86206786*z-1.01125463*q+.14918677*V,K=.38752654*z+.62144744*q-.00897398*V,N=-.0158415*z-.03412294*q+1.04996444*V;return[G,K,N]}},h(Ui,"mi"),Ui);u(TE,"Cam16");let Xn=TE;var Ot;const AE=(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 di(t)*400*e/(e+27.13)}static hueOf(t){const e=Zv(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 di(t)*Math.pow(i,1/.42)}static findResultByJ(t,e,i){let s=Math.sqrt(i)*11;const r=As.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,b=23*(w+.305)*m/(23*o+11*m*c+108*m*l),x=b*c,O=b*l,P=(460*w+451*x+288*O)/1403,A=(460*w-891*x-261*O)/1403,R=(460*w-220*x-6300*O)/1403,T=Ot.inverseChromaticAdaptation(P),Z=Ot.inverseChromaticAdaptation(A),z=Ot.inverseChromaticAdaptation(R),q=Zv([T,Z,z],Ot.LINRGB_FROM_SCALED_DISCOUNT);if(q[0]<0||q[1]<0||q[2]<0)return 0;const V=Ot.Y_FROM_LINRGB[0],G=Ot.Y_FROM_LINRGB[1],K=Ot.Y_FROM_LINRGB[2],N=V*q[0]+G*q[1]+K*q[2];if(N<=0)return 0;if(d===4||Math.abs(N-i)<.002)return q[0]>100.01||q[1]>100.01||q[2]>100.01?0:hk(q);s=s-(N-i)*s/(2*N)}return 0}static solveToInt(t,e,i){if(e<1e-4||i<1e-4||i>99.9999)return PE(i);t=Z0(t);const s=t/180*Math.PI,r=Ts(i),a=Ot.findResultByJ(s,e,r);if(a!==0)return a;const o=Ot.bisectToLimit(r,s);return hk(o)}static solveToCam(t,e,i){return Xn.fromInt(Ot.solveToInt(t,e,i))}},h(Ot,"ot"),Ot);u(AE,"HctSolver");let $r=AE;$r.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];$r.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];$r.Y_FROM_LINRGB=[.2126,.7152,.0722];$r.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 RE=(Ds=class{static from(t,e,i){return new Ds($r.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($r.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState($r.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState($r.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const e=Xn.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=Dv(t),this.argb=t}setInternalState(t){const e=Xn.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=Dv(t),this.argb=t}inViewingConditions(t){const e=Xn.fromInt(this.toInt()).xyzInViewingConditions(t),i=Xn.fromXyzInViewingConditions(e[0],e[1],e[2],As.make());return Ds.from(i.hue,i.chroma,Wv(e[1]))}},h(Ds,"jr"),Ds);u(RE,"Hct");let Ci=RE;var Eo;const EE=(Eo=class{static harmonize(t,e){const i=Ci.fromInt(t),s=Ci.fromInt(e),r=xE(i.hue,s.hue),a=Math.min(r*.5,15),o=Z0(i.hue+a*$E(i.hue,s.hue));return Ci.from(o,i.chroma,i.tone).toInt()}static hctHue(t,e,i){const s=Eo.cam16Ucs(t,e,i),r=Xn.fromInt(s),a=Xn.fromInt(t);return Ci.from(r.hue,a.chroma,Dv(t)).toInt()}static cam16Ucs(t,e,i){const s=Xn.fromInt(t),r=Xn.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 Xn.fromUcs(f,m,w).toInt()}},h(Eo,"wd"),Eo);u(EE,"Blend");let qn=EE;var wn;const zE=(wn=class{static ratioOfTones(t,e){return t=Rw(0,100,t),e=Rw(0,100,e),wn.ratioOfYs(Ts(t),Ts(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=Ts(t),s=e*(i+5)-5,r=wn.ratioOfYs(s,i),a=Math.abs(r-e);if(r<e&&a>.04)return-1;const o=Wv(s)+.4;return o<0||o>100?-1:o}static darker(t,e){if(t<0||t>100)return-1;const i=Ts(t),s=(i+5)/e-5,r=wn.ratioOfYs(i,s),a=Math.abs(r-e);if(r<e&&a>.04)return-1;const o=Wv(s)-.4;return o<0||o>100?-1:o}static lighterUnsafe(t,e){const i=wn.lighter(t,e);return i<0?100:i}static darkerUnsafe(t,e){const i=wn.darker(t,e);return i<0?0:i}},h(wn,"as"),wn);u(zE,"Contrast");let Gi=zE;var zo;const _E=(zo=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 zo.isDisliked(t)?Ci.from(t.hue,t.chroma,70):t}},h(zo,"fd"),zo);u(_E,"DislikeAnalyzer");let Gj=_E;var Ve;const LE=(Ve=class{static fromPalette(t){return new Ve(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,b=p.contrastCurve.getContrast(t.contrastLevel),x=f.contrastCurve.getContrast(t.contrastLevel),O=p.tone(t);let P=Gi.ratioOfTones(c,O)>=b?O:Ve.foregroundTone(c,b);const A=f.tone(t);let R=Gi.ratioOfTones(c,A)>=x?A:Ve.foregroundTone(c,x);return e&&(P=Ve.foregroundTone(c,b),R=Ve.foregroundTone(c,x)),(R-P)*w>=a||(R=Rw(0,100,P+a*w),(R-P)*w>=a||(P=Rw(0,100,R-a*w))),50<=P&&P<60?w>0?(P=60,R=Math.max(R,P+a*w)):(P=49,R=Math.min(R,P+a*w)):50<=R&&R<60&&(l?w>0?(P=60,R=Math.max(R,P+a*w)):(P=49,R=Math.min(R,P+a*w)):w>0?R=60:R=49),m?P:R}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(Gi.ratioOfTones(s,i)>=r||(i=Ve.foregroundTone(s,r)),e&&(i=Ve.foregroundTone(s,r)),this.isBackground&&50<=i&&i<60&&(Gi.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(Gi.ratioOfTones(d,i)>=r&&Gi.ratioOfTones(p,i)>=r)return i;const f=Gi.lighter(d,r),m=Gi.darker(p,r),w=[];return f!==-1&&w.push(f),m!==-1&&w.push(m),Ve.tonePrefersLightForeground(l)||Ve.tonePrefersLightForeground(c)?f<0?100:f:w.length===1?w[0]:m<0?0:m}return i}}static foregroundTone(t,e){const i=Gi.lighterUnsafe(t,e),s=Gi.darkerUnsafe(t,e),r=Gi.ratioOfTones(i,t),a=Gi.ratioOfTones(s,t);if(Ve.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 Ve.tonePrefersLightForeground(t)&&!Ve.toneAllowsLightForeground(t)?49:t}},h(Ve,"ke"),Ve);u(LE,"DynamicColor");let dt=LE;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 Su;const IE=(Su=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?jc(this.low,this.normal,(t- -1)/1):t<.5?jc(this.normal,this.medium,(t-0)/.5):t<1?jc(this.medium,this.high,(t-.5)/.5):this.high}},h(Su,"kp"),Su);u(IE,"ContrastCurve");let zt=IE;var Pu;const ZE=(Pu=class{constructor(t,e,i,s,r){this.roleA=t,this.roleB=e,this.delta=i,this.polarity=s,this.stayTogether=r}},h(Pu,"_p"),Pu);u(ZE,"ToneDeltaPair");let Ei=ZE;function cl(n){return n.variant===Ew.FIDELITY||n.variant===Ew.CONTENT}h(cl,"ec");u(cl,"isFidelity");function we(n){return n.variant===Ew.MONOCHROME}h(we,"Qt");u(we,"isMonochrome");function DE(n,t,e,i){let s=e,r=Ci.from(n,t,e);if(r.chroma<t){let a=r.chroma;for(;r.chroma<t;){s+=i?-1:1;const o=Ci.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(DE,"w1");u(DE,"findDesiredChromaByTone");function WE(n){return As.make(void 0,void 0,n.isDark?30:80,void 0,void 0)}h(WE,"f1");u(WE,"viewingConditionsForAlbers");function W0(n,t){const e=n.inViewingConditions(WE(t));return dt.tonePrefersLightForeground(n.tone)&&!dt.toneAllowsLightForeground(e.tone)?dt.enableLightForeground(n.tone):dt.enableLightForeground(e.tone)}h(W0,"Ku");u(W0,"performAlbers");var Br;const qE=(Br=class{static highestSurface(t){return t.isDark?Br.surfaceBright:Br.surfaceDim}},h(Br,"gc"),Br);u(qE,"MaterialDynamicColors");let W=qE;W.contentAccentToneDelta=15;W.primaryPaletteKeyColor=dt.fromPalette({name:"primary_palette_key_color",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>n.primaryPalette.keyColor.tone,"tone")});W.secondaryPaletteKeyColor=dt.fromPalette({name:"secondary_palette_key_color",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>n.secondaryPalette.keyColor.tone,"tone")});W.tertiaryPaletteKeyColor=dt.fromPalette({name:"tertiary_palette_key_color",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>n.tertiaryPalette.keyColor.tone,"tone")});W.neutralPaletteKeyColor=dt.fromPalette({name:"neutral_palette_key_color",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.neutralPalette.keyColor.tone,"tone")});W.neutralVariantPaletteKeyColor=dt.fromPalette({name:"neutral_variant_palette_key_color",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.neutralVariantPalette.keyColor.tone,"tone")});W.background=dt.fromPalette({name:"background",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?6:98,"tone"),isBackground:!0});W.onBackground=dt.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 zt(3,3,4.5,7)});W.surface=dt.fromPalette({name:"surface",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?6:98,"tone"),isBackground:!0});W.surfaceDim=dt.fromPalette({name:"surface_dim",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?6:87,"tone"),isBackground:!0});W.surfaceBright=dt.fromPalette({name:"surface_bright",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?24:98,"tone"),isBackground:!0});W.surfaceContainerLowest=dt.fromPalette({name:"surface_container_lowest",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?4:100,"tone"),isBackground:!0});W.surfaceContainerLow=dt.fromPalette({name:"surface_container_low",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?10:96,"tone"),isBackground:!0});W.surfaceContainer=dt.fromPalette({name:"surface_container",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?12:94,"tone"),isBackground:!0});W.surfaceContainerHigh=dt.fromPalette({name:"surface_container_high",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?17:92,"tone"),isBackground:!0});W.surfaceContainerHighest=dt.fromPalette({name:"surface_container_highest",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?22:90,"tone"),isBackground:!0});W.onSurface=dt.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 zt(4.5,7,11,21)});W.surfaceVariant=dt.fromPalette({name:"surface_variant",palette:u(n=>n.neutralVariantPalette,"palette"),tone:u(n=>n.isDark?30:90,"tone"),isBackground:!0});W.onSurfaceVariant=dt.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 zt(3,4.5,7,11)});W.inverseSurface=dt.fromPalette({name:"inverse_surface",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>n.isDark?90:20,"tone")});W.inverseOnSurface=dt.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 zt(4.5,7,11,21)});W.outline=dt.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 zt(1.5,3,4.5,7)});W.outlineVariant=dt.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 zt(1,1,3,7)});W.shadow=dt.fromPalette({name:"shadow",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>0,"tone")});W.scrim=dt.fromPalette({name:"scrim",palette:u(n=>n.neutralPalette,"palette"),tone:u(n=>0,"tone")});W.surfaceTint=dt.fromPalette({name:"surface_tint",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>n.isDark?80:40,"tone"),isBackground:!0});W.primary=dt.fromPalette({name:"primary",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>we(n)?n.isDark?100:0:n.isDark?80:40,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(3,4.5,7,11),toneDeltaPair:u(n=>new Ei(W.primaryContainer,W.primary,15,"nearer",!1),"toneDeltaPair")});W.onPrimary=dt.fromPalette({name:"on_primary",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>we(n)?n.isDark?10:90:n.isDark?20:100,"tone"),background:u(n=>W.primary,"background"),contrastCurve:new zt(4.5,7,11,21)});W.primaryContainer=dt.fromPalette({name:"primary_container",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>cl(n)?W0(n.sourceColorHct,n):we(n)?n.isDark?85:25:n.isDark?30:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.primaryContainer,W.primary,15,"nearer",!1),"toneDeltaPair")});W.onPrimaryContainer=dt.fromPalette({name:"on_primary_container",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>cl(n)?dt.foregroundTone(W.primaryContainer.tone(n),4.5):we(n)?n.isDark?0:100:n.isDark?90:10,"tone"),background:u(n=>W.primaryContainer,"background"),contrastCurve:new zt(4.5,7,11,21)});W.inversePrimary=dt.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 zt(3,4.5,7,11)});W.secondary=dt.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 zt(3,4.5,7,11),toneDeltaPair:u(n=>new Ei(W.secondaryContainer,W.secondary,15,"nearer",!1),"toneDeltaPair")});W.onSecondary=dt.fromPalette({name:"on_secondary",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>we(n)?n.isDark?10:100:n.isDark?20:100,"tone"),background:u(n=>W.secondary,"background"),contrastCurve:new zt(4.5,7,11,21)});W.secondaryContainer=dt.fromPalette({name:"secondary_container",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>{const t=n.isDark?30:90;if(we(n))return n.isDark?30:85;if(!cl(n))return t;let e=DE(n.secondaryPalette.hue,n.secondaryPalette.chroma,t,!n.isDark);return e=W0(n.secondaryPalette.getHct(e),n),e},"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.secondaryContainer,W.secondary,15,"nearer",!1),"toneDeltaPair")});W.onSecondaryContainer=dt.fromPalette({name:"on_secondary_container",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>cl(n)?dt.foregroundTone(W.secondaryContainer.tone(n),4.5):n.isDark?90:10,"tone"),background:u(n=>W.secondaryContainer,"background"),contrastCurve:new zt(4.5,7,11,21)});W.tertiary=dt.fromPalette({name:"tertiary",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?n.isDark?90:25:n.isDark?80:40,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(3,4.5,7,11),toneDeltaPair:u(n=>new Ei(W.tertiaryContainer,W.tertiary,15,"nearer",!1),"toneDeltaPair")});W.onTertiary=dt.fromPalette({name:"on_tertiary",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?n.isDark?10:90:n.isDark?20:100,"tone"),background:u(n=>W.tertiary,"background"),contrastCurve:new zt(4.5,7,11,21)});W.tertiaryContainer=dt.fromPalette({name:"tertiary_container",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>{if(we(n))return n.isDark?60:49;if(!cl(n))return n.isDark?30:90;const t=W0(n.tertiaryPalette.getHct(n.sourceColorHct.tone),n),e=n.tertiaryPalette.getHct(t);return Gj.fixIfDisliked(e).tone},"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.tertiaryContainer,W.tertiary,15,"nearer",!1),"toneDeltaPair")});W.onTertiaryContainer=dt.fromPalette({name:"on_tertiary_container",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?n.isDark?0:100:cl(n)?dt.foregroundTone(W.tertiaryContainer.tone(n),4.5):n.isDark?90:10,"tone"),background:u(n=>W.tertiaryContainer,"background"),contrastCurve:new zt(4.5,7,11,21)});W.error=dt.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 zt(3,4.5,7,11),toneDeltaPair:u(n=>new Ei(W.errorContainer,W.error,15,"nearer",!1),"toneDeltaPair")});W.onError=dt.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 zt(4.5,7,11,21)});W.errorContainer=dt.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 zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.errorContainer,W.error,15,"nearer",!1),"toneDeltaPair")});W.onErrorContainer=dt.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 zt(4.5,7,11,21)});W.primaryFixed=dt.fromPalette({name:"primary_fixed",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>we(n)?40:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.primaryFixed,W.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.primaryFixedDim=dt.fromPalette({name:"primary_fixed_dim",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>we(n)?30:80,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.primaryFixed,W.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.onPrimaryFixed=dt.fromPalette({name:"on_primary_fixed",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>we(n)?100:10,"tone"),background:u(n=>W.primaryFixedDim,"background"),secondBackground:u(n=>W.primaryFixed,"secondBackground"),contrastCurve:new zt(4.5,7,11,21)});W.onPrimaryFixedVariant=dt.fromPalette({name:"on_primary_fixed_variant",palette:u(n=>n.primaryPalette,"palette"),tone:u(n=>we(n)?90:30,"tone"),background:u(n=>W.primaryFixedDim,"background"),secondBackground:u(n=>W.primaryFixed,"secondBackground"),contrastCurve:new zt(3,4.5,7,11)});W.secondaryFixed=dt.fromPalette({name:"secondary_fixed",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>we(n)?80:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.secondaryFixed,W.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.secondaryFixedDim=dt.fromPalette({name:"secondary_fixed_dim",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>we(n)?70:80,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.secondaryFixed,W.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.onSecondaryFixed=dt.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 zt(4.5,7,11,21)});W.onSecondaryFixedVariant=dt.fromPalette({name:"on_secondary_fixed_variant",palette:u(n=>n.secondaryPalette,"palette"),tone:u(n=>we(n)?25:30,"tone"),background:u(n=>W.secondaryFixedDim,"background"),secondBackground:u(n=>W.secondaryFixed,"secondBackground"),contrastCurve:new zt(3,4.5,7,11)});W.tertiaryFixed=dt.fromPalette({name:"tertiary_fixed",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?40:90,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.tertiaryFixed,W.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.tertiaryFixedDim=dt.fromPalette({name:"tertiary_fixed_dim",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?30:80,"tone"),isBackground:!0,background:u(n=>W.highestSurface(n),"background"),contrastCurve:new zt(1,1,3,7),toneDeltaPair:u(n=>new Ei(W.tertiaryFixed,W.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});W.onTertiaryFixed=dt.fromPalette({name:"on_tertiary_fixed",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?100:10,"tone"),background:u(n=>W.tertiaryFixedDim,"background"),secondBackground:u(n=>W.tertiaryFixed,"secondBackground"),contrastCurve:new zt(4.5,7,11,21)});W.onTertiaryFixedVariant=dt.fromPalette({name:"on_tertiary_fixed_variant",palette:u(n=>n.tertiaryPalette,"palette"),tone:u(n=>we(n)?90:30,"tone"),background:u(n=>W.tertiaryFixedDim,"background"),secondBackground:u(n=>W.tertiaryFixed,"secondBackground"),contrastCurve:new zt(3,4.5,7,11)});var ns;const VE=(ns=class{static fromInt(t){const e=Ci.fromInt(t);return ns.fromHct(e)}static fromHct(t){return new ns(t.hue,t.chroma,t)}static fromHueAndChroma(t,e){return new ns(t,e,ns.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=Ci.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=Ci.from(t,e,50+r),o=Math.abs(a.chroma-e);o<s&&(s=o,i=a);const l=Ci.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=Ci.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,e)),e}getHct(t){return Ci.fromInt(this.tone(t))}},h(ns,"Us"),ns);u(VE,"TonalPalette");let ne=VE;function dk(n){const t=tP(n),e=eP(n),i=iP(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(dk,"yy");u(dk,"hexFromArgb");function UE(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=jn(n.slice(0,1).repeat(2)),r=jn(n.slice(1,2).repeat(2)),a=jn(n.slice(2,3).repeat(2))):e?(s=jn(n.slice(0,2)),r=jn(n.slice(2,4)),a=jn(n.slice(4,6))):i&&(s=jn(n.slice(2,4)),r=jn(n.slice(4,6)),a=jn(n.slice(6,8))),(255<<24|(s&255)<<16|(r&255)<<8|a&255)>>>0}h(UE,"m1");u(UE,"argbFromHex");function jn(n){return parseInt(n,16)}h(jn,"Ti");u(jn,"parseIntHex");function jE(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(jE,"v1");u(jE,"argbFromRgba");function FE(n){ei();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(FE,"g1");u(FE,"getComputedColor");function qv(n){return getComputedStyle(n).getPropertyValue("--wy-theme-color")||void 0}h(qv,"cu");u(qv,"getCSSThemeColor");function BE(n,t){let e=qv(n);const i=new MutationObserver(()=>{const a=qv(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(BE,"b1");u(BE,"observeCSSThemeColor");function Vv(){var n;return ei(),((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(Vv,"lu");u(Vv,"getMetaThemeColor");function NE(n){ei();const t=Array.from(document.head.querySelectorAll("meta[name='theme-color']"));if(!t)return()=>{};let e=Vv();const i=u(()=>{const o=Vv();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(NE,"x1");u(NE,"observeMetaThemeColor");const rm=[],Kj=16;function XE(n,t=!1){var e;if(rm.some(T=>T.seedColor===n)){const T=(e=rm.find(Z=>Z.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=FE(n));const r=n.startsWith("#")?UE(s):jE(s),a=Ci.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,b={primary:ne.fromHueAndChroma(o,c),secondary:ne.fromHueAndChroma(o,c/3),tertiary:ne.fromHueAndChroma(o+60,c/2),neutral:ne.fromHueAndChroma(o,Math.min(l/12,4)),"neutral-variant":ne.fromHueAndChroma(o,Math.min(l/6,8)),error:ne.fromHueAndChroma(w,84),warning:ne.fromHueAndChroma(w+4*p,d),red:ne.fromHueAndChroma(w,d),"deep-orange":ne.fromHueAndChroma(w+1*p,d),orange:ne.fromHueAndChroma(w+2*p,d),amber:ne.fromHueAndChroma(w+3*p,d),yellow:ne.fromHueAndChroma(w+4*p,d),lime:ne.fromHueAndChroma(w+5*p,d),"light-green":ne.fromHueAndChroma(w+6*p,d),green:ne.fromHueAndChroma(w+7*p,d),teal:ne.fromHueAndChroma(w+8*p,d),cyan:ne.fromHueAndChroma(w+9*p,d),"light-blue":ne.fromHueAndChroma(w+10*p,d),blue:ne.fromHueAndChroma(w+11*p,d),indigo:ne.fromHueAndChroma(w+12*p,d),"deep-purple":ne.fromHueAndChroma(w+13*p,d),purple:ne.fromHueAndChroma(w+14*p,d),pink:ne.fromHueAndChroma(w+15*p,d),gray:ne.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},O={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 O){const Z=O[T];for(const z in Z){const q=dk(b[T].tone(Z[z]));i.push(`--wy-${T}-${z}:${q};`)}}const P={light:b.primary.tone(40),dark:b.primary.tone(80)},A={light:b.neutral.tone(99),dark:b.neutral.tone(10)},R={"surface-1":{light:qn.cam16Ucs(A.light,P.light,.05),dark:qn.cam16Ucs(A.dark,P.dark,.05)},"surface-2":{light:qn.cam16Ucs(A.light,P.light,.08),dark:qn.cam16Ucs(A.dark,P.dark,.08)},"surface-3":{light:qn.cam16Ucs(A.light,P.light,.11),dark:qn.cam16Ucs(A.dark,P.dark,.11)},"surface-4":{light:qn.cam16Ucs(A.light,P.light,.12),dark:qn.cam16Ucs(A.dark,P.dark,.12)},"surface-5":{light:qn.cam16Ucs(A.light,P.light,.14),dark:qn.cam16Ucs(A.dark,P.dark,.14)}};for(const T in R){const Z=R[T];for(const z in Z){const q=dk(Z[z]);i.push(`--wy-${T}-${z}:${q};`)}}return rm.unshift({seedColor:n,colors:i}),rm.length=Math.min(rm.length,Kj),i}h(XE,"C1");u(XE,"generateThemeColors");const Jj=u(n=>{if(ei(),R0)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=Tt`.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)}`,tF=Tt`@property --wy-component-color{syntax: \"<color>\"; inherits: true; initial-value: currentColor;}@property --wy-component-background-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}`,eF=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),Jj([tF,Xi])}},h(e,"t"),e),u(t,"WeavyStyles"),t},"WeavyStylesMixin"),iF=u(n=>{var e;var t;return t=(e=class extends n{constructor(...s){super(...s),this.version=ae.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: ${ae.sourceName}@${this.version} ≠ ${(r=this.url)==null?void 0:r.hostname}@${l}`)}catch{throw new Error(`Version mismatch! ${ae.sourceName}@${this.version} ≠ ${(a=this.url)==null?void 0:a.hostname}@${l}`)}}},h(e,"t"),e),u(t,"WeavyVersion"),t},"WeavyVersionMixin");var bO,Cu;let HE=(bO=(Cu=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(Cu,"bn"),Cu),u(bO,"s"),bO);var OO,Qu;let Vs=(OO=(Qu=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 HE(this.context,this.host,this.t,this.subscribe))}},h(Qu,"xn"),Qu),u(OO,"s"),OO);var $O,Mu;let nF=($O=(Mu=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(Mu,"$n"),Mu),u($O,"s"),$O);var xO,Tu;let sF=(xO=(Tu=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h(Tu,"Cn"),Tu),u(xO,"e"),xO);var kO,Au;let uk=(kO=(Au=class extends nF{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 HE(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 sF(this.context,this.host))}},h(Au,"kn"),Au),u(kO,"i"),kO);function Ks({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 uk(this,{context:n,initialValue:s})),s}};{t.constructor.addInitializer(a=>{i.set(a,new uk(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(Ks,"Rs");u(Ks,"e$5");function xe({context:n,subscribe:t}){return(e,i)=>{typeof i=="object"?i.addInitializer(function(){new Vs(this,{context:n,callback:u(s=>{e.set.call(this,s)},"callback"),subscribe:t})}):e.constructor.addInitializer(s=>{new Vs(s,{context:n,callback:u(r=>{s[i]=r},"callback"),subscribe:t})})}}h(xe,"ee");u(xe,"c$2");var Ru;const YE=(Ru=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(Ru,"zp"),Ru);u(YE,"ContextRequestEvent");let rF=YE;var Eu;const GE=(Eu=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h(Eu,"Mp"),Eu);u(GE,"ContextProviderEvent");let aF=GE;var zu;const KE=(zu=class extends uk{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 ft||this.dispatchWhenConnected()}dispatchWhenConnected(){this.isAttached&&(this.host.isConnected?this.host.dispatchEvent(new aF(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(zu,"Pp"),zu);u(KE,"WyContextProvider");let JE=KE;const Ie=Symbol.for("weavy-client");function tz(n,t){return ei(),new JE(n,{context:Ie,initialValue:t})}h(tz,"A1");u(tz,"createWeavyContextProvider");const qi=c0()?tz(document.documentElement):void 0,oF=u(n=>{var i;var t,e;return e=(i=class extends n{constructor(...r){super(...r),j(this,t),this.host!==document.documentElement?(qi==null||qi.detachListeners(),I(this,t,new JE(this.host,{context:Ie,initialValue:this}))):qi==null||qi.setValue(this)}updateContext(){var r;this.host!==document.documentElement?(r=k(this,t))==null||r.updateObservers():qi==null||qi.updateObservers()}destroy(){var r;super.destroy(),this.host!==document.documentElement?(r=k(this,t))==null||r.detachListeners():(qi==null?void 0:qi.value)===this&&(qi==null||qi.setValue(void 0))}},h(i,"e"),i),t=new WeakMap,u(e,"WeavyContextProvider"),e},"WeavyContextProviderMixin");var b1,O1,hr,Om,Ye;const $m=(Ye=class{constructor(t){j(this,b1),j(this,O1),j(this,hr),j(this,Om),this.weavySid=Jf(),this.weavyId=`${Ye.sourceName}#${this.weavySid}`,this.cloudFilePickerUrl=Ye.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=Ye.defaults.disableEnvironmentImports,this.gcTime=Ye.defaults.gcTime,this.scrollBehavior=Ye.defaults.scrollBehavior,this.staleTime=Ye.defaults.staleTime,this.tokenFactoryRetryDelay=Ye.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=Ye.defaults.tokenFactoryTimeout,I(this,O1,new Promise(i=>{I(this,b1,i)})),I(this,Om,!1),console.info(`${Ye.sourceName}@${Ye.version} #${this.weavySid}`),ei(),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,O1)}get url(){return k(this,hr)}set url(t){var e;if(this.isDestroyed)throw new Ce;try{if(typeof t=="string")t&&I(this,hr,new URL(t,window.location.toString()));else if(t instanceof URL)I(this,hr,t||void 0);else if(t==null)I(this,hr,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,hr)&&((e=k(this,b1))==null||e.call(this,k(this,hr)))}get cachePrefix(){return`${Ye.version}:${this.url}`}async reset(){console.info(this.weavyId,"is reset")}get isDestroyed(){return k(this,Om)}destroy(){I(this,Om,!0),console.info(this.weavyId,"was destroyed")}},h(Ye,"he"),Ye);b1=new WeakMap,O1=new WeakMap,hr=new WeakMap,Om=new WeakMap,u($m,"WeavyClient"),$m.version="29.2.1",$m.sourceName="@weavy/uikit-web",$m.defaults={cloudFilePickerUrl:"https://filebrowser.weavy.io/v14/",disableEnvironmentImports:!1,gcTime:1e3*60*60*24,locale:mE,notificationEvents:!1,scrollBehavior:"auto",staleTime:1e3*1,tokenFactoryRetryDelay:2e3,tokenFactoryTimeout:2e4,annotations:"buttons-inline",notifications:"button-list",notificationsBadge:"count",reactions:"😍 😎 😉 😜 👍"};let ae=$m;var _u;const ez=(_u=class extends oF(Zj(Bj(Vj(Wj(Uj(Dj(Fj(iF(qj(eF(Nj(ae)))))))))))){},h(_u,"Sp"),_u);u(ez,"Weavy");let pe=ez;var Lu;const iz=(Lu=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 rF(this.context,this.host,this._callback,this.subscribe))}},h(Lu,"Ap"),Lu);u(iz,"ContextConsumer");let lF=iz;var Iu;const nz=(Iu=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 lF(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 qk(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(Iu,"Ep"),Iu);u(nz,"ContextController");let cF=nz;const hF={attribute:!0,type:String,converter:Pv,reflect:!1,hasChanged:ES},dF=u((n=hF,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"?dF(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,"H");u(F,"r$2");const uF=u((n,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(n,t,e),e),"e$4");function sP(n){return(t,e)=>{const{slot:i,selector:s}=n??{},r="slot"+(i?`[name=${i}]`:":not([name])");return uF(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(sP,"Nw");u(sP,"o$6");var $1,Zu;const sz=(Zu=class{constructor(t){j(this,$1),this.notifications=ae.defaults.notifications,this.notificationsBadge=ae.defaults.notificationsBadge,this.reactions=ae.defaults.reactions,this.annotations=ae.defaults.annotations,I(this,$1,t),Object.keys(this).forEach(e=>{e in t&&Object.assign(this,{[e]:t[e]})})}get component(){return k(this,$1)}},h(Zu,"Op"),Zu);$1=new WeakMap,u(sz,"WeavyComponentSettings");let m3=sz;const rz=Symbol.for("weavy-component-settings");var Du;const az=(Du=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 rl(this.host),this.context=new Vs(this.host,{context:Ie,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 HR(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=ky(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(Du,"Rp"),Du);u(az,"QueryController");let Qn=az;const rP=Symbol.for("weavy-app"),q0=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 V0=Symbol.for("weavy-features");var Da,fc,xs,_o;const oz=(_o=class{constructor(t,e){j(this,Da),j(this,fc),j(this,xs),I(this,Da,Object.keys(t)),I(this,fc,Object.entries(t).reduce((i,[s,r])=>(r&&i.push(s),i),[])),I(this,xs,e??k(this,fc))}features(){return k(this,Da)}supportedFeature(...t){return t.every(e=>k(this,Da).includes(e))}allowedFeatures(){return k(this,xs)}allowsFeature(...t){return t.every(e=>this.supportedFeature(e)?k(this,xs).includes(e):!1)}allowsAnyFeature(...t){return t.some(e=>this.supportedFeature(e)?k(this,xs).includes(e):!1)}setAllowedFeatures(t){return I(this,xs,typeof t=="string"?aP(t,k(this,Da)):k(this,fc)),k(this,xs)}immutable(){const t=U0(k(this,Da),k(this,fc));return new _o(t,k(this,xs))}},h(_o,"md"),_o);Da=new WeakMap,fc=new WeakMap,xs=new WeakMap,u(oz,"ComponentFeatures");let xn=oz;function aP(n,t){return n.split(" ").filter(e=>{if(e){if(t.includes(e))return!0;console.warn("Unknown feature provided:",e)}return!1})}h(aP,"Ww");u(aP,"featureListFromString");function U0(n,t){return t??(t=n),Object.fromEntries(n.map(e=>[e,t.includes(e)]))}h(U0,"Zu");u(U0,"featureConfigFromList");const pk=Object.values(L),lz=Symbol.for("weavy-link"),He=[];for(let n=0;n<256;++n)He.push((n+256).toString(16).slice(1));function cz(n,t=0){return(He[n[t+0]]+He[n[t+1]]+He[n[t+2]]+He[n[t+3]]+"-"+He[n[t+4]]+He[n[t+5]]+"-"+He[n[t+6]]+He[n[t+7]]+"-"+He[n[t+8]]+He[n[t+9]]+"-"+He[n[t+10]]+He[n[t+11]]+He[n[t+12]]+He[n[t+13]]+He[n[t+14]]+He[n[t+15]]).toLowerCase()}h(cz,"I1");u(cz,"unsafeStringify");let SO;const pF=new Uint8Array(16);function hz(){if(!SO){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");SO=crypto.getRandomValues.bind(crypto)}return SO(pF)}h(hz,"F1");u(hz,"rng");const fF=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),w3={randomUUID:fF};function Fc(n,t,e){var i;if(w3.randomUUID&&!n)return w3.randomUUID();n=n||{};const s=n.random??((i=n.rng)==null?void 0:i.call(n))??hz();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,cz(s)}h(Fc,"fc");u(Fc,"v4");function dz(n){let t;if(n instanceof URL)t={type:"url",item:n};else if(n instanceof File)t={type:"file",item:n};else if(n instanceof Blob)t={type:"file",item:new File([n],`${Fc()}`,{type:n.type})};else if(typeof n=="string")t={type:"file",item:new File([n],`${Fc()}.data.txt`,{type:"text/plain;charset=UTF-8"})};else if(TR(n)||Qv(n))try{const e=Qv(n)?n.toJSON():JSON.stringify(n,zR(),2);t={type:"file",item:new File([e],`${Fc()}.json.txt`,{type:"text/plain;charset=UTF-8"})}}catch(e){console.error("Could not serialize context data to JSON.",e)}return t}h(dz,"H1");u(dz,"getContextDataRef");const Sy=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 zi(n){return n.lastIndexOf(".")===-1?".":(n.substring(n.lastIndexOf("."),n.length)||n).toLowerCase()}h(zi,"Qe");u(zi,"getExtension");function oP(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(oP,"Kw");u(oP,"isAudio");function uz(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(uz,"V1");u(uz,"isImage");function pz(n){switch(zi(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(pz,"B1");u(pz,"isWebImage");function lP(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(lP,"Gw");u(lP,"isVideo");function fz(n){switch(n){case".markdown":case".md":return!0;default:return!1}}h(fz,"U1");u(fz,"isMarkdown");function cP(n){switch(n){case".htm":case".html":case".xhtml":case".xml":return!0;default:return!1}}h(cP,"Zw");u(cP,"isMarkup");function j0(n){if(cP(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(j0,"Yu");u(j0,"isCode");function hP(n){if(j0(n)||fz(n))return!0;switch(n){case".txt":return!0;default:return!1}}h(hP,"Yw");u(hP,"isText");function Rn(n){const t=zi(n);if(t==="")return{icon:"file"};if(oP(t))return{icon:"file-music",color:"indigo"};if(uz(t))return{icon:"file-image",color:"cyan"};if(lP(t))return{icon:"file-video",color:"pink"};if(cP(t))return{icon:"file-xml",color:"purple"};if(j0(t))return{icon:"file-code",color:"purple"};if(hP(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(Rn,"Ei");u(Rn,"getIcon");function yz(n){const t=zi(n);return t===""?"none":pz(t)?"image":j0(t)?"code":hP(t)?"text":oP(t)?"audio":lP(t)?"video":"none"}h(yz,"q1");u(yz,"getWebPreviewFormat");function Js(n){switch(n){case"Google Drive":return"google-drive";case"Dropbox":return"dropbox";case"OneDrive":return"onedrive";case"Box":return"box";default:return""}}h(Js,"Ls");u(Js,"getProvider");function Py(n){let t="file";switch(zi(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(Py,"hl");u(Py,"getKind");function F0(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(F0,"Xu");u(F0,"handleSelectFilename");async function Uv(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(Uv,"wu");u(Uv,"getHash");function x1(n,t){return n.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}h(x1,"Eh");u(x1,"getResult");var Wu;const mz=(Wu=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 rl(this.host),this.context=new Vs(this.host,{context:Ie,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=x1(this.mutationCache,this.options),this.mutationCacheUnsubscribe=this.mutationCache.subscribe(t=>{if(this.mutationCache&&this.options&&/added|removed|updated/.test(t.type)){const e=x1(this.mutationCache,this.options);(this.result!==e||Uc(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:x1(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(Wu,"Lp"),Wu);u(mz,"MutationStateController");let ag=mz;var qu;const wz=(qu=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 rl(this.host),this.context=new Vs(this.host,{context:Ie,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=ky(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(qu,"Ip"),qu);u(wz,"MutationController");let rn=wz;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,"Vt");u(oe,"updateMutationContext");function dP(n,t,e){const i=n.getMutationCache().find({mutationKey:t,exact:!0,predicate:e});i&&n.getMutationCache().remove(i)}h(dP,"Xw");u(dP,"removeMutation");function gz(n,t){const e=n.getMutationCache();e.findAll({mutationKey:t,exact:!0}).forEach(i=>{e.remove(i)})}h(gz,"N1");u(gz,"removeMutations");const uP=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:Py(t),size:e,media_type:i,embed_url:"",preview_format:yz(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 pP(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(pP,"Jw");u(pP,"getFileMutationsTotalProgress");function fP(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(fP,"tf");u(fP,"getFileMutationsTotalStatus");function vz(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(vz,"j1");u(vz,"getFileMutationsByConflictOrError");function bz(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(bz,"W1");u(bz,"removeSettledFileMutations");function Oz(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}),$z(n,e,r.blob.name),bz(n,e,r.blob.name);let a;try{a=r.blob.thumbnail_url&&new URL(r.blob.thumbnail_url)||void 0}catch{}const o=uP(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(Oz,"Q1");u(Oz,"getCreateFileMutationOptions");function $z(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($z,"K1");u($z,"removeSuccessfulUploadBlobMutations");async function yP(n,t,e){const i=new FormData;i.append("blob",t);const s=await n.upload("/api/blobs","POST",i,Iv.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(yP,"ef");u(yP,"uploadBlob");function xz(n){return{mutationFn:u(async t=>await yP(n,t.file,t.onProgress),"mutationFn")}}h(xz,"G1");u(xz,"getSimpleUploadBlobMutationOptions");function B0(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 yP(n,o.file,o.onProgress),"mutationFn"),mutationKey:a,onMutate:u(async o=>{await r.cancelQueries({queryKey:a,exact:!0});const l=uP(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 Uv(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(B0,"tp");u(B0,"getUploadBlobMutationOptions");const kz=Symbol.for("weavy-data-blobs"),Sz=Symbol.for("weavy-context-id");function Pz(n){if(n)return n.match(/^[0-9]+$/)?parseInt(n):n}h(Pz,"Z1");u(Pz,"toIntOrString");var yF=Object.defineProperty,mF=Object.getOwnPropertyDescriptor,de=u((n,t,e,i)=>{for(var s=i>1?void 0:i?mF(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&&yF(t,e,s),s},"__decorateClass$1d"),k1,S1,P1,C1,Q1,xm,km,Sm,Pm,Cm,Qm,Mm,Tm,yc,mc,Am,Rm,Em,zm,_m,Lm,Wa,dr,ks,Im,wc,Vu;const Cz=(Vu=class extends ft{constructor(){super(),j(this,k1),j(this,S1),j(this,P1),j(this,C1),j(this,Q1),j(this,xm),j(this,km),j(this,Sm),j(this,Pm),j(this,Cm),j(this,Qm),j(this,Mm),j(this,Tm),j(this,yc),j(this,mc),j(this,Am),j(this,Rm),j(this,Em),j(this,zm),j(this,_m),j(this,Lm),j(this,Wa),j(this,dr),j(this,ks),j(this,Im),j(this,wc),this.storage=qS("localStorage"),this.contextId=Fc(),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(Vk)&&this.matchesLink(t.detail.link)&&t.preventDefault()},I(this,km,new Promise(t=>{I(this,xm,t)})),I(this,Pm,new Promise(t=>{I(this,Sm,t)})),I(this,Qm,new Promise(t=>{I(this,Cm,t)})),I(this,Tm,new Promise(t=>{I(this,Mm,t)})),I(this,mc,new Promise(t=>{I(this,yc,t)})),I(this,Rm,new Promise(t=>{I(this,Am,t)})),I(this,zm,new Promise(t=>{I(this,Em,t)})),I(this,Lm,new Promise(t=>{I(this,_m,t)})),I(this,Wa,new Qn(this)),I(this,dr,new Qn(this)),I(this,ks,new Map),I(this,Im,new rn(this)),I(this,wc,new ag(this)),this.settings=new m3(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!==sn.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))}set link(t){const e=this._link;!this.uid&&this.componentType&&this.componentType!==sn.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))}get link(){return this._link}clearLink(){this.link&&(I(this,mc,new Promise(t=>{I(this,yc,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")}set agent(t){this._agentUid=t||void 0}get agent(){return this._agentUid}set data(t){console.warn(".data property array is deprecated. Use .contextualData string instead."),I(this,k1,t)}get data(){return k(this,k1)}set name(t){this._initialAppName=t,this._appName=t}get name(){return this._appName}set annotations(t){I(this,S1,t)}get annotations(){var t;return k(this,S1)??((t=this.weavy)==null?void 0:t.annotations)??ae.defaults.annotations}set notifications(t){I(this,P1,t)}get notifications(){var t;return k(this,P1)??((t=this.weavy)==null?void 0:t.notifications)??ae.defaults.notifications}set notificationsBadge(t){I(this,C1,t)}get notificationsBadge(){var t;return k(this,C1)??((t=this.weavy)==null?void 0:t.notificationsBadge)??ae.defaults.notificationsBadge}set reactions(t){I(this,Q1,t)}get reactions(){var t;return k(this,Q1)??((t=this.weavy)==null?void 0:t.reactions)??ae.defaults.reactions}async whenApp(){return await k(this,km)}async whenContextDataBlobs(){return await k(this,Pm)}async whenContextId(){return await k(this,Qm)}async whenComponentFeatures(){return await k(this,Tm)}async whenLink(){return await k(this,mc)}async whenSettings(){return await k(this,Rm)}async whenUser(){return await k(this,zm)}async whenWeavy(){return await k(this,Lm)}connectedCallback(){super.connectedCallback(),document.addEventListener("wy-link",this.linkEventHandler),window.addEventListener("storage",this.storageLinkHandler),this.app&&this.requestUpdate("app"),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 rl(this),await super.scheduleUpdate()}async willUpdate(t){var e,i,s,r,a,o,l,c,d,p,f,m,w,b,x,O,P,A,R;super.willUpdate(t),this.weavyContextConsumer??(this.weavyContextConsumer=new Vs(this,{context:Ie,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 T=Object.keys(this.settings);if((t.has("weavy")||T.find(z=>t.has(z)))&&(this.settings=new m3(this)),t.has("weavy")&&this.weavy&&await k(this,dr).trackQuery(ll(this.weavy,["user"])),(r=k(this,dr).result)!=null&&r.isPending||(this.user&&k(this,dr).result.data&&this.user.id!==k(this,dr).result.data.id&&(console.warn("User mismatch, resetting"),(a=this.weavy)==null||a.reset()),this.user=(o=k(this,dr).result)==null?void 0:o.data),t.has("features")&&this.componentFeatures&&(this.componentFeatures.setAllowedFeatures(this.features),this.componentFeatures instanceof xn&&(this.componentFeatures=this.componentFeatures.immutable())),(t.has("autoUid")||t.has("user")||t.has("agent"))&&this.autoUid&&this.user&&(this.componentType&&jv.has(this.componentType)&&this.agent||this.componentType&&!jv.has(this.componentType))){const z=[this.autoUid];this.agent&&z.push(this.agent),this.user&&z.push(this.user.uid||this.user.id),this.uid=z.join("-")}const Z=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",Z)),this.componentType&&this.uid&&this.weavy){const z=this.name?{name:this.name}:void 0,q=this.agent?[this.agent]:void 0;await k(this,Wa).trackQuery(hE(this.weavy,this.uid,this.componentType,q,z))}else k(this,Wa).untrackQuery();if((l=k(this,Wa).result)!=null&&l.isPending||(this.app=(c=k(this,Wa).result)==null?void 0:c.data,(d=this.app)!=null&&d.name&&(this.app.name!==this.name||this._appName!==this.app.name)&&(this._appName=this.app.name,this.requestUpdate("name",Z))),(t.has("weavy")||t.has("contextId")||t.has("user")||t.has("componentFeatures"))&&this.weavy&&this.contextId&&this.user&&(p=this.componentFeatures)!=null&&p.allowsFeature(L.ContextData)&&(await k(this,Im).trackMutation(B0(this.weavy,this.user,this.contextId,void 0,"data")),await k(this,wc).trackMutationState({filters:{mutationKey:["apps",this.contextId,"data"],exact:!0}},this.weavy.queryClient)),t.has("contextualData")||t.has("data")||t.has("componentFeatures")){const z=this.contextualData?[this.contextualData]:this.data?this.data:[],q=k(this,ks);if(I(this,ks,new Map),z.forEach(V=>{const G=q.get(V);if(G)k(this,ks).set(V,G);else{const K=dz(V);K&&k(this,ks).set(V,K)}}),k(this,ks)&&(f=this.componentFeatures)!=null&&f.allowsFeature(L.ContextData)){for(const N of Array.from(k(this,ks).values()))if(N.type==="file"){const st=await Uv(N.item);await RR(k(this,wc).result??[],async tt=>{var Mt,bt;return(((Mt=tt.context)==null?void 0:Mt.sha256)??await Uv((bt=tt.variables)==null?void 0:bt.file))===st})||await k(this,Im).mutate({file:N.item})}const V=k(this,wc).result,G=V==null?void 0:V.some(N=>N.status==="pending"),K=(V==null?void 0:V.map(N=>{var st;return(st=N.data)==null?void 0:st.id}).filter(N=>N).reverse())??[];G||(this.contextDataBlobs=K)}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!==sn.Unknown||(t.has("appTypes")||t.has("agent"))&&this.appTypes)&&this.readStorageLink(),t.has("link")&&this.link&&(console.info(`Opening notification link in ${this.uid??mP.get(this.componentType)??this.constructor.name}`),this.consumeStorageLink()),t.has("app")&&this.app){const z=new CustomEvent("wy-app",{bubbles:!1,composed:!0,detail:{app:this.app}});this.dispatchEvent(z)}t.has("app")&&this.app&&(t.get("app")&&I(this,km,new Promise(z=>{I(this,xm,z)})),(m=k(this,xm))==null||m.call(this,this.app)),t.has("contextDataBlobs")&&this.contextDataBlobs&&(t.get("contextDataBlobs")&&I(this,Pm,new Promise(z=>{I(this,Sm,z)})),(w=k(this,Sm))==null||w.call(this,this.contextDataBlobs)),t.has("contextId")&&this.contextId&&(t.get("contextId")&&I(this,Qm,new Promise(z=>{I(this,Cm,z)})),(b=k(this,Cm))==null||b.call(this,this.contextId)),t.has("componentFeatures")&&this.componentFeatures&&(t.get("componentFeatures")&&I(this,Tm,new Promise(z=>{I(this,Mm,z)})),(x=k(this,Mm))==null||x.call(this,this.componentFeatures)),t.has("link")&&this.link&&(t.get("link")&&I(this,mc,new Promise(z=>{I(this,yc,z)})),(O=k(this,yc))==null||O.call(this,this.link)),t.has("settings")&&this.settings&&(t.get("settings")&&I(this,Rm,new Promise(z=>{I(this,Am,z)})),(P=k(this,Am))==null||P.call(this,this.settings)),t.has("user")&&this.user&&(t.get("user")&&I(this,zm,new Promise(z=>{I(this,Em,z)})),(A=k(this,Em))==null||A.call(this,this.user)),t.has("weavy")&&this.weavy&&(t.get("weavy")&&I(this,Lm,new Promise(z=>{I(this,_m,z)})),this.weavy.host.addEventListener("wy-notification",this.notificationEventHandler,{capture:!0}),(R=k(this,_m))==null||R.call(this,this.weavy)),t.has("bot")&&typeof this.bot=="string"&&console.error(`Using .bot property is deprecated. Use .agent = "${this.bot}"; instead`)}},h(Vu,"Tp"),Vu);k1=new WeakMap,S1=new WeakMap,P1=new WeakMap,C1=new WeakMap,Q1=new WeakMap,xm=new WeakMap,km=new WeakMap,Sm=new WeakMap,Pm=new WeakMap,Cm=new WeakMap,Qm=new WeakMap,Mm=new WeakMap,Tm=new WeakMap,yc=new WeakMap,mc=new WeakMap,Am=new WeakMap,Rm=new WeakMap,Em=new WeakMap,zm=new WeakMap,_m=new WeakMap,Lm=new WeakMap,Wa=new WeakMap,dr=new WeakMap,ks=new WeakMap,Im=new WeakMap,wc=new WeakMap,u(Cz,"WeavyComponent");let Dt=Cz;de([F()],Dt.prototype,"weavy",2);de([Ks({context:rP}),F()],Dt.prototype,"app",2);de([Ks({context:kz}),F()],Dt.prototype,"contextDataBlobs",2);de([Ks({context:Sz}),F()],Dt.prototype,"contextId",2);de([Ks({context:V0}),F()],Dt.prototype,"componentFeatures",2);de([Ks({context:rz}),F()],Dt.prototype,"settings",2);de([Ks({context:q0}),F()],Dt.prototype,"user",2);de([Ks({context:lz})],Dt.prototype,"_link",2);de([$({type:Object})],Dt.prototype,"link",1);de([F()],Dt.prototype,"componentType",2);de([F()],Dt.prototype,"appTypes",2);de([$()],Dt.prototype,"features",2);de([$({type:String})],Dt.prototype,"agent",1);de([$({attribute:!0,type:String})],Dt.prototype,"contextualData",2);de([$({attribute:!0,type:String,converter:{fromAttribute(n){return AR(n)}}})],Dt.prototype,"data",1);de([$()],Dt.prototype,"autoUid",2);de([$({converter:Pz})],Dt.prototype,"uid",2);de([$({type:String})],Dt.prototype,"name",1);de([$({type:String})],Dt.prototype,"annotations",1);de([$({type:String})],Dt.prototype,"notifications",1);de([$({type:String})],Dt.prototype,"notificationsBadge",1);de([$({type:String})],Dt.prototype,"reactions",1);de([$()],Dt.prototype,"bot",2);const mP=new Map(IS(rE)),Qz=new Map(IS(aE)),jv=new Map(Object.entries(oE));new Map(Object.entries(lE));var wF=Object.defineProperty,pa=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&&wF(t,e,s),s},"__decorateClass$1c"),Zm,M1,Dm,T1,Wm,A1,qm,R1,Vm,E1,Um,z1,jm,_1,Fm,L1,Uu;const Mz=(Uu=class extends ft{constructor(){super(),j(this,Zm),j(this,M1,new Promise(t=>{I(this,Zm,t)})),j(this,Dm),j(this,T1,new Promise(t=>{I(this,Dm,t)})),j(this,Wm),j(this,A1,new Promise(t=>{I(this,Wm,t)})),j(this,qm),j(this,R1,new Promise(t=>{I(this,qm,t)})),j(this,Vm),j(this,E1,new Promise(t=>{I(this,Vm,t)})),j(this,Um),j(this,z1,new Promise(t=>{I(this,Um,t)})),j(this,jm),j(this,_1,new Promise(t=>{I(this,jm,t)})),j(this,Fm),j(this,L1,new Promise(t=>{I(this,Fm,t)}))}async whenApp(){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,z1)}async whenUser(){return await k(this,_1)}async whenWeavy(){return await k(this,L1)}willUpdate(t){var e,i,s,r,a,o,l,c;super.willUpdate(t),t.has("app")&&this.app&&(t.get("app")&&I(this,M1,new Promise(d=>{I(this,Zm,d)})),(e=k(this,Zm))==null||e.call(this,this.app)),t.has("contextDataBlobs")&&this.contextDataBlobs&&(t.get("contextDataBlobs")&&I(this,T1,new Promise(d=>{I(this,Dm,d)})),(i=k(this,Dm))==null||i.call(this,this.contextDataBlobs)),t.has("contextId")&&this.contextId&&(t.get("contextId")&&I(this,A1,new Promise(d=>{I(this,Wm,d)})),(s=k(this,Wm))==null||s.call(this,this.contextId)),t.has("componentFeatures")&&this.componentFeatures&&(t.get("componentFeatures")&&I(this,R1,new Promise(d=>{I(this,qm,d)})),(r=k(this,qm))==null||r.call(this,this.componentFeatures)),t.has("link")&&this.link&&(t.get("link")&&I(this,E1,new Promise(d=>{I(this,Vm,d)})),(a=k(this,Vm))==null||a.call(this,this.link)),t.has("settings")&&this.settings&&(t.get("settings")&&I(this,z1,new Promise(d=>{I(this,Um,d)})),(o=k(this,Um))==null||o.call(this,this.settings)),t.has("user")&&this.user&&(t.get("user")&&I(this,_1,new Promise(d=>{I(this,jm,d)})),(l=k(this,jm))==null||l.call(this,this.user)),t.has("weavy")&&this.weavy&&(t.get("weavy")&&I(this,L1,new Promise(d=>{I(this,Fm,d)})),(c=k(this,Fm))==null||c.call(this,this.weavy))}connectedCallback(){super.connectedCallback(),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(Uu,"Fp"),Uu);Zm=new WeakMap,M1=new WeakMap,Dm=new WeakMap,T1=new WeakMap,Wm=new WeakMap,A1=new WeakMap,qm=new WeakMap,R1=new WeakMap,Vm=new WeakMap,E1=new WeakMap,Um=new WeakMap,z1=new WeakMap,jm=new WeakMap,_1=new WeakMap,Fm=new WeakMap,L1=new WeakMap,u(Mz,"WeavySubComponent");let _t=Mz;pa([xe({context:rP,subscribe:!0}),F()],_t.prototype,"app");pa([xe({context:kz,subscribe:!0}),F()],_t.prototype,"contextDataBlobs");pa([xe({context:Sz,subscribe:!0}),F()],_t.prototype,"contextId");pa([xe({context:V0,subscribe:!0}),F()],_t.prototype,"componentFeatures");pa([xe({context:lz,subscribe:!0}),F()],_t.prototype,"link");pa([xe({context:rz,subscribe:!0}),F()],_t.prototype,"settings");pa([xe({context:q0,subscribe:!0}),F()],_t.prototype,"user");pa([xe({context:Ie,subscribe:!0}),F()],_t.prototype,"weavy");function Tz(n){return typeof n=="string"&&n?n=eval==null?void 0:(0,eval)(`"use strict";(${n})`):n=void 0,n}h(Tz,"eg");u(Tz,"indirectEvalObject");function og(n){if(n)try{return new URL(n,window.location.toString())}catch{console.warn("Invalid url: ",n)}}h(og,"bd");u(og,"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"),yt=Tt`@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, calc(.5 * var(--wy-size, 1rem))) var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) 0;top:0;height:0;margin-bottom:calc(-1 * 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))}[part~=wy-buttons-sticky]{position:sticky;padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));top:0;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;flex:1 0 auto}.wy-input-group-button-icon{--wy-component-background-color: transparent}.wy-input-group-input-with-overlay{padding-right:calc(var(--wy-input-padding-y, var(--wy-padding, 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)))))))}.wy-input-group-button-icon-overlay{position:absolute;display:inline-flex;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}`,Rt=Tt`:host{display:contents}`;var gF=Object.defineProperty,vF=Object.getOwnPropertyDescriptor,Re=u((n,t,e,i)=>{for(var s=i>1?void 0:i?vF(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&&gF(t,e,s),s},"__decorateClass$1b");function fk(n){return n!=null&&n!==!1}h(fk,"my");u(fk,"acceptedValue");const Az="wy-context";var PO,ju;let le=(PO=(ju=class extends ft{constructor(){super(),this.provider=!1,this.annotations=pe.defaults.annotations,this.cloudFilePickerUrl=pe.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=pe.defaults.disableEnvironmentImports,this.locale=pe.defaults.locale,this.locales=pe.defaults.locales,this.gcTime=pe.defaults.gcTime,this.notificationEvents=pe.defaults.notificationEvents,this.scrollBehavior=pe.defaults.scrollBehavior,this.staleTime=pe.defaults.staleTime,this.tokenFactory=pe.defaults.tokenFactory,this.tokenFactoryRetryDelay=pe.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=pe.defaults.tokenFactoryTimeout,this.tokenUrl=pe.defaults.tokenUrl,this.url=pe.defaults.url,this.notifications=pe.defaults.notifications,this.notificationsBadge=pe.defaults.notificationsBadge,this.reactions=pe.defaults.reactions,this.childElementCount&&(this.provider=!0),this.weavy??(this.weavy=new pe({host:this.provider?this:void 0}))}get version(){return pe.version}get sourceName(){return pe.sourceName}willUpdate(t){if(super.willUpdate(t),this.weavy){const e={};Array.from(t.keys()).forEach(i=>{i!=="weavy"&&(fk(this[i])||fk(t.get(i)))&&Object.assign(e,{[i]:this[i]})}),Object.assign(this.weavy,e)}}render(){return v` <slot></slot> `}},h(ju,"Gn"),ju),u(PO,"WyContext"),PO);le.styles=[yt,Xi,Rt];Re([$({attribute:!0,type:Boolean})],le.prototype,"provider",2);Re([$()],le.prototype,"annotations",2);Re([$({attribute:!0,converter:{fromAttribute:u(n=>og(n),"fromAttribute")}})],le.prototype,"cloudFilePickerUrl",2);Re([$({attribute:!0,converter:{fromAttribute:u(n=>og(n),"fromAttribute")}}),$({type:Boolean})],le.prototype,"disableEnvironmentImports",2);Re([$({attribute:!0})],le.prototype,"locale",2);Re([$({attribute:!0,type:Array})],le.prototype,"locales",2);Re([$({attribute:!0,type:Number})],le.prototype,"gcTime",2);Re([$({type:Boolean})],le.prototype,"notificationEvents",2);Re([$({attribute:!0})],le.prototype,"scrollBehavior",2);Re([$({attribute:!0,type:Number})],le.prototype,"staleTime",2);Re([$({attribute:!0,converter:{fromAttribute:u(n=>Tz(n),"fromAttribute")}})],le.prototype,"tokenFactory",2);Re([$({attribute:!0,type:Number})],le.prototype,"tokenFactoryRetryDelay",2);Re([$({attribute:!0,type:Number})],le.prototype,"tokenFactoryTimeout",2);Re([$({attribute:!0,converter:{fromAttribute:u(n=>og(n),"fromAttribute")}})],le.prototype,"tokenUrl",2);Re([$({attribute:!0,converter:{fromAttribute:u(n=>og(n),"fromAttribute")}})],le.prototype,"url",2);Re([$({attribute:!0})],le.prototype,"notifications",2);Re([$({attribute:!0})],le.prototype,"notificationsBadge",2);Re([$({attribute:!0})],le.prototype,"reactions",2);Re([F()],le.prototype,"weavy",2);le=Re([Y(Az)],le);var Bm,I1,Fu;const Rz=(Fu=class{constructor(t,e){j(this,Bm),j(this,I1),I(this,Bm,!0),this.styles=[],t.addController(this),this.host=t,e&&(this.styles=e)}get themeColor(){return k(this,I1)}set themeColor(t){I(this,I1,t),this.checkThemeUpdate()}checkThemeUpdate(){const t=this.themeColor||qv(this.host)||Vv();if(t&&t!==this._resolvedThemeColor){this._resolvedThemeColor=t,console.info("Configuring theme",this._resolvedThemeColor);const e=XE(this._resolvedThemeColor).join(""),i=Tt`
|
|
33
33
|
:host {
|
|
34
34
|
${fR(e)};
|
|
35
35
|
}
|
|
@@ -3242,4 +3242,4 @@ ${s.join(`
|
|
|
3242
3242
|
>
|
|
3243
3243
|
<wy-icon name="send"></wy-icon>
|
|
3244
3244
|
</wy-button>
|
|
3245
|
-
</div>`}renderBottomSlot(){return Q}},h(Wf,"Ro"),Wf),u(p$,"WyMessageEditor"),p$);Zk=_Y([Y("wy-message-editor"),$t()],Zk);const ot=Object.freeze(Object.defineProperty({__proto__:null,get WyAttachment(){return js},get WyAttachmentsList(){return Zw},get WyAvatar(){return as},get WyAvatarGroup(){return Xo},get WyBlobUpload(){return my},get WyButton(){return ls},get WyButtons(){return Ho},get WyCloudFiles(){return nl},get WyComment(){return ye},get WyCommentEdit(){return dn},get WyCommentEditor(){return zk},get WyCommentList(){return el},get WyCommentTrashed(){return Fw},get WyCommentView(){return Te},get WyConversation(){return Ri},get WyConversationAppbar(){return hs},get WyConversationList(){return ua},get WyConversationListItem(){return ii},get WyConversationNew(){return sl},get WyDropdown(){return Ai},get WyDropdownDivider(){return n0},get WyDropdownItem(){return jw},get WyDropdownOption(){return hy},get WyEditor(){return Ut},get WyEmbed(){return ry},get WyEmpty(){return sy},get WyFileItem(){return Ns},get WyFileMenu(){return oa},get WyFileVersions(){return uy},get WyFilesAppbar(){return la},get WyFilesList(){return Tn},get WyIcon(){return ce},get WyImageGrid(){return ay},get WyMeetingCard(){return Vw},get WyMessage(){return he},get WyMessageEditor(){return Zk},get WyMessageTyping(){return Bi},get WyMessages(){return un},get WyMessengerBadge(){return ha},get WyNotificationBadge(){return Xw},get WyNotificationButtonList(){return r0},get WyNotificationList(){return wy},get WyNotificationListItem(){return da},get WyOverlay(){return ra},get WyPdfViewer(){return Jo},get WyPoll(){return Bw},get WyPollOption(){return tl},get WyPost(){return me},get WyPostEdit(){return Be},get WyPostTrashed(){return Gw},get WyPostView(){return re},get WyPresence(){return ny},get WyPreview(){return Ae},get WyPreviewEmbed(){return aa},get WyPreviewIcon(){return Go},get WyPreviewImage(){return Ko},get WyPreviewItem(){return dy},get WyPreviewMedia(){return Bs},get WyPreviewText(){return cs},get WyProgressLinear(){return hn},get WyReactionItem(){return qw},get WyReactions(){return $e},get WySheet(){return cy},get WySkeleton(){return Uw},get WySpinner(){return os},get WyToast(){return Hs},get WyToasts(){return Yw},get WyTyping(){return vy},get WyUsersSearch(){return An}},Symbol.toStringTag,{value:"Module"}));ae.version="29.2.0";ae.sourceName="@weavy/uikit-react";const oZ=H.createContext(null);function LY(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=(qi==null?void 0:qi.value)??new pe(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(LY,"useWeavy");const lZ=Promise.resolve(),lC=class lC{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,lZ.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(lC,"s");let Dk=lC;const IY=h((n,t)=>{const{useState:e,useLayoutEffect:i}=n,[s,r]=e(0);let a=!1;const[o]=e(()=>{const l=new Dk(s,r),c=t(l);return l.M=c,l.m(),a=!0,lZ.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 cZ(n,t){var r;const i=(h(a=>!!a&&a.current!==void 0,"isRef")(n)?n.current:n)||void 0,s=IY(H,a=>new cF(a,t??Ie,i));return H.useEffect(()=>{i&&(s.ref=i)},[s,i]),(r=s.context)==null?void 0:r.value}h(cZ,"useWeavyContext");var hZ=(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))(hZ||{});const ZY=new Set(["children","localName","ref","style","className"]),J3=new WeakMap,t9=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=J3.get(a);c===void 0&&J3.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))ZY.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)t9(d.current,w,o[w],c.current.get(w),i),c.current.delete(w),m.set(w,o[w]);for(const[w,b]of c.current)t9(d.current,w,void 0,b,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"),DY=et({react:H,tagName:oI,elementClass:py,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),WY=et({react:H,tagName:cI,elementClass:fy,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),qY=et({react:H,tagName:Ez,elementClass:Bo,events:{onWyApp:"wy-app"}}),VY=et({react:H,tagName:Az,elementClass:le,events:{onWyNotifications:"wy-notifications"}});function UY({children:n,...t}){const e=H.useRef(null),i=cZ(e.current);return H.createElement(VY,{ref:e,...t},H.createElement(oZ.Provider,{value:i??null},n))}h(UY,"WyContext");const jY=et({react:H,tagName:dI,elementClass:il,events:{onWyApp:"wy-app",onWyMessage:"wy-message",onWyPreviewOpen:"wy-preview-open"}}),FY=et({react:H,tagName:TI,elementClass:ca,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),BY=et({react:H,tagName:_I,elementClass:Xs,events:{onWyPreviewOpen:"wy-preview-open"}}),NY=et({react:H,tagName:ZI,elementClass:Hw,events:{onWyApp:"wy-app",onWyLink:"wy-link"}}),XY=et({react:H,tagName:qI,elementClass:ds,events:{onWyApp:"wy-app",onWyLink:"wy-link",onWyNotification:"wy-notification"}}),HY=et({react:H,tagName:iZ,elementClass:gy,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),YY=et({react:H,tagName:"wy-attachment",elementClass:ot.WyAttachment}),GY=et({react:H,tagName:"wy-attachments-list",elementClass:ot.WyAttachmentsList,events:{onFileOpen:"file-open"}}),KY=et({react:H,tagName:"wy-avatar",elementClass:ot.WyAvatar}),JY=et({react:H,tagName:"wy-blob-upload",elementClass:ot.WyBlobUpload}),tG=et({react:H,tagName:"wy-button",elementClass:ot.WyButton}),eG=et({react:H,tagName:"wy-buttons",elementClass:ot.WyButtons}),iG=et({react:H,tagName:"wy-cloud-files",elementClass:ot.WyCloudFiles,events:{onExternalBlobs:"external-blobs",onReleaseFocus:"release-focus"}}),nG=et({react:H,tagName:"wy-comment-list",elementClass:ot.WyCommentList}),sG=et({react:H,tagName:"wy-comment",elementClass:ot.WyComment,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),rG=et({react:H,tagName:"wy-comment-view",elementClass:ot.WyCommentView,events:{onVote:"vote",onTrash:"trash",onEdit:"edit"}}),aG=et({react:H,tagName:"wy-comment-edit",elementClass:ot.WyCommentEdit,events:{onEdit:"edit"}}),oG=et({react:H,tagName:"wy-comment-editor",elementClass:ot.WyCommentEditor,events:{onSubmit:"submit"}}),lG=et({react:H,tagName:"wy-comment-trashed",elementClass:ot.WyCommentTrashed,events:{onRestore:"restore"}}),cG=et({react:H,tagName:"wy-conversation",elementClass:ot.WyConversation,events:{onReleaseFocus:"release-focus"}}),hG=et({react:H,tagName:"wy-conversation-appbar",elementClass:ot.WyConversationAppbar,events:{onReleaseFocus:"release-focus"}}),dG=et({react:H,tagName:"wy-conversation-new",elementClass:ot.WyConversationNew,events:{onReleaseFocus:"release-focus"}}),uG=et({react:H,tagName:"wy-conversation-list",elementClass:ot.WyConversationList,events:{onConversationSelected:"conversation-selected"}}),pG=et({react:H,tagName:"wy-conversation-list-item",elementClass:ot.WyConversationListItem,events:{onRefetch:"refetch",onSelected:"selected",onStar:"star",onPin:"pin",onMark:"mark",onLeave:"leave"}}),fG=et({react:H,tagName:"wy-dropdown",elementClass:ot.WyDropdown}),yG=et({react:H,tagName:"wy-dropdown-item",elementClass:ot.WyDropdownItem}),mG=et({react:H,tagName:"wy-dropdown-option",elementClass:ot.WyDropdownOption}),wG=et({react:H,tagName:"wy-dropdown-divider",elementClass:ot.WyDropdownDivider}),gG=et({react:H,tagName:"wy-editor",elementClass:ot.WyEditor,events:{onSubmit:"submit"}}),vG=et({react:H,tagName:"wy-embed",elementClass:ot.WyEmbed,events:{onEmbedRemove:"embed-remove",onEmbedSwap:"embed-swap"}}),bG=et({react:H,tagName:"wy-empty",elementClass:ot.WyEmpty}),OG=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"}}),$G=et({react:H,tagName:"wy-file-menu",elementClass:ot.WyFileMenu,events:{onEditName:"edit-name",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever"}}),xG=et({react:H,tagName:"wy-file-versions",elementClass:ot.WyFileVersions,events:{onFileVersionSelect:"file-version-select"}}),kG=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"}}),SG=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"}}),PG=et({react:H,tagName:"wy-icon",elementClass:ot.WyIcon}),CG=et({react:H,tagName:"wy-image-grid",elementClass:ot.WyImageGrid,events:{onFileOpen:"file-open"}}),QG=et({react:H,tagName:"wy-meeting-card",elementClass:ot.WyMeetingCard}),MG=et({react:H,tagName:"wy-message",elementClass:ot.WyMessage}),TG=et({react:H,tagName:"wy-messages",elementClass:ot.WyMessages,events:{onScrollToBottom:"scroll-to-bottom"}}),AG=et({react:H,tagName:"wy-message-editor",elementClass:ot.WyMessageEditor,events:{onSubmit:"submit"}}),RG=et({react:H,tagName:"wy-message-typing",elementClass:ot.WyMessageTyping}),EG=et({react:H,tagName:"wy-messenger-badge",elementClass:ot.WyMessengerBadge}),zG=et({react:H,tagName:"wy-notification-badge",elementClass:ot.WyNotificationBadge}),_G=et({react:H,tagName:"wy-notification-button-list",elementClass:ot.WyNotificationButtonList}),LG=et({react:H,tagName:"wy-notification-list",elementClass:ot.WyNotificationList}),IG=et({react:H,tagName:"wy-notification-list-item",elementClass:ot.WyNotificationListItem}),ZG=et({react:H,tagName:"wy-overlay",elementClass:ot.WyOverlay,events:{onReleaseFocus:"release-focus",onClose:"close"}}),DG=et({react:H,tagName:"wy-pdf-viewer",elementClass:ot.WyPdfViewer}),WG=et({react:H,tagName:"wy-poll",elementClass:ot.WyPoll,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),qG=et({react:H,tagName:"wy-poll-option",elementClass:ot.WyPollOption,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),VG=et({react:H,tagName:"wy-post",elementClass:ot.WyPost,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),UG=et({react:H,tagName:"wy-post-view",elementClass:ot.WyPostView,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onEdit:"edit"}}),jG=et({react:H,tagName:"wy-post-edit",elementClass:ot.WyPostEdit,events:{onEdit:"edit"}}),FG=et({react:H,tagName:"wy-post-trashed",elementClass:ot.WyPostTrashed,events:{onRestore:"restore"}}),BG=et({react:H,tagName:"wy-presence",elementClass:ot.WyPresence}),NG=et({react:H,tagName:"wy-preview",elementClass:ot.WyPreview,events:{onReleaseFocus:"release-focus",onWyPreviewOpen:"wy-preview-open",onWyPreviewClose:"wy-preview-close"}}),XG=et({react:H,tagName:"wy-preview-item",elementClass:ot.WyPreviewItem}),HG=et({react:H,tagName:"wy-preview-embed",elementClass:ot.WyPreviewEmbed}),YG=et({react:H,tagName:"wy-preview-icon",elementClass:ot.WyPreviewIcon}),GG=et({react:H,tagName:"wy-preview-image",elementClass:ot.WyPreviewImage}),KG=et({react:H,tagName:"wy-preview-media",elementClass:ot.WyPreviewMedia}),JG=et({react:H,tagName:"wy-preview-text",elementClass:ot.WyPreviewText}),tK=et({react:H,tagName:"wy-reactions",elementClass:ot.WyReactions,events:{onReleaseFocus:"release-focus"}}),eK=et({react:H,tagName:"wy-reaction-item",elementClass:ot.WyReactionItem}),iK=et({react:H,tagName:"wy-sheet",elementClass:ot.WySheet,events:{onReleaseFocus:"release-focus",onClose:"close"}}),nK=et({react:H,tagName:"wy-skeleton",elementClass:ot.WySkeleton}),sK=et({react:H,tagName:"wy-spinner",elementClass:ot.WySpinner}),rK=et({react:H,tagName:"wy-typing",elementClass:ot.WyTyping}),aK=et({react:H,tagName:"wy-users-search",elementClass:ot.WyUsersSearch,events:{onSubmit:"submit"}}),oK=Object.freeze(Object.defineProperty({__proto__:null,WyAttachment:YY,WyAttachmentsList:GY,WyAvatar:KY,WyBlobUpload:JY,WyButton:tG,WyButtons:eG,WyCloudFiles:iG,WyComment:sG,WyCommentEdit:aG,WyCommentEditor:oG,WyCommentList:nG,WyCommentTrashed:lG,WyCommentView:rG,WyConversation:cG,WyConversationAppbar:hG,WyConversationList:uG,WyConversationListItem:pG,WyConversationNew:dG,WyDropdown:fG,WyDropdownDivider:wG,WyDropdownItem:yG,WyDropdownOption:mG,WyEditor:gG,WyEmbed:vG,WyEmpty:bG,WyFileItem:OG,WyFileMenu:$G,WyFileVersions:xG,WyFilesAppbar:kG,WyFilesList:SG,WyIcon:PG,WyImageGrid:CG,WyMeetingCard:QG,WyMessage:MG,WyMessageEditor:AG,WyMessageTyping:RG,WyMessages:TG,WyMessengerBadge:EG,WyNotificationBadge:zG,WyNotificationButtonList:_G,WyNotificationList:LG,WyNotificationListitem:IG,WyOverlay:ZG,WyPdfViewer:DG,WyPoll:WG,WyPollOption:qG,WyPost:VG,WyPostEdit:jG,WyPostTrashed:FG,WyPostView:UG,WyPresence:BG,WyPreview:NG,WyPreviewEmbed:HG,WyPreviewIcon:YG,WyPreviewImage:GG,WyPreviewItem:XG,WyPreviewMedia:KG,WyPreviewText:JG,WyReactionItem:eK,WyReactions:tK,WySheet:iK,WySkeleton:nK,WySpinner:sK,WyTyping:rK,WyUsersSearch:aK},Symbol.toStringTag,{value:"Module"}));exports.AppTypeGuids=mP;exports.AppTypeStrings=Qz;exports.Feature=hZ;exports.MessengerTypes=NH;exports.Weavy=pe;exports.WeavyComponents=oK;exports.WeavyContext=oZ;exports.WyChat=DY;exports.WyComments=WY;exports.WyComponent=qY;exports.WyContext=UY;exports.WyCopilot=jY;exports.WyFiles=FY;exports.WyMessenger=BY;exports.WyNotificationToasts=XY;exports.WyNotifications=NY;exports.WyPosts=HY;exports.useWeavy=LY;exports.useWeavyContext=cZ;
|
|
3245
|
+
</div>`}renderBottomSlot(){return Q}},h(Wf,"Ro"),Wf),u(p$,"WyMessageEditor"),p$);Zk=_Y([Y("wy-message-editor"),$t()],Zk);const ot=Object.freeze(Object.defineProperty({__proto__:null,get WyAttachment(){return js},get WyAttachmentsList(){return Zw},get WyAvatar(){return as},get WyAvatarGroup(){return Xo},get WyBlobUpload(){return my},get WyButton(){return ls},get WyButtons(){return Ho},get WyCloudFiles(){return nl},get WyComment(){return ye},get WyCommentEdit(){return dn},get WyCommentEditor(){return zk},get WyCommentList(){return el},get WyCommentTrashed(){return Fw},get WyCommentView(){return Te},get WyConversation(){return Ri},get WyConversationAppbar(){return hs},get WyConversationList(){return ua},get WyConversationListItem(){return ii},get WyConversationNew(){return sl},get WyDropdown(){return Ai},get WyDropdownDivider(){return n0},get WyDropdownItem(){return jw},get WyDropdownOption(){return hy},get WyEditor(){return Ut},get WyEmbed(){return ry},get WyEmpty(){return sy},get WyFileItem(){return Ns},get WyFileMenu(){return oa},get WyFileVersions(){return uy},get WyFilesAppbar(){return la},get WyFilesList(){return Tn},get WyIcon(){return ce},get WyImageGrid(){return ay},get WyMeetingCard(){return Vw},get WyMessage(){return he},get WyMessageEditor(){return Zk},get WyMessageTyping(){return Bi},get WyMessages(){return un},get WyMessengerBadge(){return ha},get WyNotificationBadge(){return Xw},get WyNotificationButtonList(){return r0},get WyNotificationList(){return wy},get WyNotificationListItem(){return da},get WyOverlay(){return ra},get WyPdfViewer(){return Jo},get WyPoll(){return Bw},get WyPollOption(){return tl},get WyPost(){return me},get WyPostEdit(){return Be},get WyPostTrashed(){return Gw},get WyPostView(){return re},get WyPresence(){return ny},get WyPreview(){return Ae},get WyPreviewEmbed(){return aa},get WyPreviewIcon(){return Go},get WyPreviewImage(){return Ko},get WyPreviewItem(){return dy},get WyPreviewMedia(){return Bs},get WyPreviewText(){return cs},get WyProgressLinear(){return hn},get WyReactionItem(){return qw},get WyReactions(){return $e},get WySheet(){return cy},get WySkeleton(){return Uw},get WySpinner(){return os},get WyToast(){return Hs},get WyToasts(){return Yw},get WyTyping(){return vy},get WyUsersSearch(){return An}},Symbol.toStringTag,{value:"Module"}));ae.version="29.2.1";ae.sourceName="@weavy/uikit-react";const oZ=H.createContext(null);function LY(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=(qi==null?void 0:qi.value)??new pe(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(LY,"useWeavy");const lZ=Promise.resolve(),lC=class lC{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,lZ.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(lC,"s");let Dk=lC;const IY=h((n,t)=>{const{useState:e,useLayoutEffect:i}=n,[s,r]=e(0);let a=!1;const[o]=e(()=>{const l=new Dk(s,r),c=t(l);return l.M=c,l.m(),a=!0,lZ.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 cZ(n,t){var r;const i=(h(a=>!!a&&a.current!==void 0,"isRef")(n)?n.current:n)||void 0,s=IY(H,a=>new cF(a,t??Ie,i));return H.useEffect(()=>{i&&(s.ref=i)},[s,i]),(r=s.context)==null?void 0:r.value}h(cZ,"useWeavyContext");var hZ=(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))(hZ||{});const ZY=new Set(["children","localName","ref","style","className"]),J3=new WeakMap,t9=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=J3.get(a);c===void 0&&J3.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))ZY.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)t9(d.current,w,o[w],c.current.get(w),i),c.current.delete(w),m.set(w,o[w]);for(const[w,b]of c.current)t9(d.current,w,void 0,b,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"),DY=et({react:H,tagName:oI,elementClass:py,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),WY=et({react:H,tagName:cI,elementClass:fy,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),qY=et({react:H,tagName:Ez,elementClass:Bo,events:{onWyApp:"wy-app"}}),VY=et({react:H,tagName:Az,elementClass:le,events:{onWyNotifications:"wy-notifications"}});function UY({children:n,...t}){const e=H.useRef(null),i=cZ(e.current);return H.createElement(VY,{ref:e,...t},H.createElement(oZ.Provider,{value:i??null},n))}h(UY,"WyContext");const jY=et({react:H,tagName:dI,elementClass:il,events:{onWyApp:"wy-app",onWyMessage:"wy-message",onWyPreviewOpen:"wy-preview-open"}}),FY=et({react:H,tagName:TI,elementClass:ca,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),BY=et({react:H,tagName:_I,elementClass:Xs,events:{onWyPreviewOpen:"wy-preview-open"}}),NY=et({react:H,tagName:ZI,elementClass:Hw,events:{onWyApp:"wy-app",onWyLink:"wy-link"}}),XY=et({react:H,tagName:qI,elementClass:ds,events:{onWyApp:"wy-app",onWyLink:"wy-link",onWyNotification:"wy-notification"}}),HY=et({react:H,tagName:iZ,elementClass:gy,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),YY=et({react:H,tagName:"wy-attachment",elementClass:ot.WyAttachment}),GY=et({react:H,tagName:"wy-attachments-list",elementClass:ot.WyAttachmentsList,events:{onFileOpen:"file-open"}}),KY=et({react:H,tagName:"wy-avatar",elementClass:ot.WyAvatar}),JY=et({react:H,tagName:"wy-blob-upload",elementClass:ot.WyBlobUpload}),tG=et({react:H,tagName:"wy-button",elementClass:ot.WyButton}),eG=et({react:H,tagName:"wy-buttons",elementClass:ot.WyButtons}),iG=et({react:H,tagName:"wy-cloud-files",elementClass:ot.WyCloudFiles,events:{onExternalBlobs:"external-blobs",onReleaseFocus:"release-focus"}}),nG=et({react:H,tagName:"wy-comment-list",elementClass:ot.WyCommentList}),sG=et({react:H,tagName:"wy-comment",elementClass:ot.WyComment,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),rG=et({react:H,tagName:"wy-comment-view",elementClass:ot.WyCommentView,events:{onVote:"vote",onTrash:"trash",onEdit:"edit"}}),aG=et({react:H,tagName:"wy-comment-edit",elementClass:ot.WyCommentEdit,events:{onEdit:"edit"}}),oG=et({react:H,tagName:"wy-comment-editor",elementClass:ot.WyCommentEditor,events:{onSubmit:"submit"}}),lG=et({react:H,tagName:"wy-comment-trashed",elementClass:ot.WyCommentTrashed,events:{onRestore:"restore"}}),cG=et({react:H,tagName:"wy-conversation",elementClass:ot.WyConversation,events:{onReleaseFocus:"release-focus"}}),hG=et({react:H,tagName:"wy-conversation-appbar",elementClass:ot.WyConversationAppbar,events:{onReleaseFocus:"release-focus"}}),dG=et({react:H,tagName:"wy-conversation-new",elementClass:ot.WyConversationNew,events:{onReleaseFocus:"release-focus"}}),uG=et({react:H,tagName:"wy-conversation-list",elementClass:ot.WyConversationList,events:{onConversationSelected:"conversation-selected"}}),pG=et({react:H,tagName:"wy-conversation-list-item",elementClass:ot.WyConversationListItem,events:{onRefetch:"refetch",onSelected:"selected",onStar:"star",onPin:"pin",onMark:"mark",onLeave:"leave"}}),fG=et({react:H,tagName:"wy-dropdown",elementClass:ot.WyDropdown}),yG=et({react:H,tagName:"wy-dropdown-item",elementClass:ot.WyDropdownItem}),mG=et({react:H,tagName:"wy-dropdown-option",elementClass:ot.WyDropdownOption}),wG=et({react:H,tagName:"wy-dropdown-divider",elementClass:ot.WyDropdownDivider}),gG=et({react:H,tagName:"wy-editor",elementClass:ot.WyEditor,events:{onSubmit:"submit"}}),vG=et({react:H,tagName:"wy-embed",elementClass:ot.WyEmbed,events:{onEmbedRemove:"embed-remove",onEmbedSwap:"embed-swap"}}),bG=et({react:H,tagName:"wy-empty",elementClass:ot.WyEmpty}),OG=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"}}),$G=et({react:H,tagName:"wy-file-menu",elementClass:ot.WyFileMenu,events:{onEditName:"edit-name",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever"}}),xG=et({react:H,tagName:"wy-file-versions",elementClass:ot.WyFileVersions,events:{onFileVersionSelect:"file-version-select"}}),kG=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"}}),SG=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"}}),PG=et({react:H,tagName:"wy-icon",elementClass:ot.WyIcon}),CG=et({react:H,tagName:"wy-image-grid",elementClass:ot.WyImageGrid,events:{onFileOpen:"file-open"}}),QG=et({react:H,tagName:"wy-meeting-card",elementClass:ot.WyMeetingCard}),MG=et({react:H,tagName:"wy-message",elementClass:ot.WyMessage}),TG=et({react:H,tagName:"wy-messages",elementClass:ot.WyMessages,events:{onScrollToBottom:"scroll-to-bottom"}}),AG=et({react:H,tagName:"wy-message-editor",elementClass:ot.WyMessageEditor,events:{onSubmit:"submit"}}),RG=et({react:H,tagName:"wy-message-typing",elementClass:ot.WyMessageTyping}),EG=et({react:H,tagName:"wy-messenger-badge",elementClass:ot.WyMessengerBadge}),zG=et({react:H,tagName:"wy-notification-badge",elementClass:ot.WyNotificationBadge}),_G=et({react:H,tagName:"wy-notification-button-list",elementClass:ot.WyNotificationButtonList}),LG=et({react:H,tagName:"wy-notification-list",elementClass:ot.WyNotificationList}),IG=et({react:H,tagName:"wy-notification-list-item",elementClass:ot.WyNotificationListItem}),ZG=et({react:H,tagName:"wy-overlay",elementClass:ot.WyOverlay,events:{onReleaseFocus:"release-focus",onClose:"close"}}),DG=et({react:H,tagName:"wy-pdf-viewer",elementClass:ot.WyPdfViewer}),WG=et({react:H,tagName:"wy-poll",elementClass:ot.WyPoll,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),qG=et({react:H,tagName:"wy-poll-option",elementClass:ot.WyPollOption,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),VG=et({react:H,tagName:"wy-post",elementClass:ot.WyPost,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),UG=et({react:H,tagName:"wy-post-view",elementClass:ot.WyPostView,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onEdit:"edit"}}),jG=et({react:H,tagName:"wy-post-edit",elementClass:ot.WyPostEdit,events:{onEdit:"edit"}}),FG=et({react:H,tagName:"wy-post-trashed",elementClass:ot.WyPostTrashed,events:{onRestore:"restore"}}),BG=et({react:H,tagName:"wy-presence",elementClass:ot.WyPresence}),NG=et({react:H,tagName:"wy-preview",elementClass:ot.WyPreview,events:{onReleaseFocus:"release-focus",onWyPreviewOpen:"wy-preview-open",onWyPreviewClose:"wy-preview-close"}}),XG=et({react:H,tagName:"wy-preview-item",elementClass:ot.WyPreviewItem}),HG=et({react:H,tagName:"wy-preview-embed",elementClass:ot.WyPreviewEmbed}),YG=et({react:H,tagName:"wy-preview-icon",elementClass:ot.WyPreviewIcon}),GG=et({react:H,tagName:"wy-preview-image",elementClass:ot.WyPreviewImage}),KG=et({react:H,tagName:"wy-preview-media",elementClass:ot.WyPreviewMedia}),JG=et({react:H,tagName:"wy-preview-text",elementClass:ot.WyPreviewText}),tK=et({react:H,tagName:"wy-reactions",elementClass:ot.WyReactions,events:{onReleaseFocus:"release-focus"}}),eK=et({react:H,tagName:"wy-reaction-item",elementClass:ot.WyReactionItem}),iK=et({react:H,tagName:"wy-sheet",elementClass:ot.WySheet,events:{onReleaseFocus:"release-focus",onClose:"close"}}),nK=et({react:H,tagName:"wy-skeleton",elementClass:ot.WySkeleton}),sK=et({react:H,tagName:"wy-spinner",elementClass:ot.WySpinner}),rK=et({react:H,tagName:"wy-typing",elementClass:ot.WyTyping}),aK=et({react:H,tagName:"wy-users-search",elementClass:ot.WyUsersSearch,events:{onSubmit:"submit"}}),oK=Object.freeze(Object.defineProperty({__proto__:null,WyAttachment:YY,WyAttachmentsList:GY,WyAvatar:KY,WyBlobUpload:JY,WyButton:tG,WyButtons:eG,WyCloudFiles:iG,WyComment:sG,WyCommentEdit:aG,WyCommentEditor:oG,WyCommentList:nG,WyCommentTrashed:lG,WyCommentView:rG,WyConversation:cG,WyConversationAppbar:hG,WyConversationList:uG,WyConversationListItem:pG,WyConversationNew:dG,WyDropdown:fG,WyDropdownDivider:wG,WyDropdownItem:yG,WyDropdownOption:mG,WyEditor:gG,WyEmbed:vG,WyEmpty:bG,WyFileItem:OG,WyFileMenu:$G,WyFileVersions:xG,WyFilesAppbar:kG,WyFilesList:SG,WyIcon:PG,WyImageGrid:CG,WyMeetingCard:QG,WyMessage:MG,WyMessageEditor:AG,WyMessageTyping:RG,WyMessages:TG,WyMessengerBadge:EG,WyNotificationBadge:zG,WyNotificationButtonList:_G,WyNotificationList:LG,WyNotificationListitem:IG,WyOverlay:ZG,WyPdfViewer:DG,WyPoll:WG,WyPollOption:qG,WyPost:VG,WyPostEdit:jG,WyPostTrashed:FG,WyPostView:UG,WyPresence:BG,WyPreview:NG,WyPreviewEmbed:HG,WyPreviewIcon:YG,WyPreviewImage:GG,WyPreviewItem:XG,WyPreviewMedia:KG,WyPreviewText:JG,WyReactionItem:eK,WyReactions:tK,WySheet:iK,WySkeleton:nK,WySpinner:sK,WyTyping:rK,WyUsersSearch:aK},Symbol.toStringTag,{value:"Module"}));exports.AppTypeGuids=mP;exports.AppTypeStrings=Qz;exports.Feature=hZ;exports.MessengerTypes=NH;exports.Weavy=pe;exports.WeavyComponents=oK;exports.WeavyContext=oZ;exports.WyChat=DY;exports.WyComments=WY;exports.WyComponent=qY;exports.WyContext=UY;exports.WyCopilot=jY;exports.WyFiles=FY;exports.WyMessenger=BY;exports.WyNotificationToasts=XY;exports.WyNotifications=NY;exports.WyPosts=HY;exports.useWeavy=LY;exports.useWeavyContext=cZ;
|